:root {
  --accent: #7a2e2e;
  --accent-ink: #fff;
  --accent-fg: var(--accent);      /* the accent used as text (links, prices) */
  --tint: 7%;                      /* how much accent shows in light accent backgrounds */
  --ink: #1f1d1a;
  --muted: #6d675f;
  --faint: #a39b8f;
  --line: #e4ded5;
  --line-soft: #f0ece6;
  --line-strong: #cfc6b8;
  --paper: #fbf9f6;                /* guest pages */
  --bg: #f3f1ed;                   /* staff app */
  --card: #ffffff;
  --field: #ffffff;
  --soft: #faf8f5;
  --soft-2: #f0ece6;
  --hover: #f6f3ef;
  --band: #ebe7e1;
  --grid-line: #e2ddd5;
  --row-line: #ebe6df;
  --stripe-a: #ece8e2;
  --stripe-b: #e4dfd8;
  --ok: #2f7d4f;
  --warn: #b7791f;
  --bad: #b23b3b;
  --ok-bg: #e9f6ee; --ok-line: #bfe3cc; --ok-ink: #1e5a37;
  --warn-bg: #fff7e6; --warn-line: #f1dcae; --warn-ink: #8a4b00;
  --bad-bg: #fdecec; --bad-line: #f3c9c9; --bad-ink: #a32626;
  --info-bg: #eef4fb; --info-line: #c9dbf0; --info-ink: #1f4f86;
  --req-bg: #f3eefc; --req-line: #d9cdf3; --req-ink: #7c5cc4;
  --note-bg: #fffbea; --note-line: #f0e2a8;
  --ft-bg: #f4f6f9; --ft-line: #9aa5b4;
  --ft-free: #eef8f1; --ft-soon: #fff6e5; --ft-booked: #e8f0fa; --ft-arrived: #fdf0db;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(30, 20, 10, .06), 0 6px 24px rgba(30, 20, 10, .06);
  color-scheme: light;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
}
/* Dark mode: follows the device unless a page or person picks light or dark (data-theme on <html>). Never when printing. */
@media screen and (prefers-color-scheme: dark) { :root:not([data-theme=light]) {
  --accent-fg: color-mix(in srgb, var(--accent) 45%, #fff); --tint: 16%;
  --ink: #ebe7e1; --muted: #a8a196; --faint: #7a746b;
  --line: #30353c; --line-soft: #262b31; --line-strong: #4a515a;
  --paper: #121417; --bg: #101215; --card: #1a1d22; --field: #14171b;
  --soft: #1f2329; --soft-2: #262b32; --hover: #242930; --band: #22272e;
  --grid-line: #2a2f36; --row-line: #22262c; --stripe-a: #1c2025; --stripe-b: #23282e;
  --ok: #4fb87b; --warn: #e0a94a; --bad: #ef6b6b;
  --ok-bg: #16301f; --ok-line: #2b5b3d; --ok-ink: #8fd6aa;
  --warn-bg: #33280f; --warn-line: #5e4a1d; --warn-ink: #f2c46d;
  --bad-bg: #3a1a1a; --bad-line: #6a2c2c; --bad-ink: #f4a3a3;
  --info-bg: #15263a; --info-line: #2a4a6e; --info-ink: #9cc3f0;
  --req-bg: #271f3d; --req-line: #45386d; --req-ink: #b9a3f0;
  --note-bg: #2c2712; --note-line: #574b1d;
  --ft-bg: #1f242b; --ft-line: #5b6573;
  --ft-free: #14301f; --ft-soon: #33270f; --ft-booked: #132a45; --ft-arrived: #352509;
  --shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 6px 24px rgba(0, 0, 0, .35);
  color-scheme: dark;
} }
@media screen { :root[data-theme=dark] {
  --accent-fg: color-mix(in srgb, var(--accent) 45%, #fff); --tint: 16%;
  --ink: #ebe7e1; --muted: #a8a196; --faint: #7a746b;
  --line: #30353c; --line-soft: #262b31; --line-strong: #4a515a;
  --paper: #121417; --bg: #101215; --card: #1a1d22; --field: #14171b;
  --soft: #1f2329; --soft-2: #262b32; --hover: #242930; --band: #22272e;
  --grid-line: #2a2f36; --row-line: #22262c; --stripe-a: #1c2025; --stripe-b: #23282e;
  --ok: #4fb87b; --warn: #e0a94a; --bad: #ef6b6b;
  --ok-bg: #16301f; --ok-line: #2b5b3d; --ok-ink: #8fd6aa;
  --warn-bg: #33280f; --warn-line: #5e4a1d; --warn-ink: #f2c46d;
  --bad-bg: #3a1a1a; --bad-line: #6a2c2c; --bad-ink: #f4a3a3;
  --info-bg: #15263a; --info-line: #2a4a6e; --info-ink: #9cc3f0;
  --req-bg: #271f3d; --req-line: #45386d; --req-ink: #b9a3f0;
  --note-bg: #2c2712; --note-line: #574b1d;
  --ft-bg: #1f242b; --ft-line: #5b6573;
  --ft-free: #14301f; --ft-soon: #33270f; --ft-booked: #132a45; --ft-arrived: #352509;
  --shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 6px 24px rgba(0, 0, 0, .35);
  color-scheme: dark;
} }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent-fg); }
.btn { text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 9px 14px; font-weight: 600;
  min-height: 40px; transition: background .12s, border-color .12s, transform .05s;
}
.btn:hover { border-color: var(--line-strong); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--bad); }
.btn.small { min-height: 30px; padding: 4px 10px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
label.field { display: block; margin: 0 0 14px; }
label.field > span { display: block; font-size: 13px; font-weight: 600; margin: 0 0 6px; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=time], input[type=url], input:not([type]), select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: var(--field); min-height: 42px;
}
input:focus, select:focus, textarea:focus, .btn:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 1px; }
textarea { min-height: 80px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; font-size: 14px; }
.check input { flex: none; margin: 3px 0 0; width: 18px; height: 18px; accent-color: var(--accent); }
.error { background: var(--bad-bg); color: var(--bad); border: 1px solid var(--bad-line); padding: 10px 12px; border-radius: 8px; margin: 10px 0; font-size: 14px; }
.notice { background: var(--warn-bg); border: 1px solid var(--warn-line); padding: 10px 12px; border-radius: 8px; margin: 10px 0; font-size: 14px; }
.success { background: var(--ok-bg); border: 1px solid var(--ok-line); padding: 10px 12px; border-radius: 8px; margin: 10px 0; font-size: 14px; color: var(--ok-ink); }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spinner { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
