body[data-proposal] .proposal-header{height:42px!important;min-height:42px!important;padding:6px 18px!important;justify-content:flex-end;gap:16px}
.proposal-brand,#presentation-counts,.section-eyebrow,#proposal-sidebar-heading,#allocation-mode{display:none!important}
body[data-proposal] .proposal-main{height:calc(100vh - 42px)!important;grid-template-columns:280px minmax(0,1fr)!important}
body[data-proposal] aside{display:flex;flex-direction:column;gap:12px;padding:18px!important}
aside>#section-panel{order:0}aside>details,aside>#lane-reference-panel{order:2}aside>#proposal-data-settings{order:3}
#section-panel{border:0!important;margin:0!important;padding:0!important}#section-panel>h2{font-size:17px!important;margin-bottom:14px!important}
label{font-size:13px!important;margin:12px 0 6px!important}select,input{font:inherit}select{min-height:38px}#manual-green{border:1px solid #49667d;border-radius:6px;background:#20384d;color:#eef5f8}#manual-apply{margin-left:8px;background:#147562;border-color:#52baa6;padding:9px 18px}
#manual-help{margin:5px 0 12px;color:#adc6cf}#manual-feedback{font-size:12px!important;padding:8px!important;line-height:1.5}#section-demo-phase{font-size:13px!important;border-radius:8px;line-height:1.6!important}
#exercise-panel,.compact-details,aside>details{border:1px solid #314d60!important;border-radius:8px;padding:10px!important;background:transparent!important;margin:10px 0!important}
summary{cursor:pointer;font-size:13px!important;color:#bed2dd}#exercise-panel input{width:100%;margin-top:6px;padding:8px;border:1px solid #49667d;border-radius:6px;background:#20384d;color:#eef5f8}#exercise-panel button{margin:4px 3px 3px 0}
.compact-details p{font-size:12px;line-height:1.6}#manual-comparison{font-size:12px!important;border:0!important;padding:8px 0!important}.scenario-badge{padding:4px 10px!important;font-size:11px!important}
#compact-outcome{margin:16px 0;padding:14px;background:#173b3c;border:1px solid #356865;border-radius:9px}#compact-outcome h3{font-size:12px;color:#a8c8c8;margin:0 0 9px}#compact-outcome-state{font-size:18px!important;margin:0 0 8px;line-height:1.3!important}#compact-outcome-values{font-size:13px;line-height:1.6}#compact-outcome small{display:block;font-size:10px;margin-top:10px;color:#9ab7bd}#compact-legend{position:absolute;right:14px;bottom:38px;z-index:10;background:#102638ee;border:1px solid #446477;border-radius:8px;padding:10px 13px;display:flex;gap:9px;align-items:center;font-size:12px;flex-wrap:wrap;max-width:280px;pointer-events:none}#compact-legend .ramp{width:65px;height:6px;border-radius:5px;background:linear-gradient(90deg,#16b328,#d4c914,#cf2424)}#compact-legend small{width:100%;font-size:10px}
@media(max-width:700px){body[data-proposal] .proposal-main{grid-template-columns:230px minmax(0,1fr)!important}body[data-proposal] aside{padding:12px!important}}

body.camera-minimap>header,body.camera-minimap aside,body.camera-minimap #compact-legend{display:none!important}body.camera-minimap main{display:block!important;height:100vh!important;padding:0!important}body.camera-minimap #map{width:100%!important;height:100vh!important}body.camera-minimap #camera-location+button{top:8px!important;font-size:10px}

body[data-proposal].camera-mixed .proposal-header{display:none!important}body[data-proposal].camera-mixed .proposal-main{height:100vh!important;grid-template-columns:var(--shared-sidebar,280px) minmax(0,1fr)!important}

/* Stable live-status slots prevent sidebar controls moving every phase tick. */
#section-demo-phase{min-height:3.5em;font-variant-numeric:tabular-nums}#manual-feedback{min-height:4.8em;box-sizing:border-box;font-variant-numeric:tabular-nums}#compact-outcome-state{min-height:2.8em}#compact-outcome-values{min-height:3em;font-variant-numeric:tabular-nums}

#manual-priority{width:100%;background:#176b83;border:1px solid #55dcff;padding:12px;font-weight:600}#priority-status{min-height:3.5em;font-size:12px;line-height:1.6}#timing-secondary>summary{cursor:pointer;padding:12px 0;color:#a9cadd}

/* Source diagnostics are not public operation controls. */
#proposal-data-settings,#lane-reference-panel,#proposal-section-details,#section-demo-next,#section-detail{display:none!important}

/* Hold the initial full-area frame until the shared viewing center is ready. */
#map:not([data-view-ready="true"])>*{visibility:hidden!important}
#map:not([data-view-ready="true"])::after{content:"定位視角中…";position:absolute;inset:0;display:grid;place-items:center;background:#102e53;color:#c6e6fa;font-size:13px;z-index:50;pointer-events:none}

.temporary-timing{margin-top:12px;padding:10px;border:1px solid #30658a;border-radius:7px;color:#d6efff;background:#0d2540}.temporary-timing summary{cursor:pointer;color:#8ce5ff}.temporary-timing p{font-size:12px;line-height:1.5;min-height:18px}.temporary-timing label{display:flex;justify-content:space-between;align-items:center;margin:10px 0;gap:8px}.temporary-timing input,.temporary-timing select{width:85px;background:#142f4c;color:#e8f6ff;border:1px solid #487c9c;border-radius:4px;padding:5px}.temporary-timing button{margin:4px 0;max-width:100%}.temporary-timing [disabled]{opacity:.5}

.crowd-monitor{position:absolute;left:12px;bottom:38px;z-index:26;max-width:310px;max-height:45%;overflow:auto;padding:9px;background:#0c2545ed;border:1px solid #a68e50;border-radius:6px;color:#f4dda1;font-size:12px}.crowd-monitor summary{cursor:pointer}.crowd-monitor p{white-space:pre-line;border-top:1px solid #456078;padding-top:8px;line-height:1.6}.scene-inspector{white-space:pre-line}
