* { box-sizing: border-box; }
:root {
  color-scheme: dark;
  --booking-ink: #0b0d0f;
  --booking-panel: #111417;
  --booking-panel-raised: #171b1f;
  --booking-paper: #e9e7df;
  --booking-paper-muted: #c8c6be;
  --booking-muted: #8e9499;
  --booking-line: #30353a;
  --booking-accent: #ff4a3d;
}
html, body { min-height: 100%; margin: 0; }
html { background: var(--booking-ink); }
body.booking-page {
  background: var(--booking-ink);
  color: var(--booking-paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
.booking-page a { color: inherit; text-decoration: none; }
.booking-site-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 84px;
  padding: 0 clamp(18px, 3vw, 48px);
  border-bottom: 1px solid var(--booking-line);
  background: var(--booking-ink);
}
.booking-wordmark { display: inline-flex; width: fit-content; align-items: center; gap: 12px; font-size: .94rem; font-weight: 650; letter-spacing: -.02em; }
.booking-wordmark img { display: block; width: 34px; height: 34px; border: 1px solid #030303; border-radius: 50%; object-fit: cover; }
.booking-site-nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 42px); font-size: .76rem; font-weight: 540; }
.booking-site-nav a { position: relative; display: inline-flex; min-height: 44px; align-items: center; padding: 0 1px; color: #a7adb3; transition: color 150ms ease; }
.booking-site-nav a::after { position: absolute; right: 0; bottom: 3px; left: 0; height: 1px; background: var(--booking-accent); content: ""; transform: scaleX(0); transform-origin: left; transition: transform 150ms ease; }
.booking-site-nav a:hover, .booking-site-nav a:focus-visible, .booking-site-nav a[aria-current="page"] { color: var(--booking-paper); }
.booking-site-nav a:hover::after, .booking-site-nav a:focus-visible::after, .booking-site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.booking-site-nav a:focus-visible, .booking-menu-button:focus-visible { outline: 2px solid var(--booking-accent); outline-offset: 3px; }
.booking-header-status { justify-self: end; display: flex; align-items: center; gap: 9px; color: var(--booking-paper-muted); font-family: var(--mono, ui-monospace, monospace); font-size: .7rem; }
.booking-header-status span:first-child { width: 7px; height: 7px; border-radius: 50%; background: var(--booking-accent); }
.booking-header-status time { color: var(--booking-paper-muted); font: inherit; font-variant-numeric: tabular-nums; }
.booking-menu-button { display: none; }
.booking-layout {
  display: grid;
  grid-template-columns: minmax(360px, 424px) minmax(0, 1fr);
  min-height: calc(100vh - 84px);
  background: var(--booking-ink);
}
.booking-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: calc(100vh - 84px);
  min-height: 720px;
  overflow: auto;
  padding: 22px 20px 18px;
  border-right: 1px solid var(--booking-line);
  background: var(--booking-ink);
}
.booking-event { padding: 0 4px; }
.booking-event h1 { margin: 8px 0 8px; color: var(--booking-paper); font-size: 1.3rem; font-weight: 650; letter-spacing: -.025em; line-height: 1.3; }
.booking-description { max-width: 340px; margin: 0 0 18px; color: #a4abb3; font-size: .84rem; line-height: 1.55; }
.booking-facts { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.booking-facts li { display: flex; min-width: 0; align-items: center; gap: 10px; color: var(--booking-paper-muted); font-size: .87rem; }
.booking-facts svg { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.booking-month { margin-top: 40px; }
.booking-month-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.booking-month-heading h2 { margin: 0; font-size: .97rem; font-weight: 650; letter-spacing: -.01em; }
.booking-month-heading h2 span { color: var(--booking-muted); font-weight: 500; }
.booking-month-arrows { display: flex; gap: 14px; color: var(--booking-muted); font-size: 1.25rem; line-height: 1; }
.booking-month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.booking-weekday { display: grid; height: 34px; place-items: center; color: var(--booking-paper-muted); font-size: .64rem; font-weight: 600; letter-spacing: .06em; }
.booking-date { position: relative; display: grid; min-width: 0; aspect-ratio: 1.04; place-items: center; border: 0; border-radius: 9px; background: transparent; color: var(--booking-muted); font: inherit; font-size: .82rem; cursor: default; }
.booking-date.is-available { background: var(--booking-panel-raised); color: var(--booking-paper); cursor: pointer; }
.booking-date.is-available:hover { background: #24292e; }
.booking-date[aria-current="date"] { background: var(--booking-paper); color: var(--booking-ink); font-weight: 650; }
.booking-date:disabled { opacity: .46; }
.booking-date:focus-visible { outline: 2px solid var(--booking-accent); outline-offset: 1px; }
.booking-main { min-width: 0; min-height: calc(100vh - 84px); background: var(--booking-ink); }
.booking-toolbar { position: sticky; top: 0; z-index: 4; display: flex; min-height: 70px; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 16px 12px 20px; border-bottom: 1px solid var(--booking-line); background: rgba(11,13,15,.96); }
.booking-week-heading, .booking-view-controls, .booking-week-arrows, .booking-time-format, .booking-view-switch { display: flex; align-items: center; }
.booking-week-heading { min-width: 0; gap: 22px; }
.booking-week-heading h2 { margin: 0; white-space: nowrap; color: var(--booking-paper); font-size: 1rem; font-weight: 650; letter-spacing: -.015em; }
.booking-week-heading h2 span { color: var(--booking-muted); font-weight: 500; }
.booking-week-arrows { gap: 8px; color: var(--booking-muted); font-size: 1.3rem; }
.booking-view-controls { gap: 12px; }
.booking-time-format { display: inline-flex; overflow: hidden; border: 1px solid var(--booking-line); border-radius: 9px; background: var(--booking-panel); color: var(--booking-paper-muted); font-size: .76rem; font-weight: 600; }
.booking-time-format button { min-width: 38px; padding: 6px 8px; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.booking-time-format button[aria-pressed="true"] { background: #292e33; box-shadow: 0 0 0 1px var(--booking-line); color: var(--booking-paper); }
.booking-time-format button:focus-visible { outline: 2px solid var(--booking-accent); outline-offset: -2px; }
.booking-week-scroll { height: calc(100vh - 154px); min-height: 620px; overflow: auto; overscroll-behavior: contain; scrollbar-color: #454b52 transparent; scrollbar-width: thin; }
.booking-week { display: grid; min-width: 820px; min-height: 100%; height: 100%; grid-template-rows: 38px minmax(0, 1fr); }
.booking-week-head, .booking-week-body { display: grid; grid-template-columns: 64px repeat(7, minmax(0, 1fr)); }
.booking-week-head { position: sticky; top: 0; z-index: 3; height: 38px; border-bottom: 1px solid var(--booking-line); background: var(--booking-ink); }
.booking-day-heading { display: flex; align-items: center; justify-content: center; gap: 5px; border-left: 1px solid var(--booking-line); color: var(--booking-muted); font-size: .72rem; white-space: nowrap; }
.booking-day-heading strong { color: var(--booking-paper-muted); font-weight: 600; }
.booking-week-body { position: relative; display: grid; min-height: 0; grid-template-rows: minmax(0, 1fr); align-items: stretch; }
.booking-hour-labels, .booking-day-column { display: grid; min-height: 0; grid-template-rows: repeat(30, minmax(0, 1fr)); }
.booking-hour-labels { position: relative; }
.booking-hour-label { grid-row: span 2; padding: 8px 8px 0 0; color: var(--booking-muted); font-size: .72rem; text-align: right; white-space: nowrap; }
.booking-hour-label-end { position: absolute; right: 0; bottom: 0; height: auto; padding: 0 8px 0 0; }
.booking-day-columns { display: grid; grid-column: 2 / -1; grid-row: 1; min-height: 0; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.booking-day-column { min-width: 0; border-left: 1px solid var(--booking-line); }
.booking-hour-cell { min-width: 0; border-top: 1px solid #252a2f; background: var(--booking-ink); }
.booking-hour-cell:nth-child(2n + 1) { border-top-color: var(--booking-line); }
.booking-hour-cell.is-busy { background: repeating-linear-gradient(135deg, #15191d 0, #15191d 3px, #0b0d0f 3px, #0b0d0f 6px); }
.booking-now-line { position: absolute; z-index: 2; top: calc(9.5 * 58px); right: 0; left: 64px; height: 1px; background: var(--booking-accent); pointer-events: none; }
.booking-now-line::before { position: absolute; top: -4px; left: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--booking-accent); content: ""; }
.booking-now-line span { position: absolute; top: -10px; right: 6px; width: auto; padding: 2px 6px; border-radius: 4px; background: var(--booking-accent); color: #050607; font-size: .67rem; font-weight: 650; text-align: center; }
.booking-hour-cell { display: block; width: 100%; padding: 0; border-right: 0; border-bottom: 0; border-left: 0; border-radius: 0; appearance: none; font: inherit; }
button.booking-hour-cell.is-available { cursor: pointer; }
button.booking-hour-cell.is-available:hover { background: #171b1f; box-shadow: inset 0 0 0 1px rgba(255,74,61,.38); }
button.booking-hour-cell.is-available:focus-visible { position: relative; z-index: 1; outline: 2px solid var(--booking-accent); outline-offset: -2px; }
.booking-dialog { width: min(560px, calc(100vw - 32px)); max-width: 560px; max-height: min(90vh, 860px); margin: auto; padding: 0; overflow: hidden; border: 1px solid #394047; border-radius: 14px; background: var(--booking-panel); color: var(--booking-paper); box-shadow: 0 24px 80px rgba(0,0,0,.55); }
.booking-dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(3px); }
.booking-dialog-shell { display: flex; max-height: min(90vh, 860px); flex-direction: column; overflow: auto; }
.booking-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px 26px 18px; }
.booking-dialog-kicker { margin: 0 0 7px; color: var(--booking-muted); font-size: .72rem; }
.booking-dialog-header h2 { margin: 0; color: var(--booking-paper); font-size: 1.28rem; font-weight: 650; letter-spacing: -.025em; }
.booking-dialog-close { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--booking-muted); font: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.booking-dialog-close:hover { border-color: var(--booking-line); color: var(--booking-paper); }
.booking-dialog-close:focus-visible, .booking-back-button:focus-visible, .booking-confirm-button:focus-visible, .booking-add-guest:focus-visible { outline: 2px solid var(--booking-accent); outline-offset: 2px; }
.booking-selected-slot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 26px; padding: 14px 0; border-block: 1px solid var(--booking-line); }
.booking-selected-slot p { margin: 0; color: var(--booking-paper-muted); font-size: .88rem; font-weight: 550; }
.booking-selected-slot > span { flex: 0 0 auto; color: var(--booking-muted); font-size: .8rem; }
.booking-details-form { display: grid; gap: 16px; padding: 20px 26px 24px; }
.booking-form-field { display: grid; gap: 7px; color: var(--booking-paper-muted); font-size: .79rem; font-weight: 550; }
.booking-form-label { display: inline-flex; align-items: baseline; gap: 3px; }
.booking-form-label > span { color: var(--booking-accent); }
.booking-form-field input, .booking-form-field textarea, .booking-guest-row input { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid #394047; border-radius: 8px; outline: none; background: var(--booking-ink); color: var(--booking-paper); font: inherit; font-size: .86rem; }
.booking-form-field textarea { min-height: 88px; resize: vertical; }
.booking-form-field input:focus, .booking-form-field textarea:focus, .booking-guest-row input:focus { border-color: #7d858d; box-shadow: 0 0 0 2px rgba(255,74,61,.14); }
.booking-form-field input::placeholder, .booking-form-field textarea::placeholder, .booking-guest-row input::placeholder { color: #777e86; }
.booking-add-guest { display: inline-flex; width: fit-content; align-items: center; gap: 7px; padding: 4px 0; border: 0; background: transparent; color: var(--booking-paper-muted); font: inherit; font-size: .8rem; cursor: pointer; }
.booking-add-guest:hover { color: var(--booking-paper); }
.booking-add-guest span { color: var(--booking-accent); font-size: 1rem; }
.booking-guests { display: grid; gap: 10px; }
.booking-guest-row { display: grid; grid-template-columns: minmax(0,1fr) 34px; align-items: center; gap: 8px; }
.booking-guest-row label { display: grid; gap: 6px; color: var(--booking-paper-muted); font-size: .76rem; }
.booking-guest-remove { width: 34px; height: 34px; border: 1px solid var(--booking-line); border-radius: 7px; background: var(--booking-panel-raised); color: var(--booking-paper-muted); font: inherit; cursor: pointer; }
.booking-guest-remove:hover { color: var(--booking-accent); }
.booking-dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; padding: 16px 26px; border-top: 1px solid var(--booking-line); }
.booking-back-button, .booking-confirm-button { min-width: 104px; min-height: 40px; padding: 0 16px; border-radius: 8px; font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; }
.booking-back-button { border: 1px solid var(--booking-line); background: transparent; color: var(--booking-paper-muted); }
.booking-back-button:hover { background: var(--booking-panel-raised); color: var(--booking-paper); }
.booking-confirm-button { border: 1px solid var(--booking-paper); background: var(--booking-paper); color: var(--booking-ink); }
.booking-confirm-button:hover { background: #fff; }
@media (max-width: 1050px) {
  .booking-site-header { grid-template-columns: 1fr auto; }
  .booking-site-nav { position: absolute; top: calc(100% + 8px); right: clamp(18px, 3vw, 48px); left: clamp(18px, 3vw, 48px); display: none; flex-direction: column; align-items: stretch; gap: 3px; padding: 8px; border: 1px solid #30363c; border-radius: 16px; background: #111518; box-shadow: 0 18px 48px rgba(0,0,0,.38); }
  .booking-site-nav.is-open { display: flex; }
  .booking-site-nav a { min-height: 48px; justify-content: flex-start; padding: 0 14px; border-radius: 10px; }
  .booking-site-nav a::after { right: auto; bottom: 9px; left: 14px; width: 22px; }
  .booking-menu-button { display: inline-flex; justify-self: end; align-items: center; justify-content: center; gap: 10px; min-height: 42px; padding: 0 14px; border: 1px solid #30363c; border-radius: 999px; background: #111518; color: var(--booking-paper); font: inherit; font-size: .78rem; font-weight: 550; cursor: pointer; }
  .booking-menu-button:hover, .booking-menu-button[aria-expanded="true"] { border-color: #59636d; background: #1a1f23; }
  .booking-menu-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
  .booking-header-status { display: none; }
}
@media (max-width: 980px) {
  .booking-layout { grid-template-columns: minmax(0, 1fr); }
  .booking-sidebar { position: relative; height: auto; min-height: 0; overflow: visible; border-right: 0; border-bottom: 1px solid var(--booking-line); }
  .booking-month { max-width: 420px; }
  .booking-main { min-height: 70vh; }
  .booking-week-scroll { height: min(72vh, 760px); min-height: 540px; }
}
@media (max-width: 620px) {
  .booking-site-header { min-height: calc(70px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); padding-inline: max(18px, env(safe-area-inset-left)) max(18px, env(safe-area-inset-right)); }
  .booking-wordmark span { display: none; }
  .booking-site-nav { right: max(18px, env(safe-area-inset-right)); left: max(18px, env(safe-area-inset-left)); }
  .booking-sidebar { padding: 18px 16px 16px; }
  .booking-event h1 { font-size: 1.2rem; }
  .booking-month { margin-top: 28px; }
  .booking-toolbar { min-height: 64px; flex-wrap: wrap; gap: 10px; padding: 10px 12px; }
  .booking-week-heading { flex: 1 1 100%; justify-content: space-between; }
  .booking-view-controls { justify-content: flex-end; width: 100%; }
  .booking-week-scroll { height: 68vh; min-height: 480px; }
  .booking-week { min-width: 800px; }
  .booking-dialog-header { padding: 20px 18px 16px; }
  .booking-selected-slot { margin-inline: 18px; }
  .booking-details-form { padding: 18px; }
  .booking-dialog-footer { padding: 14px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
