/* Tokens follow Lyra's client (presbot client/app/globals.css, light theme) so the two read as one product. */
:root {
  --paper: oklch(0.9818 0.0054 95.1);
  --surface: #fff;
  --surface-2: oklch(0.9341 0.0153 90.2);
  --ink: oklch(0.3438 0.0269 95.7);
  --ink-2: oklch(0.52 0.02 95);
  --line: oklch(0.8847 0.0069 97.4);
  --clay: oklch(0.6171 0.1375 39.0);
  --clay-ink: oklch(0.52 0.13 39.0);
  --clay-soft: oklch(0.6171 0.1375 39.0 / .18);
  --done: #0a7d0a;
  --done-soft: #0ca30c1f;
  --due: #9a6200;
  --due-soft: #f5b0001f;
  --danger: #d03b3b;
  --proposed: #2a78d6;
  --proposed-soft: #2a78d61a;
  --r-s: 6px; --r-m: 8px; --r-l: 12px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 { font-size: 24px; font-weight: 650; }
h2 { font-size: 18px; font-weight: 650; }
p { margin: 0; }
a { color: var(--clay-ink); }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--proposed); outline-offset: 2px; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.tiny { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--surface);
  border-radius: var(--r-m); padding: 8px 14px; font-weight: 600; cursor: pointer; text-decoration: none; color: var(--ink); min-height: 40px; }
.btn:hover { border-color: var(--ink-2); }
.btn.primary { background: var(--clay); border-color: var(--clay); color: #fff; }
.btn.primary:hover { background: var(--clay-ink); }
.btn.quiet { border-color: transparent; background: transparent; }
.btn.small { min-height: 32px; padding: 4px 10px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.input { width: 100%; border: 1px solid var(--line); border-radius: var(--r-m); padding: 10px 12px; background: var(--surface); }
textarea.input { resize: vertical; min-height: 140px; font-family: var(--mono); font-size: 13px; }
label.field { display: flex; flex-direction: column; gap: 4px; }
.err { color: var(--danger); font-size: 14px; }
.ok { color: var(--done); font-weight: 650; }
.notice { display: flex; gap: 8px; align-items: center; background: var(--due-soft); color: var(--due); border-radius: var(--r-m); padding: 8px 12px; font-size: 14px; }
.notice .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--danger); flex: none; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-m);
  font-size: 14px; max-width: calc(100vw - 32px); z-index: 10; }
.tabs { display: inline-flex; gap: 4px; background: var(--surface-2); border-radius: 999px; padding: 3px; }
.tabs button { border: 0; background: none; border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.tabs button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 12px; color: var(--ink-2); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
