/* Women's HRT intake. Visual language: women's intake handoff v1.6.1 (orchid aurora, chip,
   soft option tiles, read-to-the-end consents, off-ramp lightbox). Tokens: keen-brand-guide
   assets/colors/tokens.css [data-line="womens"]. Native accent-color is banned on the women's
   line (forms-and-states.md), so choices are custom controls. Orchid is 2.65:1 on white, so
   selected/focus states use --accent-ink. */
[data-line="womens"] {
  --accent: #BB86FC;
  --accent-hover: #9A67DB;
  --accent-deep: #7A4FC0;
  --accent-soft: #F3E9FF;
  --accent-on: #1F1915;
  --accent-ink: #6B3FA8;
  --focus-ring: #6B3FA8;
  --ink: #1F1915;
  --body-c: #3D3A36;
  --muted: #6A6662;
  --gray: #8C8884;
  --placeholder: #A9A5A0;
  --disabled: #B2B2B2;
  --tile: #F4F2EE;
  --press: #F4EEFB;
  --paper: #F0EEE9;
  --backdrop: #EAE7E2;
  --track: #EDE9E3;
  --mark-line: rgba(31, 25, 21, .52);
  --line: rgba(0, 0, 0, .06);
  --border-input: rgba(0, 0, 0, .10);
  --border-faint: rgba(0, 0, 0, .06);
  --border-dashed: rgba(0, 0, 0, .14);
  --tint-06: rgba(187, 134, 252, .06);
  --tint-12: rgba(187, 134, 252, .12);
  --tint-13: rgba(187, 134, 252, .13);
  --tint-38: rgba(187, 134, 252, .38);
  --gradient: linear-gradient(135deg, #BB86FC 0%, #9A67DB 55%, #2142FF 140%);
  --gradient-pressed: linear-gradient(135deg, #9A67DB 0%, #7A4FC0 55%, #1A35CC 140%);
  --shadow-cta: 0 2px 8px rgba(187,134,252,.28);
  --shadow-cta-hover: 0 6px 18px rgba(187,134,252,.42);
  --ring: inset 0 0 0 1.5px #BB86FC;
  --glow: 0 0 0 3px rgba(187,134,252,.16);
  --error: #B42318;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-full: 999px;
  --r-input: 10px;
  --r-btn: 4px;
  --ease: cubic-bezier(.05, .7, .1, 1);
}
body[data-line="womens"] {
  margin: 0; color: var(--body-c); background: var(--backdrop);
  font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.wi-locked { overflow: hidden; }

.wi-aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: var(--backdrop); }
.wi-aur { position: absolute; border-radius: 50%; filter: blur(38px); will-change: transform; }
.wi-aur--1 { top: -14%; left: -18%; width: 78%; height: 46%; background: rgba(187,134,252,.42); animation: kiAur1 28s ease-in-out infinite; }
.wi-aur--2 { top: 18%; right: -22%; width: 72%; height: 44%; background: rgba(154,103,219,.30); animation: kiAur2 36s ease-in-out infinite; }
.wi-aur--3 { bottom: 6%; left: -14%; width: 74%; height: 42%; background: rgba(33,66,255,.14); animation: kiAur3 24s ease-in-out infinite; }
.wi-aur--4 { bottom: -16%; right: -14%; width: 68%; height: 40%; background: rgba(187,134,252,.26); animation: kiAur4 32s ease-in-out infinite; }
@keyframes kiAur1 { 0% { transform: translate3d(-4%, -3%, 0) scale(1); } 50% { transform: translate3d(7%, 5%, 0) scale(1.14); } 100% { transform: translate3d(-4%, -3%, 0) scale(1); } }
@keyframes kiAur2 { 0% { transform: translate3d(3%, 2%, 0) scale(1.08); } 50% { transform: translate3d(-6%, -5%, 0) scale(1); } 100% { transform: translate3d(3%, 2%, 0) scale(1.08); } }
@keyframes kiAur3 { 0% { transform: translate3d(-3%, 4%, 0) scale(1); } 50% { transform: translate3d(6%, -4%, 0) scale(1.12); } 100% { transform: translate3d(-3%, 4%, 0) scale(1); } }
@keyframes kiAur4 { 0% { transform: translate3d(4%, 3%, 0) scale(1.1); } 50% { transform: translate3d(-5%, -3%, 0) scale(1); } 100% { transform: translate3d(4%, 3%, 0) scale(1.1); } }

.wi-shell { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding: 0; box-sizing: border-box; }
.wi-shell *, .wi-shell *::before, .wi-shell *::after { box-sizing: border-box; }
.wi-top { position: sticky; top: 0; z-index: 30; padding: max(54px, env(safe-area-inset-top)) 24px 12px; margin: 0; background: rgba(240,238,233,.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.wi-top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.wi-logo { height: 17px; width: auto; display: block; }
/* Back sits in its own row above the question card (not beside it) so it
   never eats horizontal width from the main content area - every screen's
   card gets the same full-width column regardless of whether Back happens
   to be shown. [hidden] still reserves that row's height (see .wi-back[hidden]
   below) so the card doesn't shift up/down as Back toggles between screens. */
.wi-content { flex: 1; position: relative; z-index: 10; display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 4px 28px 24px; min-width: 0; }
.wi-content > .wi-card { flex: 1; align-self: stretch; width: 100%; min-width: 0; }
.wi-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; margin: 0; background: none; border: 0; cursor: pointer;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); transition: color 160ms; }
.wi-back:hover { color: var(--ink); }
.wi-back[hidden] { display: inline-flex; visibility: hidden; }
/* The welcome screen is the one exception to "always reserve Back's row" -
   its full-bleed card needs to start flush at the very top with nothing
   above it, and Back is never reachable there anyway (it's always the
   first screen in history). Higher specificity than the plain rule above,
   so this collapses the row outright instead of just hiding its content. */
.wi-back--collapsed[hidden] { display: none; }
.wi-phase { margin: 0; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gray); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wi-stage { margin: 0 0 7px; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 10px; line-height: 1.4; letter-spacing: .1em; text-transform: uppercase; color: var(--gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wi-progress { height: 4px; border-radius: var(--radius-full); background: var(--track); overflow: hidden; }
.wi-progress span { display: block; height: 100%; width: 0; border-radius: var(--radius-full); background: var(--accent); transition: width 250ms cubic-bezier(.4,0,.2,1); }

/* Plain top-down flow: the chip + question heading (.wi-head) sits right at
   the top under Back, and its answer control follows immediately below with
   just .wi-head's own margin-bottom for breathing room - no artificial
   push-down. An earlier attempt at centering the answer area within the
   leftover space (via margin-top:auto on the first post-head element) was
   reverted here - on a short screen it pulled the control noticeably far
   below its own question instead of keeping them visually together, which
   read as broken rather than balanced. Any leftover height on a short screen
   now simply collects below the content, before the footer, same as any
   ordinary top-anchored form. */
.wi-card { padding: 0; margin: 0; display: flex; flex-direction: column; animation: kiNote 240ms var(--ease) both; }
.wi-card--interstitial { min-height: calc(100svh - 180px); display: flex; }
@keyframes kiNote { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.wi-chip { display: table; margin: 0 0 12px; padding: 5px 10px; border-radius: 6px; background: var(--tile); white-space: nowrap; line-height: 1.35;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gray); }
.wi-head { margin-bottom: 20px; animation: kiUp 220ms var(--ease) both; }
@keyframes kiUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.wi-q { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 21px; line-height: 1.3; letter-spacing: -.01em; color: var(--ink); margin: 0 0 8px; outline: none; text-wrap: pretty; }
.wi-sub { font-size: 15px; line-height: 1.55; color: var(--muted); margin: 8px 0 0; text-wrap: pretty; }
.wi-intro { font-size: 15px; line-height: 1.6; margin: 0 0 12px; }

.wi-body { margin: 0 0 18px; font-size: 15px; line-height: 1.6; color: var(--body-c); }
.wi-body p { margin: 0 0 12px; }
.wi-body ul { margin: 0 0 12px; padding-left: 20px; }
/* Body text placed inside the question header (non-shortHeading screens) -
   reads as part of the question's own intro rather than a separate block. */
.wi-body.wi-sub { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.wi-body.wi-sub > :last-child { margin-bottom: 0; }

.wi-consent { background: #fff; border-radius: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.04); overflow: hidden; margin-bottom: 12px; }
.wi-consent .wi-body { max-height: 42vh; overflow-y: auto; margin: 0; padding: 16px 18px; background: var(--paper); font-size: 14px; color: var(--body-c); }
.wi-consent .wi-body:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: -3px; }
.wi-consent-end { display: flex; align-items: center; gap: 7px; margin-top: 4px; padding-top: 12px; border-top: 1px dashed rgba(0,0,0,.1); font-size: 12px; color: var(--muted); }
.wi-readnote { display: flex; align-items: center; gap: 9px; margin: 12px 0 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(187,134,252,.12); font-size: 14px; line-height: 1.45; color: var(--body-c); }
.wi-readnote[hidden] { display: none; }

.wi-options { display: flex; flex-direction: column; gap: 10px; transition: opacity 260ms, filter 260ms; }
.wi-options.is-locked { opacity: .5; pointer-events: none; }
.wi-options > * { animation: kiStagger 420ms var(--ease) both; }
.wi-options > *:nth-child(1) { animation-delay: 170ms; } .wi-options > *:nth-child(2) { animation-delay: 265ms; }
.wi-options > *:nth-child(3) { animation-delay: 360ms; } .wi-options > *:nth-child(4) { animation-delay: 455ms; }
.wi-options > *:nth-child(5) { animation-delay: 550ms; } .wi-options > *:nth-child(6) { animation-delay: 645ms; }
.wi-options > *:nth-child(n+7) { animation-delay: 730ms; }
@keyframes kiStagger { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.wi-opt { position: relative; display: flex; align-items: flex-start; gap: 12px; width: 100%; min-width: 0; text-align: left; padding: 14px 16px; border-radius: var(--radius-md); background: #fff; border: 1.5px solid var(--border-input); cursor: pointer;
  font-size: 15px; line-height: 1.45; color: var(--muted); transition: border-color 160ms, background 160ms, box-shadow 160ms; }
.wi-opt:hover { background: var(--tint-06); box-shadow: var(--ring); }
.wi-opt input { position: absolute; opacity: 0; pointer-events: none; }
.wi-opt > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.wi-mark { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 1px; box-sizing: border-box; border: 1.5px solid var(--border-input); background: #fff; display: grid; place-items: center; }
.wi-opt[data-type="radio"] .wi-mark { border-radius: 50%; }
.wi-opt[data-type="checkbox"] .wi-mark { border-radius: .28em; }
.wi-opt.is-on { background: var(--tint-13); box-shadow: var(--ring); color: var(--ink); }
.wi-opt.is-on:hover { background: var(--tint-13); box-shadow: var(--ring); }
.wi-opt.is-on .wi-mark { background: var(--accent); border-color: var(--accent); }
.wi-opt.is-on .wi-mark::after { content: ""; width: .5em; height: .28em; border-left: 2px solid var(--accent-on); border-bottom: 2px solid var(--accent-on); transform: rotate(-45deg) translate(1px, -1px); }
.wi-opt:has(input:focus-visible) { outline: 3px solid var(--accent-deep); outline-offset: 3px; }
/* "none of the above" - pulled below a divider, detached from the group */
.wi-opt--none { margin-top: 16px; position: relative; background: var(--tile); border: none; }
.wi-opt--none::before { content: ""; position: absolute; height: 1px; left: 0; right: 0; top: -10px; background: var(--line); }

/* Checkout plan-selection cards - same .wi-opt/.wi-mark radio base as a
   regular choice screen, just a multi-line body (name/description/price)
   instead of one line of option text. */
.wi-opt--plan { align-items: center; }
.wi-opt-plan-body { display: flex; flex-direction: column; gap: 2px; }
.wi-opt-plan-body .wi-product-name, .wi-opt-plan-body .wi-product-desc { margin: 0; }
.wi-plan-price { font-size: 13px; font-weight: 600; color: var(--accent-ink); margin-top: 2px; }

/* font-size is 16px, not the design's usual 15px, specifically here - any
   text input/select/textarea under 16px makes iOS Safari auto-zoom the
   whole page on focus (a standard mobile Safari behavior, not a bug in
   this app), which then has to be manually zoomed back out - affects every
   text field in this flow (name, address, email, phone, OTP, picker
   search), so the fix belongs on the shared .wi-field rule, not per-field. */
.wi-field { width: 100%; box-sizing: border-box; padding: 14px 16px; font: inherit; font-size: 16px; border: 1.5px solid var(--border-input); border-radius: var(--r-input); background: #fff; color: var(--ink); transition: border-color 160ms, box-shadow 160ms; }
.wi-field:focus { outline: none; border-color: var(--accent); box-shadow: var(--glow); }
.wi-field::placeholder { color: var(--placeholder); }
textarea.wi-field { min-height: 132px; resize: vertical; }
.wi-row { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 12px; margin-bottom: 12px; }
.wi-error { color: var(--error); font-size: 14px; margin-top: 12px; }

.wi-nav { position: sticky; bottom: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0; padding: 14px 24px max(34px, env(safe-area-inset-bottom));
  background: rgba(240,238,233,.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.wi-nav-hint { font-size: 13px; color: var(--muted); min-height: 1em; }
/* Kept in flow (not display:none) when empty, so the footer's height - and
   the button's vertical position - stays the same whether or not a given
   screen has a hint, instead of the bar visibly growing/shrinking between
   screens. */
.wi-nav-hint[hidden] { visibility: hidden; }
.wi-btn[hidden] { display: none; }
.wi-btn { width: 100%; max-width: none; min-height: 0; padding: 16px; border-radius: var(--r-btn); font: inherit; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 15px; letter-spacing: .02em; border: 1.5px solid transparent; cursor: pointer; transition: background 160ms, box-shadow 200ms, transform 160ms; }
.wi-btn:focus-visible { outline: 3px solid var(--accent-deep); outline-offset: 3px; }
.wi-btn--primary { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--gradient); color: #fff; box-shadow: var(--shadow-cta); }
.wi-btn--primary::after { content: ""; flex: 0 0 18px; width: 18px; height: 14px; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 14' fill='none'%3E%3Cpath d='M1 7h15M11 2l5 5-5 5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.wi-btn--primary:hover { box-shadow: var(--shadow-cta-hover); }
.wi-btn--primary:active { background: var(--gradient-pressed); filter: brightness(.94); }
.wi-btn--primary:disabled, .wi-btn--primary[aria-disabled="true"] { background: var(--backdrop); color: var(--disabled); opacity: 1; box-shadow: none; cursor: not-allowed; }
.wi-btn--primary:disabled:hover, .wi-btn--primary[aria-disabled="true"]:hover { box-shadow: none; }
.wi-btn--primary:disabled::after, .wi-btn--primary[aria-disabled="true"]::after { display: none; }

.wi-plan { width: 100%; border-collapse: collapse; margin: 14px 0 16px; font-size: 15px; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.wi-plan th, .wi-plan td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.wi-plan tr:last-child th, .wi-plan tr:last-child td { border-bottom: 0; }
.wi-plan th { color: var(--muted); font-weight: 500; width: 38%; }
.wi-badge { display: inline-block; padding: 5px 12px; border-radius: var(--radius-full); background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 600; }
.wi-hint { font-size: 14px; color: var(--muted); margin: 0 0 16px; }

.wi-offramp { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; background: rgba(31,25,21,.42); animation: wiFade 200ms var(--ease); }
.wi-offramp[hidden] { display: none; }
.wi-offramp-panel { position: relative; width: 100%; max-width: 560px; box-sizing: border-box; padding: 32px 24px max(28px, env(safe-area-inset-bottom)); background: #fff; border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: 0 -8px 40px rgba(0,0,0,.18); animation: wiUp 300ms var(--ease); text-align: left; }
.wi-offramp-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.wi-offramp-close:hover { background: var(--tile); color: var(--ink); }
.wi-offramp-close:focus-visible { outline: 3px solid var(--focus-ring); }
.wi-offramp-title { margin: 0 40px 12px 0; font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 22px; line-height: 1.25; color: var(--ink); outline: none; }
.wi-offramp-body { margin: 0 0 12px; font-size: 15px; line-height: 1.6; }
.wi-offramp-note { margin: 0 0 20px; font-size: 13px; color: var(--muted); }
.wi-offramp .wi-btn { max-width: none; }
@keyframes wiFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wiUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (min-width: 640px) {
  .wi-offramp { align-items: center; padding: 24px; }
  .wi-offramp-panel { border-radius: var(--radius-lg); padding: 36px 32px 32px; }
}
@media (max-width: 380px) { .wi-row { grid-template-columns: 1fr 1fr; } .wi-row input:last-child { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) {
  .wi-card, .wi-head, .wi-chip, .wi-offramp, .wi-offramp-panel,
  .wi-options > *, .wi-picker-tag, .wi-interstitial,
  .wi-aur--1, .wi-aur--2, .wi-aur--3, .wi-aur--4 { animation: none !important; }
  .wi-interstitial-bar-fill { animation: none !important; width: 100% !important; }
  .wi-progress span, .wi-options, .wi-opt, .wi-btn { transition: none; }
  .wi-btn--primary:hover { box-shadow: var(--shadow-cta); transform: none; }
}

/* hrt/followup.blade.php's plain long-form page (not the step wizard) - its
   checkbox/radio list had no styling at all beyond an inline
   display:block, rendering at the browser's tiny native control size with
   no spacing between the input and its label text: well under any
   reasonable mobile tap-target size. Keeps the native controls as-is (a
   full custom-pill redesign, matching .wi-opt elsewhere, would need this
   page's own server-rendered markup restructured too) but makes them
   properly touch-friendly. */
.wi-followup-screen { margin-bottom: 22px; }
.wi-option { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 0; font-size: 15px; line-height: 1.4; color: var(--body-c); cursor: pointer; }
.wi-option input[type="checkbox"], .wi-option input[type="radio"] { width: 20px; height: 20px; flex-shrink: 0; margin: 0; cursor: pointer; }
.wi-body-line { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 4px 0 10px; }

/* checkout details, telehealth consent, off-ramp notify */
.wi-btn--ghost { background: transparent; color: var(--accent-ink); border-color: var(--accent-ink); margin-top: 10px; }
.wi-btn--ghost:hover { background: var(--accent-soft); }
.wi-label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin: 14px 0 6px; }
.wi-grid2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; }
.wi-grid2-equal { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wi-check { display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: #fff; border-radius: var(--radius-md); border: 1.5px solid rgba(31,25,21,.16); font-size: 15px; line-height: 1.5; cursor: pointer; }
.wi-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent-ink); flex: none; }
.wi-check a { color: var(--accent-ink); }
.wi-file-name { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.wi-offramp-form { margin-top: 14px; text-align: left; }
.wi-offramp-form .wi-btn { margin-top: 12px; }
.wi-offramp-sent { font-size: 14px; color: var(--accent-ink); margin: 10px 0 0; }
.wi-offramp-sent:empty { display: none; }
@media (max-width: 480px) { .wi-grid2 { grid-template-columns: 1fr; } .wi-grid2-equal { grid-template-columns: 1fr; } }

/* conditions/medications/allergies search + chip picker (screens 18-20) */
.wi-picker-selected:not(:empty) { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.wi-picker-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: var(--radius-full); background: var(--tint-12); border: 1px solid var(--tint-38); color: var(--ink); font-size: 14px; animation: kiPop 180ms var(--ease) both; }
@keyframes kiPop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.wi-picker-tag-x { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex-shrink: 0; border: 0; border-radius: 50%; background: var(--tint-12); color: var(--accent-ink); font-size: 14px; line-height: 1; cursor: pointer; transition: background 160ms; }
.wi-picker-tag-x:hover { background: var(--tint-38); }
.wi-search { position: relative; margin-bottom: 12px; }
.wi-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.wi-picker-search { margin-bottom: 0; padding-left: 42px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5' stroke='%238C8884' stroke-width='1.8'/%3E%3Cpath d='m16 16 4 4' stroke='%238C8884' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat 14px center; }
.wi-picker-results:not(:empty) { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; padding: 6px; background: #fff; border: 1.5px solid var(--border-faint); border-radius: var(--radius-md); }
.wi-picker-result { text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border: 1px solid transparent; border-radius: var(--radius-sm); background: transparent; font: inherit; font-size: 14px; color: var(--body-c); cursor: pointer; transition: border-color 160ms, background 160ms; }
.wi-picker-result:hover { border-color: var(--accent); background: var(--tint-06); }
.wi-picker-result--add { background: var(--tint-06); color: var(--ink); font-weight: 600; justify-content: flex-start; }
.wi-picker-subhead { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gray); margin: 18px 0 10px; }
.wi-picker-chips { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.wi-picker-chip { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: var(--radius-full); border: 1.5px solid var(--border-input); background: #fff; font: inherit; font-size: 14px; color: var(--body-c); cursor: pointer; transition: border-color 160ms, background 160ms; }
.wi-picker-chip:hover { border-color: var(--accent); background: var(--tint-06); }
.wi-picker-plus { display: inline-block; flex: 0 0 12px; width: 12px; height: 12px; font-size: 0; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%23BB86FC' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
.wi-picker-cats { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.wi-picker-cat { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: var(--radius-full); border: 1.5px solid var(--border-input); background: #fff; font: inherit; font-size: 14px; color: var(--body-c); cursor: pointer; transition: border-color 160ms, background 160ms; }
.wi-picker-cat:hover { border-color: var(--accent); background: var(--tint-06); }
.wi-picker-cat.is-open { background: var(--tint-12); border-color: var(--accent); color: var(--ink); }
.wi-picker-cat-caret { font-size: 12px; line-height: 1; color: var(--disabled); transition: transform 160ms, color 160ms; }
.wi-picker-cat.is-open .wi-picker-cat-caret { color: var(--accent-hover); transform: rotate(180deg); }
.wi-picker-cat-panel { display: flex; flex-direction: column; gap: 8px; padding: 2px 0 8px; }
.wi-picker-cat-panel[hidden] { display: none; }
/* custom checkbox look, replacing the native checkbox entirely */
.wi-picker-none { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 16px; padding: 0; background: none; border: none; font-size: 14px; color: var(--body-c); }
.wi-picker-none input { flex: 0 0 20px; width: 20px; height: 20px; margin: 0; -webkit-appearance: none; appearance: none; border: 1.5px solid var(--border-input); border-radius: 5px; background: #fff; cursor: pointer; }
.wi-picker-none input:checked { border-color: var(--accent); background-color: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m3 8 3 3 7-7' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position: center; background-repeat: no-repeat; background-size: 14px 14px; }

/* date-of-birth tap-only drill-down grid (month -> day -> decade -> year) */
.wi-dob-slots { display: flex; gap: 8px; margin-bottom: 16px; }
.wi-dob-slot { flex: 1; padding: 13px; text-align: center; border-radius: var(--radius-md); background: #fff; border: 1.5px solid rgba(31,25,21,.24); font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; }
.wi-dob-slot.is-filled { color: var(--ink); }
.wi-dob-slot.is-active { border-color: var(--accent-ink); box-shadow: inset 0 0 0 1.5px var(--accent-ink); }
.wi-dob-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.wi-dob-grid[hidden] { display: none; }
.wi-dob-seg { padding: 12px 6px; text-align: center; border-radius: var(--radius-sm); background: #fff; border: 1.5px solid rgba(31,25,21,.16); font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }
.wi-dob-seg:hover { border-color: var(--accent-hover); }
.wi-dob-seg.is-selected { background: var(--accent-soft); border-color: var(--accent-ink); color: var(--accent-ink); font-weight: 600; }
.wi-dob-summary { margin: 0 0 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--accent-soft); font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 14px; color: var(--accent-ink); }
.wi-dob-summary[hidden] { display: none; }

/* Auth screen - Google button container + "or" divider between it and the
   email option (hrt_intake). */
.wi-google-btn { display: flex; justify-content: center; min-height: 44px; margin: 0 0 18px; }
.wi-divider { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.wi-divider::before, .wi-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.wi-otp-live { color: var(--accent-ink); }
.wi-otp-expired { color: var(--error); }
.wi-spinner { display: inline-block; width: 14px; height: 14px; margin-right: 7px; vertical-align: -2px;
  border: 2px solid rgba(107,63,168,.3); border-top-color: var(--accent-ink); border-radius: 50%; animation: wiSpin 700ms linear infinite; }
@keyframes wiSpin { to { transform: rotate(360deg); } }
/* Transient full-screen "processing" steps (checkout success/cancel) - a
   bigger, centered version of the same inline spinner above. */
.wi-card--center { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; min-height: 40vh; }
.wi-spinner--lg { width: 36px; height: 36px; margin: 0; border-width: 3px; }
.wi-verified-email { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 14px; border-radius: var(--radius-sm); background: var(--tile); margin: 0 0 14px; }
.wi-verified-email span:first-child { font-size: 15px; color: var(--ink); }

.wi-photo-preview { position: relative; display: inline-block; max-width: 100%; }
.wi-photo-preview img { display: block; max-width: 100%; max-height: 360px; border-radius: var(--radius-md); box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.04); }
.wi-photo-remove { position: absolute; top: -10px; right: -10px; width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; background: var(--ink); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.wi-photo-remove:hover { background: var(--error); }
.wi-photo-remove:disabled { opacity: .5; cursor: default; }
.wi-photo-pdf { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: var(--radius-md); background: var(--tile); border: 1.5px solid rgba(31,25,21,.16); color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.wi-photo-pdf:hover { box-shadow: inset 0 0 0 1.5px var(--accent-hover); }
.wi-photo-pdf-icon { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 28px; padding: 0 6px; border-radius: 6px; background: var(--accent-ink); color: #fff; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 11px; letter-spacing: .03em; }

/* Preference cards + not-available callout */
.wi-product { background: #fff; border-radius: 16px; padding: 16px 18px; margin: 0 0 14px; box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.04); border-left: 4px solid var(--accent-ink); }
.wi-product--t { border-left-color: #6B3FA8; }
.wi-product-name { margin: 0 0 4px; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 17px; }
.wi-product-desc { margin: 0 0 8px; font-size: 14px; color: var(--body-c); line-height: 1.5; }
.wi-product-steps { margin: 0; padding-left: 18px; font-size: 13px; color: var(--muted); }
.wi-product-steps li { margin: 2px 0; }
.wi-callout { background: #F3E9FF; border: 1.5px solid #BB86FC; border-radius: 16px; padding: 16px 18px; margin: 0 0 14px; font-size: 14px; line-height: 1.5; }
.wi-callout p { margin: 0 0 6px; }
.wi-callout-title { font-weight: 700; font-size: 15px; color: #4A2580; }
.wi-link { display: block; width: 100%; margin: 4px 0 0; padding: 12px; background: none; border: 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: center; }
.wi-link:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; border-radius: 8px; }

/* /hrt review screen: a numbered Q&A list (including the photo ID thumbnail) - not used by /womens-hrt's own review(), which draws a fixed products table from RoutingResolver instead. */
.wi-review { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 6px 20px rgba(0,0,0,.05); margin: 0 0 16px; }
.wi-review-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 12px; border-bottom: 1px solid var(--line); transition: background 160ms; }
.wi-review-item:last-child { border-bottom: 0; }
.wi-review-item:hover { background: var(--paper); }
.wi-review-item--hero { background: var(--accent-soft); }
.wi-review-item--hero .wi-review-num { background: var(--accent); color: var(--accent-on); }
.wi-review-num { flex: none; width: 28px; height: 28px; margin-top: 1px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 13px; display: grid; place-items: center; }
.wi-review-body { flex: 1; min-width: 0; }
.wi-review-q { margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .01em; }
.wi-review-a { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink); word-break: break-word; }
.wi-review-photo { display: block; width: 100%; max-width: 220px; max-height: 160px; object-fit: cover; border-radius: var(--radius-md); box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.04); }

/* "Your answers are shared with your care team" note under a picker screen. */
.wi-secure { display: flex; align-items: flex-start; gap: 9px; margin-top: 18px; font-size: 12px; line-height: 1.5; color: var(--gray); }
.wi-secure svg { flex-shrink: 0; margin-top: 2px; }
.wi-help { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--gray); }

/* OTP boxed-digit display (email + mobile) - the real <input> sits on top,
   transparent, so paste/autofill/accessibility keep working; this just
   mirrors its value into 6 visual boxes underneath. */
.wi-otp-cells { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 20px 0; }
.wi-otp-cell { display: grid; place-items: center; min-height: 56px; border: 1.5px solid var(--border-input); border-radius: var(--r-input); background: #fff; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 24px; color: var(--ink); transition: border-color 160ms; }
.wi-otp-transparent { position: absolute; inset: 0; width: 100%; height: 100%; color: transparent; caret-color: transparent; background: transparent; border: 0; }
.wi-otp-cells:focus-within .wi-otp-cell { border-color: var(--accent); }

/* "Building confidence" interstitial - timed auto-advancing screen (icon,
   title, caption, 3 bullet lines, pausable progress bar) inserted at fixed
   points in the intake/checkout flow. */
.wi-shell--interstitial .wi-content { padding: 0; }
.wi-shell--splash-auto .wi-back { display: none; }
.wi-shell--splash-auto .wi-nav { display: none; }
.wi-shell--interstitial .wi-card--interstitial { min-height: 0; }
.wi-interstitial { width: 100%; align-self: center; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 40px 4px; animation: kiFade 200ms ease both; }
.wi-shell--interstitial .wi-interstitial { flex: 1; min-height: 100svh; justify-content: center; padding: 84px 32px 40px; }
.wi-shell--interstitial:not(.wi-shell--splash-auto) .wi-interstitial { min-height: calc(100svh - 140px); }
@keyframes kiFade { from { opacity: 0; } to { opacity: 1; } }
.wi-interstitial-icon { width: 64px; height: 64px; margin: 0 0 22px; border-radius: 50%; background: var(--tint-12); color: var(--accent-deep); display: grid; place-items: center; }
.wi-interstitial .wi-q { outline: none; }
.wi-interstitial .wi-sub { max-width: 290px; }
.wi-shell--interstitial .wi-interstitial-icon { flex-shrink: 0; color: #7A3FB0; }
.wi-shell--interstitial .wi-interstitial .wi-q { font-size: 22px; line-height: 1.25; }
.wi-shell--interstitial .wi-interstitial .wi-sub { margin: 10px 0 0; }
.wi-interstitial-lines { width: 100%; margin-top: 26px; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.wi-interstitial-line { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.45; color: var(--body-c); }
.wi-interstitial-dot { flex: 0 0 7px; width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: var(--accent); }
.wi-interstitial-bar { width: 100%; height: 3px; border-radius: var(--radius-full); background: var(--track); overflow: hidden; margin-top: 32px; }
.wi-interstitial-bar-fill { display: block; height: 100%; width: 0; border-radius: var(--radius-full); background: var(--accent); animation: wiInterstitialFill linear forwards; }
@keyframes wiInterstitialFill { from { width: 0; } to { width: 100%; } }
.wi-pause { width: auto; min-height: 44px; margin-top: 8px; font-size: 12px; }
.wi-pause[hidden] { display: none; }
.wi-shell--interstitial .wi-pause:not(:focus-visible):not(.wi-pause--paused) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* One-time welcome/roadmap splash (render()'s '_welcome' kind) - copy and
   structure taken from the client's own static reference (project-docs/HRT
   - Static - Question UI/style.css's .screen[data-kind="welcome"] block),
   but restyled to sit on the SAME translucent .wi-aurora backdrop every
   other screen already shows through (not a solid opaque gradient block,
   which read as a separate bordered card rather than part of this flow) -
   each row is a frosted-glass surface (background+blur), the same
   technique .wi-top/.wi-nav already use, instead of a flat fill. Also
   WITHOUT the reference's own embedded CTA - that one lived inside the
   scrolling content and scrolled out of view along with it on any viewport
   shorter than the full step list; this uses the same shared sticky
   .wi-nav/Next button every other HRT screen already has (relabeled "Get
   started" via footer()), so the button stays reachable regardless of
   content height. Only .wi-top (the phase/progress header) is still hidden
   for this kind - no progress bar makes sense before any question has been
   answered. */
.wi-welcome { width: 100%; animation: kiFade 200ms ease both; }
.wi-welcome-logo { height: 26px; width: auto; display: block; margin: 0 0 32px; }
.wi-welcome-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 28px; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); margin: 0 0 12px; outline: none; text-wrap: pretty; }
.wi-welcome-subtitle { font-size: 15px; line-height: 1.55; color: var(--muted); margin: 0 0 28px; }
.wi-welcome-steps { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wi-welcome-step { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: var(--radius-md); background: rgba(255,255,255,.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.wi-welcome-num { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 12px; color: var(--accent-ink); background: var(--accent-soft); }
.wi-welcome-step-title { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 14px; color: var(--ink); }
.wi-welcome-step-sub { font-size: 12px; color: var(--muted); margin-top: 1px; }
.wi-welcome-badge { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: var(--radius-full); background: rgba(255,255,255,.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 13px; color: var(--muted); }
.wi-welcome-badge svg { flex-shrink: 0; color: var(--accent-ink); }

:is(button, a, input, select, textarea):focus-visible { outline: 3px solid var(--accent-deep); outline-offset: 3px; }
.wi-check:focus-within { outline: 3px solid var(--accent-deep); outline-offset: 3px; }

@media (min-width: 768px) {
  .wi-shell { max-width: 680px; }
  .wi-content { padding: 20px 40px 32px; }
  .wi-top, .wi-nav { padding-left: 40px; padding-right: 40px; }
}
