/* Article 14 dashboard. Tokens from the Claude Design mockups. Dark only by design. */
@font-face { font-family: Geist; src: url("fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ground: #0d0f11;
  --surface: #14171a;
  --raised: #1a1e22;
  --sunken: #0f1215;
  --line: #272c32;
  --line-strong: #353b42;
  --line-hover: #4a5159;
  --text: #e7e9eb;
  --soft: #c3c8ce;
  --muted: #a0a7af;
  --faint: #7d858e;
  --accent: #78b8ff;
  --accent-hover: #a9d1ff;
  --accent-bg: #0f1c2b;
  --accent-line: #244567;
  --urgent: #ff7a66;
  --urgent-bg: #24130f;
  --urgent-line: #5c2c24;
  --drill: #f2c94c;
  --drill-ink: #111214;
  --drill-line: #8a7430;
  --drill-bg: #1a1708;
  --sans: Geist, ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --r: 3px;
  --r-sm: 2px;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: var(--ground); color: var(--text); font: 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
h2 { margin: 0; font-size: 18px; font-weight: 600; }
h3 { margin: 0; font-size: 17px; font-weight: 600; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 12px; background: var(--sunken); border: 1px solid var(--line); padding: 1px 5px; border-radius: var(--r-sm); color: var(--text); }
.ic { flex: none; vertical-align: middle; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.small { font-size: 13px; }
.muted { color: var(--muted); }
.soft { color: var(--soft); }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
.wrap-any { overflow-wrap: anywhere; }
.pad-l { margin-left: 8px; font-weight: 400; }
.lead { color: var(--muted); max-width: 72ch; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--ground); padding: 8px 12px; border-radius: var(--r); z-index: 30; }
.skip:focus { left: 8px; }

.wrap { max-width: 1440px; margin: 0 auto; padding: 0 24px; }
.main { padding-top: 32px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 36px; }
.stack-6, .stack-8, .stack-10, .stack-12, .stack-14, .stack-16, .stack-20 { display: flex; flex-direction: column; }
.stack-6 { gap: 6px; } .stack-8 { gap: 8px; } .stack-10 { gap: 10px; } .stack-12 { gap: 12px; } .stack-14 { gap: 14px; } .stack-16 { gap: 16px; } .stack-20 { gap: 20px; }
.row-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.row-wrap.baseline { align-items: baseline; }
.row-between { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; }
.row-between.top { align-items: flex-start; }
.push { margin-left: auto; }

/* Header */
.top { border-bottom: 1px solid var(--line); background: var(--ground); }
.top-inner { min-height: 56px; padding-top: 10px; padding-bottom: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.mark { position: relative; width: 26px; height: 26px; background: var(--text); color: var(--ground); border-radius: var(--r); display: flex; align-items: center; justify-content: center; font: 600 12px var(--mono); letter-spacing: -0.04em; }
.mark-corner { position: absolute; top: 0; right: 0; width: 7px; height: 7px; background: var(--urgent); border-bottom-left-radius: 2px; }
.nav { display: flex; flex-wrap: wrap; gap: 2px; }
.nav a { padding: 8px 12px; color: var(--muted); text-decoration: none; border-radius: var(--r); }
.nav a:hover { color: var(--text); background: var(--raised); }
.nav a[aria-current="page"] { color: var(--text); background: var(--raised); font-weight: 500; }
.top-meta { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 13px; color: var(--muted); }
.top-meta .mono { display: inline-flex; align-items: center; gap: 6px; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; font-size: 12px; font-weight: 500; border-radius: var(--r-sm); white-space: nowrap; border: 1px solid var(--line-strong); color: var(--text); }
.chip-urgent, .st-urgent { border-color: var(--urgent-line); background: var(--urgent-bg); color: var(--urgent); }
.chip-drill { background: var(--drill); border-color: var(--drill); color: var(--drill-ink); font-weight: 700; letter-spacing: 0.04em; }
.chip-drill-outline { border: 1px dashed var(--drill); color: var(--drill); }
.chip-sm { font-size: 11px; padding: 3px 7px; }
.st-running { background: var(--raised); }
.st-met { border-color: var(--accent-line); background: var(--accent-bg); color: var(--accent); }
.st-idle { color: var(--muted); }
.st-urgent, .st-met, .st-running, .st-idle { font-weight: 600; }

/* Buttons and links styled as buttons (square, never pill) */
.btn-outline, .btn-block { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r); color: var(--text); text-decoration: none; font-weight: 500; }
.btn-outline:hover, .btn-block:hover { border-color: var(--line-hover); color: var(--text); }
.btn-block { display: flex; justify-content: space-between; min-height: 48px; padding: 0 18px; }
.btn-primary, .btn-accent { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--r); text-decoration: none; font-weight: 600; align-self: flex-start; }
.btn-primary { background: var(--text); color: var(--ground); border: 1px solid var(--text); }
.btn-primary:hover { color: var(--ground); background: #fff; }
.btn-accent { background: var(--accent); color: #0a1420; border: 1px solid var(--accent); }
.btn-accent:hover { color: #0a1420; background: var(--accent-hover); }
.btn-primary:active, .btn-accent:active, .btn-outline:active { transform: translateY(1px); }
.btn-outline-dark { margin-left: 8px; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; color: var(--drill-ink); border: 2px solid var(--drill-ink); border-radius: var(--r); text-decoration: none; font-weight: 700; }
.btn-outline-dark:hover { color: var(--drill-ink); background: #e6bd3f; }
.back { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: 13px; min-height: 32px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stat { background: var(--surface); padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.stat-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.stat-value { font-size: 34px; line-height: 1; font-weight: 500; letter-spacing: -0.02em; }
.stat-value.is-na { font-size: 16px; color: var(--faint); font-family: var(--sans); }

/* Clocks */
.clock-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 16px; }
.clock-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.clock-card.is-sim { border: 1px dashed var(--drill-line); }
.clock-card.is-urgent-frame { border-color: var(--urgent-line); }
.clock-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.clock-value { font-size: clamp(40px, 4.4vw, 64px); line-height: 1; font-weight: 500; letter-spacing: -0.04em; white-space: nowrap; min-height: 1em; }
.clock-value.is-text, .strip-value.is-text { font-size: 28px; color: var(--faint); letter-spacing: -0.02em; }
.clock-value.is-urgent, .strip-value.is-urgent, .rem.is-urgent, .urgent-text { color: var(--urgent); }
.clock-value.is-met, .strip-value.is-met { color: var(--accent); }
.urgent-text { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.bar { height: 4px; background: #23272c; }
.bar > div { height: 4px; background: var(--text); }
.kv { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gap { color: var(--urgent); }
.draft-muted { color: var(--muted); } .draft-strong { color: var(--text); font-weight: 500; } .draft-accent { color: var(--accent); font-weight: 500; }

/* Case strip */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.strip-cell { background: var(--surface); padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.strip-value { font-size: 40px; line-height: 1.05; font-weight: 500; letter-spacing: -0.04em; white-space: nowrap; }

/* Split layout */
.split { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.split-main { flex: 999 1 640px; min-width: 0; }
.split-side { flex: 1 1 320px; min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.panel-outline { border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.panel-drill { border-color: var(--drill); background: var(--drill-bg); }
.h-small { font-size: 15px; }
.who, .rules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; color: var(--soft); }
.who li, .rules li { display: flex; gap: 10px; }
.who .ic { color: var(--muted); margin-top: 2px; }
.rules .ic { color: var(--drill); margin-top: 2px; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 16px; }
.step-rail { display: flex; flex-direction: column; align-items: center; }
.step-icon { width: 32px; height: 32px; border: 1px solid var(--line-strong); background: var(--ground); color: var(--muted); border-radius: var(--r); display: flex; align-items: center; justify-content: center; }
.step-line { flex: 1; width: 1px; min-height: 16px; background: var(--line); }
.k-done .step-icon { border-color: var(--accent-line); background: var(--accent-bg); color: var(--accent); }
.k-done .step-line { background: var(--accent-line); }
.k-active .step-icon { border-color: var(--line-hover); background: var(--raised); color: var(--text); }
.k-human .step-icon { border-color: var(--urgent-line); background: var(--urgent-bg); color: var(--urgent); }
.step-body { padding: 4px 0 24px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.step-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.step-head h3 { font-size: 15px; }
.k-pending .step-head h3 { color: var(--muted); }
.step-kind { font-size: 12px; font-weight: 600; color: var(--muted); }
.k-done .step-kind { color: var(--accent); } .k-human .step-kind { color: var(--urgent); } .k-active .step-kind { color: var(--text); }
.step-stage { font-size: 12px; color: var(--muted); border: 1px solid var(--line); padding: 0 6px; border-radius: var(--r-sm); }
.step-time { margin-left: auto; }
.step-body p { color: var(--soft); max-width: 72ch; }
.step-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.step-meta span, .step-meta a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table.wide { min-width: 980px; }
.table th { background: var(--surface); color: var(--muted); text-align: left; padding: 10px 16px; font-weight: 500; }
.table td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.kind { display: inline-flex; align-items: center; gap: 6px; }
.kind-human { color: var(--text); } .kind-agent { color: var(--accent); } .kind-ci { color: var(--muted); }

/* Reports */
.notice { display: flex; align-items: center; gap: 8px; color: var(--text); border: 1px solid var(--line-strong); background: var(--surface); padding: 10px 14px; border-radius: var(--r); align-self: flex-start; }
.reports { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 16px; align-items: start; }
.report { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; min-width: 0; }
.report-head { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; border-bottom: 1px solid var(--line); }
.h-card { font-size: 17px; }
.right { text-align: right; display: flex; flex-direction: column; gap: 2px; }
.rem { font-size: 22px; line-height: 1.1; font-weight: 500; letter-spacing: -0.03em; white-space: nowrap; }
.track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.track-step { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--faint); font-size: 12px; font-weight: 500; min-width: 0; line-height: 1.3; }
.track-step.is-done { color: var(--muted); }
.track-step.is-current { color: var(--text); border-color: var(--line-hover); background: var(--raised); font-weight: 600; }
.fields { margin: 0; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.fields > div { display: flex; flex-direction: column; gap: 4px; }
.fields dd { margin: 0; padding: 8px 10px; background: var(--sunken); border: 1px dashed var(--line-strong); border-radius: var(--r-sm); color: var(--soft); overflow-wrap: anywhere; }
.fields dd.gap { color: var(--urgent); border-color: var(--urgent-line); }
.src { display: block; margin-top: 6px; font-size: 11px; color: var(--faint); }
.report-foot { margin-top: auto; padding: 14px 20px 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.accent-text { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 500; }

/* Lists */
.case-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.case-list li + li { border-top: 1px solid var(--line); }
.case-list a { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 14px 16px; color: var(--text); text-decoration: none; min-height: 48px; }
.case-list a:hover { background: var(--surface); }
.case-list a > .ic:last-child { margin-left: auto; color: var(--muted); }
.two-col { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.two-col > section { flex: 1 1 420px; min-width: 0; }
.mark-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; }
.mark-grid .chip { align-self: flex-start; }
.empty { border: 1px dashed var(--line-strong); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 8px; }

/* Privacy */
.privacy { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; max-width: 1120px; }
.toc { flex: 1 1 220px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; position: sticky; top: 16px; }
.toc a { padding: 6px 10px; color: var(--soft); text-decoration: none; border-radius: var(--r); }
.toc a:hover { background: var(--raised); color: var(--text); }
.prose { flex: 999 1 560px; min-width: 0; max-width: 72ch; display: flex; flex-direction: column; gap: 32px; font-size: 15px; line-height: 1.6; }
.prose h2 { font-size: 19px; margin-bottom: 8px; }
.prose p, .prose li, .prose dd { color: var(--soft); }
.prose ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.defs { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.defs dt { font-weight: 600; }
.defs dd { margin: 0; }

/* Footer */
.foot { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.foot p { max-width: 90ch; }

/* Exercise frame */
.is-drill { scroll-padding-top: 96px; }
.is-drill .frame { border: 6px solid var(--drill); min-height: 100dvh; }
.drill-banner { position: sticky; top: 0; z-index: 10; }
.stripes { height: 10px; background: repeating-linear-gradient(-45deg, var(--drill) 0 12px, var(--drill-ink) 12px 24px); }
.drill-bar { background: var(--drill); color: var(--drill-ink); }
.drill-inner { padding-top: 12px; padding-bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.drill-word { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; letter-spacing: 0.08em; }
.drill-text { font-size: 15px; font-weight: 600; }
.drill-side { margin-left: auto; display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; }
.drill-banner a { color: var(--drill-ink); }

@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .main { gap: 28px; padding-top: 24px; }
  .top-meta { margin-left: 0; }
  .track { grid-template-columns: 1fr; }
  .step-time { margin-left: 0; }
  .drill-word { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
