/* Salesforce Daily Quiz. Graphite palette shared with the Chrome extension.
   Radius tokens: --r cards and list rows, --r-sm every control (buttons, inputs, switches, options' inner badges use --r-xs),
   --r-xs = inner pieces and small labels (an inner segment is its container's radius minus the container padding). */
:root {
  color-scheme: light;
  --bg: #f3f4f6; --surface: #ffffff; --sunken: #eceef2;
  --text: #181b20; --text-2: #465061; --text-3: #5a6270;
  --line: rgba(20, 30, 50, .13); --line-2: rgba(20, 30, 50, .24);
  --accent: #1f5fd1; --accent-ink: #ffffff; --accent-soft: rgba(31, 95, 209, .09);
  --good: #17714a; --good-bg: rgba(23, 113, 74, .09);
  --bad: #c22f3b; --bad-bg: rgba(194, 47, 59, .08);
  --code-bg: #eceff4; --code-text: #1b1f27;
  --shadow: 0 1px 2px rgba(20, 30, 50, .05);
  --font: Inter, "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --r: 12px; --r-sm: 8px; --pad: 3px; --r-xs: calc(var(--r-sm) - var(--pad));
  --pl: max(16px, env(safe-area-inset-left, 0px)); --pr: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0e0f11; --surface: #16181b; --sunken: #1d2024;
    --text: #ececee; --text-2: #a8abb2; --text-3: #8a8d95;
    --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .18);
    --accent: #4c8dff; --accent-ink: #06101f; --accent-soft: rgba(76, 141, 255, .13);
    --good: #3ecf8e; --good-bg: rgba(62, 207, 142, .11);
    --bad: #f0616d; --bad-bg: rgba(240, 97, 109, .11);
    --code-bg: #0a0b0d; --code-text: #e4e6ea; --shadow: none;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e0f11; --surface: #16181b; --sunken: #1d2024;
  --text: #ececee; --text-2: #a8abb2; --text-3: #8a8d95;
  --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .18);
  --accent: #4c8dff; --accent-ink: #06101f; --accent-soft: rgba(76, 141, 255, .13);
  --good: #3ecf8e; --good-bg: rgba(62, 207, 142, .11);
  --bad: #f0616d; --bad-bg: rgba(240, 97, 109, .11);
  --code-bg: #0a0b0d; --code-text: #e4e6ea; --shadow: none;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-bottom: 120px; -webkit-tap-highlight-color: transparent; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); color: var(--text);
  font: 1rem/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; color: inherit; }
button, a, summary, label { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3, p, pre { margin: 0; }
code { font-family: var(--mono); font-size: .9em; background: var(--sunken); padding: 1px 6px; border-radius: var(--r-xs); }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: var(--r-xs); }
.skip { position: absolute; left: 8px; top: -60px; background: var(--surface); padding: 10px 14px; border-radius: var(--r-sm); z-index: 99; box-shadow: 0 0 0 1px var(--line-2); }
.skip:focus { top: 8px; }

/* header */
.top { border-bottom: 1px solid var(--line); background: var(--surface); padding-top: env(safe-area-inset-top, 0px); }
.top-in { max-width: 760px; margin: 0 auto; padding: 6px var(--pr) 6px var(--pl); display: flex; align-items: center; gap: 4px 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 650; font-size: .9375rem; min-height: 44px; margin-right: auto; }
.brand img { width: 28px; height: 28px; display: block; }

.nav { display: flex; gap: 2px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: var(--r-sm); text-decoration: none; color: var(--text-2); font-size: .90625rem; font-weight: 550; white-space: nowrap; }
.nav a:hover { color: var(--text); background: var(--sunken); }
.nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }

/* Colour switch: container radius = control radius, inner segment = container radius minus its padding. Same line colour
   and 44px rhythm as buttons and inputs. */
.theme { display: inline-flex; gap: 2px; padding: var(--pad); border-radius: var(--r-sm); background: var(--sunken); box-shadow: inset 0 0 0 1px var(--line-2); }
.theme button { border: 0; background: none; cursor: pointer; padding: 0 12px; min-height: 38px; border-radius: var(--r-xs); font-size: .8125rem; font-weight: 600; color: var(--text-2); }
.theme button:hover { color: var(--text); }
.theme button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(20, 30, 50, .18), 0 0 0 1px var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme button.on { background: rgba(255, 255, 255, .16); box-shadow: 0 1px 3px rgba(0, 0, 0, .4); } }
:root[data-theme="dark"] .theme button.on { background: rgba(255, 255, 255, .16); box-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.theme-foot { display: none; }
@media (pointer: coarse) { .theme button { min-height: 44px; } }
/* Phones: the switch leaves the header (brand + nav stay on one row) and lives in the footer. */
@media (max-width: 560px) {
  .top .theme { display: none; }
  .theme-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: 1 1 100%; }
  .theme-foot .theme { display: flex; flex: 1; max-width: 340px; }
  .theme-foot .theme button { flex: 1; min-height: 44px; font-size: .875rem; }
}

/* page */
main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 28px var(--pr) 40px var(--pl); outline: none; }
.view > * + * { margin-top: 20px; }
.view > * { min-width: 0; }
.eyebrow { font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
h1 { font-size: clamp(1.75rem, 6vw, 2.375rem); line-height: 1.12; letter-spacing: -.025em; font-weight: 700; outline: none; overflow-wrap: anywhere; }
h2 { font-size: 1.125rem; letter-spacing: -.01em; font-weight: 650; }
.lede { color: var(--text-2); max-width: 56ch; }
.muted { color: var(--text-2); }
.small { font-size: .875rem; }
.card { background: var(--surface); border-radius: var(--r); box-shadow: 0 0 0 1px var(--line), var(--shadow); padding: 20px; }
.card > * + * { margin-top: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r-sm); border: 0; cursor: pointer; font-weight: 600; font-size: .9375rem; text-decoration: none; background: var(--sunken); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.primary { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.btn.ghost { background: transparent; }
.btn.big { min-height: 52px; padding: 0 28px; font-size: 1.0625rem; }
.btn.danger { background: var(--bad); color: #fff; box-shadow: none; }
.btn:active:not(:disabled) { filter: brightness(.95); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
@media (hover: hover) {
  .btn:hover { background: var(--line); }
  .btn.ghost:hover { background: var(--sunken); }
  .btn.primary:hover { filter: brightness(1.07); background: var(--accent); }
}
.link { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; min-height: 44px; }
.link.quiet { color: var(--text-2); }
.link.inline { min-height: 0; }
a.link-tap { display: inline-flex; align-items: center; min-height: 44px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--surface); box-shadow: 0 0 0 1px var(--line); border-radius: var(--r); padding: 14px 16px; }
.stat b { display: block; font-size: 1.625rem; line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat span { font-size: .8125rem; color: var(--text-2); }
.dots { display: flex; gap: 6px; }
.dots i { width: 28px; height: 8px; border-radius: var(--r-xs); background: var(--line-2); }
.dots i.on { background: var(--accent); }

/* forms */
.field { display: grid; gap: 6px; }
.field label, .legend { font-weight: 600; font-size: .90625rem; }
.field .hint { font-size: .84375rem; color: var(--text-2); }
input[type=text], input[type=url], textarea, select { width: 100%; min-height: 48px; padding: 10px 12px; border-radius: var(--r-sm); border: 0; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 1rem; }
select { width: auto; max-width: 100%; }
textarea { min-height: 88px; resize: vertical; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 0; }
input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--bad); }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: var(--r-sm); background: var(--sunken); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.err { color: var(--bad); font-size: .90625rem; font-weight: 550; }
.err:empty { display: none; }
.notice { padding: 12px 14px; border-radius: var(--r-sm); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--line); font-size: .90625rem; }
.notice.bad { background: var(--bad-bg); }
.radios { display: grid; gap: 4px; border: 0; padding: 0; margin: 0; min-width: 0; }
.radios label { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.radios input { width: 22px; height: 22px; flex: none; accent-color: var(--accent); }
.code-box { font-family: var(--mono); font-size: 1rem; letter-spacing: .02em; word-break: break-all; padding: 14px; border-radius: var(--r-sm); background: var(--code-bg); color: var(--code-text); user-select: all; -webkit-user-select: all; }
.or { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: .8125rem; text-transform: lowercase; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }

/* play */
.playhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .875rem; color: var(--text-2); }
.clock { font-variant-numeric: tabular-nums; font-family: var(--mono); font-size: .9375rem; color: var(--text); }
.qmeta { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: .78125rem; font-weight: 600; padding: 2px 9px; border-radius: var(--r-xs); background: var(--sunken); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line); }
.qtext { font-size: clamp(1.1875rem, 4.5vw, 1.4375rem); line-height: 1.35; font-weight: 600; letter-spacing: -.012em; outline: none; overflow-wrap: anywhere; }
pre.code { padding: 14px 16px; border-radius: var(--r-sm); background: var(--code-bg); color: var(--code-text); font: .84375rem/1.6 var(--mono); overflow-x: auto; max-width: 100%; tab-size: 2; -webkit-overflow-scrolling: touch; }
pre.code code { background: none; padding: 0; font-size: inherit; }
.opts { display: grid; gap: 10px; }
.opt { display: flex; gap: 14px; align-items: flex-start; width: 100%; text-align: left; min-height: 56px; padding: 14px 14px; border-radius: var(--r); border: 0; cursor: pointer; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 1rem; line-height: 1.45; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.opt:active:not(:disabled) { background: var(--sunken); }
@media (hover: hover) { .opt:hover:not(:disabled) { background: var(--sunken); } }
.opt .k { flex: none; width: 26px; height: 26px; border-radius: var(--r-xs); display: grid; place-items: center; background: var(--sunken); box-shadow: inset 0 0 0 1px var(--line-2); font: 600 .8125rem var(--mono); margin-top: -1px; }
.opt .t { flex: 1; min-width: 0; overflow-wrap: anywhere; padding-top: 2px; }
.opt .badge { flex: none; display: inline-flex; gap: 5px; align-items: center; font-size: .8125rem; font-weight: 650; padding-top: 3px; }
.opt .badge svg { width: 16px; height: 16px; }
.opt:disabled { cursor: default; color: var(--text); }
.opt.pending { box-shadow: inset 0 0 0 2px var(--accent); }
.opt.right { background: var(--good-bg); box-shadow: inset 0 0 0 2px var(--good); }
.opt.right .badge { color: var(--good); }
.opt.wrong { background: var(--bad-bg); box-shadow: inset 0 0 0 2px var(--bad); }
.opt.wrong .badge { color: var(--bad); }
.opt.dim, .opt.dim .t { color: var(--text-2); }
@media (max-width: 380px) { .opt .badge { flex-basis: 100%; padding-left: 40px; margin-top: -6px; } .opt { flex-wrap: wrap; } .opt .t { flex-basis: calc(100% - 40px); } }
.feedback { padding: 16px; border-radius: var(--r); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.fbzone { scroll-margin-bottom: 110px; }
.fbzone:empty { display: none; }
.feedback > * + * { margin-top: 8px; }
.feedback .verdict { font-weight: 700; display: flex; gap: 8px; align-items: center; }
.feedback .verdict svg { width: 18px; height: 18px; flex: none; }
.feedback.ok .verdict { color: var(--good); } .feedback.no .verdict { color: var(--bad); }
.feedback p { color: var(--text-2); }
.report { margin-top: 4px; }
.kbd-hint { display: block; }
@media (hover: none) { .kbd-hint { display: none; } }

/* Sticky progress and clock while a question is on screen. */
.playhead.sticky { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--bg); padding: 10px 0; margin-top: -10px; box-shadow: 0 1px 0 var(--line); }

/* Primary action bar. On phones it is pinned to the bottom edge (in flow, so it never covers content); on wider screens it is a normal block. */
.actionbar:empty { display: none; }
.actionbar .btn { width: 100%; }
@media (min-width: 600px) { .actionbar .btn { width: auto; } .actionbar { margin-top: 20px; } }
@media (max-width: 599.98px) {
  .view.has-bar { display: flex; flex-direction: column; min-height: calc(100dvh - 190px); }
  .view.has-bar > .actionbar { margin-top: auto; position: sticky; bottom: 0; z-index: 5;
    margin-left: calc(var(--pl) * -1); margin-right: calc(var(--pr) * -1);
    padding: 12px var(--pr) calc(12px + env(safe-area-inset-bottom, 0px)) var(--pl);
    background: var(--bg); box-shadow: 0 -1px 0 var(--line); }
  .view.has-bar > :nth-last-child(2) { margin-bottom: 20px; }
}

/* result */
.score { display: flex; align-items: baseline; gap: 10px; }
.score b { font-size: clamp(3.5rem, 16vw, 5.25rem); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.score span { font-size: 1.5rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 10px; }
pre.share { padding: 14px; border-radius: var(--r-sm); background: var(--sunken); font: .875rem/1.5 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }

/* leaderboard table: fixed layout so long names truncate instead of widening the page */
.tablewrap { background: var(--surface); border-radius: var(--r); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
th, td { padding: 0 12px; height: 52px; text-align: left; border-bottom: 1px solid var(--line); font-size: .9375rem; }
tbody tr:last-child td { border-bottom: 0; }
th { font-size: .78125rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); font-weight: 600; height: 40px; background: var(--sunken); }
td.r, th.r { text-align: right; }
td.num, th.num { font-variant-numeric: tabular-nums; }
td.rank, th.rank { width: 52px; color: var(--text-2); }
th.score-h, td.score-c { width: 64px; }
th.time, td.time { width: 76px; }
td.name { font-weight: 550; overflow: hidden; }
.nm-wrap { display: flex; align-items: center; gap: 6px; min-width: 0; }
.nm { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nm a { color: inherit; display: block; overflow: hidden; text-overflow: ellipsis; line-height: 44px; }
th.act, td.act { width: 84px; padding-right: 4px; text-align: right; }
tr.me td { background: var(--accent-soft); }
tr.me td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.you { flex: none; font-size: .75rem; font-weight: 650; color: var(--accent); }
.seg { display: inline-flex; padding: var(--pad); background: var(--sunken); border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--line-2); }
.seg button { border: 0; background: none; cursor: pointer; min-height: 44px; padding: 0 18px; border-radius: var(--r-xs); font-weight: 600; font-size: .90625rem; color: var(--text-2); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--line-2); }
.rep { background: none; border: 0; color: var(--text-3); cursor: pointer; font-size: .8125rem; min-height: 44px; min-width: 44px; padding: 0 8px; text-decoration: underline; text-underline-offset: 3px; border-radius: var(--r-xs); }
.rep svg { display: none; width: 18px; height: 18px; }
@media (hover: hover) { .rep:hover { color: var(--text); } }
@media (max-width: 480px) {
  th, td { padding: 0 8px; }
  td.rank, th.rank { width: 38px; }
  th.score-h, td.score-c { width: 54px; }
  th.time, td.time { width: 62px; padding-right: 4px; }
  th.act, td.act { width: 44px; padding: 0; }
  .rep { text-decoration: none; padding: 0; width: 44px; display: inline-grid; place-items: center; }
  .rep .rep-t { display: none; }
  .rep svg { display: block; }
  .seg { display: flex; width: 100%; } .seg button { flex: 1; }
}

/* review */
.rq { display: grid; gap: 12px; }
.ro { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--line); font-size: .9375rem; }
.ro .t { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ro .badge { flex: none; font-size: .8125rem; font-weight: 650; }
.ro.right { background: var(--good-bg); box-shadow: inset 0 0 0 2px var(--good); } .ro.right .badge { color: var(--good); }
.ro.wrong { background: var(--bad-bg); box-shadow: inset 0 0 0 2px var(--bad); } .ro.wrong .badge { color: var(--bad); }
@media (max-width: 380px) { .ro { flex-wrap: wrap; } .ro .badge { flex-basis: 100%; } }

/* dialog */
dialog { border: 0; border-radius: var(--r); padding: 22px; width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--line-2), 0 24px 60px rgba(0, 0, 0, .35); }
dialog::backdrop { background: rgba(8, 10, 14, .55); }
dialog form > * + * { margin-top: 14px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 20px var(--pr) calc(28px + env(safe-area-inset-bottom, 0px)) var(--pl); font-size: .875rem; color: var(--text-2); }
.foot-in { max-width: 760px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.foot-in a { color: var(--text-2); display: inline-flex; min-height: 44px; align-items: center; }
@media (hover: hover) { .foot-in a:hover { color: var(--text); } }
.toast { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); max-width: calc(100vw - 32px); text-align: center; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: var(--r-sm); font-size: .875rem; font-weight: 550; z-index: 60; }
.toast:empty { display: none; }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: flex; gap: 12px; align-items: center; color: var(--text-2); padding: 24px 0; }
.empty { text-align: center; padding: 36px 16px; color: var(--text-2); }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition: none !important; scroll-behavior: auto !important; } }

@media (max-width: 439px) { .brand .pre { display: none; } }

/* v3.1 simplification */
.stack > * + * { margin-top: 10px; }
.rankline { font-size: 1.125rem; font-weight: 650; }
.chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: var(--r-xs); background: var(--sunken); box-shadow: inset 0 0 0 1px var(--line); font-size: .875rem; font-weight: 600; color: var(--text); }
.btn.block { width: 100%; }
.fine { font-size: .84375rem; color: var(--text-2); line-height: 1.5; }
.fine a { color: var(--text-2); }
details.more summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--accent); font-weight: 600; font-size: .90625rem; list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: "+"; display: inline-block; width: 18px; font-weight: 700; }
details.more[open] summary::before { content: "\2212"; }
details.more .field { padding-bottom: 4px; }
.nudge { background: var(--accent-soft); }
.join { max-width: 480px; }
h1:focus-visible, .qtext:focus-visible, main:focus-visible { outline: none; }

/* Phones: stacked, full-width actions; first (primary) action on top. */
@media (max-width: 520px) {
  main { padding-top: 20px; }
  .card { padding: 16px; }
  .row.stackm { flex-direction: column; align-items: stretch; }
  .row.stackm > .btn { width: 100%; }
  .btn.big { width: 100%; }
}
@media (max-width: 420px) { .stats { grid-template-columns: 1fr 1fr; } }

.foot-links { display: flex; flex-wrap: wrap; gap: 0 18px; align-items: center; }
th { white-space: nowrap; }
@media (max-width: 480px) { th { letter-spacing: .02em; font-size: .6875rem; } th.score-h, td.score-c { width: 58px; } }
.view > .tablewrap { margin-top: 8px; }
.view > .tablewrap + * { margin-top: 14px; }

/* Extension invite under today's board: a small centred strip on the same surface as the rest, eases in once. */
.invite { display: flex; align-items: center; gap: 12px; max-width: 480px; margin: 24px auto 0; padding: 10px 8px 10px 14px; border-radius: var(--r); background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow); animation: invite-in .4s ease-out both .3s; }
.invite-i { flex: none; width: 28px; height: 28px; border-radius: 7px; }
.invite-b { flex: 1; min-width: 0; }
.invite-t { font-weight: 600; font-size: .9375rem; line-height: 1.3; }
.invite-s { color: var(--text-2); font-size: .8125rem; line-height: 1.35; margin-top: 2px; }
.invite-a { flex: none; }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: .875rem; }
.invite-x { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--text-3); cursor: pointer; }
.invite-x:hover { background: var(--sunken); color: var(--text); }
@keyframes invite-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .invite { animation: none; } }
@media (max-width: 420px) { .invite-i { display: none; } .invite { flex-wrap: wrap; padding: 12px 8px 12px 14px; } .invite-b { flex-basis: calc(100% - 44px); } .invite-a { order: 3; } }
