.home-brief .gps-ring{background:conic-gradient(#ffcc16 var(--ratio),#ffffff35 0)}.home-brief .gps-ring>span{background:#123c34;color:#fff!important}.home-brief .gps-ring small{color:#fff}.reception-disclosure>summary>b{display:none}
html[data-theme=dark]{color-scheme:dark;--ink:#e8edf0;--muted:#aab3ba;--line:#374149;--bg:#171b1f;--brand:#43b8b3;--sidebar:#0d1013}html[data-theme=dark] body{background:#171b1f;color:#e8edf0}html[data-theme=dark] :is(.panel,.topbar,.equipment-card,.dial-card,.more-signals,.quick-dialog,.reception-disclosure,.map-list,.map-item,.attention-machine,.notification-machine,.state-visual-legend button,.home-group-grid>button,.metric-help-grid article){background:#22282d;color:#e6ebee;border-color:#3b454d}html[data-theme=dark] :is(h1,h2,h3,.machine-card-title,.compact-signals strong,.comparison-stats b,.state-ring-center strong,.state-visual-legend strong,.attention-machine-head b,.metric-reading strong){color:#e4eee7}html[data-theme=dark] :is(.panel-head,thead,.table-scroll th){background:#20262b;color:#c6cdd2;border-color:#39434a}html[data-theme=dark] :is(td,.panel-head,.quick-head,.attention-tabs){border-color:#354c40}html[data-theme=dark] :is(input,select,.button.secondary,.preset-row button,.history-presets button,.text-button,.info-button,.map-style-control){background:#2b3238;color:#e3e8eb;border-color:#4b565e}html[data-theme=dark] :is(.matrix-cell.old,.reception-chip.old,.metric-reading,.compact-signals>div,.quick-metrics>div,.attention-symbols .offline-symbol){background:#273d31;color:#afc0b1}html[data-theme=dark] :is(.matrix-cell.fresh,.reception-chip.fresh,.map-tracking-card,.selection-list label:has(input:checked)){background:#1d5140;color:#b9ecce}html[data-theme=dark] :is(.attention-symbols>span,.notification-alarm-chips>span.fresh,.metric-verdict,.notice.warning){background:#4c342b;color:#f1b89b}html[data-theme=dark] :is(.state-equipment-strip button,.alarm-type-buttons button,.summary-tile,.attention-tabs button){background:#233d2f;color:#c0d8c6;border-color:#3c5845}html[data-theme=dark] :is(.state-visual-legend button,.attention-row){background:#1a3028;color:#d4e8db}html[data-theme=dark] :is(.state-visual-legend b,.attention-row b,.notification-machine b){color:#d4e8db}html[data-theme=dark] :is(.gauge-ring>div,.fleet-donut>div){background:#1a3028}html[data-theme=dark] #command-attention{background:#1d2327}html[data-theme=dark] .map-canvas .leaflet-tile-pane{filter:invert(.9) hue-rotate(180deg) saturate(.25) brightness(.76)}html[data-theme=dark] a{color:#74d8b7}html[data-theme=dark] .button:not(.secondary){color:#10271c}html[data-theme=dark] .state-visual-legend small,html[data-theme=dark] .chart-caption{color:#a1b8a7}html[data-theme=dark] .matrix-cell.missing{background:#1b2c23;color:#9eafa0}

.state-visual-legend button[hidden]{display:none}.alarm-analysis-disclosure{border:1px solid var(--line);border-radius:12px;align-self:start;background:var(--bg)}.alarm-analysis-disclosure>summary{cursor:pointer;padding:18px;font-weight:bold;font-size:13px}.alarm-analysis-disclosure .panel{margin:0}.alarm-count[role=button]{cursor:pointer}.alarm-count[role=button]:focus{outline:2px solid #16977c}

/* Presentation polish: compact cards, visual alerts, responsive controls. */
.card-status-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px;font-size:10px;color:var(--muted)}.card-status-row span{display:flex;align-items:center;gap:6px}.card-status-row b{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#e8f3f0;color:#168b8d}.card-status-row small{font-size:9px}.incident{position:relative;min-height:220px}.incident-visual{position:absolute;right:22px;top:48px;width:64px;height:64px;border-radius:18px;display:grid;place-items:center;background:#fdece7;color:#c95645}.incident-visual svg{width:34px;height:34px}.incident-meta{display:flex;gap:10px;align-items:center;flex-wrap:wrap;color:var(--muted);font-size:10px}.incident-meta code{padding:3px 6px;background:#f0f3f2;border-radius:5px}.field-tools,.date-range,.report-actions{display:flex;align-items:end;gap:9px}.field-tools input{min-width:0;width:100%}.date-range>label{flex:1}.date-range>span{padding-bottom:10px}.report-period{min-width:0}.report-actions{flex-wrap:wrap;margin-top:14px}.range-note{display:block;margin-top:12px;color:var(--muted)}.history-command{display:flex;align-items:end;gap:12px;flex-wrap:wrap;padding:12px;background:#fff;border:1px solid var(--line);border-radius:12px}.history-presets{display:flex;gap:5px;flex-wrap:wrap}.history-presets button{border:1px solid var(--line);background:#f4f7f6;padding:9px 13px;border-radius:20px;color:var(--ink)}.custom-range{position:relative}.custom-range summary{list-style:none;border:1px solid var(--line);padding:9px 13px;border-radius:7px;cursor:pointer}.custom-range>div{display:flex;align-items:end;gap:8px;position:absolute;z-index:50;top:46px;right:0;padding:14px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 35px #0002}.custom-range:not([open])>div{display:none}
@media(max-width:1100px){.studio-columns{grid-template-columns:1fr 1fr!important}.studio-columns fieldset:last-child{grid-column:1/-1}.command-map-row,.command-data-row{grid-template-columns:1fr!important}.attention-panel{min-height:430px}.map-layout{grid-template-columns:230px minmax(0,1fr)}}
@media(max-width:760px){.home-brief .graphic-kpis{grid-template-columns:1fr 1fr!important}.home-brief .graphic-kpi{padding:11px!important;min-height:88px!important}.home-brief .graphic-kpi strong{font-size:22px!important}.command-map-row{display:block!important}.command-map-row>.panel{margin-bottom:14px}.attention-machine-grid,.notification-machine-grid{grid-template-columns:1fr!important}.studio-columns{grid-template-columns:1fr!important}.studio-columns fieldset:last-child{grid-column:auto}.date-range{flex-direction:column;align-items:stretch}.date-range>span{display:none}.history-command{display:grid;grid-template-columns:1fr}.history-presets{overflow-x:auto;flex-wrap:nowrap}.custom-range>div{position:fixed;inset:auto 12px 12px;display:grid}.equipment-cards{grid-template-columns:1fr!important}.machine-image{height:120px}.incident-grid{grid-template-columns:1fr!important}.map-layout{grid-template-columns:1fr}.map-list{max-height:130px}.map-canvas{height:56vh;min-height:360px}.topbar>div:last-child{gap:5px}.topbar .button{padding:7px 8px;font-size:10px}.page-heading{flex-wrap:wrap}.signal-picker{grid-template-columns:1fr 1fr!important}.compare-grid{grid-template-columns:1fr!important}}
html[data-theme=dark] :is(.activity-rings>button,.notification-alert-detail){background:#22282d;color:#e6ebee;border-color:#3b454d}html[data-theme=dark] .activity-mini-ring:after{background:#22282d}html[data-theme=dark] .notification-alert-detail .notification-guidance p{background:#1a3028;color:#bed2c4}html[data-theme=dark] .notification-alert-detail .notification-guidance b{color:#e4eee7}
html[data-theme=dark] .accumulated-chart-grid article{background:#22282d;border-color:#3b454d}html[data-theme=dark] .accumulated-chart-grid header strong{color:#e4eee7}
html[data-theme=dark] :is(.incident,.history-command,.custom-range>div,.accumulated-panel){background:#22282d;color:#e6ebee;border-color:#3b454d}html[data-theme=dark] :is(.incident h2,.incident h3,.incident-reason b){color:#e6ebee}html[data-theme=dark] .incident-reason{background:#1a3028;color:#bed2c4}html[data-theme=dark] .incident-meta code{background:#2b3238;color:#b9c6bf}html[data-theme=dark] .incident.old{border-top-color:#d9ae35}
@media(min-width:1900px){main{max-width:2100px}.equipment-cards{grid-template-columns:repeat(5,minmax(0,1fr))}.command-map-row{grid-template-columns:minmax(0,1.65fr) minmax(430px,.75fr)}.map-canvas{height:680px}.comparison-plot{height:340px}}

html[data-theme=dark] #command-map.map-night .leaflet-tile-pane{filter:invert(.9) hue-rotate(180deg) saturate(.25) brightness(.76)}
.alert-assets{display:flex;align-items:center;gap:20px;background:#183c33;color:white;border-radius:13px;padding:16px 20px;margin-bottom:18px}.alert-assets>div:first-child{min-width:155px}.alert-assets h2{color:white}.alert-assets>div:last-child{display:flex;gap:8px;overflow:auto;flex:1}.alert-assets button{display:flex;align-items:center;gap:8px;min-width:145px;border:1px solid #ffffff25;background:#ffffff0d;color:white;border-radius:9px;padding:8px;text-align:left}.alert-assets img{width:50px;height:38px;object-fit:contain;background:white;border-radius:6px}.alert-assets button span{display:grid}.alert-assets button small{font-size:8px;color:#add2c8}.alert-assets button strong{margin-left:auto;color:#fecc16;font-size:19px}.card-status-row b{width:28px;height:28px;font-size:15px;box-shadow:0 0 0 3px #168b8d18}.alarm-count{font-size:12px;padding:5px 8px;border:1px solid #e7c75c}.signal-dot{width:10px;height:10px;box-shadow:0 0 0 4px #b8c4c526}.signal-dot.online{box-shadow:0 0 0 4px #1a9a9b26}.geo-machine.fresh,.live-gps i{animation:gpsPulse 1.8s infinite}.live-gps{display:flex;align-items:center;gap:5px}.live-gps i{width:8px;height:8px;background:#39d0b3;border-radius:50%}@keyframes gpsPulse{50%{filter:brightness(1.35);box-shadow:0 0 0 7px #39d0b322}}html[data-theme=dark] .alert-assets{background:#252d32}
@media(max-width:760px){.alert-assets{display:block}.alert-assets>div:last-child{margin-top:12px}.alert-assets button{min-width:135px}}
.toolbar-divider{width:1px;align-self:stretch;background:var(--line);margin:0 3px}.track-playback{display:flex;align-items:center;gap:14px;padding:12px 16px;border-top:1px solid var(--line)}.track-playback input{flex:1;min-width:140px}.track-playback span{color:var(--muted);font-size:11px}@media(max-width:980px){.toolbar-divider{display:none}.track-playback{align-items:stretch;flex-direction:column}}
.period-card{padding:14px;border:1px solid var(--line);border-radius:14px;background:#f7faf8}.period-card .preset-row{margin:0 0 12px}.range-display{display:grid;gap:4px;padding:12px 14px;border-radius:10px;background:#e8f4ee;color:#244b3c}.range-display span{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#668174}.range-display strong{font-size:13px}.custom-period{margin-top:10px}.custom-period summary{cursor:pointer;color:var(--brand);font-size:12px;font-weight:700}.custom-period .date-range{margin-top:12px}.report-visual-option{display:flex!important;gap:10px;align-items:flex-start;margin:14px 0 0!important;padding:12px;border:1px solid var(--line);border-radius:12px}.report-visual-option input{margin-top:3px;accent-color:#169b8c}.report-visual-option span{display:grid;gap:3px}.report-visual-option small{color:var(--muted);line-height:1.4}.report-chart-help{display:flex;gap:12px;align-items:center;padding:14px 18px;margin-bottom:16px}.report-chart-help strong{white-space:nowrap}.report-chart-help span{color:var(--muted);font-size:12px}html[data-theme=dark] :is(.period-card,.report-visual-option){background:#22282d;border-color:#3b454d}html[data-theme=dark] .range-display{background:#1d5140;color:#d5eee0}html[data-theme=dark] .range-display span{color:#9ec7b2}@media(max-width:760px){.report-chart-help{align-items:flex-start;flex-direction:column}.custom-period .date-range{display:grid!important}}
.report-download-note{display:grid;gap:4px;margin-top:14px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#f7faf8}.report-download-note small{color:var(--muted);line-height:1.45}html[data-theme=dark] .report-download-note{background:#22282d;border-color:#3b454d}.machine-image,.quick-body>img,.attention-row img,.attention-machine img,.notification-machine img,.alert-assets img,.home-group-grid img,.hero-machine img,.hero-machine-frame img{object-fit:contain;background:transparent!important}.hero-machine,.hero-machine-frame,.geo-machine{background:transparent!important}.geo-machine{overflow:visible;border:0;box-shadow:none}.geo-machine.old{opacity:.72}html[data-theme=dark] :is(.quick-dialog,.notification-dialog){background:#22282d;color:#e6ebee;border-color:#46515a}html[data-theme=dark] :is(.quick-body,.notification-machine-grid,.notification-list,.notification-guidance){background:transparent;color:#e6ebee}html[data-theme=dark] .notification-guidance{border-color:#3b454d}html[data-theme=dark] #alarm-toast{background:#302b1e;color:#ffe9a0;border-color:#8d7628}html[data-theme=dark] #alarm-toast .text-button,html[data-theme=dark] #alarm-toast button{color:#ffe9a0}html[data-theme=dark] :is(.leaflet-popup-content-wrapper,.leaflet-popup-tip){background:#252c31;color:#e8edf0}html[data-theme=dark] .leaflet-popup-content-wrapper .badge{background:#dcecea;color:#176f69}
