:root {
  color-scheme: light;
  --canvas: #f6f7f4;
  --surface: #ffffff;
  --surface-raised: #fbfcfa;
  --surface-quiet: #f1f4f1;
  --ink: #111814;
  --ink-soft: #526059;
  --ink-faint: #69756e;
  --line: #dde3de;
  --line-strong: #c8d1ca;
  --accent: #174c3b;
  --accent-hover: #0f3a2d;
  --accent-soft: #e7f1ec;
  --accent-line: #bed5ca;
  --today: #f5ece2;
  --today-line: #dfcbbb;
  --danger: #a43f3b;
  --danger-soft: #fff0ee;
  --warning: #785725;
  --warning-soft: #fbf3e6;
  --shadow-calendar: 0 24px 70px rgba(17, 24, 20, 0.08), 0 2px 8px rgba(17, 24, 20, 0.03);
  --shadow-layer: 0 30px 90px rgba(10, 18, 13, 0.24), 0 4px 16px rgba(10, 18, 13, 0.1);
  --font-ui: "Bahnschrift", "Avenir Next", "Segoe UI Variable Text", "Segoe UI", sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --content: 1240px;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font-ui);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; overflow-x: hidden; background: var(--canvas); }
body { min-width: 320px; min-height: 100vh; margin: 0; overflow-x: hidden; background: var(--canvas); }
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.46; }
a { color: inherit; text-decoration: none; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex="0"]:focus-visible,
[tabindex="-1"]:focus-visible {
  outline: 3px solid rgba(23, 76, 59, 0.24);
  outline-offset: 3px;
}

.sr-only {
  position: fixed;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.icon { display: block; width: 18px; height: 18px; flex: 0 0 auto; }

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 10px max(24px, calc((100vw - var(--content)) / 2));
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(17, 24, 20, 0.02);
}

.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; }
.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  overflow: hidden;
  color: #fff;
  background: var(--ink);
  border-radius: 11px 11px 11px 3px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.brand-mark::after {
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 7px 7px 7px 2px;
  content: "";
}
.brand-mark span { position: relative; z-index: 1; font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1; }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { max-width: 48vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 650; line-height: 1.15; letter-spacing: -0.02em; }
.brand-copy small,
.eyebrow {
  color: var(--ink-faint);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
}
.timezone { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: var(--ink-soft); font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.status-dot { width: 7px; height: 7px; background: #4f8f71; border-radius: 50%; box-shadow: 0 0 0 4px rgba(79, 143, 113, 0.12); }

.page { width: min(var(--content), calc(100% - 48px)); margin: 0 auto; padding: 48px 0 72px; }
.center-page { display: grid; place-items: center; width: min(var(--content), calc(100% - 48px)); min-height: calc(100vh - 73px); margin: 0 auto; padding: 48px 0; }
.message-card { width: min(100%, 520px); padding: 42px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-calendar); }
.message-card.message-degraded { border-color: #e5d1b4; }
.message-code { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 22px; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 12px; font-size: 13px; font-weight: 750; }
.message-degraded .message-code { color: var(--warning); background: var(--warning-soft); border-color: #ead8bb; }
.message-card h1 { margin: 0; font-family: var(--font-display); font-size: clamp(28px, 4vw, 40px); line-height: 1.04; letter-spacing: -0.045em; }
.message-card p { max-width: 420px; margin: 14px auto 25px; color: var(--ink-soft); font-size: 15px; line-height: 1.65; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 17px;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms var(--ease-out);
}
.button:not(:disabled):active { transform: scale(0.97); }
.button-primary { color: #fff; background: var(--accent); border-color: var(--accent); box-shadow: 0 6px 18px rgba(23, 76, 59, 0.16); }
.button-outline { color: var(--ink-soft); background: var(--surface); border-color: var(--line-strong); }
.button-icon { width: 44px; min-width: 44px; padding: 0; color: var(--ink-soft); background: var(--surface); border-color: var(--line); }

.chooser-intro,
.booking-intro { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.75fr); align-items: end; gap: 64px; padding: 10px 0 38px; }
.chooser-intro h1,
.profile h1 { margin: 8px 0 0; font-family: var(--font-display); font-size: clamp(36px, 5vw, 56px); line-height: 0.98; letter-spacing: -0.055em; }
.chooser-intro > p,
.intro-copy > p { max-width: 520px; margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.65; }
.chooser-intro > p strong,
.intro-copy > p strong { color: var(--ink); font-weight: 700; }

.page-alert { margin: 0 0 18px; padding: 14px 16px; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 10px; font-size: 14px; line-height: 1.5; }
.page-alert-error { color: var(--danger); background: var(--danger-soft); border-color: #ecc5c1; }

.staff-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.staff-card { display: grid; gap: 26px; min-width: 0; min-height: 182px; padding: 25px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; transition: border-color 160ms ease, box-shadow 160ms ease; }
.staff-person { display: flex; align-items: center; gap: 16px; min-width: 0; }
.staff-person > div { min-width: 0; }
.staff-person h2 { margin: 0; overflow-wrap: anywhere; font-family: var(--font-display); font-size: 26px; line-height: 1.08; letter-spacing: -0.035em; }
.staff-person p { margin: 7px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.45; }
.staff-actions { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.staff-actions .button-primary { margin-right: auto; }
.avatar { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; overflow: hidden; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 50%; object-fit: cover; font-size: 12px; font-weight: 800; }
.avatar-large { width: 68px; height: 68px; font-size: 17px; }

.empty-card { padding: 44px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.empty-card h2 { margin: 0; font-family: var(--font-display); font-size: 26px; letter-spacing: -0.035em; }
.empty-card p { margin: 10px 0 0; color: var(--ink-soft); font-size: 14px; }

.booking-page { padding-top: 40px; }
.booking-intro { align-items: center; padding-top: 0; }
.profile { display: flex; align-items: center; gap: 19px; min-width: 0; }
.profile > div { min-width: 0; }
.profile h1 { overflow-wrap: anywhere; font-size: clamp(34px, 4.5vw, 50px); }
.profile p { margin: 8px 0 0; color: var(--ink-soft); font-size: 14px; }
.staff-switcher { position: relative; width: fit-content; margin-top: 14px; }
.staff-switcher > summary { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: var(--accent); cursor: pointer; font-size: 13px; font-weight: 750; list-style: none; }
.staff-switcher > summary::-webkit-details-marker { display: none; }
.staff-switcher > summary span { display: block; transition: transform 180ms var(--ease-out); }
.staff-switcher > summary .icon { width: 15px; height: 15px; }
.staff-switcher[open] > summary span { transform: rotate(180deg); }
.staff-switch-list { position: absolute; top: calc(100% + 6px); right: 0; z-index: 25; display: grid; gap: 5px; width: min(420px, calc(100vw - 32px)); max-height: 320px; padding: 8px; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-calendar); transform-origin: top right; transition: opacity 180ms ease, transform 180ms var(--ease-out); }
.staff-switch-row { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 6px; border-radius: 9px; }
.staff-switch-row.is-current { background: var(--surface-quiet); }
.staff-switch-row > a:first-child { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 44px; flex: 1; }
.staff-switch-row > a:first-child > span { display: grid; min-width: 0; gap: 3px; }
.staff-switch-row strong,
.staff-switch-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.staff-switch-row strong { font-size: 12px; }
.staff-switch-row small { color: var(--ink-soft); font-size: 10px; }

.booking-flow { display: grid; }
.date-calendar-card { min-width: 0; padding: 25px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-calendar); }
.availability-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.calendar-heading { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.calendar-heading > div { min-width: 0; }
.step-number { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 auto; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 8px; font-size: 10px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.calendar-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 13px; }
.calendar-title-row h2 { margin: 0; font-family: var(--font-display); font-size: clamp(23px, 3vw, 29px); line-height: 1.05; letter-spacing: -0.04em; }
.calendar-heading p { margin: 7px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.45; }
.duration-picker { position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 4px 0 12px; color: var(--ink-soft); background: var(--surface-quiet); border: 1px solid var(--line); border-radius: 999px; transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease; }
.duration-picker > span { padding-right: 8px; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.duration-picker::after { position: absolute; top: 50%; right: 12px; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; content: ""; pointer-events: none; transform: translateY(-70%) rotate(45deg); }
.duration-picker select { min-height: 32px; max-width: min(240px, 44vw); padding: 0 31px 0 10px; overflow: hidden; color: #fff; background: var(--accent); border: 0; border-radius: 999px; outline: none; appearance: none; font-size: 12px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.duration-picker:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(23, 76, 59, 0.12); }
.duration-picker select:focus-visible { outline: 0; }
.range-actions { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.range-actions .button-outline { min-width: 88px; }

.calendar-legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 17px 0 12px; color: var(--ink-soft); font-size: 11px; }
.calendar-legend > span { display: inline-flex; align-items: center; gap: 7px; }
.calendar-legend i { width: 18px; height: 10px; border-radius: 3px; }
.legend-free { background: var(--accent-soft); border: 1px solid var(--accent-line); }
.legend-unavailable { background: var(--surface-quiet); border: 1px solid var(--line); }

.schedule-scroll { max-width: 100%; overflow-x: auto; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; scrollbar-color: #b8c2bb transparent; scrollbar-width: thin; overscroll-behavior-inline: contain; }
.schedule-scroll::-webkit-scrollbar { height: 10px; }
.schedule-scroll::-webkit-scrollbar-thumb { background: #b8c2bb; border: 3px solid var(--surface); border-radius: 999px; }
.schedule-grid { display: grid; grid-template-columns: 58px repeat(7, minmax(118px, 1fr)); grid-template-rows: auto auto; min-width: 884px; background: var(--surface); }
.schedule-corner,
.schedule-day-header { min-height: 72px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line-strong); }
.schedule-corner { position: sticky; left: 0; z-index: 8; display: grid; place-items: end center; padding: 0 4px 10px; color: var(--ink-faint); background: var(--surface-raised); font-size: 8px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.schedule-day-header { display: grid; place-items: center; align-content: center; min-width: 0; padding: 8px 4px; color: var(--ink); background: var(--surface); }
.schedule-day-header:last-of-type { border-right: 0; }
.schedule-day-header.is-today { background: var(--today); box-shadow: inset 0 -2px 0 var(--today-line); }
.schedule-day-header.is-selected { color: #fff; background: var(--accent); box-shadow: inset 0 -2px 0 var(--accent-hover); }
.schedule-day-header > span { color: var(--ink-soft); font-size: 10px; font-weight: 750; letter-spacing: 0.05em; text-transform: uppercase; }
.schedule-day-header > strong { margin-top: 3px; font-family: var(--font-display); font-size: 23px; line-height: 1; font-variant-numeric: tabular-nums; }
.schedule-day-header > small { margin-top: 4px; color: var(--ink-faint); font-size: 9px; font-weight: 650; text-transform: lowercase; }
.schedule-day-header.is-selected > span,
.schedule-day-header.is-selected > small { color: rgba(255, 255, 255, 0.78); }

.time-axis,
.day-timeline { display: grid; grid-template-rows: repeat(28, 32px); min-height: 896px; }
.time-axis { position: sticky; left: 0; z-index: 7; background: var(--surface-raised); }
.time-axis-row { position: relative; border-right: 1px solid var(--line); border-bottom: 1px dotted #dfe5e0; }
.time-axis-row:nth-child(2n) { border-bottom-style: solid; border-bottom-color: var(--line); }
.time-axis-row > span { position: absolute; top: -6px; right: 8px; color: var(--ink-faint); font-size: 9px; line-height: 1; font-variant-numeric: tabular-nums; }
.time-axis-row:first-child > span { top: 8px; }
.day-timeline { position: relative; border-right: 1px solid var(--line); background-color: var(--surface); }
.day-timeline:last-child { border-right: 0; }
.day-timeline.is-today { background: #fdfaf7; }
.day-timeline.is-selected { box-shadow: inset 0 0 0 2px rgba(23, 76, 59, 0.25); }
.timeline-start,
.timeline-closed { min-width: 0; min-height: 32px; border: 0; border-bottom: 1px solid #e7ebe8; }
.timeline-start { z-index: 2; display: flex; align-items: center; justify-content: center; gap: 5px; margin: 2px 3px; min-height: 28px; padding: 1px 5px; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 5px; font-variant-numeric: tabular-nums; transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms var(--ease-out); }
.timeline-start strong { font-size: 9px; font-weight: 750; line-height: 1; }
.timeline-start small { color: #405e52; font-size: 8px; font-weight: 600; line-height: 1; }
.timeline-start:active { transform: scale(0.975); }
.timeline-start.is-preferred { z-index: 3; color: #fff; background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 2px rgba(23, 76, 59, 0.18); }
.timeline-start.is-preferred small { color: rgba(255, 255, 255, 0.76); }
.timeline-closed { display: grid; place-items: center; color: #cbd2cd; background: var(--surface-quiet); }
.timeline-closed > span { font-size: 9px; line-height: 1; }

.span-1 { grid-row: span 1; }
.span-2 { grid-row: span 2; }
.span-3 { grid-row: span 3; }
.span-4 { grid-row: span 4; }
.span-5 { grid-row: span 5; }
.span-6 { grid-row: span 6; }
.span-7 { grid-row: span 7; }
.span-8 { grid-row: span 8; }
.span-9 { grid-row: span 9; }
.span-10 { grid-row: span 10; }
.span-11 { grid-row: span 11; }
.span-12 { grid-row: span 12; }
.span-13 { grid-row: span 13; }
.span-14 { grid-row: span 14; }
.span-15 { grid-row: span 15; }
.span-16 { grid-row: span 16; }
.span-17 { grid-row: span 17; }
.span-18 { grid-row: span 18; }
.span-19 { grid-row: span 19; }
.span-20 { grid-row: span 20; }
.span-21 { grid-row: span 21; }
.span-22 { grid-row: span 22; }
.span-23 { grid-row: span 23; }
.span-24 { grid-row: span 24; }
.span-25 { grid-row: span 25; }
.span-26 { grid-row: span 26; }
.span-27 { grid-row: span 27; }
.span-28 { grid-row: span 28; }

.calendar-loading { min-height: 520px; padding: 32px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 12px; }
.calendar-loading-copy { display: flex; align-items: center; gap: 14px; }
.calendar-loading-copy strong { display: block; font-size: 14px; }
.calendar-loading-copy p { margin: 4px 0 0; color: var(--ink-soft); font-size: 12px; }
.calendar-skeleton { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 28px; }
.calendar-skeleton i { height: 34px; background: #e4e9e5; border-radius: 6px; animation: skeleton-pulse 1.15s ease-in-out infinite alternate; }
.calendar-skeleton i:nth-child(3n + 2) { animation-delay: 90ms; }
.calendar-skeleton i:nth-child(3n) { animation-delay: 180ms; }
.spinner { width: 28px; height: 28px; flex: 0 0 auto; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 680ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes skeleton-pulse { from { opacity: 0.48; } to { opacity: 1; } }

.inline-error { display: grid; place-items: center; min-height: 300px; padding: 36px; text-align: center; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 12px; }
.inline-error h3 { margin: 0; font-family: var(--font-display); font-size: 22px; }
.inline-error p { max-width: 460px; margin: 10px auto 18px; color: var(--danger); font-size: 13px; line-height: 1.55; }
.inline-error.is-degraded p { color: var(--warning); }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(var(--content), calc(100% - 48px)); min-height: 70px; padding: 18px 0; margin: 0 auto; color: var(--ink-faint); border-top: 1px solid var(--line); font-size: 11px; }
.site-footer span:first-child { color: var(--ink); font-family: var(--font-display); font-size: 14px; font-weight: 700; }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; overflow-y: auto; background: rgba(10, 18, 13, 0.56); backdrop-filter: blur(10px); opacity: 1; transition: opacity 180ms ease; }
.modal-card { width: min(100%, 510px); max-height: calc(100vh - 40px); overflow-y: auto; padding: 28px; background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.82); border-radius: 20px; box-shadow: var(--shadow-layer); transform: translateY(0) scale(1); transform-origin: center; transition: opacity 200ms ease, transform 220ms var(--ease-out); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.modal-head h2,
.confirmation-card h2 { margin: 7px 0 0; font-family: var(--font-display); font-size: 30px; line-height: 1.04; letter-spacing: -0.045em; }
.modal-close { flex: 0 0 auto; }
.modal-close .icon { width: 20px; height: 20px; }
.modal-description { margin: 13px 0 18px; color: var(--ink-soft); font-size: 13px; line-height: 1.55; }
.booking-summary { display: grid; gap: 4px; padding: 14px 15px; margin: 0 0 20px; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 11px; }
.booking-summary strong { color: var(--ink); font-size: 13px; }
.booking-summary span { font-size: 12px; font-weight: 650; text-transform: capitalize; }
.booking-summary small { color: var(--ink-soft); font-size: 10px; }
.form-field { display: grid; gap: 7px; margin-bottom: 15px; }
.form-field > span { color: var(--ink); font-size: 12px; font-weight: 750; }
.form-field em { color: var(--ink-faint); font-size: 10px; font-style: normal; font-weight: 550; }
.form-field input,
.form-field textarea { width: 100%; min-height: 48px; padding: 12px 13px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; outline: none; font-size: 16px; transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease; }
.form-field textarea { min-height: 88px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus { background: #fff; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(23, 76, 59, 0.12); }
.form-field > small { color: var(--ink-faint); font-size: 10px; }
.verification-panel { min-width: 0; padding: 14px; margin: 0 0 15px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 11px; }
.verification-panel legend { padding: 0 5px; color: var(--ink); font-size: 12px; font-weight: 750; }
.verification-panel > p { margin: 0 0 11px; color: var(--ink-soft); font-size: 11px; line-height: 1.5; }
.verification-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 9px; }
.verification-code-field { margin: 0; }
.verification-send-button { min-height: 48px; white-space: nowrap; }
.verification-status { min-height: 16px; margin-top: 8px; color: var(--ink-soft); font-size: 11px; line-height: 1.45; }
.form-alert { padding: 12px 13px; margin-bottom: 15px; color: var(--danger); background: var(--danger-soft); border: 1px solid #efc7c3; border-radius: 10px; font-size: 12px; line-height: 1.5; }
.modal-status { min-height: 18px; margin: 2px 0 8px; color: var(--ink-soft); font-size: 11px; line-height: 1.4; }
.submit-button { width: 100%; min-height: 52px; font-size: 14px; }
.confirmation-card { text-align: center; }
.success-mark { display: grid; place-items: center; width: 58px; height: 58px; margin: 2px auto 20px; color: #fff; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 9px var(--accent-soft); }
.success-mark .icon { width: 26px; height: 26px; stroke-width: 2.1; }
.confirmation-card > p { max-width: 390px; margin: 14px auto 21px; color: var(--ink-soft); font-size: 13px; line-height: 1.6; }
.confirmation-card .booking-summary { text-align: left; }
.confirmation-card > .button { min-width: 154px; }

@starting-style {
  .modal-backdrop { opacity: 0; }
  .modal-card { opacity: 0; transform: translateY(10px) scale(0.985); }
  .staff-switch-list { opacity: 0; transform: translateY(-5px) scale(0.985); }
}

@media (hover: hover) and (pointer: fine) {
  .button-primary:not(:disabled):hover { background: var(--accent-hover); border-color: var(--accent-hover); box-shadow: 0 8px 22px rgba(23, 76, 59, 0.2); }
  .button-outline:not(:disabled):hover,
  .button-icon:not(:disabled):hover { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line); }
  .staff-card:hover { border-color: var(--line-strong); box-shadow: 0 12px 34px rgba(17, 24, 20, 0.06); }
  .timeline-start:hover,
  .timeline-start:focus-visible { z-index: 3; color: #fff; background: var(--accent); border-color: var(--accent); box-shadow: 0 4px 12px rgba(23, 76, 59, 0.18); }
  .timeline-start:hover small,
  .timeline-start:focus-visible small { color: rgba(255, 255, 255, 0.76); }
}

@media (max-width: 900px) {
  .chooser-intro,
  .booking-intro { grid-template-columns: 1fr; align-items: start; gap: 20px; }
  .chooser-intro > p,
  .intro-copy > p { max-width: 720px; }
  .staff-grid { grid-template-columns: 1fr; }
  .staff-switch-list { right: auto; left: 0; }
}

@media (max-width: 680px) {
  .site-header { min-height: 66px; padding: 8px 16px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-copy strong { max-width: 44vw; font-size: 13px; }
  .brand-copy small { font-size: 9px; }
  .timezone { max-width: 38vw; overflow: hidden; font-size: 10px; text-overflow: ellipsis; }
  .timezone .status-dot { display: none; }
  .page,
  .center-page,
  .site-footer { width: calc(100% - 28px); }
  .page { padding: 30px 0 48px; }
  .center-page { min-height: calc(100vh - 67px); padding: 28px 0; }
  .message-card { padding: 30px 21px; }
  .chooser-intro { padding: 4px 0 26px; }
  .chooser-intro h1 { font-size: 38px; }
  .chooser-intro > p,
  .intro-copy > p { font-size: 14px; }
  .staff-card { min-height: 0; padding: 20px; }
  .staff-actions { display: grid; grid-template-columns: 1fr 44px 44px; }
  .staff-person h2 { font-size: 24px; }
  .booking-page { padding-top: 28px; }
  .booking-intro { padding-bottom: 26px; }
  .profile { align-items: flex-start; gap: 14px; }
  .profile h1 { font-size: 36px; }
  .avatar-large { width: 58px; height: 58px; }
  .staff-switcher,
  .staff-switch-list { width: 100%; }
  .staff-switch-list { position: static; margin-top: 5px; box-shadow: 0 12px 35px rgba(17, 24, 20, 0.08); }
  .date-calendar-card { padding: 18px; border-radius: 16px; }
  .availability-toolbar { flex-direction: column; gap: 17px; }
  .calendar-heading { gap: 10px; }
  .calendar-title-row { align-items: flex-start; flex-direction: column; gap: 10px; }
  .duration-picker { width: 100%; justify-content: space-between; }
  .duration-picker select { max-width: 62vw; }
  .range-actions { width: 100%; }
  .range-actions .button-outline { flex: 1; }
  .calendar-legend { margin-top: 14px; }
  .schedule-scroll { margin-right: -18px; margin-left: -18px; border-right: 0; border-left: 0; border-radius: 0; }
  .schedule-grid { grid-template-columns: 52px repeat(7, minmax(106px, 1fr)); min-width: 794px; }
  .schedule-corner,
  .schedule-day-header { min-height: 66px; }
  .calendar-loading { min-height: 440px; padding: 24px 18px; }
  .calendar-skeleton { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 6px; }
  .modal-backdrop { align-items: end; padding: 0; }
  .modal-card { width: 100%; max-height: min(92vh, 840px); padding: 24px 19px max(24px, env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; }
  .verification-row { grid-template-columns: 1fr; }
  .verification-send-button { width: 100%; }
}

@media (hover: none), (pointer: coarse) {
  .time-axis,
  .day-timeline { grid-template-rows: repeat(28, 44px); min-height: 1232px; }
  .timeline-start,
  .timeline-closed { min-height: 44px; }
  .timeline-start { min-height: 40px; }
  .timeline-start strong { font-size: 10px; }
  .timeline-start small { font-size: 8px; }
}

@media (max-width: 390px) {
  .site-header { gap: 9px; }
  .brand-copy strong { max-width: 40vw; }
  .timezone { max-width: 32vw; }
  .staff-switch-row > a:first-child .avatar { display: none; }
  .staff-switch-row { padding-left: 8px; }
  .date-calendar-card { padding: 15px; }
  .schedule-scroll { margin-right: -15px; margin-left: -15px; }
  .duration-picker > span { font-size: 9px; }
  .duration-picker select { max-width: 58vw; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .modal-card,
  .timeline-start,
  .button { transform: none !important; }
}
