/* "Ledger" design: a warm paper layer on top of style.css.
   Cream canvas, white paper panels, linen hairlines, espresso ink, one amber highlight for the primary
   action and the selected state. Light only, also when the system is in dark mode. Warm brown shadows, tight type in Inter (ss01), 8px corners, 4px badges.
   Remove this file from the page (or open with ?design=calm) and style.css alone gives the calm design.
   Agent / Code / Person keep their colours (agent blue, code ink, person amber): they match the explainer. */

@font-face { font-family: "Inter Ledger"; src: url("fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter Ledger"; src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --shell: #f8f7f5;     /* cream canvas */
  --panel: #ffffff;     /* paper */
  --soft: #f8f7f5;
  --canvas: #f3f1ec;
  --dots: #ddd8cc;
  --ink: #261b07;       /* espresso */
  --ink-2: #61594a;     /* bark */
  --muted: #6f685b;     /* between bark and driftwood, readable at 12-13px */
  --faint: #8f897e;     /* driftwood */
  --line: #e3dfd5;      /* linen */
  --line-2: #d5d2cd;    /* stone mist */
  --input: #ffffff;
  --focus: #f9a60040;
  --primary: #f9a600;   /* amber signal */
  --primary-ink: #261b07;
  --hover: #faf9f6;
  --amber: #f9a600;
  --gold: #e89b01;
  --linen-fill: #ebe7de;

  --agent: #2c44e0;  --agent-bg: #eceefd;
  --code: #261b07;   --code-bg: #ebe7de;
  --person: #8a5a12; --person-bg: #f8e3b4;

  --ok: #261b07;     --ok-bg: #ebe7de;     /* ready / approved: quiet, done */
  --warn: #b03c25;   --warn-bg: #fde3dc;   /* needs review: terracotta, the one loud status */
  --dup: #4f3a7a;    --dup-bg: #ece2fd;    /* wisteria */
  --skip: #8f897e;   --skip-bg: #f3f1ec;
  --read: #7a5200;   --read-bg: #fbe8c0;   /* honey */
  --err: #b03c25;    --err-bg: #fde3dc;

  --shadow: 0 4px 8px 0 rgba(38, 27, 7, 0.06);
  --shadow-btn: inset 0 2px 4px 0 rgba(255, 255, 255, 0.56), 0 4px 8px 0 rgba(38, 27, 7, 0.06), 0 1px 2px 0 rgba(38, 27, 7, 0.36);
  --shadow-ghost: 0 4px 8px 0 rgba(38, 27, 7, 0.06), 0 1px 2px 0 rgba(38, 27, 7, 0.12);

  --r: 8px;
  --r-sm: 8px;
  --sans: "Inter Ledger", "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  font-family: var(--sans);
  font-feature-settings: "ss01" on, "cv11" on;
  color-scheme: light;
}

/* Always light: like the paper it imitates, this design has no dark mode. Its :root tokens above override
   style.css's dark-mode tokens even when the system is dark, and color-scheme keeps form controls light. */
html, body { color-scheme: light; }

body { line-height: 1.25; letter-spacing: -0.01em; }
p, .rule-line, .sub, .who li, .hint, .compare-sum, .foot { line-height: 1.3; }

/* ---- shell ---- */
.brand { font-weight: 584; font-size: 16px; letter-spacing: -0.015em; }
.nav a { font-weight: 400; color: var(--ink); padding: 8px 12px; }
.nav a svg { color: var(--ink-2); }
.nav a:hover { background: var(--hover); }
.nav a.on { background: var(--linen-fill); box-shadow: none; font-weight: 492; }
.nav .n { color: var(--faint); }
.eyebrow, .sec h3 { font-size: 12px; font-weight: 492; letter-spacing: 0.05em; color: var(--faint); }
.rule-line { color: var(--ink-2); }
.who li { color: var(--ink-2); }
.intake { border-top-color: var(--line); }
.dot.on { background: var(--amber); box-shadow: 0 0 0 3px #f9a60033; }

.panel { border-radius: 8px; border-color: var(--line); box-shadow: var(--shadow); }
.foot { color: var(--faint); }

/* the demo note reads like the espresso announcement strip */
body.static .static-note { background: var(--ink); color: var(--panel); border-bottom: 0; border-radius: 7px 7px 0 0; justify-content: center; font-size: 13px; }
body.static .static-note svg { stroke: currentColor; opacity: .7; }

/* ---- type ---- */
.page-head h1 { font-size: 34px; font-weight: 584; letter-spacing: -0.02em; line-height: 1.13; }
.page-head .sub { color: var(--ink-2); font-size: 14px; }
.doc-head h1 { font-size: 26px; font-weight: 584; letter-spacing: -0.015em; line-height: 1.13; }
.row .title { font-weight: 492; }
.row .meta, .row .via { color: var(--muted); }
.kv td.k { color: var(--muted); }

/* ---- controls ---- */
.btn {
  font-size: 14px; font-weight: 492; padding: 9px 16px; border-radius: 8px;
  background: transparent; color: var(--ink); border: 1px solid var(--ink); box-shadow: var(--shadow-ghost);
}
.btn:hover { background: var(--hover); }
.btn.quiet { color: var(--ink); }
.btn.primary { background: var(--amber); border-color: var(--gold); color: #261b07; box-shadow: var(--shadow-btn); }
.btn.primary:hover { background: #ffb21a; opacity: 1; }
.original-foot .btn { border-color: var(--line-2); box-shadow: none; }
.btn:focus-visible, .nav a:focus-visible, .tabs a:focus-visible, .stat:focus-visible { outline-color: var(--gold); }
.row:has(.row-link:focus-visible) { outline-color: var(--gold); }
.link { text-decoration-color: var(--gold); text-decoration-thickness: 1.5px; }
.link:hover { color: var(--gold); }
.link-btn { text-decoration-color: var(--gold); }

.kv input, .kv select { border-radius: 8px; border-color: var(--line-2); }
.kv input:focus, .kv select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--focus); }

/* ---- badges: 4px corners ---- */
.tag { border-radius: 4px; font-weight: 492; padding: 4px 6px; }
.pill { border-radius: 4px; font-weight: 492; padding: 5px 8px 5px 7px; }
.pill.ready::before, .pill.approved::before { background: var(--ink); }
.pill.skipped, .pill.rejected { box-shadow: inset 0 0 0 1px var(--line); }
.exact { border-radius: 4px; }

/* ---- inbox ---- */
.stats { border-color: var(--line); }
.stat .stat-n { font-weight: 492; letter-spacing: -0.025em; font-size: 32px; }
.stat .stat-l { color: var(--ink-2); }
.stat.ready { --c: var(--ink); } .stat.review { --c: #f0624f; } .stat.duplicates { --c: #b89ae8; } .stat.skipped { --c: var(--faint); }
.stat.on::after { background: var(--amber); height: 3px; }
.stats.filtered .stat:not(.on) .stat-n { color: var(--faint); opacity: .55; }

.tabs a { color: var(--ink-2); font-weight: 400; }
.tabs a.on { color: var(--ink); font-weight: 492; }
.tabs a.on::after { background: var(--amber); height: 3px; border-radius: 2px; }
.tabs .c { border-radius: 4px; background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); }
.tabs a.on .c { background: var(--amber); color: #261b07; }

.list-head { color: var(--faint); font-size: 12px; letter-spacing: 0.02em; }
.row:hover { background: var(--hover); }
@keyframes fresh { from { background: var(--read-bg); } to { background: transparent; } }
.mini { border-radius: 3px; box-shadow: 0 0 0 1px var(--line), var(--shadow); }

/* ---- document ---- */
.stepper a { border-radius: 8px; border-color: var(--line-2); }
.canvas { border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); }
.canvas img.frame { border-radius: 2px; box-shadow: 0 0 0 1px rgba(38, 27, 7, 0.08), 0 10px 24px -12px rgba(38, 27, 7, 0.35); }
.sec { border-top-color: var(--line); }
.checks li, .kv td, .compare td { border-color: var(--line); }
.verdict { border-radius: 8px; font-weight: 492; }
.verdict.ok { background: var(--linen-fill); }
pre.json, details.mailtext pre { border-radius: 8px; line-height: 1.45; }
.history time { font-family: var(--sans); font-variant-numeric: tabular-nums; }

/* ---- approved ---- */
.summary .stat-n { font-weight: 492; letter-spacing: -0.025em; }
table.list th { color: var(--faint); font-weight: 400; }
table.list td.strong { font-weight: 492; }
table.list tfoot td { font-weight: 584; border-top: 1px solid var(--ink); }
.mono { font-family: var(--sans); font-size: inherit; letter-spacing: 0; font-variant-numeric: tabular-nums slashed-zero; }

@media (max-width: 640px) {
  .page-head h1 { font-size: 28px; }
  .stat .stat-n { font-size: 26px; }
  .doc-head h1 { font-size: 22px; }
}
