:root {
  --surface-0: #edeae4;
  --surface-1: #f5f3ef;
  --surface-2: #fbfaf8;
  --border: #ddd9d2;
  --border-strong: #bfb9b0;
  --text-primary: #201f1d;
  --text-secondary: #5f5e5a;
  --text-muted: #8a8781;
  --bg-accent: #e3edf7;
  --text-accent: #2c5f8f;
  --bg-success: #e2f0e7;
  --text-success: #2c6b48;
  --bg-warning: #faeedc;
  --text-warning: #8a5b18;
  --bg-danger: #f8e3e2;
  --text-danger: #963331;
  --radius: 6px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --surface-0: #242322;
    --surface-1: #2b2a28;
    --surface-2: #323130;
    --border: #464442;
    --border-strong: #615f5c;
    --text-primary: #f0eeea;
    --text-secondary: #b4b1ab;
    --text-muted: #8a8781;
    --bg-accent: #22384d;
    --text-accent: #9fc5e8;
    --bg-success: #1f3a2b;
    --text-success: #8fd6ac;
    --bg-warning: #3d2f17;
    --text-warning: #e8b872;
    --bg-danger: #3d2220;
    --text-danger: #e89b98;
  }
}
* { box-sizing: border-box; }
/* Density, changed 2026-08-24. View 3 is projected in the Friday meeting and
   the ask was "show the whole sheet at once". The 14px floor from CLAUDE.md
   stays untouched — it exists because 11px was unreadable on a beamer, and
   trading it away would buy rows nobody can read. Everything below buys the
   same space out of chrome and padding instead: page margin, the heading
   block, and one wasted line per project row.
   Body line-height drops to 1.35 for the same reason; the two prose views
   (README-ish panel feet) set their own where it matters. */
body { margin: 0; padding: 10px 14px; background: var(--surface-1); color: var(--text-primary); font-family: var(--font-sans); font-size: 14px; line-height: 1.35; }
/* Was 1100px. On the meeting screen that capped the sheet well short of the
   glass and pushed the consultant columns into a horizontal scroll while
   ~800px sat empty on either side. Narrow screens are unaffected. */
.wrap { max-width: 1600px; margin: 0 auto; }
h1 { font-size: 15px; font-weight: 600; margin: 0 0 8px; }
button, input, select { font-family: inherit; font-size: 13px; color: var(--text-primary); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 5px 9px; }
button { cursor: pointer; }
button:hover { border-color: var(--border-strong); }
table { border-collapse: collapse; width: 100%; }
.scroll-x { overflow-x: auto; }
.num { font-variant-numeric: tabular-nums; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.tabs button[aria-current="true"] { background: var(--bg-accent); color: var(--text-accent); border-color: var(--text-accent); }
.app-panel { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; min-height: 320px; }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.panel-head .title { font-size: 14px; font-weight: 500; }
.panel-head .subtitle { font-size: 12px; color: var(--text-muted); }
.panel-head .controls { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.panel-foot { padding: 12px 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-secondary); }
.badge { padding: 2px 8px; border-radius: var(--radius); font-size: 12px; }
.badge-danger { background: var(--bg-danger); color: var(--text-danger); }
.badge-warning { background: var(--bg-warning); color: var(--text-warning); }
.badge-success { background: var(--bg-success); color: var(--text-success); }
.badge-muted { color: var(--text-muted); }
.tag { background: var(--bg-accent); color: var(--text-accent); padding: 1px 6px; border-radius: var(--radius); font-size: 11px; font-family: monospace; margin-right: 3px; }
.stat-tile { background: var(--surface-1); border-radius: var(--radius); padding: 10px 12px; min-width: 150px; flex: 1; }
.stat-tile .label { font-size: 12px; color: var(--text-secondary); }
.stat-tile .value { font-size: 20px; font-weight: 500; margin-top: 2px; }
.stat-tile .hint { font-size: 11px; color: var(--text-muted); }
.meter-track { height: 8px; background: var(--surface-0); border-radius: 4px; overflow: hidden; }
.meter-fill { height: 100%; }
.error-banner { position: sticky; top: 0; z-index: 9; max-width: 1100px; margin: 0 auto 12px; padding: 10px 12px; border-radius: var(--radius); background: var(--bg-danger); color: var(--text-danger); border: 1px solid currentColor; }
.grid-cell-input { width: 60px; text-align: center; }
.chart-container { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.chart-container canvas { max-width: 100%; }
