/* src/web/static/ui/components.css
 * Component layer — tokens only, no raw values, dark-mode-blind (theme is a
 * token-alias remap in tokens.css; these rules must never branch on it).
 * Borders over shadows; --shadow-float is reserved for .toast/.modal.
 */
@layer components {

  /* ══════════════════ Shared patterns — index ══════════════════
     These grew inside one page and turned out to be the vocabulary. A new
     surface should reach for the generic name; the page-specific one beside
     it is the original call site kept as an alias, not a second component.
     They are defined where they grew rather than gathered here, because this
     file is order-sensitive — several rules below say so in as many words,
     and moving a block changes which declaration wins.

       .tip[data-tip]                  ← .jl-tip        (All Jobs section)
       .back-link                      ← .jd-back       (Job detail section)
       .sec-head / .sec-label / .sec-rest
                                       ← .jd-sec-*      (Job detail section)
       .menu / .menu-div               ← .jd-menu       (Job detail section)
       .kit-row / .kit-row-ic          ← .jd-doc        (Job detail section)
       .rail / .rail-pip / .rail-link  — defined below
       .ico-del                        ← .jl-icon + the toolbar's danger tint
                                         (All Jobs section) — defined below

     The ascent rail is the exception. `.jl-rail` (a row) and `.jd-ascent` (a
     hero, with dated labels under each stage) share the *vocabulary* — indigo
     for ground covered, amber for a milestone, hollow for what is left — but
     not a structure, so aliasing them together would be a lie. `.rail` below
     is the parameterised primitive for a fourth surface to build on. */

  /* ─────────────────────── The ascent rail ───────────────────────
     Pips joined by links: `.done` behind you, `.here` under you, `.milestone`
     for the ones that matter, `.stalled` for a journey that stopped. Size and
     ink are custom properties so a rail can be a row's 7px or a hero's 9px
     without a second copy of the states. */
  .rail { display:flex; align-items:center; width:100%;
          --rail-pip-size:7px; --rail-link-w:1px; --rail-ink:var(--accent); }
  .rail-node { position:relative; display:flex; align-items:center; flex:1; min-width:0; }
  .rail-node:last-child { flex:none; }
  .rail-pip { width:var(--rail-pip-size); height:var(--rail-pip-size); border-radius:50%;
              flex:none; z-index:1; background:var(--canvas);
              border:1px solid var(--track); }
  .rail-link { flex:1; height:var(--rail-link-w); background:var(--track); }
  .rail-node.done .rail-pip { background:var(--rail-ink); border-color:var(--rail-ink); }
  .rail-node.done .rail-link { background:var(--rail-ink); }
  .rail-node.done.milestone .rail-pip { background:var(--amber); border-color:var(--amber); }
  .rail-node.here .rail-pip { width:calc(var(--rail-pip-size) + 4px);
                              height:calc(var(--rail-pip-size) + 4px);
                              background:var(--rail-ink); border-color:var(--rail-ink);
                              box-shadow:0 0 0 3px var(--accent-soft); }
  .rail-node.here.milestone .rail-pip { background:var(--amber); border-color:var(--amber);
                                        box-shadow:0 0 0 3px var(--amber-soft); }
  /* Left the rail rather than pausing on it — the ground covered goes quiet. */
  .rail-node.stalled .rail-pip { background:var(--canvas); border-color:var(--text-3);
                                 border-style:dashed; }
  .rail-node.stalled.here .rail-pip { background:var(--text-3); border-color:var(--text-3);
                                      box-shadow:0 0 0 3px var(--border-subtle); }

  /* ──────────────────────── The delete icon ────────────────────────
     Take-something-away, as one control. It grew as `.jl-icon` wearing the
     All Jobs toolbar's danger tint — a 36px disc, rose ground, red glyph,
     solid red under the pointer — and every list that can drop a row needs
     exactly that one, not a near-copy at a different size with a different
     radius. The geometry is repeated here rather than aliased onto
     `.jl-icon`, because that class is the toolbar's neutral button and most
     of its instances must not turn red. */
  .ico-del { display:inline-flex; align-items:center; justify-content:center;
             width:36px; height:36px; padding:0; border:0; border-radius:50%;
             background:var(--danger-bg); color:var(--danger); cursor:pointer;
             transition:background var(--dur-1) var(--ease),
                        color var(--dur-1) var(--ease),
                        opacity var(--dur-1) var(--ease); }
  .ico-del svg { width:18px; height:18px; flex:none; }
  .ico-del:hover { background:var(--danger); color:var(--on-accent); }
  .ico-del:focus-visible { outline:2px solid var(--danger); outline-offset:2px; }

  /* ============================ Card ============================ */
  .card { background:var(--surface); border:1px solid var(--border-subtle);
          border-radius:var(--radius-card); }
  .card-header { padding:var(--space-4) var(--space-5); display:flex;
                 align-items:center; justify-content:space-between;
                 border-bottom:1px solid var(--border-subtle);
                 font-weight:600; font-size:var(--text-lg); }
  .card-body { padding:var(--space-5); }
  /* Opt-in, because most card bodies hold one block and blocks already
     stack. A body that holds several — rows, a chart, a footnote — needs the
     rhythm between them, and needs to be a flex container before the `gap`
     several templates already pass it means anything. */
  .card-body.is-flow { display:flex; flex-direction:column; gap:var(--space-4); }
  /* Quiet by default — a card outlined in red is read before everything
     above it, and this one holds the action you want read last. */
  .card.is-danger { border-color:color-mix(in srgb, var(--danger) 30%, transparent); }
  .card-footer { padding:var(--space-4) var(--space-5); display:flex;
                 align-items:center; gap:var(--space-3);
                 border-top:1px solid var(--border-subtle); }
  /* A footer whose only job is to carry the primary action puts it where the
     eye leaves the card, not where it entered. */
  .card-footer.is-end { justify-content:flex-end; }

  /* ============================ Panel ============================ */
  .panel { background:var(--surface); border:1px solid var(--border-subtle);
           border-radius:var(--radius-card); padding:var(--space-5); }

  /* ========================== Stat tile =========================== */
  .stat-tile { background:var(--surface); border:1px solid var(--border-subtle);
               border-radius:var(--radius-card); padding:var(--space-4) var(--space-5);
               display:flex; flex-direction:column; gap:var(--space-1); min-width:0; }
  .stat-tile .stat-tile-label { font-size:var(--text-xs); text-transform:uppercase;
                                 letter-spacing:.04em; color:var(--text-3); }
  /* The figure is the thing you came for, so it gets the good face — the same
     one the match score wears in the jobs table. */
  .stat-tile .stat-tile-value { font:600 var(--text-2xl)/1.15 var(--font-display);
                                 letter-spacing:-.02em; color:var(--text-1);
                                 font-variant-numeric:tabular-nums lining-nums; }
  .stat-tile .stat-tile-delta { font-size:var(--text-sm); font-weight:500;
                                 font-variant-numeric:tabular-nums; color:var(--text-3); }
  .stat-tile .stat-tile-delta.is-up { color:var(--ok); }
  .stat-tile .stat-tile-delta.is-down { color:var(--danger); }
  .stat-tile .stat-tile-spark { height:28px; width:100%; display:block; color:var(--accent); }

  /* ============================ Table ============================= */
  .table-wrap { overflow-x:auto; border:1px solid var(--border-subtle);
                border-radius:var(--radius-card); }
  .tbl { width:100%; border-collapse:collapse; font-size:var(--text-base); }
  .tbl th { position:sticky; top:0; background:var(--surface); text-align:left;
            font-size:var(--text-xs); text-transform:uppercase; letter-spacing:.04em;
            color:var(--text-3); padding:var(--space-2) var(--space-3);
            border-bottom:1px solid var(--border); }
  .tbl td { padding:var(--space-3); border-bottom:1px solid var(--border-subtle);
            color:var(--text-1); }
  .tbl td.num, .tbl td[data-metric] { font-variant-numeric:tabular-nums; }
  .tbl tbody tr:last-child td { border-bottom:0; }
  .tbl tbody tr:hover { background:var(--accent-soft); }
  /* A row that is itself a link. Every row already tints on hover, so the
     cursor is the only thing that says this one goes somewhere. */
  .tbl tbody tr[data-href] { cursor:pointer; }
  @media (max-width:767px) {           /* the mobile card transform */
    .tbl thead { display:none; }
    .tbl, .tbl tbody, .tbl tr, .tbl td { display:block; }
    .tbl tr { border:1px solid var(--border-subtle); border-radius:var(--radius-card);
              margin-bottom:var(--space-3); background:var(--surface); }
    .tbl td { display:flex; justify-content:space-between; gap:var(--space-4);
              border:0; padding:var(--space-2) var(--space-4); }
    .tbl td::before { content:attr(data-label); color:var(--text-3);
                      font-size:var(--text-sm); }
  }

  /* ============================ Badges ============================ */
  .badge { display:inline-flex; align-items:center; gap:var(--space-1);
           padding:2px var(--space-2); border-radius:var(--radius-pill);
           font-size:var(--text-xs); font-weight:600; line-height:1.5;
           background:var(--canvas); color:var(--text-2);
           border:1px solid var(--border-subtle); white-space:nowrap; }
  .badge-ok { background:var(--ok-bg); color:var(--ok); border-color:transparent; }
  .badge-warn { background:var(--warn-bg); color:var(--warn); border-color:transparent; }
  .badge-danger { background:var(--danger-bg); color:var(--danger); border-color:transparent; }
  .badge-info { background:var(--info-bg); color:var(--info); border-color:transparent; }
  .badge-accent { background:var(--accent-soft); color:var(--accent); border-color:transparent; }
  /* A hop the router will skip: present so the fallback is legible, struck
     through so it is never mistaken for the one that actually runs. */
  .badge-skipped { background:transparent; color:var(--text-3);
                   border-style:dashed; text-decoration:line-through;
                   text-decoration-thickness:1px; }

  .badge-atlas-skill { background:color-mix(in srgb, var(--atlas-skill) 12%, transparent); color:var(--atlas-skill); border-color:transparent; }
  .badge-atlas-company { background:color-mix(in srgb, var(--atlas-company) 12%, transparent); color:var(--atlas-company); border-color:transparent; }
  .badge-atlas-role { background:color-mix(in srgb, var(--atlas-role) 12%, transparent); color:var(--atlas-role); border-color:transparent; }
  .badge-atlas-contact { background:color-mix(in srgb, var(--atlas-contact) 12%, transparent); color:var(--atlas-contact); border-color:transparent; }
  .badge-atlas-project { background:color-mix(in srgb, var(--atlas-project) 12%, transparent); color:var(--atlas-project); border-color:transparent; }
  .badge-atlas-experience { background:color-mix(in srgb, var(--atlas-experience) 12%, transparent); color:var(--atlas-experience); border-color:transparent; }
  .badge-atlas-concept { background:color-mix(in srgb, var(--atlas-concept) 12%, transparent); color:var(--atlas-concept); border-color:transparent; }
  .badge-atlas-synthesis { background:color-mix(in srgb, var(--atlas-synthesis) 12%, transparent); color:var(--atlas-synthesis); border-color:transparent; }
  .badge-atlas-trail { background:color-mix(in srgb, var(--atlas-trail) 12%, transparent); color:var(--atlas-trail); border-color:transparent; }

  /* =========================== Score ring =========================== */
  .score-ring { position:relative; display:inline-grid; place-items:center;
                width:48px; height:48px; border-radius:50%; flex:none;
                background:conic-gradient(var(--score-ring-color, var(--score-mid))
                            calc(var(--score-ring-pct, 0) * 1%),
                            var(--border-subtle) 0); }
  .score-ring::before { content:""; position:absolute; inset:5px; border-radius:50%;
                        background:var(--surface); }
  .score-ring .score-ring-value { position:relative; font:600 var(--text-sm) var(--font-ui);
                                   color:var(--text-1); font-variant-numeric:tabular-nums; }
  /* Band comes from joblist.score_band via the macro, so the ring cannot
     disagree with the number beside it on another page. */
  .score-ring.is-high { --score-ring-color:var(--score-high); }
  .score-ring.is-mid  { --score-ring-color:var(--score-mid); }
  .score-ring.is-low  { --score-ring-color:var(--score-low); }
  /* The small ring is the openings row's only score, so the number in it is
     the thing being read, not a decoration on a ring. 9px in a 28px ring left
     it unreadable at a glance. */
  .score-ring.is-sm { width:34px; height:34px; }
  .score-ring.is-sm::before { inset:3.5px; }
  .score-ring.is-sm .score-ring-value { font-size:var(--text-sm); }

  /* ============================= Funnel ============================= */
  .funnel { display:flex; flex-direction:column; gap:var(--space-2); }
  .funnel-stage { display:flex; align-items:center; gap:var(--space-3); }
  .funnel-stage .funnel-label { flex:0 0 110px; font-size:var(--text-sm); color:var(--text-2); }
  .funnel-stage .funnel-bar-wrap { flex:1 1 auto; background:var(--canvas);
                                    border-radius:var(--radius-ctl); overflow:hidden; }
  .funnel-stage .funnel-bar { height:18px; background:var(--accent);
                              border-radius:var(--radius-ctl); }
  .funnel-stage .funnel-value { min-width:32px; text-align:right; font-size:var(--text-sm);
                                color:var(--text-1); font-variant-numeric:tabular-nums; }

  /* =============================== KV =============================== */
  .kv { display:grid; grid-template-columns:auto 1fr; gap:var(--space-2) var(--space-4);
        font-size:var(--text-base); margin:0; }
  .kv dt { color:var(--text-3); font-size:var(--text-sm); }
  .kv dd { margin:0; color:var(--text-1); font-variant-numeric:tabular-nums; }

  /* ============================= Avatar ============================= */
  .avatar { display:inline-flex; align-items:center; justify-content:center;
            width:32px; height:32px; border-radius:50%; flex:none;
            background:var(--accent-soft); color:var(--accent);
            font:600 var(--text-sm) var(--font-ui); }
  .avatar-md { width:44px; height:44px; font-size:var(--text-lg); }
  .avatar-lg { width:64px; height:64px; font-size:var(--text-2xl); }

  /* Identity gradients — deterministic per entity id (id % 8), tokenized
     hues only (no raw hex in templates). Used for company/contact avatars
     and matching accent bars where no brand color is known. */
  .grad-id-0 { background:linear-gradient(135deg, color-mix(in srgb, var(--id-0) 75%, black), var(--id-0)); color:var(--on-accent); }
  .grad-id-1 { background:linear-gradient(135deg, color-mix(in srgb, var(--id-1) 75%, black), var(--id-1)); color:var(--on-accent); }
  .grad-id-2 { background:linear-gradient(135deg, color-mix(in srgb, var(--id-2) 75%, black), var(--id-2)); color:var(--on-accent); }
  .grad-id-3 { background:linear-gradient(135deg, color-mix(in srgb, var(--id-3) 75%, black), var(--id-3)); color:var(--on-accent); }
  .grad-id-4 { background:linear-gradient(135deg, color-mix(in srgb, var(--id-4) 75%, black), var(--id-4)); color:var(--on-accent); }
  .grad-id-5 { background:linear-gradient(135deg, color-mix(in srgb, var(--id-5) 75%, black), var(--id-5)); color:var(--on-accent); }
  .grad-id-6 { background:linear-gradient(135deg, color-mix(in srgb, var(--id-6) 75%, black), var(--id-6)); color:var(--on-accent); }
  .grad-id-7 { background:linear-gradient(135deg, color-mix(in srgb, var(--id-7) 75%, black), var(--id-7)); color:var(--on-accent); }

  /* Your own avatar's colour, chosen on the Settings page and worn in the
     sidebar. `.avatar-c0…c7` were referenced by both templates and defined
     nowhere, so "click to cycle through colours" cycled a class name and
     nothing else — found while rebuilding Settings on 2026-09-06.

     Same eight hues as the identity gradients above, flat rather than
     gradient: a company is a mark you scan past, and your own avatar is a
     thing you chose. `_avatar_color` stores the index; a value outside the
     set falls through to `.avatar`'s indigo wash, which is the old default. */
  .avatar-c0 { background:var(--id-0); color:var(--on-accent); }
  .avatar-c1 { background:var(--id-1); color:var(--on-accent); }
  .avatar-c2 { background:var(--id-2); color:var(--on-accent); }
  .avatar-c3 { background:var(--id-3); color:var(--on-accent); }
  .avatar-c4 { background:var(--id-4); color:var(--on-accent); }
  .avatar-c5 { background:var(--id-5); color:var(--on-accent); }
  .avatar-c6 { background:var(--id-6); color:var(--on-accent); }
  .avatar-c7 { background:var(--id-7); color:var(--on-accent); }

  /* ============================ Timeline ============================ */
  .tl { display:flex; flex-direction:column; }
  .tl-item { position:relative; display:flex; gap:var(--space-3); padding-bottom:var(--space-5); }
  .tl-item:last-child { padding-bottom:0; }
  .tl-item::before { content:""; position:absolute; left:5px; top:16px; bottom:0;
                      width:1px; background:var(--border-subtle); }
  .tl-item:last-child::before { display:none; }
  .tl-dot { width:11px; height:11px; border-radius:50%; background:var(--accent);
            border:2px solid var(--surface); box-shadow:0 0 0 1px var(--border-subtle);
            flex:none; margin-top:3px; }
  .tl-body { flex:1 1 auto; min-width:0; }

  /* ============================ Buttons ============================ */
  /* Pill-shaped app-wide. Changing it here carries every .btn with it —
     dialogs, +Add, a menu row's own control — rather than one surface at a time. */
  /* justify-content matters only once a button is stretched — width:100% in a
     dialog, say — but getting it wrong there left the label hard against the
     left edge. It is a no-op on a shrink-to-fit button. */
  .btn { display:inline-flex; align-items:center; justify-content:center; gap:var(--space-2);
         padding:6px 14px; border-radius:var(--radius-pill); font:500 var(--text-base) var(--font-ui);
         border:1px solid var(--border); background:var(--surface); color:var(--text-1);
         cursor:pointer; white-space:nowrap;
         transition:background var(--dur-1) var(--ease); }
  /* An icon in a button had no size of its own anywhere in this file. An SVG
     with no width takes the space it is given, so a `.btn` in a flex header
     with room to spare grew its icon to the button's height and wrapped the
     label around it — the same defect twice now, on "Review my answers" and on
     "Scan history", each fixed locally. This is the rule those two were
     missing. Specificity is deliberately low: any component that wants a
     different size scopes its own. */
  .btn svg { width:15px; height:15px; flex:none; }
  .btn-sm svg { width:14px; height:14px; }
  .btn:hover { background:var(--canvas); }
  .btn:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
  .btn:hover, a.btn:hover { text-decoration:none; }
  .btn-primary { background:var(--accent); border-color:var(--accent); color:var(--on-accent); }
  .btn-primary:hover { background:var(--accent); filter:brightness(1.08); }
  .btn-danger { background:var(--danger); border-color:var(--danger); color:var(--on-accent); }
  /* `.btn-primary` had a hover and this did not, so the generic
     `.btn:hover{background:var(--canvas)}` won and the red confirm button in
     every danger dialog turned warm-white under the pointer — the one control
     on screen that must not look like it stopped being dangerous. */
  .btn-danger:hover { background:var(--danger); filter:brightness(1.08); }
  /* Destructive, but in a toolbar rather than in the confirm dialog. Solid
     red is the dialog's answer button; a control that only *opens* that
     question is tinted — red enough to be read as dangerous before it is
     pressed, quiet enough not to be the loudest thing on the page. */
  .btn-danger-soft { background:color-mix(in srgb, var(--danger) 10%, var(--surface));
                     border-color:color-mix(in srgb, var(--danger) 32%, transparent);
                     color:var(--danger); }
  .btn-danger-soft:hover { background:color-mix(in srgb, var(--danger) 18%, var(--surface));
                           border-color:var(--danger); color:var(--danger); }
  .btn-secondary { background:var(--surface); border-color:var(--border); color:var(--text-2); }
  .btn-secondary:hover { background:var(--canvas); color:var(--text-1); }
  .btn-ghost { border-color:transparent; background:transparent; }
  .btn-sm { padding:4px 10px; font-size:var(--text-sm); }
  .btn-lg { padding:10px 20px; font-size:var(--text-lg); }
  .btn.is-loading { pointer-events:none; opacity:.7; }
  .btn:disabled { opacity:.55; cursor:not-allowed; }

  /* ============================= Fields ============================= */
  .field { display:flex; flex-direction:column; gap:var(--space-1); }
  .field-label { font-size:var(--text-sm); font-weight:500; color:var(--text-2); }
  .field-hint { font-size:var(--text-xs); color:var(--text-3); }
  .field-error { font-size:var(--text-xs); color:var(--danger); }

  /* The shape of the Orbit chat composer (.dk-box), which is the reference
     for every box you can type into: rounder than a card so a field reads as
     soft, and the same focus treatment — the border takes the accent and a
     3px wash sits outside it, rather than a hard outline offset off the edge.
     A single-line 38px control at this radius reads as a pill, which is what
     drop-lists and buttons already are, so the family closes. */
  .input, .select, textarea {
    font:400 var(--text-base) var(--font-ui); color:var(--text-1);
    background-color:var(--surface); border:1px solid var(--border);
    border-radius:var(--radius-field); padding:6px var(--space-4);
    transition:border-color var(--dur-1) var(--ease),
               box-shadow var(--dur-1) var(--ease);
  }
  /* ── every drop-list, everywhere ──
     A native select renders the operating system's control, which is the one
     thing on an Orbit page that is not ours. Pill-shaped like every other
     control, with our own chevron drawn in.

     The selector is the *element*, not a class: a page written next year with
     a bare <select> has to inherit this without anyone remembering to add
     `.select`. `.is-pill` was the old opt-in and is now redundant. Anything
     that genuinely wants a different shape overrides the radius by name —
     `.jl-fin` (the filter sheet's underlined fields) does.

     `select[class]` is not decoration: a bare element selector is weaker than
     any class, so `.input { border-radius:var(--radius-ctl) }` quietly won and
     left every classed drop-list square. The attribute selector matches any
     classed <select> at class strength without naming one. */
  select, select[class] {
    appearance:none; -webkit-appearance:none;
    border-radius:var(--radius-pill);
    padding-inline:var(--space-4) var(--space-8);
    background-image:
      linear-gradient(45deg, transparent 50%, currentColor 50%),
      linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-size:5px 5px, 5px 5px;
    background-repeat:no-repeat;
    background-position:right var(--space-4) center, right calc(var(--space-4) - 5px) center;
    cursor:pointer;
  }
  [dir="rtl"] select {
    background-position:left var(--space-4) center, left calc(var(--space-4) - 5px) center;
  }
  select:disabled { cursor:not-allowed; opacity:.55; }
  select::-ms-expand { display:none; }
  /* A bare <select> gets the field styling too, or it would be a pill with no
     border sitting on the page ground. */
  select:not(.input):not(.select):not([class]) {
    font:400 var(--text-base) var(--font-ui); color:var(--text-1);
    background-color:var(--surface); border:1px solid var(--border);
    height:var(--ctl-h);
  }
  .input:hover, .select:hover, textarea:hover { border-color:var(--text-3); }
  .input:focus-visible, .select:focus-visible, textarea:focus-visible,
  .input:focus, textarea:focus {
    outline:none; border-color:var(--accent);
    box-shadow:0 0 0 3px var(--accent-soft);
  }
  .input::placeholder { color:var(--text-3); }

  .switch { position:relative; display:inline-flex; align-items:center;
            width:36px; height:20px; border-radius:var(--radius-pill);
            background:var(--border); cursor:pointer; flex:none;
            transition:background var(--dur-1) var(--ease); border:none; padding:0; }
  .switch::before { content:""; position:absolute; left:2px; top:2px;
                     width:16px; height:16px; border-radius:50%; background:var(--surface);
                     transition:transform var(--dur-1) var(--ease); }
  .switch[aria-checked="true"], .switch.is-active { background:var(--accent); }
  .switch[aria-checked="true"]::before, .switch.is-active::before { transform:translateX(16px); }
  .switch:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }

  /* ── the way to edit something, everywhere ──
     A blue "Edit profile" link beside a heading is the odd one out on a page
     made of round controls. This is the same shape as .jd-act and .jl-icon:
     a quiet circle that fills in on hover, at the end of whatever it edits. */
  .edit-btn { display:inline-grid; place-items:center; width:30px; height:30px;
              flex:none; padding:0; border:1px solid transparent;
              border-radius:var(--radius-pill); background:transparent;
              color:var(--text-3); cursor:pointer; text-decoration:none;
              transition:background var(--dur-1) var(--ease),
                         color var(--dur-1) var(--ease); }
  .edit-btn:hover { background:var(--accent-soft); color:var(--accent-ink);
                    text-decoration:none; }
  .edit-btn:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
  .edit-btn svg { width:15px; height:15px; display:block; }

  /* ============================== Pills ============================== */
  .pills { display:inline-flex; gap:var(--space-1); background:var(--canvas);
           padding:var(--space-1); border-radius:var(--radius-pill); }
  .pill { display:inline-flex; align-items:center; padding:4px var(--space-3);
          border-radius:var(--radius-pill); font-size:var(--text-sm); font-weight:500;
          color:var(--text-2); background:transparent; border:none; cursor:pointer;
          transition:background var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
  .pill:hover { color:var(--text-1); text-decoration:none; }
  a.pill, a.pill:hover { text-decoration:none; }
  .pill.is-active { background:var(--surface); color:var(--text-1);
                     border:1px solid var(--border-subtle); }
  .pill:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }

  /* ============================== Modal ============================== */
  .modal-backdrop { position:fixed; inset:0; background:var(--scrim); z-index:90; }
  .modal { background:var(--surface); border-radius:var(--radius-card);
           border:1px solid var(--border-subtle); box-shadow:var(--shadow-float);
           padding:var(--space-5); max-width:480px; margin:10vh auto 0; z-index:91;
           position:relative; }
  @media (max-width:767px) {
    .modal.sheet, .sheet { max-width:none; width:100%; margin:0; position:fixed;
                            left:0; right:0; bottom:0; top:auto;
                            border-radius:var(--radius-card) var(--radius-card) 0 0;
                            max-height:85vh; overflow-y:auto; }
  }

  /* ===== Global overlays (base.html machinery) =====
     base.html wires up showToast/formDialog/reorderDialog/confirmDialog on
     every page — these class names (.modal-overlay, .toast-container,
     .form-grid, .reorder-*) are generated by that shared JS, not by any one
     template, so they live here rather than under a page-specific section.
     Task 13: previously only resolved via the deleted style.css.
     The cookie banner used to live here too; it gated nothing and named an
     analytics category Orbit does not run, so it is gone (ADR-0022 session). */
  .spinner { width:16px; height:16px; border:2px solid var(--border); border-top-color:var(--accent);
             border-radius:50%; animation:spinner-spin 600ms linear infinite; display:inline-block;
             vertical-align:middle; margin-right:var(--space-2); }
  .btn .spinner { border-top-color:currentColor; }
  @keyframes spinner-spin { to { transform:rotate(360deg); } }

  /* ── the notice (JS-built: #toast-container > .toast > .toast-body) ──
     One inverted pill, bottom centre, stacked. It began as the skills page's
     receipt and is the app's only notification now; `.sk-receipt` was a second
     copy of this and is gone.

     Inverted on purpose: `--text-1` as ground and `--surface` as ink, so it
     flips with the theme and is never the colour of the page beneath it. That
     is the whole reason it reads at a glance.

     What makes a notice worth reading is the sentence. `.toast-title` carries
     the subject in semibold — "Your profile is saved", not "Profile updated" —
     and the rest finishes it.

     The right-hand end is a verb when there is something to do about it and a
     close when there is not; base.html builds one or the other, never both.

     Newest is appended, so it lands nearest the bottom — closest to where you
     were looking — and the column above reads back through what happened. */
  .toast-container { position:fixed; inset-inline-start:50%; transform:translateX(-50%);
                     bottom:var(--space-5); z-index:9999; display:flex;
                     flex-direction:column; align-items:center; gap:var(--space-2);
                     pointer-events:none; width:max-content;
                     max-width:min(620px, calc(100vw - var(--space-8))); }
  .toast-container .toast {
             pointer-events:auto; display:block; width:auto; max-width:100%;
             padding:0; overflow:hidden;
             background:var(--text-1); color:var(--surface);
             border:none; border-radius:var(--radius-pill); box-shadow:var(--lift-3);
             opacity:0; transform:translateY(14px) scale(.98);
             transition:opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease); }
  .toast-container .toast.show { opacity:1; transform:none; }
  .toast-container .toast.hide { opacity:0; transform:translateY(8px) scale(.98); }
  .toast-body { display:flex; align-items:center; gap:var(--space-3);
                padding:var(--space-2) var(--space-2) var(--space-2) var(--space-5); }
  /* No mark on the ordinary case — the sentence carries it. Only the two
     states a person has to notice get one. */
  .toast-icon { flex:none; width:16px; height:16px; display:grid; place-items:center;
                margin-inline-end:calc(var(--space-2) * -1); background:none; }
  .toast-icon.error { color:var(--danger); }
  .toast-icon.warning { color:var(--amber); }
  .toast-icon svg { width:16px; height:16px; }
  .toast-msg { min-width:0; font:400 var(--text-sm)/1.45 var(--font-ui); color:inherit; }
  .toast-title { font-weight:600; }
  .toast-msg a { color:inherit; font-weight:600; text-decoration:underline;
                 text-underline-offset:2px; }

  /* `currentColor` rather than a white wash. The pill inverts with the theme,
     so a white overlay vanishes on the light one — which is exactly the bug
     the skills receipt shipped with. */
  .toast-act { flex:none; border:none; border-radius:var(--radius-pill);
               padding:6px var(--space-4); font:500 var(--text-sm) var(--font-ui);
               background:color-mix(in srgb, currentColor 15%, transparent);
               color:inherit; cursor:pointer; text-decoration:none; white-space:nowrap;
               transition:background var(--dur-1) var(--ease); }
  .toast-act:hover { background:color-mix(in srgb, currentColor 27%, transparent);
                     color:inherit; text-decoration:none; }
  .toast-close { flex:none; width:28px; height:28px; border:none; border-radius:50%;
                 background:none; color:inherit; opacity:.65; cursor:pointer;
                 display:grid; place-items:center;
                 transition:background var(--dur-1) var(--ease), opacity var(--dur-1) var(--ease); }
  .toast-close:hover { opacity:1;
                       background:color-mix(in srgb, currentColor 15%, transparent); }
  .toast-close svg { width:14px; height:14px; }

  @media (max-width: 600px) {
    .toast-container { inset-inline:var(--space-3); transform:none;
                       width:auto; max-width:none; }
    .toast-container .toast { width:100%; }
  }

  /* Modal (JS-built: formDialog/reorderDialog/confirmDialog). The roles pages
     had bespoke edit modals of their own until 2026-09-11; they use
     `formDialog` now, so this is the only builder left.
     — .modal-overlay is a distinct, wider-surface pattern
     from the .modal-backdrop pair above (used directly by atlas_ask.html /
     settings.html); both are real, both stay. */
  /* base.html toggles body.modal-open while a confirm/form/reorder dialog is
     up; this locked background scroll and previously lived only in style.css. */
  body.modal-open { overflow:hidden; }
  .modal-overlay { position:fixed; inset:0; background:var(--scrim); z-index:90;
                    display:flex; align-items:center; justify-content:center;
                    opacity:0; pointer-events:none; transition:opacity var(--dur-2) var(--ease); }
  .modal-overlay.show { opacity:1; pointer-events:auto; }
  .modal-overlay .modal { width:100%; max-width:420px; margin:var(--space-4); overflow:hidden;
                           transform:scale(0.96); transition:transform var(--dur-2) var(--ease); padding:0; }
  .modal-overlay.show .modal { transform:scale(1); }
  .modal-overlay .modal-header { padding:var(--space-5) var(--space-5) 0; }
  /* A dialog title is a statement a human wrote, so it takes the display
     face — every dialog, not the handful that used to opt in with
     `.modal-title-display`. 500 rather than 700: Fraunces at 700 reads shouty,
     and the design language stops at 600 for the display face. */
  .modal-overlay .modal-header h3,
  .modal-overlay .modal-header > h3,
  .ct-modal-title, .set-modal-title {
    font:500 var(--text-xl)/1.25 var(--font-display); letter-spacing:-.015em;
    color:var(--text-1); margin:0; text-wrap:balance; }
  .ct-modal-title { margin-block-end:var(--space-4); }
  .set-modal-title { margin-block-end:var(--space-3); }
  .modal-overlay .modal-body { padding:var(--space-4) var(--space-5); }
  .modal-overlay .modal-body p { font-size:var(--text-base); color:var(--text-2); line-height:1.5; margin:0 0 var(--space-3); }
  /* :not() scoping is load-bearing. This rule is for a bare prompt field
     dropped straight into a modal body, but `[type="text"]` outranks
     `.form-group input`, so it was quietly squaring off and tightening every
     field in every formDialog in the app — against --radius-field, which is
     the composer shape the whole form family is measured against. */
  .modal-overlay .modal-body input[type="text"]:not(.form-group input) {
      width:100%; padding:var(--space-2) var(--space-3);
      border:1px solid var(--border); border-radius:var(--radius-ctl); font-size:var(--text-base);
      background:var(--surface); color:var(--text-1); font-family:inherit; outline:none;
      transition:border-color var(--dur-1) var(--ease); }
  .modal-overlay .modal-body input[type="text"]:not(.form-group input):focus-visible { border-color:var(--accent);
      outline:2px solid var(--accent); outline-offset:1px; }
  .modal-overlay .modal-footer { padding:0 var(--space-5) var(--space-5); display:flex;
                                  justify-content:flex-end; gap:var(--space-2); }
  .modal-overlay .modal-footer .btn { min-width:100px; justify-content:center; }
  .modal-overlay .modal.modal-form { max-width:560px; }
  .modal-overlay .modal.modal-form.modal-lg { max-width:700px; }
  .modal-overlay .modal.modal-form.modal-xl { max-width:770px; }
  .modal-overlay .modal.modal-form .modal-header { padding:var(--space-5) var(--space-6) var(--space-4);
      display:flex; align-items:flex-start; justify-content:space-between; border-bottom:1px solid var(--border-subtle); }
  .modal-overlay .modal.modal-form .modal-header .modal-close { background:none; border:none; cursor:pointer;
      color:var(--text-3); padding:4px; border-radius:var(--radius-ctl); flex-shrink:0;
      transition:background var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
  .modal-overlay .modal.modal-form .modal-header .modal-close:hover { background:var(--canvas); color:var(--text-1); }
  .modal-overlay .modal.modal-form .modal-header .modal-header-text { flex:1; min-width:0; }
  .modal-overlay .modal.modal-form .modal-body { padding:var(--space-5) var(--space-6);
      max-height:calc(100vh - 220px); overflow-y:auto; }
  /* What the dialog is about, as the eyebrow this app writes everywhere
     else: mono, uppercase, tracked. As plain grey body text it read as a
     stray sentence someone forgot to finish. */
  .modal-overlay .modal.modal-form .modal-body .modal-subtitle {
      font:400 var(--text-xs)/1.4 var(--font-mono); letter-spacing:.1em;
      text-transform:uppercase; color:var(--text-3);
      margin-block-end:var(--space-4); }
  .modal-overlay .modal.modal-form .modal-footer { padding:var(--space-4) var(--space-6) var(--space-5);
      border-top:1px solid var(--border-subtle); display:flex; justify-content:space-between; gap:var(--space-2); }
  .modal-footer-note { font-size:var(--text-sm); color:var(--text-3);
                       max-inline-size:44ch; text-align:start; }
  .modal-overlay .modal.modal-form .modal-footer .modal-footer-left,
  .modal-overlay .modal.modal-form .modal-footer .modal-footer-right { display:flex; gap:var(--space-2); }
  /* On a phone the note and the buttons cannot share a line: the note became
     a seven-line column two words wide beside them. */
  @media (max-width:560px) {
    .modal-overlay .modal.modal-form .modal-footer { flex-direction:column;
      align-items:stretch; gap:var(--space-3); }
    .modal-footer-note { max-inline-size:none; }
    .modal-overlay .modal.modal-form .modal-footer .modal-footer-right {
      justify-content:flex-end; }
  }

  /* Form grid used inside formDialog()-built modals. */
  .form-grid { display:grid; grid-template-columns:1fr 1fr; gap:var(--space-3); }
  .form-grid.single-column { grid-template-columns:1fr; }
  .form-grid .full { grid-column:1/-1; }
  .form-group { margin-bottom:var(--space-3); }
  .form-group label { display:block; font-size:var(--text-sm); font-weight:600; color:var(--text-2);
                       margin-bottom:var(--space-1); }
  .form-group label .required { color:var(--danger); }
  /* background-COLOR: a <select> in here keeps the drawn chevron, and the
     radius comes from the element rule rather than being squared off. */
  .form-group input, .form-group select, .form-group textarea {
      width:100%; padding:var(--space-2) var(--space-4); border:1px solid var(--border);
      border-radius:var(--radius-field); font-size:var(--text-base);
      background-color:var(--surface);
      color:var(--text-1); font-family:inherit; outline:none;
      transition:border-color var(--dur-1) var(--ease),
                 box-shadow var(--dur-1) var(--ease); }
  .form-group select { border-radius:var(--radius-pill);
                       padding-inline:var(--space-4) var(--space-8); }
  .form-group input:focus-visible, .form-group select:focus-visible, .form-group textarea:focus-visible,
  .form-group input:focus, .form-group textarea:focus {
      border-color:var(--accent); outline:none;
      box-shadow:0 0 0 3px var(--accent-soft); }
  .form-group input::placeholder, .form-group textarea::placeholder { color:var(--text-3); }
  /* Long enough to read a paragraph back. 60px is three lines, and a role
     description is rarely three lines — it arrived clipped mid-sentence with
     no sign there was more. Draggable, for anyone who wants more still. */
  .form-group textarea { resize:vertical; min-height:9em; }
  /* 200px could not fit three across a dialog, so "Currency / From / To"
     broke as two and one — a group named as a unit, laid out as two things
     and an orphan. `min()` keeps it from overflowing a narrow phone. */
  .form-row { display:grid; gap:var(--space-3);
              grid-template-columns:repeat(auto-fit,minmax(min(140px,100%),1fr)); }
  .form-row .form-group { margin-bottom:0; }
  /* Names a group of fields that only mean something together, so the fields
     inside it can be labelled "Currency / From / To" instead of each one
     restating the group: "Target from", "Target to". */
  .form-legend { font:500 var(--text-xs)/1 var(--font-mono); text-transform:uppercase;
                 letter-spacing:.1em; color:var(--text-3);
                 margin-block:var(--space-2) calc(var(--space-1) * -1); }
  /* A field whose label line carries a control that fills it in. The button
     is on the label's baseline, at the end — where the eye already is when it
     has read the label and not yet started typing. */
  .form-label-row { display:flex; align-items:center; justify-content:space-between;
                    gap:var(--space-3); margin-bottom:var(--space-1); }
  .form-label-row label { margin-bottom:0; }
  .form-assist { padding:3px 10px; font-size:var(--text-xs); color:var(--accent-ink);
                 border-color:color-mix(in srgb, var(--accent) 35%, transparent);
                 background:var(--accent-soft); }
  .form-assist:hover { background:color-mix(in srgb, var(--accent) 16%, transparent);
                       color:var(--accent-ink); }
  .form-assist svg { width:13px; height:13px; }
  /* Under the label, above the input: the field's meaning, where a clipped
     placeholder used to try to say it. */
  .form-hint { display:block; margin-block:-2px var(--space-1);
               font-size:var(--text-sm); line-height:1.4; color:var(--text-3); }
  .form-section-title { font-size:var(--text-lg); font-weight:700; color:var(--text-1); margin:0;
                         padding-top:var(--space-2); grid-column:1/-1; }
  .form-section-title:first-child { padding-top:0; }
  .form-checkbox-group { padding:var(--space-1) 0; }
  .form-checkbox-label { display:flex; align-items:center; gap:var(--space-2); cursor:pointer;
                          font-size:var(--text-base); font-weight:500; color:var(--text-1); }
  .form-checkbox-label input[type="checkbox"] { width:18px; height:18px; accent-color:var(--accent);
                                                  cursor:pointer; flex-shrink:0; }
  .form-char-count { font-size:var(--text-xs); color:var(--text-3); text-align:right; margin-top:2px; }
  /* Over the cap is amber, not red: the text saves either way, and what is
     past the cap is only text Orbit will not read into Stories. Amber is the
     colour of everything waiting on the reader. */
  .form-char-count.is-over { color:var(--amber-ink); font-weight:600; }
  .form-char-note { margin-top:var(--space-2); padding:var(--space-2) var(--space-3);
                    border-radius:var(--radius-ctl); background:var(--amber-soft);
                    color:var(--amber-ink); font-size:var(--text-xs); line-height:1.5; }

  /* Reorder list (reorderDialog(); profile.html reorders education,
     certifications and projects with it) */
  .reorder-list { display:flex; flex-direction:column; gap:0; }
  .reorder-item { display:flex; align-items:center; gap:var(--space-3); padding:var(--space-4) 0;
                  border-bottom:1px solid var(--border-subtle); transition:background var(--dur-1) var(--ease); }
  .reorder-item:last-child { border-bottom:none; }
  .reorder-item:first-child { padding-top:0; }
  .reorder-item-content { flex:1; min-width:0; }
  .reorder-item-title { font-size:var(--text-lg); font-weight:700; color:var(--text-1); }
  .reorder-item-subtitle { font-size:var(--text-sm); color:var(--text-2); margin-top:2px; }
  .reorder-item-meta { font-size:var(--text-sm); color:var(--text-3); margin-top:2px; }
  .reorder-handle { flex-shrink:0; cursor:grab; color:var(--text-3); padding:var(--space-2);
                     border-radius:var(--radius-ctl); transition:color var(--dur-1) var(--ease), background var(--dur-1) var(--ease); }
  .reorder-handle:hover { color:var(--text-1); background:var(--canvas); }
  .reorder-handle:active { cursor:grabbing; }
  .reorder-dragging { position:relative; z-index:10; background:var(--surface);
                       box-shadow:var(--shadow-float); border-radius:var(--radius-ctl); }

  /* =============================== Empty =============================== */
  .empty { display:flex; flex-direction:column; align-items:center; text-align:center;
           gap:var(--space-3); padding:var(--space-10) var(--space-5); color:var(--text-2); }
  .empty .empty-icon { color:var(--text-3); width:40px; height:40px; }
  .empty .empty-title { font-size:var(--text-lg); font-weight:600; color:var(--text-1); }
  .empty .empty-body { font-size:var(--text-base); color:var(--text-3); max-width:38ch; }

  /* ============================== Skeleton ============================== */
  .skeleton { display:block; border-radius:var(--radius-ctl); background:
              linear-gradient(90deg, var(--border-subtle) 25%, var(--border) 37%, var(--border-subtle) 63%);
              background-size:400% 100%; animation:skeleton-wave 1.4s ease infinite; }
  @keyframes skeleton-wave { 0% { background-position:100% 50%; } 100% { background-position:0 50%; } }

  /* ============================== Banner ============================== */
  .banner { display:flex; align-items:center; gap:var(--space-3);
            padding:var(--space-3) var(--space-4); border-radius:var(--radius-card);
            border:1px solid var(--border-subtle); background:var(--info-bg);
            color:var(--info); font-size:var(--text-base); }
  .banner-warn { background:var(--warn-bg); color:var(--warn); border-color:transparent; }
  .banner-danger { background:var(--danger-bg); color:var(--danger); border-color:transparent; }

  /* ============================== Omnibox ============================== */
  /* Desktop: centered palette overlay. Mobile (<768px): reuses .sheet. */
  .omnibox-backdrop { position:fixed; inset:0; background:var(--scrim); z-index:95; }
  .omnibox-palette { background:var(--surface); border-radius:var(--radius-card);
                     border:1px solid var(--border-subtle); box-shadow:var(--shadow-float);
                     max-width:600px; width:calc(100% - var(--space-6)); margin:12vh auto 0;
                     z-index:96; position:fixed; top:0; left:0; right:0;
                     display:flex; flex-direction:column;
                     max-height:70vh; overflow:hidden; }
  @media (max-width:767px) {
    .omnibox-palette.sheet { max-width:none; width:100%; margin:0; position:fixed;
                             left:0; right:0; bottom:0; top:auto;
                             border-radius:var(--radius-card) var(--radius-card) 0 0;
                             max-height:85vh; }
  }
  .omnibox-input-row { display:flex; align-items:center; gap:var(--space-2);
                       padding:var(--space-4); border-bottom:1px solid var(--border-subtle);
                       flex:none; }
  .omnibox-input-row svg { color:var(--text-3); flex:none; }
  .omnibox-input { flex:1 1 auto; border:0; background:transparent; outline:none;
                   font-size:var(--text-lg); color:var(--text-1); font-family:var(--font-ui); }
  .omnibox-input::placeholder { color:var(--text-3); }
  .omnibox-list { overflow-y:auto; flex:1 1 auto; padding:var(--space-2); }
  .omnibox-group-label { padding:var(--space-2) var(--space-3); font-size:var(--text-xs);
                         text-transform:uppercase; letter-spacing:.04em; color:var(--text-3); }
  .omnibox-item { display:flex; align-items:center; gap:var(--space-3);
                  padding:var(--space-2) var(--space-3); border-radius:var(--radius-ctl);
                  cursor:pointer; color:var(--text-1); font-size:var(--text-base); }
  .omnibox-item:hover, .omnibox-item.is-active { background:var(--accent-soft); }
  .omnibox-item-type { flex:none; color:var(--text-3); }
  .omnibox-item-label { flex:1 1 auto; min-width:0; overflow:hidden;
                        text-overflow:ellipsis; white-space:nowrap; }
  .omnibox-item-risk { flex:none; }
  .omnibox-empty { padding:var(--space-6) var(--space-4); text-align:center;
                   color:var(--text-3); font-size:var(--text-base); }
  .omnibox-empty.is-error { color:var(--danger); }
  .omnibox-confirm { display:flex; align-items:center; gap:var(--space-2); flex:none; }
  .omnibox-confirm button { font-size:var(--text-xs); padding:2px var(--space-2); }

  /* ============================== Charts ============================== */
  /* Hosts for the src/web/static/ui/charts.js micro-helpers. Height lives on
     the svg itself so the host auto-sizes to svg + label row (no overlap
     with whatever follows the chart in the DOM). */
  .chart-bars-host { color:var(--accent); }
  .chart-bars-host .chart-bars { width:100%; height:100px; display:block; }
  .chart-bars-host.is-compact .chart-bars { height:56px; }
  .chart-bars-labels { display:flex; justify-content:space-between; gap:var(--space-1);
                        margin-top:var(--space-1); }
  .chart-bars-labels span { flex:1 1 0; text-align:center; overflow:hidden;
                             text-overflow:ellipsis; white-space:nowrap;
                             font-size:var(--text-xs); color:var(--text-3); }

  /* ============================== Dashboard (page-specific) ============================== */
  .dash-toolbar { display:flex; align-items:center; gap:var(--space-3); overflow-x:auto;
                  padding-bottom:var(--space-1); margin-bottom:var(--space-5); }
  .dash-toolbar .pills, .dash-toolbar form { flex:none; }
  .dash-stat-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
                     gap:var(--space-4); margin-bottom:var(--space-5); }
  .dash-grid { display:grid; grid-template-columns:2fr 1fr; gap:var(--space-5);
               align-items:start; }
  .dash-grid > div { display:flex; flex-direction:column; gap:var(--space-5); min-width:0; }
  @media (max-width:1023px) { .dash-grid { grid-template-columns:1fr; } }

  .dash-onboard-grid { display:grid; grid-template-columns:1fr 1fr; gap:var(--space-4);
                        max-width:640px; margin:var(--space-6) auto 0; }
  @media (max-width:767px) { .dash-onboard-grid { grid-template-columns:1fr; } }
  .dash-onboard-card { display:flex; flex-direction:column; align-items:center;
                        text-align:center; gap:var(--space-2); position:relative;
                        text-decoration:none; padding:var(--space-6) var(--space-5); }
  .dash-onboard-card:hover { border-color:var(--accent); text-decoration:none; }
  .dash-onboard-icon { color:var(--text-3); width:36px; height:36px; }
  .dash-onboard-title { font-weight:600; color:var(--text-1); }
  .dash-onboard-check { position:absolute; top:var(--space-3); right:var(--space-3);
                         width:22px; height:22px; padding:0; justify-content:center; }
  .dash-legend-dot { display:inline-block; width:8px; height:8px; border-radius:50%;
                     flex:none; }

  /* ============================== Stepper ============================== */
  /* Candidate-journey stepper: horizontal stage rail with done/current
     states and optional per-stage timestamps (see ui.stepper macro). */
  .stepper { display:flex; list-style:none; margin:0; padding:var(--space-1) 0;
             overflow-x:auto; }
  .stepper-step { flex:1 1 0; min-width:72px; position:relative; display:flex;
                  flex-direction:column; align-items:center; gap:var(--space-1);
                  text-align:center; }
  .stepper-step::before { content:""; position:absolute; top:6px;
                          left:calc(-50% + 14px); right:calc(50% + 14px);
                          height:2px; background:var(--border); }
  .stepper-step:first-child::before { display:none; }
  .stepper-dot { width:14px; height:14px; border-radius:50%; flex:none;
                 background:var(--surface); border:2px solid var(--border); }
  .stepper-label { font-size:var(--text-sm); font-weight:500; color:var(--text-3);
                   white-space:nowrap; }
  .stepper-ts { font-size:var(--text-xs); color:var(--text-3);
                font-variant-numeric:tabular-nums; }
  .stepper-step.is-done::before,
  .stepper-step.is-current::before { background:var(--ok); }
  .stepper-step.is-done .stepper-dot { background:var(--ok); border-color:var(--ok); }
  .stepper-step.is-done .stepper-label { color:var(--text-2); }
  .stepper-step.is-current .stepper-dot { background:var(--accent);
                                          border-color:var(--accent);
                                          box-shadow:0 0 0 3px var(--accent-soft); }
  .stepper-step.is-current .stepper-label { color:var(--text-1); font-weight:600; }

  /* Banner success variant (import results, confirmations) */
  .banner-ok { background:var(--ok-bg); color:var(--ok); border-color:transparent; }

  /* Score ring size modifier (job detail match section) */
  .score-ring.is-lg { width:88px; height:88px; }
  .score-ring.is-lg::before { inset:8px; }
  .score-ring.is-lg .score-ring-value { font-size:var(--text-xl); }

  /* ============================== Staged jobs (page-specific) ============================== */
  /* `.staged-meter` lived here — a 60px bar plus a percentage, drawing the
     figure `.jl-match` already draws. It went with the page's rebuild on
     2026-09-08: `hunter/scorer.py` scores a staged posting through the same
     `compute_relevance_score` a Job gets, so it is the same measurement and
     two drawings of one measurement is how a reader learns to distrust both. */

  /* ============================== Apply — launch pad and record ============================== */
  /* One URL, two lives (ADR-0013). The .appq-* queue vocabulary and the old
     numbered-step .apply-* workbench went with the Applications page and the
     inline editors; .apply-textarea stays because interview_prep still uses
     it. What is left is the two states of /jobs/{id}/apply. */
  .apply-textarea { width:100%; resize:vertical; line-height:1.6;
                    margin-top:var(--space-3); font-family:var(--font-ui); }

  /* The application is a view of the job, so it borrows the job's body grid.
     Closed, it is one column at the width the job's main column already uses —
     the cards were sprawling to 1180px for two paragraphs of text. */
  .jd-body.is-apply { grid-template-columns:minmax(0,1fr); }
  .jd-body.is-apply .jd-main { max-width:780px; }
  /* Panel open: the container widens rather than the reading column shrinking,
     so opening a document never reflows the thing you were reading. */
  .jd-body.is-apply.has-panel { max-width:1680px;
                                grid-template-columns:minmax(0,1fr) minmax(0,46%); }
  @media (max-width:1100px) {
    .jd-body.is-apply.has-panel { grid-template-columns:minmax(0,1fr); }
    .jd-body.is-apply .jd-main { max-width:none; }
  }

  /* The run's state, in the hero slot that already answers "where is this". */
  .jd-runstate { display:inline-flex; align-items:center; gap:var(--space-2);
                 padding:5px var(--space-3); border-radius:var(--radius-pill);
                 border:1px solid color-mix(in srgb, var(--amber) 40%, transparent);
                 background:var(--amber-soft); color:var(--amber-ink);
                 font:600 var(--text-sm) var(--font-ui); }
  .jd-runstate.is-sent { border-color:color-mix(in srgb, var(--ok) 40%, transparent);
                         background:var(--ok-bg); color:var(--ok); }

  /* Materials, stated not offered — they are read-only here and own their
     versions elsewhere. */
  .ap-mats { display:grid; grid-template-columns:1fr 1fr; gap:var(--space-3); }
  @media (max-width:720px) { .ap-mats { grid-template-columns:1fr; } }
  /* A material opens the panel rather than leaving for a page of its own. */
  .ap-mat { display:flex; align-items:center; justify-content:space-between;
            gap:var(--space-3); padding:var(--space-3) var(--space-4); width:100%;
            border:1px solid var(--border-subtle); border-radius:var(--radius-field);
            background:var(--sunk); cursor:pointer; text-align:start;
            font:inherit; color:inherit;
            transition:border-color var(--dur-1) var(--ease),
                       background var(--dur-1) var(--ease); }
  .ap-mat:hover { border-color:var(--accent); background:var(--accent-soft); }
  .ap-mat:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
  .ap-mat[aria-current="true"] { border-color:var(--accent); background:var(--accent-soft); }
  .ap-mat-col { display:flex; flex-direction:column; gap:2px; min-width:0; }
  .ap-mat-col b { font-size:var(--text-sm); }
  /* The download name (src/docname.py). Mono because a filename is a literal —
     the one place on this page where that is true. */
  .ap-mat-file { font:400 var(--text-xs) var(--font-mono); color:var(--text-3);
                 overflow-wrap:anywhere; }
  .ap-mat-go { flex:none; color:var(--text-3); display:grid; place-items:center; }
  .ap-mat-go svg { width:16px; height:16px; display:block; }
  .ap-mat:hover .ap-mat-go { color:var(--accent-ink); }
  .ap-gap { color:var(--warn); }

  /* ── two groups, because they are two different things ──
     What the profile answers is the same on every application and is edited
     in one place. What the *form* asks is this form's own and is edited here.
     A single list headed "The form" restated the card title and made the
     second kind look as fixed as the first. */
  .ap-grp { display:flex; flex-direction:column; gap:var(--space-3); }
  /* The prose that used to sit here ("Same on every application", "Editable ·
     saved for next time") is true but not worth a line of its own on every
     visit — it moved into the info bubble, which says it once to whoever
     asks. The edit affordance takes the end of the row. */
  .ap-grp-head { display:flex; align-items:center; gap:var(--space-2); min-height:30px; }
  .ap-grp-head .jd-sec-label { display:inline-flex; align-items:center;
                               gap:var(--space-1); }
  .ap-grp-head .edit-btn { margin-inline-start:auto; }

  /* One type treatment for every value. Present values used to be mono and
     small while missing ones were sans and base, so the column read as two
     different tables stacked on each other. */
  .ap-fixed dd { font-size:var(--text-base); color:var(--text-1); }
  .ap-fixed dd.ap-gap { color:var(--warn); }

  .ap-fld { display:flex; flex-direction:column; gap:var(--space-2);
            padding:var(--space-4); border:1px solid var(--border-subtle);
            border-radius:var(--radius-field); background:var(--surface-raised); }
  .ap-fld.is-todo { border-color:color-mix(in srgb, var(--amber) 45%, transparent);
                    background:var(--amber-soft); }
  .ap-fld-l { display:flex; align-items:flex-start; gap:var(--space-2);
              font-size:var(--text-base); font-weight:600; color:var(--text-1);
              line-height:1.45; }
  .ap-req { color:var(--danger); font-weight:700; flex:none; }
  .ap-fld-in { width:100%; }
  textarea.ap-fld-in { min-height:76px; resize:vertical; line-height:1.6;
                       padding:var(--space-3); }
  /* background-COLOR, not the shorthand: the shorthand resets background-image
     and takes the drop-list chevron with it. */
  .ap-fld.is-todo .ap-fld-in { background-color:var(--surface); }
  /* Some portals label a field with a whole sentence — Greenhouse asks about
     employment restrictions in 90 characters. Cap the label column so the
     values stay in a readable line rather than being pushed to the far edge. */
  /* The label column used to be 42ch, which parked every value against the
     right edge with a hand's width of nothing between them — and then wrapped
     the filenames anyway. Labels take what they need and no more; the value
     starts where the eye expects it. */
  .ap-fixed { grid-template-columns:minmax(0,26ch) minmax(0,1fr);
              gap:var(--space-3) var(--space-6); align-items:baseline; }
  .ap-fixed dt { overflow-wrap:anywhere; }
  .ap-fixed dd { overflow-wrap:anywhere; }
  @media (max-width:720px) { .ap-fixed { grid-template-columns:1fr;
                                         gap:var(--space-1) 0; }
                             .ap-fixed dd { margin-bottom:var(--space-3); } }

  /* The one editable thing on the page: an answer fixed here is fixed for
     every future application. */
  .ap-qa { display:flex; flex-direction:column; gap:var(--space-2); }
  .ap-q { font-size:var(--text-sm); font-weight:600; color:var(--text-1); }
  .ap-a { width:100%; min-height:64px; resize:vertical; padding:var(--space-3) var(--space-4);
          border-radius:var(--radius-field); border:1px solid var(--border);
          background:var(--surface-raised); color:var(--text-1);
          font:400 var(--text-sm)/1.6 var(--font-ui); }
  .ap-a:focus-visible { outline:2px solid var(--accent); outline-offset:1px;
                        border-color:var(--accent); }
  .ap-a-read { margin:0; padding:var(--space-3) var(--space-4); border-radius:var(--radius-field);
               background:var(--sunk); border:1px solid var(--border-subtle);
               color:var(--text-2); font-size:var(--text-sm); line-height:1.6;
               white-space:pre-wrap; }
  .ap-meta { display:flex; align-items:center; gap:var(--space-2); flex-wrap:wrap; }
  /* The source chip keeps the start of the line; the two acts sit at the end
     and travel together. They used to be loose children of a wrapping flex
     row, so a long line of help text between them pushed the second button
     onto a line of its own — the reason that text is now in the bubble. */
  .ap-meta-src { display:flex; align-items:center; gap:var(--space-1);
                 margin-inline-end:auto; min-width:0; }
  .ap-meta-acts { display:flex; align-items:center; gap:var(--space-2); flex:none; }
  /* What the record could not back, shown before it goes out (issue 052).
     Amber, not red: a reworded true fact lands here too, so it reads as
     "look at this", never as an error. */
  .doc-checks { display:flex; flex-direction:column; gap:var(--space-1);
                padding:var(--space-2) var(--space-3); border-radius:var(--radius-field);
                background:var(--amber-soft); color:var(--text-1); font-size:var(--text-xs); }
  .doc-checks-h { display:flex; align-items:center; gap:var(--space-1);
                  color:var(--amber-ink); font-weight:600; }
  .doc-checks ul { margin:0; padding-inline-start:1.1em; display:flex;
                   flex-direction:column; gap:2px; line-height:1.5; }
  /* Smaller than a page control, because they act on one field rather than
     the page. The 38px band is for things that commit. */
  .btn-mini { height:30px; padding-inline:var(--space-3); font-size:var(--text-xs);
              gap:6px; }
  .btn-mini svg { width:13px; height:13px; }
  .ap-saved { font-size:var(--text-xs); color:var(--ok); }

  /* The fill report: three counts that have to read as one whole, so they
     are a proportion before they are numbers. */
  .ap-bar { display:flex; height:10px; border-radius:var(--radius-pill);
            overflow:hidden; background:var(--track); }
  .ap-bar i { display:block; height:100%; }
  .ap-bar i.is-ok { background:var(--ok); }
  .ap-bar i.is-you { background:var(--warn); }
  .ap-bar i.is-gone { background:var(--danger); }
  .ap-key { display:flex; gap:var(--space-4); flex-wrap:wrap;
            font-size:var(--text-sm); color:var(--text-2); }
  .ap-key span { display:inline-flex; align-items:center; gap:6px; }
  .ap-key .dot { width:8px; height:8px; border-radius:50%; flex:none; }
  .ap-key .dot.is-ok { background:var(--ok); }
  .ap-key .dot.is-you { background:var(--warn); }
  .ap-key .dot.is-gone { background:var(--danger); }
  .ap-detail { margin:0; padding-inline-start:18px; font-size:var(--text-sm);
               color:var(--text-2); line-height:1.8; }
  .ap-detail code { font-family:var(--font-mono); font-size:.92em; color:var(--text-1); }

  /* ── The document panel ──
     The résumé or the letter, beside the application that uses it, in place
     of the standalone page it replaced. A column whose height the viewport
     decides: the controls sit at the top and the viewer takes the rest. */
  /* A definite height, not a max: the viewer below fills what the controls
     leave, and `height:100%` needs something to resolve against. */
  .doc-panel { position:sticky; top:calc(var(--header-h) + var(--space-3));
               display:flex; flex-direction:column;
               height:calc(100vh - var(--header-h) - var(--space-5));
               background:var(--surface); border:1px solid var(--border-subtle);
               border-radius:var(--radius-card); box-shadow:var(--lift-2);
               overflow:hidden; }
  .dp-head { display:flex; align-items:center; gap:var(--space-2);
             padding:var(--space-3) var(--space-4); background:var(--sunk);
             border-bottom:1px solid var(--border-subtle); }
  .dp-title { flex:none; font:600 var(--text-sm) var(--font-ui); }
  /* What the recruiter's downloads folder will call it (src/docname.py). */
  .dp-file { flex:1; min-width:0; font:400 var(--text-xs) var(--font-mono);
             color:var(--text-3); overflow:hidden; text-overflow:ellipsis;
             white-space:nowrap; }
  .dp-empty { padding:var(--space-5) var(--space-4) 0; }

  /* Two rows rather than three, so the viewer below gets the height back. */
  .dp-ctl { padding:var(--space-3) var(--space-4); border-bottom:1px solid var(--border-subtle); }
  .dp-checks { margin:var(--space-3) var(--space-4) 0; flex:none; }
  .dp-make { display:flex; flex-direction:column; gap:var(--space-2); }
  .dp-row { display:flex; align-items:center; gap:var(--space-3); flex-wrap:wrap; }
  /* Tone and Generate belong to the version they make, so they end the row the
     versions start. Same control height as everything else. */
  .dp-make-acts { margin-inline-start:auto; display:flex; align-items:center;
                  gap:var(--space-2); }
  .dp-make-acts .select { width:auto; min-width:148px; }
  .dp-row.is-guide { align-items:flex-start; }
  .dp-vers { display:inline-flex; gap:var(--space-1); background:var(--canvas);
             padding:3px; border-radius:var(--radius-pill); }
  .dp-ver { height:26px; padding-inline:var(--space-3); border-radius:var(--radius-pill);
            border:1px solid transparent; background:transparent; color:var(--text-2);
            font:500 var(--text-xs) var(--font-ui); cursor:pointer; }
  .dp-ver[aria-pressed="true"] { background:var(--surface); color:var(--text-1);
                                 border-color:var(--border-subtle); box-shadow:var(--lift-1); }
  .dp-ver:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
  /* Confidence was a coloured dot and a bare percentage — false precision
     about a judgement. Three segments and a word carry the same decision;
     the number stays on the title for anyone who wants it. */
  .dp-conf { display:inline-flex; align-items:center; gap:var(--space-2); flex:none; }
  .dp-conf-track { display:flex; gap:2px; width:44px; }
  .dp-conf-track i { flex:1; height:4px; border-radius:1px; background:var(--track); }
  .dp-conf-l { font:500 var(--text-xs) var(--font-ui); color:var(--text-2); }
  .dp-conf.is-high .dp-conf-track i { background:var(--ok); }
  .dp-conf.is-mid .dp-conf-track i:nth-child(-n+2) { background:var(--amber); }
  .dp-conf.is-low .dp-conf-track i:nth-child(1) { background:var(--danger); }

  /* Its own row with room to open into, rather than wedged against the
     buttons it used to sit under. */
  .dp-guide { flex:1 1 auto; min-width:0; }
  .dp-guide summary { cursor:pointer; list-style:none; display:flex; align-items:center;
                      gap:6px; font-size:var(--text-sm); color:var(--text-2);
                      padding-block:var(--space-2); }
  .dp-guide summary:hover { color:var(--text-1); }
  .dp-guide-in { display:flex; flex-direction:column; gap:var(--space-2);
                 padding:var(--space-1) 0 var(--space-3); }
  .dp-guide summary::-webkit-details-marker { display:none; }
  .dp-guide summary:focus-visible { outline:2px solid var(--accent); outline-offset:2px;
                                    border-radius:var(--radius-ctl); }
  .dp-guide .chev { color:var(--text-3); display:grid; place-items:center;
                    transition:transform var(--dur-1) var(--ease); }
  .dp-guide .chev svg { width:13px; height:13px; display:block; }
  .dp-guide[open] .chev { transform:rotate(90deg); }
  .dp-guide textarea { width:100%; margin:0; resize:vertical;
                       padding:var(--space-3) var(--space-4); border-radius:var(--radius-field);
                       border:1px solid var(--border); background:var(--surface-raised);
                       color:var(--text-1); font:400 var(--text-sm)/1.6 var(--font-ui); }
  .dp-guide textarea:focus-visible { outline:2px solid var(--accent); outline-offset:1px;
                                     border-color:var(--accent); }
  .dp-row { display:flex; align-items:center; gap:var(--space-3); flex-wrap:wrap; }
  /* Versions, support, the pill and Generate on one line. The support label is
     what gives way when the panel is narrow; the controls do not wrap. A letter
     also carries a tone menu, which is too wide to promise this for. */
  .dp-row.is-one { flex-wrap:nowrap; }
  .dp-row.is-one .dp-conf { flex:0 1 auto; min-width:0; }
  .dp-row.is-one .dp-conf-l { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .dp-row.is-one .jd-flag, .dp-row.is-one .dp-vers, .dp-row.is-one .dp-make-acts { flex:none; }
  .dp-left { margin-inline-start:auto; font-size:var(--text-xs); color:var(--text-3); }
  .dp-left.is-spent { color:var(--danger); }

  /* Round, and the same height as the button beside it. It was 30px against a
     38px Generate, which is exactly the kind of near-miss that reads as
     unfinished — two controls that act together have to look like a pair. */
  .select.is-pill { border-radius:var(--radius-pill); height:var(--ctl-h);
                    padding-inline:var(--space-4) var(--space-5);
                    font-size:var(--text-sm); }

  /* The viewer takes whatever the controls leave. */
  .dp-pdf { flex:1 1 auto; min-height:0; background:var(--canvas); display:flex; }

  /* ── the reader, given the whole window ──
     A sticky side panel can never be taller than the viewport it sticks to,
     and proof-reading a page of your own prose wants every pixel. This takes
     the panel out of the grid and over the page instead of trying to grow it
     in place. */
  .dp-scrim { position:fixed; inset:0; z-index:59; background:var(--scrim);
              backdrop-filter:blur(2px); }
  body.dp-full .doc-panel { position:fixed; inset:var(--space-4); z-index:60;
                            height:auto; max-width:none;
                            box-shadow:var(--lift-3); }
  /* Capped rather than full-bleed. FitH scales the page to its container, so
     an unbounded width renders an A4 page two viewports tall and you see a
     third of it. This is the trade the button is for: bigger text than the
     side panel, still most of the page in view. */
  body.dp-full .dp-pdf { justify-content:center; }
  body.dp-full .dp-pdf embed { max-width:min(100%, 820px); }
  .jd-act .ic-min { display:none; }
  [data-doc-max][aria-pressed="true"] .ic-max { display:none; }
  [data-doc-max][aria-pressed="true"] .ic-min { display:block; }
  @media (max-width:767px) {
    body.dp-full .doc-panel { inset:var(--space-2); }
  }
  .dp-pdf embed { flex:1 1 auto; min-height:0; width:100%; border:none; }

  .ap-foot { display:flex; align-items:center; justify-content:space-between;
             gap:var(--space-4); flex-wrap:wrap; }

  /* ============================== Job detail (page-specific) ============================== */
  /* The third view of the jobs dataset. .jl-* is the list, .pb-* the board,
     .jd-* a single job — same vocabulary at a third scale: indigo for ground
     covered, amber where a milestone landed.
     job-breadbar / job-hero-meta / job-company / job-dot below are shared with
     apply.html and outlive this page's own markup. */
  .job-breadbar { display:flex; align-items:center; gap:var(--space-2);
                  font-size:var(--text-sm); margin-bottom:var(--space-3); }
  .job-breadbar a { color:var(--text-3); text-decoration:none; font-weight:500; }
  .job-breadbar a:hover { color:var(--accent); }
  .job-hero-meta { display:flex; align-items:center; gap:var(--space-2);
                   flex-wrap:wrap; font-size:var(--text-base); color:var(--text-2);
                   margin-bottom:var(--space-4); }
  .job-company { font-weight:600; color:var(--text-1); text-decoration:none; }
  .job-company:hover { color:var(--accent); }
  .job-dot { color:var(--text-3); }

  /* ── top bar: the return, then the role ──
     `.back-link` is the name to use on new markup; `.jd-back` is the original
     and stays as an alias. The Companies dossier and the profile both wear it
     now, so it is the app's return control rather than a job's. Where a page
     cannot know where you came from — /profile is reached from the account
     menu, from anywhere — it names a destination instead of guessing at a
     history, because a link that always goes where it says beats one that
     sometimes does. */
  .back-link, .jd-back { align-self:center; display:inline-flex; align-items:center; gap:var(--space-2);
             flex:none; height:var(--ctl-h, 34px); padding:0 var(--space-4) 0 var(--space-3);
             border-radius:var(--radius-pill); border:1px solid var(--border-subtle);
             background:var(--surface); color:var(--text-2);
             font:500 var(--text-sm) var(--font-ui); text-decoration:none;
             transition:border-color var(--dur-1) var(--ease),
                        background var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
  .back-link svg, .jd-back svg { width:15px; height:15px; flex:none;
                 transition:transform var(--dur-2) var(--ease); }
  .back-link:hover, .jd-back:hover { background:var(--canvas); border-color:var(--border);
                   color:var(--text-1); text-decoration:none; }
  .back-link:hover svg, .jd-back:hover svg { transform:translateX(-2px); }
  /* The same control pointed the other way, for a card that hands you on to
     a fuller page. A link that leads somewhere should look like the thing
     that leads somewhere, not like a sentence in the corner. */
  .back-link.is-fwd, .jd-back.is-fwd { padding:0 var(--space-3) 0 var(--space-4); }
  .back-link.is-fwd:hover svg, .jd-back.is-fwd:hover svg { transform:translateX(2px); }
  .jd-back-view { font-size:var(--text-xs); color:var(--text-3);
                  padding-left:var(--space-2); margin-left:var(--space-1);
                  border-left:1px solid var(--border-subtle); }
  .jd-bar-sep { width:1px; height:18px; background:var(--border-subtle); flex:none;
                align-self:center; }
  /* Arrives only once the hero title has scrolled away — the role is never
     printed twice on one screen. */
  .jd-bar-title { align-self:center; min-width:0; font:500 var(--text-bar-title) var(--font-display);
                  color:var(--text-1); overflow:hidden; text-overflow:ellipsis;
                  white-space:nowrap; opacity:0; transform:translateY(6px);
                  pointer-events:none;
                  transition:opacity var(--dur-2) var(--ease),
                             transform var(--dur-2) var(--ease); }
  .jd-bar-title.show { opacity:1; transform:none; }
  .jd-bar-title small { color:var(--text-3); font-weight:400; }

  /* The same device, for any page that opts in with `data-dock-title`.
     Job detail and the profile each had their own copy, which is why the role
     page and the target helper went without one. */
  .bar-sep { width:1px; height:18px; background:var(--border-subtle); flex:none;
             align-self:center; }
  .bar-title { align-self:center; min-width:0; font:500 var(--text-bar-title) var(--font-display);
               color:var(--text-1); overflow:hidden; text-overflow:ellipsis;
               white-space:nowrap; opacity:0; transform:translateY(6px);
               pointer-events:none;
               transition:opacity var(--dur-2) var(--ease),
                          transform var(--dur-2) var(--ease); }
  .bar-title.show { opacity:1; transform:none; }
  .bar-title small { color:var(--text-3); font-weight:400; }
  /* The page's own name, always there. `align-self` because the bar is a flex
     row whose items are stretched by default, so an unstyled span sat at the
     top of the row instead of on the button's line. */
  .bar-name { align-self:center; min-inline-size:0; white-space:nowrap;
              font:500 var(--text-bar-title) var(--font-display); color:var(--text-1); }

  .jd-inline { display:inline-flex; }
  .jd-ico { width:30px; height:30px; padding:0; border:1px solid transparent;
            border-radius:var(--radius-pill); background:transparent; color:var(--text-3);
            display:grid; place-items:center; cursor:pointer;
            transition:background var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
  .jd-ico:hover { background:var(--canvas); color:var(--text-1); }
  .jd-ico svg { width:16px; height:16px; }
  .jd-star.on { color:var(--amber); }
  .jd-star.on svg { fill:var(--amber); }

  .jd-anchor { position:relative; display:inline-flex; }
  .menu, .jd-menu { position:absolute; top:calc(100% + 6px); inset-inline-end:0; min-width:216px;
             z-index:60; padding:var(--space-1); background:var(--surface-raised);
             border:1px solid var(--border-subtle); border-radius:var(--radius-card);
             box-shadow:var(--shadow-float); opacity:0; visibility:hidden;
             transform:translateY(-4px) scale(.98); transform-origin:top right;
             transition:opacity var(--dur-1) var(--ease), transform var(--dur-1) var(--ease),
                        visibility var(--dur-1); }
  .menu.open, .jd-menu.open { opacity:1; visibility:visible; transform:none; }
  /* :not(.btn) throughout — a menu row and a control are two different
     things that both happen to be <button>. This rule is the row: full width,
     no border, --radius-ctl, label to the start. A .btn inside a menu is a
     control the row happens to carry (Read again, in the import history), and
     without the guard this squared it off and stretched it, quietly breaking
     the one rule the buttons section states outright — .btn is pill-shaped
     app-wide. */
  .menu button:not(.btn), .jd-menu button:not(.btn) { display:flex; align-items:center; gap:var(--space-3); width:100%;
                    padding:8px var(--space-3); border:none; background:transparent;
                    color:var(--text-1); font:400 var(--text-sm) var(--font-ui);
                    text-align:start; border-radius:var(--radius-ctl); cursor:pointer;
                    transition:background var(--dur-1) var(--ease); }
  /* Mixing against the ink rather than painting var(--canvas): canvas is
     *darker* than a raised surface in dark mode, so hovering a dark menu used
     to paint a darker patch on dark — a highlight you cannot see. This
     darkens on light and lightens on dark, from one declaration. */
  .menu button:not(.btn):hover, .menu button:not(.btn):focus-visible,
  .jd-menu button:not(.btn):hover,
  .jd-menu button:not(.btn):focus-visible { background:color-mix(in srgb, var(--text-1) 9%, transparent);
                                  outline:none; }
  .menu button:not(.btn):focus-visible, .jd-menu button:not(.btn):focus-visible { box-shadow:inset 0 0 0 2px var(--accent); }
  .menu button:not(.btn):active, .jd-menu button:not(.btn):active { background:color-mix(in srgb, var(--text-1) 15%, transparent); }
  .menu button:not(.btn)[disabled], .jd-menu button:not(.btn)[disabled] { opacity:.45; cursor:not-allowed; }
  .menu button:not(.btn) svg, .jd-menu button:not(.btn) svg { width:15px; height:15px; flex:none; color:var(--text-3); }
  .menu button:not(.btn):hover svg, .jd-menu button:not(.btn):hover svg { color:var(--text-2); }
  .menu-div, .jd-mdiv { height:1px; background:var(--border-subtle); margin:var(--space-1) 0; }
  /* Opening from a control at the *start* of a bar rather than the end: the
     default right-anchors, which pushes a left-hand menu off its own toolbar. */
  .menu.start, .jd-menu.start { inset-inline-start:0; inset-inline-end:auto;
                                transform-origin:top left; }
  /* A group label. `.jl-menu` had one and this family did not, which is the
     only reason the staged page was still using the older menu. */
  .menu-head { padding:var(--space-2) var(--space-3) var(--space-1);
               font:400 var(--text-xs) var(--font-mono); letter-spacing:.12em;
               text-transform:uppercase; color:var(--text-3); }
  .menu button:not(.btn).danger, .menu button:not(.btn).danger svg { color:var(--danger); }
  /* A row that is read, not pressed — the scan history list. It keeps the
     menu's rhythm without claiming to be a control. */
  .menu-row { display:flex; align-items:baseline; gap:var(--space-3);
              padding:7px var(--space-3); font-size:var(--text-sm); }
  .menu-row + .menu-row { border-block-start:1px solid var(--border-subtle); }
  /* A mark at the end of a row — the density menu's tick against the option
     that is on. `.jl-menu` had this and the family it moved to did not. */
  .menu .trail, .jd-menu .trail { margin-inline-start:auto; color:var(--text-3);
                                  font-size:var(--text-sm); }
  /* The board's move menu is built in JS and positioned against the body, so
     it sets its own `left`; the family's right-anchoring would fight it. */
  .pb-movemenu { inset-inline-end:auto; }

  /* ── hero ── */
  .jd { --jd-gutter:clamp(16px, 3vw, 40px); margin:calc(var(--space-5) * -1);
        margin-bottom:0; }
  .jd-hero { padding:var(--space-8) var(--jd-gutter) var(--space-6);
             background:var(--surface); border-bottom:1px solid var(--border-subtle); }
  .jd-hero-in { max-width:1180px; margin-inline:auto; }
  .jd-eyebrow { display:flex; align-items:center; gap:var(--space-2); flex-wrap:wrap;
                margin-bottom:var(--space-3); }
  .jd-co { display:inline-flex; align-items:center; gap:var(--space-2); }
  .jd-co-mark { width:26px; height:26px; border-radius:var(--radius-ctl); flex:none;
                display:grid; place-items:center; color:#fff;
                font:700 11px var(--font-ui); letter-spacing:.02em; }
  .jd-co-name { font-weight:600; color:var(--text-1); font-size:var(--text-base);
                text-decoration:none; }
  a.jd-co-name:hover { color:var(--accent-ink); text-decoration:none; }
  .jd-dot { color:var(--text-3); }
  .jd-meta { font-size:var(--text-sm); color:var(--text-2); }
  .jd-chip { display:inline-flex; align-items:center; gap:5px; padding:2px var(--space-2);
             border-radius:var(--radius-pill); background:var(--canvas);
             border:1px solid var(--border-subtle); color:var(--text-2);
             font-size:var(--text-xs); font-weight:600; }
  .jd-role { margin:0; font-family:var(--font-display); font-weight:400;
             font-size:clamp(26px, 3.1vw, 40px); line-height:1.08; letter-spacing:-.018em;
             color:var(--text-1); text-wrap:balance; max-width:22ch; }
  .jd-lede { margin:var(--space-3) 0 0; font-size:var(--text-lg); line-height:1.5;
             color:var(--text-2); max-width:62ch; }
  /* "Needs a look" — a pill that stays and a bubble that folds away. */
  .jd-flag { position:relative; display:inline-flex; }
  .jd-flag-pill { display:inline-flex; align-items:center; gap:6px; height:26px; padding:0 11px 0 9px; border:0;
                  border-radius:var(--radius-pill); background:var(--amber-soft); color:var(--amber-ink);
                  font:600 var(--text-sm) var(--font-ui); cursor:pointer; position:relative;
                  transition:background var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease); }
  .jd-flag-pill:hover { background:var(--warn-bg); }
  .jd-flag-pill svg { width:13px; height:13px; }
  .jd-flag-pill[aria-expanded="true"] { box-shadow:0 0 0 1px color-mix(in srgb, var(--amber) 45%, transparent); }
  .jd-flag-pill.nudge::after { content:""; position:absolute; inset:0; border-radius:inherit;
                               border:1px solid color-mix(in srgb, var(--amber) 60%, transparent);
                               animation:jd-flag-ring .9s ease-out 1; pointer-events:none; }
  @keyframes jd-flag-ring { from { opacity:.9; transform:scale(1); } to { opacity:0; transform:scale(1.45); } }
  .jd-flag-bub { position:absolute; top:calc(100% + 10px); inset-inline-start:-8px; z-index:20;
                 width:min(360px, calc(100vw - 48px)); padding:14px 16px 22px;
                 background:var(--surface-raised); border:1px solid var(--border-subtle);
                 border-radius:var(--radius-card); box-shadow:var(--shadow-float);
                 transform-origin:24px -6px; opacity:0; transform:scale(.86) translateY(-6px);
                 visibility:hidden; pointer-events:none;
                 transition:opacity .22s var(--ease), transform .3s cubic-bezier(.2,.9,.3,1.2), visibility 0s .3s; }
  .jd-flag-bub.open { opacity:1; transform:none; visibility:visible; pointer-events:auto; transition-delay:0s; }
  .jd-flag-bub::before { content:""; position:absolute; top:-6px; inset-inline-start:26px; width:11px; height:11px;
                         background:var(--surface-raised); transform:rotate(45deg);
                         border-inline-start:1px solid var(--border-subtle); border-top:1px solid var(--border-subtle); }
  .jd-flag-h { display:block; margin-bottom:6px; font-size:var(--text-sm); color:var(--amber-ink); }
  .jd-flag-bub p, .jd-flag-bub li { margin:0; font-size:var(--text-sm); line-height:1.5; color:var(--text-1); }
  .jd-flag-bub ul { margin:0; padding-inline-start:18px; display:flex; flex-direction:column; gap:3px; }
  .jd-flag-x { position:absolute; top:8px; inset-inline-end:8px; width:26px; height:26px; border:0; padding:0;
               border-radius:50%; background:transparent; color:var(--text-3); cursor:pointer;
               display:grid; place-items:center; }
  .jd-flag-x:hover { background:var(--sunk); color:var(--text-1); }
  .jd-flag-count { position:absolute; inset-inline:16px; bottom:9px; height:2px; border-radius:2px;
                   background:var(--amber); transform-origin:left; }
  .jd-flag-bub.open .jd-flag-count { animation:jd-flag-drain var(--flag-hold, 5s) linear forwards; }
  .jd-flag-bub.held .jd-flag-count { animation-play-state:paused; }
  @keyframes jd-flag-drain { to { transform:scaleX(0); } }
  /* In the résumé panel the pill sits mid-row, so shell.js fits the bubble to
     the panel (width, left edge and where the arrow points). Two kinds of note
     share it: what the record could not back, and what the writer could not do. */
  .jd-flag-bub::before { inset-inline-start:var(--arrow-x, 26px); }
  .jd-flag-sec + .jd-flag-sec { margin-top:var(--space-3); padding-top:var(--space-3);
                                border-top:1px solid var(--border-subtle); }
  .jd-flag-sec .jd-flag-h { padding-inline-end:28px; }
  .jd-flag-sub { margin:0 0 6px; font-size:var(--text-xs); color:var(--text-3); line-height:1.45; }
  .jd-flag-bub ul { list-style:disc; }
  .jd-flag-bub li::marker { color:color-mix(in srgb, var(--amber) 70%, transparent); }
  .jd-flag-sec ul { gap:6px; }
  @media (prefers-reduced-motion:reduce) {
    .jd-flag-bub, .jd-flag-pill { transition:none; }
    .jd-flag-pill.nudge::after { animation:none; }
    .jd-flag-bub.open .jd-flag-count { animation:none; transform:scaleX(.5); }
  }

  /* ── the ascent rail, hero scale ── */
  .jd-ascent { margin-top:var(--space-8); display:flex; align-items:flex-end;
               gap:var(--space-6); flex-wrap:wrap; }
  /* Two rows, one grid — the pips on the first, the labels on the second,
     aligned by construction rather than by every column happening to be the
     same height.

     It was seven flex columns, each stacking its own line above its own
     label, and that only lines up while the columns agree on height. They do
     not: a stage you have reached carries a date under its name and a stage
     ahead of you carries nothing, so the shorter half of the rail drifted out
     of line with the taller half. `display:contents` hands the two halves of
     each stage straight to this grid, so the row a pip lands in is decided
     here and cannot depend on the label beneath it. */
  .jd-arail { flex:1 1 460px; min-width:0;
              display:grid; grid-auto-flow:column; grid-auto-columns:1fr;
              grid-template-rows:auto auto; align-items:start;
              row-gap:var(--space-2); }
  .jd-astage { display:contents; }
  .jd-astage-line { display:flex; align-items:center; width:100%;
                    min-height:13px; }
  .jd-pip { width:9px; height:9px; border-radius:50%; background:var(--track); flex:none; }
  .jd-link { height:1.5px; flex:1; background:var(--track); }
  .jd-astage.done .jd-pip, .jd-astage.done .jd-link { background:var(--accent-ink); }
  .jd-astage.done.ms .jd-pip { background:var(--amber);
                               box-shadow:0 0 0 4px var(--amber-soft); }
  .jd-astage.here .jd-pip { width:13px; height:13px; margin:-2px 0; background:var(--surface);
                            border:3.5px solid var(--accent-ink); }
  .jd-astage.here.ms .jd-pip { border-color:var(--amber);
                               box-shadow:0 0 0 5px var(--amber-soft); }
  /* Left the rail rather than pausing on it, so the ground covered goes quiet. */
  .jd-astage.off .jd-pip, .jd-astage.off .jd-link { background:var(--gap-neutral);
                                                    box-shadow:none; }
  .jd-astage.off.here .jd-pip { border-color:var(--gap-neutral); }
  .jd-astage-lbl { font-size:var(--text-sm); color:var(--text-3);
                   padding-inline-end:var(--space-3); }
  .jd-astage.done .jd-astage-lbl { color:var(--text-2); }
  .jd-astage.here .jd-astage-lbl { color:var(--text-1); font-weight:600; }
  .jd-astage-ts { display:block; margin-top:1px; font-size:var(--text-xs);
                  color:var(--text-3); font-variant-numeric:tabular-nums; }
  .jd-ascent-side { flex:none; display:flex; align-items:center; gap:var(--space-3); }
  .jd-owed { display:inline-flex; align-items:center; gap:5px;
             font-size:var(--text-sm); font-weight:600; color:var(--amber-ink); }
  .jd-owed svg { width:14px; height:14px; flex:none; }
  .jd-outcome { display:inline-flex; align-items:center; padding:3px var(--space-3);
                border-radius:var(--radius-pill); background:var(--canvas);
                border:1px solid var(--border-subtle); color:var(--text-2);
                font-size:var(--text-sm); font-weight:600; }
  .jd-when { font-size:var(--text-sm); color:var(--text-3); }
  .jd-when.soon { color:var(--amber-ink); font-weight:600; }
  .jd-when.idle { color:var(--text-2); }

  /* ── body: the story left, the kit right ── */
  .jd-body { max-width:1180px; margin-inline:auto;
             padding:var(--space-6) var(--jd-gutter) var(--space-10);
             display:grid; grid-template-columns:minmax(0,1fr) 336px;
             gap:var(--space-8); align-items:start; }
  .jd-main { min-width:0; }
  .jd-sec { margin-bottom:var(--space-8); scroll-margin-top:calc(var(--header-h) + 12px); }
  .jd-sec:last-child { margin-bottom:0; }
  /* A section head that follows a block needs room to be a *new* section.
     This carried `margin-bottom` only, so every eyebrow in the app sat flush
     against whatever preceded it and read as a caption on the block above
     rather than a heading for the one below. The `:first-child` guard keeps
     the first head in a container from pushing the page down. */
  /* A section head is a new subject, and it needs the air to say so. 32px
     above a card was tight enough to read as part of the card it followed —
     40 is the standard now, and every section in the app takes it. */
  .sec-head, .jd-sec-head { display:flex; align-items:baseline; gap:var(--space-3);
                 margin-block-start:var(--space-10); margin-bottom:var(--space-4); }
  /* Only at the very top of the content. A section head that opens a wrapper
     halfway down the page is still following something, so it keeps its air —
     `:first-child` alone zeroed those too. */
  .shell-content > .sec-head:first-child,
  .shell-content > *:first-child > .sec-head:first-child,
  .jd-sec-head:first-child { margin-block-start:0; }
  .sec-label, .jd-sec-label { font-family:var(--font-mono); font-size:var(--text-xs); font-weight:500;
                  letter-spacing:.12em; text-transform:uppercase; color:var(--text-3); }
  .sec-rest, .jd-sec-rest { margin-inline-start:auto; font-size:var(--text-sm); color:var(--text-3); }
  /* The note reads as a sentence, so it opens with a capital in every locale
     without every catalog string having to. A flex item is a block box, which
     is what ::first-letter needs. */
  .sec-rest::first-letter, .jd-sec-rest::first-letter { text-transform:uppercase; }
  /* Straight under the admin tabs, a head is the page's opening line — the
     Dashboard's subtitle sits that close — not a new subject mid-page. */
  .adm-tabs + .sec-head,
  .adm-tabs + * > .sec-head:first-child { margin-block-start:var(--space-2); }
  /* Settings tabs that open on a head sit as close as Billing, which opens on
     a card: the tab track's own margin is the whole gap. */
  .set-tabs + .set-section > .sec-head:first-child { margin-block-start:0; }

  /* ── the fit ── */
  .jd-fit { display:flex; gap:var(--space-6); align-items:flex-start; }
  /* An arc rather than a conic gradient. A gradient's sweep ends in a hard
     radial edge and there is nothing to round; a stroked circle has caps.
     `pathLength="100"` on the arc lets the dash array be the percentage
     itself, so nothing has to know 2πr. */
  .jd-ring { --jd-pct:0; width:76px; height:76px; flex:none; position:relative;
             display:grid; place-items:center; }
  .jd-ring svg { position:absolute; inset:0; width:100%; height:100%;
                 transform:rotate(-90deg); overflow:visible; }
  .jd-trk { fill:none; stroke:var(--track); stroke-width:7; }
  .jd-arc { fill:none; stroke:var(--jd-ring-c, var(--accent-ink)); stroke-width:7;
            stroke-linecap:round;
            stroke-dasharray:calc(var(--jd-pct)) 100;
            transition:stroke-width var(--dur-2) var(--ease),
                       filter var(--dur-2) var(--ease); }
  /* The inflate: the arc thickens and lifts off the track, the figure grows a
     hair. Nothing changes the ring's box, so a column of them cannot reflow
     as the pointer crosses it. */
  .jd-ring:hover .jd-arc,
  .jd-ring:focus-visible .jd-arc {
    stroke-width:9;
    filter:drop-shadow(0 2px 5px color-mix(in srgb, var(--jd-ring-c, var(--accent-ink)) 45%, transparent)); }
  .jd-ring:hover b, .jd-ring:focus-visible b { transform:scale(1.06); }
  .jd-ring b { position:relative; z-index:1; font:700 var(--text-xl) var(--font-ui);
               color:var(--jd-ring-c, var(--accent-ink)); font-variant-numeric:tabular-nums;
               transition:transform var(--dur-2) var(--ease); }
  .jd-ring b i { font-size:11px; font-style:normal; opacity:.6; }
  .jd-ring.is-high { --jd-ring-c:var(--ok); }
  .jd-ring.is-mid  { --jd-ring-c:var(--amber); }
  .jd-ring.is-low  { --jd-ring-c:var(--gap-neutral); }
  .jd-ring.is-none { background:var(--canvas); border:1px dashed var(--border);
                     border-radius:50%; color:var(--text-3); }
  /* The unscored state has no arc — its svg is the placeholder glyph, which
     must not inherit the arc's absolute fill of the ring. */
  .jd-ring.is-none svg { position:static; width:26px; height:26px; transform:none; }
  @media (prefers-reduced-motion:reduce) {
    .jd-arc, .jd-ring b { transition:none; }
    .jd-ring:hover b, .jd-ring:focus-visible b { transform:none; }
  }
  .jd-fit-txt { flex:1 1 auto; min-width:0; }
  .jd-fit-verdict { margin:0 0 var(--space-2); font:600 var(--text-lg) var(--font-ui);
                    color:var(--text-1); }
  .jd-fit-read { margin:0 0 var(--space-4); color:var(--text-2); line-height:1.6;
                 max-width:58ch; }

  /* What the score was made of. Amber filled for what landed, hollow neutral
     for what did not — the rail's two colours, at sentence scale. */
  .jd-evi { list-style:none; margin:0 0 var(--space-5); padding:0;
            display:flex; flex-direction:column; gap:var(--space-2); max-width:62ch; }
  .jd-evi li { display:flex; align-items:flex-start; gap:var(--space-2);
               font-size:var(--text-sm); line-height:1.5; color:var(--text-2); }
  .jd-evi svg { width:14px; height:14px; flex:none; margin-top:3px; }
  .jd-evi .is-hit, .jd-evi li.is-hit svg { color:var(--amber); }
  .jd-evi li.is-hit { color:var(--text-2); }
  .jd-evi li.is-gap svg { color:var(--gap-neutral); }
  .jd-evi b { color:var(--text-1); font-weight:600; }

  .jd-rescore { display:flex; align-items:center; gap:var(--space-3); flex-wrap:wrap; }
  .jd-allowance { font-size:var(--text-xs); color:var(--text-3);
                  font-variant-numeric:tabular-nums; }
  .jd-allowance.is-spent { color:var(--gap-neutral); }

  /* ── the posting ── */
  .jd-posting { position:relative; }
  .jd-posting-text { font-size:var(--text-base); line-height:1.7;
                     color:var(--text-2); max-width:68ch; }
  /* Paragraphs and bullets as the posting wrote them; `strong` keeps its bold
     but reads as text, not as a heading, so it takes the body colour up a step. */
  .jd-posting-text p { margin:0 0 var(--space-3); }
  .jd-posting-text ul { margin:0 0 var(--space-3); padding-inline-start:var(--space-5); }
  .jd-posting-text li { margin:0 0 var(--space-1); }
  .jd-posting-text strong { color:var(--text-1); font-weight:600; }
  /* Long postings used to run the page to several screens before anything
     actionable; the fade is the affordance. */
  .jd-posting.is-clipped { max-height:280px; overflow:hidden; }
  .jd-posting.is-clipped::after { content:""; position:absolute; inset-inline:0;
                                  bottom:0; height:120px; pointer-events:none;
                                  background:linear-gradient(to bottom, transparent,
                                                             var(--surface)); }
  .jd-posting-more { display:flex; align-items:center; gap:var(--space-2);
                     margin-top:var(--space-4); flex-wrap:wrap; }

  /* ── the trail: one chronology, one composer ── */
  .jd-log { display:flex; gap:var(--space-3); flex-wrap:wrap; align-items:center;
            margin-bottom:var(--space-5); }
  /* Pill-shaped, like every other control on the warm surfaces. */
  .jd-pill { height:38px; padding:0 var(--space-4); border-radius:var(--radius-pill);
             border:1px solid var(--border); background:var(--surface);
             color:var(--text-1); font:400 var(--text-base) var(--font-ui);
             outline:none; min-width:0;
             transition:border-color var(--dur-1) var(--ease),
                        box-shadow var(--dur-1) var(--ease); }
  .jd-pill:hover { border-color:var(--text-3); }
  .jd-pill:focus { border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft); }
  .jd-pill::placeholder { color:var(--text-3); }
  select.jd-pill { appearance:none; -webkit-appearance:none; cursor:pointer;
                   padding-inline-end:var(--space-8);
                   background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
                   background-repeat:no-repeat; background-size:15px;
                   background-position:right var(--space-4) center; }
  [dir="rtl"] select.jd-pill { background-position:left var(--space-4) center; }
  /* "Log an interaction" scrolls here; if the composer was already on screen
     that reads as nothing happening, so it says it is the thing being meant. */
  .jd-log.is-called .jd-pill { animation:jdCalled 1.1s var(--ease); }
  @keyframes jdCalled { 0%, 100% { border-color:var(--border); box-shadow:none; }
                        25% { border-color:var(--accent);
                              box-shadow:0 0 0 4px var(--accent-soft); } }
  .jd-log-kind { flex:0 0 auto; }
  .jd-log-note { flex:1 1 240px; }
  .jd-log .btn { height:38px; padding-inline:var(--space-5); }
  .jd-tl { position:relative; padding-inline-start:22px; }
  .jd-tl::before { content:""; position:absolute; inset-inline-start:5px; top:6px; bottom:6px;
                   width:1.5px; background:linear-gradient(to bottom, var(--track),
                                                           var(--border-subtle)); }
  .jd-tl-item { position:relative; padding-bottom:var(--space-5); }
  .jd-tl-item:last-child { padding-bottom:0; }
  .jd-tl-item::before { content:""; position:absolute; inset-inline-start:-21px; top:5px;
                        width:9px; height:9px; border-radius:50%;
                        background:var(--track); border:2px solid var(--surface); }
  .jd-tl-item.is-you::before { background:var(--accent-ink); }
  .jd-tl-item.is-them::before { background:var(--amber); }
  .jd-tl-t { font-weight:600; color:var(--text-1); }
  .jd-tl-d { margin-top:2px; font-size:var(--text-sm); color:var(--text-2);
             line-height:1.55; white-space:pre-wrap; }
  .jd-tl-w { display:flex; align-items:center; gap:var(--space-2); margin-top:3px;
             font-size:var(--text-xs); color:var(--text-3);
             font-variant-numeric:tabular-nums; }
  .jd-tl-del { width:20px; height:20px; padding:0; border:none; background:transparent;
               color:var(--text-3); border-radius:var(--radius-ctl); cursor:pointer;
               display:grid; place-items:center; opacity:0;
               transition:opacity var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
  .jd-tl-del svg { width:13px; height:13px; }
  .jd-tl-item:hover .jd-tl-del, .jd-tl-del:focus-visible { opacity:1; }
  .jd-tl-del:hover { color:var(--danger); }
  .jd-empty { margin:0; padding:var(--space-5) 0; text-align:center;
              font-size:var(--text-sm); color:var(--text-3); }

  /* ── the kit ── */
  .jd-kit { position:sticky; top:calc(var(--header-h) + var(--space-4));
            display:flex; flex-direction:column; gap:var(--space-5); }
  .jd-kit-card { background:var(--surface); border:1px solid var(--border-subtle);
                 border-radius:var(--radius-card); box-shadow:var(--lift-1);
                 overflow:hidden; }
  .jd-kit-head { display:flex; align-items:center; gap:var(--space-2);
                 padding:var(--space-3) var(--space-4); background:var(--sunk);
                 border-bottom:1px solid var(--border-subtle); }
  .jd-kit-head .sec-label, .jd-kit-head .jd-sec-label { flex:1; }
  .jd-kit-head b { font-size:var(--text-xs); font-weight:600; color:var(--text-3);
                   font-variant-numeric:tabular-nums; }
  .jd-doc-form { display:block; }
  .kit-row, .jd-doc { display:flex; width:100%; align-items:center; gap:var(--space-3);
            padding:var(--space-3) var(--space-4); text-align:start; text-decoration:none;
            border:none; border-bottom:1px solid var(--border-subtle);
            background:transparent; color:inherit;
            transition:background var(--dur-1) var(--ease); }
  .jd-kit-card > .jd-doc:last-child,
  .jd-doc-form:last-child .jd-doc { border-bottom:none; }
  /* Only a row that leads somewhere lights up; the rest are read, not used. */
  .kit-row[data-open]:hover, .jd-doc[data-open]:hover { background:var(--canvas); text-decoration:none; }
  .kit-row:disabled, .jd-doc:disabled { opacity:.5; cursor:not-allowed; }
  .kit-row-ic, .jd-doc-ic { width:30px; height:30px; border-radius:var(--radius-ctl); flex:none;
               display:grid; place-items:center; background:var(--accent-soft);
               color:var(--accent-ink); }
  .kit-row-ic svg, .jd-doc-ic svg { width:15px; height:15px; }
  /* The rest of the family. .kit-row and .kit-row-ic were aliased onto .jd-doc
     when the pattern was generalised; the body, title and subtitle were not, so
     a new caller using the generic names got unstyled inline spans and its
     title ran into its subtitle on one line. */
  .kit-row-b, .jd-doc-b { min-width:0; flex:1 1 auto; }
  .kit-row-t { display:block; font-size:var(--text-sm); font-weight:600;
               color:var(--text-1); line-height:1.35; }
  .kit-row-s { display:block; margin-top:1px; font-size:var(--text-xs);
               color:var(--text-3); line-height:1.45; }
  /* The chevron on a row that leads somewhere. Quiet: it marks the row as a
     door, it is not the thing you aim at — the whole row is. */
  .kit-go { flex:none; display:grid; place-items:center; color:var(--text-3); }
  .kit-go svg { width:14px; height:14px; }
  .kit-row.is-owed .kit-row-t { color:var(--amber-ink); }
  .kit-row.is-todo .kit-row-ic, .jd-doc.is-todo .jd-doc-ic { background:var(--canvas); color:var(--text-3);
                               border:1px dashed var(--border); }
  /* ── the Copilot run, on the row it belongs to (ADR-0013) ──
     Amber for ready, because prepared-and-not-sent is the moment the job is
     waiting on you, and amber is what owed means everywhere else here. */
  .jd-doc.is-live .jd-doc-ic { background:var(--accent-soft); color:var(--accent-ink);
                               border-color:transparent; }
  .jd-doc.is-bad .jd-doc-ic { background:var(--danger-bg); color:var(--danger);
                              border-color:transparent; }
  .jd-doc.is-owed .jd-doc-ic { background:var(--amber-soft); color:var(--amber-ink);
                               border-color:transparent; }
  .jd-doc.is-bad .jd-doc-s { color:var(--danger); }
  /* A provider's own error is worth showing and not worth four red lines in
     a 330px rail. The full text is on the title attribute. */
  .jd-doc-s.is-clamped { display:-webkit-box; -webkit-line-clamp:2;
                         -webkit-box-orient:vertical; overflow:hidden; }
  .jd-doc.is-owed .jd-doc-t { color:var(--amber-ink); }
  .jd-spin { width:14px; height:14px; border-radius:50%; flex:none;
             border:2px solid var(--accent-soft); border-top-color:var(--accent);
             animation:jd-spin .7s linear infinite; }
  @keyframes jd-spin { to { transform:rotate(360deg); } }
  @media (prefers-reduced-motion:reduce) { .jd-spin { animation-duration:2.4s; } }
  .jd-doc-b { flex:1 1 auto; min-width:0; }
  .jd-doc-t { display:block; font-size:var(--text-sm); font-weight:600; color:var(--text-1);
              overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .jd-doc-s { display:flex; align-items:center; gap:5px; margin-top:1px;
              font-size:var(--text-xs); color:var(--text-3); }
  .jd-tick { width:13px; height:13px; color:var(--ok); flex:none; }
  .jd-doc-go { flex:none; display:grid; place-items:center; color:var(--text-3);
               transition:transform var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
  .jd-doc-go svg { width:15px; height:15px; }
  .jd-doc:hover .jd-doc-go { transform:translateX(2px); color:var(--accent-ink); }

  /* Each row carries its own action, so the row itself is no longer a link —
     "View this" and "make this" are different enough to deserve real buttons. */
  .kit-row-acts, .jd-doc-acts { flex:none; display:flex; align-items:center;
                                gap:var(--space-1); margin-inline-start:auto; }
  /* The generic long-form names, for a row that is read rather than scanned —
     the Privacy tab's three, where the subtitle is a sentence about what the
     button will do rather than a timestamp. `.kit-row-b/-t/-s` above are the
     compact originals and stay as they are; these differ only in that the
     title does not truncate and the subtitle wraps.

     They were used by settings.html with no rules behind them at all, so the
     body never took its share of the row and every button sat hard against
     the end of its own sentence instead of at the row's edge. */
  .kit-row-body { flex:1 1 auto; min-width:0; }
  .kit-row-title { font-size:var(--text-base); font-weight:500; color:var(--text-1); }
  .kit-row-sub { margin-top:1px; font-size:var(--text-sm); color:var(--text-3); }
  .kit-row-amt { font-size:var(--text-base); font-weight:600;
                 font-variant-numeric:tabular-nums; }
  .jd-doc-acts form { display:inline-flex; }
  /* A row is one object, so its name opens the thing it is about. */
  .jd-doc[data-open] { cursor:pointer; }
  .jd-doc[data-open]:hover .jd-doc-t { color:var(--accent-ink); }
  /* The same icon actions the list rows use — tailor is a page with a plus,
     view is an eye — so the two surfaces say the same thing the same way. */
  .jd-act { width:30px; height:30px; flex:none; padding:0; border:1px solid transparent;
            border-radius:var(--radius-ctl); background:transparent; color:var(--text-3);
            display:grid; place-items:center; cursor:pointer; text-decoration:none;
            transition:background var(--dur-1) var(--ease), color var(--dur-1) var(--ease),
                       border-color var(--dur-1) var(--ease); }
  .jd-act svg { width:16px; height:16px; }
  .jd-act:hover { background:color-mix(in srgb, var(--text-1) 8%, transparent);
                  color:var(--text-1); text-decoration:none; }
  .jd-act:focus-visible { outline:2px solid var(--accent); outline-offset:1px; }
  .jd-act.is-make:hover { color:var(--accent-ink); border-color:var(--accent-ink);
                          background:var(--accent-soft); }
  .jd-act[disabled] { opacity:.45; cursor:not-allowed; }
  .jd-doc.is-working { background:var(--canvas); }
  .jd-doc.is-working .jd-doc-ic { color:var(--accent-ink);
                                  border-style:solid; border-color:var(--accent-ink);
                                  animation:jdBreathe 1.6s ease-in-out infinite; }
  @keyframes jdBreathe { 0%,100% { opacity:1; } 50% { opacity:.45; } }
  .jd-spin { width:12px; height:12px; flex:none; margin-inline-end:6px;
             border-radius:50%; border:2px solid currentColor;
             border-top-color:transparent; display:inline-block;
             animation:jdSpin .7s linear infinite; }
  @keyframes jdSpin { to { transform:rotate(360deg); } }

  .jd-atlas { padding:var(--space-4); }

  /* ── the apply dialog ── */
  .jd-modal { position:fixed; inset:0; z-index:90; display:grid; place-items:center;
              padding:var(--space-5); }
  .jd-modal[hidden] { display:none; }
  .jd-modal-scrim { position:absolute; inset:0; background:var(--scrim);
                    opacity:0; transition:opacity var(--dur-2) var(--ease); }
  .jd-modal.is-open .jd-modal-scrim { opacity:1; }
  .jd-modal-box { position:relative; width:min(560px, 100%);
                  max-height:calc(100vh - var(--space-10));
                  display:flex; flex-direction:column; overflow:hidden;
                  background:var(--surface-raised); border:1px solid var(--border-subtle);
                  border-radius:18px; box-shadow:var(--shadow-float);
                  opacity:0; transform:translateY(12px) scale(.98);
                  transition:opacity var(--dur-2) var(--ease),
                             transform var(--dur-2) var(--ease); }
  .jd-modal.is-open .jd-modal-box { opacity:1; transform:none; }
  .jd-modal-head { flex:none; position:relative;
                   padding:var(--space-5) var(--space-10) var(--space-4) var(--space-5);
                   border-bottom:1px solid var(--border-subtle); }
  .jd-modal-head h2 { margin:0; font-family:var(--font-display); font-weight:400;
                      font-size:var(--text-2xl); line-height:1.15; letter-spacing:-.015em;
                      color:var(--text-1); }
  .jd-modal-head p { margin:var(--space-1) 0 0; font-size:var(--text-sm);
                     color:var(--text-3); }
  .jd-modal-x { position:absolute; inset-block-start:var(--space-4);
                inset-inline-end:var(--space-4); width:30px; height:30px; padding:0;
                border:none; border-radius:var(--radius-pill); background:transparent;
                color:var(--text-3); display:grid; place-items:center; cursor:pointer; }
  .jd-modal-x:hover { background:color-mix(in srgb, var(--text-1) 8%, transparent);
                      color:var(--text-1); }
  .jd-modal-x svg { width:17px; height:17px; }
  .jd-modal-body { flex:1 1 auto; min-height:0; overflow-y:auto;
                   padding:var(--space-5); display:flex; flex-direction:column;
                   gap:var(--space-3); }
  .jd-modal-foot { flex:none; display:flex; align-items:center; justify-content:flex-end;
                   gap:var(--space-2); padding:var(--space-4) var(--space-5);
                   border-top:1px solid var(--border-subtle); background:var(--sunk); }

  .jd-choice { display:flex; align-items:flex-start; gap:var(--space-3);
               padding:var(--space-4); border:1px solid var(--border);
               border-radius:var(--radius-card); cursor:pointer;
               transition:border-color var(--dur-1) var(--ease),
                          background var(--dur-1) var(--ease); }
  .jd-choice:hover { border-color:var(--text-3); }
  .jd-choice.is-picked { border-color:var(--accent-ink); background:var(--accent-soft); }
  .jd-choice input { margin:2px 0 0; accent-color:var(--accent-ink); flex:none; }
  .jd-choice-b { display:flex; flex-direction:column; gap:3px; min-width:0; }
  .jd-choice-t { display:flex; align-items:center; gap:var(--space-2); flex-wrap:wrap;
                 font-weight:600; color:var(--text-1); }
  .jd-choice-tag { padding:1px var(--space-2); border-radius:var(--radius-pill);
                   background:var(--amber-soft); color:var(--amber-ink);
                   font-size:9px; font-weight:700; text-transform:uppercase;
                   letter-spacing:.05em; }
  .jd-choice-d { font-size:var(--text-sm); line-height:1.5; color:var(--text-2); }
  /* Fixed on — the résumé is the point of tailoring, not an option. */
  .jd-choice.is-fixed { cursor:default; }
  .jd-choice.is-off { opacity:.55; cursor:not-allowed; }
  .jd-choice.is-off:hover { border-color:var(--border); }
  .jd-notes { min-height:74px; resize:vertical; line-height:1.5; padding:var(--space-3); }
  /* Submitted. The run is working from what was posted, so the answers stop
     being answerable — same greyed language as a choice that was never on
     offer (.is-off), because to the user it is the same fact: not yours to
     change now. The submit button keeps its own spinner; Cancel stays live,
     since closing the dialog must never be the thing you cannot do. */
  .jd-gen.is-busy .jd-choice { opacity:.55; cursor:not-allowed; }
  .jd-gen.is-busy .jd-choice:hover { border-color:var(--border); }
  .jd-gen.is-busy .jd-choice.is-picked:hover { border-color:var(--accent-ink); }
  .jd-gen.is-busy .field-label { opacity:.55; }
  .jd-gen.is-busy .jd-notes { opacity:.55; cursor:not-allowed; resize:none;
                              background:var(--sunk); }

  .jd-brief { padding:var(--space-4); border-radius:var(--radius-field);
              background:var(--sunk); border:1px solid var(--border-subtle); }
  .jd-brief-h { font-family:var(--font-mono); font-size:var(--text-xs); font-weight:500;
                letter-spacing:.12em; text-transform:uppercase; color:var(--text-3);
                margin-bottom:var(--space-3); }
  .jd-brief-l { display:grid; grid-template-columns:auto 1fr; gap:var(--space-2) var(--space-4);
                margin:0; font-size:var(--text-sm); }
  .jd-brief-l dt { color:var(--text-3); }
  .jd-brief-l dd { margin:0; color:var(--text-1); }
  .jd-brief-warn { color:var(--amber-ink); }
  .jd-brief-note { margin:var(--space-3) 0 0; font-size:var(--text-sm); color:var(--text-2); }
  .jd-brief-note a { color:var(--accent-ink); font-weight:500; }

  @media (max-width:560px) {
    .jd-modal { padding:var(--space-3); }
    .jd-modal-foot { flex-wrap:wrap; }
    .jd-modal-foot .btn, .jd-modal-foot form { flex:1 1 auto; }
    .jd-modal-foot .btn { justify-content:center; }
  }

  @media (max-width:1180px) {
    .jd-body { grid-template-columns:minmax(0,1fr); }
    .jd-kit { position:static; }
  }
  @media (max-width:767px) {
    .jd-ascent { gap:var(--space-4); }
    .jd-ascent-side { width:100%; }
    .jd-astage-lbl { font-size:var(--text-xs); }
    .jd-fit { gap:var(--space-4); }
    .jd-log-when, .jd-log-note { flex:1 1 100%; }
  }

  /* The `.coach-*` family lived here — the full-page career coach's own
     markup, with its own markdown bubbles, citation pills, typing dots and
     composer. It went with the page on 2026-09-08: the dock renders the same
     conversation from the same two endpoints, and two stylesheets for one
     thread is how the two drifted in the first place. */

  /* ══════════════════════════ The Orbit dock ══════════════════════════ */
  /* One assistant for the whole app (_dock.html, dock.js). Replaces the column
     that used to sit inside job_detail.html and the floating .coach-float
     bubble that was pasted onto four other templates.
     Fixed, so scrolling never takes it away; collapsed it is a composer stub
     rather than a bubble, because a bubble makes you guess what is inside. */
  /* The container is a fixed box roughly 420x700 at z-index 80, because the
     closed panel is visibility:hidden — which still reserves its layout. With
     pointer-events:auto that invisible box sat on top of the entire right-hand
     column and swallowed every click and hover in it, and on a short viewport
     it reached up over the header's menu too. Only the parts you can actually
     see may take a pointer. */
  .dk { position:fixed; inset-inline-end:var(--space-5); bottom:var(--space-5); z-index:80;
        display:flex; flex-direction:column; align-items:flex-end; gap:var(--space-3);
        pointer-events:none; }
  .dk-stub, .dk-panel { pointer-events:auto; }
  .dk[data-state="closed"] .dk-panel { pointer-events:none; }

  .dk-stub { display:flex; align-items:center; height:44px; padding:0 7px;
             border-radius:var(--radius-pill);
             border:1px solid var(--border); background:var(--surface-raised);
             color:var(--text-2); font:400 var(--text-base) var(--font-ui);
             box-shadow:var(--shadow-float); cursor:pointer;
             transition:box-shadow var(--dur-2) var(--ease),
                        border-color var(--dur-2) var(--ease),
                        transform var(--dur-2) var(--ease), opacity var(--dur-2) var(--ease); }
  .dk-stub:hover { border-color:var(--text-3); transform:translateY(-1px); }
  /* At rest the pill is the mark, "Chat" and ⌘J: the full composer stub sat
     over the last lines of every page. Hover or focus grows it into the
     page's prompt. Each slot animates 0fr → 1fr, so the width is exactly its
     text; the inner span clips, the innermost carries the padding. Leaving
     waits a beat so brushing past does not flicker it shut. */
  .dk-stub-slot { display:grid; grid-template-columns:0fr; opacity:0;
                  transition:grid-template-columns 280ms var(--ease) .12s,
                             opacity var(--dur-2) var(--ease) .12s; }
  .dk-stub-slot > span { overflow:hidden; min-width:0; white-space:nowrap; }
  .dk-stub-slot > span > span { display:block; }
  .dk-stub-word > span > span { padding-inline:9px 2px; color:var(--text-1);
                                font:500 15px/1 var(--font-display); letter-spacing:-.01em; }
  .dk-stub-l { padding-inline:12px 14px; }
  .dk-stub-word,
  .dk-stub:hover .dk-stub-ask, .dk-stub:focus-visible .dk-stub-ask {
    grid-template-columns:1fr; opacity:1; }
  .dk-stub:hover .dk-stub-word, .dk-stub:focus-visible .dk-stub-word {
    grid-template-columns:0fr; opacity:0; }
  .dk-stub:hover .dk-stub-slot, .dk-stub:focus-visible .dk-stub-slot { transition-delay:0s; }
  /* Orbit finished something while the dock was shut. */
  .dk-unread { position:absolute; top:-1px; inset-inline-end:-1px; width:10px; height:10px;
               border-radius:50%; background:var(--amber); border:2px solid var(--surface-raised);
               transform:scale(0); transition:transform var(--dur-2) var(--ease); }
  .dk.has-unread .dk-unread { transform:scale(1); }
  .dk-kbd { flex:0 0 auto; padding:2px 5px; border-radius:5px; background:var(--canvas);
            border:1px solid var(--border-subtle); color:var(--text-3);
            font:500 10px var(--font-mono); opacity:.75; margin-inline-start:8px; }
  .dk[data-state="open"] .dk-stub { position:absolute; bottom:0; inset-inline-end:0;
                                    opacity:0; pointer-events:none;
                                    transform:translateY(8px) scale(.96); }

  .dk-mark { position:relative; flex:0 0 30px; width:30px; height:30px; border-radius:50%;
             display:grid; place-items:center; color:#fff;
             background:linear-gradient(145deg, var(--accent-ink),
                        color-mix(in srgb, var(--amber) 55%, var(--accent-ink))); }
  .dk-mark svg { width:18px; height:18px; display:block; }

  .dk-panel { display:flex; flex-direction:column; overflow:hidden;
              width:min(420px, calc(100vw - 40px));
              height:min(640px, calc(100vh - 90px));
              background:var(--surface-raised); border:1px solid var(--border-subtle);
              border-radius:18px; box-shadow:var(--shadow-float);
              transform-origin:bottom right; opacity:0; visibility:hidden;
              transform:translateY(14px) scale(.97);
              transition:opacity var(--dur-2) var(--ease),
                         transform var(--dur-2) var(--ease),
                         visibility var(--dur-2), width var(--dur-2) var(--ease); }
  .dk[data-state="open"] .dk-panel { opacity:1; visibility:visible; transform:none; }
  .dk.is-wide .dk-panel { width:min(680px, calc(100vw - 40px)); }

  .dk-head { flex:none; display:flex; align-items:center; gap:var(--space-2);
             padding:var(--space-3) var(--space-3) var(--space-3) var(--space-4);
             border-bottom:1px solid var(--border-subtle); }
  .dk-title { font:500 var(--text-lg)/1.2 var(--font-display); letter-spacing:-.01em;
              color:var(--text-1); white-space:nowrap; }
  .dk-live { display:inline-flex; align-items:center; gap:5px; min-width:0;
             margin-inline-start:var(--space-2); font-size:var(--text-xs);
             color:var(--text-3); overflow:hidden; text-overflow:ellipsis;
             white-space:nowrap; }
  .dk-live i { flex:none; width:6px; height:6px; border-radius:50%; background:var(--ok);
               animation:dkPulse 2.2s infinite; }
  @keyframes dkPulse { 0%,100% { opacity:1; } 50% { opacity:.3; } }
  .dk-head-acts { margin-inline-start:auto; display:flex; align-items:center; gap:2px;
                  flex:none; }
  .dk-plan { padding:2px var(--space-2); border-radius:var(--radius-pill);
             background:var(--canvas); border:1px solid var(--border-subtle);
             color:var(--text-2); font-size:var(--text-xs); font-weight:600;
             white-space:nowrap; }
  .dk-plan.is-pro { background:var(--amber-soft); color:var(--amber-ink);
                    border-color:transparent; }
  .dk-ico { width:28px; height:28px; padding:0; border:none; background:transparent;
            color:var(--text-3); border-radius:var(--radius-ctl); cursor:pointer;
            display:grid; place-items:center;
            transition:background var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
  .dk-ico:hover:not(:disabled) { background:var(--canvas); color:var(--text-1); }
  .dk-ico:disabled { opacity:.45; cursor:not-allowed; }
  .dk-ico svg { width:15px; height:15px; }

  .dk-msgs { flex:1 1 auto; min-height:0; overflow-y:auto; padding:var(--space-4);
             display:flex; flex-direction:column; gap:var(--space-3);
             scrollbar-width:thin; }
  /* A flex column shrinks its children by default, so every card above the
     newest one was squeezed as the next arrived. A message keeps its own
     height; the list scrolls instead. */
  .dk-msgs > * { flex-shrink:0; }
  .dk-empty { margin-block:auto 0; padding:var(--space-4) var(--space-2); }
  .dk-empty h3 { margin:0 0 var(--space-2); font-family:var(--font-display);
                 font-weight:400; font-size:var(--text-xl); line-height:1.2;
                 color:var(--text-1); }
  .dk-empty p { margin:0; font-size:var(--text-sm); line-height:1.6; color:var(--text-3);
                max-width:38ch; }

  .dk-msg { max-width:88%; padding:var(--space-3) var(--space-4); border-radius:16px;
            font-size:var(--text-sm); line-height:1.6; word-wrap:break-word; }
  .dk-msg.is-user { align-self:flex-end; background:var(--accent-ink); color:#fff;
                    border-end-end-radius:6px; }
  .dk-msg.is-assistant { align-self:flex-start; background:var(--canvas);
                         border:1px solid var(--border-subtle); color:var(--text-1);
                         border-end-start-radius:6px; }
  .dk-msg p { margin:0 0 var(--space-2); }
  .dk-msg p:last-child { margin:0; }
  .dk-msg ul { margin:var(--space-2) 0; padding-inline-start:18px; }
  .dk-msg li { margin-bottom:3px; }
  .dk-msg code { padding:1px var(--space-1); border-radius:4px;
                 background:var(--border-subtle); font-family:var(--font-mono);
                 font-size:var(--text-xs); }
  .dk-msg pre { margin:var(--space-2) 0; padding:var(--space-3);
                border-radius:var(--radius-ctl); background:var(--surface);
                border:1px solid var(--border-subtle); overflow-x:auto;
                font-family:var(--font-mono); font-size:var(--text-xs); line-height:1.55; }
  .dk-msg.is-assistant a { color:var(--accent-ink); font-weight:500; }
  .dk-msg.is-user a { color:inherit; text-decoration:underline; }
  .dk-time { display:block; margin-top:var(--space-1); font-size:var(--text-xs);
             opacity:.6; font-variant-numeric:tabular-nums; }
  .dk-cites { display:flex; flex-wrap:wrap; gap:5px; margin-top:var(--space-3);
              padding-top:var(--space-2); border-top:1px solid var(--border-subtle); }
  .dk-cite { display:inline-flex; align-items:center; gap:5px; padding:2px var(--space-2);
             border-radius:var(--radius-pill); background:var(--surface);
             border:1px solid var(--border); color:var(--text-2);
             font-size:var(--text-xs); text-decoration:none; }
  .dk-cite:hover { border-color:var(--accent-ink); color:var(--accent-ink);
                   text-decoration:none; }
  .dk-trust { padding:1px var(--space-1); border-radius:4px; font-size:9px;
              font-weight:700; text-transform:uppercase; }
  .dk-trust.is-firsthand { background:var(--ok-bg); color:var(--ok); }
  .dk-trust.is-curated_external { background:var(--info-bg); color:var(--info); }
  .dk-trust.is-external_scraped { background:var(--warn-bg); color:var(--warn); }

  /* ── cards ──────────────────────────────────────────────────────────────
     A card is data the record sent, drawn by dock.js with no markup of its
     own, so it is the same shapes on every surface. One shell, one header,
     one type line, one footer. */
  .dk-card { align-self:stretch; overflow:hidden; background:var(--surface-raised);
             border:1px solid var(--border); border-radius:var(--radius-card);
             box-shadow:var(--lift-1); animation:dkRise .22s var(--ease) both; }
  .dk-card-h { display:flex; align-items:baseline; gap:var(--space-2);
               padding:var(--space-3) var(--space-4) var(--space-1); }
  /* The left label owns the room; the count stays its own width. */
  .dk-card-h .dk-eyebrow:first-child { flex:1 1 auto; }
  .dk-card-h .dk-eyebrow + .dk-eyebrow { flex:none; }
  .dk-eyebrow { font:400 var(--text-xs) var(--font-mono); letter-spacing:.12em;
                text-transform:uppercase; color:var(--text-3); }
  .dk-card-t { padding:0 var(--space-4) var(--space-2);
               font-family:var(--font-display); font-weight:500; font-size:var(--text-lg);
               letter-spacing:-.01em; line-height:1.25; color:var(--text-1);
               text-wrap:balance; }
  .dk-card-sub { padding:0 var(--space-4) var(--space-2); font-size:var(--text-sm);
                 color:var(--text-3); }
  .dk-card-f { display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-2);
               padding:var(--space-3) var(--space-4);
               border-top:1px solid var(--border-subtle); background:var(--surface); }
  .dk-meta { display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-2);
             padding:0 var(--space-4) var(--space-3); }
  .dk-stage { font:400 var(--text-xs) var(--font-mono); letter-spacing:.08em;
              text-transform:uppercase; color:var(--text-3); }
  .dk-tag { padding:2px var(--space-2); border-radius:var(--radius-pill);
            background:var(--canvas); border:1px solid var(--border-subtle);
            color:var(--text-2); font-size:var(--text-xs); }

  .dk-rows { display:flex; flex-direction:column; }
  .dk-row { position:relative; display:grid;
            grid-template-columns:18px 28px minmax(0,1fr) auto; gap:var(--space-2);
            align-items:center; padding:var(--space-2) var(--space-4);
            border-top:1px solid var(--border-subtle);
            transition:background var(--dur-1) var(--ease); }
  .dk-row:hover, .dk-row:focus-within { background:var(--surface); }
  .dk-row-n { font:400 9.5px var(--font-mono); color:var(--text-3); text-align:center; }
  .dk-row-body { min-width:0; }
  /* Two lines, never one ellipsised: a job title is the thing being scanned. */
  .dk-row-t { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
              overflow:hidden; font-size:var(--text-sm); font-weight:500;
              line-height:1.35; color:var(--text-1); }
  .dk-row-s { font-size:var(--text-xs); color:var(--text-3); white-space:nowrap;
              overflow:hidden; text-overflow:ellipsis; }
  .dk-row-s .is-owed { color:var(--amber-ink); font-weight:500; }
  .dk-row-empty { padding:var(--space-3) var(--space-4) var(--space-4);
                  font-size:var(--text-sm); color:var(--text-3); }
  .dk-row-end { display:flex; align-items:center; gap:var(--space-2); }
  /* Revealed over the score, so it reserves no width of its own. Opacity, not
     display, so the keyboard can still reach it (DESIGN-LANGUAGE §4). */
  .dk-row-acts { position:absolute; inset-inline-end:var(--space-3); top:50%;
                 transform:translateY(-50%); display:flex; gap:var(--space-1);
                 padding-inline-start:28px;
                 background:linear-gradient(90deg, transparent, var(--surface) 28px);
                 opacity:0; pointer-events:none;
                 transition:opacity var(--dur-1) var(--ease); }
  .dk-row:hover .dk-row-acts, .dk-row:focus-within .dk-row-acts {
                 opacity:1; pointer-events:auto; }

  .dk-av { flex:none; width:28px; height:28px; border-radius:8px; display:grid;
           place-items:center; color:#fff; font-weight:600; font-size:var(--text-xs); }

  .dk-score { min-width:34px; text-align:center; padding:2px var(--space-2);
              border-radius:var(--radius-pill); font-size:var(--text-xs); font-weight:600; }
  .dk-score.is-high { background:var(--ok-bg); color:var(--ok); }
  .dk-score.is-mid { background:var(--warn-bg); color:var(--warn); }
  .dk-score.is-low { background:var(--danger-bg); color:var(--danger); }

  .dk-figs { display:grid; grid-template-columns:repeat(3,1fr); gap:var(--space-2);
             padding:var(--space-1) var(--space-4) var(--space-3); }
  .dk-fig { display:flex; flex-direction:column; gap:1px;
            padding:var(--space-2) var(--space-3); border-radius:var(--radius-ctl);
            background:var(--surface); border:1px solid var(--border-subtle); }
  .dk-fig b { font-family:var(--font-display); font-weight:500; font-size:var(--text-2xl);
              line-height:1.1; letter-spacing:-.02em; color:var(--text-1); }
  .dk-fig span { font-size:var(--text-xs); color:var(--text-2); }
  .dk-fig.is-owe { background:var(--amber-soft); border-color:transparent; }
  .dk-fig.is-owe b, .dk-fig.is-owe span { color:var(--amber-ink); }

  /* The week as it happened: one column a day, one mark per event. */
  .dk-wk { display:grid; grid-template-columns:repeat(7,1fr); gap:var(--space-1);
           padding:0 var(--space-4) var(--space-2); }
  .dk-wk-day { display:flex; flex-direction:column; align-items:center; gap:var(--space-1); }
  .dk-wk-marks { width:100%; height:40px; border-radius:var(--radius-ctl);
                 background:var(--sunk); display:flex; flex-direction:column-reverse;
                 align-items:center; gap:3px; padding:5px 0; }
  .dk-wk-marks i { width:10px; height:10px; border-radius:3px; background:var(--accent-ink); }
  .dk-wk-day span { font:400 10px var(--font-mono); color:var(--text-3); }
  .dk-wk-day.is-today .dk-wk-marks { box-shadow:inset 0 0 0 1.5px var(--accent-ink); }
  .dk-wk-day.is-today span { color:var(--accent-ink); font-weight:600; }

  .dk-owed { border-top:1px solid var(--border-subtle); padding-top:var(--space-2); }
  .dk-owed > .dk-eyebrow { display:block; padding:var(--space-1) var(--space-4); }
  .dk-owed-row { display:flex; align-items:center; gap:var(--space-2);
                 padding:var(--space-2) var(--space-4);
                 border-top:1px solid var(--border-subtle); font-size:var(--text-sm); }
  .dk-owed-row .dk-owed-t { flex:1 1 auto; min-width:0; overflow:hidden;
                            text-overflow:ellipsis; white-space:nowrap; color:var(--text-1); }
  .dk-owed-row small { font:400 var(--text-xs) var(--font-mono); color:var(--text-3); }

  .dk-docs { display:grid; grid-template-columns:1fr 1fr; gap:var(--space-2);
             padding:var(--space-1) var(--space-4) var(--space-4); }
  .dk-doc { display:flex; flex-direction:column; gap:var(--space-2);
            padding:var(--space-3); border-radius:var(--radius-card);
            border:1px solid var(--border-subtle); background:var(--surface); }
  .dk-doc-page { height:74px; border-radius:var(--radius-ctl); background:var(--surface-raised);
                 border:1px solid var(--border-subtle); padding:var(--space-2);
                 display:flex; flex-direction:column; gap:4px; }
  .dk-doc-page i { display:block; height:3px; border-radius:2px; background:var(--track); }
  .dk-doc-page i.h { height:5px; width:48%; background:var(--text-3); opacity:.5; }
  .dk-doc b { font-weight:500; font-size:var(--text-sm); color:var(--text-1); }
  .dk-doc small { font:400 var(--text-xs) var(--font-mono); color:var(--text-3); }
  .dk-doc-acts { display:flex; flex-wrap:wrap; gap:var(--space-1); margin-top:auto; }

  /* Motion: a card rises, a fresh answer is written out a word at a time, the
     next chips stagger in. History is read, not performed, so its bubbles
     carry no word spans at all. */
  @keyframes dkRise { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }
  @keyframes dkWord { from { opacity:0; filter:blur(2px); } to { opacity:1; filter:none; } }
  @keyframes dkSpin { to { transform:rotate(360deg); } }
  .dk-msg.is-reveal .dk-word { opacity:0; animation:dkWord .28s var(--ease) forwards; }
  .dk-next-chip { animation:dkRise .22s var(--ease) both; }

  .dk-typing { align-self:flex-start; display:flex; align-items:center; gap:var(--space-2);
               padding:var(--space-3) var(--space-2);
               animation:dkRise .2s var(--ease) both; }
  .dk-orb { position:relative; width:16px; height:16px; }
  .dk-orb::before { content:""; position:absolute; inset:3px; border-radius:50%;
                    border:1.5px solid var(--accent-ink); opacity:.35; }
  .dk-orb::after { content:""; position:absolute; top:0; inset-inline-start:50%;
                   width:5px; height:5px; margin-inline-start:-2.5px; border-radius:50%;
                   background:var(--accent-ink); transform-origin:2.5px 8px;
                   animation:dkSpin 1.1s linear infinite; }
  .dk-thinking { font:400 var(--text-xs) var(--font-mono); color:var(--text-3); }

  @media (prefers-reduced-motion:reduce) {
    .dk-card, .dk-next-chip, .dk-typing,
    .dk-msg.is-reveal .dk-word { animation:none !important; }
    .dk-msg.is-reveal .dk-word { opacity:1; }
  }

  /* ── a plan's rail: the ascent at its seventh scale ─────────────────────
     Indigo is ground covered, amber is the milestone. dock.js lays the track
     and fill out from the nodes it measured; only their look is here. */
  .dk-rail { position:relative; list-style:none; margin:0;
             padding:var(--space-1) var(--space-4) var(--space-3); }
  .dk-rail-track, .dk-rail-fill { position:absolute; top:0;
             inset-inline-start:calc(var(--space-4) + 12px); width:2px;
             border-radius:2px; }
  .dk-rail-track { background:var(--track); }
  .dk-rail-fill { height:0; background:var(--accent-ink);
                  transition:height .6s var(--ease); }
  .dk-step { position:relative; display:grid;
             grid-template-columns:24px minmax(0,1fr); gap:var(--space-2);
             padding:7px 0; }
  .dk-node { position:relative; z-index:1; inline-size:24px; block-size:24px;
             border-radius:50%; background:var(--surface-raised);
             border:2px solid var(--track); display:grid; place-items:center;
             transition:border-color var(--dur-2) var(--ease),
                        background var(--dur-2) var(--ease); }
  .dk-node svg { inline-size:12px; block-size:12px; stroke:#fff; stroke-width:3;
                 fill:none; stroke-dasharray:20; stroke-dashoffset:20; }
  .dk-step-l { padding-block-start:2px; font-size:var(--text-sm);
               color:var(--text-2); transition:color var(--dur-2) var(--ease); }
  .dk-step-n { margin-block-start:2px;
               font:400 var(--text-xs)/1.45 var(--font-mono); color:var(--text-3); }
  /* The Copilot plan's per-job nodes wear the same looks as the rail's; the
     selectors are extended here rather than copied below. */
  .dk-step[data-state="running"] .dk-node,
  .dk-mj-step[data-state="running"] .dk-node { border-color:var(--accent-ink); }
  .dk-step[data-state="running"] .dk-node::after,
  .dk-mj-step[data-state="running"] .dk-node::after { content:""; position:absolute;
               inset:-6px; border-radius:50%; border:2px solid var(--accent-ink);
               opacity:0; animation:dkPing 1.3s var(--ease) infinite; }
  .dk-step[data-state="running"] .dk-node::before,
  .dk-mj-step[data-state="running"] .dk-node::before { content:""; inline-size:8px;
               block-size:8px; border-radius:50%; background:var(--accent-ink); }
  .dk-step[data-state="running"] .dk-step-l { color:var(--text-1); font-weight:500; }
  .dk-step[data-state="running"] .dk-step-n {
               background:linear-gradient(90deg, var(--text-3) 0%, var(--text-1) 50%,
                          var(--text-3) 100%);
               background-size:200% 100%; -webkit-background-clip:text;
               background-clip:text; color:transparent;
               animation:dkShimmer 1.6s linear infinite; }
  .dk-step[data-state="done"] .dk-node,
  .dk-mj-step[data-state="done"] .dk-node { background:var(--accent-ink);
               border-color:var(--accent-ink); }
  .dk-step[data-state="done"] .dk-node svg,
  .dk-mj-step[data-state="done"] .dk-node svg {
               animation:dkDraw .35s var(--ease) forwards; }
  .dk-step[data-state="done"] .dk-step-l { color:var(--text-1); }
  .dk-step[data-state="done"] .dk-step-n { color:var(--text-2); }
  .dk-step[data-state="skipped"] .dk-node,
  .dk-mj-step[data-state="skipped"] .dk-node { background:var(--sunk);
               border-color:var(--border); }
  .dk-step[data-state="skipped"] .dk-step-l { color:var(--text-3); }
  /* A failed step is where the plan stopped: it must not read as a step still
     waiting its turn, so it is the one red node, holding a dash. */
  .dk-step[data-state="failed"] .dk-node,
  .dk-mj-step[data-state="failed"] .dk-node { background:var(--danger-bg);
               border-color:var(--danger); }
  .dk-step[data-state="failed"] .dk-node::before,
  .dk-mj-step[data-state="failed"] .dk-node::before { content:""; inline-size:8px;
               block-size:2px; border-radius:1px; background:var(--danger); }
  .dk-step[data-state="failed"] .dk-step-n { color:var(--danger); }
  /* Dashed while the milestone is still ahead of you; amber once it is done. */
  .dk-step.is-milestone .dk-node { border-style:dashed; }
  .dk-step.is-milestone[data-state="done"] .dk-node { background:var(--amber);
               border-color:var(--amber); border-style:solid;
               animation:dkPop .45s var(--ease) both; }
  .dk-step.is-milestone[data-state="done"] .dk-step-l { font-family:var(--font-display);
               font-size:var(--text-lg); font-weight:500; color:var(--amber-ink); }
  @keyframes dkPing { 0% { opacity:.55; transform:scale(.7); }
                      100% { opacity:0; transform:scale(1.25); } }
  @keyframes dkShimmer { to { background-position:-200% 0; } }
  @keyframes dkDraw { to { stroke-dashoffset:0; } }
  @keyframes dkPop { 0% { transform:scale(.6); } 60% { transform:scale(1.18); }
                     100% { transform:scale(1); } }

  /* The cost is the last thing read before the one button that spends. */
  .dk-cost { flex:1 1 220px; font-size:var(--text-xs); line-height:1.5;
             color:var(--text-2); }
  .dk-status { font:400 var(--text-xs) var(--font-mono); color:var(--text-3); }

  /* A receipt is a line in the thread, not an alert: settled it is quiet, a
     hairline and ink. Only one that just happened lands green, then settles
     so an old move never reads as news. */
  .dk-receipt { align-self:flex-start; display:inline-flex; align-items:center;
                gap:var(--space-2); max-inline-size:100%;
                padding:var(--space-2) var(--space-3);
                border:1px solid var(--border-subtle);
                border-radius:var(--radius-card); background:transparent;
                color:var(--text-2); font-size:var(--text-sm); font-weight:500;
                animation:dkRise .22s var(--ease) both; }
  .dk-receipt.is-fresh { animation:dkRise .22s var(--ease) both,
                                   dkSettle 4s var(--ease) both; }
  @keyframes dkSettle { 0%, 70% { background:var(--ok-bg); color:var(--ok);
                                  border-color:transparent; }
                        100% { background:transparent; color:var(--text-2);
                               border-color:var(--border-subtle); } }
  .dk-receipt.is-undone { background:var(--sunk); color:var(--text-3);
                          border-color:transparent; animation:none; }
  .dk-undo { border:0; padding:0; background:none; color:inherit; font:inherit;
             font-weight:600; text-decoration:underline; text-underline-offset:3px;
             cursor:pointer; }
  .dk-undo:disabled { opacity:.5; cursor:default; }

  /* Motion is the point of the rail, so it is the thing reduced motion takes
     away first: the nodes are simply in their end state, and nothing shimmers. */
  @media (prefers-reduced-motion:reduce) {
    .dk-receipt, .dk-rail-fill, .dk-node, .dk-linkchip, .dk-selbar, .dk-mj-bar,
    .dk-step[data-state="running"] .dk-node::after,
    .dk-mj-step[data-state="running"] .dk-node::after,
    .dk-step[data-state="done"] .dk-node svg,
    .dk-mj-step[data-state="done"] .dk-node svg,
    .dk-step.is-milestone[data-state="done"] .dk-node {
      animation:none !important; transition:none !important; }
    .dk-step[data-state="running"] .dk-step-n { background:none;
      color:var(--text-1); }
    .dk-step[data-state="done"] .dk-node svg,
    .dk-mj-step[data-state="done"] .dk-node svg { stroke-dashoffset:0; }
  }

  /* ── the composer's link chip: a pasted link offers what it can do ────── */
  .dk-linkchip { display:flex; align-items:center; gap:var(--space-2);
                 margin:0 var(--space-1) var(--space-2);
                 padding:7px var(--space-2) 7px var(--space-3);
                 border-radius:var(--radius-card); background:var(--accent-soft);
                 animation:dkRise .2s var(--ease) both; }
  .dk-linkchip-host { flex:1 1 auto; min-inline-size:0;
                      font:400 var(--text-xs) var(--font-mono);
                      color:var(--accent-ink); white-space:nowrap;
                      overflow:hidden; text-overflow:ellipsis; }

  /* ── multi-select on a list: the checkbox, and the bar it raises ──────── */
  .dk-sel { inline-size:15px; block-size:15px; margin:0;
            accent-color:var(--accent-ink); }
  /* The checkbox takes its own leading column; the index and avatar follow. */
  .dk-row.has-sel { grid-template-columns:18px 18px 28px minmax(0,1fr) auto; }
  .dk-selbar { display:flex; align-items:center; gap:var(--space-2);
               padding:var(--space-2) var(--space-4);
               border-top:1px solid var(--border-subtle);
               background:var(--accent-soft);
               animation:dkRise .2s var(--ease) both; }
  .dk-selbar span { flex:1 1 auto; font-size:var(--text-sm);
                    font-weight:500; color:var(--accent-ink); }

  /* The add plan's title, before the job exists: the link's host, in mono. */
  .dk-card-t.is-url { font-family:var(--font-mono); font-weight:400;
                      font-size:var(--text-base); }

  /* ── the Copilot plan: one short track per job ────────────────────────── */
  .dk-mj { display:flex; flex-direction:column; gap:var(--space-3);
           padding:var(--space-1) var(--space-4) var(--space-3); }
  .dk-mj-head { display:grid;
                grid-template-columns:minmax(0,1fr) calc(4 * 58px + 3 * var(--space-1));
                gap:var(--space-2); font:400 var(--text-2xs) var(--font-mono);
                letter-spacing:.06em; text-transform:uppercase; color:var(--text-3); }
  .dk-mj-cols { display:grid; grid-template-columns:repeat(4,1fr);
                gap:var(--space-1); text-align:center; }
  .dk-mj-row { position:relative; display:grid;
               grid-template-columns:minmax(0,1fr) calc(4 * 58px + 3 * var(--space-1));
               gap:var(--space-2); align-items:center; }
  .dk-mj-who { display:flex; gap:var(--space-2); align-items:center; min-inline-size:0; }
  .dk-mj-who-t { min-inline-size:0; }
  .dk-mj-who b { display:block; font-weight:500; font-size:var(--text-sm);
                 white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
                 color:var(--text-1); }
  .dk-mj-who small { display:block; font:400 var(--text-xs) var(--font-mono);
                     color:var(--text-3); white-space:nowrap; overflow:hidden;
                     text-overflow:ellipsis; }
  /* The nodes sit at 12.5% and 87.5%, so the covered span between the first
     and last centres is 75% of the track; the bar is the finished share. */
  .dk-mj-track { position:relative; display:grid;
                 grid-template-columns:repeat(4,1fr); gap:var(--space-1);
                 align-items:center; }
  .dk-mj-track::before, .dk-mj-bar { content:""; position:absolute; top:50%;
                 block-size:2px; margin-block-start:-1px; inset-inline-start:12.5%; }
  .dk-mj-track::before { inset-inline-end:12.5%; background:var(--border-subtle); }
  .dk-mj-bar { width:0; background:var(--accent-ink);
               transition:width .5s var(--ease); }
  .dk-mj-step { position:relative; z-index:1; display:flex; justify-content:center;
                padding:0; }
  .dk-mj-step .dk-node { inline-size:20px; block-size:20px; }
  .dk-mj-step .dk-node svg { inline-size:10px; block-size:10px; }
  .dk-mj-note { grid-column:1 / -1; margin-block-start:-2px;
                font:400 var(--text-xs) var(--font-mono); color:var(--text-3); }
  /* Held before Go: a document on file the run will reuse. Ground already
     covered, drawn in the soft accent so it does not read as work done now. */
  .dk-mj-step[data-state="kept"] .dk-node { background:var(--accent-soft);
                border-color:var(--accent-ink); }
  .dk-mj-step[data-state="kept"] .dk-node svg { stroke:var(--accent-ink);
                stroke-dashoffset:0; }
  .dk-mj-docs { grid-column:1 / -1; display:flex; flex-wrap:wrap;
                gap:var(--space-1) var(--space-3); margin-block-start:-2px; }
  .dk-mj-docs:empty { display:none; }
  .dk-mj-doc { display:inline-flex; align-items:baseline; gap:var(--space-1);
               font-size:var(--text-xs); color:var(--text-2); }
  .dk-mj-doc-b { border:0; padding:0; background:none; font:inherit;
                 font-weight:600; color:var(--accent-ink); cursor:pointer;
                 text-decoration:underline; text-underline-offset:3px; }
  .dk-mj-doc-b:disabled { opacity:.5; cursor:default; }
  .dk-mj-excluded { padding:var(--space-2) var(--space-4) 0;
                    font-size:var(--text-xs); color:var(--text-3); }

  /* ── the hand-off: what Copilot prepared, and the two things left ──────── */
  .dk-hand { display:flex; flex-direction:column; }
  .dk-hand-row { display:grid; grid-template-columns:28px minmax(0,1fr);
                 gap:var(--space-2); padding:11px var(--space-4);
                 border-top:1px solid var(--border-subtle); }
  .dk-hand-row b { font-weight:500; font-size:var(--text-sm); color:var(--text-1); }
  .dk-hand-row p { margin:2px 0 var(--space-2); font-size:var(--text-xs);
                   color:var(--text-2); }
  .dk-hand-acts { display:flex; flex-wrap:wrap; gap:var(--space-1); }
  .dk-hand-note { padding:var(--space-2) var(--space-4);
                  border-top:1px solid var(--border-subtle);
                  font-size:var(--text-xs); color:var(--text-3); }

  .dk-chips { flex:none; display:flex; flex-wrap:wrap; gap:var(--space-2);
              padding:0 var(--space-4) var(--space-3); }
  .dk-chips button { padding:5px var(--space-3); border-radius:var(--radius-pill);
                     border:1px solid var(--border); background:var(--surface);
                     color:var(--text-2); font:400 var(--text-sm) var(--font-ui);
                     cursor:pointer; white-space:nowrap;
                     transition:border-color var(--dur-1) var(--ease),
                                color var(--dur-1) var(--ease),
                                background var(--dur-1) var(--ease); }
  .dk-chips button:hover { border-color:var(--accent-ink); color:var(--accent-ink);
                           background:var(--accent-soft); }
  .dk-chips button:disabled { opacity:.5; cursor:default; }
  .dk-chips button:disabled:hover { border-color:var(--border); color:var(--text-2);
                                    background:var(--surface); }

  .dk-composer { flex:none; position:relative; padding:0 var(--space-3) var(--space-3); }
  .dk-box { position:relative; padding:var(--space-3) var(--space-3) 10px var(--space-4);
            border:1px solid var(--border); border-radius:20px; background:var(--surface);
            transition:border-color var(--dur-1) var(--ease),
                       box-shadow var(--dur-1) var(--ease); }
  .dk-box:focus-within { border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft); }
  .dk-box.is-spent { opacity:.5; pointer-events:none; }
  /* The composer is the field; the textarea inside it is just the text. It
     resets the whole field treatment — border, ground, radius and the focus
     ring — because .dk-box already wears all of it. Without the last two, the
     shared `textarea:focus` rule drew a second, pill-shaped ring around the
     text itself, inside the box, clipping the first and last characters. */
  .dk-box textarea,
  .dk-box textarea:hover,
  .dk-box textarea:focus,
  .dk-box textarea:focus-visible { display:block; width:100%; min-height:24px;
                     max-height:150px; padding:0; border:none; border-radius:0;
                     background:transparent; box-shadow:none; resize:none;
                     outline:none; color:var(--text-1);
                     font:400 var(--text-base)/1.5 var(--font-ui); }
  .dk-box textarea::placeholder { color:var(--text-3); }
  /* One row: attach hard left, then the context and send hard right. */
  .dk-foot { display:flex; align-items:center; gap:var(--space-2); margin-top:var(--space-2); }
  .dk-attach { flex:0 0 auto; margin-inline-end:auto; }
  .dk-scope { flex:0 0 auto; display:inline-flex; align-items:center; gap:5px;
              padding:4px var(--space-2); border-radius:var(--radius-pill);
              border:1px solid transparent; background:transparent; color:var(--text-2);
              font:500 var(--text-sm) var(--font-ui); cursor:pointer; }
  .dk-scope:hover { background:var(--canvas); border-color:var(--border-subtle); }
  .dk-scope em { font-style:normal; font-weight:400; color:var(--text-3); }
  .dk-scope svg { width:13px; height:13px; color:var(--text-3); }
  .dk-send { flex:0 0 32px; width:32px; height:32px; border:none; border-radius:50%;
             background:var(--accent-ink); color:#fff; cursor:pointer;
             display:grid; place-items:center;
             transition:opacity var(--dur-1) var(--ease), transform var(--dur-1) var(--ease); }
  .dk-send svg { width:16px; height:16px; }
  .dk-send:disabled { opacity:.28; cursor:default; }
  .dk-send:not(:disabled):hover { transform:scale(1.06); }

  /* Anchored to the composer, not to the little button: hung off the button it
     opens leftwards past the panel edge and .dk-panel's overflow clips it. */
  .dk-menu { position:absolute; inset-inline-start:var(--space-3);
             bottom:calc(100% - var(--space-6)); z-index:5;
             width:max-content; max-width:calc(100% - var(--space-6));
             padding:var(--space-1); background:var(--surface-raised);
             border:1px solid var(--border-subtle); border-radius:var(--radius-card);
             box-shadow:var(--shadow-float); opacity:0; visibility:hidden;
             transform:translateY(4px) scale(.98); transform-origin:bottom left;
             transition:opacity var(--dur-1) var(--ease), transform var(--dur-1) var(--ease),
                        visibility var(--dur-1); }
  .dk-menu.open { opacity:1; visibility:visible; transform:none; }
  .dk-menu button { display:flex; align-items:center; gap:var(--space-2); width:100%;
                    padding:7px var(--space-3); border:none; background:transparent;
                    color:var(--text-1); font:500 var(--text-sm) var(--font-ui);
                    text-align:start; white-space:nowrap; border-radius:var(--radius-ctl);
                    cursor:pointer; }
  /* Same reason as .jd-menu: var(--canvas) is darker than a raised surface in
     dark mode, so it reads as no hover at all. */
  .dk-menu button:hover,
  .dk-menu button:focus-visible { background:color-mix(in srgb, var(--text-1) 9%, transparent);
                                  outline:none; }
  .dk-menu button:focus-visible { box-shadow:inset 0 0 0 2px var(--accent); }
  .dk-menu button em { font-style:normal; font-weight:400; color:var(--text-3); }
  .dk-menu button em:not(:empty)::before { content:"— "; }
  .dk-pro { margin-inline-start:auto; padding:1px var(--space-2);
            border-radius:var(--radius-pill); background:var(--amber-soft);
            color:var(--amber-ink); font-size:9px; font-weight:700;
            text-transform:uppercase; letter-spacing:.05em; }

  @media (max-width:767px) {
    /* Clears the tab bar. The pill stays small in the corner: a phone has no
       hover to grow it, and a tap opens the sheet anyway. */
    .dk { inset-inline-end:var(--space-3);
          bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + var(--space-3)); }
    /* Open, the chat is the whole screen: a sheet that rises from the stub,
       over the tab bar, sized by dvh so the keyboard never hides the composer. */
    .dk[data-state="open"] { inset:0; }
    .dk-panel, .dk.is-wide .dk-panel { width:100%; height:100dvh; border:0; border-radius:0;
                                       padding-top:env(safe-area-inset-top, 0px);
                                       padding-bottom:env(safe-area-inset-bottom, 0px); }
    .dk-panel { transform-origin:bottom center; transform:translateY(24px); }
    #dk-wide { display:none; }
  }

  /* ============================== Atlas (page-specific) ============================== */
  /* Shared prose + inline markup produced by src/atlas/render.py (wikilink/
     cite/trust-badge class names are a fixed contract with that renderer —
     never rename them). Used by atlas_page.html and _atlas_panel.html. */
  .atlas-body { font-size:var(--text-base); line-height:1.65; }
  .atlas-body h3 { font-size:var(--text-lg); font-weight:700; margin:var(--space-5) 0 var(--space-2); }
  .atlas-body h3:first-child { margin-top:0; }
  .atlas-body h4 { font-size:var(--text-base); font-weight:700; margin:var(--space-4) 0 var(--space-2); }
  .atlas-body p { margin:0 0 var(--space-3); color:var(--text-2); }
  .atlas-body p strong { color:var(--text-1); font-weight:600; }
  .atlas-body ul { padding-left:18px; margin:0 0 var(--space-3); color:var(--text-2); }
  .atlas-body ul li { margin-bottom:var(--space-1); }
  .wikilink { color:var(--accent); font-weight:500; text-decoration:none;
              border-bottom:1px dotted var(--accent); }
  .wikilink:hover { background:var(--accent-soft); border-bottom-style:solid; }
  .cite { display:inline-flex; align-items:center; justify-content:center;
          min-width:16px; height:16px; padding:0 4px; border-radius:4px;
          background:var(--canvas); color:var(--text-3); font-size:9.5px;
          font-weight:700; vertical-align:super; cursor:pointer; margin:0 1px; }
  .cite:hover { background:var(--accent); color:var(--on-accent); }
  .trust-badge { display:inline-flex; align-items:center; padding:1px 6px;
                 border-radius:6px; font-size:9px; font-weight:700;
                 text-transform:uppercase; letter-spacing:.05em; margin-left:3px; }
  .trust-badge.firsthand { background:var(--ok-bg); color:var(--ok); }
  .trust-badge.curated { background:var(--info-bg); color:var(--info); }
  .trust-badge.external { background:var(--warn-bg); color:var(--warn); }

  /* Health status dot (independent of the nine page-type colors above). */
  .atlas-health-dot { width:8px; height:8px; border-radius:50%; display:inline-block; flex:none; }
  .atlas-health-dot.health-healthy { background:var(--ok); box-shadow:0 0 0 3px var(--ok-bg); }
  .atlas-health-dot.health-stale { background:var(--warn); box-shadow:0 0 0 3px var(--warn-bg); }
  .atlas-health-dot.health-contradicted,
  .atlas-health-dot.health-outdated { background:var(--danger); box-shadow:0 0 0 3px var(--danger-bg); }
  .atlas-health-dot.health-orphan { background:var(--text-3); box-shadow:0 0 0 3px var(--canvas); }

  /* ── Index (atlas.html) ── */
  .atlas-stat-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
                      gap:var(--space-4); margin-bottom:var(--space-5); }
  .atlas-layout { display:grid; grid-template-columns:200px 1fr; gap:var(--space-5); align-items:start; }
  .atlas-rail { display:flex; flex-direction:column; gap:2px; position:sticky; top:var(--space-3); }
  .atlas-rail-label { font-size:var(--text-xs); font-weight:700; text-transform:uppercase;
                       letter-spacing:.06em; color:var(--text-3); padding:var(--space-2) var(--space-2) var(--space-1); }
  .atlas-rail-link { display:flex; align-items:center; justify-content:space-between; gap:var(--space-2);
                     padding:6px var(--space-2); border-radius:var(--radius-ctl); font-size:var(--text-base);
                     color:var(--text-2); text-decoration:none; }
  .atlas-rail-link:hover { background:var(--canvas); color:var(--text-1); }
  .atlas-rail-link.is-active { background:var(--accent-soft); color:var(--accent); font-weight:600; }
  .atlas-rail-count { font-size:var(--text-xs); color:var(--text-3); font-variant-numeric:tabular-nums; }
  .atlas-rail-link.is-active .atlas-rail-count { color:var(--accent); }
  .atlas-toolbar { display:flex; gap:var(--space-3); align-items:center; margin-bottom:var(--space-4); }
  .atlas-search { flex:1 1 auto; position:relative; }
  .atlas-search svg { position:absolute; left:var(--space-3); top:50%; transform:translateY(-50%);
                      width:15px; height:15px; color:var(--text-3); pointer-events:none; }
  .atlas-search .input { width:100%; padding-left:34px; }
  .atlas-page-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:var(--space-3); }
  .atlas-page-card { display:block; background:var(--surface); border:1px solid var(--border-subtle);
                     border-radius:var(--radius-card); padding:var(--space-4); text-decoration:none;
                     color:inherit; transition:border-color var(--dur-1) var(--ease); }
  .atlas-page-card:hover { border-color:var(--accent); }
  .atlas-pc-top { display:flex; justify-content:space-between; align-items:flex-start;
                  gap:var(--space-2); margin-bottom:var(--space-2); }
  .atlas-pc-title { font-size:var(--text-lg); font-weight:700; line-height:1.3; color:var(--text-1); }
  .atlas-pc-summary { font-size:var(--text-sm); color:var(--text-2); line-height:1.45;
                      margin:var(--space-1) 0 var(--space-3); display:-webkit-box;
                      -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
  .atlas-pc-meta { display:flex; align-items:center; gap:var(--space-3); font-size:var(--text-xs);
                   color:var(--text-3); margin-top:var(--space-1); }
  .atlas-inbox { display:flex; flex-direction:column; gap:var(--space-1); }
  .atlas-inbox-item { display:flex; align-items:center; gap:var(--space-3); padding:var(--space-2) var(--space-3);
                      border-radius:var(--radius-ctl); text-decoration:none; color:inherit; }
  .atlas-inbox-item:hover { background:var(--accent-soft); }
  .atlas-inbox-title { font-weight:600; font-size:var(--text-base); flex:1 1 auto; min-width:0;
                       overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .atlas-pagination { display:flex; align-items:center; justify-content:center; gap:var(--space-4); margin-top:var(--space-5); }
  @media (max-width:900px) {
    .atlas-layout { grid-template-columns:1fr; }
    .atlas-rail { position:static; flex-direction:row; flex-wrap:wrap; }
  }

  /* ── Page view (atlas_page.html) ── */
  .atlas-page-layout { display:grid; grid-template-columns:190px minmax(0,1fr) 250px;
                       gap:var(--space-5); align-items:start; }
  /* A body with no headings renders no table of contents, so the gutter it
     lived in goes too rather than standing empty. */
  .atlas-page-layout.is-notoc { grid-template-columns:minmax(0,1fr) 250px; }
  .atlas-toc { position:sticky; top:var(--space-3); }
  .atlas-toc-label { font-size:var(--text-xs); font-weight:700; text-transform:uppercase;
                     letter-spacing:.06em; color:var(--text-3); margin-bottom:var(--space-2); }
  .atlas-toc a { display:block; font-size:var(--text-sm); color:var(--text-2); padding:4px 0 4px var(--space-3);
                border-left:2px solid var(--border-subtle); text-decoration:none; }
  .atlas-toc a:hover { color:var(--accent); border-left-color:var(--accent); }
  .atlas-toc a.lvl3 { padding-left:24px; font-size:var(--text-xs); color:var(--text-3); }
  .atlas-page-head { padding:var(--space-5) var(--space-6) var(--space-3); border-bottom:1px solid var(--border-subtle); }
  .atlas-pb-title-row { display:flex; align-items:center; gap:var(--space-3); flex-wrap:wrap; }
  .atlas-pb-title-row h2 { font-size:var(--text-2xl); font-weight:800; letter-spacing:-.02em; margin:0; }
  .atlas-pb-meta { display:flex; gap:var(--space-4); align-items:center; margin-top:var(--space-2);
                   font-size:var(--text-sm); color:var(--text-3); flex-wrap:wrap; }
  .atlas-pb-actions { display:flex; gap:var(--space-2); margin-top:var(--space-3); flex-wrap:wrap; }
  .atlas-page-content { padding:var(--space-5) var(--space-6); }
  .atlas-struct-panel { background:var(--canvas); border:1px solid var(--border-subtle);
                       border-radius:var(--radius-ctl); padding:var(--space-4); margin-bottom:var(--space-5); }
  .atlas-sp-title { display:flex; align-items:center; gap:var(--space-2); font-size:var(--text-xs);
                    font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--text-3);
                    margin-bottom:var(--space-3); }
  .atlas-sp-locked { margin-left:auto; font-size:var(--text-xs); font-weight:500; text-transform:none;
                     letter-spacing:0; background:var(--surface); padding:2px var(--space-2);
                     border-radius:var(--radius-pill); border:1px solid var(--border-subtle); }
  .atlas-sp-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:var(--space-2) var(--space-6); }
  .atlas-sp-row { display:flex; flex-direction:column; gap:2px; }
  .atlas-sp-label { font-size:var(--text-xs); font-weight:700; text-transform:uppercase;
                    letter-spacing:.05em; color:var(--text-3); }
  .atlas-sp-value { font-size:var(--text-base); font-weight:500; color:var(--text-1); }
  .freshness-banner { display:flex; align-items:center; gap:var(--space-3); padding:var(--space-3) var(--space-4);
                      border-radius:var(--radius-ctl); font-size:var(--text-sm); margin-bottom:var(--space-5); }
  .freshness-banner.fresh { background:var(--ok-bg); color:var(--ok); }
  .freshness-banner.stale { background:var(--warn-bg); color:var(--warn); }
  .atlas-page-rail { position:sticky; top:var(--space-3); display:flex; flex-direction:column; gap:var(--space-4); }
  .atlas-rail-card { background:var(--surface); border:1px solid var(--border-subtle);
                     border-radius:var(--radius-card); padding:var(--space-4); }
  .atlas-rail-card-label { font-size:var(--text-xs); font-weight:700; text-transform:uppercase;
                           letter-spacing:.06em; color:var(--text-3); margin-bottom:var(--space-3);
                           display:flex; justify-content:space-between; align-items:center; }
  .atlas-rail-card-count { background:var(--canvas); color:var(--text-2); padding:1px 7px;
                           border-radius:var(--radius-pill); font-size:var(--text-xs); }
  .atlas-backlink-item { display:block; padding:var(--space-2) 0; border-bottom:1px solid var(--border-subtle);
                         font-size:var(--text-sm); text-decoration:none; color:inherit; }
  .atlas-backlink-item:last-child { border-bottom:none; }
  .atlas-backlink-item:hover .atlas-bl-title { color:var(--accent); }
  .atlas-bl-title { font-weight:600; display:block; color:var(--text-1); }
  .atlas-bl-context { color:var(--text-3); font-size:var(--text-xs); margin-top:2px; display:block; }
  .atlas-source-item { display:flex; align-items:center; gap:var(--space-2); padding:var(--space-2) 0;
                       border-bottom:1px solid var(--border-subtle); font-size:var(--text-sm); cursor:pointer; }
  .atlas-source-item:last-child { border-bottom:none; }
  .atlas-src-type { font-size:9.5px; font-weight:700; text-transform:uppercase; letter-spacing:.05em;
                    padding:2px 6px; border-radius:6px; color:var(--text-3); background:var(--canvas); flex:none; }
  .atlas-src-text { color:var(--text-2); flex:1 1 auto; min-width:0; overflow:hidden;
                    text-overflow:ellipsis; white-space:nowrap; }
  .atlas-drawer { position:fixed; inset:0; background:var(--scrim); z-index:70; display:flex;
                 align-items:flex-end; justify-content:center; }
  .atlas-drawer-panel { background:var(--surface); border-radius:var(--radius-card) var(--radius-card) 0 0;
                        padding:var(--space-5) var(--space-6); width:min(560px,100%); max-height:60vh; overflow-y:auto; }
  .atlas-wl-preview { position:absolute; z-index:60; max-width:320px; background:var(--surface-raised);
                     border:1px solid var(--border-subtle); border-radius:var(--radius-card);
                     box-shadow:var(--shadow-float); padding:var(--space-3) var(--space-4); font-size:var(--text-sm); }
  .atlas-wl-preview b { display:block; font-size:var(--text-base); margin-bottom:2px; }
  @media (max-width:1000px) {
    /* `1fr` is `minmax(auto,1fr)`: the track floors at the widest child's
       min-content, so the structured-fields panel pushed the single column to
       498px inside a 420px viewport and the page scrolled sideways. */
    /* `.is-notoc` is one class heavier than this selector, so naming only
       the base here let the two-column rule win inside the media query and
       the body was squeezed to 130px under the rail. */
    .atlas-page-layout,
    .atlas-page-layout.is-notoc { grid-template-columns:minmax(0,1fr); }
    .atlas-toc, .atlas-page-rail { position:static; }
  }

  /* ── Ask Atlas (atlas_ask.html) ── */
  .atlas-ask-layout { display:grid; grid-template-columns:1fr 300px; gap:var(--space-5); align-items:start; }
  .atlas-ask-chat { background:var(--surface); border:1px solid var(--border-subtle);
                    border-radius:var(--radius-card); display:flex; flex-direction:column;
                    min-height:560px; overflow:hidden; }
  .atlas-ask-body { flex:1 1 auto; padding:var(--space-5); overflow-y:auto; display:flex;
                    flex-direction:column; gap:var(--space-4); max-height:640px; }
  .atlas-ask-empty { margin:auto; text-align:center; max-width:340px; color:var(--text-3); }
  .atlas-msg { display:flex; gap:var(--space-3); max-width:92%; }
  .atlas-msg.user { flex-direction:row-reverse; margin-left:auto; }
  .atlas-msg-bubble { padding:var(--space-3) var(--space-4); border-radius:14px; font-size:var(--text-base); line-height:1.55; }
  .atlas-msg.user .atlas-msg-bubble { background:var(--accent); color:var(--on-accent); border-radius:14px 4px 14px 14px; }
  .atlas-msg.atlas .atlas-msg-bubble { background:var(--canvas); border:1px solid var(--border-subtle);
                                       border-radius:4px 14px 14px 14px; color:var(--text-1); }
  .atlas-msg-bubble p { margin:0 0 var(--space-2); }
  .atlas-msg-bubble p:last-child { margin-bottom:0; }
  .atlas-msg-note { margin-top:var(--space-2); padding:6px var(--space-2); border-radius:var(--radius-ctl);
                    background:var(--warn-bg); color:var(--warn); font-size:var(--text-xs); }
  .atlas-msg-cites { display:flex; flex-wrap:wrap; gap:var(--space-1); margin-top:var(--space-2);
                    padding-top:var(--space-2); border-top:1px solid var(--border-subtle); }
  .atlas-cite-pill { display:inline-flex; align-items:center; gap:var(--space-1); padding:2px var(--space-2);
                    border-radius:var(--radius-pill); background:var(--surface); border:1px solid var(--border);
                    font-size:var(--text-xs); color:var(--text-2); cursor:pointer; }
  .atlas-cite-pill:hover { border-color:var(--accent); color:var(--accent); }
  .atlas-msg-actions { display:flex; gap:var(--space-2); margin-top:var(--space-2); }
  .atlas-msg-action { font-size:var(--text-xs); font-weight:600; color:var(--accent); background:var(--accent-soft);
                      padding:4px var(--space-2); border-radius:var(--radius-ctl); cursor:pointer;
                      border:none; font-family:inherit; }
  .atlas-msg-action:hover { background:var(--accent); color:var(--on-accent); }
  .atlas-followups { display:flex; flex-wrap:wrap; gap:var(--space-2); margin-top:var(--space-2); }
  .atlas-followup-chip { padding:5px var(--space-3); border-radius:var(--radius-pill); border:1px solid var(--border);
                         background:var(--surface); font-size:var(--text-xs); color:var(--text-2); cursor:pointer; }
  .atlas-followup-chip:hover { border-color:var(--accent); color:var(--accent); }
  .atlas-ask-input { padding:var(--space-4); border-top:1px solid var(--border-subtle);
                     display:flex; gap:var(--space-2); align-items:center; }
  .atlas-ask-input .input { flex:1 1 auto; }
  .atlas-ask-side { display:flex; flex-direction:column; gap:var(--space-4); }
  .atlas-suggested-q { display:block; width:100%; text-align:left; padding:var(--space-2) var(--space-3);
                       border:1px solid var(--border-subtle); border-radius:var(--radius-ctl); font-size:var(--text-sm);
                       color:var(--text-2); cursor:pointer; margin-bottom:var(--space-2); background:var(--canvas);
                       font-family:inherit; }
  .atlas-suggested-q:hover { border-color:var(--accent); color:var(--accent); }
  .atlas-sq-tag { font-size:var(--text-xs); font-weight:700; color:var(--text-3); text-transform:uppercase;
                 display:block; margin-bottom:2px; }
  .atlas-filed-item { display:block; padding:var(--space-2) 0; border-bottom:1px solid var(--border-subtle);
                      font-size:var(--text-sm); text-decoration:none; color:var(--text-1); }
  .atlas-filed-item:last-child { border-bottom:none; }
  .atlas-filed-item:hover { color:var(--accent); }
  @media (max-width:900px) { .atlas-ask-layout { grid-template-columns:1fr; } }

  /* ── Ingest preview diff (atlas_preview.html) ── */
  .atlas-preview-phases { display:flex; align-items:center; gap:var(--space-3); margin-bottom:var(--space-4);
                          font-size:var(--text-sm); font-weight:600; }
  .atlas-preview-phase { padding:6px var(--space-3); border-radius:var(--radius-pill);
                        background:var(--canvas); color:var(--text-2); }
  .atlas-preview-phase.is-done { background:var(--ok-bg); color:var(--ok); }
  .atlas-preview-phase.is-current { background:var(--accent-soft); color:var(--accent); }
  .atlas-preview-arrow { color:var(--text-3); }
  .atlas-preview-page { margin-bottom:var(--space-3); padding:var(--space-3) var(--space-4); }
  .atlas-preview-summary { display:flex; align-items:center; gap:var(--space-3); cursor:pointer;
                           font-size:var(--text-base); flex-wrap:wrap; }
  .atlas-preview-change { font-size:var(--text-xs); padding:2px var(--space-2); border-radius:var(--radius-pill); font-weight:700; }
  .atlas-preview-change.is-create { background:var(--ok-bg); color:var(--ok); }
  .atlas-preview-change.is-update { background:var(--info-bg); color:var(--info); }
  .atlas-preview-change.is-append { background:var(--accent-soft); color:var(--accent); }
  .atlas-preview-edit { margin-top:var(--space-3); font-size:var(--text-sm); }
  .atlas-preview-edit summary { cursor:pointer; color:var(--text-2); font-weight:600; }
  .atlas-preview-edit-body { width:100%; min-height:220px; margin-top:var(--space-2); padding:var(--space-3) var(--space-4);
                            border:1px solid var(--border); border-radius:var(--radius-ctl); font-family:var(--font-mono);
                            font-size:var(--text-sm); line-height:1.7; background:var(--surface); color:var(--text-1);
                            resize:vertical; }
  .atlas-preview-diff { margin-top:var(--space-3); border:1px solid var(--border-subtle);
                       border-radius:var(--radius-ctl); overflow:hidden; font-family:var(--font-mono);
                       font-size:var(--text-sm); max-height:420px; overflow-y:auto; }
  .atlas-diff-line { padding:1px var(--space-3); white-space:pre-wrap; }
  .atlas-diff-add { background:color-mix(in srgb, var(--ok) 12%, transparent); }
  .atlas-diff-del { background:color-mix(in srgb, var(--danger) 12%, transparent); text-decoration:line-through; opacity:.75; }
  .atlas-diff-ctx { color:var(--text-3); }
  .atlas-preview-sources { margin-top:var(--space-3); display:flex; flex-direction:column; gap:var(--space-1); }
  .atlas-preview-source { font-size:var(--text-sm); color:var(--text-2); }
  .atlas-trust-label { font-weight:700; }
  .atlas-trust-label.firsthand { color:var(--ok); }
  .atlas-trust-label.curated_external { color:var(--info); }
  .atlas-trust-label.external_scraped { color:var(--warn); }

  /* ── Share to Atlas (atlas_share.html) ── */
  .atlas-share-tabs { display:flex; gap:var(--space-2); margin-bottom:var(--space-4); flex-wrap:wrap; }
  .atlas-share-grid { display:grid; grid-template-columns:1fr 1fr; gap:var(--space-3); }
  @media (max-width:600px) { .atlas-share-grid { grid-template-columns:1fr; } }

  /* ── Atlas Health (atlas_health.html) ── */
  .atlas-health-row { display:grid; grid-template-columns:240px 1fr; gap:var(--space-5); margin-bottom:var(--space-5); }
  .atlas-health-figure { text-align:center; }
  .atlas-health-trend { width:120px; height:32px; margin-top:var(--space-2); color:var(--ok); }
  .atlas-health-sub { font-size:var(--text-sm); color:var(--text-3); margin-top:var(--space-2); }
  .atlas-breakdown-row { display:flex; align-items:center; gap:var(--space-3); padding:var(--space-2) 0;
                        border-bottom:1px solid var(--border-subtle); }
  .atlas-breakdown-row:last-child { border-bottom:none; }
  .atlas-breakdown-label { font-size:var(--text-sm); color:var(--text-2); flex:1 1 auto; }
  .atlas-breakdown-bar { width:200px; height:6px; background:var(--canvas); border-radius:var(--radius-pill); overflow:hidden; flex:none; }
  .atlas-breakdown-fill { display:block; height:100%; border-radius:var(--radius-pill); background:var(--accent); }
  .atlas-breakdown-fill.is-danger { background:var(--danger); }
  .atlas-breakdown-fill.is-warn { background:var(--warn); }
  .atlas-breakdown-fill.is-muted { background:var(--text-3); }
  .atlas-breakdown-fill.is-info { background:var(--info); }
  .atlas-breakdown-count { font-size:var(--text-sm); font-weight:700; width:30px; text-align:right; flex:none; }
  .atlas-quality-head { display:flex; justify-content:space-between; align-items:flex-start; gap:var(--space-4); }
  .atlas-quality-body { display:grid; grid-template-columns:180px 1fr; gap:var(--space-5); align-items:center; margin-top:var(--space-4); }
  .atlas-quality-delta { font-size:var(--text-sm); font-weight:700; margin-top:var(--space-1); }
  .atlas-quality-delta.is-down { color:var(--danger); }
  .atlas-quality-delta.is-up { color:var(--ok); }
  .atlas-quality-alert { margin-top:var(--space-4); display:flex; align-items:center; gap:var(--space-3); flex-wrap:wrap; }
  @media (max-width:800px) {
    .atlas-health-row { grid-template-columns:1fr; }
    .atlas-quality-body { grid-template-columns:1fr; }
  }
  .atlas-findings-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(360px,1fr)); gap:var(--space-3); }
  .atlas-finding-card { border-left:4px solid var(--text-3); }
  .atlas-finding-card.is-urgent { border-left-color:var(--danger); }
  .atlas-finding-card.is-warn { border-left-color:var(--warn); }
  .atlas-finding-card.is-info { border-left-color:var(--info); }
  .atlas-fc-head { display:flex; justify-content:space-between; align-items:flex-start; gap:var(--space-3); margin-bottom:var(--space-2); }
  .atlas-fc-title { font-size:var(--text-base); font-weight:700; }
  .atlas-fc-type { font-size:var(--text-xs); font-weight:700; text-transform:uppercase; letter-spacing:.05em;
                  color:var(--text-3); white-space:nowrap; }
  .atlas-fc-body { font-size:var(--text-sm); color:var(--text-2); line-height:1.5; margin-bottom:var(--space-3); }
  .atlas-fc-affected { display:flex; flex-wrap:wrap; gap:var(--space-2); margin-bottom:var(--space-3); }
  .atlas-fc-actions { display:flex; gap:var(--space-2); flex-wrap:wrap; }

  /* ── Revision history (atlas_history.html) ── */
  .atlas-rev-list { display:flex; flex-direction:column; gap:var(--space-1); }
  .atlas-rev summary { display:flex; gap:var(--space-3); align-items:center; padding:var(--space-2) var(--space-3);
                       border-radius:var(--radius-ctl); cursor:pointer; font-size:var(--text-sm); list-style:none; }
  .atlas-rev summary:hover { background:var(--canvas); }
  .atlas-rev-by { font-size:var(--text-xs); font-weight:700; text-transform:uppercase;
                 padding:2px var(--space-2); border-radius:var(--radius-pill); }
  .atlas-rev-by.is-atlas { background:var(--accent-soft); color:var(--accent); }
  .atlas-rev-by.is-user { background:var(--ok-bg); color:var(--ok); }
  .atlas-rev-body { margin:4px var(--space-3) var(--space-3); padding:var(--space-4); background:var(--canvas);
                   border-radius:var(--radius-ctl); font-size:var(--text-sm); line-height:1.6;
                   white-space:pre-wrap; max-height:320px; overflow-y:auto; }

  /* ── Trails (atlas_trails.html, atlas_trail.html, atlas_trail_edit.html) ── */
  .atlas-trail-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:var(--space-3); }
  .atlas-trail-card { display:block; background:var(--surface); border:1px solid var(--border-subtle);
                      border-radius:var(--radius-card); padding:var(--space-4); text-decoration:none;
                      color:inherit; transition:border-color var(--dur-1) var(--ease); }
  .atlas-trail-card:hover { border-color:var(--accent); }
  .atlas-tc-top { display:flex; justify-content:space-between; align-items:center; gap:var(--space-2); margin-bottom:var(--space-2); }
  .atlas-tc-steps { font-size:var(--text-xs); color:var(--text-3); font-weight:600; }
  .atlas-tc-title { font-size:var(--text-lg); font-weight:700; line-height:1.3; color:var(--text-1); }
  .atlas-tc-purpose { font-size:var(--text-sm); color:var(--text-2); line-height:1.45; margin:var(--space-1) 0 var(--space-2);
                     display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
  .atlas-tc-meta { font-size:var(--text-xs); color:var(--text-3); }
  .atlas-trail-steps { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:var(--space-3); }
  .atlas-trail-step { display:flex; align-items:flex-start; gap:var(--space-4); background:var(--surface);
                     border:1px solid var(--border-subtle); border-radius:var(--radius-card); padding:var(--space-3) var(--space-4); }
  .atlas-ts-n { width:26px; height:26px; flex:none; border-radius:50%; background:var(--accent-soft); color:var(--accent);
               font-weight:800; font-size:var(--text-xs); display:flex; align-items:center; justify-content:center; }
  .atlas-ts-body { flex:1 1 auto; min-width:0; }
  .atlas-ts-head { display:flex; align-items:center; gap:var(--space-2); flex-wrap:wrap; }
  .atlas-ts-title { font-size:var(--text-base); font-weight:700; text-decoration:none; color:var(--text-1); }
  .atlas-ts-title:hover { color:var(--accent); }
  .atlas-ts-note { font-size:var(--text-sm); color:var(--text-2); margin-top:var(--space-1); line-height:1.45; }
  .atlas-ts-note-form { display:flex; gap:var(--space-2); margin-top:var(--space-2); }
  .atlas-ts-note-form .input { flex:1 1 auto; }
  .atlas-ts-actions { display:flex; gap:var(--space-1); flex:none; }
  .atlas-page-results { display:flex; flex-direction:column; gap:2px; margin-top:var(--space-2); }
  .atlas-page-result { display:flex; align-items:center; gap:var(--space-2); padding:var(--space-2) var(--space-3);
                       border:none; border-radius:var(--radius-ctl); background:transparent; text-align:left;
                       font-size:var(--text-base); font-family:inherit; cursor:pointer; color:inherit; }
  .atlas-page-result:hover { background:var(--canvas); }

  /* ── Synthesis panel on job/company/role detail (_atlas_panel.html) ── */
  .atlas-panel-head { display:flex; justify-content:space-between; align-items:flex-start;
                     gap:var(--space-3); flex-wrap:wrap; }
  .atlas-panel-actions { display:flex; gap:var(--space-2); align-items:center; flex-wrap:wrap; }
  .atlas-chip { display:inline-flex; align-items:center; gap:4px; padding:3px var(--space-2);
               border-radius:var(--radius-pill); font-size:var(--text-xs); font-weight:700; }
  .atlas-chip.atlas-fresh { background:var(--ok-bg); color:var(--ok); }
  .atlas-chip.atlas-stale { background:var(--warn-bg); color:var(--warn); }
  .atlas-panel-fallback { margin-top:var(--space-3); padding:var(--space-2) var(--space-4);
                         border-radius:var(--radius-ctl); background:var(--warn-bg); color:var(--warn); font-size:var(--text-sm); }
  .atlas-panel-body { margin-top:var(--space-4); font-size:var(--text-base); line-height:1.6;
                     max-height:420px; overflow-y:auto; }
  .atlas-panel-writing { margin-top:var(--space-4); padding:var(--space-5); text-align:center;
                        color:var(--text-3); font-size:var(--text-sm); background:var(--canvas); border-radius:var(--radius-ctl); }
  .atlas-writing-spinner { display:inline-block; margin-right:var(--space-2); animation:atlas-pulse 1.6s ease-in-out infinite; }
  /* Read, and waiting on the reader rather than on Orbit. Amber, because
     that is the colour of everything in this product that is waiting on a
     decision — and pointedly not the spinner, which claims work in flight. */
  .atlas-panel-wait { margin-top:var(--space-4); padding:var(--space-3) var(--space-4);
                      border-radius:var(--radius-ctl); background:var(--amber-soft);
                      color:var(--amber-ink); font-size:var(--text-sm); line-height:1.6; }
  .atlas-panel-wait a { color:var(--amber-ink); font-weight:600;
                        white-space:nowrap; margin-inline-start:var(--space-2); }
  @keyframes atlas-pulse { 0%,100% { opacity:.5; } 50% { opacity:1; } }

  /* ── Graph mount point (atlas.html, phase-3 reserve) ── */
  #atlas-graph-panel { min-height:280px; margin-bottom:var(--space-5);
                       display:flex; align-items:center; justify-content:center; }

  /* ============================== Network (page-specific) ============================== */
  /* companies.html / company_detail.html / contacts.html / contact_detail.html.
     Company/contact identity uses the shared .avatar + .grad-id-N tokens
     (see Avatar section); everything below is layout unique to these pages. */

  /* ── Company search + inline "add company" dropdown (companies.html) ── */
  .co-search-wrap { position:relative; margin-bottom:var(--space-5); }
  /* A composite field — the input inside carries no border of its own, so the
     box is the field and wears the field's shape and focus. */
  .co-search-box { display:flex; align-items:center; gap:var(--space-2);
                   padding:var(--space-2) var(--space-4); border:1px solid var(--border);
                   border-radius:var(--radius-field); background:var(--surface);
                   transition:border-color var(--dur-1) var(--ease),
                              box-shadow var(--dur-1) var(--ease); }
  .co-search-box:hover { border-color:var(--text-3); }
  .co-search-box:focus-within { border-color:var(--accent);
                                box-shadow:0 0 0 3px var(--accent-soft); }
  .co-search-icon { color:var(--text-3); flex:none; }
  .co-search-input { flex:1 1 auto; min-width:0; border:none; outline:none; background:none;
                     font:400 var(--text-base) var(--font-ui); color:var(--text-1); padding:var(--space-1) 0; }
  .co-search-input::placeholder { color:var(--text-3); }
  .co-search-kbd { flex:none; padding:1px var(--space-2); border-radius:var(--radius-ctl);
                   background:var(--canvas); border:1px solid var(--border-subtle);
                   font-size:var(--text-xs); color:var(--text-3); font-family:var(--font-mono); }
  .co-dropdown { position:absolute; top:calc(100% + var(--space-1)); left:0; right:0;
                background:var(--surface); border:1px solid var(--border-subtle);
                border-radius:var(--radius-card); box-shadow:var(--shadow-float);
                z-index:30; max-height:320px; overflow-y:auto; padding:var(--space-1) 0; }
  .co-dd-label { padding:var(--space-1) var(--space-4); font-size:var(--text-xs);
                text-transform:uppercase; letter-spacing:.04em; color:var(--text-3); }
  .co-dd-item { display:flex; align-items:center; justify-content:space-between;
               gap:var(--space-2); padding:var(--space-2) var(--space-4); cursor:pointer; }
  .co-dd-item:hover, .co-dd-item.co-dd-active { background:var(--canvas); }
  .co-dd-info { display:flex; align-items:baseline; gap:var(--space-2); min-width:0; }
  .co-dd-name { font-size:var(--text-base); color:var(--text-1); font-weight:500;
               overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .co-dd-industry { font-size:var(--text-xs); color:var(--text-3); }
  .co-dd-add { flex:none; padding:2px var(--space-2); border-radius:var(--radius-ctl);
              border:1px solid var(--border); background:var(--surface); color:var(--text-2);
              font-size:var(--text-xs); font-weight:600; cursor:pointer; }
  .co-dd-add:hover { border-color:var(--accent); color:var(--accent); }
  .co-dd-divider { height:1px; background:var(--border-subtle); margin:var(--space-1) 0; }
  .co-dd-create { gap:var(--space-2); color:var(--accent); font-size:var(--text-sm); font-weight:500; }

  /* ── Company grid (companies.html) ── */
  .co-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(320px, 1fr)); gap:var(--space-4); }
  .co-card { background:var(--surface); border:1px solid var(--border-subtle);
            border-radius:var(--radius-card); overflow:hidden; display:flex;
            flex-direction:column; transition:transform var(--dur-1) var(--ease),
            box-shadow var(--dur-1) var(--ease); }
  .co-card:hover { transform:translateY(-2px); box-shadow:var(--shadow-float); }
  .co-card-banner { height:5px; flex:none; }
  .co-card-link { display:block; text-decoration:none; color:inherit; flex:1 1 auto;
                 padding:var(--space-4) var(--space-4) 0; }
  .co-card-top { display:flex; align-items:flex-start; gap:var(--space-3); }
  .co-card-identity { flex:1 1 auto; min-width:0; }
  .co-card-name { font-size:var(--text-lg); font-weight:600; color:var(--text-1);
                 overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .co-card-subtitle { font-size:var(--text-sm); color:var(--text-3); margin-top:2px;
                      overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .co-card-watch { flex:none; }
  .co-watch-btn { width:32px; height:32px; border-radius:50%; border:1px solid var(--border);
                 background:var(--surface); color:var(--text-3); display:inline-flex;
                 align-items:center; justify-content:center; cursor:pointer; padding:0; }
  .co-watch-btn:hover { border-color:var(--warn); color:var(--warn); }
  .co-watch-btn.co-watch-active { border-color:var(--warn); background:var(--warn-bg); color:var(--warn); }
  .co-watch-btn:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
  .co-card-meta { display:flex; flex-wrap:wrap; gap:var(--space-3); margin-top:var(--space-3);
                  font-size:var(--text-sm); color:var(--text-3); }
  .co-card-meta-item { display:inline-flex; align-items:center; gap:var(--space-1); }
  .co-card-meta-remote { color:var(--ok); }
  .co-card-desc { font-size:var(--text-sm); color:var(--text-2); margin-top:var(--space-3); line-height:1.5; }
  .co-card-tags { display:flex; flex-wrap:wrap; gap:var(--space-1); margin-top:var(--space-3); }
  .co-card-tag { display:inline-flex; padding:2px var(--space-2); border-radius:var(--radius-pill);
                background:var(--canvas); color:var(--text-2); font-size:var(--text-xs); font-weight:500; }
  .co-card-footer { display:flex; align-items:center; justify-content:space-between; gap:var(--space-2);
                    padding:var(--space-3) var(--space-4); margin-top:var(--space-3);
                    border-top:1px solid var(--border-subtle); }
  .co-card-stats { display:flex; align-items:center; gap:var(--space-3); font-size:var(--text-sm); color:var(--text-2); }
  .co-card-stat { display:inline-flex; align-items:center; gap:var(--space-1); }
  .co-card-stat-dot { width:6px; height:6px; border-radius:50%; background:var(--text-3); flex:none; }
  .co-card-stat-dot-open { background:var(--ok); }
  .co-card-stat-dot-tracked { background:var(--accent); }
  .co-card-enriched { color:var(--ok); flex:none; }

  /* ── Company hero (company_detail.html) ── */
  .co-hero { position:relative; margin-bottom:var(--space-5); }
  .co-hero-banner { height:96px; border-radius:var(--radius-card) var(--radius-card) 0 0; }
  .co-hero-body { padding:0 var(--space-6) var(--space-5); position:relative; }
  .co-hero-avatar { position:absolute; top:-32px; left:var(--space-6); border:3px solid var(--surface); }
  .co-hero-content { padding-top:40px; }
  .co-hero-top-row { display:flex; align-items:flex-start; justify-content:space-between;
                     gap:var(--space-4); flex-wrap:wrap; }
  .co-hero-identity { flex:1 1 auto; min-width:0; }
  .co-hero-name { font-size:var(--text-2xl); font-weight:700; color:var(--text-1);
                 display:flex; align-items:center; gap:var(--space-2); margin:0; }
  .co-hero-tagline { font-size:var(--text-base); color:var(--text-2); margin-top:var(--space-1); }
  .co-hero-actions { display:flex; align-items:center; gap:var(--space-2); flex-wrap:wrap; flex:none; }
  .co-hero-verified { flex-shrink:0; }
  .co-hero-spinner { display:inline-flex; align-items:center; gap:var(--space-2);
                     padding:var(--space-1) var(--space-3); border-radius:var(--radius-pill);
                     background:var(--info-bg); color:var(--info); font-size:var(--text-sm); font-weight:500; }
  .co-spin { animation:co-spin 1s linear infinite; }
  @keyframes co-spin { from { transform:rotate(0deg); } to { transform:rotate(360deg); } }
  .co-hero-meta { margin-top:var(--space-3); font-size:var(--text-sm); color:var(--text-2); }
  .co-hero-culture-tags { display:flex; flex-wrap:wrap; gap:var(--space-1); margin-top:var(--space-3); }
  .co-culture-tag { display:inline-flex; padding:2px var(--space-2); border-radius:var(--radius-pill);
                    background:var(--canvas); color:var(--text-2); font-size:var(--text-xs); font-weight:500; }
  .co-hero-stats-row { display:flex; align-items:center; justify-content:space-between;
                       gap:var(--space-3); margin-top:var(--space-4); flex-wrap:wrap; }
  .co-hero-stats { font-size:var(--text-base); font-weight:600; color:var(--text-1); }
  .co-hero-stat-sep { color:var(--text-3); margin:0 var(--space-1); }
  .co-hero-badges { display:flex; gap:var(--space-2); flex-wrap:wrap; }
  @media (max-width:767px) {
    .co-hero-body { padding:0 var(--space-4) var(--space-4); }
    .co-hero-avatar { left:var(--space-4); }
    .co-hero-top-row { flex-direction:column; }
    .co-hero-name { font-size:var(--text-xl); }
  }

  /* ── Inline admin edit (name/website/careers_url on company hero + overview) ── */
  .co-editable-row { margin-bottom:var(--space-4); }
  .co-editable-row:last-child { margin-bottom:0; }
  .co-field-label-row { display:flex; align-items:center; gap:var(--space-1);
                        font-size:var(--text-xs); color:var(--text-3); margin-bottom:var(--space-1); }
  .co-edit-btn { display:inline-flex; align-items:center; justify-content:center;
                width:22px; height:22px; border:none; background:none; color:var(--text-3);
                cursor:pointer; border-radius:var(--radius-ctl); padding:0; }
  .co-edit-btn:hover { color:var(--accent); background:var(--accent-soft); }
  .co-edit-btn:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
  .co-field-edit { display:none; align-items:center; gap:var(--space-2); margin-top:var(--space-2); }
  .co-field-edit .co-field-input { flex:1 1 auto; min-width:0; }

  /* ── More-actions kebab menu (company hero) ── */
  .co-more-wrap { position:relative; flex:none; }
  .co-more-btn { width:32px; height:32px; border-radius:50%; border:1px solid var(--border);
                background:var(--surface); color:var(--text-2); display:inline-flex;
                align-items:center; justify-content:center; cursor:pointer; padding:0; }
  .co-more-btn:hover { background:var(--canvas); color:var(--text-1); }
  .co-more-btn:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
  .co-more-menu { display:none; position:absolute; right:0; top:calc(100% + var(--space-2));
                 background:var(--surface); border:1px solid var(--border-subtle);
                 border-radius:var(--radius-card); box-shadow:var(--shadow-float);
                 min-width:220px; z-index:30; padding:var(--space-2) 0; }
  .co-more-wrap.open .co-more-menu { display:block; }
  .co-more-item { display:flex; align-items:center; gap:var(--space-3); width:100%;
                 padding:var(--space-2) var(--space-4); font-size:var(--text-base); font-weight:500;
                 color:var(--text-1); text-decoration:none; cursor:pointer; background:none;
                 border:none; text-align:left; }
  .co-more-item:hover { background:var(--canvas); }
  .co-more-item svg { color:var(--text-3); flex:none; }
  .co-more-danger { color:var(--danger); }
  .co-more-danger svg { color:var(--danger); }
  .co-more-danger:hover { background:var(--danger-bg); }

  /* ── Culture-tag chip input (company overview/culture tabs) ── */
  .co-tag-wrap { display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-1);
                padding:var(--space-2) var(--space-3); border:1px solid var(--border);
                border-radius:var(--radius-ctl); background:var(--surface); cursor:text;
                min-height:42px; transition:border-color var(--dur-1) var(--ease); }
  .co-tag-wrap:focus-within { border-color:var(--accent); }
  .co-tag-pill { display:inline-flex; align-items:center; gap:var(--space-1);
                padding:3px var(--space-2) 3px var(--space-3); border-radius:var(--radius-pill);
                background:var(--canvas); border:1px solid var(--border-subtle);
                font-size:var(--text-sm); font-weight:500; color:var(--text-2); white-space:nowrap; }
  .co-tag-pill-x { display:inline-flex; align-items:center; justify-content:center;
                  width:16px; height:16px; border-radius:50%; border:none; background:none;
                  color:var(--text-3); font-size:var(--text-base); cursor:pointer; padding:0; line-height:1; }
  .co-tag-pill-x:hover { background:var(--danger-bg); color:var(--danger); }
  .co-tag-field { flex:1 1 120px; min-width:120px; border:none; outline:none; background:none;
                 padding:2px 0; font-size:var(--text-sm); color:var(--text-1); font-family:inherit; }
  .co-tag-field::placeholder { color:var(--text-3); }

  /* ── Contact identity (contacts.html / contact_detail.html) ── */
  .ct-row-identity { display:inline-flex; align-items:center; gap:var(--space-2);
                     color:var(--text-1); text-decoration:none; font-weight:500; }
  .ct-row-identity:hover { color:var(--accent); }
  /* ── One contact (contact_detail.html) ──
     `.ct-head` and `.ct-detail-grid` are gone with the two cards they held:
     a read-only "Contact Information" panel beside an always-open edit form
     showing the same four fields. The identity is read here and edited
     through `formDialog`, like every other record in the app.

     The composer and the trail are the job page's `.jd-log` and `.jd-tl`
     unchanged — this page had no way to record a talk at all, and inventing
     a second shape for the one it was missing would have been the wrong
     kind of new. */
  .ct-acts { display:flex; align-items:center; gap:var(--space-2); }
  .ct-acts form { margin:0; }
  .ct-hero { display:flex; gap:var(--space-5); align-items:flex-start; flex-wrap:wrap;
             background:var(--surface); border:1px solid var(--border-subtle);
             border-radius:var(--radius-card); box-shadow:var(--lift-1);
             padding:var(--space-6); margin-block-end:var(--space-6); }
  .ct-id { flex:1 1 240px; min-width:0; }
  .ct-n { font:400 26px/1.15 var(--font-display); letter-spacing:-.015em; margin:0; }
  .ct-r { margin:4px 0 0; color:var(--text-2); }
  .ct-links { display:flex; gap:var(--space-4); flex-wrap:wrap; margin-block-start:var(--space-3); }
  .ct-link { display:inline-flex; align-items:center; gap:6px; font-size:var(--text-sm);
             color:var(--accent-ink); text-decoration:none; }
  .ct-link svg { width:14px; height:14px; flex:none; }
  .ct-link:hover { text-decoration:underline; text-underline-offset:2px; }
  .ct-link.is-missing { color:var(--text-3); }
  .ct-chips { margin-block-start:var(--space-4); display:flex; gap:var(--space-2); flex-wrap:wrap; }
  .ct-notes { margin:var(--space-4) 0 0; font-size:var(--text-sm); color:var(--text-2);
              white-space:pre-wrap; max-width:64ch; }
  .ct-log { margin-block-end:var(--space-6); }
  .ct-log-about { flex:0 1 auto; max-width:320px; }
  /* Which opening a talk was about. The job page never needs this — it is the
     job — so it lives here rather than in `.jd-tl-w`. */
  .ct-about { display:inline-flex; align-items:center; gap:5px; color:var(--accent-ink);
              text-decoration:none; font-size:var(--text-xs); }
  .ct-about svg { width:12px; height:12px; flex:none; }
  .ct-about:hover { text-decoration:underline; text-underline-offset:2px; }
  .ct-empty { margin-block-start:var(--space-5); }
  @media (max-width:700px) {
    .ct-log-about { flex:1 1 100%; max-width:none; }
  }

  /* Company section tabs are sized with the settings and admin ones — see
     `.set-tabs, .co-tabs, .adm-tabs` in the Account section. Two definitions of the same
     object is how the three drifted apart in the first place. */

  /* ── Interview Prep (interview_prep.html) ── */
  .prep-progress { display:flex; align-items:center; gap:var(--space-2);
                   font-size:var(--text-sm); color:var(--text-2); }
  .prep-progress-bar { width:120px; height:8px; background:var(--border);
                       border-radius:var(--radius-pill); overflow:hidden; flex:none; }
  .prep-progress-fill { display:block; height:100%; background:var(--accent);
                        border-radius:var(--radius-pill);
                        transition:width var(--dur-2) var(--ease); }
  .prep-section { margin-bottom:var(--space-6); }
  .prep-section-head { display:flex; align-items:center; gap:var(--space-2);
                       font-size:var(--text-base); font-weight:700; color:var(--text-1);
                       margin:0 0 var(--space-4); }
  .prep-dot { width:8px; height:8px; border-radius:50%; flex:none; }
  .prep-card { padding:var(--space-5); margin-bottom:var(--space-4); }
  .prep-question-text { font-size:var(--text-base); font-weight:600; color:var(--text-1);
                        line-height:1.5; margin-bottom:var(--space-3); }
  .prep-stories { font-size:var(--text-sm); color:var(--text-2); margin-bottom:var(--space-4);
                 padding:var(--space-3); background:var(--canvas);
                 border-radius:var(--radius-ctl); border:1px dashed var(--border); }
  .prep-stories strong { color:var(--text-1); font-weight:600; }
  .prep-answer-form { display:flex; flex-direction:column; gap:var(--space-2); }
  .prep-answer-meta { display:flex; align-items:center; justify-content:space-between;
                      margin-top:var(--space-1); }
  .prep-saved { font-size:var(--text-sm); color:var(--ok); font-weight:600; }
  .prep-share-row { margin-top:var(--space-3); padding-top:var(--space-3);
                    border-top:1px solid var(--border-subtle); }

  /* ── Insights (insights.html) ── */
  .ins-subtitle { color:var(--text-2); margin:0 0 var(--space-6); }
  .ins-section { margin-bottom:var(--space-8); }
  .ins-section-head { display:flex; align-items:center; gap:var(--space-3);
                      margin-bottom:var(--space-4); padding-bottom:var(--space-3);
                      border-bottom:1px solid var(--border-subtle); }
  .ins-section-head h2 { font-size:var(--text-lg); font-weight:600; color:var(--text-1);
                         margin:0; }
  .ins-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(300px, 1fr));
             gap:var(--space-4); }
  .ins-card { border-left:3px solid var(--border-subtle); }
  .ins-tier-1 { border-left-color:var(--info); }
  .ins-tier-2 { border-left-color:var(--accent); }
  .ins-tier-3 { border-left-color:var(--warn); }
  .ins-card-title { font-size:var(--text-lg); font-weight:600; color:var(--text-1);
                    margin:0 0 var(--space-2); }
  .ins-card-body-text { color:var(--text-2); font-size:var(--text-sm); line-height:1.5;
                        margin:0 0 var(--space-3); }
  .ins-job-list { list-style:none; margin:var(--space-2) 0 0; padding:0;
                 display:flex; flex-direction:column; gap:var(--space-1); }
  .ins-job-list li { padding:var(--space-1) 0; border-bottom:1px solid var(--border-subtle); }
  .ins-job-list li:last-child { border-bottom:0; }
  .ins-compare { display:grid; grid-template-columns:1fr 1fr; gap:var(--space-3);
                margin-top:var(--space-2); }
  #skill-coverage-panel { min-height:220px; margin-top:var(--space-5);
                          display:flex; align-items:center; justify-content:center; }

  /* ============================== Account (page-specific) ============================== */
  /* settings.html (.set-*, .bill-*) · pricing/checkout (.price-*, .checkout-*) ·
     login.html (.auth-*, standalone page — no app shell) · profile.html (.prof-*) ·
     notifications.html (.notif-*) · kb.html (.kb-*) · shared card subtitle (.acct-*). */

  .acct-card-subtitle { font-size:var(--text-sm); color:var(--text-3); margin-top:2px; }

  /* ── Settings nav + sections (settings.html) ──
     Rebuilt 2026-09-06. Four things were wrong and each has one rule here:
     the tab track was 8px shorter than the identical one in /admin; a value
     was right-aligned so two fields in a column had no common edge to scan
     down (and RTL had no chance); every tab opened with an <h2> repeating the
     pill directly above it; and the language picker was a bespoke 6px box in
     a page made of pills. */

  /* One definition, all three names — settings, a company, and admin. The
     three had drifted to three copies of this and settings' was 8px short.
     `.pills`/`.pill` size a track down for the
     segmented groups that live inside a toolbar; a page's section nav is a
     different object and meets the full control height. `.adm-tabs` had this
     and `.set-tabs` never did — that was the whole of the size difference. */
  /* The track's own padding would push the first pill 4px in from the
     content below it; pulling the track out by that padding puts the first
     pill's edge on the page's edge, so tab and content start on one line. */
  .set-tabs, .co-tabs, .adm-tabs, .ip-tabs { margin-bottom:var(--space-4); flex-wrap:wrap;
                                   margin-inline-start:calc(-1 * var(--space-1));
                                   max-width:calc(100% + var(--space-1)); }
  /* Scrolling only where it is needed. `overflow-x:auto` establishes a
     clipping box on both axes, which cut the head off every tooltip these
     pills drop — and the viewports that need to scroll are the touch ones,
     where `.tip` does not render at all. */
  @media (max-width:767px) {
    .set-tabs, .co-tabs, .adm-tabs, .ip-tabs { overflow-x:auto; -webkit-overflow-scrolling:touch; }
  }
  /* Doubled selectors buy specificity, not decoration: `.pills` pins the track
     to one control height and `.pill` sizes a pill down to (--ctl-h − 8) for
     the segmented groups inside a toolbar. Both are declared later in this
     file, so matching their specificity loses on order. A page's section nav
     is a different object — it meets the control height, and the track grows
     by its own padding. */
  .set-tabs.set-tabs, .co-tabs.co-tabs, .adm-tabs.adm-tabs, .ip-tabs.ip-tabs { height:auto; }
  .set-tabs.set-tabs .pill, .co-tabs.co-tabs .pill, .adm-tabs.adm-tabs .pill, .ip-tabs.ip-tabs .pill {
    height:var(--ctl-h); padding-inline:var(--space-4);
    white-space:nowrap; flex:none; }

  /* The line that replaced the repeated <h2>. It says what the tab is for,
     which the pill above it cannot. */
  .set-intro { margin:0 0 var(--space-5); color:var(--text-3);
               font-size:var(--text-sm); max-width:66ch; }

  .set-section { margin-bottom:var(--space-8); }
  .set-card { margin-bottom:var(--space-4); }
  .set-row { display:flex; align-items:center; justify-content:space-between;
             gap:var(--space-5); padding:var(--space-4) var(--space-5);
             border-bottom:1px solid var(--border-subtle); }
  .set-row:last-child, .set-row.is-last { border-bottom:none; }
  .set-row-label { flex:1; min-width:0; }
  .set-row-title { font-weight:500; font-size:var(--text-base); color:var(--text-1); }
  .set-row-desc { font-size:var(--text-sm); color:var(--text-3); margin-top:1px; }

  /* Two kinds of control, two alignments, and the difference is whether the
     thing is read or operated.

     A field you *read* — a name, a URL, a chosen language — aligns to `start`,
     because a value reads from where it begins and a column of them needs one
     edge to scan down. This used to be `text-align:right`, which put every
     value and every placeholder hard against the right rule.

     A control you only *operate* — a switch, a segmented picker, the avatar —
     has no text to scan, so it sits at the far end of the row where the eye
     already is after reading the label. `flex-end` and logical properties
     throughout: `right` never had a chance in Arabic. */
  .set-row-control { flex:none; width:280px; text-align:start; position:relative;
                     display:flex; justify-content:flex-end; align-items:center; }
  .set-row-control > * { flex:none; }
  /* A field takes the whole column, so its start edge is the column's. */
  .set-row-control .input, .set-row-control .select,
  .set-row-control select, .set-row-control textarea { width:100%; text-align:start; }
  .set-row-control input:disabled { background:var(--sunk); color:var(--text-3);
                                    cursor:not-allowed; }

  /* A <button>, not a <div>: it does something, so it has to be reachable by
     the keyboard. The element's own chrome comes off; `.avatar` supplies the
     rest. */
  .set-avatar { width:40px; height:40px; font-size:var(--text-lg); cursor:pointer;
                border:none; padding:0; font-family:var(--font-ui); }
  .set-avatar:hover { box-shadow:var(--lift-2); }
  .set-avatar:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }

  .set-segmented { display:inline-flex; background:var(--canvas);
                   border:1px solid var(--border-subtle); border-radius:var(--radius-pill);
                   padding:3px; gap:2px; height:var(--ctl-h); align-items:center; }
  .set-segmented label { position:relative; cursor:pointer; display:grid; place-items:center;
                          width:42px; height:30px; border-radius:var(--radius-pill);
                          color:var(--text-3);
                          transition:background var(--dur-1) var(--ease),
                                     color var(--dur-1) var(--ease); }
  .set-segmented label:hover { color:var(--text-1); }
  .set-segmented input { position:absolute; opacity:0; width:0; height:0; }
  .set-segmented input:checked + label { background:var(--surface); color:var(--text-1);
                                          box-shadow:var(--lift-1); }
  .set-segmented input:focus-visible + label { outline:2px solid var(--accent); outline-offset:1px; }
  .set-segmented svg { width:16px; height:16px; }

  .set-toggle { position:relative; display:inline-block; width:36px; height:20px; flex-shrink:0; }
  .set-toggle input { position:absolute; opacity:0; width:0; height:0; }
  .set-toggle-slider { position:absolute; inset:0; background:var(--border); border-radius:var(--radius-pill);
                        cursor:pointer; transition:background var(--dur-1) var(--ease); }
  .set-toggle-slider::before { content:""; position:absolute; height:16px; width:16px; left:2px; top:2px;
                                background:var(--surface-raised); border-radius:50%;
                                transition:transform var(--dur-1) var(--ease); box-shadow:var(--lift-1); }
  .set-toggle input:checked + .set-toggle-slider { background:var(--accent); }
  .set-toggle input:checked + .set-toggle-slider::before { transform:translateX(16px); }
  .set-toggle input:focus-visible + .set-toggle-slider { outline:2px solid var(--accent); outline-offset:2px; }
  [dir="rtl"] .set-toggle-slider::before { left:auto; right:2px; }
  [dir="rtl"] .set-toggle input:checked + .set-toggle-slider::before { transform:translateX(-16px); }

  .set-action-row { display:flex; align-items:center; justify-content:space-between;
                     gap:var(--space-4); padding:var(--space-4) var(--space-5); }
  .set-divider { height:1px; background:var(--border-subtle); margin:0; }

  /* A quiet line at the foot of a card, for the rare and reversible thing —
     cancelling a plan. A red card there competes with the plan above it for
     the reader's attention, and loses the page its calm. */
  .set-foot-line { display:flex; align-items:center; justify-content:space-between;
                   gap:var(--space-4); flex-wrap:wrap; margin-top:var(--space-4);
                   padding-top:var(--space-4); border-top:1px solid var(--border-subtle);
                   font-size:var(--text-sm); color:var(--text-3); }

  /* Delete-account confirm modal */
  .set-modal-danger { background:var(--danger-bg); border:1px solid var(--danger); border-radius:var(--radius-ctl);
                       padding:var(--space-3); font-size:var(--text-sm); color:var(--danger); margin-bottom:var(--space-4); }
  .set-modal-hint { font-size:var(--text-sm); margin:0 0 var(--space-2); }
  .set-modal-input { width:100%; }
  .set-modal-acts { display:flex; gap:var(--space-2); justify-content:flex-end;
                    margin-top:var(--space-5); }

  @media (max-width:767px) {
    .set-row { flex-direction:column; align-items:flex-start; gap:var(--space-2); }
    .set-row-control { width:100%; }
  }

  /* ── Privacy (settings.html privacy tab) ──
     A page about giving data back opens by saying what is held. The figures
     are the export's own contents, counted, so the list cannot drift from
     what the download actually contains. */
  .pv-held { display:grid; grid-template-columns:repeat(auto-fit, minmax(150px,1fr));
             gap:1px; background:var(--border-subtle); border:1px solid var(--border-subtle);
             border-radius:var(--radius-card); overflow:hidden; margin-bottom:var(--space-3); }
  .pv-cell { background:var(--surface); padding:var(--space-4) var(--space-5); }
  .pv-cell b { display:block; font:500 var(--text-2xl)/1.1 var(--font-display);
               color:var(--text-1); font-variant-numeric:tabular-nums; }
  .pv-cell span { font:500 var(--text-xs) var(--font-mono); text-transform:uppercase;
                  letter-spacing:.1em; color:var(--text-3); }
  .pv-since { font-size:var(--text-sm); color:var(--text-3); margin:0 0 var(--space-4); }

  /* ── Billing (settings.html billing tab) ── */
  .bill-plan { padding:var(--space-6); display:flex; align-items:flex-start;
               gap:var(--space-6); flex-wrap:wrap; }
  .bill-plan-main { flex:1; min-width:240px; }
  .bill-kind { font:600 var(--text-xs) var(--font-mono); text-transform:uppercase;
               letter-spacing:.12em; color:var(--text-3); }
  .bill-name { font:500 32px/1.05 var(--font-display); letter-spacing:-.02em;
               margin:var(--space-2) 0; }
  /* What is true today, then why. `.bill-say` and `.bill-price` were here and
     are gone with the headline they served: the price of the plan is on the
     Channel that charges it, and a figure repeated on the billing page would
     be the second place it could be wrong. */
  .bill-when { margin:0; color:var(--text-2); font-size:var(--text-base); }
  .bill-when b { color:var(--text-1); font-weight:500; }
  .bill-note { margin:var(--space-3) 0 0; font-size:var(--text-sm); color:var(--text-3);
               max-width:56ch; }
  .bill-acts { display:flex; gap:var(--space-2); flex-wrap:wrap; align-items:flex-start; }
  .bill-buy { padding:var(--space-5) var(--space-6); }
  .bill-buy .up-pay { display:grid; gap:var(--space-2); max-width:420px; }

  /* The ledger. A log, not a receipt: pending and failed rows stay, because
     hiding a failed payment is how someone concludes they were charged twice.
     Six left-aligned columns — when, who took the money, how it was paid, how
     much, how it ended, and the document to open — so the row uses the width
     instead of packing both ends and leaving the middle empty. */
  .led-head, .led-row { display:grid;
    grid-template-columns:108px 96px minmax(0,1fr) 128px 104px 252px;
    gap:var(--space-4); align-items:center; }
  .led-head { padding:var(--space-3) var(--space-5);
              border-bottom:1px solid var(--border-subtle); }
  .led-head span { font:500 var(--text-xs) var(--font-mono); text-transform:uppercase;
                   letter-spacing:.1em; color:var(--text-3); }
  .led-row { padding:var(--space-3) var(--space-5);
             border-bottom:1px solid var(--border-subtle); }
  .led-row:last-child { border-bottom:none; }
  .led-d { font:400 var(--text-sm) var(--font-mono); color:var(--text-2); white-space:nowrap; }
  .led-p { font-size:var(--text-sm); color:var(--text-2);
           overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .led-c { font-size:var(--text-sm); color:var(--text-1);
           overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .led-a { font:500 var(--text-sm) var(--font-mono); white-space:nowrap;
           font-variant-numeric:tabular-nums; }
  .led-x { min-width:0; }
  .led-x .led-ref { display:inline-block; max-width:100%; overflow:hidden;
                    text-overflow:ellipsis; white-space:nowrap;
                    font:400 var(--text-xs) var(--font-mono); color:var(--text-3); }
  .led-x a.led-ref { color:var(--accent-ink); text-decoration:none; }
  .led-x a.led-ref:hover { text-decoration:underline; text-underline-offset:2px; }
  /* The status wears the app's tag rather than a dot: paid is done, pending is
     still moving, failed is a problem, and an abandoned checkout charged
     nothing so it stays the neutral grey. The amount is struck through only
     when no money moved. */
  .led-row > .jl-tag { justify-self:start; }
  .led-row.is-void .led-a { color:var(--text-3); text-decoration:line-through;
                            text-decoration-thickness:1px; }
  @media (max-width:720px) {
    .led-head { display:none; }
    .led-row { grid-template-columns:minmax(0,1fr) auto;
               gap:2px var(--space-4); align-items:start;
               padding:var(--space-4) var(--space-5); }
    .led-d { grid-column:1 / -1; grid-row:1; color:var(--text-3); }
    .led-c { grid-column:1; grid-row:2; }
    .led-a { grid-column:2; grid-row:2; text-align:end; }
    .led-p { grid-column:1; grid-row:3; color:var(--text-3); font-size:var(--text-xs); }
    .led-row > .jl-tag { grid-column:2; grid-row:3; justify-self:end; }
    .led-x { grid-column:1 / -1; grid-row:4; padding-top:var(--space-1); }
  }

  /* Usage on every plan — it used to be free-only, so a paying user could not
     see what the product had done for them all month.

     A dial rather than a bar, at the size the job page gives a score. Orbit
     already draws an allowance this way: `.jl-quota` is the ring in the jobs
     toolbar with what is *left* inside it, and a reader who has learnt that
     one should not have to learn a second shape here. A bar reads as progress
     towards something wanted; an allowance is the opposite — it runs down. */
  .bill-meters { border-top:1px solid var(--border-subtle);
                 padding:var(--space-6);
                 display:grid; grid-template-columns:repeat(auto-fit, minmax(220px,1fr));
                 gap:var(--space-6); }
  .bill-meter { display:flex; align-items:center; gap:var(--space-4); min-width:0; }
  .bill-dial { position:relative; display:inline-grid; place-items:center;
               width:64px; height:64px; flex:none; }
  .bill-dial svg { position:absolute; inset:0; width:100%; height:100%;
                   transform:rotate(-90deg); }
  .bill-dial circle { fill:none; stroke-width:3; }
  .bill-dial .track { stroke:var(--track); }
  /* pathLength="100" makes the dash array a percentage directly, so the arc is
     set in the template with no arithmetic and no JS. Round caps, because a
     conic gradient has no cap to round and ends in a hard radial edge. */
  .bill-dial .fill { stroke:var(--accent); stroke-linecap:round; }
  .bill-dial.is-near .fill { stroke:var(--amber); }
  .bill-dial.is-over .fill { stroke:var(--danger); }
  .bill-dial.is-uncapped .fill { stroke:var(--accent); opacity:.3; }
  .bill-dial-n { position:relative; font:500 var(--text-xl)/1 var(--font-display);
                 font-variant-numeric:tabular-nums; color:var(--text-1); }
  .bill-dial.is-over .bill-dial-n { color:var(--danger); }
  .bill-dial.is-near .bill-dial-n { color:var(--amber-ink); }
  .bill-meter-body { min-width:0; }
  .bill-meter-name { font:500 var(--text-xs) var(--font-mono); text-transform:uppercase;
                     letter-spacing:.1em; color:var(--text-3); }
  .bill-meter-num { display:block; margin-top:2px; font-size:var(--text-base);
                    font-weight:500; color:var(--text-1);
                    font-variant-numeric:tabular-nums; }
  .bill-meter-foot { margin-top:2px; font-size:var(--text-sm); color:var(--text-3); }

  /* The plan truth, in the amber strip the rest of the app uses for it. */
  .set-ask .jl-ask-copy { max-width:70ch; }
  .bill-row-title { font-weight:500; font-size:var(--text-base); color:var(--text-1); }
  .bill-row-desc { font-size:var(--text-sm); color:var(--text-3); }

  @media (max-width:767px) {
    .bill-plan { flex-direction:column; align-items:flex-start; }
  }

  /* ── Upgrade (pricing.html) ──
     Rebuilt 2026-09-06 over the old `.price-*` block, which was a 40px bold
     Inter figure and two equal cards with no weight between them. The mark on
     each card is the ascent rail restated at plan scale — rungs lit for what
     the plan reaches, amber at the summit — rather than an icon invented for
     this page. */
  .up { max-width:900px; margin-inline:auto; padding-block:var(--space-6) var(--space-10); }
  .up-head { text-align:center; margin-bottom:var(--space-8); }
  .up-title { font:500 clamp(28px, 3.6vw, 46px)/1.08 var(--font-display);
              letter-spacing:-.025em; margin:0 0 var(--space-3); text-wrap:balance; }
  .up-sub { color:var(--text-2); font-size:var(--text-lg); margin:0 auto var(--space-6); max-width:46ch; }
  /* `stretch`, not `start`: two plans side by side are one comparison, and a
     card that stops short reads as the lesser of the two before a word of it
     has been read. Both halves stretch too, so the feature lists start on one
     line however many words a tagline takes. */
  .up-grid { display:grid; grid-template-columns:repeat(2, minmax(0,1fr));
             gap:var(--space-5); align-items:stretch; }
  /* One plan left to show — a paying reader is not comparing anything. Half a
     page of empty column beside a single card reads as a layout that lost its
     other half. */
  .up-grid.is-single { grid-template-columns:minmax(0, 440px); justify-content:center; }
  .up-card { background:var(--surface); border:1px solid var(--border-subtle);
             border-radius:var(--radius-card); box-shadow:var(--lift-1);
             display:flex; flex-direction:column; overflow:hidden; }
  .up-card.is-pro { border-color:var(--accent); box-shadow:var(--lift-2); }
  .up-top { padding:var(--space-6); display:flex; flex-direction:column; }
  /* The two buttons are one decision asked twice, so they have to sit on one
     line — and with a price block on one card and a stack of Channel buttons
     on the other they never did. `margin-block-start:auto` in `.up-top` could
     not fix it either: the card stretches, `.up-top` does not, so there was
     no slack for the auto margin to take.

     Subgrid gives both cards the same two rows, so the heads end together and
     the feature lists start together whatever either contains. Where it is
     missing the cards keep the flex column above, which is what shipped. */
  @supports (grid-template-rows: subgrid) {
    .up-grid { grid-template-rows:auto auto; }
    .up-card { display:grid; grid-template-rows:subgrid; grid-row:span 2; }
    .up-grid.is-single .up-card { grid-row:span 2; }
  }
  /* The two buttons are the same decision asked twice, so they sit on one
     line. Pushed to the end of the head rather than following whatever text
     happens to precede them — a badge on one card and not the other was
     enough to knock them out of step. */
  .up-cta-slot { margin-block-start:auto; padding-block-start:var(--space-2); }
  .up-name { font:500 var(--text-2xl)/1.1 var(--font-display); letter-spacing:-.02em; margin:0; }
  .up-tag { color:var(--text-2); font-size:var(--text-base); margin:var(--space-1) 0 var(--space-5); }
  .up-price { display:flex; align-items:baseline; gap:var(--space-3);
              margin-bottom:var(--space-5); min-height:44px; }
  .up-amt { font:500 38px/1 var(--font-display); letter-spacing:-.03em;
            font-variant-numeric:tabular-nums; }
  .up-per { font-size:var(--text-sm); color:var(--text-3); line-height:1.35; }
  .up-per b { display:block; color:var(--text-2); font-weight:500; }
  .up-cta { width:100%; }
  .up-note { text-align:center; font-size:var(--text-sm); color:var(--text-3); margin:var(--space-3) 0 0; }
  /* `align-self`, because `.up-top` is a flex column and a column stretches
     its children: an inline-flex pill still grew to the full width of the
     card, so a two-word label sat inside a bar the width of the page with its
     text hard against one end. */
  .up-badge { display:inline-flex; align-self:flex-start; align-items:center; gap:6px;
              height:24px; padding-inline:var(--space-3); border-radius:var(--radius-pill);
              background:var(--ok-bg); color:var(--ok); font-size:var(--text-sm);
              font-weight:600; margin-bottom:var(--space-3); }
  .up-badge svg { width:13px; height:13px; }
  .up-save { display:inline-flex; align-self:flex-start; align-items:center; height:24px;
             padding-inline:var(--space-3);
             border-radius:var(--radius-pill); background:var(--accent-soft); color:var(--accent-ink);
             font-size:var(--text-sm); font-weight:600; margin-bottom:var(--space-3); }
  .up-feats { border-top:1px solid var(--border-subtle); padding:var(--space-5) var(--space-6) var(--space-6);
              background:var(--canvas); flex:1; }
  .up-feats-head { font:600 var(--text-xs) var(--font-mono); text-transform:uppercase;
                   letter-spacing:.12em; color:var(--text-3); margin-bottom:var(--space-3); }
  .up-feat { display:flex; align-items:flex-start; gap:var(--space-3); padding-block:6px;
             font-size:var(--text-base); color:var(--text-2); }
  .up-feat svg { width:16px; height:16px; flex:none; margin-top:3px; color:var(--ok); }
  .up-feat.is-off { color:var(--text-3); }
  .up-feat.is-off svg { color:var(--gap-neutral); }
  .up-foot { text-align:center; margin-top:var(--space-8); font-size:var(--text-sm); color:var(--text-3); }
  .up-limit { max-width:560px; margin:0 auto var(--space-6); text-align:center; }
  @media (max-width:760px) { .up-grid { grid-template-columns:1fr; } }

  /* ── Scheduler (settings.html scheduler tab) ──
     The cadence said in words, and the thresholds as one band instead of two
     decimal spinners with a bar drawn underneath them as decoration. */
  .sch-say { padding:var(--space-6) var(--space-6) var(--space-5); }
  .sch-lead { font:500 var(--text-2xl)/1.25 var(--font-display); letter-spacing:-.02em;
              margin:0 0 var(--space-2); }
  .sch-lead em { font-style:normal; color:var(--accent-ink); }
  .sch-next { font-size:var(--text-sm); color:var(--text-3); margin:0; }
  .sch-next b { color:var(--text-2); font-variant-numeric:tabular-nums; font-weight:600; }
  .sch-choice { padding:0 var(--space-6) var(--space-5); display:flex; gap:var(--space-3);
                flex-wrap:wrap; align-items:center; }
  .sch-cron { border-top:1px solid var(--border-subtle); padding:var(--space-4) var(--space-6);
              display:flex; align-items:center; gap:var(--space-4); flex-wrap:wrap; }
  .sch-cron .input { font-family:var(--font-mono); width:200px; }
  .sch-cron-hint { font-size:var(--text-sm); color:var(--text-3); flex:1; min-width:200px; }

  /* Two handles on one 0–100 axis — the same axis every score in Orbit is
     shown on. The stored decimals are a rendering of this, not the model. */
  .th-wrap { padding:var(--space-6) var(--space-6) var(--space-5); }
  .th-band { --skip:40%; --tailor:60%;
             position:relative; height:34px; margin:var(--space-6) 0 var(--space-2);
             user-select:none; touch-action:none; }
  .th-track { position:absolute; inset-block:13px; inset-inline:0; border-radius:var(--radius-pill);
              background:linear-gradient(90deg, var(--danger) 0%, var(--danger) var(--skip),
                          var(--gap-neutral) var(--skip), var(--gap-neutral) var(--tailor),
                          var(--ok) var(--tailor), var(--ok) 100%); opacity:.85; }
  .th-handle { position:absolute; top:0; width:22px; height:34px; margin-inline-start:-11px;
               border-radius:var(--radius-pill); background:var(--surface);
               border:1px solid var(--border); box-shadow:var(--lift-2); cursor:grab;
               display:grid; place-items:center; padding:0; }
  .th-handle:active { cursor:grabbing; }
  .th-handle::before { content:""; width:2px; height:12px; border-radius:1px; background:var(--text-3); }
  .th-handle:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
  .th-bubble { position:absolute; top:-24px; left:50%; transform:translateX(-50%);
               font:600 var(--text-xs) var(--font-mono); color:var(--text-2);
               font-variant-numeric:tabular-nums; }
  .th-zones { display:flex; font-size:var(--text-sm); }
  .th-zone { padding-top:var(--space-2); border-top:2px solid; min-width:0; }
  .th-zone b { display:block; font-weight:600; font-size:var(--text-sm); }
  .th-zone span { color:var(--text-3); font-size:var(--text-sm); }
  .th-zone.is-skip { border-color:var(--danger); color:var(--danger); }
  .th-zone.is-mid { border-color:var(--gap-neutral); color:var(--text-2); padding-inline:var(--space-3); }
  .th-zone.is-tail { border-color:var(--ok); color:var(--ok); text-align:end; }
  .th-say { margin:var(--space-5) 0 0; font-size:var(--text-sm); color:var(--text-2); max-width:62ch; }
  .th-say b { font-variant-numeric:tabular-nums; }

  /* ── Charter (settings.html charter tab) ──
     The policy is readable before it is editable. It used to open with a raw
     markdown textarea and put the parsed policy in a sidebar; almost nobody
     needs to edit the source, and everybody needs to know what Atlas may do. */
  .ch-row { display:flex; align-items:center; gap:var(--space-4);
            padding:var(--space-3) var(--space-5); border-bottom:1px solid var(--border-subtle); }
  .ch-row:last-child { border-bottom:none; }
  .ch-ev { font-family:var(--font-mono); font-size:var(--text-sm); color:var(--text-1);
           flex:none; width:170px; }
  .ch-what { flex:1; min-width:0; font-size:var(--text-sm); color:var(--text-3); }
  .ch-mode { flex:none; display:flex; align-items:center; gap:var(--space-3); }
  .ch-mode-word { font-size:var(--text-sm); font-weight:500; width:74px; text-align:end;
                  color:var(--amber-ink); }
  .ch-row.is-auto .ch-mode-word { color:var(--accent-ink); }

  .ch-policy { padding:var(--space-4) var(--space-5); border-bottom:1px solid var(--border-subtle); }
  .ch-policy:last-child { border-bottom:none; }
  .ch-policy-label { font:600 var(--text-xs) var(--font-mono); text-transform:uppercase;
                     letter-spacing:.12em; color:var(--text-3); margin-bottom:var(--space-2); }
  .ch-policy-body { font-size:var(--text-base); color:var(--text-2); white-space:pre-line;
                    max-width:70ch; margin:0; }

  .ch-suggest { display:flex; align-items:center; gap:var(--space-4); flex-wrap:wrap;
                padding:var(--space-4) var(--space-5); background:var(--amber-soft);
                border:1px solid var(--amber); border-radius:var(--radius-card);
                margin-bottom:var(--space-3); }
  .ch-suggest-body { flex:1; min-width:220px; font-size:var(--text-base); color:var(--text-1); }
  .ch-suggest-body b { display:block; font:600 var(--text-xs) var(--font-mono);
                       text-transform:uppercase; letter-spacing:.12em;
                       color:var(--amber-ink); margin-bottom:2px; }
  .ch-acts { display:flex; gap:var(--space-2); flex:none; }

  .ch-src { border:1px solid var(--border-subtle); border-radius:var(--radius-card);
            background:var(--surface); box-shadow:var(--lift-1); }
  .ch-src > summary { list-style:none; cursor:pointer; padding:var(--space-4) var(--space-5);
                      display:flex; align-items:center; gap:var(--space-3);
                      font-size:var(--text-base); font-weight:500; }
  .ch-src > summary::-webkit-details-marker { display:none; }
  .ch-src > summary svg { width:15px; height:15px; color:var(--text-3);
                          transition:transform var(--dur-1) var(--ease); }
  .ch-src[open] > summary svg { transform:rotate(90deg); }
  [dir="rtl"] .ch-src > summary svg { transform:rotate(180deg); }
  [dir="rtl"] .ch-src[open] > summary svg { transform:rotate(90deg); }
  .ch-src > summary .ch-src-when { margin-inline-start:auto; font-size:var(--text-sm);
                                   color:var(--text-3); font-weight:400; }
  .ch-src-body { padding:0 var(--space-5) var(--space-5); }
  .ch-src-body textarea { width:100%; min-height:340px; font:400 var(--text-sm)/1.7 var(--font-mono);
                          background:var(--sunk); resize:vertical; }
  /* The Charter is the one thing on this page that does NOT autosave.
     Everywhere else a field is one setting and blur is a safe moment to commit
     it; this is a document edited in passes, and the rules it carries are the
     ones Atlas obeys — committing half a policy on a stray click is the wrong
     default. An explicit Save, and a state that says whether you need one. */
  .ch-save-row { display:flex; align-items:center; gap:var(--space-3); margin-top:var(--space-4); }
  .ch-state { font-size:var(--text-sm); color:var(--text-3); }
  .ch-state.is-dirty { color:var(--amber-ink); font-weight:500; }
  .ch-state.is-saved { color:var(--ok); }
  .ch-save-row .btn-primary { margin-inline-start:auto; }

  @media (max-width:767px) {
    .ch-row { flex-wrap:wrap; }
    .ch-ev { width:auto; }
  }

  /* ── The Confirmation surface (checkout_waiting.html) ──
     One surface for a payment in flight, whichever Channel started it. It
     replaced `.checkout-card`, which was two pages with two `<h1>`s each and
     a 28px emoji in a circle.

     Amber while the money is out of Orbit's hands, green once the provider has
     confirmed it — the product's two emphases, doing here what they do
     everywhere. See ADR-0024. */
  .cf { max-width:520px; margin:var(--space-8) auto 0; text-align:center; }
  .cf-ic { width:56px; height:56px; border-radius:50%; margin:0 auto var(--space-4);
           display:grid; place-items:center;
           background:var(--amber-soft); color:var(--amber-ink); }
  .cf-ic svg { width:26px; height:26px; }
  .cf-ic.is-ok { background:var(--ok-bg); color:var(--ok); }
  .cf-h { font:400 var(--text-2xl)/1.2 var(--font-display); letter-spacing:-.015em;
          margin:0 0 var(--space-3); text-wrap:balance; }
  .cf-p { color:var(--text-2); margin:0 auto var(--space-5); max-width:46ch; }
  .cf-p b { color:var(--text-1); font-weight:500; }
  /* The facts, left-aligned inside a centred column: an amount and a reference
     are read, not admired, and a centred mono string is hard to quote from. */
  .cf-facts { display:grid; gap:var(--space-2); text-align:start;
              background:var(--surface); border:1px solid var(--border-subtle);
              border-radius:var(--radius-card); padding:var(--space-4);
              margin-block-end:var(--space-5); }
  .cf-row { display:flex; justify-content:space-between; gap:var(--space-4);
            font-size:var(--text-sm); }
  .cf-row dt { color:var(--text-3); margin:0; }
  .cf-row dd { margin:0; color:var(--text-1); font-family:var(--font-mono); }
  .cf-live { display:inline-flex; align-items:center; gap:var(--space-2);
             font-size:var(--text-sm); color:var(--text-2); min-height:1.5em; }
  .cf-acts { margin-block-start:var(--space-5); display:flex; gap:var(--space-2);
             justify-content:center; flex-wrap:wrap; }
  .dots { display:inline-flex; gap:3px; }
  .dots i { width:5px; height:5px; border-radius:50%; background:var(--amber);
            animation:cfPulse 1.2s infinite; }
  .dots i:nth-child(2) { animation-delay:.2s; }
  .dots i:nth-child(3) { animation-delay:.4s; }
  @keyframes cfPulse { 0%, 100% { opacity:.25; } 50% { opacity:1; } }

  /* Money in motion. The mark gets a dot in orbit round it — Orbit's own
     emblem, and a spinner that does not look like every other spinner — and a
     wallet's phone sends out a signal, because the next move is the reader's,
     on another device. Everything stops for reduced motion; the steps below
     still say where the payment is. */
  .cf-ic { position:relative; }
  /* Room for the orbit, which reaches 11px past the mark on every side. */
  .cf-ic.is-waiting { margin-block:var(--space-3) calc(var(--space-4) + 14px); }
  .cf-ic > svg { position:relative; z-index:1; }
  .cf-orbit { position:absolute; inset:-11px; border-radius:50%;
              border:1px solid color-mix(in srgb, var(--amber) 28%, transparent);
              animation:cfOrbit 2.6s linear infinite; }
  .cf-orbit i { position:absolute; top:-4px; left:50%; width:8px; height:8px;
                margin-left:-4px; border-radius:50%; background:var(--amber);
                box-shadow:0 0 0 3px color-mix(in srgb, var(--amber) 22%, transparent); }
  .cf-ping { position:absolute; inset:0; border-radius:50%;
             border:2px solid var(--amber); opacity:0;
             animation:cfPing 2.2s cubic-bezier(.2,.6,.3,1) infinite; }
  .cf-ping + .cf-ping { animation-delay:1.1s; }
  .cf-phone { animation:cfBuzz 2.2s ease-in-out infinite; transform-origin:50% 60%; }
  .cf-ic.is-failed { background:var(--danger-bg); color:var(--danger); }
  .cf-ic.is-failed .cf-orbit, .cf-ic.is-failed .cf-ping,
  .cf-ic.is-ok .cf-orbit, .cf-ic.is-ok .cf-ping { display:none; }
  .cf-ic.is-ok { animation:cfLand .5s cubic-bezier(.2,1.4,.4,1); }
  @keyframes cfOrbit { to { transform:rotate(360deg); } }
  @keyframes cfPing { 0% { transform:scale(1); opacity:.55; } 100% { transform:scale(2.1); opacity:0; } }
  @keyframes cfBuzz { 0%, 70%, 100% { transform:rotate(0); }
                      74% { transform:rotate(-9deg); } 78% { transform:rotate(9deg); }
                      82% { transform:rotate(-6deg); } 86% { transform:rotate(4deg); } }
  @keyframes cfLand { 0% { transform:scale(.6); } 100% { transform:scale(1); } }

  /* Where the payment is: three steps, a line between them that fills as
     each one lands. */
  .cf-steps { list-style:none; margin:0 0 var(--space-4); padding:0;
              display:grid; grid-template-columns:repeat(3, 1fr); }
  .cf-steps li { position:relative; display:flex; flex-direction:column;
                 align-items:center; gap:var(--space-2); padding:0 var(--space-1);
                 font-size:var(--text-xs); line-height:1.3; color:var(--text-3); }
  .cf-steps li + li::before { content:""; position:absolute; top:10px;
                              right:calc(50% + 14px); left:calc(-50% + 14px);
                              height:2px; border-radius:1px; background:var(--border-subtle); }
  .cf-steps li.is-done::before, .cf-steps li.is-active::before,
  .cf-steps li.is-failed::before { background:var(--ok); }
  .cf-dot { width:22px; height:22px; border-radius:50%; display:grid; place-items:center;
            border:2px solid var(--border); background:var(--canvas); color:transparent; }
  .cf-dot svg { width:12px; height:12px; }
  .cf-steps .is-done { color:var(--text-2); }
  .cf-steps .is-done .cf-dot { background:var(--ok); border-color:var(--ok); color:#fff; }
  .cf-steps .is-active { color:var(--text-1); font-weight:500; }
  .cf-steps .is-active .cf-dot { border-color:color-mix(in srgb, var(--amber) 30%, transparent); position:relative; }
  .cf-steps .is-active .cf-dot svg { display:none; }
  .cf-steps .is-active .cf-dot::after { content:""; position:absolute; inset:-2px; border-radius:50%;
                                        border:2px solid transparent; border-top-color:var(--amber);
                                        border-right-color:var(--amber);
                                        animation:cfOrbit .9s linear infinite; }
  .cf-steps .is-failed { color:var(--danger); font-weight:500; }
  .cf-steps .is-failed .cf-dot { background:var(--danger-bg); border-color:var(--danger); color:var(--danger); }
  .cf-steps .is-failed .cf-dot svg { display:none; }
  .cf-steps .is-failed .cf-dot::after { content:"×"; font-weight:600; font-size:14px; line-height:1; }

  @media (prefers-reduced-motion:reduce) {
    .dots i { animation:none; opacity:.6; }
    .cf-orbit, .cf-ping, .cf-phone, .cf-ic.is-ok,
    .cf-steps .is-active .cf-dot::after { animation:none; }
    .cf-ping { display:none; }
  }

  /* ── Auth (login.html; standalone — no app shell) ── */
  .auth-page { display:flex; flex-direction:column; align-items:center; justify-content:center;
               min-height:100vh; padding:var(--space-6); background:var(--canvas); position:relative; }
  .auth-lang { position:absolute; top:var(--space-4); inset-inline-end:var(--space-4); }
  /* Room for the switcher above the card on a short screen. */
  .auth-page:has(> .auth-lang) { padding-block-start:calc(var(--space-6) + 40px); }
  .auth-card { width:100%; max-width:420px; background:var(--surface); border:1px solid var(--border-subtle);
               border-radius:var(--radius-card); box-shadow:var(--shadow-float); padding:var(--space-10) var(--space-8);
               text-align:center; }
  .auth-logo { display:flex; align-items:center; justify-content:center; gap:var(--space-3); margin-bottom:var(--space-8);
               font-weight:700; font-size:var(--text-xl); color:var(--text-1); }
  /* The sidebar's lockup at auth scale: the dock's badge (.dk-mark) and the
     wordmark in Fraunces 400 — see .sb-brand in shell.css. */
  .auth-mark { flex:0 0 40px; width:40px; height:40px; }
  .auth-mark svg { width:24px; height:24px; }
  .auth-word { font:400 28px/1 var(--font-display); letter-spacing:-.025em; }
  .auth-title { font-size:var(--text-xl); font-weight:700; margin-bottom:var(--space-2); color:var(--text-1); }
  .auth-subtitle { font-size:var(--text-base); color:var(--text-2); margin-bottom:var(--space-6); }
  .auth-dev-card { margin-top:var(--space-6); padding:var(--space-5); background:var(--canvas);
                    border:1px dashed var(--border); border-radius:var(--radius-ctl); text-align:left; }
  .auth-dev-title { font-size:var(--text-sm); font-weight:700; color:var(--text-2); text-transform:uppercase;
                     letter-spacing:.06em; margin-bottom:var(--space-2); }
  .auth-dev-card p { font-size:var(--text-sm); color:var(--text-3); margin-bottom:var(--space-3); line-height:1.6; }
  #clerk-sign-in, #clerk-sign-up { display:flex; justify-content:center; width:100%; }
  /* Wrapper used when Clerk supplies its own card — no chrome of our own,
     just the logo stacked above whatever Clerk mounts. */
  .auth-shell { width:100%; max-width:440px; display:flex; flex-direction:column;
                align-items:center; gap:var(--space-6); }
  .auth-shell .auth-logo { margin-bottom:0; text-decoration:none; }
  .auth-alt { margin-top:var(--space-5); font-size:var(--text-base); color:var(--text-2); }

  /* ── Profile (profile.html) — the career record ──
     Rebuilt 2026-08-25. It was six identical cards with round +/pencil badges
     on each; it is now a full-bleed hero, the ascent rail restated at the
     scale of a working life, the record on the left and what Orbit makes of
     it on the right. The hero borrows the job page's gutter trick and the
     right column borrows .jd-kit-card outright, because a record and a job
     are the same shape of page: a narrative and the kit beside it. */
  .pf { --pf-gutter:clamp(16px, 3vw, 40px); margin:calc(var(--space-5) * -1); margin-bottom:0; }
  .pf-hero { padding:var(--space-8) var(--pf-gutter) var(--space-6);
             background:var(--surface); border-bottom:1px solid var(--border-subtle); }
  .pf-hero-in, .pf-body { max-width:1180px; margin-inline:auto; }

  /* Arrives only once the hero name has scrolled away — the name is never
     printed twice on one screen. Same device as .jd-bar-title. */
  .pf-bar-title { align-self:center; min-width:0; font:500 var(--text-bar-title) var(--font-display);
                  color:var(--text-2); overflow:hidden; text-overflow:ellipsis;
                  white-space:nowrap; opacity:0; transform:translateY(4px);
                  pointer-events:none;
                  transition:opacity var(--dur-2) var(--ease),
                             transform var(--dur-2) var(--ease); }
  .pf-bar-title.show { opacity:1; transform:none; }
  .pf-bar-title::before { content:'·'; color:var(--text-3);
                          margin-inline-end:var(--space-2); }
  .pf-title { align-self:center; margin:0; font:500 var(--text-bar-title) var(--font-display);
              letter-spacing:0; color:var(--text-1); white-space:nowrap; }
  .pf-menuwrap { position:relative; }
  /* Every icon on this page is a Jinja `{% set %}` with a viewBox and no
     width/height, so an unsized one renders at the SVG default of 300×150 and
     tears its button apart. The box comes from the control it sits in, set
     once here rather than as an attribute at forty call sites. */
  .pf-ic { width:15px; height:15px; flex:none; }
  .btn > .pf-ic { width:14px; height:14px; }
  .edit-btn > .pf-ic, .jd-ico > .pf-ic { width:16px; height:16px; }
  .pf-menu-lbl { padding:6px var(--space-3) 4px; font-family:var(--font-mono);
                 font-size:var(--text-2xs); letter-spacing:.12em;
                 text-transform:uppercase; color:var(--text-3); }

  /* ── who you are ── */
  .pf-idr { display:flex; align-items:flex-start; gap:var(--space-5); }
  .pf-face { width:64px; height:64px; flex:none; border-radius:var(--radius-card);
             display:grid; place-items:center; background:var(--id-7); color:#fff;
             font:500 26px var(--font-display); letter-spacing:.01em; }
  .pf-idt { min-width:0; flex:1 1 auto; }
  .pf-eyebrow { display:flex; align-items:center; gap:var(--space-2);
                margin-bottom:var(--space-2); }
  .pf-name { margin:0; font-family:var(--font-display); font-weight:400;
             font-size:clamp(28px, 3.2vw, 42px); line-height:1.06;
             letter-spacing:-.018em; color:var(--text-1); text-wrap:balance; }
  .pf-lede { margin:var(--space-3) 0 0; font-size:var(--text-lg); line-height:1.5;
             color:var(--text-2); max-width:62ch; }
  /* Reads as an address rather than a sentence, and it is one glyph instead
     of a word that has to survive translation. */
  .pf-at { color:var(--text-3); font-weight:400; padding-inline-end:2px; }
  .pf-lede-co { color:var(--text-1); font-weight:500; }
  .pf-meta { display:flex; flex-wrap:wrap; gap:var(--space-2); margin-top:var(--space-4); }
  .pf-chip { display:inline-flex; align-items:center; gap:6px; padding:3px var(--space-3);
             border-radius:var(--radius-pill); background:var(--canvas);
             border:1px solid var(--border-subtle); color:var(--text-2);
             font-size:var(--text-xs); font-weight:600; }
  .pf-chip svg { width:12px; height:12px; flex:none; color:var(--text-3); }
  a.pf-chip:hover { border-color:var(--accent); color:var(--accent-ink); text-decoration:none; }
  a.pf-chip:hover svg { color:var(--accent-ink); }
  /* The one control here that adds rather than states. Dashed, because what it
     leads to is a form and not a fact. */
  .pf-chip.is-todo { border-style:dashed; background:transparent; color:var(--text-3);
                     font-weight:500; cursor:pointer; font-family:var(--font-ui); }
  .pf-chip.is-todo:hover { border-color:var(--accent); color:var(--accent-ink); }
  .pf-idr-acts { flex:none; display:flex; gap:var(--space-1); }

  /* ── the ascent rail, career scale ──
     The fifth restatement of the motif (landing page, list row, board lane,
     job hero, here). Indigo is ground covered, the wide pip is the role held
     now, amber is the rung not reached. The rail never closes: ending it on
     the job you already have would say the climb is finished. */
  .pf-ascent { margin-top:var(--space-8); display:flex; align-items:flex-end;
               gap:var(--space-6); flex-wrap:wrap; }
  .pf-arail { flex:1 1 520px; min-width:0; display:flex; align-items:flex-start;
              margin:0; padding:0; list-style:none; }
  .pf-astage { flex:1; min-width:0; display:flex; flex-direction:column;
               align-items:flex-start; gap:var(--space-2); }
  .pf-astage:last-child { flex:none; }
  .pf-piprow { display:flex; align-items:center; width:100%; }
  .pf-pip { width:9px; height:9px; border-radius:50%; flex:none;
            background:var(--canvas); border:2px solid var(--track);
            box-sizing:content-box; }
  .pf-link { flex:1; height:2px; background:var(--track); }
  .pf-astage.is-done .pf-pip { background:var(--accent); border-color:var(--accent); }
  .pf-astage.is-done .pf-link { background:var(--accent); }
  .pf-astage.is-here .pf-pip { width:11px; height:11px; background:var(--accent);
                               border-color:var(--accent);
                               box-shadow:0 0 0 5px var(--accent-soft); }
  .pf-astage.is-target .pf-pip { background:transparent; border-color:var(--amber);
                                 border-style:dashed; }
  /* The one link that changes colour along its length: it is the only stretch
     of the rail that is not behind you. */
  .pf-astage.aims .pf-link { background:linear-gradient(90deg, var(--accent), var(--amber)); }
  .pf-astage-lbl { font-size:var(--text-sm); color:var(--text-3);
                   padding-inline-end:var(--space-4); line-height:1.35;
                   text-decoration:none; }
  .pf-astage.is-done .pf-astage-lbl { color:var(--text-2); }
  .pf-astage.is-here .pf-astage-lbl { color:var(--text-1); font-weight:600; }
  .pf-astage.is-target .pf-astage-lbl { color:var(--amber-ink); font-weight:600; }
  a.pf-astage-lbl:hover { text-decoration:underline; }
  .pf-astage-ask { font-weight:500; }
  .pf-astage-ts { display:block; margin-top:2px; font:400 var(--text-xs) var(--font-mono);
                  color:var(--text-3); font-variant-numeric:tabular-nums;
                  letter-spacing:.02em; }
  .pf-ascent-side { flex:none; display:flex; align-items:flex-end;
                    gap:var(--space-6); padding-bottom:2px; }
  .pf-fig { display:flex; flex-direction:column; gap:2px; }
  .pf-fig b { font:400 var(--text-2xl) var(--font-display); letter-spacing:-.02em;
              color:var(--text-1); line-height:1; font-variant-numeric:tabular-nums;
              white-space:nowrap; }
  .pf-fig span { font-family:var(--font-mono); font-size:var(--text-2xs);
                 letter-spacing:.12em; text-transform:uppercase; color:var(--text-3); }

  /* ── nothing here yet ── */
  .pf-cold { padding-block:var(--space-6) var(--space-4); }
  .pf-cold .pf-lede { max-width:56ch; }
  .pf-cold-acts { display:flex; flex-wrap:wrap; gap:var(--space-3);
                  margin-top:var(--space-5); }

  /* ── the record left, what Orbit makes of it right ── */
  .pf-body { padding:var(--space-6) var(--pf-gutter) var(--space-12);
             display:grid; grid-template-columns:minmax(0,1fr) 336px;
             gap:var(--space-8); align-items:start; }
  .pf-main { min-width:0; }
  .pf-sec { margin-bottom:var(--space-10); scroll-margin-top:calc(var(--header-h) + 12px); }
  .pf-sec:last-child { margin-bottom:0; }
  .pf-kit { position:sticky; top:calc(var(--header-h) + var(--space-4));
            display:flex; flex-direction:column; gap:var(--space-5); }
  .pf-say { margin:0 0 var(--space-5); font-size:var(--text-base); line-height:1.6;
            color:var(--text-2); max-width:66ch; }
  /* .sec-rest is inline by default and its children were separated only by
     source whitespace, which a stripping Jinja comment silently ate. Layout
     does the spacing here so the count and the link cannot run together. */
  .pf-sec .sec-rest { display:flex; align-items:center; gap:var(--space-2); }
  /* A section head that leads somewhere else. Quiet — it is a way through,
     not the section's own action, which is the + beside it. */
  .pf-seclink { font-size:var(--text-sm); color:var(--accent-ink); }

  /* ── the clipped chip row ──
     A row of toggle chips that shows one line and hides the rest behind a
     `+N more` ⇄ `Fewer` toggle. Defined once here and worn by both surfaces:
     `.pf-*` on the profile, `.sk-*` on the skills page. They were two
     byte-identical copies until 2026-08-26; the alias is the app's usual move
     (see the index at the top of this file) and the definitions stay where the
     first one grew, because this file is order-sensitive.

     A claim is worth what stands behind it — which is what the count on each
     chip says. */
  .pf-skills { display:flex; flex-direction:column; gap:var(--space-5); }
  .pf-skgroup-h, .sk-group-h { display:flex; align-items:center; gap:var(--space-2);
                  font-family:var(--font-mono); font-size:var(--text-2xs);
                  letter-spacing:.12em; text-transform:uppercase; color:var(--text-3);
                  margin-bottom:var(--space-2); }
  /* How much of this group has work behind it. Present only when it is more
     than none — a 0 beside every heading is a page telling you off. */
  .pf-skgroup-h b, .sk-group-h b { font-weight:600; color:var(--accent-ink);
                    font-variant-numeric:tabular-nums; letter-spacing:.06em; }
  .pf-skrow, .sk-row { display:flex; flex-wrap:wrap; gap:var(--space-2); }

  /* ── the +N chip ──
     Same pill, same height, no border: it is a control *about* the row rather
     than another member of it, and a bordered chip among bordered chips reads
     as one more skill. profile.js puts it at the end of the first row. */
  .pf-skmore-chip, .sk-more-chip { display:inline-flex; align-items:center; gap:5px; height:30px;
                    padding:0 var(--space-3); border:none; background:transparent;
                    border-radius:var(--radius-pill); color:var(--accent-ink);
                    font:500 var(--text-sm) var(--font-ui); cursor:pointer;
                    transition:background var(--dur-1) var(--ease); }
  .pf-skmore-chip:hover, .sk-more-chip:hover { background:var(--accent-soft); }
  .pf-skmore-chip svg, .sk-more-chip svg { width:12px; height:12px; flex:none;
                        transition:transform var(--dur-2) var(--ease); }
  .pf-skgroup.is-open .pf-skmore-chip svg,
  .sk-group.is-open .sk-more-chip svg { transform:rotate(180deg); }
  /* Hidden chips stay in the DOM and keep their focus order; they are simply
     not laid out. `display:none` is right here — unlike a hover-revealed
     control, this content is behind a button that announces it. */
  .pf-sk[data-tucked], .sk-chip[data-tucked] { display:none; }
  .pf-skgroup.is-open .pf-sk[data-tucked],
  .sk-group.is-open .sk-chip[data-tucked] { display:inline-flex; }

  /* ── the last groups, behind a fade ──
     The treatment a long job posting already gets, restated: the wall stops
     being a wall, and the button says how much is under it. */
  .pf-skills { position:relative; }
  .pf-skmore { display:flex; justify-content:center; margin-top:var(--space-4); }
  /* Short on purpose: it should graze the last visible row so the section
     reads as continuing, not swallow the group and make it look broken. */
  .pf-skills.is-clipped::after, .sk-groups.is-clipped::after { content:''; position:absolute; inset-inline:0;
                                 bottom:0; height:34px; pointer-events:none;
                                 background:linear-gradient(to bottom,
                                   transparent, var(--canvas)); }
  .pf-sk, .sk-chip { display:inline-flex; align-items:center; gap:6px; height:30px;
           padding:0 var(--space-3); border-radius:var(--radius-pill);
           border:1px solid var(--border-subtle); background:var(--surface);
           color:var(--text-1); font:500 var(--text-sm) var(--font-ui); cursor:pointer;
           transition:border-color var(--dur-1) var(--ease),
                      background var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
  .pf-sk:hover, .sk-chip:hover { border-color:var(--accent); }
  .pf-ev, .sk-chip .n { font:500 var(--text-2xs) var(--font-mono); color:var(--text-3);
           background:var(--sunk); border-radius:var(--radius-pill); padding:1px 5px;
           font-style:normal; font-variant-numeric:tabular-nums; }
  /* A skill nothing points at. Dashed and quiet rather than red — it is not an
     error, it is a claim Orbit has not been given a reason to make. */
  .pf-sk.is-bare, .sk-chip.is-bare { border-style:dashed; color:var(--text-3); font-weight:400;
                   background:transparent; }
  .pf-sk.is-bare .pf-ev,
  .sk-chip.is-bare .n { background:transparent; color:var(--text-3); }
  /* Selected. Two names for one state: the profile picks a skill to light
     its evidence, the skills page ticks one onto a piece of work. */
  .pf-sk.is-picked, .sk-chip.is-on { background:var(--accent); border-color:var(--accent);
                     color:var(--on-accent); }
  .pf-sk.is-picked .pf-ev,
  .sk-chip.is-on .n { background:hsl(0 0% 100% / .22); color:#fff; }
  .pf-skbar { display:flex; align-items:center; gap:var(--space-2);
              margin-top:var(--space-4); padding:var(--space-2) var(--space-2)
              var(--space-2) var(--space-4); background:var(--accent-soft);
              border-radius:var(--radius-pill); font-size:var(--text-sm);
              color:var(--accent-ink); }
  .pf-skbar svg { width:14px; height:14px; flex:none; }
  .pf-skbar b { font-weight:600; }
  .pf-skbar .jd-ico { margin-inline-start:auto; color:var(--accent-ink); }

  /* ── the highlight: a rung that lights, not a box that outlines ──
     A ring around each match drew four rectangles on a page whose whole idea
     is a line you climb. The rung beside the entry lights instead: the role's
     own segment of the employer's line goes indigo and glows, and its pip
     fills. Dimming is the other half — lighting matches without quieting the
     rest says nothing on a page this long. */
  .pf-dim { opacity:.34; }
  .pf-lit-tag { display:none; align-items:center; gap:5px; flex:none;
                margin-inline-start:auto; font:500 var(--text-xs) var(--font-ui);
                color:var(--accent-ink); }
  .pf-role-m .pf-lit-tag { margin-inline-start:0; }
  .pf-ev-lit .pf-lit-tag { display:inline-flex; }
  .pf-lit-tag svg { width:12px; height:12px; }

  /* ── experience: roles under the employer they were held at ── */
  .pf-emp { margin-bottom:var(--space-6); }
  .pf-emp:last-child { margin-bottom:0; }
  .pf-emp-h { display:flex; align-items:center; gap:var(--space-4);
              padding:var(--space-2); margin:calc(var(--space-2) * -1);
              border-radius:var(--radius-ctl); color:inherit;
              transition:background var(--dur-1) var(--ease); }
  a.pf-emp-h:hover { background:var(--canvas); text-decoration:none; }
  .pf-emp-b { min-width:0; }
  /* The employer is the heading a role sits under, so it carries the display
     face and a size that says so. It read as one more line of UI text before. */
  .pf-emp-name { display:block; font-family:var(--font-display); font-weight:500;
                 font-size:var(--text-xl); letter-spacing:-.012em;
                 color:var(--text-1); line-height:1.2; }
  .pf-emp-meta { display:block; margin-top:1px; font:400 var(--text-xs) var(--font-mono);
                 color:var(--text-3); letter-spacing:.02em;
                 font-variant-numeric:tabular-nums; }
  .pf-emp-go { margin-inline-start:auto; color:var(--text-3); display:grid;
               place-items:center; opacity:0;
               transition:opacity var(--dur-1) var(--ease); }
  .pf-emp-go svg { width:14px; height:14px; }
  .pf-emp-h:hover .pf-emp-go, .pf-emp-h:focus-visible .pf-emp-go { opacity:1; }

  /* The roles hang off one line under the employer's mark — the same rail
     vocabulary at the smallest scale it appears at. */
  /* ── the roles rail ──
     One number decides where the line sits, and the dot is drawn *from* it, so
     the two cannot drift. The line was a hair off the dot's centre before,
     which reads as a rendering fault rather than a design. Half the mark's
     width puts the line under the middle of the employer's logo, and the dot
     is centred on the line by pulling it back half its own drawn width. */
  .pf-roles { --pf-rail-x:21px;          /* half of .co-mark-lg2's 42px */
              --pf-rail-w:2px;
              --pf-dot:9px;              /* the dot's inner box */
              --pf-dot-ring:2px;
              position:relative;
              margin-top:var(--space-4);
              margin-inline-start:var(--pf-rail-x);
              padding-inline-start:var(--space-6); }
  /* The line begins at the first dot, not at the top of the box. A border on
     the container started a good seventeen pixels above the first pip and read
     as an overhang rather than a rail. Same arithmetic as the dot's own
     offset, so the two cannot drift apart. */
  .pf-roles::before { content:''; position:absolute; inset-inline-start:0;
                      top:calc(var(--space-3) + 5px + (var(--pf-dot) / 2) + var(--pf-dot-ring));
                      bottom:0; width:var(--pf-rail-w);
                      background:var(--border-subtle); }
  .pf-role { position:relative; padding-block:var(--space-3) var(--space-5); }
  .pf-role:last-child { padding-bottom:0; }
  /* The lit segment, sitting exactly over the container's own border so the
     line looks like one rail rather than two. Transparent until it lights, and
     `transition` on the shadow keeps the reveal from snapping. */
  .pf-role::after { content:''; position:absolute;
                    inset-inline-start:calc(var(--space-6) * -1 - var(--pf-rail-w));
                    /* over the container's own border, not beside it */
                    top:0; bottom:0; width:var(--pf-rail-w); background:transparent;
                    transition:background var(--dur-2) var(--ease),
                               box-shadow var(--dur-2) var(--ease); }
  .pf-role.pf-ev-lit::after { background:var(--accent);
                              box-shadow:0 0 0 1px var(--accent),
                                         0 0 10px 1px var(--accent-soft); }
  .pf-role.pf-ev-lit::before { background:var(--accent); border-color:var(--accent);
                               box-shadow:0 0 0 4px var(--accent-soft); }
  /* Centred on the line. The role box starts inside the border *and* the
     padding, so getting back to the line's middle means undoing the padding,
     the dot's own left ring, half the dot, and half the line — all of it
     negative. The sign on that last term is the whole difference between a dot
     on the line and a dot two pixels beside it. */
  .pf-role::before { content:''; position:absolute;
                     inset-inline-start:calc(var(--space-6) * -1
                                             - (var(--pf-dot) / 2)
                                             - var(--pf-dot-ring)
                                             - (var(--pf-rail-w) / 2));
                     top:calc(var(--space-3) + 5px);
                     width:var(--pf-dot); height:var(--pf-dot);
                     border-radius:50%; background:var(--surface);
                     border:var(--pf-dot-ring) solid var(--track);
                     box-sizing:content-box; }
  .pf-role.is-current::before { background:var(--accent); border-color:var(--accent); }
  .pf-role-h { display:flex; align-items:flex-start; gap:var(--space-3); }
  .pf-role-b { min-width:0; flex:1 1 auto; }
  .pf-role-t { font-weight:600; font-size:var(--text-base); color:var(--text-1);
               line-height:1.35; }
  .pf-role-m { margin-top:3px; display:flex; flex-wrap:wrap; align-items:center;
               gap:var(--space-2); font-size:var(--text-sm); color:var(--text-3); }
  .pf-role-m .mono { font-family:var(--font-mono); font-size:var(--text-xs);
                     letter-spacing:.02em; font-variant-numeric:tabular-nums; }
  .pf-dur { color:var(--text-2); }
  /* Said once, quietly. It explains why this entry has no pip on the rail —
     it is not a warning and it is not a downgrade. */
  .pf-aside-tag { display:inline-flex; align-items:center; padding:1px var(--space-2);
                  border-radius:var(--radius-pill); background:var(--sunk);
                  border:1px solid var(--border-subtle); color:var(--text-3);
                  font:500 var(--text-xs) var(--font-ui); letter-spacing:.01em; }
  /* Its pip is hollow for the same reason: the rung is not a step. */
  .pf-role.is-aside::before { background:var(--canvas); border-color:var(--gap-neutral);
                              border-style:dashed; }
  .pf-role-d { margin:var(--space-3) 0 0; font-size:var(--text-base); line-height:1.6;
               color:var(--text-2); max-width:66ch; white-space:pre-line; }
  /* A role with no description is a hole in the record, and it is named as one
     rather than rendered as nothing — the empty space hid the one thing on the
     page worth fixing. */
  .pf-role-d.is-missing { color:var(--text-3); font-style:italic; white-space:normal; }
  .pf-role-d.is-missing button { font:inherit; font-style:normal;
                                 color:var(--accent-ink); background:none; border:none;
                                 padding:0; cursor:pointer; text-decoration:underline; }

  /* ── five lines, then a word ──
     One of these ran to forty lines and buried every role beneath it. The
     clamp is CSS so it holds before any script runs; profile.js adds the
     control only where the text actually overflows, so a three-line
     description never grows a "more" that does nothing. */
  .pf-role-dwrap { position:relative; }
  .pf-role-d.is-clamped { display:-webkit-box; -webkit-box-orient:vertical;
                          -webkit-line-clamp:5; overflow:hidden; }
  .pf-role-more { margin-top:var(--space-1); padding:0; border:none;
                  background:none; cursor:pointer; font:500 var(--text-sm) var(--font-ui);
                  color:var(--accent-ink); }
  .pf-role-more:hover { text-decoration:underline; }

  /* Hover-revealed controls are transparent and click-through, never
     display:none — an unrendered control cannot take focus, so :focus-within
     could never reveal it. */
  .pf-acts { flex:none; display:flex; gap:2px; margin-inline-start:auto;
             opacity:0; pointer-events:none;
             transition:opacity var(--dur-1) var(--ease); }
  .pf-role:hover .pf-acts, .pf-role:focus-within .pf-acts,
  .pf-card:hover .pf-acts, .pf-card:focus-within .pf-acts { opacity:1; pointer-events:auto; }
  @media (hover:none) { .pf-acts { opacity:1; pointer-events:auto; } }

  /* ── one card shape for projects, degrees and credentials ── */
  .pf-cards { display:grid; gap:var(--space-3); }
  .pf-cards.two { grid-template-columns:1fr 1fr; }
  .pf-card { background:var(--surface); border:1px solid var(--border-subtle);
             border-radius:var(--radius-card); padding:var(--space-4) var(--space-5);
             transition:border-color var(--dur-1) var(--ease),
                        box-shadow var(--dur-1) var(--ease); }
  .pf-card:hover { border-color:var(--border); box-shadow:var(--lift-1); }
  /* No rail to light, so the card grows one: an inset rung down its leading
     edge, the same indigo and the same glow. */
  .pf-card { transition:border-color var(--dur-1) var(--ease),
                        box-shadow var(--dur-2) var(--ease); }
  .pf-card.pf-ev-lit { border-color:color-mix(in srgb, var(--accent) 30%, var(--border-subtle));
                       box-shadow:inset 2px 0 0 var(--accent),
                                  0 0 12px -2px var(--accent-soft); }
  [dir="rtl"] .pf-card.pf-ev-lit { box-shadow:inset -2px 0 0 var(--accent),
                                              0 0 12px -2px var(--accent-soft); }
  .pf-card-h { display:flex; align-items:flex-start; gap:var(--space-3); }
  .pf-card-b { min-width:0; flex:1 1 auto; }
  .pf-card-t { font-weight:600; font-size:var(--text-base); color:var(--text-1);
               line-height:1.35; }
  .pf-card-s { margin-top:2px; font-size:var(--text-sm); color:var(--text-2); }
  .pf-card-ts { display:block; margin-top:3px; font:400 var(--text-xs) var(--font-mono);
                color:var(--text-3); letter-spacing:.02em;
                font-variant-numeric:tabular-nums; }
  .pf-card-kv { margin-top:var(--space-2); font-size:var(--text-sm); color:var(--text-2); }
  .pf-card-d { margin:var(--space-3) 0 0; font-size:var(--text-sm); line-height:1.6;
               color:var(--text-2); white-space:pre-line; }
  .pf-card-warn { margin:var(--space-3) 0 0; font-size:var(--text-sm); line-height:1.55;
                  color:var(--amber-ink); }
  .pf-card-warn button { font:inherit; color:inherit; background:none; border:none;
                         padding:0; cursor:pointer; text-decoration:underline; }
  /* The outcome is what an interviewer asks about, so it is the one line on a
     card allowed to be amber. */
  .pf-outcome { display:inline-flex; align-items:flex-start; gap:6px;
                margin-top:var(--space-3); font-size:var(--text-sm); font-weight:600;
                color:var(--amber-ink); }
  .pf-outcome svg { width:13px; height:13px; flex:none; margin-top:3px; }
  .pf-crest { width:34px; height:34px; flex:none; border-radius:var(--radius-ctl);
              display:grid; place-items:center; background:var(--sunk); color:var(--text-2); }
  .pf-crest svg { width:17px; height:17px; }
  /* Still running. Amber for the same reason a milestone is amber. */
  .pf-crest.live { background:var(--amber-soft); color:var(--amber-ink); }
  /* A credential's link is the only proof it carries, so it is a control and
     not a footnote. */
  .pf-cred { display:inline-flex; align-items:center; gap:6px; margin-top:var(--space-3);
             height:28px; padding:0 var(--space-3); border-radius:var(--radius-pill);
             border:1px solid var(--border-subtle); background:var(--canvas);
             color:var(--text-2); font:500 var(--text-xs) var(--font-ui); }
  .pf-cred svg { width:12px; height:12px; flex:none; }
  .pf-cred:hover { border-color:var(--accent); color:var(--accent-ink);
                   text-decoration:none; }

  /* ── the shelf ──
     Education and credentials are rows, not cards. A grid rather than a flex
     row because the columns have to line up *down* the shelf: the skills count
     drifted left and right with the width of each row's actions when it was
     flex, which reads as a wobble rather than a column. */
  .pf-shelf { border:1px solid var(--border-subtle); border-radius:var(--radius-card);
              background:var(--surface); box-shadow:var(--lift-1); overflow:hidden; }
  /* The actions track is a fixed width, and it has to be. Each row is its own
     grid — a shelf is a plain block — so `auto` sizes per row, and a row whose
     action reads "Show credential" pushed its skills count forty pixels left
     of the row above it. A fixed track is what makes the counts a column you
     can read down, across every shelf on the page. The hidden actions keep
     their width on purpose: revealing them must not shift the row. */
  .pf-row { display:grid; grid-template-columns:56px minmax(0,1fr) 84px 168px;
            align-items:center; gap:var(--space-4);
            padding:var(--space-4) var(--space-5);
            border-bottom:1px solid var(--border-subtle);
            transition:background var(--dur-1) var(--ease); }
  .pf-shelf > .pf-row:last-child { border-bottom:none; }
  .pf-row:hover { background:var(--canvas); }
  .pf-row > .co-mark { justify-self:center; }
  .pf-row-b { min-width:0; }
  .pf-row-t { display:flex; align-items:center; flex-wrap:wrap; gap:var(--space-2);
              font-weight:600; font-size:var(--text-base); color:var(--text-1);
              line-height:1.35; }
  .pf-row-s { display:block; margin-top:2px; font-size:var(--text-sm); color:var(--text-2); }
  .pf-row-m { display:block; margin-top:3px; font:400 var(--text-xs) var(--font-mono);
              color:var(--text-3); letter-spacing:.02em; font-variant-numeric:tabular-nums; }
  .pf-row-d { margin:var(--space-2) 0 0; font-size:var(--text-sm); line-height:1.6;
              color:var(--text-2); max-width:66ch; }

  /* What the entry backs, in skills. Right-aligned in a fixed track so the
     numbers make a column you can read down. */
  .pf-backs { justify-self:end; text-align:end; }
  .pf-backs b { display:block; font:400 var(--text-xl) var(--font-display);
                letter-spacing:-.02em; color:var(--text-1); line-height:1;
                font-variant-numeric:tabular-nums; }
  .pf-backs.is-none b { color:var(--text-3); }
  .pf-backs span { display:block; margin-top:2px; font-family:var(--font-mono);
                   font-size:var(--text-2xs); letter-spacing:.1em;
                   text-transform:uppercase; color:var(--text-3); }

  .pf-rowacts { justify-self:end; display:flex; align-items:center; gap:var(--space-1);
                opacity:0; pointer-events:none;
                transition:opacity var(--dur-1) var(--ease); }
  .pf-row:hover .pf-rowacts, .pf-row:focus-within .pf-rowacts { opacity:1; pointer-events:auto; }
  @media (hover:none) { .pf-rowacts { opacity:1; pointer-events:auto; } }
  .pf-go { display:inline-flex; align-items:center; gap:6px; height:30px;
           padding:0 var(--space-3); border-radius:var(--radius-pill);
           border:1px solid var(--border-subtle); background:var(--canvas);
           color:var(--text-2); font:500 var(--text-xs) var(--font-ui);
           text-decoration:none; cursor:pointer; white-space:nowrap; }
  .pf-go:hover { border-color:var(--accent); color:var(--accent-ink); text-decoration:none; }
  .pf-go .pf-ic { width:12px; height:12px; }

  /* ── the clock ──
     A ring that runs down with the credential. An arc, not a conic gradient:
     a gradient has no caps to round and its sweep ends in a hard radial edge.
     `pathLength="100"` lets the dash array be the fraction itself, so nothing
     has to know 2πr. */
  .pf-clock { position:relative; width:56px; height:56px; display:grid; place-items:center;
              justify-self:center; }
  .pf-clock svg { position:absolute; inset:0; width:56px; height:56px;
                  transform:rotate(-90deg); }
  .pf-clock circle { fill:none; stroke-width:3; }
  .pf-clock-track { stroke:var(--track); }
  .pf-clock-arc { stroke:var(--ok); stroke-linecap:round; }
  .is-soon .pf-clock-arc { stroke:var(--amber); }
  .is-expired .pf-clock-track { stroke:var(--danger-bg); }
  /* Same mark-to-ring ratio the clock was drawn at (34:48 → 42:56), scaled
     so a credential's logo matches the experience and education marks. */
  .pf-clock .co-mark { width:42px; height:42px; border-radius:13px; font-size:var(--text-sm); }

  /* ── state chips ── */
  .pf-state { display:inline-flex; align-items:center; gap:5px; padding:1px var(--space-2);
              border-radius:var(--radius-pill); border:1px solid transparent;
              font:500 var(--text-xs) var(--font-ui); white-space:nowrap; }
  .pf-state .pf-ic { width:11px; height:11px; }
  .pf-state.ok { background:var(--ok-bg); color:var(--ok); }
  .pf-state.soon { background:var(--amber-soft); color:var(--amber-ink); }
  .pf-state.out { background:var(--danger-bg); color:var(--danger); }
  /* Dashed, not red: it is not wrong, it is unverifiable, and the fix is a
     link rather than an apology. */
  .pf-state.bare { border-color:var(--border); border-style:dashed; color:var(--text-3); }

  /* ── what has run out, said once ── */
  .pf-ask { display:flex; align-items:center; gap:var(--space-3);
            margin-bottom:var(--space-4); padding:var(--space-3) var(--space-4);
            border-radius:var(--radius-card); background:var(--amber-soft);
            color:var(--amber-ink); font-size:var(--text-sm); line-height:1.5; }
  .pf-ask .pf-ic { width:16px; height:16px; }
  .pf-ask b { font-weight:600; }

  /* ── the lapsed ones, folded away ──
     They stay in the record — a lapsed credential is still something you did —
     but they are not what the section is for, so they sit under a line. */
  .pf-past-head { display:flex; align-items:center; gap:var(--space-2); width:100%;
                  margin-top:var(--space-5); padding:var(--space-2) 0; border:none;
                  background:none; cursor:pointer; font-family:var(--font-mono);
                  font-size:var(--text-2xs); letter-spacing:.12em;
                  text-transform:uppercase; color:var(--text-3); }
  .pf-past-head .pf-ic { width:12px; height:12px;
                         transition:transform var(--dur-2) var(--ease); }
  .pf-past-head[aria-expanded="true"] .pf-ic { transform:rotate(180deg); }
  .pf-past-line { flex:1; height:1px; background:var(--border-subtle); }
  .pf-past { margin-top:var(--space-3); }
  .pf-past .pf-row { opacity:.62; }
  .pf-past .pf-row:hover { opacity:1; }

  @media (max-width:900px) {
    /* Shed the columns rather than crushing them: the actions drop under the
       body, and the count goes beside them. */
    .pf-row { grid-template-columns:48px minmax(0,1fr); row-gap:var(--space-3); }
    .pf-backs { grid-column:2; justify-self:start; text-align:start;
                display:flex; align-items:baseline; gap:6px; }
    .pf-backs b { display:inline; }
    .pf-backs span { display:inline; margin:0; }
    .pf-rowacts { grid-column:2; justify-self:start; opacity:1; pointer-events:auto; }
  }

  /* An empty section answers why it is empty and what to do about it. */
  .pf-empty { border:1px dashed var(--border); border-radius:var(--radius-card);
              padding:var(--space-6) var(--space-5); text-align:center; }
  .pf-empty p { margin:0 auto; max-width:52ch; font-size:var(--text-sm);
                color:var(--text-2); line-height:1.6; }
  .pf-empty .btn { margin-top:var(--space-4); }

  /* ── record health: a coverage rail, then the named gaps ──
     Stated as a count of what is missing, never a percentage. A percentage is
     a score, and a score invites you to optimise it; a count of holes invites
     you to fix one. */
  .pf-cov { padding:var(--space-4) var(--space-4) var(--space-3); }
  .pf-cov-top { display:flex; align-items:baseline; gap:var(--space-2);
                margin-bottom:var(--space-3); }
  .pf-cov-n { font:400 var(--text-2xl) var(--font-display); letter-spacing:-.02em;
              color:var(--text-1); line-height:1; font-variant-numeric:tabular-nums; }
  .pf-cov-of { font-size:var(--text-sm); color:var(--text-3); }
  .pf-cov-bar { display:flex; gap:3px; }
  .pf-cov-seg { flex:1; height:5px; border-radius:var(--radius-pill); background:var(--track); }
  .pf-cov-seg.on { background:var(--accent); }
  .pf-cov-seg.gap { background:var(--amber-soft); }
  .pf-cov-cap { margin-top:6px; font:400 var(--text-2xs) var(--font-mono);
                letter-spacing:.1em; text-transform:uppercase; color:var(--text-3);
                font-variant-numeric:tabular-nums; }
  .pf-cov-say { margin:var(--space-3) 0 0; font-size:var(--text-sm); color:var(--text-2);
                line-height:1.55; }
  .pf-kit-foot { padding:var(--space-4); }
  .pf-kit-foot p { margin:0 0 var(--space-3); font-size:var(--text-sm);
                   color:var(--text-2); line-height:1.55; }
  .pf-kit-foot .btn { width:100%; }

  /* ── how it sheds ──
     By priority, one thing at a time: the kit drops under the record before
     anything inside the record gives up a column. */
  @media (max-width:1180px) {
    .pf-body { grid-template-columns:minmax(0,1fr); }
    .pf-kit { position:static; }
  }
  @media (max-width:1023px) {
    .pf-ascent-side { width:100%; }
  }
  @media (max-width:860px) {
    .pf-cards.two { grid-template-columns:1fr; }
    .pf-arail { flex-basis:100%; }
    .pf-astage-lbl { font-size:var(--text-xs); }
  }
  @media (max-width:640px) {
    /* The identity row folds: mark and its edit control keep one line, the
       name and preferences take the next. Left to wrap on its own the pencil
       ended up orphaned on a line of its own under the chips. */
    .pf-idr { flex-wrap:wrap; align-items:center; }
    .pf-idr-acts { order:1; margin-inline-start:auto; }
    .pf-idt { order:2; flex-basis:100%; }
    .pf-face { width:52px; height:52px; font-size:21px; }
    /* The rail turns vertical rather than shrinking to unreadable labels.
       Its links go with it — a 2px stub between stacked rows says nothing. */
    .pf-arail { flex-direction:column; align-items:stretch; gap:var(--space-3); }
    .pf-astage { flex-direction:row; align-items:flex-start; gap:var(--space-3); }
    .pf-piprow { width:auto; flex:none; padding-top:5px; }
    .pf-link { display:none; }
    .pf-ascent-side { gap:var(--space-5); }
  }

  /* ── Shared two-column field grid ──
     All that survives of the old profile_review.html block: the review page
     is .rv-* now (end of this file). kb.html still uses this one. */
  .pr-grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:var(--space-3); }
  @media (max-width:640px) { .pr-grid-2 { grid-template-columns:1fr; } }

  /* ── Notifications (notifications.html) ── */
  /* ── Scan history, the drop-down (staged_jobs.html) ──
     It was a page. Nothing on it led anywhere and the question it answered —
     is Orbit still looking, and did last night find anything — is one you
     check in passing, so five runs hang off the button instead. Rows here are
     read, never pressed: a `.jl-menu` whose children are not controls. */
  .jl-menu-runs { min-width:292px; }
  .nt-run { display:flex; align-items:baseline; gap:var(--space-3);
            padding:6px var(--space-4); }
  .nt-run + .nt-run { border-block-start:1px solid var(--border-subtle); }
  .nt-when { font-size:var(--text-sm); color:var(--text-2); white-space:nowrap; }
  .nt-stats { margin-inline-start:auto; display:flex; align-items:baseline;
              gap:var(--space-3); flex-wrap:wrap; }
  .nt-stat { font-size:var(--text-sm); color:var(--text-3); white-space:nowrap; }
  .nt-stat b { font-family:var(--font-display); font-weight:500; color:var(--text-1);
               font-variant-numeric:tabular-nums; margin-inline-end:4px; }
  /* Imported is the only one of the three that changed your pipeline. */
  .nt-stat.is-in b { color:var(--accent-ink); }
  .nt-note { font-size:var(--text-sm); color:var(--text-3); margin-inline-start:auto; }

  /* ── Knowledge Base (kb.html) ── */
  .kb-card { padding:var(--space-5); margin-bottom:var(--space-5); }
  .kb-tips { border-style:dashed; background:var(--canvas); }
  .kb-tips ul { margin:var(--space-2) 0 0; padding-left:20px; color:var(--text-2); font-size:var(--text-sm); line-height:1.8; }
  .kb-textarea { font-family:var(--font-mono); font-size:var(--text-sm); line-height:1.6; width:100%; resize:vertical; }

  /* ============================== Admin (page-specific) ============================== */
  /* Group 7 — layout scaffolding only; everything visual is the shared
     component vocabulary. */
  /* The sub-nav is sized with the settings and company ones — one rule, in
     the Account section, named `.set-tabs, .co-tabs, .adm-tabs`. This block
     used to hold a third copy of it, which is how settings ended up 8px
     shorter than admin without anyone noticing. */

  /* ── Identity ──
     Who this page is about, before any figure about them. The address is the
     name here, so it wears the display face the way a job title does. */
  .identity { display:flex; align-items:center; gap:var(--space-4); flex-wrap:wrap;
              min-width:0; }
  .identity-name { font:400 var(--text-2xl) var(--font-display); margin:0;
                   letter-spacing:-.02em; overflow-wrap:anywhere; }

  /* ── Headline figures ──
     Three things you came for, not eight things of equal weight. A tile that
     matters carries its own trend; the rest belong in .minor below. */
  .headline { display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
              gap:var(--space-4); }
  .hl { background:var(--surface); border:1px solid var(--border-subtle);
        border-radius:var(--radius-card); padding:var(--space-4) var(--space-5);
        display:flex; flex-direction:column; gap:var(--space-2); box-shadow:var(--lift-1); }
  .hl-label { font-size:var(--text-xs); text-transform:uppercase; letter-spacing:.08em;
              color:var(--text-3); font-weight:600; }
  .hl-val { font:600 30px/1 var(--font-display); letter-spacing:-.02em;
            font-variant-numeric:tabular-nums lining-nums; }
  .hl-val sup { font-size:14px; font-weight:400; opacity:.55; margin-inline-start:2px; }
  .hl-foot { display:flex; align-items:center; justify-content:space-between;
             gap:var(--space-2); flex-wrap:wrap; }
  .hl.is-amber { border-color:color-mix(in srgb, var(--amber) 35%, transparent); }
  .hl.is-amber .hl-val { color:var(--amber-ink); }
  .delta { font-size:var(--text-xs); font-weight:600; font-variant-numeric:tabular-nums; }
  .delta.up { color:var(--ok); } .delta.down { color:var(--danger); }
  .delta.flat { color:var(--text-3); }
  .hl-spark { display:block; width:100%; height:44px; }

  /* A figure's progress toward its own ceiling. Semantic at the thresholds,
     because "how close am I to the cap" is the question being asked. */
  .meter { height:6px; border-radius:var(--radius-pill); background:var(--track); overflow:hidden; }
  .meter > i { display:block; height:100%; border-radius:inherit; background:var(--accent);
               transition:width var(--dur-2) var(--ease); }
  .meter.is-warn > i { background:var(--warn); }
  .meter.is-danger > i { background:var(--danger); }

  /* Everything true but not headline: one line each, not a tile each. */
  .minor { display:flex; flex-wrap:wrap; gap:var(--space-2); }
  .minor span { display:inline-flex; align-items:baseline; gap:6px;
                padding:6px var(--space-3); border-radius:var(--radius-pill);
                background:var(--sunk); font-size:var(--text-sm); color:var(--text-2); }
  .minor b { font:600 var(--text-base) var(--font-display); color:var(--text-1);
             font-variant-numeric:tabular-nums; }

  /* ── Funnel ──
     A column of counts hides its own shape. Proportional bars and the rate
     between each pair show where people actually stop. */
  .funnel { display:flex; flex-direction:column; gap:var(--space-1); }
  .fn-row { display:grid; grid-template-columns:96px 1fr 84px; align-items:center;
            gap:var(--space-3); }
  .fn-name { font-size:var(--text-sm); color:var(--text-2); }
  .fn-bar { height:26px; border-radius:var(--radius-ctl); background:var(--sunk); overflow:hidden; }
  .fn-bar i { display:block; height:100%; background:var(--accent-soft);
              border-inline-start:3px solid var(--accent); }
  .fn-row.is-drop .fn-bar i { background:var(--danger-bg); border-color:var(--danger); }
  .fn-val { text-align:end; font-size:var(--text-sm); font-variant-numeric:tabular-nums;
            color:var(--text-2); }
  .fn-val b { font:600 var(--text-base) var(--font-display); color:var(--text-1); }
  .fn-step { grid-column:2; font-size:var(--text-xs); color:var(--text-3);
             padding-inline-start:var(--space-2); }
  .fn-step.is-bad { color:var(--danger); }

  /* ── Ranked bars ── */
  .bars { display:flex; flex-direction:column; gap:var(--space-2); }
  .bar-row { display:grid; grid-template-columns:minmax(110px,150px) 1fr 80px;
             align-items:center; gap:var(--space-3); font-size:var(--text-sm); }
  .bar-track { height:8px; border-radius:var(--radius-pill); background:var(--sunk);
               overflow:hidden; }
  .bar-track i { display:block; height:100%; background:var(--accent); border-radius:inherit; }
  .bar-track.is-amber i { background:var(--amber); }
  .bar-val { text-align:end; font-variant-numeric:tabular-nums; color:var(--text-2); }

  /* ── Activity, folded ──
     Twenty rows of "Moved to new" say nothing. Repeats collapse to one line
     with a count; failures never do. */
  .ev-day { font-size:var(--text-xs); text-transform:uppercase; letter-spacing:.08em;
            color:var(--text-3); font-weight:600; margin-top:var(--space-3); }
  .ev { display:grid; grid-template-columns:20px 1fr auto; gap:var(--space-3);
        align-items:start; padding:var(--space-2) 0;
        border-bottom:1px solid var(--border-subtle); }
  .ev:last-child { border-bottom:none; }
  .ev-ico { width:20px; height:20px; border-radius:50%; display:grid; place-items:center;
            background:var(--sunk); color:var(--text-3); font-size:10px; margin-top:2px; }
  .ev.is-bad .ev-ico { background:var(--danger-bg); color:var(--danger); }
  .ev.is-good .ev-ico { background:var(--ok-bg); color:var(--ok); }
  .ev-body { font-size:var(--text-sm); color:var(--text-2); min-width:0;
             overflow-wrap:anywhere; }
  .ev-body b { color:var(--text-1); font-weight:600; }
  .ev-body em { font-style:normal; color:var(--text-2); font-weight:600; }
  .ev-time { font-size:var(--text-xs); color:var(--text-3); white-space:nowrap; }

  .adm-chart { display:block; width:100%; height:150px; }
  /* In a card whose height is set by whatever sits beside it, a fixed 150px
     is 150px of chart and the rest of the card blank. `preserveAspectRatio`
     is already `none` on these, so the viewBox stretches to whatever it is
     given. The floor stops a short row from squeezing it to a strip. */
  .adm-chart.is-fill { height:auto; flex:1 1 auto; min-height:170px; }
  /* A row's own rhythm, in a table cell: a total cannot tell a busy week
     from a busy year. */
  .u-spark { display:block; width:120px; height:26px; }

  /* A setting that is a small integer, edited where it is read. */
  .setting { display:flex; align-items:flex-start; justify-content:space-between;
             gap:var(--space-5); flex-wrap:wrap; }
  .setting + .setting { border-top:1px solid var(--border-subtle);
                        padding-top:var(--space-5); }
  .setting-copy { display:flex; flex-direction:column; gap:2px; max-width:54ch; }
  .setting-val { display:flex; align-items:center; gap:var(--space-3); }
  .setting-val output { font:600 24px/1 var(--font-display); letter-spacing:-.02em;
                        font-variant-numeric:tabular-nums; min-width:2ch; text-align:end; }
  /* align-items:start so a short card keeps its own height rather than being
     stretched into a column of nothing. `.is-even` opts back in for rows that
     read as a pair — two cards about the same moment look wrong ragged. */
  .adm-cols { display:grid; grid-template-columns:1fr 1fr; gap:var(--space-4);
              align-items:start; }
  .adm-cols.is-even { align-items:stretch; }
  .adm-cols.is-even > .card { display:flex; flex-direction:column; }
  .adm-cols.is-even > .card > .card-body { flex:1; }
  @media (max-width:900px) { .adm-cols { grid-template-columns:1fr; } }

  /* ── Nudge ──
     Moving a figure a step at a time, beside the figure itself: no separate
     field restating a number already on screen two inches above.

     Not `.stepper` — that name already belongs to the candidate journey rail
     further up this file, and the corner placement below reached it too. It
     also reached this control wherever it was used outside a tile: absolute
     against whichever ancestor happened to be positioned, which on
     /admin/limits was nothing, so the buttons left the card. In flow by
     default; only the tile that reserves room for them lifts them out. */
  .nudge { display:inline-flex; gap:var(--space-1); }
  .stat-tile.is-editable { position:relative; padding-inline-end:var(--space-12); }
  .stat-tile.is-editable .nudge { position:absolute;
                                  inset-block-end:var(--space-3);
                                  inset-inline-end:var(--space-3); }
  .nudge button { width:26px; height:26px; padding:0; flex:none; cursor:pointer;
                  display:grid; place-items:center; border-radius:50%;
                  border:1px solid var(--border); background:var(--surface);
                  color:var(--text-2); font:600 14px/1 var(--font-ui);
                  transition:color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease),
                             background var(--dur-1) var(--ease); }
  .nudge button:hover { color:var(--accent-ink); border-color:var(--accent);
                        background:var(--accent-soft); }
  .nudge button:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
  .nudge button:disabled { opacity:.4; cursor:not-allowed; }
  .nudge button:disabled:hover { color:var(--text-2); border-color:var(--border);
                                 background:var(--surface); }

  /* ── Info bubble ──
     A caption that only some readers need does not deserve permanent space
     next to a heading. The [i] carries it, and the bubble opens on click —
     not hover, so it works the same on touch and can be read at leisure. */
  /* `vertical-align:middle` centres on the x-height, which leaves the dot
     sitting under a cap-height heading. The nudge puts it on the text's
     optical centre line instead. */
  .info-btn { width:18px; height:18px; flex:none; padding:0; margin-inline-start:var(--space-2);
              display:inline-grid; place-items:center; vertical-align:middle;
              transform:translateY(-1.5px);
              border-radius:50%; border:1px solid var(--border);
              background:transparent; color:var(--text-3); cursor:pointer;
              font:600 10px/1 var(--font-ui); letter-spacing:0; text-transform:none;
              transition:color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease),
                         background var(--dur-1) var(--ease); }
  .info-btn:hover { color:var(--accent-ink); border-color:var(--accent); background:var(--accent-soft); }
  .info-btn:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
  .info-wrap { position:relative; display:inline-flex; align-items:center; }
  /* Opens toward the reading direction by default — most [i]s sit at the
     start of a heading or a chip, where anchoring to the trailing edge would
     throw the bubble off the content and over the sidebar. `.flip` is set by
     shell.js for the ones near the far edge. */
  .info-pop { position:absolute; z-index:90; top:calc(100% + 8px); inset-inline-start:0;
              inline-size:max-content; max-inline-size:min(320px, 76vw);
              padding:var(--space-3) var(--space-4); border-radius:var(--radius-card);
              background:var(--surface-raised); border:1px solid var(--border-subtle);
              box-shadow:var(--lift-3, var(--shadow-float));
              font:400 var(--text-sm)/1.5 var(--font-ui); letter-spacing:0;
              text-transform:none; color:var(--text-2); text-align:start;
              /* `display:none`, not `opacity:0`. A closed bubble was still laid
                 out, and an absolutely-positioned box hanging off the right of
                 its button still extends the page's scroll width — five of them
                 on one page gave a phone 146px of sideways scroll on a page
                 with nothing to scroll to. The fade survives as an animation
                 on open, which is when anyone sees it. */
              display:none; }
  .info-wrap.flip .info-pop { inset-inline-start:auto; inset-inline-end:0; }
  .info-wrap.is-open .info-pop { display:block;
                                 animation:info-in var(--dur-1) var(--ease); }
  @keyframes info-in { from { opacity:0; transform:translateY(-4px); }
                       to   { opacity:1; transform:none; } }
  .info-wrap.is-open .info-btn { color:var(--accent-ink); border-color:var(--accent);
                                 background:var(--accent-soft); }

  /* ── Caution actions ──
     Disable, disarm, delete: reversible, but they take something away, so
     they read as a warning before you commit rather than after. Quiet by
     default — a table full of red is a table nobody reads. */
  .btn-caution { border-color:var(--border); color:var(--danger); background:var(--surface); }
  .btn-caution:hover { background:var(--danger-bg); border-color:var(--danger); color:var(--danger); }
  .btn-caution:focus-visible { outline-color:var(--danger); }

  /* ── Aligned row actions ──
     Fixed tracks, so every button in a column shares a left edge and a width
     however many a given row happens to carry. */
  .tbl-actions { display:grid; grid-auto-flow:column; justify-content:end;
                 gap:var(--space-2); align-items:center; }
  .tbl-actions-2 { grid-template-columns:repeat(2, 92px); }
  .tbl-actions .btn, .tbl-actions form { width:100%; }
  .tbl-actions form .btn { width:100%; }
  /* an empty slot keeps the column, so a row without a Revive still lines up */
  .tbl-actions .slot-empty { visibility:hidden; }

  /* ── Status strip ──
     Standing conditions that are true until an admin changes them. A stack of
     full-width filled banners shouts the same thing on every visit; these
     stay one line and carry their detail in an info bubble. */
  .statusbar { display:flex; flex-wrap:wrap; gap:var(--space-2);
               margin-bottom:var(--space-5); }
  .status-chip { display:inline-flex; align-items:center; gap:var(--space-2);
                 height:var(--ctl-h, 34px); padding-inline:var(--space-4);
                 border-radius:var(--radius-pill); border:1px solid var(--border-subtle);
                 background:var(--surface); color:var(--text-2);
                 font:500 var(--text-sm) var(--font-ui); }
  .status-chip .dot { width:7px; height:7px; border-radius:50%; flex:none;
                      background:currentColor; }
  .status-chip strong { font-weight:600; color:var(--text-1); }
  .status-chip.is-amber { border-color:color-mix(in srgb, var(--amber) 42%, transparent);
                          background:var(--amber-soft); color:var(--amber-ink); }
  .status-chip.is-amber strong { color:var(--amber-ink); }
  .status-chip.is-warn { border-color:color-mix(in srgb, var(--warn) 42%, transparent);
                         background:var(--warn-bg); color:var(--warn); }
  .status-chip.is-warn strong { color:var(--warn); }
  .adm-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
              gap:var(--space-4); }
  .adm-cols-2 { display:grid; grid-template-columns:1fr 1fr; gap:var(--space-4); }
  @media (max-width:900px) { .adm-cols-2 { grid-template-columns:1fr; } }
  .adm-spark { height:48px; color:var(--accent); }
  .adm-spark svg { width:100%; height:100%; display:block; }
  .adm-code { background:var(--canvas); color:var(--text-1); border:1px solid var(--border-subtle);
              padding:var(--space-4); border-radius:var(--radius-ctl); font-family:var(--font-mono);
              font-size:var(--text-sm); line-height:1.7; overflow-x:auto;
              white-space:pre-wrap; word-break:break-word; }
  .adm-code.is-error { color:var(--danger); background:var(--danger-bg); border-color:transparent; }
  .adm-row { cursor:pointer; }
  .adm-row:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
  .adm-row.is-selected td { background:var(--accent-soft); }

  /* ============================== Session recovery (session_recovery.html) ==============================
     A standalone holding page — no app shell — shown while a refused session
     cookie is exchanged for a fresh one. It carried its own <style> block,
     which is the one thing no template may do; the rules were unchanged in the
     move except for `--bg-0`, a token retired with the cool ramp and only ever
     resolving to its `--surface` fallback. */
  .rec { min-height:100vh; display:grid; place-items:center;
         font:400 var(--text-base)/1.6 var(--font-ui); color:var(--text-2);
         background:var(--surface); }
  /* The page has no .app-shell (a test reads that class as "the app
     rendered"), so the UA's 8px body margin would frame the splash. */
  body:has(> .rec) { margin:0; }
  .rec-card { text-align:center; padding:var(--space-8); }
  .rec-mark { width:44px; height:44px; margin:0 auto var(--space-5); }
  .rec-mark svg { width:26px; height:26px; }
  .rec-status { font-weight:500; color:var(--text-1); }
  .rec-fallback { margin-block-start:var(--space-4); font-size:var(--text-sm); }
  .rec-fallback a { color:var(--accent); }

  /* ── Paying for Pro: one Channel, one price (pricing.html) ──
     A Channel is a transaction, not a payment method: its own currency, its
     own period, its own legal seller. So the amount sits on the button that
     charges it rather than in the plan's headline, where one figure would be
     wrong on at least one of them — and "for 30 days" against "per month" is
     the whole difference between the two, said where the press happens.
     See src/payments/channels.py. */
  .up-pay { display:grid; gap:var(--space-2); }
  .ch-form { margin:0; }
  .ch { display:flex; align-items:center; gap:var(--space-3); width:100%;
        text-align:start; padding:var(--space-3) var(--space-4);
        border-radius:var(--radius-card); border:1px solid var(--border);
        background:var(--surface-raised); color:var(--text-1); cursor:pointer;
        font:400 var(--text-base) var(--font-ui);
        transition:border-color var(--dur-1) var(--ease),
                   box-shadow var(--dur-1) var(--ease); }
  .ch:hover:not(:disabled) { border-color:var(--accent); box-shadow:var(--lift-1); }
  /* Not open yet, and saying so. A Channel whose provider is unwired renders
     with its price — the figure is true and worth reading — and refuses the
     press, rather than answering 500 behind a label promising otherwise. */
  .ch:disabled { opacity:.55; cursor:not-allowed; }
  .ch-ic { width:32px; height:32px; border-radius:var(--radius-ctl); flex:none;
           display:grid; place-items:center;
           background:var(--accent-soft); color:var(--accent-ink); }
  .ch-ic svg { width:16px; height:16px; }
  /* Amber for the Channel that does not come back on its own: the same ink
     the product uses everywhere for "the next move is yours". */
  .ch.is-momo .ch-ic { background:var(--amber-soft); color:var(--amber-ink); }
  .ch-b { flex:1; min-width:0; }
  .ch-t { font-weight:500; display:block; }
  .ch-s { font-size:var(--text-sm); color:var(--text-3); }
  .ch-amt { font:500 var(--text-base) var(--font-mono); color:var(--text-1);
            white-space:nowrap; text-align:end; }
  .ch-amt small { display:block; font:400 var(--text-xs) var(--font-ui);
                  color:var(--text-3); }
  .ch-more { margin-block-start:var(--space-3); font-size:var(--text-sm);
             color:var(--text-3); }
  .ch-more summary { cursor:pointer; }
  .ch-more summary:hover { color:var(--text-1); }
  .ch-more .ch-form { margin-block-start:var(--space-2); }
  .up-note-owed { color:var(--amber-ink); }

  /* ============================== Legal (base_legal.html) ==============================
     Terms, Privacy and Refunds. Three documents, one public chrome, outside the
     app shell — `base_legal.html` says why.

     This replaces `.legal-container`, which was a 720px column, a 700-weight
     h2 and nothing else: no index, no way between the documents, and a bare
     `<h1>` in the app's top bar above it. A contract is entered at a clause
     rather than read front to back, so the index is the point of the layout
     and not decoration on it.

     `.marketing-scope` on the body supplies the size (15px body, the display
     scale); the palette is `:root` like everywhere else. */

  /* ── the bar ──
     The page's own ground and a hairline, nothing else. It was a translucent
     `color-mix` over a blur, which on a document this plain reads as a filled
     band across the top — a rectangle of chrome above a page that is only
     words. Flat `--canvas` means the bar *is* the page: the only thing that
     marks it is the rule under it, and the only thing in it that draws the
     eye is the current document's pill. */
  .lg-bar { position:sticky; inset-block-start:0; z-index:20;
            background:var(--canvas);
            border-block-end:1px solid var(--border-subtle); }
  .lg-bar-in { max-width:1120px; margin-inline:auto; display:flex; align-items:center;
               gap:var(--space-6); padding:var(--space-3) var(--space-5); }
  .lg-mark { display:inline-flex; align-items:center; gap:var(--space-2);
             text-decoration:none; color:var(--text-1);
             font:600 var(--text-lg) var(--font-display); letter-spacing:-.01em; }
  .lg-mark:hover { text-decoration:none; }
  .lg-badge { flex:0 0 26px; width:26px; height:26px; }
  .lg-badge svg { width:16px; height:16px; }
  .lg-docs { display:flex; gap:var(--space-1); margin-inline-start:auto; flex-wrap:wrap; }
  /* A phone has room for the brand and the language on one line, and the
     three documents on the next — not all four squeezed into one. */
  @media (max-width:640px) {
    .lg-bar-in { flex-wrap:wrap; row-gap:var(--space-2); }
    .lg-bar-in > .lang-switch { margin-inline-start:auto; }
    .lg-docs { order:3; flex:1 0 100%; margin-inline-start:0; }
  }
  .lg-governs { margin:var(--space-4) 0 0; padding:var(--space-3) var(--space-4); border-radius:var(--radius-ctl);
                background:var(--accent-soft); color:var(--text-2); font-size:var(--text-sm); }
  .lg-governs a { color:var(--accent); white-space:nowrap; }
  .lg-doc { padding:6px 14px; border:1px solid transparent; border-radius:var(--radius-pill);
            color:var(--text-2); text-decoration:none;
            font:500 var(--text-sm) var(--font-ui);
            transition:background var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
  .lg-doc:hover { background:var(--sunk); color:var(--text-1); text-decoration:none; }
  .lg-doc[aria-current="page"] { background:var(--surface); border-color:var(--border-subtle);
                                 color:var(--text-1); box-shadow:var(--lift-1); }

  /* ── the page ── */
  .lg-wrap { max-width:1120px; margin-inline:auto;
             padding:0 var(--space-5) var(--space-10);
             display:grid; grid-template-columns:216px minmax(0,1fr);
             gap:var(--space-8); align-items:start; }
  .lg-head { grid-column:1 / -1; padding-block:var(--space-10) var(--space-8); }
  .lg-h { margin:0; font:400 var(--display-2)/1.1 var(--font-display);
          letter-spacing:-.02em; text-wrap:balance; color:var(--text-1); }
  .lg-lede { margin:var(--space-4) 0 0; max-width:var(--measure);
             font:400 var(--lede)/var(--leading-lede) var(--font-ui);
             color:var(--text-2); }
  .lg-meta { margin-block-start:var(--space-5); display:flex; gap:var(--space-4);
             flex-wrap:wrap; font-size:var(--text-sm); color:var(--text-3); }
  .lg-meta b { color:var(--text-2); font-weight:500; }

  /* ── the index ── */
  .lg-nav { position:sticky; inset-block-start:96px; }
  .lg-nav-h { font:500 var(--text-xs) var(--font-mono); text-transform:uppercase;
              letter-spacing:.12em; color:var(--text-3);
              padding-block-end:var(--space-3); }
  .lg-nav ol { list-style:none; margin:0; padding:0;
               border-inline-start:1px solid var(--border-subtle); }
  .lg-nav a { display:block; padding:5px var(--space-3); margin-inline-start:-1px;
              border-inline-start:2px solid transparent; text-decoration:none;
              color:var(--text-3); font:400 var(--text-sm)/1.45 var(--font-ui);
              transition:color var(--dur-1) var(--ease); }
  .lg-nav a:hover { color:var(--text-1); text-decoration:none; }
  .lg-nav a.is-here { color:var(--text-1); border-inline-start-color:var(--accent);
                      font-weight:500; }

  /* ── the document ── */
  .lg-body { min-width:0; max-width:var(--measure); }
  .lg-sec { padding-block-end:var(--space-8); scroll-margin-block-start:104px; }
  .lg-sec h2 { margin:0 0 var(--space-3);
               font:500 var(--text-2xl)/1.25 var(--font-display);
               letter-spacing:-.015em; text-wrap:balance; }
  .lg-sec h3 { margin:var(--space-6) 0 var(--space-2);
               font:600 var(--text-lg) var(--font-ui); }
  .lg-sec p, .lg-sec ul { font-family:var(--font-ui); line-height:1.7; }
  .lg-sec p { margin:0 0 var(--space-4); color:var(--text-2); }
  .lg-sec ul { margin:0 0 var(--space-4); padding-inline-start:22px; color:var(--text-2); }
  .lg-sec li { margin-block-end:var(--space-2); }
  .lg-sec a { color:var(--accent-ink); }
  .lg-sec strong { color:var(--text-1); font-weight:600; }
  .lg-sec code { font:400 var(--text-sm) var(--font-mono); background:var(--sunk);
                 padding:1px 5px; border-radius:var(--radius-ctl); color:var(--text-1); }

  /* A string that comes from Settings, not from the template — the trader's
     legal name, postal address, contact address, venue. Unset, it renders as
     something visibly owed rather than as the literal "[Your Business
     Address]" these pages used to ship. */
  .lg-owe { display:inline-flex; align-items:baseline; gap:4px;
            background:var(--amber-soft); color:var(--amber-ink);
            border:1px dashed color-mix(in srgb, var(--amber) 55%, transparent);
            padding:0 7px; border-radius:var(--radius-ctl);
            font:500 var(--text-sm) var(--font-mono); white-space:nowrap; }

  /* The two Channels are one comparison, so they are one object: same edges,
     same inner padding, and the verb that ends each — renews, Pro until — is
     pushed to the foot so it lands on one line across the pair. */
  .lg-pair { display:grid; gap:var(--space-4);
             grid-template-columns:repeat(auto-fit,minmax(258px,1fr));
             margin-block-end:var(--space-5); }
  .lg-ch { background:var(--surface); border:1px solid var(--border-subtle);
           border-radius:var(--radius-card); padding:var(--space-5);
           display:flex; flex-direction:column; }
  .lg-ch-t { font:500 var(--text-lg) var(--font-display); letter-spacing:-.01em;
             margin-block-end:var(--space-3); }
  .lg-ch dl { margin:0; display:grid; grid-template-columns:auto 1fr;
              gap:var(--space-2) var(--space-4); font-size:var(--text-sm); }
  .lg-ch dt { color:var(--text-3); }
  .lg-ch dd { margin:0; color:var(--text-1); }
  .lg-ch-v { margin-block-start:auto; padding-block-start:var(--space-4);
             font-size:var(--text-sm); color:var(--text-2); }
  .lg-ch-v b { color:var(--text-1); }

  /* Who touches the data. A table, because the reader's question is "what went
     where", and four names in a sentence cannot answer it — which is what the
     old "we share limited data with trusted third parties" did. */
  .lg-scroll { overflow-x:auto; }
  .lg-who { width:100%; border-collapse:collapse; font-size:var(--text-sm);
            margin-block-end:var(--space-5); }
  .lg-who th { text-align:start; padding:var(--space-2) var(--space-3);
               border-block-end:1px solid var(--border); color:var(--text-3);
               font:500 var(--text-xs) var(--font-mono); text-transform:uppercase;
               letter-spacing:.1em; white-space:nowrap; }
  .lg-who td { padding:var(--space-3); border-block-end:1px solid var(--border-subtle);
               color:var(--text-2); vertical-align:top; }
  .lg-who td:first-child { color:var(--text-1); font-weight:500; white-space:nowrap; }

  /* Amber: the reader has to notice this one. Used for the sentence a refund
     policy must not bury — that a channel changes who decides. */
  .lg-note { background:var(--amber-soft); color:var(--amber-ink);
             border-radius:var(--radius-card); padding:var(--space-4) var(--space-5);
             margin-block-end:var(--space-5); font-size:var(--text-sm); line-height:1.65; }

  /* The footer is a row of links, so it wears the UI face at the UI size and
     says so explicitly rather than inheriting whatever the document body
     happens to be. It came out in the UA serif, underlined, at reading size,
     which made three links look like a closing sentence. */
  .lg-foot { border-block-start:1px solid var(--border-subtle);
             margin-block-start:var(--space-8); padding-block:var(--space-6);
             display:flex; align-items:center; gap:var(--space-6); flex-wrap:wrap;
             font:400 var(--text-sm) var(--font-ui); color:var(--text-3); }
  .lg-foot a { color:var(--text-2); font-weight:500; text-decoration:none; }
  .lg-foot a:hover { color:var(--text-1); text-decoration:none; }

  /* Acceptance, under the sign-up card. Quiet on purpose — it is a statement
     of fact, not a warning, and the required checkbox inside Clerk's own card
     is the mechanism this line backs up. */
  .auth-legal { margin:var(--space-5) 0 0; text-align:center;
                font-size:var(--text-sm); line-height:1.6; color:var(--text-3); }
  .auth-legal a { color:var(--text-2); text-decoration:underline;
                  text-underline-offset:2px; }
  .auth-legal a:hover { color:var(--text-1); }

  /* The index becomes a pill row before the column would crush the prose. */
  @media (max-width:900px) {
    .lg-wrap { grid-template-columns:minmax(0,1fr); }
    .lg-nav { position:static; padding-block-end:var(--space-5); }
    .lg-nav ol { display:flex; flex-wrap:wrap; gap:var(--space-1); border-inline-start:0; }
    .lg-nav a { border:1px solid var(--border-subtle); border-radius:var(--radius-pill);
                margin:0; padding:4px 12px; }
    .lg-nav a.is-here { border-color:var(--accent); }
  }

  /* ============================== Error page (error.html) ============================== */
  .error-page { display:flex; flex-direction:column; align-items:center; justify-content:center;
                text-align:center; padding:var(--space-12) var(--space-6); max-width:520px; margin:0 auto; }
  .error-code { font-size:96px; font-weight:800; color:var(--border); line-height:1;
                letter-spacing:-0.04em; margin-bottom:var(--space-2); }
  .error-title { font-size:var(--text-2xl); font-weight:700; color:var(--text-1); margin-bottom:var(--space-3); }
  .error-desc { font-size:var(--text-lg); color:var(--text-2); margin-bottom:var(--space-8); line-height:1.6; }
  .error-actions { display:flex; gap:var(--space-3); flex-wrap:wrap; justify-content:center; }

  /* ============================== Bookmarklet (bookmarklet.html) ============================== */
  .step-card { background:var(--surface); border:1px solid var(--border-subtle); border-radius:var(--radius-card);
               padding:var(--space-6); margin-bottom:var(--space-5); position:relative; }
  .step-number { width:28px; height:28px; border-radius:50%; background:var(--accent); color:var(--on-accent);
                 display:inline-flex; align-items:center; justify-content:center; font-size:var(--text-sm);
                 font-weight:700; margin-right:var(--space-2); }
  .step-title { font-size:var(--text-lg); font-weight:600; display:inline-flex; align-items:center; margin-bottom:var(--space-2); }
  .details-content { padding:var(--space-4); background:var(--canvas); border-radius:var(--radius-ctl);
                      border:1px solid var(--border-subtle); margin-bottom:var(--space-4); overflow-x:auto; }

  /* ============================== All Jobs (jobs.html) ============================== */
  /* Gmail's anatomy on the landing page's warm ground, which is now every
     page's ground (tokens.css :root). The one
     idea carried over from marketing.css is the ascent rail — neutral where you
     are, amber where you're going — restated at the scale of a single row. */

  /* ── instant, centred tooltips ──
     The native title= tooltip waits a second or more and hangs off the cursor.
     These follow the control they belong to and arrive in a quarter second.

     `.tip` is the name to use on new markup. `.jl-tip` is the original and
     stays as an alias — this was the list's device before it was everyone's,
     and renaming the existing call sites buys nothing. Same for the other
     shared patterns below: see the index at the top of this file. */
  .tip, .jl-tip { position:relative; }
  .tip::after, .jl-tip::after {
    content:attr(data-tip); position:absolute; z-index:80;
    top:calc(100% + 6px); left:50%; transform:translateX(-50%) translateY(-3px);
    background:var(--text-1); color:var(--surface);
    font:400 var(--text-xs) var(--font-ui); letter-spacing:.01em;
    padding:5px var(--space-2); border-radius:var(--radius-ctl);
    white-space:nowrap; pointer-events:none; opacity:0;
    transition:opacity 110ms var(--ease) 220ms, transform 110ms var(--ease) 220ms;
  }
  .tip:hover::after, .tip:focus-visible::after,
  .jl-tip:hover::after, .jl-tip:focus-visible::after { opacity:1; transform:translateX(-50%) translateY(0); }
  /* controls near the right edge would push their tooltip off screen */
  .tip.end::after, .jl-tip.end::after { left:auto; right:0; transform:translateY(-3px); }
  .tip.end:hover::after, .tip.end:focus-visible::after,
  .jl-tip.end:hover::after, .jl-tip.end:focus-visible::after { transform:translateY(0); }
  @media (hover: none) { .tip::after, .jl-tip::after { display:none; } }

  /* A sentence, not a label. `.tip` is `nowrap` because it usually names a
     control in two words; a tab's tooltip explains what the tab is for, and at
     nowrap that runs off the side of the screen by the fourth pill. */
  .tip.tip-say::after { white-space:normal; width:max-content; max-width:30ch;
                        text-align:start; line-height:1.45; }

  /* Controls in the kit rail and the header sit at the right edge of the
     page; a centred nowrap tooltip on those hangs off the viewport. Same
     treatment as .tip.end, applied by position rather than by hand. */
  .jd-doc-acts .tip::after, .page-header-actions .tip::after {
    left:auto; right:0; transform:translateY(-3px); }
  .jd-doc-acts .tip:hover::after, .jd-doc-acts .tip:focus-visible::after,
  .page-header-actions .tip:hover::after, .page-header-actions .tip:focus-visible::after {
    transform:translateY(0); }

  /* ── search, in the page's top bar ── */
  .jl-search { position:relative; display:flex; align-items:center; gap:var(--space-2);
               inline-size:min(560px, 46vw); height:38px;
               padding-inline:var(--space-4) var(--space-1);
               background:var(--sunk,var(--canvas)); border:1px solid transparent;
               border-radius:var(--radius-pill);
               transition:background var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease),
                          border-color var(--dur-2) var(--ease); }
  .jl-search > svg { width:17px; height:17px; }
  .jl-search input { font-size:var(--text-base); }
  .jl-search .jl-icon { width:30px; height:30px; }
  .jl-search .jl-icon svg { width:16px; height:16px; }
  /* ── one control height, app-wide ──
     Buttons had drifted to four sizes: 25px for .btn-sm, 29px for a bare
     .btn, 37px for the List|Board pill group and 38px for the search field.
     The pill group and the search field are the ones that look right, so that
     band is the standard and everything else meets it. `--ctl-h` lives in
     tokens.css; this used to be scoped to `.paper-scope`, which meant a page
     off that scope kept the old 25/29px and any page mixing the two looked
     broken. Icon-only controls (.jl-icon, .jd-act) are a different class of
     thing and stay compact. */
  .btn, .btn-sm { height:var(--ctl-h); padding-inline:var(--space-5);
                  font-size:var(--text-sm); }
  /* A round icon-only button at the same control height, so one in a header
     row lines up with the labelled buttons beside it instead of sitting at
     the compact 26px of a sidebar .iconbtn. */
  .btn-round { inline-size:var(--ctl-h); padding-inline:0; border-radius:50%; }
  /* The one deliberate exception — a grab-me target, not a control in a row. */
  .btn-lg { height:auto; font-size:var(--text-lg); padding:10px var(--space-5); }
  .pills { height:var(--ctl-h); align-items:center; }
  .pill { height:calc(var(--ctl-h) - 8px); padding-inline:var(--space-4); }
  /* :not(textarea) — a textarea's height is its rows, and pinning it to one
     control height collapsed every multi-line field in the app. This used to
     be scoped narrowly enough that only .jd-notes had to opt back out. */
  .input:not(textarea), .select { height:var(--ctl-h); }

  /* ── the filter sheet's field ──
     shell.css sticks .page-header to the top, which is right everywhere except
     the two surfaces whose search field drops a sheet taller than the bar: a
     sticky ancestor clips it. Those two opt out by name (`jl-scope`) rather
     than every other page opting back in. */
  .jl-scope .page-header { position:relative; z-index:30; }
  .jl-scope .page-header-title { flex:1 1 auto; overflow:visible; white-space:normal; }
  .jl-search:hover { background:var(--surface); box-shadow:var(--lift-1,var(--shadow-float)); }
  .jl-search:focus-within { background:var(--surface-raised); border-color:var(--border-subtle);
                            box-shadow:var(--lift-3,var(--shadow-float)); }
  .jl-search > svg { width:19px; height:19px; color:var(--text-3); flex:none; }
  .jl-search input { flex:1; min-width:0; border:0; background:none; outline:none; box-shadow:none;
                     font:400 var(--text-lg) var(--font-ui); color:var(--text-1); letter-spacing:-.005em; }
  .jl-search input::placeholder { color:var(--text-3); }
  .jl-search-tools { display:flex; align-items:center; gap:2px; flex:none; }

  .jl-icon { display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px;
             padding:0; border:0; border-radius:50%; background:none; color:var(--text-2); cursor:pointer;
             transition:background var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
  .jl-icon:hover { background:var(--sunk,var(--canvas)); color:var(--text-1); }
  .jl-icon[hidden] { display:none; }
  .jl-icon[disabled] { opacity:.35; cursor:default; }
  .jl-icon[disabled]:hover { background:none; color:var(--text-2); }
  .jl-icon[aria-expanded="true"] { background:var(--accent-soft); color:var(--accent-ink); }
  .jl-icon svg { width:18px; height:18px; }

  /* ── filter sheet ── */
  .jl-sheet { position:absolute; z-index:40; top:calc(100% + var(--space-2));
              inset-inline-start:0; inline-size:min(720px, calc(100vw - var(--space-8)));
              background:var(--surface-raised); border:1px solid var(--border-subtle);
              border-radius:var(--radius-card); box-shadow:var(--lift-3,var(--shadow-float));
              padding:var(--space-6) var(--space-6) var(--space-5); display:none; text-align:start; }
  .jl-sheet.open { display:block; animation:jl-fall var(--dur-2) var(--ease); }
  @keyframes jl-fall { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:none; } }
  .jl-sheet-eyebrow { font:400 var(--text-xs) var(--font-mono); letter-spacing:.12em;
                      text-transform:uppercase; color:var(--text-3); margin:0 0 var(--space-5); }
  .jl-fgrid { display:grid; grid-template-columns:128px minmax(0,1fr) 128px minmax(0,1fr);
              gap:var(--space-5); align-items:center; }
  .jl-fgrid > label { font-size:var(--text-sm); color:var(--text-2); text-align:end; }
  .jl-fin { width:100%; height:34px; padding:0 2px; border:0; border-bottom:1px solid var(--border);
            border-radius:0; background-color:transparent; background-image:none;
            color:var(--text-1);
            font:400 var(--text-base) var(--font-ui); outline:none;
            transition:border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease); }
  .jl-fin:focus { border-bottom-color:var(--accent); box-shadow:0 1px 0 0 var(--accent); }
  /* The sheet's fields are underlines, not pills — but they are still ours,
     so they keep the drawn chevron the element rule provides and only give up
     the pill shape and the filled ground. */
  select.jl-fin { border-radius:0; cursor:pointer; padding-inline:2px var(--space-6);
                  background-image:
                    linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
                  background-size:5px 5px, 5px 5px;
                  background-repeat:no-repeat;
                  background-position:right 2px center, right 7px center; }
  .jl-fchecks { grid-column:2 / -1; display:flex; flex-wrap:wrap; gap:var(--space-3) var(--space-6); }
  .jl-fcheck { display:inline-flex; align-items:center; gap:var(--space-2);
               font-size:var(--text-base); color:var(--text-2); cursor:pointer; }
  .jl-fcheck input { accent-color:var(--accent); width:15px; height:15px; cursor:pointer; margin:0; }
  .jl-sheet-foot { display:flex; justify-content:space-between; align-items:center; gap:var(--space-4);
                   margin-top:var(--space-8); padding-top:var(--space-5);
                   border-top:1px solid var(--border-subtle); }
  .jl-sheet-hint { font-size:var(--text-sm); color:var(--text-3); }

  /* ── list card ── */
  .jl-card { margin-top:var(--space-5); background:var(--surface); border:1px solid var(--border-subtle);
             border-radius:var(--radius-card); box-shadow:var(--lift-1,none); overflow:visible; }
  .jl-bar { display:flex; align-items:center; gap:2px; height:52px; padding-inline:var(--space-3); }
  .jl-selall { display:flex; align-items:center; padding-inline-start:var(--space-2); }
  .jl-selall input { accent-color:var(--accent); width:16px; height:16px; cursor:pointer; margin:0; }
  /* `.jl-icon` is a 36px circle; overriding only the width made this one an
     ellipse. Narrower than its siblings on purpose — it hugs the checkbox —
     so both axes move together. */
  .jl-caret { width:26px; height:26px; }
  .jl-caret svg { width:12px; height:12px; }
  .jl-sep { width:1px; height:22px; background:var(--border-subtle); margin-inline:var(--space-2); flex:none; }
  .jl-spacer { flex:1; }
  .jl-count { font-size:var(--text-sm); color:var(--text-2); font-variant-numeric:tabular-nums;
              margin-inline-end:var(--space-2); white-space:nowrap; }
  .jl-pager { display:flex; align-items:center; }
  .jl-ctx { display:none; align-items:center; gap:2px; }
  .jl-ctx.on { display:flex; }
  .jl-idle { display:flex; align-items:center; gap:2px; }
  .jl-idle.off { display:none; }
  .jl-ctx-count { font:600 var(--text-sm) var(--font-ui); color:var(--accent-ink);
                  padding-inline:var(--space-1) var(--space-3); white-space:nowrap;
                  font-variant-numeric:tabular-nums; }

  /* ── how picky the hunt is (settings.html, scheduler tab) ──
     Three outcomes with a live count on each, not a decimal. The count is the
     control: a threshold nobody can calibrate becomes choosable when the page
     says what each choice would hold, and a band that has drifted out of reach
     reads as a zero here instead of emptying a page elsewhere in silence. */
  .pick-opts { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
               gap:var(--space-2); }
  /* Label first, count trailing — the shape `.pill-n` already gives a count
     everywhere else. It was a 26px display numeral stacked over the label,
     which gave the arithmetic more weight than the choice and made three
     ordinary options look like three statistics. */
  .pick-opt { display:flex; flex-direction:column; gap:3px; text-align:start;
              padding:var(--space-3) var(--space-4); cursor:pointer;
              border:1px solid var(--border-subtle); border-radius:var(--radius-ctl);
              background:var(--surface); font:inherit; color:inherit;
              transition:border-color var(--dur-1) var(--ease),
                         background var(--dur-1) var(--ease); }
  .pick-opt:hover { border-color:var(--border); background:var(--canvas); }
  .pick-opt.is-on { border-color:var(--accent); background:var(--accent-soft); }
  .pick-opt:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
  .pick-top { display:flex; align-items:baseline; gap:var(--space-3); }
  .pick-l { font-weight:600; font-size:var(--text-base); color:var(--text-1);
            line-height:1.3; }
  .pick-n { margin-inline-start:auto; font:500 var(--text-lg)/1 var(--font-display);
            color:var(--text-2); font-variant-numeric:tabular-nums; }
  .pick-opt.is-on .pick-n { color:var(--accent-ink); }
  .pick-b { font-size:var(--text-sm); color:var(--text-3); line-height:1.45; }
  .pick-say { margin:var(--space-3) 0 0; font-size:var(--text-sm); color:var(--text-3);
              max-width:74ch; line-height:1.6; }

  /* ── the scan's inbox (staged_jobs.html) ──
     The jobs list's own card, bar and rows in different columns: no
     checkbox-plus-star pair and no rail, because a `scraped_jobs` row has no
     pipeline id, no stage and nothing to star. */
  .jl-colhead.stg-cols, .jl-row.stg-row { grid-template-columns:30px 52px 176px minmax(0,1fr) 96px; }
  .jl-row.stg-row input[type="checkbox"] { accent-color:var(--accent); width:16px;
                                           height:16px; cursor:pointer; margin:0; }
  /* The amber edge All Jobs gives a row that wants you. Here the only thing
     that wants you is a posting about to close. */
  .stg-row.is-expiring::before { opacity:1; }
  /* A row leaving takes 220ms to do it, so the click you were about to make
     does not land on whatever slid up into its place. */
  .stg-row.is-gone { opacity:.3; pointer-events:none;
                     transition:opacity var(--dur-2) var(--ease); }
  /* The posting is on the employer's site — there is no page here for a job
     nobody has imported, and a link that leaves ought to look like one. */
  .jl-ext { flex:none; display:inline-grid; place-items:center; width:16px; height:16px;
            color:var(--text-3); }
  .jl-ext svg { width:12px; height:12px; }
  /* Scored from the title alone. The scan reads a description only for
     listings that clear its first bar and only within a budget, so a guess and
     a reading are printed identically unless one of them says so. */
  .jl-match.is-shallow { border-bottom:1.5px dotted currentColor; padding-bottom:1px; }
  .stg-empty-ic { width:44px; height:44px; margin:0 auto var(--space-4); border-radius:50%;
                  display:grid; place-items:center; background:var(--sunk,var(--canvas));
                  color:var(--text-3); }
  .stg-empty-ic svg { width:20px; height:20px; }

  /* The row's two actions, one height and one centre line. `.jl-rowacts` lets
     its children stretch, and `.jl-icon` is a fixed 30 against a `.btn` at the
     app's 38 — so Import sat tall and Dismiss sat small and high beside it.
     Both meet `--ctl-h` here, which is the height every other control in the
     product meets. */
  .stg-row .jl-rowacts { align-items:center; }
  .stg-row .jl-rowacts .jl-icon { width:var(--ctl-h); height:var(--ctl-h); }
  /* Dismiss is destructive-ish — the find leaves the inbox and does not come
     back on its own — so it wears the danger tint rather than reading as a
     second neutral button beside the one you usually want. */
  /* Dismiss is destructive-ish — the find leaves the inbox and does not come
     back on its own — so it wears the danger tint rather than reading as a
     second neutral button beside the one you usually want. Both the row's and
     the toolbar's, at the height every other control meets. */
  /* Every control in a toolbar that takes something away wears the same
     tint, on both surfaces: dismiss a find, skip a job, delete one. They sit
     among actions that add or improve, and reading as one more neutral icon
     is how a row gets deleted by a hand aiming at the one beside it. */
  .stg-row .jl-rowacts [data-one="dismiss"],
  .jl-ctx [data-act="dismiss"],
  .jl-ctx #jl-skip,
  .jl-ctx [formaction$="bulk-delete"] { background:var(--danger-bg); color:var(--danger); }
  .stg-row .jl-rowacts [data-one="dismiss"]:hover,
  .jl-ctx [data-act="dismiss"]:hover,
  .jl-ctx #jl-skip:hover,
  .jl-ctx [formaction$="bulk-delete"]:hover { background:var(--danger); color:var(--on-accent); }
  .jl-ctx [data-act="dismiss"] { width:var(--ctl-h); height:var(--ctl-h); }
  @media (max-width:900px) {
    .jl-colhead.stg-cols, .jl-row.stg-row { grid-template-columns:30px 46px minmax(0,1fr) 84px; }
    .stg-cols .c-co, .jl-row.stg-row > .c-co { display:none; }
  }

  /* ── stage groups ── */
  .jl-tabs { display:flex; padding-inline:var(--space-3); border-bottom:1px solid var(--border-subtle);
             overflow-x:auto; scrollbar-width:none; }
  .jl-tabs::-webkit-scrollbar { display:none; }
  .jl-tab { position:relative; display:inline-flex; align-items:center; gap:var(--space-2);
            padding:var(--space-3) var(--space-4); border:0; background:none; cursor:pointer;
            font:500 var(--text-base) var(--font-ui); color:var(--text-2); white-space:nowrap;
            text-decoration:none; transition:color var(--dur-1) var(--ease); }
  .jl-tab::after { content:""; position:absolute; inset-inline:var(--space-3); bottom:-1px; height:2px;
                   background:var(--accent); border-radius:2px 2px 0 0;
                   transform:scaleX(0); transition:transform var(--dur-2) var(--ease); }
  .jl-tab:hover { color:var(--text-1); text-decoration:none; }
  .jl-tab.is-active { color:var(--accent-ink); font-weight:600; }
  .jl-tab.is-active::after { transform:scaleX(1); }
  .jl-tab-n { font:400 var(--text-xs) var(--font-mono); color:var(--text-3);
              font-variant-numeric:tabular-nums; padding:1px 6px;
              background:var(--sunk,var(--canvas)); border-radius:var(--radius-pill); }
  .jl-tab.is-active .jl-tab-n { background:var(--accent-soft); color:var(--accent-ink); }
  .jl-tab-n.alert { background:var(--danger-bg); color:var(--danger); }

  /* "Waiting on you" is a different axis from the stage groups — it is a filter,
     not a stage — so it sits at the far end behind a divider, in amber. */
  .jl-tabs-end { margin-inline-start:auto; display:flex; align-items:center; gap:var(--space-2);
                 padding-inline-end:var(--space-2); }
  .jl-owed-chip { display:inline-flex; align-items:center; gap:var(--space-2);
                  padding:var(--space-1) var(--space-3); margin-block:var(--space-2);
                  border:1px solid var(--amber-soft); border-radius:var(--radius-pill);
                  background:var(--amber-soft); color:var(--amber-ink);
                  font:500 var(--text-sm) var(--font-ui); white-space:nowrap; text-decoration:none;
                  transition:border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease); }
  .jl-owed-chip:hover { border-color:var(--amber); text-decoration:none; }
  .jl-owed-chip.is-active { border-color:var(--amber); background:transparent; }
  .jl-owed-chip b { font-weight:700; font-variant-numeric:tabular-nums; }
  .jl-owed-chip svg { width:13px; height:13px; }

  /* ── free-plan job quota ── */
  .jl-quota { position:relative; display:inline-grid; place-items:center;
              width:30px; height:30px; flex:none; margin-inline-start:var(--space-2);
              text-decoration:none; color:var(--text-2); }
  .jl-quota[hidden] { display:none; }
  .jl-quota svg { position:absolute; inset:0; width:100%; height:100%; transform:rotate(-90deg); }
  .jl-quota circle { fill:none; stroke-width:2.5; }
  .jl-quota .track { stroke:var(--track); }
  .jl-quota .fill { stroke:var(--accent); stroke-linecap:round;
                    transition:stroke-dashoffset var(--dur-2) var(--ease), stroke var(--dur-2) var(--ease); }
  .jl-quota.low .fill { stroke:var(--amber); }
  .jl-quota.out .fill { stroke:var(--danger); }
  .jl-quota-n { font:600 var(--text-sm) var(--font-ui); font-variant-numeric:tabular-nums;
                color:var(--text-1); line-height:1; }
  .jl-quota.out .jl-quota-n { color:var(--danger); }
  .jl-quota:hover { text-decoration:none; }

  /* ── grid shared by the column eyebrow and every row ── */
  .jl-colhead, .jl-row { grid-template-columns:30px 30px 52px 176px minmax(0,1fr) 132px 84px; }
  .jl-colhead { display:grid; align-items:center; gap:0 var(--space-3);
                padding:var(--space-3) var(--space-4) var(--space-2);
                border-bottom:1px solid var(--border-subtle); }
  .jl-colhead span { font:400 var(--text-xs) var(--font-mono); letter-spacing:.12em;
                     text-transform:uppercase; color:var(--text-3); }
  .jl-colhead .end { text-align:end; }
  .jl-colhead a { color:inherit; text-decoration:none; }
  .jl-colhead a:hover { color:var(--text-1); }

  /* ── rows ── */
  .jl-rows { display:flex; flex-direction:column; }
  /* the whole row opens the job — the controls inside it opt out, see jobs.html */
  .jl-row { display:grid; align-items:center; gap:0 var(--space-3); min-height:60px;
            padding:var(--space-3) var(--space-4); border-bottom:1px solid var(--border-subtle);
            background:var(--surface); position:relative; cursor:pointer;
            transition:background var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease); }
  .jl-row input[type="checkbox"], .jl-row .jl-star { cursor:pointer; }
  .jl-row:last-child { border-bottom:0; }
  .jl-row::before { content:""; position:absolute; inset-block:0; inset-inline-start:0; width:2px;
                    background:var(--amber); opacity:0; transition:opacity var(--dur-1) var(--ease); }
  .jl-row.is-owed::before { opacity:1; }
  .jl-row.is-owed { background:var(--surface-raised); }
  .jl-row:hover { background:var(--surface-raised); box-shadow:var(--lift-2,var(--shadow-float)); z-index:3; }
  .jl-row.is-sel, .jl-row.is-sel:hover { background:var(--accent-soft);
                                          box-shadow:inset 0 0 0 1px var(--accent); z-index:4; }
  /* A skipped row fades rather than vanishing — it comes back on Undo. */
  .jl-row.is-skipped { opacity:.35; pointer-events:none; transition:opacity var(--dur-2) var(--ease); }
  .jl-cell { min-width:0; display:flex; align-items:center; }
  .jl-cell.end { justify-content:flex-end; }
  .jl-row input[type="checkbox"] { accent-color:var(--accent); width:16px; height:16px; cursor:pointer; margin:0; }

  .jl-star { display:flex; padding:var(--space-1); border:0; background:none; cursor:pointer;
             color:var(--text-3); border-radius:50%; }
  .jl-star svg { width:17px; height:17px; transition:transform var(--dur-1) var(--ease); }
  .jl-star:hover { color:var(--amber); }
  .jl-star:hover svg { transform:scale(1.12); }
  .jl-star.on { color:var(--amber); }
  .jl-star.on svg { fill:var(--amber); }

  /* the match score is the most-read thing in a row, so it gets the good face */
  /* the same size as .pb-match on a board card */
  .jl-match { font:700 17px/1 var(--font-display); letter-spacing:-.02em;
              font-variant-numeric:tabular-nums lining-nums; }
  .jl-match sup { font-size:10px; font-weight:400; opacity:.6; margin-inline-start:1px; }
  .jl-match.is-high { color:var(--score-high); }
  .jl-match.is-mid { color:var(--score-mid); }
  .jl-match.is-low { color:var(--text-3); }
  .jl-match.is-none { font:400 15px var(--font-ui); color:var(--text-3); }

  .jl-co { display:flex; align-items:center; gap:var(--space-3); min-width:0; }
  .jl-mark { width:24px; height:24px; border-radius:var(--radius-ctl); flex:none; display:grid;
             place-items:center; color:#fff; font:600 10px var(--font-ui); letter-spacing:.02em; }
  .jl-co-name { font-size:var(--text-base); color:var(--text-2); overflow:hidden;
                text-overflow:ellipsis; white-space:nowrap; text-decoration:none; }
  .jl-co-name:hover { color:var(--accent); }
  .jl-row.is-owed .jl-co-name { color:var(--text-1); font-weight:600; }

  .jl-subject { display:flex; flex-direction:column; gap:5px; min-width:0; justify-content:center; }
  .jl-sline { display:flex; align-items:baseline; gap:var(--space-2); min-width:0; }
  /* Shrinks and ellipses like Gmail's subject. flex:0 1 auto so it gives way
     only after the snippet beside it has, and min-width:0 so a flex item is
     actually allowed to shrink below its content. */
  .jl-title { font-size:var(--text-base); color:var(--text-1); white-space:nowrap;
              letter-spacing:-.005em; text-decoration:none;
              flex:0 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; }
  .jl-title:hover { color:var(--accent); }
  .jl-row.is-owed .jl-title { font-weight:650; }
  .jl-snippet { color:var(--text-3); font-size:var(--text-base); min-width:0; flex:1 1 0;
                overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .jl-tag { flex:none; font:400 var(--text-xs) var(--font-mono); letter-spacing:.06em;
            text-transform:uppercase; padding:2px 7px; border-radius:var(--radius-pill);
            background:var(--sunk,var(--canvas)); color:var(--text-2); }
  .jl-tag.warn { background:var(--warn-bg); color:var(--warn); }
  .jl-tag.amber { background:var(--amber-soft); color:var(--amber-ink); }
  .jl-tag.ok { background:var(--ok-bg); color:var(--ok); }
  .jl-tag.danger { background:var(--danger-bg); color:var(--danger); }
  /* ── the Copilot's fingerprints on a row (ADR-0013) ──
     A mark and a state, not a tab: the tab rail is a partition of stage, and
     how an application was made cuts across it. */
  .jl-copilot { flex:none; display:inline-grid; place-items:center;
                width:18px; height:18px; border-radius:50%;
                color:var(--accent-ink); background:var(--accent-soft);
                text-decoration:none; }
  .jl-copilot svg { width:11px; height:11px; }
  .jl-copilot:hover { background:var(--accent); color:var(--on-accent); }
  /* Prepared and not sent is the moment the job waits on you, so it is a
     link to the one move left rather than a label about a state. */
  .jl-prepared { text-decoration:none; }
  .jl-prepared:hover { background:var(--amber); color:var(--surface); }

  /* ── "did it go through?" ──
     Amber, because it is the same owed state the row wears, and a strip
     rather than a modal: it is asked once and it can wait. */
  .jl-ask { display:flex; align-items:center; justify-content:space-between;
            gap:var(--space-4); flex-wrap:wrap; margin-bottom:var(--space-4);
            padding:var(--space-4) var(--space-5); border-radius:var(--radius-card);
            border:1px solid color-mix(in srgb, var(--amber) 40%, transparent);
            background:var(--amber-soft); color:var(--amber-ink); }
  .jl-ask-copy { display:flex; flex-direction:column; gap:2px; min-width:0; }
  .jl-ask-copy b { font-weight:600; }
  .jl-ask-acts { display:flex; align-items:center; gap:var(--space-2); flex-wrap:wrap; }
  /* flex:none — as a shrinkable item it collapsed until its own placeholder
     was clipped, which is a poor advertisement for a field you want filled. */
  .jl-ask-acts .input { flex:none; width:26ch; max-width:100%; }
  .jl-ask .btn { background:var(--surface);
                 border-color:color-mix(in srgb, var(--amber) 45%, transparent);
                 color:var(--amber-ink); }
  .jl-ask .btn-primary { background:var(--amber-ink); border-color:var(--amber-ink);
                         color:var(--surface); }
  .jl-ask .btn-primary:hover { background:var(--amber); border-color:var(--amber); }

  /* artefact chips — what Orbit built for you, in Gmail's attachment slot */
  .jl-chips { display:flex; gap:var(--space-2); flex-wrap:wrap; }
  .jl-chip { display:inline-flex; align-items:center; gap:6px; height:24px;
             padding-inline:var(--space-2) var(--space-3); border:1px solid var(--border);
             border-radius:var(--radius-ctl); background:var(--surface);
             font-size:var(--text-sm); color:var(--text-2); max-width:200px;
             text-decoration:none; cursor:pointer;
             transition:border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
  .jl-chip:hover { border-color:var(--accent); color:var(--accent-ink); text-decoration:none; }
  .jl-chip svg { width:12px; height:12px; flex:none; }
  .jl-chip span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .jl-chip.resume svg { color:var(--accent); }
  .jl-chip.letter svg { color:var(--atlas-role); }
  .jl-chip.proof svg { color:var(--ok); }

  /* ── the ascent rail ── */
  .jl-railwrap { position:relative; display:flex; align-items:center; width:100%; }
  .jl-rail { display:flex; align-items:center; width:100%; padding-inline-end:var(--space-2);
             transition:opacity var(--dur-1) var(--ease); }
  .jl-node { position:relative; display:flex; align-items:center; flex:1; }
  .jl-node:last-child { flex:none; }
  .jl-pip { width:7px; height:7px; border-radius:50%; flex:none; z-index:1;
            background:var(--canvas); border:1px solid var(--track); }
  .jl-link { flex:1; height:1px; background:var(--track); }
  .jl-node.done .jl-pip { background:var(--accent); border-color:var(--accent); }
  .jl-node.done .jl-link { background:var(--accent); }
  .jl-node.done.milestone .jl-pip { background:var(--amber); border-color:var(--amber); }
  .jl-node.here .jl-pip { width:11px; height:11px; background:var(--accent); border-color:var(--accent);
                          box-shadow:0 0 0 3px var(--accent-soft); }
  .jl-node.here.milestone .jl-pip { background:var(--amber); border-color:var(--amber);
                                    box-shadow:0 0 0 3px var(--amber-soft); }
  /* The rung before the pipeline starts — watching a company you have not
     applied to. Neutral, not indigo: indigo is ground covered, and watching
     is not ground. Added for the Companies rail; .jl-node had done, here,
     milestone and stalled but nothing for "not started". */
  .jl-node.watch .jl-pip { background:var(--canvas); border-color:var(--gap-neutral);
                           border-style:dashed; }
  .jl-node.watch.here .jl-pip { background:var(--gap-neutral); border-color:var(--gap-neutral);
                                border-style:solid; box-shadow:0 0 0 3px var(--border-subtle); }
  .jl-node.stalled .jl-pip { background:var(--canvas); border-color:var(--text-3); border-style:dashed; }
  .jl-node.stalled.here .jl-pip { background:var(--text-3); border-color:var(--text-3);
                                  box-shadow:0 0 0 3px var(--border-subtle); }
  .jl-railname { position:absolute; inset-inline-start:0; top:50%; transform:translateY(-50%);
                 font:400 var(--text-xs) var(--font-mono); letter-spacing:.1em; text-transform:uppercase;
                 color:var(--text-2); opacity:0; pointer-events:none; white-space:nowrap;
                 transition:opacity var(--dur-1) var(--ease); }
  .jl-row:hover .jl-rail,
  .jl-row:focus-within .jl-rail { opacity:0; }
  .jl-row:hover .jl-railname,
  .jl-row:focus-within .jl-railname { opacity:1; }
  /* The companies list restates the same rail in its own rows — the swap
     must follow it there too, or the stage name never appears at all. */
  .co-row:hover .jl-rail,
  .co-row:focus-within .jl-rail { opacity:0; }
  .co-row:hover .jl-railname,
  .co-row:focus-within .jl-railname { opacity:1; }

  /* ── right edge: pressure, not provenance ── */
  .jl-when { font-size:var(--text-sm); color:var(--text-3); font-variant-numeric:tabular-nums;
             white-space:nowrap; }
  .jl-when.soon { color:var(--warn); font-weight:600; }
  .jl-when.idle::before { content:"\25F7"; margin-inline-end:4px; }
  .jl-row.is-owed .jl-when { color:var(--text-2); }
  /* Hover-revealed, but never `display:none`: an element that is not rendered
     cannot take focus, so :focus-within can never fire on it and Tailor, Skip
     and Details were unreachable by keyboard entirely. Transparent and
     click-through instead — keyboard focus still lands, and landing is what
     reveals it. */
  .jl-rowacts { display:flex; opacity:0; pointer-events:none;
                position:absolute; inset-inline-end:var(--space-3);
                top:50%; transform:translateY(-50%); z-index:6; gap:2px;
                padding-inline:var(--space-4) var(--space-1);
                background-color:var(--surface-raised); border-radius:var(--radius-pill);
                transition:opacity var(--dur-1) var(--ease); }
  .jl-rowacts .jl-icon { width:30px; height:30px; }
  .jl-rowacts .jl-icon svg { width:15px; height:15px; }
  .jl-row:hover .jl-rowacts,
  .jl-row:focus-within .jl-rowacts { opacity:1; pointer-events:auto; }
  /* selected rows carry a translucent tint, so lay it over an opaque base or
     the timing underneath shows through */
  .jl-row.is-sel:hover .jl-rowacts { background-image:linear-gradient(var(--accent-soft),var(--accent-soft)); }

  /* ── compact density ── */
  .jl-rows.compact .jl-row { min-height:42px; padding-block:0; }
  .jl-rows.compact .jl-chips { display:none; }
  .jl-rows.compact .jl-subject { flex-direction:row; align-items:center; gap:var(--space-2); }
  .jl-rows.compact .jl-clip { display:inline-flex; }
  .jl-rows.compact .jl-match { font-size:15px; }
  .jl-clip { display:none; align-items:center; gap:3px; color:var(--text-3);
             font-size:var(--text-sm); flex:none; font-variant-numeric:tabular-nums; }
  .jl-clip svg { width:12px; height:12px; }

  /* ── menus ── */
  .jl-anchor { position:relative; display:inline-flex; }
  .jl-menu { position:absolute; z-index:50; top:calc(100% + 5px); inset-inline-start:0; min-width:232px;
             background:var(--surface-raised); border:1px solid var(--border-subtle);
             border-radius:var(--radius-ctl); box-shadow:var(--lift-3,var(--shadow-float));
             padding-block:var(--space-2); display:none; text-align:start; }
  .jl-menu.end { inset-inline-start:auto; inset-inline-end:0; }
  .jl-menu.open { display:block; animation:jl-fall var(--dur-1) var(--ease); }
  .jl-menu button, .jl-menu a { display:flex; align-items:center; gap:var(--space-3); width:100%;
                                padding:8px var(--space-4); border:0; background:none; cursor:pointer;
                                font:400 var(--text-base) var(--font-ui); color:var(--text-1);
                                text-align:start; text-decoration:none; }
  .jl-menu button:hover, .jl-menu a:hover { background:var(--canvas); text-decoration:none; }
  .jl-menu svg { width:15px; height:15px; color:var(--text-2); flex:none; }
  .jl-menu .danger, .jl-menu .danger svg { color:var(--danger); }
  .jl-mdiv { height:1px; background:var(--border-subtle); margin-block:var(--space-2); }
  .jl-mhead { padding:var(--space-1) var(--space-4) var(--space-2);
              font:400 var(--text-xs) var(--font-mono); letter-spacing:.12em;
              text-transform:uppercase; color:var(--text-3); }
  .jl-menu .trail { margin-inline-start:auto; color:var(--text-3); font-size:var(--text-sm); }

  .jl-foot { display:flex; align-items:center; justify-content:space-between; gap:var(--space-4);
             padding:var(--space-4) var(--space-5); border-top:1px solid var(--border-subtle);
             font-size:var(--text-sm); color:var(--text-3); flex-wrap:wrap; }
  .jl-empty { padding:var(--space-12) var(--space-5); text-align:center; }
  .jl-empty h2 { font:400 var(--text-xl) var(--font-display); margin:0 0 var(--space-2); color:var(--text-1); }
  .jl-empty p { margin:0 auto var(--space-5); color:var(--text-2); max-width:44ch; }

  /* ── add-job dropdown (kept from the previous list; mirrors .pipe-add) ── */
  .jl-add { position:relative; }
  .jl-add-menu { display:none; position:absolute; inset-inline-end:0; top:calc(100% + var(--space-2));
                 background:var(--surface-raised); border:1px solid var(--border-subtle);
                 border-radius:var(--radius-card); box-shadow:var(--lift-3,var(--shadow-float));
                 padding:var(--space-4); width:280px; z-index:60; text-align:start; }
  .jl-add.open .jl-add-menu { display:block; }
  .jl-add-menu h3 { margin:0 0 var(--space-3); font-size:var(--text-lg); }
  .jl-add-menu form { display:flex; flex-direction:column; gap:var(--space-2); }

  /* ── responsive ── */
  @media (max-width:1140px) {
    .jl-colhead, .jl-row { grid-template-columns:30px 30px 48px 148px minmax(0,1fr) 104px 80px; }
  }
  /* Below this the rail is the first thing to go: the role needs the width
     more, and the stage is still one hover away on the row. */
  @media (max-width:1024px) {
    .jl-colhead, .jl-row { grid-template-columns:30px 30px 48px 132px minmax(0,1fr) 80px; }
    .jl-colhead .c-rail, .jl-row > .c-rail { display:none; }
  }
  @media (max-width:860px) {
    .jl-colhead, .jl-row { grid-template-columns:30px 30px minmax(0,1fr) 84px; }
    .jl-colhead .c-match, .jl-colhead .c-co,
    .jl-row > .c-match, .jl-row > .c-co { display:none; }
    .jl-row { min-height:auto; }
    /* the top bar runs out of room long before the table does */
    .jl-search { inline-size:100%; }
    /* the page header's own mobile layout lives in shell.css */
    .jl-tabs-end { margin-inline-start:0; }
    .jl-sline { flex-wrap:wrap; }
    .jl-title, .jl-snippet { white-space:normal; overflow:visible; }
    .jl-fgrid { grid-template-columns:1fr; gap:var(--space-4); }
    .jl-fgrid > label { text-align:start; margin-bottom:-10px; }
    .jl-fchecks { grid-column:1; }
    .jl-sheet { padding:var(--space-5); }
    .jl-sheet-foot { flex-direction:column; align-items:stretch; }
    .jl-row:hover .jl-rail, .jl-row:focus-within .jl-rail { opacity:1; }
    /* The toolbar scrolls sideways rather than pushing the page. On the list
       the owed chip lives in .jl-tabs, which already scrolls; on the board it
       is in this bar, which did not — so it hung 20px off the edge and the
       whole page could be dragged. */
    .jl-bar { overflow-x:auto; scrollbar-width:none; }
    .jl-bar::-webkit-scrollbar { display:none; }
    .jl-row:hover .jl-when { display:block; }
  }

  /* ============================== Board (pipeline.html) ============================== */
  /* All Jobs' bar and tabs, then the board itself. The ascent rail appears here
     at its third scale: across the lane heads, because the lanes *are* the
     journey. Arrangement only — the checkbox column stays in the list. */
  .pb-sortlabel { font:400 var(--text-xs) var(--font-mono); letter-spacing:.12em;
                  text-transform:uppercase; color:var(--text-3); margin-inline-end:var(--space-2); }
  /* Pill and chevron come from the element rule; this only sets the size and
     the raised ground the board's bar wants. background-COLOR, not the
     shorthand — the shorthand would take the chevron with it. */
  .pb-sort { height:30px; border:1px solid var(--border);
             background-color:var(--surface-raised); color:var(--text-1);
             font:400 var(--text-sm) var(--font-ui); cursor:pointer; }

  .pb-wrap { padding:var(--space-5) var(--space-4) var(--space-6); overflow-x:auto; }
  .pb-board { display:grid; grid-template-columns:repeat(var(--lanes,3), minmax(240px,1fr));
              gap:var(--space-4); align-items:start; min-width:min-content; }

  .pb-lanehead { position:relative; padding-bottom:var(--space-4); }
  .pb-lanetitle { display:flex; align-items:baseline; gap:var(--space-2); margin-bottom:var(--space-3); }
  .pb-lanetitle h2 { margin:0; font:500 var(--text-lg)/1 var(--font-display);
                     letter-spacing:-.015em; color:var(--text-1); }
  .pb-lanen { font:400 var(--text-xs) var(--font-mono); color:var(--text-3);
              font-variant-numeric:tabular-nums; }
  .pb-lanerail { position:absolute; inset-inline:0; bottom:6px; height:12px;
                 display:flex; align-items:center; }
  .pb-line { flex:1; height:1px; background:var(--track); }
  .pb-pip { width:9px; height:9px; border-radius:50%; flex:none;
            background:var(--canvas); border:1px solid var(--track); }
  .pb-lanehead.reached .pb-pip { background:var(--accent); border-color:var(--accent); }
  .pb-lanehead.reached .pb-line { background:var(--accent); }
  .pb-lanehead.reached.milestone .pb-pip { background:var(--amber); border-color:var(--amber); }
  .pb-lanehead.here .pb-pip { width:12px; height:12px; box-shadow:0 0 0 3px var(--accent-soft); }
  .pb-lanehead.here.milestone .pb-pip { box-shadow:0 0 0 3px var(--amber-soft); }

  .pb-lane { display:flex; flex-direction:column; gap:var(--space-3); min-height:120px;
             padding:var(--space-2); border-radius:var(--radius-card);
             border:1px dashed transparent;
             transition:background var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease); }
  .pb-lane.is-over { background:var(--accent-soft); border-color:var(--accent); }

  .pb-card { position:relative; background:var(--surface-raised); border:1px solid var(--border-subtle);
             border-radius:var(--radius-ctl); padding:var(--space-3); cursor:grab;
             box-shadow:var(--lift-1,none);
             transition:box-shadow var(--dur-1) var(--ease), transform var(--dur-1) var(--ease); }
  .pb-card:hover { box-shadow:var(--lift-2,var(--shadow-float)); }
  .pb-card:active { cursor:grabbing; }
  .pb-card.is-dragging { opacity:.4; }
  .pb-card::before { content:""; position:absolute; inset-block:0; inset-inline-start:0; width:2px;
                     border-radius:2px 0 0 2px; background:var(--amber); opacity:0; }
  .pb-card.is-owed::before { opacity:1; }
  .pb-card-top { display:flex; align-items:flex-start; gap:var(--space-2); margin-bottom:var(--space-2); }
  .pb-mark { width:22px; height:22px; border-radius:5px; flex:none; display:grid; place-items:center;
             color:#fff; font:600 9px var(--font-ui); }
  .pb-card-title { font:500 var(--text-base)/1.35 var(--font-ui); color:var(--text-1);
                   flex:1; min-width:0; letter-spacing:-.005em; }
  .pb-card.is-owed .pb-card-title { font-weight:650; }
  /* same treatment as .jl-match in the list, a size down for card density */
  .pb-match { font:700 17px/1 var(--font-display); letter-spacing:-.02em; flex:none;
              font-variant-numeric:tabular-nums lining-nums; }
  .pb-match sup { font-size:9px; font-weight:400; opacity:.6; }
  .pb-match.is-high { color:var(--score-high); }
  .pb-match.is-mid { color:var(--score-mid); }
  .pb-match.is-low { color:var(--text-3); }
  .pb-card-co { font-size:var(--text-sm); color:var(--text-2); margin-bottom:var(--space-2);
                overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

  .pb-card-where { display:flex; align-items:center; gap:var(--space-2); flex-wrap:wrap;
                   margin-bottom:var(--space-2); }
  .pb-where { display:inline-flex; align-items:center; gap:4px; min-width:0;
              font-size:var(--text-sm); color:var(--text-3); }
  .pb-where svg { width:12px; height:12px; flex:none; }
  .pb-mode { font:400 var(--text-xs) var(--font-mono); letter-spacing:.06em; text-transform:uppercase;
             padding:1px 6px; border-radius:var(--radius-pill); flex:none;
             background:var(--canvas); color:var(--text-2); border:1px solid var(--border-subtle); }
  .pb-mode.is-remote { background:var(--ok-bg); color:var(--ok); border-color:transparent; }
  .pb-mode.is-hybrid { background:var(--accent-soft); color:var(--accent-ink); border-color:transparent; }

  .pb-card-foot { display:flex; align-items:center; justify-content:space-between; gap:var(--space-2); }
  .pb-card-end { display:flex; align-items:center; gap:var(--space-1); flex:none; }
  /* Same control as the list's, one size down for a card. */
  .pb-star { display:flex; padding:2px; border:0; background:none; cursor:pointer;
             color:var(--text-3); border-radius:50%; }
  .pb-star svg { width:15px; height:15px; transition:transform var(--dur-1) var(--ease); }
  .pb-star:hover { color:var(--amber); }
  .pb-star:hover svg { transform:scale(1.12); }
  .pb-star.on { color:var(--amber); }
  .pb-star.on svg { fill:var(--amber); }
  .pb-chips { display:flex; gap:4px; }
  .pb-chip { display:inline-grid; place-items:center; width:20px; height:20px;
             border-radius:4px; background:var(--canvas); color:var(--text-2); }
  .pb-chip svg { width:11px; height:11px; }
  .pb-chip.resume { color:var(--accent); }
  .pb-chip.letter { color:var(--atlas-role); }
  .pb-chip.proof { color:var(--ok); }
  .pb-when { font:400 var(--text-xs) var(--font-mono); color:var(--text-3);
             font-variant-numeric:tabular-nums; white-space:nowrap; }
  .pb-when.soon { color:var(--warn); font-weight:600; }
  .pb-when.idle::before { content:"\25F7"; margin-inline-end:3px; }

  .pb-empty { padding:var(--space-5) var(--space-3); text-align:center; color:var(--text-3);
              font-size:var(--text-sm); border:1px dashed var(--border); border-radius:var(--radius-ctl); }

  .pb-board.compact .pb-card-co,
  .pb-board.compact .pb-card-where { display:none; }
  .pb-board.compact .pb-card { padding:var(--space-2) var(--space-3); }

  /* ── the two prompts ── */
  .pb-prompt { position:fixed; inset-inline:0; bottom:var(--space-6); margin-inline:auto;
               width:max-content; max-width:min(620px,92vw); z-index:90;
               background:var(--surface-raised); border:1px solid var(--border-subtle);
               border-radius:var(--radius-card); box-shadow:var(--lift-3,var(--shadow-float));
               padding:var(--space-4) var(--space-5); }
  .pb-prompt[hidden] { display:none; }
  .pb-prompt-head { display:flex; align-items:baseline; gap:var(--space-2); margin-bottom:var(--space-3); }
  .pb-prompt-head b { font-weight:600; color:var(--text-1); }
  .pb-prompt-head span { color:var(--text-3); font-size:var(--text-sm); }
  .pb-prompt-row { display:flex; align-items:center; gap:var(--space-2); flex-wrap:wrap; }
  .pb-prompt-q { color:var(--text-2); font-size:var(--text-sm); }
  .pb-opt { padding:5px var(--space-3); border:1px solid var(--border); border-radius:var(--radius-pill);
            background:var(--surface); color:var(--text-2);
            font:400 var(--text-sm) var(--font-ui); cursor:pointer;
            transition:border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
  .pb-opt:hover { border-color:var(--accent); color:var(--accent-ink); }
  .pb-prompt input[type="date"] { height:30px; border:1px solid var(--border);
                                  border-radius:var(--radius-ctl); background:var(--surface);
                                  color:var(--text-1); font:400 var(--text-sm) var(--font-ui);
                                  padding-inline:var(--space-2); }
  .pb-skip { margin-inline-start:auto; background:none; border:0; color:var(--text-3);
             font:400 var(--text-sm) var(--font-ui); cursor:pointer; text-decoration:underline; }

  .pb-toast { position:fixed; inset-inline:0; bottom:var(--space-6); margin-inline:auto;
              width:max-content; max-width:90vw; display:flex; align-items:center; gap:var(--space-4);
              background:var(--text-1); color:var(--canvas);
              padding:var(--space-3) var(--space-4) var(--space-3) var(--space-5);
              border-radius:var(--radius-pill); font-size:var(--text-base);
              box-shadow:var(--lift-3,var(--shadow-float)); opacity:0; transform:translateY(8px);
              pointer-events:none; z-index:95;
              transition:opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease); }
  .pb-toast.show { opacity:1; transform:translateY(0); pointer-events:auto; }
  .pb-toast button { background:none; border:0; color:var(--amber);
                     font:600 var(--text-base) var(--font-ui); cursor:pointer; padding:0; }

  @media (max-width:860px) {
    .pb-board { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; }
    .pb-board > .pb-col { min-width:78vw; scroll-snap-align:start; }
    .pb-prompt-row { gap:var(--space-2) var(--space-3); }
    .pb-skip { margin-inline-start:0; }
  }

  /* ══════════════════ Roles (roles / role_detail / role_suggestions) ══════════════════
     Rebuilt 2026-09-11 over ~240 lines of `.rl-*`, `.rd-*` and `.rs-*` — a
     five-column table, a bespoke hero copied from company_detail, a
     hand-built modal overlay, and a second set of result cards. All three
     pages are one row shape now, because all three answer one question about
     a role: is it finding work.

     The spine is the job list's rail restated at role scale — indigo for a
     role covering ground, neutral for one that is not. */

  .rl-hero { background:var(--surface); border:1px solid var(--border-subtle);
             border-radius:var(--radius-card); box-shadow:var(--lift-1);
             padding:var(--space-6); margin-block-end:var(--space-8); }
  .rl-h { font:400 26px/1.15 var(--font-display); letter-spacing:-.015em;
          margin:var(--space-2) 0 0; text-wrap:balance; }
  .rl-lede { margin:var(--space-3) 0 0; color:var(--text-2); max-width:60ch; }
  .rl-lede em { font-style:normal; font-weight:500; color:var(--ok); }
  .rl-lede b { font-weight:500; color:var(--amber-ink); }
  .rl-thin { color:var(--text-3); }
  .rl-chips { display:flex; gap:var(--space-2); flex-wrap:wrap;
              margin-block-start:var(--space-4); }
  .rl-acts { display:flex; align-items:center; gap:var(--space-2); }
  .rl-acts form { margin:0; }

  /* The add field in the top bar, the shape Companies and All Jobs use. It is
     a form rather than a search box with JavaScript behind it: typing a name
     and pressing enter is how every role on this page was made. */
  /* The same search bar as .jl-search (jobs, pipeline, companies, contacts):
     one pill, one text size, one magnifier, one border, one hover and focus.
     Roles keeps its own class because it posts and adds rather than filtering
     a list, not because it should look different. */
  .rl-omni { display:flex; align-items:center; gap:var(--space-2);
             inline-size:min(560px, 46vw); height:var(--ctl-h); padding:0 var(--space-4);
             border-radius:var(--radius-pill); background:var(--sunk);
             border:1px solid transparent;
             transition:background var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease),
                        border-color var(--dur-2) var(--ease); }
  .rl-omni svg { width:19px; height:19px; flex:none; color:var(--text-3); }
  .rl-omni input { flex:1; min-width:0; border:0; background:none; outline:none;
                   font:400 var(--text-lg) var(--font-ui); color:var(--text-1); letter-spacing:-.005em; }
  .rl-omni input::placeholder { color:var(--text-3); }
  .rl-omni kbd { font:500 var(--text-2xs) var(--font-mono); color:var(--text-3);
                 border:1px solid var(--border); border-radius:4px; padding:2px 5px; }
  .rl-omni:hover { background:var(--surface); box-shadow:var(--lift-1,var(--shadow-float)); }
  .rl-omni:focus-within { border-color:var(--border-subtle); background:var(--surface-raised);
                          box-shadow:var(--lift-3,var(--shadow-float)); }

  .rl-list { background:var(--surface); border:1px solid var(--border-subtle);
             border-radius:var(--radius-card); box-shadow:var(--lift-1);
             overflow:hidden; margin-block-end:var(--space-8); }
  .rl-row { cursor:pointer; display:grid;
            grid-template-columns:3px minmax(0,1fr) auto auto 36px;
            align-items:center; gap:var(--space-4); padding-inline-end:var(--space-4);
            border-block-end:1px solid var(--border-subtle);
            transition:background var(--dur-1) var(--ease); }
  .rl-row:last-child { border-block-end:0; }
  /* A list whose rows carry no action does not reserve the track for one —
     the jobs matched under a role are read, not managed from there. */
  .rl-list.is-plain .rl-row { grid-template-columns:3px minmax(0,1fr) auto auto; }
  .rl-row:hover { background:var(--sunk); }
  .rl-spine { align-self:stretch; min-height:62px; background:var(--track); }
  .rl-row.is-live .rl-spine { background:var(--accent); }
  .rl-row.is-quiet .rl-spine { background:var(--gap-neutral); }
  /* The ladder (ADR-0026). An Open role's spine is the neutral track — it is
     somewhere you could go today, not ground covered. A Target's is indigo,
     and the nearest one is amber: the one thing on this page waiting on you,
     which is the colour amber carries everywhere else in Orbit. */
  .rl-row.is-open .rl-spine { background:var(--gap-neutral); }
  .rl-row.is-target .rl-spine { background:var(--accent); }
  .rl-row.is-here .rl-spine { background:var(--amber); }
  .rl-row.is-here { background:color-mix(in srgb, var(--amber) 6%, transparent); }
  .rl-horizon { font-family:var(--font-mono); color:var(--text-2); }
  .rl-prog { display:flex; flex-direction:column; align-items:flex-end; gap:4px; }
  .rl-bar { display:block; inline-size:80px; block-size:5px; border-radius:var(--radius-pill);
            background:var(--track); overflow:hidden; }
  .rl-bar i { display:block; block-size:100%; background:var(--accent);
              border-radius:var(--radius-pill); }
  .rl-row.is-here .rl-bar i { background:var(--amber); }
  .rl-prog small { font:500 var(--text-xs) var(--font-mono); color:var(--text-3);
                   font-variant-numeric:tabular-nums; }
  .rl-vision { color:var(--text-2); max-inline-size:56ch; margin-block:var(--space-2) 0; }
  .rl-horizon-form { display:flex; align-items:center; gap:var(--space-2); }
  .rl-horizon-pick .select { block-size:var(--ctl-h); }
  .rl-b { min-width:0; padding-block:var(--space-3); }
  .rl-t { font-weight:500; font-size:var(--text-base); color:var(--text-1);
          text-decoration:none; }
  /* Blue on hover, never an underline — the same answer `.jl-title` gives on
     the jobs list, and the row is the click target anyway. */
  .rl-t:hover { color:var(--accent); text-decoration:none; }
  .rl-row:hover .rl-t { color:var(--accent); }
  .rl-m { display:flex; flex-wrap:wrap; gap:2px var(--space-3);
          margin-block-start:3px; font-size:var(--text-sm); color:var(--text-2); }
  .rl-co { color:var(--text-1); }
  .rl-pay { min-width:88px; text-align:end; font:500 var(--text-sm) var(--font-mono);
            color:var(--text-2); }
  .rl-pay.is-none { font-family:var(--font-ui); font-style:italic; color:var(--text-3); }
  .rl-found { min-width:96px; text-align:end; }
  .rl-n { display:block; line-height:1.2; font:500 var(--text-lg) var(--font-mono);
          color:var(--text-1); }
  .rl-n.is-zero { color:var(--text-3); }
  .rl-found small { font-size:var(--text-xs); color:var(--text-3); }

  .rl-empty { margin-block-end:var(--space-8); }
  .rl-empty-acts { display:flex; gap:var(--space-2); flex-wrap:wrap;
                   justify-content:center; margin-block-start:var(--space-2); }

  /* The allowance, stated before it is spent rather than reported after. */
  /* The field in the top bar, at the jobs search's size — it is the same kind
     of control doing the same kind of work, and at 420px it read as an
     afterthought beside it. */
  /* `.ico-del` — the shared one, the All Jobs toolbar's delete exactly. It
     was `.st-act`, the Story bank's 30px hover-revealed glyph, which is a
     different control at a different size with a different radius. Two
     lists that drop a row should not offer two buttons. */
  .rl-row-act { margin:0; }
  .rl-row-act .ico-del { opacity:0; }
  .rl-row:hover .rl-row-act .ico-del,
  .rl-row-act .ico-del:focus-visible { opacity:1; }
  @media (hover:none) { .rl-row-act .ico-del { opacity:1; } }

  /* What the field will do if you press enter now. */
  .rl-offer { display:flex; align-items:center; gap:var(--space-3); width:100%;
              text-align:start; margin-block-end:var(--space-5);
              padding:var(--space-3) var(--space-4); cursor:pointer;
              border:1px dashed color-mix(in srgb, var(--accent) 45%, transparent);
              border-radius:var(--radius-card); background:var(--accent-soft);
              color:var(--accent-ink); font:400 var(--text-base) var(--font-ui); }
  .rl-offer:hover { background:color-mix(in srgb, var(--accent) 16%, transparent); }
  .rl-offer svg { width:16px; height:16px; flex:none; }
  .rl-offer b { font-weight:600; }
  .rl-nohit { margin:var(--space-5) 0; color:var(--text-3); font-size:var(--text-sm); }

  .rl-budget { display:flex; align-items:center; gap:var(--space-3); flex-wrap:wrap;
               margin-block-end:var(--space-6); }
  .rl-reset { font-size:var(--text-sm); color:var(--text-3); }
  .sg { display:grid; gap:var(--space-3);
        grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); }
  .sg-card { background:var(--surface); border:1px solid var(--border-subtle);
             border-radius:var(--radius-card); box-shadow:var(--lift-1);
             padding:var(--space-4); display:flex; flex-direction:column; }
  .sg-t { font-weight:500; font-size:var(--text-base); }
  /* Pushed to the foot so the buttons land on one line across the row — the
     cards are one comparison and a ragged action row breaks it. */
  .sg-why { margin:6px 0 var(--space-4); font-size:var(--text-sm); color:var(--text-2); }
  .sg-acts { display:flex; align-items:center; gap:var(--space-2);
             margin-block-start:auto; }
  .sg-acts form { margin:0; }
  /* Taken, and still on screen. Adding a role used to post a form and land
     back on /roles, which threw away the other two suggestions — and getting
     them back costs a model call, or a month's wait on the free plan. The
     card stays, dimmed, saying what happened and offering the way back. */
  .sg-card.is-added { background:var(--sunk); border-color:var(--border-subtle);
                      box-shadow:none; }
  .sg-card.is-added .sg-t, .sg-card.is-added .sg-why { opacity:.6; }
  .sg-took { display:inline-flex; align-items:center; gap:6px; font-weight:500;
             font-size:var(--text-sm); color:var(--accent-ink); }
  .sg-took svg { width:15px; height:15px; flex:none; }
  .sg-undo { border:0; background:none; padding:0; cursor:pointer;
             margin-inline-start:auto; font:400 var(--text-sm) var(--font-ui);
             color:var(--text-3); text-decoration:underline;
             text-underline-offset:2px; }
  .sg-undo:hover { color:var(--text-1); }

  @media (max-width:700px) {
    .rl-row { grid-template-columns:3px minmax(0,1fr) auto 36px; row-gap:0; }
    .rl-list.is-plain .rl-row { grid-template-columns:3px minmax(0,1fr) auto; }
    .rl-pay { display:none; }
    .rl-omni { inline-size:auto; flex:1; }
  }


  /* History, folded into the page's own rail. A disclosure, because twelve
     revisions are worth having and are almost never what the reader came for. */
  .atlas-rail-hist summary { cursor:pointer; list-style:none; }
  .atlas-rail-hist summary::-webkit-details-marker { display:none; }
  .atlas-rev-line { display:flex; flex-wrap:wrap; align-items:baseline;
                    gap:var(--space-2); padding-block:6px;
                    border-block-end:1px solid var(--border-subtle);
                    font-size:var(--text-sm); }
  .atlas-rev-line:last-child { border-block-end:0; }
  .atlas-rev-line b { font-family:var(--font-mono); font-weight:600; }

  /* ============================== The spine (_spine.html) ==============================
     What a Target asks for, and what closes what is missing. The two halves of
     the climb on one surface, because they are one question asked twice.

     A capability's status belongs to the candidate and not to the Target
     (ADR-0026), so the pill reads the same on every Target requiring it. */
  .sp-read { display:flex; align-items:center; gap:var(--space-5); flex-wrap:wrap;
             background:var(--surface); border:1px solid var(--border-subtle);
             border-radius:var(--radius-card); box-shadow:var(--lift-1);
             padding:var(--space-5); margin-block-end:var(--space-4); }
  /* The same ring `.bill-dial` and `.jl-quota` draw, at the size a job page
     gives a score. An allowance runs down and a climb runs up, but the object
     a reader has already learnt is the ring, so it is the ring. */
  .sp-arc { position:relative; display:inline-grid; place-items:center;
            inline-size:62px; block-size:62px; flex:none; }
  .sp-arc svg { position:absolute; inset:0; inline-size:100%; block-size:100%;
                transform:rotate(-90deg); }
  .sp-arc circle { fill:none; stroke-width:3; }
  .sp-arc .track { stroke:var(--track); }
  .sp-arc .fill { stroke:var(--accent); stroke-linecap:round; }
  .sp-arc-n { position:relative; font:500 var(--text-xl)/1 var(--font-display);
              font-variant-numeric:tabular-nums; }
  .sp-arc-n small { font-size:var(--text-xs); color:var(--text-3); }
  .sp-read-b { flex:1; min-inline-size:240px; }
  .sp-read-t { margin:0; font-size:var(--text-base); color:var(--text-1); max-inline-size:56ch; }
  .sp-read-s { margin-block-start:var(--space-2); font-size:var(--text-sm);
               color:var(--text-3); max-inline-size:60ch; }
  .sp-read-s:empty { display:none; }

  .sp-list { display:grid; gap:var(--space-3); margin-block-end:var(--space-8); }
  .sp-cap { background:var(--surface); border:1px solid var(--border-subtle);
            border-radius:var(--radius-card); box-shadow:var(--lift-1); overflow:hidden; }
  /* A further Target's rows were dimmed to `opacity:.62` — this app's
     *disabled* treatment — because no Moves opened on them. Both are gone:
     every Target carries its moves now, so there is nothing to dim and no
     second-class row to style. `.sp-nearer` is all that is left, the link to
     the Target Orbit would start on. */
  .sp-nearer { color:var(--accent-ink); font-weight:500;
               text-decoration:underline; text-underline-offset:2px; }
  /* Three fixed tracks, never two and an `auto`: the pill's width changes with
     its word — Strength against Gap — and an auto track hands that difference
     straight to the bar beside it, so six bars start in six places. */
  .sp-cap-head { display:grid; grid-template-columns:minmax(0,1fr) 118px 104px;
                 gap:var(--space-4); align-items:center;
                 padding:var(--space-4) var(--space-5); }
  .sp-cap-b { min-inline-size:0; }
  .sp-cap-n { display:block; font-weight:500; }
  .sp-cap-w { display:block; margin-block-start:2px; font-size:var(--text-sm);
              color:var(--text-3); }
  .sp-cap-w b { font-weight:600; color:var(--text-2); }
  .sp-bar { display:block; block-size:5px; border-radius:var(--radius-pill);
            background:var(--track); overflow:hidden; }
  .sp-bar i { display:block; block-size:100%; border-radius:var(--radius-pill); }
  .sp-cap.is-strength .sp-bar i { background:var(--ok); inline-size:88%; }
  .sp-cap.is-developing .sp-bar i { background:var(--accent); inline-size:52%; }
  .sp-cap.is-gap .sp-bar i { background:var(--amber); inline-size:14%; }
  .sp-pill { justify-self:end; min-inline-size:92px; text-align:center;
             font:500 var(--text-2xs)/1 var(--font-mono); letter-spacing:.07em;
             text-transform:uppercase; padding:6px 8px; border-radius:var(--radius-pill); }
  .sp-cap.is-strength .sp-pill { background:var(--ok-bg); color:var(--ok); }
  .sp-cap.is-developing .sp-pill { background:var(--accent-soft); color:var(--accent-ink); }
  .sp-cap.is-gap .sp-pill { background:var(--amber-soft); color:var(--amber-ink); }

  .sp-ask { display:flex; align-items:center; gap:var(--space-3); flex-wrap:wrap;
            padding:var(--space-3) var(--space-5); background:var(--sunk);
            border-block-start:1px solid var(--border-subtle);
            font-size:var(--text-sm); color:var(--text-3); }
  .sp-ask form { margin-inline-start:auto; }
  .sp-moves { display:grid; gap:1px; background:var(--border-subtle);
              border-block-start:1px solid var(--border-subtle); }
  .sp-mv-foot { margin:var(--space-2) 0 0; padding-inline:var(--space-5);
                font-size:var(--text-sm); color:var(--text-3); }

  /* One Move. The button is what the row is for, so it is centred on the row's
     height rather than pinned to the top of a three-line paragraph, and sits
     in one fixed track so four different labels leave four buttons on one
     edge. */
  .mv-row { display:grid; grid-template-columns:38px minmax(0,1fr) 132px;
            gap:var(--space-5); align-items:center; background:var(--surface);
            padding:var(--space-4) var(--space-5); }
  .mv-ic { inline-size:38px; block-size:38px; border-radius:var(--radius-ctl);
           display:grid; place-items:center; background:var(--sunk); color:var(--text-2); }
  .mv-ic svg { inline-size:20px; block-size:20px; }
  .mv-row.is-first .mv-ic { background:var(--accent-soft); color:var(--accent-ink); }
  .mv-b { min-inline-size:0; }
  .mv-kind { display:block; font:500 var(--text-2xs)/1 var(--font-mono);
             letter-spacing:.12em; text-transform:uppercase; color:var(--text-3);
             margin-block-end:5px; }
  .mv-row.is-first .mv-kind { color:var(--accent-ink); }
  .mv-t { display:block; font-weight:500; margin-block-end:3px; }
  .mv-s { display:block; font-size:var(--text-sm); color:var(--text-3); max-inline-size:62ch; }
  .mv-go { inline-size:100%; padding-block:9px; align-self:center; }
  /* A secondary that still reads as a control: these are the page's main
     actions and a ghost button beside a primary reads as a cancel. */
  .btn.btn-alt { background:var(--surface-raised); border-color:var(--accent);
                 color:var(--accent-ink); font-weight:500; }
  .btn.btn-alt:hover { background:var(--accent-soft); }

  @media (max-width:760px) {
    .sp-cap-head { grid-template-columns:minmax(0,1fr) auto; }
    .sp-bar { display:none; }
    .mv-row { grid-template-columns:38px minmax(0,1fr); row-gap:var(--space-3); }
    .mv-go { grid-column:2; }
  }

  /* ============================== Story bank (job_stories.html) ==============================
     ADR-0023. A Story is one claim from the record, owned by the Role it
     happened in — so this page is that record read for one Job, and it is
     built out of the prep page's own vocabulary rather than a parallel one.

     .ip-q is the Role card, spine and all. .ip-dis is the disclosure.
     .ip-glyph is the +/− pair. .ip-tag, .ip-verdict, .ip-fb, .sec-head are
     all doing here exactly what they do there. What is new is only the line
     inside a card, and the two states this page has that prep does not. */

  /* ── One Role's Stories, wherever they are drawn ─────────────────────────
     Both the Story Bank and /profile render _story_list.html, so the list has
     one implementation and one look. Three sections in the order of what they
     ask of you — what is wrong, what is strong, what is merely there.

     The shape came out of the real record: thirty-nine claims under one role,
     six of them carrying a figure. Flat, they weighed the same and the six
     were buried; the +/- glyph on every row put a column of thirty-three grey
     minuses beside a heading that already said the same thing. */
  .st-body { margin-top:var(--space-4); }
  .st-sec { margin-bottom:var(--space-6); }
  .st-sec:last-child { margin-bottom:0; }
  .st-sec-h { display:flex; align-items:center; gap:var(--space-2);
              margin-bottom:var(--space-3); }
  .st-sec-l { font:500 var(--text-xs)/1 var(--font-mono); text-transform:uppercase;
              letter-spacing:.12em; color:var(--text-3); }
  .st-sec-n { font:500 var(--text-xs)/1 var(--font-mono); color:var(--text-3);
              font-variant-numeric:tabular-nums; }
  .st-sec-r { color:var(--text-3); font-size:var(--text-sm); }
  .st-sec.is-owed .st-sec-l { color:var(--amber-ink); }

  /* A claim that lands on a figure. The figure leads — it is the whole reason
     the claim is tellable, and as a column the eye runs down it rather than
     finding it on a third line under the sentence. */
  .st-row { display:grid; grid-template-columns:130px minmax(0,1fr) 30px;
            gap:var(--space-4); align-items:baseline;
            padding:var(--space-3) var(--space-2); border-radius:var(--radius-ctl);
            transition:background var(--dur-1) var(--ease); }
  .st-row:hover { background:var(--sunk); }
  @media (max-width:720px) {
    .st-row { grid-template-columns:minmax(0,1fr) 30px; }
    .st-row .st-fig { grid-column:1 / -1; }
  }
  .st-b { min-width:0; }
  .st-fig { justify-self:start; font:600 var(--text-xs)/1.4 var(--font-mono);
            font-variant-numeric:tabular-nums; color:var(--ok); background:var(--ok-bg);
            padding:3px var(--space-2); border-radius:var(--radius-pill); }
  .st-t { display:block; font-weight:500; line-height:1.45; color:var(--text-1); }
  .st-x { display:block; margin-top:3px; color:var(--text-2);
          font-size:var(--text-sm); line-height:1.55; max-width:66ch; }

  /* Hover-revealed, the way every other row action on the profile is: one
     permanent control per row is thirty-nine controls nobody asked for. It
     keeps its track, so nothing shifts when it appears. */
  .st-act { width:30px; height:30px; display:grid; place-items:center; border:0;
            background:transparent; border-radius:var(--radius-ctl);
            color:var(--text-3); cursor:pointer; opacity:0;
            transition:opacity var(--dur-1) var(--ease),
                       background var(--dur-1) var(--ease); }
  .st-act svg { width:15px; height:15px; }
  .st-row:hover .st-act, .st-duty:hover .st-act, .st-act:focus-visible { opacity:1; }
  .st-act:hover { background:var(--surface-raised); color:var(--text-1);
                  box-shadow:var(--lift-1); }
  @media (hover:none) { .st-act { opacity:1; } }
  /* Set aside, not gone. This is the only surface that can bring a Story
     back, so removing it here would be a one-way door — it stays, struck
     through and faded, with its own control lit, because the row that can
     undo the decision should be the one that made it. */
  .st-row.is-hidden, .st-duty.is-hidden { opacity:.5; }
  .st-row.is-hidden:hover, .st-duty.is-hidden:hover { opacity:.8; }
  /* The summary is a flex container, and a decoration set on one does not
     reach the blockified item inside it — so the span is named too. */
  .is-hidden .st-t, .is-hidden .st-duty-t,
  .is-hidden .st-duty-t > span { text-decoration:line-through;
                                            text-decoration-thickness:1px;
                                            text-decoration-color:var(--gap-neutral); }
  .is-hidden .st-x { display:none; }
  .is-hidden .st-fig { background:var(--sunk); color:var(--text-3); }
  .is-hidden .st-act { opacity:1; color:var(--text-3); }
  .is-hidden .st-act:hover { color:var(--accent-ink); }

  /* What the Story Bank puts where /profile puts the hide: the questions
     already pointing at this claim. */
  .st-tag { display:inline-flex; align-items:center; gap:4px; justify-self:end;
            height:20px; padding-inline:7px; border-radius:var(--radius-pill);
            background:var(--accent-soft); color:var(--accent-ink);
            font:600 var(--text-xs)/1 var(--font-ui); }
  .st-tag svg { width:11px; height:11px; opacity:.8; }

  /* The pair that disagrees, bracketed with its note between them. */
  .st-clash { border:1px solid color-mix(in srgb, var(--amber) 38%, transparent);
              background:var(--amber-soft); border-radius:var(--radius-card);
              padding:var(--space-2); }
  .st-clash .st-row:hover { background:color-mix(in srgb, var(--amber) 9%, transparent); }
  .st-clash .st-fig { color:var(--amber-ink);
                      background:color-mix(in srgb, var(--amber) 16%, transparent); }
  .st-clash-n { display:flex; align-items:flex-start; gap:var(--space-2);
                padding:var(--space-2) var(--space-2) var(--space-3);
                color:var(--amber-ink); font-size:var(--text-sm); line-height:1.5; }
  .st-clash-n svg { width:15px; height:15px; flex:none; margin-top:2px; }
  .st-clash-n a, .st-inline { color:inherit; font-weight:600; text-decoration:underline;
                              background:none; border:0; padding:0; cursor:pointer;
                              font-size:inherit; font-family:inherit; }

  /* Everything else: one line each, two-up where there is room. */
  .st-duties { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
               gap:2px var(--space-5); }
  .st-duty { display:grid; grid-template-columns:minmax(0,1fr) 30px;
             align-items:start; gap:var(--space-2);
             padding:var(--space-2); border-radius:var(--radius-ctl);
             transition:background var(--dur-1) var(--ease); }
  .st-duty:hover { background:var(--sunk); }
  /* It wraps. It used to be one clipped line that only un-clipped on hover,
     which put the end of a claim — and on a phone, the whole of it — behind a
     pointer the reader may not have. Eighty characters is two lines in this
     column and that is what two lines are for. */
  .st-duty-t { min-width:0; font-size:var(--text-sm); line-height:1.5;
               color:var(--text-2); }
  .st-duty:hover .st-duty-t { color:var(--text-1); }

  /* A duty whose sentence adds something says so and opens on a tap. The
     caret is the only thing that separates it from a duty that does not —
     40 of 56 on a real record say nothing their title had not, and a control
     on those would be a promise of something to read. */
  .st-duty-d { min-width:0; }
  .st-duty-d > summary { display:flex; align-items:baseline; gap:var(--space-2);
                         cursor:pointer; list-style:none; }
  .st-duty-d > summary > span { min-width:0; }
  .st-duty-d > summary::-webkit-details-marker { display:none; }
  .st-duty-d > summary svg { width:13px; height:13px; flex:none; color:var(--text-3);
                             transition:transform var(--dur-1) var(--ease); }
  .st-duty-d[open] > summary svg { transform:rotate(180deg); }
  .st-duty-d > summary:focus-visible { outline:2px solid var(--accent);
                                       outline-offset:2px; border-radius:var(--radius-ctl); }
  .st-duty-x { margin:var(--space-2) 0 0; font-size:var(--text-sm); line-height:1.55;
               color:var(--text-1); border-inline-start:2px solid var(--border);
               padding-inline-start:var(--space-3); }
  .is-hidden .st-duty-x { display:none; }
  @media (prefers-reduced-motion:reduce) {
    .st-duty-d > summary svg { transition:none; }
  }

  /* Hiding thirty-three duties one at a time is the next annoyance after
     hiding none of them. The section is the selection, so there is no
     select-all — only a count of what the button is about to do. */
  .st-bulk { margin:0 0 0 auto; }
  .st-bulk-b { border:1px solid var(--border); background:var(--surface-raised);
               border-radius:var(--radius-pill); padding:3px var(--space-3);
               color:var(--text-2); font:500 var(--text-xs) var(--font-ui);
               cursor:pointer; white-space:nowrap;
               transition:background var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
  .st-bulk-b:hover { background:var(--sunk); color:var(--text-1); }

  .sb-tools { display:flex; align-items:center; flex-wrap:wrap; gap:var(--space-3); }
  .sb-count { margin-inline-start:auto; color:var(--text-3);
              font:500 var(--text-xs)/1 var(--font-mono);
              text-transform:uppercase; letter-spacing:.1em; }
  .sb-grp[hidden] { display:none!important; }

  /* .ip-bars, re-aimed: one segment per Role in career order, widened by how
     many Stories it holds. The readiness strip's object, a different
     quantity, so the states keep their colours. */
  .ip-bars span.is-strong { background:var(--ok); }
  .ip-bars span.is-done { background:var(--accent); }
  .ip-bars span.is-thin { background:var(--danger); }
  .ip-legend i { width:8px; height:8px; border-radius:2px; background:var(--track); }
  .ip-legend i.is-strong { background:var(--ok); }
  .ip-legend i.is-done { background:var(--accent); }
  .ip-legend i.is-thin { background:var(--danger); }

  /* Two empties, and they are not the same: a record Orbit has not read yet
     gets one button, a free account gets the reason it has none. */
  .ip-empty { text-align:center; padding:var(--space-12) var(--space-6);
              background:var(--surface); border:1px solid var(--border-subtle);
              border-radius:var(--radius-card); }
  .ip-empty h2 { font-size:var(--text-xl); margin-bottom:var(--space-3); }
  .ip-empty p { max-width:56ch; margin:0 auto var(--space-5);
                color:var(--text-2); line-height:1.6; }
  .ip-empty form { margin:0; }

  /* The Stories under one role on /profile. Collapsed to a line, because
     thirty-four of them would bury the role — the same device, and the same
     reasoning, as the clamped description above them. */
  .pf-stories { margin-top:var(--space-3); }
  .pf-stories-head { display:flex; align-items:center; gap:var(--space-2);
                     width:100%; padding:0; border:0; background:transparent;
                     color:var(--text-3); font:500 var(--text-sm) var(--font-ui);
                     cursor:pointer; text-align:start; }
  .pf-stories-head:hover { color:var(--text-1); }
  .pf-stories-head .ip-dis { width:20px; height:20px; font-size:14px; }
  .pf-stories-head .pf-past-line { flex:1; }
  .pf-stlist { padding-block:var(--space-2); }
  .pf-st-note { margin:0 0 var(--space-2); padding:var(--space-3);
                border-radius:var(--radius-ctl); background:var(--amber-soft);
                color:var(--amber-ink); font-size:var(--text-sm); line-height:1.5; }
  .pf-stlist .sb-line.is-conflict { background:var(--amber-soft);
                                    border-radius:var(--radius-ctl);
                                    padding-inline:var(--space-3); }
  /* A hidden Story still shows here — this is where it is brought back. */
  .pf-stlist .sb-line.is-hidden { opacity:.45; }
  .pf-stlist .sb-line.is-hidden .sb-lt { text-decoration:line-through; }
  .pf-st-act { margin:0; }

  /* The read, while it runs. .pi-read's panel, borrowed whole from the import
     — the one difference is that this run has real steps to draw, one per
     role, because the walk is a known sequence. */
  /* The whole head is the control on this page, so it says so: the row lifts
     under the cursor the way the disclosure does, rather than leaving the +
     as the only thing that looks pressable. */
  .sb-grp .ip-q-main { cursor:pointer; border-radius:var(--radius-ctl); }
  .sb-grp .ip-q-main:hover ~ .ip-dis,
  .sb-grp .ip-q-head:hover .ip-dis { color:var(--text-1); border-color:var(--text-3); }
  .sb-grp .ip-q-main:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }

  .sb-run { margin-bottom:var(--space-5); }
  .sb-run .pi-steps { margin-top:var(--space-4); }
  .sb-run .pi-step .kit-s { font-family:var(--font-mono); text-transform:uppercase;
                            letter-spacing:.1em; font-size:var(--text-2xs); }

  /* ============================== Run log (run_log.html) ============================== */
  .score { font-weight:700; font-variant-numeric:tabular-nums; }
  .score-high { color:var(--score-high); }
  .score-mid { color:var(--score-mid); }
  .score-low { color:var(--score-low); }

  /* ============================== Skills (skills.html) ==============================
       Where a skill is attached to the work that proves it. Two panes over one
       mapping, worked from either end: pick a role and tick the skills you used
       there, or pick a skill and tick everywhere you did it.

       Built on the profile page's vocabulary rather than a parallel one —
       .sk-chip is .pf-sk with a tick, the one-row clip and the +N chip are the
       same device, and the left rail is .kit-row's shape. What is new here is
       the two-pane frame and the receipt. */
  .sk { --sk-gutter:clamp(16px,3vw,40px); margin:calc(var(--space-5) * -1); margin-bottom:0; }
  .sk-hero { padding:var(--space-8) var(--sk-gutter) var(--space-6);
             background:var(--surface); border-bottom:1px solid var(--border-subtle); }
  .sk-hero-in, .sk-body { max-width:1180px; margin-inline:auto; }
  .sk-eyebrow { display:flex; align-items:center; gap:var(--space-2); margin-bottom:var(--space-2); }
  .sk-title { margin:0; font-family:var(--font-display); font-weight:400;
              font-size:clamp(26px,3vw,38px); line-height:1.06; letter-spacing:-.018em;
              color:var(--text-1); text-wrap:balance; }
  .sk-lede { margin:var(--space-3) 0 0; font-size:var(--text-lg); line-height:1.5;
             color:var(--text-2); max-width:58ch; }
  .sk-lede b { color:var(--text-1); font-weight:600; }

  /* The coverage rail. One bar, not 72 segments — the number is the message. */
  .sk-cov { margin-top:var(--space-6); display:flex; align-items:center; gap:var(--space-4); }
  .sk-cov-bar { flex:1 1 auto; max-width:420px; height:6px; border-radius:var(--radius-pill);
                background:var(--track); overflow:hidden; }
  .sk-cov-fill { display:block; height:100%; border-radius:var(--radius-pill);
                 background:linear-gradient(90deg, var(--accent), var(--amber));
                 transition:width var(--dur-2) var(--ease); }
  .sk-cov-n { font:400 var(--text-2xl) var(--font-display); letter-spacing:-.02em;
              color:var(--text-1); line-height:1; font-variant-numeric:tabular-nums; }
  .sk-cov-of { font-size:var(--text-sm); color:var(--text-3); }

  /* ── the two panes ── */
  .sk-body { padding:var(--space-6) var(--sk-gutter) var(--space-12);
             display:grid; grid-template-columns:308px minmax(0,1fr);
             gap:var(--space-8); align-items:start; }
  .sk-rail { position:sticky; top:calc(var(--header-h) + var(--space-4));
             display:flex; flex-direction:column; gap:var(--space-5); }
  .sk-pane { min-width:0; }

  .sk-card { background:var(--surface); border:1px solid var(--border-subtle);
             border-radius:var(--radius-card); box-shadow:var(--lift-1); overflow:hidden; }
  .sk-card-head { display:flex; align-items:center; gap:var(--space-2);
                  padding:var(--space-3) var(--space-4); background:var(--sunk);
                  border-bottom:1px solid var(--border-subtle); }
  .sk-card-head .sec-label { flex:1; }
  .sk-card-head b { font-size:var(--text-xs); font-weight:600; color:var(--text-3);
                    font-variant-numeric:tabular-nums; }

  /* A piece of work you can point a skill at. */
  .sk-work { display:flex; width:100%; align-items:center; gap:var(--space-3);
             padding:var(--space-3) var(--space-4); text-align:start; border:none;
             border-bottom:1px solid var(--border-subtle); background:transparent;
             color:inherit; cursor:pointer;
             transition:background var(--dur-1) var(--ease); }
  .sk-card > .sk-work:last-child { border-bottom:none; }
  .sk-work:hover { background:var(--canvas); }
  .sk-work.is-on { background:var(--accent-soft); }
  .sk-work-ic { width:30px; height:30px; border-radius:var(--radius-ctl); flex:none;
                display:grid; place-items:center; background:var(--canvas);
                color:var(--text-3); border:1px solid var(--border-subtle); }
  .sk-work.is-on .sk-work-ic { background:var(--accent); color:var(--on-accent); border-color:var(--accent); }
  .sk-work-ic svg { width:15px; height:15px; }
  .sk-work-b { min-width:0; flex:1 1 auto; }
  .sk-work-t { display:block; font-size:var(--text-sm); font-weight:600; color:var(--text-1);
               line-height:1.35; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .sk-work.is-on .sk-work-t { color:var(--accent-ink); }
  .sk-work-s { display:block; margin-top:1px; font:400 var(--text-xs) var(--font-mono);
               color:var(--text-3); letter-spacing:.02em; overflow:hidden;
               text-overflow:ellipsis; white-space:nowrap; }
  /* How many skills this piece of work proves. Zero is the interesting case, so
     it is drawn rather than hidden — dashed, the way an unevidenced chip is. */
  .sk-work-n { flex:none; min-width:20px; height:20px; padding:0 6px; display:inline-flex;
               align-items:center; justify-content:center; border-radius:var(--radius-pill);
               font:500 var(--text-2xs)/1 var(--font-mono); font-variant-numeric:tabular-nums;
               background:var(--accent-soft); color:var(--accent-ink); }
  .sk-work-n.is-none { background:transparent; color:var(--text-3);
                       border:1px dashed var(--border); }

  /* ── the pane head: what you are attaching to ── */
  .sk-pane-head { display:flex; align-items:flex-start; gap:var(--space-4);
                  margin-bottom:var(--space-5); }
  .sk-pane-t { margin:0; font-family:var(--font-display); font-weight:400;
               font-size:var(--text-2xl); letter-spacing:-.015em; color:var(--text-1);
               line-height:1.15; }
  .sk-pane-s { margin:var(--space-2) 0 0; font-size:var(--text-sm); color:var(--text-2);
               max-width:60ch; line-height:1.55; }
  .sk-pane-acts { margin-inline-start:auto; flex:none; display:flex; gap:var(--space-2); }

  /* Orbit's stored guesses. Never a model call on a page view — these come off
     relationships already computed when the entity was embedded. */
  .sk-guess { display:flex; align-items:center; gap:var(--space-3); margin-bottom:var(--space-5);
              padding:var(--space-3) var(--space-4); border-radius:var(--radius-card);
              background:var(--amber-soft); color:var(--amber-ink); font-size:var(--text-sm); }
  .sk-guess svg { width:16px; height:16px; flex:none; }
  .sk-guess .btn { margin-inline-start:auto; }

  /* ── the chips ──
     The clipped chip row is defined once, in the profile section, and this
     page wears it by alias — `.sk-chip` *is* `.pf-sk`. What is below is only
     what belongs to this page: the container, Orbit's guess, and the tick that
     appears when a chip is attached. */
  .sk-groups { display:flex; flex-direction:column; gap:var(--space-5); position:relative; }
  .sk-chip.is-guess { border-color:var(--amber); border-style:dashed; color:var(--amber-ink); }
  .sk-chip-check { width:12px; height:12px; flex:none; display:none; }
  .sk-chip.is-on .sk-chip-check { display:block; }

  /* Filing a new skill into the right group is the fiddly part, so every group
     carries its own +. Icon-only: nine dashed "New skill" chips down the page
     competed with the skills themselves. */
  .sk-newchip { display:inline-grid; place-items:center; width:30px; height:30px;
                border-radius:var(--radius-pill); border:1px dashed var(--border);
                background:transparent; color:var(--text-3); cursor:pointer; }
  .sk-newchip:hover { border-color:var(--accent); color:var(--accent-ink); }
  .sk-newchip svg { width:13px; height:13px; }

  .sk-showall { display:flex; justify-content:center; margin-top:var(--space-5); }

  .sk-empty { border:1px dashed var(--border); border-radius:var(--radius-card);
              padding:var(--space-8) var(--space-5); text-align:center; }
  .sk-empty p { margin:0 auto var(--space-4); max-width:48ch; font-size:var(--text-sm);
                color:var(--text-2); line-height:1.6; }
  /* Every icon here is a Jinja `{% set %}` or a literal in skills.js, with a
     viewBox and no width/height — an unsized one renders at the SVG default of
     300×150 and tears its control apart. */
  .sk-ic { width:14px; height:14px; flex:none; }
  .back-link > .sk-ic { width:15px; height:15px; }
  .sk-guess > .sk-ic { width:16px; height:16px; }
  /* One column, one thing to say: nothing to attach, or nothing to attach it
     to. The two-pane grid has no meaning yet. */
  .sk-body-one { grid-template-columns:minmax(0,1fr); }
  .sk-pane-hb { min-width:0; }
  /* The auto-group action is a real form, so it needs no width of its own. */
  .sk-autoform { display:inline-flex; margin:0; }

  /* A dialog title in the display face — `titleFont: 'display'` on formDialog.
     Fraunces at 700 reads shouty, so it drops to 500 with the negative
     tracking the rest of the display type carries. */
  /* Kept as a no-op for the templates and callers that still pass it: the
     display face is every dialog title's now, not an opt-in. */
  .modal-overlay .modal-header h3.modal-title-display { font-family:var(--font-display); }

  @media (max-width:1080px) {
    .sk-body { grid-template-columns:minmax(0,1fr); }
    .sk-rail { position:static; }
  }

  /* ============================== Atlas Target (atlas_target.html) ==============================
     Filed under the skills page's heading until 2026-08-25, which was only
     ever a slip — nothing here belongs to skills. */

  /* ---- Target hero ---- */
  .target-hero { background:var(--surface-raised); border:1px solid var(--border-subtle);
                 border-radius:var(--radius-card); box-shadow:var(--shadow-float);
                 padding:var(--space-6) var(--space-8); position:relative; overflow:hidden; }
  .target-hero-kicker { font-size:var(--text-xs); letter-spacing:.14em; text-transform:uppercase;
                        color:var(--accent-ink); font-weight:600; margin:0 0 var(--space-2); }
  .target-role { font-family:var(--font-display); font-weight:600; font-size:var(--text-2xl);
                 letter-spacing:-.02em; line-height:1.05; margin:0 0 var(--space-3); }
  .target-vision { font-size:var(--text-lg); color:var(--text-2); line-height:1.55;
                   max-width:60ch; margin:0 0 var(--space-4); }
  .target-modeled { display:flex; align-items:center; gap:var(--space-2); flex-wrap:wrap;
                    margin-bottom:var(--space-6); }
  .target-rchip { font-size:var(--text-sm); color:var(--text-2); background:var(--canvas);
                  border:1px solid var(--border-subtle); border-radius:var(--radius-pill);
                  padding:var(--space-1) var(--space-3); }
  .target-stat { display:flex; align-items:baseline; gap:var(--space-3);
                 padding-top:var(--space-4); border-top:1px solid var(--border-subtle); }
  .target-stat-pct { font-family:var(--font-display); font-weight:600; font-size:var(--text-2xl);
                     color:var(--accent-ink); line-height:1; }
  .target-ms-tag { display:inline-flex; align-items:center; gap:var(--space-2); font-size:var(--text-sm);
                   font-weight:600; color:var(--amber-ink); background:var(--amber-soft);
                   border-radius:var(--radius-pill); padding:var(--space-1) var(--space-3); margin-left:auto; }
  .target-ms-tag i { width:7px; height:7px; border-radius:50%; background:var(--amber); }

  /* ---- Trajectory arc (SVG; JS positions nodes — src/web/static/ui/target.js) ---- */
  .traj-arc { width:100%; height:150px; display:block; }
  .traj-arc .traj-track { fill:none; stroke:var(--track); stroke-width:3; stroke-linecap:round; }
  .traj-arc .traj-fill  { fill:none; stroke:var(--accent); stroke-width:3.5; stroke-linecap:round; }
  .traj-arc .traj-rest  { fill:none; stroke:var(--gap-neutral); stroke-width:2.5;
                          stroke-linecap:round; stroke-dasharray:2 7; }
  .traj-node-here { fill:var(--accent); }
  .traj-node-ms   { fill:var(--amber); }
  .traj-lbl { font-size:var(--text-xs); fill:var(--text-3); }
  .traj-lbl--here { fill:var(--accent-ink); font-weight:600; }

  /* ---- Capability spine ---- */
  .cap-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:var(--space-3); }
  @media (max-width:820px){ .cap-grid { grid-template-columns:1fr 1fr; } }
  @media (max-width:520px){ .cap-grid { grid-template-columns:1fr; } }
  .cap-card { background:var(--surface-raised); border:1px solid var(--border-subtle);
              border-radius:var(--radius-card); box-shadow:var(--shadow-float);
              padding:var(--space-4); }
  .cap-card-top { display:flex; align-items:center; gap:var(--space-2); margin-bottom:var(--space-3); }
  .cap-name { font-weight:600; font-size:var(--text-base); }
  .cap-pill { margin-left:auto; font-size:var(--text-xs); font-weight:600;
              border-radius:var(--radius-pill); padding:2px var(--space-2); }
  .cap-pill.is-have { background:var(--amber-soft); color:var(--amber-ink); }
  .cap-pill.is-dev  { background:var(--accent-soft); color:var(--accent-ink); }
  .cap-pill.is-gap  { background:var(--border-subtle); color:var(--text-3); }
  .cap-mini { height:6px; border-radius:var(--radius-pill); background:var(--track);
              overflow:hidden; margin-bottom:var(--space-2); }
  .cap-mini i { display:block; height:100%; border-radius:var(--radius-pill); }
  .cap-mini i.is-have { background:var(--amber); }
  .cap-mini i.is-dev  { background:var(--accent); }
  .cap-mini i.is-gap  { background:var(--gap-neutral); }
  .cap-note { font-size:var(--text-sm); color:var(--text-3); line-height:1.45; margin:0; }

  /* ---- Target creation flow (atlas_target_create.html + target-create.js) ---- */
  .tcreate-head { text-align:center; max-width:640px; margin:0 auto var(--space-6); }
  .tcreate-kicker { font-size:var(--text-xs); letter-spacing:.14em; text-transform:uppercase;
                    color:var(--accent-ink); font-weight:600; margin:0 0 var(--space-2); }
  .tcreate-title { font-family:var(--font-display); font-weight:600; font-size:var(--text-2xl);
                   letter-spacing:-.02em; line-height:1.1; margin:0 0 var(--space-2); }
  .tcreate-lead { font-size:var(--text-base); color:var(--text-2); line-height:1.55; margin:0; }

  .tcreate-grid { display:grid; grid-template-columns:1fr 1fr; gap:var(--space-5); align-items:start; }
  @media (max-width:820px) { .tcreate-grid { grid-template-columns:1fr; } }

  .tcreate-panel { background:var(--surface-raised); border:1px solid var(--border-subtle);
                   border-radius:var(--radius-card); box-shadow:var(--shadow-float);
                   padding:var(--space-5); position:relative; overflow:hidden; }

  .tcreate-step { display:flex; align-items:center; gap:var(--space-2); margin-bottom:var(--space-4); }
  .tcreate-step-num { width:22px; height:22px; border-radius:50%; background:var(--accent);
                       color:var(--on-accent); font-size:var(--text-sm); font-weight:700;
                       display:flex; align-items:center; justify-content:center; flex:none; }
  .tcreate-step h3 { font-size:var(--text-base); font-weight:700; margin:0; letter-spacing:-.01em; }

  .tcreate-search { display:flex; align-items:center; gap:var(--space-2); border:1px solid var(--border);
                     border-radius:var(--radius-ctl); padding:var(--space-2) var(--space-3);
                     font-size:var(--text-base); color:var(--text-3); background:var(--canvas);
                     margin-bottom:var(--space-4); cursor:text; }
  .tcreate-search input { border:none; outline:none; background:transparent; flex:1 1 auto;
                           color:var(--text-1); font-size:inherit; font-family:inherit; }
  .tcreate-search input::placeholder { color:var(--text-3); }
  .tcreate-search-icon { width:14px; height:14px; border-radius:50%; border:2px solid var(--text-3);
                          flex:none; }

  .tcreate-hint { font-size:var(--text-xs); color:var(--text-3);
                  margin:calc(var(--space-2) * -1) 0 var(--space-4); }

  .tcreate-label { font-size:var(--text-xs); letter-spacing:.1em; text-transform:uppercase;
                    color:var(--text-3); font-weight:600; margin:0 0 var(--space-3); }

  /* The ask and the label it belongs to, on one line. */
  .tcreate-suggest { display:flex; align-items:center; gap:var(--space-3);
                     margin-block-start:var(--space-4); }
  .tcreate-suggest .tcreate-label { margin:0; }
  .tcreate-suggest .btn { margin-inline-start:auto; flex:none; }

  .role-opt { display:flex; align-items:flex-start; gap:var(--space-3); border:1px solid var(--border);
              border-radius:var(--radius-card); padding:var(--space-3); margin-bottom:var(--space-2);
              cursor:pointer; transition:border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease); }
  .role-opt.is-selected { border-color:var(--accent); background:var(--accent-soft); }
  .role-opt input[type="checkbox"] { width:18px; height:18px; margin-top:2px; flex:none;
                                      accent-color:var(--accent); cursor:pointer; }
  .role-opt-body { flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:2px; }
  .role-opt-title { font-weight:600; font-size:var(--text-base); color:var(--text-1); }
  .role-opt-sub { font-size:var(--text-sm); color:var(--text-3); }
  .role-opt-empty { font-size:var(--text-sm); color:var(--text-3); text-align:center;
                     padding:var(--space-4) 0; }

  .tcreate-add-btn { display:inline-block; background:none; border:none; padding:0;
                      margin-top:var(--space-1); font:600 var(--text-sm) var(--font-ui);
                      color:var(--accent-ink); cursor:pointer; }

  .tpreview-status { display:inline-flex; align-items:center; gap:var(--space-2);
                      font-size:var(--text-xs); font-weight:600; color:var(--accent-ink);
                      background:var(--accent-soft); border-radius:var(--radius-pill);
                      padding:4px var(--space-3); margin-bottom:var(--space-4); }
  .tpreview-status-dot { width:6px; height:6px; border-radius:50%; background:var(--accent); flex:none; }
  .tpreview-status.is-error { color:var(--danger); background:var(--danger-bg); }
  .tpreview-status.is-error .tpreview-status-dot { background:var(--danger); }

  .tpreview-empty { text-align:center; padding:var(--space-8) var(--space-4); color:var(--text-3); }
  .tpreview-empty p { font-size:var(--text-sm); margin:0; }

  .tpreview-role { font-family:var(--font-display); font-weight:600; font-size:var(--text-xl);
                    letter-spacing:-.01em; line-height:1.1; margin:0 0 var(--space-3); }

  .tpreview-vision { border:1px dashed var(--border); border-radius:var(--radius-card);
                      padding:var(--space-3) var(--space-4); background:var(--canvas);
                      margin-bottom:var(--space-4); }
  .tpreview-vision p { font-size:var(--text-base); color:var(--text-2); line-height:1.55; margin:0; }

  .tpreview-spine-label { display:flex; align-items:baseline; gap:var(--space-2); margin-bottom:var(--space-2); }
  .tpreview-spine-label .l { font-size:var(--text-xs); letter-spacing:.1em; text-transform:uppercase;
                              color:var(--text-3); font-weight:600; }
  .tpreview-spine-label .from { font-size:var(--text-sm); color:var(--text-3); }

  .tpreview-cap-row { display:flex; align-items:center; gap:var(--space-2); font-size:var(--text-sm);
                       padding:var(--space-2) 2px; border-bottom:1px solid var(--border-subtle); }
  .tpreview-cap-row:last-child { border-bottom:none; }
  .tpreview-cap-dot { width:8px; height:8px; border-radius:50%; flex:none; }
  .tpreview-cap-dot.is-have { background:var(--amber); }
  .tpreview-cap-dot.is-dev { background:var(--accent); }
  .tpreview-cap-dot.is-gap { background:var(--gap-neutral); }
  .tpreview-cap-name { flex:1 1 auto; min-width:0; color:var(--text-1); }
  .tpreview-cap-status { font-size:var(--text-xs); color:var(--text-3); }

  .tcreate-cta { display:flex; align-items:center; gap:var(--space-3); margin-top:var(--space-5); }
  .tcreate-micro { font-size:var(--text-sm); color:var(--text-3); text-align:center; margin-top:var(--space-3); }

  /* ============================== Model registry (admin_llm.html) ============================== */
  /* Per-provider shelves: what leads a lane on the left, what could on the
     right. Collapsed by default when a provider leads nothing, so a long list
     of models that have never routed does not bury the ones that do. */
  .mr-prov { border:1px solid var(--border-subtle); border-radius:var(--radius-card);
             background:var(--surface); overflow:hidden; }
  .mr-prov + .mr-prov { margin-top:var(--space-3); }
  /* A provider switched off, or missing its key, cannot serve: its shelf goes
     inert. The models stay readable — prices, history — but no control here
     can put one in a lane until the provider is enabled. */
  .mr-prov.is-disabled .mr-sum-name { color:var(--text-3); }
  .mr-prov.is-disabled .mr-shelf { opacity:.6; }
  .mr-prov.is-disabled .mr-row { background:transparent; border-style:dashed; }
  .mr-prov.is-disabled .mr-lane span { opacity:.55; }
  .mr-sum { display:flex; align-items:center; gap:var(--space-3); cursor:pointer;
            padding:var(--space-3) var(--space-4); list-style:none;
            background:var(--surface-raised); }
  .mr-sum::-webkit-details-marker { display:none; }
  .mr-sum:hover { background:var(--sunk); }
  .mr-sum:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
  .mr-sum-name { font-family:var(--font-mono); font-size:var(--text-sm);
                 letter-spacing:.08em; text-transform:uppercase; color:var(--text-1); }
  .mr-sum-counts { margin-inline-start:auto; display:flex; gap:var(--space-2); }
  /* Rotates the disclosure caret; the open state is the only thing it encodes. */
  .mr-caret { width:14px; height:14px; color:var(--text-3); flex:none;
              transition:transform var(--dur-2) var(--ease); }
  .mr-prov[open] .mr-caret { transform:rotate(90deg); }

  .mr-shelf { display:grid; grid-template-columns:1fr 1fr; gap:var(--space-4);
              padding:var(--space-4); }
  @media (max-width:860px) { .mr-shelf { grid-template-columns:1fr; } }
  .mr-zone { background:var(--sunk); border-radius:var(--radius-card);
             padding:var(--space-4); display:flex; flex-direction:column; gap:var(--space-3); }

  .mr-row { display:flex; align-items:center; gap:var(--space-3); flex-wrap:wrap;
            background:var(--surface); border:1px solid var(--border-subtle);
            border-radius:var(--radius-ctl); padding:var(--space-3); }
  .mr-row.is-shelved { background:transparent; border-style:dashed; }
  .mr-row-id { flex:1 1 180px; min-width:0; }
  .mr-row-name { font-weight:500; }
  .mr-row-meta { font-family:var(--font-mono); font-size:var(--text-xs); color:var(--text-3);
                 overflow-wrap:anywhere; }
  .mr-row-controls { display:flex; align-items:center; gap:var(--space-2); flex-wrap:wrap; }

  .mr-lanes { display:flex; gap:var(--space-1); }
  /* inline-flex, not the default inline: an absolutely-positioned input inside
     an inline label resolves against the inline box's fragments, which makes
     the clickable area unreliable — a chip that looks pressable and is not. */
  .mr-lane { position:relative; display:inline-flex; cursor:pointer; }
  .mr-lane input { position:absolute; inset:0; width:100%; height:100%;
                   opacity:0; margin:0; cursor:pointer; }
  .mr-lane span { display:inline-flex; align-items:center; height:26px; padding:0 10px;
                  border-radius:var(--radius-pill); border:1px solid var(--border);
                  font-family:var(--font-mono); font-size:var(--text-xs); line-height:1;
                  letter-spacing:.08em; text-transform:uppercase; color:var(--text-3);
                  transition:background var(--dur-1) var(--ease), color var(--dur-1) var(--ease),
                             border-color var(--dur-1) var(--ease); }
  .mr-lane input:checked + span { background:var(--accent); border-color:var(--accent);
                                  color:var(--on-accent); }
  .mr-lane input:focus-visible + span { outline:2px solid var(--accent); outline-offset:2px; }
  .mr-lane input:disabled + span { opacity:.4; }
  .mr-lane input:disabled { cursor:not-allowed; }

  .mr-price { width:74px; height:30px; padding:0 var(--space-2); text-align:end;
              border:1px solid var(--border); border-radius:var(--radius-ctl);
              background:var(--surface); color:var(--text-1);
              font-family:var(--font-mono); font-size:var(--text-sm); }
  /* Amber is what you owe: a model on the shelf owes two numbers before it
     can serve, and the picker will not take it until they are there. */
  .mr-price.is-owed { border-color:var(--amber); background:var(--amber-soft); }
  .mr-cur { font-family:var(--font-mono); font-size:var(--text-xs); color:var(--text-3); }


  /* ============================== Busy actions ============================== */
  /* Written for adminllm.js, now the app's one busy-button treatment: shell.js
     puts `.is-busy` on any submitter whose write is still in flight after
     350ms, which is every button behind a model call and nothing else.
     Without a signal the page reads as frozen and the button invites a second
     click. */
  /* The spinner replaced the label: `color:transparent` and a disc centred
     over the button, so "Suggest roles" became a blank pill with a ring in
     it and the reader lost the one word that said what was being waited for.
     It sits *beside* the label now, in the icon's place — `.btn` is a flex
     row with a gap, so a ::before is a first-class item in it and nothing
     needs positioning. The button keeps its width, which also stops the
     toolbar around it from twitching when the wait starts. */
  .btn.is-busy { pointer-events:none; }
  .btn.is-busy > svg { display:none; }   /* the icon makes way; the label stays */
  .btn.is-busy::before {
    content:""; flex:none; width:14px; height:14px; border-radius:50%;
    border:2px solid currentColor; border-top-color:transparent;
    animation:llm-spin 700ms linear infinite;
  }
  @keyframes llm-spin { to { transform:rotate(360deg); } }

  /* The row dims while its own save is in flight, so which edit is pending is
     never a guess when several are open at once. */
  form.mr-row.is-busy { opacity:.55; }

  /* A page-wide bar for the wait that is not attached to one row. Indigo is
     ground covered; this is the only place on the page it moves. */
  .llm-working::before {
    content:""; position:fixed; inset-block-start:0; inset-inline:0; height:2px;
    background:linear-gradient(90deg, transparent, var(--accent), transparent);
    background-size:40% 100%; background-repeat:no-repeat;
    animation:llm-sweep 1.1s var(--ease) infinite;
    z-index:99;
  }
  @keyframes llm-sweep {
    0%   { background-position:-40% 0; }
    100% { background-position:140% 0; }
  }
  @media (prefers-reduced-motion:reduce) {
    .btn.is-busy::before { animation:none; }
    .llm-working::before { animation:none; background-position:0 0; background-size:100% 100%; }
  }

  /* ============================== Dashboard (dashboard.html) ==============================
     The page answers three questions in order — what is waiting on you, where
     the hunt stands, what Orbit did — and the layout is that order. It sets no
     ground class: :root is the language.

     The rail here is the ascent restated at the scale of the whole hunt, which
     is the page's signature. It is a fourth surface built on the same
     vocabulary as .jl-rail and .jd-ascent, not a new motif. */

  .db { max-width:1240px; margin-inline:auto; }

  /* ── the greeting ──────────────────────────────────────────────────────────
     The one page title addressed to the reader rather than naming the page, so
     it takes the serif and drops the weight: Fraunces at 500 says "a person
     wrote this", 600 Inter says "this is the Dashboard screen". The mark is
     Orbit's ring at the size of punctuation — it reads as a bullet, not a
     logo, and inherits the amber the rest of the page uses for what is yours. */
  /* .page-header-title h1 { font:inherit } is what this has to outrank — the
     shell hands every other page's title the 600 UI face on purpose. */
  .page-header-title h1.db-greet {
              display:flex; align-items:center; gap:var(--space-2);
              font:500 var(--text-xl)/1.2 var(--font-display);
              letter-spacing:-.01em; color:var(--text-1); }
  /* Orbit's mark at greeting size. The ellipse needs a touch more room than
     the ring it replaced, and a lighter stroke — at 17px the shared 1.6 closes
     up the orbit's counter. */
  .db-greet-mark { inline-size:17px; block-size:17px; flex:none;
                   color:var(--amber); stroke-width:1.4; }

  .db-hero { padding-block:var(--space-4) var(--space-8); }
  .db-say { font-family:var(--font-display); font-weight:500; letter-spacing:-.02em;
            font-size:clamp(25px, 2.7vw, 35px); line-height:1.15; max-inline-size:22ch;
            margin:0; text-wrap:balance; }
  /* amber is what you owe — the same rule the list row edge follows */
  .db-say em { font-style:normal; color:var(--amber-ink); }
  .db-sub { margin:var(--space-3) 0 0; color:var(--text-2); max-inline-size:58ch;
            font-size:var(--text-lg); }

  /* The page's one filled button. It names its job, because a verb alone
     ("Tailor") is the same word three rows below it wear — the colour has to
     be carrying something the label is not. */
  .db-lead { margin-block-start:var(--space-5); max-inline-size:100%; }
  .db-lead span { min-inline-size:0; overflow:hidden; text-overflow:ellipsis;
                  white-space:nowrap; }
  .db-lead b { font-weight:600; }
  .db-lead svg { inline-size:15px; block-size:15px; flex:none; }

  /* ── the hunt's ascent ─────────────────────────────────────────────────────
     Pips and track live in a band ABOVE the figures. Drawing the connector at
     the same y as the digits struck a line straight through every number. */
  .db-rail { display:grid; grid-auto-flow:column; grid-auto-columns:1fr;
             margin-block-start:var(--space-8); background:var(--surface);
             border:1px solid var(--border-subtle); border-radius:var(--radius-card);
             padding:var(--space-5) var(--space-6) var(--space-4); box-shadow:var(--lift-1); }
  /* Each rung is a button: it filters the list below to its stage. The rounded
     ground goes on .db-rung-face rather than the button, pulled back by its own
     inline padding, so the figures stay on the pips they belong to — a pill
     drawn around the whole rung would push every number off its own pip. */
  .db-rung { position:relative; padding-block-start:26px; display:flex;
             flex-direction:column; gap:var(--space-1);
             background:none; border:0; padding-inline:0; text-align:start;
             font:inherit; cursor:pointer; }
  .db-rung:disabled { cursor:default; }
  .db-rung::before { content:""; position:absolute; inset-block-start:5px;
                     inset-inline-start:6px; inline-size:100%; block-size:2px;
                     background:var(--track); }
  .db-rung.is-walked::before { background:var(--accent); }
  .db-rung:last-child::before { display:none; }
  .db-pip { position:absolute; inset-block-start:0; inset-inline-start:0;
            inline-size:12px; block-size:12px; border-radius:50%;
            background:var(--track); box-shadow:0 0 0 3px var(--surface);
            transition:transform var(--dur-1) var(--ease); }
  .db-rung.is-walked .db-pip { background:var(--accent); }
  .db-rung.is-here .db-pip { box-shadow:0 0 0 3px var(--surface), 0 0 0 6px var(--accent-soft); }
  .db-rung.is-milestone .db-pip { background:var(--amber); }
  .db-rung-face { display:flex; flex-direction:column; gap:var(--space-1);
                  align-items:flex-start; align-self:flex-start;
                  padding:6px var(--space-3) 7px; margin-inline-start:-10px;
                  border-radius:var(--radius-card); background:transparent;
                  transition:background var(--dur-1) var(--ease); }
  /* --sunk rather than --surface-raised: the rail sits on a card, and raised is
     brighter than the card it would be raised off. A well reads, a highlight
     on white does not. */
  .db-rung:not(:disabled):hover .db-rung-face { background:var(--sunk); }
  .db-rung:not(:disabled):hover .db-pip { transform:scale(1.15); }
  .db-rung.is-sel .db-rung-face { background:var(--accent-soft); }
  .db-rung:focus-visible { outline:none; }
  .db-rung:focus-visible .db-rung-face { outline:2px solid var(--accent);
                                          outline-offset:2px; }
  .db-rung-n { font-family:var(--font-display); font-size:26px; line-height:1;
               color:var(--text-1); }
  .db-rung.is-empty .db-rung-n { color:var(--text-3); }
  .db-rung-name { font-family:var(--font-mono); font-size:var(--text-xs); font-weight:500;
                  text-transform:uppercase; letter-spacing:.1em; color:var(--text-3);
                  white-space:nowrap; }
  .db-rung.is-milestone .db-rung-name { color:var(--amber-ink); }
  .db-rung.is-sel .db-rung-name { color:var(--accent-ink); }

  /* The way out of a filter, against the name of the filter — .jl-icon at
     label size, since a 36px circle beside an 11px eyebrow is a button with a
     caption rather than a caption with a button. */
  .db-unfilter { width:22px; height:22px; align-self:center;
                 margin-inline-start:calc(var(--space-2) * -1); }
  .db-unfilter svg { width:13px; height:13px; }
  .db-unfilter:hover { background:var(--accent-soft); color:var(--accent-ink); }

  /* ── what arrived while you were away ──────────────────────────────────────
     One quiet strip on surface, not a stack of coloured banners. Indigo, not
     amber: something new is not something overdue, and it must not compete
     with the owed rail for the same eye. */
  .db-since { display:flex; align-items:center; gap:var(--space-4); flex-wrap:wrap;
              padding:var(--space-4) var(--space-5); background:var(--surface);
              border:1px solid var(--border-subtle); border-radius:var(--radius-card);
              box-shadow:var(--lift-1); margin-block-end:var(--space-8); }
  .db-since-ic { inline-size:30px; block-size:30px; border-radius:50%; flex:none;
                 display:grid; place-items:center; background:var(--accent-soft);
                 color:var(--accent-ink); }
  .db-since-ic svg { inline-size:16px; block-size:16px; }
  .db-since-say { min-inline-size:0; flex:1 1 24ch; }
  .db-since-say b { font-weight:500; }
  .db-since-say span { color:var(--text-2); }
  .db-since-acts { margin-inline-start:auto; }
  /* a broken careers URL is worth telling you; it is not worth a klaxon */
  .db-since-warn { flex-basis:100%; display:flex; align-items:flex-start; gap:var(--space-2);
                   padding-block-start:var(--space-3); border-block-start:1px solid var(--border-subtle);
                   color:var(--text-2); font-size:var(--text-sm); }
  .db-since-warn svg { inline-size:15px; block-size:15px; color:var(--warn); flex:none;
                       margin-block-start:2px; }

  /* ── the spine: waiting on you ─────────────────────────────────────────── */
  .db-sec { margin-block-end:var(--space-10); }
  .db-owed { display:flex; flex-direction:column; gap:var(--space-2); }
  .db-owe { display:grid; grid-template-columns:auto minmax(0,1fr) 172px;
            align-items:center; gap:var(--space-4);
            padding:var(--space-4) var(--space-5); background:var(--surface);
            border:1px solid var(--border-subtle); border-radius:var(--radius-card);
            box-shadow:var(--lift-1); position:relative;
            transition:box-shadow var(--dur-1) var(--ease); }
  .db-owe:hover { box-shadow:var(--lift-2); }
  /* display:grid beats the UA's [hidden] rule, so it has to be said again */
  .db-owe[hidden] { display:none; }
  /* the owed mark, the same amber edge that makes a list row heavy */
  .db-owe::before { content:""; position:absolute; inset-block:14px; inset-inline-start:0;
                    inline-size:3px; border-start-end-radius:3px; border-end-end-radius:3px;
                    background:var(--amber); }
  /* A row reached by selecting a rung, where nothing is due from you. It keeps
     the shape and loses the amber: heavy is a claim, and this is not one. */
  .db-owe.is-quiet::before { background:var(--track); }
  .db-owe.is-quiet .db-owe-mark { background:var(--sunk); color:var(--text-3); }
  .db-owe.is-quiet .db-owe-why b { color:var(--text-1); }
  .db-owe-mark { inline-size:38px; block-size:38px; border-radius:10px; flex:none;
                 display:grid; place-items:center; background:var(--amber-soft);
                 color:var(--amber-ink); }
  .db-owe-mark svg { inline-size:19px; block-size:19px; }
  .db-owe-body { min-inline-size:0; }
  .db-owe-head { display:flex; align-items:center; gap:var(--space-3); flex-wrap:wrap; }
  .db-owe-role { font-weight:500; font-size:var(--text-lg); letter-spacing:-.01em; }
  .db-owe-role a { color:var(--text-1); text-decoration:none; }
  .db-owe-role a:hover { text-decoration:underline; text-underline-offset:3px; }
  .db-owe-co { color:var(--text-3); font-weight:400; }
  .db-owe-when { font-family:var(--font-mono); font-size:var(--text-xs); font-weight:500;
                 text-transform:uppercase; letter-spacing:.06em; color:var(--amber-ink);
                 background:var(--amber-soft); padding:5px 9px;
                 border-radius:var(--radius-pill); white-space:nowrap; }
  .db-owe-why { color:var(--text-2); font-size:var(--text-sm); margin:3px 0 0; }
  .db-owe-why b { color:var(--amber-ink); font-weight:500; }
  /* every action occupies the same box, so the column reads as a column */
  .db-owe-act { display:flex; justify-content:flex-end; }
  .db-owe-act .btn { inline-size:100%; }

  /* nothing owed is an achievement, not a void */
  .db-clear { display:flex; gap:var(--space-4); align-items:flex-start;
              padding:var(--space-6); background:var(--ok-bg);
              border-radius:var(--radius-card); }
  .db-clear svg { inline-size:22px; block-size:22px; color:var(--ok); flex:none;
                  margin-block-start:2px; }
  .db-clear h2 { font-size:var(--text-lg); margin:0 0 var(--space-1); }
  .db-clear p { margin:0; color:var(--text-2); max-inline-size:62ch; }

  /* ── the two columns ──────────────────────────────────────────────────── */
  .db-cols { display:grid; grid-template-columns:minmax(0,1fr) 348px;
             gap:var(--space-8); align-items:start; }
  .db-stack { display:flex; flex-direction:column; gap:var(--space-8); }
  .db-quiet { color:var(--text-2); margin:0; }
  .db-quiet b { color:var(--text-1); font-weight:500; }
  .db-quiet.is-faint { color:var(--text-3); }
  .db-foot { margin-block-start:var(--space-4); padding-block-start:var(--space-4);
             border-block-start:1px solid var(--border-subtle); color:var(--text-2);
             font-size:var(--text-sm); }

  /* the week — values are always on. A chart you have to interrogate for its
     numbers is a chart that does not have them; hover only sharpens them. */
  .db-week { display:grid; grid-auto-flow:column; grid-auto-columns:1fr;
             gap:var(--space-3); align-items:end; block-size:120px;
             margin-block-start:var(--space-4); }
  .db-day { display:flex; flex-direction:column; justify-content:flex-end;
            gap:var(--space-2); block-size:100%; }
  .db-day-n { text-align:center; font-family:var(--font-mono); font-size:var(--text-sm);
              font-weight:500; color:var(--text-2);
              transition:color var(--dur-1) var(--ease); }
  .db-day.is-zero .db-day-n { color:var(--text-3); opacity:.5; }
  .db-day-bar { inline-size:100%; border-start-start-radius:8px; border-start-end-radius:8px;
                border-end-start-radius:3px; border-end-end-radius:3px;
                background:var(--accent); min-block-size:4px; transform-origin:bottom;
                transition:transform var(--dur-1) var(--ease), filter var(--dur-1) var(--ease); }
  .db-day.is-zero .db-day-bar { background:var(--track); }
  .db-day.is-today .db-day-bar { background:var(--amber); }
  .db-day:hover .db-day-bar { filter:brightness(1.12); transform:translateY(-3px); }
  .db-day:hover .db-day-n { color:var(--text-1); }
  .db-day-lab { text-align:center; font-family:var(--font-mono); font-size:var(--text-xs);
                font-weight:500; color:var(--text-3); }

  /* closing soon */
  .db-close { display:flex; align-items:center; gap:var(--space-3);
              padding-block:var(--space-3); border-block-end:1px solid var(--border-subtle); }
  .db-close:last-child { border-block-end:0; }
  .db-close-role { min-inline-size:0; }
  .db-close-role a { color:var(--text-1); text-decoration:none; font-weight:500; }
  .db-close-role a:hover { text-decoration:underline; text-underline-offset:3px; }
  .db-close-co { display:block; color:var(--text-3); font-size:var(--text-sm); }
  .db-close-when { margin-inline-start:auto; font-family:var(--font-mono);
                   font-size:var(--text-sm); font-weight:500; color:var(--text-3);
                   white-space:nowrap; }
  .db-close-when.is-soon { color:var(--danger); }

  /* Orbit's work — artefacts, never tokens */
  .db-led { display:flex; align-items:baseline; gap:var(--space-3);
            padding-block:var(--space-3); border-block-end:1px solid var(--border-subtle); }
  .db-led:last-of-type { border-block-end:0; }
  .db-led-n { font-family:var(--font-display); font-size:24px; line-height:1;
              color:var(--accent-ink); min-inline-size:2.4ch; }
  .db-led-what { font-size:var(--text-base); }
  .db-led-sub { display:block; color:var(--text-3); font-size:var(--text-sm); }

  /* the Atlas, stated as a mix rather than a number */
  .db-atlas-n { display:block; }
  .db-atlas-n b { font-family:var(--font-display); font-weight:500; font-size:30px;
                  line-height:1; }
  .db-atlas-bar { display:flex; gap:3px; margin-block:var(--space-4) var(--space-3); }
  .db-atlas-seg { block-size:6px; border-radius:3px; }
  .db-atlas-key { display:flex; flex-wrap:wrap; gap:var(--space-1) var(--space-3);
                  font-size:var(--text-xs); color:var(--text-2); }
  .db-atlas-key i { inline-size:7px; block-size:7px; border-radius:2px; font-style:normal;
                    display:inline-block; margin-inline-end:5px; }

  /* ── the calendar ──────────────────────────────────────────────────────────
     The same hunt read by date. Two colours because Orbit holds two kinds of
     date: amber for one it wants something from you on — the same amber a
     heavy row wears — and a hollow grey ring for one that already happened.
     Red is amber that has gone past. There is no third colour because there is
     no third kind of date in the database yet.

     The grid answers "is next week heavy"; the column beside it is what makes
     the answer actionable, so it carries the list's own row rather than a
     summary you would have to leave the page to act on. */
  .db-cal-top { display:flex; align-items:flex-end; gap:var(--space-4);
                flex-wrap:wrap; margin-block-end:var(--space-5); }
  .db-cal-month { margin:0; font-family:var(--font-display); font-weight:500;
                  font-size:var(--text-2xl); line-height:1.1; letter-spacing:-.02em;
                  min-inline-size:9ch; }
  .db-cal-sum { margin:2px 0 0; color:var(--text-2); font-size:var(--text-sm); }
  .db-cal-sum b { color:var(--amber-ink); font-weight:500; }
  .db-cal-nav { display:flex; align-items:center; gap:var(--space-1); }
  .db-cal-nav .jl-icon { inline-size:32px; block-size:32px; }
  .db-cal-nav .jl-icon svg { inline-size:16px; block-size:16px; }

  /* The key is also the filter — pressing one drops that band from the grid
     and the column at once, which is the only way "hide what is done" is one
     gesture rather than a preference buried in settings. */
  .db-legend { margin-inline-start:auto; display:flex; gap:var(--space-2); flex-wrap:wrap; }
  .db-leg { display:inline-flex; align-items:center; gap:var(--space-2);
            block-size:30px; padding-inline:var(--space-3); cursor:pointer;
            border-radius:var(--radius-pill); border:1px solid var(--border-subtle);
            background:var(--surface); color:var(--text-2);
            font-family:var(--font-mono); font-size:var(--text-xs); font-weight:500;
            text-transform:uppercase; letter-spacing:.1em;
            transition:opacity var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
  .db-leg:hover { color:var(--text-1); }
  .db-leg[aria-pressed="false"] { opacity:.45; }
  .db-leg i { inline-size:9px; block-size:9px; border-radius:50%; flex:none; }
  .db-leg.is-due i { background:var(--amber); }
  .db-leg.is-done i { background:transparent; border:1.5px solid var(--gap-neutral); }

  .db-late { display:flex; align-items:center; gap:var(--space-3);
             padding:var(--space-3) var(--space-4); margin-block-end:var(--space-4);
             background:var(--amber-soft); border-radius:var(--radius-card);
             color:var(--amber-ink); font-size:var(--text-sm); }
  .db-late[hidden] { display:none; }
  .db-late svg { inline-size:16px; block-size:16px; flex:none; }
  .db-late-go, .db-late .btn { margin-inline-start:auto; }

  .db-cal-cols { display:grid; grid-template-columns:minmax(0,1fr) 350px;
                 gap:var(--space-6); align-items:start; }
  .db-grid-card { background:var(--surface); border:1px solid var(--border-subtle);
                  border-radius:var(--radius-card); box-shadow:var(--lift-1);
                  overflow:hidden; }
  .db-dows { display:grid; grid-template-columns:repeat(7,1fr);
             border-block-end:1px solid var(--border-subtle); background:var(--sunk); }
  .db-dow { padding:var(--space-2) var(--space-3); font-family:var(--font-mono);
            font-size:var(--text-xs); font-weight:500; text-transform:uppercase;
            letter-spacing:.12em; color:var(--text-3); }
  .db-grid { display:grid; grid-template-columns:repeat(7,1fr); }
  .db-cell { text-align:start; font:inherit; cursor:pointer; background:var(--surface);
             border:0; border-inline-end:1px solid var(--border-subtle);
             border-block-end:1px solid var(--border-subtle);
             min-block-size:112px; padding:var(--space-2);
             display:flex; flex-direction:column; gap:3px;
             transition:background var(--dur-1) var(--ease); }
  .db-cell:nth-child(7n) { border-inline-end:0; }
  .db-cell:nth-last-child(-n+7) { border-block-end:0; }
  .db-cell.is-weekend { background:var(--sunk); }
  .db-cell.is-spill { background:var(--canvas); }
  .db-cell.is-spill .db-daynum { color:var(--text-3); opacity:.55; }
  .db-cell:hover { background:var(--surface-raised); }
  .db-cell.is-weekend:hover { background:var(--sunk); filter:brightness(.985); }
  .db-cell.is-sel, .db-cell.is-sel:hover { background:var(--accent-soft); }

  .db-daynum { font-family:var(--font-display); font-size:var(--text-lg); line-height:1;
               color:var(--text-2); inline-size:26px; block-size:26px;
               display:grid; place-items:center; border-radius:50%; flex:none; }
  .db-cell.is-today .db-daynum { background:var(--amber); color:var(--surface);
                                 font-weight:500; }

  .db-ent { display:flex; align-items:center; gap:5px; min-inline-size:0;
            font-size:var(--text-xs); line-height:1.35; color:var(--text-2);
            border-radius:var(--radius-ctl); padding:1px 3px; }
  .db-ent span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .db-ent i { inline-size:7px; block-size:7px; border-radius:50%; flex:none; }
  .db-ent.is-due { color:var(--amber-ink); font-weight:500; }
  .db-ent.is-due i { background:var(--amber); }
  /* The check-in is not a job's date: indigo, and a diamond rather than a
     dot, so it reads as a milestone in the month rather than one more thing
     owed to an employer. */
  .db-ent.is-ci { color:var(--accent-ink); }
  .db-ent.is-ci i { background:var(--accent); border-radius:1px;
                    inline-size:6px; block-size:6px; transform:rotate(45deg); }
  .db-cal-row.is-ci .db-owe-mark { background:var(--accent-soft); color:var(--accent-ink); }
  .db-ent.is-late { color:var(--danger); font-weight:500; }
  .db-ent.is-late i { background:var(--danger); }
  .db-ent.is-done i { background:transparent; border:1.5px solid var(--gap-neutral);
                      inline-size:8px; block-size:8px; }
  .db-more { font-family:var(--font-mono); font-size:var(--text-xs); font-weight:500;
             color:var(--text-3); padding-inline-start:3px; }

  /* The column is the list's own row, so an action is never a page away. It
     scrolls inside itself rather than dragging the page down past an empty
     grid — the two are never the same height. */
  .db-agenda #db-ag-body { max-block-size:610px; overflow-y:auto;
                           padding-inline-end:var(--space-2);
                           margin-inline-end:calc(var(--space-2) * -1); }
  .db-ag-head { display:flex; align-items:baseline; gap:var(--space-2);
                margin-block:var(--space-4) var(--space-2); }
  .db-ag-head:first-child { margin-block-start:0; }
  .db-ag-head h3 { margin:0; font-size:var(--text-base); font-weight:500; }
  .db-ag-head span { font-family:var(--font-mono); font-size:var(--text-xs);
                     font-weight:500; text-transform:uppercase; letter-spacing:.1em;
                     color:var(--text-3); }
  .db-cal-row { grid-template-columns:auto minmax(0,1fr); gap:var(--space-3);
                align-items:start; padding:var(--space-3); }
  .db-cal-row .db-owe-mark { inline-size:32px; block-size:32px; border-radius:9px; }
  .db-cal-row .db-owe-mark svg { inline-size:16px; block-size:16px; }
  .db-cal-row .db-owe-act { grid-column:2; justify-content:flex-start;
                            margin-block-start:var(--space-2); }
  .db-cal-row .db-owe-act .btn { inline-size:auto; }
  .db-cal-row .db-owe-role { font-size:var(--text-base); display:block; }
  .db-cal-kind { font-family:var(--font-mono); font-size:var(--text-xs); font-weight:500;
                 text-transform:uppercase; letter-spacing:.1em; color:var(--text-3); }
  .db-cal-row.is-due .db-cal-kind { color:var(--amber-ink); }
  .db-cal-row.is-late .db-cal-kind { color:var(--danger); }
  .db-cal-row.is-ci .db-cal-kind { color:var(--accent-ink); }
  .db-cal-row.is-ci::before { background:var(--accent); }
  .db-cal-row.is-done::before { background:var(--track); }
  .db-cal-row.is-late::before { background:var(--danger); }
  .db-cal-row.is-done .db-owe-mark { background:var(--sunk); color:var(--text-3); }
  .db-cal-row.is-late .db-owe-mark { background:var(--danger-bg); color:var(--danger); }
  .db-cal-empty { padding:var(--space-5); background:var(--surface);
                  border:1px dashed var(--border); border-radius:var(--radius-card);
                  color:var(--text-3); font-size:var(--text-sm); }

  /* the cold start — the one state where the page teaches instead of reporting */
  .db-start { display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
              gap:var(--space-4); }
  .db-start-card { display:flex; flex-direction:column; gap:var(--space-2);
                   padding:var(--space-6); background:var(--surface);
                   border:1px solid var(--border-subtle); border-radius:var(--radius-card);
                   box-shadow:var(--lift-1); text-decoration:none; color:inherit;
                   transition:box-shadow var(--dur-1) var(--ease); }
  .db-start-card:hover { box-shadow:var(--lift-2); }
  .db-start-card.is-done { background:var(--ok-bg); border-color:transparent; }
  .db-start-card h2 { font-size:var(--text-lg); margin:0; }
  .db-start-card p { margin:0; color:var(--text-2); font-size:var(--text-sm); }
  .db-step { font-family:var(--font-mono); font-size:var(--text-xs); font-weight:500;
             text-transform:uppercase; letter-spacing:.12em; color:var(--text-3); }
  .db-start-card.is-done .db-step { color:var(--ok); }

  /* Sheds by priority, like the list: the side column drops under the main
     one first, then the rail turns vertical rather than scrolling sideways. */
  @media (max-width:1180px) {
    .db-cols { grid-template-columns:minmax(0,1fr); }
  }
  @media (max-width:860px) {
    .db-rail { grid-auto-flow:row; grid-auto-columns:auto; gap:0; }
    .db-rung { flex-direction:row; align-items:center; gap:var(--space-3);
               padding:var(--space-3) 0 var(--space-3) 28px; }
    .db-rung::before { inset-block:14px 0; inset-inline-start:5px;
                       inline-size:2px; block-size:100%; }
    /* the climb runs down the page here, so the face turns with it */
    .db-rung-face { flex-direction:row; align-items:center; flex:1;
                    align-self:stretch; margin-inline-start:0;
                    padding:var(--space-1) var(--space-3); }
    .db-rung-n { font-size:20px; min-inline-size:2.5ch; }
  }
  @media (max-width:1080px) {
    .db-cal-cols { grid-template-columns:minmax(0,1fr); }
    .db-agenda #db-ag-body { max-block-size:none; overflow:visible; }
  }
  @media (max-width:600px) {
    .db-owe { grid-template-columns:auto minmax(0,1fr); }
    .db-owe-act { grid-column:1 / -1; justify-content:flex-start; }
    .db-owe-act .btn { inline-size:auto; }
    /* the grid keeps its shape by shedding words, not by scrolling sideways */
    .db-cell { min-block-size:88px; }
    .db-ent { justify-content:center; }
    .db-ent span, .db-more { display:none; }
    .db-legend { margin-inline-start:0; }
  }
  @media (prefers-reduced-motion:reduce) {
    .db-day-bar { transition:none; }
    .db-day:hover .db-day-bar { transform:none; }
    .db-pip, .db-rung-face { transition:none; }
    .db-rung:hover .db-pip { transform:none; }
  }

  /* ============================== Companies (the hunting ground) ==============================
     A watchlist of employers you are trying to get into. Built on the jobs
     surface's vocabulary rather than a parallel one: .jl-rail draws the rungs,
     .jl-railwrap does the hover swap, .jl-ask is the amber strip, .kit-row the
     dossier's right column, .jd-back the return. What is new here is the row's
     own grid, the dossier's hero, and the openings list. */

  /* ── the omnibox: filter what you have, or name what you do not ── */
  .co-omni .co-kbd { font:400 var(--text-xs) var(--font-mono); color:var(--text-3);
                     border:1px solid var(--border); border-radius:4px; padding:1px 5px; flex:none; }
  .co-sheet { padding:var(--space-3); }
  .co-sheet-label { font:400 var(--text-xs) var(--font-mono); letter-spacing:.12em;
                    text-transform:uppercase; color:var(--text-3);
                    padding:var(--space-2) var(--space-3) var(--space-1); }
  .co-sheet-item { display:flex; align-items:center; gap:var(--space-3); width:100%;
                   text-align:start; padding:var(--space-2) var(--space-3); border:0;
                   background:none; cursor:pointer; border-radius:var(--radius-ctl);
                   color:var(--text-1); font:inherit; }
  .co-sheet-item:hover, .co-sheet-item.is-on,
  .co-sheet-item[aria-selected="true"] { background:color-mix(in srgb, var(--accent) 8%, transparent); }
  .co-sheet-item .sub { color:var(--text-3); font-size:var(--text-sm);
                        margin-inline-start:auto; }
  .co-sheet-div { height:1px; background:var(--border-subtle); margin:var(--space-2) var(--space-1); }

  /* ── a company's mark: the logo Orbit holds, or its initial ── */
  .co-mark { width:32px; height:32px; border-radius:9px; display:grid; place-items:center;
             font-weight:600; font-size:var(--text-sm); flex:none; overflow:hidden;
             position:relative; }
  /* The favicon sits over the letter; on load failure it removes itself and
     the letter shows through. Its plate is neutral on purpose — a translucent
     favicon (Meta's loop, say) over a brand-color tile reads as a smear, so
     every logo gets the same raised surface no matter what sits behind it. */
  .co-mark-logo { position:absolute; inset:0; width:100%; height:100%;
                  object-fit:contain; padding:3px; background:var(--surface-raised);
                  border:1px solid var(--border-subtle); }
  .co-mark-sm { width:26px; height:26px; border-radius:8px; font-size:var(--text-xs); }
  .co-mark-lg { width:56px; height:56px; border-radius:16px; font-size:var(--text-xl); }
  /* Between .co-mark-sm and .co-mark-lg. The profile's employer and school
     marks need to carry a legible logo without becoming the loudest thing in
     the section; 42px is also what the roles rail is measured from. Scoped by
     place as well as by class, because `ui.company_mark` picks its own class
     and the size has to hold either way — the rail is measured off it. */
  .co-mark-lg2, .pf-emp-h .co-mark, .pf-card-h > .co-mark {
    width:42px; height:42px; border-radius:12px; font-size:var(--text-base); }
  img.co-mark { object-fit:contain; background:var(--surface-raised);
                border:1px solid var(--border-subtle); padding:3px; }

  /* ── the watchlist ──
     The grid lives on .co-line, never on .co-row: the row is a container for
     the line plus an optional repair bar, and putting the template on both
     collapses the identity column (minmax(0,1fr) inside a 32px cell) to nothing. */
  .co-card { overflow:hidden; }
  .co-colhead, .co-line { display:grid; align-items:center; gap:0 var(--space-3);
                          grid-template-columns:32px 36px 168px minmax(0,1fr) 152px 116px; }
  .co-colhead { padding:var(--space-2) var(--space-4); background:var(--sunk);
                border-block-end:1px solid var(--border-subtle); }
  .co-colhead span { font:400 var(--text-xs) var(--font-mono); letter-spacing:.12em;
                     text-transform:uppercase; color:var(--text-3); }
  .co-colhead .end { text-align:end; }
  .co-line { min-height:48px; }

  .co-rows { display:flex; flex-direction:column; }
  .co-row { position:relative; min-height:64px; padding:var(--space-2) var(--space-4);
            border-block-end:1px solid var(--border-subtle);
            transition:background var(--dur-1) var(--ease); }
  .co-row:last-child { border-block-end:0; }
  .co-row::before { content:""; position:absolute; inset-block:0; inset-inline-start:0;
                    width:2px; background:var(--amber); opacity:0; }
  .co-row.is-owed::before { opacity:1; }
  .co-row.is-owed { background:var(--surface-raised); }
  .co-row { cursor:pointer; }
  .co-row:hover { background:var(--surface-raised); box-shadow:var(--lift-2,var(--shadow-float)); z-index:3; }
  /* Hovering a row colours the name rather than underlining it — the same
     treatment a role gets on the jobs list. An underline on a whole-row target
     reads as a second, narrower link inside it. */
  .co-row:hover .co-name a { color:var(--accent-ink); }
  .co-star-form { display:flex; }

  .co-ident { min-width:0; }
  .co-name { font-size:var(--text-base); font-weight:500; white-space:nowrap;
             overflow:hidden; text-overflow:ellipsis; }
  .co-name a { color:var(--text-1); text-decoration:none; }
  .co-name a:hover { color:var(--accent-ink); }
  .co-row.is-owed .co-name { font-weight:650; }
  .co-sub { font-size:var(--text-sm); color:var(--text-3); white-space:nowrap;
            overflow:hidden; text-overflow:ellipsis; }

  .co-openings { font-size:var(--text-sm); color:var(--text-2); font-variant-numeric:tabular-nums; }
  .co-openings b { color:var(--amber-ink); font-weight:650; }
  .co-bad { display:inline-flex; align-items:center; gap:5px; color:var(--danger); font-weight:600; }
  .co-bad svg { width:13px; height:13px; flex:none; }
  .co-cell-when { text-align:end; }
  .co-never { color:var(--gap-neutral); }

  /* Hover-revealed, never display:none — an element that is not rendered
     cannot take focus, so :focus-within could never fire on it (§10). */
  .co-rowacts { position:absolute; inset-inline-end:var(--space-3); top:50%;
                transform:translateY(-50%); display:flex; align-items:center; gap:2px;
                opacity:0; pointer-events:none;
                background:var(--surface-raised); padding-inline-start:var(--space-3);
                border-radius:var(--radius-pill);
                box-shadow:-14px 0 12px -6px var(--surface-raised);
                transition:opacity var(--dur-1) var(--ease); }
  .co-row:hover .co-rowacts, .co-row:focus-within .co-rowacts { opacity:1; pointer-events:auto; }
  .co-rowacts .jl-icon { width:30px; height:30px; }
  .co-rowacts .jl-icon svg { width:15px; height:15px; }
  .co-rowacts .btn-sm { height:28px; }
  .co-row.is-fixing .co-rowacts { display:none; }

  /* The card clips its own corners, so a tooltip dropped from the bottom row
     is cut in half. The bottom row hangs its tooltips above instead. */
  .co-rows .co-row:last-child .tip::after,
  .co-rows .co-row:last-child .jl-tip::after {
    top:auto; bottom:calc(100% + 6px); transform:translateX(-50%) translateY(3px); }
  .co-rows .co-row:last-child .tip:hover::after,
  .co-rows .co-row:last-child .tip:focus-visible::after { transform:translateX(-50%) translateY(0); }
  .co-rows .co-row:last-child .tip.end::after { transform:translateY(3px); }
  .co-rows .co-row:last-child .tip.end:hover::after,
  .co-rows .co-row:last-child .tip.end:focus-visible::after { transform:translateY(0); }

  /* ── repairing a broken watch, where it was noticed ── */
  .co-fixbar { display:flex; align-items:center; gap:var(--space-2); flex-wrap:wrap;
               padding:var(--space-3) 0 var(--space-2) 68px; }
  .co-fixbar .co-hint { font-size:var(--text-sm); color:var(--text-2); }
  .co-fixbar input { flex:1 1 240px; min-width:0; height:34px;
                     padding-inline:var(--space-4); border:1px solid var(--border);
                     border-radius:var(--radius-field); background:var(--surface-raised);
                     color:var(--text-1); font-size:var(--text-sm); outline:none; }
  .co-fixbar input:focus { border-color:var(--accent); }
  .co-fixbar .co-esc { flex-basis:100%; font-size:var(--text-sm); color:var(--text-3); }

  /* ── Insights (insights.html) ──
     Rebuilt 2026-09-06 over "Real-Time Stats" / "Patterns & Analysis" and
     cards badged Tier 2 / Tier 3. The page answers one question — is this
     working — so it opens with the funnel and then says what to change. */
  .in-hero { background:var(--surface); border:1px solid var(--border-subtle);
             border-radius:var(--radius-card); box-shadow:var(--lift-1);
             padding:var(--space-6); margin-bottom:var(--space-8); }
  .in-hero-top { display:flex; align-items:flex-start; gap:var(--space-6);
                 flex-wrap:wrap; margin-bottom:var(--space-6); }
  .in-headline { flex:1; min-width:260px; }
  .in-eyebrow { font:600 var(--text-xs) var(--font-mono); text-transform:uppercase;
                letter-spacing:.12em; color:var(--text-3); }
  .in-say { font:500 clamp(20px, 2.2vw, 28px)/1.25 var(--font-display);
            letter-spacing:-.02em; margin:var(--space-2) 0 0; max-width:34ch;
            text-wrap:balance; }
  .in-say b { font-weight:500; color:var(--ok); }
  .in-say b.is-weak { color:var(--amber-ink); }
  .in-ring { position:relative; display:inline-grid; place-items:center;
             width:104px; height:104px; flex:none; }
  .in-ring svg { position:absolute; inset:0; width:100%; height:100%;
                 transform:rotate(-90deg); }
  .in-ring circle { fill:none; stroke-width:5; }
  .in-ring .track { stroke:var(--track); }
  .in-ring .fill { stroke:var(--ok); stroke-linecap:round; }
  .in-ring.is-weak .fill { stroke:var(--amber); }
  .in-ring-v { position:relative; font:500 26px/1 var(--font-display);
               font-variant-numeric:tabular-nums; }
  .in-ring-v i { font-style:normal; font-size:var(--text-sm); color:var(--text-3); }

  /* Each stage is a bar whose width is its share of what was applied to, so
     the drop between two rungs is the thing you see. The old page printed the
     same numbers as a definition list. */
  .in-funnel { display:flex; flex-direction:column; gap:var(--space-3);
               border-top:1px solid var(--border-subtle); padding-top:var(--space-5); }
  .in-stage { display:grid; grid-template-columns:112px minmax(0,1fr) 62px;
              align-items:center; gap:var(--space-4); }
  .in-stage-l { font:500 var(--text-xs) var(--font-mono); text-transform:uppercase;
                letter-spacing:.1em; color:var(--text-3); }
  .in-stage-bar { height:26px; border-radius:var(--radius-ctl); background:var(--sunk);
                  position:relative; overflow:hidden; }
  .in-stage-bar i { position:absolute; inset-block:0; inset-inline-start:0; display:block;
                    border-radius:var(--radius-ctl); background:var(--accent-soft);
                    border-inline-end:2px solid var(--accent); min-width:2px; }
  .in-stage.is-end .in-stage-bar i { background:color-mix(in srgb, var(--ok) 16%, transparent);
                                     border-inline-end-color:var(--ok); }
  .in-stage-n { text-align:end; font-size:var(--text-base); font-weight:600;
                font-variant-numeric:tabular-nums; }

  .in-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(300px,1fr));
             gap:var(--space-4); }
  /* A finding is a sentence with its evidence under it, not a titled card with
     a metric bolted on. The mark says which way it cuts. */
  /* Cards in a row are one comparison, so they are the same height and end
     the same way: the freshness line is pushed to the foot of every card
     rather than following whatever length of evidence happens to be above it.
     A line that lands at three different heights across a row reads as three
     different kinds of thing. */
  .in-find { display:flex; gap:var(--space-4); padding:var(--space-5);
             background:var(--surface); border:1px solid var(--border-subtle);
             border-radius:var(--radius-card); box-shadow:var(--lift-1);
             align-items:stretch; }
  .in-mark { width:32px; height:32px; border-radius:var(--radius-ctl); flex:none;
             display:grid; place-items:center; background:var(--sunk); color:var(--text-2); }
  .in-mark svg { width:16px; height:16px; }
  .in-find.is-good .in-mark { background:var(--ok-bg); color:var(--ok); }
  .in-find.is-bad .in-mark { background:var(--amber-soft); color:var(--amber-ink); }
  .in-find-b { min-width:0; flex:1; display:flex; flex-direction:column; }

  .in-find-t { font-size:var(--text-base); font-weight:500; color:var(--text-1);
               margin:0 0 var(--space-2); text-wrap:balance; }
  .in-find-body { font-size:var(--text-sm); color:var(--text-2); margin:0 0 var(--space-2);
                  max-width:52ch; }
  .in-ev { display:flex; flex-wrap:wrap; gap:var(--space-2) var(--space-3);
           font-size:var(--text-sm); color:var(--text-3); }
  .in-ev b { color:var(--text-2); font-weight:600; font-variant-numeric:tabular-nums; }
  .in-jobs { display:flex; flex-direction:column; gap:2px; font-size:var(--text-sm); }
  .in-jobs a { color:var(--accent-ink); overflow:hidden; text-overflow:ellipsis;
               white-space:nowrap; }
  .in-bars { display:flex; flex-direction:column; gap:6px; margin-top:var(--space-3); }
  .in-mini { display:grid; grid-template-columns:minmax(0,96px) minmax(0,1fr) auto;
             align-items:center; gap:var(--space-3); font-size:var(--text-sm); }
  .in-mini-l { color:var(--text-2); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .in-mini-t { height:6px; border-radius:var(--radius-pill); background:var(--track); overflow:hidden; }
  .in-mini-t i { display:block; height:100%; border-radius:var(--radius-pill); background:var(--accent); }
  .in-mini.is-top .in-mini-t i { background:var(--ok); }
  .in-find.is-bad .in-mini.is-top .in-mini-t i { background:var(--amber); }
  .in-mini-n { text-align:end; color:var(--text-2); font-variant-numeric:tabular-nums;
               white-space:nowrap; }
  .in-mini-d { color:var(--text-3); }
  .in-find-when { margin-block-start:auto; padding-block-start:var(--space-3);
                  font:400 var(--text-xs) var(--font-mono); color:var(--text-3); }
  .in-ask { margin-top:var(--space-8); }

  @media (max-width:860px) { .in-stage { grid-template-columns:92px minmax(0,1fr) 52px; } }

  /* ══════════════════════════════════════════════════════════════════════
     ►► INTERVIEW PREP

     Today the page is: a bare <h1>Interview Prep</h1> with the role beside
     it, a progress bar and two buttons crowded into the top bar, then one
     card per question — twelve of them — each with an always-open textarea
     and an emoji share button. Twelve open composers is not a page you
     prepare with; it is a form you abandon.

     What you actually do before an interview is find the questions you
     cannot yet answer and work on those. So the page ranks by readiness,
     opens one answer at a time, and says what each question is *for*.
     ══════════════════════════════════════════════════════════════════════ */

  /* The hero. One sentence about whether you are ready, and the ring that
     says how far — the same object the Insights page uses for its rate. */
  .ip-hero{background:var(--surface);border:1px solid var(--border-subtle);
           border-radius:var(--radius-card);box-shadow:var(--lift-1);
           padding:var(--space-6);margin-bottom:var(--space-8);
           display:flex;align-items:flex-start;gap:var(--space-6);flex-wrap:wrap}
  .ip-hero-b{flex:1;min-width:280px}

  /* The role, which the page had never named. Display face at the job
     detail's hero scale, one step down — that page's title is the subject of
     everything on it, and here the subject is the preparation. */
  .ip-role{margin:var(--space-1) 0 var(--space-2);font-family:var(--font-display);
           font-weight:400;font-size:clamp(22px,2.4vw,30px);line-height:1.1;
           letter-spacing:-.016em;color:var(--text-1);text-wrap:balance;max-width:24ch}
  /* Reviews has no hero to sit in, so the heading carries its own block —
     the bar has to behave identically across the toggle. */
  .ip-head{margin-block-end:var(--space-5)}
  .ip-head .ip-role{margin-block-end:0}
  .ip-eyebrow{font:600 var(--text-xs) var(--font-mono);text-transform:uppercase;
              letter-spacing:.12em;color:var(--text-3)}
  .ip-say{font:500 clamp(20px,2.2vw,28px)/1.25 var(--font-display);letter-spacing:-.02em;
          margin:var(--space-2) 0 0;max-width:36ch}
  .ip-say b{font-weight:500;color:var(--amber-ink)}
  .ip-say em{font-style:normal;color:var(--ok)}
  .ip-when{margin:var(--space-3) 0 0;font-size:var(--text-sm);color:var(--text-3)}
  .ip-when b{color:var(--text-2);font-weight:600}
  /* The gauge, 2026-09-07. It was a 104px donut with DRAFTED under it, which
     gave one number the visual weight of the whole page and read, in his
     words, as "not beautiful at all". A strip says the same thing at a
     quarter of the size and can carry four segments where a ring carried
     one — so the split between strong, workable, thin and unread is legible
     at a glance instead of averaged into a single arc. */
  .ip-gauge{flex:0 0 240px;display:flex;flex-direction:column;gap:var(--space-2)}
  .ip-gauge-top{display:flex;align-items:baseline;justify-content:space-between;
                gap:var(--space-3)}
  .ip-gauge-n{font:500 var(--text-xl)/1 var(--font-display);color:var(--text-1);
              font-variant-numeric:tabular-nums}
  .ip-gauge-n small{font-size:var(--text-sm);color:var(--text-3);font-weight:400}
  .ip-gauge-l{font:600 var(--text-2xs) var(--font-mono);letter-spacing:.12em;
              text-transform:uppercase;color:var(--text-3)}
  .ip-bars{display:flex;gap:2px;height:8px}
  .ip-bars span{border-radius:2px;min-width:3px;
                transition:flex var(--dur-2) var(--ease)}

  .ip-ring{position:relative;display:inline-grid;place-items:center;width:104px;height:104px;flex:none}
  .ip-ring svg{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg)}
  .ip-ring circle{fill:none;stroke-width:5}
  .ip-ring .track{stroke:var(--track)}
  .ip-ring .fill{stroke:var(--ok);stroke-linecap:round;
                 transition:stroke-dasharray var(--dur-2) var(--ease)}
  .ip-ring-v{position:relative;font:500 24px/1 var(--font-display);font-variant-numeric:tabular-nums}
  .ip-ring-v i{font-style:normal;font-size:var(--text-sm);color:var(--text-3)}
  .ip-ring-l{position:absolute;bottom:-2px;font:500 var(--text-2xs) var(--font-mono);
             text-transform:uppercase;letter-spacing:.1em;color:var(--text-3)}

  /* The filter bar is a page's section nav, so it is the same object the
     companies and admin pages use — same track, same --ctl-h pills, same
     .pill-n counts. Joined by name rather than by borrowing .co-tabs, because
     a class that means "companies" on the interview page is how two things
     drift apart again. */
  /* The rhythm, tightened 2026-09-07. Three gaps were doing the work of one:
     the tab track carried a 16px bottom margin, `.sec-head` carried a 32px
     top margin, and together they put 48px of nothing between a filter and
     the list it filters. The tabs belong to the list under them. */
  .ip-tabs{margin-block-start:var(--space-5);margin-block-end:0}
  .ip-tabs + .sec-head, .ip-hero + .sec-head{margin-block-start:var(--space-5)}
  .ip-card + .sec-head{margin-block-start:var(--space-6)}
  .sec-head[data-ip-group]{margin-block-start:var(--space-5);
                           margin-block-end:var(--space-3)}
  .sec-head[data-ip-group]:first-of-type{margin-block-start:var(--space-5)}

  /* Archived: where the two buttons were, so the absence is explained in the
     place the absence is felt. */
  .ip-archived{display:inline-flex;align-items:center;gap:var(--space-2);
               height:var(--ctl-h);padding-inline:var(--space-4);
               border-radius:var(--radius-pill);border:1px dashed var(--border);
               color:var(--text-3);font:500 var(--text-sm) var(--font-ui);
               white-space:nowrap}
  .ip-archived svg{width:15px;height:15px;flex:none}

  /* Prep | Reviews. The companies pattern, because Reviews is a view of a
     preparation and not a page beside it. */
  .ip-views{flex:none}

  /* Both actions in the top bar, and both always there. A button that only
     appears once it works never teaches the rule it was waiting on — so they
     stay, dark, and say why on hover. Weight carries the hierarchy: the read
     is primary, the rewrite is the quiet one beside it. */
  /* Two controls in a header that gives them no width of their own. Without
     these the label wrapped to three lines and the star grew to fill the
     button — `.btn` sets no svg size, so an unconstrained icon takes the
     line-height it is given. */
  .ip-acts{display:flex;align-items:center;gap:var(--space-2);flex:none}
  .ip-acts form{margin:0}
  .ip-acts .btn{flex:none}
  .tipwrap{position:relative;display:inline-flex}
  .tipwrap[data-tip]:hover::after{content:attr(data-tip);position:absolute;
      inset-block-end:calc(100% + 8px);inset-inline-end:0;z-index:40;
      max-width:280px;width:max-content;background:var(--text-1);color:var(--canvas);
      font:500 var(--text-xs)/1.4 var(--font-ui);padding:6px 10px;
      border-radius:var(--radius-ctl);box-shadow:var(--lift-2)}
  .tipwrap[data-tip=""]:hover::after{content:none}

  /* ── One question, the Ledger ──
     A row that opens, not a card with a composer already in it — twelve open
     textareas is a wall, and it hides which ones are done.

     Three devices carry the state before a word of it is read: a spine down
     the leading edge in the verdict's colour, a numbered gutter that takes
     the same colour, and a dot beside the status word. The number is not
     decoration — twelve questions in a fixed order is a real sequence, and
     "I stopped at seven" is a thing you can say about one. */
  .ip-q{position:relative;border:1px solid var(--border-subtle);
        border-radius:var(--radius-card);background:var(--surface);
        box-shadow:var(--lift-1);margin-bottom:var(--space-3);overflow:hidden;
        transition:box-shadow var(--dur-1) var(--ease),
                   border-color var(--dur-1) var(--ease)}
  .ip-q:hover{box-shadow:var(--lift-2)}
  .ip-q.is-open{box-shadow:var(--lift-2);border-color:var(--border)}
  .ip-q[hidden]{display:none!important}

  /* The spine. State as the card's own shape, which survives being scanned
     at speed in a way a word in the second line does not. */
  .ip-q::before{content:"";position:absolute;inset-block:0;inset-inline-start:0;
                width:3px;background:var(--track)}
  .ip-q.is-done::before{background:var(--accent)}
  .ip-q.is-strong::before{background:var(--ok)}
  .ip-q.is-workable::before{background:var(--amber)}
  .ip-q.is-thin::before{background:var(--danger)}

  /* The head is a div carrying a toggle, not one big button: the Story Tags
     are controls of their own, and a button inside a button is invalid HTML —
     the parser closes the outer one at the first nested control, which threw
     the chevron and the chips out of the row entirely. */
  .ip-q-head{display:grid;grid-template-columns:34px minmax(0,1fr) 26px;
             align-items:start;gap:var(--space-3);
             padding:var(--space-4) var(--space-4) var(--space-4) var(--space-5)}
  .ip-q-main{min-width:0;cursor:pointer}
  .ip-q-idx{font:500 var(--text-sm)/26px var(--font-mono);color:var(--text-3);
            text-align:center;letter-spacing:.02em}
  .ip-q.is-done .ip-q-idx{color:var(--accent-ink)}
  .ip-q.is-strong .ip-q-idx{color:var(--ok)}
  .ip-q.is-workable .ip-q-idx{color:var(--amber-ink)}
  .ip-q.is-thin .ip-q-idx{color:var(--danger)}

  /* + opens, − closes. The page's two glyphs, and the reason the chevron
     went: a chevron is a direction, and these cards are not going anywhere. */
  .ip-dis{width:26px;height:26px;border-radius:50%;flex:none;justify-self:end;
          display:grid;place-items:center;border:1px solid var(--border);
          background:var(--surface);color:var(--text-3);cursor:pointer;
          font:400 17px/1 var(--font-ui);padding:0;
          transition:color var(--dur-1) var(--ease),
                     border-color var(--dur-1) var(--ease),
                     background var(--dur-1) var(--ease)}
  .ip-q:hover .ip-dis{color:var(--text-1);border-color:var(--text-3)}
  .ip-q.is-open .ip-dis{background:var(--accent-soft);border-color:transparent;
                        color:var(--accent-ink)}
  .ip-dis:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

  .ip-q-t{display:block;font-size:var(--text-base);font-weight:500;color:var(--text-1);
          line-height:1.5;text-wrap:balance}
  .ip-q-sub{margin-top:6px;display:flex;flex-wrap:wrap;gap:var(--space-2);
            align-items:center;font-size:var(--text-sm);color:var(--text-3)}
  .ip-q-status{display:inline-flex;align-items:center;gap:6px;flex:none}
  .ip-q-dot{width:7px;height:7px;border-radius:50%;background:var(--track);flex:none}
  .ip-q.is-done .ip-q-dot{background:var(--accent)}
  .ip-q.is-strong .ip-q-dot{background:var(--ok)}
  .ip-q.is-workable .ip-q-dot{background:var(--amber)}
  .ip-q.is-thin .ip-q-dot{background:var(--danger)}
  .ip-tags{display:flex;flex-wrap:wrap;gap:6px;margin-inline-start:auto}

  /* What you actually wrote, on the row you are scanning. A closed card used
     to say only that an answer existed, which made the list unscannable —
     you had to open twelve to remember which one was which. */
  .ip-q-echo{display:block;margin-top:5px;font-size:var(--text-sm);
             color:var(--text-3);font-style:italic;overflow:hidden;
             text-overflow:ellipsis;white-space:nowrap;max-width:80ch}
  .ip-q.is-open .ip-q-echo{display:none}

  /* A story tag the generator suggested. It is a pointer into the story
     bank, so it is a link — today they are printed by string-replacing the
     JSON brackets out of the raw column, which is why a tag containing a
     comma comes out as two. */
  /* Every property a UA gives a <button> is reset here. The chip used to be an
     <a>; as a control it inherited a border, a background and a font size and
     came out as a tall bordered lozenge that broke the row's rhythm. */
  .ip-tag{display:inline-flex;align-items:center;gap:5px;height:22px;
          padding-inline:var(--space-2);border:0;border-radius:var(--radius-pill);
          background:var(--sunk);color:var(--text-2);
          font:500 var(--text-xs)/1 var(--font-ui);text-decoration:none;
          max-width:min(320px,100%);white-space:nowrap;overflow:hidden;
          text-overflow:ellipsis;cursor:pointer;
          transition:background var(--dur-1) var(--ease),color var(--dur-1) var(--ease)}
  .ip-tag svg{width:11px;height:11px;opacity:.7;flex:none}
  button.ip-tag:hover{background:var(--accent-soft);color:var(--accent-ink)}
  button.ip-tag:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
  /* A tag that resolves to nothing is not a control. Banks written before
     2026-09-07 carry titles the model invented, which open nothing — offering
     them as chips and answering the click with an error is worse than saying
     plainly that they are only labels. */
  .ip-tag.is-plain{cursor:default;opacity:.66}

  .ip-q-body{padding:0 var(--space-5) var(--space-4) calc(var(--space-5) + 34px + var(--space-3))}
  .ip-q-body[hidden]{display:none!important}

  /* STAR as four labelled prompts, not a sentence inside a placeholder.
     Placeholder text vanishes the moment you type, which is exactly when
     you need the structure. */
  .ip-star{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));
           gap:var(--space-2);margin-bottom:var(--space-3)}
  .ip-star span{font-size:var(--text-sm);color:var(--text-3);padding-inline-start:var(--space-3);
                border-inline-start:2px solid var(--border-subtle)}
  .ip-star b{display:block;font:600 var(--text-2xs) var(--font-mono);text-transform:uppercase;
             letter-spacing:.1em;color:var(--text-2)}
  .ip-compose textarea{width:100%;min-height:150px;display:block}
  /* One row. Share used to sit in a second form underneath, which gave a
     toggle nobody presses the same vertical weight as the button that saves
     your work — and pushed Save a whole block away from the answer. */
  /* Shallower at both ends. The buttons follow the textarea — nothing
     separates them — and 20px of air under a row of two small controls
     read as an empty band across the card. */
  .ip-q-foot{display:flex;align-items:center;gap:var(--space-2);flex-wrap:wrap;
             margin-top:var(--space-2)}
  /* Pushes both controls to the end and takes no height when it is empty,
     which is its resting state — the row's mark and the toast already say
     "saved", so only the unsaved warning speaks here. */
  .ip-state{margin-inline-end:auto}
  .ip-state:empty{margin-inline-end:auto}
  .ip-foot-end{margin-inline-start:auto;display:flex;gap:var(--space-2);align-items:center}
  .ip-state{display:inline-flex;align-items:center;gap:5px;font-size:var(--text-sm);
            font-weight:500;color:var(--text-3)}
  .ip-state svg{width:13px;height:13px;flex:none}
  .ip-state.is-dirty{color:var(--amber-ink)}
  .ip-state.is-saved{color:var(--ok)}
  .ip-share-btn svg{width:14px;height:14px}
  .ip-q-foot .ip-push{margin-inline-start:auto;display:flex;gap:var(--space-2);align-items:center}

  /* The Stronger Version, asked for on one answer. Raised off the feedback
     block it sits in, because it is the thing you copy out. */
  .ip-fb-acts{display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap;
              margin-top:var(--space-3)}
  .ip-strong{margin-top:var(--space-3);padding:var(--space-4);
             background:var(--surface-raised);border:1px solid var(--border-subtle);
             border-radius:var(--radius-ctl)}
  .ip-strong[hidden]{display:none!important}
  .ip-strong-h{font:600 var(--text-2xs) var(--font-mono);letter-spacing:.12em;
               text-transform:uppercase;color:var(--text-3);margin-bottom:var(--space-3)}
  .ip-strong p{font-size:var(--text-sm);color:var(--text-2);line-height:1.65;
               margin-bottom:var(--space-3)}
  .ip-strong p:last-child{margin-bottom:0}
  .ip-strong b{display:block;font:600 var(--text-2xs) var(--font-mono);
               letter-spacing:.12em;text-transform:uppercase;color:var(--text-1);
               margin-bottom:2px}

  /* ── The Story dialog ──
     A Story Tag used to be a link to the whole stories page, which threw away
     the answer you were half-way through writing in order to show you one
     paragraph. It opens here instead, from what is already stored — a popup
     that waits on a model is a worse popup than one showing the narrative. */
  .ip-dlg{border:0;padding:0;background:transparent;max-width:min(560px,92vw);width:100%}
  .ip-dlg::backdrop{background:var(--scrim)}
  .dlg{background:var(--surface-raised);border:1px solid var(--border);
       border-radius:var(--radius-card);box-shadow:var(--lift-3);overflow:hidden}
  .dlg-head{display:flex;gap:var(--space-4);align-items:flex-start;
            padding:var(--space-5) var(--space-5) var(--space-4);
            border-block-end:1px solid var(--border-subtle)}
  .dlg-ic{width:32px;height:32px;border-radius:9px;flex:none;display:grid;
          place-items:center;background:var(--atlas-experience);color:#fff}
  .dlg-ic svg{width:16px;height:16px}
  .dlg-t{display:block;font:500 var(--text-lg)/1.35 var(--font-display);color:var(--text-1)}
  .dlg-s{display:block;font:400 var(--text-xs) var(--font-mono);letter-spacing:.1em;
         text-transform:uppercase;color:var(--text-3);margin-top:3px}
  .dlg-x{margin-inline-start:auto;width:28px;height:28px;border-radius:50%;border:0;
         background:var(--sunk);color:var(--text-2);cursor:pointer;display:grid;
         place-items:center;flex:none}
  .dlg-x:hover{background:var(--border-subtle);color:var(--text-1)}
  .dlg-x svg{width:14px;height:14px}
  .dlg-body{padding:var(--space-5);max-height:56vh;overflow-y:auto}
  /* Holds one chip now, not four STAR cells: the dialog shows the claim and
     its figure, and STAR lives on the Stronger Version (ADR-0023). Grid still,
     so the chip hugs its own width instead of stretching the row. */
  .dlg-star{display:grid;gap:var(--space-3);margin-bottom:var(--space-4);
            justify-items:start}
  .dlg-star:empty{display:none}
  .dlg-star div{border-inline-start:2px solid var(--border);
                padding-inline-start:var(--space-4)}
  .dlg-star b{display:block;font:600 var(--text-2xs) var(--font-mono);letter-spacing:.12em;
              color:var(--text-3);margin-bottom:2px}
  .dlg-star p{font-size:var(--text-sm);color:var(--text-2);line-height:1.6;margin:0}
  .dlg-narr{font-size:var(--text-sm);color:var(--text-2);line-height:1.65;
            white-space:pre-wrap}
  .dlg-foot{display:flex;gap:var(--space-3);align-items:center;flex-wrap:wrap;
            padding:var(--space-4) var(--space-5);background:var(--surface);
            border-block-start:1px solid var(--border-subtle)}
  .dlg-foot .btn:last-child{margin-inline-start:auto}

  .ip-empty{padding:var(--space-12) var(--space-5);text-align:center}
  .ip-empty-t{font:500 var(--text-xl) var(--font-display);margin-bottom:var(--space-2)}
  .ip-empty p{color:var(--text-2);max-width:56ch;margin:0 auto var(--space-5)}

  
         padding:var(--space-3) var(--space-5);font-size:var(--text-sm);box-shadow:var(--lift-3);
         pointer-events:auto;animation:tin var(--dur-2) var(--ease)}
  @keyframes tin{from{opacity:0;transform:translateY(8px)}}

  /* ══════════════════════════════════════════════════════════════════════
     ►► THE LANDING — what /interview-prep shows from the sidebar.
     Today it 303s to whichever job you touched last, or to the pipeline.
     You never choose, and you are never told a choice was made for you —
     so opening it twice in a week can land you on two different jobs with
     no explanation. Prep is per-job; the page has to ask which.
     ══════════════════════════════════════════════════════════════════════ */
  /* The landing is the jobs list with different columns. `.jl-row`,
     `.jl-cell`, `.jl-match`, `.jl-co`, `.jl-title`, `.jl-rail` and
     `.jl-rowacts` carry the hover lift, the rail swapping for its stage name
     and the actions sliding in — all of it already written and already right.
     Only the template is ours, scoped to `.ip-card` so it wins on specificity
     without touching the shared one.

     Five columns where the jobs list has seven: no checkbox and no star,
     because you do not batch-operate on an interview. */
  /* The role, in bold. `.jl-title` inherits its weight, so it rendered at
     400 beside a company name at 600 — the one thing on the row you are
     actually choosing between was the lightest text in it. */
  .ip-row .jl-title{font-weight:600}
  .ip-card .jl-colhead, .ip-card .jl-row{
      grid-template-columns:56px 184px minmax(0,1fr) 140px 64px}

  /* The ring the scores wear, holding a count instead of a percentage — three
     is the whole scale here, and "33%" would say nothing a person can act on.
     Empty goes red because it is the state that stops you. */
  .ip-left{--score-ring-pct:0}
  .ip-left.is-high{--score-ring-color:var(--ok)}
  .ip-left.is-mid{--score-ring-color:var(--amber)}
  .ip-left.is-low{--score-ring-color:var(--danger)}
  .ip-left .score-ring-value{font-variant-numeric:tabular-nums}

  @media (max-width:1180px){
    .ip-card .jl-colhead, .ip-card .jl-row{
        grid-template-columns:56px 160px minmax(0,1fr) 120px 64px}
  }
  @media (max-width:960px){
    .ip-card .jl-colhead, .ip-card .jl-row{
        grid-template-columns:56px 160px minmax(0,1fr) 64px}
    .ip-card .jl-colhead .c-rail, .ip-card .jl-row > .c-rail{display:none}
  }
  @media (max-width:720px){
    .ip-card .jl-colhead, .ip-card .jl-row{
        grid-template-columns:56px minmax(0,1fr) 64px}
    .ip-card .jl-colhead .c-co, .ip-card .jl-row > .c-co{display:none}
  }

  .ip-pick{display:flex;flex-direction:column}
  .ip-job{display:grid;grid-template-columns:34px minmax(0,1fr) 128px 148px 128px;
          align-items:center;gap:var(--space-4);padding:var(--space-3) var(--space-4);
          border-block-end:1px solid var(--border-subtle);cursor:pointer;
          background:none;border-inline:0;border-block-start:0;width:100%;
          text-align:start;font:inherit;color:inherit;
          transition:background var(--dur-1) var(--ease)}
  .ip-job:last-child{border-block-end:0}
  .ip-job:hover{background:var(--surface-raised)}
  .ip-job-b{min-width:0}
  .ip-job-t{display:block;font-size:var(--text-base);font-weight:500;color:var(--text-1);
            overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .ip-job-s{display:block;font-size:var(--text-sm);color:var(--text-3);
            overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  /* A pill, like every other stage in the product, rather than a dot and a
     word floating in a column of its own. */
  .ip-stage{display:inline-flex;align-items:center;gap:6px;justify-self:start;
            padding:3px 10px;border-radius:var(--radius-pill);background:var(--sunk);
            font-size:var(--text-xs);font-weight:600;color:var(--text-2)}
  .ip-stage i{width:6px;height:6px;border-radius:50%;background:var(--gap-neutral);flex:none}
  .ip-stage.is-now{background:var(--ok-bg);color:var(--ok)}
  .ip-stage.is-now i{background:var(--ok)}

  /* A meter rather than a sentence. Twelve rows each saying "9/12 answered"
     in prose is a wall; a track under the number gives the column one
     baseline to read down, and it draws even when empty so the rows line up. */
  .ip-meter{display:flex;flex-direction:column;gap:5px;min-width:0}
  .ip-meter-n{font-size:var(--text-xs);color:var(--text-2);
              font-variant-numeric:tabular-nums;white-space:nowrap}
  .ip-meter-n b{color:var(--text-1);font-weight:600}
  .ip-meter-track{height:4px;border-radius:var(--radius-pill);background:var(--track);
                  overflow:hidden}
  .ip-meter-fill{display:block;height:100%;background:var(--accent);
                 border-radius:var(--radius-pill)}
  .ip-meter-fill.is-full{background:var(--ok)}

  /* A real button at the end of the row, not a link dressed as one. The row
     is still the target — the button is what says the row is actionable. */
  .ip-job-go{justify-self:end}
  .ip-job-go .btn{pointer-events:none}
  .ip-job-prep{font-size:var(--text-sm);color:var(--text-3);font-variant-numeric:tabular-nums}
  .ip-job-prep b{color:var(--text-2);font-weight:600}
  .ip-job.is-owed{background:color-mix(in srgb,var(--amber-soft) 40%,transparent)}
  .ip-colhead{display:grid;grid-template-columns:34px minmax(0,1fr) 128px 148px 128px;
              gap:var(--space-4);padding:var(--space-2) var(--space-4);background:var(--sunk);
              border-block-end:1px solid var(--border-subtle)}
  .ip-colhead span{font:400 var(--text-xs) var(--font-mono);letter-spacing:.12em;
                   text-transform:uppercase;color:var(--text-3)}

  /* ══════════════════════════════════════════════════════════════════════
     ►► THE EVALUATION.
     Drafting an answer and knowing whether it is any good are different
     things, and only the first exists today. A verdict per answer, and a
     readiness figure that weighs quality rather than counting boxes — an
     interview is not passed by having typed twelve times.

     It never runs on a page view: it is a model call, and this project
     already keeps that rule for role suggestions. You ask for it.
     ══════════════════════════════════════════════════════════════════════ */
  .ip-verdict{display:inline-flex;align-items:center;height:20px;padding-inline:var(--space-2);
              border-radius:var(--radius-pill);font:600 var(--text-xs) var(--font-ui)}
  .ip-verdict.is-strong{background:var(--ok-bg);color:var(--ok)}
  .ip-verdict.is-workable{background:var(--amber-soft);color:var(--amber-ink)}
  .ip-verdict.is-thin{background:var(--danger-bg);color:var(--danger)}

  /* The coach's read, in the card, under the answer it is about. Not a
     modal and not a separate page: feedback you have to go and find is
     feedback you act on once. */
  .ip-fb{margin-top:var(--space-4);padding:var(--space-4);border-radius:var(--radius-card);
         background:var(--sunk);border:1px solid var(--border-subtle)}
  .ip-fb-head{display:flex;align-items:center;gap:var(--space-3);margin-bottom:var(--space-3)}
  .ip-fb-who{font:600 var(--text-xs) var(--font-mono);text-transform:uppercase;
             letter-spacing:.12em;color:var(--text-3)}
  .ip-fb-when{margin-inline-start:auto;font:400 var(--text-xs) var(--font-mono);color:var(--text-3)}
  .ip-fb-line{display:flex;gap:var(--space-3);margin-bottom:var(--space-2);font-size:var(--text-sm);
              color:var(--text-2);line-height:1.55}
  .ip-fb-line:last-child{margin-bottom:0}
  .ip-fb-line b{color:var(--text-1);font-weight:600}

  /* The two glyphs. A tick and a warning triangle were two unrelated drawings
     that happened to mean good and bad; + and − are one pair, read as a pair,
     and they are the same pair the disclosure uses — one language for the
     whole page rather than an icon per idea. */
  .ip-glyph{flex:none;width:20px;height:20px;border-radius:50%;display:grid;
            place-items:center;margin-top:1px;
            font:600 14px/1 var(--font-ui);font-variant-numeric:tabular-nums}
  .ip-glyph.is-plus{background:var(--ok-bg);color:var(--ok)}
  .ip-glyph.is-minus{background:var(--danger-bg);color:var(--danger)}

  .ip-ring.is-workable .fill{stroke:var(--amber)}
  .ip-ring.is-thin .fill{stroke:var(--danger)}
  /* Under the strip now, not under a ring, so it is tighter and its swatches
     are squares that echo the segments they name. */
  .ip-legend{display:flex;gap:var(--space-3);flex-wrap:wrap;
             font-size:var(--text-xs);color:var(--text-2)}
  .ip-legend span{display:inline-flex;align-items:center;gap:5px}
  .ip-legend i{width:7px;height:7px;border-radius:2px;flex:none}
  .ip-legend b{font-variant-numeric:tabular-nums}


  /* ══════════════════════════════════════════════════════════════════════
     ►► THE REVIEWS PAGE — every read Orbit has done for one Job.
     It exists because nothing here used to be kept: the verdict table was
     UNIQUE(question_id, user_id), so a second read overwrote the first and
     the one fact worth knowing — that you moved thirty points in nine days —
     was destroyed each time it was earned.
     ══════════════════════════════════════════════════════════════════════ */
  /* Why there is no next read yet, in the place you go looking for one. */
  .rv-locked{display:flex;align-items:center;gap:var(--space-3);
             padding:var(--space-3) var(--space-4);margin-bottom:var(--space-5);
             border:1px dashed var(--border);border-radius:var(--radius-card);
             font-size:var(--text-sm);color:var(--text-3)}
  .rv-locked svg{width:15px;height:15px;flex:none}

  .rv-cheer{display:flex;flex-wrap:wrap;gap:var(--space-2) var(--space-4);
            align-items:baseline;padding:var(--space-5) var(--space-6);
            border-radius:var(--radius-card);background:var(--accent-soft);
            margin-bottom:var(--space-4)}
  .rv-cheer-t{flex:1 1 260px;font:500 var(--text-lg)/1.35 var(--font-display);
              color:var(--text-1);text-wrap:balance}
  .rv-cheer-s{flex:1 1 100%;font-size:var(--text-sm);color:var(--text-2)}

  /* A spine, not a plain stack. These are one story told in order, and the
     line is what says the gap between two cards is time. */
  .rv{display:flex;gap:var(--space-5);align-items:stretch;margin-bottom:var(--space-4)}
  .rv-spine{flex:0 0 12px;display:flex;flex-direction:column;align-items:center;
            padding-block-start:22px}
  .rv-dot{width:11px;height:11px;border-radius:50%;background:var(--accent);
          border:2px solid var(--canvas);flex:none}
  .rv.is-old .rv-dot{background:var(--gap-neutral)}
  .rv-line{flex:1 1 auto;width:1px;background:var(--border);margin-block-start:4px}
  .rv-card{flex:1 1 auto;min-width:0;padding:var(--space-5)}
  .rv-head{display:flex;align-items:baseline;gap:var(--space-3);flex-wrap:wrap;
           margin-bottom:var(--space-4)}
  .rv-when{font-size:var(--text-base);font-weight:600;color:var(--text-1)}
  .rv-ago{font-size:var(--text-xs);color:var(--text-3)}
  .rv-delta{margin-inline-start:auto;font-size:var(--text-xs);font-weight:700;
            padding:3px 10px;border-radius:var(--radius-pill);
            font-variant-numeric:tabular-nums}
  .rv-delta.is-up{background:var(--ok-bg);color:var(--ok)}
  .rv-delta.is-down{background:var(--danger-bg);color:var(--danger)}
  .rv-delta.is-flat{background:var(--sunk);color:var(--text-2)}
  .rv-grid{display:grid;grid-template-columns:150px minmax(0,1fr);gap:var(--space-6);
           align-items:start}
  .rv-score{display:flex;flex-direction:column;gap:var(--space-2)}
  .rv-pct{font:500 34px/1 var(--font-display);color:var(--text-1);
          font-variant-numeric:tabular-nums}
  .rv-pct small{font-size:var(--text-base);color:var(--text-3)}
  .rv-band{font:600 var(--text-2xs) var(--font-mono);letter-spacing:.12em;
           text-transform:uppercase;color:var(--text-3)}
  .rv-sum p{font-size:var(--text-sm);color:var(--text-2);line-height:1.65;
            margin:0 0 var(--space-3)}
  .rv-sum p:last-child{margin-bottom:0}
  .rv-sum b{display:block;font:600 var(--text-2xs) var(--font-mono);letter-spacing:.12em;
            text-transform:uppercase;margin-bottom:3px}
  .rv-sum .is-held b{color:var(--ok)}
  .rv-sum .is-gap b{color:var(--amber-ink)}
  .rv-sum .is-next b{color:var(--accent-ink)}

  /* The twelve verdicts, closed. The summary is what you came for; these are
     what you check it against. */
  .rv-more{margin-top:var(--space-4);border-block-start:1px solid var(--border-subtle);
           padding-block-start:var(--space-3)}
  .rv-more summary{cursor:pointer;font-size:var(--text-sm);color:var(--text-3);
                   list-style:none}
  .rv-more summary::-webkit-details-marker{display:none}
  .rv-more summary::before{content:"▸ ";color:var(--text-3)}
  .rv-more[open] summary::before{content:"▾ "}
  .rv-more summary:hover{color:var(--text-1)}
  .rv-list{display:flex;flex-direction:column;gap:var(--space-4);
           margin-block-start:var(--space-4)}
  .rv-item{display:flex;gap:var(--space-3);align-items:flex-start}
  .rv-item-b{min-width:0}
  .rv-item-q{font-size:var(--text-sm);color:var(--text-1);line-height:1.5;
             margin-bottom:var(--space-2)}
  /* The same glyph pair the prep view uses — these two lines are where it
     started, and it now runs the whole feature. */
  .rv-item-l,.rv-item-m{font-size:var(--text-sm);color:var(--text-2);line-height:1.55;
                        display:flex;gap:var(--space-2);align-items:flex-start}
  .rv-item-l .ip-glyph,.rv-item-m .ip-glyph{width:18px;height:18px;font-size:13px}

  @media (max-width:720px){
    .rv-grid{grid-template-columns:1fr;gap:var(--space-4)}
    .ip-gauge{flex:1 1 100%}
  }

  /* ── Contacts (contacts.html) ──
     Rebuilt 2026-09-06 over a five-column table with a red Delete in every
     row. A grid with fixed tracks, like the profile shelf, so the company,
     the last word and the actions line up down the whole list instead of
     drifting with the length of a name. */
  .ct-card { overflow:hidden; }
  .ct-bar { display:flex; align-items:center; gap:var(--space-3); flex-wrap:wrap;
            margin-bottom:var(--space-4); }
  .ct-colhead, .ct-row { display:grid; align-items:center; gap:0 var(--space-4);
                         grid-template-columns:36px minmax(0,1.4fr) minmax(0,1fr) 170px 132px; }
  .ct-colhead { padding:var(--space-2) var(--space-4); background:var(--sunk);
                border-block-end:1px solid var(--border-subtle); }
  .ct-colhead span { font:400 var(--text-xs) var(--font-mono); letter-spacing:.12em;
                     text-transform:uppercase; color:var(--text-3); }
  .ct-rows { display:flex; flex-direction:column; }
  .ct-row { position:relative; min-height:56px; padding:var(--space-2) var(--space-4);
            border-block-end:1px solid var(--border-subtle);
            transition:background var(--dur-1) var(--ease); }
  .ct-row:last-child { border-block-end:0; }
  .ct-row[hidden] { display:none !important; }
  .ct-row::before { content:""; position:absolute; inset-block:0; inset-inline-start:0;
                    width:2px; background:var(--amber); opacity:0; }
  .ct-row.is-owed::before { opacity:1; }
  .ct-row.is-owed { background:var(--surface-raised); }
  .ct-row:hover { background:var(--surface-raised); box-shadow:var(--lift-2); z-index:3; }
  .ct-b { min-width:0; }
  .ct-name { display:block; font-size:var(--text-base); font-weight:500; color:var(--text-1);
             text-decoration:none; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .ct-row:hover .ct-name { color:var(--accent-ink); }
  .ct-row.is-owed .ct-name { font-weight:650; }
  .ct-sub { display:block; font-size:var(--text-sm); color:var(--text-3);
            overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .ct-co { min-width:0; font-size:var(--text-sm); overflow:hidden;
           text-overflow:ellipsis; white-space:nowrap; }
  .ct-co a { color:var(--text-2); text-decoration:none; }
  .ct-co a:hover { color:var(--accent-ink); text-decoration:underline; text-underline-offset:2px; }
  .ct-last { font-size:var(--text-sm); color:var(--text-3); min-width:0;
             font-variant-numeric:tabular-nums; }
  .ct-last b { display:block; font-weight:500; color:var(--text-2);
               overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .ct-row.is-owed .ct-last b { color:var(--amber-ink); font-weight:600; }
  .ct-never { color:var(--gap-neutral); }

  /* Hover-revealed, never display:none — an element that is not rendered
     cannot take focus, so :focus-within could never fire (§10). */
  .ct-acts { display:flex; align-items:center; justify-content:flex-end; gap:2px;
             opacity:0; pointer-events:none;
             transition:opacity var(--dur-1) var(--ease); }
  .ct-row:hover .ct-acts, .ct-row:focus-within .ct-acts { opacity:1; pointer-events:auto; }
  .ct-del { display:flex; }
  .ct-ico { display:inline-grid; place-items:center; width:30px; height:30px; flex:none;
            padding:0; border:1px solid transparent; border-radius:var(--radius-pill);
            background:transparent; color:var(--text-3); cursor:pointer; text-decoration:none;
            transition:background var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
  .ct-ico:hover { background:var(--accent-soft); color:var(--accent-ink); text-decoration:none; }
  .ct-ico.is-danger:hover { background:var(--danger-bg); color:var(--danger); }
  .ct-ico svg { width:15px; height:15px; display:block; }

  /* The card clips its corners, so the bottom row hangs its tooltips above —
     same fix the companies rows take. */
  .ct-rows .ct-row:last-child .tip::after {
    top:auto; bottom:calc(100% + 6px); transform:translateX(-50%) translateY(3px); }
  .ct-rows .ct-row:last-child .tip.end::after { transform:translateY(3px); }
  .ct-rows .ct-row:last-child .tip.end:hover::after { transform:translateY(0); }

  .ct-empty { padding:var(--space-12) var(--space-5); text-align:center; }
  .ct-empty-t { font:500 var(--text-xl) var(--font-display); margin-bottom:var(--space-2); }
  .ct-empty p { color:var(--text-2); max-width:56ch; margin:0 auto var(--space-5); }
  .ct-fields { display:flex; flex-direction:column; gap:var(--space-3); }
  .ct-modal-acts { display:flex; gap:var(--space-2); justify-content:flex-end;
                   margin-top:var(--space-5); }

  @media (max-width:900px) {
    .ct-colhead, .ct-row { grid-template-columns:36px minmax(0,1fr) 132px; }
    .ct-co, .ct-colhead span:nth-child(3), .ct-colhead span:nth-child(4) { display:none; }
  }

  /* ── the quiet shelf: records, not commitments ── */
  /* It follows the watchlist card directly, so it carries its own top
     separation — without one the section reads as spillover from the table. */
  .co-shelf-head { margin-block-start:var(--space-8); }
  /* The expander is a chip in the row, not an underlined link in the section
     head. It was the latter, which put the control at the far right of a
     heading, several hundred pixels from the thing it revealed. */
  .co-shelf-toggle { cursor:pointer; color:var(--text-2); font:500 var(--text-sm) var(--font-ui);
                     border-style:dashed; padding-inline:var(--space-4); }
  .co-shelf-toggle:hover { color:var(--text-1); border-color:var(--border);
                           background:var(--canvas); }
  .co-shelf-toggle:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
  /* `display:contents` — the extra items are one group in the markup so a
     single `hidden` reveals them, but they must still flow as siblings of the
     first row rather than as a block that breaks the line. */
  .co-shelf-more { display:contents; }
  .co-shelf-note { max-width:66ch; margin:0; color:var(--text-2); font-size:var(--text-sm); }
  .co-shelf { display:flex; flex-wrap:wrap; gap:var(--space-3) var(--space-4);
              margin-block-start:var(--space-5); }
  .co-shelf-item { display:flex; align-items:center; gap:var(--space-3);
                   padding:var(--space-2) var(--space-3) var(--space-2) var(--space-2);
                   border:1px solid var(--border-subtle); border-radius:var(--radius-pill);
                   background:var(--surface); }
  .co-shelf-b { display:flex; flex-direction:column; line-height:1.3; }
  .co-shelf-name { font-size:var(--text-sm); color:var(--text-1); text-decoration:none; }
  .co-shelf-name:hover { text-decoration:underline; text-underline-offset:2px; }
  .co-shelf-sub { font-size:var(--text-xs); color:var(--text-3); }
  .co-shelf-item .btn-sm { height:26px; padding-inline:var(--space-3); font-size:var(--text-xs); }

  .co-empty { padding:var(--space-12) var(--space-5); }
  .co-note { max-width:66ch; margin:var(--space-4) 0 0; color:var(--text-2);
             font-size:var(--text-sm); }
  .co-bar-title { align-self:center; font-size:var(--text-bar-title); font-weight:500;
                  font-family:var(--font-display);
                  color:var(--text-1); line-height:1; }
  /* The count is a separate word from the label — "Openings 5", not
     "Openings5". A margin rather than a gap on .pill, which is shared with the
     List|Board group where a gap would do nothing but risk something. */
  .pill-n { margin-inline-start:6px; font-variant-numeric:tabular-nums;
            font-size:var(--text-xs); color:var(--text-3); }
  .pill.is-active .pill-n { color:var(--text-2); }
  .pill-n.owed { color:var(--amber-ink); font-weight:650; }
  /* On the tab you are already looking at, the count stops calling: amber is
     what makes you go somewhere, and you have gone. It then matches the count
     on the tab beside it, which is the alignment being asked for. */
  .pill.is-active .pill-n.owed { color:var(--text-2); font-weight:600; }

  /* ── the dossier: the job page's shape, at a company's scale ── */
  .co-dos { --co-gutter:clamp(16px,3vw,40px);
            margin:calc(var(--space-5) * -1); margin-block-end:0; }
  .co-hero { padding:var(--space-8) var(--co-gutter) var(--space-6);
             background:var(--surface); border-block-end:1px solid var(--border-subtle); }
  .co-hero-in, .co-dos-body { max-width:1180px; margin-inline:auto; }
  .co-hero-top { display:flex; align-items:flex-start; gap:var(--space-5); }
  .co-hero-id { min-width:0; }
  .co-hero-name { font-size:clamp(26px,3.1vw,40px); font-weight:500; line-height:1.08;
                  letter-spacing:-.02em; margin:0; }
  .co-hero-tag { color:var(--text-2); max-width:62ch; margin:var(--space-2) 0 0;
                 font-size:var(--text-lg); }
  .co-hero-meta { display:flex; flex-wrap:wrap; gap:var(--space-2) var(--space-5);
                  margin-block-start:var(--space-4); font-size:var(--text-sm); color:var(--text-2); }
  .co-exlink { display:inline-flex; align-items:center; gap:5px; color:var(--accent-ink); }
  /* An external-link glyph is punctuation, not an illustration: without a size
     it renders at the SVG's own 24px. */
  .co-exlink svg { width:12px; height:12px; flex:none; opacity:.7; }

  /* The rail at hero scale, every rung named — .jd-ascent's structure. Naming
     only the ends leaves six unnamed pips and prints the current stage twice
     whenever it happens to be the first. */
  .co-ascent { display:flex; align-items:flex-start; max-width:760px;
               margin-block-start:var(--space-6); }
  .co-astage { flex:1; min-width:0; display:flex; flex-direction:column;
               align-items:flex-start; gap:var(--space-2); }
  .co-astage:last-child { flex:none; }
  .co-astage-line { display:flex; align-items:center; width:100%; }
  .co-apip { width:9px; height:9px; border-radius:50%; background:var(--track); flex:none; }
  .co-alink { height:1.5px; flex:1; background:var(--track); }
  .co-astage.done .co-apip, .co-astage.done .co-alink { background:var(--accent-ink); }
  .co-astage.done.ms .co-apip { background:var(--amber); box-shadow:0 0 0 4px var(--amber-soft); }
  .co-astage.here .co-apip { width:13px; height:13px; margin:-2px 0;
                             background:var(--surface); border:3.5px solid var(--accent-ink); }
  .co-astage.watch .co-apip { background:var(--canvas); border:1.5px dashed var(--gap-neutral); }
  .co-astage.watch.here .co-apip { background:var(--surface); border:3.5px solid var(--gap-neutral); }
  .co-astage.watch.here .co-astage-lbl { color:var(--text-2); }
  .co-astage.here.ms .co-apip { border-color:var(--amber); box-shadow:0 0 0 5px var(--amber-soft); }
  .co-astage-lbl { font-size:var(--text-sm); color:var(--text-3); line-height:1.3;
                   padding-inline-end:var(--space-3); }
  .co-astage.done .co-astage-lbl { color:var(--text-2); }
  .co-astage.here .co-astage-lbl { color:var(--text-1); font-weight:600; }

  /* The narrative goes left, the actionable kit goes right (§6). */
  .co-dos-body { display:grid; grid-template-columns:minmax(0,1fr) 336px;
                 gap:var(--space-8); align-items:start;
                 padding:var(--space-8) var(--co-gutter) var(--space-10); }
  .co-sec { margin-block-end:var(--space-8); }
  .co-prose { color:var(--text-2); max-width:62ch; margin:0; }
  .co-tags { display:flex; flex-wrap:wrap; gap:var(--space-2); margin-block-start:var(--space-3); }
  .co-tag { font-size:var(--text-sm); color:var(--text-2); background:var(--sunk);
            border-radius:var(--radius-pill); padding:3px var(--space-3); }
  .co-kv { display:grid; grid-template-columns:auto minmax(0,1fr);
           gap:var(--space-2) var(--space-5); font-size:var(--text-sm); margin:0; }
  .co-kv dt { color:var(--text-3); }
  .co-kv dd { margin:0; color:var(--text-1); }
  .co-more { margin-block-start:var(--space-3); }

  .co-kit { position:sticky; top:calc(var(--header-h) + var(--space-4));
            display:flex; flex-direction:column; gap:var(--space-4); }
  .co-kit-card { background:var(--surface); border:1px solid var(--border-subtle);
                 border-radius:var(--radius-card); padding:var(--space-4); }
  .co-kit-head { display:flex; align-items:baseline; margin-block-end:var(--space-3); }

  /* ── the trail of interactions ── */
  .co-trail { position:relative; padding-inline-start:var(--space-6); }
  .co-trail::before { content:""; position:absolute; inset-block:6px 6px;
                      inset-inline-start:5px; width:1px; background:var(--track); }
  .co-trail-i { position:relative; padding-block:var(--space-3); }
  .co-trail-i::before { content:""; position:absolute;
                        inset-inline-start:calc(var(--space-6) * -1 + 2px);
                        top:calc(var(--space-3) + 6px); width:7px; height:7px;
                        border-radius:50%; background:var(--surface);
                        border:1px solid var(--accent); }
  .co-trail-i.them::before { border-color:var(--gap-neutral); }
  .co-trail-when { font:400 var(--text-xs) var(--font-mono); letter-spacing:.1em;
                   text-transform:uppercase; color:var(--text-3); }
  .co-trail-t { font-size:var(--text-base); margin-block-start:2px; }
  .co-trail-s { font-size:var(--text-sm); color:var(--text-2); max-width:62ch; }
  .co-trail-o { margin-block-start:var(--space-2); }
  .co-trail-card { padding:var(--space-4) var(--space-5); }

  /* ── openings ── */
  .co-op { display:grid; grid-template-columns:44px minmax(0,1fr) 210px 170px 176px;
           align-items:center; gap:var(--space-3);
           padding:var(--space-3) var(--space-4);
           border-block-end:1px solid var(--border-subtle);
           /* The reason bar anchors to the row, so the row is its frame. */
           position:relative; }
  .co-op:last-child { border-block-end:0; }
  .co-op:hover { background:var(--surface-raised); }
  .co-op-b { min-width:0; }
  .co-op-t { font-size:var(--text-base); font-weight:500; }
  .co-op-t a { color:var(--text-1); text-decoration:none; }
  .co-op-t a:hover { text-decoration:underline; text-underline-offset:2px; }
  .co-op-s, .co-op-loc, .co-op-dept { font-size:var(--text-sm); color:var(--text-3); }
  /* Two lines at most. A posting listed in five cities was making its row
     three times the height of its neighbours to say so. */
  .co-op-loc, .co-op-dept { display:-webkit-box; -webkit-line-clamp:2;
                            -webkit-box-orient:vertical; overflow:hidden; }
  .co-op-acts { display:flex; gap:var(--space-2); justify-content:flex-end; }
  .co-op-form { display:flex; }
  /* The reason bar replaces the row's right side in place: Import steps
     aside, the input takes its ground, and Dismiss-it plus a small ×
     complete the trade. Anchored inside the row — the old popover hung
     below it, over the neighbouring rows, and past the card's edge it
     dragged a horizontal scrollbar onto the page. */
  .co-op-dismiss-form { position:absolute; z-index:20;
                        inset-inline-end:var(--space-4); top:50%;
                        transform:translateY(-50%);
                        display:flex; gap:var(--space-2); align-items:center;
                        background:var(--surface-raised);
                        border:1px solid var(--border-subtle);
                        border-radius:var(--radius-ctl);
                        box-shadow:var(--lift-3,var(--shadow-float));
                        padding:var(--space-2);
                        animation:co-dismiss-in .16s var(--ease); }
  .co-op-dismiss-form[hidden] { display:none; }
  .co-op.is-dismissing .co-op-import,
  .co-op.is-dismissing .co-op-dismiss-toggle { visibility:hidden; }
  .co-op-reason { width:220px; }
  .co-op-cancel { flex:none; border:0; background:none; cursor:pointer;
                  padding:0 var(--space-1); font:inherit; font-size:var(--text-lg);
                  line-height:1; color:var(--text-3); }
  .co-op-cancel:hover { color:var(--text-1); }
  @keyframes co-dismiss-in {
    from { opacity:0; transform:translateY(-50%) translateX(10px); }
  }

  .co-belowbar { display:flex; align-items:center; gap:var(--space-3); width:100%;
                 padding:var(--space-4); border:0; background:none; cursor:pointer;
                 border-block-start:1px solid var(--border-subtle);
                 color:var(--text-3); font:inherit; font-size:var(--text-sm); text-align:start; }
  .co-belowbar:hover { background:var(--sunk); color:var(--text-1); }
  .co-belowbar svg { width:15px; height:15px; flex:none;
                     transition:transform var(--dur-2) var(--ease); }
  .co-belowbar[aria-expanded="true"] svg { transform:rotate(90deg); }
  .co-belowbar-cta { margin-inline-start:auto; text-decoration:underline;
                     text-underline-offset:2px; }
  /* One control, two labels: it says what pressing it will do, so it has to
     change once pressed. */
  .co-belowbar[aria-expanded="true"] .co-belowbar-show,
  .co-belowbar[aria-expanded="false"] .co-belowbar-hide { display:none; }

  /* ── the dismissed shelf ── */
  .co-dismissed-head { margin-block-start:var(--space-8); }
  .co-dismissed-toggle { border:1px solid var(--border-subtle);
                         border-radius:var(--radius-md); margin-block-end:var(--space-2); }
  /* A dismissed row reads quieter than a live one: it is a record of a
     decision, not an offer. The Restore button is the only full-contrast
     thing on it. */
  .co-op.is-dismissed { opacity:.75; }
  .co-op.is-dismissed .co-op-t a { color:var(--text-2); }
  .co-dismissed-reason { color:var(--text-3); font-style:italic; }

  /* ── people ── */
  .co-person { display:flex; align-items:center; gap:var(--space-3);
               padding:var(--space-3) var(--space-4);
               border-block-end:1px solid var(--border-subtle); }
  .co-person:last-child { border-block-end:0; }
  .co-person .kit-row-t a { color:var(--text-1); text-decoration:none; }
  .co-person .kit-row-t a:hover { text-decoration:underline; text-underline-offset:2px; }
  .co-person-mail { font-size:var(--text-sm); color:var(--text-3); }

  /* ── shedding, by priority rather than by scrolling sideways (§6) ── */
  @media (max-width: 1180px) {
    .co-dos-body { grid-template-columns:minmax(0,1fr); }
    .co-kit { position:static; }
  }
  @media (max-width: 1024px) {
    .co-colhead, .co-line { grid-template-columns:32px 36px minmax(0,1fr) 152px 116px; }
    .co-col-rail, .co-cell-rail { display:none; }
    .co-fixbar { padding-inline-start:0; }
  }
  @media (max-width: 860px) {
    .co-colhead, .co-line { grid-template-columns:32px 36px minmax(0,1fr) 152px; }
    .co-col-when, .co-cell-when { display:none; }
    .co-op { grid-template-columns:44px minmax(0,1fr) 176px; }
    .co-op-t { white-space:normal; }
    .co-op-loc, .co-op-dept { display:none; }
    .co-astage-lbl { font-size:var(--text-xs); }
  }
  @media (max-width: 767px) {
    .co-hero-top { flex-wrap:wrap; }
    .co-ascent { overflow-x:auto; }
  }

  /* ============================== Daily scan (admin_scan.html) ==============================
     The roster is a list of employers, not of users, because one visit to a
     careers page serves everyone watching it. The row's leading control is a
     state (is this scanned?) rather than a command, so it is a checkbox. */
  .scan-tiles { display:grid; grid-template-columns:repeat(auto-fit, minmax(160px, 1fr));
                gap:var(--space-3); margin-block-end:var(--space-4); }
  .scan-colhead, .scan-row { display:grid; align-items:center; gap:0 var(--space-3);
                             grid-template-columns:40px minmax(0,1fr) 108px 84px 280px 110px; }
  .scan-colhead { padding:var(--space-2) var(--space-4); background:var(--sunk);
                  border-block-end:1px solid var(--border-subtle); }
  .scan-colhead span { font:400 var(--text-xs) var(--font-mono); letter-spacing:.12em;
                       text-transform:uppercase; color:var(--text-3); }
  .scan-colhead .end { text-align:end; }
  .scan-row { padding:var(--space-3) var(--space-4);
              border-block-end:1px solid var(--border-subtle); }
  .scan-row:last-child { border-block-end:0; }
  .scan-row:hover { background:var(--surface-raised); }
  /* Off the scan: legible, but plainly not participating. */
  .scan-row.is-off .scan-name, .scan-row.is-off .scan-url,
  .scan-row.is-off .scan-watchers { opacity:.5; }
  .scan-check { display:flex; align-items:center; cursor:pointer; }
  .scan-check input { accent-color:var(--accent); width:16px; height:16px; cursor:pointer; margin:0; }
  .scan-name { font-size:var(--text-base); font-weight:500; min-width:0;
               overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .scan-watchers { font-size:var(--text-sm); color:var(--text-2);
                   font-variant-numeric:tabular-nums; }
  .scan-url { font-size:var(--text-sm); min-width:0; overflow:hidden;
              text-overflow:ellipsis; white-space:nowrap; }
  .scan-when { font-size:var(--text-sm); color:var(--text-3); text-align:end;
               font-variant-numeric:tabular-nums; }
  .scan-none { color:var(--gap-neutral); }
  /* The edit affordance stays out of the way until the row is approached, but
     is never display:none — an unrendered control cannot take focus, so
     :focus-within could never fire and the keyboard path would be dead. */
  .scan-url-edit { display:flex; align-items:center; gap:var(--space-2);
                   flex-wrap:wrap; min-width:0; }
  .scan-url-btn { flex:0 0 auto; border:0; background:none; cursor:pointer;
                  padding:0 2px; font:inherit; font-size:var(--text-xs);
                  color:var(--accent); opacity:0; transition:opacity .12s ease; }
  .scan-row:hover .scan-url-btn, .scan-url-btn:focus-visible { opacity:1; }
  .scan-url-btn:disabled { cursor:default; opacity:.6; }
  /* Inline correction: the cell swaps its link for an input, so the edit
     never blocks the page the way a prompt() dialog did. */
  .scan-url-form { display:flex; align-items:center; gap:var(--space-2); min-width:0; }
  .scan-url-input { flex:1 1 auto; min-width:0; font:inherit; font-size:var(--text-sm);
                    padding:2px 6px; border:1px solid var(--border-subtle);
                    border-radius:var(--radius-sm); background:var(--bg-1);
                    color:var(--text-1); }
  /* What the background check on a just-saved URL is doing, or concluded. */
  .scan-verify { flex-basis:100%; font-size:var(--text-xs); color:var(--text-2); }
  .scan-verify.is-pending { color:var(--text-3); }
  .scan-verify.is-pending::after { content:"…"; }
  .scan-save { display:flex; align-items:center; gap:var(--space-3);
               flex-wrap:wrap; margin-block:var(--space-4) var(--space-2); }
  .scan-save-note { max-width:78ch; margin:0 0 var(--space-8); }

  /* The coverage report: which watched boards Orbit cannot read, and what
     they run on. Same row rhythm as the roster so the page reads as one page. */
  .scan-gap-head, .scan-gap { display:grid; align-items:center; gap:0 var(--space-3);
                              grid-template-columns:minmax(0,1fr) 190px 100px 140px; }
  .scan-gap-head { padding:var(--space-2) var(--space-4); background:var(--sunk);
                   border-block-end:1px solid var(--border-subtle); }
  .scan-gap-head span { font:400 var(--text-xs) var(--font-mono); letter-spacing:.12em;
                        text-transform:uppercase; color:var(--text-3); }
  .scan-gap-head .end { text-align:end; }
  .scan-gap { padding:var(--space-3) var(--space-4); font-size:var(--text-sm);
              border-block-end:1px solid var(--border-subtle); }
  .scan-gap:last-child { border-block-end:0; }
  @media (max-width: 1024px) {
    .scan-gap-head, .scan-gap { grid-template-columns:minmax(0,1fr) 150px 80px; }
    .scan-gap-head span:nth-child(4), .scan-gap .scan-when { display:none; }
  }

  /* The state a row is in tonight. Three values, and `on-demand` sits visually
     between the other two on purpose: it is neither running nor switched off. */
  .scan-state { display:flex; align-items:center; min-width:0; }
  .scan-row.is-off .scan-state { opacity:.7; }
  /* How many of this row's watchers are paying, shown only when that differs
     from the total — if everyone watching is paid, the Nightly badge already
     says so and `1·1` is just noise. Tucked onto the count rather than given a
     column: it qualifies that number, it is not a second one. */
  .scan-paid { color:var(--accent); margin-inline-start:2px; }
  .scan-row.is-off .scan-paid { color:inherit; }

  /* Run-now. A card rather than a bare button because the sentence beside it
     is the point: it says what pressing will do, including doing nothing. */
  .scan-run { display:flex; align-items:center; justify-content:space-between;
              gap:var(--space-4); flex-wrap:wrap;
              padding:var(--space-4); margin-block-end:var(--space-6); }
  .scan-run-text { min-width:0; flex:1 1 280px; }
  .scan-run-title { font-size:var(--text-base); font-weight:500; }
  .scan-run-body { margin-block-start:var(--space-1); font-size:var(--text-sm);
                   color:var(--text-2); max-width:62ch; }
  .scan-run-act { flex:0 0 auto; margin:0; }

  .scan-log-head, .scan-log { display:grid; align-items:center; gap:0 var(--space-3);
                              grid-template-columns:180px minmax(0,1fr) 90px 90px 90px; }
  .scan-log-head { padding:var(--space-2) var(--space-4); background:var(--sunk);
                   border-block-end:1px solid var(--border-subtle); }
  .scan-log-head span { font:400 var(--text-xs) var(--font-mono); letter-spacing:.12em;
                        text-transform:uppercase; color:var(--text-3); }
  .scan-log { padding:var(--space-3) var(--space-4); font-size:var(--text-sm);
              border-block-end:1px solid var(--border-subtle); }
  .scan-log:last-child { border-block-end:0; }
  .scan-log-when { color:var(--text-2); font-variant-numeric:tabular-nums; }
  .scan-log-user { color:var(--text-3); min-width:0; overflow:hidden;
                   text-overflow:ellipsis; white-space:nowrap; }

  @media (max-width: 1024px) {
    .scan-colhead, .scan-row { grid-template-columns:40px minmax(0,1fr) 108px 84px 110px; }
    .scan-url, .scan-colhead span:nth-child(5) { display:none; }
    .scan-run { align-items:flex-start; }
    .scan-log-head, .scan-log { grid-template-columns:150px minmax(0,1fr) 70px 70px 70px; }
  }


  /* ════════════════════════════════════════════════════════════════════════
     Profile import (.pi-*) — the mouth of the funnel

     Five numbered cards became one corridor: bring it in, Orbit reads it, you
     approve what lands. The rail across the hero is the motif at this scale,
     and its last pip is amber because approving is the milestone — and the
     promise: nothing enters the record before it lights.

     Reuses rather than reinvents: .back-link and .pf-title in the bar,
     .pf-menuwrap + .menu for the history, .jl-ask for the amber band, .btn
     for every control. Only what this page genuinely adds lives here.
     ════════════════════════════════════════════════════════════════════════ */

  .pi { --pi-gutter:clamp(16px, 3vw, 40px); }

  /* Full-bleed hero inside a padded shell — the job page's trick. */
  .pi-hero { margin:calc(var(--space-5) * -1); margin-bottom:0;
             padding:var(--space-8) var(--pi-gutter) var(--space-6);
             background:var(--surface);
             border-bottom:1px solid var(--border-subtle); }
  .pi-hero-in, .pi-body { max-width:1180px; margin-inline:auto; }
  .pi-h { font-size:clamp(24px, 2.6vw, 34px); line-height:1.12; max-width:20ch;
          margin:var(--space-3) 0 var(--space-2); }
  .pi-lede { color:var(--text-2); max-width:62ch; font-size:var(--text-lg);
             line-height:1.5; margin:0; }

  /* ── the ascent rail, import scale ── */
  .pi-rail { display:flex; align-items:flex-start; list-style:none; padding:0;
             margin:var(--space-8) 0 0; max-width:720px; }
  .pi-stage { flex:1; display:flex; flex-direction:column; gap:var(--space-2);
              min-width:0; }
  .pi-pipline { display:flex; align-items:center; }
  .pi-pip { width:11px; height:11px; flex:none; border-radius:var(--radius-pill);
            background:var(--track); border:2px solid var(--track);
            transition:background var(--dur-2) var(--ease),
                       border-color var(--dur-2) var(--ease),
                       width var(--dur-2) var(--ease),
                       box-shadow var(--dur-2) var(--ease); }
  .pi-link { flex:1; height:2px; border-radius:2px; background:var(--track);
             transition:background var(--dur-2) var(--ease); }
  .pi-stage:last-child .pi-link { display:none; }
  .pi-stage.is-done .pi-pip { background:var(--accent); border-color:var(--accent); }
  .pi-stage.is-done .pi-link { background:var(--accent); }
  .pi-stage.is-here .pi-pip { width:22px; background:var(--accent);
                              border-color:var(--accent);
                              box-shadow:0 0 0 4px var(--accent-soft); }
  /* Dashed until it is reached: the rung you have not climbed. */
  .pi-stage.is-target .pi-pip { background:transparent; border-color:var(--amber);
                                border-style:dashed; }
  .pi-stage.is-target.is-lit .pi-pip { width:22px; background:var(--amber);
                                       border-color:var(--amber); border-style:solid;
                                       box-shadow:0 0 0 4px var(--amber-soft); }
  .pi-sname { font-size:var(--text-sm); font-weight:500; color:var(--text-3);
              padding-inline-end:var(--space-4); }
  .pi-stage.is-done .pi-sname, .pi-stage.is-here .pi-sname { color:var(--text-1); }
  .pi-stage.is-target.is-lit .pi-sname { color:var(--amber-ink); }
  .pi-swhat { font-size:var(--text-sm); color:var(--text-3); line-height:1.45;
              padding-inline-end:var(--space-5); }

  /* What the record already holds, so a refresh reads as a refresh. */
  .pi-state { display:flex; flex-wrap:wrap; align-items:center;
              gap:var(--space-2) var(--space-3); margin-top:var(--space-6);
              padding-top:var(--space-5); border-top:1px solid var(--border-subtle);
              color:var(--text-2); font-size:var(--text-sm); }
  .pi-count { display:inline-flex; align-items:baseline; gap:5px; padding:3px 10px;
              border-radius:var(--radius-pill); background:var(--sunk);
              color:var(--text-1); font-weight:500; }
  .pi-count b { font:600 var(--text-base)/1 var(--font-ui); }
  .pi-state-t { max-width:70ch; line-height:1.5; }

  /* ── body: the ways in on the left, what a read is after on the right ── */
  .pi-body { display:grid; grid-template-columns:minmax(0,1fr) 336px;
             gap:var(--space-8); align-items:start;
             padding:var(--space-8) var(--pi-gutter) var(--space-12); }
  .pi-side { position:sticky; top:calc(var(--header-h) + var(--space-4));
             display:grid; gap:var(--space-4); }
  .pi-sec { margin:var(--space-8) 0 var(--space-4); }

  /* The one way in that always works. Paste and upload are the same act — the
     server extracts text either way — so they are one panel, not two options
     numbered as if one followed the other. */
  .pi-card { background:var(--surface); border:1px solid var(--border-subtle);
             border-radius:var(--radius-card); padding:var(--space-6);
             box-shadow:var(--lift-1); }
  .pi-card-t { font:500 var(--text-xl)/1.2 var(--font-display); letter-spacing:-.015em; }
  .pi-card-s { color:var(--text-2); font-size:var(--text-sm); max-width:56ch;
               margin:var(--space-2) 0 var(--space-4); }

  .pi-drop { border:1.5px dashed var(--border); border-radius:var(--radius-card);
             background:var(--sunk);
             transition:border-color var(--dur-1) var(--ease),
                        background var(--dur-1) var(--ease); }
  .pi-drop.is-over { border-color:var(--accent); background:var(--accent-soft); }
  .pi-drop:focus-within { border-style:solid; border-color:var(--accent);
                          box-shadow:0 0 0 3px var(--accent-soft); }
  .pi-ta { display:block; width:100%; min-height:158px; resize:vertical;
           padding:var(--space-4) var(--space-5); background:transparent; border:0;
           border-radius:var(--radius-card); color:var(--text-1);
           font:400 var(--text-base)/1.6 var(--font-ui); }
  .pi-ta:focus { outline:none; }
  .pi-dropfoot { display:flex; align-items:center; gap:var(--space-3); flex-wrap:wrap;
                 padding:var(--space-3) var(--space-4);
                 border-top:1px solid var(--border-subtle); }
  .pi-file { display:inline-flex; align-items:center; gap:var(--space-2); height:30px;
             padding:0 var(--space-4); border-radius:var(--radius-pill);
             border:1px solid var(--border); background:var(--surface);
             font-size:var(--text-sm); font-weight:500; cursor:pointer; }
  .pi-file:hover { background:var(--surface-raised); box-shadow:var(--lift-1); }
  .pi-file > .pf-ic { width:14px; height:14px; }
  .pi-formats { font:400 var(--text-xs)/1 var(--font-mono); letter-spacing:.06em;
                color:var(--text-3); }
  .pi-wc { margin-inline-start:auto; font:400 var(--text-xs)/1 var(--font-mono);
           color:var(--text-3); }
  .pi-go { display:flex; align-items:center; gap:var(--space-4); flex-wrap:wrap;
           margin-top:var(--space-4); }
  .pi-note { font-size:var(--text-sm); color:var(--text-3); max-width:46ch; }

  /* ── the other doors: the kit row, with the catch said out loud ── */
  .pi-shelf { display:grid; gap:var(--space-2); }
  .pi-row { display:grid; grid-template-columns:38px minmax(0,1fr) auto;
            align-items:center; gap:var(--space-4);
            padding:var(--space-4) var(--space-5); background:var(--surface);
            border:1px solid var(--border-subtle); border-radius:var(--radius-card);
            transition:box-shadow var(--dur-1) var(--ease),
                       border-color var(--dur-1) var(--ease); }
  .pi-row:hover { box-shadow:var(--lift-1); border-color:var(--border); }
  .pi-row-ic { width:38px; height:38px; display:grid; place-items:center;
               border-radius:10px; background:var(--sunk); color:var(--text-2); }
  .pi-row-ic svg { width:19px; height:19px; }
  .pi-row-b { min-width:0; }
  .pi-row-t { display:flex; align-items:center; gap:var(--space-2); flex-wrap:wrap;
              font-size:var(--text-base); font-weight:600; }
  .pi-row-s { color:var(--text-2); font-size:var(--text-sm); line-height:1.45;
              margin:1px 0 0; }
  /* A door that only works sometimes says so before it is opened, not after
     it fails. */
  /* Block, not flex: the catch is a sentence that can contain a link, and a
     flex row would lay its clauses out as separate items — the link ends up
     on a line of its own with the words either side of it stranded. */
  .pi-catch { display:block; margin-top:6px; font-size:var(--text-xs);
              color:var(--text-3); line-height:1.5; }
  .pi-cic { width:12px; height:12px; flex:none; vertical-align:-2px;
            margin-inline-end:5px; }
  .pi-row-a { display:flex; align-items:center; gap:var(--space-2); }
  .pi-urlrow { grid-column:1 / -1; display:flex; gap:var(--space-2);
               margin-top:var(--space-3); }
  .pi-urlrow .input { flex:1; min-width:0; }
  .pi-grab { cursor:grab; }

  /* ── the right rail ── */
  .pi-aside { background:var(--surface); border:1px solid var(--border-subtle);
              border-radius:var(--radius-card); padding:var(--space-5); }
  .pi-want { list-style:none; margin:var(--space-3) 0 0; padding:0; }
  .pi-want li { display:grid; grid-template-columns:18px minmax(0,1fr) auto;
                align-items:center; gap:var(--space-3); padding:7px 0;
                font-size:var(--text-sm); border-bottom:1px solid var(--border-subtle); }
  .pi-want li:last-child { border-bottom:0; }
  .pi-want svg { width:15px; height:15px; color:var(--text-3); }
  .pi-have { font:500 var(--text-sm)/1 var(--font-mono); color:var(--text-2); }
  .pi-have.is-zero { color:var(--text-3); }
  .pi-aside-foot { margin-top:var(--space-4); padding-top:var(--space-4);
                   border-top:1px solid var(--border-subtle);
                   font-size:var(--text-sm); color:var(--text-2); line-height:1.5; }
  .pi-cost { display:flex; align-items:center; gap:var(--space-2);
             margin:var(--space-3) 0 0; font:400 var(--text-xs)/1.4 var(--font-mono);
             color:var(--text-3); }
  .pi-cost .pf-ic { width:13px; height:13px; }

  /* ══ the reading panel ══
     A model call behind a plain POST hands back a blank tab and looks like
     nothing happened. This draws the two requests it is actually making, which
     is why it can say which one stopped. */
  .pi-read { position:relative; overflow:hidden;
             background:var(--surface); border:1px solid var(--border-subtle);
             border-radius:var(--radius-card); padding:var(--space-6);
             box-shadow:var(--lift-2); }
  /* The unmistakable one. A bar across the head of the panel, sweeping for as
     long as the read runs: the signal everyone already reads as "this is
     working, wait". The steps below it say what is being waited for; this
     only has to be seen from across the room. It is indeterminate on purpose
     — a percentage here would be invented. */
  .pi-read.is-working::before { content:""; position:absolute; inset-block-start:0;
                                inset-inline:0; height:3px; background:var(--sunk); }
  .pi-read.is-working::after { content:""; position:absolute; inset-block-start:0;
                               inset-inline-start:0; width:38%; height:3px;
                               border-radius:0 3px 3px 0;
                               background:linear-gradient(90deg,
                                 color-mix(in srgb, var(--accent) 25%, transparent),
                                 var(--accent));
                               animation:pi-run 1.35s var(--ease) infinite; }
  @keyframes pi-run { 0% { transform:translateX(-100%); }
                      100% { transform:translateX(285%); } }
  @media (prefers-reduced-motion: reduce) {
    .pi-read.is-working::after { animation:none; width:100%;
                                 opacity:.5; border-radius:0; }
  }
  .pi-read-h { display:flex; align-items:center; gap:var(--space-3); flex-wrap:wrap; }
  .pi-read-t { font:500 var(--text-xl)/1.2 var(--font-display); letter-spacing:-.015em; }
  .pi-clock { margin-inline-start:auto; font:500 var(--text-sm)/1 var(--font-mono);
              color:var(--text-2); }
  .pi-src { color:var(--text-2); font-size:var(--text-sm); margin:var(--space-2) 0 0; }
  .pi-steps { list-style:none; margin:var(--space-6) 0 0; padding:0; }
  .pi-step { display:grid; grid-template-columns:22px minmax(0,1fr) auto;
             align-items:center; gap:var(--space-3); padding:var(--space-3) 0;
             color:var(--text-3); border-bottom:1px solid var(--border-subtle); }
  .pi-step:last-child { border-bottom:0; }
  .pi-step .m { width:22px; height:22px; display:grid; place-items:center;
                border-radius:var(--radius-pill); border:1.5px solid var(--track);
                color:var(--text-3); }
  .pi-step .m svg { width:13px; height:13px; }
  .pi-step.is-done { color:var(--text-1); }
  .pi-step.is-done .m { border-color:var(--accent); background:var(--accent);
                        color:var(--on-accent); }
  .pi-step.is-now { color:var(--text-1); font-weight:500; }
  .pi-step.is-now .m { border-color:var(--accent); animation:pi-pulse 1.6s var(--ease) infinite; }
  /* A read of a whole career runs past a minute, and a still page at 1:20
     looks exactly like a stalled one. The running step carries a track that
     keeps moving: it claims no percentage — there is none to claim — it only
     says the work is alive. */
  .pi-step.is-now { position:relative; }
  .pi-step.is-now::after { content:""; position:absolute; inset-inline:0; bottom:-1px;
                           height:2px; border-radius:2px; overflow:hidden;
                           background:linear-gradient(90deg,
                             transparent 0%, var(--accent) 35%, var(--accent) 65%,
                             transparent 100%);
                           background-size:42% 100%; background-repeat:no-repeat;
                           animation:pi-sweep 1.9s var(--ease) infinite; }
  @keyframes pi-sweep { 0% { background-position:-45% 0; }
                        100% { background-position:145% 0; } }
  @media (prefers-reduced-motion: reduce) {
    .pi-step.is-now .m { animation:none; }
    .pi-step.is-now::after { animation:none; background-position:0 0;
                             background-size:100% 100%; opacity:.35; }
  }
  .pi-step.is-bad { color:var(--text-1); }
  .pi-step.is-bad .m { border-color:var(--danger); background:var(--danger); color:#fff; }
  .pi-step-m { font:400 var(--text-xs)/1 var(--font-mono); color:var(--text-3); }
  @keyframes pi-pulse { 0%,100% { box-shadow:0 0 0 0 var(--accent-soft); }
                        50% { box-shadow:0 0 0 6px var(--accent-soft); } }
  .pi-read-foot { display:flex; align-items:center; gap:var(--space-3); flex-wrap:wrap;
                  margin-top:var(--space-6); padding-top:var(--space-4);
                  border-top:1px solid var(--border-subtle);
                  font-size:var(--text-sm); color:var(--text-3); }
  .pi-fail { border-color:color-mix(in srgb, var(--danger) 35%, var(--border-subtle)); }
  .pi-fail-why { margin:var(--space-4) 0 0; padding:var(--space-4); border-radius:10px;
                 background:var(--danger-bg); color:var(--text-1);
                 font-size:var(--text-sm); line-height:1.5; }

  /* ══ what landed ══ — the amber band is .jl-ask, sitting inside the card
     rather than above a list, so it loses its own margin and rounded top. */
  .pi-landed { background:var(--surface); border:1px solid var(--border-subtle);
               border-radius:var(--radius-card); overflow:hidden;
               box-shadow:var(--lift-2); }
  .pi-landed-b { padding:var(--space-6); }
  .pi-found { display:flex; flex-wrap:wrap; gap:var(--space-2); margin-top:var(--space-5); }
  .pi-found span { display:inline-flex; align-items:baseline; gap:6px;
                   padding:6px 12px; border-radius:var(--radius-pill);
                   background:var(--sunk); font-size:var(--text-sm); }
  .pi-found b { font:600 var(--text-lg)/1 var(--font-ui); }
  .pi-found span.is-new { background:var(--accent-soft); color:var(--accent-ink); }
  .pi-found .badge { margin-inline-start:2px; }
  .jl-ask.pi-ask { margin:0; border:0; border-top:1px solid
                   color-mix(in srgb, var(--amber) 30%, transparent);
                   border-radius:0; }
  .pi-ask .pi-ask-t { max-width:52ch; line-height:1.45; margin:0; }
  /* Inside a card the band is narrow enough that the two controls wrap
     onto their own line. They stay at the end of it — a Discard that
     falls to the start reads as a third thing rather than the quiet
     half of one decision. */
  .pi-ask .jl-ask-acts { margin-inline-start:auto; }
  /* The same strip, above the body rather than inside a card, when
     something sent the reader here to fill the record first. */
  .jl-ask.pi-sent { max-width:1180px; margin:var(--space-6) auto 0; }

  /* ── earlier imports, in the bar ── */
  .pi-n { font:500 var(--text-xs)/1 var(--font-mono); color:var(--text-3);
          background:var(--sunk); border-radius:var(--radius-pill); padding:2px 6px; }
  .pi-hist { width:340px; }
  .pi-hist-row { display:grid; grid-template-columns:26px minmax(0,1fr) auto;
                 align-items:center; gap:var(--space-3);
                 padding:var(--space-2) var(--space-3); border-radius:10px; }
  .pi-hist-row:hover { background:color-mix(in srgb, var(--text-1) 5%, transparent); }
  .pi-hist-ic { width:26px; height:26px; display:grid; place-items:center;
                border-radius:var(--radius-ctl); background:var(--sunk);
                color:var(--text-2); }
  .pi-hist-ic svg { width:15px; height:15px; }
  .pi-hist-b { min-width:0; display:flex; flex-direction:column; gap:1px; }
  .pi-hist-t { font-size:var(--text-sm); font-weight:500; overflow:hidden;
               text-overflow:ellipsis; white-space:nowrap; }
  .pi-hist-m { font:400 var(--text-xs)/1.4 var(--font-mono); color:var(--text-3); }
  /* Revealed by hover *and* focus-within, and click-through until it is —
     the same contract as .jl-rowacts. An invisible button that still takes
     clicks is worse than one that is not there. */
  .pi-hist-re { opacity:0; pointer-events:none;
                transition:opacity var(--dur-1) var(--ease); }
  .pi-hist-row:hover .pi-hist-re,
  .pi-hist-row:focus-within .pi-hist-re { opacity:1; pointer-events:auto; }
  .pi-menu-foot { margin:var(--space-2) 0 0; padding:var(--space-3);
                  border-top:1px solid var(--border-subtle);
                  font-size:var(--text-xs); color:var(--text-3); line-height:1.5; }

  /* ── shed the right rail first, then the rail goes vertical ── */
  @media (max-width: 1180px) {
    .pi-body { grid-template-columns:minmax(0,1fr); }
    .pi-side { position:static; }
  }
  @media (max-width: 860px) {
    .pi-rail { flex-direction:column; gap:var(--space-4); max-width:none; }
    .pi-stage { flex:none; }
    .pi-link { display:none; }
    .pi-row { grid-template-columns:38px minmax(0,1fr); row-gap:var(--space-3); }
    .pi-row-a { grid-column:2; }
  }


  /* The one hero chip this page adds: the count that is worth acting on. */
  .pi-count.is-new { background:var(--accent-soft); color:var(--accent-ink); }
  .rv-ic { width:15px; height:15px; flex:none; }

  /* ══════════════════════════════════════════════════════════════════════════
     .rv — the review page. Same vocabulary as the import page it follows:
     the hero, the rail, the shelf row, the amber band. What it adds is the
     decision itself.
     ══════════════════════════════════════════════════════════════════════════ */


  /* A section per kind, headed by the eyebrow the whole app uses. */
  .rv-sec{margin-block-end:var(--space-8)}
  .rv-head{display:flex;align-items:center;gap:var(--space-3);margin-block-end:var(--space-3)}
  .rv-head .sec-rest{margin-inline-start:auto;display:flex;align-items:center;gap:var(--space-3)}
  .rv-pick{background:none;border:0;padding:0;font:inherit;font-size:var(--text-sm);
    color:var(--accent-ink);cursor:pointer;text-decoration:underline;
    text-underline-offset:3px;text-decoration-color:color-mix(in srgb,currentColor 35%,transparent)}
  .rv-pick:hover{text-decoration-color:currentColor}

  .rv-rows{display:grid;gap:var(--space-2)}

  /* The row. A label is the whole hit area: a checkbox 14px wide is a poor
     target for a decision you are asked to make forty-eight times. */
  .rv-row{display:grid;grid-template-columns:22px minmax(0,1fr) auto;align-items:start;
    gap:var(--space-4);padding:var(--space-4) var(--space-5);background:var(--surface);
    border:1px solid var(--border-subtle);border-radius:var(--radius-card);
    cursor:pointer;transition:border-color var(--dur-1) var(--ease),
    box-shadow var(--dur-1) var(--ease),background var(--dur-1) var(--ease)}
  .rv-row:hover{box-shadow:var(--lift-1);border-color:var(--border)}
  .rv-row:focus-within{outline:2px solid var(--accent);outline-offset:2px}
  .rv-row.is-on{border-color:color-mix(in srgb,var(--accent) 45%,transparent);
    background:color-mix(in srgb,var(--accent-soft) 45%,var(--surface))}
  /* Not tickable, and it says why rather than going grey and silent. */
  .rv-row.is-known{cursor:default;background:var(--canvas);border-style:dashed}
  .rv-row.is-known:hover{box-shadow:none;border-color:var(--border-subtle)}
  /* Unsure: a question, so it keeps its control and wears the colour the app
     uses for anything waiting on the reader. */
  .rv-row.is-maybe{border-color:color-mix(in srgb,var(--amber) 40%,transparent);
    background:color-mix(in srgb,var(--amber-soft) 30%,var(--surface))}
  .rv-row.is-maybe.is-on{border-color:color-mix(in srgb,var(--accent) 45%,transparent);
    background:color-mix(in srgb,var(--accent-soft) 45%,var(--surface))}
  .rv-mine.is-ask{color:var(--amber-ink);border-block-start-color:
    color-mix(in srgb,var(--amber) 35%,transparent)}
  .pi-count.is-maybe{background:var(--amber-soft);color:var(--amber-ink)}

  .rv-box{width:22px;height:22px;margin:0;flex:none;appearance:none;
    border:1.5px solid var(--border);border-radius:var(--radius-ctl);background:var(--surface);
    display:grid;place-items:center;cursor:pointer;
    transition:background var(--dur-1) var(--ease),border-color var(--dur-1) var(--ease)}
  .rv-box:checked{background:var(--accent);border-color:var(--accent)}
  .rv-box:checked::after{content:"";width:11px;height:6px;border:2px solid #fff;
    border-block-start:0;border-inline-end:0;transform:rotate(-45deg) translate(1px,-1px)}
  .rv-box:disabled{background:var(--sunk);border-color:var(--border-subtle);cursor:default}
  /* The slot the box would sit in, when a row cannot be ticked at all. */
  .rv-held{width:22px;height:22px;display:grid;place-items:center;color:var(--text-3)}
  .rv-held .rv-ic{width:15px;height:15px}

  .rv-b{min-width:0}
  .rv-t{display:flex;align-items:center;gap:var(--space-2);flex-wrap:wrap;
    font-size:var(--text-base);font-weight:600}
  .rv-where{color:var(--text-2);font-size:var(--text-sm);margin-block-start:1px}
  .rv-when{font:400 var(--text-xs)/1.5 var(--font-mono);color:var(--text-3)}
  .rv-d{margin-block-start:6px;font-size:var(--text-sm);color:var(--text-2);line-height:1.5;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .rv-row.is-open .rv-d{-webkit-line-clamp:unset;overflow:visible}

  /* What the record already says, printed under the row that would have
     repeated it. Seeing the two side by side is the whole argument. */
  .rv-mine{display:flex;align-items:flex-start;gap:var(--space-2);margin-block-start:8px;
    padding-block-start:8px;border-block-start:1px dashed var(--border);
    font-size:var(--text-sm);color:var(--text-3)}
  .rv-mine b{font-weight:500;color:var(--text-2)}
  .rv-mine .rv-ic{width:14px;height:14px;flex:none;margin-block-start:2px}

  .rv-tag{display:inline-flex;align-items:center;height:20px;padding:0 8px;
    border-radius:var(--radius-pill);font:500 var(--text-2xs)/1 var(--font-mono);
    letter-spacing:.08em;text-transform:uppercase;white-space:nowrap}
  .rv-tag.new{background:var(--accent-soft);color:var(--accent-ink)}
  .rv-tag.held{background:var(--sunk);color:var(--text-3)}
  .rv-tag.twice{background:var(--amber-soft);color:var(--amber-ink)}
  .rv-tag.maybe{background:var(--amber-soft);color:var(--amber-ink)}

  .rv-acts{display:flex;align-items:center;gap:var(--space-1)}
  .rv-edit{width:30px;height:30px;display:grid;place-items:center;border-radius:var(--radius-ctl);
    border:1px solid transparent;background:none;color:var(--text-3);cursor:pointer;
    opacity:0;pointer-events:none;transition:opacity var(--dur-1) var(--ease)}
  .rv-row:hover .rv-edit,.rv-row:focus-within .rv-edit{opacity:1;pointer-events:auto}
  .rv-edit:hover{background:var(--sunk);color:var(--text-1)}
  .rv-edit .rv-ic{width:15px;height:15px}

  /* Editing happens in the row, because the correction is almost always a date
     the read guessed and the reader can see is wrong. */
  .rv-form{grid-column:2/-1;display:none;gap:var(--space-2);margin-block-start:var(--space-3);
    padding-block-start:var(--space-3);border-block-start:1px solid var(--border-subtle);
    grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}
  .rv-row.is-editing .rv-form{display:grid}
  .rv-f{display:flex;flex-direction:column;gap:4px;min-width:0}
  .rv-f span{font:500 var(--text-2xs)/1 var(--font-mono);letter-spacing:.08em;
    text-transform:uppercase;color:var(--text-3)}
  .rv-f input{height:34px;padding:0 var(--space-3);border-radius:var(--radius-field);
    border:1px solid var(--border);background:var(--surface);font-size:var(--text-sm);
    color:var(--text-1);width:100%}
  .rv-f input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}

  /* The ones already held, folded away. They are evidence that the read saw
     them, not decisions — so they are one line until asked for. */
  .rv-fold{display:flex;align-items:center;gap:var(--space-2);width:100%;
    margin-block-start:var(--space-2);padding:var(--space-3) var(--space-5);
    background:none;border:1px dashed var(--border);border-radius:var(--radius-card);
    color:var(--text-3);font:inherit;font-size:var(--text-sm);cursor:pointer;text-align:start}
  .rv-fold:hover{background:var(--surface);color:var(--text-2)}
  .rv-fold .rv-ic{width:14px;height:14px;transition:transform var(--dur-2) var(--ease)}
  .rv-fold[aria-expanded="true"] .rv-ic{transform:rotate(180deg)}

  /* Who this is — the profile fields, which are a different decision: not
     whether to add, but which of two values to keep. */
  .rv-who{background:var(--surface);border:1px solid var(--border-subtle);
    border-radius:var(--radius-card);padding:var(--space-6);margin-block-end:var(--space-8)}
  .rv-who-t{font:500 var(--text-xl)/1.2 var(--font-display);letter-spacing:-.015em}
  .rv-who-s{color:var(--text-2);font-size:var(--text-sm);margin:var(--space-2) 0 var(--space-5);max-width:56ch}
  .rv-fields{display:grid;gap:var(--space-1)}
  .rv-field{display:grid;grid-template-columns:132px minmax(0,1fr) auto;align-items:center;
    gap:var(--space-4);padding:var(--space-3) 0;border-block-end:1px solid var(--border-subtle)}
  .rv-field:last-child{border-block-end:0}
  .rv-key{font:400 var(--text-xs)/1 var(--font-mono);letter-spacing:.08em;
    text-transform:uppercase;color:var(--text-3)}
  .rv-val{font-size:var(--text-sm);min-width:0}
  .rv-val .was{color:var(--text-3);text-decoration:line-through;margin-inline-end:var(--space-2)}
  .rv-choice{display:flex;gap:2px;padding:2px;background:var(--sunk);border-radius:var(--radius-pill)}
  .rv-choice button{height:26px;padding:0 var(--space-3);border:0;background:none;color:var(--text-2);
    font:inherit;font-size:var(--text-xs);font-weight:500;border-radius:var(--radius-pill);cursor:pointer}
  .rv-choice button[aria-pressed="true"]{background:var(--surface);color:var(--text-1);box-shadow:var(--lift-1)}

  .rv-tally .pi-want li{grid-template-columns:minmax(0,1fr) auto}
  .rv-side-acts{display:grid;gap:var(--space-2);margin-block-start:var(--space-5)}
  .rv-side-acts .btn{width:100%}

  @media (max-width:860px){
    .rv-row{grid-template-columns:22px minmax(0,1fr);row-gap:var(--space-2)}
    .rv-acts{grid-column:2}
    .rv-field{grid-template-columns:minmax(0,1fr);gap:var(--space-2)}
  }

  /* Skills are the one kind with dozens of rows and one word in each. A row
     apiece is four screens of scrolling to tick eight things; the chip is the
     shape the record and the skills page already use for exactly this. */
  .rv-chips{display:flex;flex-wrap:wrap;gap:var(--space-2)}
  .rv-chip{display:inline-flex;align-items:center;gap:7px;height:32px;padding:0 14px;
    border-radius:var(--radius-pill);border:1px solid var(--border-subtle);
    background:var(--surface);color:var(--text-1);font-size:var(--text-sm);font-weight:500;
    cursor:pointer;transition:background var(--dur-1) var(--ease),
    border-color var(--dur-1) var(--ease),color var(--dur-1) var(--ease)}
  .rv-chip input{position:absolute;width:1px;height:1px;opacity:0;margin:-1px}
  .rv-chip:hover{border-color:var(--gap-neutral)}
  .rv-chip:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:2px}
  .rv-chip .m{width:15px;height:15px;display:grid;place-items:center;border-radius:var(--radius-pill);
    border:1.5px solid var(--border);flex:none}
  .rv-chip .m .rv-ic{width:9px;height:9px;opacity:0}
  .rv-chip.is-on{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
  .rv-chip.is-on .m{background:color-mix(in srgb,#fff 26%,transparent);border-color:transparent}
  .rv-chip.is-on .m svg{opacity:1;color:#fff}
  /* Already held: not a control, a statement. Dashed, like the record's own
     bare chip, so it reads as "there is nothing to do here". */
  .rv-chip.is-known{background:transparent;border-style:dashed;color:var(--text-3);
    font-weight:400;cursor:default}
  .rv-chip.is-known .m{border-style:dashed}
  .rv-chip.is-maybe{border-color:color-mix(in srgb,var(--amber) 45%,transparent);
    background:color-mix(in srgb,var(--amber-soft) 40%,var(--surface));
    color:var(--amber-ink)}
  .rv-chip.is-maybe.is-on{background:var(--accent);border-color:var(--accent);
    color:var(--on-accent)}

  /* Two values, each labelled with whose it is. A strikethrough running into
     its replacement makes the reader parse a sentence to find a choice. */
  .rv-two{display:grid;gap:4px}
  .rv-line{display:flex;align-items:baseline;gap:var(--space-3);min-width:0}
  .rv-from{flex:none;width:44px;font:400 var(--text-2xs)/1.6 var(--font-mono);
    letter-spacing:.08em;text-transform:uppercase;color:var(--text-3)}

  /* ══════════ The bookmarklet's landing (import_confirm.html) ══════════
     A review before a write, so it borrows the shapes the record review and
     the story bank already use: `.sec-head` for the two groups, `.rv-tag` for
     what kind of row it is, and `.st-act` for the one decision a reader makes
     about a row.

     The rows are named `.bm-*` rather than `.row`: a class that generic,
     introduced globally for one page, is a collision waiting for whichever
     surface is written next. */
  /* The hero both import surfaces share. Display face for the statement, the
     generic `.sec-label` above it for the eyebrow. Not `.ip-hero`: that is
     interview prep's, and the shared index at the top of this file names what
     a new surface may reach for. */
  .bm-hero { background:var(--surface); border:1px solid var(--border-subtle);
             border-radius:var(--radius-card); box-shadow:var(--lift-1);
             padding:var(--space-6); margin-block-end:var(--space-8); }
  .bm-h { font:400 26px/1.15 var(--font-display); letter-spacing:-.015em;
          margin:var(--space-2) 0 0; text-wrap:balance; }
  .bm-lede { margin:var(--space-3) 0 0; color:var(--text-2); max-width:58ch; }

  /* The ascent at this surface's scale: install, collect, approve — the last
     one the milestone, because approving is what changes a pipeline. Built on
     `.rail`, the primitive this file keeps for a fourth surface. */
  .bm-rail { margin-block-start:var(--space-5); max-width:320px;
             --rail-pip-size:9px; }
  .bm-rail-l { display:flex; justify-content:space-between; max-width:320px;
               margin-block-start:var(--space-2);
               font:500 var(--text-2xs)/1 var(--font-mono); letter-spacing:.1em;
               text-transform:uppercase; color:var(--text-3); }
  .bm-rail-l span:last-child { color:var(--amber-ink); }

  /* Three steps that happen in an order, so they are an ordered list with the
     number as a real marker rather than a decorative pip. */
  .bm-stages { list-style:none; margin:0; padding:0; display:grid; gap:var(--space-4); }
  .bm-stage { background:var(--surface); border:1px solid var(--border-subtle);
              border-radius:var(--radius-card); box-shadow:var(--lift-1);
              padding:var(--space-5) 22px;
              display:grid; grid-template-columns:28px minmax(0,1fr);
              gap:var(--space-1) var(--space-4); align-items:start; }
  .bm-stage.is-last { border-color:color-mix(in srgb, var(--amber) 42%, transparent);
                      box-shadow:var(--lift-2); }
  .bm-n { width:28px; height:28px; border-radius:var(--radius-pill);
          display:grid; place-items:center; font:500 var(--text-sm) var(--font-mono);
          background:var(--accent-soft); color:var(--accent-ink); }
  .bm-stage.is-last .bm-n { background:var(--amber-soft); color:var(--amber-ink); }
  .bm-st { grid-column:2; margin:3px 0 0; font:500 var(--text-lg)/1.3 var(--font-ui);
           display:flex; align-items:center; }
  .bm-ss { grid-column:2; margin:6px 0 0; color:var(--text-2);
           font-size:var(--text-sm); max-width:66ch; }
  .bm-act, .bm-ways, .bm-chips { grid-column:2; }
  .bm-act { margin-block-start:var(--space-4); }
  .bm-chips { margin-block-start:var(--space-4); display:flex; gap:var(--space-2); flex-wrap:wrap; }

  .bm-grab { display:inline-flex; align-items:center; gap:var(--space-3);
             padding:14px var(--space-5); border:1px dashed var(--border);
             border-radius:var(--radius-card); background:var(--canvas); }
  .bm-drag { cursor:grab; }
  .bm-grab-say { font-size:var(--text-sm); color:var(--text-3); }
  .bm-grab-say::before { content:"\2190"; margin-inline-end:6px; }

  /* The bookmarks bar, drawn. It is the one piece of browser chrome this page
     depends on and the one it cannot point at. */
  .bm-bar { margin-block-start:var(--space-4); display:flex; align-items:center;
            gap:var(--space-4); max-width:440px; padding:var(--space-2) var(--space-3);
            border:1px solid var(--border-subtle); border-radius:var(--radius-ctl);
            background:var(--surface-raised); }
  .bm-bm { display:inline-flex; align-items:center; gap:7px;
           font-size:var(--text-sm); color:var(--text-3); }
  .bm-bm.is-ours { color:var(--text-1); font-weight:500; }
  .bm-fav { width:16px; height:16px; border-radius:4px; display:grid; place-items:center;
            background:var(--accent); color:var(--on-accent); flex:none; }
  .bm-fav svg { width:11px; height:11px; }
  .bm-cap { margin:var(--space-2) 0 0; font-size:var(--text-xs); color:var(--text-3); }

  .bm-ways { display:grid; grid-template-columns:repeat(auto-fit,minmax(258px,1fr));
             gap:0 var(--space-6); margin-block-start:var(--space-3); }
  .bm-way { padding:var(--space-3) 0; border-block-start:1px solid var(--border-subtle); }
  .bm-way-t { display:flex; align-items:center; gap:var(--space-2); flex-wrap:wrap;
              font-weight:500; font-size:var(--text-sm); }
  .bm-way p { margin:6px 0 0; font-size:var(--text-sm); color:var(--text-2); }

  .bm-src { margin-block-start:var(--space-6); }
  .bm-src summary { cursor:pointer; font-size:var(--text-sm); color:var(--text-2); }
  .bm-src .adm-code { margin-block-start:var(--space-3); max-height:320px; overflow:auto;
                      font-size:var(--text-xs); white-space:pre; }
  .bm-end { padding-block:var(--space-8); gap:var(--space-2); }

  .bm-say { display:flex; align-items:center; gap:var(--space-3);
            margin:var(--space-5) 0; color:var(--text-2); font-size:var(--text-sm); }
  .bm-rows { background:var(--surface); border:1px solid var(--border-subtle);
             border-radius:var(--radius-card); box-shadow:var(--lift-1); overflow:hidden; }
  .bm-row { display:grid; grid-template-columns:minmax(0,1fr) 30px;
            gap:var(--space-1) var(--space-3); align-items:start;
            padding:var(--space-3) var(--space-4);
            border-block-end:1px solid var(--border-subtle); }
  .bm-row:last-child { border-block-end:0; }
  .bm-t { min-width:0; font-weight:500; font-size:var(--text-base);
          display:flex; align-items:center; gap:var(--space-2); flex-wrap:wrap; }
  .bm-t a { color:inherit; text-decoration:none; }
  .bm-t a:hover { text-decoration:underline; text-underline-offset:2px; }
  .bm-m { grid-column:1; display:flex; flex-wrap:wrap; gap:2px var(--space-3);
          margin-block-start:3px; font-size:var(--text-sm); color:var(--text-2); }
  .bm-co { color:var(--text-1); }
  .bm-thin { color:var(--amber-ink); }
  /* Dropped, not removed: the row that made the decision is the one that can
     undo it, exactly as a hidden Story stays on the profile. */
  .bm-row.is-out { opacity:.5; }
  .bm-row.is-out .bm-t { text-decoration:line-through;
                         text-decoration-color:var(--gap-neutral); }
  .bm-row.is-out .st-act { opacity:1; }
  .bm-row.is-dupe { opacity:.72; }
  .bm-row:hover .st-act { opacity:1; }
  .bm-foot { display:flex; align-items:center; gap:var(--space-3); flex-wrap:wrap;
             margin-block-start:var(--space-5); }
  .bm-dupes { margin-block-start:var(--space-8); }

  /* ============================== Atlas (atlas.html, atlas_inbox.html) ==============================
     Rebuilt 2026-09-17 against the live record. What went, and why:

     The four stat tiles (Pages / Cross-references / Sources cited / Health
     score) are gone. 107 of 107 pages were backed by an entity that already
     has its own surface, so the page count was a count of duplication; and all
     107 "sources cited" were raw_import rows whose span_text is the entity's
     own database row, so the citation count was a restatement citing itself.

     Health is gone with the concept (CONTEXT.md): the ring, the four filters,
     the sort and the per-card dot.

     No sparkline. Everything on the real record arrived in a July backfill and
     a run of concept clusters, so twelve months is two bars and ten gaps.
     §7's rule for a run panel generalises: only draw progress you have. */
  .ax-acts { display:flex; gap:var(--space-2); align-items:center; }

  .ax-head { background:var(--surface); border:1px solid var(--border-subtle);
             border-radius:var(--radius-card); box-shadow:var(--lift-1);
             padding:var(--space-6); margin-block-end:var(--space-5);
             display:grid; grid-template-columns:minmax(0,1fr) auto;
             gap:var(--space-6); align-items:center; }
  .ax-said { margin:0; font:500 var(--text-2xl)/1.3 var(--font-display);
             max-inline-size:40ch; text-wrap:balance; }
  .ax-sub { margin:var(--space-3) 0 0; font-size:var(--text-base);
            color:var(--text-2); max-inline-size:64ch; }
  .ax-head-cta { justify-self:end; }

  .ax-note { display:flex; align-items:center; gap:var(--space-3);
             background:var(--accent-soft); border:1px solid transparent;
             border-radius:var(--radius-card); padding:var(--space-3) var(--space-5);
             margin-block-end:var(--space-5); font-size:var(--text-sm);
             color:var(--accent-ink); }
  .ax-note svg { inline-size:17px; block-size:17px; flex:none; }

  .ax-layout { display:grid; grid-template-columns:190px minmax(0,1fr); gap:var(--space-6); }
  .ax-rail { display:flex; flex-direction:column; gap:2px; align-self:start;
             position:sticky; inset-block-start:var(--space-5); }
  .ax-nav-l { font:500 var(--text-2xs)/1 var(--font-mono); letter-spacing:.09em;
              text-transform:uppercase; color:var(--text-3);
              padding:var(--space-4) var(--space-3) var(--space-1); }
  .ax-nav { display:flex; align-items:center; gap:var(--space-2);
            padding:7px var(--space-3); border-radius:var(--radius-ctl);
            font-size:var(--text-sm); color:var(--text-2); text-decoration:none;
            transition:background var(--dur-2) var(--ease); }
  .ax-nav:hover { background:var(--sunk); color:var(--text-1); }
  .ax-nav.is-active { background:var(--accent-soft); color:var(--accent-ink); font-weight:500; }
  .ax-nav-n { margin-inline-start:auto; font-family:var(--font-mono);
              font-size:var(--text-xs); color:var(--text-3); }
  .ax-nav.is-active .ax-nav-n { color:var(--accent-ink); }
  .ax-main { min-inline-size:0; }

  /* The categorical set already in tokens.css, driven off data-kind so a
     template never writes a colour. */
  .ax-dot { inline-size:7px; block-size:7px; border-radius:50%; flex:none;
            background:var(--gap-neutral); }
  .ax-dot[data-kind="skill"] { background:var(--atlas-skill); }
  .ax-dot[data-kind="company"] { background:var(--atlas-company); }
  .ax-dot[data-kind="role"] { background:var(--atlas-role); }
  .ax-dot[data-kind="contact"] { background:var(--atlas-contact); }
  .ax-dot[data-kind="project"] { background:var(--atlas-project); }
  .ax-dot[data-kind="experience"] { background:var(--atlas-experience); }
  .ax-dot[data-kind="concept"] { background:var(--atlas-concept); }
  .ax-dot[data-kind="synthesis"] { background:var(--atlas-synthesis); }

  .ax-tools { display:flex; gap:var(--space-2); margin-block-end:var(--space-4); }
  .ax-search { flex:1; display:flex; align-items:center; gap:var(--space-2);
               background:var(--sunk); border:1px solid var(--border-subtle);
               border-radius:var(--radius-field); padding-inline:var(--space-4);
               block-size:var(--ctl-h); min-inline-size:0; }
  .ax-search svg { inline-size:15px; block-size:15px; color:var(--text-3); flex:none; }
  .ax-search-in { flex:1; border:0; background:none; color:var(--text-1);
                  font:inherit; min-inline-size:0; outline:none; }
  .ax-sort { flex:none; }

  .ax-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(238px, 1fr));
             gap:var(--space-3); }
  /* Cards in a row are one comparison (§12.4 point 3): the foot is pushed to
     the card's bottom so it lands on one line across the row however long the
     summary runs. */
  .ax-card { display:flex; flex-direction:column; gap:var(--space-2);
             background:var(--surface); border:1px solid var(--border-subtle);
             border-radius:var(--radius-card); box-shadow:var(--lift-1);
             padding:var(--space-4); text-decoration:none; color:inherit;
             transition:box-shadow var(--dur-2) var(--ease),
                        border-color var(--dur-2) var(--ease); }
  .ax-card:hover { box-shadow:var(--lift-2); border-color:var(--border); }
  /* Sentence case, not uppercase — §11 settled that on 2026-09-06: uppercase is
     for mono section eyebrows and nothing else, not badges and not state words. */
  .ax-badge { align-self:flex-start; display:inline-flex; align-items:center; gap:5px;
              font:500 var(--text-xs)/1 var(--font-ui); padding:4px 9px;
              border-radius:var(--radius-pill); background:var(--sunk); color:var(--text-2); }
  .ax-card-t { font:500 var(--text-lg)/1.3 var(--font-display); color:var(--text-1); }
  .ax-card-s { font-size:var(--text-sm); color:var(--text-2); line-height:1.5;
               display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical;
               overflow:hidden; }
  .ax-card-m { margin-block-start:auto; padding-block-start:var(--space-3);
               border-block-start:1px solid var(--border-subtle);
               display:flex; gap:var(--space-3); flex-wrap:wrap;
               font-size:var(--text-xs); color:var(--text-3); }
  .ax-card-m b { font-weight:500; color:var(--text-2); }
  /* A card that leads out of Atlas says so on its face, before it is pressed. */
  .ax-card-m.is-away, .ax-card-m.is-away b { color:var(--accent-ink); }

  .ax-pager { display:flex; align-items:center; gap:var(--space-3);
              margin-block-start:var(--space-5); }
  .ax-pager-n { font-size:var(--text-sm); color:var(--text-3); }

  /* ── the inbox: a queue, not a library ────────────────────────────────
     Its own surface as of 2026-09-17. The unit is the RUN: on the live record
     57 proposals are waiting across 21 reads between 16 July and 12 September,
     two or three at a time, none ever approved. 57 Review buttons is not a
     queue anyone clears. */
  .ib-top { display:flex; align-items:flex-start; gap:var(--space-4);
            margin-block-end:var(--space-5); flex-wrap:wrap; }
  /* Amber is what you owe, and the count is the only thing on the page asking. */
  .ib-count { font:500 56px/1 var(--font-display); color:var(--amber-ink);
              font-variant-numeric:tabular-nums; }
  .ib-said { margin:var(--space-2) 0 0; font-size:var(--text-base);
             color:var(--text-2); max-inline-size:66ch; text-wrap:pretty; }
  .ib-said b { color:var(--text-1); font-weight:600; }

  .ib-run { background:var(--surface); border:1px solid var(--border-subtle);
            border-radius:var(--radius-card); box-shadow:var(--lift-1);
            overflow:hidden; margin-block-end:var(--space-3); }
  .ib-run.is-first { border-color:var(--amber); }
  /* Fixed tracks, never an `auto`: the "57 waiting" column changes width with
     its number, and an auto track hands that difference to the button beside
     it — which is how a column of buttons comes to sit on four edges. */
  .ib-run-h { display:grid; grid-template-columns:38px minmax(0,1fr) 92px 140px;
              gap:var(--space-4); align-items:center;
              padding:var(--space-4) var(--space-5); }
  .ib-ic { inline-size:38px; block-size:38px; border-radius:50%; display:grid;
           place-items:center; background:var(--sunk); color:var(--text-2); }
  .ib-ic svg { inline-size:18px; block-size:18px; }
  .ib-run.is-first .ib-ic { background:var(--amber-soft); color:var(--amber-ink); }
  .ib-b { min-inline-size:0; }
  .ib-kind { display:block; font:500 var(--text-2xs)/1 var(--font-mono);
             letter-spacing:.08em; text-transform:uppercase; color:var(--text-3);
             margin-block-end:4px; }
  .ib-t { display:block; font-size:var(--text-base); color:var(--text-1); font-weight:500; }
  .ib-s { display:block; margin-block-start:2px; font-size:var(--text-sm); color:var(--text-3); }
  .ib-n { font-size:var(--text-sm); color:var(--text-3);
          font-variant-numeric:tabular-nums; }
  .ib-n b { display:block; font:500 var(--text-xl)/1.1 var(--font-display);
            color:var(--text-1); font-weight:500; }
  .ib-go { inline-size:100%; align-self:center; }
  /* The pages an approval wrote, each a way into itself. */
  .ib-wrote a { color:var(--text-1); text-decoration:none;
                border-block-end:1px solid var(--border-subtle); }
  .ib-wrote a:hover { color:var(--accent); border-block-end-color:var(--accent); }
  .ib-sep { color:var(--text-3); margin-inline:4px; }
  .ib-more { font-size:var(--text-sm); color:var(--text-3); margin-inline-start:6px; }

  .ib-peek { border-block-start:1px solid var(--border-subtle); background:var(--sunk);
             padding:var(--space-2) var(--space-5) var(--space-4); }
  /* column-gap only: `gap` put 16px between a title and its own subtitle, so
     one thing said twice read as two rows. */
  .ib-peek-r { display:grid; grid-template-columns:minmax(0,1fr) 96px;
               column-gap:var(--space-4); row-gap:2px; align-items:center;
               padding-block:var(--space-3);
               border-block-end:1px solid var(--border-subtle); }
  .ib-peek-r:last-of-type { border-block-end:0; }
  .ib-peek-t { grid-column:1; font-size:var(--text-base); font-weight:500; }
  .ib-peek-s { grid-column:1; font-size:var(--text-sm); color:var(--text-3);
               display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
               overflow:hidden; }
  .ib-peek-r .btn { grid-column:2; grid-row:1 / span 2; inline-size:100%;
                    align-self:center; }
  .ib-peek-more { margin:var(--space-3) 0 0; font-size:var(--text-sm); color:var(--text-3); }
  .ib-empty { margin-block-end:var(--space-5); }

  /* The reads past the newest. Nineteen of them as cards was one sentence
     repeated nineteen times; only the date and the count differ, so it is a
     list with three fixed tracks. */
  .ib-old { background:var(--surface); border:1px solid var(--border-subtle);
            border-radius:var(--radius-card); box-shadow:var(--lift-1);
            overflow:hidden; }
  .ib-old-r { display:grid; grid-template-columns:96px minmax(0,1fr) 44px;
              gap:var(--space-4); align-items:center; text-decoration:none;
              color:inherit; padding:var(--space-3) var(--space-5);
              border-block-end:1px solid var(--border-subtle);
              transition:background var(--dur-2) var(--ease); }
  .ib-old-r:last-child { border-block-end:0; }
  .ib-old-r:hover { background:var(--sunk); }
  .ib-old-d { font:400 var(--text-xs)/1.4 var(--font-mono); color:var(--text-3); }
  .ib-old-t { font-size:var(--text-sm); color:var(--text-1);
              overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .ib-old-n { justify-self:end; font-size:var(--text-sm); color:var(--text-3);
              font-variant-numeric:tabular-nums; }
  .ib-old-n b { color:var(--text-2); font-weight:500; }

  /* ── feeding the librarian (atlas_share.html) ──────────────────────────
     Four pills read as a segmented filter; `.pills` is for a group inside a
     toolbar. This is a choice of *what you have*, made before any field makes
     sense, so it is four cards — one comparison, equal height, the hint
     pushed to the foot so four hints land on one line (§12.4 point 3). */
  /* One measure for the whole surface: the picker used auto-fit and spanned the
     full column while the form below it capped at 760px, so the choice was
     wider than the thing it configured. Two by two, both at 760. */
  .sh { max-inline-size:760px; }
  .sh-grid { display:grid; grid-template-columns:repeat(2, minmax(0,1fr));
             gap:var(--space-3); margin-block-end:var(--space-5); }
  .sh-pick { display:flex; flex-direction:column; gap:var(--space-2);
             text-align:start; cursor:pointer; color:inherit;
             padding:var(--space-4) var(--space-5);
             background:var(--surface); border:1px solid var(--border);
             border-radius:var(--radius-card);
             transition:border-color var(--dur-2) var(--ease),
                        box-shadow var(--dur-2) var(--ease); }
  .sh-pick:hover { border-color:var(--accent); }
  .sh-pick.is-on { border-color:var(--accent-ink);
                   box-shadow:0 0 0 1px var(--accent-ink) inset; }
  .sh-pick svg { inline-size:20px; block-size:20px; color:var(--accent-ink); flex:none; }
  .sh-pick-t { font-weight:600; font-size:var(--text-base); }
  .sh-pick-s { margin-block-start:auto; font-size:var(--text-sm);
               color:var(--text-3); line-height:1.45; }

  .sh-box { background:var(--surface); border:1px solid var(--border-subtle);
            border-radius:var(--radius-card); box-shadow:var(--lift-1);
            padding:var(--space-6); max-inline-size:760px; }
  .sh-two { display:grid; grid-template-columns:repeat(2, minmax(0,1fr));
            gap:var(--space-4); margin-block-end:var(--space-4); }
  .sh-ta { min-block-size:150px; resize:vertical; line-height:1.55; }
  /* A value aligns to start (§12.4 point 4), and the checkbox reads as one
     statement rather than a control with a parenthesis after it. */
  .sh-check { display:grid; grid-template-columns:auto minmax(0,1fr);
              gap:var(--space-3); align-items:start;
              margin-block-start:var(--space-4); cursor:pointer; }
  .sh-check b { display:block; font-size:var(--text-sm); font-weight:500;
                color:var(--text-1); }
  .sh-check small { display:block; margin-block-start:2px;
                    font-size:var(--text-xs); color:var(--text-3); }
  .sh-drop { display:flex; flex-direction:column; align-items:center;
             gap:var(--space-3); padding:var(--space-8) var(--space-5);
             text-align:center; background:var(--sunk);
             border:1px dashed var(--border); border-radius:var(--radius-card);
             transition:border-color var(--dur-2) var(--ease),
                        background var(--dur-2) var(--ease); }
  .sh-drop.is-over { border-color:var(--accent); background:var(--accent-soft); }
  .sh-drop svg { inline-size:22px; block-size:22px; color:var(--text-3); }
  .sh-drop-t { margin:0; font-size:var(--text-sm); color:var(--text-2); }
  .sh-drop-n { margin:0; font-family:var(--font-mono); font-size:var(--text-xs);
               color:var(--accent-ink); }
  /* The small print under a door that only works sometimes, said before it is
     opened rather than after it fails — §7's catch line. */
  .sh-catch { margin:var(--space-4) 0 0; font-size:var(--text-sm);
              color:var(--text-3); max-inline-size:62ch; }
  .sh-catch-all { padding-block-start:var(--space-4);
                  border-block-start:1px solid var(--border-subtle); }
  .sh-foot { display:flex; align-items:center; gap:var(--space-3);
             margin-block-start:var(--space-5); flex-wrap:wrap; }
  .sh-quota { margin-inline-start:auto; font-size:var(--text-sm);
              color:var(--text-3); font-variant-numeric:tabular-nums; }

  /* the page's own inline styles, given names */
  .atlas-edit-note { margin:0 0 var(--space-2); font-size:var(--text-sm);
                     color:var(--text-3); max-inline-size:66ch; }
  .atlas-edit-area { inline-size:100%; min-block-size:380px;
                     font-family:var(--font-mono); font-size:var(--text-sm);
                     line-height:1.6; resize:vertical; }
  .atlas-drawer-head { display:flex; align-items:center;
                       justify-content:space-between; gap:var(--space-3);
                       margin-block-end:var(--space-3); }
  .atlas-drawer-quote { margin:var(--space-3) 0 0;
                        padding:var(--space-3) var(--space-4);
                        background:var(--canvas);
                        border-inline-start:3px solid var(--accent);
                        border-radius:var(--radius-ctl);
                        font-size:var(--text-sm); color:var(--text-2); }
  .atlas-wl-preview { position:absolute; }

  /* ── one proposal (atlas_preview.html) ─────────────────────────────── */
  .pv-head { background:var(--surface); border:1px solid var(--border-subtle);
             border-radius:var(--radius-card); box-shadow:var(--lift-1);
             padding:var(--space-5) var(--space-6); margin-block-end:var(--space-5); }
  .pv-src { display:flex; align-items:center; gap:var(--space-3);
            flex-wrap:wrap; margin-block-end:var(--space-3); }
  .pv-at { font-family:var(--font-mono); font-size:var(--text-xs); color:var(--text-3); }
  .pv-said { margin:0; font:500 var(--text-xl)/1.35 var(--font-display);
             max-inline-size:46ch; text-wrap:balance; }
  .pv-note { margin:var(--space-3) 0 0; font-size:var(--text-sm);
             color:var(--text-3); max-inline-size:66ch; }
  .pv-warn { margin-block:var(--space-2) var(--space-4); }
  /* What a new page would say, set as the prose it is. The diff treatment
     below is for a page that already exists. */
  .pv-prose { white-space:pre-wrap; font-size:var(--text-base); line-height:1.65;
              color:var(--text-1); max-inline-size:68ch;
              margin-block:var(--space-3); }
  /* Three forms, siblings rather than nested: the approve form used to close
     in the middle of the flex row it shared with skip. */
  .pv-acts { display:flex; align-items:center; gap:var(--space-2);
             flex-wrap:wrap; margin-block-start:var(--space-5);
             padding-block-start:var(--space-5);
             border-block-start:1px solid var(--border-subtle);
             max-inline-size:78ch; }
  .pv-auto { display:grid; grid-template-columns:auto minmax(0,1fr);
             gap:var(--space-3); align-items:start; cursor:pointer;
             inline-size:100%; margin-block-start:var(--space-4); }
  .pv-auto b { display:block; font-size:var(--text-sm); font-weight:500;
               color:var(--text-1); }
  .pv-auto small { display:block; margin-block-start:2px;
                   font-size:var(--text-xs); color:var(--text-3);
                   max-inline-size:64ch; }
  .pv-next { display:flex; align-items:center; gap:var(--space-4);
             flex-wrap:wrap; margin-block-start:var(--space-8);
             padding-block-start:var(--space-5);
             border-block-start:1px solid var(--border-subtle); }
  .pv-next-l { font-size:var(--text-base); color:var(--text-2); }
  .pv-next .btn { margin-inline-start:auto; }
  /* A disclosure whose marker is the app's chevron rather than the browser's
     triangle, used for the citations and the edit box. */
  .pv-cites { margin-block-start:var(--space-3); }
  .pv-cites-sum { cursor:pointer; list-style:none; display:inline-flex;
                  align-items:center; gap:var(--space-2);
                  font-size:var(--text-sm); color:var(--text-2); }
  .pv-cites-sum::-webkit-details-marker { display:none; }
  .pv-cites-sum::before { content:""; inline-size:6px; block-size:6px;
                          border-inline-end:1.5px solid currentColor;
                          border-block-end:1.5px solid currentColor;
                          transform:rotate(-45deg);
                          transition:transform var(--dur-2) var(--ease); }
  .pv-cites[open] > .pv-cites-sum::before { transform:rotate(45deg); }
  .pv-cites-sum:hover { color:var(--text-1); }
  .pv-cites-list { display:grid; gap:2px; margin-block-start:var(--space-3); }
  .pv-cite { display:grid; grid-template-columns:132px minmax(0,1fr);
             gap:var(--space-3); align-items:baseline;
             padding-block:5px; font-size:var(--text-sm); }
  .pv-cite-w { font:400 var(--text-xs)/1.5 var(--font-mono); color:var(--text-3); }
  .pv-cite-w.firsthand { color:var(--ok); }
  .pv-cite-t { color:var(--text-2); min-inline-size:0; }

  @media (max-width: 680px) {
    .sh-grid, .sh-two { grid-template-columns:minmax(0,1fr); }
  }

  @media (max-width: 1024px) {
    .ax-layout { grid-template-columns:minmax(0,1fr); }
    .ax-rail { position:static; flex-direction:row; flex-wrap:wrap; align-items:center; }
    .ax-nav-l { inline-size:100%; padding-block-start:var(--space-2); }
  }
  @media (max-width: 860px) {
    .ax-head { grid-template-columns:minmax(0,1fr); }
    .ax-head-cta { justify-self:start; }
    .ax-tools { flex-wrap:wrap; }
    .ib-run-h { grid-template-columns:38px minmax(0,1fr); }
    .ib-n, .ib-go { grid-column:2; }
    .ib-go { inline-size:auto; justify-self:start; }
    /* Stacked, the count sits above its word; inline, it needs the space
       between them that `display:block` was providing. */
    .ib-n b { display:inline; margin-inline-end:.35em; }
  }


  /* === Targets (targets.html) ==========================================
     The career half of a Role, split off /roles on 2026-09-19 (ADR-0027).
     Targets lead and the capabilities they ask for sit under them: the first
     draft had the capability panel on top, which made a page called Targets
     read as a capabilities page. */
  .tgp-head { display:grid; grid-template-columns:minmax(0,1fr) auto;
              gap:var(--space-5); align-items:center;
              background:var(--surface); border:1px solid var(--border-subtle);
              border-radius:var(--radius-card);
              padding:var(--space-8) var(--space-8) var(--space-6); }
  .tgp-said h2 { font-size:var(--text-2xl); line-height:1.2; max-inline-size:20ch;
                 margin:0; }
  .tgp-said p { margin:var(--space-3) 0 0; color:var(--text-2); max-inline-size:62ch; }
  .tgp-n { display:flex; align-items:baseline; gap:var(--space-2);
           font:500 40px/1 var(--font-display); color:var(--text-1); }
  .tgp-n small { font:400 var(--text-sm)/1.4 var(--font-ui); color:var(--text-3); }
  .tgp-lede { margin:0 0 var(--space-4); font-size:var(--text-sm);
              color:var(--text-2); max-inline-size:76ch; }

  /* ── one target ── */
  .tgp-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(340px,1fr));
              gap:var(--space-4); }
  .tgc { background:var(--surface); border:1px solid var(--border-subtle);
         border-radius:var(--radius-card); padding:var(--space-6);
         display:flex; flex-direction:column; gap:var(--space-4);
         color:var(--accent);           /* the ring's arc reads currentColor */
         transition:box-shadow var(--dur-1) var(--ease); }
  .tgc:hover { box-shadow:var(--lift-2); }
  /* Amber is the nearest target, as it is the milestone everywhere else. */
  .tgc.is-near { background:color-mix(in srgb, var(--amber) 5%, var(--surface));
                 color:var(--amber); }
  .tgc-top { display:flex; align-items:flex-start; gap:var(--space-4); }
  .tgc-b { min-inline-size:0; flex:1; }
  .tgc-t { display:flex; align-items:center; gap:var(--space-2); }
  .tgc-t h3 { font-size:var(--text-xl); margin:0; }
  .tgc-t a { color:var(--text-1); text-decoration:none; }
  .tgc-t a:hover { color:var(--accent); }
  .tgc-mark { display:inline-flex; color:currentColor; flex:0 0 auto; }
  .tgc-mark .ic { inline-size:15px; block-size:15px; }
  .tgc-when { margin-block-start:4px; font:400 var(--text-xs)/1.5 var(--font-mono);
              letter-spacing:.06em; text-transform:uppercase; color:var(--text-3);
              display:flex; flex-wrap:wrap; gap:0 6px; }
  .tgc-when span { white-space:nowrap; }
  /* The separator belongs to the clause that follows it, so a wrap leaves it
     at the head of the new line rather than dangling at the end of the old. */
  .tgc-when span + span::before { content:"· "; }
  /* One grid cell for the arc and the number. An inline <svg> sits on the text
     baseline, so a number centred in the box lands above the circle. */
  .tgc-ring { inline-size:62px; block-size:62px; flex:0 0 auto; display:grid; }
  .tgc-ring > * { grid-area:1/1; }
  .tgc-ring svg { display:block; transform:rotate(-90deg); }
  .tgc-ring-n { place-self:center; text-align:center; color:var(--text-1); }
  .tgc-ring-n b { font:500 var(--text-lg)/1 var(--font-display); white-space:nowrap; }
  .tgc-ring-n i { font-style:normal; font-size:var(--text-xs); color:var(--text-3);
                  margin-inline-start:1px; }
  .tgc-said { margin:0; font-size:var(--text-base); color:var(--text-2); }
  /* One pip per capability, in the order the role asks for them: a count says
     how many, this says which. */
  .tgc-pips { display:flex; gap:5px; flex-wrap:wrap; }
  .tgc-pip { inline-size:26px; block-size:5px; border-radius:var(--radius-pill);
             background:var(--gap-neutral); }
  .tgc-pip.is-developing { background:var(--track); }
  .tgc-pip.is-strength { background:currentColor; }
  /* Pinned to the bottom of the card. The grid already makes every card the
     same height, so anchoring the rule there is what puts the three rules on
     one line — a title that wraps to two used to drag its own separator down
     and the row read as three different cards. */
  .tgc-foot { margin-block-start:auto; display:flex; align-items:center;
              gap:var(--space-3); flex-wrap:wrap;
              padding-block-start:var(--space-4);
              border-block-start:1px solid var(--border-subtle);
              font-size:var(--text-sm); color:var(--text-3); }
  .tgc-owed { color:var(--amber-ink); font-weight:500; }
  .tgc-open { margin-inline-start:auto; }

  /* ── what to work on ── */
  .tgf { border:1px solid var(--border-subtle); border-radius:var(--radius-card);
         background:var(--surface); overflow:hidden; }
  /* Two columns, and the second holds everything. A third column for a row
     action left the move band stopping short of it with a notch in between. */
  .tgf-row { display:grid; grid-template-columns:4px minmax(0,1fr);
             padding:var(--space-4) var(--space-5) var(--space-4) 0;
             border-block-end:1px solid var(--border-subtle); }
  .tgf-row:last-child { border-block-end:0; }
  .tgf-spine { align-self:stretch; background:var(--amber);
               border-start-start-radius:2px; border-end-start-radius:2px; }
  .tgf-row.is-later .tgf-spine { background:var(--accent); }
  .tgf-b { min-inline-size:0; padding-inline-start:var(--space-5); }
  .tgf-t { display:flex; align-items:center; gap:var(--space-2); flex-wrap:wrap; }
  .tgf-t b { font-weight:500; font-size:var(--text-lg); }
  .tgf-m { margin-block-start:3px; font-size:var(--text-sm); color:var(--text-2);
           display:flex; gap:6px; flex-wrap:wrap; align-items:baseline; }
  .tgf-m a { color:var(--text-1); text-decoration:none;
             border-block-end:1px solid var(--border); }
  .tgf-m a:hover { color:var(--accent); border-block-end-color:var(--accent); }
  .tgf-both { color:var(--amber-ink); }

  /* The move under the capability it would close. */
  .tgf-mv { display:flex; align-items:center; gap:var(--space-3); flex-wrap:wrap;
            margin-block-start:var(--space-3);
            padding:var(--space-3) var(--space-4);
            background:var(--sunk); border-radius:var(--radius-ctl);
            font-size:var(--text-sm); }
  .tgf-mv-k { font:400 var(--text-2xs)/1 var(--font-mono); letter-spacing:.12em;
              text-transform:uppercase; color:var(--text-3); }
  .tgf-mv-t { color:var(--text-1); min-inline-size:0; }
  .tgf-mv-acts { margin-inline-start:auto; display:flex; align-items:center;
                 gap:var(--space-2); flex:0 0 auto; }
  /* A date that has passed asks a question. Amber, because amber is what is
     waiting on the reader — never red, and nothing counts the slip. */
  .tgf-mv.is-asked { background:var(--amber-soft); }
  .tgf-mv.is-asked .tgf-mv-t, .tgf-mv.is-asked .tgf-mv-k { color:var(--amber-ink); }
  .tgf-due { font:400 var(--text-xs)/1 var(--font-mono); letter-spacing:.04em;
             color:var(--accent-ink); background:var(--accent-soft);
             border-radius:var(--radius-pill); padding:5px 10px; }
  .tgf-none { margin-block-start:var(--space-3); font-size:var(--text-sm);
              color:var(--text-3); display:flex; align-items:center;
              gap:var(--space-3); flex-wrap:wrap; }
  .tgf-none form { margin-inline-start:auto; }

  /* ── the quarterly check-in, which had no door anywhere until now ── */
  .tgp-ci { display:flex; align-items:center; gap:var(--space-4); flex-wrap:wrap;
            border:1px solid var(--amber-soft); border-radius:var(--radius-card);
            background:color-mix(in srgb, var(--amber) 6%, var(--surface));
            padding:var(--space-4) var(--space-5); }
  .tgp-ci.is-quiet { border-color:var(--border-subtle); background:var(--surface); }
  .tgp-ci-b { min-inline-size:0; flex:1; }
  .tgp-ci-t { font-weight:500; }
  .tgp-ci-when { font-weight:400; color:var(--text-3); }
  .tgp-ci-acts { display:flex; align-items:center; gap:var(--space-2); flex-wrap:wrap; }
  .tgp-ci-s { margin-block-start:2px; font-size:var(--text-sm); color:var(--text-2);
              max-inline-size:72ch; }

  /* ── where the other half of a Role lives ── */
  .tgp-hunt { margin-block-start:var(--space-6);
              padding:var(--space-4) var(--space-5);
              border:1px dashed var(--border); border-radius:var(--radius-card);
              display:flex; align-items:center; gap:var(--space-3); flex-wrap:wrap;
              font-size:var(--text-sm); color:var(--text-2); }
  .tgp-hunt a { margin-inline-start:auto; }

  .tgp-empty-acts { display:flex; gap:var(--space-2); justify-content:center;
                    flex-wrap:wrap; }
  .tgp-empty-note { margin:var(--space-5) auto 0; max-inline-size:52ch;
                    font-size:var(--text-sm); color:var(--text-3); }

  /* The by-when menu. Four answers and a clear, because a date picker asking
     for a day of the month is the wrong question for "when will you do it". */
  /* Above the dock, which is fixed at z-index 80 in the bottom-inline-end
     corner — exactly where a menu opened from the last row in the panel
     lands. */
  .tgd { position:absolute; z-index:90; min-inline-size:210px;
         background:var(--surface-raised); border:1px solid var(--border);
         border-radius:var(--radius-card); box-shadow:var(--lift-3);
         padding:var(--space-2); display:flex; flex-direction:column; }
  .tgd[hidden] { display:none; }
  .tgd button { border:0; background:none; text-align:start;
                padding:8px var(--space-3); border-radius:var(--radius-ctl);
                color:var(--text-1); font-size:var(--text-sm);
                display:flex; justify-content:space-between; gap:var(--space-4);
                cursor:pointer; }
  .tgd button small { color:var(--text-3); font-family:var(--font-mono); }
  .tgd button:hover { background:var(--sunk); }
  .tgd hr { border:0; border-block-start:1px solid var(--border-subtle);
            margin:var(--space-1) 0; }

  /* Where the targets went, said on the page that used to hold them. */
  .rl-toward { margin-block-start:var(--space-6);
               padding:var(--space-4) var(--space-5);
               border:1px dashed var(--border); border-radius:var(--radius-card);
               display:flex; align-items:center; gap:var(--space-4);
               flex-wrap:wrap; }
  .rl-toward-b { min-inline-size:0; flex:1; }
  .rl-toward-t { display:block; font-size:var(--text-base); color:var(--text-1); }
  .rl-toward-t a { color:var(--text-1); text-decoration:none;
                   border-block-end:1px solid var(--border); }
  .rl-toward-t a:hover { color:var(--accent); border-block-end-color:var(--accent); }
  .rl-toward-s { display:block; margin-block-start:2px; font-size:var(--text-sm);
                 color:var(--text-3); max-inline-size:72ch; }

  @media (max-width:860px) {
    .tgp-head { grid-template-columns:minmax(0,1fr); }
    .tgf-mv-acts, .tgf-none form { margin-inline-start:0; inline-size:100%; }
  }

  /* === Every email the app can send (admin_email.html) =================
     The previews are iframes: an email is a whole document with its own
     <html> and its own CSS, so it has to be rendered in a box of its own or
     it restyles the page it is being inspected on. */
  .em-state { display:flex; align-items:center; gap:var(--space-2);
              margin:0 0 var(--space-5); }
  .em-dot { inline-size:8px; block-size:8px; border-radius:50%; flex:none;
            background:var(--gap-neutral); }
  .em-dot.is-on { background:var(--ok, var(--accent)); }
  .em-card { max-inline-size:none; }
  .em-facts { display:grid; grid-template-columns:max-content minmax(0,1fr);
              gap:var(--space-2) var(--space-5); margin:0 0 var(--space-5); }
  .em-facts dt { font:400 var(--text-2xs)/1.6 var(--font-mono);
                 letter-spacing:.1em; text-transform:uppercase;
                 color:var(--text-3); }
  .em-facts dd { margin:0; font-size:var(--text-sm); color:var(--text-2);
                 min-inline-size:0; overflow-wrap:anywhere; }
  .em-facts code { font-family:var(--font-mono); font-size:var(--text-xs);
                   color:var(--text-2); }
  .em-key { display:inline-block; margin-inline-end:var(--space-4);
            font-size:var(--text-sm); }
  .em-key b { color:var(--accent-ink); font-weight:500; }
  .em-warn { color:var(--warn-ink, var(--amber-ink)); font-size:var(--text-xs); }
  .em-broken { margin:0 0 var(--space-5); padding:var(--space-3) var(--space-4);
               border-radius:var(--radius-ctl); font-size:var(--text-sm);
               background:color-mix(in srgb, var(--danger) 8%, var(--surface));
               border:1px solid color-mix(in srgb, var(--danger) 28%, transparent);
               color:var(--text-1); }
  .em-broken b { color:var(--danger); }
  /* Settings that have not been filled in yet. Deliberately not .em-broken:
     that one is for a template that will ship braces to a reader, and an
     empty .env on a dev machine is a to-do, not a fault. */
  .em-todo { margin:0 0 var(--space-5); padding:var(--space-3) var(--space-4);
             border-radius:var(--radius-ctl); font-size:var(--text-sm);
             line-height:1.8;
             background:color-mix(in srgb, var(--amber) 8%, var(--surface));
             border:1px solid color-mix(in srgb, var(--amber) 30%, transparent);
             color:var(--text-2); }
  .em-todo b { color:var(--amber-ink); font-weight:500; }
  .em-todo code { font-family:var(--font-mono); font-size:var(--text-xs);
                  color:var(--text-1); }

  .em-panes { display:grid; grid-template-columns:minmax(0,3fr) minmax(0,2fr);
              gap:var(--space-5); align-items:start; }
  .em-pane { min-inline-size:0; }
  .em-pane-h { display:flex; align-items:center; gap:var(--space-3);
               margin-block-end:var(--space-2);
               font:400 var(--text-2xs)/1 var(--font-mono); letter-spacing:.1em;
               text-transform:uppercase; color:var(--text-3); }
  .em-pane-h .btn { margin-inline-start:auto; }
  .em-frame { inline-size:100%; block-size:560px; border:1px solid var(--border);
              border-radius:var(--radius-ctl); background:#fff; display:block; }
  .em-text { margin:0; padding:var(--space-4); block-size:560px; overflow:auto;
             border:1px solid var(--border); border-radius:var(--radius-ctl);
             background:var(--sunk); font:400 var(--text-xs)/1.7 var(--font-mono);
             color:var(--text-2); white-space:pre-wrap; overflow-wrap:anywhere; }
  .em-text-none { margin:0; }

  /* Check the connection, and send one real message. Laid out as a row that
     wraps rather than a form grid: it is two controls and a sentence, and the
     sentence has to stay next to the control it qualifies. */
  .em-actions { display:flex; flex-wrap:wrap; align-items:center;
                gap:var(--space-3); margin-block-start:var(--space-5); }
  .em-send { padding-block-start:var(--space-5);
             border-block-start:1px solid var(--border-subtle); }
  .em-to { inline-size:min(280px,100%); }

  /* What the server said, verbatim. An SMTP failure is only useful in the
     server's own words, so this box has to hold a paragraph of them without
     clipping — no fixed height, and it wraps mid-token because "550-5.7.1"
     strings arrive with no spaces in them. */
  .em-out { margin:var(--space-3) 0 0; padding:var(--space-3) var(--space-4);
            border-radius:var(--radius-ctl); font-size:var(--text-sm);
            line-height:1.6; overflow-wrap:anywhere; color:var(--text-1); }
  .em-out.is-ok { background:color-mix(in srgb, var(--ok, var(--accent)) 8%, var(--surface));
                  border:1px solid color-mix(in srgb, var(--ok, var(--accent)) 28%, transparent); }
  .em-out.is-bad { background:color-mix(in srgb, var(--danger) 8%, var(--surface));
                   border:1px solid color-mix(in srgb, var(--danger) 28%, transparent); }

  @media (max-width:900px) {
    .em-panes { grid-template-columns:minmax(0,1fr); }
    .em-frame, .em-text { block-size:420px; }
    .em-facts { grid-template-columns:minmax(0,1fr); gap:var(--space-1) 0; }
    .em-facts dd { margin-block-end:var(--space-3); }
    .em-to { inline-size:100%; }
  }

  /* === Choosing a target (target_helper.html) =============================
     The piece deferred out of the targets page: three proposals at three
     distances, from the record plus the four things it cannot hold. */
  /* The profile's central column is 62% of its body; this page has no rail
     to fill the rest, so the form used the full 860px and packed six chips a
     line. Same proportion, more lines, each one readable. */
  /* One reading column, centred, for everything but the map: the question,
     the form, the proposals and the last word all share its edges, so the
     eye runs down one line instead of three. */
  .tn { max-inline-size:760px; margin-inline:auto; }
  .tn-picks { margin-block-start:var(--space-8); padding-block-end:var(--space-12); }
  .tn-picks .tnc:first-of-type { margin-block-start:var(--space-4); }
  /* The map is not part of the question column: it is the answer, and it is a
     picture of ten years. Every pixel of width is another year it can keep
     two roles apart. */
  /* The dock floats over the bottom-right of every page; a panel this tall
     ran its own footnote underneath it. */
  .tn-wide { max-inline-size:none; margin-block-start:var(--space-10); }
  .tn-head h2 { font-size:var(--text-2xl); margin:0; }
  .tn-head p { margin:var(--space-3) 0 0; color:var(--text-2); max-inline-size:66ch; }
  .tn-form { margin-block-start:var(--space-6); background:var(--surface);
             border:1px solid var(--border-subtle); border-radius:var(--radius-card);
             padding:var(--space-6); display:flex; flex-direction:column;
             gap:var(--space-6); }
  .tn-q { border:0; margin:0; padding:0; min-inline-size:0; }
  .tn-q legend, .tn-legend { padding:0; font-weight:500; font-size:var(--text-base);
                             color:var(--text-1); }
  .tn-hint { display:block; margin-block:2px var(--space-3); font-size:var(--text-sm);
             color:var(--text-3); max-inline-size:68ch; }
  /* A group with no hint had its chips against the legend. The gap belongs to
     the question, not to the sentence that sometimes follows it. */
  .tn-q legend + .tn-chips, .tn-legend + .tn-chips { margin-block-start:var(--space-3); }
  .tn-chips { display:flex; flex-wrap:wrap; gap:var(--space-2); }
  .tn-chip { border:1px solid var(--border); border-radius:var(--radius-pill);
             background:var(--surface-raised); color:var(--text-2);
             padding:6px var(--space-4); font-size:var(--text-sm); cursor:pointer;
             transition:background var(--dur-1) var(--ease); }
  .tn-chip:hover { background:var(--sunk); }
  .tn-chip[aria-pressed="true"] { background:var(--accent-soft);
                                  border-color:var(--accent);
                                  color:var(--accent-ink); font-weight:500; }
  /* The way in for an answer nobody listed, and the field it becomes. Dashed
     while it is an invitation, solid once it is a value. */
  /* A chip the reader wrote carries its own way out. The × is a span (a
     button inside a button is not markup), so it is sized and spaced here
     and the keyboard path is Backspace on the focused chip. */
  /* Room for the × that every chip carries. The add chip has none, so it
     keeps its own symmetry — otherwise "+ Add" sat 6px off centre. */
  .tn-chip { padding-inline-end:6px; }
  .tn-chip.is-add { padding-inline:var(--space-4); }
  /* Quiet until the chip is under the pointer: eight × marks in a row is a
     row about deleting, and the row is about choosing. */
  .tn-x { opacity:0; }
  .tn-chip:hover .tn-x, .tn-chip:focus-visible .tn-x { opacity:1; }
  /* Nothing hovers on a touch screen, and a control that only appears on
     hover does not exist there. */
  @media (hover:none) { .tn-x { opacity:.6; } }
  .tn-x { display:inline-flex; align-items:center; justify-content:center;
          inline-size:16px; block-size:16px; margin-inline-start:6px;
          border-radius:50%; font-size:var(--text-sm); line-height:1;
          color:var(--text-3); transition:background var(--dur-1) var(--ease),
                                          color var(--dur-1) var(--ease); }
  .tn-x:hover { background:var(--sunk); color:var(--text-1); }
  .tn-chip[aria-pressed="true"] .tn-x { color:var(--accent-ink); }
  .tn-chip[aria-pressed="true"] .tn-x:hover { background:var(--surface); }

  .tn-chip.is-add { border-style:dashed; color:var(--text-3); }
  .tn-chip.is-add:hover { color:var(--accent-ink); border-color:var(--accent); }
  input.tn-new { min-inline-size:14ch; inline-size:22ch; max-inline-size:100%;
                 border-color:var(--accent); background:var(--surface-raised);
                 color:var(--text-1); }
  input.tn-new:focus { outline:2px solid var(--accent); outline-offset:1px; }
  /* `.input` has no width of its own, so a bare text field shrank to the
     browser's default size beside three rows of chips. */
  .tn-q .input { inline-size:100%; max-inline-size:54ch; }
  /* The two written answers. Room to write a paragraph, because the useful
     one here is a paragraph — and resizable, because someone will want more. */
  .tn-area { max-inline-size:none; min-block-size:0; resize:vertical;
             line-height:1.55; padding:var(--space-3) var(--space-4); }
  .tn-go { display:flex; align-items:center; gap:var(--space-3); flex-wrap:wrap;
           padding-block-start:var(--space-4);
           border-block-start:1px solid var(--border-subtle); }
  .tn-go .pi-catch { margin:0; max-inline-size:44ch; }
  /* The door out of the add-target dialog, for a reader who cannot answer
     the question it asks. A link in weight, under the field it belongs to. */
  .tn-door { display:inline-block; margin-block-start:var(--space-2);
             padding:0; border:0; background:none; cursor:pointer;
             font:400 var(--text-sm) var(--font-ui); color:var(--accent-ink); }
  .tn-door:hover { text-decoration:underline; }

  /* The three, in one column: they are read in order — foreseeable, then
     further, then the one that is not a plan yet — and a row of three would
     invite reading them as alternatives at the same distance. */
  .tn-opts { display:flex; flex-direction:column; gap:var(--space-3); }
  .tn-opt { background:var(--surface); border:1px solid var(--border-subtle);
            border-radius:var(--radius-card); padding:var(--space-5) var(--space-6);
            display:flex; flex-direction:column; gap:var(--space-2);
            border-inline-start:3px solid var(--track); }
  /* Nearer is warmer: the near step is the one that could start this year. */
  .tn-opt.is-near { border-inline-start-color:var(--amber); }
  .tn-opt.is-stretch { border-inline-start-color:var(--accent); }
  .tn-opt.is-ambition { border-inline-start-color:var(--gap-neutral); }
  .tn-opt-h { display:flex; align-items:baseline; gap:var(--space-3); flex-wrap:wrap; }
  .tn-opt-k { font:400 var(--text-xs)/1 var(--font-mono); letter-spacing:.12em;
              text-transform:uppercase; color:var(--text-3); }
  .tn-opt-r { font-size:var(--text-sm); color:var(--text-3); }
  .tn-opt h3 { font-size:var(--text-xl); margin:0; }
  .tn-opt-why { margin:0; color:var(--text-2); max-inline-size:70ch; }
  .tn-opt-f { display:flex; align-items:center; gap:var(--space-3); flex-wrap:wrap;
              margin-block-start:var(--space-2); }
  .tn-opt-set { font-size:var(--text-sm); color:var(--text-3); }
  .tn-opt-f form, .tn-opt-f .pi-catch { margin-inline-start:auto; }
  .tn-none { margin-block-start:var(--space-4); font-size:var(--text-sm);
             color:var(--text-3); }

  @media (max-width:560px) {
    .tn-opt-f form, .tn-opt-f .pi-catch { margin-inline-start:0; }
  }

  /* === The correspondence (target_helper.html) ============================
     Your record on the left, the preferences you chose as stations on the
     way, and the roles they reach placed by how far off they are. Position
     is the statement: the page is about *when*, so the axis is years.

     Every curve is one weight. A thicker line would claim a stronger match,
     and nothing measured the strength — these are the reasons the model gave,
     and each one is readable on the card. */
  .tnm { position:relative; margin-block-start:var(--space-4);
         background:var(--surface); border:1px solid var(--border-subtle);
         border-radius:var(--radius-card); padding:var(--space-6);
         overflow:hidden; }
  .tnm-wires { position:absolute; inset:0; z-index:1; pointer-events:none; }
  .tnm-wires path { fill:none; stroke-linecap:round;
                    transition:opacity var(--dur-1) var(--ease); }
  .tnm-wire { stroke:var(--track); stroke-width:1.5; opacity:.55; }
  .tnm-wire.is-lit { stroke:var(--accent); opacity:.7; }
  .tnm-wire.is-pick { stroke:var(--amber); opacity:.95; }
  .tnm-wire.is-dim { opacity:.1; }
  .tnm-grid { display:grid; grid-template-columns:260px minmax(0,1fr);
              gap:var(--space-8); align-items:center; min-block-size:560px; }

  /* the record, as the last rungs of the ladder /profile draws */
  .tnm-who { position:relative; z-index:2; background:var(--surface-raised);
             border:1px solid var(--border); border-radius:var(--radius-card);
             padding:var(--space-5); box-shadow:var(--lift-2); }
  .tnm-k { font:400 var(--text-2xs)/1 var(--font-mono); letter-spacing:.12em;
           text-transform:uppercase; color:var(--text-3); }
  .tnm-who h3 { font-size:var(--text-lg); margin-block-start:var(--space-2); }
  .tnm-rungs { margin-block-start:var(--space-4); display:flex;
               flex-direction:column; gap:var(--space-4); position:relative;
               padding-inline-start:var(--space-5); }
  .tnm-rungs::before { content:""; position:absolute; inset-block:6px 6px;
                       inset-inline-start:4px; inline-size:2px;
                       background:var(--track); border-radius:var(--radius-pill); }
  .tnm-rung { position:relative; font-size:var(--text-sm); color:var(--text-2); }
  .tnm-rung::before { content:""; position:absolute;
                      inset-inline-start:calc(var(--space-5) * -1);
                      inset-block-start:5px; inline-size:10px; block-size:10px;
                      border-radius:50%; background:var(--track);
                      border:2px solid var(--surface-raised); }
  .tnm-rung.is-now { color:var(--text-1); font-weight:500; }
  .tnm-rung.is-now::before { background:var(--amber);
                             box-shadow:0 0 0 3px color-mix(in srgb,var(--amber) 22%,transparent); }
  .tnm-rung small { display:block; font:400 var(--text-2xs)/1.5 var(--font-mono);
                    letter-spacing:.04em; color:var(--text-3); font-weight:400;
                    margin-block-start:2px; }
  .tnm-tail { margin-block-start:var(--space-4); padding-block-start:var(--space-3);
              border-block-start:1px solid var(--border-subtle);
              font-size:var(--text-sm); color:var(--text-3); }
  .tnm-tail b { color:var(--text-2); font-weight:500; }

  /* the plot */
  .tnm-plot { position:relative; z-index:2; min-block-size:500px; }
  .tnm-stations { position:absolute; inset-inline-start:var(--space-4);
                  inset-block:0 26px; display:flex; flex-direction:column;
                  justify-content:center; gap:var(--space-2); z-index:2; }
  .tnm-station { background:var(--surface); border:1px solid var(--accent);
                 border-radius:var(--radius-pill); padding:4px var(--space-3);
                 font-size:var(--text-sm); color:var(--accent-ink);
                 background:var(--accent-soft); font-weight:500;
                 white-space:nowrap; cursor:default;
                 transition:opacity var(--dur-1) var(--ease); }
  .tnm-station.is-dim { opacity:.32; }

  .tnm-rule { position:absolute; inset-block-end:0; inset-inline:0;
              block-size:26px; border-block-start:1px solid var(--border-subtle);
              z-index:0; }
  .tnm-rule i { position:absolute; inset-block-start:5px; transform:translateX(-50%);
                font:400 var(--text-2xs)/1 var(--font-mono); letter-spacing:.06em;
                color:var(--text-3); font-style:normal; white-space:nowrap; }
  .tnm-line { position:absolute; inset-block:0 26px; inline-size:1px;
              background:var(--border-subtle); opacity:.55; z-index:0; }
  .tnm-band { position:absolute; inset-block:0 26px; background:var(--sunk);
              opacity:.45; border-radius:var(--radius-ctl); z-index:0; }
  .tnm-band-k { position:absolute; inset-block-start:2px; transform:translateX(-50%);
                font:400 var(--text-2xs)/1 var(--font-mono); letter-spacing:.12em;
                text-transform:uppercase; color:var(--text-3); white-space:nowrap;
                z-index:0; }

  .tnm-node { position:absolute; z-index:2; transform:translate(-7px,-50%);
              display:flex; align-items:center; gap:6px; background:none;
              border:0; padding:0; color:var(--text-3);
              font-size:var(--text-sm); line-height:1.2; white-space:nowrap;
              cursor:pointer; transition:color var(--dur-1) var(--ease); }
  /* The label carries the panel's own ground, so a curve heading to a farther
     year passes behind the words instead of through them. */
  .tnm-node span:last-child { background:var(--surface); padding:2px 6px;
                              border-radius:var(--radius-ctl);
                              /* A title long enough to fit on neither side of
                                 its own dot is clipped rather than run off
                                 the panel; the whole of it is on the card. */
                              max-inline-size:34ch; overflow:hidden;
                              text-overflow:ellipsis; }
  .tnm-node:hover { color:var(--text-1); }
  .tnm-node:hover span:last-child { background:var(--surface-raised);
                                    box-shadow:var(--lift-2); }
  /* Late in the horizon there is no room to the right, so the label lies back
     along the axis it came from rather than off the edge of the panel. */
  .tnm-node.is-back { flex-direction:row-reverse; transform:translate(7px,-50%); }
  .tnm-dot { inline-size:9px; block-size:9px; border-radius:50%; flex:0 0 auto;
             background:var(--track); border:1px solid var(--border); }
  .tnm-node.is-lit { color:var(--text-2); }
  .tnm-node.is-lit .tnm-dot { background:var(--accent); border-color:var(--accent); }
  .tnm-node.is-pick { color:var(--text-1); font-weight:500; }
  .tnm-node.is-pick .tnm-dot { inline-size:11px; block-size:11px;
                               background:var(--amber); border-color:var(--amber);
                               box-shadow:0 0 0 4px color-mix(in srgb,var(--amber) 20%,transparent); }
  .tnm-node.is-dim { opacity:.28; }
  .tnm-node.is-open span:last-child { background:var(--surface-raised);
                                      box-shadow:var(--lift-2); }

  /* Stacked on the left, not a row with the small print pushed right: that
     put it exactly where the dock floats, so it was covered on every visit. */
  .tnm-foot { display:grid; justify-items:start; gap:var(--space-2);
              margin-block-start:var(--space-5); padding-block-start:var(--space-4);
              border-block-start:1px solid var(--border-subtle);
              font-size:var(--text-sm); color:var(--text-3); }
  /* Its own line, on the left. Pushed right, the small print sat exactly
     where the dock floats and was covered on every visit. */
  .tnm-foot .pi-catch { margin:0; max-inline-size:52ch; }

  /* one outcome, read */
  .tnc { margin-block-start:var(--space-3); background:var(--surface);
         border:1px solid var(--border-subtle); border-radius:var(--radius-card);
         border-inline-start:3px solid var(--track);
         padding:var(--space-5) var(--space-6); display:flex;
         flex-direction:column; gap:var(--space-2); }
  .tnc.is-near { border-inline-start-color:var(--amber); }
  .tnc.is-stretch { border-inline-start-color:var(--accent); }
  .tnc.is-ambition { border-inline-start-color:var(--gap-neutral); }
  .tnc-h { display:flex; align-items:baseline; gap:var(--space-3); flex-wrap:wrap; }
  .tnc-k { font:400 var(--text-xs)/1 var(--font-mono); letter-spacing:.12em;
           text-transform:uppercase; color:var(--text-3); }
  .tnc-r { font-size:var(--text-sm); color:var(--text-3); }
  .tnc h3 { font-size:var(--text-xl); margin:0; }
  .tnc p { margin:0; color:var(--text-2); }
  .tnc-why { font-size:var(--text-sm); color:var(--text-3); }
  .tnc-why b { color:var(--text-2); font-weight:500; }
  /* The reasons, as a reading rather than a row of pills. The preference is
     the left column at one width, so five of them line up instead of five
     rounded blobs with five ragged edges. */
  .tnc-because { display:grid; grid-template-columns:max-content minmax(0,1fr);
                 gap:var(--space-2) var(--space-4); margin:var(--space-4) 0 0;
                 padding-block-start:var(--space-4);
                 border-block-start:1px solid var(--border-subtle); }
  .tnc-because-k { grid-column:1 / -1; font:400 var(--text-2xs)/1 var(--font-mono);
                   letter-spacing:.12em; text-transform:uppercase;
                   color:var(--text-3); }
  .tnc-because dt { font-size:var(--text-sm); font-weight:500;
                    color:var(--accent-ink); }
  .tnc-because dd { margin:0; font-size:var(--text-sm); color:var(--text-2); }
  @media (max-width:640px) {
    /* At this width one column of two is 12 characters wide. */
    .tnc-because { grid-template-columns:minmax(0,1fr); gap:var(--space-1) 0; }
    .tnc-because dd { margin-block-end:var(--space-3); }
  }
  .tnc-f { display:flex; align-items:center; gap:var(--space-3); flex-wrap:wrap;
           margin-block-start:var(--space-2); }
  .tnc-set { font-size:var(--text-sm); color:var(--text-3); }
  .tnc-f .tnc-make, .tnc-f .pi-catch { margin-inline-start:auto; }

  @media (max-width:900px) {
    /* The curves need two columns of width. Under that the same facts are a
       list: what you chose, what it reaches, and how far off each one is. */
    .tnm-grid { grid-template-columns:minmax(0,1fr); gap:var(--space-5); }
    .tnm-wires, .tnm-rule, .tnm-line, .tnm-band, .tnm-band-k { display:none; }
    .tnm-plot { min-block-size:0; position:static; }
    .tnm-stations { position:static; flex-direction:row; flex-wrap:wrap; }
    .tnm-node { position:static; transform:none; inline-size:100%;
                white-space:normal; text-align:start; padding:7px 0;
                justify-content:flex-start; }
    .tnm-node.is-back { flex-direction:row; transform:none; }
    .tnm-node::after { content:attr(data-year) "y"; margin-inline-start:auto;
                       font:400 var(--text-2xs)/1 var(--font-mono);
                       color:var(--text-3); }
    .tnc-f .tnc-make, .tnc-f .pi-catch { margin-inline-start:0; }
  }

  /* === A Move's kind, as a mark (CONTEXT.md "Move") ========================
     One tile width, so every row that carries one keeps its controls on the
     same edge whatever the kind is called. Show is amber — you may already
     have it, which is the milestone kind; the others step down in weight. */
  .mvk { inline-size:38px; block-size:38px; border-radius:12px; flex:none;
         display:grid; place-items:center; background:var(--sunk); color:var(--text-2); }
  .mvk svg { inline-size:19px; block-size:19px; }
  .mvk-show { background:color-mix(in srgb, var(--amber-soft) 80%, var(--surface)); color:var(--amber-ink); }
  .mvk-do { background:var(--accent-soft); color:var(--accent-ink); }
  .mvk-make { background:color-mix(in srgb, var(--accent-soft) 50%, var(--sunk)); color:var(--text-1); }
  .mvk-learn { background:var(--sunk); color:var(--text-2); }
  .mvk.is-sm { inline-size:26px; block-size:26px; border-radius:8px; }
  .mvk.is-sm svg { inline-size:14px; block-size:14px; }

  /* === Done asks what was done (static/ui/movedone.js, ADR-0033) ==========
     Header and footer fixed, the body scrolls, so the save button is always
     in reach however many links and files the reader adds. */
  .mvd-scrim { position:fixed; inset:0; z-index:90; background:var(--scrim);
               display:grid; place-items:center; padding:24px 16px; overflow-y:auto;
               animation:mvd-in var(--dur-2) var(--ease) both; }
  @keyframes mvd-in { from { opacity:0; } to { opacity:1; } }
  @media (prefers-reduced-motion:reduce) { .mvd-scrim { animation:none; } }
  .mvd { inline-size:min(600px, 100%); max-block-size:calc(100vh - 48px);
         display:grid; grid-template-rows:auto minmax(0,1fr) auto; overflow:hidden;
         background:var(--surface); border-radius:22px; box-shadow:var(--lift-3); }
  .mvd-h { display:grid; grid-template-columns:38px minmax(0,1fr) auto; gap:14px;
           align-items:start; padding:22px 22px 6px; }
  .mvd-h h2 { margin:0; font:500 21px/1.25 var(--font-display); }
  .mvd-h p { margin:4px 0 0; font-size:var(--text-sm); color:var(--text-2); }
  .mvd-x { inline-size:32px; block-size:32px; border-radius:50%; border:0; background:transparent;
           color:var(--text-3); display:grid; place-items:center; cursor:pointer; }
  .mvd-x:hover { background:var(--sunk); color:var(--text-1); }
  .mvd-x svg { inline-size:16px; block-size:16px; }
  .mvd-b { padding:16px 22px 8px; display:grid; gap:18px; overflow-y:auto; }
  .mvd-f { display:flex; align-items:center; gap:8px; flex-wrap:wrap;
           padding:14px 22px 20px; border-block-start:1px solid var(--border-subtle); }
  .mvd-sp { flex:1; }
  .mvd-field { display:grid; gap:7px; min-inline-size:0; }
  .mvd-field > span { font-weight:500; font-size:var(--text-base); color:var(--text-1); }
  .mvd-field > span small { font-weight:400; font-size:var(--text-xs); color:var(--text-3); margin-inline-start:4px; }
  .mvd-field textarea { inline-size:100%; border:1px solid var(--border); background:var(--surface-raised);
                        border-radius:var(--radius-field); padding:12px 16px; resize:vertical;
                        font:inherit; line-height:1.5; color:var(--text-1); }
  .mvd-input { block-size:var(--ctl-h); border:1px solid var(--border); background:var(--surface-raised);
               border-radius:var(--radius-pill); padding-inline:16px; font:inherit; color:var(--text-1); }
  .mvd-field textarea:focus, .mvd-input:focus { outline:none; border-color:var(--accent);
                                                box-shadow:0 0 0 3px var(--accent-soft); }
  .mvd-compose { display:flex; align-items:center; gap:6px; padding:4px 4px 4px 16px; margin:0;
                 border:1px solid var(--border); border-radius:var(--radius-pill); background:var(--surface-raised); }
  .mvd-compose:focus-within { border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft); }
  .mvd-compose input { flex:1; min-inline-size:0; border:0; background:transparent; block-size:32px;
                       outline:none; font:inherit; color:var(--text-1); }
  .mvd-compose .btn svg { inline-size:14px; block-size:14px; }
  .mvd-chips { display:flex; gap:6px; flex-wrap:wrap; }
  .mvd-chip { display:inline-flex; align-items:center; gap:4px; max-inline-size:100%;
              block-size:28px; padding-inline:12px 4px; border-radius:var(--radius-pill);
              background:var(--sunk); font-size:var(--text-xs); }
  .mvd-chip span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .mvd-chip button { border:0; background:none; inline-size:22px; block-size:22px; border-radius:50%;
                     color:var(--text-3); cursor:pointer; }
  .mvd-chip button:hover { background:var(--border); color:var(--text-1); }
  .mvd-drop { display:flex; align-items:center; gap:12px; padding:14px 16px; border-radius:16px;
              border:1.5px dashed var(--border); background:var(--canvas);
              font-size:var(--text-sm); color:var(--text-2); }
  .mvd-drop svg { inline-size:20px; block-size:20px; color:var(--text-3); flex:none; }
  .mvd-drop label { color:var(--accent-ink); font-weight:500; cursor:pointer; }
  .mvd-drop.is-over { border-color:var(--accent); background:var(--accent-soft); }
  .mvd-places { display:grid; gap:6px; }
  .mvd-place { display:grid; grid-template-columns:18px minmax(0,1fr); gap:12px; align-items:center;
               padding:8px 14px; border-radius:14px; border:1px solid var(--border-subtle);
               background:var(--surface-raised); text-align:start; font:inherit; font-size:var(--text-sm);
               color:var(--text-1); cursor:pointer; }
  .mvd-place small { display:block; color:var(--text-3); font-size:var(--text-xs); }
  .mvd-ring { inline-size:18px; block-size:18px; border-radius:50%; border:1.5px solid var(--border);
              display:grid; place-items:center; }
  .mvd-place[aria-checked="true"] { border-color:var(--accent); }
  .mvd-place[aria-checked="true"] .mvd-ring { border-color:var(--accent); }
  .mvd-place[aria-checked="true"] .mvd-ring::after { content:""; inline-size:8px; block-size:8px;
                                                     border-radius:50%; background:var(--accent); }
  .mvd-switch { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; align-items:center;
                padding:12px 14px; border-radius:14px; background:var(--canvas); font-size:var(--text-sm); }
  .mvd-switch b { font-weight:500; }
  .mvd-switch small { display:block; margin-block-start:2px; color:var(--text-3); font-size:var(--text-xs); }
  .mvd-tog { inline-size:40px; block-size:24px; border-radius:var(--radius-pill); border:0;
             background:var(--border); position:relative; cursor:pointer;
             transition:background var(--dur-2) var(--ease); }
  .mvd-tog::after { content:""; position:absolute; inset-block-start:3px; inset-inline-start:3px;
                    inline-size:18px; block-size:18px; border-radius:50%; background:#fff;
                    box-shadow:var(--lift-1); transition:transform var(--dur-2) var(--ease); }
  .mvd-tog[aria-checked="true"] { background:var(--accent); }
  .mvd-tog[aria-checked="true"]::after { transform:translateX(16px); }
  [dir="rtl"] .mvd-tog[aria-checked="true"]::after { transform:translateX(-16px); }
  .mvd-note { margin:0; font-size:var(--text-xs); color:var(--text-3); }
  @media (max-width:560px) {
    .mvd-scrim { padding:0; place-items:end center; }
    .mvd { border-radius:22px 22px 0 0; max-block-size:92vh; }
    .mvd-f .btn-ghost { order:3; inline-size:100%; }
  }

  /* === Check-ins (check_ins.html, check_in.html, check_in_held.html) ======
     ADR-0033. One reading column. The conversation restates the ascent rail
     at its seventh scale: five rungs, the last amber, because the one focus
     is the milestone the candidate commits to. Every field is a pill; a
     textarea, which cannot be, takes the field radius. */
  /* Room under the last button: the dock floats over the bottom-right of
     every page, and Next / Hold would otherwise sit under it. */
  .ci-col { max-inline-size:680px; margin-inline:auto; padding-block-end:112px; }
  .ci-eyebrow { font:500 var(--text-xs)/1 var(--font-mono); letter-spacing:.12em;
                text-transform:uppercase; color:var(--text-3); }
  .ci-hint { margin:6px 0 0; font-size:var(--text-sm); color:var(--text-2); }
  .ci-faint { font-size:var(--text-sm); color:var(--text-3); }
  .ci-muted { color:var(--text-2); }
  .ci-sub { margin-block-start:4px; font-size:var(--text-sm); color:var(--text-3); }

  .ci-open { padding:26px; display:grid; gap:18px; box-shadow:var(--lift-2); border-color:var(--border); }
  .ci-open h2 { margin:0; font:500 26px/1.2 var(--font-display); text-wrap:balance; letter-spacing:-.005em; }
  .ci-open .ci-hint { margin:0 0 10px; }
  .ci-peek { display:flex; flex-wrap:wrap; gap:6px; }
  .ci-peek span { font-size:var(--text-xs); color:var(--text-2); background:var(--sunk);
                  border-radius:var(--radius-pill); padding:5px 12px; }
  .ci-go { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
  .ci-quiet { padding:22px 24px; display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
  .ci-quiet-b { flex:1; min-inline-size:220px; display:grid; gap:6px; }
  .ci-quiet-t { font:500 20px/1.3 var(--font-display); }
  .ci-quiet form { margin:0; }

  .ci-cad { margin-block-start:12px; padding:0; }
  .ci-cad summary { list-style:none; display:flex; align-items:center; gap:12px;
                    padding:14px 18px; cursor:pointer; }
  .ci-cad summary::-webkit-details-marker { display:none; }
  .ci-cad-w { flex:1; min-inline-size:0; }
  .ci-cad-w b { font-weight:500; }
  .ci-cad-w small { display:block; margin-block-start:2px; font-size:var(--text-sm); color:var(--text-3); }
  .ci-cad[open] .ci-cad-btn { visibility:hidden; }
  .ci-cad-form { display:flex; flex-wrap:wrap; align-items:end; gap:18px; margin:0;
                 padding:14px 18px 18px; border-block-start:1px solid var(--border-subtle); }
  .ci-field { display:grid; gap:7px; min-inline-size:0; border:0; margin:0; padding:0;
              font-size:var(--text-sm); color:var(--text-2); }
  .ci-field > span, .ci-field > legend { padding:0; font-weight:500; font-size:var(--text-base); color:var(--text-1); }
  .ci-field > span small { font-weight:400; font-size:var(--text-xs); color:var(--text-3); margin-inline-start:4px; }
  .ci-pills { display:inline-flex; flex-wrap:wrap; gap:2px; padding:3px; border-radius:var(--radius-pill); background:var(--sunk); }
  .ci-pills label { position:relative; }
  .ci-pills input { position:absolute; opacity:0; pointer-events:none; }
  .ci-pills span { display:inline-flex; align-items:center; block-size:32px; padding-inline:14px;
                   border-radius:var(--radius-pill); font-size:var(--text-sm); color:var(--text-2); cursor:pointer; }
  .ci-pills input:checked + span { background:var(--surface-raised); color:var(--text-1);
                                   box-shadow:var(--lift-1); font-weight:500; }
  .ci-pills input:focus-visible + span { outline:2px solid var(--accent); outline-offset:1px; }
  .ci-input, .ci-select { block-size:var(--ctl-h); min-inline-size:0; border:1px solid var(--border);
                          background:var(--surface-raised); border-radius:var(--radius-pill);
                          padding-inline:16px; font:inherit; color:var(--text-1); }
  .ci-input.is-sm { block-size:30px; padding-inline:12px; font-size:var(--text-sm); }
  .ci-select { appearance:none; -webkit-appearance:none; padding-inline-end:40px;
               background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
               background-repeat:no-repeat; background-size:16px; background-position:right 14px center; }
  [dir="rtl"] .ci-select { background-position:left 14px center; }
  .ci-area { inline-size:100%; border:1px solid var(--border); background:var(--surface-raised);
             border-radius:var(--radius-field); padding:12px 16px; resize:vertical;
             font:inherit; line-height:1.5; color:var(--text-1); }
  .ci-input::placeholder, .ci-area::placeholder { color:var(--text-3); }
  .ci-input:focus, .ci-select:focus, .ci-area:focus { outline:none; border-color:var(--accent);
                                                      box-shadow:0 0 0 3px var(--accent-soft); }

  .ci-hist { padding:4px 18px; }
  .ci-hi { display:grid; grid-template-columns:72px minmax(0,1fr) auto; gap:16px; align-items:start;
           padding:16px 4px; border-block-end:1px solid var(--border-subtle); color:inherit; text-decoration:none; }
  .ci-hi:last-child { border-block-end:0; }
  a.ci-hi:hover .ci-hi-t { color:var(--accent-ink); }
  .ci-hi-d { padding-block-start:4px; font:500 var(--text-xs)/1.5 var(--font-mono);
             letter-spacing:.08em; text-transform:uppercase; color:var(--text-3); }
  .ci-hi-t { font:500 16px/1.3 var(--font-display); }
  .ci-hi-s { margin-block-start:4px; display:flex; align-items:center; gap:8px; flex-wrap:wrap;
             font-size:var(--text-sm); color:var(--text-2); }
  .ci-hi.is-nh .ci-hi-t { color:var(--text-3); font-style:italic; }
  .ci-hi.is-nh .ci-hi-s { color:var(--text-3); }
  .ci-hi-go { align-self:center; color:var(--text-3); }
  .ci-hi-go svg { inline-size:16px; block-size:16px; }

  .ci-climb { display:inline-flex; align-items:flex-end; gap:2px; block-size:12px; }
  .ci-climb s { inline-size:4px; border-radius:1px; background:var(--track); }
  .ci-climb s.on { background:var(--accent); }
  .ci-climb.is-big { block-size:24px; gap:3px; }
  .ci-climb.is-big s { inline-size:5px; border-radius:2px; }
  .ci-feel { display:inline-flex; align-items:center; gap:7px; font-size:var(--text-xs); color:var(--text-2); }

  /* the conversation */
  .ci-rail { display:grid; grid-template-columns:repeat(5, minmax(0,1fr)); gap:6px; margin-block-end:30px; }
  .ci-rung { display:grid; gap:8px; padding:0; border:0; background:none; text-align:start; cursor:pointer;
             font:500 10px/1.2 var(--font-mono); letter-spacing:.1em; text-transform:uppercase; color:var(--text-3); }
  .ci-rung:disabled { cursor:default; }
  .ci-rung i { block-size:4px; border-radius:2px; background:var(--track); transition:background .3s var(--ease); }
  .ci-rung.is-done i { background:var(--accent); }
  .ci-rung.is-here { color:var(--text-1); }
  .ci-rung.is-here i { background:linear-gradient(90deg, var(--accent) 40%, var(--track) 40%); }
  [dir="rtl"] .ci-rung.is-here i { background:linear-gradient(270deg, var(--accent) 40%, var(--track) 40%); }
  .ci-rung.is-last.is-done i, .ci-rung.is-last.is-here i { background:var(--amber); }
  .ci-rung.is-last.is-here { color:var(--amber-ink); }

  .ci-said { display:grid; gap:14px; margin-block-end:22px; }
  .ci-said-i { display:grid; grid-template-columns:24px minmax(0,1fr) auto; gap:14px; align-items:center; }
  .ci-said-mk { inline-size:24px; block-size:24px; border-radius:50%; display:grid; place-items:center;
                background:var(--accent-soft); color:var(--accent-ink); }
  .ci-said-mk svg { inline-size:12px; block-size:12px; }
  .ci-said-mk.is-skip { background:var(--sunk); color:var(--text-3); }
  .ci-said-q { font:400 14px/1.4 var(--font-display); color:var(--text-2); }
  .ci-said-a { font-size:var(--text-sm); color:var(--text-1); }
  .ci-said-a.is-faint { color:var(--text-3); }

  .ci-beat { display:grid; gap:30px; padding-block-start:6px; }
  /* Only a new beat rises in. A toggle inside one (an answer, a move op) lands
     in place, or choosing something reads as the page refreshing. */
  .ci-beat.is-enter { animation:ci-rise .35s var(--ease) both; }
  @keyframes ci-rise { from { opacity:.001; transform:translateY(6px); } to { opacity:1; transform:none; } }
  @media (prefers-reduced-motion:reduce) { .ci-beat.is-enter { animation:none; } .ci-rung i { transition:none; } }
  .ci-ask { display:grid; grid-template-columns:30px minmax(0,1fr); column-gap:14px; row-gap:16px; }
  .ci-omark { inline-size:30px; block-size:30px; border-radius:50%; display:grid; place-items:center;
              margin-block-start:3px; background:var(--accent-soft); color:var(--accent-ink); }
  .ci-omark svg { inline-size:16px; block-size:16px; }
  .ci-qwrap { min-inline-size:0; }
  .ci-q { margin:0; font:450 24px/1.3 var(--font-display); text-wrap:balance; letter-spacing:-.005em; }
  .ci-q em, .ci-hint em { font-style:italic; color:var(--accent-ink); }
  .ci-ans { grid-column:2; display:grid; gap:14px; min-inline-size:0; }
  .ci-nav { display:flex; align-items:center; gap:8px; margin-block-start:40px; margin-inline-start:44px; }
  .ci-nav .btn svg { inline-size:15px; block-size:15px; }
  .ci-sp { flex:1; }

  .ci-choices { display:flex; flex-wrap:wrap; gap:8px; }
  .ci-choice { block-size:var(--ctl-h); padding-inline:18px; border:1px solid var(--border);
               border-radius:var(--radius-pill); background:var(--surface); font:inherit; color:var(--text-1); cursor:pointer;
               transition:background var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
  .ci-choice:hover { border-color:var(--accent); }
  .ci-choice[aria-pressed="true"] { background:var(--accent-soft); border-color:var(--accent);
                                    color:var(--accent-ink); font-weight:500; }
  .ci-scale { display:grid; grid-template-columns:repeat(5, minmax(0,1fr)); gap:8px; }
  .ci-scale button { display:grid; justify-items:center; gap:9px; padding:14px 6px 11px; border:1px solid var(--border);
                     border-radius:16px; background:var(--surface); font:inherit; font-size:var(--text-sm);
                     color:var(--text-2); cursor:pointer;
                     transition:background var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
  .ci-scale button:hover { border-color:var(--accent); }
  .ci-scale button[aria-pressed="true"] { border-color:var(--accent); background:var(--accent-soft);
                                          color:var(--accent-ink); font-weight:500; }

  .ci-noticed, .ci-wins, .ci-moves, .ci-focus-list { display:grid; gap:8px; }
  .ci-nt { display:grid; grid-template-columns:38px minmax(0,1fr) auto; gap:12px; align-items:center;
           padding:12px 12px 12px 14px; border-radius:16px; border:1px solid var(--border-subtle); background:var(--surface);
           transition:background var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease); }
  .ci-nt-ic { inline-size:38px; block-size:38px; border-radius:12px; display:grid; place-items:center;
              background:var(--sunk); color:var(--text-2); }
  .ci-nt-ic svg { inline-size:17px; block-size:17px; }
  .ci-nt-w { min-inline-size:0; font-size:var(--text-sm); }
  .ci-nt-w small { display:block; margin-block-start:1px; font-size:var(--text-xs); color:var(--text-3); }
  .ci-nt-acts { display:flex; gap:4px; }
  .ci-nt.is-counted { border-color:color-mix(in srgb, var(--accent) 40%, var(--border-subtle));
                      background:color-mix(in srgb, var(--accent-soft) 60%, var(--surface)); }
  .ci-nt.is-counted .ci-nt-ic { background:var(--accent); color:var(--on-accent); }
  .ci-nt.is-skipped { opacity:.5; }
  .ci-nt.is-skipped .ci-nt-w { text-decoration:line-through; text-decoration-color:var(--text-3); }

  /* A win the candidate added reads as one of the noticed rows: same 38px tile,
     same --text-sm line, same right-hand action column the noticed Undo/Count it
     sit in. The linked capability, and the control that links one, take the row
     beneath the text. */
  .ci-win { display:grid; grid-template-columns:38px minmax(0,1fr) auto; gap:0 12px; align-items:center;
            padding:12px 12px 12px 14px; border-radius:16px; border:1px solid var(--border-subtle);
            background:var(--surface); }
  .ci-pen, .ci-x { inline-size:26px; block-size:26px; border:0; border-radius:50%; background:none;
          display:grid; place-items:center; color:var(--text-3); font-size:16px; line-height:1; cursor:pointer;
          transition:background var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
  .ci-pen svg { inline-size:14px; block-size:14px; }
  .ci-pen:hover, .ci-x:hover { background:var(--sunk); color:var(--text-1); }
  .ci-tagrow { grid-column:2 / -1; display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
  .ci-tagrow .ci-faint { font-size:var(--text-xs); margin-inline-end:2px; }
  /* The link-capability control, the profile's +N chip: a control about the row
     rather than another chip in it, so no border and accent-ink text. */
  .ci-more { display:inline-flex; align-items:center; gap:5px; block-size:30px; padding-inline:var(--space-3);
             border:none; background:transparent; border-radius:var(--radius-pill); color:var(--accent-ink);
             font:500 var(--text-sm) var(--font-ui); cursor:pointer;
             transition:background var(--dur-1) var(--ease); }
  .ci-more:hover { background:var(--accent-soft); }
  .ci-more svg { inline-size:12px; block-size:12px; flex:none; transition:transform var(--dur-2) var(--ease); }
  .ci-win.is-open .ci-more svg { transform:rotate(180deg); }
  .ci-win-edit { inline-size:100%; }
  .ci-tag { display:inline-flex; align-items:center; gap:7px; block-size:28px; padding-inline:11px;
            border:1px dashed var(--border); border-radius:var(--radius-pill); background:transparent;
            font:inherit; font-size:var(--text-xs); color:var(--text-2); cursor:pointer; }
  .ci-tag:hover { border-color:var(--accent); color:var(--accent-ink); }
  .ci-tag.is-set { border-style:solid; border-color:var(--accent); background:var(--accent-soft); color:var(--accent-ink); }
  .ci-status { display:inline-flex; align-items:center; gap:6px; }
  .ci-status::before { content:""; inline-size:6px; block-size:6px; border-radius:50%; flex:none; background:var(--gap-neutral); }
  .ci-status.is-strength::before { background:var(--amber); }
  .ci-status.is-developing::before { background:var(--accent); }
  .ci-tag > .ci-status { gap:0; }
  .ci-picker { grid-column:2 / -1; display:grid; gap:12px; padding:12px; border-radius:14px; background:var(--canvas); }
  .ci-picker h4 { margin:0 0 6px; font:500 10.5px/1 var(--font-mono); letter-spacing:.1em;
                  text-transform:uppercase; color:var(--text-3); }
  .ci-picker .ci-faint { margin:0; font-size:var(--text-xs); }
  .ci-opts { display:flex; flex-wrap:wrap; gap:6px; }
  .ci-compose { display:flex; align-items:center; gap:6px; margin:0; padding:5px 5px 5px 18px;
                border:1px solid var(--border); border-radius:var(--radius-pill); background:var(--surface-raised);
                transition:border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease); }
  .ci-compose:focus-within { border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft); }
  .ci-compose input { flex:1; min-inline-size:0; block-size:34px; border:0; background:transparent;
                      outline:none; font:inherit; color:var(--text-1); }
  .ci-compose input::placeholder { color:var(--text-3); }
  .ci-compose .btn { block-size:34px; }
  .ci-compose .btn svg { inline-size:14px; block-size:14px; }

  .ci-mv { display:grid; grid-template-columns:38px minmax(0,1fr); gap:0 14px; padding:16px;
           border-radius:16px; border:1px solid var(--border-subtle); background:var(--surface); }
  .ci-mv-t { font-size:var(--text-base); font-weight:500; line-height:1.4; }
  .ci-mv-c { margin-block-start:3px; display:flex; flex-wrap:wrap; align-items:center; gap:8px;
             font-size:var(--text-xs); color:var(--text-3); }
  .ci-mv-c b { font-weight:500; color:var(--text-2); }
  .ci-ops { grid-column:2; display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-block-start:12px; }
  .ci-op { display:inline-flex; align-items:center; gap:6px; block-size:30px; padding-inline:13px;
           border:1px solid var(--border); border-radius:var(--radius-pill); background:transparent;
           font:inherit; font-size:var(--text-sm); color:var(--text-2); cursor:pointer;
           transition:background var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
  .ci-op svg { inline-size:13px; block-size:13px; }
  .ci-op:hover { border-color:var(--accent); color:var(--text-1); }
  .ci-op[aria-pressed="true"] { background:var(--accent-soft); border-color:var(--accent);
                                color:var(--accent-ink); font-weight:500; }
  .ci-op.is-drop[aria-pressed="true"] { background:var(--sunk); border-color:var(--border); color:var(--text-2); }
  .ci-mv.is-dropped .ci-mv-t { text-decoration:line-through; color:var(--text-3); }
  .ci-mv.is-done { border-color:color-mix(in srgb, var(--ok) 35%, var(--border-subtle)); }
  .ci-mv-proof { grid-column:2; margin-block-start:10px; }
  .ci-proofline { display:flex; align-items:center; gap:10px; padding:8px 12px; border-radius:14px;
                  background:color-mix(in srgb, var(--ok-bg) 70%, var(--surface));
                  font-size:var(--text-sm); color:var(--text-2); }
  .ci-proofline svg { inline-size:15px; block-size:15px; flex:none; color:var(--ok); }
  .ci-proofline b { font-weight:500; color:var(--text-1); }

  .ci-newmove { display:grid; gap:18px; margin:0; padding:20px; border-radius:18px;
                border:1px solid var(--border); background:var(--surface); box-shadow:var(--lift-2); }
  .ci-newmove h3 { margin:0; font:500 17px/1.3 var(--font-display); }
  .ci-kinds { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:8px; }
  .ci-kind { display:grid; align-content:start; justify-items:start; gap:8px; min-block-size:112px;
             padding:12px; border:1px solid var(--border); border-radius:16px; background:var(--surface-raised);
             text-align:start; font:inherit; color:var(--text-1); cursor:pointer; }
  .ci-kind b { font-weight:600; font-size:var(--text-sm); }
  .ci-kind small { font-size:var(--text-xs); line-height:1.35; color:var(--text-3); }
  .ci-kind:hover { border-color:var(--accent); }
  .ci-kind[aria-checked="true"] { border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft); }
  .ci-two { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:14px; }
  .ci-when { display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
  .ci-nm-foot { display:flex; justify-content:flex-end; gap:8px; }

  .ci-fo { display:grid; grid-template-columns:38px minmax(0,1fr) 20px; gap:14px; align-items:center;
           padding:12px 16px 12px 12px; border:1px solid var(--border-subtle); border-radius:16px;
           background:var(--surface); text-align:start; font:inherit; font-size:var(--text-base);
           color:var(--text-1); cursor:pointer;
           transition:background var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease); }
  .ci-fo small { display:block; margin-block-start:2px; font-size:var(--text-xs); color:var(--text-3); }
  .ci-fo .mvk svg { inline-size:17px; block-size:17px; }
  .ci-ring { inline-size:20px; block-size:20px; border-radius:50%; border:1.5px solid var(--border);
             display:grid; place-items:center; }
  .ci-fo:hover { border-color:var(--amber); }
  .ci-fo[aria-checked="true"] { border-color:var(--amber);
                                background:color-mix(in srgb, var(--amber-soft) 60%, var(--surface)); }
  .ci-fo[aria-checked="true"] .ci-ring { border-color:var(--amber); }
  .ci-fo[aria-checked="true"] .ci-ring::after { content:""; inline-size:10px; block-size:10px;
                                                border-radius:50%; background:var(--amber); }

  /* the record of it */
  .ci-sum { padding:26px; display:grid; gap:20px; box-shadow:var(--lift-2); }
  .ci-sum-h { display:flex; align-items:baseline; flex-wrap:wrap; gap:12px; }
  .ci-sum-h h2 { margin:0; font:500 26px/1.2 var(--font-display); }
  .ci-sum dl { display:grid; grid-template-columns:120px minmax(0,1fr); gap:14px 18px; margin:0; }
  .ci-sum dt { font:500 10.5px/1.9 var(--font-mono); letter-spacing:.1em; text-transform:uppercase; color:var(--text-3); }
  .ci-sum dd { margin:0; min-inline-size:0; font-size:var(--text-base); }
  .ci-sum dd ul { margin:0; padding:0; list-style:none; display:grid; gap:8px; }
  .ci-cap { display:inline-block; margin-inline-start:6px; padding:1px 9px; border-radius:var(--radius-pill);
            background:var(--accent-soft); color:var(--accent-ink); font-size:var(--text-xs); white-space:nowrap; }
  .ci-plan li { display:grid; grid-template-columns:auto minmax(0,1fr); gap:10px; align-items:start; }
  .ci-plan-v { display:block; margin-block-end:2px; font:500 10px/1 var(--font-mono);
               letter-spacing:.1em; text-transform:uppercase; color:var(--text-3); }
  .ci-focus { padding:12px 16px; border-radius:16px; font-weight:500;
              background:color-mix(in srgb, var(--amber-soft) 60%, var(--surface));
              border:1px solid color-mix(in srgb, var(--amber) 30%, var(--border-subtle)); }
  .ci-focus small { display:block; margin-block-start:2px; font-weight:400; font-size:var(--text-xs); color:var(--text-2); }
  .ci-offer { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px 16px; align-items:center;
              padding:16px 18px; border-radius:16px; border:1px solid var(--border); background:var(--canvas); }
  .ci-offer p { margin:0; font-size:var(--text-sm); color:var(--text-2); }
  .ci-offer p b { font-weight:500; color:var(--text-1); }
  .ci-offer form { margin:0; }
  .ci-offer.is-filed { border-color:color-mix(in srgb, var(--ok) 40%, var(--border));
                       background:color-mix(in srgb, var(--ok-bg) 60%, var(--surface)); }
  .ci-read { padding:18px 20px; border-radius:16px; border:1px solid var(--border-subtle); background:var(--canvas); }
  .ci-read .ci-eyebrow { display:block; margin-block-end:8px; }
  .ci-read p { margin:0; font:400 15.5px/1.6 var(--font-display); }
  .ci-next { display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding-block-start:6px; }
  .ci-next span { flex:1; min-inline-size:200px; font-size:var(--text-sm); color:var(--text-2); }
  .ci-delete { display:flex; justify-content:center; margin-block-start:var(--space-4); }

  @media (max-width:860px) { .ci-kinds { grid-template-columns:repeat(2, minmax(0,1fr)); } }
  @media (max-width:560px) {
    .ci-q { font-size:21px; }
    .ci-ask { grid-template-columns:minmax(0,1fr); }
    .ci-omark { display:none; }
    .ci-ans { grid-column:1; }
    .ci-nav { margin-inline-start:0; }
    .ci-scale { gap:4px; }
    .ci-scale button { padding-inline:2px; font-size:var(--text-xs); }
    .ci-rung span { display:none; }
    .ci-hi { grid-template-columns:minmax(0,1fr) auto; }
    .ci-hi-d { grid-column:1 / -1; }
    .ci-sum dl { grid-template-columns:minmax(0,1fr); gap:4px; }
    .ci-sum dd { margin-block-end:12px; }
    .ci-two { grid-template-columns:minmax(0,1fr); }
    .ci-said-i { grid-template-columns:24px minmax(0,1fr); }
    .ci-said-i .btn { grid-column:2; justify-self:start; }
    .ci-offer { grid-template-columns:minmax(0,1fr); }
  }

  /* ══════════════════════════════════════════════════════════════════════
     The Referral disclosure (signup.html) — .auth-ref

     What a person arriving through a Referral link is told before they sign
     up: who invited them, the discount, and what that person will see. It
     sits between the sign-up subtitle and the Clerk mount, so it is read
     before the form rather than discovered afterwards.
     ══════════════════════════════════════════════════════════════════════ */
  .auth-ref { padding:var(--space-4); border-radius:12px; background:var(--sunk);
              font-size:var(--text-sm); color:var(--text-2); }
  .auth-ref p { margin:0; }
  .auth-ref p + p { margin-block-start:var(--space-2); }
  .auth-ref-invite { color:var(--text-1); font-weight:600; }

  /* ══════════════════════════════════════════════════════════════════════
     Referrals (Settings → Referrals, ADR-0036) — .rf-*

     The referrer's page: the link, the deal in three facts, how far the
     people who joined got, what is owed, each referral's progress, the
     commission ledger and the payouts. Tokens only, logical properties,
     no theme branch. Money is grouped by the server; compared figures carry
     `data-metric`; eyebrows are mono.
     ══════════════════════════════════════════════════════════════════════ */

  /* ── the link ─────────────────────────────────────────────────────── */
  .rf-share { padding:var(--space-5); display:grid; gap:var(--space-4); }
  /* minmax(0,1fr), not a flex basis: on a phone the code has to be the thing
     that shrinks, or the pill pushes the page wider than the viewport. */
  .rf-link-row { display:grid; grid-template-columns:minmax(0,1fr); }
  .rf-link { min-inline-size:0; display:flex; align-items:center;
             block-size:44px; padding-inline:var(--space-4) var(--space-1);
             gap:var(--space-2); background:var(--sunk);
             border:1px solid var(--border-subtle); border-radius:var(--radius-pill); }
  .rf-link .btn { flex:none; }
  .rf-link code { flex:1 1 auto; min-inline-size:0; overflow:hidden;
                  text-overflow:ellipsis; white-space:nowrap;
                  font:500 var(--text-base) var(--font-mono); color:var(--text-1);
                  user-select:all; }
  .rf-link code b { color:var(--accent-ink); font-weight:600; }
  .rf-terms { display:grid; grid-template-columns:repeat(3, minmax(0,1fr));
              gap:var(--space-4); }
  .rf-term { display:flex; flex-direction:column; gap:2px; min-inline-size:0; }
  .rf-term-k { font:500 var(--text-xs) var(--font-mono); letter-spacing:.1em;
               text-transform:uppercase; color:var(--text-3); }
  .rf-term-v { font-size:var(--text-sm); color:var(--text-2); }
  .rf-term-v b { color:var(--text-1); font-weight:600; }

  /* the disclosure preview, under the link */
  .rf-peek { border-block-start:1px solid var(--border-subtle);
             padding-block-start:var(--space-3); }
  .rf-peek summary { cursor:pointer; font-size:var(--text-sm); color:var(--text-2);
                     list-style:none; display:inline-flex; align-items:center; gap:6px; }
  .rf-peek summary::-webkit-details-marker { display:none; }
  .rf-peek summary svg { inline-size:14px; block-size:14px;
                         transition:transform var(--dur-2) var(--ease); }
  .rf-peek[open] summary svg { transform:rotate(90deg); }
  .rf-peek-card { margin-block-start:var(--space-3); padding:var(--space-4) var(--space-5);
                  border-radius:12px; background:var(--sunk); display:grid; gap:6px;
                  max-inline-size:560px; }
  .rf-peek-h { font:600 var(--text-lg)/1.3 var(--font-display); }
  .rf-peek-card p { margin:0; font-size:var(--text-sm); color:var(--text-2); }
  .rf-peek-off { color:var(--ok); font-weight:600; }

  /* ── the two summary cards: how far they got, what you are owed ───── */
  .rf-sum { display:grid; grid-template-columns:1.25fr 1fr; gap:var(--space-4); }
  .rf-sum-card { padding:var(--space-5); display:flex; flex-direction:column;
                 gap:var(--space-4); min-inline-size:0; }
  .rf-sum-h { display:flex; align-items:baseline; justify-content:space-between;
              gap:var(--space-3); }
  .rf-sum-h h3 { margin:0; font:600 var(--text-lg)/1.3 var(--font-display);
                 letter-spacing:-.01em; }
  .rf-sum-h span { font-size:var(--text-xs); color:var(--text-3); }
  .rf-sum-foot { margin-block-start:auto; font-size:var(--text-xs); color:var(--text-3); }

  .rf-ladder { display:grid; gap:10px; }
  .rf-step { display:grid; grid-template-columns:118px minmax(0,1fr) 44px;
             align-items:center; gap:var(--space-3); }
  .rf-step-l { font-size:var(--text-sm); color:var(--text-2); }
  .rf-step-t { block-size:8px; border-radius:var(--radius-pill);
               background:var(--track); overflow:hidden; }
  .rf-step-t i { display:block; block-size:100%; border-radius:inherit;
                 background:var(--accent); }
  .rf-step-v { text-align:end; font:500 var(--text-sm) var(--font-mono);
               color:var(--text-1); }
  .rf-step.is-pro { padding-block-start:10px;
                    border-block-start:1px dashed var(--border-subtle); }
  .rf-step.is-pro .rf-step-t i { background:var(--ok); }

  .rf-owed { display:grid; grid-template-columns:1fr 1fr; gap:var(--space-4); }
  .rf-owed-fig { display:flex; flex-direction:column; gap:2px; min-inline-size:0; }
  .rf-owed-v { font:600 var(--text-2xl)/1.15 var(--font-display);
               letter-spacing:-.02em; }
  .rf-owed-v small { font:500 var(--text-sm) var(--font-ui); color:var(--text-3);
                     margin-inline-start:4px; letter-spacing:0; }
  .rf-owed-k { font-size:var(--text-xs); color:var(--text-3); }

  .rf-states { display:grid; gap:6px; }
  .rf-state { display:flex; justify-content:space-between; gap:var(--space-3);
              font-size:var(--text-sm); color:var(--text-2); }
  .rf-state span:last-child { font-family:var(--font-mono); color:var(--text-1);
                              text-align:end; white-space:nowrap; line-height:1.5; }

  /* ── the payout block inside the commission card ─────────────────── */
  .rf-pay { display:grid; gap:var(--space-3); padding:var(--space-4);
            border-radius:12px; background:var(--sunk); }
  .rf-pay-row { display:flex; align-items:center; justify-content:space-between;
                gap:var(--space-3); flex-wrap:wrap; }
  .rf-pay-row.is-ask { flex-wrap:nowrap; }
  .rf-pay-what { display:flex; flex-direction:column; gap:2px; min-inline-size:0; }
  .rf-pay-amt { font:600 var(--text-lg)/1.2 var(--font-mono); color:var(--text-1); }
  .rf-pay-to { font-size:var(--text-xs); color:var(--text-3); }
  .rf-pay-to b { font:500 var(--text-xs) var(--font-mono); color:var(--text-2); }
  .rf-pay-wait { display:flex; align-items:center; gap:var(--space-2);
                 font-size:var(--text-sm); color:var(--text-2); }
  .rf-dot { inline-size:8px; block-size:8px; border-radius:50%;
            background:var(--amber); flex:none; }
  .rf-pay-lines { display:grid; gap:6px; font-size:var(--text-sm); }
  .rf-pay-lines div { display:flex; justify-content:space-between; gap:var(--space-3);
                      color:var(--text-2); }
  .rf-pay-lines div span:last-child { font-family:var(--font-mono);
                                      color:var(--text-1); text-align:end; }
  .rf-pay-tot { padding-block-start:6px; border-block-start:1px solid var(--border);
                font-weight:600; }
  .rf-pay-tot span { color:var(--text-1); }
  .rf-pay-note { margin:0; font-size:var(--text-xs); color:var(--text-3); }
  .rf-pay-acts { display:flex; justify-content:flex-end; gap:var(--space-3); }
  .rf-pay-none p { margin:0; }
  .rf-number-form { display:flex; align-items:center; gap:var(--space-3);
                    flex-wrap:wrap; }
  .rf-net { display:inline-flex; gap:var(--space-1); background:var(--canvas);
            padding:var(--space-1); border-radius:var(--radius-pill); }
  .rf-net-pill input { position:absolute; opacity:0; pointer-events:none; }
  .rf-net-pill span { display:inline-flex; align-items:center; block-size:30px;
                      padding-inline:var(--space-4); border-radius:var(--radius-pill);
                      font:500 var(--text-sm) var(--font-ui); color:var(--text-2);
                      cursor:pointer; }
  .rf-net-pill input:checked + span { background:var(--surface); color:var(--text-1);
                                      border:1px solid var(--border-subtle); }
  .rf-net-pill input:focus-visible + span { outline:2px solid var(--accent);
                                            outline-offset:2px; }
  .rf-phone { flex:1 1 160px; min-inline-size:0; }
  .rf-sep { margin-inline-start:var(--space-1); color:var(--text-3); }
  .rf-change { margin-inline-start:var(--space-2); padding:0; border:0;
               background:transparent; font:500 var(--text-xs) var(--font-ui);
               color:var(--text-2); cursor:pointer;
               text-decoration:underline; text-underline-offset:2px; }
  .rf-change:hover { color:var(--text-1); }

  /* ── the people ───────────────────────────────────────────────────── */
  .rf-people { overflow:hidden; }
  .rf-p-head, .rf-p-row { display:grid;
    grid-template-columns:minmax(0,1.3fr) 84px minmax(0,1.5fr) 64px 108px 96px;
    gap:var(--space-4); align-items:center; padding:var(--space-3) var(--space-5); }
  .rf-p-head { border-block-end:1px solid var(--border-subtle); }
  .rf-p-head span { font:500 var(--text-xs) var(--font-mono); letter-spacing:.1em;
                    text-transform:uppercase; color:var(--text-3); }
  .rf-p-head .end, .rf-p-row .end { text-align:end; justify-self:end; }
  .rf-p-item + .rf-p-item { border-block-start:1px solid var(--border-subtle); }
  .rf-p-row { min-block-size:60px; }
  .rf-who { display:flex; align-items:center; gap:var(--space-3); min-inline-size:0; }
  .rf-avatar { inline-size:30px; block-size:30px; font-size:var(--text-xs); }
  .rf-avatar.is-private { place-items:center; color:var(--text-3);
                          background:var(--sunk); border:1px dashed var(--border); }
  .rf-avatar.is-private svg { inline-size:14px; block-size:14px; }
  .rf-name { font-size:var(--text-base); color:var(--text-1); white-space:nowrap;
             overflow:hidden; text-overflow:ellipsis; }
  .rf-name.is-private { color:var(--text-2); font-style:italic;
                        white-space:normal; overflow:visible; line-height:1.3; }
  .rf-date { font:400 var(--text-sm) var(--font-mono); color:var(--text-2);
             white-space:nowrap; }

  /* A referral's onboarding as the ascent rail at row scale: four stops,
     filled for the milestones reached, the next one ringed amber when they
     have stalled. */
  .rf-rail { display:flex; flex-direction:column; gap:4px; min-inline-size:0; }
  .rf-rail-stops { display:flex; align-items:center; }
  .rf-stop { inline-size:10px; block-size:10px; border-radius:50%;
             background:var(--track); flex:none; }
  .rf-stop.on { background:var(--accent); }
  .rf-stop.next { background:var(--surface);
                  box-shadow:inset 0 0 0 2px var(--amber); }
  .rf-seg { flex:0 0 22px; block-size:2px; background:var(--track); }
  .rf-seg.on { background:var(--accent); }
  .rf-rail-t { font-size:var(--text-xs); color:var(--text-3); white-space:nowrap;
               overflow:hidden; text-overflow:ellipsis; }
  .rf-rail-t b { color:var(--text-2); font-weight:500; }
  .rf-rail-t.is-stalled b { color:var(--amber-ink); }

  .rf-comm { font:500 var(--text-sm) var(--font-mono); text-align:end;
             white-space:nowrap; }
  .rf-comm > span { display:block; }
  .rf-comm small { display:block; font:400 var(--text-xs) var(--font-ui);
                   color:var(--text-3); }
  .rf-none { color:var(--text-3); }
  .rf-void { text-decoration:line-through; color:var(--text-3); }
  .rf-nudge-btn[aria-expanded="true"] { background:var(--accent-soft);
    border-color:transparent; color:var(--accent-ink); }

  .rf-composer { display:grid; gap:var(--space-3);
                 margin:0 var(--space-5) var(--space-4); padding:var(--space-4);
                 background:var(--sunk); border-radius:12px; }
  .rf-composer label { font:500 var(--text-xs) var(--font-mono); letter-spacing:.1em;
                       text-transform:uppercase; color:var(--text-3); }
  .rf-composer textarea { inline-size:100%; min-block-size:96px; resize:vertical;
    padding:var(--space-3) var(--space-4); border:1px solid var(--border);
    border-radius:12px; background:var(--surface); color:var(--text-1);
    font:400 var(--text-base)/1.55 var(--font-ui); }
  .rf-composer-foot { display:flex; align-items:center; gap:var(--space-3);
                      flex-wrap:wrap; }
  .rf-composer-foot p { margin:0; flex:1 1 260px; font-size:var(--text-xs);
                        color:var(--text-3); }

  .rf-empty { padding:var(--space-6) var(--space-5); text-align:center;
              color:var(--text-3); font-size:var(--text-sm); }
  .rf-n { margin-inline-start:6px; font:500 var(--text-xs) var(--font-mono); color:var(--text-3); }
  .rf-n.is-amber { color:var(--amber-ink); }

  /* ── the commission ledger: the billing ledger's shape ────────────── */
  .rf-led-scroll { overflow-x:auto; }
  .rf-led { min-inline-size:720px; }
  .rf-led .led-head, .rf-led .led-row {
    grid-template-columns:96px minmax(140px,1fr) 116px 72px 104px 92px; }
  .rf-num { font-family:var(--font-mono); white-space:nowrap; }
  .rf-of { color:var(--text-3); font-family:var(--font-mono); }
  .rf-ref { font-size:var(--text-sm); color:var(--text-1); min-inline-size:0; }
  .rf-ref.is-private { color:var(--text-2); font-style:italic; }
  .rf-why { display:block; font-size:var(--text-xs); color:var(--text-3); }
  .rf-led .jl-tag.accent { background:var(--accent-soft); color:var(--accent-ink); }
  .rf-payouts .jl-tag.accent { background:var(--accent-soft); color:var(--accent-ink); }
  .rf-led-foot { padding:var(--space-3) var(--space-5);
                 border-block-start:1px solid var(--border-subtle);
                 font-size:var(--text-xs); color:var(--text-3);
                 display:flex; gap:var(--space-5); flex-wrap:wrap; }
  .rf-led-foot b { font-weight:500; color:var(--text-2); }

  /* ── payouts ──────────────────────────────────────────────────────── */
  .rf-po-row { display:grid; grid-template-columns:96px minmax(0,1fr) auto auto;
               gap:var(--space-4); align-items:center; padding:var(--space-3) var(--space-5);
               font-size:var(--text-sm); }
  .rf-po-row + .rf-po-row { border-block-start:1px solid var(--border-subtle); }
  .rf-po-to { min-inline-size:0; }
  .rf-po-sub { color:var(--text-3); font-size:var(--text-xs); display:block; }

  /* ── before the first referral ────────────────────────────────────── */
  .rf-first { padding:var(--space-8) var(--space-5); display:grid;
              justify-items:center; text-align:center; gap:var(--space-3);
              margin-block-start:var(--space-5); }
  .rf-first h3 { margin:0; font:600 20px/1.3 var(--font-display); }
  .rf-first p { margin:0; max-inline-size:52ch; color:var(--text-2);
                font-size:var(--text-sm); }
  .rf-first-steps { display:grid; grid-template-columns:repeat(3, minmax(0,1fr));
                    gap:var(--space-4); margin-block-start:var(--space-4);
                    inline-size:100%; max-inline-size:640px; text-align:start; }
  .rf-first-steps div { padding:var(--space-4); border-radius:12px;
                        background:var(--sunk); font-size:var(--text-sm);
                        color:var(--text-2); }
  .rf-first-steps b { display:block; font:500 var(--text-xs) var(--font-mono);
                      letter-spacing:.1em; text-transform:uppercase;
                      color:var(--text-3); margin-block-end:4px; }

  @media (max-width:760px) {
    .rf-sum { grid-template-columns:1fr; }
    .rf-p-head { display:none; }
    .rf-p-row { grid-template-columns:1fr auto;
      grid-template-areas:"who act" "rail rail" "plan comm";
      gap:var(--space-2) var(--space-4); padding-block:var(--space-4); }
    .rf-p-row .rf-who { grid-area:who; min-inline-size:0; }
    .rf-p-row .rf-rail { grid-area:rail; }
    .rf-p-row .rf-plan { grid-area:plan; }
    .rf-p-row .rf-comm { grid-area:comm; }
    .rf-p-row .rf-act { grid-area:act; }
    .rf-p-row .rf-date { display:none; }
  }
  /* The billing ledger swaps to its own stacked phone layout at 720. This
     ledger keeps its table and scrolls inside the card instead (the
     prototype's .led-scroll / .led), so the header and the six columns are
     said again over that breakpoint. */
  @media (max-width:720px) {
    .rf-led .led-head { display:grid; }
    .rf-led .led-head, .rf-led .led-row {
      grid-template-columns:96px minmax(140px,1fr) 116px 72px 104px 92px;
      gap:var(--space-4); align-items:center;
      padding:var(--space-3) var(--space-5); }
  }
  @media (max-width:640px) {
    .rf-terms { grid-template-columns:1fr; }
    .rf-first-steps { grid-template-columns:1fr; }
    .rf-po-row { grid-template-columns:1fr auto; }
    .rf-po-row .rf-po-date { display:none; }
    /* The filter pills get their own line under the eyebrow rather than
       colliding with it, with the full width to sit at the inline start. */
    .rf-people-head { flex-wrap:wrap; }
    .rf-people-head .sec-rest { inline-size:100%; margin-inline-start:0; }
    .rf-people-head .pills { flex-wrap:wrap; max-inline-size:100%; }
    /* The amount over the payout button stops fitting side by side. */
    .rf-pay-row.is-ask { flex-wrap:wrap; }
  }

  /* ── Referrals admin (admin_referrals.html) ──
     A number field that carries its unit inside it ("20 %", "5,000 FCFA",
     "$1 = 600 FCFA"). The field is the .input; the real <input> inside is
     bare, so focus paints on the field. Every term's field is one width and
     the unit one width, so the four numbers line up on their right edge. */
  .adm-narrow { max-inline-size:680px; }
  .adm-field { display:inline-flex; align-items:center; gap:var(--space-2);
               inline-size:152px; padding-inline:14px; cursor:text; }
  .adm-field:focus-within { border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft); }
  .adm-field input { flex:1 1 auto; min-inline-size:0; border:0; padding:0; background:transparent;
                     color:inherit; font:500 var(--text-base) var(--font-ui);
                     font-variant-numeric:tabular-nums; outline:none;
                     -moz-appearance:textfield; appearance:textfield; }
  .adm-field input::-webkit-outer-spin-button,
  .adm-field input::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }
  /* Our stepper, at the field's right end (admin_referrals.html says why). */
  .adm-step { flex:none; display:flex; flex-direction:column; margin-inline-end:-4px; }
  .adm-step button { display:grid; place-items:center; inline-size:18px; block-size:14px;
                     padding:0; border:0; border-radius:3px; background:transparent;
                     color:var(--text-3); cursor:pointer; }
  .adm-step button:hover { background:var(--sunk); color:var(--text-1); }
  .adm-step svg { inline-size:9px; block-size:6px; fill:none; stroke:currentColor;
                  stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
  .adm-field-unit { flex:none; color:var(--text-3);
                    font-size:var(--text-sm); font-weight:500; }
  .adm-field.is-rate { inline-size:172px; }
  .adm-terms .setting-val { flex:none; }

  /* One referrer (admin_referrer_detail.html): four figures, then the ledger. */
  .adm-rf-stats { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr));
                  gap:var(--space-3); margin-block-start:var(--space-5); }
  .adm-rf-stat { padding:var(--space-4) var(--space-5); }
  .adm-rf-stat-k { font:500 var(--text-xs) var(--font-mono); letter-spacing:.1em;
                   text-transform:uppercase; color:var(--text-3); }
  .adm-rf-stat-v { font:600 var(--text-2xl)/1.25 var(--font-display);
                   font-variant-numeric:tabular-nums; margin-block-start:var(--space-2); }
  .adm-rf-stat-v small { display:block; font:500 var(--text-sm) var(--font-ui);
                         color:var(--text-3); margin-block-start:2px; }
  .adm-rf-ledger { position:relative; overflow-x:auto; max-inline-size:100%; }
  .adm-rf-ledger table { inline-size:100%; min-inline-size:760px; border-collapse:collapse; }
  .adm-rf-ledger th { text-align:start; font:500 var(--text-xs) var(--font-mono);
                      letter-spacing:.08em; text-transform:uppercase; color:var(--text-3);
                      padding:var(--space-3) var(--space-4);
                      border-bottom:1px solid var(--border-subtle); }
  .adm-rf-ledger td { padding:var(--space-3) var(--space-4); vertical-align:middle;
                      border-bottom:1px solid var(--border-subtle); }
  .adm-rf-ledger tr:last-child td { border-bottom:0; }
  .adm-rf-ledger th:first-child, .adm-rf-ledger td:first-child { padding-inline-start:var(--space-5); }
  .adm-rf-ledger th:last-child, .adm-rf-ledger td:last-child { padding-inline-end:var(--space-5); }
  .adm-rf-ledger .is-num { text-align:end; font-variant-numeric:tabular-nums; }
  .adm-rf-ledger td.is-num { font-weight:600; }
  .adm-rf-ledger .is-struck { text-decoration:line-through; color:var(--text-3); font-weight:400; }
  .adm-rf-void { display:flex; gap:var(--space-2); justify-content:flex-end; }
  .adm-rf-void .input { inline-size:18ch; }
  @media (max-width:767px) {
    .adm-rf-stats { grid-template-columns:repeat(2, minmax(0, 1fr)); }
  }

  /* === Dispute report (ADR-0039, brief 070) ===========================================
     An admin's read of one payment's period: the verdict first, then the ascent rail
     restated at the scale of that period (indigo is ground covered, the first Use is
     the amber milestone), the two fact cards, and every Use with its Request and Output.
     Tokens only. Logical properties throughout. */
  .dr-find { display:flex; gap:var(--space-2); max-inline-size:520px; margin-block:var(--space-5); }
  .dr-find .input { flex:1; min-inline-size:0; border-radius:var(--radius-pill); padding-inline:var(--space-5); }
  .dr-empty { color:var(--text-2); max-inline-size:62ch; }
  .dr-empty p { margin:0 0 var(--space-2); }
  .dr-sheet { background:var(--surface-raised); border:1px solid var(--border); border-radius:var(--radius-card);
              box-shadow:var(--lift-1); padding:clamp(20px, 4vw, 44px); max-inline-size:860px; min-inline-size:0; }
  .dr-doc-eyebrow { display:flex; gap:var(--space-3); flex-wrap:wrap; }
  .dr-verdict { font-family:var(--font-display); font-weight:500; letter-spacing:-.02em; text-wrap:balance;
                font-size:clamp(26px, 3.2vw, 36px); line-height:1.14; margin:var(--space-2) 0; }
  .dr-lede { color:var(--text-2); max-inline-size:62ch; margin:0; }
  .dr-banner { display:flex; gap:var(--space-3); padding:var(--space-3) var(--space-4); margin-block-start:var(--space-5);
               border-radius:var(--radius-ctl); background:var(--sunk); color:var(--text-2); font-size:var(--text-sm); }
  .dr-banner.is-owed { background:var(--amber-soft); color:var(--amber-ink); }
  .dr-banner strong { color:inherit; font-weight:600; }

  .dr-rail { margin-block:var(--space-8) var(--space-2); }
  .dr-track { position:relative; block-size:12px; margin-inline:7px; }
  .dr-track::before { content:""; position:absolute; inset-inline:0; inset-block-start:5px; block-size:2px;
                      background:var(--track); border-radius:2px; }
  .dr-walked { position:absolute; inset-inline-start:0; inset-block-start:5px; block-size:2px;
               background:var(--accent); border-radius:2px; }
  .dr-pip { position:absolute; inset-block-start:0; inline-size:12px; block-size:12px; margin-inline-start:-6px;
            border-radius:50%; background:var(--surface-raised); border:2px solid var(--accent); }
  .dr-pip.is-end { border-color:var(--gap-neutral); }
  .dr-pip.is-first { inline-size:14px; block-size:14px; margin-inline-start:-7px; inset-block-start:-1px;
                     background:var(--amber); border-color:var(--amber); }
  .dr-tick { position:absolute; inset-block-start:1px; inline-size:2px; block-size:10px; margin-inline-start:-1px;
             background:var(--accent); border-radius:1px; opacity:.75; }
  .dr-rail-labels { display:flex; justify-content:space-between; gap:var(--space-3); margin-block-start:var(--space-3);
                    font-size:var(--text-sm); color:var(--text-2); }
  .dr-rail-labels b { display:block; font:400 var(--text-xs) var(--font-mono); letter-spacing:.1em;
                      text-transform:uppercase; color:var(--text-3); }
  .dr-rail-labels .is-first { color:var(--amber-ink); text-align:center; }
  .dr-rail-labels div:last-child { text-align:end; }

  .dr-facts { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:var(--space-4); margin-block-start:var(--space-2); }
  .dr-fact { border:1px solid var(--border-subtle); border-radius:var(--radius-card); padding:var(--space-4);
             background:var(--surface); display:flex; flex-direction:column; }
  .dr-fact dl { margin:var(--space-3) 0 0; display:grid; grid-template-columns:max-content minmax(0, 1fr);
                gap:var(--space-2) var(--space-4); }
  .dr-fact dt { color:var(--text-3); font-size:var(--text-sm); }
  .dr-fact dd { margin:0; overflow-wrap:anywhere; }
  .dr-nb { white-space:nowrap; }

  .dr-cat { border-block-start:1px solid var(--border-subtle); }
  .dr-cat:last-of-type { border-block-end:1px solid var(--border-subtle); }
  .dr-cat > summary { list-style:none; display:grid; grid-template-columns:18px minmax(0, 1fr) auto; gap:var(--space-2) var(--space-3);
                      align-items:center; padding:var(--space-3) 2px; cursor:pointer; }
  .dr-cat > summary::-webkit-details-marker { display:none; }
  .dr-chev { inline-size:18px; block-size:18px; color:var(--text-3); transition:transform var(--dur-1) var(--ease); }
  .dr-cat[open] > summary .dr-chev { transform:rotate(90deg); }
  .dr-cat-name { font-weight:500; }
  .dr-cat-sub { display:block; color:var(--text-3); font-size:var(--text-sm); font-weight:400; }
  .dr-cat-n { font:500 var(--text-xl) var(--font-display); }
  .dr-calls { margin:0 0 var(--space-4) var(--space-8); padding:0; list-style:none; display:grid; gap:2px; }
  .dr-call { padding:var(--space-2) var(--space-3); border-radius:var(--radius-ctl); }
  .dr-call:hover { background:var(--sunk); }
  .dr-call-head { display:flex; gap:var(--space-3); align-items:baseline; flex-wrap:wrap; }
  .dr-call-t { font:var(--text-sm) var(--font-mono); color:var(--text-2); }
  .dr-call-meta { font:var(--text-xs) var(--font-mono); color:var(--text-3); margin-block-start:2px; }
  .dr-flag { display:inline-flex; align-items:center; block-size:22px; padding-inline:var(--space-3); border-radius:var(--radius-pill);
             background:var(--amber-soft); color:var(--amber-ink); font-size:var(--text-sm); font-weight:500; }
  .dr-io { margin-block-start:var(--space-2); }
  .dr-io .sec-label { display:block; margin-block-end:var(--space-1); }
  .dr-req { margin:0; max-inline-size:66ch; }
  .dr-out { padding:var(--space-3) var(--space-4); background:var(--sunk); border-radius:var(--radius-ctl);
            font-size:var(--text-sm); line-height:1.6; white-space:pre-wrap; max-inline-size:66ch; overflow-wrap:anywhere; }
  .dr-out.is-none { color:var(--text-3); font-style:italic; background:none; padding:0; }
  .dr-wrap { max-inline-size:860px; }
  .dr-list { display:grid; gap:var(--space-2); max-inline-size:860px; }
  .dr-drow { display:grid; gap:var(--space-2); padding:var(--space-3) var(--space-4); background:var(--surface);
             border:1px solid var(--border-subtle); border-radius:var(--radius-card); }
  .dr-drow:hover { background:var(--surface-raised); box-shadow:var(--lift-1); }
  .dr-drow-main { display:flex; gap:var(--space-3); align-items:baseline; }
  .dr-drow-who { font-weight:500; overflow-wrap:anywhere; }
  .dr-drow-amt { margin-inline-start:auto; }
  .dr-drow-meta { display:flex; gap:var(--space-3); align-items:center; flex-wrap:wrap; color:var(--text-2); font-size:var(--text-sm); }
  .dr-drow-open { margin-inline-start:auto; color:var(--accent-ink); }
  .dr-pill { display:inline-flex; align-items:center; block-size:22px; padding-inline:var(--space-3);
             border-radius:var(--radius-pill); font-size:var(--text-sm); font-weight:500; white-space:nowrap; }
  .dr-pill.is-owed { background:var(--amber-soft); color:var(--amber-ink); }
  .dr-pill.is-plain { background:var(--sunk); color:var(--text-2); }
  .dr-appendix { display:grid; gap:var(--space-5); border-block-start:1px solid var(--border-subtle); padding-block-start:var(--space-4); }
  .dr-clause { max-inline-size:66ch; }
  .dr-clause .sec-label { display:block; margin-block-end:var(--space-2); }
  .dr-clause p { margin:0 0 var(--space-2); font-size:var(--text-sm); line-height:1.6; }
  .dr-support { border-block-start:1px solid var(--border-subtle); }
  .dr-support-row { display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:var(--space-3);
                    padding:var(--space-3) 2px; border-block-end:1px solid var(--border-subtle); color:var(--text-2); }
  .dr-support-row b { color:var(--text-1); font-weight:500; }
  .dr-support-row span { text-align:end; }
  @media (max-width:560px) { .dr-support-row { grid-template-columns:minmax(0, 1fr); } .dr-support-row span { text-align:start; } }
  .dr-method { margin-block-start:var(--space-8); padding-block-start:var(--space-4); border-block-start:1px solid var(--border);
               color:var(--text-3); font-size:var(--text-sm); max-inline-size:70ch; }
  .dr-method p { margin:0; }
  @media (max-width:560px) { .dr-facts { grid-template-columns:minmax(0, 1fr); } .dr-calls { margin-inline-start:var(--space-4); } }
}
