:root{
  --bg:#06111c;--bg2:#081827;--panel:#0a1d2d;--panel2:#0d2435;--line:#174560;--line2:#23749b;
  --cyan:#39d7ff;--blue:#4ba5ff;--green:#41d8a8;--orange:#ffad48;--red:#ff5e68;--text:#e7f4fb;--muted:#7fa1b6;--dim:#4f7185;
  --shadow:0 10px 30px rgba(0,0,0,.28);--header:76px;--nav:40px;
}
*{box-sizing:border-box}html,body,#app{width:100%;height:100%;margin:0}body{font-family:Inter,"Microsoft YaHei",Arial,sans-serif;background:radial-gradient(circle at 50% 0%,#0b2639 0,#06111c 45%,#040b12 100%);color:var(--text);overflow:hidden}
button,input,select{font:inherit}button{cursor:pointer}
.shell{height:100vh;display:grid;grid-template-rows:var(--header) var(--nav) 1fr 26px;background:linear-gradient(180deg,rgba(20,55,75,.18),transparent 16%)}
.topbar{position:relative;display:grid;grid-template-columns:340px 1fr 340px;align-items:center;padding:0 24px;border-bottom:1px solid #1b526d;background:linear-gradient(180deg,rgba(7,26,40,.96),rgba(5,17,28,.9));box-shadow:0 8px 28px rgba(0,0,0,.22)}
.topbar:before,.topbar:after{content:"";position:absolute;bottom:-1px;width:27%;height:2px;background:linear-gradient(90deg,transparent,var(--cyan),transparent);opacity:.65}.topbar:before{left:3%}.topbar:after{right:3%}
.brand{display:flex;align-items:center;gap:12px}.brand-mark{width:44px;height:44px;border:1px solid #2f86a8;background:#081f2e;clip-path:polygon(8% 0,100% 0,100% 72%,82% 100%,0 100%,0 18%);display:grid;place-items:center}.brand-title{font-size:23px;font-weight:800;letter-spacing:1px}.brand-sub{font-size:11px;color:var(--muted);margin-top:3px;letter-spacing:1.4px}
.title-wrap{text-align:center}.title-main{font-size:26px;font-weight:800;letter-spacing:2px;text-shadow:0 0 18px rgba(57,215,255,.16)}.title-sub{font-size:11px;color:#6eb7d5;letter-spacing:2.8px;margin-top:4px}
.top-status{justify-self:end;display:flex;align-items:center;gap:16px}.status-chip{display:flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid #235875;background:#081c2b;color:#b8d9e9;font-size:12px}.dot{width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 10px rgba(65,216,168,.75)}.dot.off{background:var(--red);box-shadow:0 0 10px rgba(255,94,104,.65)}.clock{text-align:right}.clock strong{display:block;font-size:16px;letter-spacing:.5px}.clock span{font-size:11px;color:var(--muted)}
.navbar{display:flex;align-items:center;padding:0 22px;border-bottom:1px solid #173e54;background:#071620;gap:6px;overflow-x:auto}.nav-item{height:30px;display:flex;align-items:center;gap:7px;padding:0 12px;border:1px solid transparent;background:transparent;color:#8db0c3;font-size:12px;white-space:nowrap}.nav-item:hover{color:#d8f5ff;border-color:#1b4c68}.nav-item.active{color:#e7fbff;border-color:#246986;background:linear-gradient(180deg,#103247,#0b2333);box-shadow:inset 0 2px 0 rgba(57,215,255,.45)}.nav-icon{width:15px;height:15px;display:inline-flex}.content{min-height:0;padding:10px 12px 8px}.footer{display:flex;justify-content:center;align-items:center;color:#55758a;font-size:10px;border-top:1px solid #102e3f;background:#06131d}
.panel{position:relative;background:linear-gradient(180deg,rgba(10,29,45,.94),rgba(7,22,34,.92));border:1px solid var(--line);box-shadow:var(--shadow);min-width:0;min-height:0}.panel:before{content:"";position:absolute;top:-1px;left:18px;width:76px;height:2px;background:linear-gradient(90deg,var(--cyan),transparent);opacity:.8}.panel-title{height:34px;display:flex;align-items:center;justify-content:space-between;padding:0 12px;border-bottom:1px solid #153b51;background:linear-gradient(180deg,rgba(18,52,72,.64),rgba(12,35,50,.35));font-size:12px;font-weight:700;letter-spacing:.5px}.panel-title .hint{font-weight:500;font-size:10px;color:var(--muted)}.panel-body{padding:10px;height:calc(100% - 34px);overflow:auto}.no-pad{padding:0}.muted{color:var(--muted)}.danger{color:var(--red)}.warn{color:var(--orange)}.ok{color:var(--green)}.info{color:var(--cyan)}
.overview{height:100%;display:grid;grid-template-columns:310px minmax(0,1fr) 310px;grid-template-rows:74px minmax(0,1fr) 220px;gap:10px}.kpis{grid-column:2;grid-row:1;display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.kpi{border:1px solid #18506a;background:linear-gradient(180deg,#0a2232,#071925);display:flex;align-items:center;padding:0 12px;gap:10px;position:relative;overflow:hidden}.kpi:after{content:"";position:absolute;right:0;bottom:0;width:42%;height:1px;background:linear-gradient(90deg,transparent,var(--cyan))}.kpi-icon{width:30px;height:30px;color:var(--cyan)}.kpi small{display:block;color:#7899ab;font-size:10px}.kpi strong{display:block;font-size:24px;line-height:1.1;margin-top:2px}.kpi .unit{font-size:11px;color:#7fa1b6;margin-left:3px}
.left-stack{grid-column:1;grid-row:1/4;display:grid;grid-template-rows:250px 1fr 215px;gap:10px}.right-stack{grid-column:3;grid-row:1/4;display:grid;grid-template-rows:210px 190px 1fr;gap:10px}.map-panel{grid-column:2;grid-row:2;overflow:hidden}.bottom-grid{grid-column:2;grid-row:3;display:grid;grid-template-columns:38% 62%;gap:10px}
.node-table{width:100%;border-collapse:collapse;font-size:11px}.node-table th{color:#6f94aa;font-weight:600;text-align:left;padding:7px 5px;border-bottom:1px solid #18394a}.node-table td{padding:8px 5px;border-bottom:1px solid #102f40}.state-dot{width:7px;height:7px;border-radius:50%;display:inline-block;margin-right:6px}.state-online{background:var(--green);box-shadow:0 0 7px rgba(65,216,168,.55)}.state-offline{background:#607583}.node-row{cursor:pointer}.node-row:hover{background:#0d2838}
.life-card{border:1px solid #1f526b;padding:10px;background:#0a2030;margin-bottom:8px}.life-card.p0{border-color:#8b3940;background:linear-gradient(90deg,rgba(100,22,32,.30),rgba(8,26,39,.92));box-shadow:inset 2px 0 0 var(--red)}.life-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.badge{display:inline-flex;align-items:center;padding:2px 6px;border:1px solid #315e75;font-size:10px;color:#b7d4e3;background:#0b2231}.badge.p0{color:#ffd8dc;border-color:#93404a;background:#4d1820}.badge.p1{color:#ffe0b7;border-color:#8a6334;background:#4a3218}.badge.p2{color:#d7ecff;border-color:#315c85;background:#163456}.life-meta{margin-top:8px;display:grid;grid-template-columns:1fr 1fr;gap:5px;font-size:10px;color:#789cae}.progress{height:4px;background:#0e3448;margin-top:8px;overflow:hidden}.progress i{display:block;height:100%;background:linear-gradient(90deg,var(--cyan),var(--green))}
.map-wrap{height:100%;position:relative;background:radial-gradient(circle at center,#0b2b3e,#07131d 65%);overflow:hidden}.map-layer{position:absolute;inset:0}.leaflet-container{background:#07131d!important}.leaflet-tile{filter:saturate(.6) brightness(.55) contrast(1.15) hue-rotate(165deg)}.map-overlay{position:absolute;inset:0;pointer-events:none;background:linear-gradient(rgba(30,105,137,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(30,105,137,.07) 1px,transparent 1px);background-size:42px 42px;mix-blend-mode:screen}.map-toolbar{position:absolute;top:10px;right:10px;z-index:500;display:flex;gap:5px;pointer-events:auto}.tool-btn{height:28px;padding:0 9px;border:1px solid #285a72;background:rgba(7,25,37,.92);color:#9fc6da;font-size:10px}.tool-btn.active,.tool-btn:hover{border-color:#3699c1;color:#e5f9ff}.map-legend{position:absolute;right:10px;bottom:10px;z-index:500;background:rgba(5,18,29,.9);border:1px solid #214b61;padding:7px 9px;font-size:10px;color:#86a7b8}.legend-row{display:flex;align-items:center;gap:7px;margin:4px 0}.legend-line{width:22px;height:2px;background:var(--cyan)}.legend-line.relay{background:var(--green)}.legend-line.p0{background:var(--red)}.legend-line.ack{background:#67e2c0}
.fallback-map{position:absolute;inset:0;background:radial-gradient(ellipse at center,#0d3448 0,#092333 48%,#06141e 100%)}.fallback-map:before{content:"";position:absolute;inset:8%;border:1px solid rgba(52,139,173,.32);clip-path:polygon(12% 8%,32% 4%,48% 13%,64% 8%,85% 18%,92% 42%,81% 60%,87% 78%,66% 89%,43% 82%,25% 91%,9% 72%,5% 48%);background:linear-gradient(130deg,rgba(31,105,134,.16),rgba(8,43,61,.04))}.fb-node{position:absolute;transform:translate(-50%,-50%);z-index:4}.fb-node .core{width:12px;height:12px;border-radius:50%;background:var(--cyan);border:2px solid #d8f9ff;box-shadow:0 0 0 7px rgba(57,215,255,.10),0 0 18px rgba(57,215,255,.7)}.fb-node.alert .core{background:var(--red);box-shadow:0 0 0 8px rgba(255,94,104,.12),0 0 22px rgba(255,94,104,.8)}.fb-node label{position:absolute;left:14px;top:-8px;white-space:nowrap;background:rgba(6,21,32,.92);border:1px solid #24556d;padding:5px 7px;font-size:10px;color:#d9edf7}.fb-node.alert label{border-color:#773944;color:#ffd8dc}.fb-line{position:absolute;height:2px;transform-origin:0 50%;opacity:.85;z-index:2}.fb-line.direct{background:repeating-linear-gradient(90deg,var(--cyan) 0 6px,transparent 6px 10px)}.fb-line.relay{background:linear-gradient(90deg,var(--green),#c0fff0)}.fb-line.p0{background:linear-gradient(90deg,var(--red),#ffd1d5)}.fb-line.ack{background:linear-gradient(90deg,#63edc8,#cafff1)}
.chart{position:relative;height:100%;min-height:100px}.chart svg{width:100%;height:100%}.axis{stroke:#24485c;stroke-width:.7}.grid-line{stroke:#163746;stroke-width:.6}.series-rssi{fill:none;stroke:#42d9ff;stroke-width:1.5}.series-snr{fill:none;stroke:#50d3a8;stroke-width:1.3}.chart-label{fill:#5f8397;font-size:8px}
.donut-wrap{display:grid;grid-template-columns:120px 1fr;align-items:center;height:100%;gap:8px}.donut{width:102px;height:102px;border-radius:50%;background:conic-gradient(var(--cyan) 0 45%,var(--green) 45% 72%,#27465a 72%);display:grid;place-items:center;margin:auto}.donut:before{content:"";width:65px;height:65px;background:#081b29;border-radius:50%;position:absolute}.donut b{z-index:1;font-size:24px}.stat-list{font-size:10px}.stat-list div{display:flex;justify-content:space-between;padding:5px 0;border-bottom:1px solid #123246}
.timeline{height:100%;overflow:auto}.timeline-item{display:grid;grid-template-columns:68px 62px 1fr 56px;gap:7px;padding:7px 8px;border-bottom:1px solid #103144;font-size:10px;align-items:center}.timeline-item:hover{background:#0a2737}.timeline-item .time{color:#6f91a3}.timeline-item .kind{color:#9fc4d6}.timeline-item .text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.timeline-item .status{text-align:right;color:var(--green)}
.topology{height:100%;position:relative}.topology svg{width:100%;height:100%}.topo-edge{stroke:#2e8baa;stroke-width:1.4;stroke-dasharray:5 5}.topo-edge.relay{stroke:#44d5a8;stroke-dasharray:none}.topo-edge.p0{stroke:#ff5e68;stroke-width:2}.topo-node circle{fill:#0b2b3b;stroke:#42d9ff;stroke-width:2}.topo-node.alert circle{stroke:#ff5e68;fill:#3a151c}.topo-node text{fill:#cceaf7;font-size:10px}
.page{height:100%;display:grid;grid-template-rows:50px 1fr;gap:10px}.page-head{display:flex;align-items:center;justify-content:space-between;padding:0 4px}.page-head h2{margin:0;font-size:18px;letter-spacing:1px}.page-head p{margin:4px 0 0;color:var(--muted);font-size:11px}.page-actions{display:flex;gap:7px}.btn{height:30px;padding:0 11px;border:1px solid #24566d;background:#0a2231;color:#a8cfe0;font-size:11px}.btn:hover{border-color:#3d98bb;color:#e7fbff}.btn.primary{background:#0c3850;border-color:#2c83a8;color:#dbf6ff}.btn.danger{background:#3c1920;border-color:#7e3740;color:#ffd5d8}.btn:disabled{opacity:.45;cursor:not-allowed}.page-grid{min-height:0;display:grid;gap:10px}.two-col{grid-template-columns:1.55fr .85fr}.three-col{grid-template-columns:1fr 1fr 1fr}.filters{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.input,.select{height:30px;border:1px solid #1f4b61;background:#071b28;color:#c8e2ee;padding:0 9px;font-size:11px;outline:none}.input:focus,.select:focus{border-color:#3b94b7}.input{min-width:190px}.table-wrap{height:100%;overflow:auto}.data-table{width:100%;border-collapse:collapse;font-size:11px}.data-table th{position:sticky;top:0;background:#0d293a;color:#7396a9;text-align:left;padding:9px 8px;border-bottom:1px solid #1b4b62;z-index:2}.data-table td{padding:9px 8px;border-bottom:1px solid #102f40;color:#c3dae5}.data-table tr:hover td{background:#0b2434}.link{color:var(--cyan);cursor:pointer}.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.metric{border:1px solid #1d4c62;padding:12px;background:#091e2d}.metric small{color:#6f91a3;font-size:10px}.metric strong{display:block;margin-top:6px;font-size:18px}.detail-list{display:grid;grid-template-columns:120px 1fr;font-size:11px}.detail-list div{padding:8px;border-bottom:1px solid #123246}.detail-list .key{color:#6e91a4}.drawer{position:fixed;top:116px;right:0;bottom:26px;width:420px;background:#071926;border-left:1px solid #2b647f;box-shadow:-12px 0 30px rgba(0,0,0,.38);z-index:1200;transform:translateX(102%);transition:.22s ease}.drawer.open{transform:translateX(0)}.drawer-head{height:46px;display:flex;align-items:center;justify-content:space-between;padding:0 14px;border-bottom:1px solid #173d51}.drawer-body{height:calc(100% - 46px);overflow:auto;padding:12px}.drawer-close{border:0;background:transparent;color:#7fa4b7;font-size:18px}.subtabs{display:flex;gap:5px;margin-bottom:10px}.subtab{padding:5px 9px;border:1px solid #204a60;background:#091d2b;color:#809fb0;font-size:10px}.subtab.active{border-color:#347f9e;color:#d8f4ff;background:#0c2f43}.map-page{height:100%;display:grid;grid-template-columns:1fr 300px;gap:10px}.full-map{height:100%}.command-form{display:grid;grid-template-columns:1fr 1fr;gap:10px}.form-field label{display:block;color:#6f91a3;font-size:10px;margin-bottom:6px}.form-field .input,.form-field .select{width:100%}.span-2{grid-column:1/3}.confirm-box{border:1px solid #5d4a2e;background:#2f2415;padding:10px;color:#e7c991;font-size:10px;margin-top:10px}.role-chip{padding:2px 6px;border:1px solid #2b5d76;color:#8fc0d5;font-size:9px}.user-card{display:flex;justify-content:space-between;align-items:center;padding:12px;border-bottom:1px solid #133246}.avatar{width:30px;height:30px;border:1px solid #2a627e;display:grid;place-items:center;background:#0a2737;color:#bce8f9;font-weight:700}.sys-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.sys-card{border:1px solid #1e4c62;background:#091d2a;padding:14px}.sys-card small{color:#7193a5}.sys-card strong{display:block;font-size:16px;margin-top:7px}.modal-backdrop{position:fixed;inset:0;background:rgba(1,7,11,.68);z-index:1500;display:grid;place-items:center}.modal{width:420px;border:1px solid #2c657f;background:#071a27;box-shadow:0 20px 60px rgba(0,0,0,.55)}.modal-head{height:44px;padding:0 14px;display:flex;align-items:center;border-bottom:1px solid #173f53;font-size:13px;font-weight:700}.modal-body{padding:14px;font-size:11px;color:#9db9c8}.modal-actions{display:flex;justify-content:flex-end;gap:8px;padding:0 14px 14px}.toast{position:fixed;right:18px;bottom:42px;z-index:2000;padding:10px 13px;border:1px solid #2f6c87;background:#0b2534;color:#d6eef8;font-size:11px;box-shadow:0 8px 24px rgba(0,0,0,.35)}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(255,94,104,.45)}70%{box-shadow:0 0 0 16px rgba(255,94,104,0)}100%{box-shadow:0 0 0 0 rgba(255,94,104,0)}}.pulse-red{animation:pulse 1.8s infinite}
@media(max-width:1200px){body{overflow:auto}.shell{min-height:100vh;height:auto;grid-template-rows:76px 40px auto 26px}.topbar{grid-template-columns:250px 1fr 260px}.overview{height:auto;grid-template-columns:1fr 1fr;grid-template-rows:auto}.left-stack,.right-stack,.kpis,.map-panel,.bottom-grid{grid-column:auto;grid-row:auto}.kpis{grid-column:1/3}.map-panel{grid-column:1/3;height:560px}.bottom-grid{grid-column:1/3;height:240px}.left-stack,.right-stack{display:grid;grid-template-rows:auto}.page{min-height:calc(100vh - 152px)}.two-col,.three-col,.map-page{grid-template-columns:1fr}.drawer{top:116px;width:min(420px,100vw)}}

/* SparkLink V2.5 Geo Interaction */
.fb-node.current-gps .core{background:#39d7ff;border:2px solid #e5fbff;box-shadow:0 0 0 7px rgba(57,215,255,.10),0 0 18px rgba(57,215,255,.62)}
.fb-node.last-gps .core{background:#0b1820;border:2px dashed #9baab2;box-shadow:0 0 0 6px rgba(154,171,181,.08);opacity:.88}
.fb-node.last-gps label{border-style:dashed;border-color:#657d89;color:#b8c7ce;background:rgba(8,20,29,.92)}
.fb-node.offline.current-gps .core{filter:saturate(.65);opacity:.75}
.legend-point{width:11px;height:11px;border-radius:50%;display:inline-block;box-sizing:border-box}.legend-point.current{background:#39d7ff;border:2px solid #dffaff;box-shadow:0 0 8px rgba(57,215,255,.45)}.legend-point.last{background:#0a1821;border:2px dashed #a1b0b7}.legend-event{width:10px;height:10px;display:inline-block;background:#07131d;border:2px solid #ffad48;transform:rotate(45deg);box-sizing:border-box}.legend-sep{height:1px;background:#1e4255;margin:6px 0}
.event-pin{position:absolute;transform:translate(-50%,-50%);z-index:8}.event-pin>span{display:block;width:14px;height:14px;background:#07131d;border:2px solid #ffad48;transform:rotate(45deg);box-shadow:0 0 12px rgba(255,173,72,.25)}.event-pin.p0>span{border-color:#ff5e68;box-shadow:0 0 14px rgba(255,94,104,.42)}.event-pin.p1>span{border-color:#ffad48}.event-pin.p2>span{border-color:#39d7ff}.event-pin.active.p0>span{animation:eventPulse 1.6s ease-out infinite}.event-pin label{position:absolute;left:15px;top:-9px;white-space:nowrap;background:rgba(7,20,30,.94);border:1px solid #334f60;padding:4px 6px;font-size:9px;color:#cfe4ee}.event-pin.p0 label{border-color:#763945;color:#ffd7db}.event-pin.p2 label{border-color:#285a72}
@keyframes eventPulse{0%{box-shadow:0 0 0 0 rgba(255,94,104,.48),0 0 14px rgba(255,94,104,.42)}70%{box-shadow:0 0 0 12px rgba(255,94,104,0),0 0 18px rgba(255,94,104,.28)}100%{box-shadow:0 0 0 0 rgba(255,94,104,0),0 0 14px rgba(255,94,104,.20)}}
.geo-evidence{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}.geo-evidence>div{border:1px solid #1e465b;background:#081b28;padding:9px 10px;min-height:56px}.geo-evidence b{display:block;font-size:10px;color:#d8eff8;margin-bottom:5px}.geo-evidence span{font-size:9px;line-height:1.45;color:#7496a7}.tool-btn.active#autoFocusBtn{border-color:#3aa8ce;color:#e3faff;background:rgba(20,65,86,.9)}
@media(max-width:1200px){.geo-evidence{grid-template-columns:1fr}}

/* SparkLink Web V2.6 Event Map Control */
.map-filter-panel{position:absolute;top:44px;right:10px;z-index:560;width:258px;padding:10px;border:1px solid #2b6179;background:rgba(5,20,30,.97);box-shadow:0 14px 34px rgba(0,0,0,.42);display:none;pointer-events:auto}.map-filter-panel.open{display:block}.map-filter-head{height:28px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #183b4d;margin:-2px 0 8px;color:#d7f1fb;font-size:11px}.map-filter-close{border:0;background:transparent;color:#769bad;font-size:18px;line-height:1;cursor:pointer}.map-filter-row{display:grid;grid-template-columns:70px 1fr;align-items:center;gap:8px;margin:8px 0}.map-filter-row>label{font-size:10px;color:#7195a7}.map-filter-select{height:27px;border:1px solid #214e64;background:#071b28;color:#c2dce7;padding:0 7px;font-size:10px;outline:none}.map-filter-checks{display:flex;align-items:center;gap:10px;font-size:10px;color:#a7c6d4}.map-filter-checks label{display:flex;align-items:center;gap:4px;cursor:pointer}.map-filter-checks input{accent-color:#39d7ff}.map-filter-note{margin-top:8px;padding:7px 8px;border-left:2px solid #2b6d8a;background:#081a26;color:#6e92a4;font-size:9px;line-height:1.5}.map-filter-reset{margin-top:8px;width:100%}.legend-cluster{width:18px;height:18px;border:1px solid #3f7288;background:#0a2533;color:#d8f4ff;display:inline-grid;place-items:center;font-style:normal;font-size:8px;border-radius:50%}
.event-pin.history label{display:none}.event-pin.history>span{opacity:.78;box-shadow:none}.event-pin.history.p0>span{opacity:.95;box-shadow:0 0 8px rgba(255,94,104,.2)}
.event-cluster{position:absolute;transform:translate(-50%,-50%);width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:rgba(7,24,34,.96);border:1px solid #39d7ff;box-shadow:0 0 0 4px rgba(57,215,255,.08),0 0 14px rgba(57,215,255,.24);color:#e4faff;font-size:10px;font-weight:700}.event-cluster.p1{border-color:#ffad48;box-shadow:0 0 0 4px rgba(255,173,72,.07),0 0 14px rgba(255,173,72,.22)}.event-cluster.p0{border-color:#ff5e68;box-shadow:0 0 0 4px rgba(255,94,104,.08),0 0 16px rgba(255,94,104,.3)}.event-cluster:after{content:"";position:absolute;inset:4px;border:1px solid rgba(255,255,255,.1);border-radius:50%}
.cluster-popup{min-width:290px;max-height:320px;overflow:auto;color:#1c303a}.cluster-popup-title{font-size:12px;font-weight:800;color:#0b3f57;background:#e8f3f7;padding:7px 9px;border-left:3px solid #1684a8;border-bottom:1px solid #b9cdd5;margin:0 0 6px;letter-spacing:.1px}.cluster-event-row{width:100%;display:grid;grid-template-columns:28px 1fr 54px;gap:6px;align-items:center;border:0;border-bottom:1px solid #d9e0e4;background:transparent;text-align:left;padding:7px 2px;color:#21313a;cursor:pointer;font-size:10px}.cluster-event-row:hover{background:#edf5f8}.cluster-event-row b{color:#2d6e88}.cluster-event-row.p0 b{color:#c23b46}.cluster-event-row.p1 b{color:#b37416}.cluster-event-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#1b2f39;font-weight:600}.cluster-event-row em{font-style:normal;color:#536b76;text-align:right;font-weight:600}.cluster-more{padding:8px 2px 2px;color:#78878e;font-size:9px}.leaflet-tooltip{background:#071b28!important;border:1px solid #2a5c72!important;color:#d1ebf6!important;box-shadow:0 6px 20px rgba(0,0,0,.28)!important;border-radius:2px!important;font-size:9px!important}.leaflet-tooltip-top:before{border-top-color:#2a5c72!important}


/* V2.7 Function Parity */
.parity-filterbar{display:flex;gap:7px;align-items:center;flex-wrap:wrap;padding:10px 12px;border:1px solid #173f55;background:#071824;margin-bottom:10px}.parity-filterbar .input{min-width:145px}.parity-filterbar .input:first-child{min-width:260px}.date-input{min-width:135px!important}.parity-kpis{display:grid;grid-template-columns:repeat(6,minmax(110px,1fr));gap:8px;margin-bottom:10px}.parity-kpis article{border:1px solid #17455d;background:linear-gradient(180deg,#092131,#071925);padding:10px 12px;display:grid;gap:3px}.parity-kpis span{font-size:9px;color:#7295a8}.parity-kpis b{font-size:19px;color:#e3f7ff}.parity-kpis small{font-size:9px;color:#587b8f}.parity-event-grid{grid-template-columns:1.45fr 1fr}.parity-table{max-height:540px}.analytics-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.analytics-grid section{border:1px solid #173e52;background:#071924;padding:10px}.analytics-grid header{font-size:10px;color:#70cce0;font-weight:700;margin-bottom:8px}.dist-row{display:grid;grid-template-columns:72px 1fr 32px;gap:7px;align-items:center;font-size:10px;padding:5px 0}.dist-row i{height:5px;background:#0d2a39;display:block}.dist-row i b{display:block;height:100%;background:#34c8e6}.dist-row em{font-style:normal;text-align:right;color:#bcd3dc}.response-mini>div{display:grid;grid-template-columns:1fr auto;gap:3px;padding:5px 0;border-bottom:1px solid #123243}.response-mini small{grid-column:1/-1;color:#63869a}.pager{display:flex;justify-content:center;gap:12px;align-items:center;margin-top:10px}.dossier-truth,.truth-note{padding:9px 11px;border:1px solid #204b60;background:#08202d;color:#88adbd;font-size:10px;line-height:1.55}.dossier-truth b{color:#d8f3fa}.incident-actions{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}.note-editor{display:flex;gap:6px;margin:8px 0 12px}.note-editor input{flex:1}.chip-list{display:flex;gap:6px;flex-wrap:wrap}.chip-list span{border:1px solid #235268;background:#0a2230;padding:5px 8px;font-size:10px}.audit-list{display:grid;gap:5px}.audit-list>div{display:grid;grid-template-columns:90px 90px 100px 1fr;gap:6px;padding:7px;border-bottom:1px solid #123445;font-size:10px}.audit-list small{color:#8aa7b5}.event-context-search{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;border:1px solid #173f55;background:#071824;margin-bottom:10px}.event-context-search>div:last-child{display:flex;gap:6px}.event-context-search small{display:block;color:#66899a;margin-top:2px}.context-banner{display:grid;grid-template-columns:1.1fr 1fr 1fr 1fr;gap:8px;border:1px solid #27566b;background:#0a222e;padding:10px;margin-bottom:10px}.context-banner p{grid-column:1/-1;margin:0;color:#7395a5;font-size:10px}.history-node-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.history-node-card,.history-edge-grid article{border:1px solid #173c50;background:#081c28;padding:9px;display:grid;gap:4px}.history-node-card header{display:flex;justify-content:space-between}.history-node-card small,.history-edge-grid small{font-size:9px;color:#638698}.history-edge-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.history-edge-grid article span{font-size:10px;color:#77a9bb}.history-timeline-metrics{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:8px;font-size:10px}.history-timeline-metrics b{color:#d8f4fb}.history-long{max-height:410px;overflow:auto}.history-topology-note{height:100%;min-height:260px;display:grid;place-items:center;text-align:center;color:#66899b;padding:30px;line-height:1.7}.parity-geo{grid-template-columns:minmax(0,1.7fr) minmax(300px,.7fr)}.geo-parity-controls{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:10px}.geo-parity-controls label{font-size:9px;color:#6d91a4;display:grid;gap:4px}.geo-parity-controls button{grid-column:1/-1}.admin-audit{max-height:390px}.system-error{padding:10px;border:1px solid #743740;background:#2d1118;color:#ff9ba4;margin-top:10px;font-size:11px}
@media(max-width:1400px){.parity-kpis{grid-template-columns:repeat(3,1fr)}.parity-event-grid,.parity-geo{grid-template-columns:1fr}.analytics-grid{grid-template-columns:1fr 1fr}}


/* ============================================================
   SparkLink Web V2.7.3a Visual Restore
   Visual-only patch. No API/auth/business semantics are changed.
   ============================================================ */

/* Leaflet ships .leaflet-tile { filter: inherit; }.
   Keep SparkLink's dark command-center basemap authoritative. */
.leaflet-tile{
  filter:saturate(.60) brightness(.55) contrast(1.15) hue-rotate(165deg)!important;
}

/* RC2 added a production logout action, so the old 340px right header column
   became too narrow and compressed “实时数据源在线” into vertical text. */
.topbar{
  grid-template-columns:300px minmax(520px,1fr) 450px;
  padding-left:20px;
  padding-right:20px;
}
.top-status{
  min-width:0;
  gap:10px;
  white-space:nowrap;
}
.top-status>*{flex:0 0 auto}
.top-status .status-chip{
  min-width:max-content;
  white-space:nowrap;
  padding:7px 9px;
}
.top-status .clock{min-width:92px}
.top-status .nav-item{
  white-space:nowrap;
  padding-left:8px;
  padding-right:8px;
}
.logout-item{min-width:auto}

/* Give the positioning status panel a little more room and stop evidence text
   from colliding/clipping on common 1600–1920 px operator displays. */
.overview{
  grid-template-columns:300px minmax(0,1fr) 330px;
}
.right-stack .detail-list{
  grid-template-columns:82px minmax(0,1fr);
}
.right-stack .detail-list>div{
  min-width:0;
  padding:7px 6px;
}
.right-stack .detail-list>div:nth-child(even){
  line-height:1.4;
  overflow-wrap:anywhere;
}
.panel-title .hint{white-space:nowrap}

/* Protect command-center headings/status from accidental character-by-character wrap. */
.brand-title,.brand-sub,.title-main,.title-sub,.status-chip,.clock,.nav-item{
  word-break:keep-all;
}

@media(max-width:1500px){
  .topbar{grid-template-columns:270px minmax(430px,1fr) 425px;padding-left:16px;padding-right:16px}
  .brand-title{font-size:21px}
  .brand-sub{font-size:10px;letter-spacing:1.1px}
  .title-main{font-size:23px;letter-spacing:1.4px}
  .title-sub{font-size:10px;letter-spacing:2px}
  .top-status{gap:7px}
  .top-status .status-chip{font-size:11px;padding-left:7px;padding-right:7px}
  .top-status .clock{min-width:82px}
  .top-status .nav-item{font-size:11px;padding-left:6px;padding-right:6px}
  .overview{grid-template-columns:290px minmax(0,1fr) 320px}
}

@media(max-width:1320px){
  .topbar{grid-template-columns:245px minmax(400px,1fr) 390px}
  .brand-mark{width:40px;height:40px}
  .brand-title{font-size:19px}
  .title-main{font-size:21px}
  .title-sub{font-size:9px;letter-spacing:1.5px}
  .top-status .status-chip{font-size:10px}
  .top-status .nav-item{font-size:10px}
  .overview{grid-template-columns:275px minmax(0,1fr) 305px;gap:8px}
}

/* SparkLink Web V2.7.3c Header Naming & Centering */
/* Keep the product title geometrically centered in the whole viewport,
   not merely centered inside the unequal header grid remainder. */
.topbar{position:relative}
.topbar>.brand{grid-column:1;position:relative;z-index:3}
.topbar>.top-status{grid-column:3;position:relative;z-index:3}
.title-wrap{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:min(650px,40vw);
  text-align:center;
  z-index:2;
  pointer-events:none;
}
.title-main,.title-sub{
  white-space:nowrap;
  overflow:visible;
  text-align:center;
}
@media(max-width:1500px){
  .title-wrap{width:min(600px,40vw)}
}
@media(max-width:1320px){
  .title-wrap{width:min(520px,40vw)}
}

/* SparkLink Web V2.7.3d Official Brand Mark */
.brand-mark.brand-mark-official{
  width:46px;
  height:46px;
  flex:0 0 46px;
  border:0;
  background:transparent;
  clip-path:none;
  display:grid;
  place-items:center;
  overflow:visible;
}
.brand-mark.brand-mark-official .brand-mark-img{
  width:46px;
  height:46px;
  object-fit:contain;
  display:block;
  filter:drop-shadow(0 0 5px rgba(30,165,240,.18));
}
/* /SparkLink Web V2.7.3d Official Brand Mark */

/* SparkLink Web V2.7.3e Node Summary Compact */
/* Node Management is intentionally asymmetric: the node table may use the
   available page height, while the summary should stop after its real data. */
.nodes-grid{align-items:stretch}
.nodes-grid>.panel:first-child{height:100%;min-height:0}
.nodes-grid>.panel:last-child{
  align-self:start;
  height:auto;
  min-height:0;
}
.nodes-grid>.panel:last-child .panel-body{
  height:auto;
  overflow:visible;
}
.node-summary-chart{
  height:126px;
  min-height:126px;
  margin-top:12px;
  padding-bottom:2px;
}
.node-summary-chart .chart{
  height:126px;
  min-height:126px;
}
@media(max-height:760px){
  .node-summary-chart,.node-summary-chart .chart{height:112px;min-height:112px}
}
/* /SparkLink Web V2.7.3e Node Summary Compact */

/* SparkLink Web V2.7.3f Node Chart Aspect Fix */
/* The previous generic chart used preserveAspectRatio="none". In the wide
   Node Summary panel that non-uniformly scaled the SVG, including its text.
   This dedicated chart is drawn at a wide native ratio and scales uniformly. */
.node-summary-chart{
  height:112px;
  min-height:112px;
  margin-top:10px;
  padding:0;
  overflow:hidden;
}
.node-summary-chart .node-chart-vector{
  width:100%;
  height:112px;
  min-height:112px;
}
.node-summary-chart .node-chart-vector svg{
  display:block;
  width:100%;
  height:100%;
  overflow:visible;
}
.node-summary-chart .node-chart-vector .chart-label{
  font-size:8px;
  letter-spacing:.15px;
}
.node-summary-chart .node-chart-vector .grid-line{
  vector-effect:non-scaling-stroke;
}
.node-summary-chart .node-chart-vector .series-rssi,
.node-summary-chart .node-chart-vector .series-snr{
  vector-effect:non-scaling-stroke;
}
@media(max-height:760px){
  .node-summary-chart,.node-summary-chart .node-chart-vector{height:102px;min-height:102px}
}
/* /SparkLink Web V2.7.3f Node Chart Aspect Fix */

/* SparkLink Web V2.7.3g History Layout Polish */
/* History is a multi-section workspace, unlike ordinary pages which use a
   fixed two-row grid. Keep the whole history page scrollable and let each
   evidence block take its natural height. */
.history-page{
  height:100%;
  display:block;
  overflow:auto;
  padding-right:3px;
  scrollbar-gutter:stable;
}
.history-page>.page-head{
  min-height:50px;
  margin-bottom:8px;
}
.history-page>.parity-filterbar,
.history-page>.event-context-search{
  margin-bottom:8px;
}
.history-page>.context-banner,
.history-page>.parity-kpis,
.history-page>.page-grid,
.history-page>.truth-note,
.history-page>.panel,
.history-page>.system-error{
  margin-bottom:8px;
}

/* Snapshot: keep the two evidence panels aligned at the top instead of
   stretching their bodies to a shared artificial height. */
.history-page>.page-grid.two-col{
  grid-template-columns:minmax(0,1.55fr) minmax(360px,.85fr);
  align-items:start;
}
.history-page>.page-grid.two-col>.panel{
  height:auto;
  min-height:0;
  align-self:start;
}
.history-page>.page-grid.two-col>.panel .panel-body{
  height:auto;
  min-height:0;
  overflow:visible;
  padding:9px;
}

/* Four fixed nodes should read like a compact evidence strip on desktop. */
.history-page .history-node-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
}
.history-page .history-node-card{
  min-width:0;
  min-height:104px;
  padding:10px 11px;
  gap:4px;
}
.history-page .history-node-card header{
  gap:8px;
  align-items:center;
}
.history-page .history-node-card header b,
.history-page .history-node-card header span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.history-page .history-node-card p{
  margin:8px 0 4px;
  min-height:16px;
}
.history-page .history-node-card small{
  display:block;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.history-page .history-edge-grid{
  grid-template-columns:1fr;
  gap:7px;
}
.history-page .history-edge-grid>.muted{
  min-height:92px;
  display:flex;
  align-items:center;
  padding:0 10px;
  font-size:12px;
}

/* Timeline: one clear metrics strip + one readable evidence list. */
.history-page>.panel{
  height:auto;
  min-height:0;
}
.history-page>.panel>.panel-body{
  height:auto;
  overflow:visible;
  padding:9px 10px 10px;
}
.history-page .history-timeline-metrics{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:7px;
  margin:0 0 8px;
}
.history-page .history-timeline-metrics span{
  min-width:0;
  min-height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:6px 8px;
  border:1px solid #163e52;
  background:#081d2a;
  color:#7f9faf;
  white-space:nowrap;
}
.history-page .history-timeline-metrics b{
  font-size:13px;
  color:#e3f7ff;
}
.history-page .timeline.history-long{
  height:auto;
  max-height:300px;
  overflow:auto;
  border:1px solid #12384b;
  background:#061824;
  scrollbar-gutter:stable;
}
.history-page .history-long .timeline-item{
  grid-template-columns:76px 56px minmax(0,1fr);
  min-height:31px;
  padding:6px 9px;
  gap:8px;
}
.history-page .history-long .timeline-item>span:last-child:empty{
  display:none;
}
.history-page .history-long .timeline-item .text{
  min-width:0;
}
.history-page .history-long+.truth-note{
  margin-top:8px;
}

@media(max-width:1500px){
  .history-page .history-node-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:1050px){
  .history-page>.page-grid.two-col{grid-template-columns:1fr}
  .history-page .history-timeline-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:720px){
  .history-page .history-node-grid{grid-template-columns:1fr}
  .history-page .history-timeline-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
}
/* /SparkLink Web V2.7.3g History Layout Polish */

/* SparkLink Web V2.7.3h History Alignment Polish */
/* Layout-only refinement for Network History. Keep truth-safe logic unchanged. */
.history-page{
  --history-gap:8px;
  --history-panel-min:144px;
}
.history-page>.page-head,
.history-page>.parity-filterbar,
.history-page>.event-context-search,
.history-page>.context-banner,
.history-page>.parity-kpis,
.history-page>.page-grid,
.history-page>.truth-note,
.history-page>.panel,
.history-page>.system-error{
  margin-bottom:8px;
}

/* KPI strip */
.history-page>.parity-kpis{
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:var(--history-gap);
  align-items:stretch;
}
.history-page>.parity-kpis article{
  min-height:86px;
  display:grid;
  align-content:start;
  gap:4px;
}

/* Snapshot workspace */
.history-page>.page-grid.two-col{
  grid-template-columns:minmax(0,1.62fr) minmax(380px,.9fr);
  gap:var(--history-gap);
  align-items:stretch;
}
.history-page>.page-grid.two-col>.panel{
  display:flex;
  flex-direction:column;
  height:100%;
  min-height:var(--history-panel-min);
}
.history-page>.page-grid.two-col>.panel>.panel-title,
.history-page>.panel>.panel-title{
  min-height:36px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.history-page>.page-grid.two-col>.panel>.panel-body{
  flex:1;
  min-height:122px;
  padding:9px;
  overflow:visible;
}
.history-page>.page-grid.two-col>.panel:last-child>.panel-body{
  display:grid;
  align-content:start;
}

/* Node history cards */
.history-page .history-node-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:var(--history-gap);
  align-items:stretch;
}
.history-page .history-node-card{
  min-width:0;
  min-height:102px;
  height:100%;
  padding:10px 11px;
  display:grid;
  grid-template-rows:auto auto 1fr auto;
  align-content:start;
  gap:4px;
}
.history-page .history-node-card header{
  gap:10px;
  align-items:center;
}
.history-page .history-node-card header b,
.history-page .history-node-card header span,
.history-page .history-node-card p,
.history-page .history-node-card small{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.history-page .history-node-card p{margin:4px 0 2px;}

/* RF edge panel aligns visually with node history strip */
.history-page .history-edge-grid{
  grid-template-columns:1fr;
  gap:7px;
  min-height:100%;
}
.history-page .history-edge-grid article,
.history-page .history-edge-grid>.muted{
  min-height:102px;
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
  padding:10px 11px;
}
.history-page .history-edge-grid>.muted{
  font-size:12px;
  line-height:1.65;
}

/* Timeline section */
.history-page>.panel{
  display:flex;
  flex-direction:column;
  height:auto;
}
.history-page>.panel>.panel-body{
  display:grid;
  gap:8px;
  padding:9px 10px 10px;
  overflow:visible;
}
.history-page .history-timeline-metrics{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:var(--history-gap);
  margin:0;
}
.history-page .history-timeline-metrics span{
  min-height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:8px 10px;
  border:1px solid #163e52;
  background:#081d2a;
  color:#7f9faf;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.history-page .history-timeline-metrics b{
  font-size:13px;
  color:#e3f7ff;
}
.history-page .timeline.history-long{
  height:auto;
  max-height:286px;
  overflow:auto;
  border:1px solid #12384b;
  background:#061824;
  scrollbar-gutter:stable;
}
.history-page .history-long .timeline-item{
  grid-template-columns:76px 56px minmax(0,1fr);
  min-height:32px;
  padding:6px 10px;
  gap:8px;
}
.history-page .history-long .timeline-item .text{
  min-width:0;
}

@media(max-width:1500px){
  .history-page .history-node-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .history-page>.page-grid.two-col{grid-template-columns:minmax(0,1.45fr) minmax(320px,.95fr);}
}
@media(max-width:1120px){
  .history-page>.page-grid.two-col{grid-template-columns:1fr;}
  .history-page .history-timeline-metrics{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media(max-width:720px){
  .history-page .history-node-grid{grid-template-columns:1fr;}
  .history-page .history-timeline-metrics{grid-template-columns:repeat(2,minmax(0,1fr));}
}
/* /SparkLink Web V2.7.3h History Alignment Polish */

/* SparkLink Web V2.7.4 Topology Advanced CSS */
.topology-advanced{position:relative;height:100%;min-height:0;overflow:hidden;background:radial-gradient(circle at 50% 48%,rgba(24,113,145,.12),transparent 34%),linear-gradient(180deg,rgba(6,25,38,.72),rgba(4,18,29,.94));isolation:isolate}
.topology-advanced:before,.topology-advanced:after{content:"";position:absolute;pointer-events:none;z-index:0}.topology-advanced:before{inset:0;background:linear-gradient(90deg,transparent 49.8%,rgba(41,128,157,.12) 50%,transparent 50.2%),linear-gradient(0deg,transparent 49.8%,rgba(41,128,157,.1) 50%,transparent 50.2%);opacity:.8}.topology-advanced:after{inset:10px;border:1px solid rgba(55,155,192,.08);box-shadow:inset 0 0 42px rgba(21,139,178,.04)}
.topo-adv-grid{position:absolute;inset:0;z-index:0;background-image:linear-gradient(rgba(50,128,155,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(50,128,155,.055) 1px,transparent 1px);background-size:28px 28px;mask-image:radial-gradient(circle at center,#000 0 58%,transparent 86%)}
.topo-adv-radar{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);border:1px solid rgba(68,193,224,.12);border-radius:50%;z-index:0;pointer-events:none}.topo-adv-radar.r1{width:22%;aspect-ratio:1}.topo-adv-radar.r2{width:39%;aspect-ratio:1}.topo-adv-radar.r3{width:58%;aspect-ratio:1;border-style:dashed;opacity:.65}
.topo-adv-edge-layer{position:absolute;inset:0;width:100%;height:100%;z-index:1;overflow:visible;pointer-events:none}.topo-adv-edge .topo-adv-glow{stroke-width:7;opacity:.12;filter:blur(2px)}.topo-adv-edge .topo-adv-line{stroke-width:1.7;fill:none;stroke-dasharray:8 7;animation:topo-flow 2.4s linear infinite}.topo-adv-edge.direct line{stroke:#3ad7ff}.topo-adv-edge.relay line{stroke:#45dda9}.topo-adv-edge.relay .topo-adv-line{stroke-dasharray:2 5}.topo-adv-edge.p0 line{stroke:#ff5964}.topo-adv-edge.p0 .topo-adv-line{stroke-width:2.5;stroke-dasharray:11 6}.topo-adv-edge.p1 line{stroke:#ffae49}.topo-adv-edge.p2 line{stroke:#6da9ff}.topo-adv-edge.ack line{stroke:#77efd2}.topo-adv-edge.ack .topo-adv-line{stroke-dasharray:3 5}.topo-adv-edge.unknown line{stroke:#607887;opacity:.45;stroke-dasharray:2 9}@keyframes topo-flow{to{stroke-dashoffset:-30}}
.topo-adv-core{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:3;width:138px;height:138px;border:1px solid rgba(65,196,226,.2);border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:radial-gradient(circle,rgba(8,37,53,.96),rgba(5,23,35,.86) 64%,rgba(5,23,35,.3));box-shadow:0 0 0 9px rgba(46,156,191,.035),0 0 38px rgba(37,168,210,.08);pointer-events:none}.topo-adv-core:before,.topo-adv-core:after{content:"";position:absolute;border-radius:50%;inset:10px;border:1px dashed rgba(76,205,233,.18)}.topo-adv-core:after{inset:23px;border-style:solid;opacity:.4}.topo-adv-core small{font-size:8px;letter-spacing:.16em;color:#5f96aa}.topo-adv-core strong{font-size:31px;line-height:1;color:#e2f9ff;margin:6px 0 3px}.topo-adv-core>span{font-size:9px;color:#6fc7db;letter-spacing:.12em}.topo-adv-core>div{display:flex;gap:8px;margin-top:7px}.topo-adv-core i{font-style:normal;font-size:7px;color:#668b9a;letter-spacing:.05em}
.topo-adv-node{position:absolute;left:var(--tx);top:var(--ty);transform:translate(-50%,-50%);z-index:5;width:174px;min-height:88px;border:1px solid #1d5268;background:linear-gradient(180deg,rgba(10,38,53,.98),rgba(6,25,37,.96));color:#d7f1fb;padding:9px 10px;display:grid;grid-template-columns:42px 1fr;gap:9px;align-items:center;text-align:left;cursor:pointer;box-shadow:0 10px 24px rgba(0,0,0,.24);transition:.18s ease}.topo-adv-node:hover{border-color:#3ca7cc;box-shadow:0 0 0 1px rgba(72,190,225,.12),0 12px 32px rgba(0,0,0,.3);transform:translate(-50%,-50%) translateY(-2px)}.topo-adv-node:before{content:"";position:absolute;left:-1px;top:16px;bottom:16px;width:2px;background:#3ad7ff}.topo-adv-node.offline:before{background:#ff6570}.topo-adv-node.unknown:before{background:#6d8794}.topo-adv-node.delay:before{background:#ffb34d}.topo-adv-beacon{width:40px;height:40px;border-radius:50%;border:1px solid #35c8ea;display:grid;place-items:center;position:relative;background:#082635;box-shadow:0 0 18px rgba(50,198,230,.12)}.topo-adv-beacon:before{content:"";position:absolute;inset:-7px;border:1px solid rgba(54,206,236,.17);border-radius:50%}.topo-adv-beacon i{font-style:normal;font-weight:700;font-size:12px;color:#dffaff}.topo-adv-node.online .topo-adv-beacon:after{content:"";position:absolute;inset:-8px;border-radius:50%;border:1px solid rgba(70,226,203,.35);animation:topo-pulse 2.2s ease-out infinite}.topo-adv-node.offline .topo-adv-beacon{border-color:#9b4850;box-shadow:none}.topo-adv-node.unknown .topo-adv-beacon{border-color:#587482;box-shadow:none}.topo-adv-node.delay .topo-adv-beacon{border-color:#ca8840}@keyframes topo-pulse{0%{transform:scale(.8);opacity:.7}100%{transform:scale(1.45);opacity:0}}
.topo-adv-node-copy{min-width:0;display:grid;gap:5px}.topo-adv-node-head{display:flex;justify-content:space-between;align-items:center;gap:8px}.topo-adv-node-head b{font-size:12px;letter-spacing:.05em}.topo-adv-node-head em{font-style:normal;font-size:9px;color:#5fd7bf}.topo-adv-node.offline .topo-adv-node-head em{color:#ff6872}.topo-adv-node.unknown .topo-adv-node-head em{color:#758f9d}.topo-adv-node.delay .topo-adv-node-head em{color:#ffb24c}.topo-adv-node-metrics{display:grid;grid-template-columns:1fr 1fr;gap:5px}.topo-adv-node-metrics span,.topo-adv-node-foot{font-size:8px;color:#698d9d}.topo-adv-node-metrics b{font-size:9px;color:#c4e7f3}.topo-adv-node-foot{display:flex;justify-content:space-between;gap:8px;white-space:nowrap}
.topo-adv-node.compact{width:86px;min-height:66px;padding:6px;grid-template-columns:1fr;justify-items:center;gap:3px;background:rgba(7,28,41,.94)}.topo-adv-node.compact .topo-adv-beacon{width:31px;height:31px}.topo-adv-node.compact .topo-adv-beacon:before{inset:-5px}.topo-adv-node.compact .topo-adv-node-name{font-size:8px;color:#c8e8f4}.topo-adv-node.compact em{font-style:normal;font-size:7px;color:#708e9c}.topo-adv-node.compact.offline em{color:#ff6d76}
.topo-adv-link-chip{position:absolute;z-index:4;transform:translate(-50%,-50%);min-width:92px;padding:4px 7px;border:1px solid #24566d;background:rgba(5,24,36,.95);box-shadow:0 4px 14px rgba(0,0,0,.24);pointer-events:none}.topo-adv-link-chip b{display:block;font-size:8px;color:#d7f4fb}.topo-adv-link-chip span{display:block;font-size:7px;color:#6e93a4;margin-top:2px}.topo-adv-link-chip.direct{border-color:#2586a7}.topo-adv-link-chip.relay{border-color:#2b9276}.topo-adv-link-chip.p0{border-color:#9f3e48}.topo-adv-link-chip.ack{border-color:#3d9b86}
.topo-adv-legend{position:absolute;right:10px;bottom:9px;z-index:6;display:flex;align-items:center;gap:10px;padding:6px 8px;border:1px solid #183e50;background:rgba(5,22,33,.88);font-size:8px;color:#7899a8}.topo-adv-legend span{display:flex;align-items:center;gap:4px;white-space:nowrap}.topo-adv-legend i{width:17px;height:2px;background:#3ad7ff}.topo-adv-legend i.relay{background:#45dda9}.topo-adv-legend i.p0{background:#ff5964}.topo-adv-legend i.ack{background:#77efd2}.topo-adv-legend .topo-adv-count{color:#557b8e;margin-left:4px}.topo-adv-empty{position:absolute;left:50%;top:67%;transform:translateX(-50%);z-index:4;color:#587b8b;font-size:9px;letter-spacing:.05em;padding:5px 9px;border:1px solid rgba(38,94,116,.45);background:rgba(5,22,33,.68)}
.topology-advanced.compact .topo-adv-core{width:76px;height:76px}.topology-advanced.compact .topo-adv-core small{font-size:6px}.topology-advanced.compact .topo-adv-core strong{font-size:20px;margin:3px 0 1px}.topology-advanced.compact .topo-adv-core>span{font-size:6px}.topology-advanced.compact .topo-adv-core>div{display:none}.topology-advanced.compact .topo-adv-radar.r1{width:28%}.topology-advanced.compact .topo-adv-radar.r2{width:50%}.topology-advanced.compact .topo-adv-radar.r3{width:72%}.topology-advanced.compact .topo-adv-grid{background-size:20px 20px}.topology-advanced.compact .topo-adv-legend{right:6px;bottom:5px;gap:6px;padding:4px 5px;font-size:6px}.topology-advanced.compact .topo-adv-legend i{width:11px}.topology-advanced.compact .topo-adv-empty{top:78%;font-size:7px;padding:3px 6px}
.topology-main-stage{height:100%;min-height:0}.topology-main-panel>.panel-body{padding:0;overflow:hidden}.topology-advanced-page .topology-advanced-grid{grid-template-columns:minmax(0,1.6fr) minmax(420px,.88fr)}.topology-observation-panel>.panel-body{padding:10px}.topo-observation-head{height:38px;display:flex;align-items:center;justify-content:space-between;padding:0 4px 8px;color:#7297a8;font-size:9px}.topo-observation-head b{font-size:18px;color:#def6ff}.topo-observation-table{height:calc(100% - 38px)}.topo-semantic{display:inline-block;padding:3px 6px;border:1px solid #28576d;background:#0a2534;color:#b9e4f2;font-size:8px;white-space:nowrap}.topo-semantic.relay{border-color:#2c745f;color:#6de0ba}.topo-semantic.p0{border-color:#793b43;color:#ff838b}.topo-semantic.ack{border-color:#367662;color:#82e6cb}.topo-observation-empty{min-height:140px;display:grid;place-items:center;text-align:center;gap:5px;color:#5b7f90}.topo-observation-empty b{color:#8db0bf;font-size:11px}.topo-observation-empty span{font-size:9px}
@media(max-width:1450px){.topo-adv-node{width:154px}.topology-advanced-page .topology-advanced-grid{grid-template-columns:minmax(0,1.5fr) minmax(360px,.9fr)}}
@media(max-width:1180px){.topology-advanced-page .topology-advanced-grid{grid-template-columns:1fr}.topology-main-panel{min-height:560px}.topo-adv-node{width:165px}}
@media(prefers-reduced-motion:reduce){.topo-adv-edge .topo-adv-line,.topo-adv-node.online .topo-adv-beacon:after{animation:none!important}}
/* /SparkLink Web V2.7.4 Topology Advanced CSS */

/* SparkLink Web V2.7.4a Overview Topology Fix */
/* The advanced topology is composed of absolutely-positioned layers.
   In the overview panel the intermediate #ovTopology wrapper previously had
   auto height, so the compact topology collapsed even though the panel itself
   had a definite height. Give the wrapper a real box to render into. */
#ovTopology{
  width:100%;
  height:100%;
  min-height:0;
  position:relative;
  overflow:hidden;
}
#ovTopology>.topology-advanced{
  width:100%;
  height:100%;
  min-height:148px;
}
.bottom-grid>.panel:first-child>.panel-body{
  overflow:hidden;
}
/* Keep compact labels readable without changing truth semantics. */
#ovTopology .topo-adv-node.compact{
  width:82px;
  min-height:62px;
}
#ovTopology .topo-adv-core{
  pointer-events:none;
}
@media(max-width:1200px){
  #ovTopology>.topology-advanced{min-height:180px;}
}
/* /SparkLink Web V2.7.4a Overview Topology Fix */

/* ============================================================
   SparkLink Web V2.8 Visual Upgrade RC1
   Exact baseline: Web V2.7.4a Overview Topology Fix
   VISUAL ONLY — no API, auth, topology truth or event semantics changed.
   ============================================================ */

:root{
  --bg:#050d16;
  --bg2:#081521;
  --panel:#0a1a28;
  --panel2:#0c2030;
  --line:#17384b;
  --line2:#2c6d89;
  --cyan:#47cdea;
  --blue:#63a9ff;
  --green:#4fd2ae;
  --orange:#e6a64d;
  --red:#ef6670;
  --text:#e7f1f6;
  --muted:#88a4b4;
  --dim:#5b7889;
  --shadow:0 14px 36px rgba(0,0,0,.24);
  --v28-radius:8px;
  --v28-radius-sm:6px;
}

html,body,#app{background:#050d16}
body{
  background:
    radial-gradient(circle at 50% -12%,rgba(31,103,137,.18),transparent 37%),
    radial-gradient(circle at 82% 18%,rgba(25,84,112,.09),transparent 30%),
    linear-gradient(180deg,#07131f 0%,#050d16 52%,#040a11 100%);
  color:var(--text);
}
body:before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:0;
  opacity:.16;
  background-image:
    linear-gradient(rgba(89,154,181,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(89,154,181,.035) 1px,transparent 1px);
  background-size:42px 42px;
  mask-image:linear-gradient(to bottom,rgba(0,0,0,.75),transparent 78%);
}
.shell{position:relative;z-index:1;background:transparent}

/* Header — formal command-center hierarchy, restrained glow. */
.topbar{
  border-bottom:1px solid rgba(69,139,169,.38);
  background:linear-gradient(180deg,rgba(8,27,41,.985),rgba(6,19,30,.965));
  box-shadow:0 9px 28px rgba(0,0,0,.24);
}
.topbar:before,.topbar:after{height:1px;opacity:.58}
.brand{gap:13px}
.brand-title{font-weight:800;letter-spacing:1.2px;color:#edf8fc}
.brand-sub{color:#7797a9;letter-spacing:1.55px}
.brand-mark.brand-mark-official .brand-mark-img{
  filter:drop-shadow(0 2px 5px rgba(0,0,0,.28)) drop-shadow(0 0 8px rgba(71,205,234,.12));
}
.title-main{
  color:#edf7fb;
  font-weight:760;
  letter-spacing:2.3px;
  text-shadow:0 1px 0 rgba(255,255,255,.025),0 0 20px rgba(71,205,234,.08);
}
.title-sub{color:#7298ab;letter-spacing:2.65px}
.status-chip{
  border-color:rgba(66,127,153,.48);
  border-radius:5px;
  background:rgba(8,28,42,.72);
  color:#bfd3dd;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.012);
}
.clock strong{color:#dfeef5;font-variant-numeric:tabular-nums}
.clock span{color:#718c9c}
.logout-item{color:#8ea6b3!important}
.logout-item:hover{color:#eef8fb!important;border-color:#315e73!important}

/* Navigation — cleaner active state, less "game HUD". */
.navbar{
  gap:4px;
  padding:0 18px;
  background:rgba(6,19,29,.97);
  border-bottom:1px solid rgba(42,91,112,.52);
  box-shadow:0 5px 18px rgba(0,0,0,.12);
}
.navbar .nav-item{
  position:relative;
  height:31px;
  border-radius:5px;
  padding:0 12px;
  color:#8da7b6;
  transition:background .16s ease,border-color .16s ease,color .16s ease;
}
.navbar .nav-item:hover{
  color:#e2f2f8;
  border-color:rgba(58,119,145,.48);
  background:rgba(16,48,65,.34);
}
.navbar .nav-item.active{
  color:#edfaff;
  border-color:rgba(64,147,180,.58);
  background:linear-gradient(180deg,rgba(18,58,78,.82),rgba(10,34,48,.82));
  box-shadow:none;
}
.navbar .nav-item.active:after{
  content:"";
  position:absolute;
  left:18%;right:18%;bottom:-5px;
  height:1px;
  background:#59cee8;
  box-shadow:0 0 8px rgba(71,205,234,.35);
}

.content{padding:11px 13px 9px}
.footer{
  border-top:1px solid rgba(31,69,86,.55);
  background:rgba(5,16,24,.96);
  color:#587385;
  letter-spacing:.15px;
}

/* Panels — one consistent surface language across every workspace. */
.panel{
  border:1px solid rgba(36,78,98,.82);
  border-radius:var(--v28-radius);
  overflow:hidden;
  background:linear-gradient(180deg,rgba(11,29,43,.96),rgba(7,21,32,.955));
  box-shadow:0 12px 30px rgba(0,0,0,.20),inset 0 1px 0 rgba(255,255,255,.016);
}
.panel:before{
  left:0;
  width:100%;
  height:1px;
  opacity:.48;
  background:linear-gradient(90deg,transparent 0,rgba(71,205,234,.78) 10%,rgba(71,205,234,.16) 36%,transparent 74%);
}
.panel-title{
  height:36px;
  padding:0 13px;
  border-bottom:1px solid rgba(36,78,98,.62);
  background:linear-gradient(180deg,rgba(17,47,63,.74),rgba(10,31,44,.48));
  color:#ddecf3;
  font-size:12px;
  font-weight:720;
  letter-spacing:.45px;
}
.panel-title .hint{color:#708f9f;font-size:9.5px;letter-spacing:.15px}
.panel-body{height:calc(100% - 36px)}

/* Overview KPI strip — clearer numerical hierarchy. */
.kpis{gap:9px}
.kpi{
  border:1px solid rgba(40,87,108,.92);
  border-radius:7px;
  background:linear-gradient(155deg,rgba(14,43,59,.98),rgba(7,24,35,.98));
  box-shadow:0 8px 20px rgba(0,0,0,.16),inset 0 1px 0 rgba(255,255,255,.018);
  padding:0 13px;
}
.kpi:before{
  content:"";
  position:absolute;
  left:0;top:0;bottom:0;
  width:2px;
  background:linear-gradient(180deg,rgba(71,205,234,.92),rgba(71,205,234,.08));
}
.kpi:after{opacity:.42}
.kpi-icon{width:27px;height:27px;color:#58c7e0;opacity:.94}
.kpi small{font-size:9.5px;color:#7693a4;letter-spacing:.2px}
.kpi strong{font-size:23px;color:#f0f7fa;font-weight:760;font-variant-numeric:tabular-nums}
.kpi .unit{font-size:10px;color:#7491a1;font-weight:500}

/* Tables and structured evidence. */
.node-table,.data-table{font-variant-numeric:tabular-nums}
.node-table th,.data-table th{
  color:#7898a9;
  font-weight:650;
  background:rgba(15,42,56,.48);
  border-bottom-color:rgba(38,82,101,.7);
}
.node-table td,.data-table td{border-bottom-color:rgba(26,62,79,.58)}
.node-row,.data-table tbody tr{transition:background .14s ease}
.node-row:hover,.data-table tbody tr:hover{background:rgba(40,104,128,.10)}
.table-wrap{
  border:1px solid rgba(35,76,94,.72);
  border-radius:6px;
  overflow:auto;
  background:rgba(4,16,25,.25);
}
.link{color:#73d3e9!important}

/* Event cards — priority shown by a narrow evidence rail, not huge color blocks. */
.life-card{
  border-color:rgba(40,86,106,.78);
  border-radius:6px;
  background:linear-gradient(180deg,rgba(11,34,48,.92),rgba(7,25,36,.92));
  box-shadow:none;
}
.life-card.p0{
  border-color:rgba(131,58,66,.82);
  background:linear-gradient(90deg,rgba(91,30,37,.22),rgba(8,26,38,.96) 34%);
  box-shadow:inset 3px 0 0 rgba(239,102,112,.92);
}
.badge{border-radius:4px;font-weight:650;letter-spacing:.15px}
.progress{border-radius:999px;background:#0c2c3b}
.progress i{border-radius:999px;background:linear-gradient(90deg,#4bc8e5,#50d2ae)}

/* Buttons, tabs, fields. */
.btn,.subtab,.tool-btn,.input,.parity-filterbar select,.parity-filterbar input,.map-filter-select{
  border-radius:5px;
}
.btn,.subtab,.tool-btn{
  border-color:rgba(47,93,114,.78);
  background:linear-gradient(180deg,rgba(14,41,55,.95),rgba(8,28,40,.95));
  color:#a8c2d0;
  transition:border-color .15s ease,color .15s ease,background .15s ease,box-shadow .15s ease;
}
.btn:hover,.subtab:hover,.tool-btn:hover{
  border-color:rgba(71,154,184,.72);
  color:#edf9fd;
  background:linear-gradient(180deg,rgba(18,53,70,.98),rgba(10,34,47,.98));
  box-shadow:0 5px 14px rgba(0,0,0,.14);
}
.btn.primary,.subtab.active,.tool-btn.active{
  border-color:rgba(72,161,193,.82);
  color:#f1fbfe;
  background:linear-gradient(180deg,rgba(22,69,89,.98),rgba(12,43,58,.98));
  box-shadow:inset 0 0 0 1px rgba(91,210,235,.06);
}
.input,.parity-filterbar select,.parity-filterbar input,.map-filter-select{
  border-color:rgba(39,81,99,.86)!important;
  background:#071a27!important;
  color:#d8e8ef!important;
  outline:none;
}
.input:focus,.parity-filterbar select:focus,.parity-filterbar input:focus,.map-filter-select:focus{
  border-color:rgba(71,167,198,.88)!important;
  box-shadow:0 0 0 2px rgba(71,205,234,.07);
}

/* Standard pages. */
.page-head h2{color:#eef6f9;font-weight:760;letter-spacing:.3px}
.page-head p{color:#7895a5;line-height:1.55}
.parity-filterbar,.event-context-search,.context-banner{
  border-color:rgba(34,76,95,.78);
  border-radius:6px;
  background:rgba(7,24,35,.78);
}
.parity-kpis article,.analytics-grid section,.history-node-card,.history-edge-grid article{
  border-color:rgba(35,77,96,.78);
  border-radius:6px;
  background:linear-gradient(180deg,rgba(10,31,44,.92),rgba(6,23,33,.92));
}
.parity-kpis article b{color:#edf7fa;font-variant-numeric:tabular-nums}
.analytics-grid header{color:#78c9dc}
.truth-note,.dossier-truth{
  border-color:rgba(45,91,108,.72);
  border-radius:5px;
  background:rgba(8,29,40,.82);
  color:#88a7b5;
}

/* Timeline / audit evidence. */
.timeline-item{
  border-bottom-color:rgba(27,63,80,.62)!important;
}
.timeline-item:hover{background:rgba(40,101,124,.07)}
.timeline-item .time{font-variant-numeric:tabular-nums}
.audit-list>div{border-bottom-color:rgba(30,67,84,.64)}

/* Maps — keep basemap subdued so operational overlays win. */
.map-wrap{
  background:radial-gradient(circle at 50% 45%,#0b2a3a,#06151f 67%);
}
.map-overlay{
  opacity:.55;
  background-size:48px 48px;
}
.leaflet-tile{
  filter:saturate(.48) brightness(.50) contrast(1.17) hue-rotate(165deg)!important;
}
.map-toolbar .tool-btn,.map-legend,.map-filter-panel{
  backdrop-filter:blur(7px);
}
.map-legend{
  border-radius:5px;
  border-color:rgba(43,87,105,.76);
  background:rgba(5,19,29,.88);
}

/* V2.7.4 advanced topology — preserve geometry/truth, refine only surfaces. */
.topology-advanced{
  border-radius:6px;
  background:
    radial-gradient(circle at 50% 47%,rgba(20,70,88,.16),transparent 29%),
    linear-gradient(180deg,rgba(5,20,30,.98),rgba(5,17,27,.98));
}
.topology-advanced:before,.topology-advanced:after{opacity:.64}
.topo-adv-grid{opacity:.72;background-size:32px 32px}
.topo-adv-radar{border-color:rgba(77,177,203,.10)}
.topo-adv-radar.r3{opacity:.45}
.topo-adv-core{
  border-color:rgba(76,172,198,.24);
  background:radial-gradient(circle,rgba(10,38,51,.97),rgba(5,22,32,.94) 64%,rgba(5,22,32,.30));
  box-shadow:0 0 0 8px rgba(50,139,164,.025),0 14px 32px rgba(0,0,0,.18);
}
.topo-adv-core small{color:#668b9c}
.topo-adv-core strong{color:#edf9fc;font-weight:760}
.topo-adv-core>span{color:#70bfd1}
.topo-adv-node{
  border-color:#1d4a5e;
  border-radius:7px;
  background:linear-gradient(180deg,rgba(10,34,47,.985),rgba(6,24,35,.985));
  box-shadow:0 10px 24px rgba(0,0,0,.20),inset 0 1px 0 rgba(255,255,255,.016);
}
.topo-adv-node:hover{
  border-color:#378ba9;
  box-shadow:0 12px 28px rgba(0,0,0,.24),0 0 0 1px rgba(71,205,234,.04);
}
.topo-adv-beacon{
  border-color:#3ab8d5;
  background:#082431;
  box-shadow:0 0 13px rgba(56,185,213,.09);
}
.topo-adv-node.online .topo-adv-beacon:after{border-color:rgba(79,210,174,.28)}
.topo-adv-node-head b{color:#e3f2f7}
.topo-adv-node-head em{color:#64cdb1}
.topo-adv-node-metrics b{color:#c8e6ef}
.topo-adv-link-chip{
  border-radius:5px;
  border-color:#244b5d;
  background:rgba(5,21,31,.94);
  box-shadow:0 5px 14px rgba(0,0,0,.19);
}
.topo-adv-legend{
  border-radius:5px;
  border-color:#1d4353;
  background:rgba(5,19,28,.88);
  color:#7d9ba9;
}
.topo-semantic{border-radius:4px}

/* V2.7.4a critical overview topology sizing remains authoritative. */
#ovTopology{
  width:100%;
  height:100%;
  min-height:0;
  position:relative;
  overflow:hidden;
}
#ovTopology>.topology-advanced{width:100%;height:100%;min-height:148px}
.bottom-grid>.panel:first-child>.panel-body{overflow:hidden}

/* Drawer / modal / toast — product-grade finish. */
.drawer{
  background:rgba(5,16,25,.985)!important;
  border-left-color:rgba(48,100,121,.72)!important;
  box-shadow:-18px 0 44px rgba(0,0,0,.30)!important;
}
.toast{
  border-radius:6px;
  border-color:rgba(62,130,154,.75)!important;
  background:rgba(7,27,39,.96)!important;
  box-shadow:0 14px 34px rgba(0,0,0,.26)!important;
}

/* Scrollbars — subtle, consistent. */
*{scrollbar-width:thin;scrollbar-color:#28556b #071721}
*::-webkit-scrollbar{width:8px;height:8px}
*::-webkit-scrollbar-track{background:#071721}
*::-webkit-scrollbar-thumb{background:#28556b;border:2px solid #071721;border-radius:999px}
*::-webkit-scrollbar-thumb:hover{background:#34718d}

/* Responsive safeguards — preserve the fixes already made in 2.7.3/2.7.4a. */
@media(max-width:1500px){
  .content{padding-left:10px;padding-right:10px}
  .kpi{padding-left:10px;padding-right:10px}
  .kpi strong{font-size:21px}
}
@media(max-width:1180px){
  .panel{border-radius:6px}
  .navbar{padding-left:10px;padding-right:10px}
}
@media(prefers-reduced-motion:reduce){
  *,*:before,*:after{scroll-behavior:auto!important;transition:none!important}
}
/* /SparkLink Web V2.8 Visual Upgrade RC1 */

/* ============================================================
   SparkLink Web V2.8.2 Dashboard Atmosphere RC1
   VISUAL ONLY — subtle digital-twin background depth, overview
   hierarchy and map emphasis. No API/auth/topology/event truth
   semantics are changed.
   ============================================================ */

/* A very faint digital-twin substrate lives behind the workspace only.
   It is intentionally decorative and never carries business meaning. */
body:after{
  content:"";
  position:fixed;
  inset:var(--header) 0 26px 0;
  pointer-events:none;
  z-index:0;
  opacity:.42;
  background:
    repeating-radial-gradient(ellipse at 9% 92%,transparent 0 28px,rgba(78,151,178,.040) 29px,transparent 30px),
    repeating-radial-gradient(ellipse at 91% 12%,transparent 0 34px,rgba(73,145,171,.032) 35px,transparent 36px),
    radial-gradient(circle at 19% 31%,rgba(71,205,234,.105) 0 1px,transparent 1.8px),
    radial-gradient(circle at 27% 68%,rgba(71,205,234,.070) 0 1px,transparent 1.8px),
    radial-gradient(circle at 72% 24%,rgba(79,210,174,.060) 0 1px,transparent 1.8px),
    radial-gradient(circle at 83% 71%,rgba(71,205,234,.060) 0 1px,transparent 1.8px),
    linear-gradient(118deg,transparent 0 37%,rgba(62,141,171,.025) 37.1%,transparent 37.35% 61%,rgba(62,141,171,.020) 61.1%,transparent 61.35%);
  mask-image:linear-gradient(to bottom,rgba(0,0,0,.82),rgba(0,0,0,.60) 66%,transparent 100%);
}

/* Overview gets a clearer hierarchy: operational center first,
   supporting evidence second. */
.overview{
  grid-template-rows:72px minmax(0,1fr) 205px;
  gap:9px;
}
.overview .left-stack,.overview .right-stack{gap:9px}
.overview .left-stack>.panel,
.overview .right-stack>.panel{
  border-color:rgba(34,73,91,.70);
  background:linear-gradient(180deg,rgba(9,26,39,.955),rgba(6,19,29,.95));
  box-shadow:0 9px 23px rgba(0,0,0,.16),inset 0 1px 0 rgba(255,255,255,.012);
}
.overview .left-stack>.panel:before,
.overview .right-stack>.panel:before{opacity:.28}

/* Central map is the primary operational surface. */
.overview .map-panel{
  border-color:rgba(54,119,145,.88);
  background:linear-gradient(180deg,rgba(9,29,42,.985),rgba(5,18,28,.98));
  box-shadow:0 16px 34px rgba(0,0,0,.24),0 0 0 1px rgba(71,205,234,.028),inset 0 1px 0 rgba(255,255,255,.018);
}
.overview .map-panel:before{
  opacity:.72;
  background:linear-gradient(90deg,transparent 0,rgba(71,205,234,.88) 12%,rgba(71,205,234,.24) 42%,transparent 78%);
}
.overview .map-panel .panel-title{
  color:#edf8fb;
  background:linear-gradient(180deg,rgba(18,51,67,.84),rgba(10,30,43,.62));
}
.overview .map-panel .panel-title .hint{color:#7899a8}
.overview .map-panel .leaflet-tile{
  filter:saturate(.54) brightness(.56) contrast(1.14) hue-rotate(165deg)!important;
}
.overview .map-panel .map-overlay{opacity:.38}
.overview .map-panel .map-legend{
  background:rgba(5,19,29,.92);
  border-color:rgba(50,103,124,.80);
  box-shadow:0 8px 22px rgba(0,0,0,.18);
}

/* KPI values read faster while remaining compact. */
.overview .kpis{gap:8px}
.overview .kpi{padding-left:14px;padding-right:14px}
.overview .kpi strong{font-size:25px;letter-spacing:-.25px}
.overview .kpi small{color:#7f9cab}

/* Give the live topology a little more room without starving the event feed. */
.overview .bottom-grid{grid-template-columns:40% 60%;gap:9px}
.overview .bottom-grid>.panel{
  border-color:rgba(37,78,96,.76);
  box-shadow:0 10px 25px rgba(0,0,0,.17),inset 0 1px 0 rgba(255,255,255,.012);
}

/* Slightly quieter dividers reduce the “all thin borders” effect. */
.overview .panel-title{border-bottom-color:rgba(34,73,91,.48)}
.overview .node-table th,.overview .data-table th{background:rgba(13,36,49,.34)}
.overview .node-table td,.overview .data-table td{border-bottom-color:rgba(27,59,73,.46)}

/* Preserve V2.7.4a overview topology geometry exactly. */
#ovTopology{width:100%;height:100%;min-height:0;position:relative;overflow:hidden}
#ovTopology>.topology-advanced{width:100%;height:100%;min-height:148px}

@media(max-width:1500px){
  .overview{grid-template-rows:70px minmax(0,1fr) 198px;gap:8px}
  .overview .left-stack,.overview .right-stack,.overview .bottom-grid{gap:8px}
  .overview .kpi strong{font-size:23px}
}

@media(prefers-reduced-motion:reduce){
  body:after{opacity:.34}
}

/* /SparkLink Web V2.8.2 Dashboard Atmosphere RC1 */
\n\n/* ============================================================
   SparkLink Web V2.8.3 Map Resilience RC1a
   Local Leaflet + server-side OSM tile proxy status.
   ============================================================ */
.map-base-status{
  position:absolute;left:10px;bottom:10px;z-index:510;
  display:flex;align-items:center;gap:6px;height:24px;padding:0 8px;
  border:1px solid rgba(53,102,123,.64);background:rgba(5,18,28,.90);
  color:#86a7b8;font-size:9px;letter-spacing:.02em;pointer-events:none;
  box-shadow:0 6px 18px rgba(0,0,0,.16)
}
.map-base-status span{width:6px;height:6px;border-radius:50%;background:#d7a94b;box-shadow:0 0 8px rgba(215,169,75,.22)}
.map-base-status.online{color:#8fc9bb;border-color:rgba(55,128,105,.66)}
.map-base-status.online span{background:#40cf9d;box-shadow:0 0 8px rgba(64,207,157,.28)}
.map-base-status.offline{color:#d0a65b;border-color:rgba(157,112,44,.66)}
.map-base-status.offline span{background:#e1a443;box-shadow:0 0 8px rgba(225,164,67,.24)}
.map-attribution{
  position:absolute;left:10px;bottom:38px;z-index:505;
  color:rgba(143,171,184,.68);font-size:8px;line-height:1;pointer-events:none;
  text-shadow:0 1px 4px rgba(0,0,0,.72)
}
.full-map .map-base-status{bottom:12px}
.full-map .map-attribution{bottom:40px}
/* /SparkLink Web V2.8.3 Map Resilience RC1a */\n