/* Earth design tokens + base components, shared by the guest menu and the admin console. */
:root {
  --forest-900: #12301f; --forest-800: #173d2b; --forest-700: #1f4d3a; --forest-600: #2a6249; --forest-500: #2e7a56;
  --forest-100: #e4efe8; --forest-50: #f1f7f3;
  --paper: #fffdf8; --bg: #f5f0e6; --subtle: #ece5d8; --line: #e6ded0; --line-soft: #f0e9dc;
  --ink: #1d2a24; --ink-2: #3a4740; --muted: #66716b;
  --ok: #2e7a56; --warn: #a86b12; --warn-bg: #f7ecd6; --bad: #b3402f; --bad-bg: #f8e5e0; --info: #2c5a8a; --info-bg: #e3ecf6;
  --gold: #c9921b;
  --r-sm: 8px; --r: 12px; --r-lg: 16px; --pill: 999px;
  --shadow-1: 0 1px 2px rgba(29, 42, 36, .06), 0 1px 1px rgba(29, 42, 36, .04);
  --shadow-2: 0 12px 32px rgba(29, 42, 36, .14), 0 2px 6px rgba(29, 42, 36, .06);
  --focus: 0 0 0 3px rgba(46, 122, 86, .35);
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 14px/1.5 var(--sans); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--forest-600); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.num, .tabular { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; border-radius: var(--pill); text-decoration: none;
  padding: 8px 16px; font-weight: 600; font-size: 13px; cursor: pointer; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn.primary { background: var(--forest-700); color: #fff; }
.btn.primary:hover { background: var(--forest-800); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--forest-500); color: var(--forest-700); }
.btn.danger { background: transparent; border-color: var(--bad-bg); color: var(--bad); }
.btn.sm { padding: 5px 11px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  border-radius: var(--pill); padding: 2px 8px; background: var(--forest-100); color: var(--forest-700); white-space: nowrap; }
.tag.grey { background: var(--subtle); color: var(--muted); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.tag.bad { background: var(--bad-bg); color: var(--bad); }
.tag.info { background: var(--info-bg); color: var(--info); }

.switch { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 34px; height: 20px; border-radius: 20px; background: #d6cebf; position: relative; transition: background .15s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-1); transition: transform .15s; }
.switch input:checked + .track { background: var(--forest-500); }
.switch input:checked + .track::after { transform: translateX(14px); }
.switch input:focus-visible + .track { box-shadow: var(--focus); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 12px); background: var(--ink); color: #fff; padding: 10px 18px;
  border-radius: var(--pill); font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 100; max-width: 90vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--bad); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
