/* Moderation Desk — shared tokens and base styles. Sizes in rem; light first, dark follows the system.
   Palette: calm archival spruce-paper ground, deep spruce-teal human actions, indigo-violet with a
   dashed outline reserved strictly for AI classifier signals, solid borders for human decisions. */
:root {
  --ground: #f5f6f4;
  --surface: #ffffff;
  --sunk: #eaede9;
  --ink: #13201e;
  --ink-2: #354744;
  --ink-3: #526662;
  --line: #c6d0cd;
  --line-2: #dce3e0;
  --action: #135650;
  --action-ink: #ffffff;
  --action-soft: #dff0ee;
  --ai: #4e3b96;
  --ai-soft: #efebfb;
  --wait: #945f00;
  --wait-soft: #fbeed3;
  --wait-ink: #684100;
  --ok: #16643a;
  --ok-soft: #dff2e7;
  --bad: #9c2429;
  --bad-soft: #fce7e7;
  --grey-soft: #e6ebe9;
  --deep: #112321;
  --deep-ink: #eaf1ef;
  --deep-dim: #a5bab6;
  --deep-line: #243d3a;
  --radius: .375rem;
  --shadow: 0 1px 2px rgba(19, 32, 30, .07), 0 6px 18px rgba(19, 32, 30, .07);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0d1413;
    --surface: #141f1e;
    --sunk: #0f1918;
    --ink: #e7efee;
    --ink-2: #b5c5c2;
    --ink-3: #8ea39f;
    --line: #283b38;
    --line-2: #1e2e2c;
    --action: #6fd1c7;
    --action-ink: #061c1a;
    --action-soft: #152f2c;
    --ai: #c5b8ff;
    --ai-soft: #251f40;
    --wait: #e2ac3b;
    --wait-soft: #36280d;
    --wait-ink: #f4d285;
    --ok: #6ed69d;
    --ok-soft: #143323;
    --bad: #ff9a9a;
    --bad-soft: #3c1c1e;
    --grey-soft: #1c2b29;
    --deep: #08100f;
    --deep-ink: #eaf1ef;
    --deep-dim: #9db3af;
    --deep-line: #1d312e;
    --shadow: 0 1px 2px rgba(0, 0, 0, .38), 0 6px 18px rgba(0, 0, 0, .32);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 1rem/1.55 var(--sans); }
h1, h2, h3 { font-weight: 650; line-height: 1.18; margin: 0; letter-spacing: -.015em; }
p { margin: 0; }
a { color: var(--action); text-underline-offset: .15em; }
code, .mono { font-family: var(--mono); font-size: .92em; font-variant-numeric: tabular-nums; }
:focus-visible { outline: .19rem solid var(--action); outline-offset: .15rem; border-radius: .2rem; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }

.btn { display: inline-flex; align-items: center; gap: .4rem; font: inherit; font-weight: 600; cursor: pointer;
       padding: .6rem 1.1rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
       color: var(--ink); text-decoration: none; line-height: 1.2; }
.btn:hover { border-color: var(--ink-3); }
.btn.primary { background: var(--action); border-color: var(--action); color: var(--action-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.small { padding: .35rem .7rem; font-size: .85rem; }
.btn.danger { color: var(--bad); border-color: var(--bad); }
.btn[disabled] { opacity: .5; cursor: default; }

.mark { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.1rem;
        letter-spacing: -.01em; color: inherit; text-decoration: none; }
.mark svg { width: 1.65rem; height: 1.65rem; flex: none; }

/* Every chip carries a word; colour and border geometry reinforce it.
   AI classifier signals use a dashed border; human decisions use a solid one. */
.chip { display: inline-block; font-size: .75rem; font-weight: 600; line-height: 1; padding: .3rem .5rem;
        border-radius: .25rem; background: var(--grey-soft); color: var(--ink-2); white-space: nowrap; border: 1px solid var(--line); }
.chip.wait { background: var(--wait-soft); color: var(--wait-ink); border-color: transparent; }
.chip.go { background: var(--action-soft); color: var(--action); border-color: transparent; }
.chip.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.chip.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.chip.ai { background: var(--ai-soft); color: var(--ai); border: 1px dashed var(--ai); }

.demo-bar { background: var(--wait-soft); color: var(--wait-ink); font-size: .84rem; text-align: center;
            padding: .45rem 1rem; border-bottom: 1px solid var(--line); }
.demo-bar b { font-weight: 700; }
.demo-bar a { color: inherit; font-weight: 600; }
