:root {
  --booking-ink: #173a36;
  --booking-muted: #64706d;
  --booking-line: #d9dfdc;
  --booking-bg: #f3f6f4;
  --booking-teal: #087f72;
  --booking-coral: #d8614f;
  --booking-yellow: #f3c64d;
}

.booking-page { margin: 0; min-height: 100vh; background: var(--booking-bg); color: var(--booking-ink); }
.booking-shell { min-height: 100vh; }
.booking-topbar { height: 72px; padding: 0 32px; background: #fff; border-bottom: 1px solid var(--booking-line); display: flex; align-items: center; gap: 32px; }
.booking-topbar .brand { min-width: 190px; }
.booking-topbar nav { display: flex; align-self: stretch; gap: 8px; }
.booking-topbar nav a { color: var(--booking-muted); display: grid; place-items: center; padding: 0 18px; border-bottom: 3px solid transparent; font-weight: 700; text-decoration: none; }
.booking-topbar nav a.active { color: var(--booking-ink); border-bottom-color: var(--booking-teal); }
.booking-account { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.booking-account > span { display: grid; text-align: right; }
.booking-account small { color: var(--booking-muted); }
.booking-main { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 36px 0 64px; }
.booking-main:focus { outline: none; }
.booking-main:focus { outline: none; }
.login-workspace { min-height: calc(100vh - 170px); display: grid; place-items: center; }
.booking-login { width: min(400px, 100%); background: #fff; border: 1px solid var(--booking-line); border-radius: 8px; padding: 32px; box-shadow: 0 16px 45px rgba(23, 58, 54, .08); }
.booking-login h1 { margin: 8px 0 28px; font-size: 30px; letter-spacing: 0; }
.booking-login label, .booking-form label { display: grid; gap: 7px; margin-bottom: 16px; font-size: 13px; font-weight: 800; }
.booking-login input, .booking-form input, .booking-form select, .booking-toolbar select, .booking-toolbar input { width: 100%; min-height: 44px; border: 1px solid #bcc7c3; border-radius: 6px; background: #fff; padding: 9px 11px; color: var(--booking-ink); font: inherit; }
.booking-login .button { width: 100%; justify-content: center; }
.form-error { min-height: 22px; margin: 0 0 10px; color: #a2382a; font-size: 13px; }
.booking-header { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 26px; }
.booking-header h1 { margin: 4px 0 0; font-size: 32px; letter-spacing: 0; }
.booking-header p { margin: 6px 0 0; color: var(--booking-muted); }
.timezone-chip { border: 1px solid var(--booking-line); background: #fff; border-radius: 6px; padding: 10px 12px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.booking-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr); gap: 24px; align-items: start; }
.booking-section { background: #fff; border: 1px solid var(--booking-line); border-radius: 8px; padding: 24px; }
.booking-section + .booking-section { margin-top: 20px; }
.booking-section h2 { margin: 0 0 18px; font-size: 19px; letter-spacing: 0; }
.booking-toolbar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.booking-toolbar label { display: grid; gap: 6px; color: var(--booking-muted); font-size: 12px; font-weight: 800; }
.slot-grid { display: grid; grid-template-columns: repeat(4, minmax(84px, 1fr)); gap: 9px; min-height: 52px; }
.slot-button { min-height: 44px; border: 1px solid #a9c6c1; border-radius: 6px; background: #eef8f6; color: #075f56; font-weight: 800; cursor: pointer; }
.slot-button:hover, .slot-button:focus-visible { border-color: var(--booking-teal); background: #dff3ef; }
.empty-state, .loading-state { grid-column: 1 / -1; color: var(--booking-muted); padding: 18px 0; }
.booking-list { display: grid; gap: 10px; }
.booking-row { border-left: 4px solid var(--booking-teal); background: #f8faf9; padding: 14px 15px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.booking-row.cancelled, .booking-row.rescheduled { border-color: #a9b2ae; opacity: .72; }
.booking-row strong, .booking-row span { display: block; }
.booking-row small { color: var(--booking-muted); }
.booking-actions { display: flex; gap: 6px; }
.booking-actions button { width: 38px; height: 38px; border-radius: 6px; border: 1px solid var(--booking-line); background: #fff; cursor: pointer; }
.booking-actions button:hover { border-color: var(--booking-coral); color: var(--booking-coral); }
.admin-booking-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.booking-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.booking-form .full { grid-column: 1 / -1; }
.booking-form .button { justify-self: start; }
.check-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.check-grid label { border: 1px solid var(--booking-line); border-radius: 6px; min-height: 40px; display: flex; align-items: center; gap: 8px; padding: 8px; font-size: 12px; }
.check-grid input { width: auto; min-height: auto; }
.service-list { display: grid; gap: 8px; }
.service-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #edf0ee; }
.service-row > span { display: grid; gap: 3px; }
.service-row:last-child { border: 0; }
.service-row small { color: var(--booking-muted); }
.status-badge { display: inline-flex; border-radius: 999px; padding: 4px 8px; background: #e2f2ef; color: #086b61; font-size: 11px; font-weight: 800; }

@media (max-width: 850px) {
  .booking-topbar { padding: 0 18px; }
  .booking-topbar .brand-copy, .booking-account > span { display: none; }
  .booking-topbar .brand { min-width: auto; }
  .booking-main { width: min(100% - 28px, 680px); padding-top: 24px; }
  .booking-layout, .admin-booking-grid { grid-template-columns: 1fr; }
  .booking-toolbar { grid-template-columns: 1fr; }
  .slot-grid { grid-template-columns: repeat(3, minmax(78px, 1fr)); }
}

@media (max-width: 480px) {
  .booking-topbar { height: 62px; gap: 14px; }
  .booking-topbar nav a { padding: 0 10px; }
  .booking-main { width: calc(100% - 20px); padding-top: 18px; }
  .booking-header { align-items: start; flex-direction: column; }
  .booking-header h1 { font-size: 26px; }
  .booking-section, .booking-login { padding: 18px; }
  .slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .booking-form { grid-template-columns: 1fr; }
  .booking-form .full { grid-column: auto; }
  .check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .booking-row { grid-template-columns: 1fr; }
}
