:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #06100b;
  --panel: #101a15;
  --panel-2: #15231c;
  --line: rgba(255, 255, 255, 0.1);
  --gold: #d6b35a;
  --text: #f6f4ed;
  --muted: rgba(246, 244, 237, 0.68);
  --green: #2b7a4b;
  --red: #b64b4b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(35, 115, 72, 0.35), transparent 34rem),
    linear-gradient(135deg, #07130c, #020403 64%);
}

button,
select,
input {
  font: inherit;
}

.shell {
  width: min(1280px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1;
}

h2 {
  font-size: 1.2rem;
}

.status-pill {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
}

.status-pill.live {
  color: #dff5e8;
  border-color: rgba(99, 201, 132, 0.42);
  background: rgba(43, 122, 75, 0.28);
}

.status-pill.error {
  color: #ffe5e5;
  border-color: rgba(214, 86, 86, 0.48);
  background: rgba(182, 75, 75, 0.25);
}

.module-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 6px;
  padding: 6px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.module-button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-weight: 850;
  cursor: pointer;
}

.module-button.active {
  color: #0a110d;
  background: var(--gold);
}

.page-menu {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.page-button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  text-align: left;
  background: rgba(16, 34, 24, 0.88);
  cursor: pointer;
}

.page-button:hover,
.page-button.active {
  border-color: rgba(214, 179, 90, 0.64);
  background: rgba(18, 54, 32, 0.95);
}

.page-button strong,
.page-button small {
  display: block;
}

.page-button strong {
  font-size: 1rem;
  line-height: 1.1;
}

.page-button small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.menu-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #0a110d;
  background: var(--gold);
  font-size: 0.82rem;
  font-weight: 950;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metric-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.metric-card {
  padding: 18px;
}

.metric-card span,
.metric-card small {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.metric-card strong {
  display: block;
  margin: 6px 0 2px;
  color: var(--gold);
  font-size: 2.15rem;
  line-height: 1;
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.7fr);
  gap: 18px;
  align-items: start;
}

.page-section {
  display: none;
}

.page-section.active {
  display: block;
}

.panel {
  overflow: hidden;
}

.hero-panel .booking-card {
  padding: 18px;
  background: rgba(255, 255, 255, 0.065);
}

.hero-panel .booking-title {
  font-size: 1.22rem;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
}

.panel-header p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

select {
  min-width: 150px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #111b16;
}

input {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #111b16;
  outline: none;
}

input:focus,
select:focus {
  border-color: rgba(214, 179, 90, 0.75);
  box-shadow: 0 0 0 3px rgba(214, 179, 90, 0.12);
}

.toolbar-row {
  display: flex;
  gap: 10px;
}

.booking-list,
.compact-list,
.report-list {
  padding: 12px;
}

.quick-form {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.12);
}

.horizontal-form {
  grid-template-columns: 1.2fr 0.9fr 0.7fr 0.7fr auto;
}

/* The service form gains extra controls in edit mode (order, active, cancel);
   flex lets them flow/wrap instead of breaking the fixed grid columns. */
#serviceForm {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
#serviceForm > input[type="text"],
#serviceForm > input:not([type]),
#serviceForm > #serviceName,
#serviceForm > #serviceDescription {
  flex: 1 1 160px;
  min-width: 120px;
}
#serviceForm > #serviceDuration,
#serviceForm > #servicePrice,
#serviceForm > #serviceOrder {
  flex: 0 1 90px;
  width: 90px;
}
.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
}
.inline-check input { width: auto; min-height: 0; }

.calendar-form {
  grid-template-columns: 1.1fr 0.75fr 1fr 1fr 1fr auto;
}

.quick-form button,
.booking-actions button,
.compact-actions button {
  min-height: 38px;
  border: 1px solid rgba(214, 179, 90, 0.36);
  border-radius: 8px;
  color: #0a110d;
  background: var(--gold);
  font-weight: 850;
  cursor: pointer;
}

.quick-form button:hover,
.booking-actions button:hover,
.compact-actions button:hover {
  filter: brightness(1.08);
}

.quick-form button:disabled,
.booking-actions button:disabled,
.compact-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.time-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.booking-card,
.compact-row,
.report-row {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.booking-card + .booking-card,
.compact-row + .compact-row,
.report-row + .report-row {
  margin-top: 10px;
}

.booking-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.booking-title,
.compact-title,
.report-title {
  font-weight: 850;
}

.booking-meta,
.compact-meta,
.report-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.report-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.report-amount {
  color: var(--gold);
  font-size: 1.15rem;
  font-weight: 950;
}

.booking-actions,
.compact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}

.booking-actions button.secondary,
.compact-actions button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line);
}

.booking-actions button.danger,
.compact-actions button.danger {
  color: #fff;
  background: var(--red);
  border-color: rgba(255, 255, 255, 0.14);
}

.badge {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  color: #0a110d;
  background: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
}

.badge.cancelled,
.badge.noShow {
  color: #fff;
  background: var(--red);
}

.badge.completed {
  color: #fff;
  background: var(--green);
}

.side-stack {
  display: grid;
  gap: 18px;
}

.empty {
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

/* ─── Booking flow form ─────────────────────────────────────── */

.booking-flow-form {
  display: grid;
  gap: 0;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.14);
}

.flow-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.flow-row + .flow-row {
  margin-top: 14px;
}

.flow-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1 1 180px;
}

.flow-field--wide  { flex: 2 1 280px; }
.flow-field--narrow { flex: 0 1 190px; }
.flow-field--action { flex: 0 0 auto; }

.flow-field label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

.flow-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  color: #0a110d;
  font-size: 0.68rem;
  font-weight: 950;
  flex-shrink: 0;
}

.flow-field input,
.flow-field select {
  width: 100%;
}

.flow-field input[readonly] {
  opacity: 0.6;
  cursor: default;
  background: rgba(255, 255, 255, 0.04);
}

.flow-field--action button {
  min-height: 42px;
  padding: 0 22px;
  border: 1px solid rgba(214, 179, 90, 0.42);
  border-radius: 8px;
  color: #0a110d;
  background: var(--gold);
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}

.flow-field--action button:hover {
  filter: brightness(1.08);
}

/* ────────────────────────────────────────────────────────────── */

@media (max-width: 920px) {
  .metrics-grid,
  .layout-grid,
  .page-menu,
  .horizontal-form,
  .calendar-form {
    grid-template-columns: 1fr;
  }

  .flow-row {
    flex-direction: column;
  }

  .flow-field,
  .flow-field--wide,
  .flow-field--narrow {
    flex: 1 1 auto;
    width: 100%;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .module-switch {
    display: grid;
  }
}

/* ===== Login gate ===== */
.login-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(214, 179, 90, 0.12), transparent 60%),
    var(--bg);
  z-index: 50;
}
.login-card {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.login-card h2 {
  margin: 2px 0 0;
  font-size: 26px;
  color: var(--text);
}
.login-sub {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
}
.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.login-field input {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 15px;
}
.login-field input:focus {
  outline: none;
  border-color: var(--gold);
}
.login-error {
  margin: 0;
  color: #ffb4b4;
  font-size: 13px;
}
.login-card button {
  margin-top: 6px;
  padding: 13px;
  border: none;
  border-radius: 12px;
  background: var(--gold);
  color: #1c1405;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.login-card button:disabled {
  opacity: 0.6;
  cursor: default;
}

/* topbar right cluster + logout */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.staff-label {
  color: var(--muted);
  font-size: 13px;
}
.logout-button {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}
.logout-button:hover {
  border-color: var(--red);
  color: #ffd9d9;
}

/* ---- Member combobox (blended club roster + shop client list) ---- */
/* The panel clips overflow for rounded corners; the booking panel must NOT,
   or the member dropdown (incl. the "Add new client" row at its bottom) gets
   cut off at the panel edge and can't be clicked. */
.panel:has(.booking-flow-form) { overflow: visible; }
.flow-field.combo { position: relative; }
.combo-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 40;
  margin-top: 4px;
  max-height: 260px;
  overflow-y: auto;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}
/* ⚠️ A class that declares `display` BEATS the browser's built-in
   `[hidden] { display: none }`, so `el.hidden = true` silently does nothing and
   the element stays on screen. This file already patched that by hand for
   .combo-results / .modal-overlay / .modal-error / .form-hint / .booking-totals —
   and missed .modal-field, which left the trainer-only "Charge per 30 minutes"
   and "Members per shared slot" fields showing on masseuses and barbers. The
   capacity box then read 3 (the trainer default), and saving did nothing because
   the save path only writes those two fields for trainer modules — so it sprang
   back to 3 every time. One global rule instead of chasing each class. */
[hidden] { display: none !important; }

.combo-results[hidden] { display: none; }
.combo-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
}
.combo-row:last-child { border-bottom: none; }
.combo-row:hover, .combo-row.active { background: rgba(214, 179, 90, 0.12); }
.combo-row .combo-name { color: var(--text); font-weight: 600; }
.combo-row .combo-meta { color: var(--muted); font-size: 0.82rem; white-space: nowrap; }
.combo-row .combo-tag {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gold);
  border: 1px solid rgba(214, 179, 90, 0.4);
  border-radius: 999px;
  padding: 1px 7px;
  margin-left: 6px;
}
.combo-row--add { color: var(--gold); font-weight: 700; justify-content: flex-start; }
.combo-empty { padding: 10px 12px; color: var(--muted); font-size: 0.85rem; }

/* ---- Add-client modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.62);
  padding: 20px;
}
.modal-overlay[hidden] { display: none; }
.modal-card {
  width: 100%;
  max-width: 420px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.modal-card h3 { margin: 0 0 4px; color: var(--gold); }
.modal-sub { margin: 0 0 16px; color: var(--muted); font-size: 0.85rem; }
.modal-field { display: block; margin-bottom: 12px; color: var(--muted); font-size: 0.82rem; }
.modal-field input {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 10px 12px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  font-size: 0.95rem;
}
.modal-error { color: #ffb4b4; font-size: 0.82rem; margin: 4px 0 10px; }
.modal-error[hidden] { display: none; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.btn-primary, .btn-secondary {
  padding: 10px 18px;
  border-radius: 9px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--line);
}
.btn-primary { background: var(--gold); color: #1a1206; border-color: var(--gold); }
.btn-primary:disabled { opacity: 0.55; cursor: default; }
.btn-secondary { background: transparent; color: var(--muted); }
.btn-secondary:hover { color: var(--text); }

/* ---- Staff detail: per-hour charge + per-weekday working hours ---- */
.modal-card--wide { max-width: 560px; max-height: 88vh; overflow-y: auto; }
/* Seven day-rows push Save off-screen on a laptop — keep it reachable. */
.modal-card--wide .modal-actions {
  position: sticky;
  bottom: -22px;
  margin-top: 14px;
  padding: 12px 0;
  background: var(--panel);
}
.modal-section-label {
  margin: 18px 0 8px;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.modal-hint {
  margin: -2px 0 10px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}
.blackout-add {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.blackout-add input[type="date"],
.blackout-add input[type="text"] {
  flex: 1 1 150px;
  min-width: 120px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-size: 0.88rem;
}
.blackout-add button { flex: 0 0 auto; }
.blackout-list { margin-top: 10px; display: grid; gap: 6px; }
.blackout-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  font-size: 0.86rem;
}
.blackout-item .blackout-when { color: var(--text); font-weight: 600; }
.blackout-item .blackout-why { color: var(--muted); font-size: 0.8rem; }
.blackout-item button {
  flex: 0 0 auto;
  background: transparent;
  border: 1px solid var(--border);
  color: #ffb4b4;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 0.8rem;
}
.blackout-empty { color: var(--muted); font-size: 0.82rem; padding: 4px 0; }
.day-grid { display: grid; gap: 8px; }
.day-row {
  display: grid;
  grid-template-columns: 92px 1fr 84px;
  align-items: start;
  gap: 8px;
  padding: 8px 10px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.day-row.is-closed { opacity: 0.5; }
.day-row .day-name { color: var(--text); font-size: 0.88rem; font-weight: 600; padding-top: 8px; }
/* A day holds one or more time blocks (start–end + a per-block capacity). */
.day-blocks { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.time-block { display: flex; align-items: center; gap: 6px; }
.time-block .tb-sep { color: var(--muted); flex: 0 0 auto; }
.day-row input[type="time"] {
  flex: 1 1 0;
  min-width: 0;
  padding: 7px 9px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
}
.day-row input[type="number"].day-cap {
  flex: 0 0 54px;
  width: 54px;
  padding: 7px 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
  text-align: center;
}
.time-block .tb-remove {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  padding: 0;
  line-height: 1;
  background: transparent;
  border: 1px solid var(--line);
  color: #ffb4b4;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
}
.day-blocks .tb-add {
  align-self: flex-start;
  background: transparent;
  border: 1px dashed var(--line);
  color: var(--gold);
  border-radius: 8px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 0.78rem;
}
.day-blocks .tb-add:disabled,
.time-block .tb-remove:disabled { opacity: 0.4; cursor: default; }
.day-row .day-closed {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  cursor: pointer;
  padding-top: 8px;
}
.day-row .day-closed input { accent-color: var(--gold); }
.form-hint { margin: -6px 0 12px; color: var(--muted); font-size: 0.8rem; }
.form-hint[hidden] { display: none; }
/* Staff names open the detail sheet — make that discoverable. */
.compact-title.is-tappable { cursor: pointer; }
.compact-title.is-tappable:hover { color: var(--gold); text-decoration: underline; }
@media (max-width: 620px) {
  .day-row { grid-template-columns: 1fr auto; grid-template-areas: "name closed" "blocks blocks"; }
  .day-row .day-name { grid-area: name; padding-top: 0; }
  .day-row .day-closed { grid-area: closed; padding-top: 0; }
  .day-row .day-blocks { grid-area: blocks; }
}

/* ---- Top "Add Booking" quick action (always visible in the header) ---- */
.top-add-booking {
  background: var(--gold);
  color: #1a1206;
  font-weight: 800;
  border: none;
  border-radius: 9px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}
.top-add-booking:hover { filter: brightness(1.06); }

/* ---- Barber multi-service checklist ---- */
.service-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px;
}
.svc-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;              /* let children shrink instead of overflowing */
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel-2);
  cursor: pointer;
}
.svc-check.selected { border-color: var(--gold); background: rgba(214, 179, 90, 0.12); }
.svc-check input {
  flex: 0 0 auto;            /* keep the checkbox a fixed size, never squeezed out */
  width: 16px;
  height: 16px;
  margin: 0;
}
.svc-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.svc-name {
  color: var(--text);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.svc-meta { color: var(--muted); font-size: 0.78rem; white-space: nowrap; }

.booking-totals {
  margin: 10px 0 4px;
  padding: 10px 14px;
  border: 1px solid rgba(214, 179, 90, 0.4);
  border-radius: 9px;
  background: rgba(214, 179, 90, 0.08);
  color: var(--text);
  font-weight: 700;
}
.booking-totals[hidden] { display: none; }
.booking-totals .bt-gold { color: var(--gold); }

/* ---- Day timeline ---- */
.timeline-legend { color: var(--muted); font-weight: 600; margin-left: 8px; }
.timeline {
  position: relative;
  height: 56px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel-2);
  overflow: hidden;
}
.timeline-empty { padding: 18px 14px; color: var(--muted); font-size: 0.86rem; }
.tl-band {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  overflow: hidden;
  white-space: nowrap;
}
.tl-band--free   { background: rgba(43, 122, 75, 0.30); color: #d7f3e2; border-right: 1px solid rgba(255,255,255,0.06); }
.tl-band--booked { background: rgba(182, 75, 75, 0.55); color: #ffe3e3; }
.tl-band--closed { background: rgba(255, 255, 255, 0.05); color: var(--muted); }
.tl-band--sel    { background: var(--gold); color: #1a1206; font-weight: 800; z-index: 2; }
.tl-hour {
  position: absolute;
  top: 0; bottom: 0;
  border-left: 1px dashed rgba(255,255,255,0.10);
  font-size: 0.62rem;
  color: var(--muted);
  padding-left: 3px;
}

.timeline-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  max-height: 132px;
  overflow-y: auto;
}
.tl-chip {
  padding: 7px 12px;
  border: 1px solid rgba(43, 122, 75, 0.5);
  border-radius: 999px;
  background: rgba(43, 122, 75, 0.18);
  color: #d7f3e2;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
}
.tl-chip:hover { filter: brightness(1.1); }
.tl-chip.selected { background: var(--gold); color: #1a1206; border-color: var(--gold); }
.timeline-chips .tl-none { color: var(--muted); font-size: 0.85rem; }
