:root {
  --bg: #f6f1e9; --surface: #ffffff; --surface-2: #fbf8f3; --ink: #2a211b; --muted: #7b6f64; --line: #e7dfd3;
  --brand: #b8452a; --brand-ink: #ffffff; --brand-soft: #f7e3dc;
  --olive: #6b7b3a; --gold: #d99a2b; --good: #2f7d4f; --good-soft: #e1f1e7; --bad: #b3261e; --bad-soft: #fbe4e1; --warn-soft: #fdf0d3; --warn: #8a5a00;
  --radius: 12px; --shadow: 0 1px 2px rgba(42,33,27,.06), 0 4px 14px rgba(42,33,27,.06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; text-align: right; }
.good { color: var(--good); } .bad { color: var(--bad); }

.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 9999; pointer-events: none; width: min(92vw, 420px); }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow); font-weight: 600; animation: pop .18s ease-out; text-align: center; }
.toast.err { background: var(--bad); } .toast.ok { background: var(--good); }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-2); border: 1px solid var(--line); }
.pill.good { background: var(--good-soft); color: var(--good); border-color: transparent; }
.pill.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.pill.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: baseline; }
