:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f3f5f7;
  color: #18212b;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top right, #d9eff1, transparent 38%), #f3f5f7; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
.shell { width: min(1080px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0 72px; }
.panel { background: rgba(255,255,255,.92); border: 1px solid #e1e7ec; border-radius: 24px; box-shadow: 0 20px 60px rgba(28, 53, 73, .09); }
.gate-panel { max-width: 480px; margin: 10vh auto 0; padding: 42px; }
.eyebrow { color: #087f8c; font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 10px 0 10px; font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.05; letter-spacing: -.04em; }
h2 { margin: 0; font-size: 1.55rem; }
.muted { color: #61707c; line-height: 1.6; }
.stack { display: grid; gap: 10px; margin-top: 28px; }
label { color: #4a5964; font-size: .9rem; font-weight: 700; }
input, select { width: 100%; margin-top: 7px; border: 1px solid #d4dde4; border-radius: 12px; background: #fff; color: #18212b; padding: 12px 13px; }
input:focus, select:focus, button:focus-visible { outline: 3px solid rgba(8,127,140,.22); outline-offset: 2px; border-color: #087f8c; }
button { border: 0; border-radius: 12px; padding: 11px 16px; font-weight: 800; transition: transform .15s ease, background .15s ease; }
button:not(:disabled):hover { transform: translateY(-1px); }
.primary { background: #087f8c; color: white; }
.primary:hover:not(:disabled) { background: #066c76; }
.secondary { background: #e7f1f2; color: #075e68; align-self: end; }
.ghost { background: transparent; color: #53636e; border: 1px solid #d4dde4; }
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.calendar-panel { padding: 22px; }
.calendar-toolbar { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 12px; margin-bottom: 18px; }
.calendar-toolbar h2 { text-align: center; }
.icon-button { padding: 4px; font-size: 2rem; line-height: 1; }
.weekday-row, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.weekday-row { margin-bottom: 8px; color: #7a8993; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.calendar-day { display: grid; min-height: 76px; align-content: space-between; gap: 10px; padding: 10px; border: 1px solid #dfe8ec; border-radius: 14px; background: #fff; color: #18212b; text-align: left; }
.calendar-day:not(:disabled):hover { border-color: #087f8c; transform: translateY(-1px); }
.calendar-day.has-slots { background: #f0faf9; border-color: #b9e2df; }
.calendar-day.full { background: #f7f8f9; border-color: #e1e7ec; color: #7a8993; }
.calendar-day.selected { border: 2px solid #087f8c; padding: 9px; box-shadow: 0 0 0 3px rgba(8,127,140,.12); }
.calendar-day.blank { border-color: transparent; background: transparent; }
.day-number { font-size: 1.1rem; font-weight: 800; }
.day-meta { color: #087f8c; font-size: .74rem; font-weight: 800; }
.calendar-day.full .day-meta, .calendar-day:disabled:not(.has-slots) .day-meta { color: #a2adb4; }
.day-panel { margin-top: 20px; padding: 24px; }
.day-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.day-heading h2 { margin-top: 6px; }
.day-heading .muted { margin: 0; text-align: right; }
.status { min-height: 28px; color: #61707c; padding: 4px 2px 12px; }
.status.success { color: #14704b; }
.status.error, .error { color: #b42318; }
.error { margin: 4px 0 0; font-size: .9rem; }
.day-slots { display: grid; gap: 10px; }
.time-row { display: grid; grid-template-columns: 100px 1.5fr 1fr auto; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid #dfe8ec; border-radius: 14px; background: #fff; }
.time-row.full { background: #f7f8f9; }
.time-value { font-size: 1.25rem; font-weight: 800; }
.time-store, .time-availability { color: #61707c; }
.time-availability { font-weight: 700; }
.book-button { margin-top: 8px; }
.empty { grid-column: 1 / -1; padding: 36px; border: 1px dashed #c8d3da; border-radius: 18px; color: #61707c; text-align: center; }
@media (max-width: 700px) {
  .shell { padding-top: 24px; }
  .gate-panel { margin-top: 4vh; padding: 28px; }
  .hero { align-items: flex-start; }
  .day-heading { align-items: flex-start; flex-direction: column; }
  .day-heading .muted { text-align: left; }
  .time-row { grid-template-columns: 1fr 1fr; }
  .time-availability { grid-column: 1 / 2; }
  .time-row .book-button { grid-column: 2 / 3; grid-row: 1 / span 2; }
}
