/* wizard-screen: full-viewport editorial variant. 760px stacks the helper callout.
   Its 0/1050/500ms arrow is the sole exception to guide motion timings. */
.wizard-nav{display:inline-flex;align-items:center;gap:6px;min-height:36px;border-bottom:0;text-decoration:none;font:500 15px/21px var(--font-body);white-space:nowrap;padding:8px;border-radius:8px}
body.wizard-page{overflow:hidden}
body.wizard-page main{max-width:none;padding:0;margin:0}
body.wizard-page main>:not(#preferences-wizard):not(#load-status){display:none!important}
body.wizard-page #header{position:fixed;inset:0 0 auto;transform:none}
body.wizard-page header .view-switch{display:none!important}
#preferences-wizard{position:fixed;inset:0;height:100vh;height:100dvh;--wizard-header:64px;background:var(--paper);isolation:isolate}
.wizard-scroll{height:100%;overflow-y:auto;overflow-x:hidden;scroll-snap-type:y mandatory;scroll-behavior:auto;overflow-anchor:none;scrollbar-width:none}
.wizard-pages{position:relative}.wizard-screen[hidden]{display:none}.is-transitioning .wizard-scroll{scroll-snap-type:none}.is-transitioning .wizard-previous{visibility:hidden}
.wizard-screen{scroll-snap-align:start;height:100vh;height:100dvh;overflow:auto;overscroll-behavior:auto;scrollbar-width:none;display:flex;flex-direction:column;padding:calc(var(--wizard-header) + 80px) 32px max(112px,env(safe-area-inset-bottom));scroll-padding-block:32px;overflow-anchor:none;padding-left:76px}
.wizard-scroll::-webkit-scrollbar,.wizard-screen::-webkit-scrollbar,.selection-embedded::-webkit-scrollbar{display:none}
.wizard-screen-content{width:100%;max-width:1040px;margin:auto;flex:none}
.heading-editorial{font:400 32px/40px var(--font-heading);letter-spacing:-.02em;margin:0 0 24px}
.wizard-active{display:grid;grid-template-columns:minmax(0,720px) minmax(200px,1fr);gap:32px;align-items:start}
.wizard-question-main{min-width:0}
.wizard-callout{background:var(--information-surface,var(--control-background));border:1px solid var(--line);border-radius:16px;padding:16px;font:400 14px/24px var(--font-body);color:var(--ink);margin-top:28px}.wizard-callout p{margin:0}
.button-utility{min-height:36px;border-radius:8px}.button-editorial{min-height:48px;padding:12px 24px;border-radius:8px;font:600 15px/22px var(--font-body)}
.wizard-answers{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:24px 0}.wizard-answers .answer-wizard{min-height:96px;text-align:center;font:400 24px/32px var(--font-heading);background:var(--surface)}.wizard-answers button:hover,.wizard-answers button[aria-pressed=true]{border-color:var(--green);background:var(--control-active)}
.wizard-navigation{display:flex;align-items:center;gap:16px;margin-top:24px}.wizard-navigation .primary{margin-left:auto}
.wizard-slider-slot .preference-sliders{width:100%;margin-bottom:24px}.preference-sliders>.slider-field[hidden]{display:none!important}
.wizard-review{max-width:720px}.wizard-review dl{display:block;margin:0 0 24px}.wizard-review dl>div{display:grid;grid-template-columns:140px minmax(0,1fr) auto;gap:16px;padding:12px 0;border-bottom:1px solid var(--line);align-items:center}.wizard-review dt{font:600 18px/26px var(--font-body)}.wizard-review dd{min-width:0;margin:0;font:400 18px/26px var(--font-body);overflow-wrap:anywhere}
.wizard-value.preference-readout-row{width:auto;min-height:26px;font:500 18px/26px var(--font-body)}.wizard-value .readout-icon img{width:18px;height:20px}.wizard-value .readout-icon-halo{display:none}.wizard-review .wizard-value .activity{width:26px;min-width:26px;height:26px;font-size:16px;line-height:26px}
.wizard-arrow-layer{position:absolute;inset:0;z-index:200;pointer-events:none;overflow:visible}
.wizard-transition-arrow{position:absolute;left:50%;margin-left:-36px;display:block;overflow:visible;fill:var(--green);pointer-events:none}
:is(#search-selection,.selection-embedded)[data-only=where] .selection-when,:is(#search-selection,.selection-embedded)[data-only=when] .selection-where{display:none}:is(#search-selection,.selection-embedded)[data-only=where] .selection-panels,:is(#search-selection,.selection-embedded)[data-only=when] .selection-panels{grid-template-columns:minmax(0,1fr)}
/* Embedded variant of the SAME selection component, with the screen's Continue action. */
#search-selection.selection-embedded,.wizard-selection-slot>.selection-embedded{display:block;position:static;inset:auto;width:100%;max-width:none;max-height:none;margin:0;padding:0;overflow:visible;border:0;border-radius:0;background:transparent;scroll-padding:0}
.selection-embedded .selection-heading{position:static;background:transparent;border:0;margin:0 0 12px}
.selection-embedded .selection-heading:before{display:none}.selection-embedded .selection-heading h2{font:400 20px/28px var(--font-heading)}
.selection-embedded [data-cancel],.selection-embedded [data-apply]{display:none}
.selection-embedded .selection-panel{padding:12px}
.selection-embedded .selection-footer{position:static;display:block;margin:12px 0 0;padding:8px 0 0}
.selection-embedded .selection-locations{max-height:240px;overflow:auto;overscroll-behavior:contain;scrollbar-width:none}
.selection-embedded .selection-locations::-webkit-scrollbar{display:none}
@media(max-width:760px){.wizard-screen{padding-inline:64px 24px}.wizard-active{grid-template-columns:minmax(0,1fr);gap:24px}.wizard-callout{margin-top:0}.heading-editorial{font-size:28px;line-height:36px}}
@media(max-width:640px){.wizard-screen{padding:calc(var(--wizard-header) + 80px) 16px 112px max(52px,calc(env(safe-area-inset-left) + 44px))}.wizard-answers{gap:12px;margin:16px 0}.wizard-answers button{padding:16px;font-size:20px;min-height:80px}.wizard-review dl>div{grid-template-columns:1fr auto;gap:8px}.wizard-review dt{grid-column:1/-1}.wizard-nav{font-size:13px;padding:6px}.wizard-page .brand{font-size:24px}.wizard-page .header-inner{padding-inline:12px;gap:8px}.wizard-nav{width:36px;justify-content:center}.wizard-nav>span{display:none}.selection-embedded .selection-panel-heading{flex-wrap:wrap;gap:8px}.selection-embedded .selection-locations{max-height:240px}}
.wizard-nav .control-icon{width:20px;height:20px}
@media(prefers-reduced-motion:reduce){.wizard-screen *{animation:none!important;transition:none!important}}

.wizard-floating-actions{position:absolute;inset:calc(var(--wizard-header) + 12px) 16px auto;z-index:201;pointer-events:none;min-height:44px}
.wizard-floating-actions button{pointer-events:auto;color:var(--green);background:var(--surface);box-shadow:0 2px 8px #0002;min-height:44px}
.wizard-previous{position:absolute;left:50%;transform:translateX(-50%);width:44px;padding:8px;display:grid;place-items:center}
.wizard-previous[hidden]{display:none}.wizard-previous svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.5}
.wizard-context-icon{width:64px;height:72px;margin-bottom:0;display:flex;align-items:center;justify-content:flex-start;color:var(--green)}
.wizard-context-icon svg{width:64px;height:64px;fill:none;stroke:currentColor;stroke-width:1.5}
.wizard-context-icon .readout-icon{display:flex;width:64px;height:64px}.wizard-context-icon .readout-icon .readout-icon-plain{width:56px;height:64px}.wizard-context-icon .readout-icon-halo{display:none}.wizard-page.dark .wizard-context-icon .readout-icon .readout-icon-halo{width:64px;height:64px}
@media(max-width:640px){.wizard-floating-actions{inset-inline:12px}.wizard-context-icon{width:48px;height:56px;margin-bottom:0}.wizard-context-icon svg{width:48px;height:48px}.wizard-context-icon .readout-icon{width:48px;height:48px}.wizard-context-icon .readout-icon .readout-icon-plain{width:42px;height:48px}.wizard-page.dark .wizard-context-icon .readout-icon .readout-icon-halo{width:48px;height:48px}}

/* A visual H1 role under the single semantic page H1. */
.wizard-step-heading{display:flex;align-items:center;gap:16px;margin-bottom:24px;min-width:0}
.wizard-step-title{font:400 40px/48px var(--font-heading);letter-spacing:-.02em;color:var(--green);margin:0;overflow-wrap:anywhere}
.wizard-review>.wizard-step-title{margin-bottom:24px}.wizard-step-heading .wizard-context-icon{flex:none}
.wizard-progress-rail{position:absolute;z-index:202;left:max(16px,calc((100vw - 1200px)/2 + 16px));top:50%;transform:translateY(-50%);width:20px;height:240px;pointer-events:none}
.wizard-progress-line{position:absolute;top:10px;bottom:10px;left:9px;width:2px;background:var(--strong)}
.wizard-progress-complete{width:2px;height:0;background:var(--green);transition:height 350ms ease-out}
.wizard-progress-markers{position:relative;display:flex;flex-direction:column;justify-content:space-between;height:100%}
.wizard-progress-marker{display:block;flex:none;box-sizing:border-box;width:20px;height:20px;border:2px solid var(--strong);border-radius:50%;background:var(--paper);transition:background-color 350ms ease-out,border-color 350ms ease-out,box-shadow 350ms ease-out}
.wizard-progress-marker.is-reached{background:var(--green);border-color:var(--green)}
.wizard-progress-marker.is-current{box-shadow:0 0 0 3px var(--paper),0 0 0 6px var(--green)}
@media(max-width:760px){.wizard-progress-rail{left:max(8px,env(safe-area-inset-left));height:min(220px,calc(100dvh - var(--wizard-header) - 160px))}}
@media(max-width:640px){.wizard-step-title{font-size:30px;line-height:36px}.wizard-step-heading{gap:12px;margin-bottom:20px}}
@media(prefers-reduced-motion:reduce){.wizard-progress-complete,.wizard-progress-marker{transition:none!important}}

.wizard-screen[data-screen="0"]{padding-top:calc(var(--wizard-header) + 24px)}
.wizard-start-intro{flex:none;width:100%;max-width:1040px;margin:0 auto 32px}
.wizard-start-intro h1{font:400 40px/48px var(--font-display);letter-spacing:-.02em;margin:0 0 16px}
.wizard-start-intro p{font:400 17px/28px var(--font-body);max-width:780px;margin:0}
.wizard-screen[data-screen="0"]>.wizard-screen-content{margin-top:0;margin-bottom:auto}
.wizard-page #header .wizard-header-magic{display:inline-flex;width:auto;max-width:none;min-width:0;min-height:36px;padding:8px 12px;white-space:nowrap;border:1px solid var(--strong);background:var(--control-background);color:var(--green);font:500 15px/21px var(--font-body)}
.wizard-page #header .wizard-header-magic:hover{background:var(--control-active);border-color:var(--green)}
@media(max-width:640px){
 .wizard-start-intro{margin-bottom:24px}.wizard-start-intro h1{font-size:30px;line-height:36px}.wizard-start-intro p{font-size:16px;line-height:26px}
 .wizard-page #header .header-inner{display:grid;grid-template-columns:minmax(0,1fr) 36px;grid-template-rows:44px auto;height:auto;min-height:52px;padding:4px 12px 8px;gap:4px 8px}
 .wizard-page #header nav{display:contents}.wizard-page #header .brand{grid-column:1;grid-row:1}
 .wizard-page #header #settings{grid-column:2;grid-row:1;min-width:36px;width:36px}
 .wizard-page #header .wizard-header-magic{grid-column:1/-1;grid-row:2;width:100%;font-size:14px;line-height:20px;padding:6px 8px}
}
