/* White shirt, navy tie: white and very light grey surfaces, navy for type and actions, one deep gold for scores.
   Every colour is a token. Light is the default. Dark applies when the device asks for it (unless the header switch
   says Light) and when the switch says Dark: the two dark blocks below must stay identical. */
:root {
  --bg: #f2f4f7;
  --surface: #ffffff;
  --raised: #ffffff;
  --sunk: #eef0f4;
  --ink: #1b2a4a;
  --ink-2: #55617a;
  --ink-3: #7c879b;
  --line: #e2e6ec;
  --line-2: #cdd3dd;
  --navy: #1b2a4a;
  --on-navy: #ffffff;
  --navy-soft: #eef1f7;
  --gold: #8a6410;
  --on-gold: #ffffff;
  --gold-soft: #f7f1e0;
  --gold-line: #c9a441;
  --danger: #a3322b;
  --on-danger: #ffffff;
  --focus: #3b6fd4;
  --scrim: rgba(18, 27, 48, .6);
  --on-scrim: rgba(255, 255, 255, .8);
  --shadow: 0 1px 2px rgba(27, 42, 74, .05);
  --shadow-md: 0 1px 2px rgba(27, 42, 74, .06), 0 6px 16px rgba(27, 42, 74, .07);
  --shadow-lg: 0 28px 70px rgba(10, 16, 32, .38), 0 4px 14px rgba(10, 16, 32, .18);
  --shadow-tab: 0 1px 2px rgba(0, 0, 0, .12);
  --heat-1: #e6d29a;
  --heat-2: #d9bb67;
  --heat-3: #c79f3c;
  --heat-4: #a17618;
  --heat-5: #6b4d08;
  --heat-ink: #16223d;
  --heat-on: #ffffff;
  --hatch: rgba(27, 42, 74, .2);
  --r: 10px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1220;
    --surface: #151d30;
    --raised: #1b2540;
    --sunk: #111829;
    --ink: #e9edf5;
    --ink-2: #a9b3c7;
    --ink-3: #7f8aa1;
    --line: #29344e;
    --line-2: #3d4a68;
    --navy: #dfe6f6;
    --on-navy: #101829;
    --navy-soft: #26334f;
    --gold: #e3bd5a;
    --on-gold: #1a1505;
    --gold-soft: #2e2916;
    --gold-line: #9a7f33;
    --danger: #f08a80;
    --on-danger: #1d0b09;
    --focus: #8fb2ff;
    --scrim: rgba(3, 6, 14, .76);
    --on-scrim: rgba(233, 237, 245, .7);
    --shadow: none;
    --shadow-md: 0 6px 18px rgba(0, 0, 0, .32);
    --shadow-lg: 0 28px 70px rgba(0, 0, 0, .65), 0 4px 14px rgba(0, 0, 0, .4);
    --shadow-tab: 0 1px 2px rgba(0, 0, 0, .4);
    --heat-1: #4f4424;
    --heat-2: #6b5a2a;
    --heat-3: #8f752e;
    --heat-4: #bb9831;
    --heat-5: #edca62;
    --hatch: rgba(223, 230, 246, .2);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1220;
  --surface: #151d30;
  --raised: #1b2540;
  --sunk: #111829;
  --ink: #e9edf5;
  --ink-2: #a9b3c7;
  --ink-3: #7f8aa1;
  --line: #29344e;
  --line-2: #3d4a68;
  --navy: #dfe6f6;
  --on-navy: #101829;
  --navy-soft: #26334f;
  --gold: #e3bd5a;
  --on-gold: #1a1505;
  --gold-soft: #2e2916;
  --gold-line: #9a7f33;
  --danger: #f08a80;
  --on-danger: #1d0b09;
  --focus: #8fb2ff;
  --scrim: rgba(3, 6, 14, .76);
  --on-scrim: rgba(233, 237, 245, .7);
  --shadow: none;
  --shadow-md: 0 6px 18px rgba(0, 0, 0, .32);
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, .65), 0 4px 14px rgba(0, 0, 0, .4);
  --shadow-tab: 0 1px 2px rgba(0, 0, 0, .4);
  --heat-1: #4f4424;
  --heat-2: #6b5a2a;
  --heat-3: #8f752e;
  --heat-4: #bb9831;
  --heat-5: #edca62;
  --hatch: rgba(223, 230, 246, .2);
  color-scheme: dark;
}


*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.5 var(--font); font-feature-settings: 'cv11', 'ss01'; -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
[hidden] { display: none !important; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
main:focus { outline: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: var(--on-navy); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.noscript { padding: 24px; }

.h1 { font-size: 24px; line-height: 1.2; font-weight: 650; letter-spacing: -.015em; text-wrap: balance; }
.h2 { font-size: 16px; line-height: 1.3; font-weight: 650; letter-spacing: -.005em; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.ico { flex: none; vertical-align: -3px; }
.quiet-link { color: var(--ink-2); text-decoration: none; }
.quiet-link:hover { color: var(--ink); text-decoration: underline; }
.loading { color: var(--ink-3); padding: 40px 0; text-align: center; }
.loading::after { content: '…'; }

/* ---------- header */
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 56px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; min-width: 0; }
.tie { fill: var(--navy); flex: none; }
.brand-name { font-weight: 700; letter-spacing: -.01em; font-size: 16px; }
.brand-sub { color: var(--ink-3); font-size: 13px; padding-left: 8px; border-left: 1px solid var(--line-2); white-space: nowrap; }
.nav { display: flex; gap: 4px; height: 100%; }
.nav a { display: flex; align-items: center; padding: 0 10px; text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 14px; border-bottom: 2px solid transparent; border-top: 2px solid transparent; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current] { color: var(--ink); border-bottom-color: var(--navy); }
.who { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 13px; white-space: nowrap; }
#who-name { font-weight: 600; }
.theme-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px 0 9px; border: 1px solid var(--line-2); border-radius: 99px; background: none; color: var(--ink-2); font-size: 13px; font-weight: 550; cursor: pointer; }
.theme-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.theme-btn:focus-visible { border-radius: 99px; }

main { max-width: 1200px; margin: 0 auto; padding: 28px 20px 80px; }
main.page-queue, main.page- { max-width: 880px; }
main.page-brief { max-width: 800px; }

/* ---------- surfaces and buttons */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.pad { padding: 20px; }
.pad-x { padding: 16px 20px 12px; }
.narrow { max-width: 520px; margin: 40px auto; display: grid; gap: 12px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 12px; }
.card-head.pad-x { margin-bottom: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 14px;
  border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); color: var(--ink);
  font-weight: 550; font-size: 14px; text-decoration: none; cursor: pointer; text-align: left;
}
.btn:hover { border-color: var(--ink-3); }
.btn[disabled] { opacity: .55; cursor: default; }
.btn.primary { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.btn.primary:hover { filter: brightness(1.12); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: var(--on-danger); }
.btn.ghost { border-color: transparent; background: none; }
.btn.small { min-height: 32px; padding: 4px 10px; font-size: 13px; }
.btn.block { display: flex; width: 100%; }
.btn.big { min-height: 52px; padding: 8px 16px 8px 18px; gap: 14px; }
.btn-two { display: grid; line-height: 1.25; min-width: 0; }
.btn-two small { font-weight: 400; font-size: 12.5px; opacity: .8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; font-weight: 550; }
.input {
  display: block; width: 100%; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface);
  font-size: 15px; line-height: 1.45; resize: vertical; min-height: 40px;
}
.input::placeholder { color: var(--ink-3); }
.input:focus-visible { outline-offset: 0; border-color: var(--focus); }
.tag { display: inline-block; font-size: 11.5px; font-weight: 550; padding: 1px 7px; border-radius: 99px; background: var(--sunk); color: var(--ink-2); white-space: nowrap; }
.tag.warn { background: var(--gold-soft); color: var(--gold); }
.pill { font-size: 12.5px; font-weight: 600; padding: 2px 9px; border-radius: 99px; }
.score-pill { background: var(--gold); color: var(--on-gold); margin-left: auto; }
.code { font-weight: 700; font-variant-numeric: tabular-nums; }
.form-err { color: var(--danger); font-size: 14px; min-height: 0; }
.form-err:empty { display: none; }

.bar { height: 6px; border-radius: 99px; background: var(--sunk); overflow: hidden; min-width: 40px; }
.bar-fill { display: block; height: 100%; background: var(--navy); border-radius: 99px; transition: width .3s; }

/* ---------- sign-in */
.signin-wrap { min-height: 76vh; display: grid; place-items: center; }
.signin { width: 100%; max-width: 380px; padding: 32px 28px; display: grid; gap: 14px; }
.signin-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; }
.dev-box { display: grid; gap: 8px; padding-top: 16px; margin-top: 6px; border-top: 1px solid var(--line); }
.dev-tag { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- my queue */
.queue-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; margin-bottom: 32px; }
.queue-title { flex: 1 1 320px; display: grid; gap: 6px; }
.queue-title .eyebrow { margin: 0; }
.queue-title .bar { margin-top: 6px; max-width: 420px; }
.queue-head .btn.big { flex: 0 1 auto; max-width: 100%; }
.all-done { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.group { margin-top: 28px; }
.group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 4px 10px; }
.sets > li + li { border-top: 1px solid var(--line); }
.set-row {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) 150px 190px; align-items: center; gap: 4px 14px;
  padding: 12px 18px 12px 16px; text-decoration: none; min-height: 60px;
}
.set-row:hover { background: var(--sunk); }
.sets > li:first-child .set-row { border-radius: var(--r) var(--r) 0 0; }
.sets > li:last-child .set-row { border-radius: 0 0 var(--r) var(--r); }
.set-mark { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; }
.is-going .set-mark { border-color: var(--navy); border-style: dashed; }
.is-done .set-mark { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.set-mark .ico { width: 13px; height: 13px; }
.set-who { display: grid; min-width: 0; }
.set-title { font-weight: 600; }
.set-goal { color: var(--ink-2); font-size: 13.5px; }
.is-done .set-title { color: var(--ink-2); font-weight: 500; }
.set-int { color: var(--ink-3); font-size: 13px; }
.set-by { display: none; }
.set-prog { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
.set-count { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; min-width: 86px; text-align: right; }
.is-done .set-count { color: var(--ink); font-weight: 600; }
.set-aside-n { display: block; font-size: 12px; font-weight: 400; color: var(--ink-3); }
.queue-aside { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); }
.queue-aside .ico { width: 13px; height: 13px; vertical-align: 0; }

/* ---------- a brief as the message a seller receives (the focus view on the set page, and the brief page) */
.fcard { background: var(--raised); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-md); min-width: 0; }
.fcard-head {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "id strip close" "lead lead about";
  align-items: center; gap: 12px; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--line);
}
.fcard-id { grid-area: id; display: flex; align-items: center; gap: 10px; font-size: 14px; min-width: 0; }
.fcard-letter { min-width: 32px; height: 32px; padding: 0 8px; border-radius: 9px; background: var(--navy); color: var(--on-navy); display: grid; place-items: center; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.fcard-label { font-weight: 700; white-space: nowrap; }
.fcard-words { color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; margin-left: -4px; }
.fcard-words::before { content: '·'; margin-right: 6px; }
.fcard-close { grid-area: close; }
.fcard-lead { grid-area: lead; display: flex; align-items: flex-start; gap: 10px; color: var(--ink-2); font-size: 14px; line-height: 1.45; min-width: 0; }
.fcard-lead .tie { margin-top: 1px; }
.fcard-about { grid-area: about; white-space: nowrap; }
.about-short { display: none; }
.fcard-scroll { padding: 22px 28px 30px; }
.fcard-body { font-size: 17px; line-height: 1.65; max-width: 64ch; }
.fcard.is-static .fcard-head { grid-template-columns: minmax(0, 1fr); grid-template-areas: "id" "lead"; padding-right: 20px; }
.fcard.is-static .score-pill { margin-left: auto; }
.fcard.is-static .fcard-id { flex-wrap: wrap; row-gap: 6px; }
.fcard.is-static .fcard-label { white-space: normal; }

.fcard-body.md > * + * { margin-top: .8em; }
.fcard-body.md .md-h { display: flex; align-items: center; gap: 10px; font-size: 12.5px; line-height: 1.4; letter-spacing: .07em; color: var(--ink); margin-top: 2em; }
.fcard-body.md .md-h::after { content: ''; flex: 1; min-width: 16px; height: 1px; background: var(--line); }
.fcard-body.md .md-h:first-child { margin-top: 0; }
.fcard-body.md .md-h + * { margin-top: .6em; }
.fcard-body.md li::marker { color: var(--gold-line); font-weight: 600; }
.fcard-body.md li + li { margin-top: .4em; }
.icon-btn { width: 36px; height: 36px; flex: none; border: 0; border-radius: 50%; background: none; color: var(--ink-2); display: grid; place-items: center; cursor: pointer; padding: 0; }
.icon-btn:hover { background: var(--sunk); color: var(--ink); }
.icon-btn:focus-visible { border-radius: 50%; }

.md > * + * { margin-top: .75em; }
.md ul, .md ol { padding-left: 1.3em; }
.md ul { list-style: disc; }
.md ol { list-style: decimal; }
.md li + li { margin-top: .3em; }
.md li::marker { color: var(--ink-3); }
.md strong { font-weight: 650; }
.md .md-h { font-size: .82em; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); margin-top: 1.35em; }
.md .md-h:first-child { margin-top: 0; }
.md .md-h + * { margin-top: .4em; }
.md .md-k { font-weight: 650; }

/* ---------- rate a set */
.set-layout { display: grid; gap: 20px; }
.context .h1 { margin-bottom: 14px; }
.facts { display: grid; gap: 6px; font-size: 14px; }
.facts > div { display: grid; grid-template-columns: 112px 1fr; gap: 10px; }
.facts dt { color: var(--ink-3); }
.facts dd { font-weight: 550; min-width: 0; }
.facts.wide > div { grid-template-columns: 170px 1fr; padding: 8px 0; border-top: 1px solid var(--line); }
.facts.wide dd { font-weight: 400; }
.facts.wide { gap: 0; margin-top: 12px; border-bottom: 1px solid var(--line); }
.question { margin: 18px 0 6px; padding: 12px 14px; border-left: 3px solid var(--gold-line); background: var(--gold-soft); border-radius: 0 8px 8px 0; font-weight: 600; font-size: 15.5px; line-height: 1.4; text-wrap: balance; }
.fold { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
.fold > summary { cursor: pointer; font-weight: 600; font-size: 14px; list-style: none; display: flex; align-items: center; gap: 8px; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::before { content: ''; width: 7px; height: 7px; border-right: 1.8px solid var(--ink-3); border-bottom: 1.8px solid var(--ink-3); transform: rotate(-45deg); transition: transform .15s; margin: 0 3px 0 2px; }
.fold[open] > summary::before { transform: rotate(45deg); }
.fold > summary + * { margin-top: 10px; }
.scale { display: grid; gap: 5px; font-size: 13.5px; color: var(--ink-2); }
.scale li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; align-items: baseline; }
.scale-n { font-weight: 700; color: var(--gold); text-align: center; }
.tldr-note { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.tldr .md, .fsheet .md { font-size: 14px; line-height: 1.55; margin-top: 8px; }


.set-main { display: grid; gap: 20px; min-width: 0; align-content: start; }
/* the deck: one tile per brief */
.deck-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px 20px; }
.deck-title { display: grid; gap: 6px; }
.deck-count { font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.deck-title .bar { max-width: 300px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 16px; }
.tile {
  display: grid; grid-template-rows: auto 1fr auto; gap: 10px; width: 100%; height: 100%; min-height: 150px; padding: 12px 12px 10px;
  text-align: left; background: var(--raised); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-md);
  cursor: pointer; transition: transform .15s, border-color .15s;
}
.tile:hover { transform: translateY(-2px); border-color: var(--ink-3); }
.tile:focus-visible { border-radius: 14px; }
.tile-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tile-letter { width: 34px; height: 34px; border-radius: 10px; background: var(--navy); color: var(--on-navy); display: grid; place-items: center; font-weight: 700; font-size: 16px; }
.tile-words { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tile-preview { font-size: 13px; line-height: 1.4; color: var(--ink-2); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; align-self: start; }
.tile-state { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-height: 34px; padding-top: 9px; border-top: 1px dashed var(--line-2); font-size: 12.5px; }
.tile-score { min-width: 24px; height: 24px; border-radius: 7px; background: var(--gold); color: var(--on-gold); display: grid; place-items: center; font-weight: 700; font-size: 13.5px; }
.tile-said { font-weight: 600; margin-right: 2px; }
.tile-none { color: var(--ink-3); }
.tile-err { color: var(--danger); font-weight: 600; }
.tile.is-rated { border-color: var(--gold-line); }
.tile.is-rated .tile-letter { background: var(--navy-soft); color: var(--ink); }
.tag.pick-tag { background: var(--navy); color: var(--on-navy); }

/* Set aside by the system. One visual word everywhere it shows (deck, focus view, pick step, brief page, dashboard):
   a dashed edge and a diagonal hatch (no strike-through: it makes I and J unreadable), never a colour of its own. */
.aside-group { margin-top: 16px; border: 1px dashed var(--line-2); border-radius: 14px; background: var(--sunk); }
.aside-bar { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 8px 14px; border: 0; border-radius: 13px; background: none; color: var(--ink-2); font-size: 14px; font-weight: 550; text-align: left; cursor: pointer; }
.aside-bar:hover { color: var(--ink); }
.aside-bar:focus-visible { border-radius: 13px; }
.aside-bar-text { flex: 1 1 auto; min-width: 0; }
.aside-bar-sub { font-weight: 400; color: var(--ink-3); }
.aside-bar-act { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 13.5px; }
.aside-bar-act::after { content: ''; width: 7px; height: 7px; border-right: 1.8px solid var(--ink-3); border-bottom: 1.8px solid var(--ink-3); transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.aside-bar[aria-expanded=true] .aside-bar-act::after { transform: translateY(2px) rotate(-135deg); }
.aside-box { padding: 0 10px 10px; }
.aside-note { padding: 0 4px 10px 30px; font-size: 13px; line-height: 1.45; color: var(--ink-2); max-width: 66ch; }
.aside-tiles { display: grid; gap: 6px; }
.tile.is-aside {
  grid-template-rows: none; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; min-height: 54px; height: auto;
  padding: 8px 12px 8px 10px; border-radius: 10px; background: var(--surface); box-shadow: none;
}
.tile.is-aside:hover { transform: none; }
.tile.is-aside:focus-visible { border-radius: 10px; }
.tile.is-aside .tile-letter, .tile.is-aside.is-rated .tile-letter { width: 30px; height: 30px; border-radius: 9px; background: none; border: 1.5px dashed var(--line-2); color: var(--ink-3); font-size: 14px; }
.tile-why { display: grid; gap: 1px; min-width: 0; }
.tile-reason { font-size: 13.5px; line-height: 1.4; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-more:empty { display: none; }
.tile-more { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tile.is-aside .tile-state { flex-wrap: nowrap; justify-content: flex-end; min-height: 0; padding-top: 0; border-top: 0; white-space: nowrap; }
.fcard-aside { position: relative; display: grid; gap: 6px; margin: -22px -28px 22px; padding: 14px 28px 14px 40px; background: var(--sunk); border-bottom: 1px dashed var(--line-2); font-size: 14px; line-height: 1.5; }
.fcard-aside::before, .sys-card.is-aside::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 12px; background-image: repeating-linear-gradient(135deg, transparent 0 4px, var(--hatch) 4px 6px); border-right: 1px solid var(--line); }
.aside-title { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.aside-title .ico { width: 14px; height: 14px; vertical-align: 0; }
.aside-reasons { display: grid; gap: 3px; padding-left: 1.2em; list-style: disc; max-width: 64ch; }
.aside-reasons li::marker { color: var(--ink-3); }
.aside-still { color: var(--ink-2); font-size: 13.5px; }
.fcard.is-aside .fcard-letter { background: none; border: 1.5px dashed var(--ink-3); color: var(--ink-2); }
.tag.aside-tag { background: none; border: 1px dashed var(--ink-3); color: var(--ink-2); }

/* the focus view: the page dims and one brief sits in the middle */
.focus {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 28px 20px 14px;
  border: 0; background: var(--scrim); color: var(--ink); overflow: hidden; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  touch-action: pan-y; overscroll-behavior: contain; /* sideways moves are the swipe between briefs, never the browser's */
}
/* While it is open a sideways swipe is never the browser's "back" (the page behind is inert already). */
html:has(dialog.focus[open]), html:has(dialog.focus[open]) body { overscroll-behavior: none; }
/* touch-action only counts up to the nearest scroll container, so the brief text (its own scroller) needs it too:
   without this a sideways swipe on the text could also fire the browser's back gesture. */
.focus * { touch-action: pan-y; }
.focus[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; }
.focus::backdrop { background: none; }
.focus-stage { display: grid; grid-template-columns: 48px minmax(0, 680px) 48px; gap: 20px; align-items: center; justify-content: center; min-height: 0; height: 100%; }
.focus-keys { text-align: center; font-size: 12.5px; color: var(--on-scrim); }
.focus-nav { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--raised); color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; box-shadow: var(--shadow-md); }
.focus-nav .ico { width: 20px; height: 20px; }
.focus-nav:focus-visible { border-radius: 50%; }
.focus-nav[disabled] { opacity: .3; cursor: default; }
.fcard.in-focus:focus { outline: none; }
.fcard.in-focus { display: flex; flex-direction: column; height: 100%; max-height: 820px; min-height: 0; box-shadow: var(--shadow-lg); overflow: hidden; }
.in-focus .fcard-scroll { flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.in-focus .fcard-scroll:focus-visible { outline-offset: -2px; border-radius: 0; }
.strip { grid-area: strip; display: flex; justify-content: center; gap: 4px; min-width: 0; }
.dot { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line-2); background: none; color: var(--ink-3); font-size: 11.5px; font-weight: 650; padding: 0; cursor: pointer; }
.dot:focus-visible { border-radius: 50%; }
.dot.is-rated { background: var(--gold-soft); border-color: var(--gold-line); color: var(--gold); }
.dot[aria-current] { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.dot.is-aside { border-style: dashed; }
.dot.is-aside:not(.is-rated):not([aria-current]) { border-color: var(--ink-3); }
.dot.aside-first { margin-left: 10px; }
.dot[aria-current].is-rated { box-shadow: 0 0 0 2px var(--raised), 0 0 0 4px var(--gold-line); }
@keyframes slide-fwd { from { opacity: 0; transform: translateX(32px); } }
@keyframes slide-back { from { opacity: 0; transform: translateX(-32px); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.slide-fwd { animation: slide-fwd .22s ease-out; }
.slide-back { animation: slide-back .22s ease-out; }
.focus[open] .fcard { animation: rise .2s ease-out; }

/* the summary for raters, next to the brief on a wide screen and over its lower part otherwise */
.fsheet { display: flex; flex-direction: column; min-height: 0; background: var(--raised); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.fsheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 14px 12px 12px 20px; border-bottom: 1px solid var(--line); }
.fsheet-head .tldr-note { margin-top: 4px; }
.fsheet-body { overflow: auto; padding: 16px 20px 24px; overscroll-behavior: contain; }
.fsheet-body:focus-visible { outline-offset: -2px; }
@media (min-width: 1180px) {
  .focus-stage.has-sheet { grid-template-columns: 48px minmax(0, 360px) minmax(0, 680px) 48px; }
  .fsheet { height: 100%; max-height: 820px; }
}
@media (max-width: 1179px) {
  .fsheet { position: absolute; z-index: 3; left: 50%; bottom: 20px; transform: translateX(-50%); width: min(680px, calc(100% - 32px)); max-height: 70%; }
}

/* the rating controls: the foot of the card, always in view */
.fcard-rate { flex: none; display: grid; gap: 10px; padding: 14px 20px 16px; border-top: 1px solid var(--line); background: var(--sunk); }
.scores { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.score {
  display: grid; gap: 2px; align-content: start; justify-items: center; padding: 8px 6px 9px; min-height: 52px;
  border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); cursor: pointer; text-align: center;
}
.score:hover { border-color: var(--gold-line); background: var(--gold-soft); }
.score-n { font-size: 19px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.score-l { font-size: 11.5px; line-height: 1.3; color: var(--ink-2); text-wrap: balance; }
.score-s { display: none; font-size: 11px; line-height: 1.2; font-weight: 550; color: var(--ink-2); white-space: nowrap; }
.score[aria-pressed=true] .score-s { color: inherit; }
.score[disabled], .flag[disabled] { cursor: default; opacity: .6; }
.score[disabled]:hover { border-color: var(--line-2); background: var(--surface); }
.score[aria-pressed=true][disabled] { opacity: 1; }
.unsaved-note { border-color: var(--danger); font-size: 14px; }
.unsaved-note p { margin: 0; }
.closed-note { border-color: var(--line-2); background: var(--navy-soft); font-size: 14px; }
.score[aria-pressed=true] { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.score[aria-pressed=true] .score-l { color: inherit; opacity: .92; }
.said { display: none; font-size: 13px; color: var(--ink-3); }
.said.is-set { color: var(--ink); font-weight: 550; }
.rate-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rate-note { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; min-height: 20px; }
.rate-send { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.rate-send .input { resize: none; max-height: 96px; }
.next-btn { min-height: 42px; white-space: nowrap; }
.next-btn .ico { width: 15px; height: 15px; }
.flags { display: flex; flex-wrap: wrap; gap: 8px; }
.flag-more { margin-left: -4px; }
.flag { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 6px 12px 6px 9px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--surface); font-size: 13.5px; font-weight: 500; cursor: pointer; color: var(--ink-2); }
.flag:focus-visible { border-radius: 99px; }
.flag-box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: transparent; }
.flag-box .ico { width: 12px; height: 12px; }
.flag[aria-pressed=true] { border-color: var(--navy); background: var(--navy-soft); color: var(--ink); }
.flag[aria-pressed=true] .flag-box { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.rate-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 22px; flex-wrap: wrap; }
.status { font-size: 13px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 5px; }
.status .ico { width: 13px; height: 13px; }
.status.is-saving::after { content: '…'; }
.status.is-error { color: var(--danger); }

.pick { scroll-margin-top: 16px; }
.pick { display: grid; gap: 12px; }
.pick.is-locked .pick-row { opacity: .45; }
.pick-row { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 10px; }
.pick-name { font-weight: 650; font-size: 14px; }
.pick-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.pick-opt { width: 44px; height: 46px; display: grid; align-content: center; justify-items: center; gap: 0; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); cursor: pointer; padding: 0; }
.pick-opt[disabled] { cursor: default; }
.pick-letter { font-weight: 700; font-size: 14.5px; line-height: 1.2; }
.pick-score { font-size: 11px; color: var(--ink-3); line-height: 1.1; min-height: 12px; font-variant-numeric: tabular-nums; }
.pick-opt.is-aside { border-style: dashed; border-color: var(--ink-3); }
.pick-opt.is-aside .pick-letter { color: var(--ink-2); }
.pick-opt.is-aside[aria-pressed=true] .pick-letter { color: inherit; }
.pick-opt.aside-first { margin-left: 8px; }
.pick-opt[aria-pressed=true] { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.pick-opt[aria-pressed=true] .pick-score { color: inherit; opacity: .75; }

.comments { display: grid; gap: 14px; margin: 14px 0; }
.comments:empty { display: none; }
.comments li { padding-left: 12px; border-left: 2px solid var(--line-2); }
.comment-by { font-size: 13px; margin-bottom: 2px; }
.card > .input { margin: 12px 0 10px; }
.set-foot { display: grid; gap: 14px; margin-top: 8px; }
.set-foot-btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.done-line { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.done-line:empty { display: none; }
.done-mark { width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: var(--on-navy); display: grid; place-items: center; }
.done-mark .ico { width: 13px; height: 13px; }

/* ---------- dashboard */
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 20px; }
.dash-tools { display: flex; align-items: center; gap: 14px; }
.updated { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.updated.is-stale { color: var(--danger); }
.confirm { flex: 1 1 100%; padding: 14px 16px; display: grid; gap: 10px; border-color: var(--line-2); }
.confirm-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.dash-body { display: grid; gap: 16px; }
.raters { display: grid; gap: 10px; }
.raters li { display: grid; grid-template-columns: 72px 1fr 88px 40px; align-items: center; gap: 12px; font-size: 14px; }
.rater-name { font-weight: 600; }
.rater-n, .rater-pct { text-align: right; font-variant-numeric: tabular-nums; }
.raters .bar { height: 8px; }
.tabs { display: inline-flex; gap: 2px; padding: 3px; background: var(--sunk); border-radius: 10px; justify-self: start; max-width: 100%; margin-top: 8px; }
.tab { border: 0; background: none; padding: 7px 14px; border-radius: 8px; font-size: 14px; font-weight: 550; color: var(--ink-2); cursor: pointer; min-height: 36px; }
.tab[aria-pressed=true] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-tab); }
.scroll-x { overflow-x: auto; border-radius: 0 0 var(--r) var(--r); }
.scroll-x:focus-visible { outline-offset: -2px; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th { font-weight: 600; text-align: left; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sticky-col { position: sticky; left: 0; background: var(--surface); z-index: 1; }
.rank thead th, .grid thead th { font-size: 12px; color: var(--ink-3); font-weight: 600; padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rank td, .rank tbody th { padding: 10px 8px; border-bottom: 1px solid var(--line); }
.rank tbody tr:last-child > * { border-bottom: 0; }
.rank th:first-child, .rank td:first-child { padding-left: 20px; width: 44px; color: var(--ink-3); }
.rank > * > tr > :last-child { padding-right: 20px; }
.rank tbody th { font-weight: 400; min-width: 190px; }
.rank .code { display: inline-block; min-width: 30px; }
.recipe-name { margin-right: 8px; }
.tag-short { display: none; }
.why-line { display: block; margin: 2px 0 0 34px; font-size: 12px; line-height: 1.35; color: var(--ink-3); white-space: nowrap; }
.rank .aside-n { color: var(--ink-3); }
.rank .aside-n.has-aside .aside-n-k { color: var(--ink); font-weight: 650; }
.rank .is-few .aside-n.has-aside .aside-n-k { color: var(--ink-2); }
.sx-wrap { position: relative; }
.sx-wrap::before, .sx-wrap::after { content: ''; position: absolute; top: 0; bottom: 0; width: 28px; pointer-events: none; opacity: 0; transition: opacity .15s; z-index: 2; }
.sx-wrap::after { right: 0; background: linear-gradient(to left, var(--surface), transparent); border-radius: 0 0 var(--r) 0; }
.sx-wrap::before { left: 0; }
.sx-wrap.more-right::after { opacity: 1; }
.rank .adj { font-weight: 700; }
.rank .adj > span:first-child { display: inline-block; min-width: 34px; }
.meter { display: inline-block; width: 56px; height: 5px; border-radius: 99px; background: var(--sunk); margin-left: 8px; vertical-align: 2px; overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
.rank .is-few td, .rank .is-few .recipe-name { color: var(--ink-3); }
.rank .is-few .adj { font-weight: 500; }
.rank .is-few .meter > span { background: var(--ink-3); }

.grid-key { display: inline-flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; }
.legend { display: inline-flex; align-items: center; gap: 3px; font-variant-numeric: tabular-nums; }
.swatch { width: 16px; height: 12px; border-radius: 3px; }
.grid { width: auto; min-width: 100%; }
.grid thead th.num { text-align: center; padding: 8px 2px; }
.grid thead th:first-child, .grid tbody th { padding-left: 20px; }
.grid abbr { text-decoration: none; }
.grid tbody th { font-weight: 500; padding: 3px 12px 3px 20px; min-width: 170px; max-width: 240px; }
.cell-td { padding: 3px; min-width: 56px; }
.grid tr > :last-child { padding-right: 17px; }
.grid tbody tr:last-child > * { padding-bottom: 14px; }
.cell { display: grid; align-content: center; justify-items: center; height: 44px; border-radius: 7px; text-decoration: none; line-height: 1.15; background: none; border: 1px solid var(--line); color: var(--ink-3); }
.cell.is-filled { border: 0; }
/* a brief the system set aside: hatched and dashed, over whatever score colour the cell has */
.cell.is-aside { border: 1.5px dashed currentColor; background-image: repeating-linear-gradient(135deg, transparent 0 5px, color-mix(in srgb, currentColor 30%, transparent) 5px 6.5px); }
.swatch-aside { margin-left: 10px; border: 1px dashed var(--ink-3); background-image: repeating-linear-gradient(135deg, transparent 0 3px, var(--hatch) 3px 4.5px); }
.cell:hover { outline: 2px solid var(--navy); outline-offset: 1px; }
.cell-avg { font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.cell-n { font-size: 10.5px; opacity: .8; font-variant-numeric: tabular-nums; }

/* ---------- one brief */
.brief-page { display: grid; gap: 16px; }
.brief-page > .eyebrow { margin: 0; }
.brief-page > .h1 { margin-bottom: -10px; }
.back { display: inline-flex; align-items: center; gap: 6px; }
.code-fold { margin-top: 0; border-top: 0; border-bottom: 1px solid var(--line); padding: 12px 0; }
.code-fold:last-child { border-bottom: 0; padding-bottom: 0; }
.pre { margin: 0; padding: 14px 16px; background: var(--sunk); border-radius: 8px; font: 12.5px/1.6 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 520px; overflow: auto; }
.ratings li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.ratings li:last-child { padding-bottom: 0; }
.rating-score { width: 36px; height: 36px; border-radius: 9px; background: var(--gold); color: var(--on-gold); display: grid; place-items: center; font-weight: 700; font-size: 17px; }
.rating-main { display: grid; gap: 5px; min-width: 0; }
.rating-flags { display: flex; gap: 6px; flex-wrap: wrap; }
/* the system's rating: a hollow score box (people's scores are the filled gold ones) */
.sys-card { position: relative; overflow: hidden; }
.sys-card.is-aside { border-style: dashed; border-color: var(--line-2); padding-left: 32px; }
.sys-top { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 14px; }
.sys-score { width: 36px; height: 36px; border-radius: 9px; border: 1.5px solid var(--ink-3); display: grid; place-items: center; font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.sys-card.is-aside .sys-score { border-style: dashed; }
.sys-word { display: flex; align-items: center; gap: 6px; font-weight: 650; }
.sys-word .ico { width: 15px; height: 15px; vertical-align: 0; }
.sys-reasons { margin-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.sys-reasons li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 2px 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.sys-rule { color: var(--ink-3); }
.sys-method { margin-top: 12px; font-size: 13px; }
.sys-method-k { font-weight: 600; font-variant-numeric: tabular-nums; }


/* ---------- wide screens: the context stays put on the left, the deck sits on the right */
@media (min-width: 1000px) {
  main .set-layout { grid-template-columns: 340px minmax(0, 1fr); gap: 32px; align-items: start; }
  .context { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; border-radius: var(--r); }
}

@media (max-width: 720px) {
  main { padding: 20px 16px 64px; }
  .top-in { padding: 0 16px; gap: 10px; height: 52px; }
  .brand-sub, #who-name { display: none; }
  .nav a { padding: 0 8px; }
  .h1 { font-size: 21px; }
  .pad { padding: 16px; }
  .pad-x { padding: 14px 16px 10px; }
  .queue-head { margin-bottom: 24px; }
  .queue-head .btn.big { width: 100%; justify-content: space-between; }
  .set-row { grid-template-columns: 22px minmax(0, 1fr) auto; padding: 12px 14px; row-gap: 6px; }
  .set-int { display: none; }
  .set-by { display: inline; white-space: nowrap; }
  .set-prog { grid-template-columns: auto; justify-items: end; }
  .set-prog .bar { display: none; }
  .set-count { min-width: 0; }
  .who { gap: 10px; }
  .theme-btn { width: 32px; padding: 0; justify-content: center; }
  .theme-name { display: none; }
  .deck-head { grid-template-columns: minmax(0, 1fr); }
  .deck-head .btn { justify-content: space-between; min-height: 46px; }
  .tiles { gap: 10px; }
  .tile { min-height: 132px; }
  .tile-preview { -webkit-line-clamp: 2; }
  .tile.is-aside { min-height: 54px; grid-template-columns: 30px minmax(0, 1fr); }
  .tile.is-aside .tile-letter { grid-row: 1 / span 2; align-self: start; margin-top: 2px; }
  .tile.is-aside .tile-state { grid-column: 2; justify-content: flex-start; flex-wrap: wrap; }
  .tile-reason { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .aside-bar { padding: 8px 12px; gap: 8px; }
  .aside-note { padding-left: 4px; }
  .fcard-aside { margin: -16px -16px 16px; padding: 12px 16px 12px 28px; }
  .dot.aside-first { margin-left: 0; }
  .pick-opt.aside-first { margin-left: 0; }
  .why-line { margin-left: 0; max-width: 168px; overflow: hidden; text-overflow: ellipsis; }
  .sys-card.is-aside { padding-left: 28px; }
  .sys-reasons li { grid-template-columns: minmax(0, 1fr); }
  /* the focus view fills the screen: head and rating controls stay, the brief scrolls between them */
  .focus { padding: 0; }
  .focus[open] { grid-template-rows: minmax(0, 1fr); gap: 0; }
  .focus-stage { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .focus-nav, .focus-keys { display: none; }
  .fcard.in-focus { max-height: none; border: 0; border-radius: 0; }
  .in-focus .fcard-head { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "id about close" "strip strip strip" "lead lead lead"; gap: 8px 6px; padding: max(8px, env(safe-area-inset-top)) 10px 10px 14px; }
  .fcard.is-static .fcard-head { padding: 14px 16px; }
  .strip { justify-content: space-between; padding-right: 4px; }
  .dot { width: 28px; height: 28px; }
  .fcard-lead { font-size: 13.5px; }
  .about-long { display: none; }
  .about-short { display: inline; }
  .fcard-scroll { padding: 16px 16px 24px; }
  .fcard-body { font-size: 16.5px; line-height: 1.6; }
  .fcard-rate { gap: 8px; padding: 10px 12px max(10px, env(safe-area-inset-bottom)); }
  .flag { min-height: 36px; padding: 5px 11px 5px 8px; font-size: 13px; }
  .flag-more { display: none; }
  .rate-note { flex: 1 1 100%; margin: -2px 0 0; justify-content: space-between; min-height: 20px; }
  .said { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .fsheet { left: 0; right: 0; bottom: 0; transform: none; width: 100%; max-height: 80%; border-radius: 18px 18px 0 0; border-width: 1px 0 0; }
  .score { min-height: 50px; align-content: center; }
  .score-l { display: none; }
  .score-s { display: block; }
  .score { padding: 6px 2px 7px; gap: 1px; }
  .said { display: inline; }
  .score-n { font-size: 20px; }
  .facts.wide > div { grid-template-columns: 1fr; gap: 0; }
  .raters li { grid-template-columns: 60px 1fr auto; }
  .rater-pct { display: none; }
  .rank th:first-child, .rank td:first-child { padding-left: 14px; width: 34px; }
  .rank tbody th { min-width: 150px; }
  .rank tbody th { white-space: nowrap; }
  .rank .recipe-name { display: inline-block; max-width: 104px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; margin-right: 4px; }
  .rank .tag { padding: 1px 5px; }
  .tag-long { display: none; }
  .tag-short { display: inline; }
  .grid tbody th { min-width: 112px; max-width: 132px; padding-left: 14px; font-size: 12.5px; line-height: 1.25; }
  .grid thead th:first-child { padding-left: 14px; }
  .cell-td { min-width: 46px; padding: 2px; }
  .tabs { display: flex; }
  .tabs { overflow-x: auto; scrollbar-width: none; }
  .tab { flex: 1 1 auto; padding: 7px 10px; font-size: 12.5px; white-space: nowrap; }
  .pick-row { grid-template-columns: 1fr; gap: 6px; }
  .pick-opts { display: grid; grid-template-columns: repeat(var(--n, 7), minmax(0, 46px)); gap: 6px; }
  .pick-opt { width: auto; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
.dash-body, .brief-page, .set-layout, .set-main, .set-foot { grid-template-columns: minmax(0, 1fr); }
.btn.big { max-width: 100%; min-width: 0; }
.sub-co { display: block; font-size: 12px; font-weight: 400; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
