html:root body.ui-system .glass-panel { scrollbar-width:thin; scrollbar-color:#c4d2cb55 transparent; scrollbar-gutter:stable; overscroll-behavior:contain }
html:root body.ui-system .glass-panel::-webkit-scrollbar { width:5px; height:5px }
html:root body.ui-system .glass-panel::-webkit-scrollbar-thumb { background:#c4d2cb55; border-radius:9px }
html:root body.ui-system .glass-panel::-webkit-scrollbar-button { display:none }
html:root body.ui-system .glass-panel.glass-collapsed { scrollbar-gutter:auto; justify-items:center; box-sizing:border-box }
html:root body.ui-system .glass-collapsed>.glass-panel-head,
html:root body.ui-system .glass-collapsed>.glass-compact-rail { align-items:center; justify-content:center; width:100%; padding:0 }
html:root body.ui-system .glass-collapsed>.glass-panel-footer { margin-top:9px; padding:0; border:0 }
html:root body.ui-system .glass-collapsed>.glass-panel-footer button { display:grid; place-items:center; margin:auto; padding:0 }
html:root body.ui-system .glass-collapsed>.glass-panel-footer svg { margin:0 }
.cap-panel-handle { cursor:grab!important; touch-action:none; user-select:none }
.cap-panel-handle:active { cursor:grabbing!important }
.cap-panel-moved { z-index:39!important }
.glass-collapsed .cap-panel-handle { display:none!important }
.glass-panel-head .cap-panel-handle { flex:none; width:30px; min-height:34px!important; padding:0!important }
html:root body.ui-system .imm-actions .cap-panel-handle { grid-column:1/-1; width:100%!important; min-height:24px!important; height:24px!important; padding:0!important; font-size:18px }
.imm-ui-hidden .cap-panel-handle,.imm-ui-hidden .cap-compass,.imm-ui-hidden .cap-weather { display:none!important }
.imm-hud-host #scene-shot { display:none!important }
html:root body.ui-system .immersive-hud button.cap-compass { display:grid; place-items:center; width:82px!important; height:82px!important; padding:4px!important; border-radius:50%!important; background:var(--ui-surface)!important; pointer-events:auto }
.immersive-hud .cap-compass svg { width:70px; height:70px; overflow:visible }
.cap-compass .imm-heading { bottom:4px;right:4px }
.cap-weather { pointer-events:auto; max-width:100%; width:184px; border-radius:18px; background:var(--ui-surface); box-shadow:0 8px 24px #102b3028 }
.cap-weather summary { padding:10px 12px;cursor:pointer; font-weight:650 }
.cap-weather[open] { max-height:270px;overflow:auto;scrollbar-width:thin }
.cap-weather-fields { display:grid; gap:7px;padding:0 11px 10px }
.cap-weather-fields label { display:grid;gap:2px;margin:0 }
.cap-weather-fields select { width:100%; min-height:32px; color:#20312d;background:#f7faf7;border:0;border-radius:8px;padding:3px 6px }
.cap-weather-fields input[type=range] { width:100%;min-height:22px;height:22px;padding:0;margin:0;accent-color:var(--ui-accent) }
.cap-weather-fields label:has(output) { grid-template-columns:1fr auto }
.cap-weather-fields label:has(output) input { grid-column:1/-1 }
.cap-weather-fields label:has([type=checkbox]) { display:flex;align-items:center }
.immersive-hud { max-height:calc(100% - 24px); overflow:auto; scrollbar-width:thin; scrollbar-color:#c4d2cb55 transparent }
.immersive-hud>* { flex-shrink:0 }
.ci-selection .cap-space-filter { width:100%; min-height:42px; margin-bottom:7px }
.cap-preview-modes { display:flex; flex-wrap:wrap; align-items:center; gap:6px; padding:7px 0 }
.cap-preview-modes select { min-height:40px;max-width:100% }
.cap-interior-review,.cap-repair { min-width:0 }
.cap-review-elevation { background:#edf1ed;color:#29453a;border-radius:14px;padding:10px;display:grid;gap:6px }
.cap-review-elevation svg { width:100%!important;height:auto!important }
.cap-repair progress { width:100%;accent-color:var(--ui-accent) }
.cap-repair-media-row { display:grid;gap:8px;margin:8px 0;min-width:0;overflow-wrap:anywhere }
.cap-repair-media-row :is(img,video) { width:100%;max-height:180px;object-fit:contain;border-radius:12px }
.cap-repair-media-row a { color:inherit }
.cap-repair input[type=file] { width:100%;font-size:11px }
.ci-preview:has(.imm-hud-host) .ci-scene-controls { top:auto;right:auto;bottom:10px;left:10px;display:flex;flex-wrap:wrap }
.ci-preview:has(.imm-hud-host) .ci-scene-controls :is([data-action=zoom-in],[data-action=zoom-out]) { display:none }
.imm-root-hidden .ci-preview:has(.imm-hud-host) .ci-scene-controls { display:none }
.cap-city-map { position:absolute; inset:0 0 auto; width:100%;height:calc(100% - 62px); border:0; background:#e8eeea; z-index:1 }
.cap-city-map[hidden] { display:none }
.cap-city-link { min-height:44px; display:inline-flex;align-items:center;padding:8px 13px;background:#fff;color:#20342e;border-radius:24px;font-size:12px }
.cap-city-link[hidden],.cap-city-active .capital-globe-city,.cap-city-active .capital-globe-hint { display:none!important }
.cap-city-active .capital-globe-toolbar { bottom:8px;justify-content:center }
.cap-city-active .capital-globe-toolbar button,.cap-city-active .cap-city-link { font-size:11px!important;padding:8px 12px!important }
.scene-bottom { grid-template-columns:minmax(0,1fr) }
.imm-fullscreen-target:fullscreen>.cap-preview-modes,.imm-window-fullscreen>.cap-preview-modes { position:absolute;z-index:27;bottom:34px;left:12px;padding:5px 10px;background:#fff;border-radius:16px }
@media(max-width:700px){
 html:root body.ui-system .scene-bottom { width:auto;min-width:0;left:10px;right:10px;max-width:none }
 html:root body.ui-system .scene-controls { width:100%;min-width:0;max-width:100%;display:flex;flex-wrap:wrap }
 html:root body.ui-system .scene-controls>.segmented { min-width:0;flex:1 1 100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) }
 html:root body.ui-system .scene-controls>.segmented button { min-width:0;white-space:normal;padding:7px!important }
 html:root body.ui-system .timeline { min-width:0;width:100%;padding:12px }
 .timeline>div:first-child { flex-wrap:wrap;gap:3px 8px }
 .timeline input[type=range] { min-width:0;width:100% }
 .glass-panel-head .cap-panel-handle { display:none!important }
 html:root body.ui-system .glass-collapsed>.glass-compact-rail { flex-wrap:wrap;justify-content:flex-start }
 html:root body.ui-system .glass-collapsed>.glass-panel-head { width:auto }
 html:root body.ui-system .immersive-hud button.cap-compass { width:62px!important;height:62px!important }
 .immersive-hud .cap-compass svg { width:53px;height:53px }
 .cap-weather { width:134px }
 .cap-city-map { height:calc(100% - 112px) }
}
@media(min-width:701px){
 body:has(#territory:not([hidden]) .immersive-hud) .journey-dock { right:215px }
}
