/* Shared tokens for the booking status, terms and admin pages (the homepage keeps its own copy inline). */
:root {
  --paper: #ECEEE6;
  --surface: #F7F8F3;
  --ink: #2A2119;
  --muted: #646152;
  --line: #D2D4C7;
  --pine: #2E4A3B;
  --on-pine: #F3F1E8;
  --honey: #A9691A;
  --honey-soft: #EBD6AE;
  --danger: #A23A28;
  --ok: #2D6A44;
  --warn: #9A6A00;
  --display: "Noto Serif Georgian", Georgia, "Times New Roman", serif;
  --body: "Noto Sans Georgian", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111611; --surface: #182019; --ink: #ECE5D5; --muted: #A4A190; --line: #2D372F;
    --pine: #9CC4A7; --on-pine: #102016; --honey: #E3A548; --honey-soft: #47371C;
    --danger: #EE8C76; --ok: #86CDA0; --warn: #E8B64C; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--honey); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-stretch: 72%; font-weight: 800; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 6vw, 3rem); }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; font-stretch: 80%; font-weight: 700; }
p { margin: 0; }
.wrap {
  max-width: 760px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.eyebrow { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--honey); }
.muted { color: var(--muted); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 0.92rem/1 var(--body); padding: 12px 18px; border-radius: 999px;
  border: 1.5px solid var(--pine); background: var(--pine); color: var(--on-pine);
  cursor: pointer; text-decoration: none;
}
.btn.ghost { background: transparent; color: var(--pine); }
.btn.danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn.small { padding: 8px 12px; font-size: 0.82rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.topbar { border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; }
.brand b { font-family: var(--display); font-stretch: 70%; font-weight: 900; font-size: 1.4rem; }
.brand span { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); letter-spacing: .08em; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin-left: auto; }
.lang button { font: 600 0.72rem/1 var(--mono); padding: 8px 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.rows { display: grid; gap: 0; }
.rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rows > div:last-child { border-bottom: 0; }
.rows dt, .rows .k { color: var(--muted); }
.rows .v { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.pill { display: inline-block; font: 600 0.72rem/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: 5px 8px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.pill.confirmed { color: var(--ok); }
.pill.pending, .pill.requested { color: var(--warn); }
.pill.conflict { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); }
.pill.cancelled, .pill.expired, .pill.failed { color: var(--muted); }
input, select, textarea {
  font: 400 1rem/1.4 var(--body); color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%; min-width: 0;
}
label.f { display: grid; gap: 6px; font: 500 0.72rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
label.f > input, label.f > select, label.f > textarea { text-transform: none; letter-spacing: 0; font-family: var(--body); color: var(--ink); }
.err { color: var(--danger); font-size: 0.9rem; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
