:root {
  color-scheme: light;
  --ink: #102235; --muted: #586a79; --brand: #91420f; --brand-strong: #743208;
  --brand-soft: #fff5ed; --navy: #102235; --navy-hover: #1d3851; --paper: #fff;
  --canvas: #f6f7f8; --line: #e0e5e9; --line-strong: #93a3af; --success: #176b4a;
  --success-soft: #eaf8f1; --danger: #9b2922; --danger-soft: #fff0ef;
  --info-soft: #f4f7f9; --focus: #1769aa; --shadow: 0 3px 18px rgba(16,34,53,.035);
}
* { box-sizing: border-box; }
[hidden] { display:none!important; }
html { min-height: 100%; background: var(--canvas); }
body {
  min-height: 100vh; margin: 0;
  background:var(--canvas);
  color: var(--ink); font: 16px/1.55 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  -webkit-font-smoothing: antialiased;
}
.shell { display:flex; width:min(880px,100%); min-height:100vh; margin:auto; padding:clamp(28px,6vw,68px) clamp(20px,5vw,44px) 0; flex-direction:column; }
.page-header,.patient-header { width:100%; }
.brand-bar { display:flex; min-height:72px; margin-bottom:36px; padding-bottom:22px; align-items:center; justify-content:space-between; gap:20px; border-bottom:1px solid var(--line); }
.brand-lockup { display:flex; align-items:center; gap:12px; }
.home-brand { display:inline-flex; align-items:center; min-height:44px; color:inherit; text-decoration:none; }
.home-brand:hover { text-decoration:none; }
.home-brand:focus-visible { outline:3px solid #0073b1; outline-offset:4px; border-radius:4px; }
.brand-logo-link { width:max-content; max-width:100%; }
.brand-logo { display:block; width:360px; max-width:100%; height:auto; }
.video-home { display:flex; height:60px; padding:8px 16px; align-items:center; border-bottom:1px solid var(--line); background:#fff; }
.video-home .brand-logo { width:176px; }
.video-call-page .video-call-shell { height:calc(100dvh - 60px); }
.brand-symbol { display:grid; width:38px; height:38px; place-items:center; border-radius:11px; background:var(--brand); color:#fff; font-size:1.45rem; font-weight:700; box-shadow:0 7px 18px rgba(145,66,15,.18); }
.brand { margin:0; color:var(--ink); font-size:.78rem; font-weight:900; letter-spacing:.14em; }
.brand-caption { margin:1px 0 0; color:var(--muted); font-size:.78rem; }
.secure-label { padding:7px 11px; border:1px solid #bdd4ca; border-radius:999px; background:var(--success-soft); color:var(--success); font-size:.76rem; font-weight:800; }
.hero-copy { max-width:720px; }
.eyebrow { margin:0 0 .35rem; color:var(--brand); font-size:.76rem; font-weight:800; letter-spacing:.1em; }
h1,h2,h3 { color:var(--ink); letter-spacing:-.02em; }
h1 { max-width:760px; margin:.25rem 0 .65rem; font-size:clamp(1.9rem,3.5vw,2.65rem); font-weight:650; line-height:1.16; text-wrap:balance; }
h2 { margin:0 0 .6rem; font-size:clamp(1.35rem,4vw,1.65rem); line-height:1.2; }
h3 { margin:0 0 .45rem; font-size:1.05rem; }
p { margin:.65rem 0 1rem; }
.lede { max-width:650px; margin-bottom:0; color:var(--muted); font-size:1rem; line-height:1.65; }
.muted,footer { color:var(--muted); }
.section-heading { margin-bottom:1.25rem; }
.section-heading .muted { margin:0; }
.progress { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin:28px 0 0; padding:0; list-style:none; color:var(--muted); font-size:.82rem; font-weight:700; }
.progress li { display:flex; min-width:0; align-items:center; gap:7px; }
.progress li::after { width:100%; height:1px; background:var(--line); content:""; }
.progress li:last-child::after { display:none; }
.progress span { display:grid; width:26px; height:26px; flex:0 0 auto; place-items:center; border:1px solid var(--line-strong); border-radius:50%; background:var(--paper); }
.progress .is-current { color:var(--brand-strong); }
.progress .is-current span { border-color:var(--brand); background:var(--brand); color:#fff; }
.card { margin-top:24px; padding:32px; border:1px solid var(--line); border-radius:16px; background:var(--paper); box-shadow:var(--shadow); }
.safety-card { border-top:1px solid var(--line); }
.notice,.status { margin:24px 0 0; padding:16px 18px; border:1px solid #d99a65; border-left:5px solid var(--brand); border-radius:12px; background:var(--brand-soft); color:#6f360f; font-weight:650; }
.notice.bad,.status.bad { border-color:#efbbb7; background:var(--danger-soft); color:var(--danger); }
.notice:focus,.status:focus { outline:3px solid var(--focus); outline-offset:3px; }
.fee { display:flex; margin-bottom:1.2rem; padding:15px 16px; align-items:center; justify-content:space-between; gap:18px; border:1px solid #efd0b6; border-radius:13px; background:var(--brand-soft); }
.fee span { color:#66320f; font-weight:650; }
.fee strong { font-size:1.18rem; white-space:nowrap; }
.slots { display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:10px; margin:12px 0 34px; }
.slot { display:flex; min-height:54px; margin:0; padding:13px 14px; align-items:center; gap:10px; border:1px solid var(--line-strong); border-radius:13px; background:#fff; cursor:pointer; font-weight:700; }
.slot:hover { border-color:var(--brand); background:#fffaf7; }
.slot:has(input:checked) { border-color:var(--brand); background:var(--brand-soft); box-shadow:0 0 0 2px rgba(145,66,15,.2); }
.slot input { width:18px; height:18px; margin:0; flex:0 0 auto; accent-color:var(--brand); }
fieldset { margin:0; padding:28px 0 0; border:0; border-top:1px solid var(--line); }
legend { padding:0 0 6px; font-size:1.3rem; font-weight:800; letter-spacing:-.02em; }
label { display:grid; gap:7px; margin:15px 0; font-weight:700; }
label span { color:var(--muted); font-size:.88rem; font-weight:450; }
label .required { display:inline; }
input,textarea { width:100%; min-height:48px; padding:11px 13px; border:1px solid #8294a1; border-radius:10px; background:#fff; color:inherit; font:inherit; }
input[aria-invalid="true"],textarea[aria-invalid="true"] { border-color:var(--danger); box-shadow:0 0 0 2px rgba(155,41,34,.16); }
textarea { min-height:116px; resize:vertical; }
input:hover,textarea:hover { border-color:#526a7a; }
.two { display:grid; grid-template-columns:1fr 1fr; gap:16px; align-items:start; }
.three { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; align-items:start; }
.two>label,.three>label { align-content:start; }
.inline-check { display:flex; min-height:28px; align-items:center; gap:8px; margin-top:7px; color:var(--muted); font-size:.82rem; font-weight:650; }
.inline-check input { width:auto; min-height:0; margin:0; }
.form-help { margin:-4px 0 12px; }
.check { display:flex; margin:22px 0; align-items:flex-start; gap:12px; font-weight:550; }
.check input { width:21px; min-height:21px; margin:2px 0 0; flex:0 0 auto; accent-color:var(--brand); }
.primary,.secondary { display:inline-flex; width:100%; min-height:50px; padding:13px 18px; align-items:center; justify-content:center; border-radius:11px; font:inherit; font-weight:800; cursor:pointer; }
.primary { border:1px solid var(--navy); background:var(--navy); color:#fff; }
.primary:hover { background:var(--navy-hover); }
.secondary { margin-top:14px; border:1px solid var(--line-strong); background:#fff; color:var(--ink); }
.secondary:hover { border-color:var(--navy); background:#f7fafc; }
.primary:disabled,.secondary:disabled { cursor:not-allowed; opacity:.48; }
.primary[aria-busy="true"]::before,.secondary[aria-busy="true"]::before { width:16px; height:16px; margin-right:9px; border:2px solid currentColor; border-right-color:transparent; border-radius:50%; content:""; animation:spin .75s linear infinite; }
.primary:focus-visible,.secondary:focus-visible,input:focus-visible,textarea:focus-visible,.slot:focus-within,a:focus-visible { outline:3px solid var(--focus); outline-offset:3px; }
.consent-copy { margin-top:26px; padding:18px; border:1px solid var(--line); border-radius:13px; background:#f8fafb; }
.consent-copy p:last-child { margin-bottom:0; }
.secondary-link { color:var(--brand-strong); font-weight:750; text-underline-offset:3px; }
.secondary-link:hover { text-decoration-thickness:2px; }
.fake-panel,.placeholder-panel { margin-top:20px; padding:17px; border:1px solid #9db9d8; border-radius:13px; background:var(--info-soft); }
.placeholder-panel { border-color:#c4b383; background:#fbf8ed; }
.fake-panel p,.placeholder-panel p { margin-bottom:0; }
.recovery-panel { margin-top:26px; padding-top:24px; border-top:1px solid var(--line); }
.recovery-panel form[aria-busy="true"] { opacity:.75; }
.recovery-code-input { font-variant-numeric:tabular-nums; letter-spacing:.16em; }
.success-mark { display:grid; width:48px; height:48px; margin-bottom:18px; place-items:center; border-radius:50%; background:var(--success-soft); color:var(--success); font-size:1.5rem; font-weight:900; }
footer { margin-top:auto; padding:34px 12px 22px; text-align:center; font-size:.72rem; font-weight:700; letter-spacing:.08em; }
.sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
.patient-page { background:var(--canvas); }
.patient-shell { min-height:auto; padding-bottom:0; }
.patient-header { max-width:none; }
.journey-progress { margin:28px 0 0; }
.journey-progress ol { display:grid; grid-template-columns:repeat(5,1fr); gap:0; margin:0; padding:0; list-style:none; counter-reset:journey; }
.journey-progress li { position:relative; display:grid; justify-items:center; gap:7px; color:var(--muted); font-size:.72rem; font-weight:700; text-align:center; counter-increment:journey; }
.journey-progress li::before { position:relative; z-index:1; display:grid; width:28px; height:28px; place-items:center; border:1px solid var(--line-strong); border-radius:50%; background:var(--paper); content:counter(journey); }
.journey-progress li::after { position:absolute; top:14px; left:50%; width:100%; height:1px; background:var(--line); content:""; }
.journey-progress li:last-child::after { display:none; }
.journey-progress li.is-current { color:var(--brand-strong); }
.journey-progress li.is-current::before { border-color:var(--brand); background:var(--brand); color:#fff; }
.journey-progress li.is-complete::before { border-color:var(--success); background:var(--success-soft); color:var(--success); content:"✓"; }
.journey-progress li.is-complete::after { background:var(--success); }
.hub-card { min-height:250px; }
.status-hero { padding-bottom:22px; border-bottom:1px solid var(--line); }
.status-hero .lede { font-size:1rem; }
.status-kicker { margin:0 0 .45rem; color:var(--brand); font-size:.76rem; font-weight:800; letter-spacing:.09em; text-transform:uppercase; }
.info-panel { display:flex; margin-top:20px; padding:17px; gap:13px; border:1px solid #b6cadf; border-radius:13px; background:var(--info-soft); }
.info-panel h3 { margin-top:1px; }
.info-panel p { margin:0; color:var(--muted); }
.info-icon { display:grid; width:30px; height:30px; flex:0 0 auto; place-items:center; border-radius:50%; background:#fff; color:var(--brand-strong); font-weight:900; }
.action-bar { display:grid; gap:10px; margin-top:24px; }
.inline-notice { margin:18px 0 0; padding:13px 16px; border:1px solid #ecc49f; border-radius:12px; background:var(--brand-soft); color:#6f360f; }
.inline-notice.is-success { border-color:#9fd0ae; background:#edf8f0; color:#1d5b32; }
.inline-notice.is-error { border-color:#efbbb7; background:var(--danger-soft); color:var(--danger); }
.button { display:inline-flex; min-height:50px; padding:12px 18px; align-items:center; justify-content:center; border-radius:11px; font:inherit; font-weight:800; cursor:pointer; text-decoration:none; text-align:center; }
.button-primary { border:1px solid var(--navy); background:var(--navy); color:#fff; }
.button-primary:hover { background:var(--navy-hover); }
.button-secondary { border:1px solid var(--line-strong); background:#fff; color:var(--ink); }
.button-secondary:hover,.button-quiet:hover { border-color:var(--navy); background:#f7fafc; }
.button-quiet { border:1px solid var(--line-strong); background:var(--paper); color:var(--ink); }
.button:disabled { cursor:not-allowed; opacity:.48; }
.button:focus-visible,.modal-close:focus-visible { outline:3px solid var(--focus); outline-offset:3px; }
.button[aria-busy="true"]::before { width:16px; height:16px; margin-right:9px; border:2px solid currentColor; border-right-color:transparent; border-radius:50%; content:""; animation:spin .75s linear infinite; }
.skeleton { display:grid; gap:13px; padding:8px 0; }
.skeleton span { height:16px; border-radius:8px; background:linear-gradient(90deg,#e8eef1 25%,#f8fafb 50%,#e8eef1 75%); background-size:200% 100%; animation:skeleton 1.3s ease-in-out infinite; }
.skeleton span:first-child { width:42%; height:28px; }
.skeleton span:last-child { width:72%; }
.modal { width:min(520px,calc(100% - 28px)); padding:0; border:0; border-radius:18px; background:transparent; color:var(--ink); }
.modal::backdrop { background:rgba(9,24,37,.62); backdrop-filter:blur(3px); }
.modal-card { position:relative; margin:0; padding:clamp(24px,5vw,34px); border:1px solid var(--line); border-radius:18px; background:var(--paper); box-shadow:0 26px 80px rgba(9,24,37,.28); }
.modal-close { position:absolute; top:14px; right:14px; display:grid; width:42px; height:42px; place-items:center; border:1px solid var(--line); border-radius:50%; background:#fff; color:var(--ink); font-size:1.4rem; cursor:pointer; }
.modal-actions { display:grid; grid-template-columns:1fr 1.4fr; gap:10px; margin-top:24px; }
.payment-summary { margin:20px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.payment-summary div { display:flex; padding:13px 0; justify-content:space-between; gap:18px; }
.payment-summary div+div { border-top:1px solid var(--line); }
.payment-summary dt { color:var(--muted); }
.payment-summary dd { margin:0; font-weight:800; text-align:right; }
.trust-note { padding:13px; border-radius:10px; background:#f3f7f8; color:var(--muted); font-size:.9rem; }
.video-stage { width:100%; margin:28px 0 0; border:1px solid var(--line); border-radius:20px; background:var(--paper); color:var(--ink); box-shadow:var(--shadow); overflow:hidden; }
.video-stage-bar { display:flex; min-height:58px; padding:8px 12px 8px 18px; align-items:center; justify-content:space-between; gap:12px; background:#fff; color:var(--ink); }
.video-stage-bar h2 { margin:0; font-size:1rem; }
.video-frame-host { width:100%; height:clamp(440px,68vh,680px); border-top:1px solid var(--line); border-bottom:1px solid var(--line); background:#101820; }
.video-frame-host .daily-frame { border-radius:0; }
.video-help { margin:0; padding:14px 18px; background:#f6f9fa; color:var(--muted); font-size:.9rem; }
.alpha-footer { display:block; color:var(--muted); }
@keyframes skeleton { to { background-position:-200% 0; } }
.video-call-page { min-height:100vh; background:#101820; }
.video-call-shell { width:100vw; height:100vh; padding:12px; color:#fff; }
.video-call-shell h1 { color:#fff; }
.daily-frame { width:100%; height:100%; border:0; border-radius:12px; background:#111; }
@keyframes spin { to { transform:rotate(360deg); } }
/* Indeterminate feedback communicates waiting, never payment success or elapsed progress. */
.waiting-feedback {
  display:flex; align-items:flex-start; gap:12px; padding:16px 18px;
  border:1px solid var(--line); border-radius:12px; background:var(--info-soft);
  color:var(--ink); line-height:1.6; overflow-wrap:anywhere;
}
.waiting-feedback::before {
  content:""; flex:0 0 18px; width:18px; height:18px; margin-top:3px;
  border:2px solid var(--line-strong); border-top-color:var(--brand);
  border-radius:50%; animation:spin 1s linear infinite;
}
@media (prefers-reduced-motion:reduce) {
  .waiting-feedback::before { animation:none; }
}
@media (forced-colors:active) {
  .waiting-feedback { border-color:CanvasText; }
  .waiting-feedback::before { border-color:GrayText; border-top-color:Highlight; }
}
@media (max-width:560px) {
  .shell { padding-top:24px; } .brand { margin-bottom:1rem; }
  .brand-bar { margin-bottom:34px; align-items:flex-start; }
  .brand-lockup { align-items:flex-start; }
  .brand { margin:0; }
  .secure-label { max-width:120px; text-align:center; }
  .progress li { gap:5px; font-size:.72rem; } .progress li::after { display:none; }
  .card { margin-top:20px; padding:22px 18px; border-radius:16px; }
  .two,.slots { grid-template-columns:1fr; } .slots { margin-bottom:28px; }
  .primary,.secondary { min-height:52px; } .video-call-shell { padding:0; } .daily-frame { border-radius:0; }
  .journey-progress li { font-size:.64rem; }
  .journey-progress li::before { width:25px; height:25px; }
  .journey-progress li::after { top:12px; }
  .modal-actions { grid-template-columns:1fr; }
  .modal-actions .button-primary { order:-1; }
  .video-stage-bar { align-items:flex-start; flex-direction:column; padding:16px; }
  .video-stage-bar .button { width:100%; }
  .video-frame-host { height:min(62vh,560px); min-height:400px; }
}
@media (max-width:360px) { .progress { gap:4px; } .progress li { flex-direction:column; align-items:flex-start; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto !important; transition:none !important; animation:none !important; } }
@media (forced-colors:active) {
  .primary,.secondary,.button,.slot,.consent-copy,.fake-panel,.placeholder-panel,.recovery-panel,.notice,.status,.fee,.info-panel,.inline-notice,.modal-card,.video-frame-host { border:2px solid ButtonText; }
  .primary { background:ButtonText; color:ButtonFace; }
  .progress .is-current span { border:2px solid Highlight; background:Highlight; color:HighlightText; }
}


/* Consistent narrow-screen footer across every application-owned patient page. */
.has-compact-footer .patient-footer-compact a { min-height:44px; }
@media(max-width:640px) {
  :is(.booking-page,.patient-hub-page,.policy-page,.patient-return-page,.video-call-page) .patient-footer.has-compact-footer {
    padding:0 8px env(safe-area-inset-bottom); min-height:44px; gap:0;
    flex-direction:column; align-items:stretch;
  }
}
.video-call-page { display:flex; flex-direction:column; height:100dvh; min-height:0; overflow:hidden; }
.video-call-page .video-home { flex:0 0 60px; }
.video-call-page .video-call-shell { flex:1 1 auto; min-height:0; height:auto; overflow:auto; }
.video-call-page>.patient-footer { flex:0 0 auto; position:relative; z-index:2; }
.video-call-page .patient-footer {
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:6px 24px;
  width:100%; min-width:0; margin:0; padding:10px 24px; min-height:58px;
  color:#fff; background:#102235; font-size:.78rem; line-height:1.45; letter-spacing:0; text-align:left;
}
.video-call-page .patient-footer a { color:#fff; font-weight:650; }
.video-call-page .patient-footer p { margin:0; color:#d6e0e8; }
.video-call-page .footer-assistance-label { display:block; }

/* V3 public entry and booking flow; patient workspace follows below. */
.booking-page { background:#fff; }
.booking-shell { width:min(1040px,100%); min-height:100dvh; padding:26px 36px 0; }
.patient-shell { width:min(1200px,100%); padding:26px 36px 0; }
.booking-header { flex:0 0 auto; }
.entry-view { width:min(520px,100%); margin:auto; padding:7vh 0 12vh; text-align:center; }
.entry-view h1 { margin-left:auto; margin-right:auto; font-size:clamp(2.2rem,5vw,3.35rem); }
.entry-view .lede { margin:0 auto; }
.entry-actions { display:grid; gap:12px; margin:34px auto 0; }
.entry-actions .secondary { margin:0; }
.focused-view { width:min(620px,100%); margin:0 auto; padding:28px 0 64px; }
.focused-view>p { color:var(--muted); }
.focused-view .section-heading h1 { font-size:clamp(2rem,4vw,2.75rem); }
.focused-view .long-action { margin-top:24px; white-space:normal; }
.quiet-back { min-height:44px; margin:0 0 28px; padding:8px 0; border:0; background:transparent; color:var(--muted); font:inherit; font-weight:650; cursor:pointer; text-decoration:underline; text-underline-offset:4px; }
.quiet-back:hover { color:var(--ink); }
.quiet-back:focus-visible,.booking-recovery-link:focus-visible,.recovery-navigation :focus-visible { outline:3px solid var(--focus); outline-offset:3px; border-radius:4px; }
.booking-recovery-link { display:block; min-height:44px; margin:28px auto 0; padding:10px 4px; border:0; background:transparent; color:var(--muted); font:inherit; font-size:.875rem; cursor:pointer; text-decoration:underline; text-underline-offset:4px; }
.booking-recovery-link:hover { color:var(--ink); }
.recovery-view { width:min(560px,100%); }
.recovery-view #emailRecovery { max-width:none; }
.recovery-help { padding-top:20px; border-top:1px solid var(--line); font-size:.875rem; }
.recovery-navigation { display:flex; margin-top:28px; padding-top:22px; align-items:center; justify-content:space-between; gap:18px; border-top:1px solid var(--line); }
.recovery-navigation a,.recovery-navigation button { min-height:44px; padding:8px 0; border:0; background:transparent; color:var(--ink); font:inherit; font-weight:650; cursor:pointer; text-decoration:underline; text-underline-offset:4px; }
.booking-flow { width:min(760px,100%); margin:0 auto; padding:6px 0 56px; }
.booking-flow-heading { margin-bottom:22px; }
.booking-flow-heading .quiet-back { margin-bottom:18px; }
.booking-flow .progress { grid-template-columns:repeat(4,minmax(0,1fr)); margin:0 0 42px; padding:0 0 22px; border-bottom:1px solid var(--line); font-size:.78rem; }
.booking-flow .progress li { white-space:normal; }
.booking-flow .progress li::after { width:auto; flex:1; min-width:12px; margin-left:6px; }
.booking-content { padding:0; }
.booking-flow .section-heading { margin-bottom:24px; }
.booking-flow h2 { font-size:1.5rem; font-weight:650; letter-spacing:-.04em; }
.booking-flow .eyebrow { font-size:.65rem; letter-spacing:.12em; }
.booking-flow .section-heading p.muted { max-width:520px; margin-top:10px; font-size:.9rem; }
.booking-flow .notice { margin:0 0 24px; }
.booking-flow .primary { width:auto; min-height:48px; gap:28px; border-radius:8px; font-size:.9rem; font-weight:650; }
.booking-flow label { gap:8px; margin:18px 0; font-size:.85rem; font-weight:600; }
.booking-flow label span { font-size:.78rem; }
.booking-flow label .field-title { color:var(--ink); font-size:.85rem; font-weight:600; }
.booking-flow input,.booking-flow textarea { min-height:48px; border-color:#a9b8c2; border-radius:8px; font-size:1rem; }
.booking-flow .check input { width:20px; min-height:20px; }
.booking-flow .form-help { margin:12px 0 26px; font-size:.85rem; }
.booking-flow .consent-copy { margin:24px 0 0; padding:16px 18px; border-radius:8px; }
.booking-flow fieldset { padding:0; border:0; }
.booking-flow label .field-error { color:var(--danger); font-size:.8rem; font-weight:600; }
.schedule-fee { display:flex; margin:22px 0; padding:14px 0; align-items:center; justify-content:space-between; gap:18px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); font-size:.9rem; }
.schedule-fee span { color:var(--muted); }
.schedule-fee strong { font-size:1.05rem; }
.slot-date-tools { display:flex; margin:14px 0 20px; align-items:end; gap:14px; flex-wrap:wrap; }
.schedule-heading-row { display:flex; align-items:end; justify-content:space-between; gap:28px; margin-bottom:20px; }
.schedule-heading-row .slot-date-tools { flex:0 0 min(260px,42%); margin:0; }
.schedule-heading-row .slot-date-tools label,.schedule-heading-row .slot-date-tools input { width:100%; }
.slot-date-tools label { display:grid; gap:6px; color:var(--muted); font-size:.8rem; font-weight:650; }
.slot-date-tools input { min-height:42px; }
.booking-option-card { display:grid; margin:18px 0; padding:16px; gap:10px; border:1px solid var(--line); border-radius:12px; background:var(--soft); }
.booking-option-card h3 { margin:0; font-size:.95rem; }
.booking-option-card .check { margin:0; }
.booking-option-card .check span { display:grid; gap:3px; }
.booking-option-card small { color:var(--muted); font-weight:450; line-height:1.45; }
.booking-option-card input[type="file"] { padding:8px; background:var(--paper); }
.payment-summary { padding:16px 0; }
.payment-summary h3 { margin:0 0 8px; }
.payment-summary .total-row dt,.payment-summary .total-row dd { color:var(--ink); font-size:1rem; font-weight:850; }
.payment-summary .discount-row dd { color:var(--good); }
#financialPolicy { margin:16px 0; padding:14px; border:1px solid var(--line); border-radius:10px; }
#financialPolicy summary { cursor:pointer; font-weight:700; }
#doctorDocumentsPanel { grid-column:1/-1; }
#doctorDocumentsDeadline { max-width:62ch; }
#doctorDocumentsPanel #doctorDocumentsDeadline { margin:16px; }
#followSchedulePicker .slot-times { margin-top:16px; }
#followSchedulePicker .slot:has(input:disabled) { cursor:wait; opacity:.65; }
.patient-hub-page .hub-follow-through.completed-booking-actions { padding:20px 0; margin-top:16px; border-top:1px solid var(--journey-line, #d6e3ee); }
#changeAppointmentDialog select { width:100%; min-height:44px; margin:8px 0 14px; }
.portal-label { color:var(--muted); font-size:.72rem; letter-spacing:.06em; }
.portal-label span { margin:0 12px; color:#b2bbc3; }
.brand-symbol { width:40px; height:40px; border-radius:12px 12px 12px 3px; box-shadow:none; }
.brand { font-size:.72rem; letter-spacing:.15em; font-weight:800; }
.brand-caption { font-size:.75rem; }
.hero-copy .eyebrow { font-size:.67rem; letter-spacing:.14em; }
.hero-copy { margin-bottom:32px; }
.appointment-main { min-width:0; }
.progress .is-complete { color:var(--success); }
.progress .is-complete span { background:var(--success-soft); border-color:#9ebdad; }
.verification-code { max-width:18rem; font-size:1.3rem; letter-spacing:.22em; font-variant-numeric:tabular-nums; }
.verification-summary { padding:16px; border:1px solid var(--line); border-radius:10px; background:var(--info-soft); }
#verificationDestination { overflow-wrap:anywhere; }
#emailCodeEntry, #recoveryCodeEntry { margin:20px 0; padding:20px; border:1px solid var(--line); border-radius:12px; background:var(--info-soft); }
#emailCodeEntry label, #recoveryCodeEntry label { margin-top:0; }
#emailRecovery { max-width:34rem; padding-bottom:20px; border-bottom:1px solid var(--line); margin-bottom:20px; }
#emailVerification { margin-top:24px; }
.verification-resend { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:14px; padding-top:12px; border-top:1px solid var(--line); color:var(--muted); font-size:.875rem; }
.verification-resend .text-button { width:auto; flex:0 0 auto; }
.verification-success { display:flex; align-items:flex-start; gap:12px; margin:16px 0; padding:16px 18px; border:1px solid #9ebdad; border-radius:12px; background:var(--success-soft); color:var(--success); }
.verification-success > span { display:grid; width:26px; height:26px; flex:0 0 26px; place-items:center; border-radius:50%; background:var(--success); color:#fff; font-weight:800; }
.verification-success p { margin:4px 0 0; color:var(--ink); }
#emailVerification > .text-button, #emailRecovery > .text-button { margin-top:8px; margin-right:8px; }
#emailInitialActions { margin:12px 0 0; }
#emailInitialActions .primary { width:100%; }
#emailChange { margin:12px 0 16px; }
#recoveryChoices { display:grid; gap:10px; margin-top:16px; }
#recoveryChoices .text-button { width:100%; justify-content:space-between; text-align:left; }
@media (max-width:600px) {
  .booking-flow .progress { gap:8px; }
  .booking-flow .progress li::after { display:none; }
  #confirmationPanel .form-actions { align-items:stretch; }
}
.section-icon { display:grid; place-items:center; width:42px; height:42px; border:1px solid #ecd5be; border-radius:12px; background:var(--brand-soft); color:var(--brand); font-size:1.3rem; font-weight:650; margin-bottom:24px; }
.safety-card>p { color:var(--muted); font-size:.94rem; }
.safety-notice { border-left:3px solid #c5783f; background:#fff8f1; border-radius:0 8px 8px 0; padding:16px 20px; font-size:.88rem; }
.safety-notice strong { color:#773c15; }
.safety-notice p { margin:6px 0 0; color:#674e3d; }
.safety-card>.primary { width:100%; margin-top:6px; }
.summary-card { overflow:hidden; border:1px solid var(--line); border-radius:16px; background:white; box-shadow:var(--shadow); }
.summary-cover { position:relative; padding:28px; background:#172e3c; color:#cddce2; overflow:hidden; }
.summary-cover::after { position:absolute; width:160px; height:160px; border:1px solid #425766; border-radius:50%; right:-85px; top:-45px; content:""; box-shadow:0 0 0 28px #ffffff04,0 0 0 56px #ffffff03; }
.summary-cover .eyebrow { font-size:.59rem; letter-spacing:.17em; color:#e3b98f; margin:20px 0 10px; }
.summary-cover h2 { font-size:1.65rem; font-weight:550; line-height:1.24; color:white; letter-spacing:-.04em; }
.summary-cover p:last-child { margin:12px 0 0; font-size:.78rem; }
.care-icon { display:grid; width:44px; height:44px; place-items:center; border:1px solid #496270; border-radius:12px; background:#ffffff08; }
.care-icon svg { width:28px; height:28px; stroke:#e7f0f4; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.summary-content { padding:24px 26px; }
.summary-label { font-size:.62rem; color:var(--muted); letter-spacing:.11em; margin:0 0 10px; font-weight:700; }
.selected-time { font-size:.95rem; font-weight:650; line-height:1.55; margin:0; }
.summary-zone { margin:6px 0 24px; font-size:.73rem; color:var(--muted); }
.summary-content .fee { border:0; border-top:1px solid var(--line); background:none; border-radius:0; padding:18px 0 0; margin:0; font-size:.82rem; }
.summary-content .fee span { color:var(--muted); font-weight:450; }
.summary-content .fee strong { font-size:1.15rem; font-weight:700; letter-spacing:-.04em; }
.summary-footnote { font-size:.73rem; color:var(--muted); line-height:1.65; margin:16px 0 0; }
.what-next { padding:28px 12px; }
.what-next h3 { font-size:.8rem; margin:0 0 18px; font-weight:650; }
.what-next ol { list-style:none; margin:0; padding:0; display:grid; gap:18px; }
.what-next li { display:flex; gap:12px; align-items:start; }
.what-next li>span { display:grid; width:26px; height:26px; flex-shrink:0; place-items:center; border-radius:50%; border:1px solid var(--line); color:var(--brand); background:white; font-size:.58rem; font-weight:700; }
.what-next strong { font-size:.78rem; font-weight:650; }
.what-next p { font-size:.76rem; line-height:1.5; color:var(--muted); margin:3px 0 0; }
.booking-flow .slots { display:block; margin:28px 0 32px; }
.slot-day+.slot-day { margin-top:26px; padding-top:24px; border-top:1px solid var(--line); }
.slot-day h3 { font-size:.88rem; margin-bottom:12px; font-weight:650; }
.slot-times { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.booking-flow .slot-times .slot { justify-content:center; min-height:48px; margin:0; padding:12px 8px; gap:8px; border-radius:8px; font-size:.83rem; font-weight:550; border-color:#bdc8cf; }
.slot-times .slot input { width:16px; height:16px; min-height:16px; }
.slot-times .slot:has(input:checked) { color:var(--brand-strong); border-color:var(--brand); box-shadow:0 0 0 1px var(--brand); background:#fff8f1; }
.form-actions { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-top:28px; padding-top:24px; border-top:1px solid var(--line); }
.form-actions p { max-width:220px; margin:0; font-size:.78rem; }
.form-actions .primary { flex-shrink:0; }
/* Legacy class name retained so asynchronous state rendering keeps the same controls. */
.text-button { display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:44px; max-width:100%; padding:11px 16px; border:1px solid var(--line-strong); border-radius:8px; background:var(--paper); font:inherit; font-size:.88rem; font-weight:650; line-height:1.45; color:var(--ink); text-align:center; text-decoration:none; cursor:pointer; }
.text-button:hover:not(:disabled) { border-color:var(--navy); background:var(--info-soft); }
.text-button:focus-visible,.skip-link:focus-visible { outline:3px solid var(--focus); outline-offset:4px; border-radius:8px; }
.text-button:disabled { opacity:.55; cursor:not-allowed; }
.text-button[aria-busy="true"]::before { content:""; width:16px; height:16px; flex:0 0 16px; border:2px solid currentColor; border-right-color:transparent; border-radius:50%; animation:spin .75s linear infinite; }
#recoverySend { min-height:48px; border-color:var(--navy); background:var(--navy); color:white; padding:12px 20px; }
#recoverySend:hover:not(:disabled) { background:var(--navy-hover); }
/* Once a code is present, verification is primary and resend becomes secondary. */
#emailRecovery:has(#recoveryCodeEntry:not([hidden])) #recoverySend { border-color:var(--line-strong); background:var(--paper); color:var(--ink); }
#emailRecovery:has(#recoveryCodeEntry:not([hidden])) #recoverySend:hover:not(:disabled) { border-color:var(--navy); background:var(--info-soft); }
.primary,.secondary,.button { max-width:100%; text-align:center; line-height:1.45; }
.review-title { margin-bottom:12px; flex-wrap:wrap; }
.hub-card .action-bar { flex-wrap:wrap; }
@media (max-width:600px) {
  #emailRecovery > .text-button,#emailVerification > .text-button { width:100%; margin-right:0; }
  #emailCodeEntry,#recoveryCodeEntry { padding:16px; }
  #emailCodeEntry .primary,#emailVerification > .primary { width:100%; }
  .form-actions > .text-button { width:100%; }
}
@media (forced-colors:active) {
  .text-button,#recoverySend { border:2px solid ButtonText; background:ButtonFace; color:ButtonText; }
  .text-button:disabled { color:GrayText; border-color:GrayText; opacity:1; }
}
#detailFields { padding:0; border:0; }
.consent-copy h3 { font-size:.85rem; }
.consent-copy p { font-size:.78rem; margin:8px 0; }
#consentVersion { font-size:.66rem; }
.review-title { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.review-title h3 { font-size:.9rem; margin:0; }
.review-list { margin:0 0 24px; border-top:1px solid var(--line); }
.review-list>div { display:grid; grid-template-columns:160px minmax(0,1fr); gap:20px; padding:14px 0; border-bottom:1px solid var(--line); font-size:.85rem; }
.review-list dt { color:var(--muted); }
.review-list dd { margin:0; font-weight:550; overflow-wrap:anywhere; white-space:pre-wrap; }
.empty-state { padding:24px; border:1px dashed var(--line-strong); border-radius:10px; color:var(--muted); }
.skip-link { position:absolute; top:8px; left:16px; z-index:10; padding:10px 18px; border-radius:6px; background:white; color:var(--ink); transform:translateY(-200%); }
.skip-link:focus { transform:translateY(0); }
.appointment-layout { display:grid; grid-template-columns:232px minmax(0,1fr); gap:32px; align-items:start; }
.journey-panel { border:1px solid var(--line); border-radius:14px; background:white; padding:24px; }
.journey-panel>h2 { font-size:.87rem; margin:0; font-weight:650; }
.journey-panel .journey-progress { margin:26px 0 0; }
.journey-panel .journey-progress ol { display:flex; flex-direction:column; gap:0; }
.journey-panel .journey-progress li { display:flex; align-items:center; text-align:left; gap:12px; min-height:56px; padding-bottom:24px; font-size:.8rem; }
.journey-panel .journey-progress li:last-child { min-height:32px; padding-bottom:0; }
.journey-panel .journey-progress li::before { width:30px; height:30px; flex-shrink:0; font-size:.72rem; }
.journey-panel .journey-progress li::after { width:1px; height:100%; top:15px; left:15px; }
.journey-note { border-top:1px solid var(--line); padding-top:24px; margin-top:28px; }
.journey-note .section-icon { width:32px; height:32px; margin-bottom:14px; font-size:1rem; border-radius:9px; }
.journey-note h3 { font-size:.8rem; }
.journey-note p { font-size:.78rem; color:var(--muted); line-height:1.65; margin-bottom:0; }
.hub-card { margin:0; padding:34px; border-top:3px solid #a46b41; }
.status-hero { border:0; padding-bottom:0; }
.status-hero h2 { font-size:clamp(1.5rem,3vw,2rem); font-weight:650; letter-spacing:-.04em; line-height:1.2; margin:10px 0; }
.status-kicker { font-size:.65rem; display:inline-flex; padding:5px 9px; border-radius:5px; background:var(--brand-soft); letter-spacing:.1em; }
.hub-card .action-bar { display:flex; margin:24px 0; }
.hub-card .action-bar .button { min-width:220px; font-size:.9rem; font-weight:650; border-radius:8px; }
.hub-card .info-panel { padding:18px; border:1px solid var(--line); background:#f7f9fa; border-radius:10px; }
.hub-card .info-panel h3 { font-size:.88rem; font-weight:650; }
.hub-card .info-panel p { font-size:.83rem; line-height:1.65; }
.hub-card .info-icon { width:32px; height:32px; border:1px solid var(--line); border-radius:9px; font-size:1rem; }
.appointment-facts { display:grid; grid-template-columns:1fr 1fr 1fr; gap:20px; padding:24px 0 0; border-top:1px solid var(--line); margin:26px 0 0; }
.appointment-facts dt { color:var(--muted); font-size:.7rem; margin-bottom:6px; }
.appointment-facts dd { margin:0; font-size:.82rem; font-weight:600; }
.temporary-files { margin-top:26px; padding-top:24px; border-top:1px solid var(--line); }
.temporary-files h3 { margin:0 0 8px; font-size:1rem; }
.temporary-files>p { margin:0 0 16px; color:var(--muted); font-size:.82rem; line-height:1.6; }
.temporary-files input[type="file"] { display:block; width:100%; margin:12px 0; padding:10px; border:1px dashed #9eafbc; border-radius:8px; background:#f8fafb; font:inherit; }
.temporary-files>.button { margin:0 0 10px; }
.temporary-file-list { display:grid; gap:10px; list-style:none; padding:0; margin:18px 0 0; }
.temporary-file-list li { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:13px; border:1px solid var(--line); border-radius:9px; background:#f8fafb; font-size:.82rem; }
.temporary-file-list span,.temporary-file-list small { display:block; overflow-wrap:anywhere; }
.temporary-file-list span { font-weight:650; }
.temporary-file-list small { margin-top:4px; color:var(--muted); }
.temporary-file-list .button { min-width:auto; padding:9px 13px; font-size:.76rem; white-space:nowrap; }
.temporary-chat { margin-top:26px; padding-top:24px; border-top:1px solid var(--line); }
.temporary-chat h3 { margin:0 0 8px; font-size:1rem; }
.temporary-chat>p { margin:0 0 16px; color:var(--muted); font-size:.82rem; line-height:1.6; }
.temporary-chat-messages { display:grid; gap:9px; max-height:280px; overflow:auto; padding:4px; }
.temporary-chat-message { max-width:88%; padding:10px 12px; border-radius:10px; background:#f1f5f7; }
.temporary-chat-message.is-patient { justify-self:end; background:#e8f0f8; }
.temporary-chat-message small { color:var(--muted); font-size:.68rem; font-weight:700; }
.temporary-chat-message p { margin:4px 0 0; white-space:pre-wrap; overflow-wrap:anywhere; font-size:.84rem; line-height:1.5; }
.temporary-chat-form { display:grid; gap:10px; margin-top:14px; }
.temporary-chat-form textarea { width:100%; min-height:76px; resize:vertical; }
.appointment-guidance { display:grid; grid-template-columns:1fr 1fr; gap:28px; padding:28px 8px 0; }
.recovery-email-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:12px 0 0; }
#emailVerification > #emailChange { display:flex; width:fit-content; }
.verification-edit-actions { display:flex; flex-wrap:wrap; gap:10px; }
.verification-edit-actions .primary { width:auto; }
#emailEditPanel { margin:16px 0; }
.recovery-email-actions button { width:auto; margin:0; }
#recoveryConfirm { margin-top:18px; }
#recoveryConfirmDestination { overflow-wrap:anywhere; }
#recoveryEmail[readonly] { background:var(--surface-alt, #f3f6f8); }
#recoveryBookingHelp { border-top:1px solid var(--line, #dce3e8); padding-top:20px; margin-top:24px; }
.appointment-guidance section { position:relative; padding-left:36px; }
.guidance-number { position:absolute; left:0; top:0; font-size:.64rem; letter-spacing:.06em; color:var(--brand); padding-top:3px; }
.appointment-guidance h3 { font-size:.85rem; margin:0 0 8px; font-weight:650; }
.appointment-guidance p { font-size:.79rem; color:var(--muted); line-height:1.6; margin:0; }
.appointment-main .video-stage { margin:0; border-radius:14px; box-shadow:none; }
.video-stage-bar { padding:16px 20px; min-height:80px; }
.video-stage-bar .eyebrow { font-size:.62rem; }
.video-stage-bar .button { font-size:.8rem; min-height:44px; border-radius:8px; padding:10px 16px; }
.video-help { font-size:.78rem; line-height:1.65; }
.alpha-footer,.booking-shell>footer { padding-top:42px; font-size:.62rem; letter-spacing:.09em; }
@media (max-width:1000px) {
  .booking-shell,.patient-shell { padding-left:24px; padding-right:24px; }
  .slot-times { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .form-actions { flex-wrap:wrap; }
  .appointment-layout { grid-template-columns:200px minmax(0,1fr); gap:22px; }
  .journey-panel { padding:20px; }
}
@media (max-width:760px) {
  .booking-shell,.patient-shell { padding:18px 20px 0; }
  .brand-bar { min-height:58px; padding-bottom:18px; margin-bottom:26px; align-items:center; }
  .brand-logo { width:min(260px,calc(100vw - 144px)); }
  .portal-label { font-size:.58rem; max-width:100px; text-align:right; }
  .portal-label span { display:none; }
  .hero-copy { margin-bottom:26px; }
  .hero-copy .lede { font-size:.9rem; }
  .appointment-layout { grid-template-columns:minmax(0,1fr); gap:24px; }
  .summary-cover,.what-next { display:none; }
  .summary-content { padding:20px; }
  .summary-content .summary-footnote { display:none; }
  .summary-zone { margin-bottom:16px; }
  .booking-flow .progress { margin-bottom:28px; padding-bottom:18px; font-size:.7rem; }
  .booking-flow h2 { font-size:1.35rem; }
  .booking-flow .two,.booking-flow .three { grid-template-columns:1fr; gap:0; }
  .schedule-heading-row { display:block; margin-bottom:0; }
  .schedule-heading-row .slot-date-tools { margin:14px 0 20px; }
  .form-actions { gap:12px; margin-top:24px; padding-top:20px; }
  .form-actions .primary { width:100%; justify-content:space-between; }
  .form-actions p { max-width:none; }
  .review-list>div { grid-template-columns:1fr; gap:4px; padding:12px 0; }
  .journey-panel { padding:16px 12px; border-radius:10px; }
  .journey-panel>h2,.journey-note { display:none; }
  .journey-panel .journey-progress { margin:0; }
  .journey-panel .journey-progress ol { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); }
  .journey-panel .journey-progress li { display:grid; justify-items:center; gap:6px; padding:0; min-height:0; font-size:.61rem; text-align:center; }
  .journey-panel .journey-progress li::before { width:26px; height:26px; font-size:.64rem; }
  .journey-panel .journey-progress li::after { height:1px; width:100%; top:13px; left:50%; }
  .hub-card { padding:26px 22px; margin:0; border-radius:12px; }
  .hub-card .action-bar .button { width:100%; min-width:0; }
  .appointment-facts { gap:12px; }
  .appointment-facts dd { font-size:.73rem; }
  .temporary-file-list li { align-items:flex-start; flex-direction:column; }
  .temporary-file-list .button { width:100%; }
  .appointment-guidance { gap:22px; padding:24px 4px 0; }
  .video-stage-bar { flex-direction:row; align-items:center; padding:14px; }
  .video-stage-bar .button { width:auto; flex-shrink:0; }
  .video-stage-bar h2 { font-size:.9rem; }
}
@media (max-width:400px) {
  .booking-shell,.patient-shell { padding-left:14px; padding-right:14px; }
  .brand-caption { font-size:.7rem; }
  .brand { font-size:.62rem; }
  .booking-flow .progress li { flex-direction:row; font-size:.62rem; gap:5px; align-items:center; }
  .booking-flow .progress span { width:22px; height:22px; }
  .appointment-guidance { grid-template-columns:1fr; }
}

.patient-hub-page {
  --tc-canvas:#f3f6fa; --tc-surface:#fff; --tc-text:#152a3d; --tc-muted:#536579;
  --tc-border:#d7e0e8; --tc-control:#9aabba; --tc-primary:#174d7b; --tc-primary-hover:#123f66;
  --tc-primary-soft:#eaf2fb; --tc-success:#205d44; --tc-success-soft:#e6f4ed;
  --tc-warning:#744b12; --tc-warning-soft:#fff4d6; --tc-error:#9e3733; --tc-error-soft:#fdf0ef;
  --tc-focus:#1169b2; --tc-radius:12px; background:var(--tc-canvas); color:var(--tc-text);
}
.alpha-strip { min-height:26px; padding:4px 16px; background:#fff1cc; color:#5d4210; font-size:.75rem; text-align:center; }
.patient-site-header { border-bottom:1px solid var(--tc-border); background:var(--tc-surface); }
.patient-header-inner { display:flex; width:min(1360px,calc(100% - 56px)); min-height:82px; margin:auto; align-items:center; justify-content:space-between; gap:20px; }
.patient-hub-page .brand-lockup { gap:10px; }
.patient-hub-page .brand-logo { width:340px; }
.patient-hub-page .brand-symbol { width:34px; height:34px; border-radius:9px; box-shadow:none; font-size:1.25rem; }
.patient-hub-page .brand { font-size:.88rem; font-weight:750; letter-spacing:0; line-height:1.2; text-transform:none; }
.patient-hub-page .home-brand { min-height:52px; }
.patient-hub-page .brand-caption { font-size:.75rem; line-height:1.2; }
.header-help { min-height:44px; padding:8px 2px; border:0; background:transparent; color:var(--tc-primary); font:inherit; font-size:.875rem; font-weight:650; cursor:pointer; }
.file-source-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
.patient-hub-page .patient-shell { display:block; width:min(1360px,calc(100% - 56px)); min-height:auto; padding:0; }
.appointment-help { display:flex; margin:12px 0 0; padding:14px 16px; align-items:flex-start; justify-content:space-between; gap:20px; border:1px solid var(--tc-border); border-radius:10px; background:var(--tc-primary-soft); }
.appointment-help h2 { margin:0 0 4px; font-size:1rem; }
.appointment-help p { margin:3px 0; color:var(--tc-muted); font-size:.875rem; }
.appointment-summary { display:flex; min-height:86px; padding:14px 0; align-items:center; justify-content:space-between; gap:24px; }
.appointment-identity { min-width:0; }
.appointment-identity h1 { margin:0 0 4px; font-size:clamp(1.35rem,2.3vw,1.65rem); line-height:1.2; overflow-wrap:anywhere; }
.appointment-identity p { margin:0; color:var(--tc-muted); font-size:.875rem; }
.appointment-meta { display:flex; align-items:center; justify-content:flex-end; gap:12px; flex-wrap:wrap; color:var(--tc-muted); font-size:.875rem; text-align:right; }
.status-badge { display:inline-flex; align-items:center; min-height:30px; padding:5px 10px; border-radius:7px; background:var(--tc-primary-soft); color:var(--tc-primary); font-size:.8125rem; font-weight:650; text-align:left; }
.status-badge::before { width:7px; height:7px; margin-right:7px; border-radius:50%; background:currentColor; content:""; }
.status-badge.tone-ready,.status-badge.tone-complete,.status-badge.tone-confirmed { background:var(--tc-success-soft); color:var(--tc-success); }
.status-badge.tone-review,.status-badge.tone-payment,.status-badge.tone-waiting { background:var(--tc-warning-soft); color:var(--tc-warning); }
.status-badge.tone-closed { background:#edf1f4; color:var(--tc-muted); }
.workspace-jumps { display:none; gap:8px; margin-bottom:12px; }
.workspace-jumps a { display:flex; min-height:40px; flex:1; align-items:center; justify-content:center; border:1px solid var(--tc-border); border-radius:8px; background:var(--tc-surface); color:var(--tc-primary); font-size:.875rem; text-decoration:none; }
.consultation-workspace { display:grid; grid-template-columns:minmax(0,1fr) 360px; grid-template-areas:"stage chat" "files chat"; gap:16px; align-items:stretch; }
.consultation-workspace:not(.has-chat) { grid-template-columns:minmax(0,1fr); grid-template-areas:"stage" "files"; }
.consultation-workspace.has-chat:not(.has-files) { grid-template-areas:"stage chat"; }
.workspace-panel { min-width:0; border:1px solid var(--tc-border); border-radius:var(--tc-radius); background:var(--tc-surface); box-shadow:0 2px 6px rgba(21,42,61,.06); overflow:hidden; scroll-margin-top:12px; }
.consultation-stage { grid-area:stage; padding:0; }
.consultation-stage.video-open>.hub-status { display:none; }
.hub-status { padding:15px 16px 2px; }
.hub-status h2 { margin:0 0 4px; font-size:1.125rem; line-height:1.25; }
.hub-status .lede { margin:0; max-width:68ch; color:var(--tc-muted); font-size:.875rem; line-height:1.5; }
.hub-notices { display:grid; gap:8px; padding:0 16px; }
.hub-notices:empty,.hub-follow-through:empty,.action-bar:empty { display:none; }
.hub-notices .inline-notice { margin:12px 0 0; padding:10px 12px; border-radius:8px; font-size:.875rem; }
.action-bar,.hub-follow-through { display:flex; padding:12px 16px 16px; align-items:center; gap:10px; flex-wrap:wrap; }
.hub-follow-through { padding-top:6px; }
.hub-follow-through .inline-notice { flex-basis:100%; }
.patient-hub-page .button { min-height:44px; padding:9px 14px; border-radius:8px; font-weight:650; transition:background-color .15s ease,border-color .15s ease,color .15s ease; }
.patient-hub-page .button-primary { border-color:var(--tc-primary); background:var(--tc-primary); }
.patient-hub-page .button-primary:hover { background:var(--tc-primary-hover); }
.button-danger { border:1px solid #ddc3c1; background:#fff; color:var(--tc-error); }
.button-compact { min-height:40px; padding:7px 12px; font-size:.875rem; }
.video-stage { margin:0; border:0; border-top:1px solid var(--tc-border); border-radius:0; box-shadow:none; }
.video-stage-bar { display:flex; min-height:54px; padding:8px 16px; align-items:center; justify-content:space-between; gap:12px; }
.video-stage-bar h2 { margin:0; font-size:1rem; }
.patient-hub-page .video-frame-host { height:clamp(300px,calc(100dvh - 390px),520px); min-height:0; background:#142639; }
.patient-hub-page .daily-frame { display:block; width:100%; height:100%; min-height:inherit; border:0; }
.patient-hub-page .consultation-stage,.patient-hub-page .video-stage,.patient-hub-page .video-frame-host { min-width:0; max-width:100%; }
.patient-hub-page .daily-frame { max-width:100%; min-width:0; }
.temporary-chat { grid-area:chat; margin:0; display:flex; min-height:0; flex-direction:column; padding:0; border-top:1px solid var(--tc-border); }
.temporary-files { grid-area:files; margin:0; padding:0; border:1px solid var(--tc-border); }
.panel-heading { display:flex; min-height:54px; margin:0; padding:10px 16px; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid var(--tc-border); }
.panel-heading h2 { margin:0; font-size:1rem; }
.panel-heading p { margin:2px 0 0; color:var(--tc-muted); font-size:.8125rem; }
.panel-count { margin-left:4px; color:var(--tc-muted); font-size:.8125rem; font-weight:450; }
.temporary-chat-messages { display:flex; min-height:210px; max-height:calc(100dvh - 390px); flex:1; padding:14px; flex-direction:column; gap:12px; overflow-y:auto; border:0; border-radius:0; background:#f9fbfd; scroll-behavior:smooth; }
.temporary-chat-message { width:fit-content; max-width:94%; padding:0; border:0; background:transparent; }
.temporary-chat-message.is-patient { align-self:flex-end; background:transparent; }
.message-meta { display:flex; margin:0 3px 5px; justify-content:space-between; gap:14px; color:var(--tc-muted); font-size:.75rem; }
.temporary-chat-message p { margin:0; padding:9px 11px; border:1px solid #dfe6ec; border-radius:4px 10px 10px; background:#fff; white-space:pre-wrap; overflow-wrap:anywhere; font-size:.9375rem; line-height:1.45; }
.temporary-chat-message.is-patient p { border-color:#cfdeed; border-radius:10px 4px 10px 10px; background:var(--tc-primary-soft); }
.temporary-chat-messages>.empty-state { margin:auto; padding:18px; border:0; color:var(--tc-muted); text-align:center; }
.new-messages-button { display:block; z-index:1; min-height:36px; margin:6px auto; padding:6px 13px; border:1px solid var(--tc-primary); border-radius:18px; background:#fff; color:var(--tc-primary); font:inherit; font-size:.8125rem; font-weight:650; cursor:pointer; }
.temporary-chat-form { display:grid; gap:6px; margin:0; padding:10px 12px; border-top:1px solid var(--tc-border); }
.temporary-chat-form label { margin:0; color:var(--tc-muted); font-size:.8125rem; font-weight:500; }
.compose-box { display:flex; padding:7px 8px 7px 10px; align-items:flex-end; gap:8px; border:1px solid var(--tc-control); border-radius:9px; background:#fff; }
.compose-box:focus-within { outline:3px solid var(--tc-focus); outline-offset:2px; }
.temporary-chat-form textarea { min-height:46px; max-height:130px; padding:3px 0; border:0; border-radius:0; outline:0; resize:vertical; font-size:1rem; }
.temporary-chat-form .button { flex:0 0 auto; }
.temporary-note { margin:0; color:var(--tc-muted); font-size:.75rem; line-height:1.35; }
.temporary-chat-form .form-help { margin:0; color:var(--tc-error); font-size:.8125rem; }
.button-link { min-width:0; min-height:36px; padding:4px 8px; border:0; background:transparent; color:var(--tc-primary); text-decoration:underline; }
.temporary-files .panel-heading { border-bottom:0; }
.visually-hidden-file { position:absolute; width:1px!important; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap; border:0; }
.selected-file { display:flex; margin:0 16px 10px; padding:10px 12px; align-items:center; justify-content:space-between; gap:14px; border:1px solid var(--tc-border); border-radius:8px; background:#f7f9fb; }
.selected-file div,.temporary-file-list li>div { display:grid; min-width:0; gap:2px; }
.selected-file strong,.selected-file span,.temporary-file-list strong,.temporary-file-list span { overflow-wrap:anywhere; }
.selected-file span,.temporary-file-list span { color:var(--tc-muted); font-size:.75rem; }
.temporary-files>.composer-actions { display:flex; min-height:44px; padding:0 16px 8px; align-items:center; justify-content:space-between; gap:10px; }
.temporary-files>.composer-actions .form-help { margin:0; font-size:.8125rem; }
.temporary-file-list { display:grid; gap:0; margin:0; padding:0 16px; list-style:none; }
.temporary-file-list li { display:flex; min-height:56px; padding:8px 0; align-items:center; justify-content:space-between; gap:12px; border:0; border-top:1px solid var(--tc-border); border-radius:0; background:transparent; font-size:.875rem; }
.temporary-file-list .empty-state { justify-content:flex-start; color:var(--tc-muted); }
.temporary-file-list .button { width:auto; min-width:auto; min-height:40px; padding:7px 11px; white-space:nowrap; }
.temporary-file-list li>div:not(.file-actions) { flex:1; text-align:left; }
.temporary-files>.composer-actions:has(#fileFeedback:empty):has(#retryFiles[hidden]) { min-height:0; padding:0; }
.temporary-file-list .file-actions { display:flex; flex:0 0 auto; align-items:center; gap:6px; }
.file-viewer { width:min(920px,calc(100% - 32px)); max-width:none; }
.file-viewer .modal-card { width:100%; box-sizing:border-box; }
.file-viewer-body { display:grid; min-height:240px; max-height:min(68vh,720px); margin:14px 0; place-items:center; overflow:auto; border:1px solid var(--tc-border); border-radius:8px; background:#eef2f5; }
.file-viewer-body img { display:block; max-width:100%; max-height:65vh; }
.file-viewer-body iframe { width:100%; height:min(65vh,700px); border:0; background:#fff; }
.mobile-file-viewer .file-viewer-body { display:block; overflow:hidden; }
.file-download-instructions { display:none; }
.mobile-file-viewer #fileViewerSaveHelp { display:none; }
.mobile-file-viewer .file-download-instructions { display:block; margin:14px 0; padding-top:8px; border-top:1px solid var(--tc-border); overflow-wrap:anywhere; }
.mobile-file-viewer .file-download-instructions summary { min-height:44px; padding:10px 0; cursor:pointer; font-weight:700; }
.mobile-file-viewer .file-download-instructions p { margin:8px 0 12px; }
.patient-pdf-preview { width:100%; min-width:0; display:grid; grid-template-rows:auto minmax(0,1fr); max-height:min(68vh,720px); }
.patient-pdf-toolbar { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:8px; padding:10px 8px; border-bottom:1px solid var(--tc-border); background:var(--tc-surface,#fff); }
.patient-pdf-toolbar .button { min-width:38px; min-height:38px; }
.patient-pdf-page-label,.patient-pdf-zoom-label { font-size:.875rem; font-weight:600; white-space:nowrap; }
.patient-pdf-viewport { min-width:0; min-height:180px; overflow:auto; padding:10px; box-sizing:border-box; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; }
.patient-pdf-viewport canvas { display:block; margin:0 auto; background:#fff; box-shadow:0 1px 5px rgb(0 0 0 / 12%); }
.patient-pdf-viewport canvas[hidden] { display:none; }
.mobile-file-viewer #fileViewerDownload[aria-disabled="true"] { opacity:.65; cursor:wait; }
@supports (height:1svh) { .patient-pdf-preview { max-height:min(68svh,720px); } }
@media (max-width:480px) {
  .mobile-file-viewer { width:calc(100% - 16px); }
  .mobile-file-viewer .modal-card { padding:16px; }
  .patient-pdf-toolbar { gap:6px; }
}
.temporary-files .panel-heading .button { min-width:88px; white-space:nowrap; }
.file-type { display:grid!important; width:34px; height:40px; flex:0 0 34px; place-items:center; border:1px solid #cbd8e4; border-radius:6px; background:#f3f7fc; color:#48667e!important; font-size:.625rem!important; font-weight:800; }
.file-limits { margin:5px 16px 12px; color:var(--tc-muted); font-size:.75rem; }
.file-limits summary { min-height:36px; padding:8px 0; cursor:pointer; }
.file-limits p { margin:4px 0 0; }
.workspace-safety { display:flex; margin:12px 0 16px; justify-content:space-between; color:var(--tc-muted); font-size:.75rem; }
.recovery-panel { display:grid; gap:12px; margin:14px 16px 16px; padding:16px; border:1px solid var(--tc-border); border-radius:10px; }
.recovery-panel label { display:grid; gap:5px; margin:0; font-size:.8125rem; font-weight:650; }
.patient-hub-page .alpha-footer { padding:16px 12px 22px; font-size:.6875rem; letter-spacing:.06em; }
.device-check-dialog { width:min(560px,calc(100% - 24px)); }
.device-check-dialog .modal-card { display:grid; gap:14px; width:100%; box-sizing:border-box; }
.device-check-dialog :is(h2,p) { margin:0; }
.device-check-preview { display:block; width:100%; max-height:min(38vh,300px); aspect-ratio:16/9; object-fit:cover; border:1px solid var(--tc-border); border-radius:12px; background:#0d1117; }
.device-check-results { display:grid; gap:8px; }
.device-check-result { display:grid; grid-template-columns:110px minmax(0,1fr); padding:10px 12px; align-items:center; gap:10px; border:1px solid var(--tc-border); border-radius:9px; background:#f7f9fb; }
.device-check-result strong { color:var(--ink); }
.device-check-result span { color:var(--tc-muted); font-size:.875rem; line-height:1.4; }
.device-check-result[data-state="pass"] { border-color:#87b99b; background:#f0f8f3; }
.device-check-result[data-state="pass"]>span { color:#235c3d; }
.device-check-result[data-state="warning"] { border-color:#d8b56a; background:#fff9ea; }
.device-check-result[data-state="warning"]>span { color:#704f0f; }
.device-check-result[data-state="error"] { border-color:#d99a96; background:#fff4f3; }
.device-check-result[data-state="error"]>span { color:#8a2822; }
.device-check-meter { grid-column:2; height:8px; overflow:hidden; border-radius:999px; background:#dbe3ea; }
.device-check-meter-bar { display:block; width:0; height:100%; border-radius:inherit; background:var(--tc-primary); transition:width 80ms linear; }
.booking-page .device-check-dialog .device-check-actions { display:flex; justify-content:center; margin:0; }
.device-check-actions [data-action="device-check-finish"] { display:flex; flex-direction:column; align-items:center; gap:5px; text-align:center; }
.device-check-actions [data-action="device-check-finish"] small { font-size:.75rem; font-weight:400; line-height:1.4; }
.booking-page .device-check-dialog .modal-header { margin:0; align-items:center; }
.patient-hub-page :is(button,a,input,textarea,summary):focus-visible { outline:3px solid var(--tc-focus); outline-offset:3px; }
.patient-hub-page .compose-box textarea:focus-visible { outline:none; }
:where(h1,h2,h3,section)[tabindex="-1"]:focus { outline:none; }
.patient-contact-fields { column-gap:24px; }
.patient-contact-fields>label { grid-template-rows:auto 48px auto; align-content:start; }
.patient-contact-fields :is(#birthdate,#callbackNumber) { height:48px; min-height:48px; box-sizing:border-box; margin:0; }
.pwd-evidence-selected { display:flex; padding:12px 14px; align-items:center; justify-content:space-between; gap:14px; border:1px solid var(--line); border-radius:10px; background:var(--paper); }
.pwd-evidence-selected>div { display:grid; min-width:0; gap:3px; }
.pwd-evidence-selected strong,.pwd-evidence-selected span { overflow-wrap:anywhere; }
.pwd-evidence-selected span { color:var(--muted); font-size:.78rem; }
.pwd-evidence-selected .text-button { flex:0 0 auto; }
.pwd-evidence-preview { width:min(760px,calc(100% - 28px)); }
.pwd-evidence-preview-body { display:grid; min-height:220px; max-height:68vh; margin:18px 0 0; padding:12px; place-items:center; overflow:auto; border:1px solid var(--line); border-radius:10px; background:#eef2f5; }
.pwd-evidence-preview-body img { display:block; max-width:100%; max-height:64vh; }
.pwd-evidence-preview .modal-actions { grid-template-columns:1fr; }
@media (max-width:760px) {
  .patient-contact-fields { row-gap:6px; }
  .pwd-evidence-selected { align-items:stretch; flex-direction:column; }
  .pwd-evidence-selected .text-button { width:100%; }
}
@media (max-width:1099px) {
  .patient-header-inner,.patient-hub-page .patient-shell { width:calc(100% - 40px); }
  .consultation-workspace { grid-template-columns:minmax(0,1fr) 320px; }
  .patient-hub-page .video-frame-host { height:380px; }
}
@media (max-width:859px) {
  .patient-header-inner,.patient-hub-page .patient-shell { width:calc(100% - 32px); }
  .appointment-summary { min-height:0; padding:16px 0 12px; align-items:flex-start; flex-direction:column; gap:10px; }
  .appointment-meta { width:100%; justify-content:space-between; text-align:left; }
  .workspace-jumps:not([hidden]) { display:flex; }
  .consultation-workspace,.consultation-workspace:not(.has-chat),.consultation-workspace.has-chat:not(.has-files) { grid-template-columns:1fr; grid-template-areas:"stage" "chat" "files"; }
  .consultation-stage { min-height:0; }
  .patient-hub-page .video-frame-host { height:clamp(480px,76svh,620px); }
  .temporary-chat { min-height:430px; }
  .temporary-chat-messages { min-height:220px; max-height:320px; }
  .workspace-safety { line-height:1.5; }
}
@media (max-width:480px) {
  .patient-header-inner,.patient-hub-page .patient-shell { width:calc(100% - 32px); }
  .header-help { font-size:.8125rem; }
  .patient-hub-page .brand-logo { width:min(250px,calc(100vw - 132px)); }
  .file-source-actions { width:100%; justify-content:stretch; }
  .file-source-actions .button { flex:1; }
  .appointment-help { display:grid; }
  .appointment-meta { display:grid; justify-content:start; }
  .workspace-jumps a { min-width:0; }
  .hub-status { padding:14px 13px 2px; }
  .hub-notices,.action-bar,.hub-follow-through { padding-left:13px; padding-right:13px; }
  .action-bar .button,.hub-follow-through .button { width:100%; }
  .panel-heading { padding:10px 12px; }
  .patient-hub-page .video-frame-host { height:clamp(480px,76svh,620px); }
  .temporary-chat-messages { padding:12px; }
  .temporary-chat-message { max-width:96%; }
  .temporary-files>.composer-actions,.temporary-file-list { padding-left:12px; padding-right:12px; }
  .selected-file { display:grid; margin-left:12px; margin-right:12px; }
  .selected-file .button { width:100%; }
  .temporary-file-list li { display:grid; grid-template-columns:56px minmax(0,1fr); align-items:center; }
  #doctorDocumentList li { grid-template-columns:minmax(0,1fr); }
  .temporary-file-list .file-type { width:56px; white-space:nowrap; }
  .temporary-file-list .file-actions { grid-column:1 / -1; width:100%; }
  .temporary-file-list .file-actions .button { flex:1; }
  .workspace-safety { display:block; }
  .device-check-result { grid-template-columns:1fr; }
  .device-check-meter { grid-column:1; }
}
@media (max-width:340px) {
  .patient-header-inner,.patient-hub-page .patient-shell { width:calc(100% - 24px); }
  .patient-hub-page .brand-caption { display:none; }
  .patient-hub-page .brand-logo { width:min(220px,calc(100vw - 116px)); }
  .workspace-jumps { gap:5px; }
  .workspace-jumps a { padding:6px 4px; font-size:.8125rem; }
  .panel-heading { align-items:flex-start; }
}
@media (prefers-reduced-motion:reduce) {
  .patient-hub-page * { scroll-behavior:auto!important; transition-duration:.01ms!important; animation-duration:.01ms!important; animation-iteration-count:1!important; }
  .device-check-meter-bar { transition:none; }
}
@media (forced-colors:active) {
  .workspace-panel,.temporary-chat-message p,.selected-file,.status-badge,.file-type { border:1px solid CanvasText; }
}

/* Patient polish, reconciled baseline (2026-09-25).
   Deliberately scoped: consent, payment-return and standalone video keep their
   existing presentation. Existing logo assets, layout, copy and visibility win. */
:is(.booking-page,.patient-hub-page) {
  --ui-action:#174f86; --ui-action-hover:#103e6d; --ui-focus:#1269b2;
  --ui-line:#dce4ec; --ui-muted:#536578; --ui-ease:cubic-bezier(.2,.7,.2,1);
  --ui-speed:150ms; --ink:#172b40; --muted:var(--ui-muted);
  --navy:var(--ui-action); --navy-hover:var(--ui-action-hover);
  --tc-primary:var(--ui-action); --tc-primary-hover:var(--ui-action-hover);
  --line:var(--ui-line); --focus:var(--ui-focus);
  line-height:1.6;
}
.booking-page { background:#fff; }
.patient-hub-page { background:#f5f7fa; }
:is(.booking-page,.patient-hub-page) :is(button,.button) {
  position:relative; touch-action:manipulation;
  transition:background-color var(--ui-speed) var(--ui-ease),border-color var(--ui-speed) var(--ui-ease),box-shadow var(--ui-speed) var(--ui-ease),transform 100ms var(--ui-ease);
}
:is(.booking-page,.patient-hub-page) :is(.primary,.secondary,.button,.text-button) {
  min-height:46px; border-radius:10px; padding:11px 26px;
  font-weight:600; line-height:1.45; gap:8px;
}
:is(.booking-page,.patient-hub-page) :is(.primary,.button-primary) {
  background:var(--ui-action); border-color:var(--ui-action); box-shadow:0 1px 2px #15365314;
}
:is(.booking-page,.patient-hub-page) :is(.secondary,.button-secondary,.text-button) {
  color:#29455e; border-color:#95a8ba; background:#fff; box-shadow:none;
}
:is(.booking-page,.patient-hub-page) :is(.button-link,.quiet-back,.header-help) { border-radius:8px; text-underline-offset:4px; }
:is(.booking-page,.patient-hub-page) :is(button,.button):active:not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"]) { transform:translateY(1px); }
:is(.booking-page,.patient-hub-page) button:disabled { opacity:.55; cursor:not-allowed; }
:is(.booking-page,.patient-hub-page) button:is([aria-busy="true"],[data-ui-pending="true"]) { opacity:1; cursor:progress; transform:none; }
/* The spinner sits in the control's existing padding: new feedback does not
   replace words or insert/remove a flex item when a request starts. */
:is(.booking-page,.patient-hub-page) button:is([aria-busy="true"],[data-ui-pending="true"])::before {
  content:""; position:absolute; inset-inline-end:8px; top:calc(50% - 7px);
  width:14px; height:14px; margin:0; border:2px solid currentColor;
  border-right-color:transparent; border-radius:50%; animation:patient-polish-spin 750ms linear infinite;
}
.booking-page #emailRecovery[aria-busy="true"] #recoveryStatus::before,
.booking-page:has(#pwdEvidence[aria-busy="true"]) #pwdEvidenceStatus::before {
  content:""; display:inline-block; width:14px; height:14px; margin-inline-end:8px;
  border:2px solid currentColor; border-right-color:transparent; border-radius:50%; vertical-align:-2px;
  animation:patient-polish-spin 750ms linear infinite;
}
@keyframes patient-polish-spin { to { transform:rotate(360deg); } }
@media (hover:hover) {
  :is(.booking-page,.patient-hub-page) :is(.primary,.button-primary):hover:not(:disabled):not([aria-disabled="true"]) { background:var(--ui-action-hover); border-color:var(--ui-action-hover); box-shadow:0 3px 8px #1436511a; }
  :is(.booking-page,.patient-hub-page) :is(.secondary,.button-secondary,.text-button):hover:not(:disabled):not([aria-disabled="true"]) { background:#f0f5fa; border-color:#5e7e9a; }
  :is(.booking-page,.patient-hub-page) :is(.button-link,.quiet-back,.header-help):hover { background:#edf3f9; }
  .patient-hub-page .button-danger:hover:not(:disabled):not([aria-disabled="true"]) { background:#fff3f2; }
}
:is(.booking-page,.patient-hub-page) :is(button,a,input,select,textarea,summary):focus-visible { outline:3px solid var(--ui-focus); outline-offset:3px; }
:is(.booking-page,.patient-hub-page) :is(h1,h2,h3)[tabindex="-1"]:focus { outline:none; }
:is(.booking-page,.patient-hub-page) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),select,textarea) {
  min-height:48px; min-width:0; max-width:100%; padding:12px 14px; border:1px solid #8094a6;
  border-radius:10px; background:#fff; color:var(--ink); font-size:16px; font-weight:400; line-height:1.45;
  transition:border-color var(--ui-speed),box-shadow var(--ui-speed),background-color var(--ui-speed);
}
:is(.booking-page,.patient-hub-page) :is(input,textarea)::placeholder { color:#667789; opacity:1; }
:is(.booking-page,.patient-hub-page) :is(input,select,textarea):focus-visible { border-color:var(--ui-focus); }
:is(.booking-page,.patient-hub-page) :is(input,textarea)[readonly] { background:#f4f7fa; }
:is(.booking-page,.patient-hub-page) :is(input,textarea,select)[aria-invalid="true"] { border-color:#ab3735; box-shadow:0 0 0 1px #ab3735; }
:is(.booking-page,.patient-hub-page) input:is([type="checkbox"],[type="radio"]) { accent-color:var(--ui-action); }
.booking-page fieldset { min-width:0; }
.booking-page label { color:#2b4155; font-weight:600; font-size:.9375rem; }
.booking-page .check { min-height:44px; gap:12px; line-height:1.6; }
.booking-page .entry-view { padding-top:clamp(32px,7vh,72px); padding-bottom:64px; }
.booking-page .entry-view h1 { font-weight:650; letter-spacing:-.035em; }
.booking-page .entry-view .lede { max-width:440px; margin-inline:auto; font-size:1.0625rem; }
.booking-page .entry-actions { max-width:480px; margin-top:28px; gap:12px; }
.booking-page #startRecovery { background:#f5f8fb; border-color:var(--ui-line); color:#415c74; font-weight:500; }
.booking-page :is(h1,h2) { font-weight:650; letter-spacing:-.025em; }
.booking-page .eyebrow { color:#556d81; letter-spacing:.1em; font-weight:650; }
.booking-page .booking-flow .progress { margin-bottom:30px; padding-bottom:22px; }
.booking-page .progress li>span { width:30px; height:30px; background:#f2f6fa; border-color:#a4b5c5; color:#465f76; box-shadow:none; }
.booking-page .progress .is-current { color:var(--ui-action); }
.booking-page .progress .is-current>span { color:#fff; background:var(--ui-action); border-color:var(--ui-action); }
.booking-page .progress .is-complete>span { color:#22654e; background:#edf7f0; border-color:#91b9a3; }
.booking-page .slot-date-tools { gap:12px; }
.booking-page .slot { transition:background-color 140ms,border-color 140ms,box-shadow 140ms; }
.booking-page .slot-times .slot { border-radius:10px; min-height:50px; border-color:#8094a6; }
.booking-page .slot:has(input:checked) { background:#edf4fb; color:#17446e; border-color:var(--ui-action); box-shadow:inset 0 0 0 1px var(--ui-action); }
.booking-page .slot:focus-within { outline:3px solid var(--ui-focus); outline-offset:3px; }
.booking-page :is(.booking-option-card,.consent-copy) { padding:20px; border:1px solid var(--ui-line); border-radius:12px; background:#f8fafc; box-shadow:none; }
.booking-page .safety-notice { border-radius:10px; background:#fff8ed; }
.booking-page .verification-code { max-width:320px; font-variant-numeric:tabular-nums; letter-spacing:.2em; }
.booking-page .verification-success { background:#eef8f2; border-color:#a0c7b1; border-radius:12px; }
.booking-page .form-actions { padding-top:20px; gap:14px; }
.booking-page .booking-recovery-link { color:var(--ui-muted); }
/* Enter-only transitions on deliberate screens/dialogs; never animate live hub
   replacement, iframe layout, message arrival or protected-content teardown. */
@keyframes patient-polish-enter { from { opacity:.5; transform:translateY(3px); } to { opacity:1; transform:none; } }
.booking-page :is(#entryView,#suitabilityView,#recoveryView,#newBookingLayout,#schedulePanel,#detailFields,#confirmationPanel,#reviewPanel):not([hidden]),
.patient-hub-page #appointmentHelp:not([hidden]),
:is(.booking-page,.patient-hub-page) dialog[open] { animation:patient-polish-enter 160ms var(--ui-ease); }
:is(.booking-page,.patient-hub-page) .modal { max-height:calc(100dvh - 32px); overflow-y:auto; border-radius:16px; box-shadow:0 16px 60px #142c4433; }
:is(.booking-page,.patient-hub-page) .modal::backdrop { background:#10223580; backdrop-filter:blur(3px); }
:is(.booking-page,.patient-hub-page) .modal-card { border-radius:16px; }
.patient-hub-page .patient-header-inner { gap:12px; }
.patient-hub-page .patient-header-inner .brand-lockup { min-width:0; flex:1; }
.patient-hub-page .patient-header-inner .brand-logo-link { min-width:0; }
.patient-hub-page .header-help { flex:0 0 auto; }
.patient-hub-page #manageAppointment { min-height:44px; padding-inline:26px; }
.patient-hub-page .workspace-panel { border-color:var(--ui-line); border-radius:14px; box-shadow:0 2px 8px #18314a06; }
.patient-hub-page .appointment-summary { gap:16px; }
.patient-hub-page .appointment-summary h1 { font-weight:650; }
.patient-hub-page .hub-status { padding:20px 20px 4px; }
.patient-hub-page .hub-status h2 { font-size:1.25rem; line-height:1.35; font-weight:650; }
.patient-hub-page .hub-status .lede { font-size:.9375rem; line-height:1.65; }
.patient-hub-page :is(.hub-notices,.action-bar,.hub-follow-through) { padding-left:20px; padding-right:20px; }
.patient-hub-page .temporary-chat { margin-top:0; }
.patient-hub-page .panel-heading { padding:14px 16px; }
.patient-hub-page .panel-heading h2 { font-weight:650; }
.patient-hub-page .temporary-chat-messages { background:#f8fafc; padding:16px; scroll-behavior:auto; }
.patient-hub-page .temporary-chat-message p { border-radius:4px 13px 13px; border-color:#dce5ee; line-height:1.6; }
.patient-hub-page .temporary-chat-message.is-patient p { border-radius:13px 4px 13px 13px; background:#edf4fb; }
.patient-hub-page .compose-box { border-color:#8094a6; border-radius:12px; padding:8px 9px 8px 12px; }
.patient-hub-page .compose-box:focus-within { outline:3px solid var(--ui-focus); outline-offset:2px; }
.patient-hub-page #chatInput { min-height:44px; padding:8px 0; border:0; border-radius:0; outline:none; box-shadow:none; background:transparent; }
.patient-hub-page .temporary-chat-form .button { padding:10px 24px; min-height:44px; }
.patient-hub-page .temporary-files>.composer-actions:has(#fileFeedback:empty):has(#retryFiles[hidden]) { min-height:0; padding-block:0; }
.patient-hub-page .temporary-file-list li:has(>.file-type) { display:grid; grid-template-columns:48px minmax(0,1fr) auto; gap:12px; }
.patient-hub-page .temporary-file-list strong { font-weight:600; }
.patient-hub-page .file-actions { display:flex; flex-wrap:wrap; gap:8px; }
.patient-hub-page .file-actions .button { min-height:44px; }
@media (max-width:600px) {
  .booking-page :is(.primary,.secondary,.text-button) { padding-inline:22px; }
  .booking-page .entry-view { padding-top:36px; padding-bottom:40px; }
  .booking-page :is(.booking-option-card,.consent-copy) { padding:16px; }
  .booking-page .progress li>span { width:26px; height:26px; }
  :is(.booking-page,.patient-hub-page) .modal { max-height:calc(100dvh - 24px); }
  :is(.booking-page,.patient-hub-page) .modal-card { padding:22px 18px; }
  .patient-hub-page .hub-status { padding:16px 14px 4px; }
  .patient-hub-page :is(.hub-notices,.action-bar,.hub-follow-through) { padding-left:14px; padding-right:14px; }
  .patient-hub-page .header-help { max-width:104px; }
  .patient-hub-page .panel-heading { padding:12px 14px; }
  .patient-hub-page .temporary-files .panel-heading { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; }
  .patient-hub-page .temporary-files .panel-heading>div:first-child { display:contents; }
  .patient-hub-page .temporary-files .panel-heading h2 { grid-column:1; grid-row:1; align-self:center; }
  .patient-hub-page .temporary-files .panel-heading p { grid-column:1 / -1; grid-row:2; }
  .patient-hub-page .temporary-files .file-source-actions { grid-column:2; grid-row:1; }
}
@media (max-width:480px) {
  .patient-hub-page .temporary-file-list li:has(>.file-type) { grid-template-columns:48px minmax(0,1fr); }
  .patient-hub-page .temporary-file-list .file-actions { grid-column:1 / -1; }
}
@media (prefers-reduced-motion:reduce) {
  :is(.booking-page,.patient-hub-page), :is(.booking-page,.patient-hub-page) *,
  :is(.booking-page,.patient-hub-page) *::before, :is(.booking-page,.patient-hub-page) *::after {
    animation:none!important; transition:none!important; scroll-behavior:auto!important;
  }
}
@media (forced-colors:active) {
  :is(.booking-page,.patient-hub-page) :is(button,.button) { forced-color-adjust:auto; box-shadow:none; }
  :is(.booking-page,.patient-hub-page) :is(.primary,.secondary,.button,.text-button) { border:1px solid ButtonText; background:ButtonFace; color:ButtonText; }
  :is(.booking-page,.patient-hub-page) :is(button,a,input,select,textarea,summary):focus-visible { outline-color:Highlight; }
  :is(.booking-page,.patient-hub-page) button:disabled { opacity:1; color:GrayText; border-color:GrayText; }
  .booking-page .slot:has(input:checked) { border:2px solid Highlight; box-shadow:none; }
}


/* Patient notices and final UI fixes — 2026-09-25.
   No generic global button/close overrides outside this patient stylesheet. */
:is(.booking-page,.patient-hub-page) .modal-header {
  display:grid; grid-template-columns:minmax(0,1fr) 44px; gap:16px;
  align-items:start; margin-bottom:18px;
}
:is(.booking-page,.patient-hub-page) .modal-header :is(h2,p) { overflow-wrap:anywhere; }
:is(.booking-page,.patient-hub-page) .modal-header h2 { margin:0; }
:is(.booking-page,.patient-hub-page) .modal-header .eyebrow { margin:0 0 6px; }
:is(.booking-page,.patient-hub-page) .modal-header .modal-close {
  position:static; width:44px; height:44px; min-width:44px; min-height:44px;
  padding:0; margin:0; border-radius:12px; line-height:1; font-weight:500;
}
:is(.booking-page,.patient-hub-page) .modal-card { min-width:0; overflow-wrap:anywhere; }
:is(.booking-page,.patient-hub-page) .modal-actions { flex-wrap:wrap; gap:12px; }
:is(.booking-page,.patient-hub-page) .modal :is(.button,.primary,.secondary) { white-space:normal; }
.patient-hub-page .appointment-help { align-items:start; }
.patient-hub-page .appointment-help>div { min-width:0; }
.patient-hub-page .appointment-help p { overflow-wrap:anywhere; }
.patient-hub-page .refund-claim-notice { color:var(--ink); background:#f2f7fc; border-color:#cbddeb; }
.patient-hub-page .refund-claim-notice h3 { font-size:1.0625rem; margin:0 0 6px; }
.patient-hub-page .refund-claim-notice>p { margin:0 0 14px; font-weight:400; }
.patient-hub-page .refund-claim-list { list-style:none; padding:0; margin:0; }
.patient-hub-page .refund-claim-list li { display:flex; flex-wrap:wrap; align-items:center; gap:12px 20px; padding-top:12px; border-top:1px solid #cbddeb; }
.patient-hub-page .refund-claim-list li+li { margin-top:12px; }
.patient-hub-page .refund-claim-list li>div { flex:1 1 220px; min-width:0; }
.patient-hub-page .refund-claim-list p { margin:3px 0 0; font-size:.875rem; font-weight:400; overflow-wrap:anywhere; }
.patient-hub-page .refund-claim-list .button { flex:0 0 auto; margin:0; }
.booking-page .verification-success { border:1px solid #6fa58a; border-left:4px solid #267453; padding:20px; align-items:start; }
.booking-page .verification-success strong { font-size:1.125rem; color:#145538; }
.booking-page .verification-success p { margin:4px 0 0; color:#244e3a; }
.booking-page .verification-success .verified-email-address { font-size:.875rem; overflow-wrap:anywhere; color:#435d50; }
.patient-footer { padding:28px 16px 24px; margin-top:auto; font-size:.875rem; line-height:1.6; font-weight:400; letter-spacing:0; }
.patient-footer nav { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:8px 12px; }
.patient-footer a { display:inline-flex; align-items:center; min-height:44px; color:#435b70; text-underline-offset:3px; }
.patient-footer p { margin:6px 0 0; color:#586a79; }
:is(.booking-page,.patient-hub-page,.policy-page,.patient-return-page) .patient-footer { display:flex; width:100%; min-width:0; min-height:54px; margin-top:auto; padding:8px max(24px,calc((100vw - 1360px)/2 + 28px)); align-items:center; justify-content:space-between; flex-wrap:wrap; gap:6px 24px; background:#102235; box-shadow:inset 0 1px 0 rgba(255,255,255,.14); color:#fff; font-size:.78rem; line-height:1.45; text-align:left; }
.booking-page,.patient-return-page { display:flex; height:100dvh; min-height:100dvh; overflow:hidden; flex-direction:column; }
.booking-page>.booking-shell,.patient-return-page>.shell { flex:1 1 auto; min-height:0; overflow-y:auto; }
.booking-page>.patient-footer,.patient-return-page>.patient-footer { flex:0 0 auto; position:relative; z-index:2; }
.patient-hub-page { display:flex; height:100dvh; min-height:100dvh; overflow:hidden; flex-direction:column; }
.patient-hub-page .patient-shell { flex:1 1 auto; min-height:0; overflow-y:auto; }
.patient-hub-page>.patient-footer { flex:0 0 auto; position:relative; z-index:2; }
:is(.booking-page,.patient-hub-page,.policy-page,.patient-return-page) .patient-footer nav { justify-content:flex-start; gap:6px 12px; }
:is(.booking-page,.patient-hub-page,.policy-page,.patient-return-page) .patient-footer a { min-height:36px; color:#fff; font-weight:650; text-decoration-color:rgba(255,255,255,.55); text-underline-offset:4px; }
:is(.booking-page,.patient-hub-page,.policy-page,.patient-return-page) .patient-footer a:hover { text-decoration-color:#fff; }
:is(.booking-page,.patient-hub-page,.policy-page,.patient-return-page) .patient-footer nav>span { color:#8fa6b8; }
:is(.booking-page,.patient-hub-page,.policy-page,.patient-return-page) .patient-footer p { min-width:0; margin:0; color:#d6e0e8; text-align:right; overflow-wrap:anywhere; }
:is(.booking-page,.patient-hub-page,.policy-page,.patient-return-page) .patient-footer strong { color:#fff; font-weight:650; }
:is(.booking-page,.patient-hub-page,.policy-page,.patient-return-page) .patient-footer a:focus-visible { outline-color:#fff; }
.plain-email { white-space:nowrap; }
.policy-context-link { margin:12px 0; font-size:.875rem; }
html:has(.policy-page),.policy-page { height:100%; overflow:hidden; }
.policy-page { display:flex; height:100dvh; min-height:100dvh; overflow:hidden; flex-direction:column; background:#fff; color:#1b3146; }
.policy-page>.policy-site-header,.policy-page>.patient-footer { flex:0 0 auto; width:100%; }
.policy-page>.policy-shell { flex:1 1 auto; min-height:0; overflow-y:auto; }
.policy-site-header { display:flex; align-items:center; justify-content:space-between; gap:24px; max-width:1120px; margin:0 auto; padding:24px 32px; border-bottom:1px solid #e0e5e9; }
.policy-site-header .brand-logo { width:300px; }
.policy-site-header nav { display:flex; flex-wrap:wrap; align-items:center; gap:16px; }
.policy-site-header .button { margin:0; }
.policy-home-link { display:inline-flex; min-height:44px; align-items:center; }
.policy-shell { width:min(1120px,100%); margin:auto; padding:40px 32px 20px; }
.policy-intro { margin-bottom:32px; }
.policy-intro h1 { max-width:850px; font-weight:650; overflow-wrap:anywhere; }
.policy-intro .lede { max-width:760px; }
.policy-date { color:#55687a; font-size:.875rem; margin:12px 0 0; }
.policy-layout { display:grid; grid-template-columns:210px minmax(0,1fr); gap:44px; align-items:start; }
.policy-contents { padding:4px 0; }
.policy-contents h2 { font-size:.875rem; margin:0 0 10px; color:#53697a; }
.policy-contents a { display:flex; align-items:center; min-height:44px; padding:8px 0; line-height:1.4; font-size:.875rem; }
.policy-content { min-width:0; max-width:760px; }
.policy-content section { margin:0 0 32px; scroll-margin-top:20px; }
.policy-content h2 { font-size:1.25rem; line-height:1.35; font-weight:650; overflow-wrap:anywhere; }
.policy-content h3 { font-size:1rem; font-weight:650; }
.policy-content p { margin:0 0 14px; line-height:1.75; }
.policy-content ul { padding-left:22px; }
.policy-content li { margin:0 0 12px; }
.policy-highlight { background:#f4f8fb; padding:24px; border:1px solid #d5e3ee; border-radius:14px; }
.policy-highlight p:last-child { margin-bottom:0; }
.policy-rule { padding:18px 0; border-bottom:1px solid #e0e5e9; }
.policy-rule p:last-child { margin-bottom:0; }
.policy-rule:last-of-type { margin-bottom:18px; }
.policy-page a { color:#235784; text-underline-offset:3px; overflow-wrap:anywhere; }
.policy-page a:hover { text-decoration-thickness:2px; }
.policy-page :is(a,button):focus-visible { outline:3px solid #1769aa; outline-offset:3px; }
.policy-page [tabindex="-1"]:focus { outline:none; }
.policy-page .button { min-height:44px; border-radius:10px; font-weight:600; }
.policy-bottom-actions { display:flex; align-items:center; flex-wrap:wrap; gap:20px; margin:20px 0 0; padding:24px 0; border-top:1px solid #e0e5e9; }
.policy-bottom-actions a { min-height:44px; display:inline-flex; align-items:center; }
.policy-version,.policy-return-status { color:#55687a; font-size:.875rem; overflow-wrap:anywhere; }
.policy-return-status:empty { display:none; }
.embedded-policy-view { width:min(1120px,100%); margin:0 auto; padding:30px 0 20px; color:#1b3146; }
.embedded-policy-actions { display:flex; justify-content:flex-end; margin:0 0 18px; }
.embedded-policy-view a { color:#235784; text-underline-offset:3px; overflow-wrap:anywhere; }
.embedded-policy-view :is(a,button):focus-visible { outline:3px solid #1769aa; outline-offset:3px; }
/* Embedded notices keep the booking/hub sticky header, whose measured height
   must win over the standalone article's short section scroll margin. */
.has-embedded-policy .policy-content section { scroll-margin-top:var(--patient-header-offset,112px); }
@media (min-width:761px) {
  .policy-page>.policy-shell { display:flex; flex:1 1 auto; min-height:0; flex-direction:column; overflow:hidden; }
  .policy-page .policy-intro,.policy-page .policy-bottom-actions,.policy-page .policy-return-status { flex:0 0 auto; }
  .policy-page .policy-layout { flex:1 1 auto; min-height:0; overflow:hidden; }
  .policy-page .policy-contents { position:sticky; top:0; align-self:start; min-height:0; max-height:100%; overflow-y:auto; overscroll-behavior:contain; }
  .policy-page .policy-content { height:100%; overflow-y:auto; overscroll-behavior:contain; padding-right:16px; scrollbar-gutter:stable; }
  :is(.booking-page,.patient-hub-page).has-embedded-policy { height:100dvh; overflow:hidden; }
  .booking-page.has-embedded-policy #bookingMain { width:100%; max-width:none; height:auto; min-height:0; padding-inline:0; display:flex; flex:1 1 auto; flex-direction:column; overflow:hidden; }
  .booking-page.has-embedded-policy #bookingMain>.booking-header,.booking-page.has-embedded-policy .embedded-policy-view { width:min(1120px,calc(100% - 64px)); margin-inline:auto; }
  .booking-page.has-embedded-policy #bookingMain>.booking-header,.booking-page.has-embedded-policy>.patient-footer,.patient-hub-page.has-embedded-policy>.patient-footer { flex:0 0 auto; }
  .patient-hub-page.has-embedded-policy .patient-shell { display:flex; flex:1 1 auto; min-height:0; flex-direction:column; overflow:hidden; }
  .has-embedded-policy .embedded-policy-view { display:flex; flex:1 1 auto; min-height:0; flex-direction:column; overflow:hidden; }
  .has-embedded-policy .embedded-policy-actions,.has-embedded-policy .policy-intro { flex:0 0 auto; }
  .has-embedded-policy .policy-layout { flex:1 1 auto; min-height:0; overflow:hidden; }
  .has-embedded-policy .policy-contents { position:sticky; top:0; align-self:start; min-height:0; max-height:100%; overflow-y:auto; overscroll-behavior:contain; }
  .has-embedded-policy .policy-content { height:100%; overflow-y:auto; overscroll-behavior:contain; padding-right:16px; scrollbar-gutter:stable; }
}
@media (max-width:760px) {
  .policy-site-header { padding:18px 20px; flex-wrap:wrap; gap:12px; }
  .policy-site-header .brand-logo { width:260px; }
  .policy-shell { padding:28px 20px 16px; }
  .policy-layout { grid-template-columns:minmax(0,1fr); gap:24px; }
  .policy-contents { display:flex; flex-wrap:wrap; gap:4px 18px; padding:16px 0; border-block:1px solid #e0e5e9; }
  .policy-contents h2 { width:100%; margin-bottom:4px; }
  .policy-contents a { max-width:100%; }
  .policy-highlight { padding:18px; }
  .embedded-policy-view { padding:24px 0 16px; }
}
@media (max-width:600px) {
  .patient-hub-page .appointment-help { flex-wrap:wrap; }
  .patient-hub-page .appointment-help>div { flex-basis:100%; }
  .patient-hub-page .refund-claim-list .button { width:100%; }
  .patient-footer nav { gap:4px 12px; }
  .patient-footer nav>span { display:none; }
  .patient-footer nav>a { justify-content:center; }
  :is(.booking-page,.patient-hub-page,.policy-page,.patient-return-page) .patient-footer { padding:8px 16px 10px; align-items:flex-start; flex-direction:column; gap:0; }
  :is(.booking-page,.patient-hub-page,.policy-page,.patient-return-page) .patient-footer nav>a { justify-content:flex-start; }
  :is(.booking-page,.patient-hub-page,.policy-page,.patient-return-page) .patient-footer p { text-align:left; }
  :is(.booking-page,.patient-hub-page) .modal-header { gap:12px; }
}
@media (max-width:760px) {
  .booking-page.has-embedded-policy #bookingMain>.booking-header,.booking-page.has-embedded-policy .embedded-policy-view { width:calc(100% - 40px); }
}
@media (prefers-reduced-motion:reduce) { :is(.policy-page,.embedded-policy-view) * { scroll-behavior:auto!important; } }
@media (forced-colors:active) {
  .refund-claim-notice,.policy-highlight,.verification-success { border:1px solid CanvasText; }
  .policy-page :is(a,button):focus-visible,.patient-footer a:focus-visible { outline-color:Highlight; }
}
@media print {
  .policy-page { background:white; }
  .policy-page :is(.policy-site-header nav,.policy-contents,.policy-bottom-actions,.patient-footer,.skip-link) { display:none; }
  .policy-shell { padding:0; width:100%; }
  .policy-layout { display:block; }
  .policy-highlight { box-shadow:none; background:white; }
  .policy-content { max-width:none; }
  .policy-content h2,.policy-content h3 { break-after:avoid; }
}

/* Explicit practice service refinements. No provider/payment behavior. */
.booking-page .booking-shell{padding-top:0;}
.booking-page .booking-header,.patient-hub-page .patient-site-header,.policy-page .policy-site-header{position:sticky;top:0;z-index:20;background:#fff;box-shadow:0 1px 0 #dce3eb;}
.patient-hub-page .patient-site-header,.policy-page .policy-site-header{padding-top:max(12px,env(safe-area-inset-top));}
.booking-page .booking-header{padding:max(6px,env(safe-area-inset-top)) 0 6px;}
.booking-page .booking-header .brand-bar{min-height:0;margin-bottom:0;padding-bottom:0;border-bottom:0;}
.patient-hub-page .patient-site-header{border-bottom:0;}
html:has(.booking-page),html:has(.patient-hub-page),html:has(.policy-page){scroll-padding-top:var(--patient-header-offset,112px);}
:where(.booking-page,.patient-hub-page,.policy-page) :is([tabindex],input,select,textarea,button,[id]){scroll-margin-top:var(--patient-header-offset,112px);}
.patient-contact{font-size:14px;line-height:1.65;color:#475569;overflow-wrap:anywhere;margin:12px 0 4px;}
.selected-date-context{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 14px;}
.selected-date-context p{margin:0;}.selected-date-context #scheduleDateLabel{color:#102235;font-weight:800;}.selected-date-caption{font-size:14px;color:#586676;}
@media(max-width:480px){.selected-date-context{gap:5px 12px;}.patient-contact strong{white-space:normal;}.policy-page .policy-site-header{gap:8px;}}
@media print{.booking-page .booking-header,.patient-hub-page .patient-site-header,.policy-page .policy-site-header{position:static;box-shadow:none;}}
.patient-footer-details{display:contents;}
.patient-footer-details[hidden]{display:none!important;}
.patient-footer-compact{display:none;}
/* Patient-facing reference theme (2026-10-02). Presentation only; state colors,
   busy feedback, device gating, policy copy and compact-footer behavior remain. */
:is(.booking-page,.patient-hub-page,.policy-page,.patient-return-page) {
  --ui-action:#1c568b; --ui-action-hover:#164674; --navy:#102a40;
  --navy-hover:#1b3b53; color:#142c40; background:#fff;
  font-family:"Segoe UI",Roboto,Arial,sans-serif;
}
.booking-page .booking-shell { width:min(1120px,100%); padding-inline:32px; }
.booking-page .booking-header { padding:20px 0 18px; box-shadow:0 1px 0 #dce5ed; }
:is(.booking-header,.patient-site-header,.policy-site-header) .brand-logo { width:360px; max-width:100%; }
.portal-label { font-size:16px; font-weight:400; letter-spacing:normal; text-transform:none; color:#52677b; }
.booking-page .entry-view { max-width:760px; margin-inline:auto; padding:56px 0 64px; }
.doctor-profile { margin:0 0 32px; text-align:center; }
.doctor-portrait { display:block; width:240px; height:240px; margin:auto; border-radius:50%; object-fit:cover; }
.doctor-label { display:table; position:relative; margin:-5px auto 16px; padding:5px 18px; border-radius:999px; background:#eef4f8; color:#47677d; font-size:16px; }
.doctor-name { margin:0 0 8px; font-size:clamp(23px,3.5vw,36px); font-weight:700; line-height:1.25; letter-spacing:-.025em; color:#102a40; }
.doctor-specialty { margin:0; font-size:clamp(18px,2.6vw,25px); line-height:1.4; color:#3e4d5a; }
.doctor-profile::after { content:""; display:block; width:76px; height:1px; margin:28px auto 0; background:#d2dce5; }
.booking-page .eyebrow { color:#486780; font-size:13px; letter-spacing:.17em; font-weight:600; }
.booking-page .entry-view h1 { margin:18px 0; font-size:clamp(36px,6vw,64px); line-height:1.1; letter-spacing:-.04em; color:#102a40; }
.booking-page .entry-view .lede { max-width:650px; margin:20px auto 32px; font-size:clamp(17px,2.3vw,22px); line-height:1.6; color:#697786; }
.booking-page .entry-actions { width:100%; max-width:680px; gap:14px; margin-inline:auto; }
.booking-page .entry-actions .entry-action { display:flex; width:100%; min-height:70px; padding:18px 26px; border-radius:12px; gap:20px; font-size:clamp(16px,2vw,21px); }
.action-icon { flex:0 0 auto; width:26px; height:26px; vertical-align:middle; }
.action-label { flex:1 1 auto; min-width:0; }
.action-chevron { flex:0 0 auto; width:22px; height:22px; }
.booking-page .entry-actions .secondary { background:#f2f7fb; border-color:#dae5ee; color:#345d7b; }
.booking-page .focused-view { width:100%; max-width:860px; padding:36px 0 56px; }
.booking-page .quiet-back { display:inline-flex; align-items:center; gap:8px; color:#145b94; font-size:16px; margin-bottom:36px; }
.booking-page .focused-view h1 { font-size:clamp(30px,4.6vw,46px); line-height:1.15; letter-spacing:-.035em; color:#102a40; }
.booking-page .focused-view>p { color:#49637d; font-size:18px; line-height:1.65; }
.booking-page .safety-notice { position:relative; margin:28px 0; padding:24px 26px 24px 100px; background:#fff7e9; border:0; border-left:5px solid #ffb329; border-radius:12px; color:#654f45; }
.booking-page .safety-notice::before { content:"!"; position:absolute; left:26px; top:26px; display:grid; place-items:center; width:48px; height:48px; background:#ffd078; border-radius:50%; font-size:29px; font-weight:700; color:#8e3b00; }
.booking-page .safety-notice strong { color:#8e3b00; font-size:18px; }
.booking-page .safety-notice p { margin:8px 0 0; line-height:1.65; }
.booking-page .prebook-device-card { position:relative; padding:28px 28px 24px; margin:28px 0; background:#f7fbff; border:1px solid #deebf6; border-radius:14px; }
.device-card-icon { display:grid; place-items:center; position:absolute; top:28px; left:28px; width:64px; height:64px; border-radius:50%; color:#0662a3; background:#e0f0ff; }
.device-card-icon .action-icon { width:32px; height:32px; }
.prebook-device-card h2,.prebook-device-card>p:not(#bookingDeviceStatus) { margin-left:86px; }
.booking-page .prebook-device-card h2 { margin-top:4px; font-size:clamp(22px,2.8vw,27px); letter-spacing:-.025em; color:#102a40; }
.booking-page .prebook-device-card>p:not(#bookingDeviceStatus) { color:#49637d; font-size:16px; line-height:1.65; }
.booking-page #bookingDeviceCheck { width:100%; min-height:58px; margin:16px 0 0; font-size:17px; gap:16px; }
.booking-page #bookingDeviceStatus { position:relative; margin:22px 0 0; padding:20px 22px 20px 66px; border:0; border-radius:12px; background:#e8f3fc; color:#375f83; font-size:16px; line-height:1.6; }
.booking-page #bookingDeviceStatus::before { content:"i"; position:absolute; top:22px; left:22px; display:grid; place-items:center; width:28px; height:28px; border-radius:50%; background:#1975bc; color:white; font-weight:700; font-family:Georgia,serif; }
/* A completed check is one confirmation card, not a notice nested in a card.
   Keep the icon in normal grid flow so wrapped text cannot overlap it. */
.booking-page .prebook-device-card:has(#bookingDeviceStatus.is-complete) { display:grid; grid-template-columns:44px minmax(0,1fr); column-gap:14px; row-gap:4px; align-items:start; background:#f3f8fe; border-color:#cfdfef; }
.booking-page .prebook-device-card:has(#bookingDeviceStatus.is-complete)>.device-card-icon { position:static; grid-column:1; grid-row:1 / 3; width:44px; height:44px; background:#e0f0ff; color:#0662a3; }
.booking-page .prebook-device-card:has(#bookingDeviceStatus.is-complete)>.device-card-icon .action-icon { display:none; }
.booking-page .prebook-device-card:has(#bookingDeviceStatus.is-complete)>.device-card-icon::before { content:"✓"; font-size:25px; line-height:1; font-weight:700; }
.booking-page .prebook-device-card:has(#bookingDeviceStatus.is-complete)>h2 { grid-column:2; grid-row:1; margin:0; min-height:0; color:#102a40; font-size:18px; line-height:1.4; letter-spacing:normal; }
.booking-page .prebook-device-card:has(#bookingDeviceStatus.is-complete)>#bookingDeviceStatus { grid-column:2; grid-row:2; margin:0; padding:0; border:0; border-radius:0; background:transparent; color:#49637d; font-size:14px; font-weight:400; line-height:1.55; }
.booking-page .prebook-device-card:has(#bookingDeviceStatus.is-complete)>#bookingDeviceStatus::before { content:none; }
.booking-page #suitabilityView>.check { margin:28px 0; gap:18px; font-size:17px; line-height:1.65; align-items:flex-start; }
.booking-page #suitabilityView>.check input { width:24px; height:24px; flex:0 0 24px; margin-top:3px; accent-color:#1c568b; }
.booking-page #continueToSlots { width:100%; min-height:62px; padding:16px 24px; gap:18px; font-size:17px; }
.booking-page #continueToSlots:disabled { opacity:.58; }
.booking-page .booking-recovery-link { display:block; margin:24px auto 0; color:#345d7b; }
:is(.booking-page,.patient-hub-page) :is(.primary,.button-primary) { background:#1c568b; border-color:#1c568b; color:white; }
:is(.booking-page,.patient-hub-page) :is(.primary,.button-primary):hover:not(:disabled) { background:#164674; border-color:#164674; }
:is(.booking-page,.patient-hub-page) :is(.secondary,.button-secondary) { color:#345d7b; border-color:#bdcedd; }
:is(.booking-page,.patient-hub-page) :is(input,select,textarea):not([type=checkbox]):not([type=radio]) { border-radius:9px; border-color:#bdcedd; }
.patient-hub-page .patient-shell { background:#fff; }
.patient-hub-page .workspace-panel { border-color:#dce6ef; border-radius:14px; }
.patient-return-page .tc-policy-page .policy-primary { background:#1c568b; border-color:#1c568b; }
.patient-return-page .tc-policy-page .policy-secondary { color:#345d7b; border-color:#bdcedd; }
.patient-hub-page :is(.hub-card,.video-card,.chat-card,.files-card) { border-radius:14px; border-color:#dce6ef; }
:is(.booking-page,.patient-hub-page,.policy-page,.patient-return-page) .patient-footer { background:#102a40; color:#fff; }
@media(min-width:641px) {
  :is(.booking-page,.patient-hub-page,.policy-page,.patient-return-page) .patient-footer { min-height:78px; padding:16px 32px; gap:20px; }
  .patient-footer nav>span { display:inline-block; width:1px; height:24px; background:#647889; overflow:hidden; color:transparent; }
  .patient-footer .footer-assistance-label { display:block; color:#d4dfe8; }
  .patient-footer nav a { font-size:14px; font-weight:400; }
}
@media(max-width:640px) {
  .booking-page .booking-shell { padding-inline:20px; }
  .booking-page .booking-header { padding:14px 0; }
  :is(.booking-header,.patient-site-header,.policy-site-header) .brand-logo { width:240px; }
  .portal-label { font-size:13px; }
  .booking-page .entry-view { padding:32px 0 40px; }
  .doctor-portrait { width:176px; height:176px; }
  .doctor-profile { margin-bottom:24px; }
  .doctor-label { font-size:14px; }
  .doctor-profile::after { margin-top:24px; }
  .booking-page .entry-actions .entry-action { min-height:64px; padding:14px 16px; gap:12px; }
  .booking-page .focused-view { padding:24px 0 36px; }
  .booking-page .quiet-back { margin-bottom:24px; }
  .booking-page .focused-view>p { font-size:16px; }
  .booking-page .safety-notice { padding:20px 18px 20px 70px; }
  .booking-page .safety-notice::before { left:16px; top:22px; width:36px; height:36px; font-size:24px; }
  .booking-page .prebook-device-card { padding:22px 18px; }
  .device-card-icon { top:22px; left:18px; width:46px; height:46px; }
  .device-card-icon .action-icon { width:26px; height:26px; }
  .prebook-device-card h2 { margin-left:60px; min-height:46px; }
  .prebook-device-card>p:not(#bookingDeviceStatus) { margin-left:0; }
  .booking-page #bookingDeviceStatus { padding:16px 16px 16px 54px; font-size:15px; }
  .booking-page #bookingDeviceStatus::before { top:18px; left:16px; width:24px; height:24px; }
  .booking-page #suitabilityView>.check,.booking-page #continueToSlots { font-size:16px; }
}
@media(prefers-reduced-motion:reduce) {
  :is(.booking-page,.patient-hub-page) :is(button,.button) { transition:none; }
}
@media(forced-colors:active) {
  .doctor-label,.prebook-device-card,.booking-page #bookingDeviceStatus { border:1px solid CanvasText; }
}
@media(max-width:640px){
  .patient-hub-page .patient-footer.has-compact-footer{padding:0 8px env(safe-area-inset-bottom);min-height:44px;gap:0;flex-direction:column;align-items:stretch;}
  .has-compact-footer .patient-footer-compact{display:flex;align-items:center;gap:6px;width:100%;max-width:100%;min-width:0;min-height:44px;font-size:13px;line-height:1.3;white-space:nowrap;}
  .patient-footer-compact .patient-footer-email{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
  .patient-footer-compact a{flex:0 0 auto;white-space:nowrap;}
  .patient-footer-compact button{flex:0 0 44px;width:44px;min-height:44px;margin:0;padding:0;background:transparent;border:0;border-radius:6px;color:#fff;font-size:24px;cursor:pointer;}
  .patient-footer-compact button:focus-visible{outline:2px solid #fff;outline-offset:-4px;}
  .has-compact-footer .patient-footer-compact > :not(button){display:none;}
  .has-compact-footer .patient-footer-compact::before{content:"Policies and assistance";flex:1 1 auto;min-width:0;font-size:14px;font-weight:650;}
  .patient-footer-compact button span{display:inline-block;width:20px;height:20px;font-size:0;vertical-align:middle;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m6 15 6-6 6 6'/%3E%3C/svg%3E") center/contain no-repeat;}
  .footer-expanded .patient-footer-compact button span{transform:rotate(180deg);}
  .has-compact-footer .patient-footer-details:not([hidden]){display:block;padding:8px 8px 12px;border-bottom:1px solid #496071;max-height:40dvh;overflow:auto;}
  .has-compact-footer .patient-footer-details nav{gap:4px 12px;}
  .has-compact-footer .patient-footer-details p{text-align:left;}
}
/* Compact journey refinements. Keep actionable controls >=44px and legal copy readable. */
.booking-page .booking-header { padding:10px 0; }
.booking-page .booking-header .brand-logo { width:280px; }
.booking-page .entry-view { padding:20px 0 24px; }
.doctor-portrait { width:144px; height:144px; }
.doctor-label { margin:-3px auto 8px; padding:3px 14px; font-size:14px; }
.doctor-profile { margin-bottom:14px; }
.doctor-name { margin-bottom:4px; font-size:clamp(22px,2.6vw,30px); }
.doctor-specialty { font-size:clamp(16px,2vw,20px); }
.doctor-profile::after { margin:14px auto 0; }
.booking-page .entry-view h1 { font-size:clamp(32px,4vw,46px); margin:8px 0; }
.booking-page .entry-view .lede { font-size:17px; line-height:1.5; margin:8px auto 16px; max-width:600px; }
.booking-page .entry-actions { margin-top:0; gap:10px; }
.booking-page .entry-actions .entry-action { min-height:54px; padding:12px 20px; font-size:18px; gap:16px; }
.booking-page .entry-actions .secondary { margin-top:0; }
.booking-page #entryView { padding-top:10px; padding-bottom:18px; }
.booking-page #entryView:not([hidden]) { display:flex; flex:1 0 auto; margin-block:0; flex-direction:column; }
.booking-page #entryView> * { flex-shrink:0; }
.booking-page #entryView .entry-actions { margin-bottom:32px; }
.booking-page #entryView .doctor-profile { margin-top:auto; margin-bottom:10px; }
.booking-page .landing-bir-seal { box-sizing:border-box; width:min(480px,100%); margin:auto auto 0; padding:24px 12px 12px; border:0; border-top:1px solid #d5e3f1; border-radius:0; background:#fff; }
.booking-page .landing-bir-seal img { display:block; width:100%; height:auto; max-width:100%; }
@media(min-width:641px) and (min-height:801px) { .booking-page #entryView .doctor-portrait { width:128px; height:128px; } }
.recovery-cycle-icon { width:30px; height:30px; }
.booking-page .focused-view { padding:20px 0 28px; }
.booking-page .quiet-back { margin-bottom:20px; }
.booking-page .focused-view h1 { font-size:clamp(28px,3.5vw,38px); }
.booking-page .section-heading { margin-bottom:14px; }
.booking-page .focused-view>p { font-size:16px; margin:10px 0 16px; }
.booking-page .safety-notice { margin:18px 0; padding:18px 20px 18px 80px; }
.booking-page .safety-notice::before { left:20px; top:20px; width:40px; height:40px; font-size:25px; }
.booking-page .prebook-device-card { margin:18px 0; padding:20px; }
.booking-page .device-card-icon { left:20px; top:20px; width:52px; height:52px; }
.booking-page .prebook-device-card h2,.booking-page .prebook-device-card>p:not(#bookingDeviceStatus) { margin-left:70px; }
.booking-page .prebook-device-card h2 { font-size:23px; }
.booking-page .prebook-device-card>p:not(#bookingDeviceStatus) { margin-top:8px; margin-bottom:12px; }
.booking-page #bookingDeviceCheck { margin-top:6px; min-height:50px; }
.booking-page #bookingDeviceStatus { margin-top:16px; padding-block:16px; }
.booking-page #suitabilityView>.check { margin:18px 0; font-size:16px; }
.booking-page #continueToSlots { min-height:54px; padding:12px 20px; font-size:16px; }
.booking-page .booking-flow { padding-top:20px; padding-bottom:24px; }
.booking-page .booking-flow-heading h1 { font-size:32px; margin-block:6px; }
.booking-page .booking-flow-heading .quiet-back { margin-bottom:12px; }
.booking-page .booking-flow .progress { margin-top:16px; margin-bottom:18px; padding-bottom:14px; }
.booking-page :is(.form-actions,.recovery-navigation) { margin-top:16px; gap:12px; }
.booking-page :is(.booking-option-card,.consent-copy) { margin-top:16px; }
.booking-page .booking-content fieldset { padding-top:16px; }
.booking-page .booking-content label { margin-block:10px; }
.booking-page .slots { margin-bottom:18px; }
.booking-page .booking-recovery-link { margin-top:16px; }
:is(.booking-page,.patient-hub-page,.video-call-page) .modal-card { padding:22px; }
:is(.booking-page,.patient-hub-page,.video-call-page) .modal { max-height:calc(100dvh - 28px); overflow-y:auto; }
:is(.booking-page,.patient-hub-page,.video-call-page) .modal-actions { margin-top:16px; }
.patient-hub-page .patient-site-header { padding-top:max(6px,env(safe-area-inset-top)); }
.patient-hub-page .patient-header-inner { min-height:66px; }
.patient-hub-page .patient-site-header .brand-logo { width:280px; }
.patient-hub-page .appointment-summary { min-height:70px; padding:10px 0; }
.patient-hub-page .appointment-identity h1 { font-size:clamp(20px,2vw,24px); }
.patient-hub-page .consultation-workspace { gap:12px; }
.patient-hub-page .workspace-jumps { margin-bottom:10px; }
.patient-hub-page :is(.hub-status,.panel-heading) { padding:12px 16px; }
.patient-hub-page :is(.action-bar,.hub-follow-through) { padding:10px 16px 12px; }
.patient-hub-page .workspace-safety { margin-block:10px; }
.patient-return-page>.tc-policy-page { flex:1 1 auto; height:auto; min-height:0; max-width:860px; width:100%; overflow-y:auto; padding:0 24px 24px; }
.journey-header { display:flex; position:sticky; top:0; z-index:12; align-items:center; justify-content:space-between; gap:16px; padding:14px 0; margin-bottom:18px; background:#fff; border-bottom:1px solid #dce5ed; }
.journey-header .policy-brand { width:280px; max-width:72%; margin:0; }
.patient-return-page .tc-policy-page .policy-panel { padding:22px; border-color:#dce6ef; box-shadow:0 3px 16px #102a4008; }
.patient-return-page .tc-policy-page .policy-panel h1 { margin:6px 0 12px; font-size:clamp(26px,3vw,34px); color:#102a40; }
.patient-return-page .tc-policy-page .policy-form { gap:14px; margin-top:18px; }
.patient-return-page .tc-policy-page .policy-form label { margin:0; }
.patient-return-page .tc-policy-page .policy-info { padding:12px 16px; }
.patient-return-page .tc-policy-page .policy-actions { gap:10px; }
.patient-return-page .tc-policy-page .policy-primary,.patient-return-page .tc-policy-page .policy-secondary { min-height:46px; border-radius:10px; }
.patient-return-page>.shell { width:min(960px,100%); min-height:0; padding:20px 24px 24px; }
.patient-return-page>.shell .brand-logo { width:280px; }
.patient-return-page>.shell :is(.card,.status) { margin-top:18px; }
.patient-return-page>.shell .card { padding:22px; }
.patient-return-page>.shell .button-primary { background:#1c568b; border-color:#1c568b; }
.policy-page .policy-site-header { padding:12px 24px; }
.policy-page .policy-site-header .brand-logo { width:280px; }
.policy-page .policy-shell { padding:24px 24px 16px; }
.policy-page .policy-intro { margin-bottom:22px; }
.policy-page .policy-layout { gap:28px; }
.policy-page .policy-content section { margin-bottom:24px; }
.video-call-page { --navy:#1c568b; --navy-hover:#164674; background:#fff; font-family:"Segoe UI",Roboto,Arial,sans-serif; }
.video-call-page .video-home { gap:16px; justify-content:space-between; }
.video-call-page .video-call-shell { padding:16px; }
.video-call-page .video-call-shell:has(iframe) { padding:0; }
:is(.booking-page,.patient-hub-page,.patient-return-page,.policy-page) .patient-footer { padding-block:10px; min-height:58px; }
@media(max-height:800px) {
  .booking-page .entry-view { padding:12px 0 16px; }
  .doctor-portrait { width:112px; height:112px; }
  .doctor-name { font-size:26px; }
  .doctor-specialty { font-size:18px; }
  .doctor-profile::after { margin-top:10px; }
  .doctor-profile { margin-bottom:10px; }
  .booking-page .entry-view h1 { font-size:38px; }
  .booking-page .entry-view .lede { margin-bottom:12px; }
  .booking-page .entry-actions .entry-action { min-height:50px; padding-block:10px; font-size:17px; }
}
@media(max-width:640px) {
  .booking-page .booking-shell { padding-inline:18px; }
  .booking-page .booking-header .brand-logo { width:220px; }
  .booking-page .entry-view { padding:14px 0 20px; }
  .doctor-portrait { width:112px; height:112px; }
  .doctor-name { font-size:23px; }
  .doctor-specialty { font-size:17px; }
  .booking-page .entry-view h1 { font-size:34px; }
  .booking-page .entry-actions .entry-action { font-size:16px; min-height:54px; gap:12px; padding:10px 14px; }
  .booking-page .prebook-device-card { padding:18px; }
  .booking-page .device-card-icon { left:18px; top:18px; width:44px; height:44px; }
  .booking-page .prebook-device-card h2 { margin-left:58px; font-size:21px; }
  .booking-page .prebook-device-card>p:not(#bookingDeviceStatus) { margin-left:0; }
  .patient-hub-page .patient-site-header .brand-logo { width:220px; }
  .patient-return-page>.tc-policy-page { padding-inline:16px; }
  .patient-return-page .tc-policy-page .policy-panel { padding:18px; }
  .journey-header .policy-brand { width:220px; }
  .policy-page .policy-layout { gap:18px; }
  .policy-page .policy-shell { padding:18px 20px; }
  .patient-hub-page .patient-footer.has-compact-footer { min-height:44px; padding:0 8px env(safe-area-inset-bottom); }
}
@media(max-height:650px) and (min-width:641px) {
  .doctor-portrait { width:80px; height:80px; }
  .doctor-label { margin-bottom:5px; }
  .doctor-name { font-size:24px; }
  .doctor-profile::after { margin-top:6px; }
  .booking-page .entry-view h1 { font-size:34px; }
  .booking-page .entry-view .lede { margin-block:6px 10px; font-size:16px; }
}
@media print { .journey-header { position:static; } }
/* Patient journey reference design, 20261002-r1.
   Content-only selectors: the installed header/footer and their mobile disclosure
   intentionally remain untouched. Icons are decorative, never status authority. */
.booking-page :is(.booking-flow,.recovery-view,.focused-view),
.patient-hub-page .patient-shell,
.patient-return-page :is(.policy-panel,.card),
.policy-page :is(.policy-intro,.policy-layout),
.video-call-page .video-call-shell,
:is(.booking-page,.patient-hub-page,.video-call-page) .modal {
  --journey-ink:#102744; --journey-muted:#526b8c; --journey-line:#d5e3f1;
  --journey-wash:#f3f8fd; --journey-blue:#185d97;
}
.booking-page :is(.booking-flow,.recovery-view) :is(h1,h2,h3),
.patient-hub-page .patient-shell :is(h1,h2,h3),
.patient-return-page :is(.policy-panel,.card) :is(h1,h2,h3),
.policy-page .policy-content :is(h1,h2,h3),.video-call-shell h1,
:is(.booking-page,.patient-hub-page,.video-call-page) .modal h2 { color:var(--journey-ink); letter-spacing:-.025em; line-height:1.2; }
.booking-page .booking-flow-heading h1 { font-size:clamp(30px,3.4vw,42px); }
.booking-page .booking-content h2 { font-size:clamp(26px,2.6vw,34px); margin:6px 0 16px; }
.booking-page :is(.eyebrow,.policy-eyebrow),.patient-return-page .policy-panel .policy-eyebrow { letter-spacing:.17em; font-size:12px; color:#486791; }
.booking-page .booking-content { border:1px solid var(--journey-line); border-radius:14px; padding:26px; background:#fff; box-shadow:0 3px 18px #183f6605; }
.booking-page .booking-content fieldset { padding:0; }
.booking-page .booking-content :is(.lede,.muted,.reservation-disclaimer,.verification-note) { color:var(--journey-muted); line-height:1.55; }
.booking-page .booking-flow .progress { position:relative; border:0; gap:20px; padding-bottom:0; margin:20px 0 24px; }
.booking-page .progress li { position:relative; min-width:0; gap:12px; align-items:center; color:var(--journey-muted); font-size:15px; }
.booking-page .progress li:not(:last-child)::after { content:""; position:absolute; height:1px; background:var(--journey-line); left:calc(100% - 10px); right:-10px; top:20px; }
.booking-page .progress li span { flex:0 0 40px; width:40px; height:40px; border:1px solid #a9bfda; border-radius:50%; background:#f7faff; color:#486791; font-size:18px; font-weight:600; }
.booking-page .progress li[aria-current=step] { color:#125b96; font-weight:600; }
.booking-page .progress li[aria-current=step] span { background:linear-gradient(135deg,#21689f,#145284); color:white; border-color:#175c94; box-shadow:0 2px 5px #185d9718; }
.booking-page .progress li.complete span { color:#176d63; border-color:#8bbbae; background:#edf8f3; }
.booking-page .schedule-heading-row { align-items:center; gap:24px; }
.booking-page .schedule-date { margin:0; }
.booking-page .slot-day { margin-top:24px; }
.booking-page .slot-day h3 { font-size:18px; margin-bottom:14px; }
.booking-page .slot { border:1px solid var(--journey-line); background:#f8fbfe; border-radius:10px; min-height:58px; padding:14px 16px; }
.booking-page .slot:has(input:checked) { border-color:#1b629a; background:#edf6ff; box-shadow:0 0 0 1px #1b629a; }
.booking-page #slotsStatus { text-align:left; background:var(--journey-wash); border:1px solid var(--journey-line); color:var(--journey-ink); border-radius:12px; padding:22px 22px 22px 76px; position:relative; font-weight:600; line-height:1.55; }
.booking-page #slotsStatus::before,.patient-hub-page #consultWindow::before,
.patient-hub-page .panel-heading::before,.patient-hub-page .hub-status::before,
.booking-page #verificationSendPrompt::before {
  content:""; position:absolute; width:44px; height:44px; border-radius:50%; background-color:#e0f0fc;
  background-position:center; background-repeat:no-repeat; background-size:26px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23185d97' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='16' rx='2'/%3E%3Cpath d='M8 3v4m8-4v4M4 10h16M8 14h1m4 0h1m-6 4h1m4 0h1'/%3E%3C/svg%3E");
}
.booking-page #slotsStatus::before { top:20px; left:18px; }
.booking-page .form-actions { border-top:1px solid var(--journey-line); padding-top:20px; align-items:center; }
.booking-page #schedulePanel .form-actions>p { position:relative; padding-left:44px; max-width:550px; color:var(--journey-muted); font-size:14px; line-height:1.55; }
.booking-page #schedulePanel .form-actions>p::before { content:"i"; position:absolute; left:0; top:2px; width:30px; height:30px; display:grid; place-items:center; border-radius:50%; color:#185d97; background:#e0f0fc; font-size:21px; font-weight:700; font-family:Georgia,serif; }
.booking-page :is(.booking-content,.recovery-view,.focused-view) :is(input,select,textarea):not([type=checkbox]):not([type=radio]),
.patient-hub-page .patient-shell :is(input,select,textarea):not([type=checkbox]):not([type=radio]),
.patient-return-page .policy-panel :is(input,select,textarea):not([type=checkbox]):not([type=radio]) { border:1px solid #aabfd6; border-radius:9px; min-height:46px; background:#fff; color:#102744; font-size:16px; padding:11px 14px; }
.booking-page .booking-content label { color:var(--journey-ink); font-size:15px; }
.booking-page :is(.booking-option-card,.consent-copy,.payment-summary,.review-list) { border:1px solid var(--journey-line); border-radius:10px; background:var(--journey-wash); padding:18px; }
.booking-page .review-list { margin:10px 0 20px; }
.booking-page .review-list>div { border-bottom:1px solid var(--journey-line); padding:10px 0; }
.booking-page .review-list>div:last-child { border-bottom:0; }
.booking-page .review-list dt { color:var(--journey-muted); }
.booking-page .review-title { align-items:center; gap:12px; }
.booking-page #verificationSendPrompt { position:relative; padding:20px 20px 20px 82px; border-radius:10px; background:#eff7fd; color:var(--journey-muted); margin:18px 0 14px; overflow-wrap:anywhere; }
.booking-page #verificationSendPrompt::before { left:18px; top:16px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23185d97' stroke-width='1.8' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 6 9 7 9-7'/%3E%3C/svg%3E"); }
.booking-page #verificationDestination { display:block; margin-top:5px; color:var(--journey-ink); font-size:20px; }
.booking-page #emailCodeEntry,.booking-page #recoveryCodeEntry { padding:20px; background:var(--journey-wash); border:1px solid var(--journey-line); border-radius:10px; margin-top:18px; }
.booking-page :is(#emailSendCode,#emailVerifyCode,#recoveryVerifyCode) { width:100%; }
.booking-page .verification-code { width:100%; font-size:22px; letter-spacing:.12em; }
.booking-page .verification-resend { border-top:1px solid var(--journey-line); margin-top:18px; padding-top:14px; align-items:center; gap:12px; color:var(--journey-muted); }
.booking-page .verification-success { padding:18px; background:#edf8f3; border:1px solid #b3d7c7; border-radius:10px; }
.booking-page #emailVerificationStatus:not(:empty) { padding:14px 16px; border-left:3px solid #3c80b5; background:#eff7fd; border-radius:6px; line-height:1.55; }
.booking-page :is(#recoveryChoices,#recoveryConfirm) { border-radius:12px; border-color:var(--journey-line); }
.patient-hub-page #consultWindow { position:relative; padding:18px 22px 18px 84px; margin-bottom:16px; border:1px solid #c8def1; border-radius:12px; background:#f2f8fd; }
.patient-hub-page #consultWindow::before { left:20px; top:50%; transform:translateY(-50%); }
.patient-hub-page #consultWindow .consult-window-clock { color:#102744; font-size:clamp(21px,2.2vw,28px); border-left:1px solid #caddec; padding-left:24px; }
.patient-hub-page #consultWindow :is(.consult-window-meta,.consult-window-detail) { color:#526b8c; }
.patient-hub-page #consultWindow.consult-window-compact { display:block; }
.patient-hub-page #consultWindow.consult-window-compact::before { top:28px; transform:none; }
.consult-window-compact details { width:100%; }
.consult-window-compact summary { display:flex; align-items:center; gap:18px; list-style:none; cursor:pointer; min-height:44px; }
.consult-window-compact summary::-webkit-details-marker { display:none; }
.consult-window-compact summary>div { flex:1; min-width:0; }
.consult-window-compact summary:focus-visible { outline:3px solid #77b6d3; outline-offset:5px; border-radius:4px; }
.consult-window-chevron { flex:0 0 10px; width:10px; height:10px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(45deg); margin:0 3px 5px; }
.consult-window-compact details[open] .consult-window-chevron { transform:rotate(225deg); margin-top:5px; margin-bottom:0; }
@media(max-width:560px) { .consult-window-compact summary { flex-wrap:wrap; gap:12px; }.consult-window-compact summary>div { flex-basis:100%; }.consult-window-compact .consult-window-chevron { margin-left:auto; } }
.patient-hub-page #consultWindow[data-phase=closed] { background:#f4f7fa; border-color:#d9e3ed; }
.patient-hub-page #consultWindow[data-phase=delayed] { background:#fff8e9; border-color:#efcf86; }
.patient-hub-page .appointment-summary { gap:20px; padding:12px 0 18px; }
.patient-hub-page .appointment-identity h1 { font-size:clamp(22px,2.3vw,30px); overflow-wrap:anywhere; }
.patient-hub-page .appointment-identity p { color:#526b8c; }
.patient-hub-page .workspace-panel { border:1px solid var(--journey-line); border-radius:12px; background:#fff; box-shadow:none; }
.patient-hub-page .consultation-workspace { gap:16px; grid-template-columns:minmax(0,1fr) minmax(300px,34%); }
.patient-hub-page .consultation-workspace:not(.has-chat) { grid-template-columns:minmax(0,1fr); }
.patient-hub-page .hub-status { position:relative; padding:24px 24px 10px 90px; }
.patient-hub-page .hub-status::before { left:24px; top:24px; width:48px; height:48px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23185d97' stroke-width='1.8' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='12' height='12' rx='2'/%3E%3Cpath d='m15 10 6-3v10l-6-3'/%3E%3C/svg%3E"); }
.patient-hub-page .hub-status h2 { font-size:clamp(23px,2vw,28px); margin-bottom:10px; }
.patient-hub-page .hub-status .lede { font-size:16px; line-height:1.6; color:#526b8c; }
.patient-hub-page .hub-status.tone-complete::before { background-color:#e0f5eb; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23176d63' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M14 3H5v18h14V8zM14 3v5h5M8 12h8m-8 4 2 2 5-5'/%3E%3C/svg%3E"); }
.patient-hub-page .hub-status:is(.tone-confirmed,.tone-closed,.tone-expired,.tone-cancelled)::before { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23185d97' stroke-width='1.8' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12 3 3 5-6'/%3E%3C/svg%3E"); }
.patient-hub-page :is(.action-bar,.hub-follow-through) { padding:10px 24px 22px 90px; gap:12px; }
.patient-hub-page .hub-follow-through:empty,.patient-hub-page .action-bar:empty { padding:0; }
.patient-hub-page .tone-complete :is(.hub-status,.hub-follow-through) { background:#f5faff; }
.patient-hub-page .hub-follow-through a[href*='book=1']:not(:first-child) { color:#185d97; background:#f4f9ff; border-color:#b9d2e8; box-shadow:none; }
.patient-hub-page .panel-heading { position:relative; padding:20px 20px 18px 80px; border-bottom:1px solid var(--journey-line); gap:16px; }
.patient-hub-page .panel-heading::before { left:20px; top:20px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23185d97' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M14 3H5v18h14V8zM14 3v5h5M8 12h8m-8 4h8'/%3E%3C/svg%3E"); }
.patient-hub-page #chatPanel .panel-heading::before { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23185d97' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M21 11a9 9 0 0 1-9 9 10 10 0 0 1-4-1l-5 2 2-5a9 9 0 1 1 16-5Z'/%3E%3C/svg%3E"); }
.patient-hub-page .panel-heading h2 { font-size:21px; }
.patient-hub-page .panel-heading p { color:#526b8c; line-height:1.55; }
.patient-hub-page :is(.temporary-file-list,.doctor-document-list) { padding:16px 20px; }
.patient-hub-page #doctorDocumentsPanel>.panel-heading { border-bottom:0; }
.patient-hub-page #doctorDocumentList>li:first-child { border-top:0; }
.patient-hub-page #doctorDocumentsDeadline:not(:empty) { max-width:none; border-top:1px solid var(--journey-line); padding-top:16px; }
.patient-hub-page #doctorDocumentList>li:has(>.file-download-feedback) { display:grid; grid-template-columns:minmax(0,1fr) auto; }
.patient-hub-page :is(#doctorDocumentList,#temporaryFileList)>li>.file-download-feedback { grid-column:1 / -1; display:flex; align-items:flex-start; gap:8px; margin:0; padding:10px 12px; border:1px solid var(--journey-line); border-radius:8px; background:var(--journey-wash); color:var(--journey-blue); font-size:13px; line-height:1.5; overflow-wrap:anywhere; }
.patient-hub-page .file-download-feedback::before { content:""; flex:0 0 18px; width:18px; height:18px; margin-top:1px; background:currentColor; mask:var(--icon-info) center/contain no-repeat; }
.patient-hub-page :is(#doctorDocumentList,#temporaryFileList)>li>.file-download-feedback.is-error { color:#8a332b; background:#fff4f2; border-color:#e6c5c1; }
.patient-hub-page .temporary-file-list .empty-state { background:#f9fbfe; border:1px dashed #c4d8ee; border-radius:8px; color:#7186a2; padding:22px; text-align:center; }
.patient-hub-page .temporary-chat-messages { background:linear-gradient(#f9fbfe,#fff); min-height:220px; }
.patient-hub-page .temporary-chat-messages .empty-state { border:0; color:#7186a2; background:transparent; padding:46px 12px; }
.patient-hub-page .temporary-chat-form { border-top:1px solid var(--journey-line); background:#fff; padding:18px; }
.patient-hub-page .temporary-chat-form .temporary-note { color:#526b8c; font-size:13px; line-height:1.55; }
.patient-hub-page .inline-notice { border-radius:10px; padding:18px 20px; line-height:1.55; }
.patient-hub-page .refund-claim-notice { background:#eff7fd; border:1px solid #c8def1; color:#345578; }
.patient-hub-page .refund-claim-notice h3 { font-size:23px; margin:0 0 8px; }
.patient-hub-page .refund-claim-list li { border-top:1px solid #caddec; padding-top:14px; align-items:center; gap:20px; }
.patient-hub-page .refund-claim-list strong { color:#102744; font-size:22px; }
.patient-hub-page .workspace-safety { color:#526b8c; font-size:14px; }
.patient-hub-page :is(.action-bar,.hub-follow-through,.refund-claim-list)>.button-primary::after,
.patient-hub-page .refund-claim-list .button-primary::after { content:"→"; display:inline-block; margin-left:16px; font-size:21px; line-height:1; }
.patient-hub-page :is(.action-bar,.hub-follow-through,.refund-claim-list) .button-primary[aria-busy=true]::after { display:none; }
.patient-hub-page #addFileButton { padding-left:42px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23185d97' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M7 18H5a4 4 0 0 1-1-8 7 7 0 0 1 13-2 5 5 0 0 1 2 10h-2M12 21V11m-4 4 4-4 4 4'/%3E%3C/svg%3E"); background-size:22px; background-position:14px center; background-repeat:no-repeat; }
.patient-return-page .tc-policy-page .policy-panel,.patient-return-page>.shell>.card { border:1px solid #d5e3f1; background:#fff; border-radius:14px; padding:26px; box-shadow:none; }
.patient-return-page .policy-panel :is(.policy-info,.policy-summary,details),.patient-return-page>.shell>.card .status { background:#f3f8fd; border:1px solid #d5e3f1; border-radius:10px; padding:18px; }
.patient-return-page .policy-panel :is(.policy-check,.policy-meta) { line-height:1.55; }
.patient-return-page .policy-panel .policy-summary { margin:18px 0; }
.policy-page .policy-content { color:#345578; line-height:1.65; }
.policy-page .policy-content section { padding:20px; border:1px solid #d5e3f1; border-radius:12px; background:#fff; }
.policy-page .policy-toc { border:1px solid #d5e3f1; border-radius:12px; background:#f5f9fd; padding:18px; }
.video-call-page .video-call-shell:not(:has(iframe)) { padding:24px; color:#526b8c; background:#f5f9fd; }
.video-call-page.patient-video-embed>.video-home,.video-call-page.patient-video-embed>.patient-footer { display:none; }
.video-call-page.patient-video-embed .video-call-shell { width:100%; padding:0; }
:is(.booking-page,.patient-hub-page,.video-call-page) .modal { border:1px solid #c9daeb; border-radius:14px; box-shadow:0 20px 70px #10274430; }
:is(.booking-page,.patient-hub-page,.video-call-page) .modal::backdrop { background:#10274488; }
:is(.booking-page,.patient-hub-page,.video-call-page) .modal-card { padding:24px; }
/* The device dialog and its card form one panel, not two nested borders. */
.booking-page .modal.device-check-dialog { border:0; }
.booking-page .device-check-dialog>.modal-card { border-radius:inherit; }
:is(.booking-page,.patient-hub-page,.video-call-page) .modal :is(input,select,textarea):not([type=checkbox]):not([type=radio]) { border-radius:8px; border-color:#aabfd6; }
.booking-page :is(.entry-view,.focused-view,.booking-flow,.modal) :is(.primary,.button-primary),
.patient-hub-page :is(.patient-shell,.modal) :is(.primary,.button-primary),
.patient-return-page .policy-panel .policy-primary,.patient-return-page>.shell>.card .button-primary,
.video-call-page :is(.video-call-shell,.modal) .primary { background:linear-gradient(110deg,#22699f,#14558d); border:1px solid #175b95; color:#fff; border-radius:9px; min-height:46px; padding:12px 20px; font-size:16px; font-weight:600; box-shadow:0 4px 10px #185d9712; }
.booking-page :is(.entry-view,.focused-view,.booking-flow,.modal) :is(.secondary,.button-secondary),
.patient-hub-page :is(.patient-shell,.modal) :is(.secondary,.button-secondary),
.patient-return-page .policy-panel .policy-secondary,.video-call-page .modal .secondary { background:#fff; border:1px solid #aabfd6; color:#345b83; border-radius:9px; min-height:44px; padding:11px 18px; font-size:15px; font-weight:600; }
.booking-page :is(.focused-view,.booking-flow,.modal) :is(.primary,.button-primary):disabled,
.patient-hub-page :is(.patient-shell,.modal) :is(.primary,.button-primary):disabled,
.patient-return-page .policy-panel .policy-primary:disabled { background:#90a9c2; border-color:#90a9c2; color:#fff; box-shadow:none; opacity:1; cursor:not-allowed; }
.booking-page :is(.focused-view,.booking-flow,.modal) :is(button,a,input,select,textarea):focus-visible,
.patient-hub-page :is(.patient-shell,.modal) :is(button,a,input,select,textarea):focus-visible,
.patient-return-page .policy-panel :is(button,a,input,select,textarea):focus-visible { outline:3px solid #2c7db9; outline-offset:3px; }
@media(max-width:800px) {
  .patient-hub-page .consultation-workspace { grid-template-columns:minmax(0,1fr); grid-template-areas:"stage" "chat" "files"; }
  .booking-page .booking-content { padding:20px; }
  .booking-page .progress li { gap:8px; font-size:13px; }
}
@media(max-width:480px) {
  .booking-page .booking-content { padding:18px 14px; }
  .booking-page .booking-flow .progress { gap:10px; margin-block:16px; }
  .booking-page .progress li { flex-direction:column; text-align:center; gap:6px; font-size:12px; }
  .booking-page .progress li span { flex-basis:32px; width:32px; height:32px; font-size:16px; }
  .booking-page .progress li:not(:last-child)::after { top:16px; }
  .booking-page .schedule-heading-row { display:block; }
  .booking-page .schedule-date { width:100%; max-width:none; margin-top:16px; }
  .booking-page :is(#emailCodeEntry,#recoveryCodeEntry,.consent-copy,.booking-option-card,.payment-summary,.review-list) { padding:14px; }
  .booking-page #verificationDestination { font-size:17px; }
  .booking-page .form-actions { align-items:stretch; }
  .booking-page .form-actions>button { width:100%; }
  .patient-hub-page #consultWindow { padding:16px 16px 16px 72px; gap:12px; }
  .patient-hub-page #consultWindow::before { left:14px; top:18px; transform:none; width:42px; height:42px; }
  .patient-hub-page #consultWindow .consult-window-clock { border-left:0; padding-left:0; font-size:21px; }
  .patient-hub-page .hub-status { padding:20px 16px 8px 74px; }
  .patient-hub-page .hub-status::before { left:16px; top:20px; width:42px; height:42px; }
  .patient-hub-page .hub-status h2 { font-size:22px; }
  .patient-hub-page .hub-status .lede { font-size:15px; }
  .patient-hub-page :is(.action-bar,.hub-follow-through) { padding:12px 16px 20px; }
  .patient-hub-page :is(.action-bar,.hub-follow-through)>.button { flex:1 1 auto; }
  .patient-hub-page .panel-heading { padding:18px 14px 16px 68px; gap:12px; }
  .patient-hub-page .panel-heading::before { left:14px; top:18px; width:40px; height:40px; }
  .patient-hub-page .panel-heading h2 { font-size:20px; }
  .patient-hub-page .panel-heading p { font-size:14px; }
  .patient-return-page .tc-policy-page .policy-panel,.patient-return-page>.shell>.card { padding:18px; }
  :is(.booking-page,.patient-hub-page,.video-call-page) .modal-card { padding:18px; }
  .policy-page .policy-content section { padding:16px; }
}
@media(prefers-reduced-motion:reduce) {
  .booking-page :is(.focused-view,.booking-flow,.modal) *,
  .patient-hub-page :is(.patient-shell,.modal) * { scroll-behavior:auto; }
}
@media(forced-colors:active) {
  .booking-page .booking-content,.patient-hub-page .workspace-panel { border-color:CanvasText; }
  .booking-page .progress li[aria-current=step] span { outline:2px solid Highlight; }
}

/* Reference fidelity correction. Content-only; no header/footer selectors. */
.booking-page :is(.entry-view,.focused-view,.booking-flow,.modal),.patient-hub-page :is(.patient-shell,.modal),.patient-return-page :is(.policy-panel,.card),.video-call-page :is(.video-call-shell,.modal),.policy-page :is(.policy-intro,.policy-layout) {
  --icon-mail:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'1.8'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Crect%20x%3D'3'%20y%3D'5'%20width%3D'18'%20height%3D'14'%20rx%3D'2'%2F%3E%3Cpath%20d%3D'm3%206%209%207%209-7'%2F%3E%3C%2Fsvg%3E");
  --icon-clock:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'1.8'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Ccircle%20cx%3D'12'%20cy%3D'12'%20r%3D'9'%2F%3E%3Cpath%20d%3D'M12%206v6l4%202'%2F%3E%3C%2Fsvg%3E");
  --icon-calendar:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'1.8'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Crect%20x%3D'3'%20y%3D'5'%20width%3D'18'%20height%3D'16'%20rx%3D'2'%2F%3E%3Cpath%20d%3D'M7%203v4m10-4v4M3%2010h18M7%2014h2m4%200h2m-8%204h2m4%200h2'%2F%3E%3C%2Fsvg%3E");
  --icon-video:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'1.8'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Crect%20x%3D'3'%20y%3D'6'%20width%3D'12'%20height%3D'12'%20rx%3D'2'%2F%3E%3Cpath%20d%3D'm15%2010%206-3v10l-6-3'%2F%3E%3C%2Fsvg%3E");
  --icon-home:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'1.8'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'm3%2010%209-7%209%207M5%209v12h5v-7h4v7h5V9'%2F%3E%3C%2Fsvg%3E");
  --icon-refresh:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'1.8'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M20%208a8%208%200%200%200-14-3L3%208m0-5v5h5M4%2016a8%208%200%200%200%2014%203l3-3m0%205v-5h-5'%2F%3E%3C%2Fsvg%3E");
  --icon-info:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'1.8'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Ccircle%20cx%3D'12'%20cy%3D'12'%20r%3D'9'%2F%3E%3Cpath%20d%3D'M12%2011v6m0-10v.2'%2F%3E%3C%2Fsvg%3E");
  --icon-chat:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'1.8'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M19%2016a8%208%200%201%200-12%202l-4%203%206-1a8%208%200%200%200%2010-4Z'%2F%3E%3Cpath%20d%3D'M20%209a7%207%200%200%201%201%2011l2%203-5-1'%2F%3E%3C%2Fsvg%3E");
  --icon-document:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'1.8'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M14%203H5v18h14V8zM14%203v5h5M8%2012h8m-8%204h8'%2F%3E%3C%2Fsvg%3E");
  --icon-upload:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'1.8'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M7%2018H5a4%204%200%200%201-1-8%207%207%200%200%201%2013-2%205%205%200%200%201%202%2010h-2M12%2021V11m-4%204%204-4%204%204'%2F%3E%3C%2Fsvg%3E");
  --icon-lock:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'1.8'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Crect%20x%3D'5'%20y%3D'10'%20width%3D'14'%20height%3D'11'%20rx%3D'2'%2F%3E%3Cpath%20d%3D'M8%2010V7a4%204%200%200%201%208%200v3m-4%205v2'%2F%3E%3C%2Fsvg%3E");
}
/* Keep an opaque underlay on BOTH hover endpoints. Do not transition between
   transparent gradient backgrounds and solid colors (the white-flash cause). */
.booking-page :is(.entry-view,.focused-view,.booking-flow,.modal) :is(.primary,.button-primary),
.patient-hub-page :is(.patient-shell,.modal) :is(.primary,.button-primary),
.patient-return-page .policy-panel .policy-primary,.patient-return-page>.shell>.card .button-primary,
.video-call-page :is(.video-call-shell,.modal) :is(.primary,.button-primary) {
  background-color:#185d97; background-image:linear-gradient(110deg,#246ba4,#15558e);
  color:#fff; border-color:#185d97; transition:filter 140ms ease,box-shadow 140ms ease; filter:brightness(1);
}
.booking-page :is(.entry-view,.focused-view,.booking-flow,.modal) :is(.primary,.button-primary):is(:hover,:focus-visible,:active):not(:disabled),
.patient-hub-page :is(.patient-shell,.modal) :is(.primary,.button-primary):is(:hover,:focus-visible,:active):not(:disabled),
.patient-return-page .policy-panel .policy-primary:is(:hover,:focus-visible,:active):not(:disabled),
.patient-return-page>.shell>.card .button-primary:is(:hover,:focus-visible,:active),
.video-call-page :is(.video-call-shell,.modal) :is(.primary,.button-primary):is(:hover,:focus-visible,:active):not(:disabled) {
  background-color:#185d97; background-image:linear-gradient(110deg,#246ba4,#15558e); color:#fff; border-color:#185d97; filter:brightness(.88);
}
.booking-page :is(.focused-view,.booking-flow,.modal) :is(.primary,.button-primary):disabled,
.patient-hub-page :is(.patient-shell,.modal) :is(.primary,.button-primary):disabled,
.patient-return-page .policy-panel .policy-primary:disabled { background-color:#92abc4; background-image:none; filter:none; }
.booking-page .booking-flow { max-width:1120px; width:100%; }
.booking-page .booking-flow-heading h1 { font-size:clamp(32px,3.5vw,46px); }
.booking-page .booking-content { padding:30px 34px; }
.booking-page .booking-content h2 { font-size:clamp(28px,3vw,38px); }
.booking-page .booking-content .section-heading>p.muted { font-size:17px; line-height:1.55; }
.booking-page .booking-flow .progress { margin:24px 0 28px; gap:28px; }
.booking-page .progress li { font-size:16px; font-weight:500; }
.booking-page .progress li.is-current { font-weight:650; color:#155b98; }
.booking-page .progress li.is-complete { color:#176d63; }
.booking-page .progress li.is-complete span { background:#edf8f3; border-color:#8bbbae; color:#176d63; }
.booking-page .progress li:not(:last-child)::after { display:block; width:auto; margin:0; left:calc(100% - 8px); right:-20px; }
:is(.booking-page .booking-flow, :where(#followSchedulePicker)) .slot-times { grid-template-columns:repeat(3,minmax(0,1fr)); }
:is(.booking-page .booking-flow, :where(#followSchedulePicker)) .slot-times .slot { display:flex; align-items:center; justify-content:flex-start; gap:16px; padding:18px; min-height:64px; background:#f7fbff; border-color:#c9def2; font-size:17px; }
:is(.booking-page .booking-flow, :where(#followSchedulePicker)) .slot-times .slot input { width:21px; height:21px; }
:is(.booking-page .booking-flow, :where(#followSchedulePicker)) .slot-times .slot:has(input:checked) { background:#eaf4ff; border-color:#1e669f; color:#102744; box-shadow:0 0 0 1px #1e669f; }
:is(.booking-page .booking-flow, :where(#followSchedulePicker)) .slot-times .slot:hover { background:#edf6ff; }
@media(max-width:560px) { #followSchedulePicker .slot-times { grid-template-columns:repeat(2,minmax(0,1fr)); } #followSchedulePicker .slot-times .slot { padding:12px; font-size:15px; gap:10px; } }
.booking-page #verificationSendPrompt { padding:22px 24px 22px 104px; background:#eff7fd; border:0; min-height:98px; display:flex; flex-direction:column; justify-content:center; font-size:12px; font-weight:600; letter-spacing:.15em; text-transform:uppercase; }
.booking-page #verificationSendPrompt::before { width:62px; height:62px; left:20px; top:18px; background-size:30px; }
.booking-page #verificationDestination { font-size:23px; font-weight:650; letter-spacing:-.02em; text-transform:none; margin-top:6px; }
.booking-page #emailSendCode { min-height:58px; font-size:18px; gap:18px; }
.booking-page #emailSendCode:not([aria-busy=true]):not([data-ui-pending=true])::before,
.booking-page #recoverySend:not([aria-busy=true]):not([data-ui-pending=true])::before {
  content:""; width:26px; height:26px; flex:0 0 26px; background:currentColor; mask:var(--icon-mail) center/contain no-repeat;
}
.booking-page #emailVerifyCode { min-height:58px; font-size:18px; }
.booking-page #emailCodeEntry,.booking-page #recoveryCodeEntry { padding:24px; }
.booking-page #emailCodeEntry input,.booking-page #recoveryCodeEntry input { width:100%; max-width:none; min-height:54px; font-size:22px; }
.booking-page #emailCodeEntry label { font-weight:600; }
.booking-page #emailCodeValidity,.booking-page #recoveryCodeValidity { display:flex; align-items:center; gap:14px; color:#345b83; }
.booking-page :is(#emailCodeValidity,#recoveryCodeValidity)::before { content:""; flex:0 0 24px; width:24px; height:24px; background:#185d97; mask:var(--icon-clock) center/contain no-repeat; }
.booking-page #emailVerificationStatus:not(:empty) { position:relative; border:0; border-top:1px solid #d5e3f1; margin-top:22px; padding:22px 20px 22px 76px; background:#f5faff; font-size:16px; }
.booking-page #emailVerificationStatus:not(:empty)::before { content:"i"; display:grid; place-items:center; position:absolute; left:20px; top:20px; width:36px; height:36px; border:10px solid #e0f0ff; box-sizing:content-box; border-radius:50%; color:white; background:#247eb8; font-family:Georgia,serif; font-size:23px; font-weight:700; }
.booking-page #confirmationPanel .form-actions { margin-top:26px; }
.booking-page #confirmationPanel>.muted { font-size:15px; color:#526b8c; }
.booking-page #reloadSlots:not([aria-busy=true])::before,.booking-page #retryRecoverySetup:not([aria-busy=true])::before { content:""; width:25px; height:25px; background:currentColor; mask:var(--icon-refresh) center/contain no-repeat; }
.booking-page #schedulePanel>#slots { margin-bottom:0; }
.booking-page #schedulePanel>#slots:empty { margin:0; }
.booking-page #schedulePanel>#reloadSlots { margin:24px 0 12px; }
.patient-hub-page .hub-status .lede { max-width:none; }
.patient-hub-page .hub-status.tone-ready { padding-right:280px; min-height:112px; }
.patient-hub-page .hub-status.tone-ready::after { content:""; position:absolute; right:20px; top:30px; width:230px; height:150px; background:center/contain no-repeat url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20300%20180'%3E%3Cellipse%20cx%3D'160'%20cy%3D'93'%20rx%3D'129'%20ry%3D'70'%20fill%3D'%23f2f8fd'%2F%3E%3Crect%20x%3D'57'%20y%3D'19'%20width%3D'191'%20height%3D'129'%20rx%3D'7'%20fill%3D'%23387db4'%2F%3E%3Crect%20x%3D'66'%20y%3D'27'%20width%3D'173'%20height%3D'111'%20rx%3D'2'%20fill%3D'%23e4f3ff'%2F%3E%3Ccircle%20cx%3D'152'%20cy%3D'77'%20r%3D'37'%20fill%3D'%23c7e7fa'%2F%3E%3Ccircle%20cx%3D'152'%20cy%3D'66'%20r%3D'12'%20fill%3D'%231767a1'%2F%3E%3Cpath%20d%3D'M126%20103v-5c0-25%2052-25%2052%200v5z'%20fill%3D'%231767a1'%2F%3E%3Ccircle%20cx%3D'180'%20cy%3D'102'%20r%3D'8'%20fill%3D'%234bb777'%20stroke%3D'white'%20stroke-width%3D'3'%2F%3E%3Cpath%20d%3D'M40%20149h225l-10%209H50z'%20fill%3D'%23becfdf'%2F%3E%3Cpath%20d%3D'M130%20149h45l-5%204h-35z'%20fill%3D'%2391abc1'%2F%3E%3C%2Fsvg%3E"); }
.patient-hub-page .hub-status.tone-complete { padding:30px 30px 12px 180px; min-height:168px; }
.patient-hub-page .hub-status.tone-complete::before { width:124px; height:124px; left:28px; top:28px; background-size:62px; }
.patient-hub-page .hub-status.tone-complete::after { content:"✓"; display:grid; place-items:center; position:absolute; left:114px; top:108px; width:33px; height:33px; color:white; border:3px solid white; border-radius:50%; background:#07953b; font-weight:800; }
.patient-hub-page .tone-complete .hub-follow-through { padding-left:180px; }
.patient-hub-page .hub-follow-through>.button { min-height:56px; font-size:17px; }
.patient-hub-page .hub-follow-through>.button::before { content:""; width:26px; height:26px; background:currentColor; mask:var(--icon-calendar) center/contain no-repeat; }
.patient-hub-page .hub-follow-through>a[href='/?home=1']::before { mask-image:var(--icon-home); }
.patient-hub-page .action-bar>[data-ui-action='hub-Join video']:not([aria-busy=true]):not([data-ui-pending=true])::before { content:""; width:26px; height:26px; background:currentColor; mask:var(--icon-video) center/contain no-repeat; }
.patient-hub-page .action-bar>[data-ui-action='hub-Join video'] { min-width:240px; min-height:58px; gap:16px; font-size:18px; }
.patient-hub-page .temporary-chat-messages .empty-state { display:flex; flex-direction:column; align-items:center; gap:18px; padding:40px 16px; font-size:16px; }
.patient-hub-page .temporary-chat-messages .empty-state::before { content:""; width:54px; height:54px; background:#bcc9d7; mask:var(--icon-chat) center/contain no-repeat; }
.patient-hub-page .temporary-chat-messages .empty-state::after { content:"You can send a message to your doctor if you have questions."; max-width:280px; font-size:14px; line-height:1.5; color:#7b8da7; }
.patient-hub-page .temporary-chat-form .compose-box { border:0; padding:0; align-items:stretch; }
.patient-hub-page .temporary-chat-form .compose-box textarea { border:1px solid #aabfd6; border-radius:9px; padding:12px; flex:1; min-width:0; }
.patient-hub-page .temporary-chat-form .compose-box .button { min-width:80px; }
.patient-hub-page .temporary-file-list .empty-state { justify-content:center; gap:16px; }
.patient-hub-page .temporary-file-list .empty-state::before { content:""; width:28px; height:34px; flex:0 0 28px; background:#8d9db4; mask:var(--icon-document) center/contain no-repeat; }
.patient-hub-page .has-chat .temporary-file-list .empty-state { flex-direction:column; border:0; background:#fff; padding:24px 14px; font-size:16px; }
.patient-hub-page .has-chat .temporary-file-list .empty-state::before { width:38px; height:44px; flex-basis:44px; }
.patient-hub-page .workspace-safety { gap:12px; align-items:center; justify-content:flex-start; text-align:left; }
.patient-hub-page .workspace-safety::before { content:""; width:22px; height:22px; flex:0 0 22px; background:#7b91aa; mask:var(--icon-info) center/contain no-repeat; }
.patient-hub-page .appointment-return-guidance { display:flex; align-items:flex-start; gap:12px; margin:14px 0 10px; padding:14px 18px; border:1px solid #d7e5f3; border-radius:12px; background:#f1f7fd; color:#365575; font-size:14px; line-height:1.6; }
.patient-hub-page .appointment-return-guidance::before { content:""; width:22px; height:22px; flex:0 0 22px; margin-top:2px; background:#23669b; mask:var(--icon-info) center/contain no-repeat; }
.patient-hub-page .file-actions .file-remove-button { color:#9c2d35; border-color:#dec5ca; background:#fff; }
.patient-hub-page .file-actions .file-remove-button:hover { color:#7f2027; border-color:#bc939b; background:#fff5f5; }
.patient-hub-page .file-actions .file-remove-button:focus-visible { outline:3px solid #a43844; outline-offset:3px; }
.patient-hub-page .file-actions .file-remove-button:not([aria-busy=true]):not([data-ui-pending=true])::before { content:""; width:18px; height:18px; flex:0 0 18px; background:currentColor; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M9 6V3h6v3M5 6l1 15h12l1-15M10 10v7M14 10v7'/%3E%3C/svg%3E") center/contain no-repeat; }
.patient-hub-page .refund-claim-notice { position:relative; padding:22px 24px 22px 104px; }
.patient-hub-page .refund-claim-notice::before { content:""; position:absolute; left:20px; top:22px; width:62px; height:62px; border-radius:50%; background:#dcf0ff; }
.patient-hub-page .refund-claim-notice::after { content:""; position:absolute; left:36px; top:39px; width:30px; height:30px; background:#185d97; mask:var(--icon-video) center/contain no-repeat; }
.patient-hub-page #consultWindow[data-phase=closed] .consult-window-clock { display:flex; align-items:center; gap:12px; border-radius:10px; }
.patient-hub-page #consultWindow[data-phase=closed] .consult-window-clock::before { content:""; width:26px; height:26px; background:currentColor; mask:var(--icon-lock) center/contain no-repeat; }
.patient-hub-page #consultWindow[data-phase=open] .consult-window-clock::before { content:""; display:inline-block; vertical-align:middle; margin-right:12px; width:27px; height:27px; background:#185d97; mask:var(--icon-clock) center/contain no-repeat; }
.patient-hub-page #hub.tone-payment .hub-status { padding-left:24px; }
.patient-hub-page #hub.tone-payment .hub-status::before { display:none; }
.patient-hub-page #hub.tone-payment .action-bar { padding-left:24px; }
.patient-hub-page #hub.tone-payment .inline-notice:not(.is-error) { position:relative; padding:20px 24px 20px 84px; border:0; border-left:4px solid #ffb127; background:#fff7e9; }
.patient-hub-page #hub.tone-payment .inline-notice:not(.is-error)::before { content:"!"; position:absolute; left:22px; top:20px; width:40px; height:40px; display:grid; place-items:center; border-radius:50%; background:#ffce72; color:#854100; font-size:27px; font-weight:700; }
.patient-return-page .policy-panel>.policy-info,.patient-return-page>.shell>.card .status { position:relative; padding-left:64px; }
.patient-return-page .policy-panel>.policy-info::before,.patient-return-page>.shell>.card .status::before { content:""; position:absolute; left:20px; top:22px; width:26px; height:26px; background:#185d97; mask:var(--icon-info) center/contain no-repeat; }
.booking-page .recovery-view h1 { font-size:clamp(30px,3.5vw,42px); }
.booking-page #recoveryCodeEntry,.booking-page #recoveryConfirm,.booking-page #emailEditPanel { border-color:#c9def2; background:#f3f9ff; }
@media(max-width:800px) {
 .booking-page .booking-flow .progress { gap:16px; }
 .booking-page .progress li { font-size:14px; }
 .patient-hub-page .hub-status.tone-ready { padding-right:210px; }
 .patient-hub-page .hub-status.tone-ready::after { width:170px; right:12px; }
}
@media(max-width:600px) {
 .booking-page .booking-content { padding:20px 16px; }
 .booking-page .booking-flow .slot-times { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .booking-page .booking-flow .slot-times .slot { padding:12px; font-size:15px; }
 /* Reserve a separate column for the radio; let the time wrap beside it. */
 :is(.booking-page .booking-flow, :where(#followSchedulePicker)) .slot-times .slot { display:grid; grid-template-columns:21px minmax(0,1fr); gap:10px; overflow-wrap:anywhere; }
 .booking-page #verificationSendPrompt { padding:18px 16px 18px 78px; min-height:84px; }
 .booking-page #verificationSendPrompt::before { width:44px; height:44px; left:16px; top:20px; background-size:24px; }
 .booking-page #verificationDestination { font-size:18px; }
 .booking-page #emailVerificationStatus:not(:empty) { padding:18px 14px 18px 64px; }
 .booking-page #emailVerificationStatus:not(:empty)::before { left:12px; top:20px; width:24px; height:24px; border-width:7px; font-size:18px; }
 .patient-hub-page .hub-status.tone-ready { padding-right:18px; min-height:0; }
 .patient-hub-page .hub-status.tone-ready::after { display:none; }
 .patient-hub-page .hub-status.tone-complete { padding:22px 18px 12px 94px; }
 .patient-hub-page .hub-status.tone-complete::before { width:56px; height:56px; left:18px; top:22px; background-size:32px; }
 .patient-hub-page .hub-status.tone-complete::after { left:56px; top:58px; width:20px; height:20px; font-size:13px; border-width:2px; }
 .patient-hub-page .tone-complete .hub-follow-through { padding-left:18px; }
 .patient-hub-page .action-bar>[data-ui-action='hub-Join video'] { min-width:0; width:100%; }
 .patient-hub-page .refund-claim-notice { padding:18px 18px 18px 76px; }
 .patient-hub-page .refund-claim-notice::before { width:44px; height:44px; left:16px; top:20px; }
 .patient-hub-page .refund-claim-notice::after { left:26px; top:30px; width:24px; height:24px; }
}
@media(max-width:480px) {
 .booking-page .booking-flow .progress { gap:8px; }
 .booking-page .progress li { font-size:12px; }
 .booking-page .progress li:not(:last-child)::after { left:calc(100% - 5px); right:-5px; }
 .booking-page #emailCodeEntry,.booking-page #recoveryCodeEntry { padding:16px; }
}
@media(max-width:380px) {
 .booking-page .booking-flow .slot-times,#followSchedulePicker .slot-times { grid-template-columns:1fr; }
}
@media(prefers-reduced-motion:reduce) {
 .booking-page :is(.entry-view,.focused-view,.booking-flow,.modal) :is(.primary,.button-primary),.patient-hub-page :is(.patient-shell,.modal) :is(.primary,.button-primary),.patient-return-page .policy-panel .policy-primary { transition:none; }
}

/* Patient-details options: retain native controls, validation and policy links. */
.booking-page #detailFields .patient-contact-fields>label:has(#address) { grid-template-rows:auto auto; }
.booking-page #detailFields :is(.booking-option-card,.consent-copy) {
 position:relative; padding:22px; border:1px solid var(--journey-line); border-radius:14px; background:#fff; gap:16px;
}
.booking-page #detailFields :is(.booking-option-card,.consent-copy)::before {
 content:""; position:absolute; left:22px; top:22px; width:44px; height:44px; border-radius:50%; background:#e3f1fc;
}
.booking-page #detailFields :is(.booking-option-card,.consent-copy)::after {
 content:""; position:absolute; left:33px; top:33px; width:22px; height:22px; background:var(--journey-blue); mask:var(--icon-document) center/contain no-repeat; pointer-events:none;
}
.booking-page #detailFields .booking-option-card:has(#pwdClaimed)::after {
 mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='3'/%3E%3Ccircle cx='8' cy='10' r='2'/%3E%3Cpath d='M5 16v-1c0-3 6-3 6 0v1M15 9h4M15 13h4'/%3E%3C/svg%3E");
}
.booking-page #detailFields .consent-copy::after {
 mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2l8 3v6c0 5-4 9-8 11-4-2-8-6-8-11V5zM8 12l3 3 5-6'/%3E%3C/svg%3E");
}
.booking-page #detailFields :is(#medcertOptionHeading,#eligibilityHeading,#consentHeading) {
 color:var(--journey-ink); font-size:17px; font-weight:700; line-height:1.45;
}
.booking-page #detailFields :is(#eligibilityHeading,#consentHeading) { min-height:44px; display:flex; align-items:center; margin:0 0 0 60px; }
.booking-page #detailFields label.check {
 display:grid; grid-template-columns:22px minmax(0,1fr); align-items:start; gap:12px; color:var(--journey-ink); font-size:14px; line-height:1.6; font-weight:450;
}
.booking-page #detailFields label.check input { width:22px; height:22px; min-height:22px; padding:0; margin:1px 0 0; accent-color:var(--journey-blue); }
.booking-page #detailFields label.check:has(#medcertRequested) { margin:0 0 0 60px; }
.booking-page #detailFields .booking-option-card small { display:block; margin-top:5px; color:var(--journey-muted); font-size:13px; line-height:1.65; }
.booking-page #detailFields .booking-option-card small span { display:inline; }
.booking-page #detailFields :is(#medcertPurposeRow,#pwdEvidenceRow):not([hidden]) { margin:0; padding-top:16px; border-top:1px solid var(--journey-line); }
.booking-page #detailFields :is(#medcertPurposeRow,#pwdEvidenceRow>label) { color:var(--journey-ink); font-size:14px; font-weight:600; line-height:1.5; }
.booking-page #detailFields #pwdEvidenceRow>label { margin:0; }
.booking-page #detailFields #pwdEvidence { min-width:0; max-width:100%; padding:7px; font-size:14px; font-weight:450; }
.booking-page #detailFields #pwdEvidence::file-selector-button { margin-right:12px; padding:10px 14px; border:0; border-radius:6px; background:#e3f1fc; color:var(--journey-blue); font-family:inherit; font-size:14px; font-weight:600; line-height:1.5; cursor:pointer; }
.booking-page #detailFields #pwdEvidence:disabled::file-selector-button { opacity:.6; cursor:wait; }
.booking-page #detailFields :is(#pwdEvidenceStatus,#seniorEligibilityNote) { margin:10px 0 0; font-size:13px; line-height:1.6; color:var(--journey-muted); }
.booking-page #detailFields #pwdEvidenceStatus:empty { display:none; }
.booking-page #detailFields #pwdEvidenceSelected:not([hidden]) { margin-top:12px; border-color:var(--journey-line); background:var(--journey-wash); overflow-wrap:anywhere; }
.booking-page #detailFields .consent-copy { background:var(--journey-wash); }
.booking-page #detailFields .consent-copy p { margin:10px 0 0 60px; font-size:14px; line-height:1.6; }
.booking-page #detailFields #consentVersion { font-size:12px; color:var(--journey-muted); }
.booking-page #detailFields :is(#consentLink,.check a) { color:var(--journey-blue); text-decoration:underline; text-underline-offset:3px; font-weight:600; }
.booking-page #detailFields>label.check:has(:is(#timePolicyAccepted,#consentAccepted)) { margin:12px 0; padding:16px; border:1px solid var(--journey-line); border-radius:10px; background:#fff; }
.booking-page #detailFields label.check:has(input:focus-visible) { outline:3px solid #185d97; outline-offset:3px; }
.booking-page :is(#detailFields,#reviewPanel) label.required-check:has(:is(#consentAccepted,#financialAcknowledged)) { display:grid; grid-template-columns:22px minmax(0,1fr); gap:14px; margin:18px 0; padding:20px; border:2px solid #8fb5d7; border-radius:10px; background:#f4f9ff; color:var(--journey-ink); }
.booking-page :is(#detailFields,#reviewPanel) label.required-check input { width:22px; height:22px; min-height:22px; margin:3px 0 0; accent-color:var(--journey-blue); }
.booking-page :is(#detailFields,#reviewPanel) label.required-check>span { display:grid; gap:10px; min-width:0; font-size:16px; line-height:1.6; }
.booking-page :is(#detailFields,#reviewPanel) .required-check strong { font-size:16px; font-weight:700; }
.booking-page :is(#detailFields,#reviewPanel) .required-check-badge { justify-self:start; padding:3px 9px; border-radius:5px; background:#dcecfb; color:#185d97; font-size:12px; font-weight:750; letter-spacing:.04em; }
.booking-page :is(#detailFields,#reviewPanel) .required-check-summary { font-size:14px; font-weight:450; color:#365575; }
.booking-page :is(#detailFields,#reviewPanel) .required-check-hint { font-size:13px; font-weight:600; color:#365575; }
.booking-page :is(#detailFields,#reviewPanel) label.required-check:has(input:focus-visible) { outline:3px solid #185d97; outline-offset:3px; }
.booking-page :is(#detailFields,#reviewPanel) label.required-check>.field-error { grid-column:2; margin:0; font-size:14px; }
@media(max-width:600px) { .booking-page :is(#detailFields,#reviewPanel) label.required-check:has(:is(#consentAccepted,#financialAcknowledged)) { padding:16px; gap:12px; } }
@media(forced-colors:active) { .booking-page :is(#detailFields,#reviewPanel) label.required-check:has(:is(#consentAccepted,#financialAcknowledged)) { border-color:CanvasText; background:Canvas; color:CanvasText; } .booking-page :is(#detailFields,#reviewPanel) :is(.required-check-badge,.required-check-summary,.required-check-hint) { color:CanvasText; background:Canvas; } }
.booking-page #confirmationPanel #emailContinueReview:disabled { opacity:1; background:#e9eff5; border-color:#d5e3f1; color:#61758a; box-shadow:none; cursor:not-allowed; transform:none; }
.booking-page #confirmationPanel .email-review-hint:not([hidden]) { display:flex; align-items:flex-start; gap:10px; margin:12px 0 0; padding:12px 14px; border:1px solid var(--journey-line); border-radius:9px; background:var(--journey-wash); color:#365575; font-size:14px; line-height:1.6; }
.booking-page #confirmationPanel .email-review-hint::before { content:""; flex:0 0 20px; width:20px; height:20px; margin-top:1px; background:#185d97; mask:var(--icon-lock) center/contain no-repeat; }
@media(max-width:600px) {
 .booking-page #detailFields :is(.booking-option-card,.consent-copy) { padding:18px 16px; }
 .booking-page #detailFields :is(.booking-option-card,.consent-copy)::before { left:16px; top:18px; width:36px; height:36px; }
 .booking-page #detailFields :is(.booking-option-card,.consent-copy)::after { left:24px; top:26px; width:20px; height:20px; }
 .booking-page #detailFields :is(#eligibilityHeading,#consentHeading) { min-height:36px; margin-left:48px; }
 .booking-page #detailFields label.check:has(#medcertRequested),.booking-page #detailFields .consent-copy p { margin-left:48px; }
 .booking-page #detailFields>label.check:has(:is(#timePolicyAccepted,#consentAccepted)) { padding:14px; }
}
@media(forced-colors:active) {
 .booking-page #detailFields :is(.booking-option-card,.consent-copy,label.check) { border-color:CanvasText; }
 .booking-page #detailFields :is(.booking-option-card,.consent-copy)::after { background:CanvasText; }
 .booking-page #detailFields #pwdEvidence::file-selector-button { border:1px solid ButtonText; }
}

/* Patient mobile call focus, 20261015-r1. JS enables this only for a mobile
   device with an authoritative available room; narrow desktops are unchanged. */
.patient-hub-page .mobile-call-only { display:none; }
.patient-hub-page.mobile-call-focus {
 height:var(--call-viewport-height,100dvh); min-height:0; overflow:hidden;
 display:grid; grid-template-rows:auto minmax(0,1fr); margin:0;
}
.mobile-call-focus .patient-site-header { position:static; flex:none; padding-top:env(safe-area-inset-top); }
.mobile-call-focus .patient-header-inner { min-height:60px; width:calc(100% - 24px); gap:12px; }
.patient-hub-page.mobile-call-focus .patient-site-header .brand-logo { width:min(210px,49vw); height:auto; }
.mobile-call-focus #appointmentHelpButton,
.mobile-call-focus :is(#appointmentSummary,#workspaceJumps,#appointmentHelp,.patient-footer,#hubFollowThrough) { display:none!important; }
.patient-hub-page.mobile-call-focus .call-clock {
 display:inline-flex; align-items:center; justify-content:center; gap:6px;
 min-height:36px; padding:6px 10px; border:1px solid var(--tc-line,#cadcee);
 border-radius:10px; background:var(--tc-soft,#f1f7fc); color:var(--tc-ink,#102d48);
 font-size:.88rem; font-weight:750; white-space:nowrap; font-variant-numeric:tabular-nums;
}
/* Retain the existing clock's live boundary announcements, without its
   clipped summary becoming an invisible tab stop (also managed in JS). */
.mobile-call-focus #consultWindow {
 position:absolute!important; width:1px!important; height:1px!important;
 padding:0!important; margin:0!important; border:0!important;
 overflow:hidden!important; clip-path:inset(50%); white-space:nowrap;
}
.patient-hub-page.mobile-call-focus .patient-shell {
 min-height:0; width:calc(100% - 20px); max-width:none; margin:10px auto 0; padding:0;
 display:flex; flex-direction:column; overflow:hidden;
}
.patient-hub-page.mobile-call-focus #consultationWorkspace {
 flex:1; min-height:0; display:grid; grid-template-columns:minmax(0,1fr);
 grid-template-rows:minmax(0,1fr) auto; grid-template-areas:"stage" "tools";
 gap:10px; padding:0; margin:0; overflow:auto;
}
.patient-hub-page.mobile-call-focus[data-call-panel="chat"] #consultationWorkspace,
.patient-hub-page.mobile-call-focus[data-call-panel="files"] #consultationWorkspace {
 grid-template-rows:minmax(100px,.9fr) minmax(190px,1.1fr) auto;
 grid-template-areas:"stage" "drawer" "tools";
}
.patient-hub-page.mobile-call-focus :is(#chatPanel,#filesPanel) { display:none; }
.patient-hub-page.mobile-call-focus[data-call-panel="chat"] #chatPanel,
.patient-hub-page.mobile-call-focus[data-call-panel="files"] #filesPanel {
 grid-area:drawer; display:flex; flex-direction:column; min-height:0; margin:0; overflow:hidden;
}
.patient-hub-page.mobile-call-focus #hub {
 min-height:0; margin:0; padding:0; display:flex; flex-direction:column; justify-content:center;
 overflow:hidden; background:var(--tc-surface,#fff); border-radius:14px;
}
.mobile-call-focus #hubStatus { padding:20px 16px 8px; text-align:center; }
.mobile-call-focus #hubStatus h2 { font-size:1.3rem; margin:0 0 10px; }
.mobile-call-focus #hubStatus::before,.mobile-call-focus .panel-heading::before { display:none; }
.mobile-call-focus #hubStatus .lede { font-size:.95rem; max-width:34em; margin:0 auto; }
.mobile-call-focus #hubActions { justify-content:center; padding:8px 16px 20px; margin:0; }
.mobile-call-focus #hub.video-open :is(#hubStatus,#hubActions) { display:none; }
.mobile-call-focus #hubNotices { flex:none; max-height:30%; overflow:auto; }
.mobile-call-focus #hubNotices:empty { display:none; }
.patient-hub-page.mobile-call-focus #videoStage { flex:1; display:flex; flex-direction:column; min-height:0; margin:0; border:0; }
.mobile-call-focus .video-stage-bar { flex:none; min-height:44px; padding:4px 10px; }
.mobile-call-focus .video-stage-bar h2 { font-size:.9rem; margin:0; }
.mobile-call-focus #videoClose { min-height:36px; padding:6px 10px; font-size:.8rem; }
.mobile-call-focus #videoFrameHost { flex:1; height:auto; min-height:0; background:#131c25; }
.patient-hub-page.mobile-call-focus .call-tools {
 grid-area:tools; display:flex; gap:12px; padding:0 2px max(10px,env(safe-area-inset-bottom)); margin:0;
 background:var(--tc-surface,#fff);
}
.mobile-call-focus .call-tools .button { flex:1; min-height:48px; display:flex; align-items:center; justify-content:center; gap:9px; margin:0; }
.mobile-call-focus .call-tools svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.mobile-call-focus .call-tools [aria-expanded="true"] { color:#fff; background:var(--journey-primary,#1c6096); border-color:var(--journey-primary,#1c6096); }
.mobile-call-focus .call-unread { background:#aa3c12; color:#fff; border-radius:20px; min-width:23px; padding:1px 6px; font-size:.8rem; }
.mobile-call-focus :is(#chatPanel,#filesPanel)>.panel-heading {
 flex:none; display:flex; align-items:center; gap:8px; padding:8px 10px; border-bottom:1px solid var(--tc-line,#cadcee);
}
.mobile-call-focus :is(#chatPanel,#filesPanel)>.panel-heading h2 { font-size:1rem; margin:0; }
.mobile-call-focus #chatPanel>.panel-heading>div { flex:1; }
.mobile-call-focus :is(#chatPanel,#filesPanel)>.panel-heading p { display:none; }
.patient-hub-page.mobile-call-focus .call-collapse { display:inline-flex; align-items:center; justify-content:center; gap:5px; min-height:44px; padding:7px 9px; margin:0; font-size:.8rem; white-space:nowrap; }
.mobile-call-focus .call-collapse span { font-size:1.4rem; line-height:1; }
.mobile-call-focus #filesPanel>.panel-heading { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); }
.mobile-call-focus #filesPanel .file-source-actions { margin:0; }
.mobile-call-focus #addFileButton { min-height:44px; margin:0; padding:8px 12px; background:var(--journey-primary,#1c6096); color:#fff; border-color:var(--journey-primary,#1c6096); }
.mobile-call-focus #collapseCallFiles { justify-self:end; }
.patient-hub-page.mobile-call-focus .call-files-note { display:block; flex:none; font-size:.8rem; line-height:1.4; padding:8px 10px; margin:0; background:var(--tc-soft,#f1f7fc); color:var(--tc-ink,#102d48); }
.patient-hub-page .call-files-content { display:contents; }
.mobile-call-focus #callFilesContent { display:block; flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; }
.mobile-call-focus #doctorDocumentsPanel { margin:0; border:0; border-radius:0; box-shadow:none; }
.mobile-call-focus #doctorDocumentsPanel>.panel-heading { padding:10px; border-bottom:1px solid var(--tc-line,#cadcee); }
.mobile-call-focus #doctorDocumentsPanel>.panel-heading h2 { font-size:1rem; margin:0; }
.mobile-call-focus #doctorDocumentList { margin:0; padding:0 10px; }
.mobile-call-focus #doctorDocumentList>li { display:grid; grid-template-columns:minmax(0,1fr) auto; padding:10px 0; gap:8px; }
.patient-hub-page.mobile-call-focus #doctorDocumentList .file-actions { grid-column:auto; width:auto; }
.mobile-call-focus #doctorDocumentsDeadline { margin:0; padding:8px 10px; font-size:.8rem; }
.mobile-call-focus #doctorDocumentsStatus:empty { display:none; }
.mobile-call-focus #temporaryFileList { min-height:0; margin:0; padding:0 10px; align-content:start; grid-auto-rows:max-content; }
.mobile-call-focus #temporaryFileList>li { padding:10px 0; grid-template-columns:28px minmax(0,1fr) auto; gap:8px; }
.patient-hub-page.mobile-call-focus #temporaryFileList .file-type { width:28px; height:34px; }
.patient-hub-page.mobile-call-focus #temporaryFileList .file-actions { grid-column:auto; width:auto; }
.mobile-call-focus .file-actions { flex-wrap:wrap; justify-content:flex-end; }
.mobile-call-focus .file-actions .button { min-height:44px; padding:6px 10px; }
.mobile-call-focus :is(.file-download-action,#fileViewerDownload,#fileViewerShare,#fileViewerSaveHelp,#fileViewerMobileInstructions) { display:none!important; }
.mobile-call-focus #filesPanel .composer-actions:has(#fileFeedback:empty):not(:has(#retryFiles:not([hidden]))) { display:none; }
.mobile-call-focus #filesPanel .composer-actions { flex:none; margin:0; padding:4px 10px; }
.mobile-call-focus #selectedFile { flex:none; margin:4px 10px; padding:6px; }
.mobile-call-focus #chatMessages { flex:1; min-height:0; max-height:none; padding:10px; overscroll-behavior:contain; }
.mobile-call-focus #chatForm { flex:none; padding:8px 10px; margin:0; }
.mobile-call-focus #chatForm>label { font-size:.8rem; margin-bottom:3px; }
.mobile-call-focus #chatForm .temporary-note { display:none; }
.mobile-call-focus #chatForm .compose-box { gap:8px; align-items:end; }
.mobile-call-focus #chatInput { min-height:44px; max-height:76px; font-size:16px; }
.mobile-call-focus #chatSend { min-height:44px; padding:8px 12px; }
.mobile-call-focus #newMessagesButton { min-height:28px; flex:none; margin:0 10px; padding:2px 8px; font-size:.8rem; }
.mobile-call-focus #chatFeedback:empty { display:none; }
.mobile-call-focus #fileViewer { max-height:calc(var(--call-viewport-height,100dvh) - 20px); }
@media(min-width:900px) {
 .patient-hub-page.mobile-call-focus[data-call-panel="chat"] #consultationWorkspace,
 .patient-hub-page.mobile-call-focus[data-call-panel="files"] #consultationWorkspace {
  grid-template-columns:minmax(0,1fr) minmax(320px,36%); grid-template-rows:minmax(0,1fr) auto;
  grid-template-areas:"stage drawer" "tools drawer";
 }
}
@media(max-height:520px) {
 .mobile-call-focus .patient-header-inner { min-height:46px; }
 .patient-hub-page.mobile-call-focus .patient-site-header .brand-logo { max-width:170px; }
 .mobile-call-focus .call-files-note { max-height:48px; overflow:auto; padding:4px 8px; }
 .mobile-call-focus .video-stage-bar { min-height:36px; padding:0 8px; }
 .mobile-call-focus #hubStatus { padding:8px; }
 .mobile-call-focus #hubStatus .lede { display:none; }
 .mobile-call-focus #hubActions { padding:4px 8px; }
}
