/* TownieTakes: "Flat Ink".
   The page is built from the Tally T: five flat colored strokes leaning at -12deg over one heavy stem.
   Caps and numerals: Big Shoulders Display (800, 900). Reading text: Figtree (400, 500, 700).
   Both SIL OFL 1.1, self-hosted in /fonts (see fonts/README.md and NOTICE). */

@font-face {
  font-family: "Big Shoulders Display";
  src: url("/fonts/big-shoulders-display-800.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Big Shoulders Display";
  src: url("/fonts/big-shoulders-display-900.woff2") format("woff2");
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- tokens: light is the default; dark via the switch or the device ---------- */
:root {
  /* the five strokes of the Tally T; text on them is always --on-color */
  --sky: #7cc4ff; --mint: #7bd389; --gold: #ffd23f; --pink: #ff8fc7; --violet: #a78bfa;
  --on-color: #1d2421; --gold-hover: #ffe078;

  --ground: #f1ede2; --paper: #faf8f2; --ink: #1d2421; --muted: #48524d; --line: #cdc7b6;
  --plane: var(--sky); --on-plane: #1d2421;
  --bar: #26302c; --on-bar: #f1ede2; --bar-muted: #c9c5b8; --bar-focus: #ffd23f; --bar-err: #ffb3bf;
  --s1: var(--mint); --s2: var(--gold); --s3: var(--pink); --s4: var(--violet); --s5: #26302c;
  /* mark inks: mark-light.svg on paper, mark.svg on dark */
  --m1: #1f6fb2; --m2: #2e8540; --m3: #9a6a00; --m4: #c2224f; --m5: #6a4fd1; --mstem: #26302c;
  --focus: #1f6fb2; --err: #b3261e;

  --caps: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --sans: "Figtree", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: 1rem;
  /* type scale (owner-approved 2026-10-10): every font-size names one of these roles; the big display sizes
     that scale with the screen (poster, card count, page titles) stay as tuned */
  --type-meta: 0.8125rem;
  --type-small: 0.9375rem;
  --type-body: 1rem;
  --type-lead: 1.125rem;
  --type-label: 1.25rem;
  --type-name: 1.375rem;
  --type-title-sm: 1.5rem;
  --type-title: 1.75rem;
  --type-heading: 2rem;
  --type-heading-lg: 2.75rem;
  /* THE LEAN: every pastel plane is a parallelogram, like the Tally T's strokes. This is the horizontal
     offset of each plane's leaning edge (big slabs use twice it). Tune the whole look with this one
     number; 0 gives square rectangles back. The Go button keeps its own fixed 0.7rem slant. */
  --lean: 0.75rem;
  --ring-inner: #f1ede2;   /* the off-white inner line of a focus ring on a pastel plane */
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #161b19; --paper: #1f2723; --ink: #f1ede2; --muted: #b9b6ab; --line: #3b4641;
    --plane: var(--violet); --on-plane: #161b19;
    --bar: #f1ede2; --on-bar: #161b19; --bar-muted: #48524d; --bar-focus: #1f6fb2; --bar-err: #a3161f;
    --s1: var(--sky); --s2: var(--mint); --s3: var(--gold); --s4: var(--pink); --s5: #f1ede2;
    --m1: #7cc4ff; --m2: #7bd389; --m3: #ffd23f; --m4: #ff8fc7; --m5: #a78bfa; --mstem: #f1ede2;
    --focus: #ffd23f; --err: #ff8fa3;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #161b19; --paper: #1f2723; --ink: #f1ede2; --muted: #b9b6ab; --line: #3b4641;
  --plane: var(--violet); --on-plane: #161b19;
  --bar: #f1ede2; --on-bar: #161b19; --bar-muted: #48524d; --bar-focus: #1f6fb2; --bar-err: #a3161f;
  --s1: var(--sky); --s2: var(--mint); --s3: var(--gold); --s4: var(--pink); --s5: #f1ede2;
  --m1: #7cc4ff; --m2: #7bd389; --m3: #ffd23f; --m4: #ff8fc7; --m5: #a78bfa; --mstem: #f1ede2;
  --focus: #ffd23f; --err: #ff8fa3;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--type-body);
  line-height: 1.5;
  font-variant-numeric: lining-nums;
  caret-color: var(--focus);
  overflow-wrap: break-word;
}
::selection { background: var(--gold); color: var(--on-color); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 3px; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: 0.55; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
html { scrollbar-color: var(--muted) var(--ground); }

.wrap { max-width: 80rem; margin: 0 auto; padding: 0 var(--gutter); }
.bleed { margin: 0 calc(-1 * var(--gutter)); }

/* ---------- masthead: the Tally T lockup + theme switch ---------- */
.top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  /* ISS-17: a 0.25rem column gap lets the switch share the lockup's row from 375px up
     (lockup 200 + gap 4 + switch 132 = 336 of 343), so Home's first screen loses a 58px line */
  gap: 0.5rem 0.25rem; padding: 0.625rem 0 0.875rem;
}
.brand { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; min-height: 44px; min-width: 0; }
.mark { width: 2.2rem; height: 2.6rem; flex: none; }
.lockup { display: block; min-width: 0; }
.wordmark {
  /* a logotype: capped by the viewport so very large text settings can't push it off a phone */
  display: block; font-family: var(--caps); font-weight: 900; font-size: min(1.875rem, 9.5vw);
  line-height: 0.9; text-transform: uppercase; letter-spacing: 0.01em;
}
.locale { display: block; font-size: var(--type-meta); color: var(--muted); font-weight: 500; }
/* The switch is quiet: three small words in muted Figtree, the chosen one in ink with a 2px underline,
   so it never reads as a starting point (outside review, 2026-09-28). Still three real buttons with
   aria-pressed and 44px targets; the underline, not color alone, marks the choice. */
.theme { display: flex; gap: 0; }
.theme button {
  min-width: 44px; min-height: 44px; border: 0; background: none; padding: 0 0.375rem; color: var(--muted);
  font-family: var(--sans); font-weight: 500; font-size: var(--type-meta); line-height: 1;
  text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 0.35em;
}
.theme button:hover { color: var(--ink); text-decoration-color: var(--line); }
.theme button[aria-pressed="true"] { color: var(--ink); font-weight: 700; text-decoration-color: currentColor; }
.theme button:focus-visible { outline-offset: -2px; position: relative; z-index: 1; }
/* sign-in (Clerk, owner pick A 2026-11-15): one more quiet word after the theme switch, past a hairline; signed in,
   Clerk's account button takes its place. The two travel together so a wrap never splits them. */
.tools { display: flex; align-items: center; margin-left: auto; }
.account { display: flex; align-items: center; }
.account::before { content: ""; width: 1px; height: 1.125rem; background: var(--line); margin: 0 0.25rem; }
.account-in {
  white-space: nowrap; min-width: 44px; min-height: 44px; border: 0; background: none; padding: 0 0.375rem; color: var(--ink);
  font-family: var(--sans); font-weight: 700; font-size: var(--type-meta); line-height: 1;
  text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 2px; text-underline-offset: 0.35em;
}
.account-in:hover, .account-in[aria-expanded="true"] { text-decoration-color: currentColor; }
.account-in:focus-visible { outline-offset: -2px; }
.account-user:empty { display: none; }
.account-user { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.signin { margin: 0 0 1rem; }
.signin-box { margin-top: 0.75rem; min-height: 6rem; }
/* our "Sign in" head and line say what Clerk's first step would; later steps keep Clerk's own heading, which names
   where the code went and lets you change the address */
#signin-box .cl-signIn-start .cl-header, #signin-box .cl-signUp-start .cl-header { display: none; }
/* narrow phones with sign-in showing (owner pick B, 2026-11-15): logo + switch + "Sign in" need 397px, so the switch
   moves to the footer and the masthead keeps the one row ISS-17 won; wider screens and sign-in-off pages are unchanged */
.foot-theme { display: none; align-items: center; margin-left: -0.375rem; }
.foot-theme-label { color: var(--muted); font-size: var(--type-meta); padding: 0 0.375rem; }
@media (max-width: 27rem) {
  .tools:has(.account:not([hidden])) .theme { display: none; }
  .tools:has(.account:not([hidden])) .account::before { display: none; }
  body:has(#account:not([hidden])) .foot-theme { display: flex; }
}

/* ---------- test mode (labs.js, phase plan section 1): one calm line above the masthead, invited phones only ---------- */
/* The can't-check line's voice: a single leaning ink stroke from the Tally T, caps name, a muted sentence, and an
   underlined way out. No plane, no color (the five colors mean rank), a hairline under it. Never on share images. */
.labs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.75rem;
  margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); border-bottom: 1px solid var(--line);
}
.labs-name {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px;
  font-family: var(--caps); font-weight: 800; font-size: var(--type-lead); line-height: 1; letter-spacing: 0.03em;
  text-transform: uppercase; color: var(--ink);
}
.labs-name::before {
  content: ""; flex: none; width: 0.3125rem; height: 1.05em; background: var(--ink); transform: skewX(-12deg);
}
/* phones keep it to one 44px row: the name and the way out; the sentence joins from 40rem */
.labs-note { display: none; font-size: var(--type-meta); font-weight: 500; line-height: 1.3; color: var(--muted); }
@media (min-width: 40rem) { .labs-note { display: block; } }
.labs-off { font-size: var(--type-small); margin-left: auto; }
@media print { .labs { display: none; } }

/* ---------- the poster: one flat plane, one line, a horizon of five strokes ---------- */
.poster { background: var(--plane); color: var(--on-plane); position: relative; overflow: hidden; }
.poster-in { position: relative; padding: 1rem calc(1rem + var(--lx, 0px)) 0; min-height: 15rem; display: flex; flex-direction: column; }
.imperative {
  margin: 0; position: relative; z-index: 1;
  font-family: var(--caps); font-weight: 900; text-transform: uppercase;
  /* capped by the poster's own width (19cqi; "not Reviews." is about 5em wide), like the wordmark,
     so each line holds whole on a 320px phone even at a 200% text setting */
  font-size: min(3.75rem, 19cqi); letter-spacing: 0.005em;
  line-height: 1.04;   /* room for the comma's long tail above "not Reviews." */
  /* long words hyphenate at a syllable where the device has a dictionary (phones do) */
  overflow-wrap: break-word; hyphens: auto;   /* hyphenate where the device can; break rather than clip */
}
/* the brand line (owner, 2026-09-28): two set lines, "Relevance," over "not Reviews." */
.imp-line { display: block; }
/* the promise under it, in reading type: a sentence, so never caps. It stops short of the skyline. */
.subline {
  margin: 0.875rem 0 0; position: relative; z-index: 1; max-width: 21ch;
  font-size: var(--type-lead); line-height: 1.35; font-weight: 500; text-wrap: pretty;
}
/* the skyline is the poster's horizon: the words sit above it, never on it */
/* (both in px: the strokes are a picture, so a big text setting grows the words, not the horizon) */
/* ISS-17: a lower horizon (80px strokes, words 76px above the foot; the tallest stroke still clears them by 8px) */
.poster-in { padding-bottom: 76px; container-type: inline-size; }
.skyline { position: absolute; right: var(--lx, 0px); bottom: 0; width: 62%; height: 80px; }

/* ---------- the caption bar: the ask, the status, where to go next ---------- */
.caption { background: var(--bar); color: var(--on-bar); padding: 1rem; }
.caption :focus-visible { outline-color: var(--bar-focus); }
.ask-label {
  display: block; margin-bottom: 0.25rem; color: var(--bar-muted);
  font-family: var(--caps); font-weight: 800; text-transform: uppercase; font-size: var(--type-lead); letter-spacing: 0.03em;
}
.field { display: flex; gap: 0.5rem; align-items: stretch; border-bottom: 2px solid var(--on-bar); }
/* The request wraps and grows instead of scrolling sideways, so a phone user can see the whole
   request and tap its end to add to it (friend feedback 2026-09-27). */
.field textarea {
  flex: 1; min-width: 0; min-height: 3.25rem; padding: 0.8rem 0 0.6rem; margin: 0;
  background: none; border: 0; color: var(--on-bar); caret-color: var(--bar-focus); font: inherit;
  font-size: var(--type-label); line-height: 1.3; resize: none; overflow: hidden; field-sizing: content;
}
.field textarea::placeholder { color: var(--bar-muted); opacity: 1; font-style: italic; }
.field textarea:focus-visible { outline: none; }
.field:focus-within { border-bottom-color: var(--bar-focus); box-shadow: 0 2px 0 var(--bar-focus); }
/* the box keeps a readable width; with very large text the mic and Go drop under it instead of squeezing it */
.field { flex-wrap: wrap; }
.field textarea { flex: 1 1 8rem; }
.field .ask-mic, .field .ask-go { align-self: flex-end; }
/* voice: the browser turns speech into text in the box, like typing; we never get or keep audio */
.ask-mic {
  flex: none; display: grid; place-items: center; width: max(44px, 2.75rem); min-height: 3.25rem; margin: 0 0 0.5rem auto; padding: 0;
  border: 0; background: none; color: var(--on-bar);
}
.ask-mic svg { width: max(26px, 1.625rem); height: max(26px, 1.625rem); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; }
.ask-mic:hover { background: color-mix(in srgb, var(--on-bar) 14%, transparent); }
.ask-mic:focus-visible { outline-offset: -3px; }
.ask-mic[aria-pressed="true"] { background: var(--pink); color: var(--on-color); }
.ask-mic[aria-pressed="true"] .mic-body { fill: currentColor; }
.ask-go {
  flex: none; min-width: 5rem; min-height: 3.25rem; margin-bottom: 0.5rem; border: 0;
  background: var(--gold); color: var(--on-color);
  font-family: var(--caps); font-weight: 900; font-size: var(--type-title-sm); text-transform: uppercase;
  clip-path: polygon(0.7rem 0, 100% 0, calc(100% - 0.7rem) 100%, 0 100%);
}
.ask-go:hover { background: var(--gold-hover); }
.ask-go:focus-visible { outline: none; background: var(--on-bar); color: var(--bar); }
.consent {
  display: flex; align-items: center; gap: 0.625rem; min-height: 44px; margin-top: 0.375rem;
  font-size: var(--type-small); color: var(--bar-muted);
}
.consent input { width: 1.25rem; height: 1.25rem; margin: 0; flex: none; accent-color: var(--gold); }
/* "We keep your words" (owner, 2026-09-28): one quiet line under the box, home only, with a way out.
   The choice lives on this device and rides along with every search, from any view. */
.keep { margin-top: 0.5rem; font-size: var(--type-small); line-height: 1.4; color: var(--bar-muted); max-width: 46rem; }
.keep-line { margin: 0; text-wrap: pretty; }
.keep-acts { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.25rem; }
.keep-acts .barlink { display: inline-flex; align-items: center; font-weight: 700; }
body[data-view="results"] .keep { display: none; }
/* Place names while typing (owner, 2026-09-28): a short list in the bar's own flow, under the box.
   Nothing floats over the page, and the results band's clipped edges can't cut it off. Rows lean
   like the Go button; the highlighted one fills with the bar's ink (on the band: on-plane, like the
   path chips). Names line up with the typed text. */
.suggest { list-style: none; margin: 0.375rem -1rem 0.25rem; padding: 0; max-width: 46rem; }
.suggest-opt {
  --sl: calc(var(--lean) * 0.75);
  display: flex; flex-direction: column; justify-content: center; gap: 0.1875rem;
  min-height: 3.25rem; padding: 0.5rem 1rem; cursor: pointer;
  clip-path: polygon(var(--sl) 0, 100% 0, calc(100% - var(--sl)) 100%, 0 100%);
}
.suggest-opt + .suggest-opt { border-top: 1px solid color-mix(in srgb, var(--on-bar) 28%, transparent); }
.suggest-name {
  font-family: var(--caps); font-weight: 900; text-transform: uppercase; font-size: var(--type-label);
  line-height: 1; letter-spacing: 0.01em; overflow-wrap: anywhere;
}
.suggest-meta { font-size: var(--type-small); line-height: 1.35; color: var(--bar-muted); overflow-wrap: anywhere; }
.suggest-opt:hover { background: color-mix(in srgb, var(--on-bar) 14%, transparent); }
.suggest-opt[aria-selected="true"] { background: var(--on-bar); color: var(--bar); border-top-color: transparent; }
.suggest-opt[aria-selected="true"] + .suggest-opt { border-top-color: transparent; }
.suggest-opt[aria-selected="true"] .suggest-meta { color: var(--bar); }
@media (forced-colors: active) { .suggest-opt[aria-selected="true"] { outline: 3px solid Highlight; outline-offset: -3px; } }
.cap-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.25rem; font-size: var(--type-small); color: var(--bar-muted); }
.cap-meta:has(.status:empty):has(.board-nav[hidden]) { display: none; }
.status { margin: 0; padding: 0.5rem 0 0; }
.status:empty { padding: 0; }
.status.is-error { color: var(--bar-err); font-weight: 700; }
.board-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.25rem; flex: 1 1 100%; min-width: 0; max-width: 100%; }
.earlier { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0 1rem; min-width: 0; max-width: 100%; }
.earlier-list { display: flex; flex-wrap: wrap; gap: 0 1rem; min-width: 0; max-width: 100%; }
.barlink {
  min-height: 44px; border: 0; background: none; padding: 0; color: var(--on-bar); font-weight: 700;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; text-align: left;
}
.barlink:hover { text-decoration-thickness: 3px; }
/* a long earlier request wraps, never cut off (round 4) */
.earlier-item { max-width: 22rem; overflow-wrap: anywhere; line-height: 1.25; padding-block: 0.375rem; }

/* ---------- results: the slim band (owner's pick, "Option B", 2026-09-27) ----------
   After a search the big poster steps aside and the caption bar turns into a slim band in the plane
   color (sky light, violet dark). The request shows once, in the box itself, so it stays editable;
   the status line and Start over / Earlier sit in the band, and the five strokes shrink to a small
   accent at its bottom right. #1's gold slab starts well inside the first phone screen. */
.cap-foot { display: block; }
.band-sky { display: none; }
body[data-view="results"] .poster { display: none; }
body[data-view="results"] .caption {
  --bar: var(--plane); --on-bar: var(--on-plane); --bar-muted: var(--on-plane);
  --bar-focus: var(--on-plane); --bar-err: var(--on-plane);
  position: relative; padding: 0.5rem calc(1rem + var(--lx, 0px) / 2) 0 calc(1rem + var(--lx, 0px));
}
/* the heading stays for screen readers ("Picks for: ...") and takes focus after a search; the band shows it */
body[data-view="results"] .caption:has(.request:focus-visible)::after { display: block; background: var(--on-plane); }
/* the band's edges are slanted and clipped, so rings inside it sit inside their control */
body[data-view="results"] .caption .barlink:focus-visible { outline-offset: -3px; }
body[data-view="results"] .ask-label {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
body[data-view="results"] .field textarea { font-weight: 500; }
body[data-view="results"] .field textarea::selection { background: var(--on-plane); color: var(--plane); }
/* Go turns ink with gold letters: a gold block would all but vanish on sky or violet */
body[data-view="results"] .ask-go { background: var(--on-plane); color: var(--gold); }
body[data-view="results"] .ask-go:hover { background: color-mix(in srgb, var(--on-plane) 85%, var(--plane)); color: var(--gold-hover); }
body[data-view="results"] .ask-go:focus-visible { background: var(--gold); color: var(--on-color); }
body[data-view="results"] .consent input { accent-color: var(--on-plane); }
body[data-view="results"] .cap-foot { display: flex; align-items: flex-end; gap: 0.75rem; }
body[data-view="results"] .cap-meta { flex: 1 1 auto; min-width: 0; padding-bottom: 0.25rem; }
body[data-view="results"] .band-sky { display: block; flex: none; width: min(4.5rem, 18vw); height: min(3rem, 12vw); margin-right: calc(-0.25rem - var(--lx, 0px) / 2); }

/* ---------- section heads ---------- */
.sec {
  font-family: var(--caps); font-weight: 800; text-transform: uppercase; font-size: var(--type-title-sm);
  line-height: 1; letter-spacing: 0.01em; margin: 2rem 0 0.875rem;
}
.ideas-lead:focus-visible { outline-offset: 4px; }

/* ---------- starter ideas: five flat sheets in the mark's colors ---------- */
.sheets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9rem), 1fr)); gap: 0.625rem; }
.sheets li:first-child { grid-column: 1 / -1; }
.sheets li:nth-child(1) { --c: var(--gold); }
.sheets li:nth-child(2) { --c: var(--mint); }
.sheets li:nth-child(3) { --c: var(--pink); }
.sheets li:nth-child(4) { --c: var(--sky); }
.sheets li:nth-child(5) { --c: var(--violet); }
.what {
  width: 100%; height: 100%; min-height: 6rem; border: 0; padding: 0.75rem calc(0.75rem + var(--lx, 0px));
  background: var(--c); color: var(--on-color); text-align: left;
  display: flex; flex-direction: column; justify-content: space-between; gap: 0.75rem;
  font-family: var(--caps); font-weight: 800; text-transform: uppercase; font-size: var(--type-title-sm); line-height: 0.95;
}
.what { text-wrap: balance; }
.what small { font-family: var(--sans); text-transform: none; font-weight: 700; font-size: var(--type-meta); line-height: 1.3; letter-spacing: 0; }

/* ---------- Help me decide, step one: "What sounds good?" (friend feedback, 2026-09-27) ----------
   The second way in, after the box (outside review, 2026-09-28): eight short sheets, still in the
   mark's colors because friends said they "clicked", but low and compact so they don't compete with
   the box. Two columns on a phone (one with very large text), four across on wide. */
.what-heading { margin-bottom: 0.375rem; }
.what-heading:focus-visible { outline-offset: 4px; }
.what-note { margin: 0 0 0.875rem; color: var(--muted); font-size: var(--type-small); max-width: 60ch; }
.whats { grid-template-columns: repeat(auto-fill, minmax(min(100%, 8.5rem), 1fr)); }
.whats li:first-child { grid-column: auto; }
.sheets li:nth-child(6) { --c: var(--gold); }
.sheets li:nth-child(7) { --c: var(--mint); }
.sheets li:nth-child(8) { --c: var(--pink); }
.whats .what { min-height: 3.75rem; justify-content: flex-start; gap: 0.25rem; padding-block: 0.5rem 0.625rem; font-size: min(1.375rem, 9vw); }

/* the typed examples: only after a search that found nothing, above the sheets, as a way back in */
.tries { list-style: none; margin: 0; padding: 0; max-width: 48rem; border-top: 1.5px solid var(--line); }
.try {
  display: block; width: 100%; min-height: 44px; padding: 0.625rem 0; border: 0; border-bottom: 1.5px solid var(--line);
  background: none; color: var(--ink); text-align: left;
  font-family: var(--caps); font-weight: 800; text-transform: uppercase; font-size: var(--type-name); line-height: 1.05; letter-spacing: 0.01em;
}
.try:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.12em; }

/* ---------- Help me decide: the path in the band ----------
   Tapped answers read as the request, one ink chip each, and each one can be taken back. */
body[data-mode="decide"] .ask { display: none; }
.path { list-style: none; margin: 0; padding: 0.25rem 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.path-chip {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0 0.75rem; border: 0;
  background: var(--on-bar); color: var(--bar);
  font-family: var(--caps); font-weight: 800; text-transform: uppercase; font-size: var(--type-label); line-height: 1; letter-spacing: 0.02em;
}
.path-chip svg { width: 0.75rem; height: 0.75rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: square; }
.path-chip:hover { background: color-mix(in srgb, var(--on-bar) 82%, var(--bar)); }
.path-chip:focus-visible { outline-offset: 2px; }

/* ---------- Help me decide: the one question worth asking, the dials, the mood map ---------- */
.decide { margin-top: 1rem; padding-bottom: 1.25rem; border-bottom: 1.5px solid var(--ink); }
.step-q {
  margin: 0; font-family: var(--caps); font-weight: 900; text-transform: uppercase;
  font-size: var(--type-title); line-height: 1; letter-spacing: 0.005em;
}
.step-q:focus-visible { outline-offset: 4px; }
.step-note { margin: 0.375rem 0 0; color: var(--muted); font-size: var(--type-small); max-width: 50ch; }
.chips { list-style: none; margin: 0.75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.chip {
  min-height: 44px; padding: 0 0.875rem; border: 1.5px solid var(--ink); background: none; color: var(--ink);
  font-family: var(--caps); font-weight: 800; text-transform: uppercase; font-size: var(--type-label); line-height: 1; letter-spacing: 0.02em;
}
.chip:hover { background: color-mix(in srgb, var(--ink) 12%, transparent); }
.chip-enough { margin-left: 0.5rem; }
.decide[aria-busy="true"] .chip, .decide[aria-busy="true"] .quad { cursor: progress; }

/* Where and When: two quiet dials in the band, part of the request; each change re-ranks the board */
.dials { display: none; }
body[data-mode="decide"] .dials { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.25rem; }
.dial { display: inline-flex; align-items: center; gap: 0.5rem; }
/* the values say it ("Anywhere in town", "Lunch"); the names stay for screen readers */
.dial-name {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.dial-box { position: relative; display: inline-flex; }
.dial-box::after {   /* the chevron: drawn, not a glyph */
  content: ""; position: absolute; right: 0.75rem; top: 50%; width: 0.45rem; height: 0.45rem; pointer-events: none;
  border-right: 2px solid var(--on-bar); border-bottom: 2px solid var(--on-bar); transform: translateY(-70%) rotate(45deg);
}
.dial select {
  appearance: none; -webkit-appearance: none; field-sizing: content; min-height: 44px; padding: 0 2rem 0 0.625rem; margin: 0;
  border: 1.5px solid var(--on-bar); border-radius: 0; background: transparent; color: var(--on-bar);
  font-family: var(--caps); font-weight: 800; text-transform: uppercase; font-size: var(--type-lead); letter-spacing: 0.02em; line-height: 1;
}
.dial select:hover { background: color-mix(in srgb, var(--on-bar) 12%, transparent); }
.dial select:focus-visible { outline-offset: 2px; }
/* very large text on a small phone: a long value shortens instead of pushing the page sideways */
.dial, .dial-box { max-width: 100%; min-width: 0; }
.dial select { max-width: 100%; min-width: 0; text-overflow: ellipsis; }
.dial select option { font-family: var(--sans); text-transform: none; background: var(--paper); color: var(--ink); }

/* round 4 (owner-approved 2026-10-09): the five come first, the map right after them */
.moodmap-wrap { margin-top: 2rem; padding-top: 0.75rem; border-top: 1.5px solid var(--ink); }
.moodmap-toggle {
  display: inline-flex; align-items: center; gap: 0.625rem; min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink);
  font-family: var(--caps); font-weight: 800; text-transform: uppercase; font-size: var(--type-name); letter-spacing: 0.02em; line-height: 1;
}
.moodmap-toggle::after {
  content: ""; width: 0.5rem; height: 0.5rem; margin-top: -0.25rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.moodmap-toggle[aria-expanded="true"]::after { transform: translateY(0.3rem) rotate(-135deg); }
.moodmap-toggle:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.15em; }
.moodmap { margin-top: 0.25rem; }

/* The plot: four tappable corners. Each corner's name sits in a band along the top or bottom edge,
   and the dots live only in the middle rows, so a dot can never cover a name. Hairline axes. */
.plot {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 6.5rem 6.5rem auto;
  border: 1.5px solid var(--ink); background: var(--paper);
}
.quad { display: block; padding: 0; border: 0; margin: 0; background: none; color: var(--ink); min-width: 0; min-height: 44px; }
.quad.q-tl { grid-area: 1 / 1 / 3 / 2; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quad.q-tr { grid-area: 1 / 2 / 3 / 3; border-bottom: 1px solid var(--line); }
.quad.q-bl { grid-area: 3 / 1 / 5 / 2; border-right: 1px solid var(--line); }
.quad.q-br { grid-area: 3 / 2 / 5 / 3; }
/* Round 4: each end is named once. The up axis's two ends sit mid-band at the top and bottom, the
   across axis's two under the map; each corner shows only how many places sit in it. The corner
   buttons keep their full names ("Lean toward Quiet and Linger, 6 places") for screen readers. */
.mm-band {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 0 0.5rem;
  padding: 0.375rem 0.625rem; pointer-events: none; position: relative; z-index: 2;
}
.b-top { grid-area: 1 / 1 / 2 / 3; }
.b-bottom { grid-area: 4 / 1 / 5 / 3; align-self: end; }
.mm-end {
  padding: 0 0.25rem; background: var(--paper);
  font-family: var(--caps); font-weight: 800; text-transform: uppercase; font-size: var(--type-body); line-height: 1.05; letter-spacing: 0.02em;
}
.mm-count { font-size: var(--type-meta); font-weight: 600; line-height: 1.2; color: var(--muted); }
.mm-count.c-r { text-align: right; }
.mm-count.is-on, .mm-count.is-leaned { color: var(--ink); font-weight: 700; }
.mm-count.is-leaned { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.15em; }
.plot:has(.q-tl:hover) .b-top .c-l, .plot:has(.q-tr:hover) .b-top .c-r,
.plot:has(.q-bl:hover) .b-bottom .c-l, .plot:has(.q-br:hover) .b-bottom .c-r { color: var(--ink); }
.mm-axis {
  display: flex; justify-content: space-between; gap: 1rem; margin: 0.25rem 0 0; padding: 0 0.125rem;
  font-family: var(--caps); font-weight: 800; text-transform: uppercase; font-size: var(--type-body); line-height: 1.05; letter-spacing: 0.02em;
}
button.quad:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
button.quad:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
/* dots sit in an inner field so the ones at 0 or 1 never hang off the edge */
.plot-field { grid-area: 2 / 1 / 4 / 3; position: relative; margin: 1rem 1.375rem; pointer-events: none; z-index: 1; }
.dot {
  position: absolute; width: 6px; height: 14px; margin: -7px 0 0 -3px;
  background: var(--muted); transform: skewX(-12deg);
}
.dot.is-limited { background: none; box-shadow: inset 0 0 0 1.5px var(--muted); }
.dot.is-pick {
  width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; border: 0; background: none; box-shadow: none;
  transform: none; display: grid; place-items: center; pointer-events: auto; z-index: 1;
}
.dot-face {
  display: grid; place-items: center; min-width: 1.75rem; height: 1.875rem; padding: 0 0.25rem;
  background: var(--c, var(--gold)); color: var(--on-color); border: 2px solid var(--ink);
  font-family: var(--caps); font-weight: 900; font-size: var(--type-label); line-height: 1; transform: skewX(-12deg);
}
.dot.rank-1 { --c: var(--gold); z-index: 6; }
.dot.rank-2 { --c: var(--mint); z-index: 5; }
.dot.rank-3 { --c: var(--pink); z-index: 4; }
.dot.rank-4 { --c: var(--sky); z-index: 3; }
.dot.rank-5 { --c: var(--violet); z-index: 2; }
.dot.is-pick.is-limited .dot-face { background: var(--paper); color: var(--ink); }
.dot.is-pick:hover .dot-face { outline: 2px solid var(--ink); }
.dot.is-pick:focus-visible { outline: none; }
.dot.is-pick:focus-visible .dot-face { outline: 3px solid var(--focus); outline-offset: 2px; }
/* Round 2 (owner-approved 2026-10-04): the next places in line get names beside their strokes; a name
   that can't sit cleanly goes to the "Also close" line. Figtree on a paper knockout, so no hairline cuts it. */
.nm {
  position: absolute; white-space: nowrap; pointer-events: none; z-index: 2;
  padding: 1px 2px; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-weight: 600; font-size: var(--type-meta); line-height: 1.05; letter-spacing: 0.005em;
}
.nm.is-hollow { color: var(--muted); font-weight: 500; }
.dot.is-near { background: var(--ink); }
.dot.is-near.is-limited { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }
/* after a lean the axes stay put: the leaned corner gets a light shade and its name an underline */
.quad.is-leaned { background: color-mix(in srgb, var(--ink) 8%, transparent); }
button.quad.is-leaned:hover { background: color-mix(in srgb, var(--ink) 12%, transparent); }
/* look first (round 4): the open corner is shaded and framed; its next places carry letters A to E */
.quad.is-peek { background: color-mix(in srgb, var(--ink) 9%, transparent); outline: 2px solid var(--ink); outline-offset: -2px; }
button.quad.is-peek:hover { background: color-mix(in srgb, var(--ink) 13%, transparent); }
button.quad.is-peek:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.lt {
  position: absolute; z-index: 3; width: 22px; height: 22px; margin: -11px 0 0 -11px; display: grid; place-items: center;
  background: var(--ink); color: var(--paper); transform: skewX(-12deg); pointer-events: auto; cursor: pointer;
  font-family: var(--caps); font-weight: 900; font-size: var(--type-small); line-height: 1;
}
.lt.is-on { outline: 3px solid var(--focus); outline-offset: 2px; }
/* a pick stepped far from its true spot keeps a short tick at that spot, pointing toward it */
.lead { position: absolute; z-index: 0; height: 2px; margin-top: -1px; background: var(--ink); transform-origin: 0 50%; }

.peek { margin-top: 0.75rem; padding: 0.75rem 1rem 0.5rem; border: 1.5px solid var(--ink); background: var(--paper); }
.peek-h {
  margin: 0; font-family: var(--caps); font-weight: 900; text-transform: uppercase; font-size: var(--type-name); line-height: 1;
}
.peek-h:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.peek-sub { margin: 0.375rem 0 0.25rem; font-size: var(--type-small); color: var(--muted); }
.peek-list { list-style: none; margin: 0; padding: 0; }
.peek-list li { display: flex; align-items: center; gap: 0.75rem; }
.peek-list li + li { border-top: 1px solid var(--line); }
.peek-list .peek-row { flex: 1; min-width: 0; }
/* round 6: a next-in-line place opens on its own page */
.peek-open {
  flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.25rem;
  font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em;
}
.peek-open:hover { text-decoration-thickness: 3px; }
.peek-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.75rem; width: 100%; min-height: 44px; padding: 0.375rem 0;
  border: 0; background: none; color: var(--ink); text-align: left;
}
.peek-row:hover .peek-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.12em; }
.peek-row:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.peek-row[aria-pressed="true"] { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.peek-letter {
  flex: none; display: grid; place-items: center; width: 1.625rem; height: 1.625rem; margin-left: 0.25rem;
  background: var(--ink); color: var(--paper); transform: skewX(-12deg);
  font-family: var(--caps); font-weight: 900; font-size: var(--type-body); line-height: 1;
}
.peek-row[aria-pressed="true"] .peek-letter { outline: 3px solid var(--focus); outline-offset: 2px; }
.peek-name { flex: 1 1 8rem; min-width: 0; font-family: var(--caps); font-weight: 900; text-transform: uppercase; font-size: var(--type-label); line-height: 1; overflow-wrap: anywhere; }
.peek-meta { flex-basis: 100%; padding-left: 2.625rem; font-size: var(--type-meta); color: var(--muted); }   /* under the name, past the letter */
.peek-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; margin: 0.625rem 0 0.25rem; }

/* the key, drawn with the map's own marks */
.plot-key { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1rem; margin: 0.375rem 0 0; font-size: var(--type-small); color: var(--muted); }
.lg { display: inline-flex; align-items: center; gap: 0.375rem; white-space: nowrap; }
.lg i { flex: none; transform: skewX(-12deg); }
.lg-pick { width: 0.875rem; height: 0.875rem; background: var(--gold); border: 1.5px solid var(--ink); }
.lg-dot { width: 4px; height: 0.75rem; background: var(--muted); }
.lg-dot.is-hollow { width: 5px; background: none; box-shadow: inset 0 0 0 1.5px var(--muted); }
.mm-note { margin: 0.125rem 0 0; font-size: var(--type-small); line-height: 1.4; color: var(--muted); max-width: 60ch; }
.mm-note b { color: var(--ink); font-weight: 700; }

/* "Compare by": two pickers always in view above the map (owner, 2026-10-04). Each name sits in a notch
   on its top border, so the row costs one control's height. The suggested pairs open each list. */
.mm-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 0.75rem; }
.compare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.5rem; margin: 0.5rem 0 0.625rem; }
.pk { position: relative; display: block; min-width: 0; }
.pk-name {
  position: absolute; z-index: 1; top: 0; left: 0.5rem; transform: translateY(-50%); padding: 0 0.25rem; pointer-events: none;
  background: var(--ground); color: var(--muted); font-family: var(--sans); font-weight: 600; font-size: var(--type-meta); line-height: 1;
}
.pk-box { position: relative; display: block; min-width: 0; }
.pk-box::after {   /* the chevron: drawn, not a glyph */
  content: ""; position: absolute; right: 0.625rem; top: 50%; width: 0.4rem; height: 0.4rem; pointer-events: none;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg);
}
.pk select {
  appearance: none; -webkit-appearance: none; width: 100%; min-height: 44px; padding: 0.125rem 1.625rem 0 0.625rem; margin: 0;
  border: 1.5px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); text-overflow: ellipsis;
  font-family: var(--caps); font-weight: 800; text-transform: uppercase; font-size: var(--type-body); letter-spacing: 0.02em; line-height: 1;
}
.pk select:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.pk select:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.pk select optgroup { font-family: var(--sans); font-style: normal; font-weight: 700; text-transform: none; background: var(--paper); color: var(--ink); }
.pk select option { font-family: var(--sans); font-weight: 400; text-transform: none; background: var(--paper); color: var(--ink); }

/* ---------- home, lower: the example answer and earlier boards ---------- */
.sample-note { margin: 0 0 0.75rem; color: var(--muted); font-size: var(--type-small); max-width: 60ch; }
.sample-req {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem;
  margin: 0 0 0.75rem; padding: 0.625rem calc(1rem + var(--lx, 0px)); background: var(--plane); color: var(--on-plane);
  text-decoration: none; position: relative;
}
.sample-q { font-family: var(--caps); font-weight: 900; text-transform: uppercase; font-size: min(1.75rem, 11vw); line-height: 1; hyphens: auto; }
/* the plate is a real link (it runs this search), so it says so in words */
.sample-run { font-weight: 700; font-size: var(--type-small); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
.sample-req:hover .sample-run { text-decoration-thickness: 3px; }
.sample-req:focus-visible { outline: none; }
.sample-text > p { margin: 0; }
.sample-reasons { margin: 0.25rem 0 0.125rem; display: flex; flex-wrap: wrap; gap: 0.125rem 1.125rem; font-size: var(--type-small); }
.sample-reasons .reason { gap: 0.5rem; }
.sample-reasons .tick { height: 0.8125rem; width: 4px; }
.sample-own { margin: 0.5rem 0 0; }
.sample-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; container-type: inline-size; }
@container pick (max-width: 15rem) {
  .pick .plane { flex-direction: column; align-items: stretch; gap: 0.25rem; }
}
@container (max-width: 18rem) {
  .sample-list > li:nth-child(n) { grid-template-columns: minmax(0, 1fr); }
}
.sample-list > li { display: grid; grid-template-columns: calc(3.25rem + var(--lean)) minmax(0, 1fr); align-items: stretch; }
.sample-list > li:nth-child(1) { --c: var(--gold); }
.sample-list > li:nth-child(2) { --c: var(--mint); }
.sample-list > li:nth-child(3) { --c: var(--pink); }
.sample-list > li:nth-child(4) { --c: var(--sky); }
.sample-list > li:nth-child(5) { --c: var(--violet); }
.sample-list .num {
  display: flex; align-items: flex-start; justify-content: center; padding: 0.375rem 0 0 var(--lx, 0px);
  background: var(--c); color: var(--on-color); font-size: 2.25rem;
}
.sample-text { display: flex; flex-direction: column; gap: 0.125rem; padding: 0.375rem 0 0.625rem 0.75rem; border-bottom: 1.5px solid var(--line); }
.sample-name { font-family: var(--caps); font-weight: 900; text-transform: uppercase; font-size: var(--type-name); line-height: 1.05; hyphens: auto; }
.sample-take { font-weight: 500; max-width: 62ch; }
.sample-kind { font-size: var(--type-small); color: var(--muted); }

.history-list { list-style: none; margin: 0 0 0.25rem; padding: 0; }
.history-item {
  display: block; width: 100%; min-height: 44px; padding: 0.5rem 0; border: 0; border-bottom: 1.5px solid var(--line);
  background: none; text-align: left; font-weight: 500;
}
.history-item:hover { text-decoration: underline; text-underline-offset: 0.2em; }
/* wide screens only (round 4): the other real examples, as their requests, beside the one showing */
.ex-more { display: none; }
.ex-note { margin: 0 0 0.5rem; color: var(--muted); font-size: var(--type-small); }
.ex-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.ex-list li + li .ex-pick { border-top: 1px solid var(--line); }
.ex-pick {
  display: block; width: 100%; min-height: 44px; padding: 0.625rem 0.25rem; border: 0; background: none; color: var(--ink); text-align: left;
  font-family: var(--caps); font-weight: 800; text-transform: uppercase; font-size: var(--type-label); line-height: 1.05; letter-spacing: 0.01em;
}
.ex-pick:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.15em; }
.ex-pick:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
/* the one showing: a leaning ink stroke beside it, and ink weight; never color alone */
.ex-pick[aria-pressed="true"] { position: relative; padding-left: 1.25rem; font-weight: 900; }
.ex-pick[aria-pressed="true"]::before {
  content: ""; position: absolute; left: 0.25rem; top: 0.625rem; bottom: 0.625rem; width: 5px; background: var(--ink); transform: skewX(-12deg);
}

/* ---------- the board: five picks, rank carried by size and place ---------- */
.num { font-family: var(--caps); font-weight: 900; line-height: 0.8; font-variant-numeric: lining-nums; }
.picks {
  list-style: none; margin: 1.25rem 0 0; padding: 0;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem 0.75rem;
  align-items: start;
}
.pick { min-width: 0; container-type: inline-size; container-name: pick; }
.pick:first-child, .pick.is-open { grid-column: 1 / -1; }
.pick:nth-child(1) { --c: var(--gold); }
.pick:nth-child(2) { --c: var(--mint); }
.pick:nth-child(3) { --c: var(--pink); }
.pick:nth-child(4) { --c: var(--sky); }
.pick:nth-child(5) { --c: var(--violet); }

.tag { display: block; width: 100%; border: 0; padding: 0; background: none; color: var(--ink); text-align: left; }
/* phones: number and name side by side on the stripe; the take reads full width below */
.plane {
  display: flex; flex-direction: row; align-items: flex-end; gap: 0.75rem;
  min-height: 4.5rem; padding: 0.625rem calc(0.75rem + var(--lx, 0px)); background: var(--c); color: var(--on-color);
}
.plane .num { font-size: 3rem; flex: none; }
.plane .tag-name { padding-bottom: 0.0625rem; }
.tag-name {
  display: block; font-family: var(--caps); font-weight: 900; text-transform: uppercase;
  font-size: var(--type-title-sm); line-height: 0.95; hyphens: auto;
  min-width: 0; overflow-wrap: break-word;   /* whole words first; hyphenate at syllables when it must */
}
.tag-text { display: block; }
.take { display: block; margin-top: 0.5rem; font-size: var(--type-small); font-weight: 500; line-height: 1.4; hyphens: auto; }
/* a local's take carries a quiet credit line: "— a local" or "— Sam, IU '27" */
.take-by { display: block; margin-top: 0.125rem; font-size: var(--type-meta); font-weight: 500; line-height: 1.3; color: var(--muted); }
/* "Fits because": the board's reasons, each led by one leaning tally stroke (the details' tallies, quieter) */
.fits { display: block; margin-top: 0.5rem; }
.fits-seen { display: block; font-size: var(--type-small); font-weight: 500; line-height: 1.45; overflow-wrap: anywhere; }
.fits-lead { font-weight: 700; margin-right: 0.25rem; }
.fit-first { white-space: nowrap; }
.fit-first::before {
  content: ""; display: inline-block; width: 4px; height: 0.75em; margin: 0 0.4em 0 0.75em; vertical-align: -0.05em;
  background: currentColor; transform: skewX(-12deg);
}
.take + .fits { margin-top: 0.375rem; }
.pick:first-child .fits-seen { font-size: var(--type-small); }
.tag-meta { display: block; margin-top: 0.25rem; font-size: var(--type-small); color: var(--muted); }
.tag-flags { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: 0.375rem; }
.flag {
  display: inline-block; padding: 0.0625rem 0.4rem; border: 1.5px solid currentColor;
  font-family: var(--caps); font-weight: 800; text-transform: uppercase; font-size: var(--type-small); letter-spacing: 0.03em; line-height: 1.3;
}
.tag:hover .tag-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.12em; }

/* When every pick is "Limited info" the board is a plain, compact list (owner, 2026-09-27): no gold
   slab crowning a guess, smaller stripes, and the one note above the list explains the label once. */
.picks.is-compact { gap: 0.75rem; max-width: 48rem; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
.picks.is-compact .pick:first-child { grid-column: auto; grid-row: auto; }
.picks.is-compact .pick:first-child .tag { background: none; color: var(--ink); padding: 0; }
.picks.is-compact .pick .plane,
.picks.is-compact .pick:first-child .plane {
  flex-direction: row; align-items: flex-end; justify-content: flex-start; gap: 0.625rem; min-height: 3rem;
  padding: 0.5rem calc(0.75rem + var(--lx, 0px)); background: var(--c); color: var(--on-color);
}
.picks.is-compact .pick .plane .num,
.picks.is-compact .pick:first-child .plane .num { font-size: 2.25rem; }
.picks.is-compact .pick .tag-name,
.picks.is-compact .pick:first-child .tag-name { font-size: var(--type-label); line-height: 0.95; margin-top: 0; }
.picks.is-compact .pick:first-child .take { font-size: var(--type-small); margin-top: 0.5rem; }
.picks.is-compact .pick:first-child .tag-meta { color: var(--muted); font-weight: 400; font-size: var(--type-small); }
.picks.is-compact .flag-limited { display: none; }

/* #1: the whole answer on one gold plane */
.pick:first-child .tag { background: var(--c); color: var(--on-color); padding: 1rem calc(1rem + var(--lx, 0px)) 1.125rem; }
.pick:first-child .plane { flex-direction: column; align-items: stretch; gap: 0; padding: 0; min-height: 0; background: none; }
.pick:first-child .plane .num { font-size: 6.5rem; }
.pick:first-child .tag-name { font-size: clamp(1.75rem, 9vw, 2.75rem); line-height: 0.92; margin-top: 0.25rem; }
.pick:first-child .take { font-size: var(--type-lead); margin-top: 0.625rem; }
.pick:first-child .tag .take-by { color: var(--on-color); font-size: var(--type-small); margin-top: 0.25rem; }
.pick:first-child .tag-meta { color: var(--on-color); font-weight: 500; font-size: var(--type-small); margin-top: 0.375rem; }

/* ---------- the lean: every pastel plane is a parallelogram (friend feedback, 2026-09-27) ----------
   Clipped, not skewed, so letters stay upright and crisp. --lx is each plane's slant (from --lean);
   its inline padding adds --lx so nothing is ever cut by a leaning edge. All planes lean the same way
   as the Tally T's ticks (/), so stacked stripes read as parallel tally strokes, not a zigzag. */
.poster, body[data-view="results"] .caption, .what, .sample-req, .sample-list .num, .plane,
.pick:first-child .tag, .page .draft {
  --lx: var(--lean);
  clip-path: polygon(var(--lx) 0, 100% 0, calc(100% - var(--lx)) 100%, 0 100%);
}
.poster, .pick:first-child .tag { --lx: min(calc(var(--lean) * 2), 7vw); }   /* big slabs: a slant that still shows */
.pick:first-child .plane { clip-path: none; }                        /* #1's plane sits inside its slanted slab */
.picks.is-compact .pick:first-child .tag { --lx: 0px; clip-path: none; }
.picks.is-compact .pick:first-child .plane { --lx: var(--lean); clip-path: polygon(var(--lx) 0, 100% 0, calc(100% - var(--lx)) 100%, 0 100%); }
/* under #1's slanted foot, the opened panel gets its own top rule (none when the lean is 0) */
.picks:not(.is-compact) .pick:first-child .details { border-top: clamp(0px, var(--lean) * 100, 1.5px) solid var(--ink); }

/* Rings that follow the slant: clip-path would cut an outline, so hover and focus draw a
   parallelogram frame inside the plane (::after, 3px on-color). Keyboard focus adds an off-white
   inner line (::before), so it reads apart from hover and is 5.8:1 or better on all five colors. */
.what, .plane, .pick:first-child .tag { position: relative; }
.what::before, .what::after, .plane::before, .plane::after, .sample-req::before, .sample-req::after,
.pick:first-child .tag::before, .pick:first-child .tag::after, body[data-view="results"] .caption::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; display: none;
  --a: 0px; --b: 3px; background: var(--on-color);
  clip-path: polygon(evenodd,
    calc(var(--lx, 0px) + var(--a)) var(--a), calc(100% - var(--a)) var(--a),
    calc(100% - var(--lx, 0px) - var(--a)) calc(100% - var(--a)), var(--a) calc(100% - var(--a)),
    calc(var(--lx, 0px) + var(--a)) var(--a),
    calc(var(--lx, 0px) + var(--b)) var(--b), calc(100% - var(--b)) var(--b),
    calc(100% - var(--lx, 0px) - var(--b)) calc(100% - var(--b)), var(--b) calc(100% - var(--b)),
    calc(var(--lx, 0px) + var(--b)) var(--b));
}
.what::before, .plane::before, .pick:first-child .tag::before, .sample-req::before { --a: 3px; --b: 6px; background: var(--ring-inner); }
.sample-req::after { background: var(--on-plane); }
.sample-req:hover::after, .sample-req:focus-visible::after, .sample-req:focus-visible::before,
.what:hover::after,
.pick:not(:first-child) .tag:hover .plane::after,
.picks.is-compact .tag:hover .plane::after,
.picks:not(.is-compact) .pick:first-child .tag:hover::after { display: block; }
.what:focus-visible, .tag:focus-visible { outline: none; }
.what:focus-visible::before, .what:focus-visible::after,
.pick:not(:first-child) .tag:focus-visible .plane::before, .pick:not(:first-child) .tag:focus-visible .plane::after,
.picks.is-compact .tag:focus-visible .plane::before, .picks.is-compact .tag:focus-visible .plane::after,
.picks:not(.is-compact) .pick:first-child .tag:focus-visible::before,
.picks:not(.is-compact) .pick:first-child .tag:focus-visible::after { display: block; }
.tag:focus-visible .tag-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.12em; }

/* ---------- an opened pick: go, then why, then tell us ---------- */
.details { background: var(--paper); border: 1.5px solid var(--ink); border-top: 0; padding: 1rem; }
.pick:not(:first-child) .details { border-top: 1.5px solid var(--ink); margin-top: 0.75rem; }
.details > * + * { margin-top: 0.875rem; }
.details p { margin-bottom: 0; max-width: 65ch; }
.exits { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.375rem 1.25rem; max-width: 100%; text-align: center;
  border: 1.5px solid var(--ink); background: none; color: var(--ink); text-decoration: none;
  font-family: var(--caps); font-weight: 800; text-transform: uppercase; font-size: var(--type-label); letter-spacing: 0.02em; line-height: 1;
}
.btn:hover { background: color-mix(in srgb, var(--ink) 12%, transparent); text-decoration: none; }
.btn-primary { background: var(--ink); color: var(--ground); }
.btn-primary:hover { background: var(--muted); border-color: var(--muted); }
.btn-small { min-height: 44px; font-size: var(--type-lead); padding: 0 1rem; }
.btn[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.addr { color: var(--muted); font-size: var(--type-small); }
/* Call · Website · Share: quiet text actions under Directions, 44px tall targets */
.next-steps { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin: 0.25rem 0 0; }
.next-steps a, .next-steps .linkish {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0;
  border: 0; background: none; color: var(--ink); cursor: pointer;
  font: 700 1rem/1 var(--sans); text-decoration: underline; text-underline-offset: 0.2em;
}
.next-steps a:hover, .next-steps .linkish:hover { text-decoration-thickness: 2px; }
.why-lead { font-family: var(--caps); font-weight: 800; text-transform: uppercase; font-size: var(--type-name); line-height: 1; }
.details .why-lead + .reasons { margin-top: 0.5rem; }
.reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.reason { display: flex; align-items: center; gap: 0.625rem; font-weight: 500; }
.reason.is-fact { font-weight: 700; }   /* "Thai food", "Drinks": a fact about the place, so no tally */
.ticks { display: inline-flex; gap: 3px; flex: none; padding-left: 2px; }
.tick { width: 5px; height: 1rem; box-shadow: inset 0 0 0 1.5px var(--muted); transform: skewX(-12deg); }
.tick.on { background: var(--ink); box-shadow: none; }
.desc { color: var(--ink); }
/* locals' takes in an opened pick: one head, each take in the take voice with its muted credit under it */
.ctake-list { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
.details .ctake p { margin: 0; }
.ctake-text { font-weight: 500; }
.details .ctake .take-by { font-size: var(--type-small); margin-top: 0.125rem; }
.more { border-top: 1px solid var(--line); }
.more summary {
  min-height: 44px; display: flex; align-items: center; gap: 1rem; font-weight: 700; list-style: none;
}
.more summary::-webkit-details-marker { display: none; }
.more summary::after {
  content: ""; margin-left: auto; margin-right: 0.25rem; flex: none; width: 0.5rem; height: 0.5rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-25%) rotate(45deg);
}
.more[open] summary::after { transform: translateY(25%) rotate(-135deg); }
.more summary:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.more dl { margin: 0.25rem 0 0.5rem; display: grid; gap: 0.375rem; }
.more dl div { display: flex; flex-wrap: wrap; gap: 0 0.75rem; }
.more dt { flex: 0 0 6rem; }
.more dd { flex: 1 1 12rem; min-width: 0; }
.more dt { font-family: var(--caps); font-weight: 800; text-transform: uppercase; font-size: var(--type-body); color: var(--muted); letter-spacing: 0.02em; }
.more dd { margin: 0; }
.facts {
  list-style: none; margin: 0.25rem 0 0.75rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem;
  font-family: var(--caps); font-weight: 800; text-transform: uppercase; font-size: var(--type-label); line-height: 1.2;
}
.fact.no { color: var(--muted); }

.tell { border-top: 1px solid var(--line); padding-top: 0.625rem; }
.tell-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.tell-q { margin: 0 0.5rem 0 0; font-family: var(--caps); font-weight: 800; text-transform: uppercase; font-size: var(--type-name); line-height: 1; }
.tell-lead { margin-top: 1rem; }
.tell-reasons { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.375rem; }
.tell-phrase { flex: 1 1 10rem; min-width: 0; font-weight: 500; }

/* ---------- the in-app map ---------- */
.board-map {
  position: relative; block-size: 18rem; border: 1.5px solid var(--ink); background: var(--ground);
  display: grid; place-items: center; color: var(--muted); overflow: hidden;
}
.board-map.maplibregl-map { display: block; }
.board-map .maplibregl-canvas:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.board-map.is-failed { padding: 0 1.25rem; text-align: center; }
.map-pin { inline-size: 44px; block-size: 44px; padding: 0; border: 0; background: none; display: grid; place-items: center; cursor: pointer; }
.pin-face {
  display: grid; place-items: center; min-inline-size: 1.75rem; block-size: 1.875rem; padding: 0 0.25rem;
  background: var(--c, var(--gold)); color: var(--on-color); border: 2px solid var(--ink);
  font-family: var(--caps); font-weight: 900; font-size: var(--type-label); line-height: 1;
  transform: skewX(-12deg);
}
.map-pin.rank-1 { --c: var(--gold); }
.map-pin.rank-2 { --c: var(--mint); }
.map-pin.rank-3 { --c: var(--pink); }
.map-pin.rank-4 { --c: var(--sky); }
.map-pin.rank-5 { --c: var(--violet); }
.map-pin:hover .pin-face { outline: 2px solid var(--ink); }
.map-pin:focus-visible { outline: none; }
.map-pin:focus-visible .pin-face { outline: 3px solid var(--focus); outline-offset: 2px; }
.map-pin.is-chosen { inline-size: auto; block-size: auto; cursor: default; z-index: 1; }
.map-pin.is-chosen .pin-face { block-size: 2.5rem; min-inline-size: 2.25rem; font-size: var(--type-title); background: var(--ink); color: var(--ground); border-color: var(--c); border-width: 3px; }
.board-map .maplibregl-ctrl.maplibregl-ctrl-attrib,
.board-map .maplibregl-ctrl-attrib.maplibregl-compact-show { background: var(--paper); color: var(--ink); font-family: var(--sans); }
.board-map .maplibregl-ctrl.maplibregl-ctrl-attrib a { color: var(--ink); }
.board-map .maplibregl-ctrl-attrib .maplibregl-ctrl-attrib-button { background-color: var(--paper); }
.board-map .maplibregl-cooperative-gesture-screen { background: color-mix(in srgb, var(--ground) 82%, transparent); color: var(--ink); font: inherit; font-size: var(--type-body); }

/* ---------- not what you expected ---------- */
/* one plain line under the board whenever a pick carries "Limited info" (readiness review:
   first-time visitors saw the label with no explanation) */
/* a detail the request asked for that we can't check (round 3): one calm line at the top of the board, above the
   mood map and the picks, led by a single leaning ink stroke from the Tally T; no box, no color (the five colors
   mean rank) */
.cant-check {
  display: flex; align-items: baseline; gap: 0.625rem; margin: 1.25rem 0 0; max-width: 40rem;
  font-size: var(--type-body); font-weight: 500; line-height: 1.4; color: var(--ink); text-wrap: pretty;
}
.cant-check::before {
  content: ""; flex: none; width: 0.3125rem; height: 1.05em; background: var(--ink);
  transform: translateY(0.18em) skewX(-12deg);
}
.limited-note { margin: 1.25rem 0 1rem; max-width: 40rem; font-size: var(--type-small); color: var(--muted); }
.limited-note strong { color: var(--ink); font-weight: 700; }
.miss { margin-top: 2rem; padding-top: 1rem; border-top: 1.5px solid var(--ink); max-width: 40rem; }
.miss-line { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 1rem; }
.miss-thanks { color: var(--ink); font-weight: 700; }
.miss-thanks:empty { display: none; }
.linkbtn {
  min-height: 44px; border: 0; background: none; padding: 0; font-weight: 700; color: var(--ink); max-width: 100%; text-align: left;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em;
}
.linkbtn:hover { text-decoration-thickness: 3px; }
.hope-label { display: block; font-weight: 700; margin: 0.25rem 0 0.5rem; }
.hope-text {
  display: block; width: 100%; min-height: 4.5rem; resize: vertical; padding: 0.625rem;
  border: 1.5px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink);
}
.hope-text:focus-visible { outline-offset: 2px; }
.hope-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; margin: 0.5rem 0; font-size: var(--type-small); color: var(--muted); }
.hope-count { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); }
.hope-status { display: inline-block; margin-left: 0.75rem; color: var(--muted); }

/* ---------- check-ins: the friends-only pilot (owner-approved 2026-10-02) ----------
   Shown only on invited phones. One quiet entry under the box, "I'm here" in an opened pick,
   and a paper panel under the bar for the welcome, "Where are you?" and table-tent scans. */
/* Entry A (owner pick 2026-10-04): two outlined, leaning plates right under the box, "Check in" and
   "Your card" with a tiny eight-slot card. Outlined, never filled, so Go stays the one solid button in
   the bar. Built from the bar's own tokens, so both themes follow. Home only, like the links they replace. */
.pilot-acts {
  grid-column: 1 / -1; display: grid; gap: 0.5rem 0.625rem; margin: 0.75rem 0 0.125rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
  /* the mini card's strokes: pastels on the dark bar, the mark's own inks on the light bar (dark theme) */
  --pa1: var(--sky); --pa2: var(--mint); --pa3: var(--gold); --pa4: var(--pink); --pa5: var(--violet);
}
:root[data-theme="dark"] .pilot-acts { --pa1: #1f6fb2; --pa2: #2e8540; --pa3: #9a6a00; --pa4: #c2224f; --pa5: #6a4fd1; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pilot-acts { --pa1: #1f6fb2; --pa2: #2e8540; --pa3: #9a6a00; --pa4: #c2224f; --pa5: #6a4fd1; }
}
body[data-view="results"] .pilot-acts { display: none; }
.pa-btn {
  --pl: calc(var(--lean) * 0.75);
  position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: center; align-items: center;
  gap: 0.125rem 0.5rem; min-height: 3.25rem; padding: 0.375rem calc(0.75rem + var(--pl)); border: 0; text-align: left; cursor: pointer;
  background: var(--on-bar); color: var(--on-bar);
  clip-path: polygon(var(--pl) 0, 100% 0, calc(100% - var(--pl)) 100%, 0 100%);
}
/* a 2px leaning outline: the plate in on-bar, its face in the bar color, so it reads as a line, not a fill */
.pa-btn::before {
  content: ""; position: absolute; inset: 2px; z-index: -1; background: var(--bar);
  clip-path: polygon(calc(var(--pl) - 1px) 0, 100% 0, calc(100% - var(--pl) + 1px) 100%, 0 100%);
}
.pa-btn:hover::before { background: color-mix(in srgb, var(--on-bar) 14%, var(--bar)); }
/* rings follow the slant: the frame turns the bar's focus color and thickens */
.pa-btn:focus-visible { outline: none; background: var(--bar-focus); }
.pa-btn:focus-visible::before { inset: 4px; }
.pa-name { grid-column: 1 / -1; font-family: var(--caps); font-weight: 900; text-transform: uppercase; font-size: var(--type-name); line-height: 0.95; letter-spacing: 0.01em; }
.pa-sub { grid-column: 1; font-size: var(--type-meta); font-weight: 500; color: var(--bar-muted); line-height: 1.25; }
/* the mini card: the card's eight kinds in its own order, four across; a kind with a place is inked */
.mini { grid-column: 2; grid-row: 2; display: inline-grid; grid-template-columns: repeat(4, 0.5rem); grid-auto-rows: 0.4375rem; gap: 2px 3px; }
.mini i { display: block; transform: skewX(-12deg); box-shadow: inset 0 0 0 1px var(--bar-muted); }
.mini i.on { box-shadow: none; background: var(--c); }
.mini i.c1 { --c: var(--pa1); }
.mini i.c2 { --c: var(--pa2); }
.mini i.c3 { --c: var(--pa3); }
.mini i.c4 { --c: var(--pa4); }
.mini i.c5 { --c: var(--pa5); }
@media (forced-colors: active) {
  .pa-btn { border: 2px solid ButtonText; }
  .mini i.on { background: ButtonText; }
}

/* Share your card (owner-approved 2026-10-04): one button under the gold slab, a panel in place, and the
   image drawn on the phone. The preview is the real image, scaled: what you see is what gets shared. */
.sh-row { margin: 0.75rem 0 0; }
.sh-open { width: 100%; }
.sh { margin-top: 0.75rem; padding: 1rem; background: var(--paper); border: 1.5px solid var(--ink); }
.sh-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.sh-head .tt-h3:focus-visible { outline-offset: 4px; }
.sh-close { font-size: var(--type-small); }
.sh-body { display: grid; grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr); gap: 1rem; margin-top: 0.5rem; align-items: start; }
.sh-prev { margin: 0; outline: 1.5px solid var(--ink); background: #1d2421; }
.sh-prev img { display: block; width: 100%; height: auto; }
.sh-opts { display: grid; gap: 0.875rem; }
.sh-group { display: grid; gap: 0.375rem; }
.sh-sub { margin: 0; font-family: var(--caps); font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; font-size: var(--type-body); line-height: 1.2; }
.sh-pick {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0.125rem;
  min-height: 52px; padding: 0.375rem 0.75rem; border: 1.5px solid var(--ink); background: none; color: var(--ink); text-align: left; cursor: pointer;
  font-family: var(--caps); font-weight: 900; text-transform: uppercase; font-size: var(--type-label); line-height: 1;
}
.sh-pick small { font-family: var(--sans); font-weight: 500; text-transform: none; font-size: var(--type-meta); line-height: 1.2; color: var(--muted); }
.sh-pick:hover { background: color-mix(in srgb, var(--ink) 10%, transparent); }
.sh-pick[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.sh-pick[aria-pressed="true"] small { color: var(--ground); }
.sh-pick:focus-visible { outline-offset: 2px; }
.sh-names { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.625rem; align-items: start; min-height: 44px; cursor: pointer; }
.sh-names input { width: 1.375rem; height: 1.375rem; margin: 0.125rem 0 0; accent-color: var(--ink); }
.sh-names input:focus-visible { outline-offset: 2px; }
.sh-names b { display: block; font-weight: 700; line-height: 1.3; }
.sh-names small { display: block; color: var(--muted); font-size: var(--type-meta); font-weight: 500; line-height: 1.3; margin-top: 0.125rem; }
.sh-go { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; margin: 1rem 0 0; }
.sh-go .btn-primary { flex: 1 1 12rem; }
.sh-note { margin: 0.625rem 0 0; color: var(--muted); font-size: var(--type-small); max-width: 40ch; }
.sh-why { color: var(--ink); font-weight: 500; }
.sh-status { margin: 0.375rem 0 0; font-weight: 700; }
.sh-status:empty { display: none; }

.checkin {
  position: relative; margin-top: 1.25rem; max-width: 40rem; padding: 1rem;
  background: var(--paper); border: 1.5px solid var(--ink);
}
.ci-close { position: absolute; top: 0.25rem; right: 1rem; font-size: var(--type-small); }
.checkin .ci-head { margin-right: 4rem; }
.ci-head { margin: 0; font-family: var(--caps); font-weight: 900; text-transform: uppercase; font-size: var(--type-title-sm); line-height: 1; letter-spacing: 0.005em; text-wrap: balance; }
.ci-head:focus-visible { outline-offset: 4px; }
.ci-text { margin: 0.5rem 0 0; max-width: 55ch; text-wrap: pretty; }
.ci-note { margin: 0.375rem 0 0; color: var(--muted); font-size: var(--type-small); max-width: 55ch; }
.ci-working { margin: 0; color: var(--muted); font-weight: 500; }
.ci-err { margin: 0.375rem 0 0; color: var(--err); font-weight: 700; }
.ci-err:empty { display: none; }
.ci-acts { margin: 1rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; }
.ci-acts a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* "Good for...?": a question, then Yes / No. Tap again to take it back. */
.ci-qs { list-style: none; margin: 0.625rem 0 0; padding: 0; display: grid; }
.ci-q { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding: 0.375rem 0; border-bottom: 1px solid var(--line); }
.ci-q-text { flex: 1 1 7.5rem; min-width: 0; font-weight: 600; }
.ci-q .vote { min-width: 3.75rem; padding: 0 0.75rem; }

/* a quick take: suggested words as chips (one at a time), or your own */
.ci-words { margin-top: 0.75rem; }
/* coming back (2026-11-01): the one question about this visit, then its choices */
.ci-back-q { display: block; margin: 0.875rem 0 0; }
.ci-back { margin-top: 0.5rem; }
.ci-back + .ci-qs { margin-top: 1.25rem; border-top: 1px solid var(--line); }   /* the place questions are their own group */
.ci-last { margin: 0.5rem 0 0; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.chip:focus-visible { outline-offset: 2px; }
.ci-own-label { display: block; margin: 1rem 0 0.375rem; font-weight: 700; }
.ci-own {
  display: block; width: min(100%, 20rem); min-height: 48px; padding: 0.5rem 0.625rem; border-radius: 0;
  border: 1.5px solid var(--ink); background: var(--ground); color: var(--ink);
}
.ci-own:focus-visible { outline-offset: 2px; }
.ci-own-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: stretch; }
.ci-own-row .ci-own { flex: 1 1 12rem; }
/* "Make it a take": a roomy box with the mic beside it, then up to three takes as the same chips */
.ci-tell-row { display: flex; gap: 0.5rem; align-items: flex-start; }
.ci-tell-text {
  flex: 1 1 auto; min-width: 0; min-height: 7.5rem; resize: vertical; padding: 0.625rem; border-radius: 0;
  border: 1.5px solid var(--ink); background: var(--ground); color: var(--ink); font: inherit; line-height: 1.45;
}
.ci-tell-text::placeholder { color: var(--muted); opacity: 1; }
.ci-tell-text:focus-visible { outline-offset: 2px; }
.ci-mic {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border: 1.5px solid var(--ink); background: none; color: var(--ink);
}
.ci-mic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; }
.ci-mic:hover { background: color-mix(in srgb, var(--ink) 12%, transparent); }
.ci-mic:focus-visible { outline-offset: 2px; }
.ci-mic[aria-pressed="true"] { background: var(--pink); border-color: var(--pink); color: var(--on-color); }
.ci-mic[aria-pressed="true"] .mic-body { fill: currentColor; }
.ci-status { margin: 0.5rem 0 0; color: var(--muted); font-size: var(--type-small); max-width: 55ch; }
.ci-status:empty { display: none; }
.ci-status.is-err { color: var(--err); font-weight: 700; }
.ci-take-chips { margin-top: 0.5rem; }
.ci-tell-row + .ci-note + .ci-acts { margin-top: 0.75rem; }
.ci-found { margin-top: 0.25rem; }
.ci-found-q { margin: 0.75rem 0 0; font-family: var(--caps); font-weight: 900; text-transform: uppercase; font-size: var(--type-name); line-height: 1.05; }

/* "Where are you?": the five nearest places, one tap each */
.ci-list { list-style: none; margin: 0.5rem 0 0; padding: 0; border-top: 1.5px solid var(--line); }
.ci-place {
  display: flex; flex-direction: column; gap: 0.125rem; width: 100%; min-height: 52px; padding: 0.5rem 0;
  border: 0; border-bottom: 1.5px solid var(--line); background: none; color: var(--ink); text-align: left;
}
.ci-place-name { font-family: var(--caps); font-weight: 900; text-transform: uppercase; font-size: var(--type-label); line-height: 1; overflow-wrap: anywhere; }
.ci-place-meta { font-size: var(--type-small); color: var(--muted); }
.ci-place:hover .ci-place-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.12em; }
.ci-place:focus-visible { outline-offset: -3px; }

/* the welcome is one gold plane, leaning like the others; text on it is on-color */
.checkin.is-welcome {
  --lx: var(--lean); border: 0; background: var(--gold); color: var(--on-color);
  padding: 1rem calc(1rem + var(--lx)) 1.125rem;
  clip-path: polygon(var(--lx) 0, 100% 0, calc(100% - var(--lx)) 100%, 0 100%);
}
.checkin.is-welcome .ci-close { right: calc(1rem + var(--lx)); color: var(--on-color); }
.checkin.is-welcome :focus-visible { outline-color: var(--on-color); }
.checkin.is-welcome .btn-primary { background: var(--on-color); color: var(--gold); border-color: var(--on-color); }
.checkin.is-welcome .btn-primary:hover { background: color-mix(in srgb, var(--on-color) 85%, var(--gold)); }
.checkin.is-welcome a { color: var(--on-color); }

/* ---------- Your Townie card (owner-approved 2026-10-03: Concept 3, with Concept 1's map as the detail) ----------
   A view of its own (body[data-view="card"]), drawn from this phone's own check-in history. One gold slab that
   fills in a kind at a time, then each place with its tally and your words. No stars, no scores, no rewards. */
body[data-view="card"] .bleed, body[data-view="card"] .today > :not(#checkin):not(#announcer) { display: none; }
.townie { --t1: var(--m1); --t2: var(--m2); --t3: var(--m3); --t4: var(--m4); --t5: var(--m5); padding-bottom: 2.5rem; }
.tt-back { margin: 0.25rem 0 0; }
.tt-title {
  margin: 0; font-family: var(--caps); font-weight: 900; text-transform: uppercase; line-height: 0.9;
  font-size: min(3.5rem, 15vw); letter-spacing: 0.005em; text-wrap: balance;
}
.tt-title:focus-visible { outline-offset: 4px; }
.tt-private { margin: 0.375rem 0 0; color: var(--muted); font-size: var(--type-small); }
.tt-lede { margin: 0.625rem 0 0; font-weight: 500; font-size: var(--type-lead); line-height: 1.35; max-width: 32ch; }
.tt-lede b { font-family: var(--caps); font-weight: 900; font-size: var(--type-title-sm); line-height: 1; }
.tt-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; margin-top: 1.25rem; }

/* the tally: leaning strokes in the mark's five colors, in groups of five (--t1..--t5 are the mark inks) */
.tt-tally { --h: 1.125rem; display: inline-flex; flex-wrap: wrap; gap: 3px; padding-left: 3px; vertical-align: middle; }
.tt-s { flex: none; width: max(4px, calc(var(--h) * 0.27)); height: var(--h); background: var(--c); transform: skewX(-12deg); }
.tt-s.is-group { margin-left: calc(var(--h) * 0.3); }
.tt-s.c1 { --c: var(--t1); }
.tt-s.c2 { --c: var(--t2); }
.tt-s.c3 { --c: var(--t3); }
.tt-s.c4 { --c: var(--t4); }
.tt-s.c5 { --c: var(--t5); }
.tt-s.is-hollow { background: none; box-shadow: inset 0 0 0 1.5px var(--muted); }

/* the card: one gold slab, leaning like #1 on the board; text on it is on-color in both themes */
.tt-card {
  --lx: min(calc(var(--lean) * 2), 7vw); background: var(--gold); color: var(--on-color);
  padding: 1.125rem calc(1rem + var(--lx)) 1.25rem;
  clip-path: polygon(var(--lx) 0, 100% 0, calc(100% - var(--lx)) 100%, 0 100%);
}
.tt-card-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.tt-card-name { margin: 0; font-family: var(--caps); font-weight: 900; text-transform: uppercase; font-size: var(--type-title); line-height: 0.9; }
.tt-card-name small { display: block; margin-top: 0.25rem; font-family: var(--sans); font-weight: 500; text-transform: none; font-size: var(--type-small); line-height: 1.3; }
.tt-mark { width: 2.4rem; height: 2.8rem; flex: none; }
.tt-mark rect { fill: var(--on-color); }
.tt-big {
  margin: 0.875rem 0 0.25rem; font-family: var(--caps); font-weight: 900; text-transform: uppercase;
  font-size: min(3.25rem, 13.5vw); line-height: 0.9; letter-spacing: 0.005em;
}
.tt-big span { display: block; }
.tt-since { margin: 0.375rem 0 0; font-weight: 500; font-size: var(--type-small); }
.tt-grid { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, max(8rem, 34%)), 1fr)); gap: 0.5rem; }
.tt-slot { display: flex; min-width: 0; }
/* each cell is a button (owner, 2026-10-09): a kind with places goes to its list, an empty one to its Find path */
.tt-cell {
  --cl: calc(var(--lean) * 0.67); width: 100%; min-height: 5.25rem; display: flex; flex-direction: column; justify-content: space-between; gap: 0.375rem;
  margin: 0; padding: 0.5rem calc(0.625rem + var(--cl)) 0.5rem calc(0.5rem + var(--cl)); border: 0; color: inherit; text-align: left; cursor: pointer;
  clip-path: polygon(var(--cl) 0, 100% 0, calc(100% - var(--cl)) 100%, 0 100%);
}
.tt-k { font-family: var(--caps); font-weight: 900; text-transform: uppercase; font-size: var(--type-label); line-height: 0.95; text-wrap: balance; }
.tt-n { font-size: var(--type-meta); font-weight: 500; }
/* the tap cue: the count is underlined like our link buttons, and thickens on hover */
.tt-cell.is-on .tt-n, .tt-cell .tt-n u { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
.tt-cell:hover .tt-n, .tt-cell:hover .tt-n u { text-decoration-thickness: 3px; }
.tt-n u { white-space: nowrap; }
.tt-cell.is-off:hover { background: color-mix(in srgb, var(--on-color) 22%, var(--gold)); }
/* the focus ring leans with the cell: drawn around the clipped shape (a 3px gold gap, then 3px of on-color), so
   it reads on the inked cells and the empty ones alike, in both themes */
.tt-cell:focus-visible { outline: none; }
.tt-slot:has(.tt-cell:focus-visible) {
  filter: drop-shadow(3px 0 0 var(--gold)) drop-shadow(-3px 0 0 var(--gold)) drop-shadow(0 3px 0 var(--gold)) drop-shadow(0 -3px 0 var(--gold))
    drop-shadow(3px 0 0 var(--on-color)) drop-shadow(-3px 0 0 var(--on-color)) drop-shadow(0 3px 0 var(--on-color)) drop-shadow(0 -3px 0 var(--on-color));
}
@media (forced-colors: active) {
  .tt-cell { clip-path: none; border: 1px solid ButtonText; }
  .tt-cell:focus-visible { outline: 3px solid Highlight; }
}
/* a kind with a place is inked in, its tally in the five strokes; an empty one stays a faint slot on the gold */
.tt-cell.is-on {
  background: var(--on-color); color: #f1ede2;
  --t1: var(--sky); --t2: var(--mint); --t3: var(--gold); --t4: var(--pink); --t5: var(--violet);
}
.tt-cell.is-off { background: color-mix(in srgb, var(--on-color) 13%, var(--gold)); }   /* opaque, so the focus ring below draws solid */
@keyframes tt-ink-in { from { clip-path: polygon(var(--cl) 0, var(--cl) 0, 0 100%, 0 100%); } }
@media (prefers-reduced-motion: no-preference) {
  .tt-cell.is-fresh { animation: tt-ink-in 0.6s var(--ease-out) both; }
}

/* the card's doors (owner-approved 2026-10-09, concept C): leaning ink stripes under the slab, parallel like the
   mark's ticks, each to its own page. The one live door (a crawl on today) is gold. */
.tt-doors { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.375rem; }
.tt-door {
  --lx: var(--lean); width: 100%; min-height: 4.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.375rem 0.75rem;
  --door: #26302c; --t1: var(--sky); --t2: var(--mint); --t3: var(--gold); --t4: var(--pink); --t5: var(--violet);
  margin: 0; padding: 0.625rem calc(1rem + var(--lx)); border: 0; background: var(--door); color: #f1ede2; text-align: left; cursor: pointer;
  clip-path: polygon(var(--lx) 0, 100% 0, calc(100% - var(--lx)) 100%, 0 100%);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tt-door { --door: #3b4641; } }
:root[data-theme="dark"] .tt-door { --door: #3b4641; }
.tt-door:hover { background: color-mix(in srgb, var(--door) 88%, #f1ede2); }
.tt-door:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--gold); }
.tt-door-words { flex: 1 1 11rem; min-width: 0; }
.tt-door-t { display: block; font-family: var(--caps); font-weight: 900; text-transform: uppercase; font-size: var(--type-title-sm); line-height: 0.95; text-wrap: balance; }
.tt-door-s { display: block; margin-top: 0.25rem; font-size: var(--type-small); font-weight: 500; line-height: 1.3; }
.tt-door-go { font-family: var(--caps); font-weight: 900; font-size: var(--type-title-sm); text-decoration: underline 2px; text-underline-offset: 0.15em; }
.tt-door .tt-tally { --h: 1.375rem; }
.tt-door .tt-s.is-hollow { box-shadow: inset 0 0 0 1.5px #b9b6ab; }
.tt-door.is-live { background: var(--gold); color: var(--on-color); --t1: #1f6fb2; --t2: #2e8540; --t3: #9a6a00; --t4: #c2224f; --t5: #6a4fd1; }
.tt-door.is-live:hover { background: var(--gold-hover); }
.tt-door.is-live:focus-visible { background: var(--gold-hover); box-shadow: inset 0 0 0 3px var(--on-color); }
.tt-door.is-live .tt-s.is-hollow { box-shadow: inset 0 0 0 1.5px var(--on-color); }
@media (forced-colors: active) {
  .tt-door { clip-path: none; border: 1px solid ButtonText; }
  .tt-door:focus-visible { outline: 3px solid Highlight; }
}
.tt-hub { gap: 1rem; }
.tt-now { margin-top: 1rem; }
.tt-now + .tt-layout { margin-top: 0.75rem; }
.tt-status-line { margin: 0.875rem 0 0; max-width: 40ch; }
.tt-subview .tt-head { margin-bottom: 1.25rem; }
.tt-tools { margin: 0 0 0.75rem; }
.tt-filter { display: flex; flex-wrap: wrap; gap: 0.375rem; margin: 0 0 1.5rem; }
.tt-chip {
  flex: none; min-height: 44px; padding: 0 0.75rem; border: 1.5px solid var(--ink); background: none; color: var(--ink); cursor: pointer;
  font-family: var(--caps); font-weight: 800; text-transform: uppercase; font-size: var(--type-body); white-space: nowrap;
}
.tt-chip[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.tt-lists .ci-acts { margin: 0 0 1.75rem; }
.tt-status { margin-top: 1rem; padding-top: 0.875rem; border-top: 1.5px solid var(--ink); }
.tt-status p { margin: 0.25rem 0 0; font-weight: 500; max-width: 36ch; }
.tt-status .tt-next { margin-top: 1rem; max-width: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; }
.tt-h3 { margin: 0; font-family: var(--caps); font-weight: 900; text-transform: uppercase; font-size: var(--type-name); line-height: 1; }
.tt-h2 { margin: 0; font-family: var(--caps); font-weight: 900; text-transform: uppercase; font-size: var(--type-title); line-height: 1; }
.tt-caps { font-family: var(--caps); font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; font-size: var(--type-body); line-height: 1.2; }

/* each kind: its places, a tally of your visits, your words */
.tt-kinds { display: grid; gap: 2rem; align-content: start; }
.tt-kind-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; padding-bottom: 0.375rem; border-bottom: 3px solid var(--ink); }
.tt-kind-head .tt-h2 { font-size: var(--type-heading); }
.tt-kind-head .tt-h2:focus-visible { outline-offset: 4px; }
.tt-kind { scroll-margin-top: 1rem; }
/* arriving from a kind cell: the five-stroke rule draws in under the heading, holds, then fades (static under
   reduced motion, and taken away by app.js after 2s) */
.tt-kind-head { position: relative; }
.tt-kind.is-arrived .tt-kind-head::after {
  content: ""; position: absolute; left: 0; bottom: -0.4375rem; width: 5.5rem; height: 0.625rem;
  background: linear-gradient(90deg, var(--sky) 0 20%, var(--mint) 0 40%, var(--gold) 0 60%, var(--pink) 0 80%, var(--violet) 0);
  transform: skewX(-12deg); transform-origin: left;
}
@media (prefers-reduced-motion: no-preference) {
  .tt-kind.is-arrived .tt-kind-head::after { animation: tt-arrive 2s var(--ease-out) both; }
}
@keyframes tt-arrive {   /* waits out the smooth scroll, then draws */
  0%, 15% { clip-path: inset(0 100% 0 0); }
  35% { clip-path: inset(0 0 0 0); opacity: 1; }
  75% { opacity: 1; }
  100% { clip-path: inset(0 0 0 0); opacity: 0; }
}
.tt-plist, .tt-places, .tt-parts { list-style: none; margin: 0; padding: 0; }
.tt-plist > li { padding: 0.25rem 0 0.75rem; border-top: 1px solid var(--line); }
.tt-plist > li:first-child { border-top: 0; }
.tt-place {
  width: 100%; min-height: 52px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 0.75rem;
  padding: 0.5rem 0 0; border: 0; background: none; color: var(--ink); text-align: left;
}
.tt-place:hover .tt-pname { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.12em; }
.tt-place[aria-pressed="true"] .tt-pname { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.12em; }
.tt-place:focus-visible { outline-offset: 2px; }
.tt-pl { display: flex; flex-direction: column; min-width: 0; }
.tt-pname { font-family: var(--caps); font-weight: 900; text-transform: uppercase; font-size: var(--type-name); line-height: 0.95; text-wrap: balance; overflow-wrap: anywhere; }
.tt-pm { margin-top: 0.25rem; color: var(--muted); font-size: var(--type-meta); }
.tt-pc {
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.25rem; text-align: right;
  font-family: var(--caps); font-weight: 800; text-transform: uppercase; font-size: var(--type-small); line-height: 1; color: var(--muted);
}
.tt-words { list-style: none; margin: 0.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.375rem; }
.tt-words li {
  padding: 0.375rem 0.625rem; border: 1.5px solid var(--ink);
  font-family: var(--caps); font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; font-size: var(--type-body); line-height: 1;
}

/* the detail: Your Bloomington, on the app's own map */
.board-map.tt-map { block-size: 20rem; }
.tt-legend { margin: 0.5rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; color: var(--muted); font-size: var(--type-small); }
.tt-legend .tt-tally { --h: 0.875rem; }
.tt-note { margin: 0.5rem 0 0; color: var(--muted); font-size: var(--type-small); }
.tt-panel { background: var(--paper); border: 1.5px solid var(--ink); padding: 1rem; }
.tt-panel-name { margin: 0; font-family: var(--caps); font-weight: 900; text-transform: uppercase; font-size: var(--type-heading); line-height: 0.92; text-wrap: balance; overflow-wrap: anywhere; }
.tt-panel-name:focus-visible { outline-offset: 4px; }
.tt-meta { margin: 0.375rem 0 0; color: var(--muted); font-size: var(--type-small); }
.tt-count { display: flex; flex-wrap: wrap; align-items: center; gap: 0.625rem; margin: 0.75rem 0 0.25rem; font-family: var(--caps); font-weight: 900; text-transform: uppercase; font-size: var(--type-name); line-height: 1; }
.tt-count .tt-tally { --h: 1.625rem; }
.tt-dates { margin: 0; color: var(--muted); font-size: var(--type-small); }
.tt-sub { margin: 1rem 0 0.375rem; font-family: var(--caps); font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; font-size: var(--type-body); line-height: 1; }
.tt-panel .tt-words { margin-top: 0; }
.tt-said { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.375rem; }
.tt-said li { display: grid; grid-template-columns: 3.75rem minmax(0, 1fr); gap: 0 0.75rem; font-weight: 500; }
.tt-said-day { font-family: var(--caps); font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; color: var(--muted); }
.tt-first { margin: 1rem 0 0; font-weight: 500; max-width: 45ch; }
.tt-sect { margin-top: 2rem; }
.tt-sect .tt-h2 { margin-bottom: 0.5rem; }
.tt-parts li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.75rem; min-height: 52px; padding: 0.5rem 0; border-top: 1px solid var(--line); }
.tt-pn { display: block; margin-top: 0.125rem; font-family: var(--sans); font-weight: 500; text-transform: none; font-size: var(--type-small); line-height: 1.3; color: var(--muted); }
.tt-parts .is-none .tt-pname { color: var(--muted); }
.tt-places > li { border-top: 1px solid var(--line); }
.tt-places .tt-place { align-items: center; padding: 0.625rem 0; min-height: 56px; }
.tt-places .tt-pname { font-size: var(--type-label); line-height: 1; }
.tt-places .tt-pc { font-family: var(--sans); font-weight: 500; text-transform: none; font-size: var(--type-meta); }
/* map marks: each place's tally on a small paper plate that leans like the board's pins; the chosen one
   is inked and carries its name. The plate leans, so the strokes inside it stand straight. */
.tt-pin { position: relative; display: flex; align-items: flex-end; justify-content: center; min-inline-size: 44px; min-block-size: 44px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
.tt-pin-face { display: inline-flex; padding: 0.3125rem 0.5rem; background: var(--paper); border: 1.5px solid var(--ink); transform: skewX(-12deg); }
.tt-pin-face .tt-tally { --h: 1rem; flex-wrap: nowrap; padding-left: 0; }
.tt-pin-face .tt-s { transform: none; }
.tt-pin-tag {
  position: absolute; bottom: 0; left: calc(100% - 0.25rem); inline-size: max-content; max-inline-size: 10rem;
  padding: 0.25rem 0.4375rem; background: var(--ink); color: var(--ground); text-align: left;
  font-family: var(--caps); font-weight: 900; text-transform: uppercase; font-size: var(--type-small); line-height: 1;
}
.tt-pin.is-flip .tt-pin-tag { left: auto; right: calc(100% - 0.25rem); text-align: right; }   /* near the right edge */
.tt-pin.is-chosen { z-index: 1; }
.tt-pin.is-chosen .tt-pin-face { border-width: 2.5px; }
.tt-pin:hover .tt-pin-face { outline: 2px solid var(--ink); }
.tt-pin:focus-visible { outline: none; }
.tt-pin:focus-visible .tt-pin-face { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- a photo at check-in (owner-approved 2026-10-05: concept C, "Fill the five"; Mode A, on this phone only) ----------
   The five latest photos stand as the Tally T's five leaning ticks: on the thanks step, on the gold card and (when
   ticked for one share) in the share image. Every photo sits in a leaning plate, clipped, never skewed, so the picture
   stays upright. An empty stroke is an outlined leaning frame, never a dashed box. */
.ph {
  --lx: var(--lean); position: relative; display: block; overflow: hidden; margin: 0; padding: 0; border: 0;
  background: var(--line); clip-path: polygon(var(--lx) 0, 100% 0, calc(100% - var(--lx)) 100%, 0 100%);
}
.ph img {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover;
  clip-path: polygon(var(--lx) 0, 100% 0, calc(100% - var(--lx)) 100%, 0 100%);
}
/* rings follow the slant: the picture steps in and the plate behind it shows as a frame */
button.ph { cursor: pointer; background: transparent; }
button.ph:hover { background: var(--ink); }
button.ph:hover img { inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); }
button.ph:focus-visible { outline: none; background: var(--focus); }
button.ph:focus-visible img { inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); }

.ph-five { --fh: 8.5rem; display: flex; gap: 0.5rem; height: var(--fh); margin-top: 0.875rem; }
.ph-five > * { flex: 1 1 0; min-width: 0; height: 100%; --lx: calc(var(--fh) * 0.2126); }   /* tan(12deg): the mark's own angle */
.ph-slot {
  --sb: var(--paper); --sf: var(--ink);
  position: relative; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; background: none; color: var(--ink);
}
.ph-slot::before, .ph-slot::after { content: ""; position: absolute; clip-path: polygon(var(--lx) 0, 100% 0, calc(100% - var(--lx)) 100%, 0 100%); }
.ph-slot::before { inset: 0; background: var(--sf); }
.ph-slot::after { inset: 1.5px; background: var(--sb); }
.ph-slot > svg { position: relative; z-index: 1; width: 1.75rem; height: 1.75rem; }
.ph-slot.is-faint { --sf: var(--muted); }
.ph-slot.is-faint::before { opacity: 0.55; }
button.ph-slot { cursor: pointer; }
button.ph-slot:hover::after { background: color-mix(in srgb, var(--ink) 10%, var(--sb)); }
button.ph-slot:focus-visible { outline: none; }
button.ph-slot:focus-visible::before { background: var(--focus); }
button.ph-slot:focus-visible::after { inset: 3.5px; }
button.ph-slot:disabled { opacity: 0.55; cursor: progress; }
/* a hairline mark under the stroke that was just filled */
.ph-mark { display: flex; gap: 0.5rem; height: 4px; margin-top: 0.375rem; }
.ph-mark i { flex: 1 1 0; }
.ph-mark i.on { background: var(--ink); }
.ph-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* the thanks step: the question by kind of place, the five, and the ways on */
.ph-ask { margin-top: 1.25rem; padding-top: 1rem; border-top: 1.5px solid var(--ink); }
.ph-q { margin: 0; font-family: var(--caps); font-weight: 900; text-transform: uppercase; font-size: var(--type-title); line-height: 1; letter-spacing: 0.005em; text-wrap: balance; }
.ph-q:focus-visible { outline-offset: 4px; }
.ph-kept { margin: 0.625rem 0 0; font-weight: 600; max-width: 55ch; text-wrap: pretty; }
.ph-add svg { width: 1.375rem; height: 1.375rem; flex: none; margin-right: 0.5rem; }
.ph-status { margin: 0.5rem 0 0; font-weight: 700; max-width: 55ch; }
.ph-status.is-err { color: var(--err); }
.ph-status:empty { display: none; }
/* iOS Safari outside the Home Screen may clear a site's storage after weeks unused: one gentle line, once */
.ph-tip { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1rem; margin: 0.875rem 0 0; padding-top: 0.5rem; border-top: 1px solid var(--line); font-weight: 500; max-width: 55ch; }
.ph-tip .linkbtn { font-size: var(--type-small); }

/* on the card: the five stand on the gold slab (text and frames on it are on-color in both themes) */
/* Owner, 2026-10-09 ("a bit small to have a view"): still five even strokes at the mark's lean, but they run
   across the slab into its leaning margins and close up along the slant (each starts one lean back, so the gap
   between neighbours is an even --g everywhere). That about doubles what each stroke shows; tapping one opens it
   whole underneath. */
.tt-card .tt-five { margin-inline: -1rem; }
.tt-card .ph-five { --fh: 9.5rem; --g: 0.3125rem; gap: 0; }
.tt-card .ph-five > * + * { margin-left: calc(var(--g) - var(--lx)); }
.tt-card .tt-five .ph-cap { margin-inline: 1rem; }
.tt-card .ph-slot { --sb: var(--gold); --sf: var(--on-color); }
.tt-card .ph-slot::before { opacity: 0.4; }
.tt-card button.ph:hover { background: var(--on-color); }
.tt-card button.ph:focus-visible { background: var(--on-color); }
/* the open one keeps a heavy on-color frame while its photo shows below */
.tt-card button.ph[aria-expanded="true"] { background: var(--on-color); }
.tt-card button.ph[aria-expanded="true"] img { inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); }
.ph-cap { margin: 0.375rem 0 0; font-size: var(--type-meta); font-weight: 500; }
/* the photo, whole, in place on the slab */
.ph-view { margin: 0.75rem 0 0.25rem; }
.ph-view .ph-big { max-height: min(62vh, 30rem); background: color-mix(in srgb, var(--on-color) 13%, transparent); }
.ph-view-cap { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0 1rem; margin: 0.5rem 1rem 0; }
.ph-view-words { min-width: 0; padding-top: 0.5rem; }
.ph-view-name { margin: 0; font-family: var(--caps); font-weight: 900; text-transform: uppercase; font-size: var(--type-title-sm); line-height: 0.95; text-wrap: balance; overflow-wrap: anywhere; }
.ph-view-when { margin: 0.25rem 0 0; font-size: var(--type-small); font-weight: 500; }
.ph-view-acts { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin: 0; }
.tt-card .linkbtn { color: var(--on-color); }
.tt-card .linkbtn:focus-visible { outline-color: var(--on-color); outline-offset: 2px; }
/* a place row gets a small leaning plate of its newest photo, only when it has one */
.tt-place.has-ph { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
.ph-thumb { --lx: 0.7rem; width: 2.5rem; height: 3.25rem; flex: none; }
/* the detail: the whole photo, with a quiet replace and remove */
.ph-detail { margin-top: 0.875rem; }
.ph-big { --lx: 1.4rem; width: 100%; max-height: min(70vh, 34rem); }
.ph-detail-cap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1.25rem; margin: 0.375rem 0 0; color: var(--muted); font-size: var(--type-small); }
.ph-detail-acts { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.ph-detail-acts .linkbtn { font-size: var(--type-small); }
@media (forced-colors: active) {
  .ph-slot::before { background: CanvasText; }
  .ph-slot::after { background: Canvas; }
  button.ph:focus-visible { background: Highlight; }
}

@media (min-width: 48rem) {
  .tt-kinds { grid-template-columns: 1fr 1fr; gap: 2rem 2.5rem; }
}
@media (min-width: 64rem) {
  .tt-title { font-size: 4.5rem; }
  .tt-layout { grid-template-columns: minmax(0, 30rem) minmax(0, 1fr); gap: 3rem; align-items: start; }
  .tt-cardcol, .tt-mapcol { position: sticky; top: 1rem; }
  .tt-hub { grid-template-columns: minmax(0, 30rem) minmax(0, 1fr); gap: 2.5rem; }
  .tt-doors { gap: 0.5rem; }
  .tt-door { min-height: 6.25rem; padding-block: 1rem; }
  .tt-door-t { font-size: var(--type-heading); }
  .tt-door-s { font-size: var(--type-body); }
  .tt-layout-map { grid-template-columns: minmax(0, 1.25fr) minmax(22rem, 1fr); gap: 2.5rem; }
  .board-map.tt-map { block-size: min(36rem, 72vh); }
  .ph-q { font-size: 2.5rem; }
  .checkin .ph-five { --fh: 10rem; }
  .tt-card .ph-five { --fh: 11rem; }
}

/* in an opened pick: "I'm here" under the ways to go, and the steps open in place */
.here { border-top: 1px solid var(--line); padding-top: 0.75rem; }
.here-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.875rem; }
.here-note { color: var(--muted); font-size: var(--type-small); }
.here.is-cued .here-note { color: var(--ink); font-weight: 500; }   /* after Directions: the next step, still quiet */
.here .ci-head { font-size: var(--type-name); }
.here-done { color: var(--muted); font-weight: 500; }

/* step 2, under test (labs "qrverify"): after the check-in, an optional scan of the place's code verifies it.
   One quiet line on the thanks step; the scanner opens in place; the card shows a tiny leaning code mark. */
.qv { margin-top: 1.25rem; padding-top: 0.75rem; border-top: 1px solid var(--line); }
.qv-line { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.qv-q { display: inline-flex; align-items: center; gap: 0.5rem; flex: 1 1 13rem; color: var(--muted); font-weight: 500; }
.qv-mark { inline-size: 1rem; block-size: 0.875rem; flex: none; color: var(--ink); }
.qv .ci-head { font-size: var(--type-name); }
.qv-view {
  position: relative; margin-top: 0.75rem; inline-size: min(100%, 20rem); aspect-ratio: 1;
  background: #1d2421; border: 1.5px solid var(--ink); overflow: hidden;
}
.qv-view video { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; }
/* the aim: four leaning corners in the paper ink, over the camera in both themes */
.qv-aim { position: absolute; inset: 20%; transform: skewX(-12deg); pointer-events: none; }
.qv-aim i { position: absolute; inline-size: 1.75rem; block-size: 1.75rem; border: 0 solid #faf8f2; }
.qv-aim i:nth-child(1) { top: 0; left: 0; border-top-width: 4px; border-left-width: 4px; }
.qv-aim i:nth-child(2) { top: 0; right: 0; border-top-width: 4px; border-right-width: 4px; }
.qv-aim i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 4px; border-left-width: 4px; }
.qv-aim i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 4px; border-right-width: 4px; }
.qv-say { margin: 0.625rem 0 0; font-weight: 600; max-width: 55ch; text-wrap: pretty; }
.qv > .qv-say:first-child { margin-top: 0; }
.qv-say.is-err { color: var(--err); }
.qv-say:focus-visible, .qv-done:focus-visible { outline-offset: 4px; }
.qv .ci-head, .qv-say, .qv-done { inline-size: fit-content; max-inline-size: 100%; }   /* the focus ring hugs the words */
.qv-done { margin: 0; display: flex; align-items: center; gap: 0.5rem; font-weight: 700; }
/* on the card: beside the place's tally, never a count */
.qv-tally { display: inline-flex; align-items: center; gap: 0.375rem; }
.qv-badge { display: inline-flex; color: var(--ink); }
.qv-badge[hidden] { display: none; }
.qv-badge .qv-mark { inline-size: 0.875rem; block-size: 0.75rem; }
@media (forced-colors: active) { .qv-aim i { border-color: CanvasText; } }

/* step 6, under test (labs "receipt"): after the check-in, an optional receipt photo, read on the phone, verifies it.
   The same quiet line as the code's at the end of the thanks step; when they said they got a receipt, it sits up
   front, in ink, with the primary button. The verified line and the card mark are the code's. */
.rc { position: relative; margin-top: 1.25rem; padding-top: 0.75rem; border-top: 1px solid var(--line); }
.rc.is-lead { margin-top: 1rem; padding-top: 0; border-top: 0; }
.rc.is-lead .qv-q { color: var(--ink); font-weight: 600; }
.rc-note { margin-top: 0.25rem; text-wrap: pretty; }
.rc > .qv-say:first-child { margin-top: 0; }
.rc > .ci-working + .rc-note { margin-top: 0.25rem; }
.rc .ci-acts { margin-top: 0.75rem; }
.rc .qv-say, .rc .qv-done, .rc .ci-working { inline-size: fit-content; max-inline-size: 100%; }
.rc .ci-working:focus-visible { outline-offset: 4px; }

/* ---------- loading: five strokes, counted in ---------- */
.skeleton { list-style: none; margin: 1.5rem 0 0 0.5rem; padding: 0; display: flex; gap: 0.625rem; block-size: 5rem; align-items: flex-end; }
.skeleton li { inline-size: 1rem; block-size: 100%; transform: skewX(-12deg); background: var(--gold); opacity: 0.35; }
.skeleton li:nth-child(1) { background: var(--gold); }
.skeleton li:nth-child(2) { background: var(--mint); block-size: 80%; }
.skeleton li:nth-child(3) { background: var(--pink); block-size: 90%; }
.skeleton li:nth-child(4) { background: var(--sky); block-size: 70%; }
.skeleton li:nth-child(5) { background: var(--violet); block-size: 85%; }

/* ---------- footer ---------- */
.foot {
  margin-top: 2.5rem; padding: 1.25rem 0 2rem; border-top: 1.5px solid var(--ink);
  font-size: var(--type-small); color: var(--muted);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.25rem 1.5rem;
}
.foot p { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.foot a { color: var(--ink); min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; font-weight: 500; }

/* ---------- motion: one authored moment, gated live on reduced motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .skeleton li { animation: count-in 1.2s var(--ease-out) infinite; }
  .skeleton li:nth-child(2) { animation-delay: 120ms; }
  .skeleton li:nth-child(3) { animation-delay: 240ms; }
  .skeleton li:nth-child(4) { animation-delay: 360ms; }
  .skeleton li:nth-child(5) { animation-delay: 480ms; }
  .picks { transition: opacity 220ms var(--ease-out); }
  .picks.wiping { opacity: 0.2; }
  .picks.writing .plane,
  .picks.writing .pick:first-child .tag { animation: stroke-in 420ms var(--ease-out) backwards; }
  .picks.writing .pick:first-child .plane { animation: none; }
  .picks.writing .pick:nth-child(2) .plane { animation-delay: 70ms; }
  .picks.writing .pick:nth-child(3) .plane { animation-delay: 120ms; }
  .picks.writing .pick:nth-child(4) .plane { animation-delay: 160ms; }
  .picks.writing .pick:nth-child(5) .plane { animation-delay: 200ms; }
  .theme button, .btn, .what, .chip, .path-chip, .quad, .dial select, .pk select { transition: background-color 160ms var(--ease-out); }
  /* listening: the mic's pickup arc breathes; static under reduced motion */
  .ask-mic[aria-pressed="true"] .mic-arc, .ci-mic[aria-pressed="true"] .mic-arc { animation: mic-listen 1.1s var(--ease-out) infinite alternate; }
}
@keyframes mic-listen { from { opacity: 1; } to { opacity: 0.3; } }
@keyframes count-in {
  0% { opacity: 0.25; transform: skewX(-12deg) scaleY(0.6); transform-origin: bottom; }
  40% { opacity: 1; transform: skewX(-12deg) scaleY(1); transform-origin: bottom; }
  100% { opacity: 0.35; transform: skewX(-12deg) scaleY(1); transform-origin: bottom; }
}
/* the plane is drawn like a stroke: a leaning edge sweeps left to right */
@keyframes stroke-in {
  from { clip-path: polygon(0 0, 18% 0, 0 100%, 0 100%); }
  to { clip-path: polygon(var(--lx, 0px) 0, 100% 0, calc(100% - var(--lx, 0px)) 100%, 0 100%); }
}

/* ---------- the other pages: About, Terms, Privacy ---------- */
.page main { max-width: 44rem; padding-bottom: 1rem; }
.page .page-nav { margin: 0 0 0.5rem; }
.page .page-nav a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; }
.page h1 {
  margin: 0.75rem 0 1.25rem; font-family: var(--caps); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.75rem, 11vw, 4.5rem); line-height: 0.9; letter-spacing: 0.005em;
}
.page h1::after {
  content: ""; display: block; width: 5.5rem; height: 0.625rem; margin-top: 0.875rem;
  background: linear-gradient(90deg, var(--sky) 0 20%, var(--mint) 0 40%, var(--gold) 0 60%, var(--pink) 0 80%, var(--violet) 0);
  transform: skewX(-12deg); transform-origin: left;
}
.page h2 {
  margin: 2.25rem 0 0.5rem; font-family: var(--caps); font-weight: 800; text-transform: uppercase;
  font-size: var(--type-title); line-height: 1; letter-spacing: 0.01em;
}
.page p, .page li { max-width: 65ch; }
.page main a { font-weight: 500; }
/* 404: one clear way back to the box */
.lost-go { margin: 1.5rem 0; }
.page main .lost-go .btn { font-weight: 800; }
.page .draft { background: var(--gold); color: var(--on-color); padding: 0.75rem calc(1rem + var(--lx, 0px)); font-weight: 700; }
.page main ul { padding-left: 1.25rem; }
.page main li + li { margin-top: 0.375rem; }
.page main li::marker { color: var(--muted); }

/* ---------- tablets: #2 to #5 as a 2 x 2 of standing planes ---------- */
@media (min-width: 40rem) {
  .picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plane { flex-direction: column; align-items: stretch; justify-content: space-between; gap: 0.375rem; min-height: 7.5rem; padding: 0.625rem calc(0.75rem + var(--lx, 0px)) 0.75rem; }
}

/* ---------- wide screens ---------- */
@media (min-width: 64rem) {
  :root { --gutter: 2.5rem; }
  .mark { width: 2.8rem; height: 3.3rem; }
  .wordmark { font-size: 2.5rem; }
  .poster-in { padding: 2rem calc(2.5rem + var(--lx, 0px)) 0; min-height: 24rem; }
  .imperative { font-size: min(9rem, 10vw, 19cqi); }
  .subline { font-size: var(--type-title-sm); max-width: 30ch; margin-top: 1.25rem; }
  /* wide: the words are two lines on the left, so the skyline stands beside them at the right */
  .poster-in { padding-bottom: 2rem; }
  .keep { grid-column: 1 / -1; grid-row: 5; }
  /* the two plates sit under the box, at the left, in the box's reading order: box, plates, the keep line */
  .pilot-acts { grid-row: 4; grid-template-columns: repeat(2, minmax(0, 17rem)); margin-top: 1rem; }
  .sh-body { grid-template-columns: minmax(0, 10rem) minmax(0, 1fr); }
  .skyline { width: 40%; height: 18rem; }
  .caption { padding: 1.5rem 2.5rem; }
  .ask { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 2rem; align-items: end; }
  .ask-label { grid-column: 1 / -1; }
  .consent { margin: 0 0 0.5rem; grid-column: 2; grid-row: 2; }
  .suggest { grid-column: 1; grid-row: 3; }
  .suggest-name { font-size: var(--type-title-sm); }
  .field textarea { font-size: var(--type-title); min-height: 4rem; padding-top: 0.9rem; }
  .ask-go { min-width: 7rem; min-height: 4rem; font-size: var(--type-heading); }
  .ask-mic { width: 3.5rem; min-height: 4rem; }
  .ask-mic svg { width: 30px; height: 30px; }
  .sheets { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
  .sheets li:first-child { grid-column: auto; }
  .what { min-height: 10rem; font-size: var(--type-heading); padding: 1rem calc(1rem + var(--lx, 0px)); }
  .whats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .whats .what { min-height: 5rem; font-size: var(--type-title); padding-block: 0.75rem 0.875rem; }
  .try { font-size: var(--type-title-sm); }
  .path-chip { font-size: var(--type-title-sm); min-height: 48px; }
  .decide { margin-top: 1.5rem; }
  .plot { grid-template-rows: auto 7.25rem 7.25rem auto; }
  .step-q { font-size: 2.5rem; }
  .home-lower { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 3rem; align-items: start; }
  .ex-more { display: block; }
  .ex-more[hidden] { display: none; }

  /* Round 4 (owner-approved 2026-10-09): the five BESIDE the map. The question stays across the top;
     #1's gold slab and the #2 to #5 stripes fill the left column, and the map holds still on the
     right while you read them. Rank order is still DOM order. */
  .today:has(> .moodmap-wrap:not([hidden])) {
    display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 3rem; align-items: start;
  }
  .today:has(> .moodmap-wrap:not([hidden])) > * { grid-column: 1 / -1; }
  .today:has(> .moodmap-wrap:not([hidden])) > :is(.limited-note, .picks, .miss) { grid-column: 1; }
  .today:has(> .moodmap-wrap:not([hidden])) > .moodmap-wrap {
    grid-column: 2; position: sticky; top: 1rem; margin-top: 2rem; padding-top: 0; border-top: 0;
  }
  .today:has(> .moodmap-wrap:not([hidden])) > .picks {
    grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 1rem;
  }
  .today:has(> .moodmap-wrap:not([hidden])) .pick:first-child,
  .today:has(> .moodmap-wrap:not([hidden])) .pick.is-open:not(:first-child) { grid-column: auto; grid-row: auto; }
  .today:has(> .moodmap-wrap:not([hidden])) .pick:not(:first-child) .plane {
    flex-direction: row; align-items: flex-end; justify-content: flex-start; gap: 1rem; min-height: 5.5rem;
  }
  .sample-list .num { font-size: var(--type-heading-lg); }
  .sample-name { font-size: var(--type-title-sm); }

  body[data-view="results"] .caption { padding: 0.75rem calc(2.5rem + var(--lx, 0px) / 2) 0 calc(2.5rem + var(--lx, 0px)); }
  body[data-view="results"] .cap-foot { gap: 1.5rem; align-items: center; }
  body[data-view="results"] .status { padding: 0; }
  body[data-view="results"] .band-sky { width: min(7rem, 9vw); height: min(4rem, 5vw); margin-right: 0; }

  .picks {
    grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr);
    grid-template-rows: auto auto 1fr; gap: 1.5rem; margin-top: 2rem;
  }
  .pick:first-child { grid-column: 1; grid-row: 1 / span 3; }
  .pick.is-open:not(:first-child) { grid-column: 2 / -1; }
  .pick:first-child .tag { padding: 1.5rem calc(2rem + var(--lx, 0px)) 2rem; }
  .pick:first-child .plane .num { font-size: 10rem; }
  .pick:first-child .tag-name { font-size: 4.5rem; }
  .pick:first-child .take { font-size: var(--type-title-sm); max-width: 30ch; }
  .pick:first-child .tag .take-by { font-size: var(--type-body); }
  .details { padding: 1.5rem 2rem; }
  .plane { min-height: 11rem; padding: 1rem calc(1rem + var(--lx, 0px)); }
  .plane .num { font-size: 4.5rem; }
  .tag-name { font-size: var(--type-heading); }
  .board-map { block-size: 22rem; }
}

/* ---------- step 3, under test (labs "passport"): passports on Your Townie card ----------
   A few places to get to by a date, shared by link. Progress is the tally (one leaning stroke per place, the mark
   inks, unfilled slots outlined); a finished passport gets a small gold leaning plate with the mark's five strokes.
   Flat and upright: never a stamp, a seal or a rotated badge. Nothing here is drawn unless the flag is on. */
.pp-sec { grid-column: 1 / -1; }
.pp-empty { margin: 0.75rem 0 0; font-weight: 500; max-width: 46ch; }
.pp-sec .ci-acts { margin-top: 0.75rem; }
.pp-list .pp-row { align-items: center; padding-bottom: 0.5rem; }
.pp-pc .tt-tally { --h: 1.25rem; justify-content: flex-end; }

.pp-fin {
  --lx: 0.375rem; display: inline-flex; align-items: center; gap: 0.375rem; flex: none;
  padding: 0.3125rem calc(0.5rem + var(--lx)); background: var(--gold); color: var(--on-color);
  clip-path: polygon(var(--lx) 0, 100% 0, calc(100% - var(--lx)) 100%, 0 100%);
  font-family: var(--caps); font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; font-size: var(--type-small); line-height: 1;
}
.pp-fin-ticks { display: inline-flex; gap: 2px; }
.pp-fin-ticks i { width: 3px; height: 0.875rem; transform: skewX(-12deg); }
.pp-fin-ticks .c1 { background: #1f6fb2; }
.pp-fin-ticks .c2 { background: #2e8540; }
.pp-fin-ticks .c3 { background: #9a6a00; }
.pp-fin-ticks .c4 { background: #c2224f; }
.pp-fin-ticks .c5 { background: #6a4fd1; }
.pp-fin-day { font-family: var(--sans); font-weight: 600; text-transform: none; letter-spacing: 0; white-space: nowrap; }
.pp-fin.is-big { --lx: 0.75rem; gap: 0.625rem; padding: 0.625rem calc(1rem + var(--lx)); font-size: var(--type-name); font-weight: 900; }
.pp-fin.is-big .pp-fin-ticks { gap: 4px; }
.pp-fin.is-big .pp-fin-ticks i { width: 6px; height: 1.625rem; }
.pp-fin.is-big .pp-fin-day { font-size: var(--type-body); }
@media (forced-colors: active) { .pp-fin { clip-path: none; border: 1px solid CanvasText; } }

/* Make a passport: one plain form, a field at a time */
.pp-form { display: grid; gap: 1.5rem; max-width: 40rem; margin-top: 1.5rem; }
.pp-field { display: grid; gap: 0.375rem; }
.pp-label { display: block; padding: 0; font-family: var(--caps); font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; font-size: var(--type-lead); line-height: 1.1; }
.pp-hint { margin: 0; color: var(--muted); font-size: var(--type-small); max-width: 55ch; }
.pp-hint:empty { display: none; }
.pp-input, .pp-select {
  inline-size: 100%; min-block-size: 48px; padding: 0.5rem 0.75rem; border: 1.5px solid var(--ink); border-radius: 0;
  background: var(--paper); color: var(--ink); font: 400 1.125rem/1.3 var(--sans);
}
.pp-input::placeholder { color: var(--muted); opacity: 1; }
.pp-input:focus-visible, .pp-select:focus-visible { outline-offset: 2px; }
.pp-select { inline-size: auto; min-inline-size: 4.5rem; min-block-size: 44px; padding: 0.25rem 0.5rem; }
.pp-select.pp-wide { inline-size: 100%; }
.pp-input[type="date"] { inline-size: auto; min-inline-size: 12rem; }
.pp-input[type="radio"] { inline-size: 1.375rem; min-block-size: 0; block-size: 1.375rem; margin: 0; padding: 0; accent-color: var(--ink); flex: none; }
.pp-found { margin-top: -0.75rem; }
.pp-found-say { margin-top: -1rem; }
.pp-chosen, .pp-picked { list-style: none; margin: -0.75rem 0 0; padding: 0; counter-reset: pp; border-top: 1.5px solid var(--ink); }
.pp-chosen[hidden], .pp-picked[hidden] { display: none; }
.pp-chosen-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.75rem; min-height: 52px; padding: 0.375rem 0; border-bottom: 1px solid var(--line); }
.pp-chosen > .pp-chosen-row { counter-increment: pp; grid-template-columns: 1.75rem minmax(0, 1fr) auto; }
.pp-chosen > .pp-chosen-row::before { content: counter(pp); font-family: var(--caps); font-weight: 900; font-size: var(--type-label); line-height: 1; color: var(--muted); }
.pp-chosen-words { display: flex; flex-direction: column; gap: 0.125rem; min-width: 0; }
.pp-chosen-name { font-family: var(--caps); font-weight: 900; text-transform: uppercase; font-size: var(--type-label); line-height: 1; overflow-wrap: anywhere; }
.pp-chosen-meta { color: var(--muted); font-size: var(--type-meta); }
.pp-picked-q { font-weight: 600; }
.pp-rm { font-size: var(--type-small); }
.pp-count { margin: -1rem 0 0; color: var(--muted); font-size: var(--type-small); }
.pp-set { margin: 0; padding: 0; border: 0; min-inline-size: 0; display: grid; gap: 0.25rem; }
.pp-radio { display: inline-flex; align-items: center; gap: 0.625rem; min-height: 44px; font-weight: 600; cursor: pointer; }
.pp-any { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.625rem; }
.pp-any-tail { font-weight: 600; }
.pp-lib { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.pp-lib-btn {
  inline-size: 100%; min-block-size: 56px; display: flex; flex-direction: column; justify-content: center; gap: 0.1875rem;
  padding: 0.5rem 0.75rem; border: 1.5px solid var(--ink); background: none; color: var(--ink); text-align: left; cursor: pointer;
}
.pp-lib-btn:hover { background: color-mix(in srgb, var(--ink) 10%, transparent); }
.pp-lib-btn:focus-visible { outline-offset: 2px; }
.pp-lib-btn[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.pp-lib-q { font-weight: 600; line-height: 1.3; }
.pp-lib-a { color: var(--muted); font-size: var(--type-meta); line-height: 1.3; }
.pp-lib-btn[aria-pressed="true"] .pp-lib-a { color: var(--ground); }
.pp-own-open { justify-self: start; margin-top: 0.25rem; }
.pp-own { display: grid; gap: 0.875rem; padding: 0.875rem 1rem 1rem; background: var(--paper); border: 1.5px solid var(--ink); }
.pp-own[hidden] { display: none; }
.pp-own .ci-acts { margin-top: 0; }
.pp-labels { display: grid; gap: 0.375rem; }
.pp-labels[hidden], .pp-labels .pp-input[hidden] { display: none; }
.pp-picked { margin-top: 0.75rem; }
.pp-qsay { margin-top: 0.375rem; }
.pp-errbox { padding: 0.75rem 1rem; border: 1.5px solid var(--err); color: var(--err); }
.pp-errbox[hidden] { display: none; }
.pp-errbox:focus-visible { outline-offset: 3px; }
.pp-errs-head { margin: 0; font-weight: 700; }
.pp-errs { margin: 0.25rem 0 0; padding-left: 1.25rem; font-weight: 700; color: var(--err); }
.pp-errs:empty { display: none; }
.pp-form > .ci-acts { margin-top: 0; }
.pp-make-go { min-inline-size: 12rem; }

/* a passport's page: the count and its tally, Share, then the places in order with your answers */
.pp-made { margin: 0.625rem 0 0; font-weight: 600; max-width: 40ch; }
.pp-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.pp-big { margin: 0; font-family: var(--caps); font-weight: 900; text-transform: uppercase; font-size: min(3.25rem, 13.5vw); line-height: 0.9; letter-spacing: 0.005em; }
.pp-tally { --h: 2.25rem; gap: 5px; }
.pp-need { flex-basis: 100%; margin: 0; color: var(--muted); font-weight: 500; }
.pp-share { margin-top: 1rem; }
.pp-share .ci-acts { margin-top: 0; }
.pp-share-say { margin: 0.375rem 0 0; font-weight: 700; }
.pp-share-say:empty { display: none; }
.pp-share-link { margin-top: 0.5rem; }
.pp-share-link .pp-input { font-size: var(--type-small); }
.pp-note { margin: 0.5rem 0 0; color: var(--muted); font-size: var(--type-small); max-width: 46ch; }
.pp-stops { list-style: none; margin: 1.5rem 0 0; padding: 0; border-top: 3px solid var(--ink); }
.pp-stop { border-bottom: 1px solid var(--line); padding-bottom: 0.5rem; }
.pp-stop-btn { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; padding-top: 0.5rem; }
.pp-tick { inline-size: 0.5rem; block-size: 2rem; margin-left: 0.25rem; transform: skewX(-12deg); box-shadow: inset 0 0 0 1.5px var(--muted); }
.pp-tick.c1 { background: var(--t1); box-shadow: none; }
.pp-tick.c2 { background: var(--t2); box-shadow: none; }
.pp-tick.c3 { background: var(--t3); box-shadow: none; }
.pp-tick.c4 { background: var(--t4); box-shadow: none; }
.pp-tick.c5 { background: var(--t5); box-shadow: none; }
.pp-stop:not(.is-done) .tt-pname { color: var(--muted); }
.pp-stop-btn:hover .tt-pname { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.12em; }
.pp-ans { margin: 0.375rem 0 0 1.75rem; display: grid; gap: 0.125rem 0; }
.pp-ans dt { color: var(--muted); font-size: var(--type-meta); }
.pp-ans dd { margin: 0 0 0.25rem; font-weight: 600; font-size: var(--type-small); }
.pp-qs .tt-h3 { margin-bottom: 0.375rem; }
.pp-qlist { list-style: none; margin: 0; padding: 0; }
.pp-qlist li { display: grid; gap: 0.125rem; padding: 0.5rem 0; border-top: 1px solid var(--line); }
.pp-side .tt-private { margin-top: 1rem; max-width: 40ch; }
.pp-remove { margin-top: 0.5rem; }
.pp-remove-q { margin: 0.5rem 0 0; font-weight: 600; max-width: 40ch; }
.pp-remove-q:focus-visible { outline-offset: 3px; }
.pp-remove .ci-acts { margin-top: 0.5rem; }

/* the thanks step after a check-in at a passport place: a calm finished moment, then the questions */
.pp-moment { margin: 1rem 0 0; }
.pp-moment-text { margin: 0.5rem 0 0; font-weight: 500; max-width: 46ch; }
.pp-thanks:empty { display: none; }
.pp-block { margin-top: 1.25rem; padding-top: 0.75rem; border-top: 1.5px solid var(--ink); }
.pp-for { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.125rem 1rem; }
.pp-for-t { font-family: var(--caps); font-weight: 900; text-transform: uppercase; font-size: var(--type-name); line-height: 1; }
.pp-for-n { color: var(--muted); font-size: var(--type-small); font-weight: 500; }
.pp-p { margin-top: 0.75rem; }
.pp-p-q { margin: 0; font-weight: 600; }
.pp-p-note { margin: 0.125rem 0 0; color: var(--muted); font-size: var(--type-small); }
.pp-opts { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.pp-opt { font-size: var(--type-body); padding: 0 0.875rem; }
.pp-p-say { margin: 0.25rem 0 0; color: var(--muted); font-size: var(--type-meta); min-height: 1.1em; }

/* the link's preview, in the panel under the bar */
.pp-prev-title { font-size: var(--type-heading); }
.pp-sub { margin: 1rem 0 0.375rem; font-family: var(--caps); font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; font-size: var(--type-body); line-height: 1; }
.pp-prev-places { margin: 0; padding: 0 0 0 1.75rem; border-top: 1.5px solid var(--ink); }
.pp-prev-places li { padding: 0.375rem 0; border-bottom: 1px solid var(--line); }
.pp-prev-places li::marker { font-family: var(--caps); font-weight: 900; color: var(--muted); }
.pp-prev-name { display: block; font-family: var(--caps); font-weight: 900; text-transform: uppercase; font-size: var(--type-lead); line-height: 1.05; overflow-wrap: anywhere; }
.pp-prev-meta { display: block; color: var(--muted); font-size: var(--type-meta); }
.pp-prev-meta:empty { display: none; }
.pp-have { font-weight: 600; }

@media (min-width: 40rem) {
  .pp-lib { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 64rem) {
  .pp-layout { grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 1fr); }
  .pp-side { position: sticky; top: 1rem; }
  .pp-form { margin-top: 2rem; }
}

/* ---------- step 4, under test (labs "crawl"): crawls, the same Card shown as a route ----------
   Stops in order. The next stop is a gold leaning slab (the one answer right now, like #1) over a paper panel that
   holds Directions, I'm here and Skip. The route numbers each stop on a small leaning plate: a pastel stroke when
   done (in visit order), ink when it's next, an outline while it's to come or skipped. Flat, upright, no stamps. */
.cr-sec .tt-place.is-now .tt-pm { color: var(--ink); font-weight: 600; }

/* Make a crawl: Up and Down beside each stop (44px, outlined caps), then the window */
.pp-chosen > .cr-row { grid-template-columns: 1.75rem minmax(0, 1fr); row-gap: 0.375rem; padding: 0.5rem 0; }
.cr-moves { grid-column: 2; display: flex; align-items: center; gap: 0.375rem 0.5rem; flex-wrap: wrap; }
.cr-mv {
  min-block-size: 44px; min-inline-size: 3.25rem; padding: 0 0.625rem; border: 1.5px solid var(--ink); background: none; color: var(--ink);
  font-family: var(--caps); font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; font-size: var(--type-body); line-height: 1; cursor: pointer;
}
.cr-mv:hover:not(:disabled) { background: color-mix(in srgb, var(--ink) 10%, transparent); }
.cr-mv:disabled { border-color: var(--line); color: var(--muted); cursor: default; }
.cr-mv:focus-visible { outline-offset: 2px; }
.cr-moves .pp-rm { margin-left: 0.25rem; }
.pp-input[type="time"] { inline-size: auto; min-inline-size: 9rem; }
.cr-until { display: flex; flex-wrap: wrap; gap: 0.5rem; padding-left: 2rem; }
.cr-until[hidden] { display: none; }

/* a crawl's page */
.cr-who { margin: 0.5rem 0 0; font-weight: 600; }
.cr-next { margin-top: 1.25rem; background: var(--paper); border: 1.5px solid var(--ink); border-top: 0; }
.cr-next-top {
  --lx: calc(var(--lean) * 2); margin: 0 -1.5px; padding: 0.875rem calc(1rem + var(--lx)) 1rem;
  background: var(--gold); color: var(--on-color); clip-path: polygon(var(--lx) 0, 100% 0, calc(100% - var(--lx)) 100%, 0 100%);
}
.cr-next-plate { margin: 0; display: flex; align-items: baseline; gap: 0.375rem; font-family: var(--caps); text-transform: uppercase; line-height: 0.85; }
.cr-next-word { font-weight: 800; letter-spacing: 0.03em; font-size: var(--type-lead); }
.cr-next-n { font-weight: 900; font-size: 3rem; }
.cr-next-of { font-weight: 800; font-size: var(--type-lead); letter-spacing: 0.03em; }
.cr-next-name {
  margin: 0.375rem 0 0; font-family: var(--caps); font-weight: 900; text-transform: uppercase; line-height: 0.92;
  font-size: clamp(2.25rem, 9vw, 2.75rem); text-wrap: balance; overflow-wrap: anywhere;
}
.cr-next-name:focus-visible { outline: 3px solid var(--on-color); outline-offset: 3px; }
.cr-next-addr { margin: 0.375rem 0 0; font-weight: 500; font-size: var(--type-small); }
.cr-next-addr:empty { display: none; }
.cr-next-note { margin: 0.75rem 1rem 0; font-weight: 600; max-width: 46ch; }
.cr-exits { padding: 1rem 1rem 0; }
.cr-here { margin: 0.875rem 1rem 0; }
.cr-here[hidden] { display: none; }
.cr-next > .ci-acts { margin: 0.25rem 1rem 0; }
.cr-skip-note { margin: 0 1rem 1rem; color: var(--muted); font-size: var(--type-small); max-width: 46ch; }
.cr-view .pp-side .pp-qs { margin-top: 1.75rem; }
.cr-ended { margin: 1.25rem 0 0; font-weight: 600; max-width: 46ch; }

.cr-route, .cr-recap-list { list-style: none; margin: 1.5rem 0 0; padding: 0; border-top: 3px solid var(--ink); }
.cr-stop, .cr-rc {
  display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 0.75rem; align-items: start;
  padding: 0.75rem 0; border-bottom: 1px solid var(--line);
}
.cr-stop.has-ph { grid-template-columns: 2.75rem minmax(0, 1fr) auto; }
.cr-num {
  --lx: 0.45rem; --sf: var(--muted); --sb: var(--ground); --fg: var(--ink);
  position: relative; display: flex; align-items: center; justify-content: center; inline-size: 2.75rem; block-size: 2.5rem;
  font-family: var(--caps); font-weight: 900; font-size: var(--type-title-sm); line-height: 1; color: var(--fg);
}
.cr-num::before, .cr-num::after { content: ""; position: absolute; clip-path: polygon(var(--lx) 0, 100% 0, calc(100% - var(--lx)) 100%, 0 100%); }
.cr-num::before { inset: 0; background: var(--sf); }
.cr-num::after { inset: 1.5px; background: var(--sb); }
.cr-num > span { position: relative; z-index: 1; }
.cr-num.is-todo, .cr-num.is-skipped { --fg: var(--muted); }
.cr-num.is-next { --sf: var(--ink); --sb: var(--ink); --fg: var(--ground); }
.cr-num.is-done { --fg: var(--on-color); }
.cr-num.c1 { --sf: var(--sky); --sb: var(--sky); }
.cr-num.c2 { --sf: var(--mint); --sb: var(--mint); }
.cr-num.c3 { --sf: var(--gold); --sb: var(--gold); }
.cr-num.c4 { --sf: var(--pink); --sb: var(--pink); }
.cr-num.c5 { --sf: var(--violet); --sb: var(--violet); }
.cr-stop-words, .cr-rc-words { min-width: 0; }
.cr-stop-name { margin: 0.25rem 0 0; font-family: var(--caps); font-weight: 900; text-transform: uppercase; font-size: var(--type-name); line-height: 0.95; text-wrap: balance; overflow-wrap: anywhere; }
.cr-stop:not(.is-done) .cr-stop-name { color: var(--muted); }
.cr-stop.is-next .cr-stop-name { color: var(--ink); }
.cr-stop-meta { margin: 0.25rem 0 0; color: var(--muted); font-size: var(--type-meta); display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; }
.cr-stop.is-next .cr-stop-meta { color: var(--ink); font-weight: 700; }
.cr-stop .tt-words, .cr-rc .tt-words { margin-top: 0.5rem; }
.cr-ans { margin-left: 0; margin-top: 0.5rem; }
.cr-back { font-size: var(--type-small); }
.cr-thumb { width: 3rem; height: 4rem; --lx: 0.85rem; }

.cr-recap { margin-top: 1.5rem; }
.cr-recap .cr-recap-list { margin-top: 0; border-top: 0; }
.cr-rc.has-ph { grid-template-columns: 2.75rem minmax(0, 1fr); }
.cr-rc-ph { --lx: 1.4rem; grid-column: 2; inline-size: 100%; aspect-ratio: 4 / 3; max-block-size: 18rem; }
.cr-rc:not(.is-done) .cr-stop-name { color: var(--muted); }
.cr-recap .sh-row { margin-top: 1rem; }
.cr-rc-note { margin-top: 0.75rem; }

/* the thanks step: the next stop with Directions */
.cr-then { margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--line); }
.cr-then-line { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.375rem; }
.cr-then-word { font-family: var(--caps); font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; font-size: var(--type-lead); }
.cr-then-name { font-family: var(--caps); font-weight: 900; text-transform: uppercase; font-size: var(--type-title-sm); line-height: 0.95; overflow-wrap: anywhere; }
.cr-then .ci-acts { margin-top: 0.5rem; }

@media (forced-colors: active) {
  .cr-next-top, .cr-num::before, .cr-num::after { clip-path: none; }
  .cr-num { border: 1px solid CanvasText; }
}
@media (min-width: 40rem) {
  .pp-chosen > .cr-row { grid-template-columns: 1.75rem minmax(0, 1fr) auto; }
  .cr-moves { grid-column: 3; justify-content: flex-end; }
  .cr-rc.has-ph { grid-template-columns: 2.75rem minmax(0, 1fr) 13rem; }
  .cr-rc-ph { grid-column: 3; grid-row: 1; aspect-ratio: 3 / 4; max-block-size: 16rem; }
}

/* ---------- step 5, under test (labs "bingo"): this month's five, at the top of Your Townie card ----------
   The five places are the Tally T's five strokes on a leaning plate in the bar's own tokens (dark in light theme,
   light in dark theme, like the caption bar): a stroke fills with its color once checked in this month, and stays an
   outline until then. Each place in the list carries its stroke as a key. Finished: a calm line and a small gold
   month plate (flat, upright, leaning like the rest; never a stamp). No counters of months, no countdown. */
.bg-sec { margin-top: 1.25rem; }
.bg-board {
  --lx: calc(var(--lean) * 2);
  --k1: var(--sky); --k2: var(--mint); --k3: var(--gold); --k4: var(--pink); --k5: var(--violet);
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1rem;
  padding: 1rem calc(1.125rem + var(--lx)) 1rem calc(0.75rem + var(--lx));
  background: var(--bar); color: var(--on-bar);
  clip-path: polygon(var(--lx) 0, 100% 0, calc(100% - var(--lx)) 100%, 0 100%);
}
:root[data-theme="dark"] .bg-board { --k1: #1f6fb2; --k2: #2e8540; --k3: #9a6a00; --k4: #c2224f; --k5: #6a4fd1; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .bg-board { --k1: #1f6fb2; --k2: #2e8540; --k3: #9a6a00; --k4: #c2224f; --k5: #6a4fd1; }
}
.bg-t { width: 5.25rem; height: 6.2rem; flex: none; overflow: visible; }
.bg-stem { fill: var(--on-bar); }
.bg-k.c1 { fill: var(--k1); }
.bg-k.c2 { fill: var(--k2); }
.bg-k.c3 { fill: var(--k3); }
.bg-k.c4 { fill: var(--k4); }
.bg-k.c5 { fill: var(--k5); }
.bg-k.is-open { fill: none; stroke: var(--bar-muted); stroke-width: 2; }
.bg-words { min-width: 0; }
.bg-title {
  margin: 0; font-family: var(--caps); font-weight: 900; text-transform: uppercase; font-size: var(--type-title); line-height: 0.92;
  text-wrap: balance;
}
.bg-title:focus-visible { outline: 3px solid var(--bar-focus); outline-offset: 3px; }
.bg-count { margin: 0.375rem 0 0; font-family: var(--caps); font-weight: 900; text-transform: uppercase; font-size: min(3.25rem, 13vw); line-height: 0.88; }
.bg-until { margin: 0.375rem 0 0; color: var(--bar-muted); font-weight: 500; font-size: var(--type-small); }
.bg-lede { margin: 0.75rem 0 0; font-weight: 500; max-width: 40ch; }

.bg-list { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.bg-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.75rem;
  padding: 0.625rem 0; border-top: 1px solid var(--line);
}
.bg-row:first-child { border-top: 0; }
.bg-key { width: 0.5rem; height: 2.25rem; margin-left: 0.375rem; transform: skewX(-12deg); box-shadow: inset 0 0 0 1.5px var(--muted); }
.bg-key.c1 { --kc: var(--m1); }
.bg-key.c2 { --kc: var(--m2); }
.bg-key.c3 { --kc: var(--m3); }
.bg-key.c4 { --kc: var(--m4); }
.bg-key.c5 { --kc: var(--m5); }
.bg-key.is-done { background: var(--kc); box-shadow: none; }
.bg-name { margin: 0; font-family: var(--caps); font-weight: 900; text-transform: uppercase; font-size: var(--type-label); line-height: 0.95; text-wrap: balance; overflow-wrap: anywhere; }
.bg-meta { margin: 0.25rem 0 0; color: var(--muted); font-size: var(--type-meta); }
.bg-meta:empty { display: none; }
.bg-status { margin: 0.25rem 0 0; font-weight: 600; font-size: var(--type-small); }
.bg-row:not(.is-done) .bg-status { color: var(--muted); font-weight: 500; }
.bg-go { white-space: nowrap; }

.bg-moment { margin-top: 0.875rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.625rem 1rem; }
.bg-moment-text { margin: 0; font-family: var(--caps); font-weight: 900; text-transform: uppercase; font-size: var(--type-title); line-height: 1; }
.bg-moment .ci-note { flex-basis: 100%; margin: 0; }
.bg-plate {
  --lx: 0.375rem; display: inline-flex; align-items: center; gap: 0.375rem; flex: none;
  padding: 0.3125rem calc(0.5rem + var(--lx)); background: var(--gold); color: var(--on-color);
  clip-path: polygon(var(--lx) 0, 100% 0, calc(100% - var(--lx)) 100%, 0 100%);
  font-family: var(--caps); font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; font-size: var(--type-small); line-height: 1;
}
.bg-plate-year { font-family: var(--sans); font-weight: 600; text-transform: none; letter-spacing: 0; font-size: var(--type-meta); }
.bg-plate.is-big { --lx: 0.75rem; gap: 0.625rem; padding: 0.625rem calc(1rem + var(--lx)); font-size: var(--type-name); font-weight: 900; }
.bg-plate.is-big .pp-fin-ticks { gap: 4px; }
.bg-plate.is-big .pp-fin-ticks i { width: 6px; height: 1.625rem; }
.bg-plate.is-big .bg-plate-year { font-size: var(--type-body); }

.bg-badges { margin-top: 1rem; padding-top: 0.75rem; border-top: 1.5px solid var(--ink); }
.bg-sub { margin: 0 0 0.5rem; font-family: var(--caps); font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; font-size: var(--type-lead); line-height: 1; }
.bg-plates { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.bg-note { margin: 0.5rem 0 0; color: var(--muted); font-size: var(--type-meta); }

/* the thanks step: one quiet line with the five as a tally */
.bg-thanks { margin-top: 0.75rem; --t1: var(--m1); --t2: var(--m2); --t3: var(--m3); --t4: var(--m4); --t5: var(--m5); }
.bg-thanks-line { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.625rem; font-weight: 600; }

@media (forced-colors: active) {
  .bg-board, .bg-plate { clip-path: none; border: 1px solid CanvasText; }
  .bg-key { border: 1px solid CanvasText; }
}
@media (min-width: 64rem) {
  .bg-sec:not([hidden]) { display: grid; grid-template-columns: minmax(0, 30rem) minmax(0, 1fr); gap: 0 3rem; align-items: start; }
  .bg-list { margin-top: 0; }
  .bg-badges { grid-column: 1 / -1; }
}

/* Forgot to check in? (test flag "forgot"): the short place list, and the test-mode readout */
.fg-slot { margin-top: 1rem; padding: 1rem 0 0.25rem; border-top: 3px solid var(--ink); }
.fg-choices { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.fg-choice { width: 100%; min-height: 3.25rem; height: auto; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0.125rem; padding-block: 0.5rem; text-align: left; }
.fg-choice small { font-family: var(--sans); font-weight: 500; text-transform: none; font-size: var(--type-small); }
.fg-debug { margin-top: 1.5rem; padding-top: 0.75rem; border-top: 1px dashed var(--line); font-size: var(--type-meta); }
.fg-debug summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.fg-debug-pre { margin: 0.5rem 0 0; max-height: 20rem; overflow: auto; white-space: pre-wrap; word-break: break-word; font-size: var(--type-meta); background: var(--paper); padding: 0.5rem; }

/* Design round 1 (owner-approved 2026-10-10): check-in as a screen of its own on a phone, and over the card at any
   size, so it never opens below the fold. The page behind holds still (body.ci-open). The welcome stays in the page. */
@media (max-width: 47.99rem) {
  .checkin:not([hidden]):not(.is-welcome) {
    position: fixed; inset: 0; z-index: 40; margin: 0; max-width: none; border: 0; overflow-y: auto; overscroll-behavior: contain;
    padding: max(1rem, env(safe-area-inset-top)) var(--gutter) calc(2.5rem + env(safe-area-inset-bottom));
  }
  body.ci-open { overflow: hidden; }
}
body[data-view="card"] .checkin:not([hidden]):not(.is-welcome) {
  position: fixed; inset: 0; z-index: 40; margin: 0; max-width: none; border: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: max(1rem, env(safe-area-inset-top)) var(--gutter) calc(2.5rem + env(safe-area-inset-bottom));
}
body[data-view="card"].ci-open { overflow: hidden; }
body[data-view="card"] .checkin .ci-body { max-width: 40rem; margin-inline: auto; position: relative; }
.checkin .ci-close { z-index: 1; }

/* the thanks step: one ask, then the rest folded */
.ci-more { margin-top: 1.25rem; }
.ci-more > :not(summary) { margin-top: 0.75rem; }
.ci-more-n { color: var(--muted); font-weight: 500; }
.ci-more .btn-primary { background: none; color: var(--ink); }   /* folded asks stay quiet: one filled button per step */
.ci-more .btn-primary:hover { background: color-mix(in srgb, var(--ink) 12%, transparent); }
body[data-view="card"] .checkin .ci-close { right: max(var(--gutter), calc((100% - 40rem) / 2)); }

/* option A (owner-approved 2026-10-10): what every pick shares, said once above the board */
.board-fits { margin: 0 0 0.75rem; }
.board-fits .fits { margin: 0; }
.board-fits .fits-seen { font-size: var(--type-small); }
body[data-view="home"] .board-fits, body[data-view="card"] .board-fits { display: none; }

/* a page for one shared place (owner-approved 2026-10-22): /p/<place>. Its own view, like the card: the board
   and the start screen step aside. The two planes lean like the board's (clipped, not skewed). */
body[data-view="place"] .bleed, body[data-view="place"] .today > :not(#checkin):not(#announcer),
body[data-view="place"] .board-fits { display: none; }
.placepage { padding: 0.5rem 0 2.5rem; max-width: 40rem; }
.pl-loading { color: var(--muted); }
.pl-from { margin: 0.25rem 0 0; }
.pl-asked, .pl-slab { --lx: min(calc(var(--lean) * 2), 7vw); clip-path: polygon(var(--lx) 0, 100% 0, calc(100% - var(--lx)) 100%, 0 100%); }
.pl-asked { margin-top: 0.75rem; padding: 0.75rem calc(1rem + var(--lx)) 0.875rem; background: var(--plane); color: var(--on-plane); }
.pl-asked-label { margin: 0; font-size: var(--type-meta); font-weight: 700; }
.pl-asked-q { margin: 0.125rem 0 0; font-weight: 500; font-size: var(--type-label); line-height: 1.3; }
.pl-slab { margin-top: 0.75rem; padding: 1.25rem calc(1rem + var(--lx)) 1.125rem; background: var(--gold); color: var(--on-color); }
.pl-name {
  margin: 0 0 0.75rem; font-family: var(--caps); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.25rem, 9vw, 2.75rem); line-height: 0.92; text-wrap: balance; overflow-wrap: break-word;
}
.pl-name:focus-visible { outline-offset: 4px; }
.pl-take { margin: 0; font-weight: 500; font-size: var(--type-lead); line-height: 1.4; }
.pl-take .take-by { display: block; margin-top: 0.25rem; font-size: var(--type-small); }
.pl-meta { margin: 0.625rem 0 0; font-size: var(--type-small); }
.pl-go { display: flex; width: 100%; margin-top: 1rem; }
.pl-links { margin-top: 0.5rem; }
.pl-sec { margin-top: 1.75rem; }
.pl-sec > * + * { margin-top: 0.5rem; }
.pl-h { margin: 0; font-family: var(--caps); font-weight: 800; text-transform: uppercase; font-size: var(--type-title-sm); line-height: 1; }
.pl-dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.375rem 1rem; }
.pl-dl div { display: contents; }
.pl-dl dt { font-family: var(--caps); font-weight: 800; text-transform: uppercase; font-size: var(--type-label); line-height: 1.2; }
.pl-dl dd { margin: 0; align-self: center; }
.pl-gone { margin: 1rem 0 0; font-family: var(--caps); font-weight: 900; text-transform: uppercase; font-size: var(--type-heading); line-height: 0.95; }
.pl-cta { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.pl-cta p { margin: 0 0 0.75rem; max-width: 40ch; }
.pl-own { display: flex; width: 100%; }
.share-note { margin: 0.125rem 0 0; color: var(--muted); font-size: var(--type-meta); }

/* round 5 (owner-approved 2026-10-22): what a tap changed, in words. The line sits above the board; each pick that
   moved carries a short mark, led by one leaning stroke like the reasons. */
.board-change { margin: 0 0 0.5rem; font-weight: 500; max-width: 60ch; }
.board-change[hidden] { display: none; }
body[data-view="home"] .board-change, body[data-view="card"] .board-change, body[data-view="place"] .board-change { display: none; }
.moved { display: block; margin-top: 0.25rem; font-size: var(--type-meta); font-weight: 600; }
.moved::before {
  content: ""; display: inline-block; width: 3px; height: 0.75em; margin-right: 0.4em; vertical-align: -0.05em;
  background: currentColor; transform: skewX(-12deg);
}

/* ---------- start from the map (owner-approved 2026-11-08, design brain concept 2A) ----------
   "Map first" sits in the What sounds good heading row, so it costs no height. A kind opens every
   place of that kind on its two steady traits; a corner or half fills the frame when kept. */
.what-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin: 1.5rem 0 0.375rem; }
.what-row .what-heading { margin: 0; }
.mapfirst {
  flex: none; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0 0.75rem;
  border: 1.5px solid var(--ink); background: none; color: var(--ink);
  font-family: var(--caps); font-weight: 800; text-transform: uppercase; font-size: var(--type-lead); letter-spacing: 0.02em; line-height: 1;
}
.mapfirst:hover { background: color-mix(in srgb, var(--ink) 12%, transparent); }
.mapfirst[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.mapfirst:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.glyph { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 18px; height: 18px; }
.glyph i { border: 1.5px solid currentColor; }
.glyph i.on { background: currentColor; }
.zoom-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; margin: 0 0 0.75rem; }
.zoom-head .step-q { overflow-wrap: anywhere; }
.widen { flex: none; }
.plot.is-kind { grid-template-rows: auto 7.5rem 7.5rem auto; }
.plot.is-kind.is-zoom { grid-template-rows: auto 9.5rem 9.5rem auto; border-width: 2px; }
.plot.is-kind .quad.edge-r { border-right: 1px solid var(--line); }
.plot.is-kind .quad.edge-b { border-bottom: 1px solid var(--line); }
.plot.is-kind button.quad:disabled { cursor: default; background: none; }
.widen-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0.75rem 0 0; }
.widen-row .lbl { font-size: var(--type-small); font-weight: 700; margin-right: 0.25rem; }
.widen-row .chip { display: inline-flex; align-items: center; gap: 0.375rem; font-size: var(--type-lead); }
.chip .n { font-family: var(--sans); font-weight: 600; text-transform: none; font-size: var(--type-meta); letter-spacing: 0; color: var(--muted); }
.lg-dot.is-near { background: var(--ink); }
.kind-list { margin: 0.25rem 0 0; font-size: var(--type-small); }
.kind-list summary { min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
.kind-list summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.kind-list-h { margin: 0.5rem 0 0.125rem; font-weight: 700; }
.kind-list ul { margin: 0; padding-left: 1.25rem; }
@media (prefers-reduced-motion: no-preference) {
  /* the kept part opens out from its own corner; a clip, so nothing moves while names are measured */
  .plot.is-kind.is-zoom { animation: kind-in 320ms cubic-bezier(0.16, 1, 0.3, 1); }
  .plot.is-kind.is-zoom.from-tr { --kc: inset(0 0 100% 100%); }
  .plot.is-kind.is-zoom.from-tl { --kc: inset(0 100% 100% 0); }
  .plot.is-kind.is-zoom.from-br { --kc: inset(100% 0 0 100%); }
  .plot.is-kind.is-zoom.from-bl { --kc: inset(100% 100% 0 0); }
  @keyframes kind-in { from { clip-path: var(--kc, inset(0 0 100% 0)); } to { clip-path: inset(0 0 0 0); } }
}
@media (min-width: 64rem) {
  .plot.is-kind { grid-template-rows: auto 10rem 10rem auto; }
  .plot.is-kind.is-zoom { grid-template-rows: auto 13rem 13rem auto; }
}
.widen.btn { gap: 0.5rem; min-height: 44px; padding: 0 0.875rem; font-size: var(--type-lead); }
.nm.is-pickname { font-weight: 700; font-size: var(--type-small); z-index: 3; }
.kind-five { list-style: none; margin: 0.375rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1rem; }
.kind-five .rank-1 { --c: var(--gold); } .kind-five .rank-2 { --c: var(--mint); } .kind-five .rank-3 { --c: var(--pink); }
.kind-five .rank-4 { --c: var(--sky); } .kind-five .rank-5 { --c: var(--violet); }
.kf { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink);
  font-weight: 700; font-size: var(--type-small); text-align: left; }
.kf:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.kf:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.kf-n { display: grid; place-items: center; min-width: 1.5rem; height: 1.5rem; background: var(--c); color: var(--on-color);
  border: 1.5px solid var(--ink); font-family: var(--caps); font-weight: 900; font-size: var(--type-body); line-height: 1; transform: skewX(-12deg); }
.step[data-step="map"] { max-width: 44rem; }

/* ---------- Choose together (owner-approved 2026-11-08, design brain concept 1A) ----------
   Each added person is a line under the box: an optional name, their own words, one-tap words. The bar's
   colors carry through (currentColor), so it reads in the dark bar on Home and the colored band on results. */
.people { margin-top: 0.75rem; }
.who + .who { margin-top: 1rem; }
.who-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-height: 44px; }
.who-name {
  appearance: none; min-width: 0; width: min(11rem, 60%); min-height: 44px; margin: 0; padding: 0;
  border: 0; border-bottom: 1.5px solid color-mix(in srgb, currentColor 85%, transparent); border-radius: 0;
  background: none; color: inherit; font-family: var(--caps); font-weight: 800; text-transform: uppercase;
  font-size: var(--type-label); letter-spacing: 0.02em;
}
.who-name::placeholder, .who-text::placeholder { color: inherit; opacity: 0.85; }
.who-name:focus-visible, .who-text:focus-visible { outline: 3px solid var(--bar-focus); outline-offset: 2px; }
body[data-view="results"] .who-name:focus-visible, body[data-view="results"] .who-text:focus-visible { outline-color: var(--on-plane); }
.who-remove { color: inherit; font-size: var(--type-small); }
.who-field { border-bottom: 2px solid currentColor; }
.who-text {
  appearance: none; width: 100%; min-height: 2.75rem; margin: 0; padding: 0.5rem 0; border: 0; border-radius: 0;
  background: none; color: inherit; font-family: var(--sans); font-size: var(--type-lead); line-height: 1.3;
}
.quick-lead { display: block; margin-top: 0.5rem; font-size: var(--type-small); opacity: 0.85; }
.quick { list-style: none; margin: 0.375rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.375rem; }
.quick .chip { border-color: currentColor; color: inherit; font-size: var(--type-lead); padding: 0 0.75rem; }
.quick .chip:hover { background: color-mix(in srgb, currentColor 14%, transparent); }
.caption .quick .chip[aria-pressed="true"] { background: var(--on-bar); color: var(--bar); }
body[data-view="results"] .quick .chip[aria-pressed="true"] { background: var(--on-plane); color: var(--plane); }
.ask-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1rem; margin-top: 0.5rem; }
/* ISS-17 (home, phones): the link's own 44px target is its breathing room, so the row sits tight
   under the box and the bar ends close under it. The results band keeps its spacing. */
@media (max-width: 63.99rem) {
  body:not([data-view="results"]) .ask-foot { margin-top: 0.25rem; }
  /* only when Add someone is the bar's last line (no status, plates, consent or keep line under it) */
  body:not([data-view="results"]) .caption:not(:has(.status:not(:empty), #pilot-acts:not([hidden]), .consent:not([hidden]), #keep:not([hidden]))) { padding-bottom: 0.5rem; }
  /* ISS-17 round 2 (phones): Add someone's 44px target already leaves air under its words, so the
     keep line follows with no extra margin; the masthead and the tile note close up a little */
  body[data-view="home"] .top { padding-bottom: 0.5rem; }   /* Home only; results and plain pages keep theirs */
  body:not([data-view="results"]) .keep { margin-top: 0; }
  .what-note { margin-bottom: 0.625rem; }
}
/* ISS-17 round 2 (wide): the keep line's two links sit on the sentence's own row, and the tile
   note sits in the heading row between "What sounds good?" and Map first, so neither costs a line */
@media (min-width: 64rem) {
  .keep { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.5rem; max-width: none; }
  body:not([data-view="results"]) .caption { padding-bottom: 1rem; }   /* the links' 44px rows carry their own air */
  .whats-block { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 1.25rem; margin-top: 1.25rem; }
  .whats-block .what-row { display: contents; }
  .whats-block .what-heading { grid-column: 1; grid-row: 1; }
  .whats-block .mapfirst { grid-column: 3; grid-row: 1; }
  .whats-block .what-note { grid-column: 2; grid-row: 1; margin: 0; }
  .whats-block .sheets { grid-column: 1 / -1; margin-top: 0.875rem; }
}
.add-who {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0; border: 0; background: none; color: inherit;
  font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em;
}
.add-who:hover { text-decoration-thickness: 3px; }
.add-who svg { width: 0.875rem; height: 0.875rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: square; }
.who-note { margin: 0; font-size: var(--type-small); line-height: 1.4; opacity: 0.85; }

/* who each pick suits: one leaning tally stroke per person, said in words too */
.pfit { display: flex; align-items: baseline; gap: 0.5rem; margin-top: 0.5rem; font-size: var(--type-small); line-height: 1.35; text-align: left; }
.pfit-marks { display: inline-flex; gap: 3px; flex: none; transform: translateY(0.12em); }
.pfit-marks i { display: block; width: 5px; height: 0.95em; background: currentColor; transform: skewX(-12deg); }
.pfit-marks i.off { background: none; box-shadow: inset 0 0 0 1.5px currentColor; }
.pfit-marks i.is-no { opacity: 0.4; }
.pfit-text { min-width: 0; }
.pfit-head { font-weight: 700; }
.pfit-more { display: block; font-weight: 500; }
.pick:first-child .pfit { font-size: var(--type-body); margin-top: 0.75rem; }
/* on results the band stays short: each person shows only the words they picked until you edit their line */
body[data-view="results"] .who:not(.is-open) .quick li:has(.chip[aria-pressed="false"]),
body[data-view="results"] .who:not(.is-open) .quick-lead,
body[data-view="results"] .who-note { display: none; }
body[data-view="results"] .who + .who { margin-top: 0.5rem; }
.who-acts { display: inline-flex; gap: 1rem; flex: none; }
.who-change { display: none; color: inherit; font-size: var(--type-small); }
body[data-view="results"] .who-change { display: inline-block; }
