/* Angelina — sheet styles */
/* Aesthetic: a morning sheet. Warm paper, serif addresses, tabular figures,
   five semantic colors and nothing decorative. See docs/design/redesign-concept-2026-10.md */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');
/* Newsreader (Production Type, OFL): the brand serif, self-hosted. Variable,
   weight 200-800 with an optical-size axis; the browser picks the cut. */
@font-face {
  font-family: 'Newsreader';
  src: url('/static/fonts/Newsreader.woff2') format('woff2');
  font-weight: 200 800; font-style: normal; font-display: swap;
}

:root {
  --bg: #FAF7F1;              /* ivory */
  --evergreen: #0F3D32;       /* brand: rules, masthead, primary buttons */
  --slate: #64707A;
  --brass: #8C6F3D;           /* brand accent; the mark only */
  --surface: #FFFFFF;
  --surface-alt: #F5F4F0;
  --border: #E2DFD8;
  --gold: #96792C;
  --gold-dim: rgba(150,121,44,0.08);
  --sage: #3D7244;
  --sage-dim: rgba(61,114,68,0.08);
  --coral: #B5453A;
  --coral-dim: rgba(181,69,58,0.08);
  --amber: #9E7520;
  --amber-dim: rgba(158,117,32,0.08);
  --text: #4A4640;
  --text-dim: #7D776F;
  --text-bright: #1A1815;
  --text-faint: #A9A29A;
  --font-serif: 'Newsreader', Georgia, serif;
  --font-sans: 'IBM Plex Sans', -apple-system, system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'IBM Plex Sans', -apple-system, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

/* Top rule */
.topbar { height: 3px; background: var(--evergreen); }

/* Masthead: wordmark, five words of navigation, search, one gold link */
.masthead { background: var(--bg); border-bottom: 1px solid var(--evergreen); }
.masthead-inner {
  max-width: 1280px; margin: 0 auto; padding: 16px 32px 12px;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px;
}
.brand {
  font-family: var(--font-serif); font-size: 24px; font-weight: 600; letter-spacing: -0.01em;
  font-variation-settings: 'opsz' 72; color: var(--evergreen); text-decoration: none;
}
.masthead-nav { display: flex; gap: 20px; font-size: 13px; font-weight: 500; }
.masthead-nav a { color: var(--text); text-decoration: none; padding-bottom: 2px; border-bottom: 2px solid transparent; }
.masthead-nav a:hover { color: var(--evergreen); }
.masthead-nav a.active { color: var(--evergreen); border-bottom-color: var(--evergreen); }
.masthead-spacer { flex: 1 1 120px; }
.masthead-search { margin: 0; }
.masthead-search input {
  width: 260px; height: 32px; border: 1px solid var(--border); background: var(--surface);
  padding: 0 10px; font: inherit; font-size: 13px; color: var(--text-bright); outline: none;
}
.masthead-search input:focus { border-color: var(--text-bright); }
.masthead-add { font-size: 13px; font-weight: 500; color: var(--gold); text-decoration: none; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 899px) {
  /* Phone: wordmark and nav on one scrollable line, search below, add link as a plus. */
  .masthead-inner { padding: 10px 16px 8px; gap: 6px 12px; align-items: center; }
  .brand { font-size: 21px; }
  .masthead-nav { gap: 14px; overflow-x: auto; white-space: nowrap; flex: 1 1 0; scrollbar-width: none; }
  .masthead-nav::-webkit-scrollbar { display: none; }
  .masthead-spacer { display: none; }
  .masthead-add { font-size: 0; }
  .masthead-add::before { content: "+"; font-size: 20px; line-height: 1; }
  .masthead-search { order: 10; flex: 1 1 100%; }
  .masthead-search input { width: 100%; height: 36px; }
}

/* Page container */
.page { max-width: 1280px; margin: 0 auto; padding: 2rem; }
.page--sheet { padding: 0 32px 48px; }

/* ── Property Detail Page ── */


.detail-section {
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 1.25rem;
}
.section-header {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}
.section-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.section-body { padding: 1.25rem; }

/* Narrative */
.narrative-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
}

/* Raw data */
.raw-data-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.raw-data-table td {
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  word-break: break-all;
}
.raw-data-table td:first-child {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-dim);
  width: 35%;
  font-weight: 500;
}

/* Footer */
.footer a { color: var(--text-faint); text-decoration: none; }
.footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-faint);
}

/* Changelog & Roadmap */
.changelog-section { margin-bottom: 3rem; }
.changelog-section-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: var(--text-bright);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}
.changelog-entry {
  margin-bottom: 2rem;
  padding-left: 1rem;
  border-left: 2px solid var(--border);
}
.changelog-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold);
  margin-bottom: 0.25rem;
}
.changelog-title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
}
.changelog-list {
  margin: 0;
  padding-left: 1.2rem;
  list-style: none;
}
.changelog-list li {
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.6;
  position: relative;
  padding-left: 0.2rem;
}
.changelog-list li::before {
  content: "\2022";
  color: var(--gold);
  position: absolute;
  left: -1rem;
}
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}
.roadmap-item {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1rem 1.2rem;
}
.roadmap-status {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}
.roadmap-status.planned { color: var(--gold); }
.roadmap-status.in-progress { color: #4a9; }
.roadmap-title {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 0.35rem;
}
.roadmap-desc {
  font-size: 0.78rem;
  color: var(--text);
  line-height: 1.5;
}
@media (max-width: 600px) {
  .roadmap-grid { grid-template-columns: 1fr; }
}

/* History Tables (Sales & Assessment) */
.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.history-table thead th {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.history-table tbody td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border-dim, rgba(125,119,111,0.08));
  color: var(--text);
}
.history-table tbody tr:last-child td {
  border-bottom: none;
}

/* ═══════════════════════════════════════════════════════════════════════
   Phase 3 (Oct 2026): triage board, inline dispositions, bulk actions,
   source attribution, keyboard triage. Uses the existing palette tokens.
   ═══════════════════════════════════════════════════════════════════════ */

.property-card { grid-template-columns: 36px 1fr auto; }
.card-check {
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 1.05rem; background: var(--surface-alt); border-right: 1px solid var(--border);
}
.card-check input { width: 15px; height: 15px; accent-color: var(--gold); cursor: pointer; }

.card-right { min-width: 118px; gap: 0.35rem; }
.card-actions { display: flex; flex-direction: column; gap: 4px; margin-top: 0.5rem; width: 100%; }
.card-actions .qualify-btn { padding: 0.32rem 0.5rem; font-size: 0.6rem; text-align: center; }
.property-card-wrapper.status-tracking { border-left: 3px solid var(--text-bright); }
.property-card-wrapper.focused .property-card { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-dim), 0 2px 12px rgba(150,121,44,0.10); }
.property-card-wrapper.leaving { transition: opacity 0.3s, transform 0.3s; opacity: 0; transform: translateX(12px); }

.sale-line {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.03em;
  color: var(--amber); margin: 0.1rem 0 0.35rem;
}
.sale-line--urgent { color: var(--coral); }

.classify-pill, .source-pill {
  display: inline-block; font-family: var(--font-mono); font-size: 0.55rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 0.15rem 0.4rem; margin-left: 0.35rem; vertical-align: middle;
}
.classify-pill { background: rgba(125,119,111,0.10); color: var(--text-dim); border: 1px dashed var(--text-faint); }
.source-pill.source-network { background: rgba(125,119,111,0.08); color: var(--text-dim); }
.source-pill.source-both { background: var(--sage-dim); color: var(--sage); }
.signal-pill--expired { opacity: 0.45; text-decoration: line-through; }

.triage-section { margin-top: 1.5rem; }
.triage-section > summary { cursor: pointer; list-style: none; user-select: none; }
.triage-section > summary::-webkit-details-marker { display: none; }
.triage-section[open] > .section-divider--toggle { margin-bottom: 0.75rem; }
.triage-section[open] .section-divider__caret { transform: rotate(180deg); }
.section-hint { font-size: 0.72rem; color: var(--text-faint); margin-left: 0.5rem; }
.empty-note { text-align: center; padding: 3rem; color: var(--text-faint); }

.bulk-bar {
  position: sticky; bottom: 0; z-index: 50; display: none; align-items: center; gap: 0.5rem;
  background: var(--evergreen); color: #fff; padding: 0.6rem 1rem; margin: 0.5rem 0 1rem;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.18);
}
.bulk-bar.show { display: flex; }
.bulk-bar__count { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; margin-right: 0.5rem; }
.bulk-bar__spacer { flex: 1; }
.bulk-bar .qualify-btn { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.bulk-bar .qualify-btn:hover { border-color: var(--gold); color: var(--gold); }
.bulk-bar .chip { background: transparent; color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.25); }

.search-input {
  flex: 1; padding: 0.6rem 0.9rem; border: 1px solid var(--border); font-family: inherit; font-size: 0.85rem;
  background: var(--surface); color: var(--text-bright); outline: none;
}
.search-input:focus { border-color: var(--gold); }
.manual-add { display: flex; gap: 0.5rem; margin-top: 0.5rem; padding: 0.6rem; background: var(--surface-alt); border: 1px solid var(--border); }
.network-form { display: flex; gap: 0.5rem; }

.archived-card {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--surface); border: 1px solid var(--border); padding: 0.75rem 1rem; margin-bottom: 0.5rem; opacity: 0.85;
}
.extracted-facts { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-size: 0.75rem; color: var(--text); margin-bottom: 0.35rem; }
.extracted-facts strong { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); margin-right: 0.3rem; }
.extracted-reason { color: var(--text-dim); font-style: italic; }

.kbd-hint { margin: 2rem 0 0; font-size: 0.7rem; color: var(--text-faint); text-align: center; }
.kbd-hint kbd { font-family: var(--font-mono); font-size: 0.65rem; padding: 0.05rem 0.3rem; border: 1px solid var(--border); background: var(--surface); }

.toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%) translateY(20px);
  background: var(--evergreen); color: #fff; padding: 0.55rem 0.9rem; font-size: 0.8rem;
  opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast--err { background: var(--coral); }

@media (max-width: 600px) {
  .property-card { grid-template-columns: 30px 1fr; }
  .card-right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; border-left: none; border-top: 1px solid var(--border); padding: 0.6rem 1rem; }
  .card-actions { flex-direction: row; margin-top: 0; width: auto; }
  .manual-add { flex-direction: column; }
  .bulk-bar { flex-wrap: wrap; }
}

.source-pill.source-trustee { background: var(--coral-dim); color: var(--coral); }

/* ═══════════════════════════════════════════════════════════════════════
   Increment 1 (Oct 2026): Today, the morning sheet. Tables at 900px and
   up, cards below. Three verbs at the end of every row.
   ═══════════════════════════════════════════════════════════════════════ */

.sheet-dateline { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; color: var(--text-dim); padding: 10px 0 0; }
.sheet-dateline a { text-decoration: none; }
.t-alarm { color: var(--coral); }
.t-attention { color: var(--amber); }
.t-dim { color: var(--text-dim); }
.t-faint { color: var(--text-faint); }

.ledger { display: flex; flex-wrap: wrap; gap: 24px 48px; padding: 22px 0 10px; border-bottom: 1px solid var(--border); align-items: baseline; }
.ledger a { text-decoration: none; display: flex; align-items: baseline; gap: 10px; color: var(--text-bright); }
.ledger .fig { font-family: var(--font-serif); font-size: 40px; font-weight: 600; line-height: 1; font-variation-settings: 'opsz' 72; }
.ledger .fig--alarm { color: var(--coral); }
.ledger .lab { font-size: 13px; color: var(--text); }
.ledger .keys { margin-left: auto; font-size: 12px; color: var(--text-dim); }

.sheet-h2 {
  margin: 28px 0 8px; font-family: var(--font-serif); font-size: 20px; font-weight: 600; color: var(--text-bright);
  display: flex; align-items: baseline; gap: 12px; line-height: 1.2;
}
.sheet-hint { font-family: var(--font-sans); font-size: 12px; font-weight: 400; color: var(--text-dim); }
.sheet-note { margin: -6px 0 18px; font-size: 13px; color: var(--amber); }
.sheet-note a { color: inherit; font-weight: 500; }
.sheet-note--closed { color: var(--text-dim); }
.sheet-note--closed a { color: var(--text); }
.sheet-empty { font-size: 13px; color: var(--text-dim); padding: 10px 0 12px; border-bottom: 1px solid var(--border); }
.sheet-empty a { color: var(--gold); text-decoration: none; }
.quiet { padding: 36px 0 8px; font-family: var(--font-serif); font-size: 22px; line-height: 1.35; color: var(--text-bright); max-width: 720px; }

.sheet-scroll { overflow-x: auto; }
table.sheet { width: 100%; border-collapse: collapse; min-width: 980px; table-layout: fixed; }
.sheet th.c-due { width: 64px; } .sheet th.c-type { width: 170px; } .sheet th.c-stage { width: 100px; } .sheet th.c-signal { width: 210px; } .sheet th.c-value { width: 90px; } .sheet th.c-score { width: 56px; } .sheet th.c-act { width: 186px; }
.sheet thead tr { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); border-bottom: 1px solid var(--text-bright); }
.sheet th { font-weight: 500; padding: 6px 12px; text-align: left; white-space: nowrap; }
.sheet th.c-due, .sheet th.c-value, .sheet th.c-score { text-align: right; }
.sheet th.c-due { padding-left: 9px; }
.sheet th.c-act { padding-left: 16px; }
.sheet tbody tr.row { height: 44px; border-bottom: 1px solid var(--border); }
.sheet td { padding: 4px 12px; vertical-align: middle; color: var(--text); font-size: 14px; }
.sheet td.c-due {
  width: 64px; text-align: right; padding-left: 9px; border-left: 3px solid transparent;
  font-weight: 600; color: var(--text-faint); white-space: nowrap;
}
.row--distressed td.c-due, .row--disposition td.c-due { border-left-color: var(--coral); }
.row--elevated td.c-due { border-left-color: var(--amber); }
.row--resolved td.c-due { border-left-color: var(--sage); }
.sheet td.due--past { font-size: 12px; font-weight: 500; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; }
.sheet td.due--now { font-size: 20px; color: var(--coral); }
.sheet td.due--week { font-size: 16px; color: var(--coral); }
.sheet td.due--month { font-size: 16px; color: var(--amber); }
.c-due .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--text-bright); }
.addr { font-family: var(--font-serif); font-size: 16px; line-height: 1.2; }
.addr a { color: var(--text-bright); text-decoration: none; }
.addr a:hover { color: var(--gold); }
.meta { font-size: 12px; color: var(--text-dim); }
.eyebrow { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); line-height: 1.2; }
.eyebrow--mark { color: var(--gold); }
.eyebrow--alarm { color: var(--coral); }
.sheet td.c-type { width: 170px; }
.sheet td.c-signal { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet td.c-stage { width: 100px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); }
.stage--distressed, .stage--disposition { color: var(--coral) !important; }
.stage--elevated { color: var(--amber) !important; }
.stage--resolved { color: var(--sage) !important; }
.sheet td.c-value { width: 90px; text-align: right; white-space: nowrap; }
.sheet td.c-value.in-range { font-weight: 600; color: var(--text-bright); }
.sheet td.c-score { width: 56px; text-align: right; color: var(--text); }
.sheet td.c-act { width: 170px; padding-left: 16px; padding-right: 0; }
.acts { display: flex; gap: 6px; }
.act {
  height: 28px; padding: 0 10px; border: 1px solid var(--border); background: var(--surface);
  font: inherit; font-size: 12px; font-weight: 500; color: var(--text-bright); cursor: pointer; white-space: nowrap;
}
.act:hover { border-color: var(--text-bright); }
.act-pass { border-color: transparent; background: transparent; color: var(--text-dim); }
.act-pass:hover { color: var(--text-bright); }
.act.on { border-color: var(--gold); color: var(--gold); font-weight: 600; }
.act-tracking.on { border-color: var(--text-bright); color: var(--text-bright); }
tr.row:focus { outline: none; }
tr.row.focused, tr.row:focus-visible { outline: 2px solid var(--text-bright); outline-offset: -2px; }
tr.row--passed td { height: 28px; padding: 0 12px; background: var(--surface-alt); font-size: 12px; color: var(--text-dim); border-bottom: 1px solid var(--border); }
tr.row--passed a { color: var(--gold); font-weight: 500; cursor: pointer; }

.add-network[hidden] { display: none; }
.add-network { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 10px; background: var(--surface-alt); border: 1px solid var(--border); }
.add-network input, .add-network select { height: 32px; border: 1px solid var(--border); background: var(--surface); padding: 0 10px; font: inherit; font-size: 13px; color: var(--text-bright); flex: 1 1 160px; }
.add-network .add-network__note { flex: 3 1 260px; }
.add-network .act { height: 32px; }
.add-network--page { margin: 0 0 12px; padding: 14px; }
.add-network--page input, .add-network--page select { height: 38px; font-size: 14px; }

.sheet-foot { margin-top: 40px; padding-top: 12px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 12px; color: var(--text-dim); }
.sheet-foot a { color: var(--text-dim); text-decoration: none; }
.sheet-foot a:hover { color: var(--gold); }
.sheet-foot .sp { flex: 1; }

/* Under 900px every row is a card: address and countdown on top, one meta
   line, the signal, value and score, then three equal 48px buttons. */
@media (max-width: 899px) {
  .page--sheet { padding: 0 16px 24px; }
  .ledger { gap: 20px; padding: 16px 0 12px; }
  .ledger .fig { font-size: 28px; }
  .ledger .lab { font-size: 12px; }
  .ledger .keys { display: none; }
  .sheet-h2 { font-size: 18px; margin: 18px 0 10px; }
  .sheet-scroll { overflow: visible; }
  table.sheet, .sheet tbody { display: block; min-width: 0; width: 100%; table-layout: auto; }
  .sheet td.c-signal { white-space: normal; }
  .sheet thead { display: none; }
  .sheet tbody tr.row {
    display: grid; grid-template-columns: 1fr auto; column-gap: 12px;
    grid-template-areas: "prop due" "type type" "trustee trustee" "marked marked" "note note" "signal signal" "value score" "act act";
    height: auto; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--border);
    margin-bottom: 12px;
  }
  .sheet tbody tr.row--distressed, .sheet tbody tr.row--disposition { border-left-color: var(--coral); }
  .sheet tbody tr.row--elevated { border-left-color: var(--amber); }
  .sheet tbody tr.row--resolved { border-left-color: var(--sage); }
  .sheet td, .sheet td.c-due, .sheet td.c-type, .sheet td.c-value, .sheet td.c-score, .sheet td.c-act { display: block; width: auto; padding: 0 14px; }
  .sheet td.c-due { grid-area: due; border-left: none; padding: 12px 14px 0 0; text-align: right; }
  .sheet td.c-prop { grid-area: prop; padding-top: 12px; }
  .addr { font-size: 17px; }
  .sheet td.c-type { grid-area: type; font-size: 12px; color: var(--text-dim); padding-top: 2px; }
  .sheet td.c-type:empty { display: none; }
  .sheet td.c-stage { display: none; }
  .sheet td.c-signal { grid-area: signal; font-size: 13px; padding-top: 4px; }
  .sheet td.c-value { grid-area: value; text-align: left; font-weight: 600; color: var(--text-bright); padding-top: 4px; padding-bottom: 10px; }
  .sheet td.c-score { grid-area: score; text-align: right; color: var(--text-dim); padding-top: 4px; padding-bottom: 10px; font-size: 13px; }
  .sheet td.c-score::before { content: "Score "; }
  .sheet td.c-act { grid-area: act; padding: 0; border-top: 1px solid var(--border); }
  .acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .act { height: 48px; border: none; border-right: 1px solid var(--border); background: transparent; font-size: 14px; }
  .act:last-child { border-right: none; }
  .act:hover { border-color: var(--border); }
  .act.on { border: none; border-right: 1px solid var(--border); box-shadow: inset 0 -3px 0 var(--gold); }
  .act-tracking.on { box-shadow: inset 0 -3px 0 var(--text-bright); }
  .sheet tbody tr.row--passed { display: block; margin-bottom: 12px; }
  .sheet tbody tr.row--passed td { display: flex; justify-content: space-between; align-items: center; height: 36px; border: 1px solid var(--border); }
  .sheet-foot { margin-top: 24px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Increment 2: the dossier, Pipeline and Sales. Same sheet vocabulary.
   ═══════════════════════════════════════════════════════════════════════ */
.t-settled { color: var(--sage); }
.t-mark { color: var(--gold); }
.sheet-h2--gap { margin-top: 36px; }

/* Pipeline / Sales columns */
.sheet th.c-marked, .sheet td.c-marked { width: 84px; white-space: nowrap; color: var(--text-dim); font-size: 13px; }
.sheet th.c-note { width: 220px; }
.sheet td.c-note { font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet td.c-note a { color: var(--text-faint); text-decoration: none; }
.sheet td.c-note a:hover { color: var(--gold); }
.sheet th.c-trustee { width: 220px; }
.sheet td.c-trustee { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet td.c-trustee .meta { white-space: normal; }
table.sheet--pipeline { min-width: 1180px; }
table.sheet--pipeline th.c-signal { width: 190px; }
table.sheet--sales { min-width: 1040px; }
.cal-week { margin-top: 36px; }
.cal-week--now { color: var(--coral); }
.cal-week--now .sheet-hint { color: var(--text-dim); }
.cal-day__head th { text-align: left; padding: 14px 12px 4px 9px; font-family: var(--font-serif); font-size: 15px; font-weight: 600; color: var(--text-bright); border-bottom: 1px solid var(--border); }
.cal-day__head--today th { color: var(--coral); }

/* ── Dossier ─────────────────────────────────────────────────────────── */
.page--dossier { padding-bottom: 40px; }
.crumb { font-size: 12px; color: var(--text-dim); padding-top: 14px; }
.crumb a { color: var(--text-dim); text-decoration: none; }
.crumb a:hover { color: var(--gold); }
.dossier-addr { font-family: var(--font-serif); font-size: 28px; font-weight: 600; line-height: 1.15; color: var(--text-bright); margin: 6px 0 4px; }
.dossier-meta { font-size: 14px; color: var(--text); }
.dossier-memo-link { display: none; }
.dossier-apn { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); margin-top: 4px; letter-spacing: 0.02em; }

.factbar { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--text-bright); border-bottom: 1px solid var(--border); margin-top: 20px; }
.fact { padding: 14px 16px 14px 14px; border-left: 3px solid transparent; border-right: 1px solid var(--border); min-width: 0; }
.fact:last-child { border-right: none; }
.factbar--5 { grid-template-columns: repeat(5, 1fr); }
.fact__k { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 4px; }
.fact__v { font-family: var(--font-serif); font-size: 24px; font-weight: 600; line-height: 1.1; color: var(--text-bright); }
.fact__v--text { font-size: 18px; word-break: break-word; }
.fact__v--none { color: var(--text-faint); font-weight: 400; }
.fact__s { font-size: 12px; color: var(--text-dim); margin-top: 4px; line-height: 1.35; }
.fact__s a { color: var(--text-dim); }
.fact__score { font-family: var(--font-mono); font-size: 15px; font-weight: 500; color: var(--text); margin-left: 6px; vertical-align: 3px; }
.fact--alarm { border-left-color: var(--coral); }
.fact--closed { border-left-color: var(--sage); }
.fact--alarm .fact__v { color: var(--coral); }
.fact--attention { border-left-color: var(--amber); }
.fact--standing.stage--disposition { border-left-color: var(--coral); }
.fact--standing.stage--distressed { border-left-color: var(--amber); }
.fact--standing.stage--elevated { border-left-color: var(--amber); }
.fact--standing.stage--watch { border-left-color: var(--border); }

.applied { font-size: 13px; color: var(--text-bright); background: var(--gold-dim); border-left: 3px solid var(--gold); padding: 8px 12px; margin-top: 12px; }
.applied a { color: var(--gold); cursor: pointer; margin-left: 8px; }
.rail { position: sticky; top: 0; z-index: 20; background: var(--bg); display: flex; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.rail .acts { display: flex; gap: 6px; flex-shrink: 0; }
.rail .act { height: 32px; padding: 0 14px; font-size: 13px; }
.rail .act-pass.on { border-color: var(--text-faint); color: var(--text-dim); }
.rail__notewrap { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.rail__note { flex: 1; min-width: 0; height: 32px; border: none; border-bottom: 1px solid var(--border); background: transparent; font: inherit; font-size: 14px; color: var(--text-bright); padding: 0 2px; }
.rail__note:focus { outline: none; border-bottom-color: var(--text-bright); }
.rail__note::placeholder { color: var(--text-faint); }
.rail__saved { font-size: 11px; color: var(--text-faint); white-space: nowrap; }
.rail__memo { font-size: 13px; color: var(--gold); text-decoration: none; white-space: nowrap; }
.rail__memo:hover { text-decoration: underline; }

.dossier-cols { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; margin-top: 8px; }
.dossier-cols .sheet-h2 { margin-top: 18px; }

.sig-list { list-style: none; margin: 0; padding: 0; }
.sig { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 12px 0 12px 10px; border-bottom: 1px solid var(--border); border-left: 3px solid var(--text-faint); margin-left: -13px; }
.sig--t1 { border-left-color: var(--coral); }
.sig--t2 { border-left-color: var(--amber); }
.sig--chained { opacity: 0.7; }
.sig__when { font-size: 13px; color: var(--text-bright); font-weight: 500; }
.sig__age { display: block; font-size: 11px; color: var(--text-faint); }
.sig__name { font-size: 15px; font-weight: 600; color: var(--text-bright); }
.sig__tag { font-size: 11px; font-weight: 400; letter-spacing: 0.04em; color: var(--text-faint); margin-left: 6px; }
.sig__tag--ok { color: var(--sage); }
.sig__tag--warn { color: var(--amber); }
.sig__src { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.sig__note { font-size: 12px; color: var(--text-faint); font-style: italic; margin-top: 2px; }
.sig__raw { margin-top: 6px; }
.sig__raw summary { font-size: 11px; color: var(--text-faint); cursor: pointer; }
.sig__raw table { margin-top: 4px; }
.sig__pts { text-align: right; white-space: nowrap; }
.sig__n { font-family: var(--font-mono); font-size: 16px; font-weight: 500; color: var(--text-bright); display: block; }
.sig__math { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); }
.sig-list--expired .sig { opacity: 0.6; padding: 8px 0 8px 10px; }
.sig-total { margin-top: 6px; font-size: 13px; }
.sig-total__row { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; font-family: var(--font-mono); font-size: 13px; color: var(--text-dim); }
.sig-total__sum { border-top: 1px solid var(--text-bright); font-weight: 600; color: var(--text-bright); font-size: 15px; }
.fold--inline { margin-top: 12px; }

.facts-h3 { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); margin: 22px 0 6px; font-weight: 500; }
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; border-top: 1px solid var(--border); }
.fgrid > div { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--border); }
.fgrid dt { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); }
.fgrid dd { margin: 2px 0 0; font-family: var(--font-mono); font-size: 15px; color: var(--text-bright); white-space: nowrap; }
.fgrid dd small { font-size: 11px; font-family: var(--font-sans); }
.flist { margin: 0; }
.flist > div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.flist dt { color: var(--text-dim); }
.flist .claim--disagree dd { color: var(--text-dim); }
.flist .claim--top dd { color: var(--text-bright); }
.claim__when { white-space: nowrap; }
.claim-reading { font-size: 13px; margin: 0; padding: 7px 0; border-bottom: 1px solid var(--border); }
.flist dd { margin: 0; color: var(--text-bright); min-width: 0; overflow-wrap: anywhere; }
.flist dd a { color: var(--text-bright); }
.flist dd small { font-size: 11px; }
.mono { font-family: var(--font-mono); font-size: 12px; }

.stack { margin-top: 14px; }
.stack__bar { display: flex; height: 26px; border: 1px solid var(--border); overflow: hidden; }
.stack__bar--thin { height: 18px; }
.stack__bar > div { display: flex; align-items: center; padding: 0 8px; font-family: var(--font-mono); font-size: 11px; white-space: nowrap; overflow: hidden; }
.stack__loan { background: var(--coral-dim); color: var(--coral); }
.stack__equity { flex: 1; background: var(--sage-dim); color: var(--sage); }
.stack__equity--neg { background: var(--coral-dim); color: var(--coral); }
.stack__land { background: var(--gold-dim); color: var(--gold); }
.stack__imp { flex: 1; background: var(--surface-alt); color: var(--text-dim); }
.stack__lab { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; color: var(--text-dim); margin-top: 4px; }

.folds { margin-top: 40px; border-top: 1px solid var(--text-bright); }
.fold { border-bottom: 1px solid var(--border); }
.fold > summary { cursor: pointer; padding: 12px 0; font-family: var(--font-serif); font-size: 17px; color: var(--text-bright); list-style: none; display: flex; align-items: baseline; gap: 10px; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::before { content: '+'; font-family: var(--font-mono); color: var(--text-faint); width: 14px; }
.fold[open] > summary::before { content: '–'; }
.fold--inline > summary { font-family: var(--font-sans); font-size: 12px; color: var(--text-dim); padding: 6px 0; }
.fold > :not(summary) { margin-bottom: 16px; }
.history-table th.r, .history-table td.r { text-align: right; font-family: var(--font-mono); }
.history-table td a { color: var(--text-bright); text-decoration: none; }

.map-slot { margin-top: 40px; height: 320px; background: var(--surface-alt); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.map-slot iframe { width: 100%; height: 100%; border: none; }

@media (max-width: 899px) {
  /* Pipeline and Sales cells in the card grid (must follow the desktop column rules above) */
  table.sheet--sales, table.sheet--pipeline { min-width: 0; }
  .sheet td.c-trustee, .sheet td.c-marked, .sheet td.c-note { display: block; width: auto; padding: 2px 14px 0; font-size: 13px; white-space: normal; }
  .sheet td.c-trustee { grid-area: trustee; }
  .sheet td.c-marked { grid-area: marked; font-size: 12px; }
  .sheet td.c-marked::before { content: "Marked "; }
  .sheet td.c-note { grid-area: note; font-style: italic; }
  .sheet tbody.cal-day { display: block; }
  .cal-day__head { display: block; }
  .cal-day__head th { display: block; padding: 10px 0 8px; border-bottom: none; }
  .factbar { grid-template-columns: 1fr 1fr; }
  .fact { border-right: none; border-bottom: 1px solid var(--border); }
  .fact:nth-child(odd) { border-right: 1px solid var(--border); }
  .fact__v { font-size: 20px; }
  .dossier-addr { font-size: 24px; }
  .dossier-cols { grid-template-columns: 1fr; gap: 24px; }
  .fgrid { grid-template-columns: 1fr 1fr; }
  .sig { grid-template-columns: 56px 1fr auto; gap: 8px; }
  /* The rail becomes the thumb bar: three equal buttons, note above them. */
  .rail { position: fixed; top: auto; bottom: 0; left: 0; right: 0; flex-wrap: wrap; gap: 0; padding: 0; border-top: 1px solid var(--border); border-bottom: none; background: var(--surface); box-shadow: 0 -1px 0 var(--border); }
  .rail__notewrap { order: 1; flex: 1 0 100%; padding: 6px 16px; border-bottom: 1px solid var(--border); }
  .rail .acts { order: 2; flex: 1 0 100%; gap: 0; }
  .rail .act { flex: 1; height: 48px; border: none; border-right: 1px solid var(--border); border-radius: 0; font-size: 15px; }
  .rail .act:last-child { border-right: none; }
  .rail__memo { order: 0; display: none; }
  .page--dossier { padding-bottom: 120px; }
  .dossier-memo-link { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--gold); }
}

/* ═══════════════════════════════════════════════════════════════════════
   Increment 3: Everything, Sources, Settings.
   ═══════════════════════════════════════════════════════════════════════ */
.coral { color: var(--coral); }
.sage { color: var(--sage); }
.page-header { padding: 18px 0 8px; }
.page-eyebrow { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.page-title { font-family: var(--font-serif); font-size: 28px; font-weight: 600; color: var(--text-bright); line-height: 1.15; }
.page-subtitle { font-size: 14px; color: var(--text-dim); margin-top: 4px; }
.sheet-dateline .sp { flex: 1; }
.sheet-count { font-family: var(--font-mono); font-size: 13px; font-weight: 400; color: var(--text-dim); margin-left: 4px; }
.fold-section > summary { cursor: pointer; list-style: none; }
.fold-section > summary::-webkit-details-marker { display: none; }
.fold-section > summary::before { content: '–'; font-family: var(--font-mono); color: var(--text-faint); margin-right: 8px; }
.fold-section:not([open]) > summary::before { content: '+'; }

/* Filters: chips in rows on desktop */
.filters-toggle { display: none; }
.filters-scrim { display: none; }
.filters { margin-top: 10px; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.filters__head { display: none; }
.frow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 5px 0; }
.frow__k { width: 64px; flex-shrink: 0; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border: 1px solid var(--border); background: var(--surface); font-size: 12px; color: var(--text); text-decoration: none; white-space: nowrap; }
.chip:hover { border-color: var(--text-bright); color: var(--text-bright); }
.chip.on { border-color: var(--text-bright); color: var(--text-bright); font-weight: 600; }
.chip .t-dim { font-weight: 400; font-family: var(--font-mono); font-size: 11px; }
.chip__x { color: var(--text-dim); text-decoration: none; font-size: 14px; margin-left: 2px; }
.fsel { height: 26px; border: 1px solid var(--border); background: var(--surface); font: inherit; font-size: 12px; color: var(--text); padding: 0 6px; max-width: 220px; }
.fclear { font-size: 12px; text-decoration: none; margin-left: 6px; }
.fclear:hover { color: var(--gold); }

/* Bulk bar: appears when something is checked */
.bulk { display: none; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text); position: sticky; top: 0; background: var(--bg); z-index: 15; }
.bulk.show { display: flex; flex-wrap: wrap; }
.bulk .sp { flex: 1; }
.sheet th.c-sel, .sheet td.c-sel { width: 28px; padding: 0 0 0 4px; }
.sheet td.c-sel input { width: 15px; height: 15px; accent-color: var(--text-bright); }
table.sheet--all { min-width: 1010px; }
table.sheet--archived { min-width: 0; }
.sheet tbody tr.row--archived td.c-prop { padding: 8px 12px; }
.sheet tbody tr.row--archived td.c-act { width: 110px; }

/* Sources table */
table.sheet--sources { min-width: 900px; table-layout: fixed; }
.sheet th.c-src { width: 240px; } .sheet th.c-run { width: 90px; } .sheet th.c-rec { width: 80px; text-align: right; } .sheet th.c-state { width: 130px; } .sheet th.c-cov { width: 220px; }
.sheet tbody tr.srow { border-bottom: 1px solid var(--border); }
.sheet tbody tr.srow td { padding: 9px 12px; vertical-align: top; font-size: 13px; }
.sheet td.c-src { border-left: 3px solid var(--border); padding-left: 9px; }
.srow--ok td.c-src, .srow--running td.c-src { border-left-color: var(--sage); }
.srow--warning td.c-src, .srow--stale td.c-src { border-left-color: var(--amber); }
.srow--error td.c-src { border-left-color: var(--coral); }
.addr--sm { font-size: 15px; }
.sheet td.c-run { white-space: nowrap; color: var(--text-dim); }
.sheet td.c-rec { text-align: right; font-family: var(--font-mono); }
.sheet td.c-state { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); white-space: nowrap; }
.state--ok, .state--running { color: var(--sage); }
.state--warning, .state--stale { color: var(--amber); }
.state--error { color: var(--coral); }
.sheet td.c-cov, .sheet td.c-err { font-size: 12px; color: var(--text-dim); overflow-wrap: anywhere; }

/* Needs an address */
.unat { border-top: 1px solid var(--border); }
.unat__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; padding: 12px 0; border-bottom: 1px solid var(--border); align-items: start; }
.unat__title { font-size: 14px; color: var(--text-bright); font-weight: 600; }
.unat__title .t-dim { font-weight: 400; font-size: 12px; }
.unat__text { font-size: 12px; color: var(--text-faint); margin-top: 4px; }
.unat__form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.unat__form input, .unat__form select { height: 30px; border: 1px solid var(--border); background: var(--surface); font: inherit; font-size: 13px; padding: 0 8px; color: var(--text-bright); }
.unat__form input { width: 220px; }

.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.two-up .sheet-section { min-width: 0; }
.market-line { font-size: 13px; color: var(--text); margin: 8px 0 0; line-height: 1.45; }
.market-line a { color: var(--gold); }
.flist--bars dd { display: flex; align-items: center; gap: 8px; }
.flist--bars .bar { display: inline-block; height: 10px; background: var(--text-bright); opacity: 0.25; min-width: 2px; }
.two-up--settings .flist > div { grid-template-columns: 140px 1fr; }
.two-up--settings dd small { display: block; font-size: 11px; }

@media (max-width: 899px) {
  table.sheet--all, table.sheet--sources { min-width: 0; }
  .sheet td.c-sel { display: none; }
  .sheet tbody tr.row.row--archived { display: grid; grid-template-areas: "prop" "act"; grid-template-columns: 1fr; }
  .sheet tbody tr.row--archived td.c-act { width: auto; }
  /* Sources rows become cards */
  .sheet tbody tr.srow { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "src run" "state rec" "cov cov" "err err"; background: var(--surface); border: 1px solid var(--border); margin-bottom: 10px; }
  .sheet tbody tr.srow td { display: block; width: auto; padding: 4px 12px; }
  .sheet td.c-src { grid-area: src; padding-top: 10px; }
  .sheet td.c-run { grid-area: run; padding-top: 12px; text-align: right; }
  .sheet td.c-state { grid-area: state; }
  .sheet td.c-rec { grid-area: rec; }
  .sheet td.c-cov { grid-area: cov; }
  .sheet td.c-err { grid-area: err; padding-bottom: 10px; }
  .sheet td.c-cov:empty, .sheet td.c-err:empty { display: none; }
  .unat__row { grid-template-columns: 1fr; }
  .unat__form input { flex: 1 1 100%; width: auto; }
  .two-up { grid-template-columns: 1fr; gap: 8px; }
  .bulk { bottom: 0; top: auto; position: fixed; left: 0; right: 0; padding: 10px 16px; background: var(--surface); border-top: 1px solid var(--border); }
  /* Filters become a bottom sheet */
  .filters-toggle { display: inline-block; margin: 10px 0 4px; height: 36px; padding: 0 14px; border: 1px solid var(--text-bright); background: var(--surface); font: inherit; font-size: 13px; font-weight: 600; color: var(--text-bright); }
  .filters { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface); border-top: 1px solid var(--text-bright); max-height: 80vh; overflow-y: auto; padding: 0 16px 24px; margin: 0; transform: translateY(100%); transition: transform 180ms ease-out; }
  .filters.open { transform: translateY(0); }
  .filters-scrim { position: fixed; inset: 0; background: rgba(26,24,21,0.35); z-index: 39; }
  .filters-scrim.open { display: block; }
  .filters__head { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; font-family: var(--font-serif); font-size: 18px; color: var(--text-bright); border-bottom: 1px solid var(--border); margin-bottom: 6px; position: sticky; top: 0; background: var(--surface); }
  .filters__head .act { height: 32px; padding: 0 14px; }
  .frow { padding: 8px 0; gap: 6px; }
  .frow__k { width: 100%; }
  .chip { height: 32px; font-size: 13px; }
  .fsel { height: 32px; font-size: 13px; max-width: 100%; }
  body.no-scroll { overflow: hidden; }
}

/* ── CoStar upload: one large drop zone, the rest is a sheet ───────────── */
.drop { margin: 6px 0 18px; padding: 36px 24px; border: 1px dashed var(--slate); background: var(--surface); text-align: center; }
.drop--over { border-color: var(--evergreen); border-style: solid; background: var(--sage-dim); }
.drop__label { display: block; cursor: pointer; }
.drop__lead { display: block; font-family: var(--font-serif); font-size: 22px; color: var(--text-bright); line-height: 1.2; }
.drop__sub { display: block; margin-top: 6px; font-size: 13px; color: var(--text-dim); }
.drop__sub u { color: var(--gold); text-decoration: none; }
.drop__queue { list-style: none; margin: 18px auto 0; max-width: 620px; text-align: left; border-top: 1px solid var(--border); }
.drop__queue li { display: flex; gap: 12px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.drop__queue .drop__name { flex: 1; color: var(--text-bright); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop__acts { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.drop__acts .act[disabled] { opacity: 0.45; cursor: default; }
.drop__status { font-size: 12px; }
.flist--format > div { grid-template-columns: 110px 1fr; }
table.sheet--costar { min-width: 760px; }
.sheet--costar th.c-n, .sheet--costar td.c-n { width: 96px; text-align: right; }
.sheet--costar td { height: 40px; border-bottom: 1px solid var(--border); }
.sheet--costar td.c-file { font-family: var(--font-serif); font-size: 15px; color: var(--text-bright); }
.sheet--costar td.c-err { font-size: 12px; color: var(--text-dim); }
@media (max-width: 900px) { table.sheet--costar { min-width: 0; } .drop { padding: 28px 16px; } }


/* ── Design review, Oct 24, 2026 ─────────────────────────────────────── */
/* Held rows: dim ink, a classification question instead of a pipeline verb. The verbs are the legend. */
.sheet tr.row--held td { color: var(--text-dim); }
.sheet tr.row--held .addr a { color: var(--text); }
.sheet tr.row--held td.c-due { color: var(--text-dim); }
.act-classify { border-color: var(--evergreen); color: var(--evergreen); }
.act-classify:hover { background: var(--evergreen); color: #fff; }
.act-not { color: var(--text); }
.classify-strip { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.classify-strip a { color: var(--text); text-decoration: underline dotted; margin-right: 10px; cursor: pointer; }
.classify-strip a:hover { color: var(--coral); }
.t-mark { color: var(--gold); font-style: italic; }
/* Add from network as a sheet under the masthead */
.add-sheet { background: var(--surface-alt); border-bottom: 1px solid var(--border); }
.add-sheet .add-network { max-width: 1160px; margin: 0 auto; border: none; background: transparent; padding: 10px 24px 4px; }
.add-sheet__hint { max-width: 1160px; margin: 0 auto; padding: 0 24px 10px; font-size: 12px; color: var(--text-dim); }
/* Patterns on Pipeline */
#patterns .facts-h3 { margin-top: 8px; }
.callsheet { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text); }
.callsheet__k { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); align-self: center; }
.callsheet b { font-weight: 600; color: var(--text-bright); }
.callsheet small { color: var(--text-faint); font-size: 11px; }
/* flex containers must still honor hidden: a held row shows the classify verbs OR the marks, never both */
.acts[hidden], .classify-strip[hidden], .add-sheet[hidden] { display: none !important; }

/* "Today changed" banner and the How page (Oct 24, 2026) */
.changed { display: flex; gap: 16px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; margin: 10px 0 0; padding: 10px 14px; background: var(--gold-dim); border: 1px solid var(--border); font-size: 13px; color: var(--text); }
.changed b { color: var(--text-bright); font-weight: 600; }
.changed__acts { white-space: nowrap; } .changed__acts a { color: var(--gold); margin-left: 14px; cursor: pointer; text-decoration: none; }
.how .how__list { margin-top: 10px; } .how .how__list > div { grid-template-columns: 180px 1fr; } .how .how__list dd { max-width: 72ch; line-height: 1.5; }
.how__p { max-width: 72ch; font-size: 14px; line-height: 1.55; color: var(--text); }
.how .sheet-h2 { margin-top: 28px; }
th[title] { cursor: help; }
