diff --git a/cli/cmd/dashboard_test.go b/cli/cmd/dashboard_test.go index 8e01666..4495a2d 100644 --- a/cli/cmd/dashboard_test.go +++ b/cli/cmd/dashboard_test.go @@ -230,6 +230,19 @@ func TestDashboardHTMLIsNotCached(t *testing.T) { } } +func TestTopologyMapsHaveNoFixedHubAndCanZoom(t *testing.T) { + for _, required := range []string{`data-net="in"`, `data-net="out"`, `data-net="fit"`, `data-net="full"`, `requestFullscreen()`, `data-cat="observed"`, `data-cat="predicted"`, `data-cat="severity"`, `drawTopology('offlineGraph'`, `drawTopology('modelGraph'`, `drawTopology('captureGraph'`} { + if !strings.Contains(dashboardHTML, required) { + t.Fatalf("topology map is missing %q", required) + } + } + for _, removed := range []string{"CAPTURE HUB", "MAIN HOST", "lower-activity"} { + if strings.Contains(dashboardHTML, removed) { + t.Fatalf("topology map must not centre on one host or drop hosts: found %q", removed) + } + } +} + func TestOfflineUploadAndShortRolloutControls(t *testing.T) { for _, required := range []string{`id="offlineUpload"`, `id="offlineStepTabs"`, `id="offlinePast"`, `id="offlineFuture"`, `id="offlineGraph"`, `Math.min(3,Number(w.rollout_steps||0))`} { if !strings.Contains(dashboardHTML, required) { diff --git a/cli/cmd/dashboard_ui.go b/cli/cmd/dashboard_ui.go index 7b754e8..1de673d 100644 --- a/cli/cmd/dashboard_ui.go +++ b/cli/cmd/dashboard_ui.go @@ -25,26 +25,28 @@ const dashboardHTML = ` .shell{min-height:100vh;display:grid;grid-template-columns:240px minmax(0,1fr);transition:grid-template-columns .2s ease}.sidebar{position:sticky;top:0;height:100vh;padding:16px 12px;border-right:1px solid var(--line);background:#fff;display:flex;flex-direction:column;z-index:10;overflow:visible;transition:padding .2s ease}.brand{display:flex;align-items:center;gap:12px;min-height:56px;padding:0 8px 16px;overflow:hidden}.brand-mark{width:36px;height:36px;min-width:36px;border-radius:10px;background:var(--red);color:#fff;display:grid;place-items:center;font-weight:900;letter-spacing:-.04em}.brand-copy{min-width:0;white-space:nowrap}.brand strong{display:block;font-size:18px;letter-spacing:-.02em}.brand small{color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.14em}.rail-toggle{position:absolute;right:-13px;top:29px;width:26px;height:26px;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--muted);display:grid;place-items:center;cursor:pointer;box-shadow:var(--shadow);z-index:2}.rail-toggle:hover{color:var(--red);border-color:#c9c9c9}.nav{display:grid;gap:4px}.nav button{position:relative;display:flex;align-items:center;gap:12px;width:100%;min-height:42px;border:0;border-radius:10px;padding:9px 12px;background:transparent;text-align:left;color:var(--text);cursor:pointer;font-weight:500;overflow:hidden}.nav button:hover{background:var(--surface)}.nav button.active{background:var(--surface);font-weight:700}.nav button.active:before{content:"";position:absolute;left:0;top:9px;bottom:9px;width:3px;border-radius:3px;background:var(--red)}.nav-icon{width:24px;min-width:24px;text-align:center;color:var(--muted)}.nav-label{white-space:nowrap}.side-foot{margin-top:auto;border-top:1px solid var(--line);padding:14px 10px 4px}.side-foot>p{margin:12px 0 10px;font-size:11px;color:var(--muted)}.latency-aside h4{margin:0 0 9px;font-size:10px;text-transform:uppercase;letter-spacing:.12em}.lag-row{display:flex;justify-content:space-between;gap:8px;padding:6px 0;border-bottom:1px solid var(--line)}.lag-row:last-child{border-bottom:0}.lag-row span{font-size:10px;color:var(--muted)}.lag-row strong{font-size:11px}.lag-note{display:block;margin-top:7px;color:var(--muted);font-size:9px;line-height:1.35}body.rail-collapsed .shell{grid-template-columns:76px minmax(0,1fr)}body.rail-collapsed .sidebar{padding-left:10px;padding-right:10px}body.rail-collapsed .brand{justify-content:center;padding-left:0;padding-right:0}body.rail-collapsed .brand-copy,body.rail-collapsed .nav-label,body.rail-collapsed .side-foot{display:none}body.rail-collapsed .nav button{justify-content:center;gap:0;padding:9px}body.rail-collapsed .nav-icon{font-size:15px} .main{min-width:0;padding:0 32px 48px;max-width:1600px;width:100%;margin:0 auto}.topbar{height:56px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);margin-bottom:32px}.topbar h1{font-size:16px;margin:0;font-weight:700}.topbar p{margin:1px 0 0;color:var(--muted);font-size:11px}.status-row{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.chip{display:inline-flex;align-items:center;gap:7px;min-height:32px;border:0;border-radius:999px;padding:6px 12px;color:var(--text);background:var(--surface);font-size:11px;font-weight:600}.dot{width:7px;height:7px;border-radius:50%;background:var(--muted)}.chip.good .dot{background:var(--green)}.chip.bad .dot{background:var(--red)} .view{display:none;animation:enter .18s ease}.view.active{display:block}@keyframes enter{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}.section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin:0 0 24px}.eyebrow{margin:0 0 7px;color:var(--red);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.16em}.section-head h2,.hero h2{margin:0;font-size:clamp(28px,3.4vw,44px);line-height:1.08;letter-spacing:-.035em}.section-head p{margin:8px 0 0;color:var(--muted);max-width:700px}.grid{display:grid;gap:16px}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.span-2{grid-column:span 2}.span-all{grid-column:1/-1}.card{background:var(--surface2);border:1px solid var(--line);border-radius:12px;padding:20px;box-shadow:none;min-width:0}.card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:18px}.card-head h3{font-size:15px;margin:0}.card-head p{font-size:11px;color:var(--muted);margin:4px 0 0}.kpi{min-height:116px;display:flex;flex-direction:column;justify-content:space-between;background:var(--surface);border-color:transparent}.kpi-label{color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.12em;font-weight:700}.kpi-value{font-size:28px;font-weight:700;letter-spacing:-.035em}.kpi-note{font-size:11px;color:var(--muted)} -.hero{position:relative;overflow:hidden;min-height:0;padding:26px 30px 30px;background:#101113;color:#fff;border:1px solid #292a2d;display:flex;flex-direction:column;gap:22px}.hero:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#ff3038}.hero:after{content:"";position:absolute;right:-100px;bottom:-250px;width:390px;height:390px;border:1px solid rgba(255,255,255,.08);border-radius:50%;pointer-events:none}.hero-header{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px}.hero-header .eyebrow{margin:0;color:#ff7378}.hero-header span{color:#9699a0;font-size:10px;font-weight:700;letter-spacing:.11em;text-transform:uppercase}.hero-copy{position:relative;z-index:1;min-width:0;padding-top:20px;border-top:1px solid #34363a}.hero h2{max-width:960px;font-size:clamp(27px,3vw,42px);line-height:1.12;letter-spacing:-.035em}.hero-copy p{color:#b9bbc0;margin:10px 0 0;max-width:780px;font-size:13px;line-height:1.5}.hero-metrics{position:relative;z-index:1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;min-width:0;width:100%}.hero-metric{min-width:0;min-height:112px;padding:15px 17px;border-radius:10px;background:#202124;border:1px solid #37393d;display:flex;flex-direction:column;justify-content:space-between;gap:7px}.hero-metric .kpi-label{color:#b9bbc0;font-size:10px;line-height:1.25}.hero-measure{display:flex;align-items:baseline;gap:7px;min-width:0;flex-wrap:wrap}.hero-metric strong{display:block;color:#fff;font-size:clamp(22px,2.1vw,31px);line-height:1;letter-spacing:-.045em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.hero-unit{color:#d5d6da;font-size:11px;white-space:nowrap}.hero-metric .kpi-note{color:#a6a9af;font-size:10px;line-height:1.3}.legend{display:flex;gap:14px;flex-wrap:wrap;color:var(--muted);font-size:10px}.legend span:before{content:"";display:inline-block;width:18px;height:3px;border-radius:9px;margin-right:6px;vertical-align:middle}.legend .observed:before{background:var(--cyan)}.legend .predicted:before{background:var(--red);border-top:1px dashed #fff}.legend .alternative:before{background:#909090}.legend .alerting:before{background:var(--amber)} +.hero{position:relative;overflow:hidden;min-height:0;padding:26px 30px 30px;background:#101113;color:#fff;border:1px solid #292a2d;display:flex;flex-direction:column;gap:22px}.hero:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#ff3038}.hero:after{content:"";position:absolute;right:-100px;bottom:-250px;width:390px;height:390px;border:1px solid rgba(255,255,255,.08);border-radius:50%;pointer-events:none}.hero-header{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px}.hero-header .eyebrow{margin:0;color:#ff7378}.hero-header span{color:#9699a0;font-size:10px;font-weight:700;letter-spacing:.11em;text-transform:uppercase}.hero-copy{position:relative;z-index:1;min-width:0;padding-top:20px;border-top:1px solid #34363a}.hero h2{max-width:960px;font-size:clamp(27px,3vw,42px);line-height:1.12;letter-spacing:-.035em}.hero-copy p{color:#b9bbc0;margin:10px 0 0;max-width:780px;font-size:13px;line-height:1.5}.hero-metrics{position:relative;z-index:1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;min-width:0;width:100%}.hero-metric{min-width:0;min-height:112px;padding:15px 17px;border-radius:10px;background:#202124;border:1px solid #37393d;display:flex;flex-direction:column;justify-content:space-between;gap:7px}.hero-metric .kpi-label{color:#b9bbc0;font-size:10px;line-height:1.25}.hero-measure{display:flex;align-items:baseline;gap:7px;min-width:0;flex-wrap:wrap}.hero-metric strong{display:block;color:#fff;font-size:clamp(22px,2.1vw,31px);line-height:1;letter-spacing:-.045em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.hero-unit{color:#d5d6da;font-size:11px;white-space:nowrap}.hero-metric .kpi-note{color:#a6a9af;font-size:10px;line-height:1.3}.legend{display:flex;gap:8px;flex-wrap:wrap;color:var(--muted);font-size:10px}.legend button{border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--text);padding:5px 10px;font:inherit;cursor:pointer}.legend button[aria-pressed="false"]{opacity:.45;text-decoration:line-through}.legend button:focus-visible{outline:2px solid var(--cyan);outline-offset:2px}.legend button:before{content:"";display:inline-block;width:18px;height:3px;border-radius:9px;margin-right:6px;vertical-align:middle}.legend .observed:before{background:var(--cyan)}.legend .predicted:before{background:var(--red);border-top:1px dashed #fff}.legend .alternative:before{background:#909090}.legend .alerting:before{background:var(--amber)} .chart{min-height:230px;width:100%;overflow:hidden}.chart svg{display:block;width:100%;height:230px}.axis{fill:var(--muted);font-size:10px}.rate-card-head{flex-wrap:wrap}.rate-tabs{display:flex;gap:4px;padding:3px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}.rate-tabs button{border:0;border-radius:5px;background:transparent;color:var(--muted);padding:5px 8px;font-size:10px;cursor:pointer}.rate-tabs button.active{background:var(--surface2);color:var(--text);box-shadow:var(--shadow)}.rate-tabs button:focus-visible{outline:2px solid var(--red);outline-offset:2px}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:10px}table{border-collapse:collapse;width:100%;min-width:680px}th,td{padding:12px 14px;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap}th{font-size:9px;color:var(--muted);text-transform:uppercase;letter-spacing:.12em;background:var(--surface);position:sticky;top:0}td{font-size:12px}tbody tr:hover{background:#fafafa}tbody tr:last-child td{border-bottom:0}.badge{display:inline-flex;border:0;border-radius:999px;padding:4px 9px;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.badge.good{color:#176b29;background:#e6f4ea}.badge.warn{color:#8a4b00;background:#fff3e0}.badge.danger{color:#fff;background:var(--red)}.badge.info{color:var(--cyan);background:#e8f0fe} .empty{min-height:180px;border:1px dashed #c7c7c7;border-radius:12px;display:grid;place-items:center;text-align:center;padding:24px;color:var(--muted);background:#fafafa}.empty strong{color:var(--text);display:block;margin-bottom:5px}.banner{border-radius:10px;padding:14px 16px;border:1px solid var(--line);margin-bottom:16px;border-left-width:4px}.banner.warn{background:#fff8ed;border-color:#f4d1a1;border-left-color:var(--amber);color:#743d00}.banner.danger{background:#fff1f1;border-color:#ffc5c5;border-left-color:var(--red);color:#8c0000}.banner.info{background:#f0f6ff;border-color:#c5d9f5;border-left-color:var(--cyan);color:#06428e}.banner p{margin:4px 0 0;color:inherit;opacity:.8;font-size:12px}.metric-list{display:grid;gap:10px}.metric-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:10px 0;border-bottom:1px solid var(--line)}.metric-row:last-child{border-bottom:0}.metric-row span{color:var(--muted);font-size:11px}.metric-row strong{font-size:12px;text-align:right;max-width:70%;overflow-wrap:anywhere} .state-toolbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.state-toolbar input{accent-color:var(--red);min-width:190px;flex:1}.state-pill{background:var(--red);color:#fff;padding:6px 10px;border-radius:999px;font-size:11px;font-weight:800}.model-graph{height:430px;border:1px solid var(--line);border-radius:10px;background:linear-gradient(#fafafa,#fff);overflow:hidden}.model-graph svg{width:100%;height:100%;display:block}.rank-list{display:grid;gap:8px}.rank-row{display:grid;grid-template-columns:44px 98px minmax(190px,1fr) 100px 90px;align-items:center;gap:10px;padding:12px;border-bottom:1px solid var(--line)}.rank-row:last-child{border-bottom:0}.rank{font-weight:800;color:var(--red)}.link{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attention-list,.caveat-list,.alert-list{display:grid;gap:8px}.attention-item,.caveat,.alert-item{padding:13px 14px;border-radius:10px;background:var(--surface)}.attention-item strong,.alert-item strong{display:block;margin-bottom:4px}.attention-item p,.caveat,.alert-item p{margin:0;color:var(--muted);font-size:12px}.family-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}.family{padding:14px;background:var(--surface);border-radius:10px}.family strong{display:block;font-size:22px}.family span{font-size:11px;color:var(--muted)}.subtle{font-size:11px;color:var(--muted)} .attention-matrix{overflow:auto;border:1px solid var(--line);border-radius:10px}.attention-matrix table{min-width:760px;table-layout:fixed}.attention-matrix th,.attention-matrix td{height:42px;width:74px;min-width:0;padding:6px 4px;text-align:center;border-right:1px solid var(--line)}.attention-matrix th:last-child,.attention-matrix td:last-child{border-right:0}.attention-matrix th:first-child,.attention-matrix td:first-child{position:sticky;left:0;z-index:1;width:168px;min-width:168px;max-width:168px;text-align:left;background:var(--surface);overflow:hidden;text-overflow:ellipsis}.attention-matrix th{font-size:8px;line-height:1.2;white-space:normal;overflow-wrap:anywhere}.attention-matrix td.heat{font-size:9px;font-weight:800;font-variant-numeric:tabular-nums}.matrix-note{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:10px;color:var(--muted);font-size:9px}.matrix-legend{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:5px 12px;margin-top:10px}.matrix-legend div{display:flex;gap:7px;align-items:baseline;min-width:0;font-size:9px;color:var(--muted)}.matrix-legend strong{flex:0 0 auto;color:var(--red)}.matrix-legend span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap} .system-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.system-card{min-width:0;min-height:132px;padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}.system-card.wide{grid-column:span 2}.system-label{display:block;margin-bottom:16px;color:var(--muted);font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.12em}.system-value{display:block;font-size:clamp(16px,1.7vw,24px);line-height:1.2;overflow-wrap:anywhere;word-break:break-word}.system-card.wide .system-value{font-size:13px;line-height:1.55}.system-note{display:block;margin-top:12px;color:var(--muted);font-size:10px} .offline-form{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.offline-form input[type=file]{min-width:0;max-width:100%;flex:1 1 260px;padding:12px;border:1px dashed var(--line);border-radius:9px;background:var(--surface)}.offline-form button{border:0;border-radius:9px;padding:12px 18px;background:var(--red);color:#fff;cursor:pointer;font-weight:700}.offline-form button:disabled{opacity:.5;cursor:wait}.offline-result{display:grid;gap:16px;margin-top:16px}.offline-result details{border:1px solid var(--line);border-radius:9px;padding:12px;margin:8px 0;background:var(--surface2)}.offline-result summary{cursor:pointer;font-weight:700}.offline-result .table-wrap{margin-top:10px}.offline-result .subtle{line-height:1.5}.offline-status{margin-top:14px;color:var(--muted);overflow-wrap:anywhere} -.offline-upload-card{border-left:4px solid var(--red)}.offline-jump{position:fixed;right:24px;bottom:24px;z-index:9;border:0;border-radius:999px;padding:12px 17px;background:var(--red);color:#fff;box-shadow:0 8px 30px rgba(0,0,0,.18);font-weight:700;cursor:pointer}.offline-jump:hover{background:var(--red-hover)}.offline-split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.offline-pane{min-width:0;padding:16px;border:1px solid var(--line);border-radius:10px;background:var(--surface2)}.offline-pane.past{border-top:3px solid var(--cyan)}.offline-pane.future{border-top:3px solid var(--red)}.offline-pane h5{margin:0 0 4px;font-size:13px}.offline-pane>p{margin:0 0 12px;color:var(--muted);font-size:11px}.offline-event{padding:10px 0;border-top:1px solid var(--line);font-size:11px}.offline-event:first-child{border-top:0}.offline-event strong{display:block;overflow-wrap:anywhere}.offline-event small{color:var(--muted)}.offline-step-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:14px 0}.offline-step-tabs button{border:1px solid var(--line);border-radius:8px;background:var(--surface);padding:8px 11px;cursor:pointer}.offline-step-tabs button.active{background:var(--red);border-color:var(--red);color:#fff}.offline-step-tabs button:focus-visible,.offline-jump:focus-visible{outline:2px solid var(--cyan);outline-offset:2px}.model-graph.offline-graph{height:520px}.offline-graph svg{min-width:980px}.offline-timing{margin-top:10px;color:var(--muted);font-size:11px;line-height:1.5} +.offline-upload-card{border-left:4px solid var(--red)}.offline-jump{position:fixed;right:24px;bottom:24px;z-index:9;border:0;border-radius:999px;padding:12px 17px;background:var(--red);color:#fff;box-shadow:0 8px 30px rgba(0,0,0,.18);font-weight:700;cursor:pointer}.offline-jump:hover{background:var(--red-hover)}.offline-split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.offline-pane{min-width:0;padding:16px;border:1px solid var(--line);border-radius:10px;background:var(--surface2)}.offline-pane.past{border-top:3px solid var(--cyan)}.offline-pane.future{border-top:3px solid var(--red)}.offline-pane h5{margin:0 0 4px;font-size:13px}.offline-pane>p{margin:0 0 12px;color:var(--muted);font-size:11px}.offline-event{padding:10px 0;border-top:1px solid var(--line);font-size:11px}.offline-event:first-child{border-top:0}.offline-event strong{display:block;overflow-wrap:anywhere}.offline-event small{color:var(--muted)}.offline-step-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:14px 0}.offline-step-tabs button{border:1px solid var(--line);border-radius:8px;background:var(--surface);padding:8px 11px;cursor:pointer}.offline-step-tabs button.active{background:var(--red);border-color:var(--red);color:#fff}.offline-step-tabs button:focus-visible,.offline-jump:focus-visible{outline:2px solid var(--cyan);outline-offset:2px}.model-graph.offline-graph{height:640px}.offline-graph svg{min-width:980px}.offline-timing{margin-top:10px;color:var(--muted);font-size:11px;line-height:1.5} @media(max-width:800px){.offline-split{grid-template-columns:1fr}.offline-jump{right:12px;bottom:12px}.model-graph.offline-graph{height:420px}} @media(max-width:1100px){.shell,body.rail-collapsed .shell{grid-template-columns:1fr}.sidebar,body.rail-collapsed .sidebar{position:sticky;height:auto;top:0;padding:8px 16px;flex-direction:row;align-items:center;border-right:0;border-bottom:1px solid var(--line);overflow:auto}.brand,body.rail-collapsed .brand{justify-content:flex-start;padding:0 18px 0 0;min-height:40px}.brand-copy,body.rail-collapsed .brand-copy,.nav-label,body.rail-collapsed .nav-label{display:block}.brand small,.side-foot,.rail-toggle{display:none}.nav{display:flex}.nav button,body.rail-collapsed .nav button{white-space:nowrap;font-size:13px;justify-content:flex-start;gap:8px;padding:9px 12px}.nav-icon,body.rail-collapsed .nav-icon{display:none}.grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3,.system-grid{grid-template-columns:repeat(2,minmax(0,1fr))}} @media(max-width:720px){.main{padding:0 16px 34px}.topbar{height:auto;padding:16px 0;align-items:flex-start;flex-direction:column}.status-row{justify-content:flex-start}.grid-4,.grid-3,.grid-2,.system-grid{grid-template-columns:1fr}.span-2,.span-all,.system-card.wide{grid-column:auto}.hero{padding:22px;gap:18px}.hero-header span{display:none}.hero-metrics{width:100%}.rank-row{grid-template-columns:45px 90px minmax(0,1fr)}.rank-row .rank-score,.rank-row .rank-severity{display:none}.model-graph{height:330px}.section-head{align-items:flex-start;flex-direction:column}.card{padding:16px}.sidebar,body.rail-collapsed .sidebar{padding:8px}.brand{display:none}.nav{min-width:max-content}.attention-matrix table{min-width:680px}.attention-matrix th:first-child,.attention-matrix td:first-child{width:140px;min-width:140px;max-width:140px}.system-card{min-height:110px}.system-value{font-size:18px}.system-card.wide .system-value{font-size:12px}} @media(max-width:900px){.hero-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-copy{max-width:760px}} @media(max-width:720px){.hero-metric{min-height:104px}} @media(max-width:420px){.hero-metrics{grid-template-columns:1fr}.hero-metric{min-height:88px}} -.model-graph{height:740px;overflow:auto}.model-graph svg{width:100%;min-width:980px;height:auto;display:block} +.model-graph{position:relative;height:740px;overflow:hidden}.model-graph svg{width:100%;height:100%;display:block;cursor:grab;touch-action:pan-y;user-select:none;-webkit-user-select:none}.model-graph svg.dragging{cursor:grabbing}.model-graph svg [data-id]{cursor:pointer} +.graph-tools{position:absolute;top:10px;right:10px;display:flex;gap:6px}.graph-tools button{min-width:34px}.graph-hint{position:absolute;right:14px;bottom:9px;margin:0;color:var(--muted);font-size:10px;pointer-events:none} +.graph-frame:fullscreen{display:flex;flex-direction:column;gap:12px;margin:0;padding:18px;border:0;border-radius:0;background:var(--surface);overflow:hidden}.graph-frame:fullscreen .model-graph{flex:1;min-height:0;height:auto;margin-top:0!important}.graph-frame:fullscreen svg{touch-action:none} .model-graph.graph-empty{height:auto;min-height:180px;border:0;background:transparent} .graph-swipe-note{display:none} -@media(max-width:720px){.model-graph{height:430px}.graph-swipe-note{display:block;color:var(--muted);font-size:11px;margin:8px 0 0}} -:root{color-scheme:light;--topology-lane:#f7f9fc;--topology-aura:#fff6f6;--topology-aura-border:#ffe0e0;--topology-node:#fff;--topology-predicted-node:#fff1f1;--topology-node-border:#cbd5e1;--heat-rgb:255,0,0;--heat-weak-text:#111;--heat-strong-text:#fff} -html[data-theme="dark"]{color-scheme:dark;--bg:#0b1018;--surface:#202a38;--surface2:#141c27;--line:#354153;--text:#edf2f9;--muted:#aebdd0;--green:#73dc87;--cyan:#83bdff;--amber:#ffbd69;--red:#ff6267;--red-hover:#ff8589;--shadow:0 2px 10px rgba(0,0,0,.3);--topology-lane:#1a2634;--topology-aura:#2d202a;--topology-aura-border:#56303a;--topology-node:#243142;--topology-predicted-node:#3b2530;--topology-node-border:#63758c;--heat-rgb:255,98,103;--heat-weak-text:#edf2f9;--heat-strong-text:#fff} +@media(max-width:720px){.model-graph{height:430px}.graph-hint{display:none}.graph-swipe-note{display:block;color:var(--muted);font-size:11px;margin:8px 0 0}} +:root{color-scheme:light;--heat-rgb:255,0,0;--heat-weak-text:#111;--heat-strong-text:#fff} +html[data-theme="dark"]{color-scheme:dark;--bg:#0b1018;--surface:#202a38;--surface2:#141c27;--line:#354153;--text:#edf2f9;--muted:#aebdd0;--green:#73dc87;--cyan:#83bdff;--amber:#ffbd69;--red:#ff6267;--red-hover:#ff8589;--shadow:0 2px 10px rgba(0,0,0,.3);--heat-rgb:255,98,103;--heat-weak-text:#edf2f9;--heat-strong-text:#fff} .sidebar,.rail-toggle{background:var(--surface2)} .rail-toggle:hover{border-color:var(--muted)} .theme-toggle{cursor:pointer;border:1px solid var(--line);white-space:nowrap} @@ -93,26 +95,14 @@ html[data-theme="dark"] .attention-matrix td.heat{color:var(--text)!important} .incident-trigger{border:0;background:transparent;padding:4px 0;color:var(--text);font-weight:700;text-align:left;cursor:pointer}.incident-trigger:hover,.incident-trigger:focus-visible{color:var(--red);text-decoration:underline}.incident-detail-cell{background:var(--surface);padding:16px!important}.incident-detail{max-height:420px;overflow:auto}.incident-detail h4{margin:0 0 8px}.incident-detail p{margin:0 0 12px;color:var(--muted)}.incident-detail table{width:100%;min-width:700px} @media(max-width:720px){.calibration-overview{grid-template-columns:1fr}.threshold-axis{display:none}.threshold-row{grid-template-columns:minmax(0,1fr) auto;gap:8px}.threshold-track{grid-column:1/-1;grid-row:2}.threshold-tooltip{right:8px}} .graph-actions{display:flex;align-items:center;justify-content:flex-end;gap:14px;flex-wrap:wrap} -.graph-expand,.graph-close{border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);padding:7px 11px;cursor:pointer;font-size:11px;font-weight:700} -.graph-expand:hover,.graph-close:hover{border-color:var(--red);color:var(--red)} -.graph-expand:focus-visible,.graph-close:focus-visible,#modelGraph:focus-visible{outline:2px solid var(--red);outline-offset:3px} -#modelGraph:not(.graph-empty){cursor:zoom-in} -body.graph-modal-open{overflow:hidden} -.graph-dialog{position:fixed;inset:0;width:calc(100vw - 32px);max-width:1600px;height:calc(100vh - 32px);max-height:1100px;margin:auto;padding:0;border:1px solid var(--line);border-radius:16px;background:var(--surface2);color:var(--text);box-shadow:0 24px 80px rgba(0,0,0,.4);overflow:hidden} -.graph-dialog::backdrop{background:rgba(5,10,18,.55);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px)} -.graph-dialog-panel{height:100%;display:flex;flex-direction:column;gap:12px;padding:18px} -.graph-dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px} -.graph-dialog-head h2{font-size:18px;margin:0}.graph-dialog-head p{font-size:11px;color:var(--muted);margin:4px 0 0} -.graph-dialog-controls{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end} -.graph-dialog .state-toolbar{flex:0 0 auto}.graph-dialog .legend{flex:0 0 auto} -.expanded-graph{flex:1;min-height:0;height:auto;overflow:auto} -.expanded-graph svg{width:100%;min-width:0;height:100%!important} -.graph-dialog.detail .expanded-graph svg{width:1000px;min-width:1000px;height:auto!important;margin:0 auto} -.graph-dialog-note{margin:0;color:var(--muted);font-size:10px} +.graph-expand{border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);padding:7px 11px;cursor:pointer;font-size:11px;font-weight:700} +.graph-expand:hover{border-color:var(--red);color:var(--red)} +.graph-expand:focus-visible{outline:2px solid var(--red);outline-offset:3px} + .protection-controls{display:flex;gap:9px;flex-wrap:wrap;align-items:center}.protection-controls button{border:1px solid var(--line);border-radius:8px;padding:10px 13px;background:var(--surface);cursor:pointer}.protection-controls button.primary{border-color:var(--red);background:var(--red);color:#fff}.protection-controls button:disabled{opacity:.55;cursor:not-allowed}.protection-controls button.primary:disabled{border-color:var(--line);background:var(--surface);color:var(--muted);opacity:1}.protection-advice{overflow-wrap:anywhere;line-height:1.55;margin:12px 0;color:var(--text)}.protection-advice:empty{display:none}.protection-advice ul{margin:10px 0 0;padding-left:22px}.protection-advice li{margin:0 0 10px}.protection-advice p{margin:8px 0}.protection-advice strong{font-weight:700}.protection-facts{margin-top:14px;padding:11px 13px;border:1px solid var(--line);border-radius:9px;background:var(--surface2);font-size:12px;line-height:1.5}.protection-facts:empty{display:none}.protection-status{min-height:18px;margin:8px 0;color:var(--muted);font-size:11px;overflow-wrap:anywhere} .protection-label{display:block;margin:0 0 8px;font-size:11px;font-weight:700;color:var(--muted)}#protectionIncidentSelect{display:block;width:100%;max-width:520px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface2);color:var(--text)}#protectionIncidentSelect:disabled{opacity:.6}#protectionSelection{margin:11px 0 0} .protection-block-list{margin-top:14px;padding:14px;border:1px solid var(--line);border-radius:9px;background:var(--surface2)}.protection-block-list[hidden]{display:none}.protection-block-list h4{margin:0 0 5px}.protection-block-list>p{margin:0 0 10px;color:var(--muted);font-size:11px}.protection-block-row{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:11px 0;border-top:1px solid var(--line)}.protection-block-row strong{display:block}.protection-block-row small{display:block;color:var(--muted);overflow-wrap:anywhere}.protection-block-row button{flex:none;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);padding:8px 12px;cursor:pointer}.protection-block-row button:disabled{opacity:.55;cursor:wait}@media(max-width:600px){.protection-block-row{align-items:flex-start;flex-direction:column}} -@media(max-width:720px){.graph-actions{justify-content:flex-start}.graph-dialog{width:calc(100vw - 12px);height:calc(100vh - 12px);border-radius:10px}.graph-dialog-panel{padding:12px;gap:10px}.graph-dialog .state-toolbar input{min-width:120px}} +@media(max-width:720px){.graph-actions{justify-content:flex-start}}
@@ -175,7 +165,7 @@ body.graph-modal-open{overflow:hidden}Checking the observed state timestamp…
A predicted link is a hypothetical model output, not a detected incident. Event step +k has no validated wall-clock ETA and may not be in the future relative to now when the input state is delayed.
Observed state plus selected predictions
Blue links were observed; red links are hypothetical event steps. Swipe to inspect peers.
Observed state plus selected predictions
Blue links were observed; red links are hypothetical event steps. Swipe to inspect peers.
Calibration and measured test behavior
Served score against the signed threshold; this is not probability
Latest scored events and rollout seeds by attended peer; actual averaged model weights
— means that peer is not one of that event’s reported peers; 0.0% means it is, and the model gave it no weight. Neither is a security verdict; only the eight strongest peers are shown.
Ranked by model score. Each +k is an event step from the observed state, not a time estimate or an incident. Path probabilities are intentionally not displayed.
Click an incident to see its contributing scored events and source/destination IPs. Three threshold crossings on one link; 120-second quiet gap.
| Opened | Observed link | Opening score | Flagged events | Severity |
|---|
Every observed event that crossed the threshold, one row per burst on a link (120-second quiet gap). Three crossings in a row on a link make it an incident. Click a row for its events.
| Opened | Observed link | Opening score | Flagged events | Type | Severity |
|---|
All service-provided limits are shown.
Deterministic capture
Only measured packet and flow telemetry from this machine. No model-predicted links appear here.
Traffic touching a local interface address
Swipe across the map to inspect peer hosts; the local host stays at its center.
Traffic touching a local interface address
Drag sideways to pan; use + and − to zoom.
Service tags describe ports and roles; they do not prove a flow is safe.
| Initiator | Responder | Protocol | Service / role | State | Packets | Bytes |
|---|