/* Symptom Checker v3 · PROMPT-symptom-v3.md, rules from DESIGN-LANGUAGE.md. A visual and motion uplift of the approved v2 flow.
   S1 the body room (the desk in cream beside the lit room in navy; S2 slides over it). S2 the statement (words light at the reading line).
   S3 the stage (pinned; three rooms: the figure told, read, handed over). S4 the closing room (three doors, 997; slides over the stage).
   One loop per screen: the nav's beam on Book. Emergency guidance is static from the first paint. .sc-* is the page, .sf-* is the figure. */

:root { --sky-room: color-mix(in srgb, var(--sky) 22%, #fff); --sc-red: #B42318; }
body { background: #fff; }
main { background: var(--night); }
html { scroll-padding-bottom: 112px; }
/* actions.js's compare tray belongs to the Doctors pages; here it only carries the booking hand-over */
.cmp-tray, .cmp { display: none !important; }
.sc-noise, .sf-noise { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .045; transition: opacity 700ms var(--ease-surface);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 260px 260px repeat; }

/* ── S1 · The body room ───────────────────────────── */
/* full bleed, no card, no radius: the desk on the start 44%, the room on the end 56%. The cream top of S2 shows at first paint. */
.sc-hero { position: relative; z-index: 1; height: max(600px, min(72vh, calc(100svh - 114px)));
  transform: translateY(calc(var(--p, 0) * 42%)) scale(calc(1 - .04 * var(--p, 0))); transform-origin: 50% 50%; }
.sc-hero::after { content: ""; position: absolute; inset: 0; z-index: 9; background: var(--night); opacity: calc(var(--p, 0) * .6); pointer-events: none; }
.sc-card { position: relative; isolation: isolate; height: 100%; overflow: clip; background: var(--cream);
  display: grid; grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); grid-template-areas: "intro stage" "form stage"; grid-template-rows: auto minmax(0, 1fr); }
.sc-intro { grid-area: intro; padding: clamp(28px, 4.4vh, 40px) clamp(28px, 2.8vw, 40px) 0 max(var(--gutter), calc((100vw - var(--maxw)) / 2)); }
[dir="rtl"] .sc-intro { padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2)) clamp(28px, 2.8vw, 40px); }
.sc-form { grid-area: form; min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  padding: 0 clamp(28px, 2.8vw, 40px) 0 max(var(--gutter), calc((100vw - var(--maxw)) / 2)); }
[dir="rtl"] .sc-form { padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2)) clamp(28px, 2.8vw, 40px); }
.sc-eb { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
[dir="rtl"] .sc-eb { letter-spacing: 0; text-transform: none; font-size: 14px; }
.sc-h1 { font-size: clamp(30px, 2.8vw, 40px); line-height: 1.1; font-weight: 700; letter-spacing: -.025em; margin: 0; color: var(--navy); max-width: 24ch; text-wrap: balance; }
.sc-h1 .soft { display: block; color: var(--blue-2); font-weight: 300; }
[dir="rtl"] .sc-h1 { letter-spacing: 0; line-height: 1.25; }
/* started: the title folds into one line so the question and its answers fit the screen (v2) */
.sc-card.started .sc-intro { padding-top: 20px; }
.sc-card.started .sc-eb, .sc-card.started .sc-h1 .soft { display: none; }
.sc-card.started .sc-h1 { font-size: 22px; line-height: 1.25; max-width: none; }

/* the dock: the urgent card, the summary with the one next action, the disclaimer and 997, always at the foot of the flow */
/* it follows the answers (no gap above it); sticky, so a long list never pushes it off the screen */
.sc-dock { position: sticky; z-index: 3; bottom: 0; margin-top: 0; padding: 10px 0 14px; background: linear-gradient(rgba(245,244,240,0), var(--cream) 14px); }
.sc-dock-er { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 8px; color: var(--ink-2); font-size: 13px; line-height: 1.45; }
.sc-dock-er .ic svg { width: 16px; height: 16px; display: block; color: var(--sc-red); }
.sc-dock-er .sc-disc { flex: 1 1 180px; margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); max-width: none; }
.sc-dock-er a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding-inline: 16px; border-radius: 999px; font-weight: 700; font-size: 14px; white-space: nowrap; transition: transform 150ms var(--ease-out), background 200ms; }
.sc-dock-er a:active { transform: scale(.97); }
.sc-dock-er a svg { width: 15px; height: 15px; }
.sc-dock-er .call { background: var(--sc-red); color: #fff; }
.sc-dock-er .call:hover { background: #912018; }
.sc-dock-er .line { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.sc-dock-er .line b { font-weight: 800; }
.sc-dock-er .lt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sc-dock:has(#emSlot .sc-emerg) .sc-dock-er { display: none; }
.sc-dock:has(#emSlot .sc-emerg) .sc-rail .tx { display: none; }   /* urgent: the card takes the summary's place */
.sc-dock:has(#emSlot .sc-emerg) .sc-rail { justify-content: flex-end; padding-block: 8px; }
.sc-dock .sc-emslot { margin: 0 0 8px; }
.sc-dock .sc-emerg { padding: 12px 14px 12px 18px; gap: 10px 14px; }
.sc-dock .sc-emerg h3 { font-size: 18px; margin: 2px 0; }
.sc-dock .sc-emerg p, .sc-dock .sc-emerg .k { display: none; }
.sc-dock .sc-emerg .acts a { height: 44px; }

/* the room: navy from #10305A to the night, noise at 4%, light from above, a lit floor under the feet */
.sc-stagecol { grid-area: stage; position: relative; background: var(--night); min-width: 0; }
.sf-stage { position: relative; height: 100%; overflow: hidden; user-select: none; -webkit-user-select: none; --fz: 1;
  background: radial-gradient(46% 38% at 50% 34%, rgba(95,151,210,.30) 0%, rgba(95,151,210,.10) 55%, rgba(16,48,90,0) 100%), linear-gradient(#10305A, var(--night)); }
.sf-floor { position: absolute; z-index: 0; left: 50%; top: calc(50% + 35.6% * var(--fz)); width: calc(min(100%, 640px) * .62 * var(--fz)); aspect-ratio: 5 / 1; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(143,193,255,.34), rgba(143,193,255,.12) 55%, rgba(143,193,255,0)); transition: opacity 600ms var(--ease-out); }
.sf-floor .ring { position: absolute; inset: 14% 8%; border-radius: 50%; border: 1px solid rgba(143,193,255,.42); }
.sf-stage.zoomed .sf-floor, .sf-stage.cam-in .sf-floor, .sf-stage.cam-in .sf-sbox { opacity: 0; }
.sf-frame { position: absolute; z-index: 2; top: 0; left: 50%; height: 100%; aspect-ratio: 560 / 640; transform: translateX(-50%) scale(calc(var(--z, 1) * var(--fz, 1))); transition: transform 460ms var(--ease-in-out); }
[dir="rtl"] .sf-frame { transform: translateX(-50%) scale(calc(var(--z, 1) * var(--fz, 1))) scaleX(-1); }
.sf-frame.gone { display: none; }
.sf-still { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; transition: opacity 350ms var(--ease-in-out), filter 600ms var(--ease-out);
  filter: drop-shadow(0 -1px 0 rgba(143,193,255,.0)) drop-shadow(0 0 0 rgba(143,193,255,0)); }
/* the top rim: the sky light from above, lit over 600ms on arrival */
.sc-hero.ready .sf-still { filter: drop-shadow(0 -1.5px 0 rgba(170,210,255,.75)) drop-shadow(0 -6px 14px rgba(143,193,255,.28)); }
.sf-still.back, .sf-frame.back .sf-still:not(.back) { opacity: 0; }
.sf-frame.back .sf-still.back { opacity: 1; }
.sf-paths { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; touch-action: pan-y; cursor: pointer; }
.sf-paths .rg { fill: var(--sky); fill-opacity: 0; stroke: none; outline: none; transition: fill-opacity 220ms var(--ease-out); }
.sf-paths .rg.hot { fill-opacity: .34; }
.sf-paths .rg.has { fill-opacity: .14; }
.sf-paths .rg.on { fill-opacity: .55; }
.sf-paths .rg.skin { fill-opacity: .14; transition-duration: 600ms; }
.sf-paths .hit { fill: transparent; cursor: pointer; }
.sf-paths .soft { filter: url(#sfBlur); pointer-events: none; }
.sf-sbox { position: absolute; z-index: 0; top: 0; left: 50%; height: 100%; aspect-ratio: 560 / 640; transform: translateX(-50%) scale(var(--fz, 1)); pointer-events: none; transition: opacity 300ms var(--ease-out); }
.sf-shadow { position: absolute; left: 25%; top: 80%; width: 50%; height: 8.75%; }
.sf-stage.zoomed .sf-sbox, .sf-stage.zoomed .sf-hint { opacity: 0; }
.sf-gl { position: absolute; z-index: 1; inset: 0; }
.sf-gl canvas { display: block; touch-action: pan-y; cursor: grab; }
.sf-stage.dragging .sf-gl canvas { cursor: grabbing; }
.sf-leads { position: absolute; z-index: 4; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.sf-leads line { stroke: rgba(143,193,255,.75); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }
.sf-over { position: absolute; z-index: 5; inset: 0; pointer-events: none; }
.sf-bead { position: absolute; width: 48px; height: 48px; margin: -24px 0 0 -24px; padding: 0; border: 0; border-radius: 50%; background: none; display: grid; place-items: center; pointer-events: auto; cursor: pointer;
  transition: transform 200ms var(--ease-out), opacity 200ms var(--ease-out); }
[dir="rtl"] .sf-bead { margin: -24px -24px 0 0; left: auto; }
.sf-bead i { width: 14px; height: 14px; border-radius: 50%; background: var(--navy); box-shadow: 0 0 0 2px rgba(143,193,255,.9), 0 4px 10px rgba(3,12,26,.45); transition: background 300ms var(--ease-out), box-shadow 300ms var(--ease-out), transform 300ms var(--ease-out); }
.sf-bead:hover i, .sf-bead:focus-visible i { transform: scale(1.2); }
.sf-bead.on i { background: var(--sky); box-shadow: 0 0 0 2.5px var(--navy), 0 0 0 6px rgba(143,193,255,.35); transform: scale(1.25); }
.sf-bead.off { transform: scale(.7); opacity: .5; }
.sf-blab { position: absolute; height: 36px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px; background: #fff; color: var(--navy); font-size: 15px; font-weight: 700; white-space: nowrap; box-shadow: 0 8px 20px -10px rgba(3,12,26,.6);
  transition: opacity 200ms var(--ease-out), box-shadow 300ms var(--ease-out); }
.sf-blab.on { box-shadow: 0 0 0 1.5px var(--sky), 0 8px 20px -10px rgba(3,12,26,.6); }
.sf-blab.off { opacity: .5; }
.sf-mark { position: absolute; left: 0; top: 0; width: 0; height: 0; transition: opacity 300ms var(--ease-out); }
.sf-mark i { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 2px rgba(11,36,67,.55); }
.sf-mark b { position: absolute; left: 7px; top: -9px; font-size: 11px; font-weight: 800; color: #fff; text-shadow: 0 1px 3px rgba(3,12,26,.8); font-variant-numeric: tabular-nums; }
[dir="rtl"] .sf-mark b { left: auto; right: 7px; }
.sf-ping { position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--sky); pointer-events: none; }
.sf-pill { position: absolute; z-index: 6; left: 0; top: 0; padding: 8px 16px; border-radius: 999px; background: #fff; color: var(--navy); font-size: 15px; font-weight: 700; white-space: nowrap; pointer-events: none;
  translate: 0 -50%; scale: .94; opacity: 0; box-shadow: 0 10px 24px -12px rgba(3,12,26,.6); transition: opacity 150ms var(--ease-in), scale 150ms var(--ease-in); }
.sf-pill.show { opacity: 1; scale: 1; transition: opacity 200ms var(--ease-out), scale 200ms var(--ease-out); }

/* the room's controls: translucent white pills at its top corners, 44px targets; the hint at the foot */
.sf-view { position: absolute; z-index: 7; top: 18px; inset-inline-start: 18px; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 999px;
  background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: opacity 300ms var(--ease-out); }
.sf-view .knob { position: absolute; top: 4px; bottom: 4px; inset-inline-start: 4px; width: calc(50% - 4px); border-radius: 999px; background: #fff; transition: transform 420ms var(--ease-out); }
.sf-view.back .knob { transform: translateX(100%); }
[dir="rtl"] .sf-view.back .knob { transform: translateX(-100%); }
.sf-view button { position: relative; border: 0; background: none; height: 44px; min-width: 76px; padding-inline: 18px; border-radius: 999px; font-size: 15px; font-weight: 700; color: rgba(255,255,255,.86); transition: color 300ms; }
.sf-view button[aria-pressed="true"] { color: var(--navy); }
.sf-stage.zoomed .sf-view { opacity: 0; pointer-events: none; }
.sf-backto { position: absolute; z-index: 7; top: 18px; inset-inline-start: 18px; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding-inline: 16px 20px; border: 0; border-radius: 999px; background: #fff; color: var(--navy); font-size: 15px; font-weight: 700;
  transition: transform 150ms var(--ease-out); }
.sf-backto:active { transform: scale(.97); }
.sf-backto[hidden] { display: none; }
.sf-backto svg { width: 16px; height: 16px; }
[dir="rtl"] .sf-backto svg { scale: -1 1; }
.sf-zoom { position: absolute; z-index: 7; top: 18px; inset-inline-end: 18px; display: grid; padding: 4px; gap: 2px; border-radius: 999px;
  background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.sf-zoom button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: #fff; display: grid; place-items: center; transition: background 200ms, transform 150ms var(--ease-out); }
.sf-zoom button:hover { background: rgba(255,255,255,.16); }
.sf-zoom button:active { transform: scale(.94); }
.sf-zoom svg { width: 16px; height: 16px; }
.sf-hint { position: absolute; z-index: 4; inset-inline: 16px; bottom: 16px; margin: 0; text-align: center; font-size: 15px; line-height: 1.4; color: rgba(214,234,255,.7); pointer-events: none; transition: opacity 300ms var(--ease-out); }
.sf-twin { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; list-style: none; }
.sf-stage.kbd { box-shadow: inset 0 0 0 3px var(--sky); }
.sf-stage :focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }

/* ── The desk: the index rail, the instruction, the region, one question at a time ── */
.sc-progrow { position: sticky; z-index: 3; top: 0; display: flex; align-items: center; gap: 10px; padding-top: 18px; background: var(--cream); }
.sc-progrow .sc-prog { flex: 1; min-width: 0; margin: 0; }
/* the index rail: a 1px line, four numbered seats, the current step's title */
.sc-prog { position: relative; list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.sc-prog::before { content: ""; position: absolute; inset-inline: 14px; top: 50%; height: 1px; background: rgba(11,36,67,.18); }
.sc-prog li { position: relative; flex: none; min-width: 0; }
.sc-prog li.cur { flex: 1 1 auto; }
.sc-prog button { position: relative; display: flex; align-items: center; gap: 10px; max-width: 100%; min-height: 48px; padding: 0; border: 0; background: none; color: rgba(11,36,67,.5); font-size: 15px; font-weight: 700; line-height: 1.25; text-align: start; }
.sc-prog button:disabled { cursor: default; }
.sc-prog i { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); box-shadow: inset 0 0 0 1px rgba(11,36,67,.24); font-style: normal; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums;
  transition: background 300ms var(--ease-out), color 300ms, box-shadow 300ms; }
.sc-prog button:not(:disabled):hover i { box-shadow: inset 0 0 0 1.5px var(--navy); }
.sc-prog i svg { position: absolute; width: 14px; height: 14px; opacity: 0; transition: opacity 200ms; }
.sc-prog button span { display: none; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-inline-end: 10px; background: var(--cream); }
.sc-prog .cur button span { display: block; color: var(--navy); }
.sc-prog .done i { background: var(--blue); color: #fff; box-shadow: none; }
.sc-prog .done i b { opacity: 0; }
.sc-prog .done i svg { opacity: 1; }
.sc-prog .cur i { background: var(--navy); color: #fff; box-shadow: 0 0 0 4px var(--cream), 0 0 0 5px rgba(11,36,67,.18); }
.sc-backstep { flex: none; display: inline-grid; place-items: center; width: 48px; height: 48px; margin: 0; padding: 0; border: 1px solid rgba(11,36,67,.22); border-radius: 50%; background: #fff; color: var(--navy); transition: background 200ms, transform 150ms var(--ease-out); }
.sc-backstep:hover { background: rgba(11,36,67,.06); }
.sc-backstep:active { transform: scale(.97); }
.sc-backstep[hidden] { display: none; }
.sc-backstep svg { width: 18px; height: 18px; flex: none; }
[dir="rtl"] .sc-backstep svg { scale: -1 1; }
.sc-stepbox { position: relative; padding-top: 14px; }
.sc-stepbox[hidden] { display: none; }
.sc-pane[hidden] { display: none; }
.sc-region .k, .sc-rail .k, .sc-where .k { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
[dir="rtl"] .sc-region .k, [dir="rtl"] .sc-rail .k, [dir="rtl"] .sc-where .k { letter-spacing: 0; text-transform: none; font-size: 14px; }
.sc-region > .k { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* the index rail already says it */
/* the region: nothing picked, the instruction leads at 22px; once picked, the region's name at 40px */
.sc-region .v { margin: 0; font-size: clamp(30px, 2.8vw, 40px); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; color: var(--navy); overflow: hidden; }
.sc-region .v:not(.set) { display: none; }
[dir="rtl"] .sc-region .v { letter-spacing: 0; line-height: 1.3; }
.sc-region .v .in-txt { display: inline-block; animation: scUp 600ms var(--ease-out) both; }
@keyframes scUp { from { transform: translateY(60%); opacity: 0; } to { transform: none; opacity: 1; } }
.sc-region .sub { margin: 0; font-size: clamp(18px, 1.55vw, 22px); line-height: 1.35; font-weight: 500; color: var(--navy); max-width: 30ch; }
.sc-region .v.set + .sub { margin-top: 8px; font-size: 17px; font-weight: 400; color: var(--ink-2); max-width: 44ch; }
.sc-pickrow { margin-top: 16px; }
.sc-select { position: relative; display: block; max-width: 440px; }
.sc-select select { width: 100%; height: 56px; padding: 0 48px 0 18px; border: 1px solid rgba(11,36,67,.26); border-radius: 999px; background: #fff; color: var(--navy); font: inherit; font-size: 17px; font-weight: 600; appearance: none; -webkit-appearance: none; cursor: pointer; transition: border-color 200ms; }
[dir="rtl"] .sc-select select { padding: 0 18px 0 48px; }
.sc-select select:hover { border-color: var(--navy); }
.sc-select svg { position: absolute; top: 50%; inset-inline-end: 20px; width: 14px; height: 14px; margin-top: -7px; color: var(--navy); pointer-events: none; }
.sc-where { margin-top: 18px; }
.sc-where[hidden] { display: none; }
.sc-subs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.sc-shorts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sc-short { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 4px 18px 4px 6px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--navy); text-align: start; font-size: 16px;
  transition: border-color 250ms, background 250ms, color 250ms, transform 150ms var(--ease-out); }
[dir="rtl"] .sc-short { padding: 4px 6px 4px 18px; }
.sc-short:hover { border-color: var(--line); background: #fff; }
.sc-short:active { transform: scale(.97); }
.sc-short .si { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: background 250ms; }
.sc-short .si svg { width: 18px; height: 18px; }
.sc-short b { font-weight: 700; }
.sc-short[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.sc-short[aria-pressed="true"] .si { background: rgba(255,255,255,.14); box-shadow: none; }
.sc-q h3 { margin: 0; display: flex; align-items: baseline; gap: 12px; font-size: clamp(20px, 1.7vw, 24px); line-height: 1.25; font-weight: 700; color: var(--navy); outline: none; }
.sc-q h3 .n { display: none; }
.sc-q .hint { margin: 6px 0 0; font-size: 17px; line-height: 1.45; color: var(--ink-2); }
.sc-q .hint:empty { display: none; }
.sc-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.sc-chips:empty { display: none; }
.sc-chip { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 20px; border-radius: 999px; border: 1px solid rgba(11,36,67,.22); background: #fff; color: var(--navy); font-size: 17px; font-weight: 600; line-height: 1.25; text-align: start;
  transition: background 220ms var(--ease-out), color 220ms, border-color 220ms, transform 150ms var(--ease-out); }
.sc-chip:hover { border-color: var(--navy); }
.sc-chip:active { transform: scale(.96); }
.sc-chip .tick { width: 0; height: 16px; overflow: hidden; flex: none; transition: width 260ms var(--ease-out); margin-inline-end: -8px; }
.sc-chip .tick svg { width: 16px; height: 16px; }
.sc-chip .tick path { stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset 320ms var(--ease-out) 80ms; }
.sc-chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.sc-chip[aria-pressed="true"] .tick { width: 16px; margin-inline-end: 0; }
.sc-chip[aria-pressed="true"] .tick path { stroke-dashoffset: 0; }
.sc-chip.more { background: transparent; }
.sc-chip.more svg { width: 14px; height: 14px; }
.sc-chip.cas { animation: scRise 600ms var(--ease-out) both; animation-delay: calc(var(--j, 0) * 35ms); }
@keyframes scRise { from { opacity: 0; transform: translateY(var(--rise)); } to { opacity: 1; transform: none; } }

/* duration: one line, four fixed stops, a knob and a fill from the start side */
.sc-time { --w: 300px; --p: 0; --pad: 52px; position: relative; height: 84px; margin-top: 22px; touch-action: pan-y; }
.sc-time .trk { position: absolute; top: 20px; inset-inline: var(--pad); height: 3px; border-radius: 2px; background: rgba(11,36,67,.14); }
.sc-time .fill { position: absolute; inset: 0; border-radius: 2px; background: var(--navy); transform-origin: 0 50%; transform: scaleX(0); transition: transform 460ms var(--ease-in-out); }
[dir="rtl"] .sc-time .fill { transform-origin: 100% 50%; }
.sc-time.set .fill { transform: scaleX(var(--p)); }
.sc-time .knob { position: absolute; z-index: 2; top: 0; left: var(--pad); width: 42px; height: 42px; margin-left: -21px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; cursor: grab; touch-action: none;
  opacity: 0; pointer-events: none; transform: translateX(calc(var(--p) * var(--w))) scale(.6); transition: transform 300ms var(--ease-out), opacity 200ms var(--ease-out); box-shadow: 0 0 0 4px var(--cream); }
[dir="rtl"] .sc-time .knob { left: auto; right: var(--pad); margin: 0 -21px 0 0; transform: translateX(calc(var(--p) * var(--w) * -1)) scale(.6); }
.sc-time.set .knob { opacity: 1; pointer-events: auto; transform: translateX(calc(var(--p) * var(--w))); }
[dir="rtl"] .sc-time.set .knob { transform: translateX(calc(var(--p) * var(--w) * -1)); }
.sc-time .knob svg { width: 18px; height: 18px; }
.sc-time .knob path { stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset 320ms var(--ease-out) 120ms; }
.sc-time.set .knob path { stroke-dashoffset: 0; }
.sc-time.dragging .knob, .sc-time.dragging .fill, .sc-time.now .knob, .sc-time.now .fill { transition: none; }
.sc-time.dragging .knob { cursor: grabbing; }
.sc-time .stops { position: absolute; inset: 0; }
.sc-time .stop { position: absolute; top: 0; left: calc(var(--pad) + var(--k) * var(--w) / 3); width: 104px; margin-left: -52px; height: 84px; padding: 0; border: 0; background: none; border-radius: 12px; display: grid; justify-items: center; align-content: start; gap: 10px; color: var(--ink-2); }
[dir="rtl"] .sc-time .stop { left: auto; right: calc(var(--pad) + var(--k) * var(--w) / 3); margin: 0 -52px 0 0; }
.sc-time .stop i { width: 18px; height: 18px; margin-top: 12px; border-radius: 50%; background: #fff; border: 2px solid rgba(11,36,67,.28); transition: background 300ms var(--ease-out), border-color 300ms var(--ease-out); }
.sc-time .stop.past i { background: var(--navy); border-color: var(--navy); }
.sc-time .stop span { font-size: 16px; font-weight: 600; line-height: 1.2; transition: color 300ms; white-space: nowrap; }
.sc-time .stop[aria-checked="true"] span { color: var(--navy); font-weight: 800; }
.sc-time .stop:hover span { color: var(--navy); }

.sc-urg { display: grid; gap: 10px; margin-top: 18px; }
.sc-opt { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 64px; padding: 10px 20px; border-radius: 16px; border: 1px solid rgba(11,36,67,.16); background: #fff; color: var(--navy); text-align: start;
  transition: background 300ms var(--ease-out), color 300ms, border-color 300ms, transform 150ms var(--ease-out); }
.sc-opt:hover { border-color: var(--navy); }
.sc-opt:active { transform: scale(.99); }
.sc-opt > svg { width: 24px; height: 24px; flex: none; }
.sc-opt .tx { flex: 1; display: grid; gap: 2px; }
.sc-opt b { font-size: 17px; }
.sc-opt small { font-size: 15px; color: var(--muted); transition: color 300ms; }
.sc-opt .tk { width: 20px; height: 20px; flex: none; color: var(--sky); }
.sc-opt .tk svg { width: 20px; height: 20px; display: block; }
.sc-opt .tk path { stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset 320ms var(--ease-out) 80ms; }
.sc-opt[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.sc-opt[aria-pressed="true"] small { color: rgba(255,255,255,.72); }
.sc-opt[aria-pressed="true"] .tk path { stroke-dashoffset: 0; }
.sc-opt[data-id="urgent"][aria-pressed="true"] { background: var(--sc-red); border-color: var(--sc-red); }
.sc-opt[data-id="urgent"][aria-pressed="true"] .tk { color: #fff; }

/* the emergency card: a red hairline, the words, two numbers. One rise, nothing else. */
.sc-emslot:empty { display: none; }
.sc-emslot { margin-top: 22px; }
.sc-emerg { position: relative; display: flex; align-items: center; gap: 18px 20px; flex-wrap: wrap; padding: 20px 22px; border-radius: 18px; background: #FEF3F2; border: 1px solid #FECDCA; overflow: hidden; }
.sc-emerg::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 4px; background: var(--sc-red); }
.sc-emerg .tx { flex: 1; min-width: 240px; }
.sc-emerg .k { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sc-red); }
[dir="rtl"] .sc-emerg .k { letter-spacing: 0; font-size: 13px; text-transform: none; }
.sc-emerg h3 { margin: 6px 0 4px; font-size: 20px; line-height: 1.3; font-weight: 700; color: var(--navy); }
.sc-emerg p { margin: 0; font-size: 17px; color: var(--ink-2); }
.sc-emerg .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-emerg .acts a { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding-inline: 20px; border-radius: 999px; font-weight: 700; white-space: nowrap; }
.sc-emerg .call { background: var(--sc-red); color: #fff; font-size: 16px; }
.sc-emerg .line { border: 1px solid rgba(180,35,24,.3); background: #fff; color: var(--navy); font-size: 14px; }
.sc-emerg .line b { font-weight: 800; }
.sc-emerg svg { width: 16px; height: 16px; }
.sc-res-in .sc-emerg { margin-bottom: 14px; }

/* the summary rail: the patient's own summary, built as they go */
.sc-rail { position: relative; display: none; align-items: center; gap: 14px; padding: 12px 12px 12px 18px; border-radius: 20px; background: #fff; border: 1px solid var(--line); overflow: hidden;
  transition: border-color 300ms, box-shadow 300ms; }
[dir="rtl"] .sc-rail { padding: 12px 18px 12px 12px; }
.sc-rail.on { display: flex; }
.sc-rail.done { display: none; }
.sc-rail::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 3px; background: transparent; transition: background-color 200ms var(--ease-out); }
.sc-rail.urgent::before { background: var(--sc-red); }
.sc-rail.ready { border-color: rgba(11,36,67,.32); box-shadow: 0 18px 40px -24px rgba(11,36,67,.35); }
.sc-rail .tx { flex: 1; min-width: 0; }
/* the caption wraps, never an ellipsis (it carries the area and the count; the rest are tags) */
.sc-rail .k { line-height: 1.45; overflow-wrap: anywhere; }
.sc-rail .cnt { display: inline-flex; overflow: hidden; vertical-align: bottom; }
.sc-rail .cnt i { display: inline-block; font-style: normal; }
.sc-rail .v { margin: 2px 0 0; font-size: 15px; line-height: 1.4; font-weight: 500; color: var(--navy); }
.sc-rail .v:empty { display: none; }
.sc-rail .btn { position: relative; flex: none; --h: 52px; font-size: 16px; }
.sc-rail .btn[disabled] { background: var(--tint); border-color: var(--tint); color: rgba(11,36,67,.45); cursor: not-allowed; }
.sc-rail .btn[disabled] .arr { background: rgba(11,36,67,.06); color: rgba(11,36,67,.45); }
.sc-mini { display: none; }
/* the tags: one row that keeps the dock one height however many answers there are. Every tag whole (no ellipsis, never
   cut by a hard edge): the row glides sideways, snaps to a tag's edge, and a soft fade shows there is more on that side. */
.sc-picked { display: flex; flex-wrap: nowrap; gap: 6px; margin-top: 6px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scroll-padding-inline: 2px; scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
  --fs: 0px; --fe: 0px; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fs), #000 calc(100% - var(--fe)), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 var(--fs), #000 calc(100% - var(--fe)), transparent 100%); }
.sc-picked::-webkit-scrollbar { display: none; }
.sc-picked.more-l { --fs: 36px; }
.sc-picked.more-r { --fe: 36px; }
.sc-picked .sc-tag { flex: none; scroll-snap-align: start; }
.sc-picked:empty { display: none; }
.sc-tag { display: inline-flex; align-items: center; gap: 2px; min-height: 40px; padding: 0 4px; border-radius: 999px; background: var(--tint); color: var(--navy); font-size: 15px; font-weight: 600; }
.sc-tag .lb { min-height: 40px; padding: 0 10px; border: 0; background: none; color: inherit; font: inherit; border-radius: 999px; cursor: pointer; }
.sc-tag .lb:hover { text-decoration: underline; text-underline-offset: 3px; }
.sc-tag.wait { opacity: 0; }
.sc-tag.red { background: #FEE4E2; color: #912018; }
.sc-tag .x { width: 32px; height: 32px; flex: none; border: 0; border-radius: 50%; background: rgba(11,36,67,.08); display: grid; place-items: center; color: var(--navy); transition: background 200ms; }
.sc-tag .x:hover { background: rgba(11,36,67,.18); }
.sc-tag svg { width: 12px; height: 12px; }
.sc-bead { position: fixed; z-index: 60; left: 0; top: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px rgba(143,193,255,.35); pointer-events: none; }
.sc-bead.seed { z-index: 99; }

/* the result: the patient's own words first, the emergency card when it applies, then Dr Kings */
.sc-result { margin-top: 22px; outline: none; padding: clamp(20px, 2vw, 28px); border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.sc-result[hidden] { display: none; }
.sc-result .eyebrow { margin-bottom: 10px; }
.sc-sel { margin: 0 0 18px; font-size: 18px; color: var(--ink-2); max-width: 70ch; }
.sc-ho { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-card); background: var(--navy); color: #fff; }
.sc-ho::after { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; top: -160px; inset-inline-end: -80px; background: radial-gradient(circle, rgba(143,193,255,.22), transparent 65%); }
.sc-ho .who { display: flex; gap: 18px; align-items: center; flex: 1; min-width: min(100%, 300px); }
.sc-ho .who img { width: 64px; height: 64px; border-radius: 50%; border: 2px solid rgba(255,255,255,.9); flex: none; object-fit: cover; background: var(--navy); }
.sc-ho .k { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); }
[dir="rtl"] .sc-ho .k { letter-spacing: 0; font-size: 13px; text-transform: none; }
.sc-ho h3 { margin: 6px 0 6px; font-size: clamp(20px, 1.7vw, 24px); line-height: 1.25; font-weight: 700; }
.sc-ho p { margin: 0; font-size: 17px; color: rgba(255,255,255,.76); max-width: 60ch; }
/* the FAB's bubble would sit on the dock's numbers, so it stays closed here */
.drkings-fab { transition: opacity 300ms var(--ease-out), bottom 400ms var(--ease-out); }
.drkings-fab .bubble { display: none; }

/* the Meet Dr Kings link (stage foot, closing) */
.sc-meet { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid currentColor; color: inherit; font-weight: 700; font-size: 15px; width: max-content;
  transition: background 200ms, color 200ms, border-color 200ms, transform 150ms var(--ease-out); }
.sc-meet:active { transform: scale(.97); }
.sc-meet svg { width: 18px; height: 18px; }
.sc-meet .go { width: 14px; height: 14px; }
[dir="rtl"] .sc-meet .go { scale: -1 1; }

/* ── S2 · The statement ───────────────────────────── */
.sc-say { position: relative; z-index: 2; background: var(--cream); padding-block: clamp(96px, 9.4vw, 136px) clamp(110px, 10.4vw, 150px); box-shadow: 0 -1px 0 rgba(11,36,67,.08); }
.sc-statement { margin: 0; font-size: clamp(26px, 3.1vw, 44px); line-height: 1.25; font-weight: 400; color: var(--navy); max-width: 26ch; }
[dir="rtl"] .sc-statement { font-weight: 500; line-height: 1.5; }
.sc-statement .ow { color: rgba(11,36,67,.18); transition: color 180ms var(--ease-out); }
.sc-statement .ow.lit { color: var(--navy); }
.sc-statement .ow.end.lit { color: var(--blue); }

/* ── S3 · The stage: three rooms ──────────────────── */
/* 100svh pinned, three rooms at 85svh of scroll each, then 100svh during which the closing room slides over it */
/* the wrapper ends exactly at the closing room's foot (--ch is its measured height), so the pinned stage never reaches the footer */
.sc-walk { position: relative; z-index: 3; height: calc(355svh + var(--ch, 700px)); }
.sc-walk .hem path { fill: var(--navy); }
.sc-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; isolation: isolate;
  --g: var(--navy); --fg: #fff; --fg2: rgba(255,255,255,.78); --cap: var(--sky); --rail: rgba(255,255,255,.24); --dim: rgba(255,255,255,.55);
  background: var(--g); color: var(--fg); transition: background-color 700ms var(--ease-surface), color 700ms var(--ease-surface);
  transform: scale(calc(1 - .04 * var(--p, 0))); transform-origin: 50% 0; }
.sc-stage[data-tone="white"] { --g: #fff; --fg: var(--navy); --fg2: var(--ink-2); --cap: var(--blue); --rail: var(--line); --dim: rgba(11,36,67,.55); }
.sc-stage[data-tone="sky"] { --g: var(--sky-room); --fg: var(--navy); --fg2: var(--ink-2); --cap: var(--blue); --rail: rgba(11,36,67,.2); --dim: rgba(11,36,67,.55); }
.sc-stage::after { content: ""; position: absolute; inset: 0; z-index: 6; background: var(--night); opacity: calc(var(--p, 0) * .6); pointer-events: none; }
.sc-stage:not([data-tone="navy"]) .sc-noise { opacity: 0; }
.sc-pane-wrap { position: absolute; inset-block: 0; inset-inline-end: 0; width: 46%; z-index: 1; }
.sc-room { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 96px 32px 48px;
  opacity: 0; visibility: hidden; transform: translateY(18px); transition: opacity 220ms var(--ease-in), transform 220ms var(--ease-in), visibility 0s 220ms; }
.sc-room.on { opacity: 1; visibility: visible; transform: none; transition: opacity 520ms var(--ease-out) 220ms, transform 520ms var(--ease-out) 220ms, visibility 0s; }
.sc-room-fig { position: relative; height: min(660px, calc(100svh - 230px)); aspect-ratio: 560 / 640; flex: none; --H: min(660px, calc(100svh - 230px)); }
.sc-room-fig .fr { position: absolute; inset: 0; }
[dir="rtl"] .sc-room-fig .fr { transform: scaleX(-1); }
.sc-room-fig img, .sc-room-fig svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sc-room-fig img { filter: drop-shadow(0 -1.5px 0 rgba(170,210,255,.75)) drop-shadow(0 -6px 14px rgba(143,193,255,.28)); }
.sc-room-fig .sf-floor { --fz: 1; top: 85.5%; width: 74%; }
/* room 1 draws no outlines over the still (one figure, never a wireframe twin); only the lit region shows */
.sc-room-fig svg path { fill: none; stroke: none; stroke-width: 1; vector-effect: non-scaling-stroke; }
.sc-room-fig svg path.lit { fill: var(--sky); fill-opacity: .95; stroke: #fff; stroke-opacity: .9; stroke-width: 1.4; filter: url(#scGlow); }
/* room 2: the same figure as a line drawing, the knee in blue, a reading line that sweeps it once */
.sc-room-fig.line svg path { stroke: var(--navy); stroke-opacity: .22; stroke-width: 1.1; }
.sc-room-fig.line svg path.lit { fill: var(--blue); fill-opacity: .16; stroke: var(--blue); stroke-opacity: 1; stroke-width: 1.6; filter: none; }
.sc-scan { position: absolute; inset-inline: -8%; top: 0; height: 2px; background: linear-gradient(90deg, rgba(44,107,176,0), var(--blue) 30%, var(--blue) 70%, rgba(44,107,176,0)); opacity: 0; }
.sc-scan::after { content: ""; position: absolute; inset-inline: 0; bottom: 2px; height: 56px; background: linear-gradient(to top, rgba(143,193,255,.28), rgba(143,193,255,0)); }
.sc-room-2.on .sc-scan { animation: scScan 1400ms var(--ease-in-out) 420ms both; }
@keyframes scScan { 0% { top: 12%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { top: 88%; opacity: 0; } }
.sc-room-tags { position: absolute; top: calc(50% + 24px + .16 * min(660px, calc(100svh - 230px)) - 64px); inset-inline-start: calc(50% + 64px); display: grid; gap: 8px; justify-items: start; }
.sc-room-tags span { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; background: #fff; color: var(--navy); font-size: 15px; font-weight: 700; white-space: nowrap; box-shadow: 0 10px 24px -14px rgba(3,12,26,.7); }
.sc-room-tags span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.sc-room-1.on .sc-room-tags span { animation: scTag 520ms var(--ease-out) both; animation-delay: calc(420ms + var(--j, 0) * 90ms); }
@keyframes scTag { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
/* the four marks on a 1px rail: Emergency, Urgent, Soon, Planned */
.sc-marks { position: relative; list-style: none; margin: 0; padding: 0; width: min(440px, 100%); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sc-marks::before { content: ""; position: absolute; top: 7px; inset-inline: 12.5%; height: 1px; background: var(--rail); transition: background 700ms var(--ease-surface); }
.sc-marks li { position: relative; display: grid; justify-items: center; gap: 10px; text-align: center; font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--dim); padding-inline: 4px; transition: color 500ms var(--ease-out); }
.sc-marks li i { width: 15px; height: 15px; border-radius: 50%; background: var(--g); box-shadow: inset 0 0 0 1.5px currentColor; transition: background 500ms var(--ease-out), transform 500ms var(--ease-out), box-shadow 500ms; }
.sc-marks li[data-id="emergency"] i { box-shadow: inset 0 0 0 1.5px var(--sc-red); }
.sc-marks li.on { color: var(--fg); }
.sc-marks li.on i { background: var(--blue); box-shadow: 0 0 0 5px rgba(44,107,176,.18); transform: scale(1.2); }
.sc-room-3.on .sc-marks li.on i { transition-delay: 600ms; }
/* room 3: the doctor's face, the hand-off line */
.sc-room-doc { display: grid; justify-items: center; text-align: center; gap: 6px; }
.sc-room-doc .face { width: min(220px, 26svh); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--navy); box-shadow: 0 0 0 8px rgba(255,255,255,.7), 0 30px 60px -30px rgba(11,36,67,.6); margin-bottom: 18px; }
.sc-room-doc .face img { width: 100%; height: 100%; object-fit: cover; }
.sc-room-doc .k { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
[dir="rtl"] .sc-room-doc .k { letter-spacing: 0; text-transform: none; font-size: 14px; }
.sc-room-doc .t { margin: 0; font-size: clamp(20px, 1.7vw, 24px); font-weight: 700; color: var(--navy); }

.sc-stage-in { position: relative; z-index: 2; height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding-block: clamp(96px, 12vh, 112px) clamp(40px, 6vh, 56px); }
.sc-stage-top { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; max-width: 54%; padding-inline-end: 48px; }
.sc-cap { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.sc-ebx { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cap); margin: 0; transition: color 700ms var(--ease-surface); }
[dir="rtl"] .sc-ebx { letter-spacing: 0; text-transform: none; font-size: 14px; }
.sc-h2 { font-size: clamp(17px, 1.5vw, 22px); font-weight: 500; color: var(--fg2); margin: 0; line-height: 1.25; letter-spacing: 0; transition: color 700ms var(--ease-surface); }
.sc-count { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--fg2); margin: 0; white-space: nowrap; direction: ltr; transition: color 700ms var(--ease-surface); }
/* the chapter list: three titles in order; the current one at 56px with its body, the others at 22px and 55% */
.sc-chapters { list-style: none; margin: 0; padding: 0 48px 0 0; max-width: 54%; display: flex; flex-direction: column; justify-content: center; gap: clamp(14px, 2.4vh, 26px); min-height: 0; }
[dir="rtl"] .sc-chapters { padding: 0 0 0 48px; }
.sc-ch { display: grid; grid-template-rows: auto 0fr; transition: grid-template-rows 520ms var(--ease-out); }
.sc-ch.on { grid-template-rows: auto 1fr; }
.sc-ch h3 { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 500; letter-spacing: 0; color: var(--fg); opacity: .55; max-width: 22ch; transition: font-size 520ms var(--ease-out), opacity 520ms var(--ease-out), color 700ms var(--ease-surface); }
.sc-ch.on h3 { font-size: clamp(32px, 3.9vw, 56px); line-height: 1.05; font-weight: 700; letter-spacing: -.02em; opacity: 1; max-width: 16ch; }
[dir="rtl"] .sc-ch h3, [dir="rtl"] .sc-ch.on h3 { letter-spacing: 0; line-height: 1.3; }
.sc-ch p { min-height: 0; overflow: hidden; margin: 0; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.55; color: var(--fg2); max-width: 44ch; opacity: 0; transition: opacity 300ms var(--ease-in), color 700ms var(--ease-surface); }
.sc-ch.on p { opacity: 1; padding-top: clamp(12px, 2vh, 20px); transition: opacity 520ms var(--ease-out) 160ms, color 700ms var(--ease-surface); }
[dir="rtl"] .sc-ch p { line-height: 1.75; }
.sc-stage-in > .sc-meet { color: var(--fg); border-color: color-mix(in srgb, currentColor 30%, transparent); }
.sc-stage-in > .sc-meet:hover { background: var(--fg); color: var(--g); border-color: var(--fg); }

/* ── S4 · The closing room ────────────────────────── */
.sc-close { position: relative; z-index: 4; margin-top: calc(-1 * var(--ch, 700px)); background: #fff; color: var(--navy); padding-block: clamp(64px, 5vw, 72px) clamp(72px, 5.6vw, 80px); }
.sc-close-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.sc-close-h { font-size: clamp(32px, 3.9vw, 56px); line-height: 1.05; font-weight: 700; letter-spacing: -.02em; margin: 0; max-width: 16ch; color: var(--navy); }
.sc-close-h .hi { color: var(--blue); font-weight: 700; }
[dir="rtl"] .sc-close-h { letter-spacing: 0; line-height: 1.3; }
.sc-doors { list-style: none; margin: clamp(24px, 2.6vw, 36px) 0 0; padding: 0; border-top: 1px solid var(--line); }
.sc-doors li { border-bottom: 1px solid var(--line); }
.sc-door { display: flex; align-items: center; gap: 20px; min-height: 80px; padding-block: 12px; color: var(--navy); }
.sc-door .di { width: 56px; height: 56px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--cream); transition: background 300ms var(--ease-out), color 300ms; }
.sc-door .di svg { width: 22px; height: 22px; }
.sc-door .dt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.sc-door .dt b { font-size: clamp(20px, 1.7vw, 24px); font-weight: 700; line-height: 1.2; }
.sc-door .dt small { font-size: 15px; font-weight: 600; color: var(--muted); }
.sc-door .go { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: background 300ms, color 300ms, border-color 300ms; }
.sc-door .go svg { width: 16px; height: 16px; transition: transform 400ms var(--ease-out); }
[dir="rtl"] .sc-door .go svg { scale: -1 1; }
.sc-door:hover .di { background: var(--navy); color: #fff; }
.sc-door:hover .go { background: var(--navy); color: #fff; border-color: var(--navy); }
.sc-door:hover .go svg { transform: translateX(3px); }
[dir="rtl"] .sc-door:hover .go svg { transform: translateX(-3px); }
.sc-close-er { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin-top: 20px; }
.sc-close-er .ic svg { width: 20px; height: 20px; display: block; color: var(--sc-red); }
.sc-close-er p { flex: 1 1 280px; margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 52ch; }
.sc-call { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding-inline: 24px; border-radius: 999px; background: var(--sc-red); color: #fff; font-weight: 700; font-size: 16px; white-space: nowrap; transition: background 200ms, transform 150ms var(--ease-out); }
.sc-call:hover { background: #912018; }
.sc-call:active { transform: scale(.97); }
.sc-call svg { width: 16px; height: 16px; }
.sc-close-pic { display: grid; justify-items: center; gap: 28px; }
.sc-portrait { position: relative; width: 220px; aspect-ratio: 1; }
.sc-portrait > img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--navy); box-shadow: 0 0 0 10px var(--sky-room), 0 40px 70px -36px rgba(11,36,67,.55); }
/* the figure arrives as a 72px badge on the portrait's lower start edge, its lit dot still on the knee */
.sc-figbadge { position: absolute; width: 72px; height: 72px; bottom: -4px; inset-inline-start: -10px; border-radius: 50%; overflow: hidden; background: radial-gradient(60% 60% at 50% 35%, #1D4F8F, var(--night)); box-shadow: 0 0 0 4px #fff, 0 14px 30px -14px rgba(11,36,67,.6);
  opacity: 0; transform: translateY(24px); transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out); }
.sc-close.in .sc-figbadge { opacity: 1; transform: none; transition-delay: 200ms; }
.sc-figbadge img { position: absolute; left: 50%; top: 50%; width: 108px; height: auto; transform: translate(-50%, -50%); }
[dir="rtl"] .sc-figbadge img { transform: translate(-50%, -50%) scaleX(-1); }
.sc-figbadge .dot { position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 1.5px var(--navy), 0 0 8px 2px rgba(143,193,255,.7); }
.sc-close-pic .sc-meet { color: var(--navy); border-color: var(--line); }
.sc-close-pic .sc-meet:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ── The assistant surface (v1) ─────────────────────── */
.sc-scrim { position: fixed; inset: 0; z-index: 95; background: rgba(11,36,67,.32); opacity: 0; pointer-events: none; transition: opacity 300ms var(--ease-out); }
.sc-scrim.on { opacity: 1; pointer-events: auto; }
.sc-morph { position: fixed; z-index: 98; left: 0; top: 0; width: 0; height: 0; display: none; overflow: hidden; background: var(--navy); pointer-events: none; }
.sc-morph.run { display: block; }
.sc-morph .face { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; overflow: hidden; background: var(--navy); box-shadow: 0 0 0 3px #fff; }
.sc-morph .face img { width: 100%; height: 100%; object-fit: cover; }
.sc-morph .ring { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: 30px 0 0 -13px; border-radius: 50%; border: 2.5px solid rgba(11,36,67,.14); border-top-color: var(--navy); opacity: 0; }
.sc-morph.run .ring { animation: scSpin 700ms linear infinite; }
.sc-morph .lbl { position: absolute; left: 0; right: 0; top: 50%; margin-top: 70px; text-align: center; font-size: 13px; font-weight: 600; color: #8a90a0; opacity: 0; }
@keyframes scSpin { to { transform: rotate(360deg); } }
.sc-drawer { position: fixed; z-index: 97; top: 0; bottom: 0; right: 0; width: min(520px, 100vw); display: flex; flex-direction: column; background: #FAFAFB; color: var(--ink); visibility: hidden; opacity: 0; box-shadow: -8px 0 32px rgba(11,36,67,.25); }
[dir="rtl"] .sc-drawer { right: auto; left: 0; box-shadow: 8px 0 32px rgba(11,36,67,.25); }
.sc-drawer.on { visibility: visible; opacity: 1; }
.sc-drawer.on.fade { transition: opacity 200ms var(--ease-out); }
.sc-dr-h { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px; border-bottom: 1px solid var(--line-2); background: #fff; }
[dir="rtl"] .sc-dr-h { padding: 14px 18px 14px 14px; }
.sc-dr-h .av { position: relative; width: 40px; height: 40px; flex: none; }
.sc-dr-h .av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--navy); }
.sc-dr-h .av i { position: absolute; bottom: 0; inset-inline-end: 0; width: 11px; height: 11px; border-radius: 50%; background: #F79009; border: 2px solid #fff; }
.sc-dr-h b { flex: 1; font-size: 16px; color: var(--navy); }
.sc-dr-x { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--navy); transition: background 200ms, transform 150ms var(--ease-out); }
.sc-dr-x:hover { background: var(--tint); }
.sc-dr-x:active { transform: scale(.92); }
.sc-dr-x svg { width: 16px; height: 16px; }
.sc-dr-b { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 28px 24px 32px; display: flex; flex-direction: column; gap: 18px; }
.sc-dr-b > * { animation: scRise 600ms var(--ease-out) both; }
.sc-dr-b > *:nth-child(2) { animation-delay: 60ms; } .sc-dr-b > *:nth-child(3) { animation-delay: 120ms; } .sc-dr-b > *:nth-child(4) { animation-delay: 180ms; } .sc-dr-b > *:nth-child(5) { animation-delay: 240ms; }
.sc-dr-b > .sc-dr-er { animation: none; }
.sc-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #FFF4E5; color: #93370D; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border: 1px dashed #F5B971; }
[dir="rtl"] .sc-badge { letter-spacing: 0; font-size: 13px; text-transform: none; }
.sc-badge i { width: 7px; height: 7px; border-radius: 50%; background: #F79009; }
.sc-dr-b h4 { margin: 0; font-size: 22px; line-height: 1.3; color: var(--navy); font-weight: 700; }
.sc-dr-b p { margin: 0; font-size: 15px; color: var(--ink-2); }
.sc-dr-b code { font-size: 13px; background: var(--tint); padding: 2px 6px; border-radius: 6px; direction: ltr; unicode-bidi: isolate; }
.sc-seed { border-radius: 16px; background: #fff; border: 1px solid var(--line); padding: 16px 18px; }
.sc-seed .k { margin: 0 0 8px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.sc-seed ul { margin: 0; padding-inline-start: 18px; font-size: 14.5px; color: var(--navy); }
.sc-seed li + li { margin-top: 4px; }
.sc-dr-b .btn { align-self: flex-start; }
.sc-dr-er { margin-top: auto; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: #FEF3F2; color: #7A271A; font-size: 14px; line-height: 1.45; }
.sc-dr-er svg { width: 18px; height: 18px; flex: none; color: var(--sc-red); }
.sc-dr-er span { flex: 1; min-width: 200px; }
.sc-dr-er a { display: inline-flex; align-items: center; height: 44px; padding-inline: 16px; border-radius: 999px; background: var(--sc-red); color: #fff; font-weight: 700; white-space: nowrap; }
html.sc-open { overflow: hidden; }
html.sc-open .drkings-fab { opacity: 0; pointer-events: none; }

/* ── Short desktop screens: the title keeps one line, the answers stay inside the screen ── */
@media (min-width: 901px) and (max-height: 820px) {
  .sc-intro { padding-top: 24px; }
  .sc-eb { margin-bottom: 8px; }
  .sc-card.started .sc-region .sub { display: none; }
  .sc-opt { min-height: 56px; padding-block: 8px; }
  .sc-prog button { min-height: 44px; }
  .sc-progrow { padding-top: 12px; }
}

/* ── Tablet and phone: the room stacks above the desk ── */
@media (max-width: 900px) {
  .sc-hero { height: auto; transform: none; }
  .sc-hero::after { display: none; }
  .sc-card { height: auto; overflow: visible; grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "stage" "form"; grid-template-rows: auto auto auto; }
  /* navy from the top: the caption and the h1 in white, then the room */
  .sc-intro, [dir="rtl"] .sc-intro { position: relative; background: #10305A; padding: 22px var(--gutter) 18px; }
  .sc-eb { color: var(--sky); margin-bottom: 8px; }
  .sc-h1 { color: #fff; font-size: 30px; max-width: 20ch; }
  .sc-h1 .soft { color: var(--sky); }
  [dir="rtl"] .sc-h1 { font-size: 30px; line-height: 1.3; }
  .sc-card.started .sc-intro { padding-block: 14px; }
  .sc-card.started .sc-h1 { font-size: 20px; }
  .sc-stagecol { background: var(--night); }
  .sf-stage { height: max(360px, min(52svh, 420px)); background: radial-gradient(56% 40% at 50% 36%, rgba(95,151,210,.30) 0%, rgba(95,151,210,.10) 55%, rgba(16,48,90,0) 100%), linear-gradient(#10305A, var(--night)); }
  .sc-form, [dir="rtl"] .sc-form { overflow: visible; padding: 0 var(--gutter) 28px; }
  .sc-progrow { top: 0; }
  .sc-dock { position: static; padding-top: 18px; background: none; }
  /* once the questions start, the dock holds the foot of the screen while the desk is on screen (sticky inside the desk) */
  .sc-card.started .sc-dock { position: sticky; bottom: 12px; z-index: 43; margin-top: 18px; padding: 8px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 14px 36px -16px rgba(11,36,67,.45); }
  .sc-stage-top { max-width: none; }
}

@media (max-width: 767px) {
  html { scroll-padding-bottom: 156px; }
  .sf-view { top: 12px; inset-inline-start: 12px; }
  .sf-backto { top: 12px; inset-inline-start: 12px; }
  .sf-zoom { top: 12px; inset-inline-end: 12px; }
  .sf-hint { font-size: 13px; bottom: 10px; }
  .sc-region .v { font-size: 30px; }
  .sc-region .sub { font-size: 18px; }
  .sc-chip { min-height: 56px; font-size: 17px; }
  .sc-select { max-width: none; }
  .sc-short { min-height: 56px; }
  .sc-time { --pad: 36px; }
  .sc-time .stop { width: 80px; margin-left: -40px; }
  [dir="rtl"] .sc-time .stop { margin: 0 -40px 0 0; }
  .sc-time .stop span { font-size: 13px; white-space: normal; text-align: center; }
  .sc-progrow { top: 76px; padding-top: 10px; }
  html:has(.nav.hide) .sc-progrow { top: 0; }
  .profile-open .sc-dock, .menu-open .sc-dock { visibility: hidden; }
  /* the docked rail on phones: the mini-figure, the summary line, the one next action */
  .sc-card.started .sc-rail, .sc-card.started .sc-rail.on { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 0 8px; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
  .sc-card.started .sc-rail::before, .sc-card.started .sc-rail .tx { display: none; }
  .sc-card.started .sc-rail .btn { width: 100%; justify-content: space-between; --h: 52px; font-size: 16px; padding-inline-start: 16px; }
  .sc-card.started .sc-rail .btn #seeL { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .sc-card.started .sc-mini { display: block; position: relative; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--navy) url("assets/symptom/figure-still.webp") 50% -4px / 47.6px 54.4px no-repeat; }
  [dir="rtl"] .sc-mini { transform: scaleX(-1); }
  .sc-mini .dot { position: absolute; left: -1.8px; top: -4px; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 1.5px var(--navy); }
  .sc-rail { flex-wrap: wrap; }
  .sc-rail .btn { width: 100%; justify-content: space-between; }
  .sc-card.started .sc-dock-er { margin-top: 6px; }
  .sc-card.started .sc-dock-er .sc-disc, .sc-card.started .sc-dock-er .ic, .sc-dock-er .lt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sc-dock-er a { flex: 1; justify-content: center; }
  .sc-dock .sc-emerg { padding: 10px 10px 10px 14px; }
  .sc-dock .sc-emerg h3 { font-size: 16px; }
  .sc-dock .sc-emerg .acts { display: flex; width: 100%; gap: 6px; }
  .sc-dock .sc-emerg .acts a { flex: 1; justify-content: center; padding-inline: 8px; font-size: 14px; }
  .sc-dock .sc-emerg .acts .line span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sc-opt { min-height: 60px; padding: 8px 14px; gap: 12px; }
  .sc-urg { gap: 8px; margin-top: 12px; }
  .sc-q h3 { font-size: 20px; }
  /* once started, the room gives way: smaller while choosing a region, folded away for the questions (the mini-figure brings it back) */
  .sc-card.started.st-0 .sf-stage { height: max(190px, 26svh); }
  .sc-card.started .sc-region .v { font-size: 26px; }
  .sc-card.started:not(.st-0) .sc-stagecol { display: none; }
  .sc-card.started .sc-region .sub, .sc-card.started .sc-shorts { display: none; }
  .sc-emerg .acts { width: 100%; display: grid; }
  .sc-emerg .acts a { justify-content: center; }
  .sc-ho .btn { width: 100%; justify-content: space-between; }
  .sc-ho .who { align-items: flex-start; }
  .sc-ho .who img { width: 52px; height: 52px; }
  .sc-result { padding: 18px; }
  .sc-drawer, [dir="rtl"] .sc-drawer { left: 0; right: 0; width: auto; box-shadow: none; }
  .sc-dr-h { padding-top: max(14px, env(safe-area-inset-top)); }
  .sc-dr-b { padding: 24px 18px max(24px, env(safe-area-inset-bottom)); }

  /* S2 */
  .sc-say { padding-block: 96px 110px; }
  /* S3: the pane as a 44svh band at the top with the caption row on it; the chapter list under it */
  .sc-pane-wrap { inset-inline: 0; inset-block: 0 auto; width: auto; height: 44svh; }
  .sc-room { padding: 92px 16px 14px; gap: 10px; justify-content: flex-end; }
  .sc-room-fig { height: min(270px, calc(44svh - 120px)); }
  .sc-room-tags { top: auto; bottom: 22px; inset-inline-start: auto; inset-inline-end: 12px; gap: 6px; justify-items: end; }
  .sc-room-tags span { height: 32px; padding: 0 12px; font-size: 13px; }
  .sc-room-2 { flex-direction: row; align-items: flex-end; justify-content: center; gap: 12px; }
  .sc-room-2 .sc-marks { width: auto; flex: 1; max-width: 190px; grid-template-columns: 1fr; gap: 8px; margin-bottom: 8px; }
  .sc-room-2 .sc-marks::before { top: 8px; bottom: 8px; inset-inline: auto; inset-inline-start: 7px; width: 1px; height: auto; }
  .sc-room-2 .sc-marks li { grid-template-columns: 15px 1fr; justify-items: start; text-align: start; align-items: center; font-size: 12px; padding: 0; }
  .sc-room-3 { flex-direction: row; align-items: center; justify-content: center; gap: 16px; padding-bottom: 20px; }
  .sc-room-3 .sc-room-doc { justify-items: start; text-align: start; }
  .sc-room-3 .sc-room-doc { grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; row-gap: 4px; align-items: center; }
  .sc-room-3 .sc-room-doc .face { grid-row: 1 / 3; width: min(120px, 16svh); margin: 0; box-shadow: 0 0 0 5px rgba(255,255,255,.7); }
  .sc-room-3 .sc-room-doc .k { align-self: end; }
  .sc-room-3 .sc-room-doc .t { align-self: start; }
  .sc-room-3 .sc-marks { display: none; }
  .sc-room-doc .t { font-size: 18px; max-width: 14ch; }
  .sc-stage-in { grid-template-rows: minmax(0, 1fr) auto; padding-block: 0 max(20px, env(safe-area-inset-bottom)); }
  .sc-stage-top { position: absolute; top: 72px; inset-inline: var(--gutter); max-width: none; padding: 0; z-index: 3; flex-direction: row; align-items: flex-start; gap: 12px; }
  .sc-cap { flex-direction: column; gap: 2px; }
  .sc-h2 { font-size: 15px; }
  .sc-chapters, [dir="rtl"] .sc-chapters { max-width: none; padding: calc(44svh + 18px) 0 0; justify-content: flex-start; gap: 10px; }
  .sc-ch h3 { font-size: 18px; }
  .sc-ch.on h3 { font-size: 32px; }
  .sc-ch.on p { font-size: 16px; padding-top: 8px; line-height: 1.5; }
  [dir="rtl"] .sc-ch.on h3 { font-size: 28px; }
  .sc-stage-in > .sc-meet { margin-bottom: 72px; }
  /* S4 */
  .sc-close { padding-block: 72px 88px; }
  .sc-close-in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .sc-close-pic { grid-row: 2; justify-items: start; }
  .sc-close-copy { display: contents; }
  .sc-close-h { grid-row: 1; }
  .sc-doors { grid-row: 3; margin: 0; }
  .sc-close-er { grid-row: 4; margin: 0; }
  .sc-portrait { width: 160px; margin-inline-start: 10px; }
  .sc-door { min-height: 80px; gap: 14px; }
  .sc-door .di { width: 48px; height: 48px; }
}
/* the house phone bar, when it shows, lifts the docked rail above it */
@media (max-width: 680px) { html:has(.mbar.on:not(.away)) .sc-card.started .sc-dock { bottom: 80px; } .drkings-fab { display: none; } }
@media (max-width: 380px) { .sf-blab, .sf-pill { font-size: 13px; } .sc-h1, [dir="rtl"] .sc-h1 { font-size: 28px; } }

/* ── Comps: the still states, no transitions (?comp=1) ── */
html.sc-comp .sc-hero, html.sc-comp .sf-still, html.sc-comp .sc-statement .ow, html.sc-comp .sc-stage, html.sc-comp .sc-room, html.sc-comp .sc-ch, html.sc-comp .sc-ch h3, html.sc-comp .sc-ch p,
html.sc-comp .sc-marks li, html.sc-comp .sc-marks li i, html.sc-comp .sc-figbadge, html.sc-comp .sc-noise, html.sc-comp .sc-ebx, html.sc-comp .sc-h2, html.sc-comp .sc-count { transition: none !important; }
html.sc-comp .sc-scan, html.sc-comp .sc-room-tags span { animation: none !important; }

/* ── Reduced motion: the finished page at first paint. No settle, no sheet, no pin: three rooms in flow. ── */
html.sc-rm .sc-hero { transform: none !important; }
html.sc-rm .sc-hero::after { opacity: 0; }
html.sc-rm .sc-statement .ow { color: var(--navy); }
html.sc-rm .sc-statement .ow.end { color: var(--blue); }
html.sc-rm .sc-walk { height: auto; }
html.sc-rm .sc-stage { position: static; height: auto; overflow: visible; transform: none !important; background: none; }
html.sc-rm .sc-stage::after, html.sc-rm .sc-stage > .sc-noise, html.sc-rm .sc-pane-wrap, html.sc-rm .sc-count { display: none; }
html.sc-rm .sc-stage-in { display: block; height: auto; padding: 0; max-width: none; }
html.sc-rm .sc-stage-top { max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding: 80px var(--gutter) 32px; position: static; background: var(--navy); color: #fff; }
html.sc-rm .sc-stage-top .sc-ebx { color: var(--sky); } html.sc-rm .sc-stage-top .sc-h2 { color: rgba(255,255,255,.8); }
html.sc-rm .sc-stage-top::before { content: ""; position: absolute; }
html.sc-rm .sc-chapters, html.sc-rm [dir="rtl"] .sc-chapters { display: block; max-width: none; padding: 0; }
html.sc-rm .sc-ch { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto; column-gap: clamp(24px, 4vw, 64px); align-content: center;
  max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding: clamp(56px, 8vh, 96px) var(--gutter); color: var(--fg); transition: none; }
html.sc-rm .sc-ch::before { content: ""; position: absolute; inset: 0 -50vw; z-index: -1; background: var(--g); }
html.sc-rm .sc-ch:nth-child(1) { --g: var(--navy); --fg: #fff; --fg2: rgba(255,255,255,.8); --rail: rgba(255,255,255,.24); --dim: rgba(255,255,255,.6); }
html.sc-rm .sc-ch:nth-child(2) { --g: #fff; --fg: var(--navy); --fg2: var(--ink-2); --rail: var(--line); --dim: rgba(11,36,67,.6); }
html.sc-rm .sc-ch:nth-child(3) { --g: var(--sky-room); --fg: var(--navy); --fg2: var(--ink-2); --rail: rgba(11,36,67,.2); --dim: rgba(11,36,67,.6); }
html.sc-rm .sc-ch h3 { grid-column: 1; align-self: end; font-size: clamp(32px, 3.9vw, 56px); font-weight: 700; opacity: 1; color: var(--fg); transition: none; }
html.sc-rm .sc-ch p { grid-column: 1; opacity: 1; padding-top: 16px; color: var(--fg2); transition: none; }
html.sc-rm .sc-ch .sc-room { grid-column: 2; grid-row: 1 / 3; position: relative; inset: auto; opacity: 1; visibility: visible; transform: none; transition: none; padding: 0; }
html.sc-rm .sc-ch .sc-room-tags { position: static; justify-items: center; }
html.sc-rm .sc-room-tags span { animation: none; }
html.sc-rm .sc-scan { display: none; }
html.sc-rm .sc-stage-in > .sc-meet { display: flex; margin: 0 auto; max-width: calc(var(--maxw)); }
html.sc-rm .sc-stage-in > .sc-meet { color: var(--navy); border-color: var(--line); margin-block: 40px; margin-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2)); }
html.sc-rm .sc-close { margin-top: 0; }
html.sc-rm .sc-figbadge { opacity: 1; transform: none; transition: none; }
html.sc-rm .sc-chip.cas, html.sc-rm .sc-tag, html.sc-rm .sc-dr-b > *, html.sc-rm .sc-region .v .in-txt, html.sc-rm .sc-morph .ring { animation: none !important; }
html.sc-rm .sc-marks li i, html.sc-rm .sc-room-3 .sc-marks li.on i { transition: none; }
@media (max-width: 767px) {
  html.sc-rm .sc-ch { grid-template-columns: minmax(0, 1fr); }
  html.sc-rm .sc-ch .sc-room { grid-column: 1; grid-row: auto; margin-top: 28px; flex-direction: column; }
  html.sc-rm .sc-room-3 .sc-marks { display: grid; }
  html.sc-rm .sc-room-3 .sc-room-doc { justify-items: center; text-align: center; }
  html.sc-rm .sc-room-2 .sc-marks { max-width: none; width: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  html.sc-rm .sc-room-2 .sc-marks::before { top: 7px; bottom: auto; inset-inline: 12.5%; width: auto; height: 1px; }
  html.sc-rm .sc-room-2 .sc-marks li { grid-template-columns: none; justify-items: center; text-align: center; }
  html.sc-rm .sc-stage-top { position: static; flex-direction: row; }
}
