/* Bay Sauna — component layer on top of the Venture token system (styles.css). Every value is a token. */
:root {
  /* Charcoal ramp for the dark theme (corporate trust: navy & charcoal) */
  --charcoal-950: #0B1220;
  --charcoal-900: #111A2E;
  --charcoal-800: #1B2740;
  --charcoal-700: #2A3A5C;
  --charcoal-border: rgba(255, 255, 255, 0.12);
  /* Status tints (text/background pairs measured ≥ 4.5:1) */
  --ok-100: #DCFCE7;  --ok-800: #14532D;
  --warn-100: #FEF3C7; --warn-800: #78350F;
  --bad-100: #FEE2E2;  --bad-800: #7F1D1D;
  --info-100: var(--blue-100); --info-800: var(--blue-800);
  --hero-overlay: linear-gradient(180deg, rgba(4, 38, 74, 0.72) 0%, rgba(11, 18, 32, 0.86) 100%);
  --surface-input: var(--white);
  --text-inverse: var(--white);
  --shadow-focus: var(--focus-ring);
  --nav-height: 64px;
  --touch: 44px;
  /* Measured contrast: white type over the gradient's bright end (blue-400) falls to ~3.5:1, so the
     surfaces that carry white text move to the darker tint of the same navy ramp. */
  --surface-navbar: var(--blue-900);
  --surface-footer: var(--blue-900);
  --action-primary-bg: var(--blue-800);
}
[data-theme="dark"] {
  --surface-page: var(--charcoal-950);
  --surface-section-light: var(--charcoal-900);
  --surface-card: var(--charcoal-800);
  --surface-badge: var(--charcoal-700);
  --surface-input: var(--charcoal-900);
  --border-card: var(--charcoal-border);
  --border-hairline: var(--charcoal-border);
  --text-heading: var(--white);
  --text-body: rgba(255, 255, 255, 0.88);
  --text-muted: rgba(255, 255, 255, 0.72);
  --text-link: var(--blue-300);
  --text-link-hover: var(--blue-100);
  --text-brand: var(--blue-300);
  --text-accent: var(--violet-400);
  --action-secondary-bg: var(--blue-500);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-card-hover: 0 4px 8px rgba(0, 0, 0, 0.45), 0 12px 28px rgba(0, 0, 0, 0.45);
  --gradient-section-light: linear-gradient(180deg, var(--charcoal-900) 0%, var(--charcoal-950) 100%);
  --ok-100: #14532D;  --ok-800: #DCFCE7;
  --warn-100: #78350F; --warn-800: #FEF3C7;
  --bad-100: #7F1D1D;  --bad-800: #FEE2E2;
  --info-100: var(--blue-800); --info-800: var(--blue-100);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--surface-page); color: var(--text-body); font-family: var(--font-body);
  font-size: var(--text-body-md); line-height: var(--line-height-normal); min-height: 100vh; overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text-heading); line-height: var(--line-height-tight); letter-spacing: var(--letter-spacing-tight); margin: 0 0 var(--space-4); }
h1 { font-size: clamp(3rem, 6vw, var(--text-display-1)); font-weight: var(--font-weight-extrabold); }
h2 { font-size: clamp(1.9rem, 4vw, var(--text-display-2)); font-weight: var(--font-weight-bold); }
h3 { font-size: clamp(1.25rem, 2.4vw, var(--text-display-3)); font-weight: var(--font-weight-semibold); }
p { margin: 0 0 var(--space-4); }
a { color: var(--text-link); text-decoration: none; }
a:hover { color: var(--text-link-hover); text-decoration: underline; }
:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: var(--radius-sm); }
img { max-width: 100%; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon.sm { width: 18px; height: 18px; }
.money { white-space: nowrap; font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-muted); }
.small { font-size: var(--text-body-sm); }
.caption { font-size: var(--text-caption); }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--content-max-width); margin: 0 auto; padding: 0 var(--space-4); }
@media (min-width: 768px) { .container { padding: 0 var(--section-padding-x); } }
.section { padding: var(--space-12) 0; }
@media (min-width: 768px) { .section { padding: var(--space-20) 0; } }
.section.alt { background: var(--surface-section-light); }
.section-head { margin-bottom: var(--space-8); max-width: 720px; }
.eyebrow, .section-head .eyebrow { color: var(--text-brand); font-weight: var(--font-weight-semibold); text-transform: uppercase; letter-spacing: 0.08em; font-size: var(--text-caption); margin-bottom: var(--space-2); }
.grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.between { justify-content: space-between; }

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.topnav { position: sticky; top: 0; z-index: 50; background: var(--surface-navbar); color: var(--text-on-dark); box-shadow: var(--shadow-card); }
.topnav .container { display: flex; align-items: center; gap: var(--space-4); min-height: var(--nav-height); }
.brand { display: flex; align-items: center; gap: var(--space-3); color: var(--text-on-dark); font-family: var(--font-display); font-weight: var(--font-weight-bold); font-size: var(--text-body-lg); }
.brand img { height: 36px; width: auto; }
.brand:hover { text-decoration: none; color: var(--text-on-dark); }
.navlinks { display: none; gap: var(--space-1); margin-left: auto; }
.navlinks a, .navlinks button { color: var(--text-on-dark); padding: 0 var(--space-3); min-height: var(--touch); display: inline-flex; align-items: center; gap: var(--space-2); border-radius: var(--radius-sm); font-size: var(--text-body-sm); font-weight: var(--font-weight-medium); background: transparent; border: 0; cursor: pointer; font-family: inherit; }
.navlinks a:hover, .navlinks button:hover { background: rgba(255, 255, 255, 0.12); text-decoration: none; color: var(--text-on-dark); }
.navlinks a.active { background: rgba(255, 255, 255, 0.18); }
@media (min-width: 960px) { .navlinks { display: flex; } .menu-btn { display: none !important; } }
.nav-actions { margin-left: auto; display: flex; gap: var(--space-2); align-items: center; }
@media (min-width: 960px) { .nav-actions { margin-left: 0; } }
.icon-btn { width: var(--touch); height: var(--touch); display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); border: 1px solid rgba(255, 255, 255, 0.25); background: transparent; color: var(--text-on-dark); cursor: pointer; }
.icon-btn:hover { background: rgba(255, 255, 255, 0.12); }
.drawer { display: none; background: var(--blue-900); padding: var(--space-3) var(--space-4) var(--space-5); }
.drawer.open { display: flex; flex-direction: column; gap: var(--space-1); }
.drawer a, .drawer button { color: var(--text-on-dark); min-height: var(--touch); display: flex; align-items: center; gap: var(--space-3); padding: 0 var(--space-3); border-radius: var(--radius-sm); background: transparent; border: 0; font: inherit; cursor: pointer; text-align: left; }
.drawer a.active, .drawer a:hover, .drawer button:hover { background: rgba(255, 255, 255, 0.14); text-decoration: none; }
@media (min-width: 960px) { .drawer { display: none !important; } }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--touch); padding: 0 var(--space-5); border-radius: var(--radius-md); border: 1px solid transparent; font: inherit; font-weight: var(--font-weight-semibold); font-size: var(--text-body-sm); cursor: pointer; transition: transform var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard); text-decoration: none; white-space: nowrap; }
.btn:hover { transform: var(--hover-lift); text-decoration: none; }
.btn:active { transform: var(--press-scale); }
.btn:disabled, .btn[aria-busy="true"] { filter: saturate(0.5); cursor: progress; transform: none; }
.btn-primary { background: var(--action-primary-bg); color: var(--action-primary-text); box-shadow: var(--shadow-button); }
.btn-primary:hover { box-shadow: var(--shadow-button-hover); color: var(--action-primary-text); }
.btn-secondary { background: var(--action-secondary-bg); color: var(--action-secondary-text); }
.btn-secondary:hover { color: var(--action-secondary-text); }
.btn-ghost { background: transparent; color: var(--text-heading); border-color: var(--border-card); }
.btn-ghost:hover { background: var(--surface-section-light); color: var(--text-heading); }
.btn-light { background: var(--white); color: var(--blue-900); }
.btn-outline-light { background: transparent; color: var(--text-on-dark); border-color: var(--text-on-dark-muted); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); color: var(--text-on-dark); }
.featured-badge { background: var(--violet-600); color: var(--white); align-self: flex-start; }
.btn-light:hover { color: var(--blue-900); }
.btn-danger { background: var(--bad-100); color: var(--bad-800); border-color: var(--bad-800); }
.btn-lg { min-height: 52px; padding: 0 var(--space-8); font-size: var(--text-body-md); }
.btn-block { width: 100%; }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card { background: var(--surface-card); border: 1px solid var(--border-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); height: 100%; }
.card.hover:hover { box-shadow: var(--shadow-card-hover); transform: var(--hover-lift); transition: all var(--duration-normal) var(--ease-standard); }
.card h3 { margin-bottom: var(--space-1); }
.card-photo { border-radius: var(--radius-md); aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.badge { display: inline-flex; align-items: center; gap: var(--space-1); padding: 2px var(--space-3); border-radius: var(--radius-pill); font-size: var(--text-caption); font-weight: var(--font-weight-semibold); background: var(--surface-badge); color: var(--text-heading); white-space: nowrap; }
.badge.ok { background: var(--ok-100); color: var(--ok-800); }
.badge.warn { background: var(--warn-100); color: var(--warn-800); }
.badge.bad { background: var(--bad-100); color: var(--bad-800); }
.badge.info { background: var(--info-100); color: var(--info-800); }
.price-card { position: relative; }
.price-card .price-line { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-2); }
.price-card .price { font-family: var(--font-display); font-size: var(--text-display-3); font-weight: var(--font-weight-bold); color: var(--text-heading); white-space: nowrap; }
.price-card .cycle { color: var(--text-muted); font-size: var(--text-body-sm); white-space: nowrap; }
.price-card ul { margin: 0 0 var(--space-4); padding-left: var(--space-5); color: var(--text-body); }
.price-card .btn { margin-top: auto; }
.price-card.featured { border-color: var(--violet-500); box-shadow: var(--shadow-stat-card); }
.kpi { padding: var(--space-5); gap: var(--space-1); }
.kpi .label { color: var(--text-muted); font-size: var(--text-caption); text-transform: uppercase; letter-spacing: 0.06em; font-weight: var(--font-weight-semibold); }
.kpi .value { font-family: var(--font-display); font-size: var(--text-display-3); font-weight: var(--font-weight-bold); color: var(--text-heading); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { position: relative; color: var(--text-on-dark); background-image: var(--hero-overlay), url('/assets/stock-1.webp'); background-size: cover; background-position: center; padding: var(--space-16) 0 var(--space-12); min-height: 70vh; display: flex; align-items: center; }
@media (min-width: 768px) { .hero { padding: var(--space-24) 0 var(--space-20); } }
.hero h1 { color: var(--text-on-dark); max-width: 14ch; }
.hero p.lead { font-size: var(--text-body-lg); color: var(--text-on-dark-muted); max-width: 52ch; }
.hero .badge { background: rgba(255, 255, 255, 0.16); color: var(--text-on-dark); }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.hero-facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-top: var(--space-10); max-width: 560px; }
.hero-facts div { border-left: 2px solid rgba(255, 255, 255, 0.4); padding-left: var(--space-3); }
.hero-facts strong { display: block; font-family: var(--font-display); font-size: var(--text-body-lg); }
.photo-band { border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 16/9; }
.photo-band img { width: 100%; height: 100%; object-fit: cover; }

/* ── Forms ───────────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: var(--space-1); }
.field label, .legend { font-weight: var(--font-weight-medium); font-size: var(--text-body-sm); color: var(--text-heading); }
.input, select.input, textarea.input { width: 100%; min-height: var(--touch); padding: var(--space-2) var(--space-3); border: 1px solid var(--border-card); border-radius: var(--radius-sm); background: var(--surface-input); color: var(--text-heading); font: inherit; font-size: var(--text-body-md); }
textarea.input { min-height: 120px; resize: vertical; }
.input:focus { outline: none; box-shadow: var(--shadow-focus); border-color: var(--blue-500); }
.field .err { color: var(--bad-800); font-size: var(--text-caption); display: none; }
[data-theme="dark"] .field .err { color: var(--bad-800); }
.field.invalid .err { display: block; }
.field.invalid .input { border-color: var(--bad-800); }
.help { color: var(--text-muted); font-size: var(--text-caption); }
.choices { display: grid; gap: var(--space-2); }
.choice { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3) var(--space-4); border: 1px solid var(--border-card); border-radius: var(--radius-md); cursor: pointer; background: var(--surface-card); min-height: var(--touch); }
.choice:has(input:checked) { border-color: var(--blue-500); box-shadow: 0 0 0 1px var(--blue-500); }
.choice input { margin-top: 4px; width: 20px; height: 20px; accent-color: var(--blue-600); }
.choice .t { font-weight: var(--font-weight-semibold); color: var(--text-heading); }
.error-summary { background: var(--bad-100); color: var(--bad-800); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); }
.notice { background: var(--info-100); color: var(--info-800); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); }
.notice.warn { background: var(--warn-100); color: var(--warn-800); }
.notice.ok { background: var(--ok-100); color: var(--ok-800); }
.steps { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-6); }
.steps span { padding: var(--space-1) var(--space-3); border-radius: var(--radius-pill); font-size: var(--text-caption); background: var(--surface-badge); color: var(--text-heading); }
.steps span.done { background: var(--ok-100); color: var(--ok-800); }
.steps span.now { background: var(--blue-900); color: var(--text-on-dark); }

/* ── Slots ───────────────────────────────────────────────────────────────── */
.slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
@media (min-width: 640px) { .slots { grid-template-columns: repeat(4, 1fr); } }
.slot { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: var(--space-3); border: 1px solid var(--border-card); border-radius: var(--radius-md); background: var(--surface-card); color: var(--text-heading); cursor: pointer; font: inherit; min-height: 64px; text-align: left; }
.slot strong { font-family: var(--font-display); font-size: var(--text-body-lg); }
.slot .seats { font-size: var(--text-caption); color: var(--text-muted); }
.slot:hover { border-color: var(--blue-500); }
.slot.selected { border-color: var(--blue-500); box-shadow: 0 0 0 2px var(--blue-500); }
.slot:disabled { color: var(--text-muted); background: var(--surface-section-light); border-style: dashed; cursor: not-allowed; }
.slot.full .seats { color: var(--bad-800); }
.daypick { display: flex; gap: var(--space-2); overflow-x: auto; padding-bottom: var(--space-2); }
.daypick button { flex: none; min-width: 64px; min-height: var(--touch); padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); border: 1px solid var(--border-card); background: var(--surface-card); color: var(--text-heading); font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; }
.daypick button.selected { background: var(--blue-900); color: var(--text-on-dark); border-color: var(--blue-900); }
.daypick small { font-size: var(--text-caption); opacity: 0.8; }

/* ── Tables / lists ──────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--border-card); border-radius: var(--radius-md); background: var(--surface-card); }
table { width: 100%; border-collapse: collapse; font-size: var(--text-body-sm); min-width: 560px; }
th, td { padding: var(--space-3) var(--space-4); text-align: left; border-bottom: 1px solid var(--border-hairline); vertical-align: top; color: var(--text-body); }
th { position: sticky; top: 0; background: var(--surface-section-light); color: var(--text-heading); font-weight: var(--font-weight-semibold); white-space: nowrap; cursor: pointer; user-select: none; }
th[aria-sort="ascending"]::after { content: " \2191"; } th[aria-sort="descending"]::after { content: " \2193"; }
tr:last-child td { border-bottom: 0; }
.table-tools { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; justify-content: space-between; margin-bottom: var(--space-3); }
.table-tools .input { max-width: 320px; }
.pager { display: flex; gap: var(--space-2); align-items: center; justify-content: flex-end; padding: var(--space-3); font-size: var(--text-caption); color: var(--text-muted); }
.pager button { min-width: var(--touch); min-height: 36px; border: 1px solid var(--border-card); background: var(--surface-card); color: var(--text-heading); border-radius: var(--radius-sm); cursor: pointer; }
.list { display: flex; flex-direction: column; gap: var(--space-3); }
.list-item { display: flex; gap: var(--space-4); align-items: center; justify-content: space-between; padding: var(--space-4); border: 1px solid var(--border-card); border-radius: var(--radius-md); background: var(--surface-card); flex-wrap: wrap; }
.list-item .main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 200px; }
.list-item .main strong { color: var(--text-heading); }
.skeleton { background: linear-gradient(90deg, var(--surface-section-light) 25%, var(--border-card) 50%, var(--surface-section-light) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--radius-sm); height: 20px; }
.skeleton.row { height: 56px; border-radius: var(--radius-md); margin-bottom: var(--space-3); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.empty { text-align: center; padding: var(--space-10) var(--space-4); border: 1px dashed var(--border-card); border-radius: var(--radius-lg); color: var(--text-muted); display: flex; flex-direction: column; gap: var(--space-3); align-items: center; }

/* ── QR ──────────────────────────────────────────────────────────────────── */
.qr-box { background: var(--white); padding: var(--space-4); border-radius: var(--radius-lg); display: inline-block; border: 1px solid var(--border-card); }
.qr-box svg { width: 220px; height: 220px; display: block; }
.qr-code { font-family: var(--font-display); font-weight: var(--font-weight-bold); letter-spacing: 0.06em; color: var(--text-heading); }
.scan-big { min-height: 96px; font-size: var(--text-body-lg); border-radius: var(--radius-xl); }
.scale { display: flex; gap: var(--space-2); }
.scale button { flex: 1; min-height: var(--touch); border-radius: var(--radius-md); border: 1px solid var(--border-card); background: var(--surface-card); color: var(--text-heading); font: inherit; font-weight: var(--font-weight-semibold); cursor: pointer; }
.scale button.selected { background: var(--blue-900); color: var(--text-on-dark); border-color: var(--blue-900); }

/* ── Toast + dialog ──────────────────────────────────────────────────────── */
.toasts { position: fixed; left: 50%; bottom: var(--space-6); transform: translateX(-50%); display: flex; flex-direction: column; gap: var(--space-2); z-index: 100; width: min(92vw, 420px); }
.toast { background: var(--slate-900); color: var(--white); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); box-shadow: var(--shadow-card-hover); display: flex; gap: var(--space-3); align-items: center; font-size: var(--text-body-sm); }
.toast.ok { background: var(--ok-800); color: var(--ok-100); } .toast.bad { background: var(--bad-800); color: var(--bad-100); }
[data-theme="dark"] .toast.ok { background: var(--ok-100); color: var(--ok-800); } [data-theme="dark"] .toast.bad { background: var(--bad-100); color: var(--bad-800); }
dialog.dlg { border: 0; border-radius: var(--radius-lg); padding: 0; max-width: min(92vw, 520px); width: 100%; background: var(--surface-card); color: var(--text-body); box-shadow: var(--shadow-card-hover); }
dialog.dlg::backdrop { background: rgba(11, 18, 32, 0.6); }
dialog.dlg .dlg-body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
dialog.dlg h3 { margin: 0; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer { background: var(--surface-footer); color: var(--text-on-dark); padding: var(--space-12) 0 var(--space-8); margin-top: auto; }
.footer a { color: var(--text-on-dark); }
.footer .grid { gap: var(--space-8); }
.footer h4 { color: var(--text-on-dark); font-size: var(--text-body-md); margin-bottom: var(--space-3); }
.footer p, .footer li { color: var(--text-on-dark-muted); font-size: var(--text-body-sm); }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.footer .legal { border-top: 1px solid rgba(255, 255, 255, 0.2); margin-top: var(--space-8); padding-top: var(--space-5); display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: space-between; font-size: var(--text-caption); color: var(--text-on-dark-muted); }
.trust { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.trust span { display: inline-flex; gap: var(--space-2); align-items: center; padding: var(--space-1) var(--space-3); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: var(--radius-pill); font-size: var(--text-caption); }

/* ── Admin shell ─────────────────────────────────────────────────────────── */
.admin { display: grid; min-height: 100vh; grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
@media (min-width: 960px) { .admin { grid-template-columns: 260px 1fr; grid-template-rows: 1fr; } }
.sidebar { background: var(--blue-900); color: var(--text-on-dark); display: flex; flex-direction: column; padding: var(--space-4); gap: var(--space-4); }
@media (min-width: 960px) { .sidebar { position: sticky; top: 0; height: 100vh; } }
.sidebar nav { display: none; flex-direction: column; gap: var(--space-1); }
.sidebar nav.open, .sidebar .always { display: flex; }
@media (min-width: 960px) { .sidebar nav { display: flex; } }
.sidebar nav a { color: var(--text-on-dark); display: flex; gap: var(--space-3); align-items: center; min-height: var(--touch); padding: 0 var(--space-3); border-radius: var(--radius-sm); font-size: var(--text-body-sm); font-weight: var(--font-weight-medium); }
.sidebar nav a:hover, .sidebar nav a.active { background: rgba(255, 255, 255, 0.14); text-decoration: none; }
.sidebar .who { margin-top: auto; font-size: var(--text-caption); color: var(--text-on-dark-muted); display: flex; flex-direction: column; gap: var(--space-2); }
.admin-main { display: flex; flex-direction: column; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-4); border-bottom: 1px solid var(--border-card); background: var(--surface-card); position: sticky; top: 0; z-index: 10; }
.topbar h2 { font-size: var(--text-body-lg); margin: 0; }
.admin-content { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-6); }
@media (min-width: 768px) { .admin-content { padding: var(--space-8); } }
.chart { width: 100%; height: auto; }
.chart text { fill: var(--text-muted); font-size: 12px; font-family: var(--font-body); }
.chart rect { fill: var(--blue-500); }
.chart rect:hover { fill: var(--violet-500); }
.tabs { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.tabs button { min-height: var(--touch); padding: 0 var(--space-4); border-radius: var(--radius-pill); border: 1px solid var(--border-card); background: var(--surface-card); color: var(--text-heading); font: inherit; cursor: pointer; }
.tabs button.active { background: var(--blue-900); color: var(--text-on-dark); border-color: var(--blue-900); }
.split { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; } .split.wide-left { grid-template-columns: 3fr 2fr; } }
@media print { .topnav, .sidebar, .topbar, .footer, .no-print { display: none !important; } .admin { grid-template-columns: 1fr; } }
