/* Residual Desk: one stylesheet, no external fonts or assets (CSP: self only). */
:root {
  --bg: #fbfaf7; --fg: #1c1d1f; --muted: #5d6066; --line: #dcd9d2;
  --accent: #1f5f4a; --accent-fg: #ffffff; --panel: #f1efe9; --bad: #9b2c2c;
  --measure: 46rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141517; --fg: #e8e6e1; --muted: #a3a6ab; --line: #34363a;
    --accent: #6fbf9f; --accent-fg: #0d1f19; --panel: #1d1f22; --bad: #f08a8a;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 16px; }
a { color: var(--accent); }
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: baseline; padding-top: 1rem; padding-bottom: 1rem; }
.brand { font-weight: 700; text-decoration: none; color: var(--fg); margin-right: auto; }
nav { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .95rem; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }
main { padding-top: 2rem; padding-bottom: 3rem; }
h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 1rem; }
h2 { font-size: 1.3rem; margin: 2.25rem 0 .5rem; }
.table-wrap { overflow-x: auto; margin: 1rem 0; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: .85rem; color: var(--muted); font-weight: 600; }
.pricing .price { white-space: nowrap; font-weight: 600; }
.callout { background: var(--panel); border-left: 4px solid var(--accent); padding: .75rem 1rem; font-weight: 600; }
.rd-form { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 1.25rem; margin: 1.5rem 0; display: grid; gap: .35rem; }
.rd-form label { font-weight: 600; font-size: .95rem; margin-top: .5rem; }
.rd-form .opt { font-weight: 400; color: var(--muted); }
.rd-form input, .rd-form textarea {
  font: inherit; color: var(--fg); background: var(--bg);
  border: 1px solid var(--line); border-radius: 6px; padding: .55rem .65rem; width: 100%;
}
.rd-form button {
  margin-top: 1rem; justify-self: start; font: inherit; font-weight: 600;
  background: var(--accent); color: var(--accent-fg); border: 0; border-radius: 6px; padding: .65rem 1.1rem; cursor: pointer;
}
.rd-form button[disabled] { opacity: .6; cursor: progress; }
.form-status { margin: .5rem 0 0; min-height: 1.6em; }
.form-status.err { color: var(--bad); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; padding: 1.5rem 0 2.5rem; }

/* ── Home page "dashboard" (body.dash): FallDawn palette and components ──── */
body.dash {
  --bg: #eef1f4; --fg: #16202c; --muted: #5a6878; --line: #cfd7e0;
  --accent: #b8740f; --accent-fg: #ffffff; --panel: #ffffff; --deep: #1f4e5f; --sunk: #e3e8ee;
  --measure: 1120px;
  font-size: 16px;
}
@media (prefers-color-scheme: dark) {
  body.dash { --bg: #10161d; --fg: #e6ecf2; --muted: #93a2b3; --line: #2a3644;
    --accent: #e5a43b; --accent-fg: #14100a; --panel: #18212b; --deep: #7fc0d4; --sunk: #0c1117; }
}
body.dash .site-header { background: var(--panel); }
body.dash a { color: var(--deep); }
body.dash .brand { color: var(--fg); }
body.dash main { display: grid; gap: 20px; padding-top: 28px; }
body.dash .hero h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.12; max-width: 22ch; margin-bottom: .6rem; }
body.dash .hero > p { color: var(--muted); max-width: 68ch; font-size: 1.05rem; }
body.dash .panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 20px; min-width: 0; }
body.dash .panel h2 { margin-top: 0; font-size: 1.2rem; }
body.dash .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 1.2rem; }
body.dash .stat { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; display: grid; gap: 2px;
  box-shadow: inset 3px 0 0 var(--accent); }
body.dash .stat b { font-size: 1.6rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
body.dash .stat span { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
body.dash table.comps th[scope="row"] { font-weight: 600; }
body.dash table.comps .note { font-weight: 400; font-size: .82rem; color: var(--muted); margin-top: 2px; }
body.dash table.comps .price { font-weight: 700; white-space: nowrap; }
body.dash .n { text-align: right; }
body.dash .mono { white-space: nowrap; font-family: ui-monospace, "IBM Plex Mono", Consolas, monospace; font-size: .82rem; }
body.dash .muted { color: var(--muted); }
body.dash thead th { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
body.dash .rd-form { background: var(--sunk); }
body.dash .rd-form button { background: var(--accent); color: var(--accent-fg); }
body.dash .site-footer { border-top-color: var(--line); }
