:root{font-family:Manrope,Inter,system-ui,sans-serif;color:#142d3b;background:#f3f6f8;font-size:14px;--teal:#007f98;--cyan:#00b8d9;--line:#dce7ed;--muted:#607685}*{box-sizing:border-box}body{margin:0}button,select,input{font:inherit}button,select{cursor:pointer}button{border:0}button:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid #00a9c8;outline-offset:3px}button:disabled{opacity:.5;cursor:default}a{color:inherit}.shell{min-height:100vh;display:grid;grid-template-columns:235px minmax(0,1fr)}aside{background:#0b1720;color:#c5d5df;display:flex;flex-direction:column;padding:28px 16px;position:sticky;top:0;height:100dvh}.brand{display:flex;align-items:center;gap:12px;padding:0 10px 24px;color:#fff}.brand img{width:32px;height:45px}.brand strong{font-size:23px;letter-spacing:-.8px}.brand b{color:#00b8d9}.brand small{display:block;color:#9bb6c5;letter-spacing:3px;font-size:9px;text-transform:uppercase;margin-top:3px}.project-select{padding:10px 12px 20px}.label{font-size:10px;text-transform:uppercase;font-weight:700;letter-spacing:1.6px;color:#8198a8;display:block;margin:10px 0}.project-select select{background:#172a36;border:1px solid #314653;color:#eaf4f8;width:100%;padding:12px 9px;border-radius:8px}.nav{display:grid;gap:5px}.nav button{background:transparent;color:#bccdd7;text-align:left;border-radius:8px;padding:13px 15px;display:flex;align-items:center;gap:12px}.nav button:hover,.nav button.active{background:#143747;color:#60dbef}.nav svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.asidefoot{margin-top:auto;border-top:1px solid #28404d;padding:18px 10px 0;overflow-wrap:anywhere;font-size:12px}.asidefoot small{display:block;color:#8da4b2;margin-top:6px}.wrap{min-width:0}.topbar{background:white;border-bottom:1px solid var(--line);height:70px;padding:0 32px;display:flex;align-items:center;justify-content:space-between;gap:12px}.topbar span{color:var(--muted)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:#fff;border:1px solid #d5e2e8;border-radius:8px;padding:10px 14px;color:#173a4b;font-weight:600}.btn.primary{background:#007f98;border-color:#007f98;color:white}.content{max-width:1450px;margin:auto;padding:34px 32px 50px}.eyebrow{font-size:10px;letter-spacing:2px;color:#007f98;font-weight:800;text-transform:uppercase}.pagehead{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:26px}.pagehead h1{font-size:32px;letter-spacing:-1.3px;margin:9px 0}.pagehead p{color:var(--muted);margin:0;line-height:1.5}.status{border-radius:24px;padding:7px 12px;background:#e6f4f6;color:#087b8c;font-size:12px;white-space:nowrap}.status:before{content:'●';font-size:9px;margin-right:6px}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.card{background:white;border:1px solid var(--line);border-radius:13px;padding:20px;min-width:0}.card h2{margin:0 0 7px;font-size:17px;letter-spacing:-.3px}.card p,.sub{color:var(--muted);line-height:1.5;font-size:13px}.metric .value{font-size:30px;font-weight:750;letter-spacing:-1px;margin:14px 0 7px}.value small{font-size:15px;font-weight:500;color:var(--muted)}.metric .key{color:var(--muted);font-size:13px}.section{margin:26px 0 14px;font-size:17px}.toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-bottom:16px}.toolbar label{font-size:12px;color:var(--muted);display:grid;gap:5px}.toolbar select{border:1px solid var(--line);border-radius:8px;padding:10px;background:white;color:#193746;max-width:100%}.chart{height:250px;display:block;width:100%;margin-top:20px;background:linear-gradient(#fff,#f8fbfc);border-radius:8px}.chart text{font-size:12px;fill:#6c8190}.chart line{stroke:#dbe7ec}.chart path{fill:none;stroke:#008aa4;stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}.full{grid-column:1/-1}.empty{padding:36px 22px;text-align:center;color:var(--muted);border:1px dashed #cbdce4;border-radius:12px;background:#fafcfd}.alert{background:#fff5e0;border:1px solid #ead3a0;color:#77571e;padding:12px 16px;border-radius:9px;margin-bottom:16px}.device-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding:15px 0}.device-row:first-of-type{border-top:0}.device-row button{white-space:nowrap}.login{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(ellipse at 10% 12%,#164453,#0b1720 55%)}.login .card{width:min(440px,100%);padding:32px}.login .brand{color:#142d3b;padding:0 0 24px}.login .brand small{color:#607685}.login h1{font-size:25px;margin:0 0 8px}.login form{display:grid;gap:14px;margin-top:24px}.login label{display:grid;gap:6px;color:#355162}.login input{width:100%;padding:12px;border:1px solid #cddce3;border-radius:8px}.loading{padding:30px;color:var(--muted)}.mobile{display:none}.mapnote{font-size:12px;color:var(--muted)}@media(max-width:1000px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.shell{grid-template-columns:1fr}aside{height:auto;position:static;padding:16px}.brand{padding-bottom:8px}.project-select{padding:0 0 8px}.nav{display:flex;flex-wrap:wrap}.nav button{padding:9px 11px}.asidefoot{display:none}.topbar{height:54px;padding:0 16px}.content{padding:22px 16px}.pagehead{align-items:flex-start;flex-direction:column}.pagehead h1{font-size:27px}.grid{gap:10px}.card{padding:15px}.metric .value{font-size:24px}.chart{height:185px}}@media(max-width:390px){.grid{grid-template-columns:1fr}}
.project-logo{width:26px;height:26px;object-fit:contain;vertical-align:middle;margin-right:8px}.status:has(.project-logo):before{content:none}
.top-actions{display:flex;gap:8px;align-items:center}.nav details summary{list-style:none;padding:13px 15px;cursor:pointer;border-radius:8px;color:#c5d5df}.nav details summary::after{content:'›';float:right}.nav details[open] summary::after{transform:rotate(90deg)}.subnav{display:grid;padding-left:13px;gap:3px}.subnav button{padding:10px 12px;width:100%;font-size:13px}.status-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.dot{display:inline-block;width:9px;height:9px;margin-right:8px;border-radius:50%;background:#8c9ca6}.dot.online{background:#229b78}.dot.delayed{background:#cf951f}.dot.offline{background:#d54b58}.device-status{font-size:13px;font-weight:650}.device-row>div:first-child{flex:1}.device-row>div:nth-child(2){min-width:40%}.station{margin:0 0 24px}.station-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:12px 0}.station-header h2{margin:0 0 4px;font-size:19px}.weather-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.history-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.history-grid .card:first-child{grid-column:1/-1}.legend{display:flex;flex-wrap:wrap;gap:8px 16px;color:var(--muted);font-size:12px}.legend i{width:9px;height:9px;display:inline-block;margin-right:5px;border-radius:50%}.compass{position:relative;width:52px;height:52px;border:1px solid var(--line);border-radius:50%;margin:7px auto;text-align:center}.compass span{font-size:9px;position:absolute;top:-8px;left:22px;background:var(--surface,#fff);padding:0 2px}.needle{font-size:28px;line-height:50px;color:#0093ad}.exit-kiosk{display:none;position:fixed;right:14px;bottom:14px;z-index:10}.kiosk .shell{grid-template-columns:minmax(0,1fr)}.kiosk aside,.kiosk .topbar{display:none}.kiosk .exit-kiosk{display:flex}.kiosk .content{max-width:none;padding-bottom:70px}.kiosk .weather-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}
html[data-theme=dark]{color:#e2eef5;background:#0e1b25;--surface:#152630;--line:#30434f;--muted:#a0b7c5}html[data-theme=dark] .card,html[data-theme=dark] .topbar,html[data-theme=dark] .btn,html[data-theme=dark] .toolbar select,html[data-theme=dark] .login input{background:#152630;color:#e2eef5;border-color:#30434f}html[data-theme=dark] .empty{background:#13232e;color:#a0b7c5;border-color:#30434f}html[data-theme=dark] .chart{background:#10212c}html[data-theme=dark] .chart text{fill:#a0b7c5}html[data-theme=dark] .chart line{stroke:#30434f}html[data-theme=dark] .status{color:#8de1eb;background:#123944}html[data-theme=dark] .alert{background:#322b1c;color:#f1d694;border-color:#725a31}html[data-theme=dark] .eyebrow{color:#50d1e4}html[data-theme=dark] .login .brand,html[data-theme=dark] .login label{color:#e2eef5}
@media(max-width:1000px){.status-grid,.weather-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.history-grid{grid-template-columns:1fr}.top-actions{gap:4px}}@media(max-width:700px){.topbar{height:auto;min-height:54px;flex-wrap:wrap;padding:9px 16px}.top-actions .btn{font-size:11px;padding:8px}.nav details{width:auto}.nav details summary{padding:9px 11px}.station-header{align-items:flex-start;flex-direction:column}.device-row{flex-wrap:wrap}.device-row>div:nth-child(2){min-width:0}.device-row>div:first-child{flex-basis:40%}.kiosk .content{padding:16px 16px 65px}}
.alarm-strip-button{display:flex;justify-content:space-between;align-items:center;width:100%;gap:12px;padding:12px 30px;background:#fff0d6;color:#81510a;text-align:left;border-bottom:1px solid #e8c78b;font-size:13px}.alarm-strip-button span{font-size:12px}.incident{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 0;border-top:1px solid var(--line);border-left:4px solid transparent;padding-left:12px}.incident.warning{border-left-color:#d99425}.incident.alarm{border-left-color:#d54b58}.incident.resolved{border-left-color:#8194a0}.alarm-rule-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:16px 0;border-top:1px solid var(--line);align-items:end}.alarm-rule-form label{display:grid;gap:6px;color:var(--muted);font-size:12px}.alarm-rule-form input:not([type=checkbox]),.alarm-rule-form select{padding:10px;border:1px solid var(--line);border-radius:8px;min-width:0;background:var(--surface,#fff);color:inherit;font:inherit;width:100%}.alarm-rule-form .rule-check{display:flex;gap:8px;align-items:center}.card.metric-warning{border-color:#d99425;box-shadow:inset 0 3px #d99425}.card.metric-alarm{border-color:#d54b58;box-shadow:inset 0 3px #d54b58}.chart .limit-line{stroke-width:1.6;stroke-dasharray:7 5}.chart .limit-alarm{stroke:#d54b58}.chart .limit-warning{stroke:#d99425}.limit-legend.limit-alarm{color:#d54b58}.limit-legend.limit-warning{color:#bf8b29}html[data-theme=dark] .alarm-strip-button{background:#3d2c19;color:#f6d29a;border-color:#785d34}@media(max-width:700px){.alarm-rule-form{grid-template-columns:repeat(2,minmax(0,1fr))}.alarm-strip-button{padding:10px 16px;flex-wrap:wrap}}
.member-role-form{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.member-role-form select{padding:9px;border:1px solid var(--line);border-radius:8px;background:var(--surface,#fff);color:inherit;font:inherit}.member-role-form .btn{font-size:12px;padding:8px 10px}
/* Compact operations layout: consistent spacing, subdued actions, more data above the fold. */
.shell{grid-template-columns:210px minmax(0,1fr)}aside{padding:21px 12px}.brand{padding-bottom:16px}.project-select{padding:6px 8px 14px}.project-select select{padding:9px 8px}.nav{gap:3px}.nav button,.nav details summary{padding:10px 12px;min-height:38px;display:flex;align-items:center;gap:10px}.nav details summary::after{margin-left:auto;float:none}.nav svg{width:18px;height:18px;flex-shrink:0}.subnav{padding-left:12px}.subnav button{padding:9px 12px 9px 30px}.topbar{height:52px;padding:0 24px}.top-actions{gap:4px}.icon-btn{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:36px;height:36px;border-radius:7px;background:transparent;color:#43616f;padding:6px 8px;font-size:12px;font-weight:650}.icon-btn:hover{background:#e8f3f6;color:#007f98}.icon-btn svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}.icon-btn #alarm-count{font-variant-numeric:tabular-nums}.content{padding:22px 24px 36px}.pagehead{margin-bottom:20px;align-items:center}.pagehead h1{font-size:27px;margin:0 0 5px;letter-spacing:-.7px}.pagehead p{font-size:13px}.page-project-logo .project-logo{width:30px;height:30px;margin:0}.page-project-logo:empty{display:none}.grid{gap:12px}.card{padding:16px;border-radius:10px}.metric .value{margin:8px 0 3px;font-size:27px;font-variant-numeric:tabular-nums}.status-grid .card{padding:14px}.section{margin:20px 0 10px}.device-row{padding:11px 0}.btn{padding:8px 12px;font-size:13px;border-radius:7px}.toolbar{gap:9px;margin-bottom:12px;align-items:end}.toolbar select{padding:8px;min-height:35px}.station-header{margin:14px 0 9px}.station-header h2{font-size:16px}.compact-alert{padding:7px 10px;margin-bottom:10px;font-size:12px}.weather-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.weather-grid .metric{min-height:88px;padding:12px 14px}.weather-grid .weather-primary,.weather-grid>.metric:nth-child(4){min-height:107px}.weather-grid .weather-primary .value,.weather-grid>.metric:nth-child(4) .value{font-size:30px}.weather-grid .key{font-size:12px}.direction-value{display:flex;align-items:center;justify-content:space-between}.direction-value .compass{width:36px;height:36px;margin:0 3px 0 4px;flex-shrink:0}.direction-value .compass span{left:13px}.direction-value .needle{font-size:22px;line-height:35px}.history-grid{gap:12px}.history-grid .chart{height:208px;margin-top:12px}.history-grid .empty{padding:20px 10px}.empty{padding:22px 16px}.position-map-card{padding:0}.position-map{height:clamp(340px,62vh,760px)}.map-controls{padding:8px}.map-controls .btn{font-size:12px}.plans-bar{padding:7px 10px}.settings-section{margin:12px 0;border:1px solid var(--line);border-radius:10px;background:var(--surface,#fff)}.settings-section>summary{cursor:pointer;padding:14px 16px;font-weight:650}.settings-section>div{padding:0 12px 12px}.settings-section .card{border:0}.settings-section .layer-list>.card{border:1px solid var(--line)}html[data-theme=dark] .icon-btn{color:#c4dbe6}html[data-theme=dark] .icon-btn:hover{background:#143747;color:#60dbef}html[data-theme=dark] .nav details summary{color:#c5d5df}@media(max-width:1000px){.weather-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){.shell{grid-template-columns:1fr}.topbar{height:auto;min-height:48px;padding:8px 12px}.content{padding:16px 12px}.pagehead h1{font-size:23px}.weather-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.nav button,.nav details summary{padding:8px 10px}.subnav button{padding:8px 12px}.weather-grid .weather-primary .value,.weather-grid>.metric:nth-child(4) .value{font-size:25px}.history-grid .chart{height:175px}}
.toolbar:empty{display:none}
.layer-form textarea{width:100%;padding:10px;border:1px solid var(--line);border-radius:8px;font:inherit;color:inherit;background:var(--surface,#fff);resize:vertical}.project-description{white-space:pre-wrap;margin-bottom:12px;color:var(--muted)}
.pwa-install{position:fixed;bottom:16px;right:16px;z-index:1000;box-shadow:0 4px 20px #0002}.pwa-install[hidden],.kiosk .pwa-install{display:none}
.rule-table-wrap{overflow:auto;margin:12px 0}.rule-table{width:100%;border-collapse:collapse;font-size:13px;text-align:left}.rule-table th,.rule-table td{padding:10px 8px;border-bottom:1px solid var(--line);vertical-align:middle}.rule-table th{color:var(--muted);font-size:11px;text-transform:uppercase;white-space:nowrap}.rule-table td:last-child{white-space:nowrap}.rule-table .btn{font-size:12px}
.chart-tooltip{white-space:pre-line;font-size:12px;padding:8px 10px;background:var(--surface,#fff);border:1px solid var(--line);border-radius:8px;color:inherit;margin-top:8px}.chart-tooltip[hidden]{display:none}.chart-cursor{stroke:#8296a3!important;stroke-dasharray:4 3;pointer-events:none}.chart-selection{fill:#009bb6;opacity:.17;pointer-events:none}.chart.interactive{cursor:crosshair;touch-action:pan-y}.legend button{background:transparent;color:inherit;border:0;padding:4px 6px;border-radius:4px;cursor:pointer;font:inherit}.legend button[aria-pressed=false]{opacity:.4;text-decoration:line-through}.range-panel{display:flex;gap:8px;align-items:end;flex-wrap:wrap}.range-panel input{padding:8px;border:1px solid var(--line);border-radius:8px;background:var(--surface,#fff);color:inherit}
