:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#172033;background:#f5f7fa;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:#f5f7fa}button,input,select{font:inherit}button,select{cursor:pointer}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.login-view{min-height:100vh;display:grid;place-items:center;padding:24px;background:#f5f7fa}.login-card{width:min(400px,100%);padding:30px;background:#fff;border:1px solid #dfe4ea;border-radius:10px;box-shadow:0 8px 28px #19243412}.login-brand{display:flex;align-items:center;gap:11px;margin-bottom:30px}.login-brand>div:last-child{display:flex;flex-direction:column}.login-brand strong{font-size:.9rem}.login-brand span{margin-top:2px;color:#7b8697;font-size:.68rem}.login-card h1{margin:0;font-size:1.4rem}.login-card>p{margin:7px 0 24px;color:#707b8d;font-size:.78rem;line-height:1.5}.login-card label{display:flex;flex-direction:column;gap:6px;margin-bottom:15px;color:#4c5769;font-size:.7rem;font-weight:650}.login-card input{height:40px;padding:0 11px;border:1px solid #d5dce5;border-radius:6px;outline:0;font-size:.78rem}.login-card input:focus{border-color:#4e86df;box-shadow:0 0 0 3px #4e86df1f}.primary-button,.secondary-button,.text-button{border-radius:6px;font-weight:650}.primary-button{width:100%;height:40px;border:0;background:#1e63d7;color:#fff;font-size:.76rem}.primary-button:hover{background:#1856bd}.primary-button:disabled{opacity:.65}.text-button{width:100%;margin-top:10px;border:0;background:transparent;color:#2865c3;font-size:.7rem}.login-error{padding:9px!important;margin:-2px 0 13px!important;border-radius:6px;background:#fff0f0;color:#a83d3d!important;font-size:.7rem!important}.secondary-button{height:32px;padding:0 11px;border:1px solid #d9dfe7;background:#fff;color:#4c586a;font-size:.68rem}.user-email{color:#4f5b6d;font-size:.68rem}
.auth-loading{min-height:100vh;display:flex;align-items:center;justify-content:center;gap:14px;background:#f5f7fa}.auth-loading .spinner{margin:0}
.app-header{height:64px;padding:0 28px;display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid #dfe4ea;position:sticky;top:0;z-index:30}.brand{display:flex;align-items:center;gap:11px}.brand-mark{width:34px;height:34px;display:grid;place-items:center;overflow:hidden;border-radius:8px;background:#050505;color:#fff;font-size:.73rem;font-weight:800}.brand-mark img{display:block;width:92%;height:92%;object-fit:contain}.brand>div:last-child{display:flex;flex-direction:column;line-height:1.15}.brand strong{font-size:.93rem}.brand span{margin-top:3px;color:#788395;font-size:.69rem}.header-tools{display:flex;align-items:center;gap:18px;color:#687386;font-size:.74rem}.system-live,.realtime-label{display:flex;align-items:center;gap:7px}.system-live{color:#287a4b;font-weight:650}.system-live i,.realtime-label i{width:7px;height:7px;border-radius:50%;background:#29a661;box-shadow:0 0 0 3px #dff4e8}.last-refresh strong{margin-left:4px;color:#354052;font-weight:550}.icon-button{width:34px;height:34px;display:grid;place-items:center;border:1px solid #d9dfe7;border-radius:7px;background:#fff;color:#566176}.icon-button:hover{background:#f4f7fb;border-color:#bec8d4}.icon-button svg{width:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}.spinning svg{animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.workspace{width:min(1600px,calc(100% - 48px));margin:auto;padding:24px 0 44px}.app-header a.brand,.app-header a.brand:link,.app-header a.brand:visited,.app-header a.brand:hover,.app-header a.brand:active{text-decoration:none;color:inherit}.app-header a.brand:focus-visible{outline:2px solid #2878d0;outline-offset:5px;border-radius:8px}.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.page-heading h1{margin:0;font-size:1.35rem;letter-spacing:-.025em}.page-heading p{margin:5px 0 0;color:#758094;font-size:.8rem}.realtime-label{color:#5e6a7d;font-size:.73rem}.kpi-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-bottom:18px}.kpi{min-height:100px;padding:16px 18px;background:#fff;border:1px solid #dfe4ea;border-radius:9px;box-shadow:0 1px 2px #10182807;position:relative;overflow:hidden}.kpi:before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:#8590a1}.kpi.online:before{background:#2aa664}.kpi.warning:before{background:#e2a11e}.kpi.offline:before,.kpi.alerts:before{background:#d84b4b}.kpi>span{display:block;color:#6f7a8c;font-size:.68rem;font-weight:700;letter-spacing:.055em;text-transform:uppercase}.kpi strong{display:block;margin:7px 0 2px;font-size:1.75rem;line-height:1}.kpi small{color:#9099a8;font-size:.67rem}.kpi.online strong{color:#23834f}.kpi.warning strong{color:#ad7610}.kpi.offline strong,.kpi.alerts strong{color:#b83c3c}
.fleet-panel{background:#fff;border:1px solid #dfe4ea;border-radius:10px;box-shadow:0 1px 3px #10182808;overflow:hidden}.panel-heading{padding:16px 18px 12px}.panel-heading h2{margin:0;font-size:.94rem}.panel-heading p{margin:3px 0 0;color:#8690a0;font-size:.7rem}.toolbar{display:flex;align-items:center;gap:9px;padding:0 18px 14px;border-bottom:1px solid #e5e9ef}.search-field{width:min(320px,32vw);position:relative}.search-field svg{position:absolute;left:11px;top:9px;width:15px;fill:none;stroke:#8b95a5;stroke-width:1.8}.toolbar input,.toolbar select{height:34px;border:1px solid #d8dee7;border-radius:6px;background:#fff;color:#3e495b;font-size:.73rem;outline:none}.toolbar input{width:100%;padding:0 10px 0 34px}.toolbar select{min-width:126px;padding:0 30px 0 10px}.toolbar input:focus,.toolbar select:focus{border-color:#4e86df;box-shadow:0 0 0 3px #4e86df1f}.sort-control{margin-left:auto;display:flex;align-items:center;gap:7px;color:#778294;font-size:.7rem}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:.72rem}th{height:38px;padding:0 12px;background:#f8f9fb;color:#6d788a;border-bottom:1px solid #dfe4ea;text-align:left;font-size:.62rem;font-weight:750;letter-spacing:.045em;text-transform:uppercase;white-space:nowrap}th:first-child,td:first-child{padding-left:18px}td{height:62px;padding:7px 12px;border-bottom:1px solid #ebeff3;color:#3f4959;white-space:nowrap}tbody tr{transition:background .12s;outline:0}tbody tr:not(.loading-row):not(.error-row){cursor:pointer}tbody tr:not(.loading-row):not(.error-row):hover,tbody tr:focus{background:#f7faff}
.device-identity{min-width:220px;display:flex;align-items:center;gap:10px}.device-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:7px;background:#eaf1fc;color:#2865c3;font-size:.66rem;font-weight:800}.device-identity div{display:flex;flex-direction:column;gap:3px}.device-identity strong{color:#202a3a;font-size:.76rem}.device-identity span:last-child{max-width:240px;overflow:hidden;text-overflow:ellipsis;color:#7c8797;font-size:.64rem}.status-badge{width:max-content;display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border-radius:999px;font-size:.63rem;font-weight:700}.status-badge i{width:6px;height:6px;border-radius:50%}.status-badge.online{color:#237548;background:#e4f5eb}.status-badge.online i{background:#29a661}.status-badge.warning{color:#8a6215;background:#fff3d8}.status-badge.warning i{background:#dda126}.status-badge.offline{color:#a73a3a;background:#fde8e8}.status-badge.offline i{background:#d64b4b}.muted{color:#727d8e}.usage{width:75px}.usage>span{display:block;margin-bottom:4px;font-variant-numeric:tabular-nums}.usage>div{height:3px;overflow:hidden;border-radius:3px;background:#e7ebf0}.usage i{display:block;height:100%}.usage .healthy{background:#45aa72}.usage .warning{background:#dfa326}.usage .critical{background:#d84b4b}.network{display:flex;align-items:center;gap:7px}.network i{width:7px;height:7px;border-radius:50%;background:#32a866}.network i.down{background:#d84b4b}.network span{font-family:ui-monospace,monospace;font-size:.65rem}.heartbeat{display:flex;flex-direction:column;gap:3px}.heartbeat strong{font-size:.69rem}.heartbeat span{color:#8a94a3;font-size:.61rem}.heartbeat.stale strong{color:#bc4141}.alert-count{min-width:21px;height:21px;display:inline-grid;place-items:center;border-radius:50%;color:#a73a3a;background:#fde8e8;font-weight:750}.clear-check{color:#2a9b5d;font-size:.84rem}.row-action{width:25px;height:25px;border:0;border-radius:5px;color:#778294;background:transparent;font-size:1.25rem}.row-action:hover{color:#2865c3;background:#eaf1fc}.loading-row td,.error-row td{height:150px;text-align:center;color:#788395}.error-row td{color:#a73a3a}.spinner{display:inline-block;width:14px;height:14px;margin-right:8px;border:2px solid #d6dde6;border-top-color:#3474d4;border-radius:50%;animation:spin .7s linear infinite;vertical-align:-3px}.empty-state{padding:60px 20px;text-align:center}.empty-state strong,.empty-state span{display:block}.empty-state span{margin-top:5px;color:#8791a0;font-size:.72rem}.panel-footer{min-height:40px;padding:0 18px;display:flex;align-items:center;justify-content:space-between;color:#8791a0;background:#fafbfc;font-size:.65rem}
.drawer-backdrop{position:fixed;inset:0;z-index:40;background:#1d263538;opacity:0;transition:opacity .18s}.drawer-backdrop.open{opacity:1}.device-drawer{position:fixed;top:0;right:0;z-index:50;width:min(520px,92vw);height:100vh;display:flex;flex-direction:column;background:#fff;box-shadow:-12px 0 40px #1a233129;transform:translateX(102%);transition:transform .2s}.device-drawer.open{transform:none}.drawer-header{min-height:98px;padding:20px 22px;display:flex;justify-content:space-between;border-bottom:1px solid #e1e6ec}.drawer-eyebrow{color:#7c8798;font-size:.62rem;font-weight:750;letter-spacing:.07em;text-transform:uppercase}.drawer-header h2{margin:5px 0 7px;font-size:1.2rem}.drawer-header p{margin:0;display:flex;align-items:center;gap:9px;color:#707b8d;font-size:.68rem}.drawer-content{flex:1;overflow-y:auto;padding:6px 22px 32px}.detail-section{padding:19px 0;border-bottom:1px solid #e8ebef}.detail-section h3{margin:0 0 13px;font-size:.73rem;text-transform:uppercase}.detail-grid{margin:0;display:grid;grid-template-columns:repeat(2,1fr);gap:15px 22px}.detail-item dt{color:#858f9e;font-size:.64rem}.detail-item dd{margin:4px 0 0;color:#313c4d;font-size:.72rem;font-weight:550;overflow-wrap:anywhere}.health-bars{display:grid;gap:13px}.health-bars label span{display:flex;justify-content:space-between;color:#657084;font-size:.67rem}.health-bars progress{width:100%;height:5px;margin-top:6px;accent-color:#3da56c}.healthy-message{margin:0;padding:11px;border-radius:7px;color:#28794b;background:#eaf7ef;font-size:.7rem}.event-list{margin:0;padding:0;list-style:none}.event-list li{display:flex;gap:10px;padding:10px;border-radius:7px;background:#fff6e3}.event-list i{width:7px;height:7px;margin-top:5px;border-radius:50%;background:#dc9c21}.event-list div{display:flex;flex-direction:column;gap:3px}.event-list strong{font-size:.7rem}.event-list span{color:#85745a;font-size:.62rem}
.device-page{max-width:1100px}.back-button{margin:0 0 14px;padding:7px 10px;border:0;border-radius:6px;background:transparent;color:#2865c3;font-size:.74rem;font-weight:650}.back-button:hover{background:#eaf1fc}.back-button span{margin-right:6px;font-size:1rem}.device-detail-panel{overflow:hidden;background:#fff;border:1px solid #dfe4ea;border-radius:10px;box-shadow:0 1px 3px #10182808}.device-detail-panel .drawer-header{padding:24px 28px}.device-detail-panel .drawer-header h2{font-size:1.45rem}.device-detail-panel .drawer-content{padding:4px 28px 34px;overflow:visible}.device-detail-panel .detail-section{padding:22px 0}.device-detail-panel .detail-grid{grid-template-columns:repeat(3,1fr)}
.availability-loading{padding:28px;text-align:center;color:#7c8798;font-size:.72rem}.availability-summary{display:flex;align-items:baseline;gap:9px}.availability-summary>strong{font-size:1.45rem;color:#23834f}.availability-summary>span{color:#788395;font-size:.68rem}.availability-summary .legend{margin-left:auto;display:flex;align-items:center;gap:6px}.legend i{width:8px;height:8px;border-radius:2px;background:#42a66e}.legend i:nth-of-type(2){margin-left:7px;background:#dc5050}.timeline{height:30px;margin-top:14px;position:relative;overflow:hidden;border:1px solid #dbe4df;border-radius:6px;background:repeating-linear-gradient(90deg,#e4f4ea 0,#e4f4ea calc(14.285% - 1px),#cbded2 calc(14.285% - 1px),#cbded2 14.285%)}.timeline .downtime{position:absolute;top:0;bottom:0;z-index:2;background:#db5555;border-left:1px solid #b83e3e;border-right:1px solid #b83e3e}.timeline-labels{display:flex;justify-content:space-between;margin-top:5px;color:#8a94a3;font-size:.61rem}.availability>p{margin:9px 0 0;color:#8a94a3;font-size:.63rem}.event-heading{display:flex;align-items:center;justify-content:space-between}.event-heading h3{margin:0}.event-heading span{color:#8b95a5;font-size:.63rem}.history-list{display:grid;margin-top:12px;border:1px solid #e1e6ec;border-radius:7px;overflow:hidden}.history-event{min-height:58px;padding:11px 13px;display:grid;grid-template-columns:8px 1fr auto;align-items:center;gap:11px;border-bottom:1px solid #e8ecf0}.history-event:last-child{border-bottom:0}.history-event>i{width:8px;height:8px;border-radius:50%;background:#377bd8}.history-event.shutdown>i{background:#d79b25}.history-event.hostname_conflict>i{background:#d24d4d}.history-event.connectivity_restored>i{background:#39a56a}.history-event>div{display:flex;flex-direction:column;gap:3px}.history-event strong{font-size:.7rem}.history-event span,.history-event small{color:#7f8a9a;font-size:.62rem}.history-event code{padding:3px 6px;border-radius:4px;background:#f0f3f7;color:#687487;font-size:.58rem}.event-empty{padding:18px;border-radius:7px;background:#f7f9fb;color:#7d8898;font-size:.7rem}
@media(max-width:1180px){th:nth-child(3),td:nth-child(3),th:nth-child(4),td:nth-child(4){display:none}.kpi-grid{grid-template-columns:repeat(5,minmax(130px,1fr));overflow:auto}}@media(max-width:900px){.workspace{width:calc(100% - 28px)}.kpi-grid{grid-template-columns:repeat(3,1fr)}.toolbar{flex-wrap:wrap}.search-field{width:100%}.sort-control{margin-left:0}th:nth-child(7),td:nth-child(7),th:nth-child(8),td:nth-child(8){display:none}.device-detail-panel .detail-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:640px){.app-header{height:58px;padding:0 14px}.last-refresh,.system-live,.user-email{display:none}.workspace{width:calc(100% - 20px);padding-top:16px}.page-heading p,.realtime-label{display:none}.kpi-grid{grid-template-columns:repeat(2,1fr)}.kpi{min-height:86px}.kpi:last-child{grid-column:span 2}.toolbar label:not(.search-field),.sort-control{flex:1}.toolbar select{width:100%;min-width:0}th:nth-child(5),td:nth-child(5),th:nth-child(6),td:nth-child(6),th:nth-child(10),td:nth-child(10){display:none}.device-identity{min-width:190px}.panel-footer span:last-child{display:none}.detail-grid,.device-detail-panel .detail-grid{grid-template-columns:1fr}.device-detail-panel .drawer-header,.device-detail-panel .drawer-content{padding-left:18px;padding-right:18px}}

/* Readability pass: keep operational data comfortable at normal browser zoom. */
html{font-size:20px}body{line-height:1.45}.app-header{height:76px;padding-inline:34px}.brand-mark{width:42px;height:42px}.header-tools{gap:22px}.icon-button{width:42px;height:42px}.secondary-button{height:40px;padding-inline:16px}.workspace{width:min(1400px,calc(100% - 64px));padding-top:34px}.device-page{max-width:1200px}.back-button{padding:10px 12px;margin-bottom:20px}.device-detail-panel .drawer-header{padding:32px 38px}.device-detail-panel .drawer-content{padding:8px 38px 44px}.device-detail-panel .detail-section{padding:30px 0}.device-detail-panel .detail-grid{gap:24px 34px}.detail-section h3{font-size:.8rem}.detail-item dt{font-size:.72rem}.detail-item dd{font-size:.84rem;line-height:1.4}.health-bars{gap:20px}.health-bars label span{font-size:.78rem}.health-bars progress{height:8px;margin-top:9px}.status-badge{font-size:.72rem;padding:6px 11px}.availability-summary>span,.availability>p{font-size:.72rem}.timeline{height:38px}.timeline-labels{font-size:.68rem}.history-event{min-height:72px;padding:15px 17px}.history-event strong{font-size:.8rem}.history-event span,.history-event small{font-size:.7rem}.history-event code{font-size:.65rem}.event-heading span{font-size:.7rem}
@media(max-width:900px){html{font-size:18px}.workspace{width:calc(100% - 36px)}.app-header{padding-inline:18px}.device-detail-panel .drawer-header,.device-detail-panel .drawer-content{padding-left:24px;padding-right:24px}}
.hardware-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.hardware-cards article{padding:20px;border:1px solid #dfe5ec;border-radius:9px;background:#fafbfd}.hardware-cards header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:17px}.hardware-cards header>strong{font-size:.84rem}.hardware-cards dl{margin:0;display:grid;grid-template-columns:1fr;gap:13px}.hardware-cards .detail-item dd{font-size:.76rem}.remote-actions>p{margin:-4px 0 16px;color:#707c8e;font-size:.74rem}.remote-actions>div{display:flex;gap:12px}.remote-actions button,.danger-button{min-height:42px;padding:0 16px;border:1px solid #d44b4b;border-radius:7px;background:#fff;color:#b52f2f;font-weight:700}.remote-actions button:first-child{border-color:#d69b25;color:#8a6115}.remote-actions button:hover,.danger-button{background:#c53e3e;color:#fff}.remote-actions button:first-child:hover{background:#a87316;color:#fff}.modal-backdrop{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:24px;background:#17203399}.confirm-modal{width:min(520px,100%);padding:28px;border-radius:12px;background:#fff;box-shadow:0 24px 70px #10182855}.confirm-modal h2{margin:0;font-size:1.25rem}.confirm-modal>p{margin:10px 0 22px;color:#647084;font-size:.78rem;line-height:1.55}.confirm-modal label{display:flex;flex-direction:column;gap:8px;color:#465164;font-size:.76rem}.confirm-modal input{height:46px;padding:0 13px;border:1px solid #cfd7e2;border-radius:7px;font-size:.86rem}.confirm-modal input:focus{outline:3px solid #4e86df24;border-color:#4e86df}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.modal-actions .secondary-button,.modal-actions .danger-button{height:42px}.danger-button:disabled{opacity:.45;cursor:not-allowed}@media(max-width:900px){.hardware-cards{grid-template-columns:1fr}}
.radar-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.radar-heading h3{margin:0 0 5px}.radar-heading p,.radar-note{margin:0;color:#707c8e;font-size:.72rem}.radar-live{display:flex;align-items:center;gap:7px;padding:6px 10px;border-radius:999px;background:#f1f3f6;color:#727d8c;font-size:.7rem;font-weight:750}.radar-live i{width:7px;height:7px;border-radius:50%;background:#9aa3af}.radar-live.active{background:#e6f7ed;color:#237344}.radar-live.active i{background:#28a45d;box-shadow:0 0 0 4px #28a45d1f}.radar-layout{display:grid;grid-template-columns:minmax(360px,1.1fr) minmax(320px,.9fr);gap:20px;align-items:start}.radar-plot{padding:12px;border:1px solid #dfe5ec;border-radius:10px;background:#f8fafc}.radar-plot svg{display:block;width:100%;height:auto;max-height:390px}.radar-sector{fill:#e9f3ff;stroke:#8cb9ed;stroke-width:1.5}.radar-ring{fill:none;stroke:#b8cde3;stroke-width:1;stroke-dasharray:4 5}.radar-centre{stroke:#a8bfd8;stroke-width:1;stroke-dasharray:4 5}.radar-plot svg>text{fill:#77879a;font-size:11px}.radar-sensor{fill:#2f6098;stroke:#fff;stroke-width:3}.radar-target circle{stroke:#fff;stroke-width:3;filter:drop-shadow(0 2px 3px #15273b55)}.radar-target.approaching circle{fill:#e24f4f}.radar-target.receding circle{fill:#347ed1}.radar-target.stationary circle{fill:#d29b26}.radar-target text{fill:#fff;font-size:10px;font-weight:800;text-anchor:middle;pointer-events:none}.radar-legend{display:flex;flex-wrap:wrap;gap:12px;margin-top:9px;color:#69778a;font-size:.68rem}.radar-legend span{display:flex;align-items:center;gap:5px}.radar-legend i{width:8px;height:8px;border-radius:50%}.radar-legend i.approaching{background:#e24f4f}.radar-legend i.receding{background:#347ed1}.radar-readout>strong{display:block;font-size:1.35rem}.radar-readout>span{display:block;margin:3px 0 13px;color:#748094;font-size:.7rem}.radar-table-wrap{overflow:auto;border:1px solid #e0e6ed;border-radius:9px}.radar-table-wrap table{width:100%;font-size:.7rem}.radar-table-wrap th,.radar-table-wrap td{padding:9px 10px;white-space:nowrap}.radar-table-wrap th{font-size:.62rem}.radar-speed.approaching{color:#c23c3c;font-weight:700}.radar-speed.receding{color:#286bb7;font-weight:700}.radar-empty{padding:24px!important;text-align:center;color:#7a8798}.radar-error{margin:14px 0 0;padding:10px 12px;border-radius:7px;background:#fff0f0;color:#ae3939;font-size:.74rem}.radar-note{margin-top:13px}@media(max-width:900px){.radar-layout{grid-template-columns:1fr}}
.radar-speed small,.radar-history-item small{font-size:.66rem;font-weight:600;opacity:.72}.radar-history-section .event-heading{margin-bottom:13px}.radar-history-item{padding:13px 15px;border-bottom:1px solid #e4e9ef}.radar-history-item:last-child{border-bottom:0}.radar-history-summary{display:flex;align-items:center;justify-content:space-between;gap:24px}.radar-history-summary>div{display:flex;flex-direction:column;gap:4px}.radar-history-summary>div:last-child{text-align:right}.radar-history-item strong{font-size:.78rem}.radar-history-item span,.radar-empty-history{color:#718095;font-size:.7rem}.radar-empty-history{margin:0;padding:18px 0}.radar-samples{margin-top:10px}.radar-samples summary{color:#315f97;cursor:pointer;font-size:.68rem;font-weight:700}.radar-samples-wrap{margin-top:10px;overflow-x:auto}.radar-samples table{border-collapse:collapse;width:100%;font-size:.65rem}.radar-samples th,.radar-samples td{border-bottom:1px solid #e4e9ef;padding:7px 9px;text-align:left;white-space:nowrap}.radar-samples th{color:#718095;font-size:.6rem;text-transform:uppercase}.radar-samples p{color:#718095;font-size:.68rem}
.latest-radar-detection{margin-top:18px;padding-top:16px;border-top:1px solid #e0e6ed}.latest-radar-detection>p{color:#718095;font-size:.68rem}.latest-detection-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.latest-detection-heading>span{color:#657389;font-size:.64rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase}.latest-detection-heading .secondary-button{height:34px;padding-inline:11px;font-size:.64rem}.latest-detection-summary{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-top:12px}.latest-detection-summary>div{display:flex;flex-direction:column;gap:2px}.latest-detection-summary>div:last-child{text-align:right}.latest-detection-summary strong{font-size:1rem}.latest-detection-summary span{color:#718095;font-size:.66rem}.radar-history-page{padding-top:8px!important}.radar-history-page .radar-history-item{padding:22px 4px}.detection-when strong{font-size:1.3rem}.detection-speed strong{font-size:1.25rem}.detection-meta{margin:9px 0 0;color:#718095;font-size:.68rem}.radar-history-detail{display:grid;grid-template-columns:minmax(300px,1fr) minmax(420px,1.15fr);gap:20px;align-items:start;margin-top:14px}.history-radar-map{padding:10px;border:1px solid #dfe5ec;border-radius:9px;background:#f8fafc}.history-radar-map svg{display:block;width:100%;height:auto}.history-track-line{fill:none;stroke:#687e98;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;opacity:.65}.history-map-dot.approaching,.history-map-label.approaching circle{fill:#e24f4f}.history-map-dot.receding,.history-map-label.receding circle{fill:#347ed1}.history-map-dot.stationary,.history-map-label.stationary circle{fill:#d29b26}.history-map-label circle{stroke:#fff;stroke-width:2}.history-map-label text{fill:#fff;font-size:8px;font-weight:800;text-anchor:middle}.history-map-label .map-arrow{font-size:10px}.radar-history-detail .radar-samples-wrap{margin-top:0;max-height:390px;overflow:auto}@media(max-width:900px){.radar-history-detail{grid-template-columns:1fr}.latest-detection-heading{align-items:flex-start;flex-direction:column}.latest-detection-summary{align-items:flex-start}}
.detection-archive-button{align-self:flex-end;height:30px;margin-top:7px}.radar-history-pagination{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 4px}.radar-history-pagination span{color:#718095;font-size:.68rem;text-align:center}.radar-history-pagination button:disabled{opacity:.45}.radar-archive-link{color:#315f97;font-size:.66rem;font-weight:700;text-decoration:none}.drawer-header p:has(.radar-archive-link){align-items:center;gap:12px}@media(max-width:600px){.radar-history-pagination{flex-wrap:wrap}.radar-history-pagination span{order:-1;width:100%}}
.lora-control>p{margin:-4px 0 16px;color:#707c8e;font-size:.74rem}.lora-control form{display:grid;gap:9px;max-width:760px}.lora-control label{color:#465164;font-size:.76rem;font-weight:650}.lora-control textarea{width:100%;min-height:100px;padding:12px 14px;resize:vertical;border:1px solid #cfd7e2;border-radius:7px;color:#273245;background:#fff;font:inherit;font-size:.82rem}.lora-control textarea:focus{outline:3px solid #4e86df24;border-color:#4e86df}.lora-control form>div{display:flex;align-items:center;justify-content:space-between;gap:16px}.lora-control form>div span{color:#7b8697;font-size:.68rem}.lora-control .primary-button{width:auto;min-width:170px;padding-inline:18px}.lora-status{margin:4px 0 0!important;padding:11px 13px;border-radius:7px;font-size:.72rem!important}.lora-status.success{color:#28794b;background:#eaf7ef}.lora-status.error{color:#a83d3d;background:#fff0f0}@media(max-width:640px){.lora-control form>div{align-items:stretch;flex-direction:column}.lora-control .primary-button{width:100%}}
.history-event.remote_lora_queued>i{background:#d79b25}.history-event.remote_lora_transmit>i{background:#2f9e61}.history-event.remote_lora_failed>i{background:#d24d4d}.event-message{width:fit-content;max-width:100%;margin:7px 0 2px;padding:8px 11px;border-left:3px solid #4382dc;border-radius:0 5px 5px 0;background:#f1f6fd;color:#26364c;font-size:.74rem;line-height:1.45;overflow-wrap:anywhere}.history-event .event-error{color:#b33b3b}.history-more{display:flex;align-items:center;justify-content:center;gap:14px;padding:18px;background:#fafbfd}.history-more span{color:#7b8697;font-size:.68rem}.history-more.complete{padding:12px}html[data-theme="dark"] .history-more{background:#171d26}
.live-heartbeat{min-width:285px;padding:18px 22px;border:1px solid #bfe7cf;border-radius:12px;background:#effaf3;display:flex;flex-direction:column;align-self:center}.live-heartbeat>span{color:#397255;font-size:.65rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.live-heartbeat>strong{margin-top:4px;color:#187744;font-size:1.25rem;line-height:1.2}.live-heartbeat>small{margin-top:4px;color:#60796b;font-size:.68rem}.live-heartbeat.stale{border-color:#efbcbc;background:#fff1f1}.live-heartbeat.stale>span,.live-heartbeat.stale>strong{color:#b43d3d}.live-heartbeat.stale>small{color:#8d6565}.uptime-chart{margin-top:18px;padding:16px 18px 12px;border:1px solid #dfe5ec;border-radius:10px;background:#fcfdff}.uptime-chart svg{display:block;width:100%;height:auto;max-height:330px;overflow:visible}.online-band{fill:#3aaa6b24}.chart-grid line{stroke:#e4e9ef;stroke-width:1}.uptime-chart svg text{fill:#7d8899;font-size:13px}.uptime-line{fill:none;stroke:#2fa765;stroke-width:4;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}.downtime-band{fill:#e9575740;stroke:#d9484860}.uptime-axis{margin:2px 0 0 5%;display:flex;justify-content:space-between;color:#778294;font-size:.66rem}.availability-summary>div{display:flex;align-items:baseline;gap:8px}.availability-summary>div strong{font-size:1.55rem;color:#23834f}.availability-summary>div span{color:#788395;font-size:.72rem}@media(max-width:700px){.device-detail-panel .drawer-header{gap:18px;flex-direction:column}.live-heartbeat{width:100%;min-width:0;align-self:stretch}.uptime-chart{padding:8px}.uptime-chart svg{min-height:190px}.uptime-axis{font-size:.58rem}}
.live-heartbeat .heartbeat-request{margin-top:9px;padding-top:8px;border-top:1px solid #b9ddc7;color:#276c48;font-weight:750}html[data-theme="dark"] .live-heartbeat .heartbeat-request{border-color:#2f5b43;color:#7bd9a4}
.system-health-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:18px}.system-health-summary>div{padding:11px 13px;border:1px solid #dfe5ec;border-radius:8px;background:#f8fafc}.system-health-summary strong,.system-health-summary span{display:block}.system-health-summary strong{color:#243246;font-size:1rem}.system-health-summary span{margin-top:2px;color:#7b8798;font-size:.64rem}.compact-health{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.system-detail-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 26px}.system-detail-group h4{margin:0 0 13px;color:#637086;font-size:.67rem;text-transform:uppercase}.system-detail-group .detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 18px}.system-remote-actions{grid-column:1/-1;padding-top:16px;border-top:1px solid #e5e9ef}.system-remote-actions>p{margin:0 0 12px;color:#7a8596;font-size:.68rem}.system-remote-actions>div{display:flex;gap:10px}.system-remote-actions button{padding:9px 14px;border:1px solid #d3a12e;border-radius:7px;background:#c58a12;color:#fff;font:inherit;font-size:.7rem;font-weight:750}.system-remote-actions button:last-child{border-color:#dc5555;background:transparent;color:#b63131}@media(max-width:800px){.system-detail-groups,.compact-health{grid-template-columns:1fr}.system-health-summary{grid-template-columns:repeat(3,1fr)}.system-detail-group .detail-grid{grid-template-columns:repeat(2,1fr)}}html[data-theme="dark"] .system-health-summary>div{border-color:#343e4c;background:#171d26}html[data-theme="dark"] .system-health-summary strong{color:#e3e9f2}html[data-theme="dark"] .system-remote-actions{border-color:#343e4c}
.theme-picker{position:relative}.theme-button .theme-symbol{width:20px;height:20px;border:2px solid currentColor;border-radius:50%;background:linear-gradient(90deg,currentColor 50%,transparent 50%);box-shadow:inset 0 0 0 3px var(--theme-button-bg,#fff)}.theme-menu{position:absolute;top:calc(100% + 10px);right:0;z-index:80;width:180px;padding:7px;border:1px solid #d8dee7;border-radius:10px;background:#fff;box-shadow:0 16px 42px #17203330}.theme-menu button{width:100%;height:46px;padding:0 11px;display:grid;grid-template-columns:25px 1fr 18px;align-items:center;gap:9px;border:0;border-radius:7px;background:transparent;color:#344054;text-align:left}.theme-menu button:hover,.theme-menu button.selected{background:#edf3fc}.theme-menu button b{visibility:hidden;color:#2769cc}.theme-menu button.selected b{visibility:visible}.theme-option-icon{width:20px;height:20px;border:1.5px solid currentColor;border-radius:50%}.theme-option-icon.light{background:#fff}.theme-option-icon.dark{background:#202938}.theme-option-icon.system{background:linear-gradient(135deg,#fff 50%,#202938 50%)}
html[data-theme="dark"]{color-scheme:dark;color:#e8edf5;background:#11151c}html[data-theme="dark"] body,html[data-theme="dark"] .login-view,html[data-theme="dark"] .auth-loading{background:#11151c}html[data-theme="dark"] .app-header,html[data-theme="dark"] .login-card,html[data-theme="dark"] .kpi,html[data-theme="dark"] .fleet-panel,html[data-theme="dark"] .device-detail-panel,html[data-theme="dark"] .confirm-modal,html[data-theme="dark"] .theme-menu{background:#1a202a;border-color:#313a48;box-shadow:none}html[data-theme="dark"] .brand span,html[data-theme="dark"] .login-brand span,html[data-theme="dark"] .page-heading p,html[data-theme="dark"] .panel-heading p,html[data-theme="dark"] .kpi small,html[data-theme="dark"] .user-email,html[data-theme="dark"] .last-refresh,html[data-theme="dark"] .muted,html[data-theme="dark"] .sort-control,html[data-theme="dark"] .detail-item dt,html[data-theme="dark"] .drawer-eyebrow,html[data-theme="dark"] .drawer-header p,html[data-theme="dark"] .availability>p,html[data-theme="dark"] .event-heading span{color:#99a5b6}html[data-theme="dark"] .last-refresh strong,html[data-theme="dark"] .device-identity strong,html[data-theme="dark"] .detail-item dd,html[data-theme="dark"] td,html[data-theme="dark"] .health-bars label span,html[data-theme="dark"] .theme-menu button{color:#e3e9f2}html[data-theme="dark"] .toolbar input,html[data-theme="dark"] .toolbar select,html[data-theme="dark"] .lora-control textarea,html[data-theme="dark"] .confirm-modal input,html[data-theme="dark"] .login-card input,html[data-theme="dark"] .icon-button,html[data-theme="dark"] .secondary-button{border-color:#3b4656;background:#222a36;color:#e3e9f2}html[data-theme="dark"] .theme-button .theme-symbol{--theme-button-bg:#222a36}html[data-theme="dark"] th,html[data-theme="dark"] .panel-footer{background:#171d26;border-color:#303946;color:#9ca8b9}html[data-theme="dark"] td,html[data-theme="dark"] .toolbar,html[data-theme="dark"] .drawer-header,html[data-theme="dark"] .detail-section,html[data-theme="dark"] .history-event{border-color:#303946}html[data-theme="dark"] tbody tr:not(.loading-row):not(.error-row):hover,html[data-theme="dark"] tbody tr:focus,html[data-theme="dark"] .theme-menu button:hover,html[data-theme="dark"] .theme-menu button.selected{background:#222b38}html[data-theme="dark"] .hardware-cards article,html[data-theme="dark"] .uptime-chart,html[data-theme="dark"] .event-empty{border-color:#343e4c;background:#171d26}html[data-theme="dark"] .chart-grid line{stroke:#303946}html[data-theme="dark"] .uptime-chart svg text,html[data-theme="dark"] .uptime-axis{fill:#9aa6b7;color:#9aa6b7}html[data-theme="dark"] .history-list{border-color:#303946}html[data-theme="dark"] .history-event code{background:#262f3c;color:#b4c0d0}html[data-theme="dark"] .event-message{background:#202c3c;color:#dce8f8}html[data-theme="dark"] .live-heartbeat{border-color:#285e43;background:#172a21}html[data-theme="dark"] .live-heartbeat>span,html[data-theme="dark"] .live-heartbeat>strong{color:#65d697}html[data-theme="dark"] .live-heartbeat>small{color:#9db7a8}html[data-theme="dark"] .healthy-message{background:#172a21;color:#65d697}html[data-theme="dark"] .event-list li{background:#302919}html[data-theme="dark"] .confirm-modal>p,html[data-theme="dark"] .confirm-modal label,html[data-theme="dark"] .lora-control>p,html[data-theme="dark"] .lora-control label,html[data-theme="dark"] .remote-actions>p{color:#a7b2c1}html[data-theme="dark"] .back-button:hover,html[data-theme="dark"] .row-action:hover{background:#222b38}html[data-theme="dark"] .device-icon{background:#24334a;color:#79a9f2}html[data-theme="dark"] .usage>div{background:#343e4c}html[data-theme="dark"] .theme-option-icon.light{background:#fff}html[data-theme="dark"] .theme-option-icon.dark{background:#11151c}@media(max-width:640px){.theme-menu{right:-70px}.header-tools{gap:10px}}
html[data-theme="dark"] .radar-plot,html[data-theme="dark"] .radar-table-wrap{border-color:#343e4c;background:#171d26}html[data-theme="dark"] .radar-sector{fill:#17283b;stroke:#4776a9}html[data-theme="dark"] .radar-ring,html[data-theme="dark"] .radar-centre{stroke:#41566e}html[data-theme="dark"] .radar-plot svg>text{fill:#95a8bc}html[data-theme="dark"] .radar-heading p,html[data-theme="dark"] .radar-note,html[data-theme="dark"] .radar-readout>span,html[data-theme="dark"] .radar-legend{color:#9aa8b9}html[data-theme="dark"] .radar-live{background:#272e39;color:#a6b0bd}html[data-theme="dark"] .radar-live.active{background:#173426;color:#69d796}
html[data-theme="dark"] .radar-history-item,html[data-theme="dark"] .latest-radar-detection{border-color:#303946}html[data-theme="dark"] .radar-history-item span,html[data-theme="dark"] .radar-empty-history,html[data-theme="dark"] .latest-detection-summary span,html[data-theme="dark"] .detection-meta{color:#9aa8b9}html[data-theme="dark"] .history-radar-map{border-color:#343e4c;background:#171d26}
.history-range-label{fill:#77879a;font-size:11px}html[data-theme="dark"] .history-range-label{fill:#95a8bc}
.radar-media-column{display:grid;gap:14px}.radar-still{margin:0;overflow:hidden;border:1px solid #dfe5ec;border-radius:9px;background:#f8fafc}.radar-still img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}.radar-still>div{min-height:180px;display:grid;place-items:center;padding:18px;color:#718095;font-size:.68rem;text-align:center}.radar-still figcaption{padding:8px 10px;color:#718095;font-size:.62rem}.radar-video-action{display:flex;align-items:center;gap:10px}.radar-video-link{display:inline-flex;align-items:center;text-decoration:none}.radar-video-status{color:#718095;font-size:.68rem}html[data-theme="dark"] .radar-still{border-color:#343e4c;background:#171d26}
.device-detail-panel .drawer-content:has(.reorderable-panel){padding-top:28px;background:#f5f7fa}.device-detail-panel .reorderable-panel{position:relative;margin:0 0 20px;padding:28px!important;border:1px solid #dfe5ec!important;border-radius:10px;background:#fff;box-shadow:0 1px 3px #10182808}.panel-reorder{position:absolute;top:14px;right:14px;z-index:4;display:flex;align-items:center;gap:4px}.panel-drag,.panel-reorder button{width:30px;height:30px;display:grid;place-items:center;border:1px solid #d8e0ea;border-radius:6px;background:#f8fafc;color:#68768a;font-size:.72rem;line-height:1}.panel-drag{cursor:grab;font-weight:900;letter-spacing:-3px}.panel-drag:active{cursor:grabbing}.panel-reorder button{cursor:pointer}.panel-reorder button:hover,.panel-drag:hover{border-color:#8fb5e8;background:#edf5ff;color:#2465c2}.reorderable-panel.dragging{opacity:.5}.reorderable-panel>h3:first-of-type,.reorderable-panel>.radar-heading{padding-right:110px}html[data-theme="dark"] .device-detail-panel .drawer-content:has(.reorderable-panel){background:#141922}html[data-theme="dark"] .device-detail-panel .reorderable-panel{border-color:#303946!important;background:#1a202a}html[data-theme="dark"] .panel-drag,html[data-theme="dark"] .panel-reorder button{border-color:#3b4656;background:#222a36;color:#aeb9c8}@media(max-width:640px){.device-detail-panel .reorderable-panel{padding:22px 16px!important}.panel-reorder{top:10px;right:10px}.reorderable-panel>h3:first-of-type,.reorderable-panel>.radar-heading{padding-right:100px}}
.radar-detection-page .radar-history-item{border-bottom:0}.radar-detection-page .radar-history-detail{margin-top:0}
.detection-media-state{display:flex;justify-content:flex-end;gap:7px;margin-top:8px}.media-chip{display:inline-flex;align-items:center;gap:5px;padding:5px 9px;border:1px solid #dce3eb;border-radius:999px;background:#f5f7fa;color:#7a8798;font-size:.58rem!important;font-weight:750}.media-chip b{font-size:.66rem}.media-chip.ready{border-color:#b9e6cc;background:#eaf8f0;color:#18834c}.media-chip.cloud{border-color:#cfd8e4;background:#f2f5f8;color:#617187}.radar-capture-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.radar-video-card{margin:0;overflow:hidden;border:1px solid #dfe5ec;border-radius:9px;background:#f8fafc}.radar-video-card video{display:block;width:100%;aspect-ratio:16/9;background:#10151b;object-fit:contain}.radar-video-card>div{min-height:180px;display:grid;place-items:center;align-content:center;gap:10px;padding:18px;color:#718095;font-size:.68rem;text-align:center}.radar-video-card figcaption{padding:8px 10px;color:#718095;font-size:.62rem}.media-dot.ready{display:inline-grid;place-items:center;width:18px;height:18px;margin-right:4px;border-radius:50%;background:#25a765;color:#fff;font-weight:900}.large-cloud{display:block;font-size:2rem;color:#8290a2}@media(max-width:700px){.radar-capture-grid{grid-template-columns:1fr}.detection-media-state{justify-content:flex-start;flex-wrap:wrap}}
html[data-theme="dark"] .media-chip{border-color:#3b4655;background:#202731;color:#9aa8b9}html[data-theme="dark"] .media-chip.ready{border-color:#276846;background:#173a28;color:#72d69d}html[data-theme="dark"] .radar-video-card{border-color:#343e4c;background:#171d26}
.video-request-progress{width:100%;max-width:290px;padding:11px;border:1px solid #cbd8e7;border-radius:8px;background:#fff;text-align:left}.video-request-progress>div{display:flex;justify-content:space-between;gap:12px;color:#42536a;font-size:.6rem;font-weight:800}.video-request-progress progress{width:100%;height:9px;margin:7px 0 5px;accent-color:#2f7fd0}.video-request-progress small{display:block;overflow-wrap:anywhere;color:#718095;font-size:.55rem;line-height:1.35}.video-request-progress.complete{border-color:#83d3a5;background:#eefaf3}.video-request-progress.complete progress{accent-color:#209a58}.video-request-progress.failed{border-color:#e0a4a4;background:#fff2f2}.video-request-progress.failed progress{accent-color:#be3d3d}html[data-theme="dark"] .video-request-progress{border-color:#3c4a5b;background:#202731}html[data-theme="dark"] .video-request-progress.complete{border-color:#326d4b;background:#193425}html[data-theme="dark"] .video-request-progress.failed{border-color:#744545;background:#3b2424}
.media-chip.ready{border-color:#16894d;background:#1f9d5a;color:#fff;box-shadow:0 1px 2px rgba(22,137,77,.18)}.media-chip.cloud{border-color:#3478bd;background:#e9f3fd;color:#235f9b}.media-chip.requested{border-color:#c48a19;background:#fff5d9;color:#825908}.media-chip.missing{border-color:#d7a9a9;background:#fff1f1;color:#a52f2f}.media-chip b{display:inline-grid;place-items:center;min-width:15px;height:15px;font-size:.72rem;font-weight:900}.large-missing{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#f8dddd;color:#ad3131;font-size:1.7rem;font-weight:800}html[data-theme="dark"] .media-chip.ready{border-color:#45bd7b;background:#217a4a;color:#fff}html[data-theme="dark"] .media-chip.cloud{border-color:#386b9d;background:#1d3247;color:#8bc6ff}html[data-theme="dark"] .media-chip.requested{border-color:#8c6a28;background:#3c321c;color:#ffd477}html[data-theme="dark"] .media-chip.missing{border-color:#754343;background:#3b2323;color:#ff9f9f}

/* Keep a single detection's useful data above the fold. */
.device-page:has(.radar-detection-page){padding-top:16px}
.device-page:has(.radar-detection-page) .back-button{margin-bottom:10px}
.device-detail-panel:has(.radar-detection-page) .drawer-header{min-height:0;padding:18px 28px}
.device-detail-panel:has(.radar-detection-page) .drawer-header h2{margin-block:2px 3px;font-size:1.2rem}
.device-detail-panel:has(.radar-detection-page) .live-heartbeat{min-width:240px;padding:11px 16px}
.device-detail-panel:has(.radar-detection-page) .live-heartbeat>strong{font-size:1rem}
.device-detail-panel:has(.radar-detection-page) .drawer-content{padding-top:0}
.radar-detection-page{padding-top:0!important}
.radar-detection-page .radar-history-item{padding-top:14px}
.radar-detection-page .radar-history-summary{align-items:flex-start}
.radar-detection-page .radar-history-summary>div{gap:1px}
.radar-detection-page .detection-media-state{margin-top:5px}
.radar-detection-page .detection-meta{margin-top:5px}
.radar-detection-page .radar-history-detail{grid-template-columns:minmax(260px,.72fr) minmax(560px,1.48fr);gap:12px}
.radar-detection-page .radar-media-column{display:contents}
.radar-detection-page .history-radar-map{grid-column:1;grid-row:1}
.radar-detection-page .radar-samples-wrap{grid-column:2;grid-row:1}
.radar-detection-page .history-radar-map{padding:7px}.radar-detection-page .history-radar-map .radar-legend{gap:5px 9px;margin-top:5px;font-size:.57rem}.radar-detection-page .radar-samples table{font-size:.58rem}.radar-detection-page .radar-samples th,.radar-detection-page .radar-samples td{padding:6px 7px}.vehicle-estimate{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:12px 0 8px;padding:11px 13px;border:1px solid #b8cbe1;border-left:4px solid #315f97;border-radius:8px;background:#f4f8fc}.vehicle-estimate>div{display:flex;flex-direction:column;gap:2px}.vehicle-estimate span{font-size:.55rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase}.vehicle-estimate strong{font-size:.77rem}.vehicle-estimate strong small{display:inline;font-size:.58rem;font-weight:600}.vehicle-estimate p{max-width:440px;margin:0;color:#68778a;font-size:.58rem;text-align:right}.vehicle-estimate.low{border-left-color:#d29b26}.vehicle-estimate.medium{border-left-color:#4d86c2}html[data-theme="dark"] .vehicle-estimate{border-color:#3b4b60;background:#1c2632}html[data-theme="dark"] .vehicle-estimate p{color:#9cabbc}
.speed-graph{grid-column:1/-1;grid-row:2;padding:11px 14px 4px;border:1px solid #dfe5ec;border-radius:9px;background:#fff}.speed-graph header{display:flex;justify-content:space-between;align-items:baseline;gap:12px}.speed-graph header strong{color:#243147;font-size:.72rem}.speed-graph header span,.speed-graph p{color:#718095;font-size:.58rem}.speed-graph svg{display:block;width:100%;height:auto;max-height:270px}.speed-grid line{stroke:#e1e7ee;stroke-width:1}.speed-grid text{fill:#718095;font-size:12px}.speed-track polyline{fill:none;stroke:var(--target-color);stroke-width:4;stroke-linecap:round;stroke-linejoin:round}.speed-track circle{fill:var(--target-color);stroke:#fff;stroke-width:1.2}html[data-theme="dark"] .speed-graph{border-color:#343e4c;background:#171d26}html[data-theme="dark"] .speed-graph header strong{color:#e3e9f2}html[data-theme="dark"] .speed-grid line{stroke:#303a47}html[data-theme="dark"] .speed-grid text{fill:#9aa8b9}
.radar-detection-page .radar-capture-grid{grid-column:1/-1;grid-row:3;width:100%;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.speed-playhead{pointer-events:none}.speed-playhead line{stroke:#e02d2d;stroke-width:3}.speed-playhead circle{fill:#e02d2d;stroke:#fff;stroke-width:2}.speed-playhead.before,.speed-playhead.after{opacity:.65}
.seekable-speed-graph{cursor:ew-resize;touch-action:none}.speed-video-controls{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:7px;padding:5px 0 9px}.speed-video-controls button{min-width:76px;padding:7px 11px;border:1px solid #cbd6e3;border-radius:7px;background:#f5f8fc;color:#42536a;font:inherit;font-size:.58rem;font-weight:750;cursor:pointer}.speed-video-controls .video-play-toggle{min-width:88px;border-color:#315f97;background:#315f97;color:#fff}.speed-video-controls button:hover{border-color:#315f97}html[data-theme="dark"] .speed-video-controls button{border-color:#3c4959;background:#222b38;color:#dce4ef}html[data-theme="dark"] .speed-video-controls .video-play-toggle{border-color:#5688c2;background:#315f97;color:#fff}
.forensic-time-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:3px 0 10px}.forensic-time-row>div{min-width:0;padding:9px 11px;border:1px solid #dfe5ec;border-radius:8px;background:#f7f9fc}.forensic-time-row span,.forensic-time-row strong,.forensic-time-row small{display:block}.forensic-time-row span{color:#718095;font-size:.52rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.forensic-time-row strong{margin-top:3px;color:#243147;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.59rem;white-space:nowrap}.forensic-time-row small{margin-top:3px;color:#718095;font-size:.5rem;line-height:1.35}html[data-theme="dark"] .forensic-time-row>div{border-color:#343e4c;background:#202731}html[data-theme="dark"] .forensic-time-row strong{color:#e3e9f2}@media(max-width:800px){.forensic-time-row{grid-template-columns:1fr}.forensic-time-row strong{white-space:normal}}
.radar-video-telemetry{min-height:88px;padding:12px 14px;overflow:hidden;border-top:1px solid #dfe5ec;background:#fff;color:#718095;font-size:.62rem}.radar-video-telemetry>span{display:block;padding:18px 4px;text-align:center}.radar-video-telemetry .telemetry-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:8px}.radar-video-telemetry .telemetry-heading strong{color:#243147;font-size:.72rem}.radar-video-telemetry .telemetry-heading span{color:#718095}.telemetry-target{display:grid;grid-template-columns:minmax(120px,1.2fr) repeat(5,minmax(max-content,.65fr));align-items:center;gap:10px;padding:7px 9px;border-radius:7px;background:#f4f7fb;color:#526176;transform:translateX(28px);opacity:0}.radar-video-telemetry.active .telemetry-target{transform:none;opacity:1;transition:transform .22s ease-out,opacity .22s ease-out}.telemetry-target+.telemetry-target{margin-top:5px}.telemetry-target b{color:#344257}.telemetry-target strong{color:#172033;font-size:.72rem}.telemetry-target span{text-align:right}html[data-theme="dark"] .radar-video-telemetry{border-color:#343e4c;background:#171d26}html[data-theme="dark"] .radar-video-telemetry .telemetry-heading strong,html[data-theme="dark"] .telemetry-target b,html[data-theme="dark"] .telemetry-target strong{color:#e3e9f2}html[data-theme="dark"] .telemetry-target{background:#222b38;color:#aab6c6}
.target-color-1{--target-color:#2878d0}.target-color-2{--target-color:#db4f4f}.target-color-3{--target-color:#8b5ac7}.target-color-4{--target-color:#16977e}.target-color-5{--target-color:#d78322}.target-color-6{--target-color:#d04491}.target-color-7{--target-color:#65758b}.target-color-8{--target-color:#78a927}.target-filters{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:10px 0 4px}.target-pill{min-height:30px;padding:4px 10px;display:inline-flex;align-items:center;gap:6px;border:1px solid #d7dfe9;border-radius:999px;background:#fff;color:#5f6d80;font-size:.58rem;font-weight:800;letter-spacing:.02em}.target-pill i,.target-swatch,.table-target-dot{width:9px;height:9px;display:inline-block;flex:0 0 auto;border-radius:50%;background:var(--target-color)}.target-pill b{min-width:20px;padding:1px 5px;border-radius:999px;background:#edf1f6;color:#647287;font-size:.55rem}.target-pill:not(.all){border-color:color-mix(in srgb,var(--target-color) 38%,#d7dfe9)}.target-pill.selected:not(.all){border-color:var(--target-color);background:var(--target-color);color:#fff}.target-pill.selected:not(.all) i{background:#fff}.target-pill.selected:not(.all) b{background:#ffffff30;color:#fff}.target-pill.all.selected{border-color:#315f97;background:#315f97;color:#fff}.target-pill.all.selected b{background:#ffffff30;color:#fff}.target-track .history-track-line{stroke:var(--target-color);opacity:.72}.target-track .history-map-dot,.target-track .history-map-label circle{fill:var(--target-color)}.target-track .history-map-label circle{stroke:#fff}.target-row .table-target-dot{margin-right:6px}.target-row small{display:block;margin-left:15px;color:#8490a0;font-size:.5rem}.telemetry-target{border-left:4px solid var(--target-color,#8ca0b8)}.target-filter-hidden{display:none!important}html[data-theme="dark"] .target-pill{border-color:#3d4857;background:#202731;color:#aab6c6}html[data-theme="dark"] .target-pill b{background:#303947;color:#b8c3d1}
@media(max-width:700px){.device-detail-panel:has(.radar-detection-page) .drawer-header{padding:15px 18px}.device-detail-panel:has(.radar-detection-page) .live-heartbeat{padding:9px 12px}.radar-detection-page .radar-history-summary{gap:10px}}
@media(max-width:900px){.radar-detection-page .history-radar-map,.radar-detection-page .radar-samples-wrap,.radar-detection-page .speed-graph,.radar-detection-page .radar-capture-grid{grid-column:1;grid-row:auto}.radar-detection-page .radar-capture-grid{grid-template-columns:1fr}.telemetry-target{grid-template-columns:1fr 1fr 1fr}.telemetry-target b{grid-column:1/-1}.radar-video-telemetry .telemetry-heading{align-items:flex-start;flex-direction:column;gap:2px}}
.target-pill.static{cursor:default;opacity:1}
.media-chip.delayed{border-color:#d9a847;background:#fff8e8;color:#996616}.media-chip.delayed b{font-size:.6rem}html[data-theme="dark"] .media-chip.delayed{border-color:#765c27;background:#302817;color:#e4bd68}
.wifi-management>p{color:#718095;font-size:.68rem}.wifi-network-summary{margin-top:16px}.wifi-network-summary h4{display:flex;align-items:center;gap:8px;margin:0 0 8px;color:#56657a;font-size:.62rem}.wifi-network-summary h4 span{min-width:23px;padding:2px 7px;border-radius:999px;background:#e8eef6;color:#315f97;text-align:center}.wifi-network-summary ul{display:grid;gap:8px;margin:0;padding:0;list-style:none}.wifi-network-row{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 12px;border:1px solid #d7e0ea;border-radius:8px;background:#f8fafc}.wifi-network-icon{display:grid;width:25px;height:25px;place-items:center;color:#8a98aa}.wifi-network-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}.wifi-network-row strong,.wifi-network-row small{display:block}.wifi-network-row strong{color:#243147;font-size:.68rem}.wifi-network-row small{margin-top:2px;color:#8490a0;font-size:.5rem}.wifi-network-row>b{color:#718095;font-size:.55rem}.wifi-network-row.connected{border-color:#8bd0aa;background:#f1fbf5}.wifi-network-row.connected .wifi-network-icon,.wifi-network-row.connected>b{color:#18834c}.wifi-network-row.available{border-color:#a9c9ed;background:#f4f8fd}.wifi-network-row.available .wifi-network-icon,.wifi-network-row.available>b{color:#2878c8}.wifi-network-row.unavailable .wifi-network-icon{opacity:.55}.wifi-network-empty{padding:11px;color:#718095}.wifi-form{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}.wifi-form label{display:grid;gap:6px;color:#56657a;font-size:.62rem;font-weight:750}.wifi-form input{height:38px;padding:0 10px;border:1px solid #cbd6e3;border-radius:7px;background:#fff;color:#172033;font:inherit}.wifi-form .wifi-show{grid-column:1/-1;display:flex;align-items:center;gap:7px;font-weight:600}.wifi-form .wifi-show input{width:16px;height:16px}.wifi-form button{justify-self:start}.wifi-result{align-self:center;margin:0!important}.wifi-result.wifi-info{color:#718095;font-size:.58rem}.wifi-result.success{color:#18834c}.wifi-result.error{color:#b23b3b}html[data-theme="dark"] .wifi-network-row{border-color:#3c4959;background:#202731}html[data-theme="dark"] .wifi-network-row.connected{border-color:#397553;background:#183426}html[data-theme="dark"] .wifi-network-row.available{border-color:#315c86;background:#192b3d}html[data-theme="dark"] .wifi-network-row strong{color:#e3e9f2}html[data-theme="dark"] .wifi-form input{border-color:#3c4959;background:#202731;color:#e3e9f2}@media(max-width:700px){.wifi-form{grid-template-columns:1fr}}
.wifi-network-row.queued{border-style:dashed;border-color:#a9b9cf;background:#f7f9fc}.wifi-network-row.queued>b{color:#526b8d}.wifi-queued-icon{position:relative;display:grid;width:28px;height:25px;place-items:center;color:#607895;font-size:1.25rem;line-height:1}.wifi-queued-icon i{position:absolute;right:-2px;bottom:-2px;display:grid;width:14px;height:14px;place-items:center;border-radius:50%;background:#fff;color:#315f97;font-size:.62rem;font-style:normal;font-weight:900}html[data-theme="dark"] .wifi-network-row.queued{border-color:#53657b;background:#202731}html[data-theme="dark"] .wifi-queued-icon i{background:#202731;color:#8eb8e8}
.radar-heading-controls,.radar-card-controls{display:flex;align-items:center;gap:9px}.radar-power-switch{display:inline-flex;align-items:center;gap:6px;padding:4px 7px;border:1px solid #b8c5d4;border-radius:999px;background:#fff;color:#65758a;font:inherit;font-size:.55rem;font-weight:800;cursor:pointer}.radar-power-switch>span{position:relative;width:30px;height:17px;border-radius:999px;background:#aab5c3;transition:background .18s}.radar-power-switch>span i{position:absolute;top:3px;left:3px;width:11px;height:11px;border-radius:50%;background:#fff;transition:transform .18s}.radar-power-switch[aria-checked="true"]{border-color:#8bd0aa;color:#18834c}.radar-power-switch[aria-checked="true"]>span{background:#20a55a}.radar-power-switch[aria-checked="true"]>span i{transform:translateX(13px)}.radar-power-switch.pending{border-color:#78afe7;background:#edf6ff;color:#2367a8;cursor:default;opacity:1}.radar-power-switch.pending::before{content:"";width:11px;height:11px;border:2px solid #9dc6ed;border-top-color:#2367a8;border-radius:50%;animation:radar-request-spin .75s linear infinite}.radar-power-switch.pending>span{opacity:.65}.radar-power-switch:focus-visible{outline:2px solid #2878d0;outline-offset:2px}@keyframes radar-request-spin{to{transform:rotate(360deg)}}html[data-theme="dark"] .radar-power-switch{border-color:#526071;background:#202731;color:#aab6c6}html[data-theme="dark"] .radar-power-switch[aria-checked="true"]{border-color:#397553;color:#63ce91}html[data-theme="dark"] .radar-power-switch.pending{border-color:#3e77ad;background:#182f46;color:#8dc8ff}

.camera-hardware-card .camera-live-button{width:100%;min-height:38px;margin-top:18px;border:0;border-radius:7px;background:#2168d5;color:#fff;font-size:.7rem;font-weight:750}.camera-hardware-card .camera-live-button:hover:not(:disabled){background:#1858ba}.camera-hardware-card .camera-live-button:disabled{background:#aeb7c4;cursor:not-allowed}.camera-live-note{margin:8px 0 0;color:#778498;font-size:.58rem;text-align:center}html[data-theme="dark"] .camera-hardware-card .camera-live-button:disabled{background:#3c4654;color:#8d99a9}

/* Compact device identity bar: keep status visible without using a quarter-page. */
@media(min-width:701px){
  .workspace:has(.device-page:not([hidden])){padding-top:12px}
  .device-page>.back-button{margin-bottom:7px;padding:5px 8px}
  .device-detail-panel:not(:has(.radar-history-page)):not(:has(.radar-detection-page))>.drawer-header{min-height:0;padding:10px 18px}
  .device-detail-panel:not(:has(.radar-history-page)):not(:has(.radar-detection-page))>.drawer-header>div:first-child{display:grid;grid-template-columns:auto auto;align-items:center;justify-content:start;column-gap:12px}
  .device-detail-panel:not(:has(.radar-history-page)):not(:has(.radar-detection-page))>.drawer-header .drawer-eyebrow{grid-column:1/-1;margin:0 0 1px;font-size:.5rem}
  .device-detail-panel:not(:has(.radar-history-page)):not(:has(.radar-detection-page))>.drawer-header h2{margin:0;font-size:1.05rem;line-height:1.15}
  .device-detail-panel:not(:has(.radar-history-page)):not(:has(.radar-detection-page))>.drawer-header p{margin:0;gap:7px;font-size:.65rem}
  .device-detail-panel:not(:has(.radar-history-page)):not(:has(.radar-detection-page))>.drawer-header .status-pill{padding:4px 9px;font-size:.62rem}
  .device-detail-panel:not(:has(.radar-history-page)):not(:has(.radar-detection-page)) .live-heartbeat{min-width:220px;padding:7px 11px;border-radius:8px}
  .device-detail-panel:not(:has(.radar-history-page)):not(:has(.radar-detection-page)) .live-heartbeat>span{font-size:.49rem}
  .device-detail-panel:not(:has(.radar-history-page)):not(:has(.radar-detection-page)) .live-heartbeat>strong{margin:1px 0;font-size:.82rem;line-height:1.15}
  .device-detail-panel:not(:has(.radar-history-page)):not(:has(.radar-detection-page)) .live-heartbeat>small{font-size:.55rem}
  .reorderable-panel>.event-heading{padding-right:110px}

  .device-detail-panel:has(.radar-history-page)>.drawer-header{min-height:0;padding:10px 18px}
  .device-detail-panel:has(.radar-history-page)>.drawer-header h2{margin:0 0 2px;font-size:1.05rem;line-height:1.15}
  .device-detail-panel:has(.radar-history-page)>.drawer-header p{margin:0;font-size:.62rem}
  .device-detail-panel:has(.radar-history-page)>.drawer-header .drawer-eyebrow{margin:0 0 1px;font-size:.5rem}
  .device-detail-panel:has(.radar-history-page) .live-heartbeat{min-width:220px;padding:7px 11px;border-radius:8px}
  .device-detail-panel:has(.radar-history-page) .live-heartbeat>span{font-size:.49rem}
  .device-detail-panel:has(.radar-history-page) .live-heartbeat>strong{margin:1px 0;font-size:.82rem;line-height:1.15}
  .device-detail-panel:has(.radar-history-page) .live-heartbeat>small{font-size:.55rem}
}

.heartbeat-tools{display:flex;align-items:stretch;gap:12px;flex-wrap:wrap;justify-content:flex-end}.poll-boost-form{display:grid;grid-template-columns:auto auto auto;gap:7px 8px;align-items:end;padding:11px 12px;border:1px solid var(--border,#d8dee8);border-radius:9px;background:var(--surface,#fff);font-size:.7rem}.poll-boost-form>strong,.poll-boost-form>small{grid-column:1/-1}.poll-boost-form label{display:grid;gap:3px;color:var(--muted,#667085)}.poll-boost-form select,.poll-boost-form button{min-height:32px;border:1px solid var(--border,#ccd4df);border-radius:6px;background:var(--surface,#fff);color:inherit;padding:0 8px}.poll-boost-form button{font-weight:750;cursor:pointer}.poll-boost-form.active{border-color:#dc9b23;background:#fff8df}.poll-boost-form.active>small{color:#8b5b00;font-weight:750}.arduino-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.arduino-heading h3{margin-bottom:4px}.arduino-heading p{margin:0;color:var(--muted,#667085)}.arduino-led-controls{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.arduino-led-controls button{padding:8px 11px;border:1px solid var(--border,#ccd4df);border-radius:7px;background:var(--surface,#fff);color:inherit;cursor:pointer;text-transform:capitalize}.arduino-led-controls button:hover:not(:disabled){border-color:#477ed1;background:#edf5ff}.arduino-result{margin:12px 0 0;color:var(--muted,#667085);font-size:.76rem}@media(max-width:760px){.heartbeat-tools{width:100%;justify-content:stretch}.poll-boost-form{width:100%;grid-template-columns:1fr 1fr auto}.drawer-header{align-items:flex-start}}
.live-heartbeat .heartbeat-request{display:block;width:100%;margin-top:8px;padding:8px 0 0;border:0;border-top:1px solid currentColor;border-radius:0;background:transparent;color:inherit;font-family:inherit;font-size:.68rem;line-height:1.35;font-weight:750;text-align:left;text-decoration:none;cursor:pointer}.live-heartbeat .heartbeat-request:hover,.live-heartbeat .heartbeat-request:focus{text-decoration:none;opacity:.78}.history-event.request code{text-transform:capitalize}.history-event.request-requested>i{background:#d79a22}.history-event.request-executing>i{background:#3274cf;animation:pulse 1.2s infinite}.history-event.request-completed>i{background:#238353}.history-event.request-superseded>i{background:#8a94a3}.history-event.request-failed>i,.history-event.request-expired>i{background:#c74343}.request-history-focus{outline:3px solid rgba(56,126,209,.3);outline-offset:8px;border-radius:8px;transition:outline-color .5s}.history-event.request small{display:block;margin-top:3px}
.heartbeat-tools .poll-boost-form{order:1}.heartbeat-tools .live-heartbeat{order:2}

/* Keep the request link secondary to the heartbeat, including queued states. */
#live-heartbeat-request.heartbeat-request{font-size:.68rem!important;line-height:1.3!important;font-weight:750!important;margin-top:7px;padding-top:7px}

/* The boost controls should not dictate an unnecessarily tall header. */
.heartbeat-tools .poll-boost-form{gap:4px 8px;padding:8px 10px;font-size:.66rem}
.heartbeat-tools .poll-boost-form>strong{line-height:1.15}
.heartbeat-tools .poll-boost-form label{gap:2px}
.heartbeat-tools .poll-boost-form select,.heartbeat-tools .poll-boost-form button{min-height:29px}
.heartbeat-tools .poll-boost-form>small{line-height:1.2}

/* Live values update every second. Keep their geometry stable like an instrument panel. */
.heartbeat-tools{display:grid;grid-template-columns:minmax(350px,1.15fr) minmax(275px,.85fr);width:min(100%,660px);align-items:stretch}
.heartbeat-tools .poll-boost-form,.heartbeat-tools .live-heartbeat{box-sizing:border-box;width:100%;min-width:0;height:116px;align-self:stretch;overflow:visible}
.heartbeat-tools .poll-boost-form>small{display:block;min-height:1.2em;white-space:nowrap;font-variant-numeric:tabular-nums}
.heartbeat-tools .live-heartbeat>strong,.heartbeat-tools .live-heartbeat>small,.heartbeat-tools .heartbeat-request{font-variant-numeric:tabular-nums}
.heartbeat-tools .live-heartbeat>strong{display:block;min-height:1.2em;white-space:nowrap}
.heartbeat-tools .live-heartbeat>small{display:block;min-height:1em;white-space:nowrap}
.heartbeat-tools .heartbeat-request{box-sizing:border-box;min-height:2.5em;white-space:nowrap;overflow:visible}
@media(max-width:760px){.heartbeat-tools{display:grid;grid-template-columns:1fr;width:100%}.heartbeat-tools .poll-boost-form,.heartbeat-tools .live-heartbeat{height:116px}}

/* Reorder controls own the panel's top-right corner; content must stay outside it. */
.reorderable-panel>.arduino-heading{min-height:44px;padding-right:118px}.arduino-heading{align-items:flex-start;margin-bottom:18px}.arduino-heading h3{margin:0 0 4px;font-size:.8rem;letter-spacing:.01em}.arduino-heading p{font-size:.7rem;line-height:1.4}.arduino-panel .detail-grid{gap:10px!important}.arduino-panel .detail-item{min-width:0;padding:11px 13px;border:1px solid #dfe5ec;border-radius:8px;background:#f8fafc}.arduino-panel .detail-item dt{font-size:.64rem}.arduino-panel .detail-item dd{margin-top:3px;font-size:.73rem;line-height:1.35}.arduino-panel .detail-item:first-child dd{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.62rem}.arduino-control-group{margin-top:18px}.arduino-control-group>span{display:block;margin-bottom:8px;color:#637086;font-size:.65rem;font-weight:700;text-transform:uppercase}.arduino-led-controls{gap:6px;margin:0}.arduino-led-controls button{min-height:34px;padding:0 10px;border-radius:6px;background:#fff;font:inherit;font-size:.68rem;font-weight:650}.arduino-led-controls button.active{border-color:#3979d0;background:#eaf2fd;color:#245fae;box-shadow:inset 0 0 0 1px #3979d0}.arduino-result{margin-top:10px;font-size:.68rem}.arduino-panel .status-badge{flex:0 0 auto}html[data-theme="dark"] .arduino-panel .detail-item{border-color:#343e4c;background:#171d26}html[data-theme="dark"] .arduino-led-controls button{border-color:#3b4656;background:#222a36;color:#dbe3ee}html[data-theme="dark"] .arduino-led-controls button.active{border-color:#6099e5;background:#243753;color:#8ebaf4}@media(max-width:640px){.reorderable-panel>.arduino-heading{min-height:40px;padding-right:104px}.arduino-panel .detail-grid{grid-template-columns:1fr}.arduino-heading p{max-width:220px}}

/* Preserve configured values while making stale hardware readings explicit. */
.status-badge.unknown{background:#eef0f3;color:#697586}
.status-badge.unknown i{background:#8993a2}
.radar-power-switch.readings-stale{filter:grayscale(1);opacity:.65;cursor:not-allowed}
.radar-section.readings-stale .radar-plot,.radar-section.readings-stale .radar-table-wrap{filter:grayscale(1);opacity:.6}

.radar-automation{margin:0 0 22px;padding:16px 18px;border:1px solid var(--border,#d8e0eb);border-radius:12px;background:var(--surface,#f8fafd);display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px}.radar-automation strong{font-size:14px}.radar-automation p{font-size:12px;color:var(--muted,#7c899c);margin:4px 0 0}.radar-automation-switches{display:flex;flex-wrap:wrap;gap:10px;margin-left:auto}.radar-automation .radar-automation-message{flex-basis:100%;margin:0}.radar-automation button:disabled{opacity:.5;cursor:not-allowed}@media(max-width:700px){.radar-automation-switches{margin-left:0;width:100%}}
.capture-mode-selector{display:inline-flex;padding:3px;border:1px solid #b8c5d4;border-radius:999px;background:#fff;font:inherit;font-size:.55rem;font-weight:800;cursor:pointer}.capture-mode-selector span{padding:5px 10px;border-radius:999px;color:#65758a}.capture-mode-selector .active{color:#fff}.capture-mode-selector .active.video{background:#2878d0}.capture-mode-selector .active.burst{background:#20a55a}html[data-theme="dark"] .capture-mode-selector{border-color:#526071;background:#202731}.capture-mode-selector:focus-visible{outline:2px solid #2878d0;outline-offset:2px}
html[data-theme="dark"] .radar-automation{background:#202731;border-color:#384554}

.radar-multiple-filter{display:flex;align-items:center;gap:10px;padding:12px 0 20px;font-size:.8rem;font-weight:600;cursor:pointer}.radar-multiple-filter input{width:18px;height:18px;accent-color:#315f97}

.nano-light-controls{margin:18px 0;padding:16px;border:1px solid var(--border,#dfe5ec);border-radius:9px;background:var(--surface,#fff)}
.nano-light-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.nano-light-actions button{min-height:38px;padding:8px 13px;border:1px solid var(--border,#ccd4df);border-radius:7px;background:var(--surface,#fff);color:inherit;font:inherit;font-size:.73rem;font-weight:700;cursor:pointer}.nano-light-actions button:disabled{opacity:.5;cursor:default}.nano-light-actions .nano-test-lights{background:#245fae;border-color:#245fae;color:#fff}.nano-status-switch{display:inline-flex;align-items:center;gap:9px}.nano-status-switch>span{width:32px;height:19px;border-radius:15px;background:#a5afbe;position:relative}.nano-status-switch i{position:absolute;top:3px;left:3px;width:13px;height:13px;border-radius:50%;background:#fff;transition:transform .15s}.nano-status-switch.active>span{background:#239452}.nano-status-switch.active i{transform:translateX(13px)}.nano-light-note,.nano-control-result,.nano-cars-note,.nano-cars-empty{color:var(--muted,#637086);font-size:.7rem;line-height:1.5}.nano-light-note{margin:10px 0 0}.nano-control-result:empty{display:none}.nano-cars h4{margin:0;font-size:.78rem}.nano-cars-note{margin:5px 0 10px}.nano-current-cars{display:flex;flex-wrap:wrap;gap:8px;min-height:36px;align-items:center}.nano-car-number{padding:7px 14px;border-radius:7px;border:1px solid #a8d6bb;background:#edf9f1;color:#177a42;font-size:1rem;font-weight:800}.nano-cars .nano-history-heading{margin-top:18px}.nano-car-history{list-style:none;padding:0;margin:10px 0 18px;display:grid;grid-template-columns:repeat(auto-fit,minmax(80px,1fr));gap:8px}.nano-car-history li{padding:9px 12px;border:1px solid var(--border,#dfe5ec);border-radius:7px;background:var(--surface,#fff)}.nano-car-history strong{display:block;font-size:.8rem}.nano-car-history time{display:block;margin-top:4px;font-size:.65rem;color:var(--muted,#637086);font-variant-numeric:tabular-nums}html[data-theme="dark"] .nano-car-number{background:#1b3427;border-color:#315e44;color:#8de0ac}

.speed-graph svg{max-height:490px}.distance-track polyline{fill:none;stroke:var(--target-color);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.distance-track circle{fill:var(--target-color);stroke:#fff;stroke-width:1}

.graph-threshold line{stroke:#ad6500;stroke-width:1.8;stroke-dasharray:7 5}.graph-threshold text{fill:#925600;font-size:12px;font-weight:700;paint-order:stroke;stroke:#fff;stroke-width:3px;stroke-linejoin:round}html[data-theme="dark"] .graph-threshold line{stroke:#f1b454}html[data-theme="dark"] .graph-threshold text{fill:#f1b454;stroke:#171d26}

.zone-entry line{stroke:#ad6500;stroke-width:2;stroke-dasharray:5 4}.zone-entry text{fill:#925600;font-size:11px;font-weight:700;paint-order:stroke;stroke:#fff;stroke-width:3px}html[data-theme="dark"] .zone-entry line{stroke:#f1b454}html[data-theme="dark"] .zone-entry text{fill:#f1b454;stroke:#171d26}

.target-context-muted{opacity:.5}.target-pill.lamp-context.selected{border-color:#315f97;background:#315f97;color:#fff}.lamp-context-note{color:#718095;font-size:.6rem;margin:6px 0 10px}

.lamp-decisions-view [data-lamp-use="other"],.lamp-decisions-view [data-lamp-use="unknown"]{opacity:.5}

.detection-navigation{display:flex;justify-content:space-between;gap:12px;margin-bottom:16px}.detection-navigation button{font-size:.7rem}.detection-navigation button:disabled{opacity:.45;cursor:default}.radar-detection-page .radar-history-item>.speed-graph{margin:14px 0}.radar-detection-page .radar-capture-grid{grid-row:2}
@media(max-width:900px){.radar-detection-page .radar-capture-grid{grid-row:auto}}

.speed-track .graph-away,.distance-track .graph-away{opacity:.5!important}.speed-track polyline.graph-away,.distance-track polyline.graph-away{stroke:#8793a2!important;stroke-width:1.5}.speed-track polygon.graph-away,.distance-track polygon.graph-away{fill:#8793a2;stroke:none}.graph-direction-legend{margin:2px 0 7px}html[data-theme="dark"] .speed-track polyline.graph-away,html[data-theme="dark"] .distance-track polyline.graph-away{stroke:#a6b2c1!important}html[data-theme="dark"] .speed-track polygon.graph-away,html[data-theme="dark"] .distance-track polygon.graph-away{fill:#a6b2c1}

.speed-grid .graph-panel-title{fill:#243147;font-size:14px;font-weight:700}.speed-grid .graph-panel-unit{fill:#718095;font-size:12px;font-weight:400}html[data-theme="dark"] .speed-grid .graph-panel-title{fill:#e3e9f2}html[data-theme="dark"] .speed-grid .graph-panel-unit{fill:#9aa8b9}

.speed-graph svg{max-height:none}.lora-timeline .graph-panel-title{fill:#243147;font-size:14px;font-weight:700}.lora-timeline .graph-panel-unit{fill:#718095;font-size:12px;font-weight:400}.lora-car-label{fill:#315f97;font-size:11px;font-weight:700}.lora-row-guide{stroke:#e1e7ee;stroke-width:1}.lora-recent-band{fill:#315f97;opacity:.22}.lora-receipt-tick{stroke:#315f97;stroke-width:1.5}html[data-theme="dark"] .lora-timeline .graph-panel-title{fill:#e3e9f2}html[data-theme="dark"] .lora-timeline .graph-panel-unit{fill:#9aa8b9}html[data-theme="dark"] .lora-car-label{fill:#8fb9ec}html[data-theme="dark"] .lora-row-guide{stroke:#303a47}html[data-theme="dark"] .lora-recent-band{fill:#8fb9ec}html[data-theme="dark"] .lora-receipt-tick{stroke:#8fb9ec}

.radar-video-card>.radar-video-frame{position:relative;width:100%;background:#000;min-height:0;display:block;padding:0}.radar-video-frame video{display:block;width:100%;height:auto}.radar-video-overlay{position:absolute;inset:10px 10px auto;display:flex;justify-content:space-between;align-items:flex-start;gap:8px;pointer-events:none;color:#fff;font-size:clamp(10px,1.1vw,16px);font-weight:750;font-variant-numeric:tabular-nums}.radar-video-overlay time,.video-lamp-badge{padding:5px 8px;border-radius:4px;background:#000a}.video-lamp-badge{white-space:nowrap}.video-lamp-badge[data-light="amber"]{background:#f5a623;color:#191b20}.video-lamp-badge[data-light="green"]{background:#16a060;color:#fff}.video-lamp-badge[data-light="off"]{background:#293241;color:#fff}.radar-video-card>.video-export-actions{display:flex;flex-wrap:wrap;gap:8px;padding:8px 10px;min-height:0}.video-export-actions button{font-size:.75rem}

.video-speed-overlay{position:absolute;left:0;top:42px;max-width:100%;padding:5px 8px;border-radius:4px;background:#000a;white-space:pre-line;text-align:left}.radar-video-overlay [hidden]{display:none}

.lora-seconds-grid line{stroke:#d7dfe9;stroke-width:.7;stroke-dasharray:2 3}.lora-seconds-grid text{fill:#718095;font-size:10px}.lora-receipt-label{fill:#315f97;font-size:11px;font-weight:700;paint-order:stroke;stroke:#fff;stroke-width:3px;stroke-linejoin:round}html[data-theme="dark"] .lora-seconds-grid line{stroke:#3d4857}html[data-theme="dark"] .lora-seconds-grid text{fill:#9aa8b9}html[data-theme="dark"] .lora-receipt-label{fill:#8fb9ec;stroke:#171d26}
