/* The hero film (openspec/changes/landing-hero-film): a desktop browser window that books on a booking page
   and then shows the booking landing in the dashboard calendar. Needs brand-tokens.css.

   The stage is drawn at a fixed desktop size (1080 × 740 px) with the values of
   static/_shared/booking-v2.css (desktop, from 980 px) and the dashboard calendar, then scaled to the window:
   /hero-film.js sets --hf-s; without it the container queries below pick a close scale. Every class is hf-.
   A time is one inline run (.hf-tm > .hf-c): use child combinators. */

.hf {
  --hf-s: .5;
  --hf-sp: var(--spring, cubic-bezier(.23, 1, .32, 1));
  --hf-glass: linear-gradient(rgb(47 70 168 / .025), rgb(47 70 168 / .025)), rgb(255 255 255 / .74);
  --hf-chip: inset 0 0 0 1px rgb(255 255 255 / .9), inset 1.5px 1.5px 0 #fff, 1px 6px 16px rgb(31 44 102 / .05);
  --hf-frost-shadow: inset 1.5px 1.5px 0 #fff, 0 0 0 1px rgb(31 44 102 / .05), 0 1px 2px rgb(31 44 102 / .04), 2px 10px 26px rgb(31 44 102 / .05);
  --hf-booked-shadow: inset 1.5px 1.5px 0 rgb(255 255 255 / .4), 2px 10px 22px rgb(47 70 168 / .28);
  --hf-selected: inset 0 0 0 2px var(--accent-500), 3px 14px 30px rgb(47 70 168 / .16);
  --hf-tint: rgb(47 70 168 / .08);
  --hf-tint-2: rgb(47 70 168 / .14);
  position: relative;
  container: hf / inline-size;
  color: var(--ink);
  font-family: Manrope, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.hf *, .hf *::before, .hf *::after { box-sizing: border-box; }
.hf :where(h2, h3, h4, h5, p, ul) { margin: 0; padding: 0; }
.hf :where(ul) { list-style: none; }
.hf [hidden] { display: none !important; }
.hf .hf-tm { white-space: nowrap; font-variant-numeric: tabular-nums; }
.hf .hf-tm > .hf-c { position: relative; top: -.06em; }
.hf svg { flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hf .hf-i { width: 18px; height: 18px; }

/* ── The window ───────────────────────────────────────────────── */
.hf-window { position: relative; overflow: hidden; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .9), 0 0 0 1px rgb(31 44 102 / .07), 0 2px 4px rgb(31 44 102 / .04), 10px 34px 80px rgb(31 44 102 / .2); }
.hf-view { position: relative; aspect-ratio: 1080 / 740; overflow: hidden; }
.hf-stage { position: absolute; top: 0; left: 0; width: 1080px; height: 740px; overflow: hidden; transform: scale(var(--hf-s)); transform-origin: 0 0; background: var(--canvas, #F8FAFE); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none; pointer-events: none; }
/* Without the script, a close scale per window width (the script measures the exact one). */
@container hf (min-width: 300px) { .hf-stage { --hf-s: .2777; } }
@container hf (min-width: 340px) { .hf-stage { --hf-s: .3148; } }
@container hf (min-width: 380px) { .hf-stage { --hf-s: .3518; } }
@container hf (min-width: 420px) { .hf-stage { --hf-s: .3888; } }
@container hf (min-width: 460px) { .hf-stage { --hf-s: .4259; } }
@container hf (min-width: 500px) { .hf-stage { --hf-s: .4629; } }
@container hf (min-width: 540px) { .hf-stage { --hf-s: .5; } }
@container hf (min-width: 580px) { .hf-stage { --hf-s: .537; } }
@container hf (min-width: 620px) { .hf-stage { --hf-s: .574; } }
@container hf (min-width: 660px) { .hf-stage { --hf-s: .6111; } }
@container hf (min-width: 700px) { .hf-stage { --hf-s: .6481; } }
@container hf (min-width: 760px) { .hf-stage { --hf-s: .7037; } }

.hf-chrome { position: relative; z-index: 60; display: flex; align-items: center; height: 42px; padding: 0 16px; background: linear-gradient(#FBFCFE, #F3F5FA); box-shadow: inset 0 -1px 0 rgb(31 29 26 / .07); }
.hf-dots { display: flex; gap: 8px; }
.hf-dots i { width: 12px; height: 12px; border-radius: 50%; background: rgb(31 29 26 / .13); }
.hf-url { position: absolute; left: 50%; top: 8px; display: grid; grid-template-columns: auto auto; align-items: center; justify-content: center; gap: 7px; min-width: 300px; height: 26px; padding: 0 16px; border-radius: 9px; background: #fff; color: var(--ink-2); font-size: 13px; font-weight: 600; letter-spacing: -.005em; transform: translateX(-50%); box-shadow: inset 0 0 0 1px rgb(31 29 26 / .08); }
.hf-url .hf-i { width: 13px; height: 13px; color: var(--ink-3); }
.hf-url > span { grid-column: 2; grid-row: 1; transition: opacity 320ms linear; }
.hf-host-b { opacity: 0; }
.hf.is-cal .hf-host-a { opacity: 0; }
.hf.is-cal .hf-host-b { opacity: 1; }
.hf-page { position: absolute; inset: 42px 0 0; overflow: hidden; }
.hf-scene { position: absolute; inset: 0; visibility: hidden; opacity: 0; }
.hf-scene.is-on { visibility: visible; opacity: 1; }

/* The cursor and the morph shell live on the stage, in its own coordinates. */
.hf-cursor { position: absolute; z-index: 80; top: 0; left: 0; width: 26px; height: 26px; opacity: 0; transform: translate(760px, 560px); filter: drop-shadow(0 2px 3px rgb(15 23 52 / .3)); }
.hf-cursor svg { width: 100%; height: 100%; fill: #fff; stroke: var(--ink); stroke-width: 1.3; }
.hf-shell { position: absolute; z-index: 70; top: 0; left: 0; overflow: hidden; background: var(--booked-fill); color: #fff; box-shadow: inset 1.5px 1.5px 0 rgb(255 255 255 / .38), 6px 22px 44px rgb(31 44 102 / .24); }

/* ── Booking page: booking-v2.css at desktop width ────────────── */
.hf-book { background: linear-gradient(180deg, #FCFDFF, var(--canvas, #F8FAFE) 55%, #F9FAFD); }
.hf-light { position: absolute; inset: 0; overflow: hidden; }
.hf-light i { position: absolute; border-radius: 26%; filter: blur(70px); }
.hf-light i:nth-child(1) { width: 560px; height: 560px; left: 120px; top: -330px; background: color-mix(in srgb, var(--accent-300) 45%, #fff); opacity: .75; }
.hf-light i:nth-child(2) { width: 380px; height: 380px; right: -170px; top: 140px; background: color-mix(in srgb, var(--accent-300) 60%, #fff); opacity: .4; }
.hf-light i:nth-child(3) { width: 480px; height: 480px; left: 420px; bottom: -380px; background: color-mix(in srgb, var(--accent-300) 30%, #fff); opacity: .7; }
.hf-glass { position: relative; background: var(--hf-glass); -webkit-backdrop-filter: blur(22px) saturate(1.8); backdrop-filter: blur(22px) saturate(1.8); box-shadow: 0 1px 2px rgb(31 44 102 / .05), 4px 18px 44px rgb(31 44 102 / .13); }
.hf-glass::before { content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit; background: linear-gradient(135deg, rgb(255 255 255 / .98), rgb(255 255 255 / .22) 50%, rgb(255 255 255 / .6)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }

/* Side panel */
.hf-side { position: absolute; z-index: 5; top: 0; bottom: 0; left: 0; display: flex; flex-direction: column; gap: 22px; width: 360px; padding: 32px 36px 24px; background: linear-gradient(160deg, rgb(255 255 255 / .86), rgb(255 255 255 / .64)); box-shadow: inset -1px 0 0 rgb(255 255 255 / .95), 1px 0 0 rgb(31 44 102 / .06), 16px 0 48px rgb(31 44 102 / .05); }
.hf-lockup { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hf-logo, .hf-avatar { display: grid; flex: none; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: var(--booked-fill); color: #fff; font-size: 15px; font-weight: 800; letter-spacing: -.03em; box-shadow: inset 1.5px 1.5px 0 rgb(255 255 255 / .45), 2px 6px 14px rgb(31 44 102 / .22); }
.hf-org, .hf-who { min-width: 0; line-height: 1.3; }
.hf-org b, .hf-who b { display: block; font-size: 16px; font-weight: 700; letter-spacing: -.025em; overflow-wrap: break-word; }
.hf-org small, .hf-who small { display: block; color: var(--ink-2); font-size: 13px; overflow-wrap: break-word; }
.hf-host { display: flex; align-items: center; gap: 12px; }
.hf-avatar { width: 40px; height: 40px; border-radius: 13px; font-size: 13px; font-weight: 700; box-shadow: inset 1.5px 1.5px 0 rgb(255 255 255 / .4); }
.hf-who b { font-size: 14px; letter-spacing: -.02em; }
.hf-who small { font-size: 12.5px; }
/* The service name wraps whole; long names step down a size instead of being cut (hero-film.mjs sets the class). */
.hf-title { font-size: 34px; font-weight: 700; line-height: 1.04; letter-spacing: -.06em; overflow-wrap: break-word; hyphens: auto; }
.hf-title.is-long { font-size: 28px; letter-spacing: -.05em; }
.hf-title.is-longer { font-size: 23px; letter-spacing: -.04em; line-height: 1.1; }
.hf-facts { display: grid; gap: 10px; font-size: 13.5px; }
.hf-facts li { display: flex; align-items: flex-start; gap: 10px; min-width: 0; font-weight: 600; }
.hf-facts .hf-i { margin-top: 1px; color: var(--accent-500); }
.hf-facts .hf-fact-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
.hf-fact-row > span { color: var(--ink-3); font-size: 12.5px; overflow-wrap: break-word; }
.hf-fact-row > b { font-weight: 650; overflow-wrap: break-word; }
.hf-sum h4 { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; color: var(--ink-3); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; transition: color 300ms linear; }
.hf-sum h4 i { display: none; width: 16px; height: 16px; border-radius: 5px; background: var(--booked-fill); }
.hf-sum.is-booked h4 { color: var(--accent-500); }
.hf-sum.is-booked h4 i { display: inline-block; }
.hf-srow { display: grid; grid-template-columns: 86px minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-strong); font-size: 14px; }
.hf-srow:last-child { border-bottom: 1px solid var(--line-strong); }
.hf-srow > span { color: var(--ink-3); font-size: 12.5px; font-weight: 600; overflow-wrap: break-word; }
.hf-srow b { display: block; font-weight: 650; letter-spacing: -.01em; overflow-wrap: break-word; }
.hf-srow b > span { display: block; overflow-wrap: break-word; }
.hf-muted { color: var(--ink-3); font-weight: 500; }
.hf-credit { display: flex; align-items: center; gap: 6px; margin-top: auto; color: var(--ink-3); font-size: 12.5px; }
.hf-credit .hf-mark { width: 16px; height: 16px; }
.hf-credit b { color: var(--ink); font-size: 13px; font-weight: 700; letter-spacing: -.045em; }

/* Steps column: the header and the action bar float over the column */
.hf-main { position: absolute; top: 0; right: 0; bottom: 0; left: 360px; }
.hf-head { position: absolute; z-index: 20; top: 12px; left: 80px; display: flex; align-items: center; gap: 12px; width: 560px; min-height: 52px; padding: 8px 14px 8px 18px; border-radius: 22px; }
.hf-steplbl { flex: 1; min-width: 0; overflow: hidden; color: var(--ink-2); font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.hf-prog { display: flex; align-items: center; gap: 5px; padding: 0 4px; }
.hf-prog i { width: 9px; height: 9px; border-radius: 2.8px; background: var(--hf-tint-2); transition: background-color 320ms var(--hf-sp), width 450ms var(--hf-sp); }
.hf-prog i.is-done { background: var(--accent-500); }
.hf-prog i.is-on { width: 22px; background: var(--accent-500); }
.hf-prog.is-done { visibility: hidden; }
.hf-step { position: absolute; inset: 0; display: none; }
.hf-step.is-on { display: block; }
.hf-scroll { position: absolute; inset: 0; overflow: hidden; }
.hf-col { width: 560px; margin-left: 80px; padding: 94px 0 130px; }
.hf-step[data-hf="step-done"] .hf-col { padding-bottom: 40px; }
.hf-kicker { margin-bottom: 8px; color: var(--accent-500); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; overflow-wrap: break-word; }
.hf-h { font-size: 38px; font-weight: 700; line-height: 1.04; letter-spacing: -.055em; }
.hf-lede { margin-top: 10px; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.hf-label { display: block; margin: 22px 0 10px; color: var(--ink-3); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

/* Step rise (booking-v2.css .step-panel.is-active > *): set by the script on a step change */
.hf-col.is-rising > * { animation: hf-rise 450ms var(--hf-sp) both; }
.hf-col.is-rising > :nth-child(2) { animation-delay: 50ms; }
.hf-col.is-rising > :nth-child(3) { animation-delay: 100ms; }
.hf-col.is-rising > :nth-child(4) { animation-delay: 150ms; }
.hf-col.is-rising > :nth-child(n + 5) { animation-delay: 200ms; }
.hf-col.is-rising > .hf-slotbar, .hf-col.is-rising > .hf-done { animation: none; }
@keyframes hf-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes hf-rise-tile { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hf-pane.is-rising .hf-tgrid > * { animation: hf-rise-tile 440ms var(--hf-sp) both; }
.hf-pane.is-rising .hf-tgrid > :nth-child(2) { animation-delay: 28ms; }
.hf-pane.is-rising .hf-tgrid > :nth-child(3) { animation-delay: 56ms; }
.hf-pane.is-rising .hf-tgrid > :nth-child(4) { animation-delay: 84ms; }
.hf-pane.is-rising h5 ~ h5 + .hf-tgrid > * { animation-delay: 112ms; }
.hf-settle { animation: hf-settle 320ms var(--hf-sp) both; }
@keyframes hf-settle { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
/* Press feedback: the tile presses to .96–.985 (BRAND §8.5) */
.hf .is-press { transform: scale(.965); transition-duration: 100ms; }

/* Month calendar (templates/meeting.html) */
.hf-cal-month { margin-top: 22px; }
.hf-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.hf-month { min-width: 0; overflow: hidden; font-size: 17px; font-weight: 700; letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
.hf-month::first-letter { text-transform: uppercase; }
.hf-wk { margin-left: 4px; color: var(--ink-3); font-size: 12.5px; font-weight: 600; letter-spacing: 0; }
.hf-cal-nav { display: flex; gap: 6px; }
.hf-cal-nav i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--hf-tint); color: var(--accent-700); }
.hf-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.hf-dow { padding: 0 0 2px; color: var(--ink-3); font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.hf-cday { position: relative; display: grid; place-items: center; height: 54px; border-radius: 14px; color: var(--ink-3); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; transition: background-color 320ms var(--hf-sp), color 320ms var(--hf-sp), box-shadow 320ms var(--hf-sp), transform 240ms var(--hf-sp); }
.hf-cday.is-muted { opacity: .55; }
.hf-cday.is-open { padding-bottom: 7px; background: var(--frost); color: var(--accent-700); box-shadow: var(--hf-chip); }
.hf-cday.is-today:not(.is-sel) { color: var(--accent-700); font-weight: 800; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent-300) 60%, #fff), var(--hf-chip); }
.hf-cday.is-sel { background: var(--booked-fill); color: #fff; box-shadow: var(--hf-booked-shadow); }
.hf-heat { position: absolute; bottom: 7px; left: 50%; display: flex; gap: 2px; transform: translateX(-50%); }
.hf-heat i { width: 4px; height: 4px; border-radius: 1.3px; background: var(--accent-500); opacity: .6; }
.hf-cday.is-sel .hf-heat i { background: #fff; opacity: .85; }

/* Day strip, people, chips (booking-v2.css .bk-day, .bk-person; asset.html .duration-chip) */
.hf-days { display: flex; gap: 8px; margin: 18px 0 6px; }
.hf-day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 66px; min-height: 86px; padding: 9px 0 10px; border-radius: 18px; background: var(--frost); color: var(--accent-700); box-shadow: var(--hf-chip); transition: background-color 320ms var(--hf-sp), color 320ms var(--hf-sp), box-shadow 320ms var(--hf-sp), transform 240ms var(--hf-sp); }
.hf-day small { max-width: 58px; overflow: hidden; font-size: 11.5px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.hf-day small:last-child { font-size: 10.5px; font-weight: 600; opacity: .75; }
.hf-day b { font-size: 22px; font-weight: 600; letter-spacing: -.03em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.hf-day.is-sel { background: var(--booked-fill); color: #fff; box-shadow: var(--hf-booked-shadow); }
.hf-day.is-off { background: rgb(255 255 255 / .35); color: var(--ink-3); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .6); }
.hf-day.is-off b { text-decoration: line-through; text-decoration-thickness: 1.5px; text-decoration-color: rgb(31 29 26 / .25); }
.hf-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 8px; }
.hf-person { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 68px; padding: 10px 14px 10px 10px; border-radius: 20px; background: var(--frost); box-shadow: var(--hf-frost-shadow); transition: background-color 320ms var(--hf-sp), box-shadow 320ms var(--hf-sp), transform 240ms var(--hf-sp); }
.hf-person.is-sel { background: rgb(255 255 255 / .94); box-shadow: var(--hf-selected); }
.hf-pav { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: color-mix(in srgb, var(--accent-100) 70%, #fff); color: var(--accent-700); font-size: 15px; font-weight: 700; box-shadow: inset 0 0 0 1px var(--accent-100); }
.hf-pav[data-tone="1"] { background: #FFFBEB; color: #B45309; box-shadow: inset 0 0 0 1px #FDE68A; }
.hf-pav[data-tone="2"] { background: #F5F3FF; color: #6D28D9; box-shadow: inset 0 0 0 1px #DDD6FE; }
.hf-pav[data-tone="3"] { background: #FFF1F2; color: #BE123C; box-shadow: inset 0 0 0 1px #FECDD3; }
.hf-pav-any { background: var(--hf-tint); color: var(--accent-500); box-shadow: none; }
.hf-pav-any svg { width: 22px; height: 22px; }
.hf-ptx { display: block; min-width: 0; line-height: 1.3; }
.hf-ptx b { display: block; font-size: 15px; font-weight: 700; letter-spacing: -.02em; overflow-wrap: break-word; }
.hf-ptx small { display: block; color: var(--ink-2); font-size: 12.5px; line-height: 1.3; overflow-wrap: break-word; }
.hf-soon { display: inline-block; margin-top: 5px; padding: 3px 9px; border-radius: 999px; background: var(--hf-tint); color: var(--accent-700); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.hf-durations { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 20px; }
.hf-durations .hf-label { margin: 0 4px 0 0; }
.hf-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--frost); color: var(--ink-2); font-size: 13.5px; font-weight: 700; white-space: nowrap; box-shadow: var(--hf-chip); transition: background-color 320ms var(--hf-sp), color 320ms var(--hf-sp), transform 240ms var(--hf-sp); }
.hf-chip.is-sel { background: var(--booked-fill); color: #fff; box-shadow: var(--hf-booked-shadow); }

/* Times */
.hf-slots { margin-top: 26px; }
.hf-slots-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.hf-slots-head > span:first-child { min-width: 0; font-size: 17px; font-weight: 700; letter-spacing: -.025em; overflow-wrap: break-word; }
.hf-slots-head > span:first-child::first-letter { text-transform: uppercase; }
.hf-count { flex: none; color: var(--ink-3); font-size: 12.5px; font-weight: 600; }
.hf-pane h5 { margin: 18px 0 10px; color: var(--ink-3); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hf-pane h5:first-child { margin-top: 2px; }
.hf-tgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.hf-tgrid-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hf-time { display: grid; place-items: center; min-height: 54px; padding: 0 6px; border-radius: 16px; background: var(--frost); color: var(--accent-700); font-size: 17px; font-weight: 600; letter-spacing: -.01em; box-shadow: var(--hf-chip); transition: background-color 260ms var(--hf-sp), color 260ms var(--hf-sp), box-shadow 260ms var(--hf-sp), transform 240ms var(--hf-sp); }
.hf-time.hf-wide { display: flex; align-items: center; justify-content: center; gap: 2px; font-size: 15.5px; }
.hf-dash { opacity: .7; }
.hf-time.is-sel { background: var(--booked-fill); color: #fff; box-shadow: var(--hf-booked-shadow); }

/* Class sessions (class.html list tiles) */
.hf-list { display: grid; gap: 10px; margin-top: 22px; }
.hf-tile { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: 84px; padding: 14px 16px 14px 18px; border-radius: 22px; background: var(--frost); box-shadow: var(--hf-frost-shadow); transition: background-color 320ms var(--hf-sp), box-shadow 320ms var(--hf-sp), transform 240ms var(--hf-sp); }
.hf-tile.is-sel { background: rgb(255 255 255 / .94); box-shadow: var(--hf-selected); }
.hf-tile.is-off { opacity: .55; }
.hf-st { color: var(--accent-700); font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.hf-tx { display: block; min-width: 0; }
.hf-tx b { display: block; font-size: 16px; font-weight: 700; letter-spacing: -.025em; overflow-wrap: break-word; }
.hf-tx small { display: block; margin-top: 2px; color: var(--ink-2); font-size: 13px; }
.hf-meta { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.hf-meta .hf-soon { margin: 0; }
.hf-units { display: inline-flex; gap: 2px; }
.hf-units i { width: 6px; height: 6px; border-radius: 1.8px; background: color-mix(in srgb, var(--accent-300) 45%, #fff); box-shadow: inset 0 0 0 1px rgb(47 70 168 / .18); }
.hf-units i.is-taken { background: var(--accent-500); box-shadow: none; }
.hf-tick { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--hf-tint); box-shadow: inset 0 0 0 1px var(--hf-tint-2); transition: background-color 320ms var(--hf-sp); }
.hf-tick svg { width: 15px; height: 15px; stroke: #fff; stroke-width: 2.6; stroke-dasharray: 22; stroke-dashoffset: 22; transition: stroke-dashoffset 320ms var(--hf-sp) 60ms; }
.is-sel > .hf-tick { background: var(--booked-fill); box-shadow: none; }
.is-sel > .hf-tick svg { stroke-dashoffset: 0; }

/* Action bar */
.hf-bar { position: absolute; z-index: 20; bottom: 14px; left: 80px; width: 560px; }
.hf-bar-in { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 26px; }
.hf-back { display: grid; flex: none; place-items: center; width: 48px; height: 48px; overflow: hidden; border-radius: 18px; background: var(--hf-tint); color: var(--accent-700); }
.hf-back.is-gone { width: 0; margin-right: -10px; opacity: 0; }
.hf-bsum { flex: 1; min-width: 0; padding-left: 4px; line-height: 1.4; }
.hf-bsum > * { display: block; overflow-wrap: break-word; }
.hf-bsum > b { font-size: 14px; font-weight: 700; letter-spacing: -.015em; }
.hf-bsum > span { color: var(--ink-2); font-size: 12.5px; }
.hf-bsum > span > span { display: block; overflow-wrap: break-word; }
.hf-go { display: inline-flex; flex: none; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border-radius: 18px; background: var(--booked-fill); color: #fff; font-size: 15px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; box-shadow: inset 1px 1px 0 rgb(255 255 255 / .38), 0 8px 20px rgb(47 70 168 / .3); transition: opacity 240ms linear, box-shadow 240ms var(--hf-sp), transform 200ms var(--hf-sp); }
.hf-go.is-off { opacity: .4; box-shadow: none; }
.hf-go-wide { max-width: 62%; padding-block: 6px; white-space: normal; line-height: 1.2; text-align: center; }

/* Details */
.hf-slotbar { display: flex; align-items: center; gap: 16px; min-height: 76px; margin: 0 0 26px; padding: 12px 16px 12px 20px; border-radius: 22px; background: var(--booked-fill); color: #fff; box-shadow: inset 1.5px 1.5px 0 rgb(255 255 255 / .4), 4px 16px 32px rgb(47 70 168 / .26); }
.hf-slotbar-t { flex: none; font-size: 30px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.hf-slotbar-sep { flex: none; align-self: stretch; width: 1px; margin: 8px 0; background: rgb(255 255 255 / .28); }
.hf-slotbar-d { flex: 1; min-width: 0; line-height: 1.3; }
.hf-slotbar-d b { display: block; font-size: 15px; font-weight: 700; letter-spacing: -.015em; overflow-wrap: break-word; }
.hf-slotbar-d span { display: block; font-size: 12.5px; opacity: .86; overflow-wrap: break-word; }
.hf-slotbar-d b::first-letter { text-transform: uppercase; }
.hf-slotbar-x { flex: none; padding: 6px 10px; border-radius: 999px; background: rgb(255 255 255 / .16); font-size: 12px; font-weight: 700; }
.hf-slotbar-x::first-letter { text-transform: uppercase; }
.hf-form { display: grid; gap: 16px; margin-top: 22px; }
.hf-field { display: grid; gap: 7px; }
.hf-flabel { font-size: 13px; font-weight: 650; }
.hf-req { margin-left: 3px; color: var(--status-danger-text, #A24949); font-weight: 700; }
.hf-input { display: flex; align-items: center; min-height: 54px; padding: 0 16px; border-radius: 16px; background: var(--frost-strong); font-size: 16px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line-strong), inset 1.5px 1.5px 0 #fff; transition: box-shadow 160ms var(--hf-sp), background-color 160ms var(--hf-sp); }
.hf-input.is-focus { background: #fff; box-shadow: inset 0 0 0 2px var(--accent-500), 0 0 0 5px rgb(47 70 168 / .12); }
.hf-typed { white-space: pre; }
.hf-caret { display: none; width: 1.5px; height: 20px; margin-left: 1px; background: var(--accent-500); }
.hf-input.is-focus .hf-caret { display: block; animation: hf-blink 1s steps(1) infinite; }
@keyframes hf-blink { 50% { opacity: 0; } }

/* Confirmation: the ticket, centred (booking-v2.css .bk-done) */
.hf-done { width: 480px; margin: 0 auto; }
.hf-ticket-wrap { position: relative; margin: 18px 16px 0 0; }
.hf-ticket-back { position: absolute; inset: 0; border-radius: 30px; opacity: 0; background: linear-gradient(135deg, color-mix(in srgb, var(--accent-100) 92%, transparent), color-mix(in srgb, var(--accent-300) 70%, transparent)); box-shadow: inset 1.5px 1.5px 0 rgb(255 255 255 / .9), inset 0 0 0 1px rgb(255 255 255 / .6); }
.hf-ticket-wrap.is-landed .hf-ticket-back { animation: hf-slide-out 1000ms var(--hf-sp) 60ms both; }
@keyframes hf-slide-out { from { opacity: 0; transform: none; } 25% { opacity: 1; } to { opacity: 1; transform: translate(16px, -16px); } }
.hf-ticket { position: relative; display: flex; flex-direction: column; min-height: 236px; padding: 22px 24px; overflow: hidden; border-radius: 30px; background: var(--booked-fill); color: #fff; box-shadow: inset 2px 2px 0 rgb(255 255 255 / .38), 8px 26px 50px rgb(31 44 102 / .26); }
.hf-ticket::after { content: ""; position: absolute; inset: -40% -60%; opacity: 0; background: linear-gradient(115deg, transparent 40%, rgb(255 255 255 / .24) 48%, rgb(255 255 255 / .06) 52%, transparent 60%); }
.hf-ticket-wrap.is-landed .hf-ticket::after { animation: hf-glint 1500ms cubic-bezier(.23, 1, .32, 1) 140ms both; }
@keyframes hf-glint { from { opacity: 0; transform: translateX(-60%); } 15% { opacity: 1; } to { opacity: 0; transform: translateX(60%); } }
.hf-ticket-top { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; font-weight: 700; }
.hf-ok { display: grid; flex: none; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: rgb(255 255 255 / .18); }
.hf-ok svg { width: 15px; height: 15px; stroke: #fff; stroke-width: 2.6; stroke-dasharray: 22; stroke-dashoffset: 22; }
.hf-ticket-wrap.is-landed .hf-ok svg { animation: hf-draw 560ms var(--hf-sp) 240ms both; }
@keyframes hf-draw { to { stroke-dashoffset: 0; } }
.hf-biz { min-width: 0; margin-left: auto; font-weight: 600; opacity: .8; overflow-wrap: break-word; }
.hf-ticket-t { margin-top: auto; padding-top: 22px; font-size: 62px; font-weight: 600; line-height: .95; letter-spacing: -.04em; white-space: nowrap; }
.hf-ticket-t small { display: inline-block; font-size: .42em; font-weight: 500; letter-spacing: -.02em; opacity: .7; }
.hf-ticket-d { margin-top: 10px; font-size: 19px; font-weight: 650; letter-spacing: -.02em; }
.hf-ticket-d::first-letter { text-transform: uppercase; }
.hf-ticket-m { margin-top: 4px; font-size: 13.5px; opacity: .86; overflow-wrap: break-word; }
.hf-after { margin-top: 30px; text-align: center; }
.hf-after.is-waiting { visibility: hidden; }
.hf-after.is-rising > * { animation: hf-rise 450ms var(--hf-sp) both; }
.hf-after.is-rising > :nth-child(2) { animation-delay: 50ms; }
.hf-after.is-rising > :nth-child(3) { animation-delay: 100ms; }
.hf-h2 { font-size: 32px; font-weight: 700; line-height: 1.08; letter-spacing: -.05em; }
.hf-after .hf-lede { margin-top: 8px; }
.hf-after .hf-lede b { color: var(--ink); font-weight: 650; }
.hf-act { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 220px; min-height: 52px; margin-top: 20px; padding: 0 18px; border-radius: 18px; font-size: 14.5px; font-weight: 700; }
.hf-act .hf-i { color: var(--accent-500); }

/* ── Dashboard calendar (the calendar route's slot grammar) ───── */
.hf-cal { display: flex; background: var(--canvas, #F8FAFE); }
.hf-rail { display: flex; flex: none; flex-direction: column; align-items: center; gap: 8px; width: 68px; padding: 18px 0 16px; background: linear-gradient(180deg, rgb(255 255 255 / .9), rgb(255 255 255 / .72)); box-shadow: inset -1px 0 0 rgb(31 44 102 / .06); }
.hf-rail .hf-mark { width: 30px; height: 30px; margin-bottom: 14px; }
.hf-rail > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--ink-3); }
.hf-rail > span.is-on { background: var(--hf-tint); color: var(--accent-500); }
.hf-rail .hf-me { width: 34px; height: 34px; margin-top: auto; border-radius: 11px; background: var(--booked-fill); color: #fff; font-size: 12px; font-weight: 700; }
.hf-cal-main { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 18px 22px 20px; }
.hf-cbar { display: flex; align-items: center; gap: 12px; min-height: 44px; margin-bottom: 14px; }
.hf-cbar h3 { font-size: 24px; font-weight: 700; letter-spacing: -.04em; }
.hf-range { overflow: hidden; color: var(--ink-2); font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.hf-grow { flex: 1; }
.hf-btn { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 11px; background: #fff; font-size: 13px; font-weight: 700; box-shadow: inset 0 0 0 1px var(--line-strong); }
.hf-navs { display: flex; gap: 4px; }
.hf-navs i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--ink-2); }
.hf-navs .hf-i { width: 16px; height: 16px; }
.hf-segs { display: flex; padding: 3px; border-radius: 12px; background: rgb(31 29 26 / .05); }
.hf-segs i { padding: 6px 12px; border-radius: 9px; color: var(--ink-2); font-size: 12.5px; font-style: normal; font-weight: 700; }
.hf-segs i.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgb(31 44 102 / .1); }
.hf-week { display: flex; flex: 1; flex-direction: column; min-height: 0; overflow: hidden; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px rgb(31 44 102 / .05), 0 1px 2px rgb(31 44 102 / .04), 2px 10px 26px rgb(31 44 102 / .05); }
.hf-week-head { display: grid; grid-template-columns: 58px repeat(var(--hf-days, 5), minmax(0, 1fr)); height: 50px; box-shadow: inset 0 -1px 0 var(--line); }
.hf-wd { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--ink-2); }
.hf-wd small { font-size: 12.5px; font-weight: 700; }
.hf-wd b { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 4px; border-radius: 9px; color: var(--ink); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hf-wd.is-today small { color: var(--accent-500); }
.hf-wd.is-today b { background: var(--booked-fill); color: #fff; }
.hf-week-body { position: relative; display: grid; flex: 1; grid-template-columns: 58px repeat(var(--hf-days, 5), minmax(0, 1fr)); margin: 10px 0 12px; }
.hf-hours { position: relative; }
.hf-hours > span { position: absolute; right: 10px; color: var(--ink-3); font-size: 11px; font-weight: 600; transform: translateY(-50%); }
.hf-hours > span:first-child { transform: none; }
.hf-col-day { position: relative; box-shadow: inset 1px 0 0 var(--line); }
.hf-col-day > i { position: absolute; left: 0; right: 0; height: 1px; background: var(--line); }
.hf-col-day > .hf-past { z-index: 3; top: 0; height: auto; background: rgb(248 250 254 / .62); }
.hf-col-day > .hf-now { z-index: 12; left: -4px; height: 2px; background: var(--accent-500); }
.hf-now::before { content: ""; position: absolute; left: 0; top: -4px; width: 10px; height: 10px; border-radius: 3px; background: var(--accent-500); }
.hf-ev { position: absolute; z-index: 10; left: 3px; right: 3px; display: flex; flex-direction: column; overflow: hidden; padding: 7px 9px; border-radius: 8px; color: #fff; background: var(--booked-fill); box-shadow: inset 1px 1px 0 rgb(255 255 255 / .28), 1px 3px 8px rgb(31 44 102 / .16); }
.hf-ev.is-short { justify-content: center; padding: 2px 8px; }
.hf-ev-top { display: flex; align-items: center; gap: 5px; min-width: 0; }
.hf-ev-top b { flex: 1; min-width: 0; overflow: hidden; font-size: 12px; font-weight: 700; line-height: 16px; letter-spacing: -.01em; text-overflow: ellipsis; white-space: nowrap; }
.hf-ev-top .hf-i { width: 13px; height: 13px; }
.hf-ev-meta { overflow: hidden; font-size: 11px; font-weight: 600; line-height: 14px; opacity: .88; text-overflow: ellipsis; white-space: nowrap; }
.hf-ev-count { display: inline-flex; flex: none; align-items: center; gap: 2px; padding: 1px 6px; border-radius: 999px; background: rgb(255 255 255 / .2); font-size: 11px; font-weight: 700; line-height: 14px; }
.hf-ev-count svg { width: 10px; height: 10px; }
.hf-ev[data-kind="busy"] { color: var(--ink-2); background-color: #fff; background-image: linear-gradient(rgb(255 255 255 / .5), rgb(255 255 255 / .5)), repeating-linear-gradient(135deg, rgb(31 29 26 / .1) 0 3px, transparent 3px 7px), linear-gradient(var(--slot-busy), var(--slot-busy)); box-shadow: inset 1px 1px 0 rgb(255 255 255 / .8), inset 0 0 0 1px var(--line-strong); }
.hf-ev[data-past] { color: var(--ink); background: color-mix(in srgb, var(--accent-500) 6%, #fff); box-shadow: inset 3px 0 0 var(--accent-500), inset 0 0 0 1px rgb(47 70 168 / .16); }
.hf-ev[data-past] .hf-ev-meta { color: var(--ink-2); opacity: 1; }
/* Arriving bookings wait unseen, then appear like the calendar's own events: fade in and rise 8 px. */
.hf.is-playing .hf-ev[data-hf-ev], .hf.is-playing .hf-ev[data-hf="ev-main"] { visibility: hidden; }
.hf.is-playing .hf-ev.is-in { visibility: visible; animation: hf-ev-in 320ms var(--hf-sp) both; }
.hf.is-playing .hf-ev.is-landed { visibility: visible; }
@keyframes hf-ev-in { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }

/* ── Pause and play ───────────────────────────────────────────── */

/* ── Reduced motion, reduced transparency, forced colours ─────── */
@media (prefers-reduced-motion: reduce) {
  .hf *, .hf *::before, .hf *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .hf-ticket-back { opacity: 1; transform: translate(16px, -16px); }
  .hf-ok svg { stroke-dashoffset: 0; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .hf-glass, .hf-side { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 0 0 1px var(--cobalt-200, #BACBED); }
  .hf-glass::before, .hf-light { display: none; }
}
@media (forced-colors: active) {
  .hf-window { border: 1px solid CanvasText; }
  .hf .is-sel { outline: 3px solid Highlight; outline-offset: -3px; }
}
