/* ══════════════════════════════════════════════════════════════════════
   Calendly's booking page, measured element by element on a live page
   (calendly.com/eksiertu/30min, Sep 17 2026, notes in the session's
   calendly_measure.md), in the GAINS dark theme. Every size, spacing,
   radius, weight and motion below is the measured one; only the colours
   are ours, mapped token for token. Proxima Nova is theirs and not free,
   so Inter carries the same sizes and weights.
   ══════════════════════════════════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0A0A0A;                        /* page #FAFAFA */
  --card: #131315;                      /* card #FFFFFF */
  --line: rgba(255,255,255,0.08);       /* #D4E0ED: card border, dividers, back button */
  --line2: rgba(255,255,255,0.16);      /* #A6BBD1: inputs, summary box */
  --ink: #FFFFFF;                       /* #0A2540 */
  --sec: #9CA3AF;                       /* #476788 */
  --brand: #45B6B1;                     /* #004EBA: links, open days, time labels */
  --fill: #45B6B1;                      /* #006BFF: picked day, Next, picked zone */
  --fill-hover: #3AA39E;                /* their darker blue on hover */
  --cta: #45B6B1;                       /* #0069FF: Schedule, consent links */
  --on-fill: #06110F;                   /* white on blue becomes ink on teal */
  --tint: rgba(69,182,177,0.12);        /* #F4F8FF: open day */
  --frozen: rgba(255,255,255,0.16);     /* rgba(10,37,64,.5): the picked time */
  --field: rgba(255,255,255,0.04);      /* white input */
  --disabled: rgba(255,255,255,0.12);   /* neutral300: the button while it works */
  --err: #E06B6B;                       /* #D53C00 border, #B03200 text */
  --success: #45B6B1;                   /* their green check */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { min-height: 100%; background: var(--bg); color-scheme: dark; -webkit-font-smoothing: antialiased; -moz-osx-font-smiling: grayscale; }
body { min-height: 100vh; background: var(--bg); color: var(--ink); font: 400 14px/21px var(--font); overflow-x: hidden; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button, a, input, label, textarea { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
svg { display: block; }

/* ── The page and the card ──────────────────────────────────────────── */
.page { min-height: 100vh; display: flex; justify-content: center; align-items: flex-start; padding: 66px 0 30px; }
.bk {
  position: relative; display: flex; width: 800px; height: min(700px, calc(100vh - 96px));
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.32); overflow: hidden;
  transition: width 0.22s ease-out;
}
.bk[data-state="slots"], .bk[data-state="details"], .bk[data-state="confirmed"] { width: 1060px; }
.bk[data-state="loading"], .bk[data-state="off"], .bk[data-state="error"] { align-items: center; justify-content: center; }

/* ── Side panel ─────────────────────────────────────────────────────── */
.side { position: relative; width: 399px; flex: 0 0 auto; display: flex; flex-direction: column; padding: 25px 0 25px; border-right: 1px solid var(--line); transition: width 0.22s ease-out; }
.bk[data-state="slots"] .side, .bk[data-state="details"] .side { width: 370px; }
.side__back { width: 43px; height: 43px; margin: 0 0 24px 30px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--brand); display: flex; align-items: center; justify-content: center; }
.side__back svg { width: 24px; height: 24px; }
.side__back:hover { background: rgba(255,255,255,0.05); }
.side__avatar { width: 48px; height: 48px; margin: 0 0 12px 30px; border-radius: 50%; object-fit: cover; display: block; }
.side__name { padding: 0 10px 0 30px; font: 700 16px/24px var(--font); color: var(--sec); }
.side__title { padding: 0 10px 0 30px; font: 700 28px/32px var(--font); color: var(--ink); }
.side__rows { margin-top: 24px; padding: 0 30px; }
.row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--sec); font: 700 14px/21px var(--font); }
.row:last-child { margin-bottom: 0; }
.row svg { width: 24px; height: 24px; flex: 0 0 24px; }
.side__desc { margin-top: 22px; padding: 0 30px; color: var(--ink); font: 400 14px/21px var(--font); white-space: pre-line; }
.side__legal { margin-top: auto; padding: 0 30px; display: flex; gap: 22px; }
.side__legal a { font: 600 14px/21px var(--font); color: var(--brand); text-decoration: none; }
.side__legal a:hover { text-decoration: underline; }

/* ── Dates ──────────────────────────────────────────────────────────── */
.spot { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; padding-top: 28px; }
.spot__head { margin: 0 0 20px; padding: 0 32px; font: 700 22px/33px var(--font); color: var(--ink); }
.spot__body { display: flex; flex: 1; min-height: 0; }
.dates { flex: 1; min-width: 0; padding-bottom: 55px; }
.bk[data-state="slots"] .dates { flex: 0 0 381px; }
.cal { margin: 0 19px; }
.cal__head { display: flex; align-items: center; justify-content: center; height: 38px; margin: 6px 6px 15px; }
.cal__nav { width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
.cal__nav:disabled { color: var(--sec); cursor: default; }
.cal__nav svg { width: 24px; height: 24px; }
.cal__title { position: relative; width: 125px; margin: 0 5px; text-align: center; font: 700 14px/21px var(--font); color: var(--ink); }
.cal__title .fake { position: absolute; left: 0; right: 0; top: 0; }
.cal__table { position: relative; overflow: hidden; min-height: 313px; }   /* their table wrapper: the 25px under a five row month, no growth on six */
/* Their availability loader: a layer over the table wrapper (top 28, padding-top 100) with the card colour at 30% and the large loader centred. */
.cal__loading { position: absolute; top: 28px; right: 0; bottom: 0; left: 0; padding-top: 100px; }
.cal__loading::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--card); opacity: 0.3; }
.cal__loader { position: relative; display: flex; justify-content: center; align-items: center; }
.cal__lottie { width: 76px; height: 24px; color: var(--sec); }
.cal__lottie svg { display: block; width: 100%; height: 100%; }
.cal__lottie path { fill: currentColor; }
/* Their progress bar on the calendar pane's top edge: an 8px clip box wearing the card's corner radius, a 4px bar held at its 8px minimum while the times load, width 100% over .25s ease-in-out when they land, then the box fades .15s linear after .4s. */
.sweep { position: absolute; top: -1px; right: -1px; left: -1px; height: 8px; overflow: hidden; border-top-right-radius: 8px; transition: opacity 0.15s linear 0.4s; z-index: 3; pointer-events: none; }
.sweep--out { opacity: 0; }
.sweep__bar { position: relative; width: 0; min-width: 8px; height: 4px; background: var(--fill); transition: width 0.25s ease-in-out; }
.cal__table .fake { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; }
table { width: 100%; border-collapse: separate; border-spacing: 0 8px; table-layout: fixed; }
th { height: 12px; padding: 0; font: 600 12px/12px var(--font); color: var(--sec); text-align: center; }
td { height: 44px; padding: 0; text-align: center; }
.day { position: relative; display: block; width: 44px; height: 44px; margin: 0 auto; padding: 1px 0 0; border: 1px solid transparent; border-radius: 50%; background: transparent; color: var(--sec); font: 400 16px/24px var(--font); cursor: default; }
.day.open { background: var(--tint); color: var(--brand); cursor: pointer; }
.day.sel { background: var(--fill); color: var(--on-fill); }
.day__dot { position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--fill); }
.day.sel .day__dot { background: var(--on-fill); }
.day:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.tz { position: relative; padding: 0 32px; }
.tz__label { font: 700 14px/19.6px var(--font); color: var(--ink); }
/* Their pill around the zone button: full width, padding 6 9 5, radius 18, the ink at 10% on hover and focus (their elevation shadow token, ink at .1 on the light theme). */
.tz__pill { max-width: 100%; padding: 6px 9px 5px; border-radius: 18px; }
.tz__pill:hover, .tz__pill:focus-within { background: rgba(255,255,255,0.10); }
.tz__btn { display: flex; align-items: center; margin: 0; padding: 0; border: 0; background: transparent; color: var(--ink); font: 400 14px/21px var(--font); text-align: left; white-space: nowrap; }
.tz__btn svg { width: 16px; height: 16px; flex: 0 0 16px; }
.tz__btn .caret { margin-left: 4px; }
.tz__btn[aria-expanded="true"] .caret { transform: rotate(180deg); }

/* The zone picker: their menu, opening upward from the button. */
.tzm { position: absolute; left: 2px; bottom: calc(100% + 4px); width: 396px; max-height: 320px; display: flex; flex-direction: column; padding: 16px 0 0; background: var(--card); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 1px 5px rgba(0,0,0,0.5); z-index: 30; }
.tzm__search { position: relative; flex: 0 0 auto; margin: 0 20px; }
.tzm__list { flex: 1 1 auto; min-height: 214px; overflow-y: scroll; }   /* their list container; the search and the clock row stay put */
.tzm__search svg { position: absolute; left: 12px; top: 12px; width: 16px; height: 16px; color: var(--sec); pointer-events: none; }
.tzm__search input { width: 100%; height: 40px; padding: 8px 12px 8px 36px; border: 1px solid var(--line2); border-radius: 8px; background: var(--field); color: var(--ink); font: 400 14px/19.6px var(--font); outline: 0; }
.tzm__search input:focus { border: 2px solid var(--brand); padding: 7px 11px 7px 35px; }
.tzm__search input::placeholder { color: var(--sec); }
.tzm__fmt { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; padding: 4px 7px 4px 20px; margin-top: 8px; font: 400 12px/16px var(--font); color: var(--ink); }
.tzm__fmt b { font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; }
.tzm__toggle { display: inline-flex; align-items: center; gap: 6px; }
.tzm__switch { width: 28px; height: 16px; border-radius: 8px; border: 0; background: var(--line2); position: relative; padding: 0; }
.tzm__switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); transition: transform 0.15s; }
.tzm__switch[aria-checked="true"] { background: var(--fill); }
.tzm__switch[aria-checked="true"]::after { transform: translateX(12px); }
.tzm__group { padding: 10px 20px 5px; font: 700 14px/21px var(--font); color: var(--ink); text-transform: uppercase; }
.tzm__item { display: flex; justify-content: space-between; align-items: center; width: 100%; height: 36px; padding: 8px 20px; border: 0; background: transparent; color: var(--ink); font: 400 14px/20px var(--font); text-align: left; }
.tzm__item:hover, .tzm__item:focus-visible { background: rgba(69,182,177,0.16); outline: 0; }   /* their dark theme's hover: blue850 on neutral900 = the action colour at 16% over the surface */
.tzm__item[aria-selected="true"] { background: var(--fill); color: var(--on-fill); }
.tzm__item span:last-child { margin-left: 12px; white-space: nowrap; }
.tzm__empty { padding: 12px 20px 20px; color: var(--sec); }

/* ── Times ──────────────────────────────────────────────────────────── */
.times { flex: 0 0 306px; max-width: 0; overflow: hidden; display: flex; flex-direction: column; transition: max-width 0.22s ease-out; }
.times.on { max-width: 306px; }
.times__sub { margin: 0 0 10px; font: 400 16px/38px var(--font); color: var(--ink); white-space: nowrap; }
.times__list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 16px 15px 8px; }
.spots { padding-top: 8px; }   /* their spot-list's 8px stacks on the first row's 10px */
.spot-row { display: flex; height: 52px; margin: 10px 2px; overflow: hidden; }   /* the Next card rides in from the row's edge and is clipped there, as on the reference */
.time { position: relative; flex: 0 0 auto; width: 100%; height: 52px; padding: 13px 10px; border: 1px solid rgba(69,182,177,0.74); /* their #006BFF stroke is 4.7:1 on white; teal at .74 over the card is 4.7:1 */ border-radius: 4px; background: transparent; color: var(--brand); font: 700 16px/24px var(--font); text-align: center; transition: width 0.3s ease, transform 0.3s ease; }
.time:hover, .time:focus-visible { padding: 12px 9px; border-width: 2px; border-color: var(--brand); outline: 0; }
.spot-row.sel .time { width: 48.5%; padding: 12px 9px; border: 2px solid transparent; background: var(--frozen); color: var(--ink); cursor: default; pointer-events: none; }   /* their selected width, the 0.3s ease runs on it */
.next { position: relative; flex: 0 0 auto; width: 48.5%; height: 52px; margin-left: 3%; padding: 13px 10px; border: 0; border-radius: 4px; background: var(--fill); color: var(--on-fill); font: 700 16px/24px var(--font); box-shadow: 0 1px 6px rgba(0,0,0,0.3); }
.next:hover { background: var(--fill-hover); }
.time::after, .next::after { content: ''; position: absolute; top: -7px; bottom: -7px; left: 0; width: 100%; }   /* their 7px hit area into the row gap */
/* Their list scrollbar: a 16px classic bar, the thumb an 8px rounded pill in the secondary colour; it takes its 16px from the row, so the buttons are 262 when the list overflows and 278 when it does not, as on the reference. */
.times__list::-webkit-scrollbar { width: 16px; }
.times__list::-webkit-scrollbar-thumb { border: 4px solid transparent; border-radius: 8px; background-color: var(--sec); background-clip: padding-box; }
.times__empty { margin: 8px 2px; color: var(--sec); }
.banner { margin: 0 2px 6px; padding: 8px 10px; border-radius: 6px; background: rgba(224,107,107,0.12); color: var(--err); font: 400 13px/18px var(--font); }
.banner:empty { display: none; }

/* ── Details ────────────────────────────────────────────────────────── */
.form-col { flex: 1; min-width: 0; padding: 25px 30px; overflow-y: auto; }
.form-col h2 { margin: 0 0 2px; font: 700 22px/28px var(--font); color: var(--ink); }   /* +2px: Inter's baseline sits 1.6px lower in the 28px box than Proxima Nova's */
.f-group { width: 400px; }
.f-group + .f-group { margin-top: 24px; }
.f-label { display: flex; gap: 4px; margin: 0 0 4px; font: 500 14px/20px var(--font); color: var(--ink); }   /* Inter 500 carries Proxima Nova 600's stem */
.f-input { display: block; width: 100%; height: 40px; padding: 8px 12px; border: 1px solid var(--line2); border-radius: 8px; background: var(--field); color: var(--ink); font: 400 14px/19.6px var(--font); outline: 0; }
.f-input:focus { border-color: var(--brand); outline: 0; }   /* the CRM's client form edge while typing: one teal pixel (Ely, Sep 17), not their 2px */
.f-input[aria-invalid="true"] { border-color: var(--err); }
textarea.f-input { height: 57px; min-height: 40px; resize: vertical; line-height: 19.6px; }
.f-err { display: flex; align-items: center; gap: 4px; margin-top: 4px; font: 400 14px/21px var(--font); color: var(--err); }
.f-err:empty { display: none; }
.loc { margin-top: 14px; width: 400px; border: 0; padding: 0; min-width: 0; }
.loc__opts { display: flex; flex-direction: column; gap: 10px; }
.loc__opt { display: flex; align-items: center; gap: 10px; min-height: 28px; color: var(--ink); font: 400 14px/20px var(--font); cursor: pointer; }
.loc__opt input { width: 14px; height: 14px; accent-color: var(--brand); margin: 0; }
.loc__opt img { width: 22px; height: 22px; object-fit: contain; }
.f-question { margin-top: 20px; }
.consent { width: 400px; margin: 10px 0 20px; font: 400 14px/21px var(--font); color: var(--ink); }
.consent a { color: var(--cta); font-weight: 700; text-decoration: none; }
.consent a:hover { text-decoration: underline; }
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 40px; min-height: 40px; height: 40px; padding: 8px 16px; border: 1px solid var(--cta); border-radius: 9999px; background: var(--cta); color: var(--on-fill); font: 600 14px/20px var(--font); transition: transform 0.18s cubic-bezier(0.2, 0, 0, 1), background-color 0.15s, border-color 0.15s; }
.btn:hover { background: var(--fill-hover); border-color: var(--fill-hover); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn.loading { pointer-events: none; background: var(--disabled); border-color: transparent; color: var(--sec); }
.btn.loading .btn__label { visibility: hidden; }
.btn__loader { position: absolute; top: 50%; left: 50%; width: 40px; height: 12px; transform: translate(-50%, -50%); color: var(--ink); }
.btn__loader svg { width: 40px; height: 12px; }
.btn__loader path { fill: currentColor; }
.btn--outline { padding: 6px 12px; min-height: 32px; height: 32px; gap: 2px; border-color: var(--sec); background: transparent; color: var(--ink); font-weight: 400; line-height: 25px; text-decoration: none; }   /* their Open Invitation pill is regular weight */
.btn--outline:hover { background: rgba(255,255,255,0.05); border-color: var(--sec); }
.btn--outline svg { width: 16px; height: 16px; }
.submit-err { width: 400px; margin-top: 12px; }

/* ── Confirmation ───────────────────────────────────────────────────── */
.conf { position: relative; width: 100%; height: 100%; padding: 30px 30px 25px; display: flex; flex-direction: column; align-items: center; overflow-y: auto; }
.conf__col { width: 450px; max-width: 100%; }
.conf__head { display: flex; flex-direction: column; align-items: center; margin: 24px 0 32px; }
.conf__h1 { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0; padding: 0 0 18px;   /* their heading sits 10px higher with the same intro below it; 14px between the check and the text, measured ink to ink */ font: 700 22px/28px var(--font); color: var(--ink); text-align: center; }
.conf__h1 svg { width: 16px; height: 16px; color: var(--success); }
.conf__intro { margin: 0 0 16px; font: 400 14px/21px var(--font); color: var(--ink); text-align: center; }
.conf__box { width: 100%; padding: 20px; border: 1px solid var(--line2); border-radius: 8px; }
.conf__event { margin: 0 0 12px; font: 700 22px/28px var(--font); color: var(--sec); }
.conf__row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font: 700 14px/21px var(--font); color: var(--sec); }
.conf__row:last-child { margin-bottom: 0; }
.conf__row svg, .conf__row img { width: 24px; height: 24px; flex: 0 0 24px; }
.conf__row a { color: var(--brand); text-decoration: none; }
.conf__row a:hover { text-decoration: underline; }
.conf__legal { position: absolute; left: 30px; bottom: 25px; display: flex; gap: 22px; }
.conf__legal a { font: 600 14px/21px var(--font); color: var(--brand); text-decoration: none; }

/* ── Waiting, paused, failed ────────────────────────────────────────── */
/* First load, as on the reference: the large bubbles at the top of an
   empty page, the card only once the open times are in. */
.bk[data-state="loading"] { visibility: hidden; }
.page-loader { position: fixed; top: 12px; left: 50%; width: 76px; height: 24px; transform: translateX(-50%); color: var(--sec); }
.page-loader svg { width: 76px; height: 24px; }
.page-loader path { fill: currentColor; }
.status { max-width: 400px; padding: 48px 32px; text-align: center; }
.status__title { margin: 0 0 12px; font: 700 22px/28px var(--font); color: var(--ink); }
.status__msg { color: var(--sec); }

/* ── Tablet: 641 to 999, the 680 card with the side panel on top ────── */
@media (max-width: 999px) {
  .bk, .bk[data-state="slots"], .bk[data-state="details"], .bk[data-state="confirmed"] { width: 680px; max-width: calc(100vw - 33px); height: auto; min-height: 0; flex-direction: column; }
  .bk[data-state="loading"], .bk[data-state="off"], .bk[data-state="error"] { min-height: 480px; }
  .side, .bk[data-state="slots"] .side, .bk[data-state="details"] .side { width: 100%; border-right: 0; border-bottom: 1px solid var(--line); padding: 25px 0 25px; }
  .side__avatar { margin: 0 auto 12px; }
  .side__name, .side__title { padding: 0 25px; text-align: center; }
  .side__rows { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; padding: 0 30px; }
  .row { margin: 0; }
  .side__desc { text-align: center; }
  .side__legal { display: none; }
  .side__back { position: absolute; top: 25px; left: 30px; margin: 0; }
  .side--back .side__title { padding: 0 80px; }
  .spot__body { flex-direction: row; }
  .dates, .bk[data-state="slots"] .dates { flex: 0 0 378px; }
  .cal { width: 340px; }
  .times.on { flex-basis: 300px; max-width: 300px; }
  /* The list scrolls inside the calendar's own height, as on the reference. */
  .times { position: relative; }
  .times__list { position: absolute; top: 48px; left: 0; right: 0; bottom: 0; }
  .form-col { padding: 25px 0 32px; overflow: visible; }
  .form-col h2, .form-col form { width: 400px; max-width: calc(100% - 40px); margin-left: auto; margin-right: auto; }
  .f-group, .loc, .consent, .submit-err { width: 100%; }
  .conf { height: auto; padding: 30px 30px 60px; }
  .conf__legal { left: 30px; bottom: 25px; }
  .tzm { left: 2px; }
  .mfoot { display: flex; justify-content: flex-start; gap: 22px; padding: 30px 30px 25px; }
  .mfoot a { font: 600 14px/21px var(--font); color: var(--brand); text-decoration: none; }
}

/* ── Phone: up to 640, edge to edge, the times and the form as their own screens ── */
@media (max-width: 640px) {
  .page { padding: 0; }
  .bk, .bk[data-state="slots"], .bk[data-state="details"], .bk[data-state="confirmed"] { width: 100%; max-width: none; border: 0; border-radius: 0; box-shadow: none; }
  .side__name { padding: 0 45px; }
  .side__title { padding: 0 25px; font-size: 26px; }
  .side--back .side__title { padding: 0 70px; }
  .side__rows { display: block; width: min(400px, 100%); margin: 24px auto 0; padding: 0 20px; }
  .side__rows--inline { width: auto; max-width: calc(100% - 40px); align-self: center; padding: 0; }
  .row { margin-bottom: 10px; justify-content: flex-start; text-align: left; }
  .side--details .row { margin-bottom: 16px; }
  .side__back { top: 17px; left: 17px; }
  .spot { padding-top: 25px; }
  .spot__head { margin: 0 0 10px; padding: 0 20px; text-align: center; }
  .spot__body { flex-direction: column; }
  .dates, .bk[data-state="slots"] .dates { flex: 1 1 auto; padding-bottom: 25px; }
  .cal { width: 340px; max-width: calc(100% - 20px); margin: 0 auto; padding-bottom: 18px; }
  .cal__table { min-height: 0; }
  .cal__loading { top: 20px; }
  .sweep { top: 0; right: 0; left: 0; border-top-right-radius: 0; }
  table { width: 320px; margin: 0 auto; border-spacing: 4px; }
  .day { margin: 0 -2.86px 0 0; }
  .tz { width: min(400px, 100%); margin: 8px auto 0; padding: 0 12px; }
  .tzm { left: 12px; right: 12px; width: auto; max-width: none; }
  /* The times screen: its own header, then the list. */
  .mhead { position: relative; padding: 25px 0 30px; text-align: center; border-bottom: 1px solid var(--line); }
  .mhead__day { margin: 0 0 5px; font: 700 22px/26.4px var(--font); color: var(--ink); }
  .mhead__date { margin: 0 0 10px; font: 400 14px/21px var(--font); color: var(--ink); }
  .mhead .tz { width: 289px; margin: 0 auto; padding: 0; text-align: left; }
  .mhead .tz__label { text-align: left; }
  .mhead .tz__pill { padding: 6px 0 0; }   /* their phone flat spot picker: padding unset, top 6 */
  .mhead .tzm { left: 0; right: 0; bottom: auto; top: calc(100% + 4px); }
  .spot--times { padding: 15px 0 0; }
  .spot--times .spot__head { margin: 0 0 5px; padding: 0 15px; font: 700 21px/31.5px var(--font); }
  .spot__dur { margin: 0 0 8px; text-align: center; font: 400 14px/21px var(--font); color: var(--ink); }
  .times, .times.on { position: static; flex: 1 1 auto; max-width: none; overflow: visible; padding: 0 15px; }
  .times__sub { display: none; }
  .times__list { position: static; overflow: visible; padding: 10px 0 15px; }
  .spot-row { margin: 10px 2px; }
  .form-col { padding: 25px 0 32px; }
  .form-col h2, .form-col form { width: min(400px, calc(100% - 32px)); }
  .form-col .btn { width: 100%; }
  .conf { padding: 30px 40px 80px; }
  .conf__col { width: 100%; }
  .conf .btn--outline { width: 100%; }
  .conf__legal { left: 40px; bottom: 25px; }
  .mfoot { display: flex; justify-content: center; gap: 22px; padding: 30px 20px 25px; }
  .mfoot--left { justify-content: flex-start; padding-left: 16px; }
}

/* ── Booked, Reschedule and Cancel: the same card ────────────────────── */
/* /booked is the confirmation as its own page, then the call prep. Its card
   grows with the content and the page scrolls, so the video never sits in a
   scroll box. /cancel is the details layout with the reason in place of the
   form; /reschedule is the calendar with the former time in the side panel. */
.bk[data-state="booked"], .bk[data-state="cancel"], .bk[data-state="cancelled"] { width: 1060px; }
.bk[data-state="booked"] { height: auto; min-height: min(700px, calc(100vh - 96px)); }
.bk[data-state="cancel"] .side { width: 370px; }
.bk[data-state="missing"], .bk[data-state="gone"], .bk[data-state="started"] { align-items: center; justify-content: center; }
.row img { width: 24px; height: 24px; flex: 0 0 24px; object-fit: contain; }
.side__former { margin-top: 24px; padding: 0 30px; }
.side__former-label { margin: 0 0 8px; font: 700 14px/21px var(--font); color: var(--ink); }
.row--former s, .conf__row s { text-decoration-thickness: 1px; }
.f-submit { margin-top: 24px; }
.status__btn { margin-top: 24px; text-decoration: none; }
.conf--page { height: auto; padding-bottom: 80px; overflow: visible; }
.prep { width: 100%; margin-top: 48px; }
.prep__h { margin: 0 0 16px; font: 700 22px/28px var(--font); color: var(--ink); text-align: center; }
.prep__video { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line2); border-radius: 8px; background: #000; }
.prep__video mux-player { display: block; width: 100%; height: 100%; }
.prep__cap { margin: 12px 0 0; color: var(--sec); text-align: center; }
.prep__cap strong { color: var(--ink); font-weight: 700; }
.steps { list-style: none; border: 1px solid var(--line2); border-radius: 8px; }
.steps li { display: flex; align-items: center; gap: 12px; padding: 14px 20px; color: var(--ink); }
.steps li + li { border-top: 1px solid var(--line); }
.steps__n { flex: 0 0 24px; height: 24px; border-radius: 50%; background: var(--tint); color: var(--brand); font: 700 13px/24px var(--font); text-align: center; }
.note { display: flex; align-items: center; gap: 16px; margin-top: 48px; }
.note__avatar { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%; object-fit: cover; }
.note__text { color: var(--ink); }
.note__name { display: block; margin-top: 2px; font-weight: 700; color: var(--sec); }

@media (max-width: 999px) {
  .bk[data-state="booked"], .bk[data-state="cancel"], .bk[data-state="cancelled"] { width: 680px; max-width: calc(100vw - 33px); height: auto; min-height: 0; flex-direction: column; }
  .bk[data-state="cancel"] .side { width: 100%; }
  .bk[data-state="missing"], .bk[data-state="gone"], .bk[data-state="started"] { min-height: 480px; }
  .side__former { text-align: center; }
  .side__former .row { justify-content: center; }
}
@media (max-width: 640px) {
  .bk[data-state="booked"], .bk[data-state="cancel"], .bk[data-state="cancelled"] { width: 100%; max-width: none; border: 0; border-radius: 0; box-shadow: none; }
  .side__former { width: min(400px, 100%); margin: 14px auto 0; padding: 0 20px; text-align: left; }
  .side__former .row { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
