/* Sky Worth dashboard identity. Telemetry status colours retain their meaning. */
:root{--skyworth-navy:#111e29;--skyworth-red:#df211c;--skyworth-red-dark:#b91b17;--cyan:var(--skyworth-red);--cyan-dark:var(--skyworth-red-dark)}
#topbar{background:var(--skyworth-navy);color:#f5f7f8;border-bottom-color:var(--skyworth-red)}
.top-version{color:#d4dde5}.top-pill{background:#ffffff14;color:#f5f7f8;border:1px solid #ffffff30}
#sidebar,.sidebar-footer{background:var(--skyworth-navy);color:#f5f7f8}
.brand-row{border-bottom:1px solid #ffffff20}.brand-row .logo{color:#f5f7f8;gap:8px;letter-spacing:.2px}.brand-row .logo small{color:#c5d0db;letter-spacing:1.5px;font-size:8px}
.sidebar-collapse{background:#ffffff0d;border-color:#ffffff30;color:#f5f7f8}
.back-admin{background:transparent;border:0;border-bottom:1px solid #ffffff20;color:#dce5ed}.back-admin svg{color:#b9c8d5}
.nav-item,.nav-btn{background:transparent;color:#dce5ed}.nav-item svg,.nav-btn svg{color:#b9c8d5}
.nav-item.active,.nav-btn.active{background:var(--skyworth-red);color:white}
.nav-item:hover:not(.active),.nav-btn:hover:not(.active){background:#ffffff12;color:white}
.sidebar-footer{border-color:#ffffff20}.footer-row{color:#dce5ed}.footer-row svg,.footer-row small{color:#b9c8d5}
.tabs>.btn.active{background:#fceceb;color:var(--skyworth-red-dark)}
.widget-body>.btn{color:var(--skyworth-red-dark);border-color:var(--skyworth-red)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline-color:#df756f}
@media(max-width:600px){.top-title{font-size:12px;flex-shrink:0}.top-version{min-width:0;font-size:10px}.top-pill{display:none}#top-status{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}

/* Preserve the original icon shapes with stronger contrast and touch targets. */
.nav-item svg,.nav-btn svg{width:20px;height:20px;stroke-width:2;color:#dce5ed}
.nav-item.active svg,.nav-btn.active svg{color:#fff}
.nav-item,.nav-btn{min-height:38px;gap:10px}
.language-picker{display:flex;align-items:center;gap:6px;flex-shrink:0;margin-left:auto;color:#f5f7f8}
.language-picker svg{width:18px;height:18px}
.language-picker select{max-width:145px;min-height:34px;background:#1f303f;color:#fff;border:1px solid #ffffff40;border-radius:6px;padding:5px 7px;cursor:pointer}
.language-picker option{background:#fff;color:#111e29}
#topbar{gap:12px;overflow:visible}.top-version{margin-left:auto}.language-picker{margin-left:0}
@media(max-width:600px){#topbar{padding:0 8px;gap:8px}.top-version{display:none}.language-picker{margin-left:auto}.language-picker select{max-width:130px;font-size:12px}.nav-item,.nav-btn{min-height:44px}}

/* Vivid navigation text; original icon paths and logo position are preserved. */
.nav-item,.nav-btn{color:#f1f5f9;font-weight:600;font-size:13px}
.nav-item svg,.nav-btn svg{color:#e4edf5}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex-shrink:0;min-height:34px;padding:5px 9px;border:1px solid #ffffff40;border-radius:6px;background:#1f303f;color:white}
.theme-toggle svg{width:18px;height:18px}.theme-toggle span{font-size:12px}
.account-session{margin-top:24px;padding-top:18px;border-top:1px solid var(--border)}
.account-session h3{margin-bottom:12px}
html[data-theme=dark]{color-scheme:dark;--text:#edf2f7;--muted:#b3c0ce;--border:#405365;--shadow:0 5px 18px #0005}
html[data-theme=dark] body{background:#172632;color:var(--text)}
html[data-theme=dark] :is(#panel,.page-sheet,.sheet-header,.sheet-body,.panel-header,.panel-body,.widget,.widget-header,.widget-body,dialog,.modal-head,.modal-actions,.form-tabs){background:#1d2e3c;color:var(--text);border-color:var(--border)}
html[data-theme=dark] :is(h1,h2,h3,.panel-title,.object-name,.row-title,.field-label,.field label,.key-value strong,.key-value span,.metric,.sheet-header h2){color:#edf2f7}
html[data-theme=dark] :is(.muted,.small-note,.row-meta,.empty p,.widget h3,.widget-body p,.sheet-body p,.footer-note){color:#becbd7}
html[data-theme=dark] :is(input,select,textarea,.btn,.icon-btn,.multi-options,.object-map-label){background:#253a4b;color:#edf2f7;border-color:#52677a}
html[data-theme=dark] :is(input,textarea)::placeholder{color:#b8c6d3}
html[data-theme=dark] :is(th,td,.list-row,.table-wrap){border-color:var(--border);color:#edf2f7}
html[data-theme=dark] :is(th,.info,.tabs>.btn,.badge){background:#2a4052;color:#e6edf4}
html[data-theme=dark] :is(.btn.primary,button.primary){background:var(--skyworth-red);color:#fff;border-color:var(--skyworth-red)}
html[data-theme=dark] .tabs>.btn.active{background:#71312e;color:#fff}
html[data-theme=dark] a{color:#ff9c94}
html[data-theme=dark] .brand-row .logo{color:#f5f7f8}
/* Map tiles keep their geographic colours in either theme. */
@media(max-width:600px){.theme-toggle span{display:none}.theme-toggle{padding:5px 7px}.language-picker{margin-left:0}.top-title{margin-right:auto;min-width:0;font-size:11px}.top-title small{display:none}.language-picker svg{display:none}.language-picker select{max-width:119px}}
@media print{html[data-theme=dark] :is(.sheet-body,.page-sheet,.sheet-header,th,td){background:#fff!important;color:#111!important}.theme-toggle,.language-picker{display:none!important}}

.widget.sensors .widget-body{overflow:auto}.sensor-updated{font-size:10px;line-height:1.5;margin-top:7px}.sensor-meta{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px 12px;margin:16px 0}.sensor-meta dt{font-weight:600}.sensor-meta dd{margin:0;overflow-wrap:anywhere}.sensor-view .muted{margin-top:14px;line-height:1.6}.sensor-view table{white-space:normal}.sensor-view td{overflow-wrap:anywhere}
@media(max-width:600px){.sensor-meta{grid-template-columns:1fr;gap:5px}.sensor-meta dd{margin-bottom:9px}}

/* Small local SVG symbols match the tracking dashboard without loading an icon library. */
.object-map-symbol{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#fff;border:2px solid var(--marker-color);color:var(--marker-color);box-shadow:0 2px 9px #102d4333}
.object-map-symbol svg,.symbol-picker svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.map-object.selected .object-map-symbol{outline:3px solid #ffffffb0;box-shadow:0 0 0 5px var(--marker-color)}
.map-object .object-map-label{bottom:43px}
.map-preferences{position:absolute;z-index:12;top:13px;left:calc(var(--panel-width) + 25px);width:min(470px,calc(100% - var(--panel-width) - 85px));border:1px solid var(--border);border-radius:12px;background:#fff;color:var(--text);box-shadow:0 3px 12px #163e5320}
.map-preferences summary{padding:11px 13px;cursor:pointer;font-size:13px;font-weight:700;min-height:40px}
.map-preferences summary span{font-weight:400;font-size:11px;margin-left:9px;color:#60748a}
.map-preferences-body{padding:0 13px 13px;display:grid;grid-template-columns:1fr 1fr;gap:11px}
.map-preferences-body label{display:grid;gap:6px;font-size:12px;min-width:0}
.map-preferences-body select{width:100%;min-height:38px;border:1px solid var(--border);border-radius:7px;padding:6px;background:#fff;color:inherit}
.map-preferences-body small{grid-column:1/-1;line-height:1.5;color:#60748a}
.symbol-picker{grid-column:1/-1}.symbol-picker>span{display:flex;align-items:center;justify-content:space-between}.symbol-picker svg{height:20px;width:20px;color:var(--skyworth-red)}
.map-preferences[hidden]{display:none}
.map-list-mode #map,.map-list-mode #map-tools{display:none}
.map-list-mode #panel{width:min(650px,calc(100% - 24px))}
.map-list-mode .map-preferences{left:12px;width:min(650px,calc(100% - 72px))}
.map-list-mode #panel{top:64px;max-height:calc(100% - var(--dock-height) - 104px)}
html[data-theme=dark] .map-preferences,html[data-theme=dark] .map-preferences-body select{background:#172b3b;color:#edf2f7}
html[data-theme=dark] .map-preferences :is(small,summary span){color:#bac8d6}
html[data-theme=dark] .object-map-symbol{background:#172b3b}
@media(max-width:1100px){.map-preferences{left:12px;width:calc(100% - 72px);max-width:470px}#panel{top:64px;max-height:calc(100% - var(--dock-height) - 104px)}.map-preferences-body{max-height:55dvh;overflow:auto}}
@media(max-width:600px){.map-preferences{top:9px}.map-preferences summary{padding:9px 10px}.map-preferences summary span{font-size:10px;margin-left:5px}.map-preferences-body{padding:0 10px 10px;gap:8px}.map-preferences-body select{font-size:12px}.object-map-symbol{width:34px;height:34px}}
.asset-status-legend{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px 13px;font-size:11px;line-height:1.5}
.asset-status-legend span{display:inline-flex;gap:5px;align-items:center}.asset-status-legend i{width:9px;height:9px;border-radius:50%;background:var(--asset-status-color);box-shadow:0 0 0 1px #8192a233}
.object-name .asset-list-symbol{width:20px;height:20px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* Native Sky Worth shell owns the brand header; retain web theme/language controls. */
html[data-skyworth-native] .topbar .top-title,html[data-skyworth-native] #top-status{display:none}
html[data-skyworth-native] .topbar{justify-content:flex-end}
@media(max-width:600px){
 .object-name{min-height:44px;line-height:1.35;align-items:center;gap:9px}
 .object-name .asset-list-symbol{width:22px;height:22px}
 .map-preferences-body select{min-height:44px;font-size:14px}
 .map-preferences-body{grid-template-columns:1fr}
 .map-preferences summary{min-height:44px}
}
