#maglev-panel{position:absolute;left:14px;bottom:286px;width:280px;max-height:calc(100dvh - 140px);overflow:auto;border:1px solid rgba(120,226,255,.45);border-radius:12px;background:rgba(4,19,29,.95);color:#e7f7fb;pointer-events:auto;box-shadow:0 12px 35px #0005;font:13px "Segoe UI","Microsoft JhengHei",sans-serif}
#maglev-panel summary{display:flex;align-items:center;justify-content:space-between;min-height:44px;padding:0 12px;font-weight:750;color:#8ee7ff;cursor:pointer;list-style:none}
#maglev-panel summary::after{content:'＋';font-size:21px}#maglev-panel[open] summary::after{content:'−'}
.maglev-body{padding:0 12px 12px}.maglev-heading{margin:0 0 10px;font-size:11px;color:#a4c9d3}
#maglev-panel label{display:block;margin:8px 0 4px;color:#a4c9d3;font-size:11px}
#maglev-panel select,#maglev-panel button{display:block;width:100%;min-height:44px;padding:8px;border:1px solid #477384;border-radius:7px;font:inherit;background:#122d3b;color:#f2fbff;cursor:pointer}
#maglev-panel select{text-overflow:ellipsis}#maglev-panel button{margin-top:6px;background:#16455a;font-weight:700}
.maglev-controls{display:grid;grid-template-columns:minmax(0,1fr) 84px;gap:6px}.maglev-controls button{margin-top:0!important;font-size:12px}
.maglev-seat-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:6px}
.maglev-trip-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.maglev-trip-actions #maglev-exit{grid-column:1/-1}
#maglev-seat-controls[hidden]{display:none}#maglev-seat-controls button{margin:0;font-size:12px}
#maglev-seat-controls button[aria-pressed="true"]{border-color:#92f5dd;background:#17635b;color:#e9fff8}
#maglev-board{border-color:#71dfcb!important;background:#175850!important}
#maglev-hijack{border-color:#efbd76!important;background:#644123!important}
#maglev-driver-controls{position:absolute;left:14px;bottom:18px;width:min(350px,calc(100vw - 28px));padding:10px;background:#0a1f2bed;border:1px solid #edc38390;border-radius:10px;pointer-events:auto;color:#f6ead6;font:12px/1.5 "Segoe UI","Microsoft JhengHei",sans-serif}
#maglev-walk-controls{position:absolute;right:14px;bottom:18px;width:min(250px,calc(100vw - 28px));padding:10px;background:#0a1f2bed;border:1px solid #75dec590;border-radius:10px;pointer-events:auto;color:#e5fff7;font:12px/1.5 "Segoe UI","Microsoft JhengHei",sans-serif}
#maglev-walk-controls[hidden]{display:none}#maglev-walk-controls p{margin:0 0 6px}
#maglev-walk-controls :focus-visible{outline:2px solid #9bffe1;outline-offset:2px}
#maglev-driver-controls[hidden]{display:none}#maglev-driver-controls p{margin:0 0 6px}
.maglev-driver-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.maglev-driver-actions button{min-height:44px;padding:7px;border:1px solid #68899a;border-radius:7px;background:#173c4e;color:#f3fbff;font:700 12px "Segoe UI","Microsoft JhengHei",sans-serif;touch-action:none;user-select:none;cursor:pointer}
.maglev-driver-actions button[aria-pressed="true"]{background:#206c59;border-color:#b4ffe1}
.maglev-driver-actions #maglev-brake{background:#713a32}.maglev-driver-actions button:disabled,#maglev-panel button:disabled{opacity:.5;cursor:default}
#maglev-driver-status{display:block;margin-top:6px;font-size:11px;color:#c7dce3}
#maglev-driver-controls :focus-visible{outline:2px solid #ffe6a3;outline-offset:2px}
@media(max-width:760px){#maglev-driver-controls{left:10px;bottom:74px;width:calc(100vw - 20px);max-width:350px;padding:8px}#maglev-walk-controls{left:10px;right:10px;bottom:max(12px,env(safe-area-inset-bottom));width:auto;padding:8px}}
@media(max-height:450px) and (max-width:900px){#maglev-driver-controls{left:auto;right:10px;bottom:12px;width:calc(100vw - 294px);max-width:350px}}
#maglev-panel button[hidden]{display:none}#maglev-panel :focus-visible{outline:2px solid #ffe6a3;outline-offset:2px}
#maglev-info{margin:10px 0 0;font-size:12px;line-height:1.6;color:#d3e9ef;overflow-wrap:anywhere}
body.maglev-viewing #mission,body.maglev-viewing #nav-arrow,body.maglev-viewing #vehicle-status,body.maglev-viewing #prompt,body.maglev-viewing #speed,body.maglev-viewing #corridor-meta,body.maglev-viewing #wallet,body.maglev-viewing #mission-banner,body.maglev-viewing #hint,body.maglev-viewing #touch-drive-controls{visibility:hidden}
body.maglev-panel-open #touch-drive-controls{visibility:hidden}
body.maglev-viewing #scene-travel-toggle.scene-travel-floating,body.maglev-panel-open #scene-travel-toggle.scene-travel-floating,body.maglev-viewing #release-notice-toggle.release-notice-floating,body.maglev-panel-open #release-notice-toggle.release-notice-floating{visibility:hidden}
#maglev-readout{position:absolute;left:14px;top:82px;max-width:310px;padding:9px 12px;background:#081f2be8;border:1px solid #5ca8bd80;border-radius:9px;color:#b4efff;font:700 13px/1.5 "Segoe UI","Microsoft JhengHei",sans-serif;pointer-events:none;overflow-wrap:anywhere}#maglev-readout[hidden]{display:none}
@media(max-height:450px) and (max-width:900px){#maglev-panel .maglev-trip-actions{grid-template-columns:repeat(3,minmax(0,1fr))}#maglev-panel .maglev-trip-actions #maglev-exit{grid-column:auto}}
#maglev-panel[open] ~ #maglev-readout{visibility:hidden}
@media(max-width:760px){#maglev-panel .maglev-trip-actions{grid-template-columns:repeat(3,minmax(0,1fr))}#maglev-panel .maglev-trip-actions #maglev-exit{grid-column:auto}}
@media(max-width:760px) and (min-height:451px){#maglev-panel[open] ~ #maglev-driver-controls{visibility:hidden}}
@media(max-width:760px){#maglev-readout{left:10px;top:12px;max-width:calc(100vw - 168px);padding:6px 8px;font-size:11px}}
@media(max-width:760px){#maglev-panel{left:auto;right:10px;bottom:18px;width:min(280px,calc(100vw - 20px));max-height:calc(100dvh - 154px)}body.touch-driving #maglev-panel{left:auto;right:10px;top:150px;bottom:auto;width:min(280px,calc(100vw - 20px));max-height:calc(100dvh - 320px)}body.touch-driving #maglev-panel[open]{max-height:calc(100dvh - 170px)}body.touch-driving.maglev-viewing #maglev-panel{top:auto;bottom:max(12px,env(safe-area-inset-bottom));max-height:calc(100dvh - 160px)}}
@media(max-height:450px) and (max-width:900px){body.touch-driving #maglev-panel,body.touch-driving.maglev-viewing #maglev-panel{left:10px;right:auto;top:64px;bottom:auto;width:254px;max-height:calc(100dvh - 76px)}body.touch-driving #maglev-panel[open]{max-height:calc(100dvh - 76px)}#maglev-panel .maglev-heading{display:none}#maglev-panel label{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0)}#maglev-panel .maglev-controls{margin-top:6px}#maglev-panel .maglev-body{padding-bottom:6px}#maglev-panel[open] #maglev-info{display:none}#maglev-info{font-size:11px}#maglev-readout{max-width:300px}}
