:root {
  --person-blue: #1d4ed8; --person-purple: #7e22ce; --person-pink: #be185d; --person-cyan: #0e7490;
  --person-slate: #475569; --bg: #f4f4f5; --surface: #ffffff; --surface-2: #f0f0f1; --text: #0a0a0a; --muted: #5f6368;
  --line: #e4e4e7; --hover: #f0f0f1; --brand-1: #6366f1; --brand-2: #a855f7; --brand-3: #ec4899;
  --grad: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 55%, var(--brand-3) 100%) border-box;
  --grad-ink-1: #4f46e5; --grad-ink-2: #7e22ce; --grad-ink-3: #be185d;
  --grad-ink: linear-gradient(135deg, var(--grad-ink-1) 0%, var(--grad-ink-2) 55%, var(--grad-ink-3) 100%) border-box;
  --accent: #c2410c; --accent-soft: #fff1e8; --on-accent: #ffffff; --link: var(--text); --warn: #92400e;
  --warn-soft: #fdf3e3; --confirm: #047857; --ok: #10b981; --ok-ink: #047857; --bad: #dc2626; --radius: 12px;
  --bad-ink: #b91c1c; --chip-1: #4338ca; --chip-2: #7e22ce; --chip-3: #be185d;
  --shadow: 0 1px 2px rgba(22,20,42,.05), 0 10px 30px -12px rgba(76,60,160,.25); --shadow-sm: none;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; --fs-12: 12px; --fs-13: 13px;
  --fs-14: 14px; --fs-16: 16px; --fs-20: 20px; --fs-24: 24px; --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
  --s-6: 24px; --s-8: 32px; --s-12: 48px; --h-ctl: 32px; --h-ctl-sm: 28px; --h-row: 28px; --r-sm: 6px; --r-md: 8px;
  --r-lg: 6px; --h-btn: 36px; --mono: ui-monospace, "SF Mono", Menlo, monospace; --card-line: var(--line);
  --card-pad: 20px; --gap-1: 4px; --gap-2: 8px; --gap-3: 12px; --gap-4: 16px; --gap-6: 24px; --t-title: 20px;
  --h-page: 24px; --h-sec: 20px; --h-card: 16px; --h-step: 14px; --t-body: 15px; --t-help: 13px; --ill-slot: 64px;
  --lvl-ok: var(--brand-1); --crow: #1f1d26; --on-grad: #ffffff; --qr-bg: #ffffff; --qr-ink: #16142a; --g-y: #ffc107;
  --g-r: #ff3d00; --g-g: #4caf50; --g-b: #1976d2; --model-haiku: #0369a1; --model-sonnet: #6d28d9;
  --model-opus: #a21caf; --model-free: #475569; --st-need: #ea580c; --st-prog: #52525b; --st-done: #0f766e;
  --fs-row: 13px; --tint-need: #fdf1ea; --line-need: #f3c9b0; --tint-done: #e8f3f2; --line-done: #b5d9d5;
  --tint-bad: #fdecec; --term-bg: #16161a; --term-line: #2a2a2e; --term-ink: #e8e8ea; --term-muted: #9a9ca2;
  --term-dot: #3a3a40; --term-ok: #6fd39b; --term-now: #ffb45c; --shadow-up: 0 -4px 16px rgb(0 0 0 / .08);
  --cm0: #1d4ed8; --cm1: #047857; --cm2: #b45309; --cm3: #6d28d9; --cm4: #be123c; --cm5: #0e7490;
  --fs-q: var(--fs-14); --logo-plate: color-mix(in srgb, var(--text) 16%, var(--surface));
  --scrim: rgba(10,10,10,.38); --raised: #ffffff;
  --shadow-card: 0 1px 2px rgb(15 17 21 / .04), 0 8px 24px -16px rgb(15 17 21 / .30); --r-card: 12px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --bg: #171719; --surface: #131217; --surface-2: #212023; --text: #ffffff; --muted: #8a8c92; --line: #2a2a2e;
  --ok-ink: #5fc39c; --hover: #1d1c21; --accent: #fb923c; --accent-soft: #3a2416; --on-accent: #1c1206;
  --link: var(--text); --warn: #fbbf24; --warn-soft: #3a2d12; --bad-ink: #f87171; --chip-1: #a5b4fc;
  --chip-2: #d8b4fe; --chip-3: #f9a8d4; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 30px -12px rgba(0,0,0,.6);
  --lvl-ok: #818cf8; --crow: #2c2a36; --model-haiku: #38bdf8; --model-sonnet: #a78bfa; --model-opus: #e879f9;
  --model-free: #94a3b8; --st-need: #fb923c; --st-prog: #a1a1aa; --st-done: #2dd4bf;
  --card-line: color-mix(in srgb, var(--brand-1) 22%, var(--line)); --tint-need: #2a1d16; --line-need: #5a3524;
  --tint-done: #15201f; --line-done: #234a45; --tint-bad: #2a1515; --r-lg: 6px; --shadow-sm: none;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; --cm0: #93c5fd; --cm1: #6ee7b7;
  --cm2: #fcd34d; --cm3: #c4b5fd; --cm4: #fda4af; --cm5: #67e8f9; --logo-plate: #ffffff; --scrim: rgba(0,0,0,.62);
  --raised: #212023; --shadow-card: 0 1px 2px rgb(0 0 0 / .5), 0 10px 28px -18px rgb(0 0 0 / .8); color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #171719; --surface: #131217; --surface-2: #212023; --text: #ffffff; --muted: #8a8c92; --line: #2a2a2e;
  --ok-ink: #5fc39c; --hover: #1d1c21; --accent: #fb923c; --accent-soft: #3a2416; --on-accent: #1c1206;
  --link: var(--text); --warn: #fbbf24; --warn-soft: #3a2d12; --bad-ink: #f87171; --chip-1: #a5b4fc;
  --chip-2: #d8b4fe; --chip-3: #f9a8d4; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 30px -12px rgba(0,0,0,.6);
  --lvl-ok: #818cf8; --crow: #2c2a36; --model-haiku: #38bdf8; --model-sonnet: #a78bfa; --model-opus: #e879f9;
  --model-free: #94a3b8; --st-need: #fb923c; --st-prog: #a1a1aa; --st-done: #2dd4bf;
  --card-line: color-mix(in srgb, var(--brand-1) 22%, var(--line)); --tint-need: #2a1d16; --line-need: #5a3524;
  --tint-done: #15201f; --line-done: #234a45; --tint-bad: #2a1515; --r-lg: 6px; --shadow-sm: none;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; --cm0: #93c5fd; --cm1: #6ee7b7;
  --cm2: #fcd34d; --cm3: #c4b5fd; --cm4: #fda4af; --cm5: #67e8f9; --logo-plate: #ffffff; --scrim: rgba(0,0,0,.62);
  --raised: #212023; --shadow-card: 0 1px 2px rgb(0 0 0 / .5), 0 10px 28px -18px rgb(0 0 0 / .8); color-scheme: dark; }
@media (max-width: 560px) { :root { --card-pad: 16px; } }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
       font: var(--fs-14)/1.5 var(--font); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
code { font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); padding: 2px 7px; border-radius: 6px; }
svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px; padding: 12px 16px;
       background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
a.brand { display: flex; align-items: center; min-height: var(--h-ctl); gap: 10px; font-weight: 600; font-size: var(--fs-16); letter-spacing: -.01em; text-decoration: none; }
.mark { width: 30px; height: 30px; border-radius: 9px; background: var(--grad); display: grid; place-items: center; color: #fff;
        box-shadow: 0 6px 16px -6px var(--brand-2); }
.logo { flex: none; display: block; line-height: 0; }  /* the F5 tile: cream on light pages, night on dark */
.logo img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 6px 16px -8px rgba(234, 88, 12, .45); }
.spacer { flex: 1; }

.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 4px; border-radius: 999px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary.btn { border-radius: var(--r-sm); padding: 0 14px; } .menu summary.btn.sm { padding: 0 10px; }  /* a menu button is a button */
.menu summary:focus-visible { outline: 2px solid var(--brand-1); outline-offset: 2px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--grad); color: #fff; display: grid;
          place-items: center; font-weight: 700; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px color-mix(in srgb, var(--brand-2) 60%, transparent); }
.menu-panel { position: absolute; right: 0; top: 44px; width: min(300px, calc(100vw - 32px)); background: var(--surface);
              border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: var(--s-2); }
.menu-who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu-who strong { display: block; }
.menu-who span { color: var(--muted); font-size: var(--fs-13); word-break: break-all; }
.menu-item { display: flex; align-items: center; min-height: var(--h-ctl); gap: 10px; width: 100%; padding: 6px 10px; border-radius: var(--r-sm); border: 0;
             background: none; color: var(--text); font: inherit; text-decoration: none; cursor: pointer; text-align: left; }
.menu-item:hover { background: var(--hover); }
.menu-item:focus-visible { outline: 2px solid var(--brand-1); outline-offset: 2px; }
.menu-item.danger { color: var(--bad-ink); }

main { max-width: 1120px; margin: 0 auto; padding: var(--s-6) var(--s-4) var(--s-12); }
h1, h2, h3 { letter-spacing: -.01em; margin: 0; line-height: 1.3; font-weight: 600; }
h1 { font-size: var(--fs-20); font-weight: 600; margin-bottom: var(--s-2); }
h2 { font-size: var(--fs-16); }
h3 { font-size: var(--fs-14); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-4) 20px; box-shadow: var(--shadow-sm); }
.muted { color: var(--muted); } .bad { color: var(--bad-ink); }
.small { font-size: var(--fs-13); }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* buttons (spec 1.4): primary = the one next step, approve = an irreversible yes, plain = everything else,
   quiet = low-stakes inside rows and menus, danger = destructive; .sm inside rows and menus */
.btn { min-height: var(--h-ctl); padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface);
       color: var(--text); font: inherit; font-size: var(--fs-14); font-weight: 500; cursor: pointer; display: inline-flex;
       align-items: center; gap: 6px; text-decoration: none; white-space: nowrap; box-shadow: var(--shadow-sm);
       transition: background .12s ease, filter .12s ease; }
.btn:hover { background: var(--hover); }
.btn:focus-visible, .seg a:focus-visible, .navlink:focus-visible, .pill-btn:focus-visible, a:focus-visible {
  outline: 2px solid var(--brand-1); outline-offset: 2px; }
.btn-primary { background: var(--grad-ink); border-color: transparent; color: #fff; }
.btn-primary:hover { background: var(--grad-ink); filter: brightness(1.08); }
.btn-hero { background: #fff; color: #1f1f1f; border: 0; }  /* the white button on a gradient hero (website) */
.btn-hero-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-hero:hover { background: #fff; filter: brightness(.95); }  /* .btn:hover (0,2,0) would paint it dark (#115 review 1) */
.btn-hero-ghost:hover { background: rgba(255,255,255,.12); }
.btn-danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn-danger:hover { background: var(--bad); filter: brightness(1.08); }
.btn-quiet { background: transparent; border-color: transparent; box-shadow: none; color: var(--link); }
.btn-quiet:hover { background: var(--hover); }
.btn.sm { min-height: var(--h-ctl-sm); padding: 0 10px; font-size: var(--fs-13); }

.hero { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: var(--s-6); color: #fff; background: var(--grad-ink);
        box-shadow: 0 24px 50px -24px var(--brand-2); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(8px); opacity: .35;
                              pointer-events: none; }
.hero::before { width: 260px; height: 260px; right: -60px; top: -90px; background: radial-gradient(circle, #fff 0%, transparent 70%); }
.hero::after { width: 220px; height: 220px; left: -70px; bottom: -120px; background: radial-gradient(circle, #fde68a 0%, transparent 70%); }
.hero > * { position: relative; }
.eyebrow { margin: 0 0 6px; font-weight: 500; font-size: var(--fs-13); opacity: .9; }
.hero h1 { font-size: var(--fs-24); line-height: 1.25; margin: 0; }
.hero p { margin: 8px 0 0; opacity: .92; }
.hero code { background: rgba(255,255,255,.18); color: #fff; }
.pill { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 7px 14px; border-radius: 999px;
        background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.28); font-size: 13px; font-weight: 600; backdrop-filter: blur(6px); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.25); }
.dot.off { background: #fbbf24; box-shadow: 0 0 0 4px rgba(251,191,36,.25); }

.section-title { margin: var(--s-6) 0 var(--s-3); font-size: var(--fs-12); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.stat { --c: var(--brand-1); position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line);
        border-radius: var(--r-lg); padding: var(--s-4); box-shadow: var(--shadow-sm); }
.stat::after { content: ""; position: absolute; inset: auto -30px -40px auto; width: 110px; height: 110px; border-radius: 50%;
               background: var(--c); opacity: .10; pointer-events: none; }
.stat .ico { width: 32px; height: 32px; border-radius: var(--r-md); display: grid; place-items: center; color: var(--c);
             background: color-mix(in srgb, var(--c) 15%, transparent); }
.num { font-size: var(--fs-24); font-weight: 600; letter-spacing: -.02em; margin-top: var(--s-3); line-height: 1; font-variant-numeric: tabular-nums; }
.label { color: var(--muted); font-size: var(--fs-13); margin-top: 4px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
/* chips are labels, never clickable (spec 1.5): neutral by default, coloured only when the colour means something */
.chip { display: inline-flex; align-items: center; gap: 4px; min-height: 20px; padding: 1px 8px; border-radius: 999px;
        font-size: var(--fs-12); font-weight: 500; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line);
        max-width: 100%; }  /* a long reason wraps inside its chip, never widens the page (review, PR A) */
.chip.brand { color: var(--chip-1); background: color-mix(in srgb, var(--brand-1) 12%, transparent); border-color: transparent; }
.chip.accent { color: var(--accent); background: var(--accent-soft); border-color: transparent; }
.chip.warn { color: var(--warn); background: var(--warn-soft); border-color: transparent; }

.tile { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.tile .ico { width: 36px; height: 36px; border-radius: var(--r-md); display: grid; place-items: center; color: #fff; background: var(--grad-ink); flex: none; }
.tile .go { margin-left: auto; color: var(--muted); }
.privacy { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: var(--s-6); color: var(--muted); font-size: var(--fs-13); }
.privacy svg.i { width: 16px; height: 16px; }
.privacy a { min-height: var(--h-ctl); display: inline-flex; align-items: center; padding: 0 4px; }
a.tap { min-height: var(--h-ctl); display: inline-flex; align-items: center; }
@media (max-width: 400px) { .stats { grid-template-columns: 1fr 1fr; } }  /* UX audit W25: 7 cards stacked */
details.more summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 8px; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: "Show"; margin-left: auto; font-size: var(--fs-13); color: var(--link); }
details.more[open] summary::after { content: "Hide"; }
dl.kv { margin: 14px 0 0; display: grid; gap: 12px; }
dl.kv dt { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
dl.kv dd { margin: 4px 0 0; }
dl.kv dd div { padding: 6px 0; border-bottom: 1px dashed var(--line); word-break: break-word; }
dl.kv dd div:last-child { border-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* dashboard (J1) */
.top { flex-wrap: wrap; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.navlink { text-decoration: none; padding: 0 10px; border-radius: var(--r-sm); font-weight: 500; color: var(--muted);
           min-height: var(--h-ctl); display: inline-flex; align-items: center; gap: 6px; }
.navlink:hover { background: var(--hover); color: var(--text); }
.navlink.on { background: var(--surface-2); color: var(--text); }
.navring { width: 16px; height: 16px; flex: none; transform: rotate(-90deg); }
.navring circle { fill: none; stroke: var(--line); stroke-width: 3; }
.navring .fg { stroke: var(--ok-ink); }
.navlink .rn { color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {  /* header on phones (spec 3.1): logo and status pill, then the nav as equal tabs; was four rows */
  .top { padding: var(--s-2) var(--s-3); row-gap: var(--s-1); }
  .top .nav { order: 1; flex-basis: 100%; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, max-content);
              justify-content: space-between; gap: 2px; }  /* equal tabs clipped "Profile 918" into "Leads" at 390 */
  .top .navlink { justify-content: center; padding: 0; gap: 3px; min-width: 0; font-size: var(--fs-13); }
  .top .count { padding: 0 !important; }
  .top .banner { order: 2; flex-basis: 100%; }
}
@media (max-width: 700px) { .top .navlink .rn { display: none; } }
@media (max-width: 369px) { .top .navring { display: none; } }
@media (max-width: 700px) { .top:has(.menu.who) .navlink.me-tab { display: none; } }
.count { font-size: var(--fs-12); font-weight: 600; padding: 0 6px; border-radius: 999px; background: var(--grad-ink-1); color: #fff;
         font-variant-numeric: tabular-nums; }
.pill-btn { display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 999px; min-height: var(--h-ctl);
            border: 1px solid var(--line); background: var(--surface); font-weight: 500; font-size: var(--fs-13); cursor: pointer; }
.pill-btn:hover { background: var(--hover); }
.dot.bad { background: var(--bad); box-shadow: 0 0 0 4px color-mix(in srgb, var(--bad) 25%, transparent); }
.dot.busy { background: var(--brand-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-2) 25%, transparent); }
@media (prefers-reduced-motion: no-preference) { .dot.busy { animation: pulse 1.2s infinite; } }
@keyframes pulse { 50% { opacity: .35; } }
/* status pill and menu (spec 2.3): a control with a chevron; state line, two actions, today's limits as meters */
.pill-btn .chev { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round;
                  stroke-linejoin: round; color: var(--muted); transition: transform .15s; }
details[open] > .pill-btn .chev { transform: rotate(180deg); }
details[open] > .pill-btn { background: var(--surface-2); }
.dot.need { background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.status .menu-panel { width: min(340px, calc(100vw - 32px)); padding: var(--s-4); }
.status .state { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); font-weight: 500;
                 margin-bottom: var(--s-3); }
.status .acts { display: grid; gap: var(--s-2); } .status .acts form { margin: 0; }
.status .acts .btn { width: 100%; justify-content: center; }
.status .eyebrow { margin: var(--s-4) 0 0; font-size: var(--fs-12); font-weight: 600; letter-spacing: .06em;
                   text-transform: uppercase; color: var(--muted); opacity: 1; }
.status .ai { margin: var(--s-3) 0 0; }
.chrome-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); margin-top: var(--s-3);
              padding-top: var(--s-3); border-top: 1px solid var(--line); font-size: var(--fs-13); }
.chrome-row .dot { display: inline-block; margin-right: 6px; }
.sheet-close { display: none; }
@media (max-width: 900px) { .pill-btn .obj { display: none; } }
@media (max-width: 900px) { .top .wide { display: none; } }  /* the header's first row stays one row on a phone */
.banner { flex-basis: 100%; background: var(--bad); color: #fff; padding: 10px 14px; border-radius: var(--r-md); overflow-wrap: anywhere; }
.banner.warn { background: var(--warn-soft); color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); }  /* not a stop (U8) */
.btn-approve { background: var(--confirm); border-color: var(--confirm); color: #fff; }  /* 5.5:1 with white (UX audit D26) */
.btn-approve:hover { background: var(--confirm); filter: brightness(1.1); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.grow { flex: 1; min-width: 0; }
article.card { margin-bottom: 12px; }
.card.current { outline: 2px solid var(--brand-1); }
.card.htmx-swapping { opacity: 0; transform: translateX(40px); transition: opacity .2s, transform .2s; }
tbody.htmx-swapping { opacity: 0; transition: opacity .2s; }
@media (prefers-reduced-motion: reduce) { .card.htmx-swapping, tbody.htmx-swapping { transition: none; transform: none; } }
.chip.ok { color: var(--ok-ink); background: color-mix(in srgb, var(--ok) 12%, transparent); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.chip.bad { color: var(--bad-ink); background: color-mix(in srgb, var(--bad) 12%, transparent); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.score { flex: none; width: 44px; height: 44px; border-radius: var(--r-md); display: inline-flex; align-items: center;
         justify-content: center; font-size: var(--fs-16); font-weight: 600; color: #fff; background: var(--grad-ink);
         font-variant-numeric: tabular-nums; }
input, select, textarea { font: inherit; min-height: var(--h-ctl); padding: 5px 10px; border-radius: var(--r-sm); border: 1px solid var(--line);
                          background: var(--bg); color: var(--text); max-width: 100%; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--brand-1); outline-offset: 1px; }
label.chip { display: inline-flex; align-items: center; gap: 6px; min-height: var(--h-ctl); cursor: pointer; }
label.chip input { min-height: 0; padding: 0; margin: 0; }
details summary { cursor: pointer; min-height: var(--h-ctl); display: flex; align-items: center; }
/* a fold looks clickable before anyone hovers (owner 2026-10-22): flex hides the browser's triangle, so link ink and a
   chevron that turns when open; .menu folds are buttons and .more says Show/Hide */
details:not(.menu):not(.more):not(.runrow):not(.qgroup) > summary { list-style: none; gap: 8px; color: var(--link); font-weight: 500; }
details:not(.menu):not(.more):not(.runrow):not(.qgroup) > summary::-webkit-details-marker { display: none; }
details:not(.menu):not(.more):not(.runrow):not(.qgroup) > summary::before { content: ""; flex: none; width: 7px; height: 7px; margin: 0 3px;
  border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(-45deg); transition: transform .15s; }
details[open]:not(.menu):not(.more):not(.runrow):not(.qgroup) > summary::before { transform: rotate(45deg); }
details:not(.menu):not(.more):not(.runrow):not(.qgroup) > summary:hover { text-decoration: underline; }
details > summary:focus-visible { outline: 2px solid var(--brand-1); outline-offset: 2px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { details > summary::before { transition: none; } }
.card pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
.excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line;
           word-break: break-word; margin: 8px 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile b { display: block; font-size: var(--fs-20); font-weight: 600; }
/* segments switch a list; the active one is ink, the rest plain buttons */
.seg { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 var(--s-4); }
.seg a { text-decoration: none; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); font-weight: 500;
         font-size: var(--fs-13); min-height: var(--h-ctl); display: inline-flex; align-items: center; gap: 6px; background: var(--surface); }
.seg a:hover { background: var(--hover); }
.seg a.on { background: var(--grad-ink); color: #fff; border-color: transparent; }
.seg a.on .count { background: rgba(255,255,255,.22); }
.todo { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-lg); background: var(--surface);
        border: 1px solid var(--line); }
.todo + .todo { margin-top: 10px; }
.todo .ico { width: 32px; height: 32px; border-radius: var(--r-md); display: grid; place-items: center; color: var(--c);
             background: color-mix(in srgb, var(--c) 15%, transparent); flex: none; }
.todo .go { margin-left: auto; }
.funnel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); } }  /* the week, two by two on a phone */
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--bg);
         padding: 12px 18px; border-radius: 10px; opacity: 0; transition: opacity .2s; pointer-events: none; max-width: 90vw; z-index: 50; }
#toast.show { opacity: 1; }
#toast button, #toast a { display: inline-block; margin: -12px -8px -12px var(--s-2); padding: 12px 8px; min-height: 44px; border: 0;
                background: none; color: inherit; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
#toast.show button, #toast.show a { pointer-events: auto; }
.status .state a { color: var(--link); }
.hours .head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; }
.hours .window { font-size: var(--fs-20); font-weight: 600; font-variant-numeric: tabular-nums; }
.hours .window small { font-size: var(--fs-13); font-weight: 400; color: var(--muted); margin-left: var(--s-1); }
.hours .range { position: relative; height: 44px; margin: var(--s-3) 0 0; --a: 37.5%; --b: 91.7%; --bs: 0%; --be: 0%; }
.hours .range .track { position: absolute; left: 22px; right: 22px; top: 19px; height: 6px; border-radius: 999px; background: var(--surface-2); }
.hours .range .fill { position: absolute; top: 0; bottom: 0; left: var(--a); right: calc(100% - var(--b)); border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-1) 0 var(--bs), transparent var(--bs) var(--be), var(--brand-1) var(--be)),
              repeating-linear-gradient(135deg, var(--brand-1) 0 4px, color-mix(in srgb, var(--brand-1) 35%, transparent) 4px 8px); }
.hours .range input { position: absolute; inset: 0; width: 100%; height: 44px; margin: 0; padding: 0; border: 0; min-height: 0;
  background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.hours .range input::-webkit-slider-runnable-track { height: 44px; background: none; }
.hours .range input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; cursor: grab; width: 44px; height: 44px; border-radius: 50%;
  background: radial-gradient(circle, var(--surface) 0 8px, var(--brand-1) 8.5px 12px, transparent 12.5px); }
.hours .range input::-moz-range-thumb { pointer-events: auto; cursor: grab; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: radial-gradient(circle, var(--surface) 0 8px, var(--brand-1) 8.5px 12px, transparent 12.5px); }
.hours .range input::-moz-range-track { background: none; }
.hours { scroll-margin-top: 128px; }
.hours .range input:focus-visible { outline: none; }
.hours .range input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--brand-1) inset; }
.hours .ticks { display: flex; justify-content: space-between; margin: 0 6px; font-size: var(--fs-12); color: var(--muted); font-variant-numeric: tabular-nums; }
.hours .nums { margin: var(--s-3) 0 0; }
.hours .note { margin: var(--s-2) 0 0; font-size: var(--fs-13); }
.hours .note.warn { padding: var(--s-2) var(--s-3); border-radius: var(--r-md); background: var(--warn-soft); color: var(--text); }
.hours [hidden] { display: none; }
.hours .back { margin-top: var(--s-2); }
.hours .protect { margin: var(--s-3) 0 0; }
.why { scroll-margin-top: 128px; }
.why summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
/* spotlight (J1) */
.spot-back { position: fixed; inset: 0; background: rgba(8, 6, 20, .62); z-index: 40; }
.spot-on { position: relative; z-index: 41; border-radius: 16px; background: var(--bg);
           box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand-2) 70%, transparent); }
.spot-tip { position: absolute; z-index: 42; width: min(340px, calc(100vw - 32px)); background: var(--surface); color: var(--text);
            border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); }
.spot-tip p { margin: 6px 0 12px; color: var(--muted); }
.spot-step { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
@media (prefers-reduced-motion: no-preference) { .spot-tip { animation: spotin .18s ease-out; } }
@keyframes spotin { from { opacity: 0; transform: translateY(4px); } }
.ok { color: var(--ok); }
table.compare { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 10px; }
table.compare th, table.compare td { text-align: left; padding: 8px 6px; border-top: 1px solid var(--line); vertical-align: top; }
table.compare td:last-child { font-weight: 650; }
.scroll-x { overflow-x: auto; max-width: 100%; }

@media (max-width: 600px) { .sheet-close { display: inline-flex; } }  /* no Escape key on a phone */
@media (max-width: 600px) {  /* menus open as a sheet at the bottom of a phone, never off the side (UX audit D5) */
  .menu-panel { position: fixed; left: 16px; right: 16px; top: auto; bottom: 16px; width: auto; z-index: 20; }
}
/* Jobs and Leads, one table (spec 1.8 v2, mockups v2): one bordered container, 44 px rows, columns sized by content,
   the title takes what is left on one line; two-line rows on phones */
table.jobs { width: 100%; border-collapse: collapse; table-layout: auto; }
table.jobs th { text-align: left; font-size: var(--fs-12); font-weight: 500; color: var(--muted); height: 36px;
  padding: 0 var(--s-3); border-bottom: 1px solid var(--line); white-space: nowrap; }
table.jobs th:first-child, table.jobs td:first-child { padding-left: var(--s-4); }
table.jobs th:last-child, table.jobs td:last-child { padding-right: var(--s-4); }
table.jobs tr.job-row { cursor: pointer; }
table.jobs tr.job-row td { height: var(--h-row); padding: var(--s-2) var(--s-3); vertical-align: middle; border-top: 1px solid var(--line); }
table.jobs tbody:first-of-type tr.job-row td { border-top: 0; }
table.jobs tr.job-row:hover td { background: var(--hover); }
table.jobs tbody.current tr.job-row td, table.jobs tbody.open tr.job-row td { background: var(--surface-2); }
table.jobs td.pick, table.jobs td.sc, table.jobs td.acts { width: 1%; }
table.jobs td.title { width: 100%; max-width: 0; }
table.jobs td.title > a, table.jobs td.title > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-weight: 500; color: var(--text); text-decoration: none; }
table.jobs td.title > a:hover { text-decoration: underline; }
table.jobs td.title .sub, table.jobs td.src small { display: block; font-size: var(--fs-12); line-height: 1.3; color: var(--muted); }
table.jobs td.title .sub.fresh { color: var(--ok-ink); }
table.jobs td.company, table.jobs td.place, table.jobs td.src { color: var(--muted); white-space: nowrap; max-width: 180px;
  overflow: hidden; text-overflow: ellipsis; }
table.jobs td.acts { white-space: nowrap; text-align: right; }
table.jobs td.acts .btn { vertical-align: middle; }
table.jobs td.acts .btn + .btn { margin-left: var(--s-1); }
table.jobs .preview { width: var(--h-ctl-sm); padding: 0; justify-content: center; color: var(--muted); }
table.jobs .preview svg { transition: transform .15s; }
table.jobs .preview[aria-expanded="true"] svg { transform: rotate(180deg); }
table.jobs tr.job-detail > td { padding: 0 var(--s-3) var(--s-3); background: var(--surface-2); }
table.jobs td.meta { display: none; }
@media (max-width: 900px) {  /* two lines: title, then company · place · source; below 900 px the columns squeeze the title */
  table.jobs thead { display: none; }
  table.jobs, table.jobs tbody { display: block; }
  table.jobs tr.job-detail:not([hidden]), table.jobs tr.job-detail > td { display: block; }
  table.jobs tr.job-row { display: grid; grid-template-columns: auto 32px 1fr auto; grid-template-areas: "pick sc title acts" "pick sc meta meta";
    align-items: center; column-gap: var(--s-2); padding: 10px var(--s-3); border-top: 1px solid var(--line); }
  table.jobs tbody:first-of-type tr.job-row { border-top: 0; }
  table.jobs tbody.current tr.job-row, table.jobs tbody.open tr.job-row { background: var(--surface-2); }
  table.jobs tr.job-row td { display: block; background: none !important; padding: 0 !important; border: 0; height: auto; width: auto;
    min-width: 0; }
  table.jobs td.pick { grid-area: pick; } table.jobs td.sc { grid-area: sc; }
  table.jobs td.title { grid-area: title; width: auto; max-width: none; }
  table.jobs td.company, table.jobs td.place, table.jobs td.src { display: none !important; }
  table.jobs td.meta { display: block !important; grid-area: meta; font-size: var(--fs-12); color: var(--muted); white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; }
  table.jobs td.acts { grid-area: acts; }
}
@media (max-width: 640px) {
  table.jobs td.acts .btn { min-width: 44px; padding: 0 var(--s-2); justify-content: center; }
}
.score.sm { width: 32px; height: 32px; border-radius: var(--r-sm); font-size: var(--fs-13); font-variant-numeric: tabular-nums; }
.score { flex-direction: column; line-height: 1; }  /* the number with "fit" under it */
.score small { font-size: 10px; font-weight: 600; letter-spacing: .04em; opacity: .9; margin-top: 2px; }
.score.sm small { font-size: 9px; }
.score.hi { background: #047857; } .score.mid { background: #b45309; } .score.lo { background: #b91c1c; }  /* owner: a traffic light, white text 5:1+ */
.flag { margin: 6px 0 0; color: #b45309; font-weight: 600; }
@media (prefers-color-scheme: dark) { .flag { color: #fbbf24; } }
.about { margin-top: 12px; } .about .jd { white-space: pre-line; margin: 6px 0 0; }
input[name=ids], #pick-all { margin: 0; cursor: pointer; vertical-align: middle; }
.pick-card { float: right; }
.bulkbar { position: sticky; bottom: 12px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 8px 0; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); }
.bulkbar[hidden] { display: none; }
/* UX audit D23, D27: on a touch screen every tap target is 40-44 px; a mouse gets the 32 px pro sizes (mockups v2) */
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; }
@media (pointer: coarse) {
  .btn, .btn.sm, .navlink, .seg a, .pill-btn, input, select, label.chip, details summary { min-height: 44px; }
  a.brand, .menu-item, .privacy a, a.tap, a.chip { min-height: 44px; }
  input[type=checkbox], input[type=radio] { width: 22px; height: 22px; }
}
@media (max-width: 640px) { .top { position: static; } }
/* a blur makes the header the box a fixed child is placed in, so the phone's bottom sheet opened above the screen */
@media (max-width: 600px) { .top { backdrop-filter: none; background: var(--bg); } }
@media (max-width: 640px) { .wide-only, details.keys { display: none; } }  /* keyboard hints are for keyboards */
details.keys summary svg.i { width: 16px; height: 16px; }
details.keys .menu-panel { padding: var(--s-3); width: 280px; font-size: var(--fs-13); }
details.keys .menu-panel p { margin: 0 0 var(--s-2); } details.keys .menu-panel p:last-child { margin: 0; }

/* walk-in rows (Today, Leads): the date where a score would be */
.walkin { align-items: center; gap: 14px; }
.datebox { flex: none; width: 44px; height: 44px; border-radius: 10px; display: inline-flex; flex-direction: column;
  align-items: center; justify-content: center; line-height: 1; border: 1px solid var(--line); background: var(--surface-2, transparent); }
.datebox b { font-size: 16px; } .datebox small { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* components (spec 1.6-1.9) */
.row-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-3); }
.empty { text-align: center; padding: var(--s-8) var(--s-4); color: var(--muted); }
.empty .btn { margin-top: var(--s-3); }
.meter { margin-top: var(--s-2); }
.meter .l { display: flex; justify-content: space-between; gap: var(--s-2); font-size: var(--fs-13); }
.meter .l b { font-weight: 600; font-variant-numeric: tabular-nums; }
.meter .bar { height: 6px; border-radius: 999px; background: var(--surface-2); margin-top: 4px; overflow: hidden; }
.meter .bar i { display: block; height: 100%; background: var(--brand-1); border-radius: 999px; }
.meter.warn .bar i { background: var(--warn); } .meter.full .bar i { background: var(--bad); }
.choice { position: relative; display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
          padding: var(--s-4); cursor: pointer; }
.choice:hover { background: var(--hover); }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.choice:has(input:focus-visible) { outline: 2px solid var(--brand-1); outline-offset: 2px; }
.choice:has(input:disabled) { cursor: default; } .choice:has(input:disabled) input { cursor: default; }
.choice:has(input:disabled):not(:has(input:checked)) { opacity: .6; }
/* speed choice cards (spec 2.1): three across, stacked on phones; the numbers decide */
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: var(--s-4) var(--s-3); margin-top: var(--s-4); }
.choices:has(> .choice:nth-child(4)) { grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); }  /* with Custom: two by two */
.choice .head { display: flex; align-items: center; gap: var(--s-2); }
.choice .head b { font-size: var(--fs-16); font-weight: 600; }
.choice .tick { margin-left: auto; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); display: grid;
                place-items: center; color: transparent; font-size: 11px; line-height: 1; }
.choice:has(input:checked) .tick { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.choice .one { display: block; color: var(--muted); font-size: var(--fs-13); margin: 2px 0 var(--s-3); }
.choice .nums { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-1) var(--s-2); font-size: var(--fs-13); }
.choice .nums .k { color: var(--muted); }
.choice .nums .v { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }  /* wraps: never past the card (launch review 14) */
.choice .rec { display: flex; width: fit-content; max-width: 100%; margin-bottom: var(--s-2); }
/* no overflow: hidden, a "Skip because" menu in the last row's card must not be cut off; the last cells round instead */
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.table-wrap tbody:last-of-type > tr:is(:last-child, :has(+ tr[hidden]:last-child)) > td:first-child { border-bottom-left-radius: calc(var(--r-lg) - 1px); }
.table-wrap tbody:last-of-type > tr:is(:last-child, :has(+ tr[hidden]:last-child)) > td:last-child { border-bottom-right-radius: calc(var(--r-lg) - 1px); }

/* Runs page as a run log (spec 2.2, mockups v2): kind · when · what moved · cost · chevron; six groups when open */
.runlog { display: grid; gap: var(--s-2); }
.run { display: grid; grid-template-columns: auto auto 1fr auto auto; grid-template-areas: "kind when nums cost chev";
       gap: var(--s-1) var(--s-3); align-items: center; cursor: pointer; list-style: none; min-height: 24px; }
.run::-webkit-details-marker { display: none; }
.run > * { min-width: 0; }
.run .kind { grid-area: kind; } .run .when { grid-area: when; } .run .nums { grid-area: nums; }
.run .cost { grid-area: cost; } .run .chev { grid-area: chev; }
.run .when { font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.run .when span { color: var(--muted); font-weight: 400; }
.run .nums { display: flex; flex-wrap: wrap; gap: 4px var(--s-3); align-items: center; }
.run .nums b, .groups b { font-weight: 600; font-variant-numeric: tabular-nums; }
.run .cost { color: var(--muted); font-size: var(--fs-13); white-space: nowrap; font-variant-numeric: tabular-nums; }
.run .chev { color: var(--muted); width: 16px; height: 16px; transition: transform .15s; }
details[open] > .run .chev { transform: rotate(180deg); }
.runrow:hover { background: var(--hover); } .runrow[open] { background: var(--surface); }
.groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s-3); margin-top: var(--s-3);
          padding-top: var(--s-3); border-top: 1px solid var(--line); font-size: var(--fs-13); }
.groups h4 { margin: 0 0 var(--s-1); font-size: var(--fs-12); font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
             color: var(--muted); }
.groups .zero { color: var(--muted); } .groups .zero b { font-weight: 400; }
.groups .detail { color: var(--muted); font-size: var(--fs-12); margin-top: 2px; }
@media (max-width: 640px) { .run { grid-template-columns: auto 1fr auto; grid-template-areas: "kind when chev" "nums nums cost"; } }

/* Profile (spec 2.5): resume card left and sticky on desktop, questions in folding sections, a sticky Save bar */
.profile-grid { display: grid; gap: var(--s-4); align-items: start; }
@media (min-width: 900px) { .profile-grid { grid-template-columns: 300px minmax(0, 1fr); }
                            .profile-side { position: sticky; top: 76px; } }
.profile-main, .profile-side { min-width: 0; }
details.qgroup > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: var(--s-2); color: var(--text);
                           margin: var(--s-2) 0; }
details.qgroup > summary::-webkit-details-marker { display: none; }
details.qgroup > summary::before { content: none; }
details.qgroup > summary::after { content: "Hide"; margin-left: auto; font-size: var(--fs-13); color: var(--link); }
details.qgroup:not([open]) > summary::after { content: "Show"; }
details.qgroup > summary h2 { margin: 0; }
.savebar { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-3);
           background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.row-card.looking { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-3); }
.row-card.looking .muted { overflow-wrap: anywhere; }

/* How Upjivika works (spec A.1): four steps, auto (brand) or you (saffron) */
.how-it-works h2 { margin: 0 0 var(--s-1); }
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: var(--s-3); margin-top: var(--s-3); }
.how .step { display: grid; gap: 2px; padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); }
.how .step b { font-size: var(--fs-14); } .how .step .n { color: var(--muted); font-size: var(--fs-13); }
.auto, .you { justify-self: start; font-size: var(--fs-12); font-weight: 600; padding: 0 6px; border-radius: 999px; }
.auto { color: var(--chip-1); background: color-mix(in srgb, var(--brand-1) 12%, transparent); }
.you { color: var(--accent); background: var(--accent-soft); }
details.how-fold { margin-top: var(--s-6); } details.how-fold > .how-it-works { margin-top: var(--s-2); }
.row-card.sofar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
@media (min-width: 900px) { .profile-grid.one { grid-template-columns: minmax(0, 560px); } }  /* first visit: the upload card alone */
html:has(.savebar) { scroll-padding-bottom: 88px; }  /* Tab never lands a box under the sticky Save bar */

/* what happened next (spec 2026-10-24 outcomes): a pressed outcome is neutral, never saffron, green or red (V3, U8) */
.question .btn[aria-pressed="true"], .outcome .btn[aria-pressed="true"] { border-color: var(--text); background: var(--surface-2); color: var(--text); font-weight: 600; }
.menu-item[aria-pressed="true"] { font-weight: 600; }
.qerr { color: var(--bad-ink); font-size: 14px; margin-top: 4px; }
table.jobs details.outcome-menu { display: inline-block; vertical-align: middle; position: relative; text-align: left; }
@media (min-width: 601px) {  /* a phone keeps the bottom sheet every menu gets */
  table.jobs details.outcome-menu .menu-panel { width: 200px; z-index: 6; }
}
details.outcome-menu summary svg.i { width: 16px; height: 16px; }
.outcome { margin-top: var(--s-3); }
.outcome .q { margin: 0 0 var(--s-2); font-weight: 600; }
.outcome .note { margin-top: var(--s-2); }
.outcome .note label { flex-basis: 100%; }
.outcomes-wrap { overflow-x: auto; margin-top: var(--s-2); }
table.outcomes { width: 100%; max-width: 640px; border-collapse: collapse; font-size: var(--fs-14); font-variant-numeric: tabular-nums; }
table.outcomes th, table.outcomes td { padding: var(--s-2) var(--s-3); border-top: 1px solid var(--line); text-align: right; white-space: nowrap; }
table.outcomes th:first-child { text-align: left; white-space: normal; font-weight: 400; padding-left: 0; }
table.outcomes td:last-child, table.outcomes th:last-child { padding-right: 0; }
table.outcomes thead th { border-top: 0; font-size: var(--fs-12); font-weight: 500; color: var(--muted); }
table.outcomes tr.all th, table.outcomes tr.all td { font-weight: 600; }
table.outcomes tr.group th { padding-top: var(--s-4); font-size: var(--fs-12); font-weight: 500; color: var(--muted);
  text-transform: uppercase; letter-spacing: .04em; text-align: left; }
@media (max-width: 640px) {
  .todo.nudge { flex-wrap: wrap; }
  .todo.nudge > span:not(.ico) { flex: 1 1 200px; min-width: 0; }  /* the icon and the question share a line */
  .todo.nudge .go { margin-left: 0; width: 100%; }
  table.outcomes th, table.outcomes td { padding-left: var(--s-1); padding-right: var(--s-1); }
  table.outcomes .pct { display: block; }  /* "3 of 10" over "(30%)": the four numbers fit a phone */
}

/* Settings: a checkbox whose whole line is the tap target (referrals spec, U6) */
label.check-row { display: flex; align-items: flex-start; gap: var(--s-2); cursor: pointer; }
label.check-row input { margin-top: 2px; flex: none; }
@media (pointer: coarse) { label.check-row { min-height: 44px; align-items: center; } }

/* people on this computer (profiles spec, PR 4): the avatar, its menu, the Who's using page */
.face { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff;
  font-weight: 600; font-size: var(--fs-13); box-shadow: 0 0 0 2px var(--surface); }
.face.lg { width: 44px; height: 44px; font-size: var(--fs-16); }
.face.xl { width: 64px; height: 64px; font-size: var(--fs-24); }
.p-blue { background: var(--person-blue); } .p-purple { background: var(--person-purple); }
.p-pink { background: var(--person-pink); } .p-cyan { background: var(--person-cyan); } .p-slate { background: var(--person-slate); }
.menu.who summary.avatar-btn { padding: 0 var(--s-1); gap: var(--s-2); border-radius: 999px; min-height: 40px; }
.menu.who .who-name { font-weight: 500; }
.menu.who .person { display: flex; align-items: center; gap: var(--s-3); }
.menu.who .person > span:not(.face) { display: flex; flex-direction: column; min-width: 0; }
.menu.who .person.stopped .btn { margin-left: auto; }
.menu.who .menu-who.person { padding: 10px 12px 12px; }
.who-page main { max-width: 720px; margin: 0 auto; padding-block: var(--s-12); text-align: center; }
.who-page .brand { display: inline-flex; align-items: center; gap: 10px; }
.who-page .people { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s-4); margin: var(--s-8) 0; }
.who-page .person-card { display: flex; flex-direction: column; align-items: center; gap: var(--s-2); padding: var(--s-6);
  text-decoration: none; color: inherit; }
@media (pointer: coarse) { .menu.who summary.avatar-btn { min-width: 44px; min-height: 44px; } }
@media (max-width: 900px) { .menu.who .who-name, .menu.who summary .chev { display: none; } }
@media (max-width: 600px) { .top a.brand strong { display: none; } }  /* the logo tile stays; the first row fits at 390 */
.sending { overflow-wrap: anywhere; margin: var(--s-2) 0; }
.starting .dot { margin-right: var(--s-1); }
.menu.who .face { color: #fff; word-break: normal; }  /* .menu-who span is muted text; the initial stays white */
.menu.who .menu-who strong { color: var(--text); }
@media (max-width: 640px) {  /* a row's sub line stays one line on a phone: the title keeps its room */
  table.jobs td.title .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* Needs you (spec 2026-10-26 Part D, v3 mockup, U11): Today's one way in, then one thing per screen. Phone: full
   screen; a keyboard and mouse: a 480 px panel over Today with the keys under it. Scoped: .opt and .bar exist above */
.need-pill { display: flex; align-items: center; gap: var(--s-3); width: 100%; max-width: 520px; margin: 0 0 var(--s-4); padding: var(--s-3) 14px;
             border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); background: var(--accent-soft);
             color: var(--text); font: inherit; text-align: left; box-shadow: var(--shadow-sm); min-height: 56px; cursor: pointer; }
.need-pill:hover { filter: brightness(.98); }
.need-pill:focus-visible { outline: 2px solid var(--brand-1); outline-offset: 2px; }
.need-pill .n { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid;
                place-items: center; font-weight: 700; font-size: 15px; flex: none; }
.need-pill b { display: block; font-weight: 600; } .need-pill small { color: var(--muted); font-size: var(--fs-13); }
.need-pill > svg.i { margin-left: auto; color: var(--accent); }
.need-pill.quiet { margin: var(--s-4) 0 0; background: var(--surface); border-color: var(--line); cursor: default; }
.need-pill.quiet:hover { filter: none; }
.need-pill.quiet .n { background: var(--ok-ink); color: var(--surface); }
.need-pill.quiet .n svg.i { width: 18px; height: 18px; }
body:has(.needs) { overflow: hidden; }
.needs { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; }
.needs-shade { position: absolute; inset: 0; background: color-mix(in srgb, #08061a 58%, transparent); backdrop-filter: blur(2px); }
.needs-panel { position: relative; display: flex; flex-direction: column; width: 480px; max-width: 100vw; min-height: 520px;
               max-height: min(680px, 100vh); overflow: auto; border-radius: 20px; background: var(--bg); border: 1px solid var(--line);
               box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); }
.needs-bar { display: flex; align-items: center; gap: var(--s-3); padding: 14px 12px 10px var(--s-4); }
.needs .segs { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }  /* one segment a thing */
.needs .segs i { height: 4px; border-radius: 999px; background: var(--line); }
.needs .segs i.done { background: var(--ok-ink); } .needs .segs i.cur { background: var(--accent); }
.needs-x { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); display: grid;
           place-items: center; cursor: pointer; }
.needs-x:hover { background: var(--hover); color: var(--text); }
.needs-body { flex: 1; padding: var(--s-6) 28px var(--s-2); display: flex; flex-direction: column; gap: 20px; }
.needs .ctx { margin: 0; color: var(--muted); font-size: var(--fs-13); display: flex; align-items: center; gap: var(--s-2); }
.needs .logos { display: inline-flex; }
.needs .logos b { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 700;
                  color: #fff; border: 2px solid var(--bg); margin-left: -6px; background: var(--person-slate); }
.needs .logos b:first-child { margin-left: 0; }
.needs .logos .p-blue { background: var(--person-blue); } .needs .logos .p-purple { background: var(--person-purple); }
.needs .logos .p-pink { background: var(--person-pink); } .needs .logos .p-cyan { background: var(--person-cyan); }
.needs .q { margin: -10px 0 0; font-size: var(--fs-24); font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.needs .opts { display: grid; gap: 10px; border: 0; margin: 0; padding: 0; min-width: 0; }
.needs .opt { position: relative; display: flex; align-items: center; gap: var(--s-3); min-height: 56px; padding: 0 18px; width: 100%;
              text-align: left; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--text);
              font: inherit; font-size: var(--fs-16); font-weight: 500; box-shadow: var(--shadow-sm); cursor: pointer;
              transition: background .12s ease, border-color .12s ease, transform .12s ease; }
.needs .opt:hover { background: var(--hover); } .needs .opt:active { transform: scale(.985); }
.needs .opt:focus-visible { outline: 2px solid var(--brand-1); outline-offset: 2px; }
.needs .opt .tag { margin-left: auto; font-size: var(--fs-12); font-weight: 500; color: var(--accent); background: var(--accent-soft);
                   padding: 2px var(--s-2); border-radius: 999px; white-space: nowrap; }
.needs .opt.sug { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent), var(--shadow-sm); }
.needs label.opt input { width: 20px; height: 20px; }
.needs .field { display: flex; gap: 10px; }
.needs .field.stack { flex-direction: column; }
.needs .field input:not([type=hidden]):not([type=checkbox]), .needs .field select, .needs .field textarea {
  flex: 1; min-width: 0; width: 100%; min-height: 56px; padding: 0 18px; font: inherit; font-size: var(--fs-20); font-weight: 500;
  border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.needs .field textarea { padding: 14px 18px; font-size: var(--fs-16); line-height: 1.5; resize: vertical; }
.needs .big { min-height: 56px; border-radius: var(--r-lg); font-size: var(--fs-16); font-weight: 600; padding: 0 22px; }
.needs .hint { margin: 0; color: var(--muted); font-size: var(--fs-13); }
.needs-foot { display: flex; justify-content: center; align-items: center; padding: var(--s-2) 20px 20px; min-height: 64px; }
.needs-skip { background: none; border: 0; color: var(--muted); min-height: 44px; padding: 0 var(--s-4); border-radius: var(--r-md);
              font: inherit; font-weight: 500; cursor: pointer; }
.needs-skip:hover { background: var(--hover); color: var(--text); }
.needs .snack { position: absolute; left: var(--s-4); right: var(--s-4); bottom: 84px; display: flex; align-items: center; gap: var(--s-3);
                padding: var(--s-3) var(--s-4); border-radius: var(--r-lg); background: var(--text); color: var(--bg); box-shadow: var(--shadow);
                font-weight: 500; animation: needs-up .2s ease-out; }
.needs .snack .u { margin-left: auto; background: none; border: 0; color: inherit; font: inherit; font-weight: 700; text-decoration: underline;
                   text-underline-offset: 3px; min-height: 44px; padding: 0 var(--s-2); cursor: pointer; }
.needs .snack .ring { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--bg) 40%, transparent);
                      border-top-color: var(--bg); animation: needs-spin 5s linear; }
.needs-done { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 20px; }
.needs-done h1 { font-size: var(--fs-24); margin: 0; } .needs-done p { color: var(--muted); margin: 0; }
.needs-done .tick { width: 72px; height: 72px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok-ink);
                    display: grid; place-items: center; margin-bottom: var(--s-2); }
.needs-done .tick svg.i { width: 36px; height: 36px; stroke-width: 2.5; }
.needs-done .btn { margin-top: 14px; }
.needs-keys { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); margin: 0; color: #fff; opacity: .8;
              font-size: var(--fs-13); display: none; gap: var(--s-4); white-space: nowrap; }
.needs-keys kbd { font: 12px/1 ui-monospace, Menlo, monospace; padding: 3px 6px; border-radius: 5px; border: 1px solid rgba(255, 255, 255, .5);
                  margin-right: 4px; }
@media (hover: hover) and (pointer: fine) and (min-width: 641px) { .needs-keys { display: flex; } }
@media (max-width: 640px) {  /* a phone: the whole screen */
  .needs-panel { width: 100vw; height: 100dvh; max-height: none; min-height: 0; border-radius: 0; border: 0; }
  .needs-body { padding: 28px 20px var(--s-2); }
  .needs .field .big { padding: 0 18px; }
}
@keyframes needs-up { from { transform: translateY(8px); opacity: 0; } }
@keyframes needs-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .needs .snack, .needs .snack .ring, .needs .opt { animation: none; transition: none; } }

.ask-top { margin: var(--s-3) 0 0; }
.ask-top + .muted { margin: 2px 0 0; font-size: var(--fs-13); }
.ask-h { margin: var(--s-4) 0 0; font-size: var(--fs-12); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ask { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: var(--s-2) var(--s-6); align-items: center;
       padding: var(--s-3) 0; border-top: 1px solid var(--line); }
.ask-h + .ask { border-top: 0; }
.ask.wide { grid-template-columns: minmax(0, 1fr); }
.ask-q b { font-weight: 600; }
.ask-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 2px; font-size: var(--fs-13); color: var(--muted); }
.ask > :last-child { min-width: 0; }
.ask select, .ask input[type=date], .ask textarea { width: 100%; }
.ask textarea { resize: vertical; line-height: 1.5; }
@media (max-width: 640px) { .ask { grid-template-columns: minmax(0, 1fr); } }
.picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(120px, 100%), 1fr)); gap: var(--s-2); }
.picks label { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--h-ctl);
               padding: 0 var(--s-3); border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
               color: var(--text); font-weight: 500; text-align: center; cursor: pointer; box-shadow: var(--shadow-sm); }
.picks label:hover { background: var(--hover); }
.picks input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.picks label:has(input:checked) { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); background: var(--surface-2); font-weight: 600; }
.picks input:checked + span::before { content: "✓ "; }
.picks label:has(input:focus-visible) { outline: 2px solid var(--brand-1); outline-offset: 2px; }
.unit-in { display: flex; align-items: center; gap: var(--s-2); }
.unit-in input { flex: 1; min-width: 0; width: 100%; font-variant-numeric: tabular-nums; }
.unit-in > span { color: var(--muted); white-space: nowrap; }
.unit-in select { flex: none; width: auto; }
.needs .field .unit-in { flex: 1; min-width: 0; }
details.ask-more { margin-top: var(--s-2); border-top: 1px solid var(--line); padding-top: var(--s-2); }
.ask-more .row { justify-content: space-between; padding: 6px 0; font-size: var(--fs-13); }
.ask-more .row span { flex: 1 1 220px; min-width: 0; }
.ask-more select { min-height: var(--h-ctl-sm); font-size: var(--fs-13); }

/* setup wizard (J2 spec): stepper, one column of screens, facts lists; phone rules at the dashboard's 640 px */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wiz { max-width: 720px; }
.wiz:has(.aichoices) { max-width: 1040px; }
.wiz h1 { margin-bottom: var(--s-1); }
.wiz .how { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stepper { display: flex; gap: var(--s-2); flex-wrap: wrap; list-style: none; padding: 0; margin: 0 0 var(--s-4); }
.stepper a { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--h-ctl); padding: 0 var(--s-3) 0 var(--s-1);
             border-radius: 999px; color: var(--link); text-decoration: underline; text-underline-offset: 3px; font-weight: 500;
             border: 1px solid transparent; }
.stepper a:hover { background: var(--hover); }
.stepper a:focus-visible { outline: 2px solid var(--brand-1); outline-offset: 2px; }
.stepper .n { width: var(--s-6); height: var(--s-6); border-radius: 50%; display: grid; place-items: center; font-size: var(--fs-12);
              border: 1px solid var(--line); background: var(--surface); color: var(--text); font-variant-numeric: tabular-nums; }
.stepper .done a { color: var(--text); text-decoration: none; }
.stepper .done .n { background: var(--ok-ink); border-color: var(--ok-ink); color: var(--surface); }
.stepper a[aria-current="step"] { color: var(--text); font-weight: 600; text-decoration: none; border-color: var(--line); background: var(--surface); }
.stepper a[aria-current="step"] .n { background: var(--grad-ink); border-color: transparent; color: #fff; }
.stepper-phone { display: none; }
.stepper-phone .l { display: flex; justify-content: space-between; gap: var(--s-2); font-size: var(--fs-13); }
.stepper-phone .bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-1); margin-top: var(--s-2); }
.stepper-phone .bars i { height: var(--s-1); border-radius: 999px; background: var(--surface-2); }
.stepper-phone .bars i.on { background: var(--ok-ink); }
.stepper-phone .bars i.cur { background: var(--brand-1); }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-1); font-size: var(--fs-13); }
.facts li { display: flex; justify-content: space-between; gap: var(--s-3); }
.facts li span:last-child { text-align: right; }
@media (max-width: 640px) {
  .stepper { display: none; }
  .stepper-phone { display: block; margin-bottom: var(--s-3); }
  .wiz .how { grid-template-columns: 1fr; }
}
@media (pointer: coarse) {
  .stepper a { min-height: 44px; }
  .stepper-phone .l a { display: inline-flex; align-items: center; min-height: 44px; }  /* the only way to another stage on a phone */
}
.substeps { font-size: var(--fs-13); color: var(--muted); margin: calc(-1 * var(--s-2)) 0 var(--s-4) var(--s-1); }
.substeps b { color: var(--text); font-weight: 600; }
.wiz-foot { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-4); }
.wiz-foot .grow { flex: 1; }
.file-pick { position: relative; }
.file-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-pick:has(input:focus-visible) { outline: 2px solid var(--brand-1); outline-offset: 2px; }
.opt { display: inline-flex; gap: var(--s-2); align-items: center; margin: 0 var(--s-3) var(--s-2) 0; font-weight: 400; white-space: nowrap; }
.kv-line { display: flex; gap: var(--s-2); flex-wrap: wrap; align-items: baseline; }
              border-radius: 999px; border: 1px solid var(--line); font-weight: 500; cursor: pointer; background: var(--surface);
              white-space: nowrap; }


.aichoices { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: stretch; }
@media (min-width: 900px) { .aichoices { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); } }
.aicard { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.aicard h3 { margin: 0; font-size: var(--fs-16); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.aicard p { margin: 0; }
.aicard .big { font-size: var(--fs-20); font-weight: 600; line-height: 1.3; }
.aicard .big small { display: block; font-size: var(--fs-14); font-weight: 400; color: var(--muted); }
.aicard .note { font-size: var(--fs-13); color: var(--muted); }
.aicard .btn { width: 100%; justify-content: center; }
.aicard .push { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.aicard.main { outline: 2px solid var(--brand-1); box-shadow: var(--shadow); }
.aicard.main .btn-primary { min-height: 44px; font-size: var(--fs-16); }
.packs { display: flex; flex-direction: column; gap: 8px; }
.pack { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line);
        border-radius: var(--r-md); background: var(--surface-2); font-variant-numeric: tabular-nums; }
.pack b { font-size: var(--fs-16); } .pack span { color: var(--muted); font-size: var(--fs-13); }
.under { margin: 16px 0 0; font-size: var(--fs-13); color: var(--muted); text-align: center; }
.foot { margin: 8px 0 0; font-size: var(--fs-12); color: var(--muted); text-align: center; }

#undo-bar:empty { display: none; }
#undo-bar { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 30; width: min(520px, calc(100vw - 32px)); }
.undo { display: flex; gap: var(--s-3); align-items: center; justify-content: space-between; background: var(--text); color: var(--bg);
        border-radius: var(--r-md); padding: 10px 12px; box-shadow: var(--shadow); animation: undo-out 0s linear 10s forwards; }
.undo .btn { flex: none; }
@keyframes undo-out { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.menu-item small.res { margin-left: auto; }
.card .acts { align-items: center; }
.sortbar { display: flex; gap: var(--s-2); align-items: center; margin: 0 0 var(--s-3); flex-wrap: wrap; }
.sortbar .menu-panel { left: 0; right: auto; top: 34px; width: min(220px, calc(100vw - 32px)); z-index: 5; }
.sortbar summary.btn small { color: var(--muted); font-weight: 400; margin-left: 2px; }
.sortbar.for-table { display: none; }
@media (max-width: 900px) { .sortbar.for-table { display: flex; } }
.hd { display: inline-block; }
.hd summary { padding: 0; cursor: pointer; display: inline-flex; gap: 4px; border-radius: var(--r-sm); color: var(--muted); font-weight: 500;
              text-decoration: underline dotted; text-underline-offset: 4px; }
.hd summary:hover { color: var(--text); }
.hd .menu-panel { left: 0; right: auto; top: 28px; width: 200px; z-index: 5; font-weight: 400; text-transform: none; }
.chev.sortchev { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -1px; color: var(--text); }
.chev.sortchev.dim { opacity: .5; }
.chev.sortchev.up { transform: rotate(180deg); }
table.jobs td.date { color: var(--muted); white-space: nowrap; width: 1%; }
@media (max-width: 900px) { table.jobs td.date { display: none !important; } }

/* Full auto page (mockup 2026-10-26-full-auto-v2): one score, one slide */
.fa { max-width: 560px; display: flex; flex-direction: column; gap: 18px; }
.fa form { margin: 0; display: flex; flex-direction: column; gap: 18px; }
.fa-q { font-size: var(--fs-24); font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.fa-q small { display: block; font-size: var(--fs-14); font-weight: 400; color: var(--muted); margin-top: var(--s-2); letter-spacing: 0; }
.fa-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fa-pick { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 18px 14px; box-shadow: var(--shadow-sm); }
.fa-pick .fa-top { display: flex; align-items: baseline; gap: 8px; }
.fa-pick .val { font-size: 40px; font-weight: 600; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.fa-pick .fa-top > span:not(.val):not(.lvl) { color: var(--muted); font-size: 15px; }
.fa-pick .lvl { margin-left: auto; white-space: nowrap; font-size: var(--fs-13); font-weight: 500; color: var(--ok-ink); background: color-mix(in srgb, var(--ok) 14%, transparent); padding: 2px 10px; border-radius: 999px; }
.fa-pick input[type=range] { width: 100%; margin: var(--s-4) 0 var(--s-2); accent-color: var(--accent); height: 44px; }
.fa-pick .ends { display: flex; justify-content: space-between; font-size: var(--fs-12); color: var(--muted); }
.fa-nums { display: grid; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.fa-nums > div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.fa-nums > div > span { color: var(--muted); }
.fa-nums b { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.fa-nums .sub { font-size: var(--fs-12); color: var(--muted); display: block; font-weight: 400; }
.fa-nums .barr { height: var(--s-1); border-radius: 999px; background: var(--surface-2); margin-top: var(--s-2); overflow: hidden; }
.fa-nums .barr i { display: block; height: 100%; background: var(--brand-1); border-radius: 999px; }
.fa-nums .meter-row { display: block; }
.fa-nums .meter-row .l { display: flex; justify-content: space-between; font-size: var(--fs-13); }
.fa-ready { color: var(--muted); font-size: var(--fs-13); margin: 0; }
.fa-consent { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); cursor: pointer; box-shadow: var(--shadow-sm); }
.fa-consent input { width: 24px; height: 24px; margin: 2px 0 0; flex: none; accent-color: var(--accent); cursor: pointer; }
.fa-consent b { display: block; font-weight: 600; font-size: 15px; }
.fa-consent p { color: var(--muted); font-size: var(--fs-13); margin: 4px 0 0; }
.fa-consent:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.fa-consent:has(input:checked) p.off, .fa-consent p.on { display: none; }
.fa-consent:has(input:checked) p.on { display: block; }
.fa-keeps { display: grid; gap: 10px; }
.fa-keeps h3 { margin: 0; font-size: var(--fs-12); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.fa-keeps ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fa-keeps li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-14); }
.fa-keeps li svg { width: 18px; height: 18px; color: var(--ok-ink); margin-top: 2px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fa-keeps li b { font-weight: 500; }
.fa-keeps li span span { color: var(--muted); }
.fa-fold { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 4px 16px; }
.fa-fold summary { text-decoration: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--muted); font-weight: 500; }
.fa-fold .fa-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 0; border-top: 1px solid var(--line); }
.fa-fold .fa-row b { font-weight: 500; display: block; }
.fa-fold .fa-row .hint { color: var(--muted); font-size: var(--fs-13); display: block; }
.fa-fold .fa-row .ctl { margin-left: auto; display: flex; align-items: center; gap: var(--s-2); white-space: nowrap; }
.fa-fold input[type=number] { width: 84px; min-height: 40px; padding: 0 10px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg); color: var(--text); text-align: right; }
.fa-fold .save { padding: 8px 0 12px; border-top: 1px solid var(--line); }
.fa-turn { display: grid; gap: 12px; }
.fa-slide { --x: 0px; --p: 0; position: relative; height: 60px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: pan-y; cursor: grab; box-shadow: inset 0 1px 3px rgba(22,20,42,.08); }
.fa-slide:focus-visible { outline: 2px solid var(--brand-1); outline-offset: 3px; }
.fa-slide .fill { position: absolute; inset: 0; width: calc(var(--x) + 58px); border-radius: 999px; background: var(--grad-ink); opacity: min(1, calc(var(--p) * 1.2)); }
.fa-slide .lbl { position: absolute; inset: 0; display: grid; place-items: center; padding-left: 52px; font-weight: 600; font-size: var(--fs-16); color: var(--text); opacity: calc(1 - var(--p) * 1.6); }
.fa-slide .knob { position: absolute; left: 3px; top: 3px; width: 52px; height: 52px; border-radius: 50%; background: var(--grad-ink); color: #fff; display: grid; place-items: center; transform: translateX(var(--x)); box-shadow: 0 4px 12px -2px rgba(76,60,160,.45); }
.fa-slide .knob svg { width: var(--fs-20); height: var(--fs-20); stroke-width: 2.5; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.fa-slide .knob .ok { display: none; }
.fa-slide.spring .knob, .fa-slide.spring .fill { transition: transform .35s cubic-bezier(.2,.9,.3,1.2), width .35s cubic-bezier(.2,.9,.3,1.2); }
.fa-slide.dragging { cursor: grabbing; }
.fa-slide.on { --p: 1; background: var(--grad-ink); border-color: transparent; cursor: default; }
.fa-slide.on .fill { width: 100%; opacity: 1; }
.fa-slide.on .lbl { opacity: 1; color: #fff; padding-left: 0; }
.fa-slide.on .knob { background: #fff; color: var(--confirm); }
.fa-slide.on .knob .go { display: none; }
.fa-slide.on .knob .ok { display: block; }
.fa-confirm { display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border-radius: var(--r-lg); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-soft); font-weight: 500; }
.fa-confirm.show { display: flex; }
.fa-confirm .cancel { background: none; border: 0; color: var(--muted); min-height: 40px; padding: 0 10px; cursor: pointer; }
.fa-confirm .btn { min-height: 40px; border-radius: var(--r-md); }
.fa-onpill { display: flex; align-items: center; gap: 14px; padding: 14px 16px 14px 18px; border-radius: 999px; border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad-ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-2) 18%, transparent), 0 14px 30px -14px var(--brand-2); min-height: 64px; }
.fa-onpill .pulse { width: 14px; height: 14px; border-radius: 50%; background: var(--ok); flex: none; animation: fa-ring 2.4s ease-out infinite; }
@keyframes fa-ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 45%, transparent); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.fa-onpill b { display: block; font-size: var(--fs-16); font-weight: 600; }
.fa-onpill small { color: var(--muted); font-size: var(--fs-13); display: block; }
.fa-onpill .btn { margin-left: auto; border-radius: 999px; min-height: 40px; }
.fa-card .go { margin-left: auto; }
@media (prefers-reduced-motion: reduce) {
  .fa-slide { cursor: pointer; }
  .fa-slide .knob { transform: none !important; }
  .fa-slide .fill { display: none; }
  .fa-onpill .pulse { animation: none; }
}
.fa [hidden] { display: none; }
.fa-err { margin: 0; padding: var(--s-3) 0; color: var(--bad-ink); font-size: var(--fs-13); }

  .checkline { display: flex; flex-wrap: wrap; align-items: center; gap: 2px var(--s-4); margin: 0 0 var(--s-3);
               font-size: var(--fs-13); color: var(--muted); }
  .checkline a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; font-weight: 500;
                 min-height: var(--h-ctl); display: inline-flex; align-items: center; }
  .checkline a:hover { text-decoration-thickness: 2px; }
  .checkline details.menu { position: relative; }
  .checkline .menu-panel p { margin: 0 0 var(--s-2); color: var(--text); }
  .checkline .menu-panel p.muted { color: var(--muted); }
  @media (pointer: coarse) { .checkline a { min-height: 44px; } }
  .from-post { margin: 10px 0 0; color: var(--muted); }
  .from-post a { color: var(--link); }
.app-mac .top { position: sticky; top: 0; z-index: 20; background: var(--bg); min-height: 52px; padding-block: 0; padding-left: 16px; }
.app-mac .top a.brand { margin-left: 68px; }  /* the window buttons sit here; only the first row loses the space, so the nav keeps its width at 390 */
.app-mac.mac-full .top a.brand { margin-left: 0; }  /* full screen takes the buttons away */
.app-mac .pg > aside { top: 68px; }
.app-mac .app-bar { position: sticky; top: 0; z-index: 20; background: var(--bg); height: 52px; }
.pywebview-drag-region, .pywebview-drag-region * { user-select: none; -webkit-user-select: none; }  /* text selects everywhere else; dragging the header must not start a selection */
.onestrip { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); margin: 0 0 var(--s-3); }
.onestrip > .checkline { margin: 0; }
.onestrip > details.menu { display: none; }
.onestrip:not(:has(> .checkline)) { display: none; }
@media (max-width: 600px) {
  .onestrip, .onestrip:not(:has(> .checkline)) { display: flex; }
  .onestrip > details.menu { display: block; }
  nav.filters { display: none; }
}
