/* The v2.0 one-page guide's page styles, for the specimens on this site only. */

  /* Color-system showcase (ported from the reference color-system.html generator).
     Scoped under #cg-scales / #cg-semantic / #cg-data so these generic class
     names (.chip, .card, .btn, .body, …) never leak into the rest of the guide. */
  /* full-bleed color sections use 100vw; clip the scrollbar-width sliver so the page never scrolls sideways */
  html, body { overflow-x: hidden; max-width: 100%; }
  #cg-scales, #cg-semantic, #cg-data { font-family: var(--f-mono, 'IBM Plex Mono', monospace); }
  /* the color reference needs more width than the 760px prose column. Break out to a VIEWPORT-centered
     band that can never overflow: full-bleed width, then pad so the content caps at ~1140px and centers,
     with a min gutter on narrow screens (viewport-relative, unlike a column-relative translate).
     The breakout rule itself lives once, as the shared .band utility in style.css — applied via
     class="band" in the markup below (and on #sf-logos, #ty-registers). */

  /* primitive scales */
  /* scales — big blocks, labels ON the swatch */
  #cg-scales .fam { margin-bottom: 22px; display: grid; grid-template-columns: 48px 1fr; gap: 4px 8px; align-items: center; }
  #cg-scales .fam-h { grid-column: 1/3; display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; }
  #cg-scales .fam-name { font-size: 16px; font-weight: 700; text-transform: capitalize; color: var(--ink); }
  #cg-scales .fam-cusp { font-size: 10.5px; color: var(--ink-2); }
  #cg-scales .rowlabel { font-size: 10px; color: var(--ink-2); text-align: right; padding-right: 4px; }
  /* seamless ramp — no dividers or outline; the 12 steps read as one continuous
     block per family (the step 1 chip = the bg role, so it meeting the page is honest) */
  #cg-scales .strip { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0; }
  @media (max-width: 900px) { #cg-scales .st b { display: none; } }
  #cg-scales .sw { padding: 4px; display: flex; flex-direction: column; justify-content: space-between; font-size: 9.5px; min-height: 92px; cursor: pointer; position: relative; }
  #cg-scales .sw::after { content: "copy"; position: absolute; top: 4px; right: 4px; font-size: 9px; opacity: 0; transition: opacity .12s; }
  #cg-scales .sw:hover::after { opacity: .5; }
  #cg-scales .sw.copied::after { content: "copied ✓"; opacity: 1; }
  #cg-scales .st { font-weight: 700; font-size: 10px; display: flex; flex-direction: column; line-height: 1.3; }
  /* color: inherit — the global `b { color: var(--ink) }` would override the swatch's
     computed per-chip ink (black-on-light / white-on-dark), ghosting labels mid-scale */
  #cg-scales .st b { font-weight: 500; font-size: 10px; opacity: .8; text-transform: none; color: inherit; }
  #cg-scales .sw--text .aa { font-size: 22px; font-weight: 600; align-self: center; line-height: 1; }
  #cg-scales .bottom { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
  #cg-scales .hx { opacity: .9; font-size: 10px; }
  #cg-scales .tag { font-size: 9.5px; padding: 1px 3px; border: 1px solid currentColor; line-height: 1.5; white-space: nowrap; display: inline-block; }
  #cg-scales .tag.apca { font-weight: 700; }

  /* semantic layer — REAL components in scoped wrappers (2026-08-07 design pass).
     The card carries data-theme + data-brand, so the actual token cascade paints the
     actual component classes (.btn--primary/.btn--sec/.btn.ghost/.btn--link/.badge-sota)
     — this section can no longer drift from components/style.css. Only the few
     specimen-local pieces (fieldbox, schip status recipe, labels) are styled here,
     and ONLY through semantic vars, never values. */
  #cg-semantic .cgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  #cg-semantic .cpanel { padding: 18px 0; }
  #cg-semantic .ct { font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; color: var(--ink-2); }
  #cg-semantic .card { border: var(--border-hairline) solid var(--line); background: var(--bg); padding: 18px; display: flex; flex-direction: column; gap: 20px; }
  #cg-semantic .card--dark { background: var(--surface); }  /* dark card = elevated surface above the page, like real dark UI */
  #cg-semantic .crow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
  #cg-semantic .glabel { font-family: var(--f-mono); font-size: 9px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; margin-bottom: -8px; color: var(--ink-2); }
  /* the focus-ring specimen — a minimal input box; ring = the system --focus token.
     The ring gently breathes: offset pulses out ~2px and back on a slow loop. */
  #cg-semantic .fieldbox { font-family: var(--f-mono); font-size: 12px; padding: 6px 10px; border: var(--border-hairline) solid var(--line-2); background: var(--surface); color: var(--ink-2); }
  #cg-semantic .fieldbox--focus { color: var(--ink); outline: var(--border-strong) solid var(--focus); outline-offset: var(--border-strong); animation: focus-ring-pulse 2s ease-in-out infinite; }
  @keyframes focus-ring-pulse { 0%, 100% { outline-offset: var(--border-strong); } 50% { outline-offset: calc(var(--border-strong) + 2px); } }
  @media (prefers-reduced-motion: reduce) { #cg-semantic .fieldbox--focus { animation: none; } }
  /* status chips — the status-theme recipe (text + border = the family's text-low, dot =
     the solid, tint ground = bg-subtle), written in vars so it tracks the system live.
     Dot = 1cap and line-height:1cap so the square hugs the caps line. */
  #cg-semantic .schip { display: inline-flex; align-items: center; gap: 7px; line-height: .72; line-height: 1cap; font-family: var(--f-sans); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; border: var(--border-hairline) solid; padding: 7px 10px 7px 7px; }
  #cg-semantic .sdot { width: .72em; width: 1cap; height: .72em; height: 1cap; display: inline-block; flex: none; }
  #cg-semantic .schip.is-success { color: var(--success-text-low); border-color: var(--success-text-low); background: var(--success-bg-subtle); }
  #cg-semantic .schip.is-success .sdot { background: var(--success-solid); }
  #cg-semantic .schip.is-warning { color: var(--warning-text-low); border-color: var(--warning-text-low); background: var(--warning-bg-subtle); }
  #cg-semantic .schip.is-warning .sdot { background: var(--warning-solid); }
  #cg-semantic .schip.is-danger { color: var(--danger-text-low); border-color: var(--danger-text-low); background: var(--danger-bg-subtle); }
  #cg-semantic .schip.is-danger .sdot { background: var(--danger-solid); }
  #cg-semantic .schip.is-info { color: var(--info-text-low); border-color: var(--info-text-low); background: var(--info-bg-subtle); }
  #cg-semantic .schip.is-info .sdot { background: var(--info-solid); }
  /* product register = mono UI text; marketing keeps sans (editorial). Buttons/links are
     real components and already carry their own register behavior. */
  #cg-semantic [data-brand="app"] .schip,
  #cg-semantic [data-brand="app"] .fieldbox { font-family: var(--f-mono); }
  /* the fusion gradient — its own full-width signature band */
  #cg-semantic .fusiongrad { display: block; width: 100%; height: 16px; margin-top: 2px; background: var(--fusion-grad); }
  @media (max-width: 820px) { #cg-semantic .cgrid { grid-template-columns: 1fr; } }

  /* data visualization — first-class: every stop is a labeled, copyable swatch (matches #cg-scales) */
  #cg-data .mlabel2 { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); margin: 16px 0 6px; }
  /* shared swatch cell — role label top, hex bottom, contrast fg baked inline, click-to-copy */
  /* v3: color chips carry NO text — names in ink, values in a hover tip, click copies */
  #cg-data .dv-chip { display: flex; flex-direction: column; gap: 6px; }
  #cg-data .dv-color { position: relative; cursor: pointer; min-height: 64px; }
  #cg-data .dv-name { font-family: var(--f-sans); font-size: var(--text-sm); color: var(--ink); text-transform: capitalize; }
  .cg-tipped .tip, #cg-scales .sw .tip, #cg-data .dv-color .tip { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%);
    background: var(--ink); color: var(--bg); font-family: var(--f-mono); font-size: 11px; letter-spacing: 0; text-transform: none; /* lint-ok: inverse-on-ink tooltip — endpoint pairing, max contrast by construction */
    padding: 3px 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s; z-index: 30; }
  #cg-scales .sw:hover .tip, #cg-data .dv-color:hover .tip { opacity: 1; }
  #cg-data .dv-color.copied .tip { opacity: 1; }
  /* categorical — ten hues, one block each */
  #cg-data .cat-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 12px; }
  @media (max-width: 720px) { #cg-data .cat-grid { grid-template-columns: repeat(4, 1fr); } }
  /* 5-step ramps — hue name + five magnitude steps */
  #cg-data .c5row { display: grid; grid-template-columns: 96px 1fr; align-items: stretch; gap: 10px; margin-bottom: 6px; }
  #cg-data .c5n { font-family: var(--f-sans); font-size: var(--text-sm); align-self: center; text-transform: capitalize; color: var(--ink); }
  #cg-data .c5cells { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
  #cg-data .c5head .c5h { font-family: var(--f-mono); font-size: var(--text-label); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--ink-2); padding-bottom: 4px; }
  #cg-data .dv-step { min-height: 44px; }
  /* sequential / diverging ramps */
  #cg-data .ramp { margin-bottom: 10px; }
  #cg-data .rlbl { font-size: 11px; color: var(--ink-2); margin-bottom: 4px; }
  #cg-data .rcells { display: flex; gap: 0; }
  #cg-data .rcells .dv-cell { flex: 1; }
  #cg-data .dv-cell { min-height: 42px; padding: 5px 6px; }

  /* Identity / icon area additions (logo clear-space + min-size, icons, model logos,
     favicon & app marks). Scoped under #sf-* ids so nothing leaks into the rest of the guide.
     Tokens only — no raw hex outside downloaded icon/logo SVG assets themselves. */

  /* -- logo: clear space -- */
  #sf-clearspace { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); margin: 0 0 var(--space-5); }
  #sf-clearspace .cs-box { padding: var(--space-7); border: var(--border-hairline) dashed var(--line-2); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; }
  #sf-clearspace .cs-mark { font-size: var(--space-10); line-height: 1; user-select: none; }
  #sf-clearspace .cs-label { font-family: var(--f-mono); font-size: var(--text-label); color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }

  /* -- the mark: static PNG + wave canvas render at one visible size (both are the
        same 608×640 art drawn full-height, so equal height => equal face); emoji matches
        via font-size. The wave canvas stays SQUARE: wave-mark.js draws the mark full-height
        and sways it into the leftover horizontal room (W − markWidth), so W must exceed the
        mark's width or the sway clips — a square box gives room ≈ the amplitude. -- */
  .logo-cell img.cell-mark { height: var(--space-10); width: auto; }
  .logo-cell canvas.wave-mark { height: var(--space-10); width: var(--space-10); }
  #sf-clearspace .cs-mark-img { height: var(--space-10); width: auto; display: block; }
  #sf-minsize .ms-mark-img { width: auto; display: block; }
  /* -- logo: minimum sizes -- */
  #sf-minsize { display: flex; align-items: flex-end; gap: var(--space-7); flex-wrap: wrap; margin: 0 0 var(--space-5); }
  #sf-minsize .ms-cell { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); }
  #sf-minsize .ms-mark { line-height: 1; user-select: none; }
  #sf-minsize .ms-px { font-family: var(--f-mono); font-size: var(--text-label); color: var(--ink-2); }
  #sf-minsize .ms-use { font-family: var(--f-mono); font-size: var(--text-label); color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }

  /* -- icons -- */
  /* icon + logo grids are bordered boxes, so they stay within the prose column (no break-out —
     a full-bleed bordered box reads as an ugly full-width bar). They fit the column cleanly. */
  #sf-icons-grid, #sf-logos-grid { width: 100%; }
  /* fixed column counts (not auto-fill) — 24 icons divides evenly at every breakpoint so no
     leftover grid cell ever exposes the raw gap-color background as a stray empty bar */
  #sf-icons-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: var(--border-hairline); background: var(--line); border: var(--border-hairline) solid var(--line); margin: 0 0 var(--space-5); }
  #sf-icons-grid .ic-cell { background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-2); padding: var(--space-5) var(--space-2); }
  #sf-icons-grid .ic { --ic: var(--space-6); width: var(--ic); height: var(--ic); color: var(--ink); display: inline-flex; }
  #sf-icons-grid .ic svg { width: 100%; height: 100%; display: block; }
  #sf-icons-grid .ic-name { font-family: var(--f-mono); font-size: var(--text-label); color: var(--ink-2); }
  @media (max-width: 900px) { #sf-icons-grid { grid-template-columns: repeat(4, 1fr); } }
  @media (max-width: 480px) { #sf-icons-grid { grid-template-columns: repeat(3, 1fr); } }
  #sf-icons-sizes { display: flex; align-items: flex-end; gap: var(--space-6); margin: 0 0 var(--space-2); }
  #sf-icons-sizes .ic-size-cell { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); }
  #sf-icons-sizes .ic { width: var(--ic); height: var(--ic); color: var(--ink); display: inline-flex; }
  #sf-icons-sizes .ic svg { width: 100%; height: 100%; display: block; }
  #sf-icons-sizes .ic-px { font-family: var(--f-mono); font-size: var(--text-label); color: var(--ink-2); }

  /* -- model logos -- */
  /* wide break-out like the color sections (viewport-centered, can't overflow) — via class="band" */
  #sf-logos .lg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); margin: 0 0 var(--space-5); }
  @media (max-width: 1000px) { #sf-logos .lg-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 640px) { #sf-logos .lg-grid { grid-template-columns: repeat(1, 1fr); } }
  #sf-logos .lg-card { display: flex; flex-direction: column; gap: var(--space-2); }
  #sf-logos .lg-name { font-family: var(--f-mono); font-size: var(--text-label); color: var(--ink-2); text-transform: uppercase; letter-spacing: .08em; }
  /* the diptych: one split panel, light | dark, single hairline seam */
  #sf-logos .lg-dip { display: grid; grid-template-columns: 1fr 1fr; border: var(--border-hairline) solid var(--line); }
  #sf-logos .lg-side { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-4); padding: var(--space-6) var(--space-4) var(--space-4); min-height: var(--space-12); }
  #sf-logos .lg-side + .lg-side { border-left: var(--border-hairline) solid var(--line); }
  /* surface on a ::before layer so a 'light' side stays light under the page's dark theme */
  #sf-logos .lg-side::before { content: ""; position: absolute; inset: 0; z-index: 0; }
  #sf-logos .lg-side--light::before { background: var(--surface); }
  /* Sanctioned literals below (not tokens): this chip's "dark" side must render dark chrome
     regardless of the page's current data-theme, so its colors can't be theme-following tokens —
     they're a fixed demo surface, same category as the light-chip counter-invert case a few lines down. */
  #sf-logos .lg-side--dark::before { background: #0b0b0d; }
  [data-theme="dark"] #sf-logos .lg-side--light::before { filter: invert(1); }
  #sf-logos .lg-mark, #sf-logos .lg-wm, #sf-logos .lg-cap { position: relative; z-index: 1; }
  #sf-logos .lg-mark { display: flex; align-items: center; justify-content: center; height: var(--space-9); }
  #sf-logos .lg-mark-img { height: var(--space-8); width: auto; max-width: 68%; object-fit: contain; display: block; }
  #sf-logos .lg-wm { display: flex; align-items: center; justify-content: center; width: 100%; }
  #sf-logos .lg-wm-img { height: var(--space-6); width: 100%; max-width: 100%; object-fit: contain; object-position: center; display: block; }
  #sf-logos .lg-white { filter: brightness(0) invert(1); }   /* recolor to white on the dark side */
  #sf-logos .lg-black { filter: brightness(0); }             /* force a white-shipped mono mark to black on light */
  #sf-logos .lg-nametext { font-family: var(--f-mono); font-size: var(--text-label); color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; text-align: center; }
  #sf-logos .lg-nt-dark { color: #e9eaec; }
  [data-theme="dark"] #sf-logos .lg-side--light .lg-nametext:not(.lg-nt-dark) { color: #16181d; }
  #sf-logos .lg-cap { font-family: var(--f-mono); font-size: var(--text-micro); color: var(--ink-2); text-transform: uppercase; letter-spacing: .1em; margin-top: var(--space-1); }
  #sf-logos .lg-side--dark .lg-cap { color: #6b7078; }

  /* -- favicon & app marks -- */
  #sf-favicon { display: flex; flex-direction: column; gap: var(--space-6); margin: 0 0 var(--space-5); }
  #sf-favicon .fav-block-label { display: block; font-family: var(--f-mono); font-size: var(--text-label); color: var(--ink-2); text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--space-3); }
  /* uniform 3-col grid, single hairline seams (the model-logo diptych pattern) */
  #sf-favicon .fav-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: var(--border-hairline) solid var(--line); }
  #sf-favicon .fav-chip { position: relative; display: flex; flex-direction: column; align-items: center; padding: var(--space-6) var(--space-4) var(--space-4); }
  #sf-favicon .fav-chip + .fav-chip { border-left: var(--border-hairline) solid var(--line); }
  /* Token island: each grid carries its own data-theme, so the ground AND the caption
     ink resolve against the same mode no matter which theme the page is in. Previously the
     ground was pinned per-grid while .fav-cap inherited the page's --ink-2 — which read
     light-on-light in dark mode (and would read dark-on-dark in light mode). */
  #sf-favicon .fav-chip::before { content: ""; position: absolute; inset: 0; z-index: 0;
    background: var(--surface); }
  /* shared baseline: every icon sits on the bottom of a fixed-height stage, so the sizes ramp cleanly */
  #sf-favicon .fav-stage { position: relative; z-index: 1; height: var(--space-11); display: flex; align-items: flex-end; justify-content: center; }
  #sf-favicon .fav-mark { display: block; width: auto; }
  #sf-favicon .fav-mark--16 { height: 16px; }
  #sf-favicon .fav-mark--32 { height: 32px; }
  #sf-favicon .fav-mark--180 { height: var(--space-11); }
  #sf-favicon .fav-cap { position: relative; z-index: 1; margin-top: var(--space-4); font-family: var(--f-mono); font-size: var(--text-label); color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; text-align: center; }
  #sf-favicon .fav-cap a { color: inherit; }

  /* -- profile image: the avatar, proofed square + circle-cropped -- */
  #sf-avatar { display: flex; align-items: stretch; gap: var(--border-hairline); border: var(--border-hairline) solid var(--line); background: var(--line); margin: 0 0 var(--space-4); }
  #sf-avatar .av-chip { flex: 1; display: flex; flex-direction: column; align-items: center; padding: var(--space-6) var(--space-4) var(--space-4); background: var(--surface); min-width: 0; }
  #sf-avatar .av-img { display: block; width: min(160px, 100%); height: auto;
    border: var(--border-hairline) solid var(--line-2); }  /* the brand-black plate needs an edge on dark grounds */
  #sf-avatar .av-chip--round .av-img { border-radius: 50%; }
  #sf-avatar .av-cap { margin-top: var(--space-4); font-family: var(--f-mono); font-size: var(--text-label); color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; text-align: center; }
  #sf-avatar .av-cap a { color: inherit; }
  /* x-cover pick tiles */
  .xc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin: 0 0 var(--space-5); }
  @media (max-width: 760px) { .xc-grid { grid-template-columns: 1fr; } }
  .xc-tile img { display: block; width: 100%; height: auto; border: var(--border-hairline) solid var(--line-2); }
  .xc-cap { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-2);
    font-family: var(--f-mono); font-size: var(--text-micro); color: var(--ink-2); }
  .xc-cap b { color: var(--ink); font-weight: var(--weight-medium); text-transform: uppercase; letter-spacing: .06em; }
  .xc-tile > img { cursor: zoom-in; }
  /* click-to-preview: the cover in place on a ROUGH X profile mock. A platform sim, so it's
     a token-free lights-out island (X's own chrome, not ours) — literal colors on purpose. */
  #x-preview { border: 0; padding: 0; background: transparent; max-width: none; }
  #x-preview::backdrop { background: rgba(2, 4, 8, .78); }
  #x-preview .xp { width: min(92vw, 640px); background: #000; border: 1px solid #2f3336; font-family: var(--f-sans); }
  #x-preview .xp-banner { display: block; width: 100%; aspect-ratio: 3 / 1; object-fit: cover; }
  #x-preview .xp-head { position: relative; padding: 12px 16px 0; }
  #x-preview .xp-av { position: absolute; left: 16px; top: 0; transform: translateY(-52%); width: 22%; aspect-ratio: 1;
    border-radius: 50%; border: 4px solid #000; background: #000; }
  #x-preview .xp-av img { width: 100%; height: 100%; border-radius: 50%; display: block; }
  #x-preview .xp-follow { float: right; font-weight: 700; font-size: 15px; color: #000; background: #eff3f4;
    border: 0; border-radius: 18px; padding: 8px 18px; }
  #x-preview .xp-id { padding: 52px 16px 0; }
  #x-preview .xp-name { color: #e7e9ea; font-weight: 800; font-size: 20px; }
  #x-preview .xp-handle { color: #71767b; font-size: 15px; }
  #x-preview .xp-bio { color: #e7e9ea; font-size: 15px; padding: 10px 16px 0; }
  #x-preview .xp-meta { color: #71767b; font-size: 14px; padding: 8px 16px 14px; }
  #x-preview .xp-meta a { color: #1d9bf0; text-decoration: none; }
  #x-preview .xp-tabs { display: flex; gap: 0; border-bottom: 1px solid #2f3336; }
  #x-preview .xp-tabs span { flex: 1; text-align: center; padding: 12px 0; color: #71767b; font-size: 14px; font-weight: 600; }
  #x-preview .xp-tabs span.on { color: #e7e9ea; box-shadow: inset 0 -4px 0 #1d9bf0; }
  #x-preview .xp-note { font-family: var(--f-mono); font-size: 11px; color: #71767b; padding: 10px 16px 14px; }

  /* -- start here: the one-screen quick start -- */
  /* asset tiles: SEE what you download. Each tile is a token island on the ground
     its shown variant is FOR (light lockups on light, the avatar on brand black). */
  #sf-start .only-dark { display: none; }
  [data-theme="dark"] #sf-start .only-dark { display: block; }
  [data-theme="dark"] #sf-start .only-light { display: none; }
  #sf-start .sa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--border-hairline); background: var(--line); border: var(--border-hairline) solid var(--line); margin: 0 0 var(--space-5); }
  @media (max-width: 860px) { #sf-start .sa-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 560px) { #sf-start .sa-grid { grid-template-columns: 1fr; } }
  #sf-start .sa-tile { background: var(--bg); display: flex; flex-direction: column; }
  #sf-start .sa-stage { height: 128px; display: flex; align-items: center; justify-content: center; gap: var(--space-4); background: var(--surface); padding: var(--space-4); }
  #sf-start .sa-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
  #sf-start .sa-favs { align-items: flex-end; gap: var(--space-5); padding-bottom: var(--space-6); }
  #sf-start .sa-pkg { flex-direction: column; gap: var(--space-3); }
  #sf-start .sa-cap { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-4);
    border-top: var(--border-hairline) solid var(--line); font-family: var(--f-mono); font-size: var(--text-micro); color: var(--ink-2); white-space: nowrap; }
  #sf-start .sa-cap b { color: var(--ink); font-weight: var(--weight-medium); text-transform: uppercase; letter-spacing: .06em; }
  #sf-start .sa-cap a { color: var(--accent-text-low); white-space: nowrap; }
  #sf-start .start-colors { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--border-hairline); background: var(--line); border: var(--border-hairline) solid var(--line); margin: 0 0 var(--border-hairline); }
  @media (max-width: 720px) { #sf-start .start-colors { grid-template-columns: 1fr; } }
  #sf-start .sc-cell { background: var(--bg); padding: var(--space-4) var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); font-family: var(--f-sans); font-size: var(--text-sm); color: var(--ink-2); }
  #sf-start .sc-cell b { color: var(--ink); font-weight: var(--weight-semibold); }
  #sf-start .sc-demo { display: flex; align-items: center; min-height: var(--space-8); }
  #sf-start .sc-gold { font-family: var(--f-mono); font-size: var(--text-metric); font-weight: var(--weight-semibold); color: var(--gain-text-display); font-variant-numeric: tabular-nums; }
  /* the gradient gets its OWN strip — it is not one of the colors */
  #sf-start .sc-grad { display: flex; align-items: center; gap: var(--space-5); border: var(--border-hairline) solid var(--line); border-top: 0; padding: var(--space-4) var(--space-5); margin: 0 0 var(--space-3); font-family: var(--f-sans); font-size: var(--text-sm); color: var(--ink-2); }
  #sf-start .sc-grad b { color: var(--ink); }
  #sf-start .sc-band { display: block; flex: 0 0 160px; height: 10px; background: var(--fusion-grad); }

  /* -- theme callout: demonstrates the flip + spotlights the rail toggle -- */
  .theme-callout { display: flex; align-items: center; gap: var(--space-4); border: var(--border-hairline) solid var(--line-2);
    padding: var(--space-3) var(--space-4); margin: 0 0 var(--space-5); font-family: var(--f-sans); font-size: var(--text-sm); color: var(--ink-2); }
  .theme-callout .btn { flex: 0 0 auto; }
  .rail .toggle.spot { color: var(--ink); outline: 2px solid var(--accent-solid); outline-offset: 3px; animation: spot-pulse 1.2s ease-out 2; }
  @keyframes spot-pulse { 0% { outline-offset: 3px; } 70% { outline-offset: 12px; outline-color: transparent; } 100% { outline-offset: 3px; outline-color: var(--accent-solid); } }
  @media (prefers-reduced-motion: reduce) { .rail .toggle.spot { animation: none; } }

  /* -- examples: components composed into shippable assemblies -- */
  #sf-examples .ex-cell { border: var(--border-hairline) solid var(--line); background: var(--bg);
    padding: var(--space-4) var(--space-5) var(--space-5); margin: 0 0 var(--space-6);
    display: flex; flex-direction: column; gap: var(--space-4); }
  #sf-examples .cmp-k { display: flex; align-items: baseline; font-family: var(--f-mono); font-size: var(--text-label); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
  #sf-examples .cmp-cls { font-family: var(--f-mono); font-size: var(--text-micro); text-transform: none; letter-spacing: 0; color: var(--accent-text-low); background: var(--accent-component); border: var(--border-hairline) solid var(--accent-border-subtle); padding: 0 var(--space-1); margin-left: var(--space-2); }
  #sf-examples .cmp-reg { margin-left: auto; padding-left: var(--space-3); font-family: var(--f-mono); font-size: var(--text-micro); letter-spacing: .06em; color: var(--ink-2); white-space: nowrap; text-transform: uppercase; }
  #sf-examples .ex-t { font-family: var(--f-mono); font-size: var(--text-micro); color: var(--ink-2); }
  /* view markup: the code IS the live specimen (serialized on open — can never drift) */
  #sf-examples .ex-code summary { display: inline-flex; align-items: center; gap: var(--space-2); cursor: pointer;
    font-family: var(--f-mono); font-size: var(--text-micro); color: var(--accent-text-low); text-transform: uppercase; letter-spacing: .06em;
    list-style: none; }
  #sf-examples .ex-code summary::before { content: "▸ "; }
  #sf-examples .ex-code[open] summary::before { content: "▾ "; }
  #sf-examples .ex-code summary::-webkit-details-marker { display: none; }
  #sf-examples .ex-code .ex-codewrap { position: relative; margin-top: var(--space-3); }
  #sf-examples .ex-code pre { margin: 0; font-family: var(--f-mono); font-size: var(--text-micro); line-height: var(--leading-snug);
    background: var(--surface); border: var(--border-hairline) solid var(--line); padding: var(--space-4);
    overflow: auto; max-height: 320px; color: var(--ink); white-space: pre; }
  #sf-examples .ex-code .ex-copy { position: absolute; top: var(--space-2); right: var(--space-2); }
  #sf-examples .ex-code pre code { background: none; border: 0; padding: 0; font: inherit; color: inherit; display: block; }
  /* the example leaderboard rows (layout only — every part is a system class) */
  .ex-board .row { display: grid; grid-template-columns: 24px minmax(0, 1.7fr) 52px minmax(150px, 1fr) 56px 84px;
    gap: var(--space-3); align-items: center; padding: var(--space-2) var(--space-5);
    border-bottom: var(--border-hairline) solid var(--line); font-size: var(--text-sm); }
  .ex-board .row:last-child { border-bottom: 0; }
  .ex-board .row.head { background: var(--surface); }
  .ex-board .entry { display: flex; align-items: center; gap: var(--space-2); min-width: 0;
    font-family: var(--f-sans); font-weight: var(--weight-medium); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ex-board .fico { flex: 0 0 auto; font-size: 15px; line-height: 1; filter: grayscale(1); opacity: .8; }
  .ex-board .row.lead .fico { filter: none; opacity: 1; }
  .ex-board .row.lead { box-shadow: inset var(--border-strong) 0 0 var(--gain); }
  /* the example plot */
  .ex-plot svg { display: block; width: 100%; height: auto; }
  .ex-plot text { font-family: var(--f-mono); font-size: 11px; fill: var(--ink-2); }
  .ex-plot text.end { font-size: 12px; font-weight: 500; fill: var(--ink); }
  .ex-plot .grid { stroke: var(--line); }
  .ex-plot .axis { stroke: var(--ink-3); }
  .ex-plot .s-1 { stroke: var(--data-blue); }   /* series 1-3 of the assignment order */
  .ex-plot .s-2 { stroke: var(--data-red); }
  .ex-plot .s-3 { stroke: var(--data-cyan); }
  .ex-plot .m-1 { fill: var(--data-blue); }
  .ex-plot .m-2 { fill: var(--data-red); }
  .ex-plot .m-3 { fill: var(--data-cyan); }
  .ex-plot .halo { stroke: var(--bg); stroke-width: 2; }
  #sf-examples figcaption { font-family: var(--f-sans); font-size: var(--text-sm); color: var(--ink-2); line-height: var(--leading-snug); text-wrap: pretty; }
  /* social template stages — fixed-art token islands (always-dark, like the real export) */
  #sf-examples .ex-social-row { display: flex; flex-wrap: wrap; gap: var(--space-6); align-items: flex-start; }
  #sf-examples .ex-announce { position: relative; width: min(600px, 100%); aspect-ratio: 1200 / 675;
    background: var(--bg); border: var(--border-hairline) solid var(--line); overflow: hidden;
    display: flex; flex-direction: column; justify-content: center; padding: 6% 7%; }
  #sf-examples .ex-announce .eyebrow { color: var(--accent-text-low); margin-bottom: var(--space-3); }
  #sf-examples .ex-announce h4 { font-family: var(--f-display); font-weight: var(--weight-display);
    font-size: clamp(24px, 6.4vw, 40px); line-height: var(--leading-hero); letter-spacing: var(--tracking-tight);
    margin: 0 0 var(--space-4); color: var(--ink); text-wrap: balance; }
  #sf-examples .ex-announce .cmp-line { display: flex; align-items: center; gap: var(--space-3);
    font-family: var(--f-mono); font-size: var(--text-sm); }
  #sf-examples .ex-announce .cmp-line + .cmp-line { margin-top: var(--space-2); }
  #sf-examples .ex-announce .cmp-line .l { flex: 0 0 96px; color: var(--ink-2); }
  #sf-examples .ex-announce .cmp-line .bar { height: 8px; background: var(--line); flex: 0 1 220px; overflow: hidden; }
  #sf-examples .ex-announce .cmp-line .bar i { display: block; height: 100%; background: var(--ink-2); }
  #sf-examples .ex-announce .cmp-line.win .bar i { background: var(--fusion-grad); }
  #sf-examples .ex-announce .cmp-line.win .v { color: var(--ink); }
  #sf-examples .ex-announce .v { font-variant-numeric: tabular-nums; color: var(--ink-2); }
  #sf-examples .ex-announce .wm { position: absolute; right: 5%; bottom: 7%; width: 132px; height: auto; }
  #sf-examples .ex-result { position: relative; width: min(340px, 100%); aspect-ratio: 1 / 1;
    background: var(--bg); border: var(--border-hairline) solid var(--line); overflow: hidden;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-2);
    padding: var(--space-6); text-align: center; }
  #sf-examples .ex-result .ic { font-size: 26px; line-height: 1; margin-bottom: var(--space-2); }
  #sf-examples .ex-result .delta { display: flex; align-items: baseline; gap: var(--space-4);
    font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
  #sf-examples .ex-result .delta .from { font-size: var(--text-metric); color: var(--ink-2); }
  #sf-examples .ex-result .delta .arrow { font-size: var(--text-lead); color: var(--gain-text-low); }
  #sf-examples .ex-result .delta .to { font-size: 56px; font-weight: var(--weight-semibold); color: var(--gain-text-low); line-height: var(--leading-tight); }
  #sf-examples .ex-result .rcpt { font-family: var(--f-mono); font-size: var(--text-micro); color: var(--ink-2); margin-top: var(--space-3); }
  @media (max-width: 640px) { .ex-board .row { grid-template-columns: 24px minmax(0,1.4fr) minmax(120px,1fr) 56px; }
    .ex-board .row > :nth-child(3), .ex-board .row > :nth-child(6) { display: none; } }

  /* -- screens & layouts: preview cards that open the live re-skinned experience -- */
  #sf-screens .scr-gal { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); margin: 0 0 var(--space-4); }
  @media (max-width: 720px) { #sf-screens .scr-gal { grid-template-columns: 1fr; } }
  #sf-screens .scr-card { display: flex; flex-direction: column; border: var(--border-hairline) solid var(--line); background: var(--surface); text-decoration: none; color: inherit; transition: border-color .14s ease, transform .14s ease; }
  #sf-screens .scr-card:hover { border-color: var(--ink-3); transform: translateY(-2px); }
  #sf-screens .scr-shot { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: var(--border-hairline) solid var(--line); background: var(--surface-2); }
  #sf-screens .scr-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
  #sf-screens .scr-shot--ph { display: flex; align-items: center; justify-content: center; }
  #sf-screens .scr-g { font-size: var(--space-11); line-height: 1; opacity: .45; }
  #sf-screens .scr-body { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-5); }
  #sf-screens .scr-k { font-family: var(--f-mono); font-size: var(--text-label); text-transform: uppercase; letter-spacing: .08em; color: var(--gain-text-low); }
  #sf-screens .scr-card--soon .scr-k { color: var(--ink-2); }
  #sf-screens .scr-body h3 { margin: 0; font-size: var(--text-title); }
  #sf-screens .scr-desc { font-size: var(--text-sm); color: var(--ink-2); line-height: var(--leading-snug); }
  #sf-screens .scr-open { font-family: var(--f-mono); font-size: var(--text-sm); color: var(--accent-text-low); margin-top: var(--space-2); }

  /* -- components: specimens drawn from the live product screens -- */
  #sf-comps .cmp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--border-hairline); background: var(--line); border: var(--border-hairline) solid var(--line); margin: 0 0 var(--space-4); }
  @media (max-width: 640px) { #sf-comps .cmp-grid { grid-template-columns: 1fr; } }
  /* an odd trailing cell spans the full row — no gray hole in the hairline grid */
  #sf-comps .cmp-cell:last-child:nth-child(odd) { grid-column: 1 / -1; }
  #sf-comps .cmp-cell { background: var(--bg); padding: var(--space-4) var(--space-5) var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }
  #sf-comps .cmp-k { display: flex; align-items: baseline; font-family: var(--f-mono); font-size: var(--text-label); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
  /* register chip: which register a component belongs to (product / marketing / both) */
  #sf-comps .cmp-reg { margin-left: auto; padding-left: var(--space-3); font-size: var(--text-micro); letter-spacing: .06em; color: var(--ink-2); white-space: nowrap; }
  /* group label between grids */
  #sf-comps .cmp-group { font-family: var(--f-mono); font-size: var(--text-label); font-weight: var(--weight-medium); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--ink-2); margin: var(--space-6) 0 var(--space-2); }
  /* the component's SYSTEM NAME — the class you reference it by; the collaboration handle */
  #sf-comps .cmp-cls { font-family: var(--f-mono); font-size: var(--text-micro); text-transform: none; letter-spacing: 0; color: var(--accent-text-low); background: var(--accent-component); border: var(--border-hairline) solid var(--accent-border-subtle); padding: 0 var(--space-1); margin-left: var(--space-2); }
  #sf-comps .cmp-stage { flex-wrap: wrap; }
  #sf-comps .cmp-stage { min-height: var(--space-9); display: flex; align-items: center; gap: var(--space-3); }
  #sf-comps .cmp-stage--col { flex-direction: column; align-items: stretch; justify-content: center; gap: var(--space-2); }
  #sf-comps .cmp-t { font-family: var(--f-mono); font-size: var(--text-micro); color: var(--ink-2); }
  #sf-comps .cmp-btn { font-family: var(--f-sans); font-size: var(--text-sm); font-weight: var(--weight-semibold); background: var(--accent-solid); color: var(--accent-contrast-text); border: var(--border-hairline) solid transparent; border-radius: var(--radius-none); padding: var(--space-2) var(--space-4); cursor: pointer; }
  #sf-comps .cmp-btn:hover { filter: brightness(.94); }
  #sf-comps .cmp-btn--quiet { background: none; color: var(--ink-2); border: var(--border-hairline) solid var(--line-2); font-family: var(--f-mono); font-weight: var(--weight-regular, 400); }
  #sf-comps .cmp-btn--quiet:hover { color: var(--ink); border-color: var(--ink-3); filter: none; }
  #sf-comps .cmp-signup { display: inline-flex; }
  #sf-comps .cmp-signup input { font-family: var(--f-sans); font-size: var(--text-sm); background: var(--surface-2); color: var(--ink); border: var(--border-hairline) solid var(--line); border-right: 0; border-radius: var(--radius-none); padding: var(--space-2) var(--space-3); width: 180px; }
  #sf-comps .cmp-signup input:focus { outline: 2px solid var(--focus); outline-offset: -1px; }
  #sf-comps .cmp-badge { font-family: var(--f-mono); font-size: var(--text-micro); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); background: var(--surface-2); border: var(--border-hairline) solid var(--line); padding: 2px var(--space-2); }
  #sf-comps .cmp-badge--ok { color: var(--success-text-high); background: color-mix(in oklch, var(--success-solid) 15%, transparent); border-color: color-mix(in oklch, var(--success-solid) 55%, transparent); }
  #sf-comps .cmp-stats { display: inline-flex; border: var(--border-hairline) solid var(--line); background: var(--surface); }
  #sf-comps .cmp-stat { display: flex; flex-direction: column; padding: var(--space-2) var(--space-4); font-family: var(--f-mono); font-size: var(--text-micro); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
  #sf-comps .cmp-stat + .cmp-stat { border-left: var(--border-hairline) solid var(--line); }
  #sf-comps .cmp-stat b { font-family: var(--f-sans); font-size: var(--text-body); color: var(--ink); font-variant-numeric: tabular-nums; }
  #sf-comps .cmp-track { display: block; height: 8px; background: var(--surface-2); overflow: hidden; }
  #sf-comps .cmp-fill { display: block; height: 100%; background: var(--line-2); }
  #sf-comps .cmp-fill--win { background: var(--fusion-grad); }

  .fav-og { width: min(420px, 100%); aspect-ratio: 1.91 / 1; background: var(--surface); border: var(--border-hairline) solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-3); margin: 0 0 var(--space-5); }
  .fav-og .og-mark { font-size: var(--space-11); line-height: 1; }
  .fav-og .og-word { font-family: var(--f-wordmark); font-size: var(--text-lead); font-weight: var(--weight-semibold); color: var(--ink); letter-spacing: var(--tracking-tight); }

  /* -- type section: the two-register demo, live scale, numerals, weights --
     Scoped under #ty-* ids so nothing leaks into the rest of the guide. Tokens only.

     The two-register demo commits to ONE color mode for the whole impression, with a
     LOCAL toggle (☀/☾) that flips just this block — independent of the page theme. The
     mode lives as data-theme on .ty-reg-grid AND each .ty-reg-card (the card needs its
     own data-theme so the [data-theme=dark][data-brand=marketing] accent compound can
     match). Both cards then share the mode; only the REGISTER differs — marketing =
     serif + gold (data-brand=marketing), product = sans/mono + blue (default app).

     Legibility rule: use only tokens that re-resolve on a nested theme island — the
     semantic --text/--text-2/--surface/--surface-2/--border tiers, neutral primitives,
     and the per-theme accent + gain roles (all emitted under BOTH [data-theme=dark]
     and :root,[data-theme=light]). The --ink/--line backcompat aliases live only on the
     light block, so they'd freeze on a dark island — deliberately not used here. */

  /* local mode toggle — chrome, reads in the PAGE theme (sits outside the themed grid) */
  #ty-registers .ty-reg-head { display: flex; align-items: baseline; justify-content: flex-end; gap: var(--space-4); margin-bottom: var(--space-5); flex-wrap: wrap; }
  #ty-registers .ty-reg-hl { font-family: var(--f-mono); font-size: var(--text-label); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--ink-2); }
  #ty-registers .ty-reg-toggle { display: inline-flex; border: var(--border-hairline) solid var(--line); }
  #ty-registers .ty-reg-toggle button { font-family: var(--f-mono); font-size: var(--text-label); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--ink-2); background: none; border: 0; padding: var(--space-2) var(--space-3); cursor: pointer; display: inline-flex; align-items: center; gap: var(--space-1); }
  #ty-registers .ty-reg-toggle button + button { border-left: var(--border-hairline) solid var(--line); }
  #ty-registers .ty-reg-toggle button[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); }
  #ty-registers .ty-reg-toggle button:hover { color: var(--ink); }

  /* the impressions — two SEPARATE tiles (each its own framed surface; frame follows the island mode) */
  #ty-registers .ty-reg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  @media (max-width: 780px) { #ty-registers .ty-reg-grid { grid-template-columns: 1fr; } }
  #ty-registers .ty-reg-card { background: var(--surface); border: var(--border-hairline) solid var(--border); padding: var(--space-7) var(--space-8); display: flex; flex-direction: column; gap: var(--space-4); min-height: 30rem; }
  #ty-registers .ty-reg-cap { font-family: var(--f-mono); font-size: var(--text-label); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--text-2); margin-top: auto; padding-top: var(--space-4); }

  /* ===== MARKETING impression — the CLAIM. Serif-led, editorial scale jumps, air, one gold
     moment. Persuasion typography: few elements, big intervals, generous measure. ===== */
  #ty-registers .ty-reg-card--marketing { gap: var(--space-6); padding: var(--space-8) var(--space-9); }
  #ty-registers .ty-reg-eyebrow { font-family: var(--f-mono); font-size: var(--text-label); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--accent-text-low); }
  /* the hero DELETES AND REWRITES ITSELF through the brand's marketing lines (typewriter loop
     in the register script; reduced-motion gets the first line, still). Height reserved for
     two lines so the card never jumps mid-cycle. */
  #ty-registers .ty-reg-hero { font-family: var(--f-display); font-weight: var(--weight-display); font-size: var(--text-hero); line-height: var(--leading-hero); letter-spacing: var(--tracking-tight); color: var(--text); margin: 0; min-height: calc(2em * var(--leading-hero)); }
  #ty-registers .ty-caret { display: inline-block; width: 3px; height: .78em; background: var(--text); margin-left: .08em; vertical-align: -.04em; animation: ty-blink 1.1s steps(2, start) infinite; }
  @keyframes ty-blink { 50% { opacity: 0; } }
  @media (prefers-reduced-motion: reduce) { #ty-registers .ty-caret { display: none; } }
  #ty-registers .ty-reg-lead { font-family: var(--f-sans); font-weight: var(--weight-regular); font-size: var(--text-lead); line-height: var(--leading-snug); color: var(--text-2); max-width: 34ch; margin: 0; }
  #ty-registers .ty-reg-ctas { display: flex; align-items: center; gap: var(--space-5); }
  #ty-registers .ty-btn { font-family: var(--f-sans); font-weight: var(--weight-semibold); font-size: var(--text-sm); background: var(--accent-solid); color: var(--accent-contrast-text); border: var(--border-hairline) solid transparent; padding: var(--space-3) var(--space-5); cursor: pointer; border-radius: var(--radius-none); }
  #ty-registers .ty-btn:hover { background: var(--accent-solid-hover); }
  #ty-registers .ty-lnk { font-family: var(--f-sans); font-size: var(--text-sm); color: var(--accent-text-low); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
  /* the RESULT moment: a two-row RACE in the same row-language as the product table — hive-1's
     fusion-gradient bar simply outruns the grey best-single bar. Instantly legible; the +5.9
     metric (mono digits even in marketing) annotates the same picture. */
  #ty-registers .ty-reg-result { border-top: var(--border-hairline) solid var(--border); padding-top: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); }
  #ty-registers .ty-cmp { display: grid; grid-template-columns: 12ch minmax(0, 1fr) 6.5ch; gap: var(--space-3); align-items: center; font-family: var(--f-mono); font-size: var(--text-sm); }
  #ty-registers .ty-cmp-l { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #ty-registers .ty-cmp--win .ty-cmp-l { color: var(--text); font-weight: var(--weight-semibold); }
  #ty-registers .ty-cmp-bar { height: 12px; background: var(--surface-2); }
  #ty-registers .ty-cmp-bar span { display: block; height: 100%; background: var(--border-2); opacity: .7; }
  #ty-registers .ty-cmp--win .ty-cmp-bar span { background: var(--fusion-grad); opacity: 1; }
  #ty-registers .ty-cmp-v { text-align: right; color: var(--text); font-variant-numeric: tabular-nums slashed-zero; }
  #ty-registers .ty-reg-pull { display: flex; align-items: flex-start; gap: var(--space-5); padding-top: var(--space-2); }
  #ty-registers .ty-reg-metric { font-family: var(--f-mono); font-size: var(--text-metric); font-weight: var(--weight-semibold); color: var(--gain-text-low); font-variant-numeric: tabular-nums slashed-zero; line-height: 1; }
  #ty-registers .ty-reg-pull-cap { font-family: var(--f-sans); font-size: var(--text-body); line-height: var(--leading-snug); color: var(--text-2); max-width: 26ch; }

  /* ===== PRODUCT impression — the PROOF. Sans + mono, dense, tabular, chrome. The same story
     as an instrument: toolbar actions, a working table, receipts, a run in flight. ===== */
  #ty-registers .ty-reg-card--product { gap: var(--space-4); }
  /* toolbar: title-block (title over meta) left, actions right, vertically centered on the
     block — the real app-bar shape. The left block owns the shrink (min-width:0, meta truncates)
     so the actions never crowd the title. */
  #ty-registers .ty-tb { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-6); }
  #ty-registers .ty-tb-block { min-width: 0; margin-top: var(--space-6); }
  #ty-registers .ty-tb-title { display: block; font-family: var(--f-sans); font-weight: var(--weight-semibold); font-size: var(--text-title); line-height: var(--leading-tight); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #ty-registers .ty-tb-meta { display: block; font-family: var(--f-mono); font-size: var(--text-micro); color: var(--text-2); margin-top: calc(-1 * var(--space-2)); }
  #ty-registers .ty-tb-actions { display: flex; gap: var(--space-3); flex: none; }
  #ty-registers .ty-btn--sm { font-size: var(--text-label); padding: var(--space-2) var(--space-3); font-family: var(--f-mono); text-transform: uppercase; letter-spacing: var(--tracking-label); }
  #ty-registers .ty-btn--ghost { background: none; color: var(--accent-text-low); }
  #ty-registers .ty-btn--ghost:hover { background: var(--surface-2); }
  #ty-registers .ty-tbl { border-top: var(--border-hairline) solid var(--border); }
  /* model column hugs its content; the BAR takes all remaining width (the data leads) */
  #ty-registers .ty-tr { display: grid; grid-template-columns: 2ch 16ch minmax(0, 1fr) 6ch 4.5ch max-content; gap: var(--space-2); align-items: center; padding: var(--space-2) 0; border-bottom: var(--border-hairline) solid var(--border); }
  #ty-registers .ty-tr--head { font-family: var(--f-mono); font-size: var(--text-micro); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--text-2); }
  #ty-registers .ty-rank { font-family: var(--f-mono); font-size: var(--text-sm); color: var(--text-2); font-variant-numeric: tabular-nums; }
  #ty-registers .ty-model { font-family: var(--f-sans); font-size: var(--text-sm); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #ty-registers .ty-tr--win .ty-model { font-weight: var(--weight-semibold); }
  /* no row highlight — the fusion gradient pulls the weight (Bennett) */
  /* provider icons — FLAT monochrome silhouettes: the SVG is a mask painted in the system ink
     (gradient-filled marks like the Gemini spark flatten to solid; theme-aware for free) */
  #ty-registers .ty-mi { width: 1.05em; height: 1.05em; display: inline-block; vertical-align: -0.15em; margin-right: var(--space-1); background: var(--text); opacity: .88; -webkit-mask: var(--mi) center / contain no-repeat; mask: var(--mi) center / contain no-repeat; }
  #ty-registers .ty-bar { height: 8px; background: var(--surface-2); }
  #ty-registers .ty-fill { display: block; height: 100%; background: var(--border-2); opacity: .7; }
  #ty-registers .ty-fill--win { background: var(--fusion-grad); opacity: 1; }
  #ty-registers .ty-score { font-family: var(--f-mono); font-size: var(--text-sm); text-align: right; color: var(--text); font-variant-numeric: tabular-nums slashed-zero; }
  #ty-registers .ty-delta { font-family: var(--f-mono); font-size: var(--text-sm); text-align: right; color: var(--text-2); font-variant-numeric: tabular-nums; }
  #ty-registers .ty-tr--win .ty-delta { color: var(--gain-text-low); font-weight: var(--weight-semibold); }
  #ty-registers .ty-rcpt { font-family: var(--f-mono); font-size: var(--text-label); color: var(--accent-text-low); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; white-space: nowrap; }
  #ty-registers .ty-chip { display: inline-flex; align-items: center; justify-self: start; gap: var(--space-1); font-family: var(--f-mono); font-size: var(--text-micro); text-transform: uppercase; letter-spacing: var(--tracking-label); white-space: nowrap; color: var(--info-text-low); border: var(--border-hairline) solid var(--info-text-low); padding: 2px var(--space-2); }
  #ty-registers .ty-chip i { width: .6em; height: .6em; background: var(--info-solid); flex: none; }
  #ty-registers .ty-mut { color: var(--text-2); }
  #ty-registers .ty-tbl-foot { display: flex; justify-content: space-between; gap: var(--space-4); font-family: var(--f-mono); font-size: var(--text-micro); color: var(--text-2); padding-top: var(--space-2); }

  /* -- live scale specimen: IS the scale, not a table about it -- */
  #ty-scale { margin: 0 0 var(--space-6); }
  #ty-scale .ty-scale-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-5); flex-wrap: wrap; padding: var(--space-4) 0; border-top: var(--border-hairline) solid var(--line); }
  #ty-scale .ty-scale-row:first-child { border-top: 0; }
  #ty-scale .ty-scale-sample { color: var(--ink); margin: 0; }
  #ty-scale .ty-scale-sample--hero, #ty-scale .ty-scale-sample--display { font-family: var(--f-display); font-weight: var(--weight-display); letter-spacing: var(--tracking-tight); line-height: var(--leading-hero); }
  #ty-scale .ty-scale-sample--hero { font-size: var(--text-hero); }
  #ty-scale .ty-scale-sample--display { font-size: var(--text-display); }
  #ty-scale .ty-scale-sample--metric { font-family: var(--f-mono); font-weight: var(--weight-semibold); font-size: var(--text-metric); }
  #ty-scale .ty-scale-sample--lead { font-family: var(--f-sans); font-weight: var(--weight-regular); font-size: var(--text-lead); line-height: var(--leading-snug); }
  #ty-scale .ty-scale-sample--body { font-family: var(--f-sans); font-weight: var(--weight-regular); font-size: var(--text-body); line-height: var(--leading-body); }
  #ty-scale .ty-scale-sample--sm { font-family: var(--f-sans); font-weight: var(--weight-regular); font-size: var(--text-sm); }
  #ty-scale .ty-scale-sample--micro, #ty-scale .ty-scale-sample--label { font-family: var(--f-mono); font-weight: var(--weight-medium); text-transform: uppercase; letter-spacing: var(--tracking-label); }
  #ty-scale .ty-scale-sample--micro { font-size: var(--text-micro); }
  #ty-scale .ty-scale-sample--label { font-size: var(--text-label); }
  #ty-scale .ty-scale-anno { font-family: var(--f-mono); font-size: var(--text-label); color: var(--ink-2); white-space: nowrap; }

  /* -- numerals: tabular-nums + slashed-zero, off vs on -- */
  #ty-numerals { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); max-width: 480px; margin: 0 0 var(--space-2); }
  #ty-numerals .ty-num-label { font-family: var(--f-mono); font-size: var(--text-label); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--ink-2); margin-bottom: var(--space-2); }
  #ty-numerals .ty-num-row { font-family: var(--f-sans); font-size: var(--text-lead); text-align: right; padding: var(--space-1) 0; border-top: var(--border-hairline) solid var(--line); color: var(--ink); }
  #ty-numerals .ty-num-row:first-of-type { border-top: 0; }
  #ty-numerals .ty-num-col--on .ty-num-row { font-family: var(--f-mono); font-variant-numeric: tabular-nums slashed-zero; }

  /* -- weight roles: hierarchy from weight, not new fonts -- */
  #ty-weights { margin: 0 0 var(--space-6); }
  #ty-weights .ty-weight-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-5); padding: var(--space-3) 0; border-top: var(--border-hairline) solid var(--line); font-family: var(--f-sans); font-size: var(--text-lead); color: var(--ink); }
  #ty-weights .ty-weight-row:first-child { border-top: 0; }
  #ty-weights .ty-weight-row--regular { font-weight: var(--weight-regular); }
  #ty-weights .ty-weight-row--medium { font-weight: var(--weight-medium); }
  #ty-weights .ty-weight-row--semibold { font-weight: var(--weight-semibold); }
  #ty-weights .ty-weight-row--display .ty-weight-sample { font-family: var(--f-display); font-weight: var(--weight-display); }
  #ty-weights .ty-weight-anno { font-family: var(--f-mono); font-size: var(--text-label); color: var(--ink-2); white-space: nowrap; }

  @media (max-width: 620px) {
    #sf-minsize, #sf-clearspace, #sf-favicon .fav-row { gap: var(--space-4); }
    #ty-numerals { grid-template-columns: 1fr; gap: var(--space-4); }
  }

  /* -- masthead: wide band, hero title, dek, hairline accent --
     .masthead already carries margin-bottom (see components/style.css) — that's a band
     element, so only ever add margin-bottom here, never a margin: shorthand, or the
     band's negative margin-left break-out breaks. */
  /* centered hero: widen the band so the headline sets on one line, center everything */
  .masthead.band { padding-inline: max(var(--space-5), calc((100vw - 1320px) / 2)); text-align: center; }
  .masthead h1 {
    font-family: var(--f-display); font-size: var(--text-hero); font-weight: var(--weight-display);
    line-height: var(--leading-hero); letter-spacing: var(--tracking-tight); color: var(--ink);
    margin: 0 0 var(--space-7);
  }
  .masthead .lead { max-width: 840px; margin: 0 auto; }
  .masthead .mh-rule { margin-inline: auto; }
  /* the mark-as-o logotype is a SYSTEM pattern — see .o-mark in style.css */
  /* subtle hairline, not the fusion gradient — the gradient is rationed to the winning
     leaderboard row so it truly pops there ("the win is the story") */
  .masthead .mh-rule { height: var(--border-hairline); background: var(--line); margin-top: var(--space-9); width: 100%; }

  /* -- principles: compressed to one line each, hairline-divided -- */
  #principles-tight { list-style: none; margin: 0 0 var(--space-6); padding: 0; }
  #principles-tight li {
    font-family: var(--f-sans); font-size: var(--text-body); line-height: var(--leading-snug);
    padding: var(--space-2) 0; margin: 0; border-top: var(--border-hairline) solid var(--line);
  }
  #principles-tight li:first-child { border-top: 0; }

  /* -- layout section: the rhythm made visible -- */
  #ly-nest { margin-bottom: var(--space-6); } /* band element: margin-bottom ONLY, see caution above */
  #ly-nest .ly-band-box {
    position: relative; min-height: 96px; border: var(--border-hairline) dashed var(--line-2);
    background: var(--surface); display: flex; align-items: center; justify-content: center;
    padding: var(--space-6) var(--space-4);
  }
  #ly-nest .ly-band-lbl {
    position: absolute; top: var(--space-2); left: var(--space-3); font-family: var(--f-mono);
    font-size: 10px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em;
  }
  #ly-nest .ly-col-box {
    position: relative; width: min(760px, 100%); min-height: 56px; border: var(--border-hairline) solid var(--line);
    background: var(--bg); display: flex; align-items: center; justify-content: center;
  }
  #ly-nest .ly-col-lbl { font-family: var(--f-mono); font-size: 10px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }

  #ly-space { display: flex; align-items: flex-end; gap: var(--space-3); margin: 0 0 var(--space-2); flex-wrap: wrap; }
  #ly-space .ly-space-cell { display: flex; flex-direction: column; align-items: center; gap: var(--space-1); }
  #ly-space .ly-space-bar { width: 18px; background: var(--ink-3); }
  #ly-space .ly-space-n { font-family: var(--f-mono); font-size: 10px; color: var(--ink-2); }
  /* -- surfaces -- */
  #sf-surfaces { margin-block: var(--space-4) var(--space-6); }
  #sf-surfaces .elev { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: var(--space-6); align-items: stretch; }
  @media (max-width: 720px) { #sf-surfaces .elev { grid-template-columns: 1fr; } }
  #sf-surfaces .elev-ground { background: var(--bg); border: var(--border-hairline) solid var(--line); padding: var(--space-5); }
  #sf-surfaces .elev-card { background: var(--surface); border: var(--border-hairline) solid var(--border); padding: var(--space-5); margin-top: var(--space-4); }
  #sf-surfaces .elev-inset { background: var(--surface-2); border: var(--border-hairline) solid var(--border-strong); padding: var(--space-4); margin-top: var(--space-4); }
  #sf-surfaces .elev-float { background: var(--surface); border: var(--border-hairline) solid var(--line); box-shadow: var(--shadow-window); padding: var(--space-5); display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-6); }
  [data-theme="dark"] #sf-surfaces .elev-float { box-shadow: var(--shadow-window-dark); }
  #sf-surfaces .elev-dots { display: flex; gap: var(--space-2); }
  #sf-surfaces .elev-dots i { width: 8px; height: 8px; background: var(--line-2); display: inline-block; }
  #sf-surfaces .elev-tag { display: block; font-family: var(--f-mono); font-size: var(--text-label); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
  #sf-surfaces .elev-tag code { font-family: var(--f-mono); color: var(--ink-2); text-transform: none; }
  /* fusion-ground frame — live atmospheric background embedded from surface-embed.html.
     The tile carries its OWN light/dark toggle (same-origin iframe: the buttons set
     data-theme on the embed's root), independent of the page theme — island pattern. */
  #sf-fusion { margin-block: var(--space-4) var(--space-6); }
  #sf-fusion .fusion-head { display: flex; justify-content: flex-end; margin-bottom: var(--space-3); }
  #sf-fusion .fusion-toggle { display: inline-flex; border: var(--border-hairline) solid var(--line); }
  #sf-fusion .fusion-toggle button { font-family: var(--f-mono); font-size: var(--text-label); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--ink-2); background: none; border: 0; padding: var(--space-2) var(--space-3); cursor: pointer; }
  #sf-fusion .fusion-toggle button + button { border-left: var(--border-hairline) solid var(--line); }
  #sf-fusion .fusion-toggle button[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); }
  #sf-fusion .fusion-toggle button:hover { color: var(--ink); }
  #sf-fusion .fusion-frame { border: var(--border-hairline) solid var(--line); aspect-ratio: 21 / 9; overflow: hidden; background: var(--bg); }
  #sf-fusion .fusion-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
  /* -- structure: part kickers, jump TOC, placeholder notes -- */
  /* section kicker — gold TEXT role (--gain-text-low, readable gold-on-ground), NOT the
     gold solid --gain (a fill; ~2.1 contrast as text on light). Semibold to match the
     other eyebrows/kickers and give it presence against the big h2. */
  .part { font-family: var(--f-mono); font-weight: var(--weight-semibold); font-size: var(--text-label); letter-spacing: .14em; text-transform: uppercase; color: var(--gain-text-low); margin: var(--space-12) 0 calc(-1 * var(--space-4)); }
  .toc { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin: 0 0 var(--space-4); font-family: var(--f-mono); font-size: var(--text-label); text-transform: uppercase; letter-spacing: .06em; }
  .toc a { color: var(--ink-2); text-decoration: none; border-bottom: var(--border-hairline) solid transparent; }
  .toc a:hover { color: var(--ink); border-bottom-color: var(--ink-3); }
  .ph-note { border: var(--border-hairline) dashed var(--line-2); padding: var(--space-4) var(--space-5); margin: 0 0 var(--space-5); }
  .ph-note .ph-k { display: block; font-family: var(--f-mono); font-size: var(--text-label); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: var(--space-2); }
  .ph-note p { margin: 0; font-size: var(--text-sm); color: var(--ink-2); }
  /* -- lockups & downloads (the mark) -- */
  /* 2x2 square-canvas gallery, broken out of the text column to the wide band (centered on viewport) */
  #sf-lockups .lk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--border-hairline); background: var(--line); border: var(--border-hairline) solid var(--line); width: min(var(--col-wide), calc(100vw - 2 * var(--space-5))); position: relative; left: 50%; transform: translateX(-50%); margin: 0 0 var(--space-6); }
  #sf-lockups .lk-chip { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-5); padding: var(--space-6); aspect-ratio: 4 / 3; overflow: hidden; }
  @media (max-width: 560px) { #sf-lockups .lk-grid { grid-template-columns: 1fr; } #sf-lockups .lk-chip { aspect-ratio: 16 / 10; } }
  /* each chip is a fixed-ground token ISLAND (data-theme on the element): the ground AND the
     caption both resolve from the chip's own mode, so the pairing is always right regardless
     of page theme. Retires the old invert-filter hack + the #0b0b0d/#6b7078 literals. */
  #sf-lockups .lk-chip::before { content: ""; position: absolute; inset: 0; z-index: 0; background: var(--surface); }
  #sf-lockups .lk-chip img, #sf-lockups .lk-cap { position: relative; z-index: 1; }
  #sf-lockups .lk-chip img { width: 78%; height: auto; display: block; }
  #sf-lockups .lk-chip--v img { width: 46%; }
  #sf-lockups .lk-cap { font-family: var(--f-mono); font-size: var(--text-label); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
  #sf-lockups .lk-cap a { color: inherit; }
  #sf-lockups .lk-pkg { display: flex; align-items: baseline; gap: var(--space-4); flex-wrap: wrap; margin: 0 0 var(--space-5); }
  #sf-lockups .lk-pkg-note { font-family: var(--f-mono); font-size: var(--text-label); color: var(--ink-2); }
  /* -- side nav: fixed tick rail w/ scrollspy (>=1200px; inline TOC below that) -- */
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  /* visible from the start, anchored just under the masthead hairline (JS sets its
     top); it scrolls with the page, then sticks vertically-centered once it reaches
     that point (.stuck, toggled by JS) */
  #side-nav { position: absolute; left: var(--space-5); z-index: 40; display: none; flex-direction: column; gap: var(--space-2); }
  #side-nav.stuck { position: fixed; top: calc(var(--rail-h) + var(--space-5)); }
  @media (min-width: 1200px) { #side-nav { display: flex; } .toc { display: none; } }
  #side-nav a { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; padding: 2px 0; }
  #side-nav a i { width: var(--space-4); height: 1px; background: var(--line-2); flex: none; transition: width .15s ease, background-color .15s ease; }
  #side-nav a span { font-family: var(--f-mono); font-size: var(--text-label); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); opacity: 0; transform: translateX(-4px); transition: opacity .15s ease, transform .15s ease; white-space: nowrap; }
  #side-nav:hover a span { opacity: 1; transform: none; }
  #side-nav a:hover i { background: var(--ink-2); }
  #side-nav a:hover span { color: var(--ink); }
  #side-nav a.active i { width: var(--space-7); background: var(--gain); }
  #side-nav a.active span { opacity: 1; transform: none; color: var(--ink); }
  #side-nav a[data-part]::before { content: attr(data-part); font-family: var(--f-mono); font-size: 9px; color: var(--ink-2); width: 14px; flex: none; }
  #side-nav a:not([data-part])::before { content: ""; width: 14px; flex: none; }
  @media (prefers-reduced-motion: reduce) { #side-nav a i, #side-nav a span { transition: none; } }

  /* token tables: identifiers never wrap — the value column absorbs the squeeze instead */
  #tok-type td:first-child, #tok-text td:first-child { white-space: nowrap; }
  