/* Control Room. Tokens and layout from the IGSB Control Room prototype (IGSB DESIGN.md colours). */
/* Light and dark live side by side: light-dark(light, dark). theme.js sets
   data-theme; pages without it (the verify page) follow the OS. */
:root {
  color-scheme: light dark;
  --canvas: light-dark(#f8fafc, #070c18);
  --surface: light-dark(#ffffff, #0f172a);
  --surface-muted: light-dark(#f1f5f9, #1a2436);
  --line: light-dark(#e2e8f0, #273449);
  --line-soft: light-dark(#f1f5f9, #1a2436);
  --line-strong: light-dark(#cbd5e1, #3b4a61);
  --ink: light-dark(#0f172a, #e2e8f0);
  --ink-muted: light-dark(#475569, #b6c2d2);
  --ink-subtle: light-dark(#64748b, #8d9bb0);
  --accent: light-dark(#1d4ed8, #6aa8f7);
  --invert-surface: light-dark(#0f172a, #dbe3ee);
  --invert-ink: light-dark(#ffffff, #0f172a);
  --selected: light-dark(#eff6ff, #16294a);
  --danger: light-dark(#b91c1c, #f58b8b);
  --danger-surface: light-dark(#fef2f2, #2a1416);
  --danger-line: light-dark(#fca5a5, #6b2a2c);
  --warning: light-dark(#b45309, #eeb54f);
  --warning-surface: light-dark(#fffbeb, #2a1d0b);
  --warning-line: light-dark(#fcd34d, #6b4a14);
  --success: light-dark(#047857, #4fcf9d);
  --success-surface: light-dark(#d1fae5, #0b2620);
  --success-line: light-dark(#6ee7b7, #155c47);
  /* Solid fills carry white text in both modes, so dark keeps them deep. */
  --accent-fill: light-dark(#1d4ed8, #2563eb);
  --success-fill: light-dark(#047857, #047857);
  --warning-fill: light-dark(#b45309, #b45309);
  --on-fill: #ffffff;
  --scrim: light-dark(rgba(15, 23, 42, 0.4), rgba(0, 0, 0, 0.6));

  --font-body: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  accent-color: var(--accent-fill);
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
::selection { background: var(--selected); color: var(--ink); }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 14px/1.43 var(--font-body);
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 10; background: var(--surface);
}
button, input, textarea { font: inherit; color: inherit; }
.mono { font-family: var(--font-mono); font-size: 12px; }
.label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.025em; text-transform: uppercase;
  color: var(--ink-subtle); margin: 0;
}
.muted { color: var(--ink-muted); }
.subtle { color: var(--ink-subtle); }

/* Header */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.topbar-inner, .page, .band-inner {
  max-width: 1240px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.topbar-inner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 4px; background: var(--accent-fill); color: var(--on-fill);
  display: grid; place-items: center; font-weight: 700; font-size: 12px; letter-spacing: 0.02em;
}
.brand h1 { font-size: 18px; font-weight: 600; margin: 0; line-height: 1.2; }
.brand p { margin: 0; font-size: 12px; color: var(--ink-subtle); }
.stat { display: flex; flex-direction: column; align-items: flex-end; }
.stat strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.stat-row { display: flex; gap: 20px; }

.band { background: var(--warning-surface); border-bottom: 1px solid var(--warning-line); }
.band-inner {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding-block: 8px;
  font-size: 13px; color: var(--ink);
}
.band strong { color: var(--warning); }

/* Page grid */
.page { padding-block: 20px 48px; display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
.main, .rail { display: grid; gap: 20px; min-width: 0; }
@media (max-width: 960px) { .page { grid-template-columns: minmax(0, 1fr); } }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; border-bottom: 1px solid var(--line);
}
.panel-body { padding: 16px; }
.count {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 4px; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
  background: var(--surface-muted); color: var(--ink-muted);
}
.count.hot { background: var(--warning-fill); color: var(--on-fill); }

/* Buttons */
.btn {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-muted);
  border-radius: 4px; padding: 4px 12px; font-weight: 500; cursor: pointer; line-height: 1.5;
}
.btn:hover { background: var(--surface-muted); color: var(--ink); }
.btn-primary { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-fill); padding: 6px 14px; }
.btn-primary:hover { background: var(--accent-fill); color: var(--on-fill); opacity: 0.9; }
.btn-ink { background: var(--invert-surface); border-color: var(--invert-surface); color: var(--invert-ink); }
.btn-ink:hover { background: var(--invert-surface); color: var(--invert-ink); opacity: 0.9; }
.btn-ok { background: var(--success-fill); border-color: var(--success-fill); color: var(--on-fill); }
.btn-ok:hover { background: var(--success-fill); color: var(--on-fill); opacity: 0.9; }
.btn-link { border: 0; background: none; color: var(--accent); padding: 0; cursor: pointer; font-weight: 500; }
.btn-link:hover { text-decoration: underline; }
.btn:disabled, .btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Composer */
.composer { display: grid; gap: 10px; }
.field { display: grid; gap: 4px; }
.field label { font-size: 12px; font-weight: 600; color: var(--ink-muted); }
.field input, .field textarea {
  border: 1px solid var(--line-strong); background: var(--surface); border-radius: 4px;
  padding: 6px 12px; width: 100%;
}
.field textarea { min-height: 84px; resize: vertical; }
/* Locked while an agent interviews you about them. */
.field input:read-only, .field textarea:read-only { background: var(--surface-muted); color: var(--ink-muted); }
.composer-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.composer-foot p { margin: 0; font-size: 12px; color: var(--ink-subtle); }

/* Needs you */
.asks { display: grid; }
.ask { padding: 14px 16px; border-top: 1px solid var(--line-soft); display: grid; gap: 10px; border-left: 3px solid var(--warning); }
.ask:first-child { border-top: 0; }
.ask.approval { border-left-color: var(--accent); }
.ask-top { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.ask-kind { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--warning); }
.ask.approval .ask-kind { color: var(--accent); }
.ask.problem { border-left-color: var(--danger); background: var(--danger-surface); }
.ask.problem .ask-kind { color: var(--danger); }
.ask h3 { margin: 0; font-size: 14px; font-weight: 600; }
.ask p { margin: 0; color: var(--ink-muted); max-width: 70ch; }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.option {
  border: 1px solid var(--line-strong); background: var(--surface); border-radius: 4px;
  padding: 6px 12px; cursor: pointer; text-align: left; display: grid; gap: 2px; max-width: 100%;
}
.option:hover { background: var(--selected); border-color: var(--accent); }
.option b { font-weight: 500; }
.option small { color: var(--ink-subtle); font-size: 12px; }
.option.suggested { border-color: var(--accent); }
.option.suggested small::before { content: "Suggested · "; color: var(--accent); font-weight: 600; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
.check { display: inline-flex; gap: 6px; align-items: center; }
.dot { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.dot.pass { background: var(--success); }
.dot.fail { background: var(--danger); }
.dot.pending { background: var(--line-strong); }
.dot.running { background: var(--accent); }
.ask-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.empty { padding: 20px 16px; color: var(--ink-subtle); }

/* Board */
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 800px) { .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .board { grid-template-columns: minmax(0, 1fr); } }
.lane { border-left: 1px solid var(--line); min-width: 0; display: flex; flex-direction: column; }
.lane:first-child { border-left: 0; }
@media (max-width: 800px) {
  .lane:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); grid-column: 1 / -1; }
}
@media (max-width: 560px) { .lane { border-left: 0; } .lane + .lane { border-top: 1px solid var(--line); } }
.lane-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: var(--surface-muted); }
.lane-body { display: grid; gap: 8px; padding: 10px; align-content: start; }
.lane-empty { font-size: 12px; color: var(--ink-subtle); padding: 6px 2px; }

/* Shipped: a table. Fixed columns, the title takes the rest; the grid lines
   are the line colour at half strength so they sit under the text. */
.shipped-figs {
  display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 10px 16px; border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--ink-muted); font-variant-numeric: tabular-nums;
}
.shipped-figs:empty { display: none; }
.fig { display: inline-flex; align-items: baseline; gap: 5px; flex-wrap: wrap; }
.fig .label { margin-right: 4px; }
.fig strong { color: var(--ink); font-weight: 600; }
.sep { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); align-self: center; margin: 0 2px; }
.shipped { display: grid; align-content: start; --grid: color-mix(in srgb, var(--line-strong) 50%, transparent); }
.shipped .subhead { padding: 12px 16px 4px; margin: 0; }
.row {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) 88px 56px 72px 68px; align-items: stretch;
  padding: 0 16px; border: 0; background: none; color: inherit; cursor: pointer; text-align: left; width: 100%; font: inherit;
}
.row > span {
  padding: 6px 8px; border: 1px solid var(--grid); border-width: 0 1px 1px 0; min-width: 0;
  font-variant-numeric: tabular-nums; align-self: stretch; display: flex; align-items: center;
}
.row > span:first-child { border-left-width: 1px; }
.row.first > span { border-top-width: 1px; }
.row:hover { background: var(--selected); }
.row-title { font-weight: 500; }
.row-title > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .mono { color: var(--ink-subtle); justify-content: flex-end; white-space: nowrap; }
.row .cost { color: var(--success); font-weight: 600; }
.shipped-foot { padding: 10px 16px; border-top: 1px solid var(--line-soft); }
@media (max-width: 560px) {
  /* Title on its own line above the figures. */
  .row { grid-template-columns: 46px 86px 52px 64px minmax(0, 1fr); }
  .row > span { padding: 6px 5px; }
  .row-title { order: -1; grid-column: 1 / -1; border-left-width: 1px; }
  .row-title > span { white-space: normal; }
  .row.first > span { border-top-width: 0; }
  .row.first > .row-title { border-top-width: 1px; }
}
.card {
  border: 1px solid var(--line); border-radius: 4px; background: var(--surface);
  padding: 10px; display: grid; gap: 8px; cursor: pointer; text-align: left; width: 100%;
}
.card:hover { border-color: var(--line-strong); background: var(--selected); }
.card-title { font-weight: 600; line-height: 1.3; }
.card-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--ink-subtle); }
.card-stats { margin-left: auto; display: inline-flex; gap: 8px; }
/* A small turn in place, kept under reduced motion: it travels nowhere. */
.spinner {
  width: 10px; height: 10px; border-radius: 50%; align-self: center;
  border: 2px solid var(--line-strong); border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.origin {
  font-size: 11px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 2px; padding: 0 5px; color: var(--ink-muted);
}
.origin.ai { border-color: var(--accent); color: var(--accent); }
.flag { font-size: 12px; font-weight: 600; color: var(--warning); display: inline-flex; gap: 5px; align-items: center; }
.flag::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--warning); }
.bar-row { display: flex; align-items: center; gap: 8px; }
.bar-row .bar { flex: 1; }
.bar-pct { font-size: 12px; color: var(--ink-muted); min-width: 4ch; text-align: right; }
.bar { height: 4px; background: var(--surface-muted); border-radius: 2px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--accent); }
.segs { display: flex; gap: 2px; }
.bar-row .segs { flex: 1; }
.seg { flex: 1; height: 4px; border-radius: 1px; background: var(--line); }
.seg.done { background: var(--accent); }
.seg.running { background: var(--accent); opacity: 0.45; }
.seg.waiting { background: var(--warning); }
/* The agent's latest message, two lines at most. */
.last-said {
  font-size: 12px; color: var(--ink-muted); border-left: 2px solid var(--line-strong); padding-left: 8px;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.card-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* Rail */
.digest { display: grid; gap: 10px; }
.digest p { margin: 0; }
.digest ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: var(--ink-muted); }
.spend-figs { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.spend-figs strong { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.spend svg { width: 100%; height: auto; display: block; }
.spend text { fill: var(--ink-subtle); font-size: 10px; font-family: var(--font-body); }
.activity { display: grid; }
.act { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; padding: 8px 16px; border-top: 1px solid var(--line-soft); font-size: 13px; }
.act:first-child { border-top: 0; }
.act time { color: var(--ink-subtle); font-variant-numeric: tabular-nums; font-size: 12px; padding-top: 1px; }

/* Detail sheet */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 20; }
.sheet {
  position: fixed; z-index: 21; top: 0; right: 0; bottom: 0; width: min(560px, 100%);
  background: var(--surface); border-left: 1px solid var(--line); display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}
.sheet-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.3; text-wrap: balance; }
.sheet-body { overflow-y: auto; padding: 16px; display: grid; gap: 20px; align-content: start; }
.sheet section { display: grid; gap: 8px; }
.brief { margin: 0; padding: 10px 12px; background: var(--surface-muted); border-radius: 4px; color: var(--ink); max-width: 70ch; }
.streams { display: grid; border: 1px solid var(--line); border-radius: 4px; }
.stream { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 10px; border-top: 1px solid var(--line-soft); }
.stream:first-child { border-top: 0; }
.stream span:last-child { font-size: 12px; color: var(--ink-subtle); white-space: nowrap; }
.files { display: flex; flex-wrap: wrap; gap: 8px; }
.file {
  border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; display: grid; gap: 2px;
  min-width: 0; flex: 1 1 180px;
}
.file b { font-weight: 500; overflow-wrap: anywhere; }
.file small { color: var(--ink-subtle); font-size: 12px; }
.shot {
  aspect-ratio: 16 / 10; max-width: 100%; border: 1px solid var(--line); border-radius: 4px; background: var(--canvas);
  display: grid; grid-template-rows: 14px 1fr; overflow: hidden; margin-bottom: 4px;
}
.shot i { background: var(--surface-muted); border-bottom: 1px solid var(--line); }
.shot div { display: grid; grid-template-columns: 30% 1fr; gap: 6px; padding: 6px; }
.shot div span { background: var(--line); border-radius: 2px; }
.thread { display: grid; gap: 10px; }
.msg { display: grid; gap: 2px; }
.msg-who { font-size: 12px; font-weight: 600; color: var(--ink-subtle); display: flex; gap: 8px; }
.msg-who.ai { color: var(--accent); }
.msg p { margin: 0; white-space: pre-line; max-width: 70ch; }
.msg.you p { padding-left: 10px; border-left: 2px solid var(--line-strong); }

.confirm {
  border: 2px solid var(--danger-line); background: var(--danger-surface); border-radius: 8px;
  padding: 12px; display: grid; gap: 8px;
}
.confirm p { margin: 0; }
.ship-all { width: 100%; }
.confirm-send { border-color: var(--line-strong); background: var(--surface-muted); }
.send-list { display: grid; gap: 2px; font-size: 13px; }
.send-list label { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 6px 0; cursor: pointer; }
.send-list input { width: 20px; height: 20px; margin: 0; flex: none; }
.subhead { margin: 4px 0 0; font-size: 12px; font-weight: 600; color: var(--ink-subtle); text-transform: uppercase; letter-spacing: .04em; }
.ship-list { margin: 0; padding-left: 18px; display: grid; gap: 2px; font-size: 13px; }

.toast {
  position: fixed; z-index: 30; left: 50%; transform: translateX(-50%);
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  background: var(--invert-surface); color: var(--invert-ink); border-radius: 4px;
  padding: 8px 14px; font-weight: 500; max-width: calc(100% - 32px);
}
@media (prefers-reduced-motion: no-preference) {
  .sheet { animation: slide 160ms ease-out; }
  @keyframes slide { from { transform: translateX(24px); opacity: 0.6; } to { transform: none; opacity: 1; } }
}

/* Added for the live app */
a.btn { text-decoration: none; display: inline-block; }
.hint { font-size: 12px; color: var(--ink-subtle); }
.band.bad { background: var(--danger-surface); border-bottom-color: var(--danger-line); }
.band.bad strong { color: var(--danger); }
.project-pick { display: flex; align-items: center; gap: 8px; }
.project-pick select {
  border: 1px solid var(--line-strong); background: var(--surface); border-radius: 4px; padding: 4px 8px;
}
.signout { border: 0; background: none; color: var(--ink-subtle); cursor: pointer; padding: 0; font-size: 12px; }
.signout:hover { color: var(--ink); text-decoration: underline; }
.theme-toggle {
  -webkit-appearance: none; appearance: none; box-sizing: border-box; flex: none; align-self: center;
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; min-height: 0; padding: 0; margin: 0; line-height: 0;
  border: 1px solid var(--line); border-radius: 4px; background: var(--surface);
  color: var(--ink-muted); cursor: pointer;
}
@media (hover: hover) { .theme-toggle:hover { background: var(--surface-muted); color: var(--ink); } }
.theme-toggle svg { width: 16px; height: 16px; flex: none; display: none; }
/* The icon names the theme you are on. */
:root:not([data-theme="dark"]) .theme-toggle .ico-light,
:root[data-theme="dark"] .theme-toggle .ico-dark { display: block; }
.free-answer { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.free-answer input {
  flex: 1 1 220px; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 4px; padding: 5px 10px;
}
/* Agent interview, inside New request */
.interview { border-top: 1px solid var(--line); padding: 14px 16px 16px; display: grid; gap: 12px; }
.interview-status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.interview-status p { margin: 0; font-weight: 600; min-width: 0; }
.interview-status .hint { margin-left: auto; }
.iv-round { display: grid; gap: 12px; }
.iv-q {
  margin: 0; padding: 12px; min-width: 0; display: grid; gap: 10px;
  border: 1px solid var(--line); border-left: 3px solid var(--warning); border-radius: 4px;
}
/* Floated, the legend is an ordinary grid item inside the box. */
.iv-q legend { float: left; width: 100%; padding: 0; }
.iv-q h3 { margin: 0; font-size: 14px; font-weight: 600; }
.iv-q legend p { margin: 4px 0 0; color: var(--ink-muted); max-width: 70ch; }
.iv-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.iv-options .option { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 8px 12px; }
.iv-options .option input { width: 20px; height: 20px; margin: 0; flex: none; }
.iv-options .option > span { display: grid; gap: 2px; min-width: 0; }
.iv-options .option.suggested small::before { content: none; }
.iv-options .option:has(input:checked) { background: var(--selected); border-color: var(--accent); }
.iv-options .option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.iv-options .option input:focus-visible { outline: none; }
.iv-sug { color: var(--accent); font-weight: 600; }
.iv-done { display: grid; gap: 10px; }
.iv-done p, .iv-note { margin: 0; }
.iv-note { color: var(--danger); white-space: pre-line; }
@media (max-width: 560px) {
  .iv-options { grid-template-columns: minmax(0, 1fr); }
  .interview .ask-actions .btn-primary { width: 100%; }
}
.reply { display: grid; gap: 8px; }
.reply textarea {
  border: 1px solid var(--line-strong); background: var(--surface); border-radius: 4px; padding: 6px 12px;
  width: 100%; min-height: 64px; resize: vertical;
}
.reply-foot { display: flex; justify-content: flex-end; }
.file a { color: var(--accent); font-weight: 500; overflow-wrap: anywhere; }
.file img { max-width: 100%; border: 1px solid var(--line); border-radius: 4px; display: block; margin-bottom: 4px; }
.answered { font-size: 12px; color: var(--ink-subtle); }
.meta-top { margin-bottom: 4px; }
.from { margin: 2px 0 0; font-size: 12px; color: var(--ink-subtle); }
.msg-who .when { color: var(--ink-subtle); font-weight: 400; }
.flag-line { margin: 0; }
.runs { display: grid; border: 1px solid var(--line); border-radius: 4px; }
.run { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 8px 10px; border-top: 1px solid var(--line-soft); font-size: 13px; }
.run:first-child { border-top: 0; }
.run small { grid-column: 1 / -1; color: var(--ink-subtle); }
.digest-text { white-space: pre-line; margin: 0; }

/* Sign-in pages */
body.auth { display: grid; place-items: center; min-height: 100vh; padding: 16px; }
.auth-card { width: min(400px, 100%); padding: 24px; display: grid; gap: 12px; }
.auth-card h1 { font-size: 18px; margin: 0; }
.auth-card p { margin: 0; }
.auth-card form { display: grid; gap: 10px; }
.auth-card input[type=email] {
  border: 1px solid var(--line-strong); background: var(--surface); border-radius: 4px; padding: 6px 12px; width: 100%;
}
