Release / Plan (reuse the published image?) (push) Successful in 4s
CI / Docker image (build and smoke test) (push) Skipped
CI / Format and clippy (push) Successful in 16s
CI / Dependency audit (push) Successful in 17s
CI / Tests (Linux) (push) Successful in 34s
Release / ci (push) Successful in 35s
Release / Build image (arm64) (push) Successful in 4m55s
Release / Build image (amd64) (push) Failing after 11m10s
Release / Publish tags (push) Skipped
Release / Gitea release (push) Skipped
The sidebar nav (Overview/Alerts/Analysis) only did scrollIntoView on a
single stacked page, so clicking it produced no visible change. The
Alerts/Analysis panels were also placeholder shells with no real data
exploration despite the API already exposing rich per-pillar evidence.
- app.js/app.css/index.html: real panel switching via showView()/currentView,
toggling an .active class with `.view:not(.active) { display: none }`;
settings keeps opening its own dialog without disturbing the active view.
- New Hosts panel: table of observed hosts ranked by fusion score, with
per-pillar (P1/P2/P3) columns, search, and drill-down into each pillar's
evidence. Documents the known limitation that /api/alerts only lists hosts
with at least one alert (no /api/hosts endpoint exists yet), so a benign
host with no alert won't appear.
- Alerts panel: filterable by pillar and minimum score, sortable, with
full evidence rendered as a formatted key/value table instead of raw JSON.
- Overview panel: KPI tiles (alert count, hosts with alerts, max score,
dataset records) plus two interactive SVG charts (top hosts by fusion
score, alert distribution by pillar) with hover tooltips.
- i18n-en.js: English strings for all new UI text.
No Rust files changed; this is purely apps/gui/ui/ consuming the existing
/api/alerts, /api/analyze and /api/status endpoints.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VAyr8d7HuAdUGB6aA5xmDD
700 lines
25 KiB
CSS
700 lines
25 KiB
CSS
:root {
|
|
color-scheme: dark;
|
|
--bg: #071018;
|
|
--bg-2: #0b1722;
|
|
--panel: rgba(15, 30, 43, 0.78);
|
|
--panel-solid: #0f1e2b;
|
|
--line: rgba(148, 188, 205, 0.18);
|
|
--line-strong: rgba(148, 188, 205, 0.34);
|
|
--text: #e8f2f4;
|
|
--muted: #8fa8b3;
|
|
--accent: #45d6b0;
|
|
--accent-2: #f0b35b;
|
|
--danger: #f27878;
|
|
--p1: #45d6b0;
|
|
--p2: #f0b35b;
|
|
--p3: #7aa7ff;
|
|
--p1-soft: rgba(69, 214, 176, 0.14);
|
|
--p2-soft: rgba(240, 179, 91, 0.14);
|
|
--p3-soft: rgba(122, 167, 255, 0.14);
|
|
--shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
|
|
--radius: 16px;
|
|
--mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
|
|
--sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
|
|
}
|
|
|
|
html[data-theme="light"] {
|
|
color-scheme: light;
|
|
--bg: #eef4f3;
|
|
--bg-2: #e2ece9;
|
|
--panel: rgba(255, 255, 255, 0.84);
|
|
--panel-solid: #ffffff;
|
|
--line: rgba(20, 58, 64, 0.14);
|
|
--line-strong: rgba(20, 58, 64, 0.28);
|
|
--text: #10262b;
|
|
--muted: #5d7479;
|
|
--accent: #087f68;
|
|
--accent-2: #a05b09;
|
|
--danger: #b42323;
|
|
--p1: #087f68;
|
|
--p2: #a05b09;
|
|
--p3: #2456a8;
|
|
--p1-soft: rgba(8, 127, 104, 0.12);
|
|
--p2-soft: rgba(160, 91, 9, 0.12);
|
|
--p3-soft: rgba(36, 86, 168, 0.12);
|
|
--shadow: 0 20px 50px rgba(20, 58, 64, 0.12);
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
|
|
html, body { min-height: 100%; }
|
|
|
|
body {
|
|
margin: 0;
|
|
font-family: var(--sans);
|
|
color: var(--text);
|
|
background:
|
|
radial-gradient(900px 520px at 12% -8%, rgba(69, 214, 176, 0.15), transparent 60%),
|
|
radial-gradient(760px 480px at 95% 0%, rgba(240, 179, 91, 0.12), transparent 58%),
|
|
linear-gradient(150deg, var(--bg), var(--bg-2));
|
|
background-attachment: fixed;
|
|
}
|
|
|
|
button, input, select { font: inherit; color: inherit; }
|
|
button { cursor: pointer; }
|
|
h1, h2, p { margin: 0; }
|
|
|
|
.app {
|
|
display: grid;
|
|
grid-template-columns: 286px minmax(0, 1fr);
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.sidebar {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 22px;
|
|
padding: 28px 22px;
|
|
border-right: 1px solid var(--line);
|
|
background: linear-gradient(180deg, rgba(8, 19, 28, 0.72), rgba(8, 19, 28, 0.36));
|
|
backdrop-filter: blur(18px);
|
|
position: sticky;
|
|
top: 0;
|
|
height: 100vh;
|
|
}
|
|
|
|
html[data-theme="light"] .sidebar {
|
|
background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.4));
|
|
}
|
|
|
|
.brand { display: flex; align-items: center; gap: 12px; }
|
|
.logo { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.25)); }
|
|
.brand strong { display: block; font-size: 1.18rem; letter-spacing: 0.01em; }
|
|
.brand small { display: block; color: var(--muted); font-size: 0.78rem; margin-top: 2px; }
|
|
|
|
.side-title {
|
|
color: var(--muted);
|
|
font-size: 0.7rem;
|
|
letter-spacing: 0.16em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.nav { display: grid; gap: 6px; }
|
|
.nav-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
width: 100%;
|
|
padding: 11px 12px;
|
|
border: 1px solid transparent;
|
|
border-radius: 12px;
|
|
background: transparent;
|
|
text-align: left;
|
|
color: var(--muted);
|
|
transition: 160ms ease;
|
|
}
|
|
.nav-item:hover { border-color: var(--line); background: rgba(69, 214, 176, 0.06); color: var(--text); }
|
|
.nav-item.active { border-color: var(--line-strong); background: rgba(69, 214, 176, 0.1); color: var(--text); }
|
|
.nav-icon { width: 20px; color: var(--accent); text-align: center; }
|
|
.nav-label { display: block; font-size: 0.92rem; font-weight: 600; }
|
|
.nav-sub { display: block; font-size: 0.72rem; color: var(--muted); margin-top: 2px; }
|
|
|
|
.side-foot { margin-top: auto; display: grid; gap: 12px; }
|
|
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
|
|
.pill {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 7px;
|
|
padding: 5px 9px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 999px;
|
|
font-size: 0.72rem;
|
|
color: var(--text);
|
|
background: rgba(255, 255, 255, 0.03);
|
|
}
|
|
.pill.muted { color: var(--muted); }
|
|
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
|
|
.pill.offline .dot { background: var(--danger); box-shadow: 0 0 12px var(--danger); }
|
|
.mono { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
|
|
|
|
.main { padding: 38px clamp(22px, 4vw, 56px) 42px; min-width: 0; }
|
|
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
|
|
.eyebrow { color: var(--accent); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 8px; }
|
|
h1 { font-size: clamp(1.9rem, 3.3vw, 3.1rem); line-height: 1.04; letter-spacing: -0.035em; }
|
|
.sub { color: var(--muted); margin-top: 10px; font-size: 0.98rem; }
|
|
h2 { font-size: 1.08rem; letter-spacing: -0.01em; }
|
|
|
|
.icon-btn {
|
|
display: inline-grid;
|
|
place-items: center;
|
|
width: 40px;
|
|
height: 40px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 12px;
|
|
background: var(--panel);
|
|
color: var(--text);
|
|
font-size: 1.05rem;
|
|
}
|
|
.icon-btn:hover { border-color: var(--line-strong); }
|
|
|
|
.notice {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: baseline;
|
|
padding: 14px 16px;
|
|
margin-bottom: 14px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 12px;
|
|
background: var(--panel);
|
|
color: var(--muted);
|
|
font-size: 0.86rem;
|
|
line-height: 1.5;
|
|
}
|
|
.notice strong { color: var(--text); white-space: nowrap; }
|
|
.notice-warn { border-color: rgba(240, 179, 91, 0.34); background: rgba(240, 179, 91, 0.07); }
|
|
|
|
.pillars {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
gap: 14px;
|
|
margin: 24px 0;
|
|
}
|
|
.card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 9px;
|
|
min-height: 178px;
|
|
padding: 20px;
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--radius);
|
|
background: linear-gradient(160deg, var(--panel), rgba(15, 30, 43, 0.36));
|
|
box-shadow: var(--shadow);
|
|
}
|
|
html[data-theme="light"] .card { background: linear-gradient(160deg, var(--panel), rgba(255, 255, 255, 0.5)); }
|
|
.card-kicker { color: var(--accent); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; }
|
|
.card h2 { font-size: 1.02rem; }
|
|
.card p { color: var(--muted); font-size: 0.83rem; line-height: 1.5; }
|
|
.tag { margin-top: auto; align-self: flex-start; color: var(--accent-2); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }
|
|
|
|
.view:not(.active) {
|
|
display: none !important;
|
|
}
|
|
|
|
.panel {
|
|
margin-top: 16px;
|
|
padding: 22px;
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--radius);
|
|
background: var(--panel);
|
|
box-shadow: var(--shadow);
|
|
scroll-margin-top: 20px;
|
|
}
|
|
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
|
|
.hint { color: var(--muted); font-size: 0.84rem; line-height: 1.5; margin-top: 5px; }
|
|
|
|
.field-row { display: flex; align-items: flex-end; gap: 10px; }
|
|
.field { display: grid; gap: 7px; flex: 1; }
|
|
.field > span { color: var(--muted); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; }
|
|
input, select {
|
|
width: 100%;
|
|
padding: 10px 12px;
|
|
border: 1px solid var(--line-strong);
|
|
border-radius: 10px;
|
|
background: rgba(0, 0, 0, 0.16);
|
|
outline: none;
|
|
}
|
|
html[data-theme="light"] input, html[data-theme="light"] select { background: rgba(255, 255, 255, 0.7); }
|
|
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(69, 214, 176, 0.12); }
|
|
|
|
.btn {
|
|
padding: 10px 14px;
|
|
border: 1px solid var(--line-strong);
|
|
border-radius: 10px;
|
|
background: rgba(255, 255, 255, 0.04);
|
|
color: var(--text);
|
|
font-size: 0.84rem;
|
|
font-weight: 600;
|
|
white-space: nowrap;
|
|
}
|
|
.btn:hover { border-color: var(--accent); }
|
|
.btn.primary { background: var(--accent); border-color: var(--accent); color: #06211b; }
|
|
.btn.primary:hover { filter: brightness(1.06); }
|
|
.btn:disabled { opacity: 0.5; cursor: progress; }
|
|
|
|
.link-btn { border: 0; background: transparent; color: var(--accent); font-size: 0.75rem; padding: 0; }
|
|
.link-btn:hover { text-decoration: underline; }
|
|
|
|
.output {
|
|
min-height: 92px;
|
|
margin: 16px 0 0;
|
|
padding: 14px;
|
|
overflow: auto;
|
|
border: 1px solid var(--line);
|
|
border-radius: 10px;
|
|
background: rgba(0, 0, 0, 0.2);
|
|
color: var(--muted);
|
|
font-family: var(--mono);
|
|
font-size: 0.76rem;
|
|
line-height: 1.55;
|
|
white-space: pre-wrap;
|
|
}
|
|
html[data-theme="light"] .output { background: rgba(20, 58, 64, 0.04); }
|
|
|
|
.alert-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
|
|
.alert-list li {
|
|
padding: 12px 14px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 10px;
|
|
background: rgba(255, 255, 255, 0.02);
|
|
font-size: 0.84rem;
|
|
}
|
|
.alert-list .empty { color: var(--muted); border-style: dashed; }
|
|
.alert-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
|
|
.alert-meta strong { font-size: 0.78rem; color: var(--accent-2); }
|
|
.alert-summary { color: var(--muted); line-height: 1.5; }
|
|
|
|
.foot {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
margin-top: 26px;
|
|
color: var(--muted);
|
|
font-size: 0.74rem;
|
|
}
|
|
|
|
dialog {
|
|
width: min(460px, calc(100vw - 32px));
|
|
padding: 22px;
|
|
border: 1px solid var(--line-strong);
|
|
border-radius: var(--radius);
|
|
background: var(--panel-solid);
|
|
color: var(--text);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
dialog::backdrop { background: rgba(2, 8, 12, 0.62); backdrop-filter: blur(3px); }
|
|
.dialog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
|
|
dialog .field { margin-bottom: 14px; }
|
|
dialog menu { display: flex; justify-content: flex-end; gap: 8px; margin: 20px 0 0; padding: 0; }
|
|
.segmented { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; }
|
|
.segmented button { flex: 1; padding: 7px 8px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 0.78rem; }
|
|
.segmented button.active { background: rgba(69, 214, 176, 0.16); color: var(--text); }
|
|
|
|
@media (max-width: 1120px) {
|
|
.pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
}
|
|
|
|
@media (max-width: 820px) {
|
|
.app { grid-template-columns: 1fr; }
|
|
.sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
|
|
.nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
.side-foot { margin-top: 0; }
|
|
.main { padding-top: 26px; }
|
|
}
|
|
|
|
@media (max-width: 560px) {
|
|
.pillars { grid-template-columns: 1fr; }
|
|
.field-row { flex-direction: column; align-items: stretch; }
|
|
.notice { flex-direction: column; gap: 4px; }
|
|
.panel-head { flex-direction: column; }
|
|
.foot { flex-direction: column; }
|
|
}
|
|
|
|
/* ------------------------------------------------------------------ dashboard */
|
|
|
|
[hidden] { display: none !important; }
|
|
.sr-only {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
padding: 0;
|
|
margin: -1px;
|
|
overflow: hidden;
|
|
clip: rect(0, 0, 0, 0);
|
|
white-space: nowrap;
|
|
border: 0;
|
|
}
|
|
|
|
.top-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
|
|
.last-updated { white-space: nowrap; }
|
|
|
|
.kpi-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
gap: 14px;
|
|
}
|
|
.kpi {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
min-height: 128px;
|
|
padding: 18px 20px;
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--radius);
|
|
background: linear-gradient(160deg, var(--panel), rgba(15, 30, 43, 0.32));
|
|
box-shadow: var(--shadow);
|
|
}
|
|
html[data-theme="light"] .kpi { background: linear-gradient(160deg, var(--panel), rgba(255, 255, 255, 0.5)); }
|
|
.kpi-label { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
|
|
.kpi-value { margin-top: auto; font-family: var(--mono); font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1; letter-spacing: -0.04em; }
|
|
.kpi-sub { color: var(--muted); font-size: 0.76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
|
|
.charts-grid {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
|
|
gap: 16px;
|
|
margin-top: 16px;
|
|
}
|
|
.chart-panel { margin-top: 0; }
|
|
.panel-tag {
|
|
align-self: flex-start;
|
|
padding: 5px 9px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 999px;
|
|
color: var(--muted);
|
|
font-family: var(--mono);
|
|
font-size: 0.68rem;
|
|
white-space: nowrap;
|
|
}
|
|
.chart-wrap { position: relative; width: 100%; min-height: 220px; }
|
|
.chart { display: block; width: 100%; height: auto; overflow: visible; }
|
|
.axis-line { stroke: var(--line); stroke-width: 1; }
|
|
.axis-line.strong { stroke: var(--line-strong); }
|
|
.axis-label { fill: var(--muted); font-family: var(--mono); font-size: 11px; }
|
|
.bar-track { fill: rgba(255, 255, 255, 0.04); }
|
|
html[data-theme="light"] .bar-track { fill: rgba(20, 58, 64, 0.06); }
|
|
.bar-fill { transition: filter 140ms ease, opacity 140ms ease; }
|
|
.bar-fill.p1 { fill: var(--p1); }
|
|
.bar-fill.p2 { fill: var(--p2); }
|
|
.bar-fill.p3 { fill: var(--p3); }
|
|
.bar-fill.accent { fill: var(--accent); }
|
|
.bar-label { fill: var(--text); font-family: var(--mono); font-size: 12px; }
|
|
.bar-value { fill: var(--text); font-family: var(--mono); font-size: 12px; font-weight: 700; }
|
|
.bar-row, .pillar-bar-row { outline: none; }
|
|
.bar-row:hover .bar-fill, .bar-row:focus .bar-fill { filter: brightness(1.16); }
|
|
.pillar-bar-row { cursor: pointer; }
|
|
.pillar-bar-row:hover .bar-fill, .pillar-bar-row:focus .bar-fill { filter: brightness(1.2); }
|
|
.pillar-bar-row:hover .bar-track, .pillar-bar-row:focus .bar-track { fill: rgba(255, 255, 255, 0.08); }
|
|
.chart-empty { fill: var(--muted); font-family: var(--sans); font-size: 13px; }
|
|
.chart-tip {
|
|
position: absolute;
|
|
z-index: 8;
|
|
display: grid;
|
|
gap: 4px;
|
|
max-width: 320px;
|
|
padding: 10px 12px;
|
|
border: 1px solid var(--line-strong);
|
|
border-radius: 10px;
|
|
background: var(--panel-solid);
|
|
box-shadow: var(--shadow);
|
|
color: var(--text);
|
|
font-size: 0.74rem;
|
|
line-height: 1.35;
|
|
pointer-events: none;
|
|
}
|
|
.chart-tip strong { font-family: var(--mono); font-size: 0.78rem; }
|
|
.chart-tip span { color: var(--muted); }
|
|
|
|
.toolbar {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: flex-end;
|
|
gap: 14px;
|
|
padding-bottom: 16px;
|
|
border-bottom: 1px solid var(--line);
|
|
margin-bottom: 14px;
|
|
}
|
|
.toolbar-slim { align-items: center; justify-content: space-between; }
|
|
.field.compact { flex: 0 0 auto; min-width: 130px; }
|
|
.field.compact > span { font-size: 0.68rem; }
|
|
.field.compact input, .field.compact select { padding: 8px 10px; }
|
|
.range-field { min-width: 178px; }
|
|
.range-field > span { display: flex; justify-content: space-between; gap: 12px; }
|
|
.range-field output { color: var(--text); font-family: var(--mono); }
|
|
.range-field input[type="range"] { padding: 0; border: 0; background: transparent; accent-color: var(--accent); }
|
|
.search-field { flex: 1 1 230px; }
|
|
.chips { display: flex; gap: 6px; flex-wrap: wrap; padding-bottom: 1px; }
|
|
.chip {
|
|
padding: 8px 12px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 999px;
|
|
background: transparent;
|
|
color: var(--muted);
|
|
font-size: 0.76rem;
|
|
font-weight: 600;
|
|
}
|
|
.chip:hover { border-color: var(--line-strong); color: var(--text); }
|
|
.chip.active { border-color: var(--accent); background: rgba(69, 214, 176, 0.12); color: var(--text); }
|
|
.legend { display: flex; gap: 14px; align-items: center; color: var(--muted); font-size: 0.74rem; }
|
|
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
|
|
.swatch { display: inline-block; width: 9px; height: 9px; border-radius: 2px; }
|
|
.swatch.p1 { background: var(--p1); }
|
|
.swatch.p2 { background: var(--p2); }
|
|
.swatch.p3 { background: var(--p3); }
|
|
|
|
.pillars { margin-top: 16px; }
|
|
.card[data-pillar-card] { cursor: pointer; outline: none; transition: 160ms ease; }
|
|
.card[data-pillar-card]:hover, .card[data-pillar-card]:focus-visible { border-color: var(--line-strong); transform: translateY(-2px); }
|
|
.card h2 { display: flex; align-items: center; gap: 8px; }
|
|
.card-count {
|
|
margin-left: auto;
|
|
padding: 1px 7px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 999px;
|
|
color: var(--muted);
|
|
font-family: var(--mono);
|
|
font-size: 0.66rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.overview-alerts { display: grid; gap: 8px; }
|
|
.ov-alert {
|
|
display: grid;
|
|
grid-template-columns: auto minmax(0, 1fr) 112px;
|
|
gap: 14px;
|
|
align-items: center;
|
|
width: 100%;
|
|
padding: 12px 14px;
|
|
border: 1px solid var(--line);
|
|
border-left: 3px solid var(--line-strong);
|
|
border-radius: 11px;
|
|
background: rgba(255, 255, 255, 0.02);
|
|
color: inherit;
|
|
text-align: left;
|
|
}
|
|
.ov-alert:hover { border-color: var(--line-strong); background: rgba(69, 214, 176, 0.05); }
|
|
.ov-alert:has(.pillar-badge.p1) { border-left-color: var(--p1); }
|
|
.ov-alert:has(.pillar-badge.p2) { border-left-color: var(--p2); }
|
|
.ov-alert:has(.pillar-badge.p3) { border-left-color: var(--p3); }
|
|
.ov-main { display: grid; gap: 4px; min-width: 0; }
|
|
.ov-summary { font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.ov-meta { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 0.72rem; min-width: 0; }
|
|
.ov-dest { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.ov-score { display: grid; gap: 5px; text-align: right; }
|
|
.ov-score strong { font-family: var(--mono); font-size: 0.88rem; }
|
|
|
|
.pillar-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 4px 8px;
|
|
border: 1px solid transparent;
|
|
border-radius: 6px;
|
|
font-size: 0.68rem;
|
|
font-weight: 700;
|
|
letter-spacing: 0.04em;
|
|
white-space: nowrap;
|
|
}
|
|
.pillar-badge.p1 { color: var(--p1); background: var(--p1-soft); border-color: color-mix(in srgb, var(--p1) 40%, transparent); }
|
|
.pillar-badge.p2 { color: var(--p2); background: var(--p2-soft); border-color: color-mix(in srgb, var(--p2) 40%, transparent); }
|
|
.pillar-badge.p3 { color: var(--p3); background: var(--p3-soft); border-color: color-mix(in srgb, var(--p3) 40%, transparent); }
|
|
.host-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 2px 7px;
|
|
border: 1px solid var(--line-strong);
|
|
border-radius: 6px;
|
|
background: rgba(255, 255, 255, 0.04);
|
|
color: var(--text);
|
|
font-family: var(--mono);
|
|
font-size: 0.72rem;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.score-track { display: block; width: 100%; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
|
|
html[data-theme="light"] .score-track { background: rgba(20, 58, 64, 0.1); }
|
|
.score-fill { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
|
|
.alert-score.low .score-fill, .ov-score.low .score-fill { background: var(--accent); }
|
|
.alert-score.medium .score-fill, .ov-score.medium .score-fill { background: var(--accent-2); }
|
|
.alert-score.high .score-fill, .ov-score.high .score-fill { background: var(--danger); }
|
|
|
|
.alert-cards { display: grid; gap: 10px; }
|
|
.alert-card {
|
|
border: 1px solid var(--line);
|
|
border-left: 3px solid var(--line-strong);
|
|
border-radius: 12px;
|
|
background: rgba(255, 255, 255, 0.02);
|
|
overflow: hidden;
|
|
}
|
|
.alert-card.p1 { border-left-color: var(--p1); }
|
|
.alert-card.p2 { border-left-color: var(--p2); }
|
|
.alert-card.p3 { border-left-color: var(--p3); }
|
|
.alert-head {
|
|
display: grid;
|
|
grid-template-columns: auto minmax(0, 1fr) 104px 16px;
|
|
gap: 14px;
|
|
align-items: center;
|
|
width: 100%;
|
|
padding: 14px 16px;
|
|
border: 0;
|
|
background: transparent;
|
|
color: inherit;
|
|
text-align: left;
|
|
}
|
|
.alert-head:hover { background: rgba(69, 214, 176, 0.045); }
|
|
.alert-head:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
|
|
.alert-main { display: grid; gap: 5px; min-width: 0; }
|
|
.alert-summary { font-size: 0.86rem; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.alert-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 0.72rem; min-width: 0; }
|
|
.alert-arrow { color: var(--accent); }
|
|
.alert-dest { font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.alert-when { margin-left: auto; white-space: nowrap; }
|
|
.alert-score { display: grid; gap: 5px; justify-items: end; }
|
|
.alert-score strong { font-family: var(--mono); font-size: 0.92rem; }
|
|
.chevron { color: var(--muted); font-size: 1.1rem; text-align: center; }
|
|
.alert-body { display: grid; gap: 14px; padding: 16px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, 0.1); }
|
|
html[data-theme="light"] .alert-body { background: rgba(20, 58, 64, 0.025); }
|
|
.metrics { display: flex; flex-wrap: wrap; gap: 8px; }
|
|
.metric {
|
|
display: grid;
|
|
gap: 2px;
|
|
min-width: 92px;
|
|
padding: 8px 10px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
background: rgba(255, 255, 255, 0.02);
|
|
}
|
|
.metric-label { color: var(--muted); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; }
|
|
.metric-value { font-family: var(--mono); font-size: 0.78rem; font-weight: 600; overflow-wrap: anywhere; }
|
|
.evidence-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
|
|
.evidence-head h3 { margin: 0; font-size: 0.82rem; letter-spacing: 0.02em; }
|
|
.dim { color: var(--muted); }
|
|
.kv { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
|
|
.kv th {
|
|
width: 44%;
|
|
padding: 6px 10px;
|
|
border-top: 1px solid var(--line);
|
|
color: var(--muted);
|
|
font-size: 0.72rem;
|
|
font-weight: 500;
|
|
text-align: left;
|
|
vertical-align: top;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
.kv td { padding: 6px 10px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
|
|
.kv tr:first-child th, .kv tr:first-child td { border-top: 0; }
|
|
.alert-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
|
|
.alert-actions .mono { margin-right: auto; }
|
|
.btn.small { padding: 7px 11px; font-size: 0.74rem; }
|
|
|
|
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
|
|
.host-table { width: 100%; border-collapse: collapse; min-width: 720px; }
|
|
.host-table thead th {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 1;
|
|
padding: 10px 12px;
|
|
border-bottom: 1px solid var(--line);
|
|
background: var(--panel-solid);
|
|
color: var(--muted);
|
|
font-size: 0.68rem;
|
|
font-weight: 600;
|
|
letter-spacing: 0.1em;
|
|
text-align: left;
|
|
text-transform: uppercase;
|
|
}
|
|
.host-table td { padding: 11px 12px; border-top: 1px solid var(--line); font-size: 0.82rem; vertical-align: middle; }
|
|
.host-table tbody tr:first-child td { border-top: 0; }
|
|
.host-row { cursor: pointer; outline: none; transition: background 120ms ease; }
|
|
.host-row:hover, .host-row:focus-visible { background: rgba(69, 214, 176, 0.06); }
|
|
.host-row.open { background: rgba(69, 214, 176, 0.05); }
|
|
.host-row .rank { color: var(--muted); font-family: var(--mono); font-size: 0.72rem; width: 42px; }
|
|
.host-name { font-size: 0.84rem; color: var(--text); }
|
|
.fusion-cell { display: grid; gap: 5px; min-width: 106px; }
|
|
.fusion-score { font-family: var(--mono); font-size: 0.8rem; }
|
|
.m-cell { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
|
|
.m-cell.has.p1 { color: var(--p1); }
|
|
.m-cell.has.p2 { color: var(--p2); }
|
|
.m-cell.has.p3 { color: var(--p3); }
|
|
.chevron-cell { color: var(--muted); text-align: right; width: 36px; }
|
|
.host-detail-row td { padding: 0; background: rgba(0, 0, 0, 0.1); }
|
|
html[data-theme="light"] .host-detail-row td { background: rgba(20, 58, 64, 0.03); }
|
|
.host-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); align-items: start; gap: 12px; padding: 14px; }
|
|
.host-pillar {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 9px;
|
|
min-width: 0;
|
|
padding: 12px;
|
|
border: 1px solid var(--line);
|
|
border-top: 2px solid var(--line-strong);
|
|
border-radius: 10px;
|
|
background: var(--panel);
|
|
}
|
|
.host-pillar.p1 { border-top-color: var(--p1); }
|
|
.host-pillar.p2 { border-top-color: var(--p2); }
|
|
.host-pillar.p3 { border-top-color: var(--p3); }
|
|
.host-pillar-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
|
|
.host-m { font-family: var(--mono); font-size: 0.92rem; }
|
|
.formula { color: var(--muted); font-size: 0.7rem; }
|
|
.evidence-compact { max-height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
|
|
.evidence-compact .kv th, .evidence-compact .kv td { padding: 5px 8px; font-size: 0.72rem; }
|
|
.host-pillar > .btn { align-self: flex-start; }
|
|
.footnote { margin-top: 12px; color: var(--muted); font-size: 0.74rem; line-height: 1.5; }
|
|
|
|
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
|
|
.summary-grid-wide { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-top: 0; }
|
|
.summary-tile {
|
|
display: grid;
|
|
gap: 4px;
|
|
min-width: 0;
|
|
padding: 11px 12px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 9px;
|
|
background: rgba(255, 255, 255, 0.02);
|
|
}
|
|
.summary-label { color: var(--muted); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; }
|
|
.summary-value { font-family: var(--mono); font-size: 0.8rem; font-weight: 600; overflow-wrap: anywhere; }
|
|
.report-detail { display: grid; gap: 10px; }
|
|
.report-actions { display: flex; gap: 8px; flex-wrap: wrap; }
|
|
.empty { color: var(--muted); font-size: 0.84rem; line-height: 1.5; margin: 0; padding: 14px; border: 1px dashed var(--line); border-radius: 10px; }
|
|
|
|
@media (max-width: 1280px) {
|
|
.charts-grid { grid-template-columns: 1fr; }
|
|
}
|
|
|
|
@media (max-width: 1120px) {
|
|
.kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
.summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
}
|
|
|
|
@media (max-width: 820px) {
|
|
.toolbar-slim { align-items: flex-end; }
|
|
.alert-head { grid-template-columns: auto minmax(0, 1fr) 92px 16px; gap: 10px; }
|
|
.alert-when { display: none; }
|
|
.last-updated { display: none; }
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.kpi-grid { grid-template-columns: 1fr; }
|
|
.summary-grid { grid-template-columns: 1fr; }
|
|
.alert-head { grid-template-columns: auto minmax(0, 1fr) 16px; }
|
|
.alert-score { display: none; }
|
|
.ov-alert { grid-template-columns: auto minmax(0, 1fr); }
|
|
.ov-score { display: none; }
|
|
.alert-summary { white-space: normal; }
|
|
.toolbar { gap: 10px; }
|
|
.field.compact, .range-field, .search-field { flex: 1 1 100%; min-width: 0; }
|
|
.legend { display: none; }
|
|
.top-actions { justify-content: flex-start; }
|
|
}
|