/* Keep the model and its controls in distinct measured grid rows. */
.assembly-modes{grid-template-columns:repeat(4,minmax(0,1fr))}
.assembly-modes button{grid-template-columns:1fr;text-align:center;justify-items:center;padding:10px 5px;gap:4px;min-height:61px}
.assembly-modes button>svg{display:none}
.assembly-modes button>span{font-size:12px}
.assembly-modes button>small{font-size:8px;white-space:nowrap}
.model-utility{gap:8px}
.model-utility>.text-action{flex-shrink:0;min-height:36px}
.model-utility>.text-action svg{width:14px;height:14px}
.rotate-controls{display:flex;gap:8px;align-items:center;margin-right:auto}
.service-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;color:#afc6b7}
.service-steps[hidden]{display:none}
.service-steps button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;min-height:44px;padding:5px 2px;border-top:2px solid #6f968147;font-size:11px;white-space:nowrap}
.service-steps button small{font-size:8px;letter-spacing:.12em;color:#8caa97}
.service-steps button:hover{background:#ffffff09;color:#fff}
.service-steps .is-current{color:#ffd4a5;border-color:#f87953;background:#f8795310}
.service-steps .is-complete{color:#b9dfbb;border-color:#80b891}
.welcome.engine-focused{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;gap:9px;padding-top:8px}
.welcome.engine-focused>.welcome-copy,.welcome.engine-focused>.arrival-card,.welcome.engine-focused>.home-returning{display:none}
.welcome.engine-focused>.engine-view{grid-column:1;grid-row:1}
.welcome.engine-focused>.engine-interface{grid-column:1;grid-row:2;width:min(680px,100%);align-self:end}
.garage.garage-interactive{grid-template-rows:auto minmax(0,1fr);gap:13px;padding:14px 4vw 10px;min-height:0}
.garage-interactive .garage-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.garage-interactive .garage-top h2{font-size:clamp(24px,3vw,39px);margin:4px 0 0;max-width:none}
.garage-interactive .garage-top .eyebrow{font-size:8px;margin:0}
#garage-photos{font-size:11px;gap:7px;min-height:38px;white-space:nowrap}
#garage-photos svg{width:16px;height:16px}
#garage-walk{min-height:0;height:100%;width:100%;pointer-events:auto}
.walk-loading{font-size:13px;color:#c0cfbf}
.photos-dialog{width:min(1000px,calc(100vw - 28px));height:min(720px,calc(100dvh - 28px));max-width:calc(100vw - 28px);max-height:calc(100dvh - 28px);padding:18px 22px;overflow:hidden;border-radius:8px;background:#10221dee}
.photos-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:15px}
.photos-dialog>header{display:flex;align-items:center;gap:15px}
.photos-dialog>header>div{margin-right:auto}
.photos-dialog h2{font-size:27px;line-height:1.1;margin:5px 0 0}
.photos-dialog .eyebrow{font-size:8px;margin:0}
.photos-dialog .tour-stage{min-height:0;height:100%}
.photos-dialog .tour-counter{font-size:10px}
.photos-dialog .tour-counter strong{font-size:20px}
.photos-dialog .tour-caption{left:25px;bottom:57px}
.photos-dialog .tour-caption h3{font-size:clamp(24px,4vw,44px);line-height:1.1;margin:7px 0}
.photos-dialog .tour-caption>p:last-child{font-size:12px}
.photos-dialog .tour-timeline button{font-size:11px;min-height:44px}
.walk-fallback{height:100%;position:relative}
.walk-fallback img{width:100%;height:100%;object-fit:cover}
.walk-fallback button{position:absolute;bottom:20px;left:20px}
@media(max-width:720px){
 .assembly-modes button{min-height:46px;padding:7px 2px}
 .assembly-modes button>span{font-size:10px}
 .assembly-modes button>small{font-size:7px}
 .model-utility{padding:0;gap:9px}
 .model-utility .rotate-controls>span{display:none}
 .model-utility>.text-action{font-size:9px;gap:5px;min-height:31px}
 .service-steps{font-size:8px;gap:7px;padding-top:7px}
 .garage.garage-interactive{padding:9px 17px 4px;gap:10px}
 .garage-interactive .garage-top .eyebrow{display:none}
 .garage-interactive .garage-top h2{font-size:25px}
 #garage-photos{font-size:9px}
 .photos-dialog{padding:12px;gap:10px}
 .photos-dialog h2{font-size:22px}
 .photos-dialog .tour-caption{left:15px;right:15px;bottom:55px}
 .photos-dialog .tour-caption>p:last-child{font-size:11px}
 .photos-dialog .tour-timeline button{font-size:8px;gap:4px}
}
@media(min-width:520px) and (max-height:680px){.assembly-modes button{min-height:43px}.engine-caption>span:first-child{display:none}}
.photos-dialog .tour-timeline{grid-template-columns:repeat(5,minmax(0,1fr))}

/* Service copy and actions have their own measured area beside or below the car. */
.welcome.engine-focused.service-active{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(70px,1fr) auto;gap:8px;padding:8px clamp(12px,3vw,44px) 6px}
.welcome.service-active>.engine-interface{width:min(720px,100%);min-width:0;align-self:end}
.welcome.service-active .assembly-modes,.welcome.service-active .engine-caption,.welcome.service-active .model-footnote,.welcome.service-active .rotate-controls{display:none}
.service-journey{display:grid;gap:8px;pointer-events:auto;min-width:0}
.service-journey-heading{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.service-journey-heading h2{font-size:clamp(22px,2.8vw,31px);line-height:1.1;white-space:nowrap;color:#f6efe3}
#service-playback{font-size:9px;color:#afc6b7;white-space:nowrap}
#service-explanation{margin-top:5px;color:#c4d5c7;font-size:12px;line-height:1.4}
.welcome.service-active #service-steps{display:grid;padding:0;gap:6px}
.service-journey-actions{display:flex;align-items:center;gap:18px}
.service-journey-actions>.button{min-height:40px;padding:9px 14px;gap:12px;font-size:12px}
.service-journey-actions>.text-action{min-height:40px;gap:6px;font-size:11px;flex-shrink:0}
.service-journey-actions svg{width:16px;height:16px}
.service-scope{font-size:10px;line-height:1.35;color:#9fb7a5}
.welcome.service-active .model-utility{justify-content:center;gap:24px;margin-top:5px;padding:0}
.welcome.service-active .model-utility>.text-action{min-height:30px;font-size:10px}
.service-preview{position:absolute;left:12px;top:12px;display:inline-flex;align-items:center;gap:7px;max-width:calc(100% - 24px);min-height:40px;padding:9px 12px;font-size:12px;font-weight:650;line-height:1.2;border:1px solid #ffffff80;border-radius:4px;background:#10261ff2;color:#fff;box-shadow:0 3px 15px #0004}
.service-preview:hover{background:#263e30;border-color:#fa9580}
.service-preview svg{width:16px;height:16px;color:#ff9580}
.service-preview span{white-space:nowrap}
.service-media:has(.service-preview:not([hidden])) .image-caption{max-width:100%}
#engine-service-fallback{pointer-events:auto;min-height:40px;font-size:12px;padding:9px 12px}
.map-loading-mark{display:none;width:40px;height:3px;overflow:hidden;background:#ffffff25;border-radius:3px}
#garage-map[aria-busy="true"]~.map-cover .map-loading-mark{display:block}
.map-loading-mark::after{content:'';display:block;width:40%;height:100%;background:#ff9580;animation:map-loading 1.3s ease-in-out infinite alternate}
.motion-off .map-loading-mark::after{animation:none}
#map-load-note{min-height:1.4em}
#map-cover #load-map{margin-top:12px}
.visit .visit-copy>.map-provider-note{display:block;font-size:9px;line-height:1.4;margin:8px 0 2px;color:#a9bfb0}
@keyframes map-loading{to{transform:translateX(150%)}}
@media(prefers-reduced-motion:reduce){.map-loading-mark::after{animation:none;width:100%}}
@container(max-width:519px){
 .service-journey-heading h2{font-size:22px}
 #service-playback{font-size:8px}
 #service-explanation{font-size:11px;margin-top:4px}
 .service-scope{font-size:9px}
 .service-journey-actions{gap:12px}
 .service-journey-actions>.button{min-height:38px;font-size:11px;padding:8px 11px;gap:8px}
 .service-journey-actions>.text-action{min-height:38px;font-size:10px}
 .service-preview{top:8px;left:8px;min-height:36px;padding:7px 9px;font-size:11px;max-width:calc(100% - 16px)}
}
@container(min-width:520px) and (max-height:440px){
 .welcome.engine-focused.service-active{grid-template-columns:minmax(0,1fr) minmax(260px,.9fr);grid-template-rows:minmax(0,1fr);gap:16px;padding:10px 18px}
 .welcome.service-active>.engine-view{grid-column:1;grid-row:1}
 .welcome.service-active>.engine-interface{grid-column:2;grid-row:1;align-self:center}
 .service-journey-heading h2{font-size:24px}
 #service-explanation{font-size:11px}
 .service-scope{font-size:9px}
 .service-preview{left:7px;top:7px;padding:7px;font-size:10px;min-height:36px;gap:5px;max-width:calc(100% - 14px)}
 .service-preview svg{width:13px;height:13px}
}
@container(min-width:520px) and (max-height:230px){
 .welcome.engine-focused.service-active{padding:4px 14px;gap:12px}
 .service-journey{gap:5px}
 .service-journey-heading h2{font-size:21px}
 #service-explanation{margin-top:3px}
 .service-journey-actions>.button,.service-journey-actions>.text-action{min-height:36px;padding-top:7px;padding-bottom:7px}
 .welcome.service-active .model-utility{margin-top:1px}
 .welcome.service-active .model-utility>.text-action{min-height:28px}
}

/* One measured stage connects the mechanism to the service it illustrates. */
.services.stage-active{display:grid;grid-template:1fr/1fr;padding:0;overflow:hidden;container-type:normal}
.services.stage-active>.section-intro,.services.stage-active>.service-workspace{display:none}
.site-shell:has(.services.stage-active) .engine-backdrop{opacity:1;pointer-events:auto}
.site-shell:has(.services.stage-active) .scene-shade{background:linear-gradient(0deg,#08151280,transparent 65%)}
.service-stage{height:100%;min-height:0;display:grid;grid-template-columns:minmax(0,1.5fr) minmax(290px,1fr);grid-template-rows:minmax(0,1fr);gap:20px;padding:20px clamp(14px,3vw,42px);align-items:center}
.service-stage>.engine-view{grid-column:1;grid-row:1;height:100%;min-height:0;width:100%}
.service-stage>.engine-interface,.issue-panel{grid-column:2;grid-row:1;align-self:center;justify-self:stretch;width:100%;max-width:480px;pointer-events:auto;background:linear-gradient(145deg,#193028f2,#0c1c19f5);border:1px solid #91bfaf42;border-radius:9px;padding:clamp(14px,2vw,26px);box-shadow:0 18px 60px #0004;backdrop-filter:blur(16px)}
.service-stage .assembly-modes,.service-stage .engine-caption,.service-stage .rotate-controls,.service-stage .model-footnote{display:none}
.service-stage .service-journey{gap:12px}.service-stage .service-steps{display:grid!important;padding:0;gap:3px}
.service-stage .service-steps button{font-size:10px;min-height:48px;white-space:normal;text-align:center}
.service-stage .service-journey-heading{flex-wrap:wrap;gap:5px}.service-stage .service-journey-heading h2{white-space:normal;font-size:clamp(24px,3vw,38px)}
.service-stage .model-utility{padding:0;margin-top:12px;justify-content:flex-start;gap:22px}
.service-stage .model-utility>.text-action{min-height:36px;font-size:11px}
.service-stage #service-explanation,.issue-panel>#issue-copy{font-size:13px;line-height:1.45;color:#c4d5c7}
.service-stage .service-scope{font-size:10px;color:#99b1a5}.service-journey-actions{flex-wrap:wrap;gap:7px 16px}
.issue-panel{display:grid;gap:14px}.issue-panel>.eyebrow{font-size:9px}.issue-panel h2{font-size:clamp(26px,3vw,38px)}
.issue-options{display:flex;flex-wrap:wrap;gap:6px}.issue-options button{font-size:11px;min-height:36px;padding:6px 10px;border:1px solid #a5c9ba40;border-radius:4px;background:#19312b}
.issue-options button[aria-pressed=true]{border-color:#ff8e74;color:#ffd6be;background:#672f252b}
#issue-preview{font-size:12px;color:#ffb49f;margin-bottom:8px}
.garage.garage-interactive{grid-template-rows:auto auto minmax(0,1fr);gap:8px;position:absolute}
.garage-stations{display:flex;gap:7px;min-width:0;pointer-events:auto}
.garage-stations button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:6px 11px;border:1px solid #91bfaf40;border-radius:4px;font-size:11px;background:#152c25;flex:1}
.garage-stations svg{width:14px;height:14px;color:#f6927e}
.station-panel{background:linear-gradient(145deg,#1c352df5,#0d201bf7);border:1px solid #91bfaf42;border-radius:7px;padding:18px;pointer-events:auto;min-height:0;overflow:auto;align-self:stretch;display:flex;flex-direction:column;justify-content:center;gap:10px}
.station-heading{display:flex;justify-content:space-between;align-items:center}.station-heading .eyebrow{font-size:9px}.station-panel h3{font-size:26px}.station-panel>p{font-size:12px;color:#bcd0c4;line-height:1.4}
.station-panel label{font-size:11px;display:grid;gap:6px}.station-panel select{width:100%;min-height:42px;padding:8px;background:#10261f;color:#f3f0e7;border:1px solid #a1c4b65c;border-radius:4px;font-size:16px}
.station-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px}.station-actions .button{min-height:42px;font-size:12px;padding:9px 12px;gap:12px}.station-actions .text-action{font-size:11px}
.garage:has(.station-panel:not([hidden])){grid-template-columns:minmax(0,1fr) minmax(270px,.65fr);grid-template-rows:auto auto minmax(0,1fr)}
.garage:has(.station-panel:not([hidden]))>.garage-top,.garage:has(.station-panel:not([hidden]))>.garage-stations{grid-column:1/3}
.garage:has(.station-panel:not([hidden]))>#garage-walk{grid-column:1;grid-row:3}.station-panel{grid-column:2;grid-row:3}
@container(max-width:619px){
 .service-stage{grid-template-columns:1fr;grid-template-rows:minmax(70px,1fr) auto;gap:8px;padding:8px 12px}
 .service-stage>.engine-view{grid-column:1;grid-row:1}
 .service-stage>.engine-interface,.issue-panel{grid-column:1;grid-row:2;max-width:none;padding:12px 14px}
 .service-stage .service-journey{gap:8px}.service-stage .service-journey-heading h2{font-size:24px}.service-stage .model-utility{margin-top:5px}
 .service-stage #service-explanation,.issue-panel>#issue-copy{font-size:11px}.issue-panel{gap:8px}.issue-panel h2{font-size:25px}.issue-options{gap:4px}
 .service-stage .service-steps button{font-size:9px;min-height:44px}.service-stage .service-scope{font-size:9px}
 .garage:has(.station-panel:not([hidden])){grid-template-columns:1fr;grid-template-rows:auto auto minmax(90px,1fr) auto}
 .garage:has(.station-panel:not([hidden]))>.garage-top,.garage:has(.station-panel:not([hidden]))>.garage-stations{grid-column:1}
 .garage:has(.station-panel:not([hidden]))>.station-panel{grid-column:1;grid-row:4;padding:10px 12px;gap:7px;max-height:230px}
 .station-panel h3{font-size:21px}.station-panel>p{font-size:10px}.station-panel select{min-height:36px;padding:5px}.station-heading .icon-button{width:28px;height:28px}
 .garage-stations button{font-size:9px;padding:5px 6px;gap:3px}.garage-stations svg{width:11px}
}
@container(min-width:520px) and (max-height:350px){
 .service-stage{padding:6px 14px;gap:10px;grid-template-columns:minmax(0,1fr) minmax(290px,1fr)}
 .service-stage{grid-template-rows:minmax(0,1fr)}.service-stage>.engine-view{grid-column:1;grid-row:1}.service-stage>.engine-interface,.service-stage>.issue-panel{grid-column:2;grid-row:1}
 .service-stage>.engine-interface,.issue-panel{padding:10px 12px;max-height:100%;overflow:auto}
 .service-stage .service-journey{gap:5px}.service-stage .service-journey-heading h2{font-size:22px}.service-stage .model-utility{margin-top:3px}
 .service-stage #service-explanation,.issue-panel>#issue-copy{font-size:10px}.service-stage .service-steps button{min-height:35px}.service-stage .service-scope{font-size:8px}.service-stage .model-utility>.text-action{min-height:28px}
 .issue-panel{gap:7px}.issue-panel>.eyebrow{display:none}.issue-panel h2{font-size:22px}.issue-options button{min-height:30px;padding:4px 7px;font-size:10px}
 .garage:has(.station-panel:not([hidden])){grid-template-columns:minmax(0,1fr) minmax(260px,.85fr);grid-template-rows:auto minmax(0,1fr)}
 .garage:has(.station-panel:not([hidden]))>.garage-stations{display:none}.garage:has(.station-panel:not([hidden]))>#garage-walk,.garage:has(.station-panel:not([hidden]))>.station-panel{grid-row:2}
 .station-panel{padding:10px;gap:6px}.station-panel h3{font-size:20px}.station-panel>p{font-size:10px}.station-panel label{font-size:10px;gap:3px}.station-panel select{min-height:34px}.station-actions .button{min-height:34px}
}
.service-stage #reset-model,.service-stage #service-cancel{display:none}
@container(max-width:519px) and (max-height:520px){
 .service-stage>.engine-interface,.issue-panel{padding:10px 12px}.service-stage .service-journey{gap:5px}
 .service-stage .service-journey-heading h2{font-size:20px}.service-stage #service-explanation{font-size:10px;line-height:1.3}
 .service-stage .service-steps button{min-height:36px;font-size:8px}.service-stage .service-journey-actions>.button,.service-stage .service-journey-actions>.text-action{min-height:36px}
 .service-stage .model-utility{margin-top:2px}.service-stage .model-utility>.text-action{min-height:26px;font-size:10px}.service-stage .service-scope{font-size:8px;line-height:1.3}
 .issue-panel h2{font-size:21px}.issue-panel>.eyebrow{display:none}.issue-panel>#issue-copy{font-size:10px}.issue-options button{min-height:32px;font-size:10px}
}
.station-panel{align-self:center}
.garage:has(.station-panel:not([hidden])) :is(.gw-nearby,.gw-toolbar,.gw-help,.gw-joystick,.gw-look-cue,.gw-reticle){display:none!important}
@container(min-width:520px) and (max-height:350px){
 .garage:has(.station-panel:not([hidden]))>.station-panel{position:relative;grid-column:2;grid-row:2;max-height:100%;padding:10px;gap:6px}
 .garage:has(.station-panel:not([hidden])) .station-panel>p{display:none}
 .garage:has(.station-panel:not([hidden])) .station-heading{position:absolute;right:7px;top:7px}
 .garage:has(.station-panel:not([hidden])) .station-heading .eyebrow{display:none}
 .garage:has(.station-panel:not([hidden])) .station-panel h3{padding-right:28px;font-size:18px}
 .garage:has(.station-panel:not([hidden])) .station-panel select{min-height:32px;padding:4px}
 .garage:has(.station-panel:not([hidden])) .station-actions .button{min-height:34px;padding:6px 10px}
}
@container(max-width:519px) and (max-height:520px){
 .garage:has(.station-panel:not([hidden]))>.station-panel{position:relative;padding:12px;gap:7px;max-height:200px}
 .garage:has(.station-panel:not([hidden])) .station-panel>p{display:none}
 .garage:has(.station-panel:not([hidden])) .station-heading{position:absolute;right:8px;top:8px}
 .garage:has(.station-panel:not([hidden])) .station-heading .eyebrow{display:none}
 .garage:has(.station-panel:not([hidden])) .station-panel h3{padding-right:25px;font-size:20px}
 .garage:has(.station-panel:not([hidden])) .garage-top h2{font-size:21px}
}
