/* Book Glitter Vault — phone-first responsive styles.
   Palette follows the Book Glitter standard: navy, silver, purple accent,
   white, light blue-gray. No gold. */
:root {
  --navy: #1b2a4a;
  /* --purple retired (DECISIONS #95): the legacy
     #7c5cbf lost every working role in the purple
     sweep — purple survives only as the glitter
     accent (the mood pillars' selected/hover tone,
     the tagline stars, the static speckle, the dark
     mode pill). */
  --silver: #c9ced6;
  /* THEME (DECISIONS #94; design-tokens.md): every
     surface colour below is a variable, and the two
     modes are variable SETS, nothing more — the parity
     rule (light and dark are the same interface; only
     colours differ) holds by construction. DARK is the
     base set: the first-visit default is dark (owner
     rulings, Nov 26, 2026), so a document with no
     preference — and a dark "system" — wears these.
     The light set applies to an explicit light choice
     and to "system" until the dark media query below
     re-asserts the dark set for it. Values are the
     tokens of record: page #10182b · panel #16213c ·
     dividers #26355c · banner #0b1120 · text #dbe2f2 ·
     headings #ffffff · muted #8fa1c9 in dark; the
     standing light values (page #f4f6fa, panel #fff,
     hairlines #e2e5ef) in light. The dashboard blocks
     are the navy family in BOTH modes (#16233f light /
     #16213c dark, per the approved v11 mock). */
  --bg: #10182b;
  --card: #16213c;
  --ink: #dbe2f2;
  --heading: #ffffff;
  --muted: #8fa1c9;
  --hairline: #26355c;
  --border: #26355c;
  --banner-bg: #0b1120;
  --tagline: #a9bde8;
  --tagline-strong: #dbe2f2;
  --tstar: #ac9bd2;
  /* The back-to-the-dashboard link (DECISIONS #100):
     a designated purple surface (design-tokens.md) —
     the dark set wears the palette's light purple so
     the link stays readable on the dark ground (the
     owner's catch: the unclassed link it replaced sank
     into it); the light set below wears #7c5cbf. */
  --back-dash: #ac9bd2;
  --field-bg: #10182b;
  --field-border: #3a4a75;
  --hover: #1a2440;
  --row-ink: #dbe2f2;
  --badge-bg: #dbe2f2;
  --badge-ink: #1b2a4a;
  --tag-bg: #dbe2f2;
  --tag-ink: #1b2a4a;
  --wash-weighted-bg: #1a2440;
  --wash-weighted-border: #93a5d4;
  --wash-weighted-ink: #a9bde8;
  --wash-mood-bg: #152238;
  --wash-mood-border: #647fb4;
  --wash-mood-ink: #a9bde8;
  --err-bg: #3a1d1c;
  --err-border: #7a3a36;
  --err-ink: #f3c1bc;
  --success-bg: #1a2440;
  --success-border: #93a5d4;
  --seterr-bg: #3a1d1c;
  --seterr-border: #7a3a36;
  --seterr-ink: #f3c1bc;
  --block-bg: #16213c;
  --block-kicker: #8fa1c9;
  --block-door: #dbe2f2;
  --footer-ink: #dbe2f2;
  --placeholder: #8fa1c9;
  --switch-off: #3a4a75;
  /* The two continuous lines (DECISIONS #92; design
     tokens of record): --headh is the ONE height the
     greeting bar and the banner share, and --bandh is
     the ONE height the panel's bottom band and the
     footer strip share, borders included. Both values
     are MEASURED, not chosen: on the pre-build tree
     (8cb7be4) in Chromium, at 1366×1024 and 1180×820,
     the banner's natural height measured 59.96875px
     and the band's natural resting height — gear ·
     search · compose, appearance folded: border-top
     1px + padding 19.2px + the 42px search row —
     measured 62.1875px. The strips are built TO those
     measurements via the variables; the footer matches
     the band because both read --bandh. --bandground
     is the band's ground — the panel surface — worn by
     both bottom strips. */
  --headh: 59.96875px;
  --bandh: 62.1875px;
  --bandground: #16213c;
}
/* The light set (DECISIONS #94): an explicit light
   choice wears it, and "system" wears it until the
   dark media query re-asserts the dark set below. */
:root[data-theme="light"], :root[data-theme="system"] {
  --bg: #f4f6fa;
  --card: #ffffff;
  --ink: #1c2333;
  --heading: #1b2a4a;
  --muted: #5a6480;
  --hairline: #e2e5ef;
  --border: #d4dbe8;
  --bandground: #ffffff;
  /* The light banner converges to the website's shade
     (owner ruling, Nov 26, 2026, closing the light-
     banner delta from the Vault side): #0d1126 here,
     against the dark banner's #0b1120. */
  --banner-bg: #0d1126;
  --tagline: #c9ced6;
  --tagline-strong: #ffffff;
  --tstar: #a58fe0;
  --back-dash: #7c5cbf;
  --field-bg: #ffffff;
  --field-border: #c9ced6;
  --hover: #eef0f7;
  --row-ink: #1b2a4a;
  --badge-bg: #1b2a4a;
  --badge-ink: #ffffff;
  --tag-bg: #1b2a4a;
  --tag-ink: #ffffff;
  --wash-weighted-bg: #e9edf8;
  --wash-weighted-border: #93a5d4;
  --wash-weighted-ink: #1b2a4a;
  --wash-mood-bg: #e2e8f6;
  --wash-mood-border: #647fb4;
  --wash-mood-ink: #1b2a4a;
  --err-bg: #fdeeee;
  --err-border: #e5b4b4;
  --err-ink: #1c2333;
  --success-bg: #e9edf8;
  --success-border: #93a5d4;
  --seterr-bg: #fdeceb;
  --seterr-border: #f0c6c2;
  --seterr-ink: #8c1d18;
  --block-bg: #16233f;
  --block-kicker: #9fb0d8;
  --block-door: #ffffff;
  --footer-ink: #1b2a4a;
  --placeholder: #5a6480;
  --switch-off: #c9ced6;
}
@media (prefers-color-scheme: dark) {
  /* "System" on a dark device (DECISIONS #94): the
     dark set, re-asserted over the light block above —
     the same values as the :root base, so a system
     member's page follows their device live. */
  :root[data-theme="system"] {
    --bg: #10182b;
    --card: #16213c;
    --ink: #dbe2f2;
    --heading: #ffffff;
    --muted: #8fa1c9;
    --hairline: #26355c;
    --border: #26355c;
    --bandground: #16213c;
    --banner-bg: #0b1120;
    --tagline: #a9bde8;
    --tagline-strong: #dbe2f2;
    --tstar: #ac9bd2;
    --back-dash: #ac9bd2;
    --field-bg: #10182b;
    --field-border: #3a4a75;
    --hover: #1a2440;
    --row-ink: #dbe2f2;
    --badge-bg: #dbe2f2;
    --badge-ink: #1b2a4a;
    --tag-bg: #dbe2f2;
    --tag-ink: #1b2a4a;
    --wash-weighted-bg: #1a2440;
    --wash-weighted-border: #93a5d4;
    --wash-weighted-ink: #a9bde8;
    --wash-mood-bg: #152238;
    --wash-mood-border: #647fb4;
    --wash-mood-ink: #a9bde8;
    --err-bg: #3a1d1c;
    --err-border: #7a3a36;
    --err-ink: #f3c1bc;
    --success-bg: #1a2440;
    --success-border: #93a5d4;
    --seterr-bg: #3a1d1c;
    --seterr-border: #7a3a36;
    --seterr-ink: #f3c1bc;
    --block-bg: #16213c;
    --block-kicker: #8fa1c9;
    --block-door: #dbe2f2;
    --footer-ink: #dbe2f2;
    --placeholder: #8fa1c9;
    --switch-off: #3a4a75;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: "Nunito Sans", system-ui, -apple-system, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.5;
}
body.large-text { font-size: 1.25rem; }
/* The banner (DECISIONS #92): frozen at the top of
   the content column on scroll (position: sticky), so
   the ☰ — the panel's only toggle since the ✕ removal
   — never scrolls out of reach, and the top line holds
   at every scroll position. Its height is the shared
   top-line variable --headh, here and on the panel's
   greeting bar, so the pair form one continuous line;
   without a panel the banner takes that height alone
   at full width. */
.site-header {
  background: var(--banner-bg); color: #fff; padding: 0 1rem;
  display: flex; flex-wrap: nowrap; gap: 0.4rem 1rem; align-items: center;
  height: var(--headh); flex: none;
  position: sticky; top: 0; z-index: 10;
}
/* The wordmark at 24px (DECISIONS #92; the banner's
   height is unchanged — --headh governs it). */
.brand { color: #fff; font-family: Manrope, system-ui, sans-serif; font-weight: 500; font-size: 24px; text-decoration: none; flex: none; }
/* The tagline treatment (DECISIONS #92, shared with
   the website): ✦ one star each side, italics, the
   key word bold, hidden below 640px. The line never
   wraps inside the fixed-height banner — under
   pressure it clips with an ellipsis, the way the
   greeting bar's line does. */
.tagline {
  color: var(--tagline); font-size: 0.9rem; font-style: italic;
  white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis;
}
.tagline strong { color: var(--tagline-strong); }
.tagline .tstar { font-style: normal; color: var(--tstar); }
@media (max-width: 639px) {
  .tagline { display: none; }
}
main { max-width: 960px; margin: 0 auto; padding: 1rem; display: grid; gap: 1rem; }
.card {
  background: var(--card); border: 1px solid var(--hairline); border-radius: 12px;
  padding: 1.1rem; box-shadow: 0 1px 3px rgba(27, 42, 74, 0.06);
}
h1, h2, h3 { font-family: Manrope, system-ui, sans-serif; font-weight: 500; color: var(--heading); margin-top: 0; }
.stack { display: grid; gap: 0.8rem; }
/* The sign-in card's why list (DECISIONS #182): what a
   free account gets, standing under the button. */
.signin-why { margin-top: 1.1rem; }
.signin-why h2 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.why-list li { padding-left: 1.5em; position: relative; }
.why-list li::before { content: '✓'; position: absolute; left: 0.15em; font-weight: 700; }
label { display: grid; gap: 0.3rem; font-weight: 600; }
label.check { display: flex; gap: 0.5rem; align-items: flex-start; font-weight: 400; }
/* The one input geometry standard (DECISIONS #78): every
   text-entry field in the app takes this rule — 0.65rem of
   padding on inherited type, which at the default root is
   16px, so iOS Safari never zooms on focus and the box
   measures ~47px tall, a comfortable tap target. The
   email field missed this rule entirely until #78 (the
   selector named url/text only), which is why the sign-in
   box rendered wide but cramped-thin; no field may take
   a smaller local geometry again (the .library-label
   override below was the second instance). */
input[type="url"], input[type="text"], input[type="email"], textarea, select {
  padding: 0.65rem; border: 1px solid var(--field-border); border-radius: 8px; font: inherit; width: 100%;
  background: var(--field-bg); color: var(--ink);
}
button.primary {
  /* DECISIONS #74 palette swap: purple is the glitter
     accent, navy is the working color — the primary
     button is navy now. White/outline buttons (chip,
     manage-row) are untouched. */
  background: var(--navy); color: #fff; border: 0; border-radius: 999px;
  padding: 0.8rem 1.4rem; font: inherit; font-weight: 700; cursor: pointer; justify-self: start;
}
button.chip {
  background: var(--hover); color: var(--row-ink); border: 1px solid var(--field-border);
  border-radius: 999px; padding: 0.35rem 0.8rem; font: inherit; font-size: 0.85rem; cursor: pointer;
}
.notice { background: var(--hover); border: 1px solid var(--field-border); border-radius: 8px; padding: 0.8rem; }
.notice.error { background: var(--err-bg); border: 1px solid var(--err-border); color: var(--err-ink); border-radius: 8px; padding: 0.8rem; }
.notice.success { background: var(--success-bg); border: 1px solid var(--success-border); border-radius: 8px; padding: 0.8rem; }
.coverage { font-size: 1.05rem; }
.coverage-note { color: var(--muted, #5a6a86); font-size: 0.92rem; margin-top: -0.4rem; }
.explainer-line { color: var(--muted, #5a6a86); font-size: 0.95rem; margin: 0.3rem 0 0; }
.explainer-detail { margin-top: 0.4rem; }
.explainer-detail summary { cursor: pointer; color: var(--wash-weighted-ink); font-size: 0.95rem; }
.explainer-detail p { color: var(--muted, #5a6a86); font-size: 0.95rem; margin: 0.4rem 0 0; }
.csv-guidance ol { color: var(--muted, #5a6a86); font-size: 0.95rem; margin: 0.4rem 0 0; padding-left: 1.4rem; }
.csv-guidance li { margin: 0.3rem 0; }
.gem-why { color: var(--muted, #5a6a86); font-size: 0.95rem; margin: 0.4rem 0 0; }
/* The Gem-vs-#1 bridge is a quiet divider, not a card among
   cards (DECISIONS #23): no border, no shadow, centered muted
   text between the Gem and the list. */
.bridge-card {
  background: transparent; border: none; box-shadow: none;
  text-align: center; color: var(--muted); padding: 0.2rem 1.1rem;
}
.bridge-card p { margin: 0; }
.list-head { font-size: 1.15rem; margin-bottom: 0.8rem; }
.series-note { color: var(--muted); font-size: 0.95rem; margin: 0.4rem 0; }
.blurb { margin: 0.5rem 0; }
.blurb-label {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--wash-weighted-ink); font-weight: 700; margin: 0;
}
.blurb-line { margin: 0.2rem 0; }
.blurb-full summary, .blurb-mini summary { cursor: pointer; color: var(--wash-weighted-ink); font-size: 0.9rem; }
.blurb-full p, .blurb-mini p { color: var(--muted); font-size: 0.92rem; margin: 0.3rem 0; }
.blurb-mini { margin: 0.3rem 0; }
.foot-card .coverage-note { margin: 0; }
/* "Manage this book" (DECISIONS #41; the removal half is
   DECISIONS #38): one collapsed disclosure per book. The
   summary matches the blurb summaries; inside, the
   ownership group and the remove group are separated by a
   hairline, and every action is a full-width row in the
   slider rows' shape — label left, state right — never a
   pill. The Removed card matches the Waiting list's shape. */
.manage-box { margin: 0.5rem 0; }
.manage-box summary { cursor: pointer; color: var(--wash-weighted-ink); font-size: 0.9rem; font-weight: 600; }
/* The ranked card's dropdowns read as dropdowns
   (DECISIONS #96): "What's it about?", the hero's
   "Read the full description", and "Manage this book"
   carry a drawn chevron at the row's right edge that
   turns when the disclosure opens — the native marker
   gives way to it. */
.blurb-mini summary, .blurb-full summary, .manage-box summary { list-style: none; display: flex; align-items: center; gap: 0.5rem; }
.blurb-mini summary::-webkit-details-marker, .blurb-full summary::-webkit-details-marker, .manage-box summary::-webkit-details-marker { display: none; }
.blurb-mini summary::after, .blurb-full summary::after, .manage-box summary::after {
  content: ""; flex: none; width: 0.5rem; height: 0.5rem; margin-left: auto;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px); transition: transform 0.15s ease;
}
.blurb-mini[open] > summary::after, .blurb-full[open] > summary::after, .manage-box[open] > summary::after { transform: rotate(225deg) translate(-1px, -1px); }
/* The reading-setup editor (DECISIONS #45) wears the manage
   disclosure's look but is its own component — it is not a
   per-book panel and never carries the manage-box class. */
.setup-box { margin: 0.5rem 0; }
.setup-box summary { cursor: pointer; color: var(--wash-weighted-ink); font-size: 0.9rem; font-weight: 600; }
.manage-body { display: grid; gap: 0.7rem; margin-top: 0.45rem; }
.manage-row {
  display: flex; justify-content: space-between; align-items: center; gap: 0.6rem;
  width: 100%; background: var(--hover); border: 1px solid var(--field-border); border-radius: 8px;
  padding: 0.5rem 0.7rem; font: inherit; font-size: 0.9rem; color: var(--row-ink);
  cursor: pointer; text-align: left;
}
.manage-row-state { font-weight: 700; white-space: nowrap; }
.manage-remove { border-top: 1px solid var(--hairline); padding-top: 0.6rem; }
.manage-remove h4 { font-size: 0.95rem; margin: 0 0 0.2rem; }
.manage-note { color: var(--muted); font-size: 0.92rem; margin: 0 0 0.45rem; }
.manage-reasons { display: grid; gap: 0.4rem; }
.manage-reasons .manage-row { justify-content: flex-start; }
/* Access (DECISIONS #42, re-shaped by #82): the panel's
   three groups are separated like the remove group —
   "Your copy" (the one switch), "Spotted it? Tap to
   report" (the report rows, stacking like the reasons),
   "Remove from my list". The card face carries the status
   SENTENCE, not badges: plain navy words with ✓ marks,
   the unmarked sentence in muted type pointing at the
   panel. The one surviving badge is the series card's
   library lead (DECISIONS #42's series-card rule), which
   keeps the tag style. Navy under the DECISIONS #74
   palette ruling — tags are navy; purple is glitter only. */
.manage-copy h4, .manage-spotted h4 { font-size: 0.95rem; margin: 0 0 0.2rem; }
.manage-spotted { border-top: 1px solid var(--hairline); padding-top: 0.6rem; display: grid; gap: 0.4rem; }
.manage-spotted h4 { margin-bottom: 0; }
.manage-ask-label { font-size: 0.9rem; font-weight: 600; margin: 0 0 0.3rem; }
/* The owned switch (DECISIONS #81): one control, its
   state visible as a switch AND as words — the track is
   silver off, navy on, the knob slides. */
.switch-side { display: flex; align-items: center; gap: 0.5rem; }
.switch { width: 2.2rem; height: 1.25rem; border-radius: 999px; background: var(--switch-off); position: relative; flex: none; }
.switch-knob { position: absolute; top: 2px; left: 2px; width: calc(1.25rem - 4px); height: calc(1.25rem - 4px); border-radius: 50%; background: #fff; }
.owned-switch[aria-checked="true"] .switch { background: var(--navy); }
.owned-switch[aria-checked="true"] .switch-knob { left: calc(2.2rem - 1.25rem + 2px); }
.report-row .manage-row-state { font-size: 1rem; color: var(--row-ink); }
.access-status { margin: 0.35rem 0; font-size: 0.9rem; font-weight: 600; color: var(--row-ink); }
/* The status pair (DECISIONS #96): the marked lines
   stack at the top of the card — ownership first, the
   library line directly under it, any further marked
   avenues below. The #82 empty-state sentence and its
   .access-none dress retired with it. */
.status-pair .status-line { margin: 0.1rem 0; }
.access-status .status-check { color: var(--wash-weighted-ink); }
.badge { display: inline-block; font-size: 0.8rem; font-weight: 700; border-radius: 999px; padding: 0.15rem 0.55rem; }
.badge-library { background: var(--hover); color: var(--row-ink); border: 1px solid var(--wash-weighted-border); }
.access-line { margin: 0.4rem 0; }
/* The face's ONE button (DECISIONS #82): "Check my
   library" is a navy pill button now, not a text link —
   the same button the series card's library lead uses. */
.library-check {
  display: inline-block; background: var(--navy); color: #fff; border-radius: 999px;
  padding: 0.45rem 0.95rem; font-weight: 700; font-size: 0.9rem; text-decoration: none;
}
/* Place-keeping anchors (DECISIONS #81): invisible
   fragment targets inside each book card (and the
   Removed card / library section); a little air above
   the landing point. */
.book-anchor { display: block; height: 0; scroll-margin-top: 0.75rem; }
/* The result page's library section (DECISIONS #83):
   the change door is a quiet disclosure in the manage
   summaries' manner. */
.library-change { margin-top: 0.4rem; }
.library-change > summary { cursor: pointer; color: var(--wash-weighted-ink); font-size: 0.95rem; font-weight: 600; }
.library-form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; margin: 0.4rem 0; }
.library-label { font-size: 0.9rem; color: var(--muted); }
/* The library fields take the one input geometry
   standard (DECISIONS #78) — this rule now sets only the
   width floor; its old 0.9rem / 0.3rem override was the
   cramped second instance the standard exists to end. */
.library-label input { min-width: 12rem; }
.disclosure { color: var(--muted); font-size: 0.8rem; margin: 0.2rem 0 0; }
.view-back { margin: 0 0 0.5rem; }
.removed-list ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.removed-list li { margin: 0.3rem 0; }
.removed-reason { color: var(--muted); }
.unexclude-form { display: inline-block; margin-left: 0.4rem; }
.waiting-list ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.waiting-list li { margin: 0.3rem 0; }
.waiting-sub { color: var(--muted); margin: 0.2rem 0; }
fieldset.owned-choice { border: 1px solid var(--border, #d4dbe8); border-radius: 8px; padding: 0.8rem; display: grid; gap: 0.5rem; }
fieldset.owned-choice legend { font-weight: 600; padding: 0 0.3rem; }
/* Three-step intake (DECISIONS #45): the step fieldsets wear
   the owned-choice frame; each answer is one big tap row;
   the cap note is a quiet line, never a headline. */
fieldset.intake-step { border: 1px solid var(--border, #d4dbe8); border-radius: 8px; padding: 0.8rem; display: grid; gap: 0.5rem; }
fieldset.intake-step legend { font-weight: 600; padding: 0 0.3rem; }
label.tap-row { padding: 0.55rem 0.6rem; border: 1px solid var(--border, #d4dbe8); border-radius: 8px; align-items: center; cursor: pointer; }
label.tap-row input { width: 1.15rem; height: 1.15rem; flex: none; }
.cap-note { color: var(--muted); font-size: 0.92rem; margin: 0.2rem 0 0; }
.step-kicker { color: var(--muted); font-weight: 600; margin: 0 0 0.2rem; }
.required-note { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
/* The result page's snapshot line + named library
   (DECISIONS #47): small and subordinate — they inform,
   they don't headline. */
.snapshot-line { color: var(--muted, #5a6a86); font-size: 0.85rem; margin: 0.25rem 0 0; }
.library-system-line { color: var(--muted, #5a6a86); font-size: 0.9rem; margin: 0.25rem 0 0; }
.required-star { color: #cf2e2e; font-weight: 700; }
.terms-gate { border-top: 1px solid var(--border, #d4dbe8); padding-top: 0.6rem; }
.footer-links { margin: 0; }
/* The footer's text links wear ONE treatment (owner
   rider, Nov 26, 2026, on the BookGlitter.com door):
   the footer's own navy, no underline, no decoration
   distinguishing any of them — the way back reads as
   one of the footer's destinations, nothing more.
   (Without this rule the UA default — underlined
   link blue — takes all four.) */
.footer-links a { color: inherit; text-decoration: none; }
.help-block { margin-top: 1rem; }
.help-block h2 { font-size: 1.05rem; }
.gem {
  border: 2px solid var(--wash-weighted-border);
  /* The sparkles' footing (DECISIONS #74 rider): the
     hero is the .gem-sparkles layer's containing block
     and clips it at its own radius; the speckle sits
     over the panel's white — silver and lavender specks
     only, purple living in the glitter and nowhere else. */
  position: relative; overflow: hidden;
  background-image:
    radial-gradient(circle 1.6px at 10% 26%, #d9dcea 98%, transparent),
    radial-gradient(circle 1.2px at 24% 74%, #c9bdf0 98%, transparent),
    radial-gradient(circle 1.8px at 46% 12%, #d9dcea 98%, transparent),
    radial-gradient(circle 1.1px at 63% 82%, #d9dcea 98%, transparent),
    radial-gradient(circle 1.5px at 74% 24%, #c9bdf0 98%, transparent),
    radial-gradient(circle 1.2px at 86% 66%, #d9dcea 98%, transparent),
    radial-gradient(circle 1.7px at 94% 16%, #c9bdf0 98%, transparent);
}
.gem-label { text-transform: uppercase; letter-spacing: 0.08em; color: var(--wash-weighted-ink); font-weight: 700; margin: 0; }
.gem-flex { display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-start; }
/* The shareable Gem card (review adoption #9): the
   owner's row inside the Gem hero, and the standalone
   card an unmatched Gem's affordance stands in. The
   button is the house primary; the note is the quiet
   status line the renderer speaks through. */
.share-gem-row { margin: 1rem 0 0; }
.share-gem-note { font-size: 0.9rem; color: var(--muted); }
/* The ranked card's pills (DECISIONS #96, owner
   rulings Nov 26, 2026 — ROW PILLS ARE UNIFORM): ONE
   filled style and ONE geometry for every pill in a
   card's action row — Watch · Buy/Gift · Check my
   library — and the Gem hero's whole pill set conforms
   to it: its buy pills, its library pill (which #95's
   hero-only set missed — it rendered as an off-spec
   dark pill in dark mode), the Share button (in the
   hero and in the unmatched Gem's share card, where it
   stands in the hero's place), the start-here inset's
   buy links and its library badge. Light mode wears
   the one-pill standard's form (navy #1b2a4a fill,
   white text); dark mode the standing dark tag values
   (#dbe2f2 fill, navy text) — the mode pair is the
   contrast pair on the card grounds, so #95's PILLS
   CONTRAST THEIR GROUND holds through it, and #95's
   ONE GEOMETRY ruling (rider A) is preserved: every
   pill below measures the same. The dark set is the
   base (dark is the first-visit default); light and
   system override it, and the dark media query
   re-asserts it for system — the token sets' own
   pattern. */
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; margin: 0.55rem 0; }
.card-actions .disclosure { flex-basis: 100%; margin: 0; }
a.card-pill, .buy-menu-toggle, .gem a.buy, .gem .badge-library, .gem .share-gem-btn, .gem-share .share-gem-btn {
  display: inline-flex; align-items: center;
  padding: 0.45rem 1rem; border: 1px solid transparent; border-radius: 999px;
  font-size: 0.92rem; font-weight: 700; line-height: 1.25;
  text-decoration: none; cursor: pointer;
  background: #dbe2f2; color: #1b2a4a;
}
:root[data-theme="light"] a.card-pill, :root[data-theme="light"] .buy-menu-toggle, :root[data-theme="light"] .gem a.buy, :root[data-theme="light"] .gem .badge-library, :root[data-theme="light"] .gem .share-gem-btn, :root[data-theme="light"] .gem-share .share-gem-btn,
:root[data-theme="system"] a.card-pill, :root[data-theme="system"] .buy-menu-toggle, :root[data-theme="system"] .gem a.buy, :root[data-theme="system"] .gem .badge-library, :root[data-theme="system"] .gem .share-gem-btn, :root[data-theme="system"] .gem-share .share-gem-btn {
  background: #1b2a4a; color: #fff;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] a.card-pill, :root[data-theme="system"] .buy-menu-toggle, :root[data-theme="system"] .gem a.buy, :root[data-theme="system"] .gem .badge-library, :root[data-theme="system"] .gem .share-gem-btn, :root[data-theme="system"] .gem-share .share-gem-btn {
    background: #dbe2f2; color: #1b2a4a;
  }
}
a.card-pill:focus-visible, .buy-menu-toggle:focus-visible, .gem a.buy:focus-visible, .gem .share-gem-btn:focus-visible {
  outline: 2px solid var(--wash-weighted-ink); outline-offset: 2px;
}
.gem-share p { margin: 0.4rem 0; }
/* Cover art (DECISIONS #35): one dimension is constrained and
   the other follows the image's natural aspect — height is
   always auto, object-fit is contain, and the img aligns to
   the start of its flex row so it is never stretched to a
   sibling's height. A source is never force-scaled into a
   frame (the production DISTORTION rule). */
img.cover { width: 130px; height: auto; object-fit: contain; align-self: flex-start; border-radius: 6px; }
img.cover.small { width: 54px; height: auto; }
/* The designed placeholder: a book-shaped tile in the house
   palette bearing the book's title, author, and (DECISIONS
   #39) a "No public cover available" note — intentional
   art of last resort, never an empty gray void. Its aspect
   is the standard cover ratio, carried by aspect-ratio on a
   width-constrained box (the tile is generated art, not a
   scaled source image). */
.cover-text {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 0.15rem;
  width: 130px; aspect-ratio: 2 / 3; background: var(--navy); color: #fff;
  border-radius: 6px; padding: 0.5rem; overflow: hidden; align-self: flex-start;
}
.cover-text.small { width: 54px; padding: 0.3rem; }
.cover-text .ct-title { font-family: Manrope, sans-serif; font-weight: 700; font-size: 0.82rem; line-height: 1.3; }
.cover-text .ct-author { font-size: 0.7rem; color: var(--silver); line-height: 1.3; }
/* The no-cover note (DECISIONS #39): a third line on the
   tile, visually subordinate to title and author — smaller,
   italic, silver — stating plainly that the book has no
   public cover, so the tile never reads as a rendering
   defect. The small tile keeps the full wording, wrapped
   across lines at its own scale with tighter leading. */
.cover-text .ct-note { font-size: 0.62rem; font-style: italic; color: var(--silver); line-height: 1.3; margin-top: 0.3rem; }
.cover-text.small .ct-title { font-size: 0.5rem; line-height: 1.25; }
.cover-text.small .ct-author { font-size: 0.44rem; line-height: 1.25; }
.cover-text.small .ct-note { font-size: 0.4rem; line-height: 1.2; margin-top: 0.12rem; }
/* The ranked card's slider bars (DECISIONS #96): the
   house bar construction from the Gem share card —
   uppercase label · a track filled to the value's
   fraction · the value · its descriptor word. The fill
   is purple #66588e in both modes (a designated purple
   surface); the track is per mode — dark #26355c (the
   base set), light #e3e8f4 — on the token sets' own
   pattern (light/system override, the dark media query
   re-asserts for system).
   DECISIONS #107 (owner ruling, Nov 27, 2026): "The
   sliders need to not be different end points — all
   sliders should have the same length otherwise
   there's no frame of reference to what a number
   means." The component itself now stands in the
   fixed module the dashboard Gem block shipped in
   #105 — the bar is a grid (62px label · 118px FIXED
   track · value), the track at one fixed length with
   the same start and end point on every row, the
   number and its word on one line at 12.5px. Until
   this change the base track flexed (flex: 1 1 auto),
   so the result hero's tracks stretched one length
   and the ranked cards' another; the dashboard Gem
   held the fixed geometry only in its #105 scoped
   overrides, which stand unchanged — the base now
   states the same values, so every surface the
   component renders (the result hero, every ranked
   card, the dashboard Gem) reads against one frame. */
.sliders { display: grid; gap: 0.35rem; max-width: 560px; margin: 0.6rem 0; }
.slider-bar { display: grid; grid-template-columns: 62px 118px auto 1fr; column-gap: 9px; align-items: center; }
.sb-name { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); width: auto; }
.sb-track { width: 118px; min-width: 118px; flex: none; height: 0.5rem; border-radius: 999px; background: #26355c; overflow: hidden; }
.sb-fill { display: block; height: 100%; border-radius: 999px; background: #66588e; }
.sb-val { font-size: 12.5px; font-weight: 700; min-width: 1ch; text-align: right; color: var(--row-ink); }
.sb-word { font-size: 12.5px; white-space: nowrap; line-height: 1.25; color: var(--row-ink); }
/* The module at phone widths (DECISIONS #107): the
   fixed module's min-content is ~320px (the longest
   word, "Immediate reread", at 106px), and a ranked
   card's content column beside its rank and cover
   offers ~218px at 390px — the card wraps, the
   book's main column taking a full-width line under
   the rank + cover line, the same wrap-under shape
   the dashboard Gem takes at this step (#105). The
   track stays 118px; nothing clips, nothing shrinks. */
@media (max-width: 560px) {
  li.book { flex-wrap: wrap; }
  .book-main { flex: 1 1 100%; min-width: 0; }
}
:root[data-theme="light"] .sb-track, :root[data-theme="system"] .sb-track { background: #e3e8f4; }
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] .sb-track { background: #26355c; }
}
ol.top10 { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
li.book { display: flex; gap: 0.8rem; align-items: flex-start; }
.rank { font-family: Manrope, sans-serif; font-size: 1.4rem; color: var(--wash-weighted-ink); min-width: 1.6rem; }
.book-title { font-weight: 700; margin: 0; }
.author, .series, .prov { color: var(--muted); margin: 0.15rem 0; }
.wr, .score { margin: 0.15rem 0; }
.notindb { color: var(--muted); font-style: italic; }
.series-caution { color: var(--muted); font-style: italic; }
.notice-card { display: flex; gap: 1rem; align-items: flex-start; border-left: 4px solid var(--wash-weighted-border); }
/* The start-here pointer inside the Gem card (DECISIONS
   #40): an inset, not a card within the card — a light
   blue-gray tint and the notice card's purple left rule,
   with no border or shadow of its own, so it reads as a
   subordinate part of the Gem card it belongs to. It sits
   after the Gem's cover/sliders row and before the video. */
.start-here-inset {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--hover); border-left: 4px solid var(--wash-weighted-border);
  border-radius: 8px; padding: 0.7rem 0.9rem; margin-top: 1rem;
}
.start-here-inset h3 { font-size: 1rem; margin: 0 0 0.2rem; }
.start-here-inset p { margin: 0; }
.start-here-inset + .video { margin-top: 1rem; }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; }
.spoiler { font-weight: 700; color: var(--navy); }
/* The old text-link rule for a.watch / a.buy retired
   with DECISIONS #96: the Watch link is a card pill now
   and every buy link renders either as a card pill or
   inside the Gem hero (where the hero pill rule above
   governs it) — no plain .buy or .watch anchor remains
   for this rule to dress. */
/* The footer notes (DECISIONS #92): the standing
   paragraphs that used to live inside the footer,
   words unchanged, at the foot of the content column
   above the strip. */
.footer-notes { max-width: 960px; width: 100%; margin: 0 auto; padding: 1rem; color: var(--muted); font-size: 0.9rem; flex: none; }
.footer-notes p { margin: 0 0 0.8rem; }
.footer-notes p:last-child { margin-bottom: 0; }
/* The footer strip (DECISIONS #92): ONE continuous
   bottom line with the panel's bottom band — the
   shared --bandh height, the band's ground, the same
   hairline along the top of both, and nothing cutting
   the strip at the join (the panel's right border
   stops above its band). Anchored to the bottom of
   the content column: the column flexes (see the
   shell rules below), so the strip rests on the
   viewport's bottom edge on a short page and follows
   the content on a long one — it never floats where
   the content ends. Without a panel it spans the full
   width alone, at the same height on the same ground.
   The links sit beside the four socials (the icons
   drawn inline, in the website footer's drawings). */
.site-footer {
  height: var(--bandh); flex: none; width: 100%;
  background: var(--bandground); border-top: 1px solid var(--hairline);
  display: flex; align-items: center; gap: 1rem; padding: 0 1rem;
  color: var(--footer-ink); font-size: 0.9rem;
}
.footer-socials { margin-left: auto; display: flex; gap: 12px; color: var(--footer-ink); flex: none; }
.footer-socials a { color: inherit; display: inline-flex; }
/* Waiting state for the blocking sync forms (DECISIONS #18). The
   [hidden] guard matters: .stack sets display:grid on the forms,
   which would otherwise override the hidden attribute. */
[hidden] { display: none !important; }
button.primary:disabled { opacity: 0.65; cursor: wait; }
.waiting-panel { text-align: center; padding: 1.2rem 0.5rem; }
.waiting-title {
  font-family: Manrope, system-ui, sans-serif; font-weight: 500;
  font-size: 1.3rem; color: var(--heading); margin: 0.4rem 0;
}
.waiting-list { scroll-margin-top: 1rem; }
.waiting-status { color: var(--wash-weighted-ink); font-weight: 700; margin: 0.3rem 0; }
.waiting-note { color: var(--muted); margin: 0.3rem 0; }
.waiting-elapsed { color: var(--muted); margin: 0.3rem 0; font-variant-numeric: tabular-nums; }
.sparkles span { display: inline-block; font-size: 2rem; animation: sparkle-pulse 1.6s ease-in-out infinite; }
@keyframes sparkle-pulse {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.6; }
  50% { transform: scale(1.35) rotate(12deg); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .sparkles span { animation: none; }
}
@media (min-width: 700px) {
  img.cover { width: 160px; }
  .cover-text { width: 160px; }
  .cover-text.small { width: 54px; }
}

/* Accounts + membership (DECISIONS #46) */
.account-line { color: var(--muted); margin: 0.3rem 0; }
.signout-form { display: inline-block; margin: 0.2rem 0; }
/* The header's account affordance (DECISIONS #66): the
   flex header pushes it to the top right with the auto
   margin; the header wraps, so at phone width the
   tagline drops to its own line and the affordance
   stays on the brand's row — it never wraps itself. */
.header-sign { margin: 0 0 0 auto; white-space: nowrap; }
/* The banner pill (DECISIONS #94, amendment 2 + the
   Runbook refinement): ONE shared class for both
   states of the account affordance, aligned to the
   website's governing pill — the panel search pill.
   Geometry: 15px radius, Manrope, 4px 14px padding,
   no underline. LIGHT is the literal match: white
   ground, #1b2a4a text, 1px solid #c3cadf border;
   hover/focus ground #eef1f6. DARK adapts: the literal
   pair (#10182b ground on the #0b1120 banner) would be
   near-invisible, so the dark pill keeps the geometry
   on a transparent ground with a 1.5px solid #8fa1c9
   border and #dbe2f2 text — the closest VISIBLE match;
   hover/focus lifts the border to #dbe2f2. (The dark
   values are the base, like the theme sets; light
   applies to light + system, and the dark media query
   re-asserts dark for system.) */
.header-sign-pill {
  display: inline-block; font-family: Manrope, system-ui, sans-serif;
  font-size: 0.95rem; font-weight: 600; line-height: 1.25;
  padding: 4px 14px; border-radius: 15px; text-decoration: none;
  cursor: pointer; background: transparent; color: #dbe2f2;
  border: 1.5px solid #8fa1c9;
}
.header-sign-pill:hover, .header-sign-pill:focus-visible { border-color: #dbe2f2; }
:root[data-theme="light"] .header-sign-pill, :root[data-theme="system"] .header-sign-pill {
  background: #ffffff; color: #1b2a4a; border: 1px solid #c3cadf;
}
:root[data-theme="light"] .header-sign-pill:hover, :root[data-theme="light"] .header-sign-pill:focus-visible,
:root[data-theme="system"] .header-sign-pill:hover, :root[data-theme="system"] .header-sign-pill:focus-visible {
  background: #eef1f6; border-color: #c3cadf;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] .header-sign-pill {
    background: transparent; color: #dbe2f2; border: 1.5px solid #8fa1c9;
  }
  :root[data-theme="system"] .header-sign-pill:hover, :root[data-theme="system"] .header-sign-pill:focus-visible {
    background: transparent; border-color: #dbe2f2;
  }
}
.member-badge {
  display: inline-block; font-family: Manrope, system-ui, sans-serif; font-weight: 700;
  color: var(--wash-weighted-ink); border: 1.5px solid var(--wash-weighted-border); border-radius: 999px;
  padding: 0.15rem 0.7rem; margin: 0.3rem 0;
}
.member-banner { border-left: 4px solid var(--wash-weighted-border); }
.view-nav { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.6rem 0; }
.view-nav .chip { text-decoration: none; }
.plan-price { font-size: 1.05rem; }
.plan-list li { margin: 0.35rem 0; }
.coming-line { color: var(--muted); }
/* The Free vs. membership table (DECISIONS #135): the
   Join page's included list as a comparison — ink
   checks, muted crosses, hairline rows, standing
   variables only. */
.compare-table { width: 100%; border-collapse: collapse; margin: 0.5rem 0 0.75rem; }
.compare-table th {
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); text-align: center; padding: 0.35rem 0.5rem;
  border-bottom: 1.5px solid var(--hairline);
}
.compare-table th:first-child { text-align: left; }
.compare-table td { padding: 0.5rem; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.compare-table td.compare-yes, .compare-table td.compare-no {
  text-align: center; font-weight: 800; width: 5.5rem;
}
.compare-table td.compare-yes { color: var(--ink); }
.compare-table td.compare-no { color: var(--muted); }

/* Ranked shelves (DECISIONS #74): the member home's lists
   as cards — the Gem's cover, its title alone, its series
   line, and the ranked date in bold navy on its own line.
   Four show; the rest wait behind a plain <details>
   expander whose summary is a white pill (white buttons
   stay white). The newest shelf is the current one: navy
   frame, house tint, and glitter speckle. */
.shelf-cards { display: grid; gap: 0.6rem; }
.shelf-card {
  position: relative; overflow: hidden; display: flex; gap: 0.8rem; align-items: center;
  background: var(--card); border: 1px solid var(--hairline); border-radius: 12px;
  padding: 0.6rem 0.8rem; text-decoration: none; color: inherit;
}
/* One dimension constrained, the other following the
   image's natural aspect (the DISTORTION rule, as with
   img.cover): the whole cover, never cropped. */
img.shelf-cover { width: 52px; height: auto; object-fit: contain; align-self: center; border-radius: 5px; flex: none; }
.shelf-card-main { display: grid; gap: 0.08rem; min-width: 0; }
.current-tag {
  justify-self: start; background: var(--tag-bg); color: var(--tag-ink); font-size: 0.68rem;
  font-weight: 700; letter-spacing: 0.08em; border-radius: 999px; padding: 0.12rem 0.55rem;
}
.shelf-title { font-family: Manrope, system-ui, sans-serif; font-weight: 700; color: var(--heading); font-size: 1.02rem; line-height: 1.25; }
.shelf-series { color: var(--muted); font-size: 0.88rem; }
.shelf-date { font-weight: 700; color: var(--wash-weighted-ink); font-size: 0.92rem; margin-top: 0.15rem; }
/* Result type treatment (DECISIONS #87): every ranked-shelf
   display names its type — "Weighted ranked shelf" /
   "Mood ranked shelf" — and the label's whole block wears
   the type's wash: the member-home shelf cards and the
   result page's header block. Weighted is the house pale
   blue; mood is the owner's approved lavender block (mock
   v6, widget-eecd63e6, Nov 24, 2026 — the bright lavender
   and the darker plum were both rejected on the way).
   These rules stand BEFORE .shelf-card.current on purpose:
   the current shelf's navy frame (later in the file, equal
   specificity) overrides the wash border, and the current
   card no longer lays its own flat tint — the wash is its
   ground, so the speckle, sparkles and YOUR CURRENT SHELF
   tag read over the type's own color and both treatments
   stay legible together, in either type. */
.shelf-card.shelf-weighted { background: var(--wash-weighted-bg); border-color: var(--wash-weighted-border); }
.shelf-card.shelf-mood { background: var(--wash-mood-bg); border-color: var(--wash-mood-border); }
.card.shelf-head.shelf-weighted { background: var(--wash-weighted-bg); border-color: var(--wash-weighted-border); }
.card.shelf-head.shelf-mood { background: var(--wash-mood-bg); border-color: var(--wash-mood-border); }
.shelf-type { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; margin: 0.15rem 0 0; }
.shelf-weighted .shelf-type { color: var(--wash-weighted-ink); }
.shelf-mood .shelf-type { color: var(--wash-mood-ink); }
.shelf-card.current {
  border: 1.5px solid var(--navy);
  background-image:
    radial-gradient(circle 1.6px at 12% 22%, #ffffff 98%, transparent),
    radial-gradient(circle 1.2px at 26% 68%, #c9bdf0 98%, transparent),
    radial-gradient(circle 1.8px at 41% 14%, #d9dcea 98%, transparent),
    radial-gradient(circle 1.1px at 57% 78%, #ffffff 98%, transparent),
    radial-gradient(circle 1.5px at 68% 30%, #c9bdf0 98%, transparent),
    radial-gradient(circle 1.2px at 79% 62%, #ffffff 98%, transparent),
    radial-gradient(circle 1.7px at 88% 18%, #d9dcea 98%, transparent),
    radial-gradient(circle 1.1px at 93% 82%, #c9bdf0 98%, transparent);
}
/* The Gem sparkles (DECISIONS #74, stilled by DECISIONS
   #95): three four-point sparkles, STILL — the glitter
   accent as a static layer. The animated sweep (the
   light band that crossed on a slow cycle) retired in
   #95 on the owner's word — "No shimmer anywhere" —
   from every surface that carried it; the glyphs and
   the hero's static speckle above stay. The layer
   never takes a tap. */
.gem-sparkles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.sparkle { position: absolute; pointer-events: none; }
.sparkle path { fill: #a58fe0; }
.sparkle-1 { top: 7px; right: 10px; width: 15px; height: 15px; }
.sparkle-2 { bottom: 9px; right: 34px; width: 10px; height: 10px; }
.sparkle-2 path { fill: #8f9bb8; }
.sparkle-3 { top: 12px; right: 58px; width: 9px; height: 9px; }
.shelves-more { margin-top: 0.6rem; }
.shelves-toggle {
  display: block; text-align: center; background: var(--card); border: 1px solid var(--field-border);
  color: var(--row-ink); border-radius: 999px; padding: 0.55rem 1rem; font-weight: 600; cursor: pointer;
}
.shelves-toggle::-webkit-details-marker { display: none; }
.shelves-more .show-fewer-label { display: none; }
.shelves-more[open ] .show-fewer-label { display: inline; }
.shelves-more[open ] .show-more-label { display: none; }
.shelves-more .shelf-cards { margin-top: 0.6rem; }
/* Your library (DECISIONS #75): the current library,
   named, and the white pill door back into the ZIP →
   pick flow. */
.library-current { font-weight: 600; font-size: 1.02rem; }
a.pill-link {
  display: inline-block; background: var(--card); border: 1px solid var(--field-border); color: var(--row-ink);
  border-radius: 999px; padding: 0.4rem 0.95rem; font-weight: 600; font-size: 0.9rem; text-decoration: none;
}
.library-helper { color: var(--muted); font-size: 0.9rem; }
/* Section rhythm (DECISIONS #77, owner-caught on
   device — her second verdict on this page: "On iPad
   these are getting crowded still", highlights on BOTH
   junctions). #76 scoped a single margin to the library
   heading; judged against her approved mockup — a
   visible divider with real air around it — that was
   too timid and too narrow, and it left the shelves →
   Update junction at the same 0px every member-home
   heading sits at under the global h2 reset. The
   mechanism, not another instance: every member-home
   section after the first is wrapped in .home-section —
   a divider line in the card-border color with the
   mockup's air around it (1.5rem above the line, 1.25rem
   below it; the whole break measures 45px). Ranked
   shelves, first on the page, wears none. This
   supersedes #76's :has() one-off, which is removed:
   with the wrapper carrying the separation, a margin on
   the heading itself would double-count inside it. */
.home-section {
  border-top: 1px solid var(--hairline); margin-top: 1.5rem; padding-top: 1.25rem;
}
/* One button geometry (DECISIONS #77 — the same
   verdict's third catch: "the buttons are all different
   sizes"). The member home's three action pills had
   grown three heights (the expander 43.6px, the Update
   button 49.6px, the library pill 36.4px — each rule its
   own padding and font size). All three now carry
   .home-action: button.primary's geometry, the app's
   dominant button — 1em type on 0.8rem of vertical air.
   Primary vs secondary is carried by COLOR only (navy
   filled vs white outline), never by size; the expander
   stays full-width, as width was never the complaint. */
.shelves-toggle.home-action,
button.primary.home-action,
a.pill-link.home-action {
  font-size: 1em; padding-top: 0.8rem; padding-bottom: 0.8rem;
}
/* The primary button's border — navy on navy, invisible,
   and there so its box measures exactly the other two
   pills' bordered boxes: one height, 51.6px, for all
   three. */
button.primary.home-action { border: 1px solid var(--navy); }

/* Member navigation panel (DECISIONS #84, slimmed by
   DECISIONS #91; mocks of record: the v12 pane + the
   Nov 26, 2026 pinned-panel mock, and for the slimming
   mock-panel-slimming-v34.html; Muse-sidebar pattern
   per the owner's Nov 26 amendments). The panel is a flex column: the greeting
   bar fixed at the top, the sections scrolling in the
   middle, the bottom row (gear · search · compose)
   pinned at the bottom edge. It PUSHES at every width
   (amendment 7): a permanent left column on wide
   screens; on narrow screens the same column in the
   flow while the content narrows beside it. It opens
   on arrival at every width and remembers the
   member's choice (DECISIONS #92). Pages without the
   panel render no shell at all and are untouched by
   every rule here. */
.shell { display: block; }
.member-panel {
  background: var(--card); display: flex; flex-direction: column;
  width: 288px; flex: none; text-align: left;
}
.panel-toggle {
  background: none; border: 0; color: #fff; font-size: 1.3rem; line-height: 1;
  cursor: pointer; padding: 0.15rem 0.35rem; align-self: center;
}
/* The greeting bar (owner's one-line rule, Nov 26,
   2026): gray #9aa3b5, navy text, ONE line always. The
   bar is a no-wrap flex row; the stars are fixed items
   that can neither wrap nor be clipped; the line in
   the middle clips, and the name inside it truncates
   with an ellipsis under pressure — the stars never
   wrap, whatever the name's length. */
.panel-greeting {
  background: #9aa3b5; color: var(--navy);
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0 0.9rem; white-space: nowrap; overflow: hidden; flex: none;
  font-family: Manrope, system-ui, sans-serif; font-weight: 600;
  /* The top line (DECISIONS #92): this bar's height is
     the shared --headh — the banner's height — so the
     pair meet flush, tops and bottoms, and gray meets
     navy directly at the corner. No border stands
     between them: the panel's right border runs only
     between the strips (on the scroll region below),
     never through this one. This construction REPLACES
     the Nov 26 seam fix's one-pixel paint overlap —
     the two are never layered. */
  height: var(--headh);
}
.greet-star { flex: none; }
.greet-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.greet-name { white-space: nowrap; }
/* The panel's right border lives HERE (DECISIONS
   #92): on the region between the two strips — the
   scrolling sections and the search results beneath
   them — and nowhere else, so no vertical seam cuts
   either continuous line at the join. */
.panel-scroll { overflow-y: auto; flex: 1 1 auto; padding-bottom: 0.6rem; border-right: 1px solid var(--hairline); }
/* Sections segmented by hairlines (the owner's Muse-
   sidebar amendment): a divider in the house divider
   color above each section, its small heading under
   the line. The greeting bar sits above the first
   line; the search row stays pinned below the last
   section. */
.panel-section { border-top: 1px solid var(--hairline); padding: 0.55rem 0.9rem 0.3rem; }
.panel-heading {
  font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--muted); font-weight: 700; margin: 0 0 0.3rem;
}
.panel-row {
  display: flex; align-items: center; gap: 0.5rem; width: 100%;
  padding: 0.42rem 0.25rem; color: var(--row-ink); text-decoration: none;
  font-size: 0.98rem; border-radius: 6px;
}
a.panel-row:hover, button.panel-row:hover { background: var(--hover); }
/* THE ONE-PILL STANDARD (owner ruling, Nov 26, 2026;
   DECISIONS #91): every number pill in the Portal uses
   this one spec — Manrope, 10px, weight 700, white on
   navy #1b2a4a, radius 99px, padding 1px 7px — so no
   surface carries its own pill size or font. In the
   panel the only pill is the Library row's ZIP. */
.panel-badge {
  margin-left: auto; background: var(--badge-bg); color: var(--badge-ink); border-radius: 99px;
  font-family: Manrope, system-ui, sans-serif; font-size: 10px; font-weight: 700;
  padding: 1px 7px;
}
/* The Gem cover block (DECISIONS #91): under Top 10
   books, indented 17px inside the section's content
   edge — the rows' sub-item offset. The cover renders
   at the mock of record's panel scale (38×57),
   contained: whole and uncropped, never stretched or
   force-scaled (the DISTORTION rule) — a cover whose
   native aspect differs letterboxes inside the frame. */
.panel-gem { display: block; padding: 5px 3px 6px 17px; border-radius: 6px; }
a.panel-gem:hover { background: var(--hover); }
img.panel-gem-cover {
  display: block; width: 38px; height: 57px; object-fit: contain;
  border-radius: 2px;
}
/* The designed tile: the missing-cover state, one
   design rendered per book (its own title + author).
   The title wraps even an unbreakable word inside the
   38px box and yields its own height first (breaker
   round 52, B52-01: a 14-character word otherwise
   sized the title span past the tile and clipped
   mid-word); the mark and the author never shrink. */
.panel-gem-tile {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  width: 38px; height: 57px; border-radius: 2px; padding: 4px 3px; gap: 2px;
  background: linear-gradient(165deg, #22335a, #1b2a4a 70%); color: #fff;
  overflow: hidden;
}
.panel-gem-tile > svg { flex: none; }
.pgt-title {
  font-family: Manrope, system-ui, sans-serif; font-size: 6.8px; font-weight: 700;
  line-height: 1.25; color: #fff; overflow: hidden;
  max-width: 100%; min-width: 0; min-height: 0; overflow-wrap: break-word;
}
.pgt-author {
  font-size: 5.3px; color: #a9bde8; line-height: 1.2; margin-top: auto;
  max-width: 100%; overflow-wrap: break-word; flex: none;
}
/* The Mood mix pillars (DECISIONS #91): the bars live
   on their own fixed-height track and the labels on a
   separate row beneath, so a wrapping label can never
   push a pillar off the shared baseline (the owner's
   v15/v16 catch). Unselected pillars are uniform —
   same height, same color; the selected pillar is the
   tallest and widest, in the mood purple; hovering
   grows a pillar and turns it purple (the #92
   amendment) without selecting it. */
.panel-mood-bars { display: flex; gap: 3px; align-items: flex-end; height: 36px; }
.mood-cell { flex: 1; display: flex; align-items: flex-end; height: 100%; border-radius: 4px; }
.mood-cell.sel { flex: 1.4; }
.mood-bar {
  width: 100%; height: 15px; border-radius: 2px 2px 0 0; background: #93a5d4;
  transition: height 0.15s ease;
}
/* Hover (owner ruling, Nov 26, 2026, from the LIVE
   panel — DECISIONS #92 amendment): a hovered or
   keyboard-focused pillar turns the selected purple
   as it grows — the bar only; the labels live on
   their own row and never recolor. The selected rule
   below still wins the height on a selected pillar
   (same specificity, later in the sheet), so a
   hovered selection stays tallest. */
.mood-cell:hover .mood-bar, .mood-cell:focus-visible .mood-bar { height: 22px; background: #66588e; }
.mood-cell.sel .mood-bar { height: 34px; background: #66588e; }
.panel-mood-labs { display: flex; gap: 3px; margin-top: 2px; }
.panel-mood-labs span {
  flex: 1; font-size: 7.8px; color: var(--muted); text-align: center;
  line-height: 1.15; height: 19px;
}
.panel-mood-labs span.sel { flex: 1.4; font-weight: 700; color: var(--row-ink); }
.dash-block .panel-mood-labs span { color: #8fa1c9; }
.dash-block .panel-mood-labs span.sel { color: #fff; }
.panel-signout-form { margin: 0; }
.panel-signout { background: none; border: 0; font: inherit; cursor: pointer; text-align: left; }
/* The pinned bottom row: gear · search (DECISIONS #95:
   the compose pencil retired — its door lives on as the
   panel's Update my shelf row and the dashboard's
   Update block). */
/* The bottom band at rest (DECISIONS #92): its
   height is the shared --bandh and its ground the
   shared --bandground — the footer strip wears both,
   so the pair form one continuous bottom line. No
   right border: the strip is never cut at the join. */
.panel-bottom {
  flex: none; display: flex; align-items: center; gap: 0.45rem;
  border-top: 1px solid var(--hairline); padding: 0 0.7rem;
  height: var(--bandh); background: var(--bandground);
}
.panel-gear {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  color: var(--row-ink); padding: 0.3rem; border-radius: 8px; text-decoration: none;
}
.panel-gear:hover { background: var(--hover); }
.panel-search { flex: 1 1 auto; display: flex; gap: 0.35rem; min-width: 0; margin: 0; }
.panel-search input[type="search"] {
  flex: 1 1 auto; min-width: 0; width: 100%; padding: 0.5rem 0.6rem;
  border: 1px solid var(--field-border); border-radius: 8px; font: inherit; background: var(--field-bg); color: var(--ink);
}
.panel-search input[type="search"]::placeholder { color: var(--placeholder); }
.panel-search-btn {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy); color: #fff; border: 0; border-radius: 8px;
  padding: 0.45rem 0.55rem; cursor: pointer;
}
/* The theme toggle + the gear's appearance row
   (DECISIONS #94): ONE three-state control, two doors —
   the panel gear's expanding row and the dashboard
   Settings block render the same form from the same
   builder, and the client script keeps every rendered
   copy in step. The control's own colours ride context
   variables: on the navy Settings block they are the
   mock's in both modes; in the panel row they follow
   the panel's mode (the tokens' mode pill: navy track
   in light, lavender-on-navy in dark). */
.theme-toggle {
  --toggle-border: #3a4a75; --toggle-ink: #dbe2f2;
  --toggle-on-bg: #dbe2f2; --toggle-on-ink: #1b2a4a;
  display: inline-flex; border: 1px solid var(--toggle-border);
  border-radius: 999px; overflow: hidden; margin: 0;
}
.theme-toggle button {
  background: transparent; border: 0; padding: 4px 12px; font: inherit;
  font-size: 13.5px; font-weight: 600; color: var(--toggle-ink); cursor: pointer;
}
.theme-toggle button.on { background: var(--toggle-on-bg); color: var(--toggle-on-ink); }
.theme-toggle button:focus-visible { outline: 2px solid #a58fe0; outline-offset: -2px; }
.panel-theme-row {
  flex: none; display: flex; align-items: center; gap: 0.6rem;
  padding: 0.55rem 0.7rem; border-top: 1px solid var(--hairline);
  background: var(--card);
}
.panel-theme-row[hidden] { display: none; }
.panel-theme-row .theme-toggle {
  --toggle-border: var(--field-border); --toggle-ink: var(--row-ink);
  --toggle-on-bg: var(--navy); --toggle-on-ink: #fff;
}
:root[data-theme="dark"] .panel-theme-row .theme-toggle,
:root[data-theme="system"] .panel-theme-row .theme-toggle {
  --toggle-border: #7f6cab; --toggle-ink: #ac9bd2;
  --toggle-on-bg: #dbe2f2; --toggle-on-ink: #1b2a4a;
}
@media (prefers-color-scheme: light) {
  :root[data-theme="system"] .panel-theme-row .theme-toggle {
    --toggle-border: var(--field-border); --toggle-ink: var(--row-ink);
    --toggle-on-bg: var(--navy); --toggle-on-ink: #fff;
  }
}
.panel-theme-label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--muted); font-weight: 700;
}
/* The gear is a button now (it expands the appearance
   row): strip the UA button chrome, keep the link's
   geometry. */
button.panel-gear { background: none; border: 0; cursor: pointer; font: inherit; }
.panel-gear:focus-visible { outline: 2px solid var(--wash-weighted-ink); outline-offset: 2px; }
/* The panel's Library row (DECISIONS #94): space-between
   — "Library" at the left, the ZIP pill at the panel's
   right edge. (The dashboard Library block's own ZIP
   line is unchanged.) */
.panel-row-lib { justify-content: space-between; }
/* Focus made visible on the dashboard's door block and
   in-block doors (DECISIONS #94 accessibility pass). */
a.dash-block:focus-visible, .dash-block a:focus-visible {
  outline: 2px solid var(--wash-weighted-ink); outline-offset: 2px;
}
/* The DASHBOARD (DECISIONS #93, restyled #94;
   mock-dashboard-v11): one summary block per panel
   destination. FIDELITY (register #167's fix, #94):
   blocks hug their content at natural heights — the
   dashboard main packs its grid to the top
   (align-content: start) and never distributes the
   viewport's height into the blocks; if the content
   exceeds the viewport the page scrolls, and fidelity
   outranks the old no-scroll aim. The blocks are the
   navy family in both modes; the Gem block is the one
   bright block. (DECISIONS #103: the blocks now stand
   in the three approved rows — see the #103 block —
   and narrow row by row as the width narrows.)
   TEXT INTEGRITY (the approval condition): no block
   text is clipped, truncated, or ellipsized at any
   width — blocks wrap and size to their content; no
   dashboard rule sets a nowrap, a fixed height, or a
   text-overflow on block text. */
.dash-h1 {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  overflow: hidden; clip-path: inset(50%);
}
.shell-col main:has(.dash-grid) { padding-top: 6px; padding-bottom: 4px; align-content: start; }
/* DECISIONS #103 (owner-approved mock
   mock-dashboard-rows-v4, Nov 27, 2026): the grid is
   now a stack of three rows — each row a grid of its
   own in the marked #103 block below, its blocks
   measuring equal heights — and the blocks take the
   mock's padding. Base-rule changes, recorded here;
   the row templates, tiles, pillars, and toggle
   thirds live in the #103 block. */
.dash-grid {
  display: flex; flex-direction: column; gap: 14px;
}
.dash-block {
  background: var(--block-bg); border: 1px solid #26355c; border-radius: 12px;
  padding: 16px 18px; min-width: 0; color: #dbe2f2;
}
.dash-block h2 {
  margin: 0 0 4px; font-size: 9.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--block-kicker);
}
.dash-block > p { margin: 2px 0; }
.dash-grid .span2 { grid-column: span 2; }
.dash-big { font-size: 19px; font-weight: 800; line-height: 1.2; margin: 2px 0; overflow-wrap: break-word; color: #fff; }
.dash-line { font-size: 13.5px; line-height: 1.4; margin: 2px 0; overflow-wrap: break-word; }
/* The way home (DECISIONS #100): the "Back to the
   Dashboard" link that opens every page the dashboard
   leads to — a plain body-size text link in the
   designated purple (--back-dash: #7c5cbf light /
   #ac9bd2 dark), underlined as a link is, on its own
   line above the page's first card. */
.back-dash-row { margin: 0 0 0.75rem; }
.back-dash { color: var(--back-dash); text-decoration: underline; }
.dash-door { font-size: 13.5px; font-weight: 700; color: var(--block-door); text-decoration: none; }
.dash-door:hover { text-decoration: underline; }
/* The Gem block: the sparkles' containing block (the
   .gem-sparkles layer is absolute, inset 0), the cover
   whole at the shelf card's own size, the designed
   tile on a cover miss. */
.dash-gem {
  position: relative; overflow: hidden; color: #1b2a4a;
  /* The ground (DECISIONS #105, owner ruling Nov 27, 2026):
     the website hero's own treatment — base #dfe6f2 under
     ONE flat white overlay at .93 over the website's
     current glitter texture (2048×1248, vendored at
     public/glitter-texture.webp). The retired ground —
     a diagonal white sheen band over a near-white wash
     (.90/.84) over the old 900×548 texture — was a Vault
     divergence the owner caught on her iPad: too light
     to read on, its sparkle "kinda sad"; every darker
     direction was rejected, panel 2 of mock-gem-block-v7
     (.93, the lighter range) is the ruled strength. This
     is a base-rule change, not flag-gated. */
  background-color: #dfe6f2;
  background-image:
    linear-gradient(rgba(255, 255, 255, .93), rgba(255, 255, 255, .93)),
    url('/glitter-texture.webp');
  background-size: cover; background-position: center;
}
.dash-gem h2 { color: rgba(27, 42, 74, .6); }
.dash-gem .dash-big { color: #1b2a4a; }
.dash-gem .dash-line { color: #33415e; }
.dash-gem-body { display: flex; gap: 12px; align-items: flex-start; }
img.dash-gem-cover { width: 120px; height: 180px; object-fit: contain; border-radius: 4px; flex: none; }
.dash-gem-tile {
  width: 120px; min-height: 180px; flex: none; border-radius: 4px;
  background: linear-gradient(160deg, #22335a, #1b2a4a); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 6px 4px; text-align: center; box-sizing: border-box;
}
.dash-gem-tile svg { width: 28px; height: 28px; }
.dgt-title { font-size: 13px; font-weight: 700; line-height: 1.2; overflow-wrap: break-word; }
.dgt-author { font-size: 11px; color: #a9bde8; line-height: 1.2; overflow-wrap: break-word; }
.dash-gem-text { min-width: 0; }
/* #102-CSS-BEGIN */
/* The Gem block's enrichment (DECISIONS #102): the
   score line and the Database blurb in the title
   column, and the six sliders as a right-hand column
   spread over the body's height. The block's height
   was the cover's under the original ruling; the
   owner's Option 1 ruling (Nov 27, 2026, after
   breaker round 78 measured the restored why-line
   past that height) made it CONTENT-DRIVEN: the
   text column stands at its natural height, the
   block grows to fit it, and the Ranked shelves
   block beside it in the dashboard row adapts to
   the grown height through the grid's stretch
   (.dash-grid's align-items: stretch), so the row
   measures even and the neighbor's content is
   neither clipped nor distorted — its container
   absorbs the extra height, as it already did
   under the cover-driven height. No rule in this
   block sets a height on the Gem block, its body,
   or its text column; the cover alone keeps its
   120×180, top-aligned. The block is the pale
   glitter ground in BOTH modes (DECISIONS #94), so
   the ranked card's bars take the mock's light values
   here: labels #5a6b96, track #dfe6f7, values in the
   block's own ink; the fill stays the designated
   purple #66588e (.sb-fill, DECISIONS #96). The two
   columns flex from ZERO bases: the app caps main at
   960px, so the block renders ~600–650px wide — a
   content-sized text basis (the score line unwrapped)
   would force the sliders under the cover and grow
   the block by the column's whole height (breaker
   round 76's finding). The bar's name takes the
   mock's own label width (3.9rem) inside this block,
   the value word may wrap there, and the track keeps
   a floor of 1.1rem: at the block's real width a long
   word ("Maybe once more") otherwise crushes its
   bar's track to zero width — an empty flex track
   never receives the row's free space (breaker round
   76's second finding). The bars also set a tighter
   line-height inside this block (1.25): six bars at
   the base 1.5 stand 144px of the cover's 180, so a
   wrapped word's second line is what the remaining
   slack can afford — at 1.25 the rows stand 120px
   and three wrapped words still fit the height
   (round 76's third finding). The columns split
   1.35:1 in the text's favor, not evenly: round 77's
   ordinary-length fixtures (a 21-character title, a
   34-character series line) wrapped the title AND
   the byline at the even split's ~213px and grew the
   block, while the sliders column — its words
   wrapping at a tighter 1.15 line-height — holds its
   height at 11.5rem. The body wraps only when the
   columns can no longer fit (phone widths), never at
   desktop. */
.dash-gem-body { flex-wrap: wrap; }
.dash-gem-text { flex: 1.35 1 0; }
.dash-gem-score { font-size: 13.5px; line-height: 1.4; margin: 4px 0 2px; color: #33415e; }
.dash-gem-why { font-size: 13.5px; line-height: 1.45; margin: 6px 0 2px; color: #44537a; }
.dash-gem-blurb { font-size: 13.5px; line-height: 1.5; margin: 4px 0 2px; font-style: italic; color: #33436e; }
.dash-gem-sliders { flex: 1 1 0; min-width: 11.5rem; align-self: stretch; display: flex; }
.dash-gem-sliders .sliders { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 0; margin: 0; max-width: none; }
.dash-gem .sb-name { width: 3.9rem; color: #5a6b96; }
.dash-gem .sb-word { white-space: normal; line-height: 1.15; }
.dash-gem .sb-track { min-width: 1.1rem; }
.dash-gem .slider-bar { line-height: 1.25; }
.dash-gem .sb-track { background: #dfe6f7; }
.dash-gem .sb-val, .dash-gem .sb-word { color: #1b2a4a; }
/* At phone widths the columns can no longer stand
   side by side, and the zero bases defeat the wrap
   the body already carries: the cover (120px) and
   the sliders' minimum (11.5rem) exactly consume a
   390px line, leaving the basis-0 text column 0px
   wide — every word on its own line down a ~1,900px
   block (breaker round 79's finding, measured on
   this branch's standing geometry; desktop widths
   always left free space, so the defect lived only
   at phone widths). Below 560px the text takes a
   real basis, so the line breaks as designed: cover
   and text on the first line, the sliders wrapped
   under them at full width. Desktop geometry is
   untouched — the query's range is phone-only. */
@media (max-width: 560px) {
  .dash-gem-text { flex-basis: 10rem; }
  .dash-gem-sliders { flex-basis: 11.5rem; }
}
/* #102-CSS-END */
/* #105-CSS-BEGIN */
/* The Gem block's sliders, re-ruled (DECISIONS #105,
   owner rulings Nov 27, 2026): the approved mock's
   geometry (mock-gem-block-v7, panel 2) — a fixed
   column at the mock's proportions, label · track ·
   number+word, the value on ONE line — and every
   track ONE FIXED LENGTH (118px), so a fill reads
   against the same frame on every row: "each slider
   should have a fixed length otherwise there's no
   frame of reference from one slider to the next."
   These rules override the #102 block above, whose
   flex split (1.35:1, zero bases, a 1.1rem track
   floor, wrapping words) was the kept-height
   compromise of rounds 76/77 — on the owner's iPad
   it sized each row's track to its word, wrapped
   "Some romance" / "Fade to black" / "Would revisit"
   onto two lines, and drew low fills as dots. The
   column stands at the mock's 308px; the text column
   yields (flex 1 1 0 over its standing min-width: 0)
   and the block grows to fit, per the Option 1
   content-driven height. The value cell takes the
   mock's 12.5px so the app's longest words
   ("Immediate reread", "Grief / violence") stand on
   their one line inside the column. The bar becomes
   a grid inside this block only — the shared
   .slider-bar component is untouched. At phone
   widths the #102 wrap stands (cover and text on
   the first line, the sliders under them), the
   column at the same fixed 308px (capped by the
   line it wraps onto), the track still 118px. */
.dash-gem-text { flex: 1 1 0; }
.dash-gem-sliders { flex: 0 0 308px; min-width: 0; }
.dash-gem .slider-bar { display: grid; grid-template-columns: 62px 118px auto 1fr; column-gap: 9px; align-items: center; }
.dash-gem .sb-name { width: auto; }
.dash-gem .sb-track { width: 118px; min-width: 118px; flex: none; }
.dash-gem .sb-val { font-size: 12.5px; }
.dash-gem .sb-word { font-size: 12.5px; white-space: nowrap; line-height: 1.25; }
@media (max-width: 560px) {
  .dash-gem-sliders { flex-basis: 308px; max-width: 100%; }
}
/* #105-CSS-END */
/* #103-CSS-BEGIN */
/* The dashboard rows (DECISIONS #103; owner-approved
   mock mock-dashboard-rows-v5, Nov 27, 2026 — v4's
   arrangement superseded the same day on the owner's
   ruling): each row is a grid of its own — the Gem
   alone, full width · Update ¼, Mood mix ½, Library
   ¼ · Ranked shelves ¼, Waiting their turn ¼,
   Settings ½ — its blocks stretched to equal heights.
   (Row 3 stood at ⅙·⅙·⅔ as first built; DECISIONS
   #106, the owner's ruling the same evening —
   "the two smaller blocks become 1/4 each and the
   settings become 1/2" — widened the small blocks.)
   The legacy span2 classes the Gem and Settings
   anchors still carry are inert inside a row: the
   row's template, not a span, gives each block its
   width. */
.dash-row { display: grid; gap: 14px; align-items: stretch; }
.dash-row1 { grid-template-columns: 1fr; }
.dash-row2 { grid-template-columns: 1fr 2fr 1fr; }
.dash-row2.no-library { grid-template-columns: 1fr 3fr; }
.dash-row3 { grid-template-columns: 1fr 1fr 2fr; }
.dash-row .span2 { grid-column: auto; }
.dash-row .dash-block { display: flex; flex-direction: column; }
/* The blocks' pictures (the mock's tiles): each sits
   in a wrap that takes the block's leftover height,
   the picture CENTERED in that space on both axes —
   the owner's condition on the v5 approval (Nov 27,
   2026): "make sure those icons/images in each block
   are centered correctly. Some of them are askew." —
   shrunk to fit its space, contain, never cropped,
   never clipped. */
.dash-tilewrap { flex: 1 1 auto; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; margin-top: 10px; }
.dash-tile { display: block; border-radius: 10px; object-fit: contain; max-width: 100%; max-height: 148px; width: auto; height: auto; }
/* The Mood mix pillars stand tall on the dashboard
   (the mock's pillars): the bars at 118px with the
   headroom above them kept, so the grown purple
   pillar of the hover and selected states (148px)
   fits its block. The panel's own pillars keep the
   panel's scale — these rules are scoped to the
   dashboard block. */
.dash-mood .panel-mood-bars { height: 174px; gap: 10px; }
.dash-mood .panel-mood-labs { gap: 10px; }
.dash-mood .panel-mood-labs span { font-size: 10.5px; line-height: 1.25; height: auto; }
.dash-mood .mood-bar { height: 118px; border-radius: 6px 6px 3px 3px; }
.dash-mood .mood-cell:hover .mood-bar, .dash-mood .mood-cell:focus-visible .mood-bar { height: 148px; }
.dash-mood .mood-cell.sel .mood-bar { height: 148px; }
/* DECISIONS #108 — the slider-lists switcher (owner-
   approved mock-mood-menu-v6, Nov 27, 2026): ONE
   switcher wherever it stands — the dashboard's Mood
   mix block (flag-on form) and the top of every
   /lists page. The chips are a 3-column grid, TWO
   ROWS OF THREE, never a wrap (the owner's symmetry
   amendment). Under them ONE spectrum strip: five
   EQUAL segments (flex 1 1 0 — the same start and
   end points for every slider, the #107 endpoint
   discipline in menu form), each segment the value's
   own word (SLIDER_WORDS) over the Database count at
   that value, the segment itself the door to that
   slider+value's list. The strip's ramp is the mock's:
   navy steps rising to the mood purple at 4, easing
   at 5 — the same in both modes (the segments are a
   scale, not a surface). The selected segment wears
   an inset ring: white on the dark grounds; on a
   light-mode list card the ring is navy (the mock's
   light form). The chips wear the badge variables —
   #dbe2f2 on navy in dark, navy on white in light —
   The base rules below ARE the dark form; the light
   overrides are scoped to the list page's card
   (.sl-page), so the dashboard block — navy in BOTH
   modes (#16233f/#16213c) — keeps the dark form under
   the light theme too, exactly as the mock's two
   panels divide. */
.ms-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.ms-chip {
  appearance: none; -webkit-appearance: none; font: inherit; cursor: pointer;
  border: 1px solid #3a4a75; background: transparent; color: #c3cfe8;
  border-radius: 999px; padding: 6px 4px; font-size: 13px; font-weight: 600; text-align: center;
}
.ms-chip.on { background: #dbe2f2; color: #1b2a4a; border-color: #dbe2f2; }
.ms-strip { display: flex; border-radius: 10px; overflow: hidden; margin-top: 10px; }
.ms-seg {
  flex: 1 1 0; min-width: 0; padding: 11px 3px 9px; text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center;
  cursor: pointer; transition: filter 120ms ease;
}
.ms-seg.s1 { background: #2c3d68; } .ms-seg.s2 { background: #35497a; }
.ms-seg.s3 { background: #3f558c; } .ms-seg.s4 { background: #66588e; }
.ms-seg.s5 { background: #574a80; }
.ms-seg.sel { box-shadow: inset 0 0 0 2px #ffffff; }
.ms-segword { font-size: 10.5px; font-weight: 700; line-height: 1.25; color: #eef1fa; }
.ms-segcount { font-size: 10px; color: #b9c6e6; }
/* The affordance pass (DECISIONS #109, the owner's
   words: the selections must read as clickable): the
   hint line between the chips and the strip, and a
   hover / focus / tap lift on both selections — a
   brightness lift inside the existing navy family;
   the selected segment's ring stays the strongest
   signal (it persists; the lift is momentary). The
   segments are a scale, not a surface — the same in
   both modes, like their grounds — so their states
   need no light form; the chips and the hint take
   the light list card's form in the overrides below,
   scoped to .sl-page exactly as the base rules are. */
.ms-hint { margin: 8px 0 0; font-size: 12px; line-height: 1.4; text-align: center; color: #b9c6e6; }
.ms-seg:hover { filter: brightness(1.18); }
.ms-seg:focus-visible { filter: brightness(1.18); box-shadow: inset 0 0 0 2px #b9c6e6; outline: none; }
.ms-seg:active { filter: brightness(1.3); }
.ms-chip:hover { border-color: #c3cfe8; color: #eef1fa; }
.ms-chip:focus-visible { border-color: #c3cfe8; color: #eef1fa; outline: 2px solid #b9c6e6; outline-offset: 1px; }
.ms-chip:active { background: #3a4a75; }
/* The list page's own lines (DECISIONS #108): the
   title in the mock's form, then the shared method
   line and the pool line in the muted voice. */
.sl-title { font-size: 20px; font-weight: 800; color: var(--heading); margin: 14px 0 6px; }
.sl-method, .sl-pool { font-size: 13.5px; line-height: 1.55; color: var(--muted); margin: 0 0 6px; max-width: 720px; }
/* The light list card's switcher (the mock's light
   form): chips in the pale border + slate text, the
   picked chip navy, the selected segment's ring
   navy. The dashboard block is navy in BOTH modes,
   so these overrides are scoped to the list page's
   card (.sl-page) and never reach it. "system"
   follows the light rule until the dark media query
   below re-asserts the dark form, the .sb-track
   pattern. */
:root[data-theme="light"] .sl-page .ms-chip, :root[data-theme="system"] .sl-page .ms-chip { border-color: #c2cfe8; color: #44537a; }
:root[data-theme="light"] .sl-page .ms-chip.on, :root[data-theme="system"] .sl-page .ms-chip.on { background: #1b2a4a; color: #ffffff; border-color: #1b2a4a; }
:root[data-theme="light"] .sl-page .ms-seg.sel, :root[data-theme="system"] .sl-page .ms-seg.sel { box-shadow: inset 0 0 0 2px #1b2a4a; }
:root[data-theme="light"] .sl-page .ms-hint, :root[data-theme="system"] .sl-page .ms-hint { color: var(--muted); }
:root[data-theme="light"] .sl-page .ms-chip:hover, :root[data-theme="system"] .sl-page .ms-chip:hover { border-color: #44537a; color: #1b2a4a; }
:root[data-theme="light"] .sl-page .ms-chip:focus-visible, :root[data-theme="system"] .sl-page .ms-chip:focus-visible { border-color: #44537a; color: #1b2a4a; outline-color: #44537a; }
:root[data-theme="light"] .sl-page .ms-chip:active, :root[data-theme="system"] .sl-page .ms-chip:active { background: #dbe2f2; }
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] .sl-page .ms-chip { border-color: #3a4a75; color: #c3cfe8; }
  :root[data-theme="system"] .sl-page .ms-chip.on { background: #dbe2f2; color: #1b2a4a; border-color: #dbe2f2; }
  :root[data-theme="system"] .sl-page .ms-seg.sel { box-shadow: inset 0 0 0 2px #ffffff; }
  :root[data-theme="system"] .sl-page .ms-hint { color: #b9c6e6; }
  :root[data-theme="system"] .sl-page .ms-chip:hover { border-color: #c3cfe8; color: #eef1fa; }
  :root[data-theme="system"] .sl-page .ms-chip:focus-visible { border-color: #c3cfe8; color: #eef1fa; outline-color: #b9c6e6; }
  :root[data-theme="system"] .sl-page .ms-chip:active { background: #3a4a75; }
}
/* The Settings Appearance toggle in three EQUAL
   thirds (the mock's segmented control): the
   settings form's own toggle becomes a 330px grid
   of three — the panel's toggle keeps its shape. */
.theme-form-settings .theme-toggle { display: grid; grid-template-columns: 1fr 1fr 1fr; width: 330px; max-width: 100%; }
.theme-form-settings .theme-toggle button { text-align: center; }
/* The rows narrow: row 2 sets Update and Library
   side by side over a full-width Mood mix; row 3
   sets Ranked shelves and Waiting their turn side
   by side over a full-width Settings. At phone
   widths every row is one column. (Row 1 is the
   Gem alone at every width.) */
@media (max-width: 1023px) {
  .dash-row2 { grid-template-columns: 1fr 1fr; }
  .dash-row2 .dash-mood { grid-column: 1 / -1; order: 3; }
  .dash-row3 { grid-template-columns: 1fr 1fr; }
  .dash-row3 .dash-settings { grid-column: 1 / -1; order: 3; }
}
@media (max-width: 639px) {
  .dash-row2 { grid-template-columns: 1fr; }
  .dash-row2 .dash-mood { grid-column: auto; order: 0; }
  .dash-row3 { grid-template-columns: 1fr; }
  .dash-row3 .dash-settings { grid-column: auto; order: 0; }
}
/* #103-CSS-END */
/* The Update block IS the door (DECISIONS #94): the
   whole block is the link — no pill, no button (owner
   ruling, Nov 26, 2026). An anchor wearing .dash-block
   drops the underline and keeps the block's box. */
a.dash-block { display: block; text-decoration: none; }
a.dash-block:hover { border-color: #93a5d4; }
/* The Settings block's working rows: label, field,
   Save — the field takes the app's input geometry
   (the #78 standard) and flexes; nothing in a row is
   clipped — the row wraps under pressure instead. */
.setrow { display: flex; align-items: center; gap: 8px; margin: 5px 0; flex-wrap: wrap; }
.dash-account-row { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; margin-top: 6px; }
.dash-account-row .dash-line { margin: 0; }
.dash-account-row form { margin: 0; }
.setrow label { flex: none; width: 112px; font-size: 13.5px; font-weight: 600; }
.setrow .setrow-label { flex: none; width: 112px; font-size: 13.5px; font-weight: 600; }
.dash-settings input { background: #10182b; border-color: #3a4a75; color: #dbe2f2; }
.dash-settings .dash-door { color: var(--block-door); }
.setrow input { flex: 1 1 140px; min-width: 0; width: auto; }
.dash-save {
  flex: none; background: #dbe2f2; color: #1b2a4a; border: 0; border-radius: 999px;
  padding: 0.42rem 0.95rem; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
}
.dash-pill {
  display: inline-block; background: #dbe2f2; color: #1b2a4a; border-radius: 999px;
  padding: 0.42rem 0.95rem; font-size: 13.5px; font-weight: 700; text-decoration: none;
}
.dash-pill:hover { text-decoration: underline; }
.settings-error {
  color: var(--seterr-ink); background: var(--seterr-bg); border: 1px solid var(--seterr-border);
  border-radius: 8px; padding: 8px 10px; font-size: 13.5px; line-height: 1.4; margin: 4px 0 8px;
}
/* The Settings page's plain-spoken note under the
   delete-account door (DECISIONS #134). */
.settings-note { font-size: 13.5px; line-height: 1.45; opacity: .82; margin: 4px 0 8px; }
.dash-billing-form { margin-top: 4px; }
.dash-door-btn {
  background: none; border: 0; padding: 0; font: inherit; font-size: 13.5px;
  font-weight: 700; color: var(--block-door); cursor: pointer;
}
/* The dashboard's narrowing breakpoints live with
   the rows in the marked #103 block above (DECISIONS
   #103): the old grid-column steps retired with the
   single grid they stepped. */
/* The panel PUSHES at every width (owner amendment 7,
   Nov 26, 2026, via the Portal↔Runbook design sync —
   "the left panel should make the main page adjust to
   the panel size... copy Muse's UI here"): the panel
   is a column in the layout flow, sticky at the
   viewport's top and a full viewport tall, and the
   content column narrows beside it. Nothing is ever
   covered — there is no overlay, no backdrop, no
   dimming at any width. The panel carries NO right
   border of its own (DECISIONS #92): the border runs
   only between the two strips, on the scroll region,
   so neither continuous line is cut at the join. */
.shell { display: flex; align-items: stretch; }
/* The content column is a flex column a full viewport
   tall at minimum (DECISIONS #92): banner frozen at
   its top, main growing, the notes and the footer
   strip last — the strip is anchored to the column's
   bottom and forms the continuous bottom line with
   the panel's band beside it. */
.shell-col { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.shell-col > main { flex: 1 1 auto; width: 100%; }
/* Rider A (DECISIONS #93, owner device catch, Nov 26,
   2026): the shell's viewport heights are DYNAMIC
   viewport units, each with its plain vh line kept
   first as the fallback. iOS Safari's 100vh is the
   largest viewport (browser chrome collapsed), so a
   panel sized 100vh parks its bottom band below the
   visible area while Safari's bars are showing — the
   owner had to scroll to reach search. 100dvh tracks
   the visible viewport as the chrome comes and goes. */
.member-panel {
  position: sticky; top: 0; height: 100vh; height: 100dvh;
}
/* Without a panel the body itself is the column
   (DECISIONS #92): the same anchoring, the banner at
   the shared --headh alone at full width, the footer
   strip spanning the full width at --bandh on the
   band's ground. */
body:not(.has-panel) { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body:not(.has-panel) > main { flex: 1 1 auto; width: 100%; }
/* The panel's ONE state rule (DECISIONS #92): open on
   arrival — except a phone-width first visit with no
   stored choice, which arrives shut (DECISIONS #97);
   body.panel-shut — set by the pre-paint script from
   the remembered choice or the width default, or by
   the toggle — hides it at every width. Resizing
   across the breakpoint changes only the column's
   size (the narrow cap below), never its state. */
body.panel-shut .member-panel { display: none; }
@media (max-width: 1023px) {
  .member-panel { width: min(288px, 86vw); }
}
/* The search landing's highlight (DECISIONS #84): a
   ring in the house accent on the found book's row,
   with the notice family's pale wash — a landing
   treatment only, applied by the landing script and
   gone with the next navigation. */
li.book { scroll-margin-top: 1rem; scroll-margin-bottom: 1rem; }
.book-highlight {
  outline: 2px solid var(--wash-weighted-ink); outline-offset: 4px;
  border-radius: 10px; background: var(--wash-mood-bg);
}
/* DECISIONS #110 §E: the panel Mood mix doors and the
   result view's mood re-cut row. Every selector here
   matches only flag-on markup (the .door pillars, the
   .panel-mood-note, the .mood-recut nav), so with
   slider lists off no rule in this block can reach a
   rendered element. The doors' affordance is the
   #109 language — the brightness lift on hover,
   focus and active — applied to the bar, whose height
   now carries the member's mix and cannot grow the
   #91 way. The selected door keeps the #91 language
   (the .sel rules above: widest, purple, tallest).
   The re-cut row's current chip wears the mood
   purple, the selected pillar's own color. */
.panel-mood-note { margin: 0 0 6px; font-size: 11px; line-height: 1.35; color: var(--muted); }
.mood-cell.door { cursor: pointer; }
.mood-cell.door:hover .mood-bar, .mood-cell.door:focus-visible .mood-bar { filter: brightness(1.18); }
.mood-cell.door:active .mood-bar { filter: brightness(1.3); }
.mood-cell.door:focus-visible { outline: 2px solid #b9c6e6; outline-offset: 1px; }
.panel-mood-labs.door span { height: auto; }
.mood-n { display: block; margin-top: 1px; font-size: 9px; font-weight: 700; }
.view-nav .chip.sel { background: #66588e; border-color: #66588e; color: #fff; }
/* DECISIONS #113: the fold-in panel's inert billing
   rows. Membership and Gift a membership render in
   place while billing is off — carrying the "at
   billing" badge — as spans, not doors: no navigation,
   no hover, a muted voice. The selector matches only
   flag-on markup (.panel-row-inert exists only in the
   fold-in panel), so with the fold-in flag off no rule
   here can reach a rendered element. */
.panel-row-inert { color: var(--muted); cursor: default; }
/* DECISIONS #111: unified search — the one page's own
   surfaces, plus the gift-menu amendment's buy-menu.
   Every selector here matches only #111 markup (the
   search page exists only behind its flag, and the
   buy-menu form renders only while the flag is on), so
   with the flag off no rule in this block can reach a
   rendered element. */
/* The buy menu (gift-menu amendment, mock of record
   mock-gift-menu-v1.html): one pill, a small in-place
   menu under it, closed by default — the panel's
   appearance pop-up pattern. Inside .card-actions the
   menu takes the disclosure's own full-width line. */
.buy-menu-toggle .car { font-size: 0.68rem; margin-left: 0.3rem; }
.buy-menu-pop {
  display: block; flex-basis: 100%; max-width: 340px;
  margin-top: 0.15rem; border: 1px solid var(--field-border);
  border-radius: 10px; overflow: hidden; background: var(--card);
}
.buy-menu-pop[hidden] { display: none; }
.buy-menu-pop a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.65rem 0.85rem; font-size: 0.92rem; font-weight: 600;
  text-decoration: none; color: var(--ink);
}
.buy-menu-pop a + a { border-top: 1px solid var(--hairline); }
.buy-menu-pop .pref {
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; color: #7c4dbd;
}
:root[data-theme="dark"] .buy-menu-pop .pref { color: #b79ae0; }
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] .buy-menu-pop .pref { color: #b79ae0; }
}
.buy-menu-pop .ext { opacity: 0.55; font-size: 0.75rem; }
/* The search head: box + button on one row. */
.search-head { display: flex; gap: 0.5rem; margin: 0.8rem 0; }
.search-head input[type="search"] { flex: 1; min-width: 0; }
/* The filter bar: a native details — its face is the
   Filters toggle with the active count; the card
   opens in place, no script. */
.search-filters { margin: 0.4rem 0 0.8rem; }
.sf-summary {
  cursor: pointer; font-weight: 700; padding: 0.55rem 0.2rem;
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
}
.sf-state { font-weight: 400; color: var(--muted); font-size: 0.88rem; margin-left: 0.4rem; }
.filter-card { padding: 0.6rem 0.2rem 0.2rem; }
.sf-family { border: none; margin: 0 0 0.9rem; padding: 0; }
.sf-family > legend {
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 0.35rem;
}
.sf-slider { border: none; margin: 0 0 0.55rem; padding: 0; }
.sf-slider > legend { font-weight: 700; padding: 0; margin-bottom: 0.2rem; }
.sf-mode-row { display: flex; gap: 0.6rem; align-items: baseline; margin: 0.15rem 0; flex-wrap: nowrap; }
.sf-mode {
  flex: 0 0 4.6rem; font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted);
}
.sf-sub { display: flex; gap: 0.6rem; align-items: baseline; margin: 0.45rem 0; flex-wrap: wrap; }
/* DECISIONS #115: the mode label keeps its fixed column
   (.sf-mode flex: 0 0 4.6rem) and the options wrap INSIDE
   their own column — flex: 1 1 auto + min-width: 0 lets the
   options span shrink and wrap internally instead of
   dropping to its own line as a block (the Reread Exactly
   row at tablet width). Shared by .sf-mode-row and .sf-sub.
   DECISIONS #119 supersedes the wrap for the MODE ROWS
   only: their pills are numbers-only now, so each mode
   row is one row at every width — .sf-mode-row and its
   .sf-opts never wrap. The .sf-sub rows (tropes, year,
   page count) keep the #115 wrap. */
.sf-opts { display: flex; gap: 0.35rem 0.9rem; flex-wrap: wrap; align-items: center; flex: 1 1 auto; min-width: 0; }
.sf-mode-row .sf-opts { flex-wrap: nowrap; gap: 0.35rem 0.4rem; }
.sf-opt { display: inline-flex; gap: 0.3rem; align-items: center; font-size: 0.92rem; }
/* DECISIONS #115 Fix 4: ONE control style in the Filters
   panel — every option is a tappable pill. The native
   input rides inside its pill label as the state
   carrier (visually hidden, still the form control:
   same names, same values, same radio exclusivity,
   same submission); the pill the reader sees and taps
   is the label. The checked pill takes the sort chips'
   .on treatment (navy, white text). */
.sf-pill {
  position: relative; border: 1px solid var(--field-border); border-radius: 999px;
  background: var(--card); color: var(--ink); padding: 0.32rem 0.75rem; cursor: pointer;
}
.sf-pill > input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.sf-pill:has(> input:checked) { background: var(--navy); border-color: var(--navy); color: #fff; }
.sf-pill:has(> input:focus-visible) { outline: 2px solid var(--wash-weighted-ink); outline-offset: 2px; }
.sf-family .sf-pill { margin: 0.1rem 0.05rem; }
/* DECISIONS #119: mode-row pills carry tighter horizontal
   padding so the numbers-only rows fit one row at phone
   widths (measured: the row's min-content was 390px
   against 322px available at 360px before this). The
   font size is untouched — the shape change, not a
   shrink, is what the owner ruled. */
.sf-mode-row .sf-pill { padding: 0.32rem 0.5rem; }
.sf-note { flex-basis: 100%; margin: 0.2rem 0 0; font-size: 0.8rem; color: var(--muted); }
.sf-actions { margin: 0.6rem 0 0.2rem; }
.sf-clear { margin-left: 0.6rem; }
/* DECISIONS #147: the visitor form's member-only
   controls — grayed, dashed, inert (their inputs are
   disabled), named by the Members only pill that
   stands with them. */
.sf-locked { opacity: .55; cursor: default; border-style: dashed; }
.sf-members {
  display: inline-flex; align-items: center; align-self: center;
  font-size: 11px; font-weight: 800; letter-spacing: .04em; white-space: nowrap;
  border-radius: 999px; padding: 3px 10px; margin: 0.1rem 0.05rem;
  background: var(--navy); color: #fff;
}
/* DECISIONS #147: the search hub — the visitor's
   bare /search: the box above, the curated doors
   below, in the guides landing's door grammar. */
.search-hub { margin: 1.2rem 0 0.4rem; }
.search-hub h2 { font-size: 1.05rem; margin: 0 0 0.6rem; }
.search-hub-doors { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.6rem; }
.search-hub-door {
  display: flex; flex-direction: column; gap: 0.15rem;
  border: 1px solid var(--field-border); border-radius: 12px;
  padding: 0.7rem 0.85rem; text-decoration: none; color: var(--ink); background: var(--card);
}
.search-hub-door:hover { border-color: var(--navy); }
.shd-title { font-weight: 800; }
.shd-line { font-size: 0.85rem; color: var(--muted); }
/* The switch-over native pages (DECISIONS #155): the
   /links list stands one door per row, and the contact
   page's kicker takes the live page's letterspaced form. */
.links-list { grid-template-columns: 1fr; }
.contact-kicker { letter-spacing: 0.22em; font-weight: 700; font-size: 0.8rem; color: var(--muted); text-transform: uppercase; }
/* Tags: each names its filter and links to the state
   without it. */
.search-tags { margin: 0.4rem 0; display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.search-tag {
  display: inline-flex; gap: 0.3rem; align-items: center;
  padding: 0.28rem 0.7rem; border: 1px solid var(--field-border); border-radius: 999px;
  font-size: 0.85rem; font-weight: 600; text-decoration: none; color: var(--ink);
  background: var(--card);
}
.search-clear { font-size: 0.88rem; }
/* The count + method lines and the sort control. */
.search-count { font-weight: 700; margin: 0.7rem 0 0.15rem; }
.search-method { color: var(--muted); margin: 0 0 0.4rem; }
.search-sort { margin: 0.2rem 0 0.8rem; display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.sort-chip {
  padding: 0.3rem 0.8rem; border: 1px solid var(--field-border); border-radius: 999px;
  font-size: 0.88rem; font-weight: 600; text-decoration: none; color: var(--ink);
}
.sort-chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.search-empty { color: var(--muted); margin: 1rem 0; }
/* DECISIONS #116b §A: the anchor line — the view
   names the book it is anchored to, with its
   Remove control riding as a tag-shaped link. */
.search-anchor { margin: 0.6rem 0 0.15rem; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.search-anchor em { font-weight: 700; }
.search-anchor-clear {
  display: inline-flex; gap: 0.3rem; align-items: center;
  padding: 0.28rem 0.7rem; border: 1px solid var(--field-border); border-radius: 999px;
  font-size: 0.85rem; font-weight: 600; text-decoration: none; color: var(--ink);
  background: var(--card);
}
.search-anchor-gone { color: var(--muted); margin: 0.6rem 0 0.15rem; }
/* DECISIONS #116b §C: the Show more door at the
   foot of the results — a sort-chip-shaped link. */
.search-more { margin: 1rem 0; }
.search-more-link {
  display: inline-flex; align-items: center;
  padding: 0.3rem 0.8rem; border: 1px solid var(--field-border); border-radius: 999px;
  font-size: 0.88rem; font-weight: 600; text-decoration: none; color: var(--ink);
  background: var(--card);
}
/* DECISIONS #116a §C: the pinned title row — the book
   the query named, standing above the results under
   its own heading, set apart by the accent rule. */
.search-pinned { margin: 0.6rem 0 1rem; padding: 0.6rem 0.8rem 0.2rem; border: 1.5px solid var(--navy); border-radius: 14px; }
.search-pinned-title { font-size: 1rem; font-weight: 800; margin: 0 0 0.4rem; }
/* DECISIONS #114: the explainer page — the six slider
   sections with their 1–5 spectrum strips (mock of
   record: mock-explainer-v2-{dark,light}.html), the
   weighted-score formula box, and the two "What do
   these mean?" doors. The strip bars wear the
   designated purple #66588e, as the slider fills do. */
.hiw-lede { line-height: 1.6; }
.hiw-sec { padding: 1.1rem 0 1.2rem; border-bottom: 1px solid var(--field-border); }
.hiw-sec:last-child { border-bottom: none; }
.hiw-sec h2 { margin: 0 0 0.4rem; }
.hiw-sec p { line-height: 1.65; margin: 0.3rem 0; }
/* DECISIONS #170: the Help section at the page's
   foot — its own class, outside the explainer's
   verbatim region; the "Need more help" door is a
   BUTTON (the primary button's geometry on an
   anchor), never a text link. */
.hiw-help { padding: 1.1rem 0 0.4rem; }
.hiw-help h2 { margin: 0 0 0.4rem; }
.hiw-help h3 { margin: 1rem 0 0.2rem; font-size: 1rem; }
.hiw-help p { line-height: 1.65; margin: 0.3rem 0; }
.hiw-help-more { margin-top: 1.2rem !important; }
a.hiw-help-btn {
  display: inline-block; background: var(--navy); color: #fff; border: 0;
  border-radius: 999px; padding: 0.8rem 1.4rem; font-weight: 700; text-decoration: none;
}
.hiw-strip { display: flex; gap: 6px; margin-top: 0.8rem; }
.hiw-seg { flex: 1; text-align: center; min-width: 0; }
.hiw-bar { display: block; height: 9px; border-radius: 5px; background: #66588e; }
.hiw-num { display: block; font-size: 0.75rem; font-weight: 800; margin-top: 0.35rem; }
.hiw-word { display: block; font-size: 0.66rem; color: var(--muted); line-height: 1.3; }
.hiw-fx {
  font-size: 1.02rem; font-weight: 700; text-align: center;
  padding: 0.85rem 0.6rem; margin: 0.9rem 0; border-radius: 10px;
  background: rgba(102, 88, 142, 0.14); border: 1px solid rgba(102, 88, 142, 0.4);
}
.search-explain { margin: 0 0 0.6rem; }
.explainer-door { margin: 0.5rem 0 0; }

/* DECISIONS #117 — the dashboard shell: the locked
   layout's own classes (the standing .dash-* rules are
   untouched; the v2 surfaces never share a class with
   them). Blocks size to their content; the grid is
   twelve columns on desktop and one stacked column on
   phones, the mobile mock's stacking. Palette: navy
   family blocks in both modes (the --card/--hairline
   vars), purple only as glitter accent (the Gem kick +
   the New tag, as mocked), white buttons stay white. */
.dash2-search { display: flex; gap: 10px; margin-bottom: 12px; }
.dash2-search input {
  flex: 1; border-radius: 999px; padding: 12px 20px; font-size: 14px;
  background: var(--card); border: 1px solid var(--hairline); color: var(--ink); min-width: 0;
}
.dash2-search-go {
  border-radius: 999px; padding: 12px 22px; font-size: 14px; font-weight: 700;
  background: #ffffff; color: #16283f; border: 1px solid var(--hairline); cursor: pointer;
}
.dash2-tip { font-size: 12.5px; color: var(--muted); margin: 0 0 14px; }
.dash2-tip-form { margin: 0; }
.dash2-tip-dismiss {
  font: inherit; font-weight: 700; color: var(--ink); background: none;
  border: 1.5px solid var(--field-border); border-radius: 999px; padding: 2px 12px; cursor: pointer; margin-left: 6px;
}
.dash2-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.dash2-block {
  border-radius: 16px; padding: 16px 18px; display: block; position: relative;
  overflow: hidden; background: var(--card); border: 1px solid var(--hairline);
  color: var(--ink); text-decoration: none;
  -webkit-touch-callout: none; -webkit-user-select: none; user-select: none;
}
.dash2-block h2 { font-size: 15.5px; font-weight: 800; margin: 0 0 6px; padding-right: 30px; }
.dash2-span2 { grid-column: span 2; }
.dash2-span3 { grid-column: span 3; }
.dash2-span4 { grid-column: span 4; }
.dash2-span6 { grid-column: span 6; }
.dash2-span10 { grid-column: span 10; }
.dash2-big { font-size: 19px; font-weight: 800; margin: 2px 0; }
.dash2-line { font-size: 12.5px; line-height: 1.45; color: var(--muted); margin-top: 3px; }
.dash2-kick { font-size: 11px; font-weight: 800; letter-spacing: 1.1px; color: var(--back-dash); text-transform: uppercase; }
.dash2-tilewrap { display: flex; justify-content: center; margin-top: 10px; }
.dash2-tile {
  width: 48px; height: 48px; border-radius: 11px; display: flex;
  align-items: center; justify-content: center; font-size: 23px; background: var(--hover);
}
.dash2-tile.big { width: 64px; height: 64px; font-size: 31px; border-radius: 15px; }
.dash2-doorblock { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 9px; }
.dash2-doorblock h2 { padding-right: 0; font-size: 16px; line-height: 1.25; }
.dash2-tag {
  display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .8px;
  padding: 2.5px 8px; border-radius: 999px; vertical-align: 2px; margin-left: 6px;
  text-transform: uppercase; background: #5a708c; color: #ffffff;
}
.dash2-tag.new { background: #7c4dbd; }
.dash2-pill {
  display: inline-block; font-size: 11px; font-weight: 800; padding: 2.5px 8px;
  border-radius: 999px; vertical-align: 2px; margin-left: 6px;
  background: #5a708c; color: #ffffff; letter-spacing: .4px;
}
/* The content blocks' list grammar (DECISIONS #118,
   from the approved mocks): landscape rows — cover at
   the left, title and lines running at the right. */
.dash2-cu-list { display: flex; flex-direction: column; gap: 13px; margin-top: 10px; }
.dash2-cu-row { display: flex; gap: 13px; align-items: flex-start; margin: 0; }
/* Row doors + footer doors inside a block (DECISIONS
   #130b/#136): a doored row keeps the list grammar in
   the block's own ink; the footer door is the block's
   one text door. */
a.dash2-cu-row { color: inherit; text-decoration: none; }
.dash2-door { color: var(--back-dash); font-weight: 700; text-decoration: none; }
.dash2-cu-cover { width: 56px; height: auto; border-radius: 5px; flex: none; }
.dash2-cu-grow { flex: 1; min-width: 0; }
.dash2-cu-title { font-size: 14.5px; font-weight: 800; margin: 0; }
.dash2-air-when { font-size: 11px; font-weight: 800; letter-spacing: .03em; margin-top: 3px; }
.dash2-air-where { font-size: 11.5px; line-height: 1.55; color: var(--muted); margin-top: 2px; }
.dash2-series-line { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.dash2-emap { font-size: 12.5px; margin-top: 3px; letter-spacing: .3px; white-space: nowrap; }
.dash2-first3 { font-size: 10.5px; line-height: 1.6; color: var(--muted); margin-top: 3px; }

/* The standing blocks' livelier forms (DECISIONS
   #123): the pinned icon beside the name instead of a
   lone tile at the foot, cover strips at native
   aspect, the Waiting next-up row. The height
   behaviour is DECISIONS #125's (the owner's ruling,
   reversing #123's size-to-content for the dashboard
   grid): a standing block is a flex column the grid
   stretches to its row's height, and a trailing
   explainer line pins to the block's foot
   (.dash2-foot) so a stretched block reads composed.
   DECISIONS #129: the socials block's art is its
   books' own covers in the shared list grammar
   (.dash2-cu-cover, exactly Hot off the press's
   size) — #123's platform thumbnail and the 16:9
   frame #125 built for it are retired, their rules
   removed with their last user. */
.dash2-compact { display: flex; flex-direction: column; }
.dash2-foot { margin-top: auto; }
/* DECISIONS #144 (amendment 2, owner, Nov 29, 2026):
   the head aligns to the TOP — a title that wraps to
   two lines (or carries the at-billing pill) keeps
   its icon on the title's first line, never dropped
   to the middle; the icon carries a small top nudge
   so the glyph sits on that first line optically. */
.dash2-head { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
.dash2-head h2 { margin-bottom: 0; }
.dash2-ic { font-size: 15px; line-height: 1; flex: none; margin-top: 3px; }
.dash2-covers { display: flex; gap: 8px; margin-top: 8px; }
.dash2-cover { height: 70px; width: auto; border-radius: 4px; }
.dash2-nextup { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.dash2-nextup-cover { height: 60px; width: auto; border-radius: 4px; flex: none; }
.dash2-nextup-line { margin-top: 0; }
.dash2-nextup-line strong { color: var(--ink); }

/* Arrange mode (DECISIONS #117): the controls exist on
   every standard block and wake only while the grid
   carries .arranging; the furniture carries none.
   DECISIONS #139: the block rule above disarms the
   iOS long-press callout + selection so the hold
   reaches the arrange timer on touch, and the grip
   is touch-native (touch-action: none) so a finger
   drag moves the block instead of scrolling. */
.dash2-grip { position: absolute; top: 10px; right: 12px; font-size: 14px; opacity: .45; cursor: grab; display: none; touch-action: none; }
.dash2-hide {
  position: absolute; bottom: 10px; right: 12px; font-size: 12px; font-weight: 700;
  border: 1.5px solid var(--field-border); border-radius: 999px; padding: 3px 12px;
  cursor: pointer; display: none; background: var(--card); color: var(--ink);
}
.dash2-grid.arranging .dash2-block { outline: 1.5px dashed var(--field-border); outline-offset: -1.5px; }
.dash2-grid.arranging .dash2-grip { display: block; }
.dash2-grid.arranging .dash2-hide { display: inline-block; }
.dash2-arrangebar { display: none; margin-top: 14px; text-align: right; }
body.dash2-arranging .dash2-arrangebar { display: block; }
.dash2-done {
  font: inherit; font-size: 13px; font-weight: 700; border-radius: 999px;
  padding: 7px 18px; background: #ffffff; color: #16283f;
  border: 1px solid var(--hairline); cursor: pointer;
}
.dash2-tray { margin-top: 18px; border: 1.5px dashed var(--field-border); border-radius: 16px; padding: 14px 20px; }
.dash2-tray h2 { font-size: 14px; font-weight: 800; margin: 0 0 8px; }
.dash2-tray-note { font-size: 12.5px; color: var(--muted); margin: 0 0 8px; }
.dash2-tray-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 5px 0; }
.dash2-tray-row form { margin: 0; }
.dash2-restore {
  font: inherit; font-size: 12.5px; font-weight: 700; border: 1.5px solid var(--field-border);
  border-radius: 999px; padding: 4px 14px; cursor: pointer; background: none; color: var(--ink);
}
@media (max-width: 1023px) {
  .dash2-span2, .dash2-span3, .dash2-span4, .dash2-span6 { grid-column: span 6; }
  .dash2-span10 { grid-column: span 12; }
  .dash2-span2.dash2-doorblock { grid-column: span 12; }
}
@media (max-width: 639px) {
  .dash2-search { flex-direction: column; }
  .dash2-span2, .dash2-span3, .dash2-span4, .dash2-span6, .dash2-span10 { grid-column: span 12; }
}

/* DECISIONS #142: the reading-order guides — the index
   cards and the guide pages. Form of record: the
   owner-approved mock v14 (itself v2's treatment):
   the hero over the guide's own art, the toggle with
   the standing state's filled chip (a rule per guide —
   the v13 mock shipped missing the Maas rule; the
   ship gate screenshot-checks every guide's chip),
   the list on the guide's own map washed at .72, the
   deep-purple discs fully inside the panel (the
   padding lives on the list rule itself), divider
   lines between steps, bold titles, the series in
   caps beneath. The library-state layer (§2c) rides
   the row's right side: the shared pill / get-it
   pop-up; a marker never covers a title. The list
   stays one column at every width (§2e), answered
   for length by the jump-to-series anchor row. */
/* The landing (mock-guides-landing-v1, adapted to
   the app theme): hero + guides-only search, the
   featured guide, the Complex universes grid, the
   Series guides, the bottom stamp. */
.gl-hero { text-align: center; padding: 26px 12px 4px; }
.gl-eyebrow { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.gl-hero h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 600; font-size: 42px; line-height: 1.12; margin: 10px 0 12px; }
.gl-hero > p { font-size: 16px; line-height: 1.55; color: var(--muted); max-width: 640px; margin: 0 auto; }
.gl-search { display: flex; gap: 10px; max-width: 620px; margin: 24px auto 6px; }
.gl-search input { flex: 1; padding: 12px 16px; font-size: 15.5px; border: 1px solid var(--field-border); border-radius: 999px; background: var(--card); color: var(--ink); min-width: 0; }
.gl-search button { padding: 12px 24px; font-size: 15px; font-weight: 600; border: none; border-radius: 999px; background: #212f4d; color: #fff; cursor: pointer; }
.gl-searchnote { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.gl-results { max-width: 720px; margin: 26px auto 0; background: var(--card); border: 1px solid var(--hairline); border-radius: 14px; padding: 16px 20px 18px; }
.gl-results h2 { font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 600; margin: 0 0 8px; }
.gl-result { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 7px 0; border-top: 1px solid var(--hairline); margin: 0; }
.gl-result a { font-weight: 700; color: var(--ink); text-decoration: none; }
.gl-result a:hover { text-decoration: underline; }
.gl-result-note { font-size: 12.5px; color: var(--muted); text-align: right; }
.gl-nomatch { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.gl-featured { display: block; color: inherit; text-decoration: none; margin-top: 34px; background: var(--card); border: 1px solid var(--hairline); border-radius: 16px; overflow: hidden; }
.gl-featured-art { height: 190px; background-size: cover; background-position: center; }
.gl-featured-body { padding: 20px 26px 24px; }
.gl-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #341a6e; background: #efeafd; border-radius: 999px; padding: 5px 11px; }
.gl-featured-body h2 { font-family: Georgia, "Times New Roman", serif; font-size: 28px; font-weight: 600; margin: 12px 0 6px; }
.gl-featured-body p { font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 720px; margin: 0; }
.gl-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.gl-meta b { color: var(--ink); }
/* DECISIONS #167: the .gl-door link-line rule retired with the line — every landing card is now its own whole-card door. */
.gl-section { margin-top: 42px; }
.gl-section h3 { font-family: Georgia, "Times New Roman", serif; font-size: 24px; font-weight: 600; margin: 0; }
.gl-sub { font-size: 14px; color: var(--muted); margin-top: 5px; line-height: 1.5; }
.gl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.gl-card { display: block; color: inherit; text-decoration: none; background: var(--card); border: 1px solid var(--hairline); border-radius: 14px; overflow: hidden; }
.gl-card-art { height: 118px; background-size: cover; background-position: center; }
.gl-card-body { padding: 15px 17px 17px; }
.gl-card-body h4 { font-family: Georgia, "Times New Roman", serif; font-size: 18.5px; font-weight: 600; line-height: 1.25; margin: 0; }
.gl-by { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #7a68a6; font-weight: 700; margin-bottom: 6px; }
.gl-card-body p { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin: 6px 0 0; }
.gl-card-body .gl-meta { margin-top: 11px; font-size: 12.5px; gap: 6px 14px; }
.gl-grid2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.gl-scard { display: block; color: inherit; text-decoration: none; background: var(--card); border: 1px solid var(--hairline); border-radius: 14px; padding: 16px; }
.gl-mono { width: 38px; height: 38px; border-radius: 50%; background: #341a6e; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 15px; display: flex; align-items: center; justify-content: center; letter-spacing: .03em; }
.gl-scard h4 { font-family: Georgia, "Times New Roman", serif; font-size: 16.5px; font-weight: 600; line-height: 1.3; margin: 11px 0 0; }
.gl-scard .gl-by { margin: 5px 0 0; font-size: 11px; }
.gl-scard .gl-meta { margin-top: 9px; font-size: 12.5px; }
.gl-scard .gl-door { margin-top: 10px; font-size: 13.5px; }
.gl-foot { margin-top: 44px; text-align: center; font-size: 13px; color: var(--muted); line-height: 1.6; }
.gl-stamp { font-weight: 600; color: var(--ink); }
@media (max-width: 860px) {
  .gl-grid { grid-template-columns: 1fr; }
  .gl-grid2 { grid-template-columns: repeat(2, 1fr); }
  .gl-hero h1 { font-size: 32px; }
}
.guide { background: var(--card); border: 1px solid var(--hairline); border-radius: 18px; overflow: hidden; }
.guide-hero { position: relative; min-height: 240px; background-size: cover; background-position: center; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px 26px; }
.guide-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,12,22,.18), rgba(8,12,22,.62)); }
.guide-hero > * { position: relative; }
.guide-kicker { font-size: 12px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.guide-hero h1 { color: #fff; margin: 4px 0 2px; line-height: 1.08; }
.guide-asof { color: rgba(255,255,255,.85); font-size: 13.5px; }
.guide-inner { padding: 20px 26px 24px; }
.guide-all-row { margin: 0 0 8px; }
.guide-all-end { margin: 14px 0 2px; }
.guide-all { font-size: 13.5px; font-weight: 700; color: var(--ink); text-decoration: none; }
.guide-all:hover { text-decoration: underline; }
.guide-toggle { display: inline-flex; border: 1.5px solid var(--field-border); border-radius: 999px; overflow: hidden; margin: 2px 0 6px; }
.guide-toggle a, .guide-toggle span { padding: 6px 16px; font-size: 13.5px; font-weight: 700; color: var(--muted); text-decoration: none; }
.guide-ka .guide-toggle .guide-on { background: #22303f; color: #fff; }
.guide-arm .guide-toggle .guide-on { background: #2b2320; color: #fff; }
.guide-maas .guide-toggle .guide-on { background: #212f4d; color: #fff; }
.guide-ward .guide-toggle .guide-on { background: #1d2a45; color: #fff; }
.guide-ordnote { font-size: 13.5px; color: var(--muted); line-height: 1.45; margin: 10px 2px 12px; }
.guide-strip { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13.5px; line-height: 1.45; border: 1px solid var(--hairline); border-radius: 10px; padding: 8px 12px; margin: 0 0 12px; }
.guide-join { flex: none; font-weight: 800; font-size: 13px; background: #341a6e; color: #fff; padding: 4px 14px; border-radius: 999px; text-decoration: none; }
.guide-path { list-style: none; margin: 0; padding: 10px 20px 12px; background-image: linear-gradient(var(--guide-wash, rgba(241,244,249,.72)), var(--guide-wash, rgba(241,244,249,.72))), var(--guide-map); background-size: cover, auto; background-repeat: repeat; background-position: center top; border-radius: 14px; }
/* DECISIONS #168: the Ward guide's wash lightens one
   shade (.80 against the standing .72) — a per-guide
   value on the guide's own section, not a fork; every
   other guide keeps .72. */
.guide-ward { --guide-wash: rgba(241,244,249,.80); }
.guide-path li { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid rgba(22,40,63,.25); }
.guide-path li:first-child { border-top: none; }
/* DECISIONS #168: the forthcoming fade dims the
   book's own furniture (disc, cover, main, actions)
   — never the explanation: the reason line is a
   direct child of the step and stands outside the
   faded treatment at full strength. */
.guide-path li.guide-dim > :not(.guide-note) { opacity: .55; }
.guide-note { flex: 0 0 100%; display: block; margin-top: 2px; color: #16283f; font-size: 14.5px; font-weight: 400; line-height: 1.5; }
.guide-disc { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #341a6e; color: #ffffff; border: 1.5px solid rgba(255,255,255,.9); box-shadow: 0 1px 3px rgba(27,42,74,.35); font-weight: 800; font-size: 13.5px; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.guide-cover { flex: none; display: block; height: 52px; width: auto; border-radius: 3px; }
.guide-cover-empty { width: 35px; height: 52px; background: transparent; }
.guide-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; padding-top: 2px; }
.guide-title { font-weight: 800; font-size: 17px; color: #16283f; }
a.guide-door { color: inherit; text-decoration: none; }
a.guide-door:hover { text-decoration: underline; }
.guide-caps { display: block; color: #42557a; font-size: 10.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.guide-values { display: block; color: #42557a; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; margin-top: 1px; }
.guide-actions { flex: none; display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; justify-content: flex-end; max-width: 44%; }
.guide-watch { display: inline-block; font-size: 11.5px; font-weight: 600; color: #fff; background: #1b2a4a; border-radius: 999px; padding: 4px 10px; text-decoration: none; white-space: nowrap; }
.guide-actions .disclosure { flex-basis: 100%; margin: 2px 0 0; text-align: right; }
/* The library-state standard (DECISIONS #142 §2c):
   the shared pill + get-it pop-up — system-wide
   classes (book-* / getit-*), styled here in the
   navy/silver family with purple as accent only.
   On the guides' washed panel the toggle reads as a
   quiet outline action; the pop follows the house
   buy-menu construction (in-flow, theme card). */
.book-pill { font-size: 11px; font-weight: 800; letter-spacing: .04em; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.book-pill-in { background: #1b2a4a; color: #fff; }
.book-pill-ghost { border: 1.5px dashed #b9c4d6; color: #5a6b84; background: rgba(255,255,255,.4); }
/* DECISIONS #147: on a ranked card's dark ground the
   ghost pill takes a dark-ground form — the standing
   rule was drawn against the guides' light washed
   panel, and its label vanished on the search card
   in dark mode (QA catch, Nov 29, 2026). The guides'
   own ground stays light in both themes, so the
   override scopes to the card (.top10), and the
   guide pages keep the standing rule untouched. */
:root[data-theme="dark"] .top10 .book-pill-ghost { border-color: #5a6b84; color: #aebdd2; background: rgba(255,255,255,.07); }
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] .top10 .book-pill-ghost { border-color: #5a6b84; color: #aebdd2; background: rgba(255,255,255,.07); }
}
.book-getit-toggle { font: inherit; font-size: 11px; font-weight: 800; letter-spacing: .04em; border-radius: 999px; padding: 3px 10px; white-space: nowrap; border: 1.5px solid #1b2a4a; color: #1b2a4a; background: rgba(255,255,255,.55); cursor: pointer; }
/* DECISIONS #180: the ghost pill as a control — in
   its toggle-button form it keeps the ghost dress
   (the dashed outline and quiet ground) over the
   toggle's solid border; in its join-door link form
   it drops the underline. Same pill, now with
   somewhere to go. */
.book-pill-ghost.book-getit-toggle { border: 1.5px dashed #b9c4d6; color: #5a6b84; background: rgba(255,255,255,.4); }
a.book-pill-ghost { text-decoration: none; }
.libmodal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; }
.libmodal[hidden] { display: none; }
.libmodal-overlay { position: absolute; inset: 0; background: rgba(5, 8, 15, .66); }
.libmodal-dialog { position: relative; width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; }
.libmodal-dialog .card { margin: 0; }
.libmodal-close { position: absolute; top: 6px; right: 8px; z-index: 1; background: transparent; border: 0; color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; padding: 6px; }
.getit-pop { display: block; flex-basis: 100%; max-width: 340px; margin-top: 0.15rem; border: 1px solid var(--field-border); border-radius: 10px; overflow: hidden; background: var(--card); text-align: left; }
.getit-pop[hidden] { display: none; }
.getit-pop a { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0.85rem; font-size: 0.9rem; font-weight: 600; text-decoration: none; color: var(--ink); }
.getit-pop a + a, .getit-pop a + .disclosure, .getit-pop .disclosure + a { border-top: 1px solid var(--hairline); }
.getit-pop .disclosure { margin: 0; padding: 0.45rem 0.85rem; text-align: left; }
.getit-pop .getit-member-line { font-weight: 800; color: var(--ink); }
.guide-preorder-alt, .guide-ext-label { font-size: 12px; font-weight: 700; color: #42557a; text-decoration: none; white-space: nowrap; padding: 3px 2px; }
.guide-preorder-alt:hover, .guide-ext-label:hover { text-decoration: underline; }
/* The bottom As-of stamp (brief §2f): the guide's
   closing provenance line, below the list, rendered
   from the universe record's as_of so it advances
   with the data. */
.guide-asof-bottom { color: var(--muted); font-size: 13px; margin: 16px 2px 0; }
.guide-jump { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 12px; }
.guide-jump-label { font-size: 12.5px; font-weight: 700; color: var(--muted); margin-right: 2px; }
.guide-jump a { font-size: 12.5px; font-weight: 700; color: var(--ink); text-decoration: none; border: 1.5px solid var(--field-border); border-radius: 999px; padding: 3px 12px; }
.guide-jump a:hover { text-decoration: underline; }
.guide-path li { scroll-margin-top: 14px; }
.guide-bridge { background-image: linear-gradient(rgba(241,244,249,.72), rgba(241,244,249,.72)), var(--guide-map); background-size: cover; background-position: center; border: 1.5px solid #8fa3d9; border-radius: 12px; padding: 12px 18px; font-size: 14.5px; margin: 12px 0 0; color: #16283f; }
.guide-fineprint { color: var(--muted); font-size: 13.5px; line-height: 1.5; margin: 12px 2px 0; }
/* The three display faces (the mock's locked hero
   treatment; loaded on guide pages only). */
.guide-ka .guide-hero h1 { font-family: "Oswald", "Arial Narrow", sans-serif; text-transform: uppercase; letter-spacing: .02em; font-size: 40px; }
.guide-maas .guide-hero h1 { font-family: "Cinzel", "Times New Roman", serif; letter-spacing: .04em; font-size: 36px; }
.guide-arm .guide-hero h1 { font-family: "Cormorant Garamond", "Times New Roman", serif; font-weight: 700; font-size: 40px; }
.guide-ward .guide-hero h1 { font-family: "Cinzel", "Times New Roman", serif; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: 33px; }
@media (max-width: 639px) {
  .guide-hero { min-height: 200px; padding: 18px 18px; }
  .guide-ka .guide-hero h1, .guide-arm .guide-hero h1 { font-size: 32px; }
  .guide-maas .guide-hero h1 { font-size: 29px; }
  .guide-ward .guide-hero h1 { font-size: 27px; }
  .guide-inner { padding: 16px 14px 20px; }
  .guide-path { padding: 10px 12px 12px; }
  .guide-actions { max-width: 52%; }
}

/* ============ the simple homepage (DECISIONS #173) ============
 * The mock of record's own design, scoped under body.home:
 * the real palette glitter texture under a ~90% white wash,
 * white blocks on top, navy for buttons and tags, purple
 * as glitter accent only. */
body.home {
  margin: 0;
  background-color: #f4f7fa;
  background-image: linear-gradient(rgba(248, 250, 252, .90), rgba(248, 250, 252, .90)), url("/glitter-texture.webp");
  background-repeat: repeat;
  background-size: auto, 1150px auto;
  color: #1c2b3a;
  font-family: Georgia, "Times New Roman", serif;
}
.home-head {
  background: #16283f; color: #fff;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 14px 22px;
}
.home-brand { color: #fff; text-decoration: none; font-size: 26px; font-weight: bold; letter-spacing: .2px; white-space: nowrap; }
.home-brand span { display: block; font-size: 10.5px; letter-spacing: 2.6px; text-transform: uppercase; color: #b9c9dd; font-family: Verdana, sans-serif; font-weight: normal; margin-top: 2px; }
.home-search { flex: 1 1 300px; display: flex; max-width: 620px; }
.home-search input {
  flex: 1; border: 0; border-radius: 8px 0 0 8px; padding: 11px 14px;
  font-size: 15px; font-family: inherit; min-width: 0;
}
.home-search button {
  border: 0; border-radius: 0 8px 8px 0; padding: 11px 18px;
  background: #fff; color: #16283f; font-family: Verdana, sans-serif;
  font-size: 13px; font-weight: bold; cursor: pointer;
}
.home-head-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.home-signin { color: #dbe6f3; text-decoration: none; font-family: Verdana, sans-serif; font-size: 13.5px; }
.home-btn {
  display: inline-block; border-radius: 8px; padding: 10px 16px;
  font-family: Verdana, sans-serif; font-size: 13.5px; font-weight: bold;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
}
.home-btn.navy { background: #24466e; color: #fff; border-color: #31567f; }
.home-btn.white { background: #fff; color: #16283f; border-color: #c3d2e4; }
.home-btn.off { background: #24466e; color: #fff; border-color: #31567f; opacity: .75; cursor: default; }
.home-burger {
  background: #24466e; color: #fff; border: 1px solid #31567f; border-radius: 8px;
  font-size: 17px; line-height: 1; padding: 9px 13px; cursor: pointer;
}
.home-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 90;
  width: min(330px, 94vw); overflow-y: auto;
  box-shadow: 6px 0 24px rgba(15, 29, 48, .35);
  background: #16283f;
}
.home-drawer .panel { position: static; width: auto; height: auto; }
.home-main { max-width: 1060px; margin: 0 auto; padding: 30px 18px 8px; }
.home-hero h1 { font-size: 37px; line-height: 1.16; margin: 6px 0 10px; color: #0f1d30; }
.home-sub { font-size: 16.5px; color: #48586a; margin: 0 0 20px; line-height: 1.5; }
.home-try, .home-member {
  background: #fff; border: 1px solid #d7dfea; border-radius: 14px;
  padding: 20px 22px; box-shadow: 0 2px 10px rgba(22, 40, 63, .07);
}
.home-chiprow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.home-chip-label {
  font-family: Verdana, sans-serif; font-size: 11px; letter-spacing: 1.6px;
  text-transform: uppercase; color: #5b6b7d; width: 58px; flex: none;
}
.home-chip {
  border: 1.5px solid #c3d2e4; background: #fff; color: #24466e; border-radius: 999px;
  padding: 7px 14px; font-size: 14px; font-family: inherit; cursor: pointer;
}
.home-chip.on { background: #16283f; border-color: #16283f; color: #fff; }
.home-finetune { margin: 2px 0 4px 66px; font-size: 14px; }
.home-finetune a { color: #24466e; }
.home-result { margin-top: 14px; border-top: 1px solid #e4ebf3; padding-top: 16px; }
.home-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.home-picklabel {
  font-family: Verdana, sans-serif; font-size: 11.5px; letter-spacing: 1.6px;
  text-transform: uppercase; color: #341a6e; font-weight: bold;
}
.home-watch {
  font-family: Verdana, sans-serif; font-size: 12.5px; font-weight: bold;
  color: #24466e; text-decoration: none; border: 1px solid #c3d2e4;
  border-radius: 999px; padding: 6px 12px; background: #fff;
}
.home-aria { font-size: 14.5px; color: #48586a; margin: 8px 0 0; }
.home-aria strong { color: #16283f; }
.home-book { display: flex; gap: 18px; margin-top: 12px; }
.home-cover { width: 118px; height: auto; object-fit: contain; align-self: flex-start; border-radius: 6px; flex: none; box-shadow: 0 3px 10px rgba(22, 40, 63, .25); }
.home-book-main h3 { margin: 0 0 2px; font-size: 23px; color: #0f1d30; }
.home-author { margin: 0 0 6px; color: #48586a; font-size: 15px; }
.home-series { margin: 0 0 8px; font-family: Verdana, sans-serif; font-size: 11px; letter-spacing: 1.8px; color: #5b6b7d; }
.home-sliders { margin: 0 0 8px; font-size: 15px; color: #16283f; }
.home-why { margin: 0 0 12px; font-size: 15.5px; line-height: 1.5; color: #33475e; max-width: 36em; }
.home-aria-line { font-style: italic; color: #341a6e; font-size: 15.5px; margin: 0 0 12px; }
.home-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; position: relative; }
.home-actions .book-getit-toggle {
  background: #16283f; color: #fff; border: 1px solid #16283f; border-radius: 8px;
  padding: 10px 16px; font-family: Verdana, sans-serif; font-size: 13.5px; font-weight: bold; cursor: pointer;
}
.home-actions .getit-pop {
  position: absolute; z-index: 30; top: calc(100% + 6px); left: 0;
  background: #fff; border: 1px solid #d7dfea; border-radius: 10px;
  box-shadow: 0 10px 30px rgba(22, 40, 63, .22); padding: 10px; min-width: 240px;
}
.home-result .getit-library-door { display: inline-block; margin-top: 12px; color: #24466e; font-size: 14.5px; }
.home-startseries { margin: 12px 0 0; font-size: 14.5px; }
.home-startseries a { color: #24466e; }
.home-nopick { font-size: 15.5px; color: #48586a; margin: 4px 0; }
.home-fav-h { font-size: 21px; color: #0f1d30; margin: 28px 0 12px; }
.home-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.home-tile {
  background: #fff; border: 1px solid #d7dfea; border-radius: 12px; padding: 12px;
  text-decoration: none; color: #1c2b3a; display: flex; flex-direction: column; gap: 7px;
  box-shadow: 0 2px 8px rgba(22, 40, 63, .06);
}
.home-tile-img { width: 100%; height: 86px; object-fit: contain; background: #eef2f7; border-radius: 7px; }
.home-tile-t { font-weight: bold; font-size: 15.5px; color: #0f1d30; }
.home-tile-s { font-size: 13px; color: #5b6b7d; line-height: 1.4; }
.home-loved { margin: 20px 0 0; font-size: 15.5px; }
.home-loved a { color: #24466e; }
.home-member { margin-top: 20px; display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.home-member-main p { margin: 0; font-size: 15.5px; max-width: 34em; line-height: 1.5; }
.home-member .home-gift { margin-top: 8px; }
.home-gift a { color: #24466e; }
.home-atbilling {
  font-family: Verdana, sans-serif; font-size: 10.5px; letter-spacing: 1px;
  text-transform: uppercase; background: #eef2f7; border: 1px solid #d7dfea;
  border-radius: 999px; padding: 2px 8px; color: #48586a; vertical-align: 2px;
}
.home-member-side { text-align: right; }
.home-member-note { font-size: 13px; color: #5b6b7d; margin: 7px 0 0; }
.home-foot { max-width: 1060px; margin: 26px auto 0; padding: 18px; border-top: 1px solid #d7dfea; }
.home-foot-nav { display: flex; gap: 18px; flex-wrap: wrap; font-family: Verdana, sans-serif; font-size: 13px; }
.home-foot-nav a { color: #24466e; text-decoration: none; }
.home-honest { font-size: 13.5px; color: #48586a; margin: 12px 0 4px; }
.home-fine { font-size: 12.5px; color: #7b8a9c; margin: 0; }
@media (max-width: 760px) {
  .home-hero h1 { font-size: 29px; }
  .home-tiles { grid-template-columns: repeat(2, 1fr); }
  .home-book { flex-direction: column; }
  .home-cover { width: 104px; }
  .home-finetune { margin-left: 0; }
  .home-chip-label { width: 100%; }
  .home-member-side { text-align: left; }
  .home-head { gap: 10px; padding: 12px 14px; }
  .home-main { padding: 20px 12px 4px; }
}
