/* The house skin. One palette and one header for every screen Brad lives in.
 *
 * Tasks and the Library defined this look first; the home page adopted it on
 * 2026-09-22 and the supporting pages (PamCom, Report, Caitlyn, Coach Chip,
 * Voices) followed. A page links this file and then styles its own parts
 * through the tokens below. It never redefines them.
 *
 * Light only, on purpose: these pages are read in daylight on a desk, and the
 * Library's palette was chosen for that. */

:root {
  --bg:#f7f8fa; --panel:#ffffff; --panel-2:#f2f4f8; --line:#e3e7ee;
  --ink:#14171f; --ink-dim:#4a5261; --ink-faint:#98a0b0;
  --accent:#3b5bdb; --accent-dim:#edf0fb; --accent-ink:#2c46b0;
  --work:#9a6b1f; --work-bg:#fbf2e1; --personal:#2f7a5b; --personal-bg:#e7f3ed;
  --dev:#6b46c1; --dev-bg:#f1ecfb; --df:#1d5a9e; --df-bg:#e5eef8;
  --warn:#c2410c; --warn-bg:#fdece3; --unsure:#7c8598; --unsure-bg:#eef0f4;
  --danger:#b42318; --danger-bg:#fde8e6; --ok:#2f7a5b; --ok-bg:#e7f3ed;
  --serif:Literata,Georgia,"Times New Roman",serif;
  --sans:"Work Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --mono:ui-monospace,"Cascadia Code",Consolas,Menlo,monospace;
  --radius:10px; --radius-sm:7px;
  --shadow:0 1px 2px rgba(20,23,31,.04);
}

*, *::before, *::after { box-sizing:border-box; }
html, body { margin:0; background:var(--bg); color:var(--ink);
  font:15px/1.55 var(--sans); -webkit-font-smoothing:antialiased; }
a { color:inherit; }
button, input, select, textarea { font:inherit; color:inherit; }
::selection { background:var(--accent-dim); }

/* ------------------------------------------------------------ header --- */
header.house { border-bottom:1px solid var(--line); background:var(--panel); }
header.house .brand { max-width:1200px; margin:0 auto; padding:12px 20px; display:flex; align-items:center; gap:14px; }
header.house h1 { margin:0; font-family:var(--serif); font-size:19px; font-weight:600; letter-spacing:-.01em; white-space:nowrap; }
header.house .count { color:var(--ink-faint); font-size:13px; font-variant-numeric:tabular-nums; }
header.house nav { margin-left:auto; display:flex; gap:16px; font-size:13.5px; }
header.house nav a { color:var(--ink-dim); text-decoration:none; white-space:nowrap; }
header.house nav a:hover { color:var(--ink); }
header.house nav a[aria-current="page"] { color:var(--ink); font-weight:600; }
header.house .acts { display:flex; gap:8px; }
header.house.wide .brand { max-width:none; }

/* ------------------------------------------------------------ controls --- */
.btn, header.house .acts a, header.house .acts button {
  border:1px solid var(--line); border-radius:var(--radius-sm); padding:5px 11px; font-size:13px;
  text-decoration:none; color:var(--ink-dim); background:var(--panel); cursor:pointer; white-space:nowrap; }
.btn:hover, header.house .acts a:hover, header.house .acts button:hover { color:var(--ink); background:var(--panel-2); }
.btn.primary, header.house .acts .primary { background:var(--accent); color:#fff; border-color:transparent; font-weight:600; }
.btn.primary:hover, header.house .acts .primary:hover { background:var(--accent-ink); color:#fff; }
.btn.danger { color:var(--danger); border-color:var(--danger-bg); }
.btn.danger:hover { background:var(--danger-bg); }
.btn[disabled], .btn:disabled { opacity:.5; cursor:default; }
.btn.sm { padding:3px 8px; font-size:12px; }

.field, input.field, select.field, textarea.field {
  border:1px solid var(--line); border-radius:9px; padding:9px 12px; background:var(--panel); color:var(--ink); font-size:14px; }
.field:focus { outline:none; border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-dim); }
textarea.field { resize:vertical; line-height:1.5; }

/* ------------------------------------------------------------ surfaces --- */
.panel { background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); }
.panel-2 { background:var(--panel-2); border:1px solid var(--line); border-radius:var(--radius); }
.eyebrow { font-size:11.5px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-faint); }
.muted { color:var(--ink-dim); }
.faint { color:var(--ink-faint); }
hr.rule { border:0; border-top:1px solid var(--line); margin:14px 0; }

/* Tabs across the top of a panel, as the Library draws them. */
.tabs { display:flex; gap:2px; border-bottom:1px solid var(--line); overflow-x:auto; }
.tabs .tab, .tabs button { border:0; border-bottom:2px solid transparent; background:none; color:var(--ink-dim);
  padding:9px 14px; font-size:14px; cursor:pointer; white-space:nowrap; border-radius:5px 5px 0 0; }
.tabs .tab:hover, .tabs button:hover { color:var(--ink); background:var(--panel-2); }
.tabs .tab[aria-selected="true"], .tabs .tab.active, .tabs button.active { color:var(--ink); border-bottom-color:var(--accent); font-weight:600; }
.tabs .n { color:var(--ink-faint); font-size:12px; margin-left:6px; }

/* Status chips. Tone is the message: `you` means Brad's hands are needed. */
.st { display:inline-block; font-size:11.5px; font-weight:500; padding:2px 9px; border-radius:999px; white-space:nowrap; font-variant-numeric:tabular-nums; line-height:1.5; }
.st b { font-weight:600; }
.st.num { background:var(--accent-dim); color:var(--accent-ink); }
.st.you, .st.warn { background:var(--warn-bg); color:var(--warn); }
.st.ok { background:var(--ok-bg); color:var(--ok); }
.st.danger { background:var(--danger-bg); color:var(--danger); }
.st.quiet { background:var(--unsure-bg); color:var(--unsure); }
.st.work { background:var(--work-bg); color:var(--work); }
.st.personal { background:var(--personal-bg); color:var(--personal); }
.st.dev { background:var(--dev-bg); color:var(--dev); }
.st.df { background:var(--df-bg); color:var(--df); }

/* Tables, as the Report draws them. */
table.house { border-collapse:collapse; width:100%; font-size:13.5px; }
table.house th, table.house td { text-align:left; padding:7px 10px; border-bottom:1px solid var(--line); vertical-align:top; }
table.house th { font-weight:600; color:var(--ink-dim); font-size:12px; letter-spacing:.04em; text-transform:uppercase; }
table.house tr:hover td { background:var(--panel-2); }
table.house td.num, table.house th.num { text-align:right; font-variant-numeric:tabular-nums; }

/* A big number with its label under it. Only where the number is the point. */
.tile { background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); padding:12px 14px; }
.tile .v { font-size:24px; font-weight:600; letter-spacing:-.02em; font-variant-numeric:tabular-nums; line-height:1.1; }
.tile .k { font-size:12px; color:var(--ink-dim); margin-top:4px; }

/* Loading, empty, error states read the same everywhere. */
.empty { color:var(--ink-faint); font-size:13.5px; line-height:1.6; padding:18px; text-align:center; }
.error { color:var(--danger); background:var(--danger-bg); border-radius:var(--radius-sm); padding:10px 12px; font-size:13.5px; }
.spinner { width:18px; height:18px; border:2px solid var(--line); border-top-color:var(--accent); border-radius:50%; animation:house-spin .8s linear infinite; }
@keyframes house-spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation:none; } }

/* Phones: the header wraps, the nav scrolls sideways, gutters stay 16px. */
@media (max-width:720px) {
  header.house .brand { flex-wrap:wrap; gap:10px 14px; padding:10px 16px; }
  header.house nav { margin-left:0; width:100%; order:3; gap:12px; overflow-x:auto; }
  header.house .acts { margin-left:auto; }
}
