:root{color-scheme:dark;--ink:#e6eef8;--muted:#91a6bd;--line:#2b4057;--mint:#6fe0c1;--header-height:80px;--sidebar-width:320px}
body[data-proposal=true]{height:100vh;height:100dvh;overflow:hidden;background:#0b1624;color:var(--ink);font-family:Inter,system-ui,'Microsoft JhengHei',sans-serif}
.proposal-header{height:var(--header-height);padding:14px 24px;background:#0b1726;border-bottom:1px solid #263b50;gap:24px;position:relative;z-index:5;box-shadow:0 4px 22px #020a141c}
.proposal-brand{display:flex;align-items:center;gap:13px;white-space:nowrap}.proposal-brand h1{font-size:19px;font-weight:650;letter-spacing:.4px}.brand-divider{color:#536a82;margin:0 4px}.brand-caption{font-size:9px!important;letter-spacing:2.25px;color:#7d98af;margin:7px 0 0!important;line-height:1!important}.brand-mark{display:flex;gap:5px;transform:skew(-15deg);padding:3px 5px}.brand-mark i{display:block;width:3px;height:30px;background:#71dcc4;border-radius:2px}.brand-mark i:nth-child(2){background:repeating-linear-gradient(to bottom,#71dcc4 0 6px,transparent 6px 11px);opacity:.5}.brand-mark i:last-child{background:#54a7c8}
.proposal-header-actions,.presentation-overview{display:flex;align-items:center;gap:18px}.presentation-overview{margin-left:auto;font-size:11px;color:var(--muted);gap:22px}.presentation-time{display:flex;gap:10px;align-items:center;white-space:nowrap}.presentation-time strong{font-size:18px;font-variant-numeric:tabular-nums;color:#d9e9f7;font-weight:500;letter-spacing:1px}#presentation-counts{max-width:225px;line-height:1.6}.scenario-badge{font-size:11px;color:#8fe2c8;border:1px solid #365c59;background:#13312f;padding:8px 11px;border-radius:999px;white-space:nowrap}
.layout-switch{display:flex;padding:3px;background:#091321;border:1px solid var(--line);border-radius:9px}.layout-switch button{font-size:12px;padding:8px 13px;border:0;background:transparent;color:var(--muted);border-radius:6px}.layout-switch button[aria-pressed=true]{background:#29445b;color:#f1f7fc;box-shadow:0 1px 5px #0003}
main.proposal-main{height:calc(100vh - var(--header-height));height:calc(100dvh - var(--header-height));grid-template-columns:var(--sidebar-width) minmax(0,1fr);overflow:hidden}
.proposal-main>aside{min-width:0;background:linear-gradient(155deg,#13253b,#0e1d30);padding:21px 18px 28px;border-right:1px solid var(--line);scrollbar-width:thin;scrollbar-color:#3b5269 transparent;overscroll-behavior:contain}.section-eyebrow{font-size:9px;letter-spacing:1.9px;color:#6b91ac;font-weight:600}.sidebar-heading h2{font-size:19px;margin:7px 0 0;font-weight:600;letter-spacing:.5px}.sidebar-heading p{font-size:12px;color:var(--muted);margin:7px 0 17px}.quick-locate{padding-bottom:15px;margin-bottom:17px;border-bottom:1px solid #2a4055}.quick-locate label{margin:0 0 8px}
body[data-proposal=true] label{font-size:12px;color:#adc2d5;margin:13px 0 10px;line-height:1.5}body[data-proposal=true] select{margin-top:6px;min-height:36px;font-size:12px;padding:8px 30px 8px 10px;background:#192e45;border-color:#354e67;color:#e4eef8;border-radius:7px;text-overflow:ellipsis}body[data-proposal=true] button{transition:background .15s,border-color .15s;font-family:inherit}body[data-proposal=true] button:hover:not(:disabled){background:#335770;border-color:#6889a3}body[data-proposal=true] button:focus-visible,body[data-proposal=true] select:focus-visible,body[data-proposal=true] summary:focus-visible{outline:2px solid var(--mint);outline-offset:3px}body[data-proposal=true] input[type=checkbox]{vertical-align:middle;margin:0 7px 2px 0;width:14px;height:14px}
#view-workspace{min-width:0;min-height:0;position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1px;background:#31475c;overflow:hidden;isolation:isolate}#view-workspace>#map,#three-pane{height:100%;min-width:0;min-height:0;position:relative;overflow:hidden}#view-workspace[data-layout="2d"]{grid-template-columns:minmax(0,1fr)}#view-workspace[data-layout="2d"]>#three-pane{display:none}#view-workspace[data-layout="3d"]{grid-template-columns:minmax(0,1fr)}#view-workspace[data-layout="3d"]>#map{position:absolute;top:0;left:calc(-100vw - 100%);width:100%;height:100%;opacity:0;pointer-events:none}
.map-view-label{position:absolute;top:15px;right:14px;z-index:3;background:#102337e8;box-shadow:0 3px 15px #07132120;border:1px solid #3b5365;color:#e1edf7;border-radius:7px;padding:7px 10px;font-size:11px;pointer-events:none}.map-view-label span{color:#85e5cc;margin-right:6px;font-weight:700}body[data-proposal=true] #tools{top:14px;left:14px;gap:5px;z-index:4;max-width:calc(100% - 150px)}body[data-proposal=true] #tools button{background:#102337eb;border-color:#3c566b;color:#e7f4fc;font-size:12px;padding:8px 12px;box-shadow:0 3px 10px #07132120}body[data-proposal=true] #tools #plus,body[data-proposal=true] #tools #minus{font-size:17px;padding:5px 10px;width:34px;height:34px}body[data-proposal=true]:not([data-diagnostic=true]) #sample,body[data-proposal=true]:not([data-diagnostic=true]) #compare-sample{display:none}body[data-proposal=true] footer{font-size:10px;line-height:1.6;color:#b8ccdc;background:#112338e8;padding:5px 12px;z-index:4}body[data-proposal=true] footer a{color:#9cdded}
#three-pane{background:radial-gradient(ellipse at 55% 30%,#233d55,#101f32 70%)}.three-pane-heading{height:54px;display:flex;align-items:center;justify-content:space-between;padding:0 17px;border-bottom:1px solid #3650667a;background:#14273c;position:absolute;top:0;left:0;right:0;z-index:3}.three-pane-heading h2{font-size:13px;font-weight:500;margin:0;color:#d2e2ef;letter-spacing:.5px}.three-pane-heading button{padding:6px 9px;font-size:11px;border-color:#38536b;background:#20364d}#three-host{position:absolute;inset:54px 0 0;overflow:hidden}.three-pane-hint{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);font-size:10px;color:#a9c3d8;background:#0b1a2bd9;padding:7px 12px;border-radius:6px;white-space:nowrap;pointer-events:none;z-index:2}
body[data-proposal=true] #section-panel{padding:0 0 14px;margin:0 0 14px;border-bottom:1px solid var(--line)}body[data-proposal=true] #section-panel h2{font-size:14px;font-weight:600;color:#d1e5f5;margin:0 0 12px}body[data-proposal=true] .sim-buttons{gap:6px;margin:10px 0}body[data-proposal=true] .sim-buttons button{flex:1;padding:8px 6px;border-radius:6px;background:#203850;border-color:#3b526b;font-size:12px;white-space:nowrap}#section-demo-controls{padding-top:14px;margin-top:15px;border-top:1px solid var(--line)}#section-demo-controls:before{content:'路口號誌';font-size:11px;letter-spacing:1px;color:#7fa7be}body[data-proposal=true] #section-demo-request,body[data-proposal=true] #section-relieve{background:#205447;border-color:#3c7a68;color:#c5f4e0}body[data-proposal=true] #section-demo-phase{padding:11px 12px;background:#122f3b;border:1px solid #2a5361;border-radius:7px;color:#a9e7d5;line-height:1.7;font-variant-numeric:tabular-nums;margin:10px 0}body[data-proposal=true] #section-demo-locate,body[data-proposal=true] #section-lane-relieve,body[data-proposal=true] #section-lane-locate{font-size:11px;padding:7px 10px;border-color:#36536b;background:#1c354b}body[data-proposal=true] #section-info{padding:11px 12px;background:#0d1c2b;border-left:2px solid #59889e;border-radius:0 6px 6px 0;margin:12px 0 10px;color:#c1d7e6}body[data-proposal=true] #section-info p{margin:0;white-space:pre-line;font-size:12px;line-height:1.85}body[data-proposal=true]:not([data-diagnostic=true]) #section-info a{display:none}body[data-proposal=true] #section-lane-info{font-size:11px;line-height:1.7;color:var(--muted)}body[data-proposal=true] #section-action{font-size:11px;color:#8fddc3;min-height:0;margin:8px 0}body[data-proposal=true] #section-action:empty{display:none}
.proposal-details{border:1px solid #2c4258;border-radius:8px;margin:12px 0;background:#10213580;min-width:0}.proposal-details>summary{list-style:none;padding:11px 12px;cursor:pointer;font-size:12px;color:#bed0e0;position:relative;padding-right:29px;user-select:none}.proposal-details>summary::-webkit-details-marker{display:none}.proposal-details>summary:after{content:'›';position:absolute;right:12px;top:8px;font-size:19px;color:#7e9ab1;transform:rotate(0);transition:transform .15s}.proposal-details[open]>summary:after{transform:rotate(90deg)}.proposal-details>summary>span{display:block;font-size:10px;color:#7f9bb1;margin-top:4px}.proposal-details[open]>summary{border-bottom:1px solid #2b4055}.proposal-details-content,.proposal-details>section{padding:4px 12px 12px}.proposal-details>p,.proposal-details>pre,.proposal-details>div:not(.proposal-details-content),.proposal-details>label{margin:10px 12px!important}.proposal-details>button{margin:0 12px 12px}.proposal-details p,.proposal-details pre{font-size:11px!important;line-height:1.75;overflow-wrap:anywhere;white-space:pre-wrap}.proposal-details .sim-warning{background:#283443;color:#b6c9d9;padding:9px;border-radius:5px}.proposal-details .sim-note{color:#8da7bd}.projection-note{color:#91aabe;border-left:2px solid #4f748e;padding-left:10px}#proposal-source-links{display:flex;flex-direction:column;gap:6px;overflow-wrap:anywhere;font-size:11px}.proposal-details #stats{font-size:11px;background:#0c1b2c;padding:10px}.proposal-details #notice{font-size:11px}.proposal-details #coverage-panel,.proposal-details #simulation-panel{border:0;margin:0;padding:12px}.proposal-details #coverage-panel h2,.proposal-details #simulation-panel h2{font-size:13px}#proposal-feedback{font-size:12px;line-height:1.65;white-space:pre-line;background:#4a242e;border:1px solid #925065;padding:11px;border-radius:7px;color:#ffd3d8;margin:0 0 14px;overflow-wrap:anywhere}
.three-attribution{position:absolute;right:8px;bottom:0;z-index:4;font-size:9px;line-height:1.5;background:#0d1e30df;color:#a8d9e8;padding:2px 5px;border-radius:3px}.three-pane-hint{display:none}
@media(max-width:1250px){.presentation-overview{gap:10px}.presentation-overview #presentation-counts{display:none}.proposal-header{gap:16px;padding:14px 18px}.proposal-header-actions{gap:12px}}
@media(max-width:1050px){:root{--sidebar-width:290px}.proposal-header-actions{gap:8px}.scenario-badge{font-size:10px;padding:7px 9px}.presentation-time>span{display:none}.proposal-brand h1{font-size:17px}.layout-switch button{padding:8px 10px}.proposal-main>aside{padding:18px 14px}}
@media(max-width:800px){.presentation-overview{display:none}.proposal-header-actions{margin-left:auto}.proposal-header{gap:10px}.brand-mark{display:none}.brand-caption{letter-spacing:1.5px}.scenario-badge{max-width:155px}}
@media(max-width:650px){:root{--header-height:106px;--sidebar-width:230px}.proposal-header{flex-wrap:wrap;padding:12px 15px;gap:8px}.proposal-brand{width:100%}.proposal-brand h1{font-size:17px}.brand-caption{position:absolute;right:15px;top:15px;font-size:8px!important;letter-spacing:1px}.proposal-header-actions{width:100%;justify-content:space-between;margin:0}.layout-switch button{padding:5px 12px}.scenario-badge{padding:5px 9px;max-width:none}.proposal-main>aside{padding:16px 11px}.sidebar-heading h2{font-size:17px}.map-view-label{display:none}body[data-proposal=true] #tools{max-width:calc(100% - 20px);top:10px;left:10px}.three-pane-heading{padding:0 10px}.three-pane-heading h2{font-size:11px}.three-pane-heading button{font-size:10px}}
@media(max-width:480px){:root{--sidebar-width:190px}.brand-caption{display:none}.proposal-main>aside{padding:13px 9px}.sidebar-heading p{font-size:11px}.proposal-details>summary{font-size:11px}.sim-buttons{gap:4px!important}body[data-proposal=true] .sim-buttons button{font-size:11px;padding:7px 4px}body[data-proposal=true] footer{font-size:9px;padding:4px 8px}}
@media(prefers-reduced-motion:reduce){body[data-proposal=true] button,.proposal-details>summary:after{transition:none}}
