/* Presentation only. Collection, states, thresholds and saved order are unchanged. */
:root{--ink:#182c44;--muted:#63768b;--edge:#e1e8f0;--accent:#087fa3;font-family:'Segoe UI',system-ui,sans-serif;color:var(--ink);background:#f4f7fb}
body{color:var(--ink)}button,input,select{border-radius:8px}button{transition:background .15s,border-color .15s}button:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #49b8d980;outline-offset:3px}button.primary{background:#087fa3;border-color:#087fa3;box-shadow:0 2px 4px #087fa315}button.primary:hover{background:#066d8e}h1{font-size:26px;font-weight:700;letter-spacing:-.65px}h2{font-size:18px}header{height:auto;min-height:94px;padding:20px 28px;align-items:center}header h1{margin-bottom:3px}header small{font-size:12px;color:var(--muted)}main{padding:22px 28px}.muted,small{color:var(--muted)}.panel{border-color:var(--edge);border-radius:12px;box-shadow:0 2px 5px #142d4803}.breadcrumb{font-size:11px;color:#728398;letter-spacing:.15px;margin-bottom:12px}.side-nav button{border-radius:9px;font-size:13px;padding:12px 13px}.side-nav button.active{box-shadow:inset 3px 0 #52c6e1;background:#1c3855}.nav-icon{vertical-align:middle;width:27px}.ui-icon{display:inline-block;width:17px;height:17px;vertical-align:middle;flex:none}.brand{font-size:28px}.brand-note{font-size:9px;letter-spacing:2px}.side-footer{font-size:10px;color:#90a9c3;line-height:1.9}
.live-context{display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:11px;color:#60758a;margin-top:8px}.live-context .live-dot{width:6px;height:6px;border-radius:50%;background:#2a9c72;box-shadow:0 0 0 3px #2a9c7210;margin-right:3px}.live-context[data-level=warning]{color:#946816}.live-context[data-level=warning] .live-dot{background:#c78b20;box-shadow:0 0 0 3px #c78b2010}.live-context[data-level=error]{color:#b63b4d}.live-context[data-level=error] .live-dot{background:#d44258;box-shadow:0 0 0 3px #d4425810}.context-separator{color:#b0bdc9;margin:0 3px}
#overview>.toolbar{flex-wrap:nowrap;gap:9px;margin-bottom:17px}#overview>.toolbar>button{height:40px;white-space:nowrap;font-size:12px}#overview #poll{background:white;border-color:#dae3ec;box-shadow:none;color:#415971}#overview #addSensor{order:5;padding:0 16px}.overview-search{display:flex;align-items:center;flex:1;min-width:160px;position:relative}.overview-search>.ui-icon{position:absolute;left:13px;color:#8597a9;pointer-events:none}#overview #search{width:100%;min-width:0;height:42px;padding:10px 14px 10px 39px;font-size:13px;background:white;box-shadow:0 1px 2px #142d4803;border-color:#dce5ee}#overview #search::placeholder{color:#8a9aab}.display-menu{position:relative;flex:none;font-size:12px}.display-menu>summary{display:flex;align-items:center;gap:7px;cursor:pointer;list-style:none;border:1px solid #dae3ec;border-radius:8px;height:40px;padding:0 12px;background:white;color:#415971}.display-menu summary::-webkit-details-marker{display:none}.display-menu-content{position:absolute;right:0;top:46px;z-index:40;background:white;border:1px solid var(--edge);border-radius:10px;padding:5px;min-width:150px;box-shadow:0 8px 25px #19334e14}.display-menu-content button{display:block;width:100%;text-align:left;border:0;background:white;font-size:12px;padding:9px 12px}
#overview #counts{display:grid;grid-template-columns:repeat(7,minmax(94px,1fr));gap:8px;overflow-x:auto;margin-bottom:20px;padding:2px 1px 3px}#counts .counter{min-width:0;display:grid;grid-template-columns:25px auto;grid-template-rows:24px 17px;column-gap:7px;align-items:center;padding:11px 12px;border:1px solid var(--edge);border-radius:10px;background:white;color:#485f75;box-shadow:0 1px 2px #142d4803;position:relative}#counts .counter .summary-icon{grid-row:1/3;color:#8a9bad;display:flex;align-items:center}#counts .counter .summary-count{font-size:23px;line-height:1;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums;letter-spacing:-.6px}#counts .counter .summary-label{font-size:11px;color:#718397;white-space:nowrap}#counts .counter.active{border-color:#55a9c2;box-shadow:0 0 0 1px #55a9c230;background:#f8fcfe}#counts .counter[data-filter=up] .summary-icon{color:#38966f}#counts .counter[data-zero=true]:not(.active) .summary-count{color:#8b9bab}#counts .counter[data-attention=down]{background:#fff4f5;border-color:#efbcc4}#counts .counter[data-attention=down] .summary-icon,#counts .counter[data-attention=down] .summary-count{color:#ce3f55}#counts .counter[data-attention=warning]{background:#fffbf0;border-color:#ebd398}#counts .counter[data-attention=warning] .summary-icon,#counts .counter[data-attention=warning] .summary-count{color:#b47d15}#counts .counter.active:after{content:'';position:absolute;bottom:0;left:22%;right:22%;height:2px;background:#1784a5;border-radius:2px}
#overview #tree{border-radius:12px;overflow:visible}#overview .group-title{list-style:none;display:flex;align-items:center;gap:9px;padding:12px 16px;background:#f8fafc;border-bottom:1px solid var(--edge);font-size:13px;font-weight:650;color:#344d65}#overview .group-title::-webkit-details-marker{display:none}#overview .group-title .ui-icon{width:14px;height:14px;color:#7e92a6;transition:transform .15s}#overview details[data-group]:not([open])>.group-title>.ui-icon{transform:rotate(-90deg)}#overview .group-title small{font-size:11px;font-weight:400}
#overview .device-row,#overview .device-row.device-minimized{display:block;grid-template-columns:none;border-top:1px solid var(--edge);background:white}#overview .device-row:first-of-type{border-top:0}#overview .device-title,#overview .device-row.device-minimized .device-title{display:flex;align-items:center;gap:10px;padding:12px 16px;position:relative;cursor:default!important}#overview .device-heading-toggle{display:flex;align-items:center;gap:11px;flex:1;min-width:0;padding:0;border:0;background:transparent;text-align:left;box-shadow:none}#overview .device-heading-toggle:hover{background:transparent}#overview .device-chevron{width:16px;height:16px;color:#7e91a5;transition:transform .15s;flex:none}#overview .device-minimized .device-chevron{transform:rotate(-90deg)}#overview .device-header-content{display:flex;align-items:center;gap:7px 13px;flex-wrap:wrap;min-width:0}#overview .device-header-content strong{font-size:13px;color:#243c55;font-weight:650;overflow-wrap:anywhere}#overview .device-header-ip{font-size:11px;line-height:1.6;color:#71859b;font-variant-numeric:tabular-nums}#overview .device-meta-model{font-size:10px;color:#8192a4;max-width:280px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#overview .device-sensor-count{font-size:10px;padding:3px 7px;background:#f2f5f9;border:1px solid #e8edf3;border-radius:5px;color:#687d92;white-space:nowrap}#overview .device-row.device-minimized .device-meta-model,#overview .device-row.device-minimized .device-sensor-count{display:none}#overview .device-row.device-minimized .device-heading-toggle{display:flex}
.device-actions{position:relative;margin-left:auto;flex:none}.device-actions>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:center;width:30px;height:30px;border:1px solid transparent;border-radius:7px;color:#8091a3}.device-actions>summary::-webkit-details-marker{display:none}.device-actions>summary:hover,.device-actions[open]>summary{background:#f1f6fa;border-color:#e0e8ef}.device-menu{position:absolute;right:0;top:34px;z-index:35;min-width:165px;background:white;border:1px solid var(--edge);border-radius:9px;box-shadow:0 8px 25px #19334e14;padding:5px}.device-menu button,#overview .device-row.device-minimized .device-title .device-menu button{display:flex;align-items:center;gap:9px;width:100%;border:0;margin:0!important;text-align:left;font-size:12px!important;padding:9px 10px;color:#415970}.device-menu .ui-icon{width:15px;height:15px}
#overview .sensor-grid{padding:0 16px 15px 43px;grid-template-columns:repeat(auto-fill,minmax(168px,1fr));gap:9px}#overview .sensor{position:relative;display:flex;flex-direction:column;justify-content:center;min-height:87px;padding:11px 12px;border:1px solid #e0e7ef;border-radius:9px;box-shadow:0 1px 2px #17345404;background:#fff;overflow:hidden}#overview .sensor:hover{border-color:#9ebed0;background:#fbfdff;box-shadow:0 3px 9px #17345408}#overview .sensor-name{font-size:10px;font-weight:500;color:#677c91;margin-bottom:9px;line-height:1.3}#overview .sensor-bottom{margin:0;gap:6px;align-items:center;min-width:0}#overview .sensor-value{font-size:21px;font-weight:650;color:#213a54;line-height:1.2;letter-spacing:-.4px;font-variant-numeric:tabular-nums;white-space:nowrap}#overview .sensor-value .measurement-unit{font-size:10px;font-weight:450;letter-spacing:0;color:#7b8ea1;margin-left:3px}#overview .sensor-value.measurement-text{font-size:14px;letter-spacing:0}#overview .sensor-value.measurement-duration{font-size:16px;letter-spacing:-.2px}#overview .sensor .dot{width:6px;height:6px;flex:none;background:var(--s)}#overview .sensor-status{font-size:8px;font-weight:650;letter-spacing:.4px}#overview .sensor[data-health=up] .sensor-status{display:none}#overview .sensor[data-health=down]{border-left:3px solid #d94c61;background:#fff5f6;border-color:#e9c4cb}#overview .sensor[data-health=warning]{border-left:3px solid #c79835;background:#fffcf3;border-color:#e9d9b5}#overview .sensor[data-health=down] .sensor-value{color:#b9394f}#overview .sensor[data-health=warning] .sensor-value{color:#996c19}#overview .sensor[data-health=paused],#overview .sensor[data-health=disabled],#overview .sensor[data-health=unknown]{background:#fafbfc}#overview .sensor[data-health=unknown] .sensor-value{color:#73849a}#overview .sensor.has-trend{padding-right:55px}#overview .sensor-trend{position:absolute;right:9px;bottom:15px;width:42px;height:24px;opacity:.72;pointer-events:none}#overview .sensor.has-trend .sensor-status{position:absolute;right:9px;top:10px}#overview .sensor.has-trend .sensor-value{font-size:19px}
@media(min-width:1500px){#overview .sensor-grid{grid-template-columns:repeat(auto-fill,minmax(175px,1fr))}}@media(max-width:1050px){#counts .counter{grid-template-columns:18px auto;padding:10px 8px;column-gap:5px}#counts .counter .summary-count{font-size:21px}#counts .counter .summary-icon .ui-icon{width:15px;height:15px}#overview .device-meta-model{max-width:180px}#overview .sensor-grid{grid-template-columns:repeat(auto-fill,minmax(155px,1fr))}}@media(max-width:700px){header{padding:16px;min-height:86px}header h1{font-size:23px}main{padding:16px}#overview>.toolbar{flex-wrap:wrap}.overview-search{flex-basis:100%}#overview #counts{grid-template-columns:repeat(7,104px)}#overview .device-title{padding:11px 12px}#overview .device-header-content{gap:5px 9px}#overview .device-meta-model{max-width:200px}#overview .sensor-grid{padding:0 12px 12px;grid-template-columns:repeat(auto-fill,minmax(142px,1fr))}#overview .sensor{min-height:84px}#overview .sensor-value{font-size:19px}.live-context{font-size:10px}}

#overview .sensor.has-trend{padding-right:12px}#overview .sensor[data-kind=traffic].has-trend .measurement-unit{display:block;margin-left:0;margin-top:2px}#overview .sensor-trend{bottom:10px;height:18px}#overview .sensor{min-height:92px}
#overview .sensor[data-health=down]{border-left-color:#d94c61}#overview .sensor[data-health=warning]{border-left-color:#c79835}#overview .sensor[data-health=unknown] .sensor-trend{color:#8c9aaa!important;opacity:.45}
/* Keep every summary's status identity visible, including zero counts. */
#counts .counter[data-filter=all]{--summary-color:#087fa3}#counts .counter[data-filter=up]{--summary-color:#38966f}#counts .counter[data-filter=down]{--summary-color:#d23d54}#counts .counter[data-filter=warning]{--summary-color:#b98008}#counts .counter[data-filter=paused]{--summary-color:#397fc0}#counts .counter[data-filter=unknown]{--summary-color:#748399}#counts .counter[data-filter=disabled]{--summary-color:#63748b}
#counts .counter[data-filter]{border-top:3px solid var(--summary-color)}#counts .counter[data-filter] .summary-icon,#counts .counter[data-filter] .summary-count,#counts .counter[data-filter] .summary-label{color:var(--summary-color)}#counts .counter[data-filter=down]{background:#fff7f8}#counts .counter[data-filter=warning]{background:#fffbee}#counts .counter[data-filter].active{border-color:var(--summary-color)}#counts .counter[data-filter].active:after{background:var(--summary-color)}#counts .counter[data-attention=down]{background:#ffe9ed;border-color:#e492a0;border-top-color:#d23d54}#counts .counter[data-attention=warning]{background:#fff3cc;border-color:#dfc36a;border-top-color:#b98008}
#counts .counter[data-filter][data-zero=true]:not(.active) .summary-count{color:var(--summary-color)}#counts .counter[data-filter=warning]{border-top-color:#e1b42e}#counts .counter[data-filter=warning] .summary-icon{color:#c89b16}
/* Restore the familiar state stripe on every sensor card. */
#overview .sensor[data-health]{border-left:4px solid var(--s)}#overview .sensor[data-health]:hover{border-left-color:var(--s)}
/* Dense operations layout for larger inventories. */
#overview .sensor-grid{grid-template-columns:repeat(auto-fill,minmax(148px,1fr));gap:6px;padding:0 12px 10px 35px}
#overview .sensor,#overview .sensor.has-trend{min-height:64px;height:64px;padding:8px 9px 17px;justify-content:center;border-radius:7px}
#overview .sensor-name{font-size:10px;margin-bottom:5px;line-height:1.25}
#overview .sensor-value,#overview .sensor.has-trend .sensor-value{font-size:16px;line-height:1.2;letter-spacing:-.25px}
#overview .sensor-value .measurement-unit,#overview .sensor[data-kind=traffic].has-trend .measurement-unit{display:inline;font-size:9px;margin:0 0 0 3px;letter-spacing:0}
#overview .sensor-value.measurement-text{font-size:12px}#overview .sensor-value.measurement-duration{font-size:13px}
#overview .sensor .dot{width:5px;height:5px}#overview .sensor-bottom{gap:4px}
#overview .sensor-trend{width:31px;height:12px;right:7px;bottom:6px;opacity:.58}
#overview .sensor.has-trend{padding-bottom:17px}#overview .sensor.has-trend .sensor-status{top:auto;bottom:6px;right:43px;font-size:7px}
#overview .device-title,#overview .device-row.device-minimized .device-title{padding:9px 12px;gap:8px}
#overview .device-header-content{gap:5px 10px}#overview .device-header-content strong{font-size:12px}
#overview .group-title{padding:10px 12px}
@media(min-width:1500px){#overview .sensor-grid{grid-template-columns:repeat(auto-fill,minmax(155px,1fr))}}
@media(max-width:1050px){#overview .sensor-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}}
@media(max-width:700px){#overview .sensor-grid{padding:0 10px 10px;grid-template-columns:repeat(auto-fill,minmax(138px,1fr))}#overview .sensor,#overview .sensor.has-trend{min-height:64px}}

#overview .sensor-status{position:absolute;right:8px;bottom:6px;font-size:7px}
/* Extra compact cards, with a reserved lane for the optional trend. */
#deviceDialog{max-height:90vh;overflow-y:auto}#deviceForm .actions{flex-wrap:wrap}#testDeviceSnmp{margin-right:auto}#testDeviceSnmp:disabled{opacity:.65;cursor:wait}.snmp-test-result{font-size:12px;line-height:1.6;padding:10px 12px;margin-top:16px;border:1px solid #dce5ee;border-radius:8px;background:#f6f9fc;color:#526b82;overflow-wrap:anywhere}.snmp-test-result[data-status=success]{background:#effaf3;border-color:#badfc8;color:#207548}.snmp-test-result[data-status=failed]{background:#fff1f3;border-color:#e9bac3;color:#b4374c}
.inventory-device{display:flex;align-items:center;gap:10px;min-width:190px;max-width:290px}.inventory-device-name{font-weight:550;color:#243c55;overflow-wrap:anywhere}.vendor-logo{display:inline-flex;align-items:center;justify-content:center;flex:none;width:40px;height:32px;padding:3px;border:1px solid #e4eaf1;border-radius:7px;background:#fff;vertical-align:middle}.vendor-logo svg{width:32px;height:26px;display:block}.vendor-logo .ui-icon{width:20px;height:20px;color:#8797a8}.vendor-logo-small{width:31px;height:22px;padding:1px 3px;border-radius:5px}.vendor-logo-small svg{width:25px;height:20px}.vendor-logo-small .ui-icon{width:15px;height:15px}.vendor-wordmark{font-size:10px;font-weight:700;letter-spacing:.5px;color:#008567}
#overview .sensor-grid{grid-template-columns:repeat(auto-fill,minmax(136px,1fr));gap:5px}
#overview .sensor,#overview .sensor.has-trend{height:56px;min-height:56px;padding:6px 8px 14px;border-radius:6px}
#overview .sensor-name{font-size:9px;margin-bottom:4px}
#overview .sensor-value,#overview .sensor.has-trend .sensor-value{font-size:14px}
#overview .sensor-value.measurement-text{font-size:11px}#overview .sensor-value.measurement-duration{font-size:12px}
#overview .sensor-trend{width:27px;height:10px;bottom:4px;right:6px}#overview .sensor-status{bottom:4px}#overview .sensor.has-trend .sensor-status{bottom:4px;right:38px}
@media(min-width:1500px){#overview .sensor-grid{grid-template-columns:repeat(auto-fill,minmax(142px,1fr))}}
@media(max-width:1050px){#overview .sensor-grid{grid-template-columns:repeat(auto-fill,minmax(130px,1fr))}}
@media(max-width:700px){#overview .sensor-grid{grid-template-columns:repeat(auto-fill,minmax(130px,1fr))}#overview .sensor,#overview .sensor.has-trend{height:56px;min-height:56px}}
/* Emphasize the interface description rather than the changing reading. */
.vendor-logo img{display:block;max-width:100%;height:24px;object-fit:contain}.vendor-logo[data-vendor=mtlink],.vendor-logo[data-vendor=arista],.vendor-logo[data-vendor=vsol]{width:58px;padding:4px}.vendor-logo-small[data-vendor=mtlink],.vendor-logo-small[data-vendor=arista],.vendor-logo-small[data-vendor=vsol]{width:46px}.vendor-logo-small img{height:18px}.vendor-logo[data-vendor=arista]{background:#16325b;border-color:#16325b}
.customer-access-link{display:block;color:#b4c5dc;text-decoration:none;padding:12px 14px;margin:6px 0;font-size:13px;border-radius:6px}.customer-access-link:hover{color:white;background:#203c5b}
.inventory-group{display:flex;align-items:center;gap:9px;margin:0;font-size:12px;color:#415970}.inventory-group select{width:auto;max-width:300px;font-size:12px;padding:8px 10px}.group-edit-note{font-size:12px;line-height:1.6;margin:14px 0 0}#editGroupDialog{max-height:90vh;overflow:auto}@media(max-width:600px){.inventory-group{width:100%}.inventory-group select{flex:1;max-width:none}}
#overview .sensor .sensor-name{font-weight:700;color:#243c55}
#overview .sensor .sensor-value,#overview .sensor.has-trend .sensor-value{font-weight:400}
.inventory-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 16px;border-top:1px solid var(--edge);font-size:12px;color:#687d92;background:#fbfcfe}.inventory-page-controls{display:flex;align-items:center;gap:9px}.inventory-page-controls button{font-size:12px;padding:7px 10px}.inventory-page-controls button:disabled{opacity:.4;cursor:default}.inventory-page-controls label{display:flex;align-items:center;gap:7px;margin:0;font-size:12px}.inventory-page-controls select{width:auto;min-width:52px;padding:6px 8px;font-size:12px}.inventory-page-controls>label>span{white-space:nowrap}@media(max-width:600px){.inventory-pagination{justify-content:center}.inventory-page-controls{gap:6px}}
.inventory-tools{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:12px 16px;border-bottom:1px solid var(--edge);background:#fff}.inventory-show{display:flex;align-items:center;gap:9px;margin:0;color:#415970;font-size:12px;white-space:nowrap}.inventory-show select{width:auto;min-width:76px;font-size:12px;font-weight:600;padding:8px 10px}.inventory-show>span{color:#7e90a3}.inventory-filter{display:flex;align-items:center;gap:8px;min-width:220px;max-width:430px;flex:1;border:1px solid #dce5ee;border-radius:8px;padding:0 9px;background:white}.inventory-filter>.ui-icon{color:#8597a9;width:16px;height:16px}.inventory-filter input{width:100%;min-width:0;padding:9px 0;border:0;background:transparent;font-size:12px;outline:none}.inventory-filter:focus-within{border-color:#55a9c2;box-shadow:0 0 0 2px #55a9c214}.inventory-filter button{font-size:11px;border:0;padding:5px 6px;color:#687d92}.inventory-filter button:disabled{opacity:.35;cursor:default}@media(max-width:600px){.inventory-filter{flex-basis:100%;max-width:none}}

/* Responsive operational pages and shared display preferences. */
.screen-header-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.screen-display-settings{position:relative;font-size:12px;color:#304d67;z-index:90}
.screen-display-settings>summary{cursor:pointer;list-style:none;padding:10px 13px;border:1px solid #ccd9e5;border-radius:8px;background:white;white-space:nowrap;color:#304d67}
.screen-display-settings>summary::-webkit-details-marker{display:none}
.screen-display-panel{position:absolute;right:0;top:calc(100% + 8px);width:260px;max-width:calc(100vw - 30px);padding:18px;border:1px solid #dce5ee;border-radius:10px;background:white;box-shadow:0 10px 35px #10213725;color:#304d67}
.screen-display-panel>strong{font-size:14px}.screen-display-panel label{display:block;font-size:12px;margin:12px 0 0;color:#61788d}
.screen-display-panel select{display:block;width:100%;margin:5px 0 0;padding:8px;font-size:13px;background:white;color:#304d67}
.screen-display-panel p{font-size:11px;line-height:1.6;color:#71849a;margin:14px 0}.screen-display-panel button{font-size:12px}
body[data-screen-layout=full]:not(.topology-page) main{width:100%;max-width:none;margin:0;padding-left:24px;padding-right:24px}
body[data-screen-layout=centered]:not(.topology-page) main{width:100%;max-width:1800px;margin:0 auto}
body[data-screen-layout] #shell>div{min-width:0}
body[data-screen-layout] #overview .sensor-grid{grid-template-columns:repeat(auto-fill,minmax(var(--screen-card-width,160px),1fr));gap:7px}
body[data-screen-layout] #overview .sensor,body[data-screen-layout] #overview .sensor.has-trend{height:auto;min-height:var(--screen-card-height,68px);padding:var(--screen-card-pad,9px) 11px}
body[data-screen-layout] #overview .sensor-name{font-size:calc(var(--screen-name,12px)*var(--screen-text,1));font-weight:700;line-height:1.4}
body[data-screen-layout] #overview .sensor-value{font-size:calc(var(--screen-value,14px)*var(--screen-text,1));font-weight:450}
body[data-screen-layout] #overview .device-name{font-size:calc(14px*var(--screen-text,1))}
body[data-screen-layout] table{font-size:calc(12px*var(--screen-text,1))}
body[data-screen-layout] td{font-size:calc(12px*var(--screen-text,1));padding:var(--screen-row-pad,12px) 15px}
body[data-screen-layout] th{font-size:calc(10px*var(--screen-text,1))}
body[data-screen-layout] #deviceTable,body[data-screen-layout] #alarmTable,body[data-screen-layout] #auditTable,body.screen-customer .table-wrap{max-height:70dvh;overflow:auto;scrollbar-gutter:stable}
body[data-screen-layout] #deviceTable th,body[data-screen-layout] #alarmTable th,body[data-screen-layout] #auditTable th,body.screen-customer .table-wrap th{position:sticky;top:0;z-index:2;background:#f8fafc;box-shadow:0 1px #dce5ee}
body[data-screen-layout] #alarmTable td{overflow-wrap:anywhere;min-width:100px}
body[data-screen-layout] #alarmTable td:nth-child(5){min-width:260px;max-width:650px;line-height:1.6}
body[data-screen-layout] #auditTable td{overflow-wrap:anywhere;line-height:1.6}
body[data-screen-layout] #detail .graph-wrap{width:100%}
body[data-screen-density=compact]{--screen-card-width:142px;--screen-card-height:56px;--screen-card-pad:7px;--screen-name:11px;--screen-value:13px;--screen-row-pad:9px}
body[data-screen-density=comfortable]{--screen-card-width:195px;--screen-card-height:86px;--screen-card-pad:12px;--screen-name:14px;--screen-value:17px;--screen-row-pad:16px}
body[data-screen-text='115']{--screen-card-width:185px}
body[data-screen-text='130']{--screen-card-width:210px}
body.screen-customer[data-screen-layout] .columns{grid-template-columns:minmax(320px,1fr) minmax(320px,1fr)}
body.screen-customer[data-screen-layout] form{max-width:820px}
body.screen-customer[data-screen-layout] .help{max-width:700px}
body.screen-customer[data-screen-layout] header{padding-left:24px;padding-right:24px}
@media(max-width:760px){body[data-screen-layout=full]:not(.topology-page) main{padding-left:12px;padding-right:12px}.screen-header-actions{gap:6px}body.screen-customer[data-screen-layout] .columns{grid-template-columns:minmax(0,1fr)}body[data-screen-layout] #overview .sensor-grid{padding-left:12px;grid-template-columns:repeat(auto-fill,minmax(min(100%,var(--screen-card-width,160px)),1fr))}header{flex-wrap:wrap;gap:10px}}

body[data-screen-layout] #overview .sensor-value .measurement-unit{font-size:calc(10px*var(--screen-text,1))}
body[data-screen-layout] #overview .device-meta,body[data-screen-layout] #overview .device-meta-model,body[data-screen-layout] #overview .device-meta-ip{font-size:calc(11px*var(--screen-text,1))}
body[data-screen-layout] main input,body[data-screen-layout] main select,body[data-screen-layout] main button{font-size:calc(12px*var(--screen-text,1))}
body[data-screen-layout]:not(.topology-page) #pageTitle{font-size:calc(26px*var(--screen-text,1))}
body[data-screen-layout] main label,body[data-screen-layout] main .notice,body[data-screen-layout] main .muted{font-size:calc(12px*var(--screen-text,1))}
body[data-screen-layout] #overview .sensor-trend{bottom:7px}

/* Searchable, keyboard-accessible target-device selector. */
#sensorWizard .wizard-device-picker{position:relative;margin-bottom:14px;min-width:0}
#sensorWizard #wizardDevice[hidden],#sensorWizard .wizard-device-popup[hidden]{display:none!important}
#sensorWizard .wizard-device-input{display:flex;height:46px;align-items:center;border:1px solid #cddbe7;border-radius:8px;background:white;overflow:hidden}
#sensorWizard .wizard-device-input:focus-within{border-color:#45a3bf;box-shadow:0 0 0 3px #45a3bf18}
#sensorWizard #wizardDeviceSearch{width:100%;min-width:0;flex:1;border:0;box-shadow:none;outline:none;background:transparent;padding:12px 13px;margin:0;font-size:13px}
#sensorWizard #wizardDeviceBrowse{width:42px;flex:none;border:0;border-left:1px solid #e4ebf2;border-radius:0;align-self:stretch;background:#f8fafc;font-size:19px;padding:0}
#sensorWizard .wizard-device-popup{position:absolute;top:50px;left:0;right:0;z-index:30;background:white;border:1px solid #cddbe7;border-radius:9px;box-shadow:0 9px 28px #18395320;overflow:hidden}
#sensorWizard #wizardDeviceOptions{max-height:min(300px,40vh);overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
#sensorWizard [data-target-device]{padding:11px 14px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 14px;cursor:pointer;border-bottom:1px solid #eef2f6;color:#28425b}
#sensorWizard [data-target-device]:hover,#sensorWizard [data-target-device][data-active=true]{background:#eaf6fa}
#sensorWizard [data-target-device] strong{font-size:13px;overflow-wrap:anywhere}
#sensorWizard [data-target-device] small{grid-column:1/-1;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#7b8ea2}
#sensorWizard .wizard-device-ip{font-size:12px;color:#637d95;align-self:center;font-variant-numeric:tabular-nums}
#sensorWizard .wizard-device-matches{margin:0;padding:9px 14px;font-size:11px;line-height:1.5;color:#70869c;background:#f8fafc}
#sensorWizard .wizard-device-selected{margin:6px 1px 0;font-size:11px;color:#71869b;line-height:1.6;overflow-wrap:anywhere}
@media(max-width:600px){#sensorWizard [data-target-device]{grid-template-columns:minmax(0,1fr)}#sensorWizard [data-target-device] small{white-space:normal}#sensorWizard .wizard-device-ip{font-size:11px}}

/* Sensor status filters: clear hover feedback without changing status colors. */
#overview #counts{padding:5px 3px 8px}
@media(hover:hover) and (pointer:fine){
 #overview #counts .counter[data-filter]:not(:disabled){transition:transform .17s ease,box-shadow .17s ease,border-color .17s ease}
 #overview #counts .counter[data-filter]:not(:disabled):hover{transform:translateY(-2px);border-color:var(--summary-color);box-shadow:0 5px 10px #17345418}
 #overview #counts .counter[data-filter]:not(:disabled):active{transform:translateY(0);box-shadow:0 1px 3px #17345416}
}
#overview #counts .counter[data-filter]:focus-visible{outline:2px solid var(--summary-color);outline-offset:2px}
@media(prefers-reduced-motion:reduce){#overview #counts .counter[data-filter]:not(:disabled),#overview #counts .counter[data-filter]:not(:disabled):hover{transition:none!important;transform:none!important}}

/* Compact workspace header; retain detailed sensor/device navigation below it. */
.shell>div>header{min-height:68px;height:auto;padding:12px 24px;gap:16px;flex-wrap:wrap}
.shell>div>header>div:first-child:not(.screen-header-actions){display:flex;align-items:center;gap:16px;flex:1;min-width:0;flex-wrap:wrap}
.shell>div>header #pageTitle{font-size:22px;line-height:1.3;margin:0;letter-spacing:-.5px}
.shell>div>header #pageSubtitle{display:none}
.shell>div>header .live-context{margin:0;font-size:11px;line-height:1.6;min-width:0}
.shell>div>header .screen-header-actions{flex:none;gap:8px;align-items:center}
.shell>div>header button,.shell>div>header .screen-display-settings>summary{min-height:36px;padding:8px 11px;font-size:12px}
.shell #overview>.breadcrumb{display:none}
@media(max-width:1000px){.shell>div>header{padding:12px 18px}.shell>div>header #pageTitle{font-size:20px}.shell>div>header>div:first-child:not(.screen-header-actions){gap:10px}.shell>div>header .live-context{font-size:10px}}
@media(max-width:700px){.shell>div>header{min-height:0;padding:12px 14px;gap:10px}.shell>div>header>div:first-child:not(.screen-header-actions){flex-basis:100%;gap:6px 12px}.shell>div>header #pageTitle{font-size:20px}.shell>div>header .screen-header-actions{margin-left:auto}.shell>div>header .live-context{line-height:1.5}}

/* Group > device > sensor hierarchy, with a smaller inset on phones. */
#overview details[data-group]>.device-row{margin-inline-start:20px;min-width:0;border-inline-start:1px solid #e0e8ef}
#overview details[data-group]>summary.group-title+.device-row{margin-top:6px}
@media(max-width:700px){#overview details[data-group]>.device-row{margin-inline-start:12px}}

#devices .inventory-header{display:flex;align-items:center;justify-content:space-between;gap:10px 16px;flex-wrap:wrap;padding:12px 16px}
.inventory-heading,.inventory-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.inventory-info{color:var(--muted,#607388);cursor:help}
.inventory-group-actions{position:relative}
.inventory-group-actions>summary{display:flex;align-items:center;gap:7px;list-style:none;cursor:pointer;padding:8px 11px;border:1px solid var(--edge,#dce5ef);border-radius:8px;font-size:12px}
.inventory-group-actions>summary::-webkit-details-marker{display:none}
.inventory-group-actions>summary::after{content:'';width:5px;height:5px;border:solid currentColor;border-width:0 1px 1px 0;transform:rotate(45deg);margin-top:-3px}
.inventory-group-buttons{position:absolute;z-index:5;inset-block-start:calc(100% + 5px);inset-inline-end:0;min-width:max-content;padding:4px;background:var(--astro-surface,#fff);border:1px solid var(--edge,#dce5ef);border-radius:8px;box-shadow:0 6px 18px #192b4924}
.inventory-group-buttons button{display:block;width:100%;text-align:start;border:0}
#devices .inventory-tools{justify-content:flex-start;gap:8px 12px;padding:10px 16px}
#devices .inventory-filter{flex:0 1 410px;min-width:0;max-width:100%;margin:0}
#devices .inventory-show{margin-inline-start:auto}
@media(max-width:700px){
 #devices .inventory-actions{flex-basis:100%}
 #devices .inventory-filter{flex-basis:100%}
 #devices .inventory-group{min-width:0}
 #devices .inventory-group select{max-width:100%;min-width:0}
}
