/* SAS Hub — design tokens and components. See docs/DESIGN.md.
   Register: premium UK estate agency. Serif display, deep ink, stone paper,
   fine rules, one dark masthead per screen at most. Signal colours only for verdicts. */

:root {
  --paper: #F5F4F0;
  --paper-deep: #ECEAE4;
  --surface: #FFFFFF;
  --ink: #15181E;
  --ink-soft: #2B303A;
  --ink-muted: #6B7280;
  --rule: #E4E2DC;
  --rule-strong: #C9C6BD;
  --brand: #2E5AAC;
  --brand-deep: #1D3E7C;
  --brand-tint: #EDF2FA;
  --good: #1B7F4B;
  --caution: #A8690B;
  --risk: #B3261E;
  --good-tint: #E8F3EC;
  --caution-tint: #FAF1E3;
  --risk-tint: #F8ECEA;
  --masthead: #15181E;
  --masthead-2: #1F2530;
  --rail-w: 264px;
  --tabbar-h: 66px;
  --serif: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --shadow-panel: 0 1px 2px rgba(21, 24, 30, .04), 0 10px 30px -18px rgba(21, 24, 30, .18);
  --shadow-sheet: 0 -8px 40px rgba(21, 24, 30, .18);
  --radius: 12px;
  --radius-sm: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
body.sheet-open, body.more-open { overflow: hidden; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ── Type ────────────────────────────────────────────────────── */
h1 { font-family: var(--serif); font-weight: 500; font-size: 34px; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 6px; font-variation-settings: 'opsz' 48; }
h2, .h-section { font-family: var(--serif); font-weight: 500; font-size: 23px; line-height: 1.2; margin: 0 0 14px; letter-spacing: -0.005em; }
h3 { font-size: 16px; font-weight: 600; margin: 0 0 8px; }
p { margin: 0 0 12px; }
.muted { color: var(--ink-muted); font-size: 14px; }
.body { font-size: 16px; }
.small { font-size: 13px; }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.eyebrow { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); font-weight: 500; }
.good { color: var(--good); } .caution { color: var(--caution); } .risk { color: var(--risk); }
.page-head { margin: 4px 0 24px; max-width: 620px; }
.page-head p { margin: 0; font-size: 16px; color: var(--ink-muted); }
@media (max-width: 600px) { h1 { font-size: 30px; } }

/* ── Layout ───────────────────────────────────────────────────── */
.auth-loading { display: flex; align-items: center; justify-content: center; gap: 10px; height: 100vh; color: var(--ink-muted); }
.spin { width: 18px; height: 18px; border: 2px solid var(--rule); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

.rail { position: fixed; top: 0; left: 0; bottom: 0; width: var(--rail-w); background: var(--surface); border-right: 1px solid var(--rule); display: flex; flex-direction: column; overflow-y: auto; padding: 28px 16px 20px; }
.rail-brand { padding: 0 12px 20px; border-bottom: 1px solid var(--rule); margin-bottom: 8px; }
.rail-brand img { width: 128px; display: block; }
.rail-tag { font-family: var(--serif); font-size: 18px; color: var(--ink); margin-top: 12px; }
.rail-tag small { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); margin-top: 4px; }
.rail-group { margin-top: 10px; }
.rail-heading { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); padding: 14px 12px 6px; font-weight: 500; }
.rail-user { margin-top: auto; padding: 18px 12px 0; border-top: 1px solid var(--rule); }
.rail-user-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-user-email { font-size: 13px; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 12px; }

.nav-item { display: flex; align-items: center; width: 100%; text-align: left; padding: 9px 12px; min-height: 42px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--ink-soft); font-size: 15px; cursor: pointer; text-decoration: none; position: relative; }
.nav-item:hover { background: var(--paper); color: var(--ink); }
.nav-item.active { background: var(--ink); color: #fff; font-weight: 500; }

.main { margin-left: var(--rail-w); padding: 40px 48px 64px; max-width: calc(var(--rail-w) + 860px); }
.page { display: none; }
.page.active { display: block; }

.topbar, .tabbar, .more-sheet { display: none; }

@media (max-width: 900px) {
  .rail { display: none; }
  .main { margin-left: 0; padding: 16px 18px calc(var(--tabbar-h) + 28px + env(safe-area-inset-bottom)); max-width: none; }
  .topbar { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 20; background: rgba(245, 244, 240, .92); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--rule); padding: 12px 18px; margin: -16px -18px 20px; }
  .topbar-title { font-family: var(--serif); font-size: 19px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--rule); }
  .tab { border: 0; background: none; font-size: 11px; letter-spacing: .02em; color: var(--ink-muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 44px; cursor: pointer; }
  .tab.active { color: var(--ink); font-weight: 600; }
  .tab.active .tab-glyph { color: var(--ink); }
  .tab-glyph { font-size: 20px; line-height: 1; color: var(--ink-muted); }
  .tab-primary { color: var(--ink); }
  .tab-primary .tab-glyph { background: var(--ink); color: #fff; width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: 0 6px 14px -6px rgba(21, 24, 30, .5); }
  .more-sheet { display: block; position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); z-index: 25; background: var(--surface); border-top: 1px solid var(--rule); border-radius: 16px 16px 0 0; padding: 10px 10px 14px; transform: translateY(110%); transition: transform .22s ease; max-height: 70vh; overflow: auto; box-shadow: var(--shadow-sheet); }
  .more-sheet.open { transform: none; }
}

/* ── Panels ───────────────────────────────────────────────────── */
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px 22px; margin-bottom: 18px; box-shadow: var(--shadow-panel); }
.panel-tight { padding: 4px 22px; }
.panel > h2:first-child { margin-top: 2px; }
@media (max-width: 600px) { .panel { padding: 18px; } .panel-tight { padding: 2px 18px; } }

/* Dark masthead: one per screen at most. */
.hero { background: linear-gradient(160deg, var(--masthead) 0%, var(--masthead-2) 100%); color: #fff; border: 0; box-shadow: 0 18px 40px -22px rgba(21, 24, 30, .6); padding: 26px 24px; }
.hero .muted, .hero .verdict-fig-label { color: rgba(255, 255, 255, .62); }
.hero .h-section { color: #fff; }
.hero .progress { background: rgba(255, 255, 255, .14); }
.hero .progress > span { background: #fff; }
.hero .progress-good > span { background: #6FCF97; }
.hero .btn-primary { background: #fff; border-color: #fff; color: var(--ink); }
.hero .btn-primary:hover { background: var(--paper); }
.hero .big-count { font-family: var(--serif); font-size: 56px; font-weight: 500; line-height: 1; letter-spacing: -0.02em; }

.verdict { border-radius: var(--radius); padding: 28px 26px; margin-bottom: 18px; background: var(--surface); border: 1px solid var(--rule); border-top: 4px solid var(--rule-strong); box-shadow: var(--shadow-panel); }
.verdict-good { background: var(--good-tint); border-top-color: var(--good); }
.verdict-caution { background: var(--caution-tint); border-top-color: var(--caution); }
.verdict-risk { background: var(--risk-tint); border-top-color: var(--risk); }
.verdict-headline { font-family: var(--serif); font-size: 42px; font-weight: 500; line-height: 1.05; margin: 0 0 20px; letter-spacing: -0.015em; }
.verdict-good .verdict-headline { color: var(--good); }
.verdict-caution .verdict-headline { color: var(--caution); }
.verdict-risk .verdict-headline { color: var(--risk); }
.verdict-figs { display: flex; gap: 40px; flex-wrap: wrap; margin-bottom: 14px; }
.verdict-fig { font-family: var(--serif); font-size: 36px; font-weight: 500; line-height: 1.05; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.verdict-fig-label { font-size: 13px; color: var(--ink-muted); margin-top: 4px; }
.verdict p { margin: 0; color: var(--ink-soft); }
@media (max-width: 420px) { .verdict { padding: 22px 20px; } .verdict-headline { font-size: 32px; } .verdict-fig { font-size: 30px; } .verdict-figs { gap: 24px; } }

/* ── Rows ─────────────────────────────────────────────────────── */
.rows { margin: 0; padding: 0; list-style: none; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-top: 1px solid var(--rule); min-height: 48px; }
.row:first-child { border-top: 0; }
.row.clickable { cursor: pointer; }
.row.clickable:hover { background: var(--paper); margin: 0 -10px; padding-left: 10px; padding-right: 10px; border-radius: var(--radius-sm); }
.row.clickable:hover + .row { border-top-color: transparent; }
.row-main { flex: 1; min-width: 0; }
.row-title { font-weight: 500; }
.row-sub { font-size: 13px; color: var(--ink-muted); margin-top: 2px; }
.row-val { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.row-val-lg { font-size: 20px; font-weight: 500; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--rule); font-size: 16px; }
.kv:first-child { border-top: 0; }
.kv-total { border-top: 1px solid var(--rule-strong); font-weight: 500; }

/* ── Tables ───────────────────────────────────────────────────── */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 16px; }
.tbl th { text-align: left; font-weight: 500; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); padding: 8px 8px 10px; border-bottom: 1px solid var(--rule-strong); white-space: nowrap; }
.tbl td { padding: 12px 8px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.tbl th.num, .tbl td.num { text-align: right; }
.tbl td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.tbl tr.current td { background: var(--paper); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl-sticky thead th { position: sticky; top: 0; background: var(--surface); z-index: 1; }
.tbl th.sortable { cursor: pointer; user-select: none; }
.tbl th.sortable:hover { color: var(--ink); }

/* ── Forms ────────────────────────────────────────────────────── */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; color: var(--ink-muted); margin-bottom: 6px; }
.field input, .field select, .field textarea, .input { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid var(--rule-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font-size: 16px; transition: border-color .12s, box-shadow .12s; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(21, 24, 30, .08); }
.field textarea { min-height: 92px; resize: vertical; }
.field input:disabled { background: var(--paper); color: var(--ink-muted); }
.field .hint { display: block; font-size: 13px; color: var(--ink-muted); margin-top: 5px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 18px; }
@media (max-width: 600px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.error { color: var(--risk); font-size: 13px; margin: 0 0 8px; }
.success { color: var(--good); font-size: 13px; margin: 0 0 8px; }
input[type=range] { width: 100%; accent-color: var(--ink); min-height: 44px; }
.control { display: grid; grid-template-columns: 1fr 100px; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--rule); }
.control:first-child { border-top: 0; }
.control-label { font-weight: 500; }
.control input[type=number] { min-height: 44px; padding: 8px 10px; border: 1px solid var(--rule-strong); border-radius: var(--radius-sm); width: 100%; text-align: right; font-family: var(--mono); }
.control-range { grid-column: 1 / -1; }
.check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 8px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--ink); flex-shrink: 0; }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 20px; border-radius: var(--radius-sm); border: 1px solid transparent; font-size: 15px; font-weight: 500; letter-spacing: .01em; cursor: pointer; text-decoration: none; background: var(--surface); color: var(--ink); transition: background .12s, border-color .12s, transform .06s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-soft); border-color: var(--ink-soft); }
.btn-secondary { border-color: var(--rule-strong); }
.btn-secondary:hover { background: var(--paper); border-color: var(--ink-muted); }
.btn-ghost { background: none; color: var(--brand); padding-left: 8px; padding-right: 8px; }
.btn-ghost:hover { background: var(--brand-tint); }
.btn-danger { border-color: var(--risk); color: var(--risk); }
.btn-danger:hover { background: var(--risk-tint); }
.btn-block { width: 100%; }
.btn-lg { min-height: 54px; font-size: 18px; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-icon { width: 44px; height: 44px; border: 0; background: none; border-radius: var(--radius-sm); cursor: pointer; font-size: 18px; color: var(--ink-muted); }
.btn-icon:hover { background: var(--paper); color: var(--ink); }
.row-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 18px; }
.inline-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.inline-actions .btn { flex: 1 1 auto; }

/* ── Choice grid (large tap targets) ──────────────────────────── */
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 18px; }
.choice { min-height: 62px; border: 1px solid var(--rule-strong); border-radius: var(--radius-sm); background: var(--surface); font-size: 16px; font-weight: 500; cursor: pointer; padding: 8px; transition: background .12s, border-color .12s; }
.choice:hover { border-color: var(--ink-muted); }
.choice.selected { border-color: var(--ink); background: var(--ink); color: #fff; }
.choice-full { grid-column: 1 / -1; }

/* ── Tags ─────────────────────────────────────────────────────── */
.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; letter-spacing: .02em; border: 1px solid var(--rule-strong); color: var(--ink-muted); white-space: nowrap; background: var(--surface); }
.tag-good { color: var(--good); border-color: rgba(27, 127, 75, .35); background: var(--good-tint); }
.tag-caution { color: var(--caution); border-color: rgba(168, 105, 11, .35); background: var(--caution-tint); }
.tag-risk { color: var(--risk); border-color: rgba(179, 38, 30, .35); background: var(--risk-tint); }
.tag-brand { color: var(--brand-deep); border-color: rgba(46, 90, 172, .35); background: var(--brand-tint); }

/* ── Bands (rent, long stay) ──────────────────────────────────── */
.band-track { position: relative; height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--good), var(--caution), var(--risk)); margin: 14px 0 8px; }
.band-marker { position: absolute; top: -5px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); border: 3px solid #fff; transform: translateX(-50%); box-shadow: 0 2px 6px rgba(21, 24, 30, .3); }
.band-labels { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-muted); font-family: var(--mono); }
.score-track { height: 10px; border-radius: 5px; background: var(--paper-deep); overflow: hidden; margin: 10px 0 14px; }
.score-fill { height: 100%; border-radius: 5px; }
.score-fill-High { background: var(--good); } .score-fill-Medium { background: var(--caution); } .score-fill-Low { background: var(--risk); }
.score-head { display: flex; align-items: baseline; gap: 14px; }
.score-num { font-family: var(--serif); font-size: 40px; font-weight: 500; line-height: 1; }
.factor { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--rule); }
.factor-dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; border: 2px solid var(--rule-strong); }
.factor-found .factor-dot { background: var(--good); border-color: var(--good); }
.factor-failed .factor-dot { background: var(--caution); border-color: var(--caution); }

/* ── Progress ─────────────────────────────────────────────────── */
.progress { height: 8px; background: var(--paper-deep); border-radius: 4px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--ink); border-radius: 4px; }
.progress-good > span { background: var(--good); }
.big-count { font-family: var(--serif); font-size: 44px; font-weight: 500; line-height: 1.05; letter-spacing: -0.015em; }

/* ── Folds ────────────────────────────────────────────────────── */
details.fold { border-top: 1px solid var(--rule); }
details.fold:first-of-type { border-top: 0; }
details.fold > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; cursor: pointer; font-weight: 500; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: '›'; color: var(--ink-muted); font-size: 22px; transform: rotate(90deg); transition: transform .15s; }
details.fold[open] > summary::after { transform: rotate(-90deg); }
details.fold .fold-body { padding-bottom: 14px; }
.fold-val { font-family: var(--mono); color: var(--ink-muted); margin-left: auto; }

/* ── Sheet ────────────────────────────────────────────────────── */
.sheet-wrap { position: fixed; inset: 0; z-index: 100; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(21, 24, 30, .5); opacity: 0; transition: opacity .2s; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow: auto; background: var(--surface); border-radius: 18px 18px 0 0; transform: translateY(100%); transition: transform .25s ease; padding-bottom: env(safe-area-inset-bottom); box-shadow: var(--shadow-sheet); }
.sheet-wrap.open .sheet { transform: none; }
.sheet-wrap.open .sheet-backdrop { opacity: 1; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 10px 6px 20px; }
.sheet-title { font-family: var(--serif); font-size: 23px; }
.sheet-body { padding: 8px 20px 26px; }
@media (min-width: 700px) {
  .sheet { left: 50%; top: 50%; right: auto; bottom: auto; width: min(580px, 92vw); border-radius: var(--radius); transform: translate(-50%, -50%) translateY(12px); opacity: 0; transition: transform .2s ease, opacity .2s ease; max-height: 88vh; box-shadow: 0 30px 80px -20px rgba(21, 24, 30, .45); }
  .sheet-wide { width: min(880px, 94vw); }
  .sheet-wrap.open .sheet { transform: translate(-50%, -50%); opacity: 1; }
}

/* ── Toast ────────────────────────────────────────────────────── */
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 999px; font-size: 15px; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 200; max-width: 92vw; box-shadow: 0 10px 30px -10px rgba(21, 24, 30, .5); }
.toast.show { opacity: 1; }
@media (min-width: 901px) { .toast { bottom: 28px; } }

/* ── Uploads ──────────────────────────────────────────────────── */
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 12px; }
.thumb { border: 1px solid var(--rule); border-radius: var(--radius-sm); overflow: hidden; background: var(--paper); }
.thumb-img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--paper); }
.thumb-ph { width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; color: var(--ink-muted); font-size: 13px; font-family: var(--mono); }
.thumb-meta { padding: 6px 8px; font-size: 13px; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop { display: block; border: 1px dashed var(--rule-strong); border-radius: var(--radius-sm); padding: 24px; text-align: center; color: var(--ink-muted); cursor: pointer; background: var(--paper); }
.drop:hover { border-color: var(--ink-muted); }
.drop input { display: none; }
audio { width: 100%; }

/* ── Misc ─────────────────────────────────────────────────────── */
.stack > * + * { margin-top: 12px; }
.divider { border: 0; border-top: 1px solid var(--rule); margin: 18px 0; }
.notice { border: 1px solid var(--rule-strong); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 15px; background: var(--surface); }
.notice-caution { border-color: rgba(168, 105, 11, .4); background: var(--caution-tint); }
.notice-risk { border-color: rgba(179, 38, 30, .4); background: var(--risk-tint); }
.notice-good { border-color: rgba(27, 127, 75, .4); background: var(--good-tint); }
.script-block { white-space: pre-wrap; background: var(--paper); border: 1px solid var(--rule); border-left: 3px solid var(--ink); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 16px; line-height: 1.65; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--rule-strong); background: var(--surface); font-size: 13px; cursor: pointer; }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.empty { padding: 28px 0; color: var(--ink-muted); text-align: center; }
.pipeline-cols { display: block; }
.pipeline-col h3 { font-family: var(--serif); font-weight: 500; font-size: 20px; padding-bottom: 8px; border-bottom: 1px solid var(--rule-strong); }
.week { margin-bottom: 8px; }
.week h3 { font-family: var(--serif); font-weight: 500; font-size: 20px; padding: 8px 0 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation-duration: .001s !important; animation-iteration-count: 1 !important; }
}
@media print {
  .rail, .tabbar, .topbar, .more-sheet, .toast { display: none !important; }
  .main { margin: 0; padding: 0; }
  .panel, .verdict { box-shadow: none; }
}
