:root{color-scheme:dark;--bg:#0a101b;--panel:#111a29;--panel2:#151f30;--border:#243044;--muted:#8d9db4;--text:#e6edf6;--accent:#58d9bf;--accent-bg:#123c36;--red:#ff7383;--yellow:#f5c46c;--blue:#78b8fa;--sidebar:236px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}[hidden]{display:none!important}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer;border:1px solid var(--border);border-radius:8px;background:#182338;color:var(--text);padding:10px 15px;font-size:.875rem;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:background .15s}button:hover{background:#23324b}button:disabled{opacity:.55;cursor:wait}button.primary{background:var(--accent);border-color:var(--accent);color:#062e26}button.primary:hover{background:#7ce6d0}.danger{color:var(--red)}.secondary{background:transparent}.wide{width:100%}.icon-button{width:34px;height:34px;padding:0;background:transparent;border-color:transparent;font-size:1.2rem}.icon-button:hover{border-color:var(--border)}.brand{display:flex;align-items:center;gap:11px;font-weight:750;font-size:1.35rem;letter-spacing:-.5px}.brand-icon{display:grid;place-items:center;width:37px;height:39px;border-radius:10px;background:var(--accent);color:#083b31;font-weight:900;font-size:1.6rem}.brand-sub{display:block;font-size:.56rem;color:var(--muted);letter-spacing:1.4px;margin-top:5px;font-weight:500}.eyebrow{font-size:.75rem;letter-spacing:1.9px;font-weight:700;color:var(--accent)}h1,h2,h3,p{margin-top:0}h1{font-size:1.85rem;letter-spacing:-.8px;margin-bottom:9px}h2{font-size:1.25rem;letter-spacing:-.35px;margin-bottom:8px}h3{font-size:1rem;margin-bottom:8px}p{line-height:1.65}.muted,.subtle{color:var(--muted)}.subtle{font-size:.8rem}.mono{font-family:"SFMono-Regular",Consolas,monospace;font-size:.86rem}.error{color:var(--red);font-size:.875rem;min-height:1em}.login-screen{display:grid;grid-template-columns:1.1fr 1fr;min-height:100vh}.login-art{display:flex;flex-direction:column;padding:52px 10%;background:radial-gradient(ellipse at 30% 60%,#13313c 0,transparent 65%),#0c1723;border-right:1px solid var(--border);justify-content:space-between}.login-copy{padding:70px 0}.login-copy h1{font-size:3.2rem;line-height:1.1;margin-top:22px;letter-spacing:-1.9px}.login-copy p{color:#a9b8c8;font-size:1.05rem}.login-copy svg{max-width:450px;margin-top:30px}.login-panel{display:grid;place-items:center;padding:30px}.login-panel form{width:100%;max-width:370px}.login-panel h2{font-size:1.8rem;margin-top:18px}.login-panel label{margin-top:24px}.login-note{font-size:.8rem;color:var(--muted);text-align:center;margin-top:24px}label{display:flex;flex-direction:column;gap:8px;font-size:.875rem;color:#becadd;font-weight:500}input,select,textarea{width:100%;background:#0c1421;border:1px solid #2d3b50;color:var(--text);border-radius:7px;padding:11px 12px;font-size:.9rem;min-height:43px}input:focus,select:focus,textarea:focus{outline:2px solid #58d9bf55;border-color:var(--accent)}input::placeholder,textarea::placeholder{color:#61728b}select{appearance:none;padding-right:35px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%2393a4bc' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 13px center;background-size:11px}textarea{resize:vertical;min-height:90px}.app{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:#0d1522;border-right:1px solid #1d293c;display:flex;flex-direction:column;padding:28px 16px;z-index:30}.sidebar .brand{padding-left:10px}.nav-label{font-size:.65rem;letter-spacing:1.5px;color:#71849e;margin:40px 0 13px 14px}nav{display:flex;flex-direction:column;gap:6px}nav button{border:0;background:transparent;justify-content:flex-start;gap:13px;color:#9baec5;font-weight:500;height:45px;padding:0 14px;text-align:left}nav button svg{width:19px;height:19px;opacity:.8}nav button.active{background:#17332f;color:#7be2cb}nav button:hover{background:#192536}nav button.active:hover{background:#1b3e36}nav .nav-count{margin-left:auto;background:#44262f;color:#ff9aa6;padding:2px 6px;border-radius:5px;font-size:.75rem}.sidebar-bottom{margin-top:auto;padding-top:40px}.external{display:flex;justify-content:space-between;color:#8da3bf;font-size:.85rem;padding:15px}.external:hover{color:var(--text)}.account{border-top:1px solid var(--border);padding-top:22px;display:flex;align-items:center;gap:10px}.avatar{width:34px;height:34px;background:#24344e;color:#bfd1e8;display:grid;place-items:center;border-radius:50%;font-size:.8rem}.account strong{font-size:.85rem;display:block}.account small{font-size:.7rem;color:var(--muted)}.account button{margin-left:auto}.workspace{margin-left:var(--sidebar);min-width:0}.topbar{height:73px;display:flex;align-items:center;justify-content:space-between;padding:0 34px;border-bottom:1px solid #1d293c;background:#0a111e}.breadcrumb{font-size:.8rem;color:#7b8da7}.breadcrumb span{padding:0 14px;color:#42536e}.breadcrumb b{font-weight:500;color:#c5d1df}.topbar-right{display:flex;gap:20px;align-items:center;font-size:.75rem}main{padding:32px 34px 20px;min-height:calc(100vh - 119px);max-width:1800px;margin:auto}.footer{padding:12px 34px 22px;display:flex;justify-content:space-between;color:#60748f;font-size:.65rem;letter-spacing:.5px}.footer b{font-weight:500;color:#8398b3;margin-left:4px}.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:27px}.page-head p{margin-bottom:0;color:var(--muted);font-size:.9rem}.page-head .actions{display:flex;gap:9px}.page-head .eyebrow{display:block;margin-bottom:10px;font-size:.65rem}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:24px}.stat{background:var(--panel);border:1px solid var(--border);border-radius:11px;padding:21px 22px;position:relative;overflow:hidden}.stat .stat-label{font-size:.8rem;color:#9caec4;display:flex;align-items:center;gap:8px}.stat .stat-label svg{width:17px;height:17px}.stat .value{font-size:2.2rem;font-weight:650;letter-spacing:-1px;display:block;margin:14px 0 8px}.stat small{color:#7e92ae;font-size:.75rem}.stat .accent{color:var(--accent)}.stat .critical{color:var(--red)}.stat .tinybar{position:absolute;right:20px;bottom:25px;display:flex;gap:4px;align-items:flex-end;height:25px}.panel{border:1px solid var(--border);background:var(--panel);border-radius:11px;overflow:hidden;margin-bottom:20px}.panel-head{padding:19px 22px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--border);gap:12px}.panel-head h2{font-size:.95rem;margin:0}.panel-head .subtle{font-size:.75rem}.panel-body{padding:22px}.grid-main{display:grid;grid-template-columns:1.55fr 1fr;gap:20px}.status{display:inline-flex;align-items:center;gap:6px;border-radius:5px;padding:4px 8px;font-size:.7rem;font-weight:650;white-space:nowrap;text-transform:uppercase;letter-spacing:.3px;background:#253044;color:#a1afc1}.status:before{content:'';width:5px;height:5px;border-radius:50%;background:currentColor}.status.up,.status.met{background:#14382f;color:#6eddb6}.status.down,.status.critical,.status.breached{background:#3e2530;color:#ff8d9b}.status.degraded,.status.warning{background:#3c3220;color:#f5c46c}.status.unknown,.status.insufficient_data{background:#253146;color:#9eb3d0}.status.paused{background:#282e3a;color:#929eb2}.row-list{padding:0 20px}.list-item{padding:17px 0;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #202d41;gap:15px}.list-item:last-child{border:0}.list-item strong{font-size:.88rem;display:block;margin-bottom:5px}.list-item small{display:block;margin-top:5px;font-size:.75rem;color:var(--muted)}.empty{padding:50px 24px;text-align:center;color:var(--muted)}.empty svg{width:42px;height:42px;color:#4b687e;margin-bottom:18px}.empty h3{color:#d8e5f3;font-size:1.05rem}.empty p{font-size:.875rem;max-width:420px;margin:10px auto 20px}.toolbar{display:flex;gap:12px;align-items:center;margin-bottom:16px;flex-wrap:wrap}.toolbar input{max-width:330px}.toolbar select{width:auto;min-width:160px}.toolbar .push{margin-left:auto}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:.85rem}th{text-align:left;color:#859ab5;background:#111c2c;font-size:.7rem;font-weight:600;letter-spacing:.7px;text-transform:uppercase;padding:14px 18px;border-bottom:1px solid var(--border);white-space:nowrap}td{padding:17px 18px;border-bottom:1px solid #202c40;vertical-align:middle}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#162135}td strong{font-size:.86rem;display:block;font-weight:600}td small{display:block;margin-top:5px;color:var(--muted);font-size:.75rem}.row-actions{display:flex;gap:5px;justify-content:flex-end}.row-actions button{font-size:.75rem;padding:6px 9px;white-space:nowrap}.text-button{background:none;border:0;color:var(--accent);padding:0;font-weight:500;text-align:left}.status-line{height:6px;background:#223049;border-radius:6px;overflow:hidden;display:flex}.status-line span{height:100%;display:block}.legend{display:flex;gap:18px;color:#8fa3bd;font-size:.75rem;align-items:center;flex-wrap:wrap}.legend i{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:6px}.notice{border:1px solid #28434c;background:#102b31;border-radius:8px;padding:14px 16px;font-size:.82rem;color:#a5d6d3;line-height:1.6;margin-bottom:18px}.notice.warn{background:#29231c;border-color:#51412a;color:#e4c397}.map-wrap{position:relative;height:calc(100vh - 255px);min-height:450px;background:#0b1422;border-radius:10px;overflow:hidden}.map-wrap>svg{width:100%;height:100%;touch-action:none}.map-controls{position:absolute;left:18px;bottom:18px;display:flex;gap:6px;z-index:2}.map-controls button{background:#142035e8;border-color:#35415a}.map-info{position:absolute;right:18px;bottom:20px;background:#121c2ee8;padding:10px 14px;border-radius:7px;color:#8fa6c2;font-size:.75rem;z-index:2}.map-empty{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none}.map-empty .empty{pointer-events:auto}.topo-node{cursor:grab}.topo-node:active{cursor:grabbing}.topo-node.selected rect{stroke:#58d9bf!important;stroke-width:2}.topo-link{cursor:pointer}.topo-label{pointer-events:none}.topo-dragline{pointer-events:none;stroke:#58d9bf;stroke-width:2;stroke-dasharray:7 5}.leaflet-container{background:#162332!important;font-family:inherit!important}.leaflet-tile-pane{filter:brightness(.68) saturate(.55)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#142236;color:#e2eefb}.leaflet-control-attribution{background:#112031df!important;color:#9bb1cb!important;font-size:10px!important}.leaflet-control-attribution a{color:#acd8e0!important}.leaflet-popup-content button{margin-top:10px}.leaflet-popup-content{line-height:1.7!important;font-size:14px!important}dialog{position:fixed;border:1px solid #34435a;border-radius:14px;background:#111b2b;color:var(--text);padding:0;width:min(740px,calc(100vw - 32px));max-height:90vh;box-shadow:0 30px 100px #0008}dialog::backdrop{background:#030a15bb;backdrop-filter:blur(5px)}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;padding:25px 26px 18px;border-bottom:1px solid var(--border)}.modal-head h2{margin-top:8px;margin-bottom:0;font-size:1.4rem}.modal-head .eyebrow{font-size:.6rem}#modal-body{padding:24px 26px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-grid .full{grid-column:1/-1}.form-section{font-size:.7rem;letter-spacing:1.5px;text-transform:uppercase;color:#77b7c0;border-top:1px solid var(--border);padding-top:20px;margin-top:5px}.help{font-size:.75rem;font-weight:400;color:#8399b6;line-height:1.6}.check{display:flex;flex-direction:row;align-items:center;gap:10px;font-size:.85rem}.check input{width:17px;height:17px;min-height:0;accent-color:var(--accent)}.form-actions{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--border);padding-top:22px;margin-top:25px}.form-actions .danger{margin-right:auto}.inline-input{display:flex;gap:8px}.inline-input input{flex:1;min-width:0}.inline-input button{white-space:nowrap}.detail-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:20px 0}.detail-grid .metric{padding:15px;background:#0b1422;border:1px solid var(--border);border-radius:8px}.metric small{font-size:.75rem;color:var(--muted)}.metric b{font-size:1.3rem;display:block;margin-top:10px;font-weight:550}.chart{width:100%;height:190px;display:block}.chart-label{font-size:.8rem;color:var(--muted);margin:20px 0 5px}.chart-meta{display:flex;justify-content:space-between;font-size:.7rem;color:#7990ad}.sla-summary{display:flex;align-items:center;gap:12px;font-size:.8rem;color:var(--muted)}.toasts{position:fixed;bottom:25px;right:25px;z-index:100;display:flex;flex-direction:column;gap:8px;max-width:400px}.toast{border:1px solid #2c5e55;background:#12352f;color:#c3f3e6;padding:15px 20px;border-radius:9px;box-shadow:0 8px 40px #0005;font-size:.88rem}.toast.error{background:#3e222c;border-color:#753845;color:#ffc3cc}.mobile-only{display:none}.health-mark{width:9px;height:9px;border-radius:50%;display:inline-block;margin-right:8px}.count-chip{padding:3px 8px;background:#23314a;border-radius:5px;font-size:.75rem;color:#97abc8}.settings-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:20px}.form-subtitle{color:var(--muted);font-size:.85rem;margin-bottom:22px}.detail-note{white-space:pre-wrap;line-height:1.7;color:#abbdd4;font-size:.9rem}.color-accent{color:var(--accent)}.color-red{color:var(--red)}.color-yellow{color:var(--yellow)}.chart-empty{height:150px;display:grid;place-items:center;color:var(--muted);font-size:.85rem}.pill{display:inline-block;font-size:.65rem;color:#9eafc7;background:#1e2b42;border-radius:4px;padding:3px 6px;margin-right:5px}.link-mode{border-color:var(--accent)!important;color:var(--accent)!important}.location-tag{font-size:.72rem;color:#8ea9c6;display:inline-flex;gap:4px;align-items:center}.nowrap{white-space:nowrap}
@media(min-width:1600px){main{padding:38px 48px}.topbar,.footer{padding-left:48px;padding-right:48px}.stats{gap:22px}}@media(max-width:1100px){:root{--sidebar:200px}.sidebar{padding:24px 10px}.sidebar .brand{font-size:1.15rem;padding-left:7px}.brand-sub{font-size:.5rem}main{padding:25px 22px}.topbar{padding:0 22px}.stats{gap:10px}.stat{padding:17px}.grid-main,.settings-grid{grid-template-columns:1fr}.topbar-right #clock{display:none}}@media(max-width:760px){:root{--sidebar:0px}.sidebar{transform:translateX(-100%);width:236px;transition:transform .2s}.sidebar.open{transform:none;box-shadow:20px 0 80px #0009}.mobile-only{display:inline-flex}.topbar{height:60px;padding:0 16px;gap:8px}.breadcrumb{margin-right:auto}.topbar-right{gap:8px}.topbar-right .status{font-size:.6rem}main{padding:24px 16px;min-height:calc(100vh - 105px)}h1{font-size:1.55rem}.stats{grid-template-columns:repeat(2,1fr)}.stat .value{font-size:1.8rem}.page-head{flex-direction:column;gap:18px}.page-head .actions{width:100%;flex-wrap:wrap}.page-head p{font-size:.82rem}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}.form-actions{flex-wrap:wrap}.detail-grid{gap:8px}.detail-grid .metric{padding:12px 9px}.metric b{font-size:1.1rem}.login-screen{grid-template-columns:1fr}.login-art{display:none}.login-panel{min-height:100vh;padding:32px}.footer{padding:10px 16px 18px;font-size:.6rem}.map-wrap{height:60vh;min-height:360px}.map-info{display:none}#modal-body{padding:20px}.modal-head{padding:22px 20px}.toolbar input{max-width:100%}.toolbar .push{margin-left:0}.toolbar label{flex:1;min-width:120px}.topbar .breadcrumb span{padding:0 7px}.row-actions{min-width:130px}.toasts{left:16px;right:16px;bottom:16px}.form-actions .danger{margin-right:0}.legend{gap:10px}}
/* CNMS workspace: neutral surfaces, clear hierarchy, dedicated network status colors. */
:root{color-scheme:light;--bg:#f5f6fa;--panel:#fff;--panel2:#f8f9fc;--border:#e5e8ef;--muted:#748096;--text:#202638;--accent:#7058d9;--accent-bg:#f0edfc;--red:#d84661;--yellow:#b88620;--blue:#477fd1;--sidebar:242px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
button{background:white;border-color:#dfe3eb;border-radius:8px;box-shadow:0 1px 2px #18213b04;font-size:.875rem}button:hover{background:#f3f1fc;border-color:#d4cdef}button.primary{background:#7459d9;border-color:#7459d9;color:#fff;box-shadow:0 3px 7px #7058d922}button.primary:hover{background:#6348c5}.icon-button{background:transparent;box-shadow:none}.icon-button:hover{background:#eeebf9}.brand-icon{background:#947cf0;color:#fff;border-radius:11px;font-size:2rem;font-weight:650;line-height:1}.brand{letter-spacing:-.5px;font-size:1.65rem}.brand-sub{letter-spacing:1.8px;font-size:.625rem;color:#8990a9}.eyebrow{font-size:.75rem;letter-spacing:1.6px;color:#827198}h1{font-size:1.9rem;letter-spacing:-.85px;font-weight:700}h2{font-weight:650}.muted,.subtle{color:var(--muted)}.subtle,.help{font-size:.8125rem}.error{color:var(--red)}label{color:#455066;font-size:.875rem}input,select,textarea{color:var(--text);background:#fff;border-color:#dce1ea;border-radius:8px;font-size:.9375rem;box-shadow:0 1px 2px #17203903}input:focus,select:focus,textarea:focus{outline-color:#a48bea50;border-color:#9378e9}input::placeholder,textarea::placeholder{color:#9aa3b4}.sidebar{background:#171b2b;border-color:#24283b;padding:30px 17px 22px;color:#edf0f8}.sidebar .brand{padding-left:14px}.nav-label{font-size:.625rem;margin:44px 0 14px 15px;color:#7a819d;letter-spacing:1.7px}nav{gap:5px}nav button{font-size:.875rem;color:#9da5bc;height:46px;padding-left:15px;box-shadow:none;border-radius:8px}nav button svg{width:19px;height:19px;opacity:1}nav button.active{background:#322c4d;color:#d3c5ff;box-shadow:inset 3px 0 #a98af6}nav button:hover{background:#23283b;color:#e8e3fc}nav button.active:hover{background:#3b325b}.sidebar-bottom{padding-top:30px}.workspace-note{display:flex;gap:11px;align-items:center;padding:14px 11px;margin-bottom:20px;background:#202538;border:1px solid #2c3146;border-radius:10px}.workspace-note-icon{display:grid;place-items:center;width:31px;height:31px;background:#35324e;color:#bba8f8;border-radius:8px;font-size:.875rem}.workspace-note b{font-size:.8125rem;font-weight:550;display:block}.workspace-note small{font-size:.75rem;color:#818ba6;display:block;margin-top:3px}.account{border-color:#30344a;padding-top:20px}.account strong{font-size:.875rem}.account small{font-size:.75rem;color:#8a94ac;text-transform:capitalize}.account .avatar{color:#e3dafa;background:#413858;width:36px;height:36px}.account .icon-button{color:#9c9fb5}.sidebar .icon-button:hover{background:#2c3044}.topbar{background:#fff;border-color:var(--border);height:74px;padding:0 36px}.breadcrumb{font-size:.8125rem;color:#8c95a6}.breadcrumb b{color:#455069;font-weight:500}.breadcrumb span{color:#c6ccda}.topbar-right{font-size:.75rem;gap:20px}main{padding:32px 36px 18px;max-width:1920px}.footer{color:#8b95a8;font-size:.6875rem;letter-spacing:.65px;padding:14px 36px 22px}.footer b{color:#79869c}.page-head{align-items:center;margin-bottom:25px}.page-head .eyebrow{font-size:.6875rem;color:#8d7c9f;margin-bottom:9px}.page-head p{font-size:.9375rem;color:#7b8599}.page-head .actions{flex-shrink:0}.actions button svg{width:16px;height:16px}.scope-bar{display:flex;align-items:center;gap:14px;padding:12px 15px;border:1px solid var(--border);border-radius:10px;background:#fff;margin:0 0 23px;min-height:58px}.scope-caption{display:flex;align-items:center;gap:8px;color:#717c92;font-size:.8125rem;white-space:nowrap}.scope-caption svg{width:16px;height:16px}.scope-chips{display:flex;gap:7px;align-items:center;flex-wrap:wrap;font-size:.8125rem}.scope-chip{color:#7355c5;background:#f0ebfc;border:1px solid #e7defb;padding:5px 9px;border-radius:5px;font-size:.75rem;font-weight:500}.scope-chip.neutral{background:#f6f7fa;color:#8590a5;border-color:#e9ebf2}.scope-change{margin-left:auto;font-size:.8125rem;border:0;background:transparent;color:#76618f;padding:6px 8px;white-space:nowrap;box-shadow:none}.stats{gap:18px;margin-bottom:25px}.stat{border-radius:12px;padding:20px 22px 21px;box-shadow:0 3px 7px #202c4803}.stat-top{display:flex;justify-content:space-between;align-items:center;gap:6px}.stat .stat-label{font-size:.8125rem;font-weight:500;color:#747d91;line-height:1.5}.stat-icon{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;flex-shrink:0}.stat-icon svg{width:18px;height:18px}.violet{background:#f0ebfc;color:#8b6cdd}.blue{background:#eaf1fc;color:#5789d5}.teal{background:#e9f6f3;color:#42a38d}.rose{background:#fcecf0;color:#e3839b}.stat .value{font-size:2.15rem;font-weight:650;color:#293047;margin:9px 0 7px;line-height:1.3}.stat small{font-size:.75rem;color:#8b94a7;line-height:1.5}.panel{background:#fff;border-color:#e4e7ef;border-radius:12px;box-shadow:0 3px 8px #212c4903;margin-bottom:22px}.panel-head{padding:18px 22px;border-bottom-color:#edf0f5;min-height:61px}.panel-head h2{font-size:.9375rem;color:#424b63;font-weight:650}.panel-head .text-button{font-size:.8125rem}.panel-head .subtle{font-size:.8125rem}.panel-body{padding:24px}.status{font-size:.6875rem;letter-spacing:.35px;border-radius:5px;font-weight:650;padding:4px 7px;background:#f0f3f8;color:#8191a8}.status.up,.status.met{color:#278b70;background:#e8f6ef}.status.down,.status.critical,.status.breached{color:#d9536a;background:#fdeef0}.status.degraded,.status.warning{color:#ad8228;background:#fbf4df}.status.unknown,.status.insufficient_data{color:#7d8ca5;background:#eef1f6}.status.paused{color:#9199a7;background:#f2f3f6}.topbar .status{background:transparent;font-size:.6875rem}.count-chip{background:#f0edf8;color:#8e79bc;font-size:.75rem;border-radius:6px}.empty{color:#8c96a9;padding:38px 24px}.empty svg{color:#afa4c9;width:36px;height:36px}.empty h3{color:#5c657b;font-weight:600;font-size:1rem}.empty p{font-size:.875rem}.text-button{color:#8064c1;border:0;background:transparent;box-shadow:none}.text-button:hover{color:#6245ac;background:transparent}.row-list{padding:0 22px}.list-item{border-color:#edf0f5;padding:18px 0}.list-item .text-button{font-size:.875rem;color:#4e5870}.list-item small{color:#939db0;font-size:.75rem}.latency-value{font-size:1.25rem;color:#4b5670;text-align:right;font-variant-numeric:tabular-nums}.toolbar{margin-bottom:18px}.toolbar input{max-width:360px}table{font-size:.875rem}th{background:#fafbfe;color:#919aae;border-color:#e9edf4;font-size:.6875rem;letter-spacing:.75px;padding:15px 20px}td{border-color:#edf0f5;color:#535f77;padding:18px 20px}td strong{color:#4b5670;font-size:.875rem}td small{color:#8c97aa;font-size:.75rem}tbody tr:hover{background:#fcfbff}.row-actions button{color:#7d6a9c;font-size:.75rem}.pill{background:#f0f1f8;color:#8c83a4;font-size:.6875rem}.notice{background:#f2f4fc;border-color:#e3e6f3;color:#727c97;font-size:.875rem}.notice.warn{background:#fff9eb;border-color:#f0e6ca;color:#a08047}.overview-map-grid{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(285px,1fr);gap:22px}.overview-map-grid>.panel{min-width:0}.dashboard-map{height:342px;min-height:342px;border-radius:0}.map-footnote{display:flex;align-items:center;gap:8px;font-size:.75rem;color:#939aab;padding:14px 22px;border-top:1px solid #edf0f5}.map-footnote>svg{width:15px;height:15px}.map-footnote>span{margin-left:auto}.map-footnote .legend{font-size:.75rem}.site-health-list{max-height:389px;overflow:auto;padding:1px 20px}.site-health-row{display:flex;width:100%;align-items:center;gap:12px;border:0;border-radius:0;border-bottom:1px solid #f0f1f6;padding:18px 0;text-align:left;box-shadow:none;background:white}.site-health-row:hover{background:#fcfbff}.site-health-row:last-child{border:0}.site-health-icon{width:34px;height:36px;display:grid;place-items:center;border-radius:8px;background:#f5f3fa;color:#a193bf;flex-shrink:0}.site-health-icon svg{width:18px;height:18px}.site-health-name{flex:1;min-width:0}.site-health-name b{font-size:.8125rem;font-weight:550;display:block;overflow-wrap:anywhere;color:#566078}.site-health-name small{font-size:.75rem;display:block;margin-top:5px;font-weight:400;color:#9ba4b6}.health-track{display:block;background:#eef1f5;height:4px;border-radius:3px;margin-top:10px;max-width:150px;overflow:hidden}.health-track i{display:block;height:4px;background:#6dbfa7;border-radius:3px}.site-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.dashboard-sites{padding:20px}.site-card{border:1px solid #e7eaf1;border-radius:11px;background:#fff;padding:20px;min-width:0}.site-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.site-card-icon{display:grid;place-items:center;width:37px;height:37px;border-radius:10px;background:#f1eef9;color:#a08acb}.site-card-icon svg{width:19px;height:19px}.site-title{font-size:1rem;color:#4d5870;font-weight:600;display:block;overflow-wrap:anywhere}.site-card p{font-size:.8125rem;color:#99a1b2;margin:8px 0 17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.site-card-meta{display:flex;justify-content:space-between;font-size:.75rem;color:#8995aa}.site-card-bottom{margin-top:18px;padding-top:14px;border-top:1px solid #eef0f5;display:flex;justify-content:space-between;align-items:center;color:#9a9fb0;font-size:.75rem}.site-card-bottom>span{display:flex;align-items:center;gap:5px}.site-card-bottom svg{width:13px;height:13px}.site-card-bottom button{font-size:.75rem}.dashboard-widgets{display:grid;grid-template-columns:1fr 1fr;gap:0 22px}.dashboard-widgets>.panel{min-width:0}.health-legend{margin-top:20px}.status-line{background:#eef1f7;height:7px}.legend{color:#8390a5;font-size:.8125rem}.map-wrap{border-radius:0}.map-controls button{color:#d8ddee}.map-info{font-size:.75rem}.mini-topology{height:280px;min-height:280px}.leaflet-container{background:#edf1f1!important}.leaflet-tile-pane{filter:saturate(.55) contrast(.94) brightness(1.04)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;color:#5e6980}.leaflet-popup-content-wrapper{border:1px solid #e0e4ed;box-shadow:0 5px 25px #27324920}.leaflet-popup-content{line-height:1.8!important;font-size:.875rem!important;min-width:190px}.leaflet-popup-content strong{font-size:1rem;color:#46516b}.leaflet-control-attribution{background:#ffffffd9!important;color:#8f9caf!important;font-size:10px!important}.leaflet-control-attribution a{color:#7d79a4!important}.leaflet-bar{border:1px solid #dfe3eb!important;box-shadow:0 2px 6px #26324c10!important}.leaflet-bar a{color:#81899e!important}.leaflet-tooltip{color:#657087;background:#fff;border:1px solid #e5e7ee;box-shadow:0 2px 10px #19233d10;font-size:13px}.site-pin{width:36px;height:36px;display:grid;place-items:center;border-radius:12px;background:#fff;color:var(--pin-color);box-shadow:0 3px 12px #212b4d2a;border:2px solid var(--pin-color);position:relative}.site-pin:after{content:'';position:absolute;bottom:-5px;left:12px;width:8px;height:8px;background:#fff;border-right:2px solid var(--pin-color);border-bottom:2px solid var(--pin-color);transform:rotate(45deg)}.site-pin svg{width:19px;height:19px}.map-popup-label{font-size:.6875rem;color:#a497ba;letter-spacing:.9px;margin-bottom:5px}.map-empty-message{position:absolute;z-index:400;left:50%;top:50%;transform:translate(-50%,-50%);padding:16px 22px;text-align:center;background:#ffffffed;border:1px solid #e5e7ee;border-radius:10px;box-shadow:0 6px 25px #1b244312;color:#7c859a;font-size:.875rem;width:min(360px,80%);pointer-events:none}.segmented{display:flex;padding:3px;background:#f1f2f8;border-radius:7px;gap:3px}.segmented button{font-size:.8125rem;padding:6px 14px;border:0;background:transparent;color:#a0a6b6;box-shadow:none}.segmented button.selected{background:white;color:#7e68a7;box-shadow:0 1px 4px #262e4510}dialog{background:#fff;border-color:#e0e3ed;box-shadow:0 25px 90px #20223735}dialog::backdrop{background:#20233677;backdrop-filter:blur(4px)}.modal-head{padding:24px 26px;border-color:#edf0f5}.modal-head .eyebrow{font-size:.6875rem}.modal-head h2{color:#3f4861;font-size:1.4rem}.form-section{font-size:.75rem;color:#9784b4;letter-spacing:1.3px}.help{color:#919aaf;font-size:.8125rem}.form-actions{border-color:#e8ebf2}.check{font-size:.875rem}.check input,.choice-card input{accent-color:#8d71d9}.form-subtitle{font-size:.9375rem}.choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0 22px}.choice-card{display:flex;flex-direction:row;align-items:center;gap:12px;padding:13px 15px;border:1px solid #e3e6ee;border-radius:8px;font-size:.875rem;cursor:pointer}.choice-card:has(input:checked){background:#f8f5ff;border-color:#d6c8f2}.choice-card input{width:17px;height:17px;min-height:0;margin:0;flex-shrink:0}.choice-card b{display:block;font-size:.875rem;font-weight:550}.choice-card small{font-size:.75rem;color:#a097af;display:block;margin-top:4px}.choices-disabled{opacity:.55}.scope-options{display:flex;flex-direction:column;gap:14px;margin:18px 0}.scope-options input{accent-color:#8c70d8}.site-detail-heading{display:flex;align-items:center;gap:15px;margin-bottom:20px}.site-detail-heading button{margin-left:auto}.metric b{color:#5c6580}.detail-grid .metric{background:#f8f9fd;border-color:#e9edf5}.metric small{color:#929caf;font-size:.8125rem}.detail-note{color:#7e899e}.chart-label{font-size:.875rem;color:#8692a6}.chart-meta{font-size:.75rem;color:#98a1b5}.toast{background:#fff;border-color:#d9e6de;color:#4a7665;box-shadow:0 6px 26px #29314719}.toast.error{background:#fff3f5;border-color:#f0cbd4;color:#bd5f73}.login-art{background:radial-gradient(ellipse at 35% 55%,#2d294d 0,transparent 70%),#171b2b;border-color:#272a3e;color:#f0eef8}.login-art .eyebrow{color:#af9de2}.login-copy p{color:#a2a4bd}.login-panel{background:#fafbfe}.login-panel h2{font-size:1.7rem}.login-note{font-size:.8125rem}.login-copy h1{font-size:3.5rem}.login-art .subtle{color:#757d98}
@media(min-width:1600px){main{padding:38px 46px}.topbar,.footer{padding-left:46px;padding-right:46px}.dashboard-map{height:380px;min-height:380px}.site-health-list{max-height:427px}}
@media(max-width:1200px){:root{--sidebar:210px}.sidebar{padding:28px 10px}.sidebar .brand{padding-left:12px}.brand-sub{font-size:.56rem}.overview-map-grid{grid-template-columns:minmax(0,1.5fr) minmax(255px,1fr)}.site-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stats{gap:12px}.stat{padding:17px}.stat-icon{width:29px;height:29px}.stat .stat-label{font-size:.75rem}.page-head .actions{flex-wrap:wrap}.stat small{font-size:.75rem}}
@media(max-width:1000px){main{padding:28px 24px}.topbar{padding:0 24px}.overview-map-grid{grid-template-columns:1fr}.site-health-list{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.site-health-row{min-width:0}.stats{grid-template-columns:repeat(2,1fr)}.page-head{align-items:flex-start}.page-head .actions{max-width:220px;justify-content:flex-end}.dashboard-widgets{grid-template-columns:1fr}.site-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){:root{--sidebar:0px}.sidebar{width:242px}.topbar{height:62px;padding:0 16px}.topbar-right{gap:6px}.topbar .status{font-size:.625rem}main{padding:25px 16px 16px}.page-head{gap:17px}.page-head .actions{max-width:none;justify-content:flex-start}.page-head p{font-size:.875rem}.scope-bar{gap:9px;padding:10px 12px;flex-wrap:wrap}.scope-caption{font-size:.75rem}.scope-change{font-size:.75rem}.scope-chips{max-width:100%}.scope-bar .scope-caption{display:none}.stats{gap:12px}.stat{padding:16px}.stat .value{font-size:1.9rem;margin:7px 0}.stat .stat-label{font-size:.75rem}.stat small{font-size:.6875rem}.dashboard-map{height:330px;min-height:330px}.panel-head{padding:17px}.panel-head h2{font-size:.9375rem}.dashboard-sites{padding:16px}.site-grid{gap:12px}.site-card{padding:16px}.site-card p{white-space:normal;min-height:2.6em;line-height:1.5}.site-card-meta{gap:6px;flex-wrap:wrap}.site-card-bottom{gap:8px;align-items:flex-start}.site-card-bottom>span{font-size:.6875rem}.site-title{font-size:.9375rem}.site-health-list{padding:0 17px;grid-template-columns:1fr}.map-footnote{padding:13px 16px;flex-wrap:wrap;line-height:1.5}.map-footnote>span{margin-left:0}.map-footnote .legend{gap:14px;font-size:.6875rem}.footer{padding:12px 16px 18px;font-size:.625rem;gap:12px;line-height:1.6}.choice-grid{grid-template-columns:1fr}.site-detail-heading{flex-wrap:wrap}.site-detail-heading button{margin-left:0}.login-copy h1{font-size:2.9rem}.login-panel{min-height:100vh}.login-panel label{font-size:.9375rem}.table-wrap{max-width:100%}.modal-head .eyebrow{font-size:.6875rem}}
@media(max-width:440px){.site-grid{grid-template-columns:1fr}.site-card p{min-height:0}.breadcrumb{font-size:.75rem}.stat-top{align-items:flex-start}.stat-icon{width:27px;height:27px}.topbar .status{font-size:.56rem}.scope-chip{font-size:.6875rem}}

.device-snmp{background:#faf9fe;border:1px solid #e8e3f3;border-radius:10px;padding:18px 20px}.device-snmp .form-section{border:0;padding:0;margin:0 0 18px}.device-snmp .help{margin:14px 0 0}.device-snmp .form-grid{gap:16px}@media(max-width:760px){.device-snmp{padding:17px 15px}}

.interface-description{color:#665b85;font-size:.875rem;line-height:1.55;overflow-wrap:anywhere;margin-top:9px}.interface-description:empty{display:none}select[name="if_index"]{min-width:0;text-overflow:ellipsis}#interfaces-help{margin-top:8px}

/* Keep the dropdown affordance visible in the light theme. */
select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%237b708f' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 13px center;background-size:11px}
/* Topology is an operator canvas, sized to the available viewport. */
body.topology-page{overflow:hidden}
.topology-page .workspace{height:100vh;height:100dvh;display:flex;flex-direction:column}
.topology-page .topbar{height:52px;min-height:52px;padding:0 20px}
.topology-page #content{flex:1;min-height:0;max-width:none;width:100%;margin:0;padding:8px 12px 12px;display:flex}
.topology-page .footer{display:none}
.topology-workspace{width:100%;min-width:0;min-height:0;display:flex;flex-direction:column;border:1px solid #dce1ec;border-radius:12px;overflow:hidden;background:white}
.topology-toolbar{display:flex;align-items:center;gap:16px;padding:10px 14px;flex-shrink:0;border-bottom:1px solid #e1e5ed}
.topology-toolbar h1{font-size:20px;letter-spacing:-.5px;white-space:nowrap;margin:0}
.topology-toolbar button{min-height:36px;font-size:14px;padding:7px 11px;border-radius:7px;white-space:nowrap}
.topology-scope{min-width:0;max-width:260px;background:#f6f5fa;color:#615576;border-color:#e6e1ee;font-weight:500}
.topology-scope svg{width:16px;height:16px;flex:none}
.topology-scope span:not(.scope-chevron){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.scope-chevron{margin-left:4px;color:#8c7ca3}
.topology-actions{display:flex;align-items:center;gap:7px;margin-left:auto}
#topology-canvas{flex:1;height:auto;min-height:0;border-radius:0;background:radial-gradient(ellipse at 50% 20%,#152238,#0b1422 75%)}
#topology-canvas>svg{display:block;cursor:grab}
#topology-canvas>svg:active{cursor:grabbing}
.topology-hud{position:absolute;inset:14px 16px auto;display:flex;align-items:center;justify-content:space-between;gap:12px;pointer-events:none;color:#b0bfd4}
.topology-hud .legend,.topology-count{padding:8px 11px;border-radius:7px;background:#101c2cdd;border:1px solid #27364c;font-size:13px}
.topology-hud .legend{color:#c0cce0;gap:14px}
.topology-count{white-space:nowrap}
.topology-page .map-controls{left:16px;bottom:16px;gap:6px}
.topology-page .map-controls button{font-size:14px;min-height:36px;background:#17263dea;color:#dbe6f6}
.topology-help{position:absolute;bottom:16px;right:16px;color:#aabbd3;font-size:13px;max-width:290px;border:1px solid #314158;border-radius:7px;background:#152238f5}
.topology-help summary{cursor:pointer;padding:9px 12px}
.topology-help p{margin:0;padding:0 14px 12px;line-height:1.8}
.topology-connect-hint{position:absolute;bottom:16px;left:50%;transform:translateX(-50%);padding:10px 14px;border:1px solid #9076d0;border-radius:7px;background:#34264aee;color:#efe5ff;font-size:13px;pointer-events:none;text-align:center}
.topology-expanded .sidebar,.topology-expanded .topbar{display:none}
.topology-expanded .workspace{margin-left:0}
.topology-expanded #content{padding:0}
.topology-expanded .topology-workspace{border:0;border-radius:0}
.topo-link{--link-color:#8297b6}
.topo-link.is-up{--link-color:#22c99b}
.topo-link.is-down{--link-color:#ff526c}
.topo-link.is-degraded{--link-color:#f3b850}
.topo-link-base{stroke:var(--link-color);fill:none;stroke-linecap:round}
.topo-link-hit,.topo-link-flow{fill:none}
.topo-link-flow{stroke:#b4ffe6;stroke-linecap:round;animation:link-flow 1.8s linear infinite;pointer-events:none}
.topo-link.is-down .topo-link-base{stroke-width:3}
.topo-link:hover .topo-link-base{stroke-width:4}
.topo-link:hover .topo-label rect{stroke:var(--link-color)}
@keyframes link-flow{to{stroke-dashoffset:-48}}
@media(prefers-reduced-motion:reduce){.topo-link-flow{animation:none}}
@media(max-width:1150px){.topology-toolbar{gap:9px;flex-wrap:wrap}.topology-toolbar h1{font-size:18px}.topology-scope{max-width:190px}.topology-actions{gap:5px}.topology-toolbar button{padding:7px 9px}}
@media(max-width:900px){.topology-toolbar .topology-scope{order:3;max-width:none;flex:1 1 100%;justify-content:flex-start}.topology-hud{inset:10px 12px auto;flex-wrap:wrap;gap:6px}.topology-hud .legend{gap:10px}.topology-count{font-size:12px;padding:5px 8px}.topology-connect-hint{bottom:64px;width:max-content;max-width:90%}}
@media(max-width:500px){.topology-page #content{padding:5px 6px 6px}.topology-expanded #content{padding:0}.topology-toolbar h1{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden}.topology-actions{width:100%;justify-content:space-between}.topology-toolbar{padding:8px;gap:6px}.topology-toolbar button{min-height:38px}.topology-page .map-controls{left:10px;bottom:10px}.topology-help{bottom:10px;right:10px}.topology-hud .legend{font-size:12px;padding:7px 8px}.topology-page .topbar{padding:0 12px}.topology-connect-hint{font-size:12px}}
dialog.device-discovery-modal{width:min(1180px,calc(100vw - 32px));max-height:94dvh}
.device-discovery-modal .modal-head{padding:20px 24px 16px}
.device-discovery-modal #modal-body{padding:20px 24px}
.device-discovery-modal .modal-head h2{font-size:24px}
.switch-context{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}
.switch-location{display:flex;align-items:center;gap:13px;min-width:0}
.switch-location>svg{width:40px;height:40px;padding:10px;flex:none;border-radius:10px;background:#eee9fa;color:#8062b4}
.switch-location strong{display:block;font-size:17px;font-weight:650}
.switch-location small{display:block;font-size:13px;color:#7b8599;margin-top:5px}
.switch-context-actions{display:flex;gap:8px}
.switch-context-actions button{font-size:14px}
.switch-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:20px}
.switch-metrics>div{background:#f6f7fb;border:1px solid #e7eaf2;border-radius:9px;padding:14px 18px}
.switch-metrics b{display:block;font-size:27px;line-height:1.2;letter-spacing:-.7px;color:#303950}
.switch-metrics b.good{color:#139b77}
.switch-metrics span{display:block;font-size:13px;margin-top:6px;color:#788297}
.switch-face{border:1px solid #344056;border-radius:12px;padding:16px;background:linear-gradient(145deg,#202c42,#111d30);box-shadow:inset 0 1px #53607845}
.switch-face-header{display:flex;justify-content:space-between;gap:15px;font-size:13px;color:#a9b7d0;margin-bottom:14px}
.switch-face-header>span:first-child{color:#e0e8f5;font-weight:600}
.switch-port-grid{display:flex;flex-wrap:wrap;gap:7px}
.switch-port{position:relative;width:45px;height:49px;min-height:0;border-radius:5px;border:1px solid #3a4962;background:#0a1425;display:flex;flex-direction:column;gap:4px;justify-content:center;padding:6px 4px;color:#9caec9;font-size:12px;box-shadow:inset 0 2px 4px #0005}
.switch-port:hover{background:#273c56;border-color:#9f8bd0;transform:translateY(-1px)}
.switch-port .port-led{height:3px;width:16px;border-radius:2px;background:#70819b}
.switch-port.up .port-led{background:#37d6a4;box-shadow:0 0 7px #25dca16b}
.switch-port.down .port-led{background:#ff697b}
.switch-port i{height:4px;width:22px;border:1px solid #3f4c63;border-top:0}
.discovery-note{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;color:#69778f;font-size:13px;line-height:1.7;padding:14px 0}
#discovery-update{white-space:nowrap;font-size:12px;color:#8591a7}
.discovery-warning{font-size:13px;padding:10px 12px;border-radius:6px;background:#fff7e6;color:#8c6830}
.port-filters{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:4px 0 14px}
.port-filters input{flex:1;min-width:210px;font-size:14px}
.port-filters select{width:205px;font-size:14px}
.port-filters .subtle{font-size:12px}
#port-results{border:1px solid #e4e8f0;border-radius:9px;overflow:hidden}
#port-results th{font-size:12px;padding:13px 15px;background:#f6f7fb}
#port-results td{padding:14px 15px;font-size:13px;vertical-align:top}
#port-results td strong{font-size:13px}
.port-description{min-width:160px;max-width:240px;overflow-wrap:anywhere;color:#65718a;line-height:1.6}
.port-connections{min-width:210px;max-width:300px;overflow-wrap:anywhere}
.port-destination+.port-destination{border-top:1px solid #e9ecf3;margin-top:9px;padding-top:9px}
.port-destination>span{display:block;font-size:12px;color:#7c889e;line-height:1.5;margin-top:3px}
.port-destination .connection-source{display:inline-block;font-size:10px;letter-spacing:.5px;color:#217e6b;background:#e8f6f1;border-radius:4px;padding:2px 5px;margin-top:6px}
.port-destination .connection-source.manual{color:#776097;background:#f0ebf9}
.discovery-footnote{font-size:12px;line-height:1.7;color:#8994a7;margin:16px 0 0}
.discovery-loading{padding:80px 20px;text-align:center;color:#7f6d9c;font-size:16px}
.unmapped-neighbors{margin-top:20px;font-size:13px;color:#7c6b91}
.unmapped-neighbors summary{cursor:pointer;font-weight:600;padding:10px 0}
.unmapped-neighbors p{font-size:13px;color:#7c889e}
.port-more{text-align:center;padding:16px}
.speed-other{--speed-color:#a6b6ce}.speed-10g{--speed-color:#7cbbff}.speed-25g{--speed-color:#9aaaff}.speed-40g{--speed-color:#64d8ee}.speed-50g{--speed-color:#db9fe9}.speed-100g{--speed-color:#c3a0ff}.speed-200g{--speed-color:#eda5cc}.speed-400g{--speed-color:#eac18a}
.port-status-legend{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:400}
.port-status-legend i{display:inline-block;width:5px;height:5px;border-radius:50%;margin-left:6px;background:#8293af}
.port-status-legend i.up{background:#37d6a4}.port-status-legend i.down{background:#ff697b}
.port-speed-group+.port-speed-group{border-top:1px solid #35425b;margin-top:16px;padding-top:14px}
.port-group-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 9px;color:#8fa4c1;font-size:11px}
.port-group-heading h3{display:flex;align-items:center;gap:8px;font-size:12px;color:#d6e2f2;margin:0;font-weight:550}
.port-class-badge{display:inline-flex;align-items:center;justify-content:center;color:var(--speed-color,#a6b6ce);font-size:10px;font-weight:700;line-height:1.4;letter-spacing:.15px;white-space:nowrap}
.port-group-heading .port-class-badge{padding:2px 7px;border:1px solid currentColor;border-radius:4px;background:#0b17266b;font-size:12px;min-width:42px}
.switch-face .switch-port-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(56px,1fr));gap:6px}
.switch-face .switch-port{width:auto;height:55px;padding:5px 6px;gap:3px;border-radius:6px;border-color:#3a4a63;align-items:stretch;background:#0b1628;overflow:hidden}
.switch-face .switch-port:hover,.switch-face .switch-port:focus-visible{border-color:var(--speed-color,#c3a0ff);background:#1e3049;outline:2px solid var(--speed-color,#c3a0ff);outline-offset:2px;z-index:1}
.port-tile-top{display:flex;align-items:center;justify-content:space-between;gap:4px}
.switch-face .switch-port .port-led{width:5px;height:5px;border-radius:50%;flex:none}
.port-slot{font-size:11px;font-weight:650;color:#d5e0f1;line-height:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;font-variant-numeric:tabular-nums}
.port-reported{font-size:9px;line-height:12px;white-space:nowrap;color:#8096b3;text-align:center;letter-spacing:-.2px}
.port-reported.different{color:#d7e7fb;font-weight:650}
.port-speed-note{margin:12px 0 0;font-size:11px;line-height:1.6;color:#8fa4c1}
.port-speed-cell .port-class-badge{background:#eef1f8;border:1px solid #d9e0ed;border-radius:4px;padding:2px 7px;color:#435471;font-size:12px}
.port-speed-cell .speed-10g{color:#285b9d;background:#eaf3ff;border-color:#c8ddf9}.port-speed-cell .speed-40g{color:#126b7e;background:#e7f7fa;border-color:#bce3eb}.port-speed-cell .speed-100g{color:#7450a4;background:#f2ebfc;border-color:#dfcef5}
#port-results td.port-speed-cell small{font-size:10px;white-space:normal;line-height:1.6}.port-speed-different{color:#40597c;font-weight:600}
@media(max-width:760px){dialog.device-discovery-modal{width:calc(100vw - 12px);max-height:96dvh}.device-discovery-modal #modal-body{padding:16px}.switch-context{align-items:flex-start;gap:12px;flex-wrap:wrap}.switch-context-actions{margin-left:53px}.switch-metrics{gap:7px}.switch-metrics>div{padding:12px 9px}.switch-metrics b{font-size:24px}.switch-metrics span{font-size:12px}.switch-face{padding:12px}.switch-face-header{font-size:12px}.switch-port-grid{gap:6px}.switch-port{width:39px}.discovery-note{display:block}.discovery-note>span{display:block;margin-top:4px}.port-filters select{width:100%}.port-filters input{min-width:0;flex-basis:100%}}
/* Compact NOC symbols and endpoint port labels. */
.topo-port-label{pointer-events:none}
.topo-port-label rect{fill:#101d2e;stroke:#30435d;stroke-width:.7;opacity:.97}
.topo-port-label text{fill:#a8bdd9;font-size:10px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.topo-traffic{font-size:11px;font-weight:550;paint-order:stroke;stroke:#0c1727;stroke-width:4px;stroke-linejoin:round}
.topo-node>text{paint-order:stroke;stroke:#0c1727;stroke-width:3px;stroke-linejoin:round}
.topology-toolbar .ports-active{color:#6e4fc2;border-color:#d5c7f2;background:#f0eafa}
.discovery-network-summary{font-size:14px;color:#75839b;padding:4px 0 20px;line-height:1.8}
.discovery-network-summary b{color:#374862}.discovery-network-summary span{padding:0 8px}
.discovery-state{display:inline-block;padding:4px 7px;border-radius:4px;font-size:12px;background:#f0f2f7;color:#7d8ca2}
.discovery-state.ready{background:#e8f7f0;color:#208267}.discovery-state.error{background:#fbe9ed;color:#c34c65}
@media(max-width:1100px){.topology-toolbar .topology-scope{order:3;max-width:none;flex:1 1 100%;justify-content:flex-start}}
@media(max-width:500px){.topology-actions{flex-wrap:wrap;justify-content:flex-start}.topology-actions button{flex:1}.topology-toolbar .topology-scope{min-height:32px}}
/* Keep interaction and modal scrolling independent of the animated canvas. */
#topo-svg,#topo-svg *{-webkit-user-select:none;user-select:none;-webkit-user-drag:none}
.topo-node:focus{outline:none}
.topo-node:focus-visible .topo-device-icon{stroke:#d6c3ff;stroke-width:3;stroke-dasharray:4 2}
.topo-node>text{pointer-events:auto;stroke-width:2px}
.topo-node:hover .topo-device-icon{fill:#20324b}
.modal-open .topo-link-flow,.interacting .topo-link-flow{animation-play-state:paused}
body.modal-open{overflow:hidden}
dialog::backdrop{background:#111c2cb3;backdrop-filter:none;-webkit-backdrop-filter:none}
dialog[open]{display:flex;flex-direction:column;overflow:hidden;max-height:94vh;max-height:94dvh;box-shadow:0 18px 55px #15233a40}
.modal-head{flex-shrink:0;padding:18px 22px;background:#fff;align-items:center}
.modal-head h2{font-size:21px;line-height:1.3;margin-top:5px}
.modal-head .icon-button{flex:none}
#modal-body{overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;min-height:0;padding:20px 22px}
dialog.detail-modal{width:min(1040px,calc(100vw - 32px))}
.detail-statusbar{display:flex;align-items:center;gap:10px;margin-bottom:16px;color:#7b879b;font-size:12px;flex-wrap:wrap}
.detail-actions{display:flex;gap:8px;margin-left:auto}.detail-actions button{padding:7px 12px;font-size:12px}
.link-route{display:grid;grid-template-columns:1fr 70px 1fr;align-items:center;padding:16px 20px;border-radius:10px;background:#142237;color:#dde7f5}
.endpoint-card{display:flex;flex-direction:column;gap:5px;min-width:0}.endpoint-card:last-child{text-align:right}
.endpoint-caption{font-size:9px;letter-spacing:1.4px;color:#849bb9;font-weight:600}
.endpoint-card>strong{font-size:16px;font-weight:600;overflow-wrap:anywhere}
.endpoint-port{font-family:ui-monospace,"SFMono-Regular",Consolas,monospace;font-size:12px;color:#a8c4ed}
.endpoint-card small{color:#839ab7;font-size:11px}
.route-connector{display:flex;align-items:center;gap:7px;font-size:20px;color:#8195af;align-self:center}
.route-connector span{height:1px;flex:1;background:currentColor}.route-connector.up{color:#2aceab}.route-connector.down{color:#ff6a80}
.link-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;padding:14px 2px 16px}
.link-facts>div{min-width:0}.link-facts span{display:block;font-size:10px;color:#8993a4;margin-bottom:4px}.link-facts strong{display:block;font-size:12px;font-weight:550;color:#4c5c74;overflow-wrap:anywhere}
.detail-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.detail-stat{padding:13px 16px;background:#f8fafd;border:1px solid #e4eaf2;border-radius:8px;min-width:0}
.detail-stat>span{display:block;font-size:11px;color:#7a879a}.detail-stat>strong{display:block;font-size:25px;letter-spacing:-.7px;font-weight:650;margin:5px 0;color:#30435e;overflow-wrap:anywhere}
.detail-stat>small{display:block;font-size:10px;color:#8e9aab}.detail-stat.tx>strong{color:#158d77}.detail-stat.rx>strong{color:#4779cf}
.measurement-source{font-size:11px;color:#8591a3;margin:10px 1px 16px;line-height:1.5}.measurement-source strong{font-weight:550;color:#64758e}
.detail-chart-panel{border:1px solid #e4eaf1;background:white;border-radius:9px;padding:16px 18px;margin-top:16px}
.detail-chart-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:6px}
.detail-chart-head>div:first-child{display:flex;align-items:center;gap:16px}.detail-chart-head h3{font-size:13px;color:#3b4d66;margin:0;font-weight:600}
.traffic-legend{display:flex;gap:12px;font-size:11px;color:#7c8ba0}.traffic-legend span{display:flex;align-items:center;gap:5px}.traffic-legend span:before{content:'';width:12px;height:3px;border-radius:2px;background:#159d85}.traffic-legend .rx:before{background:#527fe6}
.chart-range{display:flex;gap:2px;padding:3px;border-radius:6px;background:#f2f5f9}.chart-range button{padding:4px 9px;border:0;font-size:11px;min-height:26px;background:transparent;color:#8390a3;box-shadow:none;border-radius:4px}
.chart-range button[aria-pressed=true]{background:#fff;color:#546b91;box-shadow:0 1px 4px #1c36591a}
.series-chart{height:auto;max-height:260px;aspect-ratio:4/1;width:100%;display:block}
.detail-chart-panel .chart-meta{font-size:10px;color:#93a0b2;margin:0 0 1px}.detail-chart-panel .chart-label{font-size:11px;margin:16px 0 0}
#detail-charts[aria-busy=true]{opacity:.55}.chart-empty{height:160px;font-size:12px;color:#8291a7}
.collector-details{font-size:11px;color:#8a96a8;margin:14px 0 0}.collector-details summary{cursor:pointer}.collector-details p{font-family:ui-monospace,monospace;margin:8px 0 0}
.collector-message{font-size:12px;color:#8291a5;margin:14px 0 0;line-height:1.6}
.device-detail-context{display:flex;flex-direction:column;gap:5px;margin-bottom:18px;color:#7d8a9e;font-size:12px}.device-detail-context strong{font-size:16px;color:#41536c;font-weight:550}
.detail-modal .detail-note{font-size:12px;margin:16px 0 0;color:#6a7b93}
@media(max-width:650px){.modal-head{padding:14px 16px}.modal-head h2{font-size:18px}#modal-body{padding:16px}.link-route{grid-template-columns:1fr 32px 1fr;padding:14px 12px}.endpoint-card>strong{font-size:13px}.endpoint-port{font-size:10px}.endpoint-card small{font-size:10px}.link-facts{grid-template-columns:repeat(2,1fr);gap:12px}.detail-stats{gap:7px}.detail-stat{padding:10px}.detail-stat>strong{font-size:19px}.detail-stat>small{font-size:9px}.detail-chart-panel{padding:12px 10px}.detail-chart-head{flex-wrap:wrap;gap:10px}.series-chart{min-height:160px}.detail-statusbar{gap:7px}.detail-statusbar>span:nth-child(2){font-size:10px}.switch-face-header{flex-wrap:wrap;gap:7px}}

.switch-port .port-jack{display:inline-block;width:21px;height:5px;border:1px solid #4b607c;border-top:0;vertical-align:top;margin-top:2px}
/* Capacity planning and port assurance: compact, readable NOC tables. */
.readonly-value{display:flex;align-items:center;min-height:46px;padding:10px 14px;border:1px solid #dce4ef;border-radius:9px;background:#f3f6fa;color:#27374c;font-weight:650;font-size:15px}
.detail-stats.snmp-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.capacity-facts{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:16px 0}.capacity-facts>div{display:flex;flex-direction:column;gap:6px;padding:14px 16px;border:1px solid #e1e7ef;border-radius:10px}.capacity-facts span,.capacity-facts small{font-size:12px;color:#77869b}.capacity-facts strong{font-size:20px;color:#28384d}.capacity-panel{border:1px solid #dce6ef;border-radius:10px;background:#f7fafc;padding:16px;margin:16px 0}.capacity-panel.capacity-warning{border-color:#e9bc67;background:#fff9eb}.capacity-heading{display:flex;gap:12px;justify-content:space-between;align-items:center;margin-bottom:14px}.capacity-heading>span,.capacity-panel>small{font-size:12px;color:#788497}.capacity-warning .capacity-heading>strong{color:#986016}.utilization-pair{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:12px}.utilization-pair>div>span{display:flex;justify-content:space-between;font-size:12px;color:#6b7a8d}.utilization-pair b{font-size:15px;color:#2c4058}.utilization-track{position:relative;height:7px;border-radius:4px;background:#e2e8f0;margin-top:8px}.utilization-track i{display:block;background:#29a89c;height:100%;border-radius:4px}.capacity-warning .utilization-track i{background:#d49a34}.utilization-track em{position:absolute;top:-3px;height:13px;width:2px;background:#8e6a34}
.health-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 22px}.health-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:8px;padding:18px 20px;border:1px solid #e0e6ee;border-top:3px solid #d8a149;border-radius:12px;background:white;box-shadow:none;min-width:0}.health-card.maintenance{border-top-color:#e28055}.health-card.crc{border-top-color:#e36176}.health-card.unknown{border-top-color:#8b9ab0}.health-card.selected{background:#f6f7fc;border-color:#a99ad2}.health-card>span{font-size:13px;font-weight:650;color:#526078}.health-card>strong{font-size:32px;line-height:1.1;font-weight:700;color:#28364c}.health-card>small{font-size:11px;line-height:1.5;font-weight:400;color:#8290a4}.health-toolbar{gap:14px}.health-toolbar input{max-width:480px}.health-toolbar .segmented{margin-left:auto}.health-table table{table-layout:auto}.health-table td{font-size:12px;padding:16px;vertical-align:top}.health-table td:first-child{width:26%}.health-table td:nth-child(2){width:24%}.health-table td:last-child{width:21%}.health-table small{font-size:11px;line-height:1.6}.health-table th{font-size:11px;white-space:nowrap}.health-table .text-button{font-size:13px;text-align:left}.health-table .status{font-size:9px;margin-top:5px;padding:3px 7px}.health-description{max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.health-rates{display:flex;gap:15px;margin-top:9px;font-size:11px}.health-rates b{color:#273c55;font-size:13px}.health-findings{display:flex;flex-wrap:wrap;align-items:flex-start;gap:5px;margin-bottom:5px}.health-tag{display:inline-flex;font-size:10px;font-weight:650;border-radius:5px;padding:4px 7px;color:#9a670b;background:#fff0cf;white-space:nowrap}.health-tag.maintenance{background:#ffede3;color:#a35429}.health-tag.crc{background:#ffebee;color:#b63f56}.health-tag.quiet{background:#eaf5f1;color:#42806a}.health-tag.muted{background:#eef1f6;color:#77859a}.health-caution{color:#ac7517!important}.crc-text{color:#c8485f}.health-footnote{font-size:11px;line-height:1.7;color:#8794a8;margin:16px 2px 0}.health-table .panel-head{padding:16px 20px}.health-table .panel-head h2{font-size:15px}
@media(max-width:1100px){.health-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.health-table table{min-width:960px}.health-toolbar{flex-wrap:wrap}.health-toolbar .segmented{margin-left:0}}
@media(max-width:600px){.health-card{padding:14px}.health-card>strong{font-size:26px}.capacity-heading{align-items:flex-start;flex-direction:column}.capacity-facts,.utilization-pair{gap:12px}}
.health-tag.crc_history{background:#f2edf7;color:#8c6caa}

/* Session bootstrap stays neutral until the server confirms authentication. */
.session-startup{min-height:100vh;display:grid;place-items:center;background:#f5f6fa;color:#263247;padding:24px}.session-card{text-align:center;max-width:420px}.session-card .brand-icon{display:inline-grid;place-items:center;width:48px;height:48px;margin-bottom:20px}.session-card h1{font-size:22px;letter-spacing:-.4px;margin:0 0 12px}.session-card p{font-size:14px;line-height:1.6;color:#7a879b;margin:0 0 20px}.session-card button{margin:auto}
