:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#e8f3f2;background:#091a1d;--base:#0a1f24;--panel:rgba(9,28,34,.94);--stroke:rgba(151,205,207,.14);--muted:#809ca2;--teal:#89d9c6;--accent:#e5b477;--negative:#e87d77}
*{box-sizing:border-box}html,body,#root{margin:0;width:100%;height:100%;overflow:hidden}button,select,input{font:inherit}button{cursor:pointer;touch-action:manipulation}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid #8bdac6;outline-offset:3px}
#scene{position:absolute;width:100%;height:100%;display:block;inset:0;outline:none}.shade{position:absolute;pointer-events:none;inset:0;background:linear-gradient(90deg,rgba(4,14,19,.54) 0%,transparent 54%),linear-gradient(0deg,rgba(4,16,20,.7) 0%,transparent 19%)}
.topbar{height:74px;display:flex;align-items:center;justify-content:space-between;gap:20px;position:absolute;top:0;left:0;right:0;z-index:5;background:linear-gradient(90deg,#081c22 8%,rgba(8,25,31,.95) 58%,rgba(9,23,27,.91));border-bottom:1px solid var(--stroke);padding:0 26px}.identity{display:flex;align-items:center;gap:15px;white-space:nowrap}.identity .symbol{display:grid;place-items:center;width:42px;height:42px;font-size:29px;line-height:1;font-weight:800;color:var(--teal);border:1px solid rgba(128,215,193,.35);background:rgba(28,87,82,.2)}.symbol span{font-size:17px;color:var(--accent)}.identity strong{font-weight:800;letter-spacing:.09em;font-size:15px}.muted{font-weight:400;color:#8cacb3}.identity small{display:block;font-size:9px;letter-spacing:.20em;color:#8fafb4;margin-top:6px}.headline-pills{display:flex;align-items:center;gap:15px;color:#adc6c8;font-size:10px;letter-spacing:.14em;font-weight:750}.headline-pills .dot,.live-pulse{height:7px;width:7px;border-radius:50%;display:inline-block;background:#7cdabc;box-shadow:0 0 10px #66d3b2}.line,.bar-separator{height:14px;width:1px;background:rgba(190,221,224,.26)}.top-buttons{display:flex;gap:6px}.icon-btn{width:34px;height:34px;background:#0d2a30;color:#c5e0e2;border:1px solid var(--stroke);font-weight:700;border-radius:3px}.icon-btn:hover{border-color:#6cc7b5;color:#fff}
.sidebar{position:absolute;z-index:3;top:74px;bottom:50px;width:358px;left:0;background:var(--panel);border-right:1px solid var(--stroke);display:flex;flex-direction:column;backdrop-filter:blur(15px);transition:transform .25s ease}.sidebar.collapsed{transform:translateX(-100%)}.sidebar-top{padding:22px 24px 17px;display:flex;flex-direction:column;gap:5px;border-bottom:1px solid var(--stroke)}.eyebrow{font-size:9px;color:var(--teal);font-weight:800;letter-spacing:.22em}.sidebar-top strong{font-size:23px;letter-spacing:-.025em}.sub{font-size:9px;color:#7e9fa5;letter-spacing:.16em}.sidebar-scroll{overflow:auto;scrollbar-width:thin;scrollbar-color:#315359 transparent;flex:1}.panel-section{padding:20px 23px 21px;border-bottom:1px solid var(--stroke)}.section-label{display:flex;justify-content:space-between;align-items:center;color:#a5c1c6;letter-spacing:.13em;font-size:10px;font-weight:800;margin-bottom:18px}.section-label span+span{color:#7caaa5;font-size:9px}.section-label .status-tag{padding:4px 6px;border:1px solid #3c615d;background:rgba(31,100,90,.20);color:var(--teal)}.field-title{display:block;font-weight:700;font-size:10px;letter-spacing:.16em;color:#7f9ca2;margin-bottom:9px}select{width:100%;border:1px solid #36535c;border-radius:2px;color:#e0f1f0;background:#12333c;padding:10px 12px;font-size:12px;font-weight:650;outline:none}
.chamber-illustration{display:flex;align-items:center;gap:18px;margin:17px 0 13px;background:rgba(35,72,79,.32);border:1px solid var(--stroke);height:88px;padding:12px}.water-meter{height:61px;width:40px;border:1px solid #79a3ac;background:#16333b;position:relative;overflow:hidden}.water-meter::before,.water-meter::after{content:"";position:absolute;left:0;right:0;height:1px;z-index:1;background:rgba(255,255,255,.3);top:33%}.water-meter::after{top:67%}#waterLevelFill{position:absolute;bottom:0;left:0;right:0;height:0%;background:linear-gradient(#4eafba,#25647a);transition:height .16s}.water-figure{display:flex;flex-direction:column;gap:2px}.water-figure small,.mini-grid small,.stats-grid small,.bridge-row small,.vessel-row small,.bottom-bar small{color:#92aeb4;font-size:9px;letter-spacing:.10em}.water-figure strong{font-size:25px;letter-spacing:-.04em}.water-figure em{font-size:13px;font-style:normal;color:#9cb9ba;font-weight:500}.water-figure span{color:#849fa5;font-size:10px}.flow-indicator{font-size:32px;color:#72caca;margin-left:auto;opacity:.65}
.mini-grid,.stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--stroke);border:1px solid var(--stroke);margin:12px 0 17px}.mini-grid>div,.stats-grid>div{background:#0d2a30;padding:12px 10px;min-width:0}.mini-grid strong,.stats-grid strong{font-size:13px;display:block;white-space:nowrap;margin-top:7px}.mini-grid strong small{letter-spacing:0;font-size:10px;font-weight:500}.double-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:9px}.btn{min-height:36px;padding:8px 7px;border:1px solid #39575e;color:#d0e4e3;background:#19333a;border-radius:2px;font-size:10px;letter-spacing:.025em;font-weight:800}.btn:hover{border-color:#90dacc;filter:brightness(1.1)}.btn.green{background:#3c947f;border:1px solid #6dc3a7;color:#f4fffc}.btn.gold{background:#755c38;border:1px solid #b99a6d;color:#ffe1af}.extra-buttons{margin-bottom:17px}.field-split{display:flex;justify-content:space-between;margin:18px 0 9px;font-size:10px;letter-spacing:.10em;color:#a2bcc0;font-weight:750}.field-split strong{color:var(--teal);font-size:12px}input[type=range]{appearance:none;width:100%;height:3px;border:0;background:#365b62;outline:none;margin:5px 0 10px}input[type=range]::-webkit-slider-thumb{appearance:none;width:13px;height:13px;background:#8cddc9;border:2px solid #214c4f;border-radius:50%;cursor:grab}.advisory{padding:11px 12px;color:#86abb0;border-left:2px solid #568e93;background:rgba(95,154,158,.08);font-size:10px;line-height:1.65}.advisory.warn{color:#ecc19a;border-left-color:#e1a364;background:rgba(170,105,55,.09)}.bridge-row,.vessel-row{display:flex;justify-content:space-between;align-items:center;gap:7px;margin:11px 0 19px}.bridge-row strong,.vessel-row strong{display:block;margin-top:6px;font-size:14px}.bridge-row button,.vessel-row button{width:145px}.chart-top{display:flex;justify-content:space-between;color:#b8d0d1;font-size:9px;font-weight:800;letter-spacing:.08em;margin-top:19px}.chart-top small{font-size:8px;color:#73989e}#flowChart{width:100%;height:95px;margin-top:10px;display:block}.event-log{max-height:182px;overflow:auto;scrollbar-width:thin}.event{padding:9px 0;border-bottom:1px solid rgba(174,224,220,.08);font-size:10px;line-height:1.6;color:#aec7ca}.event small{color:#668c95;font-size:9px;margin-right:10px}.event.warning{color:#e0af79}.sidebar-bottom{padding:14px 23px 8px;border-top:1px solid var(--stroke);background:#0b2026}.emergency-btn{background:#3a272a;border:1px solid #ad645e;padding:12px;width:100%;border-radius:2px;color:#ffb9af;font-weight:900;letter-spacing:.12em;font-size:11px}.emergency-btn.active{background:#b04e49;color:white}.sidebar-bottom p{font-size:8px;color:#577c83;letter-spacing:.07em;text-align:center;margin:10px 0 1px}
.right-hud{position:absolute;right:24px;top:95px;width:304px;z-index:2;display:flex;flex-direction:column;gap:12px}.map-card,.camera-card{background:rgba(9,30,36,.91);border:1px solid var(--stroke);padding:16px;box-shadow:0 12px 35px rgba(0,0,0,.1);backdrop-filter:blur(9px)}.map-header{display:flex;justify-content:space-between;align-items:center}.map-header strong{display:block;font-size:11px;letter-spacing:.065em;margin-top:7px}#miniMap{width:100%;height:115px;margin-top:10px;cursor:crosshair}.map-footer{display:flex;justify-content:space-between;font-size:8px;letter-spacing:.06em;color:#8daab0}.map-footer b{color:#c5e6e1}.camera-header{display:flex;justify-content:space-between}.camera-header>span+span{font-size:10px;letter-spacing:.08em;color:#c0d9d9}.view-buttons{display:flex;gap:3px;margin:14px 0}.view-buttons button{background:#16343a;color:#98b7b9;border:1px solid #35535b;padding:8px 5px;flex:1;font-size:9px;font-weight:750;white-space:nowrap}.view-buttons button.active,.view-buttons button:hover{color:#062a2a;background:#93dccc;border-color:#93dccc}.camera-caption{font-size:8px;color:#799ba0;letter-spacing:.075em}
.scene-caption{position:absolute;left:380px;bottom:99px;z-index:1;pointer-events:none;text-shadow:0 2px 12px #061a1c}.scene-caption>span{display:inline-block;border-left:3px solid #9de0cc;background:rgba(12,37,40,.65);padding:7px 11px;color:#c6e5db;font-size:9px;letter-spacing:.2em;font-weight:750}.scene-caption strong{display:block;margin:13px 0 8px;font-size:clamp(21px,2.2vw,39px);letter-spacing:-.05em;max-width:480px}.scene-caption small{font-size:10px;color:#c3d7d6;letter-spacing:.13em}.bottom-bar{position:absolute;bottom:0;left:0;right:0;height:50px;background:rgba(7,21,26,.98);border-top:1px solid var(--stroke);display:flex;align-items:center;justify-content:space-between;padding:0 25px;z-index:4}.bottom-left,.bottom-right{display:flex;align-items:center;gap:24px}.bottom-left{padding-left:352px}.bottom-left>div:not(.bar-separator){display:flex;flex-direction:column;gap:3px}.bottom-bar small{font-size:8px;color:#6d8e96;letter-spacing:.14em}.bottom-bar strong,.bottom-right span{font-size:10px;font-weight:800;letter-spacing:.08em}.compass{font-size:25px;color:#a5d7c9}.bottom-right{color:#91b8bd;gap:14px}#fatal{position:absolute;z-index:50;top:25%;left:30%;right:15%;padding:40px;background:#122a31;border:1px solid #da8176}#fatal p{color:#beced2}#fatal[hidden]{display:none}
dialog{max-width:510px;width:min(90vw,510px);border:1px solid #6a929a;padding:25px;background:#0d2830;color:#e8f3f2;box-shadow:0 10px 70px #0008}dialog::backdrop{background:rgba(5,14,18,.76)}dialog h2{font-size:25px}dialog p{font-size:13px;color:#afc6ca;line-height:1.7}.dialog-head{display:flex;align-items:center;justify-content:space-between}#toast{position:absolute;top:86px;left:50%;transform:translateX(-50%);background:#14373b;border:1px solid #47857f;padding:13px 20px;color:#e6f6ed;z-index:8;font-size:12px;display:none;min-width:200px;text-align:center}#toast.show{display:block}
@media(max-width:1200px){.headline-pills{display:none}.sidebar{width:315px}.sidebar-top{padding:17px 17px}.panel-section{padding:15px}.bottom-left{padding-left:310px}.scene-caption{left:340px}.right-hud{right:12px;width:245px}.map-card,.camera-card{padding:12px}.camera-caption{font-size:7px}}
@media(max-width:760px){.topbar{height:60px;padding:0 10px}.identity .symbol{height:34px;width:34px;font-size:22px}.identity strong{font-size:12px}.identity small{font-size:7px}.top-buttons{gap:3px}.icon-btn{width:27px;height:30px}.sidebar{top:60px;bottom:48px;width:min(315px,85vw)}.right-hud{right:7px;top:70px;width:190px;gap:7px}.map-card{padding:8px}.camera-card{display:none}.map-header strong{font-size:8px}.map-footer{font-size:6px}#miniMap{height:72px}.bottom-bar{padding:0 8px}.bottom-left{padding-left:0;gap:8px}.bottom-right{display:none}.scene-caption{left:15px;bottom:70px}.scene-caption small{font-size:8px}.scene-caption strong{font-size:21px}.sidebar.collapsed{transform:translateX(-100%)}.sidebar:not(.collapsed)~.scene-caption{opacity:.20}}
