:root {
  color-scheme: dark;
  --canvas: #171816;
  --panel: #252723;
  --panel-elevated: #2d302a;
  --panel-active: #3a3c35;
  --line: #45483f;
  --line-strong: #676b60;
  --text: #f1eee5;
  --text-muted: #c4c0b5;
  --text-subtle: #aaa99d;
  --accent: #cb8667;
  --btn-ink: #171816;
  --btn-surface: #eeece4;
  --btn-surface-hover: #d9d5c9;
  --badge-surface: #393a33;
  --badge-border: #676b60;
  --badge-text: #f1eee5;
  --status-ok-bg: #2a3930;
  --status-ok-border: #536f5d;
  --status-ok-text: #c2d3c1;
  --status-pending-bg: #493a32;
  --status-pending-border: #826654;
  --status-pending-text: #efbc9d;
}

.app-top-bar { min-height: 82px; padding-inline: max(24px, calc((100vw - 1360px) / 2)); }
.app-brand { color: var(--text); text-decoration: none; }
.app-brand:hover .brand-monogram { color: var(--accent); }
.app-brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.brand-monogram { font-size: 25px; font-weight: 620; letter-spacing: -.03em; }
.brand-tag { font-size: 14px; }
.btn-back-portfolio { color: var(--text); border-color: var(--line-strong); font-size: 14px; }
.page-frame, .site-credit { max-width: 1360px; }
.page-frame { padding-top: 42px; }
.hero-block h1 { font-weight: 470; letter-spacing: -.025em; }
.hero-summary { color: var(--text-muted); font-size: 16px; }
.btn-mode.selected { border-color: var(--accent); background: #42362f; }
.btn-date-cell.selected, .btn-slot-row.selected, .btn-cal-action {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--btn-ink);
}
.btn-cal-action:hover { background: #e0a184; border-color: #e0a184; }
.btn-cal-action:active { background: #b97659; border-color: #b97659; }
.btn-filter-pill.active { border-color: var(--accent); background: #42362f; }
.stat-figure { font-weight: 500; }
.matrix-table { font-size: 14px; }
.matrix-table th { font-size: 13px; }
.status-chip.ok, .status-chip.pending { border-color: transparent; }
.booking-result { color: var(--status-ok-text); }
.key-hint { color: var(--text-muted); }
::selection { background: var(--accent); color: var(--canvas); }
.btn-back-portfolio:focus-visible,
.btn-mode:focus-visible,
.btn-date-cell:focus-visible,
.btn-month-nav:focus-visible,
.btn-slot-row:focus-visible,
.btn-cal-action:focus-visible,
.cal-control:focus-visible,
.btn-table-action:focus-visible,
.btn-filter-pill:focus-visible { outline-color: var(--accent); }

@media (max-width: 640px) {
  .app-top-bar { min-height: 70px; padding-inline: 16px; }
  .brand-monogram { font-size: 23px; }
  .brand-tag { display: none; }
  .mode-toggle-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .btn-mode { text-align: center; }
  .page-frame { padding-top: 24px; }
}
