/* DriveScene shell v5 · Claude · 2026-10-31
 * Layer loaded after guizang-trial.css. Owns only the editor shell (toolbar,
 * library, inspector, canvas frame, playback). Scene rendering is untouched.
 * Source of truth: Desktop/DriveScene协作规范/design-guideline.md 17.8–17.12.
 * Grid: 4px. Text roles: 12/500 group · 13/400 label · 13/500 value · 13/600 product.
 */
:root,:root[data-theme]{
 --panel:var(--ds-color-face);
 --canvas:var(--ds-color-canvas);
 --track:var(--ds-color-track);
 --raised:var(--ds-color-raised);
 --text:var(--ds-color-text-1);
 --muted:var(--ds-color-text-2);
 --line:var(--ds-color-line);
 --hover:var(--ds-color-track);
 --pressed:var(--ds-color-selected);
 --selected:var(--ds-color-selected);
 --accent:var(--ds-color-accent);
 --accent-soft:var(--ds-color-track);
 --selected-text:var(--ds-color-text-1);
 --check-border:var(--ds-color-line-control);
 --glass:var(--ds-color-raised);
 --c-bg:var(--ds-color-canvas);
 --c-panel:var(--ds-color-face);
 --c-raised:var(--ds-color-raised);
 --c-line:var(--ds-color-line);
 --c-fill:var(--ds-color-track);
 --c-toggle-on:var(--ds-color-accent);
 --c-segment-sel:var(--ds-color-selected);
 --c-t1:var(--ds-color-text-1);
 --c-t2:var(--ds-color-text-2);
 --c-t3:var(--ds-color-text-3);
 --c-parking-active:var(--ds-color-accent);
 --primary-fill:var(--ds-color-accent-fill);
 --primary-text:var(--ds-color-on-accent);
 --control-active:var(--ds-color-accent);
 --e1:0 0 0 1px var(--ds-color-line-control),var(--ds-shadow-lift); /* ds-allow: D-66 specifies the one-pixel selected/control edge; shadow roles reference copied tokens. */
 --groove:none;
 --frame:none;
 --float:0 0 0 1px var(--ds-color-line-control),var(--ds-shadow-menu); /* ds-allow: D-66 specifies the one-pixel selected/control edge; shadow roles reference copied tokens. */
 --e1-lifted:0 0 0 1px var(--ds-color-line-control),var(--ds-shadow-lift); /* ds-allow: D-66 specifies the one-pixel selected/control edge; shadow roles reference copied tokens. */
 --control-shadow:0 0 0 1px var(--ds-color-line-control),var(--ds-shadow-lift); /* ds-allow: D-66 specifies the one-pixel selected/control edge; shadow roles reference copied tokens. */
 --sh-panel:0 0 0 1px var(--ds-color-line); /* ds-allow: D-66 specifies the one-pixel selected/control edge; shadow roles reference copied tokens. */
 --sh-raised:0 0 0 1px var(--ds-color-line-control),var(--ds-shadow-lift); /* ds-allow: D-66 specifies the one-pixel selected/control edge; shadow roles reference copied tokens. */
 --sh-canvas:none;
 --sh-menu:0 0 0 1px var(--ds-color-line-control),var(--ds-shadow-menu); /* ds-allow: D-66 specifies the one-pixel selected/control edge; shadow roles reference copied tokens. */
 --sh-thumb:0 0 0 1px var(--ds-color-line-selected); /* ds-allow: D-66 specifies the one-pixel selected/control edge; shadow roles reference copied tokens. */
 --v5-lift:var(--ds-shadow-lift);
}

:root{


 --r-panel:10px;--r-ctl:6px;--r-in:4px; /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */


 --shell-edge:8px;--shell-library:248px;--shell-inspector:248px;--shell-label:64px;--shell-group-gap:20px; /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
 /* Map the existing trial variables onto v5 so untouched rules stay coherent. */

 --control-radius:var(--r-ctl);--segment-radius:var(--r-ctl);--control-inner-radius:var(--r-in);--row-radius:var(--r-ctl);
 --selection-ring:none;
}

/* Match legacy theme specificity for every shell role, including menu states. */

:root{font-feature-settings:"cv11","ss01";letter-spacing:var(--ds-font-tracking)}
:root button,:root select,:root input,:root summary{letter-spacing:var(--ds-font-tracking)}
:root .export-size,:root #image-size,:root .format-trigger{font-variant-numeric:tabular-nums}
html,body,#app{background:var(--c-bg)}

/* Toolbar */
:root .toolbar{height:44px;padding-inline:24px;background:transparent;box-shadow:none;border:0} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
:root .project-name{font-size:13px;line-height:16px;font-weight:600;letter-spacing:var(--ds-font-tracking);color:var(--c-t1)} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */

/* Workspace: two docked rounded panels around the stage */
:root .workspace{grid-template-columns:var(--shell-library) minmax(0,1fr) var(--shell-inspector);gap:8px;padding:0 var(--shell-edge) 8px;box-sizing:border-box;min-height:0} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
@media(min-width:960px) and (max-width:1179px){:root{--shell-library:208px}} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
:root #library,:root #inspector{background:var(--c-panel);border:0;border-radius:var(--r-panel);box-shadow:var(--sh-panel);overflow:hidden;display:flex;flex-direction:column;min-height:0} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
:root #stage{background:transparent;border:0}
:root #artboard{box-shadow:none;border-radius:var(--r-panel)} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
:root #artboard .artboard-clip{border-radius:var(--r-panel);overflow:hidden;box-shadow:var(--sh-canvas)} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */

/* Shared group title: one height, one gap to its first row */
:root #library .nav-title,:root #inspector h2{display:block;height:16px;margin:0 0 8px;padding:0;font-size:12px;line-height:16px;font-weight:500;letter-spacing:0;color:var(--c-t3)} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */

/* Library: top 16 · text column 16 · scene names 28 · row boxes inset 8 */
:root #library{padding:16px 0 12px} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
:root #library #scene-nav{display:flex;flex-direction:column;gap:4px;padding:0 8px;margin:0;overflow-y:auto;flex:1 1 auto;min-height:0} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
:root #library .nav-title{padding:0 8px;margin-bottom:4px} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
:root #library .nav-title:not(:first-of-type){margin-top:20px} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
:root #library .scene-row{height:32px;min-height:32px;margin:0;padding:0 8px 0 20px;gap:0;border-radius:var(--r-ctl);color:var(--c-t2);font-size:13px;line-height:16px} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
:root #library .scene-row>svg{display:none}
:root #library .scene-row[aria-current=page]{color:var(--c-t1)}
:root #library .scene-indicator,:root #library .scene-indicator.is-moving{border-radius:var(--r-ctl);background:var(--ds-color-selected-row);box-shadow:var(--sh-thumb)} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */

/* Vehicle: strip kept as the state source; the card is the only visible entry */
:root #vehicle-panel{flex:none;margin:0;padding:12px 8px 0;position:relative} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
:root #vehicle-panel>:not(.shell-vehicle-card):not(.shell-vehicle-menu),:root #vehicle-panel #vehicle-strip,:root #vehicle-panel .library-heading,:root #vehicle-panel #vehicle-name{display:none}
.shell-vehicle-card{display:flex;align-items:center;gap:8px;width:100%;height:48px;padding:0 8px;border:0;border-radius:var(--r-ctl);background:var(--c-raised);box-shadow:var(--sh-raised);color:var(--c-t1);font:inherit;text-align:left;cursor:pointer;box-sizing:border-box} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
.shell-vehicle-card .thumb{display:grid;place-items:center;flex:none;width:48px;height:32px;border-radius:var(--r-in);background:var(--c-fill);overflow:hidden} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
.shell-vehicle-card .thumb img{width:44px;height:28px;object-fit:contain} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
.shell-vehicle-card .text{display:flex;flex-direction:column;flex:1;min-width:0}
.shell-vehicle-card .caption{font-size:12px;line-height:16px;font-weight:500;letter-spacing:0;color:var(--c-t3)} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
.shell-vehicle-card .name{font-size:13px;line-height:16px;font-weight:500;color:var(--c-t1);white-space:nowrap;overflow:hidden;text-overflow:ellipsis} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
.shell-vehicle-card>svg{flex:none;width:16px;height:16px;color:var(--c-t3)} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
.shell-vehicle-card:disabled{cursor:default;opacity:.5}
.shell-vehicle-menu{position:fixed;z-index:60;box-sizing:border-box;padding:4px;border-radius:var(--r-panel);background:var(--c-raised);box-shadow:var(--sh-menu);transform-origin:bottom center;animation:shell-menu-in .14s cubic-bezier(.2,0,0,1)} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token; D-21 freezes this existing motion timing. */
.shell-vehicle-menu [role=menuitemradio]{display:flex;align-items:center;gap:8px;width:100%;height:40px;padding:0 4px;border:0;border-radius:var(--r-ctl);background:transparent;color:var(--c-t1);font:inherit;font-size:13px;line-height:16px;text-align:left;cursor:pointer} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
.shell-vehicle-menu [role=menuitemradio]+[role=menuitemradio]{margin-top:4px} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
.shell-vehicle-menu [role=menuitemradio] img{flex:none;width:48px;height:32px;object-fit:contain} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
.shell-vehicle-menu [role=menuitemradio]>span{flex:1;min-width:0;white-space:nowrap}
:root .shell-vehicle-menu [aria-checked=true]{background:var(--ds-color-selected-row)}
.shell-vehicle-menu [aria-checked=true] span{font-weight:500}
@keyframes shell-menu-in{from{opacity:0;transform:scale(.98) translateY(2px)}to{opacity:1;transform:none}} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
@media(hover:hover) and (pointer:fine){
 .shell-vehicle-card:hover:not(:disabled){opacity:.7}
}
.shell-vehicle-card:focus-visible,.shell-vehicle-menu [role=menuitemradio]:focus-visible{outline:2px solid var(--c-t1);outline-offset:2px} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */

/* Inspector: top 16 · text column 16 · group gap 20 · rows 32 / gap 4 · label 64 · control fills */
:root #inspector{padding:16px 0 12px} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
:root #inspector-scroll{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;padding:0 0 16px;overflow-y:auto} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
:root #inspector-scroll>section,:root #inspector-scroll>#scene-settings,:root #inspector-scroll>#shared-settings{padding:0 16px;border:0;box-shadow:none} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
:root #inspector-scroll>section{margin:0}
:root #inspector-scroll>#shared-settings:not([hidden]),:root #inspector-scroll>#shared-settings~section:not([hidden]){margin-top:var(--shell-group-gap)}
:root #inspector-scroll>section::before{display:none}
:root #inspector .properties,:root #layers{display:flex;flex-direction:column;gap:4px;margin:0} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
:root #inspector .property,:root #shared-weather{display:grid;grid-template-columns:var(--shell-label) minmax(0,1fr);align-items:center;height:32px;margin:0;gap:0} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
:root #inspector .property[hidden],:root #inspector [hidden]{display:none}
:root #scene-properties .property:has([data-param=weather]){display:none}
:root #inspector .property-label,:root #inspector .shared-label{font-size:13px;line-height:16px;color:var(--c-t2)} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
:root #inspector .segment,:root #inspector .shared-weather-options,:root #inspector .format-trigger,:root #inspector .export-size{width:100%;height:28px;box-sizing:border-box} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
:root #inspector .segment,:root #inspector .shared-weather-options{padding:2px;border-radius:var(--r-ctl);background:var(--c-fill)} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
/* The selection script positions the thumb with translate3d(x, 2px). CSS must not offset it again. */
:root #inspector .segment-indicator{top:0;left:0;height:24px;border-radius:var(--r-in);background:var(--c-segment-sel);box-shadow:none} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
:root #inspector .segment button,:root #inspector .shared-weather-options button{height:24px;font-size:13px;line-height:16px;color:var(--c-t2)} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
:root #inspector .segment button[aria-checked=true],:root #inspector .shared-weather-options button[aria-checked=true]{color:var(--c-t1);font-weight:500}
:root #inspector .format-trigger{padding:0 8px;border:0;border-radius:var(--r-ctl);background:var(--c-fill);color:var(--c-t1);font-size:13px} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
:root #layers .layer-row{height:32px;margin:0;padding:0;color:var(--c-t2);font-size:13px;line-height:16px} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
:root #layers .layer-row span{color:var(--c-t2)}

/* Export: pinned below the scroll area; author removed both divider layers on 2026-11-04. */
:root #inspector>#export-section{flex:none;position:relative;margin:0;padding:16px 16px 0;box-shadow:none} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
:root #inspector>#export-section::before{content:none}
:root #export-preview{margin:4px 0 8px} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
:root #export-preview summary{display:flex;align-items:center;gap:4px;height:32px;font-size:13px;line-height:16px;color:var(--c-t2)} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
:root #export{width:100%;height:32px;margin:0;border-radius:var(--r-ctl);font-size:13px;font-weight:500} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */

/* Toast geometry follows the design system component; align it to the preview without covering controls. */
.ds-toast-stack{position:fixed;top:calc(var(--feedback-y,100%) - var(--ds-space-5));left:var(--feedback-x,50%);transform:translate(-50%,-100%);width:max-content;max-width:calc(100% - var(--ds-space-10));z-index:var(--ds-z-toast)}
.ds-toast{display:flex;align-items:center;gap:var(--ds-space-4);min-height:var(--ds-size-touch);padding:var(--ds-space-2) var(--ds-space-5);border-radius:var(--ds-radius-panel);background:var(--ds-color-raised);color:var(--ds-color-text-1);font:var(--ds-text-ui);box-shadow:var(--ds-shadow-menu)}
.ds-toast[hidden],#feedback-action:empty{display:none}
#feedback-action{flex:none}
#feedback-action :is(button,a){display:inline-flex;align-items:center;min-height:var(--ds-size-touch);padding-inline:var(--ds-space-3);font:var(--ds-text-ui-strong);color:inherit;text-decoration:underline;text-underline-offset:var(--ds-space-2)}
.feedback-live{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)} /* ds-allow: standard visually hidden live region retains announcements. */

/* Menus */
:root:has(button[aria-haspopup][aria-expanded=true]) #menu-cover{position:absolute;inset:0;z-index:13}
:root .format-options{padding:4px;border-radius:var(--r-panel);box-shadow:var(--sh-menu);background:var(--c-raised)} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
:root .format-options button{height:32px;border-radius:var(--r-ctl);font-size:13px} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */

/* Playback: 12 below the canvas, centred on it */
:root #canvas-playback #scene-transport{width:112px;min-width:112px;max-width:112px;flex:0 0 112px;justify-content:center;white-space:nowrap;height:40px;padding:0 12px;border:0;border-radius:var(--r-ctl);background:var(--c-raised);box-shadow:var(--sh-raised);color:var(--c-t1);font-size:13px;font-weight:500} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */

/* Below 960 the existing stacked layout stays; only the surfaces follow v5. */
@media(max-width:959px){ /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
 :root .workspace{grid-template-columns:208px minmax(0,1fr)} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
 :root #inspector-scroll>#export-section{grid-column:1/-1;flex:none}
 :root #library .scene-row{padding-left:20px} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
}
@media(prefers-reduced-motion:reduce){.shell-vehicle-menu{animation:none}}

/* Scene preparation locks input without a disabled-opacity pulse. */
body[data-ready=true] #canvas-playback #scene-transport:disabled{opacity:1}
:root #canvas-playback #scene-transport:not([role=switch]):disabled{opacity:1;color:var(--ds-color-text-2)}

:root #inspector .segment svg,:root #inspector .shared-weather-options svg{width:16px;height:16px;stroke-width:1.5} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */

/* State cues: shared opaque selection fill across lists, menus and segments. */
:root #layers .layer-row[aria-pressed=true]::after{background:var(--c-toggle-on)}
:root #layers .layer-row[aria-pressed=true]::before{background:var(--ds-color-on-accent)}
:root #layers .layer-row[aria-pressed=false]:not(:disabled)::after{background:var(--ds-color-track);box-shadow:var(--sh-raised)}
:root[data-theme=dark] #layers .layer-row[aria-pressed=false]:not(:disabled)::after{background:var(--ds-color-switch-off);box-shadow:none}
:root #layers .layer-row[aria-pressed=false]:not(:disabled)::before{background:var(--ds-color-on-accent);box-shadow:var(--sh-raised)}
#parking-status{position:absolute;z-index:4;inset:0;display:flex;align-items:flex-start;gap:9px;padding:14px 16px;overflow:hidden;border-radius:inherit;pointer-events:none;color:var(--c-t1);font-variant-numeric:tabular-nums;opacity:1;visibility:visible;transition:opacity 250ms linear,visibility 0s linear} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token; D-21 freezes this existing motion timing. */
#parking-status[hidden]{display:flex!important;opacity:0;visibility:hidden;transition:opacity 250ms linear,visibility 0s linear 250ms} /* ds-allow: D-21 freezes this existing motion timing. */
.parking-gear{width:24px;height:24px;flex:none;display:block;margin-top:5px} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
.parking-gear svg{width:100%;height:100%;overflow:visible}
.parking-gear circle{fill:none;stroke:currentColor;stroke-width:3;opacity:.4} /* ds-allow: Restore the author-confirmed HUD ring opacity. */
.parking-gear text{fill:currentColor;text-anchor:middle;font-family:Arial,sans-serif;font-size:20px;font-weight:600} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
#parking-status[data-executing=true] .parking-ring{color:var(--c-parking-active);opacity:1}

.parking-copy{display:flex;flex-direction:column;gap:4px} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
.parking-instruction{font-size:13px;font-weight:500;line-height:1.23;white-space:nowrap} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
.parking-reminder{font-size:11px;font-weight:400;line-height:1.27;color:var(--c-t2)} /* ds-allow: Author explicitly requested restoration of the original HUD typography. */
@media(max-width:959px){#parking-status{padding:10px 12px;gap:8px}.parking-gear{width:24px;height:24px;margin-top:4px}.parking-copy{gap:3px}.parking-instruction{font-size:12px;line-height:1.25}.parking-reminder{font-size:11px;line-height:1.27}} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
@media(forced-colors:active){
 :root #inspector .segment-indicator,:root .shell-vehicle-menu [aria-checked=true]{outline:1px solid Highlight;outline-offset:-1px} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
 :root #layers .layer-row[aria-pressed=true]::after{background:Highlight}
 :root #layers .layer-row[aria-pressed=true]::before{background:HighlightText}
}

/* Share one opacity transition with the HUD; keep building contours continuous. */
#parking-status::before{content:"";position:absolute;z-index:-1;inset:0 0 auto;height:128px;pointer-events:none;background:linear-gradient(to bottom,rgba(188,196,207,.76) 0%,rgba(188,196,207,.66) 28%,rgba(188,196,207,.4) 52%,rgba(188,196,207,.14) 76%,rgba(188,196,207,0) 100%)} /* ds-allow: Restore the author-confirmed original HUD scrim, including its 128px height and gradient. */
:root[data-theme=dark] #parking-status::before{background:linear-gradient(to bottom,rgba(20,24,29,.7) 0%,rgba(20,24,29,.6) 28%,rgba(20,24,29,.36) 52%,rgba(20,24,29,.12) 76%,rgba(20,24,29,0) 100%)} /* ds-allow: Author explicitly requested restoration of the original parking HUD scrim and its theme colors. */

@media(prefers-reduced-motion:reduce){#parking-status{transition-duration:120ms,0s}#parking-status[hidden]{transition-duration:120ms,0s;transition-delay:0s,120ms}} /* ds-allow: D-21 freezes this existing motion timing. */

/* Phone shell: the canvas stays visible while the settings below it scroll.
 * Desktop keeps its existing geometry and control dimensions. */
#mobile-scene{display:none}
@media(max-width:639px), (max-width:959px) and (max-height:500px), (max-width:959px) and (orientation:portrait){ /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
 html{overscroll-behavior:none;-webkit-text-size-adjust:100%}
 :root #app{height:100dvh;padding-top:env(safe-area-inset-top,0px)}
 :root .toolbar{height:48px;flex-basis:48px;margin-bottom:12px;padding-inline:16px} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
 :root #theme{width:44px;height:44px;margin-right:-8px;touch-action:manipulation} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
 /* Upper controls use 12px; the stage keeps 8px after Play for a 20px panel gap. */
 :root .workspace{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:44px minmax(0,min(calc((100vw - 32px)*.5625 + 64px),42dvh)) minmax(0,1fr)!important;gap:12px;padding:0 max(16px,env(safe-area-inset-right,0px)) max(8px,env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px))} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
 :root #stage{grid-column:1;grid-row:2;min-height:0;width:100%;height:auto;max-height:none}
 :root #artboard,:root #artboard .artboard-clip,:root #artboard #engine,:root #artboard #frame-cover{border-radius:var(--r-ctl)} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
 :root #artboard .artboard-clip{box-shadow:0 0 0 1px var(--c-line)}
 :root #canvas-playback{top:calc(100% + 12px)} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
 :root #artboard #canvas-playback #scene-transport{height:44px;width:100%;min-width:0;max-width:none;flex:1 1 auto;font-size:13px} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
 :root #canvas-playback #indicator-mute{height:44px;width:44px} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
 :root #library{grid-column:1;grid-row:1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);align-items:start;gap:12px;min-height:0;padding:0;background:transparent;border:0;box-shadow:none;overflow:visible} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
 :root #library #scene-nav{display:none}
 :root #mobile-scene{display:block;width:100%;height:44px;padding:0 36px 0 12px;border:0;border-radius:var(--r-ctl);position:relative;box-shadow:var(--sh-panel);color:var(--c-t1);font:inherit;font-size:13px;font-weight:500;line-height:1.230769;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */

 :root #vehicle-panel{padding:0;min-width:0}
 :root .shell-vehicle-card{height:44px;gap:6px;padding-right:12px;box-shadow:var(--sh-panel)} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
 /* Keep both compact pickers steady on press and during vehicle preparation. */
 :root #library :is(#mobile-scene,.shell-vehicle-card){background:var(--c-panel);scale:none}
 :root #library .shell-vehicle-card:hover:not(:disabled),:root #library[aria-busy=true] :is(#mobile-scene,.shell-vehicle-card){opacity:1}
 :root .shell-vehicle-card .thumb{width:36px;height:28px;background:transparent} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
 :root .shell-vehicle-card .thumb img{width:36px;height:26px} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
 :root .shell-vehicle-card .caption{display:none}
 :root .shell-vehicle-card .name{font-size:13px;line-height:1.230769} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
 :root .shell-vehicle-card>svg{width:16px;height:16px;color:var(--c-t2)} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
 :root .shell-vehicle-menu{animation:none;max-height:min(280px,70dvh);overflow-y:auto;overscroll-behavior:contain;transform-origin:top right} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
 :root .shell-vehicle-menu [role=menuitemradio]{height:44px;font-size:13px} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
 :root .shell-scene-menu{padding:8px;transform-origin:top left;touch-action:pan-y} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
 :root .shell-scene-menu [role=group]+[role=group]{margin-top:8px} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
 :root .shell-scene-menu .shell-menu-heading{height:24px;padding:0 8px;color:var(--c-t3);font-size:12px;font-weight:500;line-height:24px} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
 :root .shell-scene-menu [role=menuitemradio]{padding-inline:8px;touch-action:manipulation;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
 :root .shell-scene-menu [role=menuitemradio]+[role=menuitemradio]{margin-top:0}
 :root #mobile-scene:focus-visible{outline:2px solid var(--c-t1);outline-offset:2px} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
 :root .shell-scene-menu [role=menuitemradio]:focus-visible{outline:2px solid var(--c-t1);outline-offset:-2px} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
 :root .shell-scene-menu [role=menuitemradio]:active:not([aria-checked=true]){background:var(--pressed)}
 /* Give the settings a definite grid track and let the scroller own its clip.
  * The card itself does not need a second overflow layer on mobile. */
 :root #inspector{position:relative;grid-column:1;grid-row:3;display:grid;grid-template:minmax(0,1fr) / minmax(0,1fr);min-height:0;padding:0;border:0;overflow:visible;box-shadow:var(--sh-panel)}
 :root #inspector-scroll{display:block;height:auto;min-height:0;overflow-y:auto;overflow-x:hidden;border-radius:inherit;padding-block:var(--ds-space-6);scroll-padding-block:var(--ds-space-6);overscroll-behavior:contain;scrollbar-width:none}
 :root #inspector-scroll::-webkit-scrollbar{display:none;width:0;height:0}
 :root #inspector-scroll>section,:root #inspector-scroll>#scene-settings,:root #inspector-scroll>#shared-settings{padding-inline:16px} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
 /* The workspace owns the safe area; scroll padding supplies the final 16px. */
 :root #inspector-scroll #export-section{position:relative;margin-top:var(--shell-group-gap);padding:0 16px;padding-bottom:0!important;border:0;width:auto} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
 :root #inspector-scroll #export-section::before{display:none}
 :root #inspector .properties,:root #layers{gap:8px} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
 :root #inspector .property,:root #shared-weather{height:44px;grid-template-columns:72px minmax(0,1fr)} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
 :root #inspector .property-label,:root #inspector .shared-label,:root #layers .layer-row{font-size:13px} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
 :root #inspector .segment,:root #inspector .shared-weather-options{height:40px} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
 :root #inspector .segment button,:root #inspector .shared-weather-options button{height:36px;font-size:13px} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
 /* Keep a 44px touch target around the more compact segmented visuals. */
 :root #inspector .segment button::after,:root #inspector .shared-weather-options button::after{content:'';position:absolute;inset:-4px 0} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
 :root #inspector .segment-indicator{height:36px} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
 :root #inspector .format-trigger,:root #inspector .export-size{height:var(--ds-size-touch);font-size:13px} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
 :root #inspector select{height:var(--ds-size-touch);font-size:16px} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
 :root #layers .layer-row{height:44px} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
 :root #export-preview summary,:root #export{height:44px;font-size:13px} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
 :root .format-options button{height:44px;font-size:13px;touch-action:manipulation} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
 :root .format-options button[aria-selected=true]::after{top:17px} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
 :root #export-preview-description{font:var(--ds-text-ui-caption);line-height:1.45}
 :root #export{width:100%;margin:8px 0 0} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
 :root #inspector button,:root #inspector select,:root #library button,:root #library select,:root #canvas-playback button{touch-action:manipulation;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none}
 :root #parking-status{padding:10px;gap:6px} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
 :root .parking-gear{width:20px;height:20px} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
 :root .parking-reminder{font-size:11px} /* ds-allow: Restore the original phone HUD typography at author request. */
}
/* On short landscape phones, stacking the preview leaves too little room to read and tap settings. */
@media(min-width:640px) and (max-width:959px) and (max-height:500px),(min-width:480px) and (max-width:639px) and (max-height:400px){ /* ds-allow: Extend the existing short landscape layout to phone widths without changing the portrait or desktop breakpoints. */
 :root .toolbar{height:40px;flex-basis:40px} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
 :root .workspace{grid-template-columns:minmax(0,1.4fr) minmax(min(280px,50%),1fr)!important;grid-template-rows:44px minmax(0,1fr)!important;gap:12px} /* ds-allow: Keep the existing 280px settings minimum where it fits; cap it at half the width on smaller phones so both columns stay usable. */
 :root #stage{grid-column:1;grid-row:2}
 :root #library{grid-column:1;grid-row:1}
 :root #inspector{grid-column:2;grid-row:1/3}
 @media(max-width:639px){ /* ds-allow: At the existing phone breakpoint, let both pickers span the top so vehicle names keep their room. */
  :root #library{grid-column:1/-1}
  :root #inspector{grid-row:2}
 }
}

/* Clip the raster once. Nested, mismatched radii exposed the canvas surround. */
:root #artboard{background:transparent}
:root #artboard .artboard-clip{border-radius:inherit;isolation:isolate;box-shadow:none}
:root #artboard #engine,:root #artboard #frame-cover{border-radius:0}
/* One inset stroke follows the host clip; inner raster surfaces stay rectangular. */
:root #artboard::after{content:'';position:absolute;inset:0;z-index:10;box-sizing:border-box;border:1px solid var(--c-line);border-radius:inherit;pointer-events:none}

/* Keep the switch surface and wheel fixed while the disc changes color. */
:root #canvas-playback #scene-transport[role=switch]{position:relative;inset:auto;background:var(--c-raised);box-shadow:var(--sh-raised);scale:none;opacity:1}
:root #scene-transport[role=switch]::before{content:"";width:20px;height:20px;flex:none;border-radius:50%;background-color:color-mix(in srgb,var(--assist-disc-off) 80%,transparent);background-image:url("./assist-wheel-off.svg");background-position:center;background-size:contain;background-repeat:no-repeat;transition:background-color var(--ds-motion-base)} /* ds-allow: Author-supplied Sketch wheel normalized to the 20px visible disc (author-confirmed 2026-11-04); preserve off-disc 80% opacity. */

:root #scene-transport[role=switch][aria-checked=true]::before{background-color:var(--ds-color-accent-fill);background-image:none}
@media(prefers-reduced-motion:reduce){:root #scene-transport[role=switch]::before{transition:none}}

/* Playback changes time independently from assistance in driving scenes. */
:root #artboard #canvas-transport{position:absolute;left:12px;bottom:12px;z-index:12;width:32px;height:32px;border-radius:var(--r-ctl);background:var(--c-raised);box-shadow:var(--sh-raised);color:var(--c-t1);opacity:0;pointer-events:none;transition:opacity .12s} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token; D-21 freezes this existing motion timing. */
@media(hover:none){:root #artboard #canvas-transport{width:44px;height:44px}} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
@media(prefers-reduced-motion:reduce){:root #artboard #canvas-transport{transition:none}}

/* Keep the canvas mask and its outline on the same rounded boundary. */
:root #artboard{border-radius:var(--r-panel)} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
:root #artboard .artboard-clip{border-radius:var(--r-panel);clip-path:none} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
:root #artboard::after{border-radius:var(--r-panel)} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */

/* Align the parking status and playback control to the same canvas inset. */
:root #parking-status{padding-left:12px} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */

:root #canvas-transport::before{content:'';width:18px;height:18px;clip-path:none;background:currentColor;mask:url("./replay.svg") center/contain no-repeat} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */

:root #artboard #canvas-transport{background:color-mix(in srgb,var(--c-raised) 78%,transparent);box-shadow:0 0 0 .5px var(--c-line);color:var(--c-t2);opacity:0;pointer-events:none;transition:opacity 200ms linear} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token; D-21 freezes this existing motion timing. */
:root #artboard #canvas-transport[data-visible=true]{opacity:1;pointer-events:auto}
:root #artboard #canvas-transport[data-visible=false]{opacity:0;pointer-events:none}
.replay-veil{position:absolute;inset:0;z-index:10;background:var(--canvas);opacity:1;pointer-events:none}
@media(prefers-reduced-motion:reduce){:root #artboard #canvas-transport{transition:none}}

body[data-ready=true] #canvas-playback #scene-transport[role=switch][data-finished=true]:disabled{opacity:.45}

/* Visual system v5 · 2026-11-04
 * Semantic light / cool-neutral dark scale, three materials: ground (canvas), face (flat + 1px
 * hairline), raised (hairline + soft 0 12 28 -14 shadow; dark uses a brighter
 * face instead of shadow). No gradients, no top inner highlight.
 * Superellipse corners, concentric: inner = outer - padding.
 * Motion untouched; sliding thumbs carry a hairline, never a drop shadow. */
:root{




 --r-panel:10px;--r-ctl:6px;--r-in:4px; /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
 --shell-group-gap:24px; /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
}

/* Superellipse corners on every shell surface; plain radii where unsupported. */
:root :is(#library,#inspector,#artboard,#artboard .artboard-clip,#canvas-transport,#parking-status,#theme,#tooltip,.shell-scene-menu,.shell-scene-menu [role=menuitemradio],.shell-vehicle-card,.shell-vehicle-menu,.shell-vehicle-menu [role=menuitemradio],.shell-vehicle-card .thumb,#library .scene-row,#library .scene-indicator,#inspector .segment,#inspector .shared-weather-options,#inspector .segment-indicator,#inspector .format-trigger,#inspector select,#export,.format-options,.format-options button,#canvas-playback button,#mobile-scene){corner-shape:superellipse(1.6)}
/* Author follow-up: pseudo-elements must follow the same continuous corner as their surface. */
:root :is(#library,#inspector,#artboard,#parking-status)::before,
:root :is(#library,#inspector,#artboard,#parking-status)::after{corner-shape:inherit}
/* Only the thumb on a segmented track has the selected edge. */
:root #inspector .segment-indicator{box-shadow:var(--sh-thumb)}
/* Titles sit close to their group; groups breathe apart. */
:root #library .nav-title,:root #inspector h2{margin-bottom:4px} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
:root #library .nav-title:not(:first-of-type){margin-top:24px} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
/* Assist switch sizes to its name; the minimum keeps the old footprint. */
:root #canvas-playback #scene-transport{width:auto;min-width:112px;max-width:none;flex:0 0 auto;padding:0 var(--ds-space-6);gap:var(--ds-space-4)} /* ds-allow: Author follow-up increases icon-to-label spacing to the approved 8px token; D-21 retains the existing keypage geometry, radii and type metrics on this rule. */
/* Neutral off-state for switches; only "on" uses the single accent. */
:root #layers .layer-row[aria-pressed=false]:not(:disabled)::after{background:var(--ds-color-track);box-shadow:none}
:root[data-theme=dark] #layers .layer-row[aria-pressed=false]:not(:disabled)::after{background:var(--ds-color-switch-off);box-shadow:none}
/* Keyboard focus: one 2px ink ring, offset 2, following the element's corner. */
:root :is(#library .scene-row,#inspector button,#inspector select,#inspector summary,#canvas-playback button,#theme):focus-visible{outline:2px solid var(--c-t1);outline-offset:2px} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
/* Author 2026-11-04: Assist and pickers share the control corner; panels/canvas retain the panel corner. */
:root #canvas-playback #scene-transport{border-radius:var(--ds-radius-control)}
/* Export is the page's single emphasis: raised face plus a 1.5px ink stroke.
 * No large solid ink block in light, no large light block in dark. */
:root #inspector #export:not(:disabled){background:var(--c-raised);color:var(--c-t1);box-shadow:0 0 0 1.5px var(--c-t1),var(--v5-lift)}

:root #inspector #export:not(:disabled) #export-label{color:inherit}
:root #inspector #export:disabled{background:var(--c-fill);color:var(--c-t3);box-shadow:none;opacity:1}
@media(max-width:639px), (max-width:959px) and (max-height:500px), (max-width:959px) and (orientation:portrait){ /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
 /* Scene and vehicle pickers use the existing smaller size. */
 :root #mobile-scene,:root .shell-vehicle-card .name{font-size:12px;line-height:16px} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
 /* Canvas → Play 12, Play → panel about 20; titles hug their rows. */
 :root #inspector .properties,:root #layers{gap:4px} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
 :root #inspector h2{margin-bottom:2px} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
 :root #inspector-scroll>#shared-settings:not([hidden]),:root #inspector-scroll>#shared-settings~section:not([hidden]),:root #inspector-scroll #export-section{margin-top:28px} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
 :root #artboard #canvas-playback #scene-transport{width:100%;flex:1 1 auto;min-width:0;box-shadow:var(--sh-thumb)}
 :root #artboard,:root #artboard .artboard-clip,:root #artboard::after{border-radius:var(--ds-radius-panel)}
 :root #mobile-scene,:root .shell-vehicle-card,:root #artboard #canvas-playback #scene-transport{border-radius:var(--ds-radius-control)}
}

/* Round 3: approved static values; all pre-existing motion declarations retained. */
:root #inspector :is(.format-trigger,select){box-shadow:var(--sh-raised)}
:root[data-theme=dark] #inspector :is(.format-trigger,select){box-shadow:var(--sh-raised)}
:root #library .nav-title,:root #inspector h2,:root .shell-scene-menu .shell-menu-heading{color:var(--c-t2)}
:root .project-name{font-size:14px;line-height:20px;font-weight:500} /* ds-allow: D-21 retains the existing keypage geometry, radii and type metrics on this rule; authorized sub-12 text is separately migrated to the caption token. */
/* Keep labels readable while the locked actions use the existing disabled state. */
:root #inspector [inert] :is(button,summary,select):not(:disabled){opacity:var(--ds-motion-disabled-opacity)}
/* D-05 explicitly changes disabled opacity; it is the sole D-21 opacity exception. */
:root button:disabled,:root select:disabled,:root .shell-vehicle-card:disabled,:root #inspector #export:disabled{opacity:.45}
:root:is([data-startup=controls],[data-startup=revealing]) [data-startup-control]:disabled{--startup-opacity:.45}

/* D-24: borderless segmented track; selected indicator retains its existing thin edge. */
:root #inspector .segment,:root #inspector .shared-weather-options{box-shadow:none}
:root #inspector .segment button,:root #inspector .shared-weather-options button{color:var(--c-t1)}

/* D-57–65: approved visibility fixes; geometry and motion timing are retained. */
:root #mobile-scene::before{content:"";position:absolute;right:var(--ds-space-5);top:50%;transform:translateY(-50%);width:var(--ds-size-icon);height:var(--ds-size-icon);color:var(--ds-color-text-2);background:currentColor;mask:url("./chevron-down.svg") center/contain no-repeat}
:root #inspector .segment button,:root #inspector .shared-weather-options button{color:var(--ds-color-text-2);font-weight:400}
:root #inspector .segment button[aria-checked=true],:root #inspector .shared-weather-options button[aria-checked=true]{color:var(--ds-color-text-1);font-weight:500}
:root #layers .layer-row[aria-pressed=false]:not(:disabled)::after{background:var(--ds-color-switch-off);box-shadow:none}
:root #layers .layer-row::before{background:var(--ds-color-on-accent)}
:root #inspector #export:not(:disabled){background:var(--ds-color-accent-fill);color:var(--ds-color-on-accent);border:0;box-shadow:none}
:root #export::before{background:color-mix(in srgb,var(--ds-color-on-accent) 18%,transparent)}
:root #artboard #canvas-transport{background:var(--ds-color-raised);color:var(--ds-color-text-1)}
:root #tooltip{background:var(--ds-color-ink);color:var(--ds-color-face);font:var(--ds-text-ui-caption);box-shadow:none}
:root .format-options button[aria-selected=true]{background:var(--ds-color-selected-row);color:var(--ds-color-text-1);font-weight:500}
:root .format-options button[aria-selected=true]::after{content:none}
:root .shell-vehicle-card .caption{color:var(--ds-color-text-2)}

/* ds-allow: Author confirmed local light segment text #6B6B6B on 2026-11-04; #6E6E6E on #ECECEC measures only 4.316:1. */
:root[data-theme=light] #inspector :is(.segment,.shared-weather-options){--ds-color-text-2:#6B6B6B}
/* ds-allow: Item 6 minimum visible text: the 40-unit SVG is displayed at 20px on phones, so a 24-unit glyph renders at 12px without changing the icon footprint. */
@media(max-width:639px){:root .parking-gear text{font-size:24px}}
/* ds-allow: Author-approved local secondary text darkening; the phone scene-menu shadow reduced a visible layer label to 4.238:1. Keep the global text-2 token unchanged. */
@media(max-width:639px){:root[data-theme=light] #layers .layer-row{--ds-color-text-2:#676767;color:var(--ds-color-text-2)}:root[data-theme=light] #layers .layer-row span{color:inherit}}

/* Panel spacing model, desktop (SPEC 6.1): every row is 32 with a 28 control, rows 4 apart, so the visual gap
   between controls is always 8. Dropdown triggers use the same 28 as segments instead of an extra margin. */
@media(min-width:960px), (min-width:640px) and (min-height:501px) and (orientation:landscape){ /* ds-allow: Keep dense desktop field sizes out of the stacked touch layout. */
 :root #inspector .format-trigger,:root #inspector .export-size{height:var(--ds-size-control);min-height:var(--ds-size-control)}
 :root #export-section .property+.property{margin-top:0}
}
:root .shell-vehicle-card>svg{color:var(--ds-color-text-2)}
/* A comma followed by `none` invalidates a complete box-shadow list. Dark mode
   has no elevation shadow, so retain only each existing control/menu fine edge. */
:root[data-theme=dark]{
 --e1:0 0 0 1px var(--ds-color-line-control); /* ds-allow: D-66 requires the existing 1px control edge in dark mode; omit the invalid trailing none. */
 --float:0 0 0 1px var(--ds-color-line-control); /* ds-allow: D-66 requires the existing 1px menu edge in dark mode; omit the invalid trailing none. */
 --e1-lifted:var(--e1);--control-shadow:var(--e1);--sh-raised:var(--e1);--sh-menu:var(--float);
}


/* Author follow-up: phone spacing and text, using the existing type/space scale. */
@media(max-width:639px), (max-width:959px) and (orientation:portrait){ /* ds-allow: Apply the existing stacked fields to narrow portrait layouts on both sides of 640px. */
 /* Panel spacing model, phone stacked (SPEC 6.1): title→label 8, label→control 6, field→field 16, list rows 4, group 28. */
 :root #inspector .properties{gap:var(--ds-space-6)}
 :root #layers{gap:var(--ds-space-2)}
 :root #inspector h2{font:var(--ds-text-ui-strong);height:auto;margin-bottom:var(--ds-space-4)}
 :root #inspector-scroll>#shared-settings:not([hidden]),:root #inspector-scroll>#shared-settings~section:not([hidden]),:root #inspector-scroll #export-section{margin-top:var(--ds-space-9)}
 :root #inspector .property,:root #shared-settings #shared-weather{grid-template-columns:minmax(0,1fr);height:auto;row-gap:var(--ds-space-3);align-items:start}
 :root #inspector :is(.property-label,.shared-label){display:block;min-height:var(--ds-space-7)}
 :root #inspector :is(.segment,.shared-weather-options,.format-trigger,.export-size){height:var(--ds-size-touch)}
 :root #inspector :is(.segment button,.shared-weather-options button,.segment-indicator){height:calc(var(--ds-size-touch) - var(--ds-size-thumb-inset) * 2)}
 :root #inspector :is(.property-label,.shared-label,.segment button,.shared-weather-options button,.format-trigger),:root #layers .layer-row,:root #export-preview summary{font:var(--ds-text-ui-name);font-weight:400}
 :root #inspector .segment button[aria-checked=true],:root #inspector .shared-weather-options button[aria-checked=true]{font-weight:500}
 /* Stacked fields: the group title stays text-2, field labels move to text-1 so the title is not the weaker of the two. */
 :root #inspector :is(.property-label,.shared-label),:root #layers .layer-row,:root[data-theme=light] #layers .layer-row{--ds-color-text-2:var(--ds-color-text-1);color:var(--ds-color-text-1)}
 :root #mobile-scene,:root .shell-vehicle-card .name,:root #artboard #canvas-playback #scene-transport,:root #export,:root .shell-scene-menu [role=menuitemradio],:root .shell-vehicle-menu [role=menuitemradio],:root .format-options button{font:var(--ds-text-ui-name)}
 :root #export-section .property+.property{margin-top:0}
 :root #export-preview{margin-block:var(--ds-space-2) var(--ds-space-5)}
}
@media(max-width:359px){ /* ds-allow: Author requested readable phone labels; omit the redundant vehicle thumbnail on the narrowest phones so the 14px model name fits. */
 :root .shell-vehicle-card .thumb{display:none}
}

/* Author 2026-11-04: one information blue across Export, switches, supplied
   active icon and the 3D information ribbon. Shared DS tokens remain untouched. */
:root[data-theme]{--ds-color-accent:var(--ds-color-accent-fill);--assist-disc-off:#757780} /* ds-allow: Preserve the neutral off-disc color from the author-supplied Sketch asset, source 9DCF19AA; active uses the approved accent-fill token. */

/* Author-requested matching side and bottom insets for the two desktop footers. */
@media(min-width:960px){ /* ds-allow: Preserve the existing desktop breakpoint for the author-requested footer alignment. */
 :root #library,:root #inspector{padding-bottom:var(--ds-space-6)}
 :root #vehicle-panel,:root #inspector>#export-section{padding-inline:var(--ds-space-6)}
}
