:root{--bg:#f2f6f9;--surface:#fff;--surface-2:#f6f9fb;--ink:#10334f;--muted:#7890a3;--line:#e0e9ef;--accent:#058f94;--accent-soft:#e4f5f4;--good:#17a880;--red:#dc665b;--amber:#cda041;--shadow:0 5px 25px #08223804;color-scheme:light}:root[data-theme=dark]{--bg:#07131f;--surface:#0e2132;--surface-2:#10283c;--ink:#e1edf5;--muted:#85a1b6;--line:#20394d;--accent:#32d1c5;--accent-soft:#113c45;--good:#39c89d;--red:#ef8b7c;--amber:#e4bd65;--shadow:none;color-scheme:dark}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:13px Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button{cursor:pointer}button,a,input{ -webkit-tap-highlight-color:transparent}a{color:var(--accent)}button{color:inherit}button:disabled{opacity:.45;cursor:not-allowed}.icon{width:19px;height:19px;flex:none;vertical-align:middle}aside{position:fixed;inset:0 auto 0 0;width:220px;background:#031a31;color:#b0c7d9;padding:29px 17px;display:flex;flex-direction:column;z-index:15}.brand{display:block;padding:0 13px;text-decoration:none;margin-bottom:29px}.brand img{display:block;width:100%;height:auto;filter:brightness(0) invert(1);object-fit:contain}.brand>span{display:block;font-size:10px;letter-spacing:2.7px;color:#94bacf;margin:5px 0 0}.workspace-switch{display:flex;align-items:center;gap:10px;padding:13px 10px;background:#092a44;border:1px solid #173e58;border-radius:9px;font-size:11px;color:#e4eef5;margin:0 1px 31px}.workspace-switch small{display:block;font-size:9px;color:#789db6;margin-top:5px}.workspace-icon{height:29px;width:29px;border-radius:7px;background:#14435a;color:#5bd9d1;display:grid;place-items:center;font-size:12px}.nav-label{font-size:9px;letter-spacing:1.9px;padding:0 13px;margin-bottom:12px;color:#6287a1}nav button{display:flex;width:100%;align-items:center;gap:11px;border:0;background:transparent;color:#94b0c7;padding:12px 13px;border-radius:7px;text-align:left;margin:3px 0;font-size:12px}nav button .icon{width:18px;height:18px}nav button:hover{background:#0c3049;color:#e8f8fc}nav button.active{background:#0c3a51;color:#72dfd9;box-shadow:inset 3px 0 #08c7be}nav .nav-alert{background:#dcac54;width:5px;height:5px;margin-left:auto;border-radius:50%}.sidebar-bottom{margin-top:auto;padding:20px 12px 3px;font-size:10px;color:#7b9db4;display:flex;align-items:center;gap:7px}.sidebar-bottom small{margin-left:auto;font-size:9px}main{margin-left:220px}header{height:72px;display:flex;justify-content:space-between;align-items:center;background:var(--surface);border-bottom:1px solid var(--line);padding:0 34px}.breadcrumb{display:flex;align-items:center;gap:16px;font-size:11px;color:var(--muted)}.breadcrumb b{color:var(--ink);font-weight:500}.breadcrumb>span:nth-child(2){color:var(--line)}.header-tools{display:flex;align-items:center;gap:18px}.demo-badge{font-size:9px;letter-spacing:1px;font-weight:600;color:var(--muted);border:1px solid var(--line);border-radius:4px;padding:5px 9px;text-transform:uppercase}.user-avatar{width:31px;height:31px;border-radius:50%;background:var(--surface-2);border:1px solid var(--line);display:grid;place-items:center;font-size:9px;color:var(--muted)}#content{max-width:1640px;margin:auto;padding:33px 34px 45px}.page-title{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:28px}.page-title h1{margin:0;font-size:28px;line-height:1.25;letter-spacing:-.9px;font-weight:620}.page-title p{color:var(--muted);font-size:11px;margin:8px 0 0}h2{font-size:15px;letter-spacing:-.2px;margin:0;font-weight:600}h3{font-size:12px;margin:0;font-weight:600}p{line-height:1.65;color:var(--muted)}code{font-family:ui-monospace,SFMono-Regular,monospace;font-size:10px;letter-spacing:.2px}.actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.btn{border:1px solid var(--line);background:var(--surface);color:var(--ink);display:inline-flex;justify-content:center;align-items:center;gap:7px;border-radius:7px;font-size:11px;font-weight:500;padding:10px 13px;text-decoration:none;white-space:nowrap;line-height:1.2;min-height:36px}.btn .icon{width:15px;height:15px}.btn.primary{background:#078f95;border-color:#078f95;color:#fff}.btn:hover{filter:brightness(.96)}.icon-btn{width:32px;height:32px;padding:6px;border:0;border-radius:6px;background:transparent;color:var(--muted);display:inline-flex;align-items:center;justify-content:center}.icon-btn:hover,.icon-btn.active{background:var(--accent-soft);color:var(--accent)}.text-btn{border:0;background:none;padding:4px 0;color:var(--accent);display:inline-flex;align-items:center;gap:7px;font-size:11px}.text-btn .icon{width:15px;height:15px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:26px 0 16px}.section-head>span{font-size:10px;color:var(--muted)}.panel{border:1px solid var(--line);border-radius:11px;background:var(--surface);padding:20px;box-shadow:var(--shadow)}.panel>.section-head:first-child{margin-top:0}.summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:28px}.summary-card{position:relative;display:block;text-align:left;border:1px solid var(--line);background:var(--surface);border-radius:10px;padding:19px 20px;box-shadow:var(--shadow)}.summary-card>span{display:block;color:var(--muted);font-size:11px}.summary-card>strong{display:block;font-size:32px;font-weight:550;letter-spacing:-1px;margin:13px 0 11px}.summary-card>small{font-size:10px;color:var(--muted)}.summary-card>.icon{position:absolute;right:19px;top:20px;color:var(--muted);opacity:.55}.live-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--good);margin-right:5px;vertical-align:middle}.live-dot.pending{background:var(--amber)}.warning-text{color:var(--amber)!important}.devices-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.device-card,.health-card{background:var(--surface);border:1px solid var(--line);border-radius:11px;padding:20px;box-shadow:var(--shadow);min-width:0}.device-top{display:flex;align-items:center;gap:13px}.device-identity{flex:1;min-width:0}.device-identity h3{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.6}.device-identity>span{font-size:10px;color:var(--muted);display:block;margin-top:3px}.device-identity>span i{font-style:normal;padding:0 4px;color:var(--line)}.device-identity>small{display:block;font-size:10px;color:var(--muted);margin-top:6px}.device-status{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--muted);margin-right:6px;flex:none;vertical-align:middle}.device-status.online{background:var(--good)}.device-status.offline{background:var(--red)}.device-art{width:61px;height:68px;flex:none;display:flex;align-items:center;justify-content:center;background:var(--surface-2);border-radius:9px;padding:5px}.device-art>img{width:100%;height:100%;object-fit:contain}.device-art svg{width:50px;height:62px}.image-fallback{height:100%;width:100%;text-align:center}.device-values{display:flex;gap:24px;padding:25px 0 20px;min-height:103px}.device-values>div{flex:1;min-width:0}.device-values>div>span{display:block;font-size:10px;color:var(--muted);margin-bottom:8px}.device-values strong{font-size:29px;letter-spacing:-.9px;font-weight:550;white-space:nowrap}.device-values strong small{font-size:12px;letter-spacing:0;margin-left:4px;color:var(--muted);font-weight:400}.device-foot{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:13px}.device-foot>div{display:flex;gap:15px;align-items:center}.device-foot>span{font-size:9px;color:var(--muted);display:flex;align-items:center;gap:9px}.sim-tag{font-size:8px;font-style:normal;letter-spacing:.4px;color:var(--muted);padding:2px 4px;border:1px solid var(--line);border-radius:3px}.battery-widget{display:inline-flex;align-items:center;gap:6px;color:var(--good)}.battery-shell{position:relative;width:22px;height:11px;border:1.2px solid currentColor;border-radius:2px;padding:1.5px;display:block}.battery-shell:after{content:'';position:absolute;left:100%;top:2px;width:2px;height:4px;border-radius:0 1px 1px 0;background:currentColor;margin-left:1px}.battery-shell>span{height:100%;background:currentColor;border-radius:.5px;display:block}.battery-widget>strong{font-size:10px;font-weight:500;color:var(--muted)}.battery-widget small{font-size:8px;margin-left:1px}.battery-widget.large{gap:10px}.battery-widget.large .battery-shell{width:39px;height:19px;border-radius:4px;padding:3px}.battery-widget.large .battery-shell:after{width:3px;height:8px;top:4px}.battery-widget.large>strong{font-size:21px;letter-spacing:-.4px;color:var(--ink)}.battery-widget.large small{font-size:11px;color:var(--muted);margin-left:2px}.battery-widget.bad,.signal-widget.bad{color:var(--amber)}.battery-widget.unknown,.signal-widget.unknown{color:var(--muted);opacity:.5}.signal-widget{display:inline-flex;align-items:center;gap:9px;color:var(--accent)}.signal-bars{display:flex;height:15px;gap:2px;align-items:flex-end}.signal-bars i{display:block;width:3px;background:var(--line);border-radius:1px}.signal-bars i:nth-child(1){height:25%}.signal-bars i:nth-child(2){height:50%}.signal-bars i:nth-child(3){height:75%}.signal-bars i:nth-child(4){height:100%}.signal-bars i.lit{background:currentColor}.signal-widget.large .signal-bars{height:26px;gap:3px}.signal-widget.large .signal-bars i{width:5px;border-radius:2px}.signal-widget strong{font-size:20px;letter-spacing:-.5px;font-weight:550;color:var(--ink)}.signal-widget strong small{display:block;font-size:8px;color:var(--muted);font-weight:400;text-align:right;letter-spacing:0;margin-top:2px}.overview-bottom{display:grid;grid-template-columns:1.55fr 1fr;gap:18px;margin-top:22px}.chart{height:195px;min-width:0;padding-top:8px}.chart>svg{height:155px;width:100%}.chart svg text{fill:var(--muted);font-size:10px}.chart-grid{stroke:var(--line);stroke-dasharray:3 6;fill:none}.chart-area{fill:var(--accent);opacity:.07}.chart-line{stroke:var(--accent);stroke-width:2.2;fill:none}.chart-labels{display:flex;justify-content:space-between;font-size:9px;color:var(--muted);margin-top:10px}.section-head select{font-size:10px;width:auto;max-width:55%;padding:7px 9px}.event-row{display:flex;align-items:center;gap:12px;padding:15px 0;border-bottom:1px solid var(--line)}.event-row:last-child{border-bottom:0}.event-row>div{flex:1;min-width:0}.event-row b{display:block;font-size:11px;font-weight:500}.event-row small{font-size:10px;color:var(--muted);display:block;margin-top:5px}.event-row>span:last-child{color:var(--muted);font-size:10px;white-space:nowrap}.event-symbol{width:32px;height:32px;background:var(--accent-soft);color:var(--accent);border-radius:8px;display:grid;place-items:center;flex:none}.event-symbol .icon{width:16px;height:16px}.event-symbol.amber{background:#b6902514;color:var(--amber)}.event-symbol.red{background:#d8665114;color:var(--red)}.healthy-mark{height:180px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:13px;color:var(--good)}.healthy-mark .icon{height:40px;width:40px}.healthy-mark span{font-size:11px;color:var(--muted)}.no-readings{font-size:12px;color:var(--muted);padding:12px 0}.filter-toolbar{display:flex;gap:10px;align-items:center;margin-bottom:22px;flex-wrap:wrap}.search-field{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:7px;background:var(--surface);padding:0 12px;min-width:220px}.search-field .icon{width:16px;height:16px;color:var(--muted)}.search-field input{border:0;outline:none!important;background:none;padding:10px 0;width:230px}.filter-toolbar>select{width:auto;min-width:150px;padding:10px 12px;background:var(--surface);font-size:11px}.result-count{margin-left:auto;color:var(--muted);font-size:10px}.health-summary{display:flex;align-items:center;gap:28px;padding:17px 20px;margin-bottom:23px;background:var(--surface);border:1px solid var(--line);border-radius:9px;flex-wrap:wrap}.health-summary>span{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--muted)}.health-summary .icon{width:15px;height:15px}.health-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.health-card.attention{border-color:color-mix(in srgb,var(--amber) 40%,var(--line))}.health-readings{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px;padding:25px 0 24px}.health-readings>div{min-width:0}.health-readings>div>small{display:block;color:var(--muted);font-size:9px;margin-bottom:12px}.uptime-widget{display:flex;align-items:center;gap:7px;min-height:31px}.uptime-widget .icon{width:20px;height:20px;color:var(--muted)}.uptime-widget strong{font-size:17px;font-weight:500;letter-spacing:-.5px}.health-foot{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:13px;align-items:center}.health-foot>div,.health-foot>span{display:flex;align-items:center;gap:7px}.health-foot>span{font-size:9px;color:var(--muted)}.health-foot>span .icon{width:12px;height:12px}.health-event-icon,.health-ok{height:23px;width:23px;border-radius:5px;display:grid;place-items:center;background:#b6902514;color:var(--amber)}.health-event-icon .icon,.health-ok .icon{width:14px;height:14px}.health-event-icon.offline{color:var(--red);background:#d8665114}.health-ok{background:var(--accent-soft);color:var(--good)}.catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.catalog-card{padding:18px 20px;background:var(--surface);border:1px solid var(--line);border-radius:11px;display:flex;flex-direction:column}.catalog-category{display:flex;justify-content:space-between;font-size:9px;color:var(--muted)}.catalog-category a{text-decoration:none;font-size:15px;color:var(--muted)}.catalog-card .device-art{height:132px;width:100%;margin:15px 0 18px;background:transparent;padding:9px}.catalog-card .device-art svg{height:115px;width:95px}.catalog-card .device-art img{max-height:120px;max-width:160px}.catalog-card h3{font-size:17px}.catalog-card>p{font-size:10px;margin:5px 0 15px}.capabilities{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:20px}.capabilities span{border:1px solid var(--line);border-radius:4px;padding:5px 6px;color:var(--muted);font-size:9px}.catalog-card>.text-btn{margin-top:auto;align-self:flex-start}.catalog-detail-image{display:flex;justify-content:center;margin:15px 0 25px}.catalog-detail-image .device-art{width:140px;height:140px;background:transparent}.variable-list{margin-top:18px}.variable-list>div{display:flex;justify-content:space-between;padding:11px 0;border-bottom:1px solid var(--line);font-size:11px}.variable-list b{font-size:10px;color:var(--muted);font-weight:400}.pill{display:inline-flex;align-items:center;gap:5px;background:var(--accent-soft);color:var(--accent);font-size:9px;padding:5px 8px;border-radius:5px}.pill.neutral{color:var(--muted);background:var(--surface-2)}.pill.amber{color:var(--amber);background:#b6902514}.pill.red{color:var(--red);background:#d8665114}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:17px;padding:45px 20px;color:var(--muted);grid-column:1/-1}.empty-state>.icon{width:35px;height:35px;opacity:.5}.empty-state h3{font-weight:400}.rules-list{display:flex;flex-direction:column;gap:17px}.rule-card{padding:21px 24px;background:var(--surface);border:1px solid var(--line);border-radius:11px}.rule-card .section-head{margin:0}.rule-card h3{font-size:14px}.switch{width:34px;height:19px;border:0;border-radius:15px;background:var(--line);padding:3px}.switch i{display:block;background:var(--surface);height:13px;width:13px;border-radius:50%}.switch.on{background:#08a69f}.switch.on i{margin-left:auto;background:#fff}.rule-flow{display:flex;align-items:center;gap:23px;margin:22px 0}.rule-flow>div{display:flex;align-items:center;gap:13px}.rule-flow .device-art{height:52px;width:45px}.rule-flow>div>span{font-size:11px}.rule-flow small{display:block;color:var(--muted);font-size:9px;margin-top:4px}.rule-flow>.icon{width:17px;color:var(--muted)}.condition-node{display:block!important;background:var(--surface-2);border:1px solid var(--line);padding:13px 20px;border-radius:8px;min-width:140px}.condition-node small{margin:0 0 8px}.condition-node b{font-size:18px;font-weight:500}.action-node{color:var(--accent)}.action-preview{margin-top:22px;border:1px solid var(--line);border-radius:8px;background:var(--surface-2);padding:15px;display:flex;gap:10px;align-items:center;color:var(--accent);font-size:12px}.alert-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px}.alert-row{display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line);padding:17px 0}.alert-row:last-child{border:0}.alert-row>div{flex:1;min-width:0}.alert-row b{font-size:11px;font-weight:500;line-height:1.6}.alert-row small{display:block;color:var(--muted);font-size:9px;margin-top:6px}.alert-row .btn{padding:7px 10px;font-size:9px}.gateways-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px}.gateway-card{background:var(--surface);border:1px solid var(--line);border-radius:11px;padding:22px}.gateway-card-top{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:18px}.gateway-drawing{background:var(--surface-2);width:64px;height:64px;border-radius:11px;display:grid;place-items:center;color:var(--accent)}.gateway-drawing>.icon{height:35px;width:35px}.gateway-card>p{font-size:10px;margin:8px 0 23px}.gateway-stats{display:flex;gap:36px}.gateway-stats b{display:block;font-size:21px;font-weight:500;letter-spacing:-.5px}.gateway-stats span{display:block;font-size:9px;color:var(--muted);margin-top:8px}.gateway-topics{display:flex;flex-direction:column;gap:8px;padding:19px 0;color:var(--muted);font-size:10px;min-height:76px}.gateway-topics .icon{width:13px;height:13px;margin-right:5px}.gateway-actions{border-top:1px solid var(--line);padding-top:17px;display:flex;gap:8px;flex-wrap:wrap}.gateway-actions .btn{font-size:10px;padding:8px 10px}.kit-options{display:grid;grid-template-columns:1fr 1fr;gap:22px}.kit-option{border:1px solid var(--line);border-radius:13px;background:var(--surface);padding:28px;text-align:left;display:block}.kit-option.recommended{border-color:#08a9ac;box-shadow:0 0 0 1px #08a9ac11}.kit-icons{display:flex;align-items:center;gap:20px;margin:29px 0;color:var(--accent)}.kit-icons .icon{height:34px;width:34px}.kit-icons i{font-style:normal;font-size:15px;color:var(--muted)}.kit-option h2{font-size:21px;letter-spacing:-.4px}.kit-option p{font-size:12px;margin:13px 0 26px;line-height:1.8}.kit-link{display:flex;align-items:center;justify-content:space-between;color:var(--accent);font-size:11px}.kit-path{display:flex;align-items:center;justify-content:space-around;margin-top:28px;padding:29px;background:var(--surface);border:1px solid var(--line);border-radius:11px}.kit-path>div{display:flex;flex-direction:column;align-items:center;gap:10px}.kit-path>div>.icon{height:24px;width:24px;color:var(--accent);margin-bottom:8px}.kit-path b{font-size:11px;font-weight:500}.kit-path span{font-size:9px;color:var(--muted)}.kit-path>.icon{color:var(--muted);width:16px}.wizard-progress{display:flex;gap:6px;margin-bottom:25px}.wizard-progress>span{height:3px;border-radius:3px;background:var(--line);flex:1}.wizard-progress>span.active{background:var(--accent)}.wizard-content>h2{font-size:22px;letter-spacing:-.5px;margin:18px 0 27px}.wizard-visual{display:flex;align-items:center;justify-content:center;gap:28px;padding:20px 0;color:var(--accent)}.wizard-visual .icon{width:47px;height:47px}.wizard-visual i{font-style:normal;color:var(--muted)}.wizard-visual+h2{text-align:center}.setup-step{display:flex;gap:16px;margin:23px 0}.setup-step>span{background:var(--accent-soft);color:var(--accent);width:26px;height:26px;border-radius:50%;display:grid;place-items:center;flex:none;font-size:11px}.setup-step p{font-size:12px;margin:8px 0 0}.setup-step .actions{margin-top:16px}.connection-count{text-align:center;padding:15px}.connection-count strong{display:block;font-size:50px;font-weight:500;letter-spacing:-2px}.connection-count span{font-size:11px;color:var(--muted)}.connection-status{font-size:11px;text-align:center;color:var(--muted);margin:8px 0 25px}.centered{justify-content:center}.segmented,.mode-switch{display:flex;border:1px solid var(--line);border-radius:7px;overflow:hidden;margin-bottom:20px;background:var(--surface-2)}.segmented button,.mode-switch button{flex:1;background:transparent;border:0;padding:9px 15px;font-size:11px;color:var(--muted)}.segmented button.active,.mode-switch button.active{background:var(--accent-soft);color:var(--accent)}.copy-field{display:flex;align-items:center;justify-content:space-between;border:1px solid var(--line);background:var(--surface-2);padding:13px 15px;border-radius:6px;line-height:1.9}.copy-field button{background:none;border:0;color:var(--muted)}.copy-field .icon{width:16px}.secret-field{display:flex;align-items:center;gap:5px;border:1px solid var(--line);border-radius:6px;background:var(--bg)}.secret-field input{border:0;flex:1;min-width:0}.secret-field button{margin-right:6px}.check-label{display:flex;align-items:flex-start;gap:9px;font-size:11px!important;line-height:1.6;margin-top:20px!important}.check-label input{width:auto;margin-top:3px}.field-note{color:var(--muted);font-size:11px;line-height:1.7;margin:16px 0}.inline-error{background:#d8665114;color:var(--red);border-radius:6px;padding:12px;font-size:11px;line-height:1.6;margin:12px 0}.import-summary{display:flex;gap:20px;margin:23px 0 15px;font-size:11px}.import-summary b{color:var(--accent)}.import-summary span{color:var(--muted)}.import-table{max-height:300px;overflow:auto;border:1px solid var(--line);border-radius:8px}table{border-collapse:collapse;width:100%;font-size:11px}td,th{text-align:left;padding:12px 10px;border-bottom:1px solid var(--line)}th{color:var(--muted);font-size:9px;font-weight:500;background:var(--surface-2);position:sticky;top:0}td small{display:block;color:var(--muted);font-size:9px;margin-top:5px}.error-text{color:var(--red)!important}dialog{width:min(650px,94vw);max-height:90vh;border:1px solid var(--line);border-radius:13px;background:var(--surface);color:var(--ink);padding:27px;box-shadow:0 20px 120px #031a3144}dialog::backdrop{background:#031a3177;backdrop-filter:blur(5px)}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:24px}.modal-head h2{font-size:17px}label{display:block;font-size:11px;margin:18px 0 8px;color:var(--ink)}input,select,textarea{width:100%;border:1px solid var(--line);border-radius:6px;background:var(--bg);color:var(--ink);font-size:12px;padding:11px 12px;min-width:0}input:focus,select:focus,textarea:focus{outline:2px solid #08c7be66;outline-offset:1px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 15px}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:26px}.muted{color:var(--muted)}pre{background:var(--bg);border:1px solid var(--line);border-radius:7px;padding:14px;white-space:pre-wrap;word-break:break-word;max-height:260px;overflow:auto;font-size:10px;line-height:1.7;color:var(--ink)}details{margin-top:22px}summary{font-size:11px;color:var(--muted);cursor:pointer}.detail-heading{display:flex;align-items:center;gap:18px;margin:5px 0 22px}.detail-heading .device-art{height:90px;width:90px}.detail-heading code{display:block;margin:7px 0;color:var(--muted)}.detail-heading p{font-size:11px;margin:4px 0}.detail-metrics{display:flex;gap:20px;flex-wrap:wrap}.detail-metrics>div{min-width:100px}.detail-metrics span{display:block;color:var(--muted);font-size:10px;margin-bottom:8px}.detail-metrics b{font-size:27px;font-weight:500}.detail-metrics small{font-size:11px;color:var(--muted);margin-left:4px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%) translateY(20px);background:#103a4e;color:#e4f6f9;padding:13px 20px;border:1px solid #27627855;border-radius:8px;box-shadow:0 4px 30px #0002;font-size:12px;opacity:0;pointer-events:none;transition:opacity .15s,transform .15s;z-index:100;max-width:90vw}#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
/* Spatial editor */
.spatial-layout{display:grid;grid-template-columns:230px minmax(0,1fr);border:1px solid var(--line);border-radius:11px;background:var(--surface);overflow:hidden;min-height:620px}.spatial-sidebar{background:var(--surface);border-right:1px solid var(--line)}.spatial-section{padding:18px 15px;border-bottom:1px solid var(--line)}.spatial-section label{margin-top:0;color:var(--muted);font-size:10px}.spatial-section select{font-size:11px;background:var(--surface-2)}.mode-switch{margin:15px 0 0}.mode-switch button{display:flex;align-items:center;justify-content:center;gap:6px;padding:8px;font-size:10px}.mode-switch .icon{height:14px;width:14px}.plan-tree{padding:11px}.plan-tree>button{display:flex;align-items:center;gap:10px;width:100%;background:transparent;border:0;padding:11px 10px;text-align:left;border-radius:6px;font-size:11px;color:var(--muted)}.plan-tree>button.active{color:var(--accent);background:var(--accent-soft)}.plan-tree small{display:block;font-size:9px;margin-top:5px;opacity:.8}.plan-tree .icon{width:16px;height:16px}.spatial-section>.section-head{margin:0 0 12px}.spatial-section h3{font-size:11px}.layer-row{display:flex;align-items:center;border-radius:6px;margin:3px 0}.layer-row.active{background:var(--surface-2)}.layer-row>.icon-btn{width:29px;height:29px;flex:none}.layer-row>.icon-btn .icon{width:15px;height:15px}.layer-row>button:last-child{background:none;border:0;padding:9px 5px;text-align:left;font-size:10px;color:var(--muted);flex:1}.layer-row.active>button:last-child{color:var(--ink)}.placement-list{display:flex;flex-direction:column;gap:5px}.placement-list>button{display:flex;align-items:center;gap:9px;padding:8px 5px;background:transparent;border:0;border-radius:7px;text-align:left;min-width:0}.placement-list>button.active{background:var(--accent-soft)}.placement-list .device-art{width:32px;height:37px;padding:2px}.placement-list .device-art svg{width:26px;height:32px}.placement-list>button>span{font-size:10px;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.placement-list small{display:block;font-size:8px;color:var(--muted);margin-top:5px}.placement-list .device-status{width:5px;height:5px;margin:0}.map-workspace{min-width:0;background:var(--surface-2);display:flex;flex-direction:column}.drawing-toolbar{display:flex;align-items:center;justify-content:space-between;padding:12px 15px;background:var(--surface);border-bottom:1px solid var(--line);gap:10px;flex-wrap:wrap}.draw-tools{display:flex;gap:3px;align-items:center}.draw-tools .icon-btn{height:29px;width:29px}.draw-tools .icon{height:16px;width:16px}.draw-tools input[type=color]{padding:2px;width:25px;height:25px;border:1px solid var(--line);background:none}.tool-separator{height:18px;width:1px;background:var(--line);margin:0 6px}.drawing-toolbar .btn{padding:8px 10px;font-size:10px;min-height:30px}.plan-title{display:flex;justify-content:space-between;padding:15px 18px;font-size:9px;color:var(--muted);gap:10px}.plan-title i{font-style:normal;margin:0 7px;opacity:.5}.plan-title>span:last-child{white-space:nowrap;font-size:8px}.plan-title .icon{width:12px;height:12px;margin-right:4px;color:var(--accent)}.plan-scroll{padding:16px;overflow:auto;flex:1;display:flex;align-items:center}.plan-board{position:relative;width:100%;min-width:320px;background:#f4f8fa;touch-action:none;box-shadow:0 2px 15px #031a3108;border:1px solid #dae5eb;overflow:hidden}.plan-background{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none;user-select:none}.plan-grid{position:absolute;inset:0;background-color:#f7fafc;background-image:linear-gradient(#a8b8c511 1px,transparent 1px),linear-gradient(90deg,#a8b8c511 1px,transparent 1px);background-size:20px 20px}.plan-board>svg{position:absolute;inset:0;width:100%;height:100%;z-index:1}.plan-text{font-size:2.2px;font-family:Inter,sans-serif;font-weight:500}.tool-rect,.tool-line,.tool-polygon,.tool-place,.tool-text{cursor:crosshair}.map-pin{position:absolute;z-index:3;transform:translate(-50%,-50%);display:flex;align-items:center;gap:7px;background:#087f8e;color:#fff;border:2px solid #fff;border-radius:7px;padding:7px 10px;box-shadow:0 3px 13px #031a3133;white-space:nowrap;text-align:left;touch-action:none}.map-pin>.icon{width:15px;height:15px}.map-pin>span{font-size:9px;line-height:1.3;max-width:160px;overflow:hidden;text-overflow:ellipsis}.map-pin small{display:block;font-size:9px;margin-top:4px;color:#caf5ed}.map-pin.attention{background:#a97b25}.map-status{padding:14px 18px;background:var(--surface);border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;font-size:9px;color:var(--muted);gap:10px;margin-top:auto}.map-status .btn{padding:5px 8px;font-size:9px;min-height:25px}.upload-preview{margin-top:20px;min-height:150px;max-height:350px;background:var(--surface-2);border:1px dashed var(--line);border-radius:7px;display:flex;align-items:center;justify-content:center;padding:12px;overflow:auto;color:var(--muted);font-size:12px}.upload-preview>img{max-height:320px;max-width:100%;object-fit:contain}.gis-board{position:relative;min-height:530px;height:530px;overflow:hidden;background:#dce9ed;cursor:grab;touch-action:none}.gis-board:active{cursor:grabbing}#tile-layer,#gps-markers{position:absolute;inset:0}#tile-layer img{position:absolute;width:256px;height:256px;user-select:none}#gps-markers{pointer-events:none}#gps-markers button{pointer-events:auto}.map-attribution{position:absolute;bottom:0;right:0;font-size:9px;background:#ffffffdd;color:#3f5d6e;padding:4px 7px;z-index:6}.map-attribution a{color:#285d83}.tv-exit{position:fixed;bottom:15px;right:20px}.tv-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:35px;color:var(--muted)}.tv-heading img{width:200px}.tv aside,.tv header{display:none}.tv main{margin:0}.tv #content{max-width:none;padding:40px}.tv .device-values strong{font-size:50px}.tv .device-values{padding:35px 0}.tv .device-top .device-art{width:90px;height:90px}.tv .device-identity h3{font-size:19px}:root[data-theme=dark] .tv-heading img{filter:brightness(0) invert(1)}
@media(min-width:1450px){.health-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.catalog-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.device-values{gap:35px}.spatial-layout{grid-template-columns:250px minmax(0,1fr)}}@media(max-width:1150px){.gateways-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.health-readings{gap:8px}.uptime-widget{gap:4px}.uptime-widget strong{font-size:14px}.health-readings .large .battery-shell{width:30px;height:17px}.health-readings .large>strong{font-size:18px}.signal-widget strong{font-size:17px}.signal-widget.large .signal-bars{height:21px}.signal-widget.large .signal-bars i{width:4px}.signal-widget{gap:6px}.spatial-layout{grid-template-columns:195px minmax(0,1fr)}.drawing-toolbar{padding:10px}.map-pin>span{max-width:90px}.device-values strong{font-size:26px}.device-values{gap:16px}.catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.rule-flow{gap:15px}.overview-bottom{grid-template-columns:1.25fr 1fr}}@media(max-width:950px){aside{width:190px;padding:26px 13px}main{margin-left:190px}header{padding:0 25px}#content{padding:28px 25px}.summary-grid{gap:11px}.summary-card{padding:17px 15px}.summary-card>.icon{display:none}.summary-card small{font-size:9px}.device-card,.health-card{padding:17px}.device-top{gap:9px}.device-identity h3{font-size:11px}.device-top .device-art{width:48px;height:57px}.device-identity>span{font-size:9px}.device-identity code{font-size:8px}.health-grid{grid-template-columns:1fr}.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.overview-bottom,.alert-columns{grid-template-columns:1fr}.spatial-layout{grid-template-columns:175px minmax(0,1fr);min-height:520px}.spatial-section{padding:14px 11px}.gis-board{height:450px;min-height:450px}.kit-option{padding:22px}.kit-option h2{font-size:18px}.kit-path{padding:20px;gap:15px}.kit-path span{max-width:120px;line-height:1.5;text-align:center}.health-readings .battery-widget.large>strong{font-size:23px}.signal-widget strong{font-size:23px}.uptime-widget strong{font-size:20px}.health-readings .battery-shell{width:39px!important;height:19px!important}.signal-widget.large .signal-bars{height:26px}.health-readings{padding:25px 10px}.rule-flow{flex-wrap:wrap}}@media(max-width:720px){aside{width:62px;padding:22px 6px}.brand{padding:0 5px;height:38px;overflow:hidden;margin-bottom:24px}.brand img{width:165px;max-width:none;height:52px;object-fit:cover;object-position:left;transform:translateY(-5px)}.brand>span,.workspace-switch,.nav-label,nav button>span,.sidebar-bottom{display:none}nav button{padding:13px;justify-content:center}nav .nav-alert{position:absolute;right:9px}main{margin-left:62px}header{height:60px;padding:0 16px}.breadcrumb{gap:10px;font-size:9px}.header-tools{gap:9px}.user-avatar{display:none}.demo-badge{font-size:8px;padding:4px 6px}#content{padding:24px 15px}.page-title{flex-wrap:wrap;align-items:flex-start;gap:16px;margin-bottom:23px}.page-title h1{font-size:26px}.page-title .actions{margin-left:auto}.btn{font-size:10px;padding:9px 11px;min-height:33px}.btn .icon{width:14px;height:14px}.summary-grid{grid-template-columns:1fr 1fr;gap:10px}.summary-card{padding:17px}.summary-card>.icon{display:block;width:16px;right:15px;top:16px}.summary-card strong{font-size:30px;margin:11px 0}.devices-grid{grid-template-columns:1fr}.device-top .device-art{width:58px;height:64px}.device-identity h3{font-size:12px}.device-identity>span{font-size:10px}.device-values strong{font-size:30px}.device-values{padding:25px 0}.health-summary{padding:14px;gap:14px 20px}.health-summary>span{font-size:10px}.search-field{width:100%}.search-field input{width:100%}.filter-toolbar>select{flex:1;min-width:110px;font-size:10px}.result-count{display:none}.health-card{padding:17px}.health-readings{padding:25px 0}.health-readings .battery-widget.large>strong{font-size:20px}.health-readings .signal-widget strong{font-size:20px}.uptime-widget strong{font-size:17px}.health-readings .battery-shell{width:32px!important;height:17px!important}.health-grid{gap:14px}.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.catalog-card{padding:14px}.catalog-card .device-art{height:100px}.catalog-card .device-art img{max-height:90px}.catalog-card h3{font-size:15px}.catalog-card>p{font-size:9px}.capabilities{gap:4px}.capabilities span{font-size:8px;padding:4px}.catalog-category{font-size:8px}.gateways-grid,.kit-options{grid-template-columns:1fr}.kit-option{padding:24px}.kit-path{flex-direction:column;gap:18px}.kit-path>.icon{transform:rotate(90deg)}.kit-path>div{gap:7px}.kit-path span{max-width:none}.kit-path>div>.icon{margin:0 0 3px}.spatial-layout{grid-template-columns:1fr;overflow:visible;min-height:0}.spatial-sidebar{border:0;display:grid;grid-template-columns:1fr 1fr}.spatial-section{min-width:0;border-right:1px solid var(--line);padding:12px}.spatial-section:last-child{grid-column:1/-1}.placement-list{flex-direction:row;overflow:auto}.placement-list>button{min-width:160px}.spatial-section>.section-head{margin-bottom:5px}.plan-tree{max-height:150px;overflow:auto}.map-workspace{border-top:1px solid var(--line);border-radius:0 0 10px 10px;overflow:hidden}.plan-scroll{min-height:300px;padding:10px}.plan-board{min-width:300px}.plan-title{font-size:8px}.plan-title i{margin:0 3px}.map-status{font-size:8px;padding:12px 10px}.map-pin{padding:5px;gap:4px;border-width:1.5px}.map-pin>span{font-size:8px;max-width:100px}.map-pin small{font-size:8px}.map-pin>.icon{width:12px;height:12px}.draw-tools{gap:1px}.drawing-toolbar .actions>.btn{font-size:9px}.draw-tools .icon-btn{width:26px;height:27px}.map-status>span:last-child{display:none}.gis-board{height:400px;min-height:400px}.rule-card{padding:18px}.rule-flow{gap:10px}.rule-flow>div>span{font-size:10px}.condition-node{min-width:90px;padding:10px}.condition-node b{font-size:16px}.rule-flow .device-art{width:35px;height:42px}.rule-flow>.icon{width:13px}.form-grid{gap:0 12px}dialog{padding:23px}.alert-row{flex-wrap:wrap}.alert-row>.btn{margin-left:42px}.tv .devices-grid{grid-template-columns:1fr}.tv #content{padding:25px}.tv .device-values strong{font-size:39px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

:root[data-theme=dark] .device-art img[src$=".svg"]{filter:brightness(0) invert(1);opacity:.88}
.tile-error{position:absolute;bottom:12px;left:12px;background:#ffffffed;color:#546d7e;border:1px solid #bfd0d9;padding:7px 10px;border-radius:5px;font-size:10px;z-index:5}
.device-art{overflow:hidden;position:relative}
[hidden]{display:none!important}.workspace-switch>div:last-child{min-width:0;flex:1}.workspace-switch b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500}.user-avatar{padding:0;cursor:pointer}.demo-toggle{font-size:9px;padding:7px 9px;min-height:29px;color:var(--muted)}.demo-toggle .icon{height:13px;width:13px}.login-page{min-height:100vh;display:grid;place-items:center;background:#031a31;overflow:auto}.login-background{position:fixed;inset:0;pointer-events:none;background:radial-gradient(ellipse at 12% 15%,#087f8e25,transparent 50%),linear-gradient(132deg,transparent 50%,#0a3a501a 50.05%,transparent 73%),radial-gradient(ellipse at 90% 90%,#08c7be08,transparent 50%)}.login-shell{position:relative;width:min(385px,calc(100vw - 40px));padding:45px 0}.login-brand{width:210px;margin:0 auto 38px;text-align:center}.login-brand img{display:block;width:100%;filter:brightness(0) invert(1)}.login-brand span{display:block;color:#84aabc;font-size:11px;letter-spacing:3px;margin-top:5px}.login-card{background:#092338;border:1px solid #1b3d53;padding:30px;border-radius:14px;box-shadow:0 20px 90px #0002}.login-heading h1{font-size:25px;letter-spacing:-.6px;margin:7px 0 24px;font-weight:550}.login-eyebrow{font-size:9px;letter-spacing:2px;color:#6cb3b7}.login-card label{color:#afc7d6}.login-card input{background:#061b2c;border-color:#224458;font-size:13px;padding:12px}.login-password{display:flex;align-items:center;background:#061b2c;border:1px solid #224458;border-radius:6px;overflow:hidden}.login-password input{border:0;flex:1;min-width:0}.login-password button{border:0;background:none;padding:7px 11px;color:#82a3ba}.login-password svg{height:18px;width:18px}.login-submit{width:100%;margin-top:27px;padding:13px;font-size:12px;justify-content:space-between;background:#089797!important;border-color:#089797!important}.login-error{color:#f09d90;font-size:11px;line-height:1.6;margin-top:17px}.login-footer{display:block;text-align:center;margin-top:24px;color:#50788f;font-size:10px;letter-spacing:.4px}.client-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.client-card{background:var(--surface);border:1px solid var(--line);border-radius:11px;padding:22px}.client-card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:19px}.client-initial{display:grid;place-items:center;width:43px;height:43px;background:var(--accent-soft);color:var(--accent);font-size:19px;border-radius:10px}.client-card h2{font-size:17px}.client-card p{font-size:11px;margin:9px 0 23px}.client-card-bottom{border-top:1px solid var(--line);padding-top:16px}.users-panel{padding:0;overflow:hidden}.users-table{overflow:auto}.users-table td,.users-table th{padding:15px 20px}.users-table th{position:static}.users-table .btn{font-size:9px;min-height:29px;padding:7px 9px}.user-status{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:10px}.user-status i{height:5px;width:5px;background:var(--muted);border-radius:50%}.user-status.active i{background:var(--good)}.account-info{display:flex;align-items:center;gap:16px}.account-info .user-avatar{width:45px;height:45px;font-size:13px}.account-info p{margin:6px 0 0;font-size:12px}@media(max-width:1100px){.client-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:720px){.client-grid{grid-template-columns:1fr}.demo-toggle{font-size:0;gap:0}.demo-toggle .icon{height:16px;width:16px}.header-tools .user-avatar{display:grid;width:28px;height:28px}.header-tools{gap:5px}.header-tools .demo-badge{display:none}}

.detail-preferences{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0 12px;color:var(--muted);font-size:12px}.metric-label{display:flex;align-items:center;justify-content:space-between;gap:12px}.metric-star{display:grid;place-items:center;border:0;background:transparent;color:var(--muted);cursor:pointer;width:34px;height:34px;border-radius:8px;flex-shrink:0}.metric-star svg{width:21px;height:21px;stroke:currentColor;stroke-width:1.6;fill:none}.metric-star.selected{color:#dfa924}.metric-star.selected svg{fill:currentColor}.metric-star:hover,.metric-star:focus-visible{background:var(--line);outline:2px solid var(--accent);outline-offset:1px}.metric-star:disabled{opacity:.5;cursor:wait}.device-values{flex-wrap:wrap}.device-values>div{min-width:85px}
/* Operations boards and RTSP viewers */
.board-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 22px}.board-tabs{display:flex;gap:8px;flex-wrap:wrap}.board-grid{display:grid;grid-template-columns:repeat(var(--board-columns,3),minmax(0,1fr));gap:20px;align-items:stretch}.board-cell{min-width:0;position:relative;padding-top:30px}.board-cell>.device-card,.board-cell>.metric-widget,.board-cell>.site-tile,.board-cell>.camera-tile{height:100%;min-height:230px}.board-item-tools{position:absolute;right:3px;top:0;display:flex;gap:2px}.board-item-tools .icon-btn{width:27px;height:26px;font-size:17px;color:var(--muted)}.board-item-tools .icon-btn:disabled{opacity:.25}.metric-widget,.site-tile,.camera-tile{border:1px solid var(--line);border-radius:14px;background:var(--surface);padding:23px;box-shadow:var(--shadow);display:flex;flex-direction:column;justify-content:space-between;gap:18px}.widget-title{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px}.widget-title b{overflow-wrap:anywhere}.widget-title .icon{color:var(--accent)}.widget-value{font-size:42px;letter-spacing:-1.5px;font-weight:550;line-height:1.2}.widget-value small{font-size:15px;font-weight:400;letter-spacing:0;color:var(--muted)}.widget-source{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:10px;color:var(--muted);border-top:1px solid var(--line);padding-top:14px}.widget-source .text-btn{font-size:11px;max-width:75%;overflow:hidden;text-overflow:ellipsis}.meter-bar{height:15px;background:var(--line);border-radius:10px;overflow:hidden}.meter-bar i{display:block;height:100%;background:linear-gradient(90deg,#058f94,#32d1c5);border-radius:10px;transition:width .4s}.meter-labels{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);margin-top:-10px}.gauge-widget{width:100%;height:145px;overflow:visible}.gauge-track,.gauge-progress{fill:none;stroke:var(--line);stroke-width:13;stroke-linecap:round}.gauge-progress{stroke:var(--accent)}.gauge-needle{stroke:var(--ink);stroke-width:3;stroke-linecap:round}.gauge-widget text{fill:var(--muted);font-size:10px}.gauge-value{font-size:30px;text-align:center;margin-top:-10px}.percent-widget{margin:auto;display:grid;place-items:center;width:132px;height:132px;border-radius:50%;background:conic-gradient(var(--accent) var(--percent),var(--line) 0);position:relative}.percent-widget:before{content:'';position:absolute;inset:10px;background:var(--surface);border-radius:50%}.percent-widget strong{position:relative;font-size:35px;font-weight:550}.percent-widget small{font-size:15px}.percent-caption{text-align:center;font-size:10px;color:var(--muted)}.stale-widget .widget-value{color:var(--muted)}.site-tile>strong{font-size:52px;font-weight:500;letter-spacing:-2px}.site-tile>strong small{font-size:26px;color:var(--muted)}.site-tile>span{color:var(--muted);font-size:11px}.site-popup-stats{display:flex;flex-wrap:wrap;gap:9px;margin:18px 0}.camera-list{margin:18px 0}.camera-list .event-row{gap:15px;flex-wrap:wrap}.camera-list .event-row b{flex:1}.video-stage{aspect-ratio:16/9;display:grid;place-items:center;background:#030a10;border:1px solid var(--line);border-radius:10px;overflow:hidden;color:#b4ccd8;min-height:120px;position:relative}.video-stage video{width:100%;height:100%;max-height:70vh;object-fit:contain}.video-play{border:1px solid #446172;background:#10283c;color:#deeff7;border-radius:9px;display:flex;align-items:center;gap:9px;padding:12px 16px;cursor:pointer}.video-status{text-align:center;padding:24px;line-height:1.6;font-size:12px}.video-popup{width:100%;margin-top:20px}.video-alarm{background:var(--accent-soft);padding:14px;border-left:3px solid var(--red);display:flex;align-items:center;gap:12px;margin:10px 0}.camera-tile small{font-size:11px;color:var(--muted)}.camera-map-row{display:flex;align-items:center;justify-content:space-between;gap:5px}.camera-map-row .text-btn{font-size:10px;max-width:85%;overflow:hidden;text-overflow:ellipsis}.camera-pin{border-color:var(--accent);background:var(--accent-soft);z-index:5}.site-map-pin{background:var(--surface);border-color:var(--accent);z-index:7}.all-sites-toggle{display:flex!important;align-items:center;gap:6px;margin:0!important;font-size:10px!important;white-space:nowrap}.all-sites-toggle input{width:auto!important;margin:0!important}.site-checks{display:flex;flex-direction:column;gap:5px;max-height:250px;overflow:auto}.site-checks input{width:auto}.board-tv .board-cell{padding-top:0}.tv .board-grid{gap:24px}.tv .metric-widget{min-height:300px}.tv .widget-value{font-size:62px}.tv .widget-title{font-size:18px}.tv .gauge-widget{height:195px}.tv .gauge-value{font-size:42px}.tv .widget-source{font-size:12px}.tv .board-cell>.device-card{height:100%}@media(max-width:1150px){.board-grid{grid-template-columns:repeat(min(var(--board-columns,3),2),minmax(0,1fr))}.drawing-toolbar{flex-wrap:wrap}}@media(max-width:720px){.board-grid{grid-template-columns:1fr}.board-toolbar{align-items:flex-start;flex-direction:column}.board-toolbar>.actions{align-self:flex-end}.metric-widget,.site-tile,.camera-tile{padding:20px}.widget-value{font-size:39px}.spatial-section .mode-switch{margin-top:12px}.drawing-toolbar>.actions{flex-wrap:wrap}.camera-list .event-row{gap:8px}}
/* Final demo hierarchy, vector assets and independent geographic canvas */
:root{--alarm-bg:#fff0eb;--alarm-line:#e87563;--ack-bg:#fff7df;--ack-line:#d6ac43}:root[data-theme=dark]{--alarm-bg:#3c2029;--alarm-line:#e98278;--ack-bg:#302b1c;--ack-line:#c5a34d}.vector-art{background:transparent!important}.vector-art img{width:100%;height:100%;object-fit:contain;max-height:none!important}.device-top .vector-art{width:68px;height:76px}.device-identity{min-width:0;flex:1}.device-identity h3{font-size:18px;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.35;letter-spacing:-.3px}.device-identity>span{font-size:11px}.device-card.event-active{background:var(--ack-bg);border:1px solid var(--ack-line)}.device-card.event-unack{background:var(--alarm-bg);border:2px solid var(--alarm-line);box-shadow:0 5px 24px #b9433020}.device-alarm-strip{display:flex;align-items:center;gap:8px;margin:-3px 0 18px;font-size:12px;color:var(--red);flex-wrap:wrap}.device-alarm-strip .btn{margin-left:auto;font-size:12px;background:var(--red);color:#111d2b;border:0;font-weight:650}.device-alarm-strip>span{margin-left:auto;color:var(--muted);font-size:11px}.alarm-list{display:flex;flex-direction:column;gap:18px;margin-bottom:30px}.alarm-card{padding:25px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}.alarm-card.alarm-active{background:var(--ack-bg);border-color:var(--ack-line)}.alarm-card.alarm-active.alarm-unack{background:var(--alarm-bg);border:2px solid var(--alarm-line);box-shadow:0 5px 25px #b9433020}.alarm-card.alarm-unack:not(.alarm-active){border-color:var(--ack-line);background:var(--ack-bg)}.alarm-card-head{display:flex;align-items:center;gap:18px}.alarm-card-head .device-art{width:63px;height:70px;flex-shrink:0}.alarm-card-head>div:nth-child(2){flex:1;min-width:0}.alarm-card-head h2{font-size:23px;margin:0 0 6px;overflow-wrap:anywhere;line-height:1.2}.alarm-card-head>div>span{color:var(--muted);font-size:12px}.alarm-message{font-size:18px;line-height:1.6;margin:20px 0;overflow-wrap:anywhere;font-weight:500}.alarm-card-bottom{display:flex;justify-content:space-between;align-items:center;gap:15px;flex-wrap:wrap}.alarm-card-bottom time{font-size:12px;color:var(--muted)}.alarm-card-bottom .btn.primary{font-size:15px;min-height:48px;padding:12px 22px;background:var(--red);border-color:transparent;color:#132231;font-weight:700}.acknowledged-mark{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted)}.rule-card{padding:18px 22px;overflow-x:auto}.rule-card.rule-active{background:var(--alarm-bg);border:1px solid var(--alarm-line)}.rule-line{display:flex;align-items:center;gap:18px;flex-wrap:nowrap;min-width:max-content;white-space:nowrap}.rule-line>.icon{width:18px;flex-shrink:0;color:var(--muted)}.rule-device{display:flex;align-items:center;gap:13px;min-width:210px;flex:1}.rule-device .device-art{width:49px;height:58px;flex-shrink:0}.rule-device strong{font-size:18px;line-height:1.4;font-weight:650}.rule-device small{display:block;font-size:11px;margin-top:4px;color:var(--muted)}.rule-condition{display:flex;flex-direction:column;gap:6px;min-width:150px}.rule-condition>span{font-size:12px;color:var(--muted)}.rule-condition strong{font-size:20px;font-weight:600}.rule-action{display:flex;align-items:center;gap:9px;font-size:13px}.rule-action .icon{color:var(--red)}.rule-line>.switch{margin-left:auto;flex-shrink:0}.gateway-copy{display:flex;align-items:center;gap:8px;margin-bottom:15px;background:var(--surface-2);border:1px solid var(--line);border-radius:8px;padding:6px}.gateway-copy input{border:0;background:transparent!important;min-width:0;flex:1;margin:0!important;font:12px ui-monospace,SFMono-Regular,Menlo,monospace;padding:10px;color:var(--ink)}.gateway-copy>.btn{flex-shrink:0;gap:7px;font-size:11px;margin:0}.connection-options{display:flex;gap:8px 15px;flex-wrap:wrap;padding:6px 0 18px;color:var(--muted);font-size:10px}.gis-board{background:var(--surface-2)}#local-map-layer{position:absolute;inset:0;pointer-events:none;background:var(--surface-2)}.local-grid-lines{fill:none;stroke:var(--line);stroke-width:1}.local-grid-labels text{fill:var(--muted);font:10px ui-monospace,monospace}.local-cross{stroke:var(--accent);stroke-width:1.6}.local-north{fill:var(--accent);font-size:15px;font-weight:600}.map-attribution{background:var(--surface);color:var(--muted);padding:5px 8px}.gis-board select{max-width:150px}.drawing-toolbar .actions>select{font-size:10px;margin:0;padding:7px}.tv .device-identity h3{font-size:23px}@media(max-width:950px){.device-identity h3{font-size:17px}.device-top .vector-art{width:55px;height:65px}.rule-line{gap:14px}.alarm-card{padding:20px}}@media(max-width:720px){.alarm-card-head{gap:11px;flex-wrap:wrap}.alarm-card-head h2{font-size:20px}.alarm-card-head>.pill{margin-left:auto}.alarm-message{font-size:16px}.alarm-card-bottom .actions{width:100%;justify-content:flex-end}.gateway-copy>.btn{font-size:10px;padding:8px}.gateway-copy input{font-size:11px}.device-identity h3{font-size:17px}.rule-card{padding:15px}.rule-device strong{font-size:17px}}
.widget-source .text-btn{font-size:13px;font-weight:600}.rule-card::-webkit-scrollbar{height:7px}.rule-card::-webkit-scrollbar-thumb{background:var(--line);border-radius:8px}
.vector-art img{filter:none!important;mix-blend-mode:normal!important;opacity:1!important}
/* Bounded SVG illustrations: no legacy photo crops or magnification */
.vector-art{display:flex!important;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;box-sizing:border-box}.vector-art img{display:block!important;position:static!important;inset:auto!important;transform:none!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;margin:0!important}.catalog-card .vector-art{width:100%;height:160px;padding:12px}.device-top .vector-art{width:64px;height:72px;padding:3px}.detail-heading .vector-art{width:100px;height:112px;padding:4px}.placement-list .vector-art{width:34px;height:42px;padding:0}.rule-device .vector-art{width:48px;height:58px;padding:0}.alarm-card-head .vector-art{width:63px;height:70px;padding:2px}.tv .device-top .vector-art{width:88px;height:96px}
.report-filter-panel{margin-bottom:20px}.report-filter-top{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:22px}.report-filter-top h2{font-size:19px;margin:0 0 6px}.report-filter-top span{font-size:11px;color:var(--muted)}.report-filter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 18px}.report-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:16px}.report-choice-grid h3{font-size:12px}.report-choices{display:flex;gap:8px;flex-wrap:wrap;max-height:190px;overflow:auto}.report-choices>label{display:flex;align-items:center;gap:10px;border:1px solid var(--line);background:var(--surface-2);border-radius:8px;padding:10px 12px;margin:0;cursor:pointer;flex:1;min-width:160px;font-size:12px;color:var(--ink)}.report-choices input{width:auto;margin:0;accent-color:var(--accent)}.report-choices small{display:block;color:var(--muted);font-size:9px;margin-top:5px}.report-filter-bottom{display:flex;justify-content:flex-end;align-items:center;gap:18px;margin-top:22px}.report-filter-bottom>span{color:var(--amber);font-size:11px}#report-status{color:var(--red);font-size:12px;padding:0 0 12px}.report-period{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:12px 0 18px}.report-period>b{font-size:14px}.report-period>span{font-size:11px;color:var(--muted)}.report-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}.report-kpis>div{background:var(--surface);border:1px solid var(--line);border-radius:11px;padding:18px 22px}.report-kpis span{color:var(--muted);font-size:11px;display:block}.report-kpis strong{font-size:33px;font-weight:550;display:block;margin-top:10px}.report-location-note{font-size:11px;color:var(--muted);line-height:1.6;margin:10px 0 20px}.report-chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:0 0 24px}.report-chart-card{min-width:0}.report-chart-card h2{font-size:16px}.report-chart-card svg{width:100%;height:auto;display:block;overflow:visible}.report-chart-gridlines{stroke:var(--line);fill:none;stroke-width:1}.report-chart-axis text{font-size:11px;fill:var(--muted)}.report-legend{display:flex;gap:13px;flex-wrap:wrap;padding-top:12px}.report-legend>span{display:grid;grid-template-columns:10px 1fr;column-gap:7px;font-size:10px}.report-legend i{width:8px;height:8px;border-radius:50%;display:inline-block;margin-top:2px}.report-legend small{grid-column:2;font-size:9px;color:var(--muted);margin-top:4px}.report-table-panel>.section-head{flex-wrap:wrap;gap:10px}.report-table-panel>.section-head>span{font-size:10px;color:var(--muted)}.report-table-scroll{overflow:auto}.report-table{width:100%;border-collapse:collapse;font-size:11px;white-space:nowrap}.report-table th{text-align:left;color:var(--muted);font-weight:500;padding:13px 12px;border-bottom:1px solid var(--line)}.report-table td{padding:14px 12px;border-bottom:1px solid var(--line)}.report-table td small{display:block;font-size:9px;color:var(--muted);margin-top:5px}.report-table td b{font-size:12px;font-weight:600}@media(max-width:1100px){.report-chart-grid{grid-template-columns:1fr}}@media(max-width:720px){.catalog-card .vector-art{height:130px;padding:10px}.device-top .vector-art{width:55px;height:64px}.report-filter-top,.report-period{align-items:flex-start;flex-direction:column}.report-filter-grid{grid-template-columns:1fr 1fr;gap:0 12px}.report-choice-grid{grid-template-columns:1fr}.report-kpis{grid-template-columns:1fr 1fr;gap:10px}.report-kpis>div{padding:15px}.report-filter-top>.actions{flex-wrap:wrap}.report-choices>label{min-width:135px}}
@media print{body{background:white!important;color:#172a38!important}aside,header,.page-title>.actions,#report-filter-panel,#report-status{display:none!important}main{margin:0!important}#content{padding:0!important}.report-chart-grid{grid-template-columns:1fr!important}.report-chart-card,.report-kpis>div,.report-table-panel{break-inside:avoid;background:white!important;border-color:#ccd8df!important;box-shadow:none!important;color:#172a38!important}.report-chart-axis text,.report-period span,.report-kpis span,.report-table th,.report-table small,.report-legend small{fill:#506777!important;color:#506777!important}.report-chart-gridlines{stroke:#dce4e9!important}.report-table-scroll{overflow:visible!important}.report-table{white-space:normal}.report-legend{color:#172a38!important}}
.report-advanced{border-top:1px solid var(--line);padding-top:14px;margin-top:12px}.report-advanced>summary{cursor:pointer;color:var(--ink);font-size:12px;font-weight:600;padding:4px 0}.report-advanced>summary>span{float:right;color:var(--muted);font-size:10px;font-weight:400}.report-filter-grid label{margin-top:6px}.report-filter-grid input,.report-filter-grid select{margin-bottom:8px}.report-filter-top{margin-bottom:12px}.report-filter-bottom{margin-top:15px}.report-chart-card{padding:20px}

/* Keep every navigation entry reachable on short screens and with browser zoom. */
aside{overflow:hidden}.brand,.workspace-switch,.nav-label,.sidebar-bottom{flex-shrink:0}#nav{flex:1 1 0;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#31536a transparent}#nav::-webkit-scrollbar{width:5px}#nav::-webkit-scrollbar-thumb{background:#31536a;border-radius:6px}

.catalog-model-line{display:flex;align-items:center;justify-content:space-between;gap:9px;flex-wrap:wrap}.compatible-badge{display:inline-flex;align-items:center;gap:4px;font-size:10px;font-weight:600;color:var(--accent);white-space:nowrap}.compatible-badge .icon{width:13px;height:13px}.compatibility-scope{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0;color:var(--muted);font-size:11px}.compatibility-health-title{margin:23px 0 12px}.catalog-card .capabilities{align-content:start}.catalog-card>.text-btn{margin-top:auto;padding-top:15px}

.health-extra{display:flex;gap:18px;align-items:center;flex-wrap:wrap;margin:0 0 17px;color:var(--muted)}.health-extra>span{display:inline-flex;align-items:center;gap:7px}.health-extra .icon{width:16px;height:16px;color:var(--accent)}.health-extra strong{font-size:16px;color:var(--ink);font-weight:550}.health-extra small{font-size:10px;margin-left:4px;color:var(--muted)}

.metric-stale>strong,.metric-stale>b{color:var(--amber)}.metric-timestamp{display:block;color:var(--muted);font-size:10px;margin-top:9px}.variable-condition{display:block;color:var(--muted);font-size:10px;margin-top:4px}
