Files

747 lines
27 KiB
CSS

:root {
color-scheme: dark;
--bg: #070d14;
--bg-2: #0b1420;
--panel: rgba(13, 25, 38, 0.82);
--panel-solid: #0d1a29;
--line: rgba(148, 188, 205, 0.16);
--line-strong: rgba(148, 188, 205, 0.32);
--text: #e8f2f4;
--muted: #8ea5b0;
--accent: #38bdf8;
--accent-2: #f0b35b;
--danger: #ef4444;
/* CVSS Severity Palette */
--sev-critical: #ef4444;
--sev-critical-soft: rgba(239, 68, 68, 0.16);
--sev-high: #f97316;
--sev-high-soft: rgba(249, 115, 22, 0.16);
--sev-medium: #f59e0b;
--sev-medium-soft: rgba(245, 158, 11, 0.16);
--sev-low: #10b981;
--sev-low-soft: rgba(16, 185, 129, 0.16);
--sev-info: #64748b;
--sev-info-soft: rgba(100, 116, 139, 0.16);
--kev: #dc2626;
--kev-soft: rgba(220, 38, 38, 0.2);
--shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
--radius: 16px;
--mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
--sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}
html[data-theme="light"] {
color-scheme: light;
--bg: #f0f4f8;
--bg-2: #e2eaf0;
--panel: rgba(255, 255, 255, 0.88);
--panel-solid: #ffffff;
--line: rgba(20, 48, 64, 0.12);
--line-strong: rgba(20, 48, 64, 0.24);
--text: #0f1f26;
--muted: #536b75;
--accent: #0284c7;
--accent-2: #d97706;
--danger: #dc2626;
--sev-critical: #dc2626;
--sev-critical-soft: rgba(220, 38, 38, 0.12);
--sev-high: #ea580c;
--sev-high-soft: rgba(234, 88, 12, 0.12);
--sev-medium: #d97706;
--sev-medium-soft: rgba(217, 119, 6, 0.12);
--sev-low: #059669;
--sev-low-soft: rgba(5, 150, 105, 0.12);
--sev-info: #475569;
--sev-info-soft: rgba(71, 85, 105, 0.12);
--kev: #b91c1c;
--kev-soft: rgba(185, 28, 28, 0.15);
--shadow: 0 20px 50px rgba(20, 48, 64, 0.1);
}
* { 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 10% -8%, rgba(56, 189, 248, 0.12), transparent 60%),
radial-gradient(760px 480px at 92% 0%, rgba(239, 68, 68, 0.08), 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, h3, p { margin: 0; }
.app {
display: grid;
grid-template-columns: 286px minmax(0, 1fr);
min-height: 100vh;
}
/* ------------------------------------------------------------------ SIDEBAR */
.sidebar {
display: flex;
flex-direction: column;
gap: 22px;
padding: 28px 22px;
border-right: 1px solid var(--line);
background: linear-gradient(180deg, rgba(7, 15, 24, 0.78), rgba(7, 15, 24, 0.4));
backdrop-filter: blur(18px);
position: sticky;
top: 0;
height: 100vh;
}
html[data-theme="light"] .sidebar {
background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.45));
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35)); }
.brand strong { display: block; font-size: 1.18rem; letter-spacing: 0.01em; color: var(--text); }
.brand small { display: block; color: var(--muted); font-size: 0.76rem; margin-top: 2px; }
.side-title {
color: var(--muted);
font-size: 0.68rem;
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: 150ms ease;
}
.nav-item:hover { border-color: var(--line); background: rgba(56, 189, 248, 0.06); color: var(--text); }
.nav-item.active { border-color: var(--line-strong); background: rgba(56, 189, 248, 0.12); color: var(--text); }
.nav-icon { width: 20px; color: var(--accent); text-align: center; font-size: 1.05rem; }
.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: #10b981; box-shadow: 0 0 10px #10b981; }
.pill.offline .dot { background: var(--danger); box-shadow: 0 0 10px var(--danger); }
.mono { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); }
/* ------------------------------------------------------------------ MAIN */
.main { padding: 36px clamp(20px, 4vw, 54px) 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; font-weight: 600; }
h1 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); line-height: 1.06; letter-spacing: -0.035em; }
.sub { color: var(--muted); margin-top: 8px; font-size: 0.95rem; }
h2 { font-size: 1.08rem; letter-spacing: -0.01em; }
.top-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.last-updated { white-space: nowrap; }
.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;
transition: border-color 140ms ease;
}
.icon-btn:hover { border-color: var(--line-strong); }
.view:not(.active) { display: none !important; }
/* ------------------------------------------------------------------ KPIS */
.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(13, 25, 38, 0.4));
box-shadow: var(--shadow);
}
html[data-theme="light"] .kpi { background: linear-gradient(160deg, var(--panel), rgba(255, 255, 255, 0.6)); }
.kpi-label { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }
.kpi-value { margin-top: auto; font-family: var(--mono); font-size: clamp(1.6rem, 2.5vw, 2.1rem); 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 */
.charts-grid {
display: grid;
grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
gap: 16px;
margin-top: 16px;
}
.chart-panel { margin-top: 0; }
.panel-tag {
align-self: flex-start;
padding: 4px 10px;
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); rx: 4px; }
html[data-theme="light"] .bar-track { fill: rgba(20, 48, 64, 0.06); }
.bar-fill { rx: 4px; transition: filter 140ms ease, opacity 140ms ease; }
.bar-fill.critical { fill: var(--sev-critical); }
.bar-fill.high { fill: var(--sev-high); }
.bar-fill.medium { fill: var(--sev-medium); }
.bar-fill.low { fill: var(--sev-low); }
.bar-fill.info { fill: var(--sev-info); }
.bar-label { fill: var(--text); font-family: var(--sans); font-size: 12px; font-weight: 500; }
.bar-value { fill: var(--text); font-family: var(--mono); font-size: 12px; font-weight: 700; }
.bar-row { outline: none; cursor: pointer; }
.bar-row:hover .bar-fill, .bar-row:focus-visible .bar-fill { filter: brightness(1.25); }
.bar-row:hover .bar-track, .bar-row:focus-visible .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: 10;
display: grid;
gap: 4px;
max-width: 320px;
padding: 10px 13px;
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.8rem; }
.chart-tip span { color: var(--muted); }
/* ------------------------------------------------------------------ PANELS & CARDS */
.panel {
margin-top: 16px;
padding: 22px;
border: 1px solid var(--line);
border-radius: var(--radius);
background: var(--panel);
box-shadow: var(--shadow);
}
.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; }
.notice {
display: flex;
gap: 10px;
align-items: baseline;
padding: 14px 16px;
margin-top: 16px;
border: 1px solid var(--line);
border-radius: 12px;
background: var(--panel);
color: var(--muted);
font-size: 0.85rem;
line-height: 1.5;
}
.notice strong { color: var(--text); white-space: nowrap; }
/* ------------------------------------------------------------------ TOOLBAR & CHIPS */
.toolbar {
display: flex;
flex-wrap: wrap;
align-items: flex-end;
gap: 14px;
padding-bottom: 16px;
border-bottom: 1px solid var(--line);
margin-bottom: 16px;
}
.toolbar-slim { align-items: center; justify-content: space-between; }
.field.compact { flex: 0 0 auto; min-width: 140px; }
.field.compact > span { font-size: 0.68rem; }
.field.compact input, .field.compact select { padding: 8px 10px; }
.search-field { flex: 1 1 240px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; padding-bottom: 1px; }
.chip {
padding: 8px 13px;
border: 1px solid var(--line);
border-radius: 999px;
background: transparent;
color: var(--muted);
font-size: 0.76rem;
font-weight: 600;
transition: 140ms ease;
}
.chip:hover { border-color: var(--line-strong); color: var(--text); }
.chip.active { border-color: var(--accent); background: rgba(56, 189, 248, 0.12); color: var(--text); }
.field { display: grid; gap: 6px; flex: 1; }
.field > span { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
input, select, textarea {
width: 100%;
padding: 10px 12px;
border: 1px solid var(--line-strong);
border-radius: 10px;
background: rgba(0, 0, 0, 0.22);
outline: none;
color: var(--text);
font-size: 0.85rem;
font-family: inherit;
resize: vertical;
}
html[data-theme="light"] input, html[data-theme="light"] select, html[data-theme="light"] textarea { background: rgba(255, 255, 255, 0.8); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14); }
/* The select background is translucent; the open dropdown does not inherit it and rendered white text on white in dark mode. */
select option, select optgroup { background-color: var(--panel-solid); color: var(--text); }
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
padding: 10px 15px;
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;
text-decoration: none;
white-space: nowrap;
transition: 140ms ease;
cursor: pointer;
}
.btn:hover { border-color: var(--accent); text-decoration: none; color: var(--text); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #041b24; font-weight: 700; }
.btn.primary:hover { filter: brightness(1.08); color: #041b24; }
.btn.secondary { background: rgba(255, 255, 255, 0.03); border-color: var(--line); }
.btn.secondary:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.07); }
.btn.danger { background: rgba(244, 63, 94, 0.12); border-color: rgba(244, 63, 94, 0.35); color: #fda4af; }
.btn.danger:hover { background: rgba(244, 63, 94, 0.22); border-color: #f43f5e; color: #fff; }
.btn:disabled, .btn[disabled] { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.btn.small, .btn.btn-sm, .btn-sm { padding: 6px 11px; font-size: 0.74rem; border-radius: 8px; }
.panel-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.group-card-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.group-card-targets { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); margin: 6px 0; word-break: break-all; }
.group-card-badge { display: inline-block; padding: 2px 7px; border-radius: 6px; font-size: 0.68rem; font-weight: 600; text-transform: uppercase; background: rgba(56, 189, 248, 0.12); color: var(--accent); }
.group-dlg { width: min(540px, calc(100vw - 32px)); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-error { background: rgba(244, 63, 94, 0.15); border: 1px solid #f43f5e; color: #fda4af; padding: 10px 14px; border-radius: 8px; font-size: 0.8rem; margin-bottom: 14px; line-height: 1.4; }
.field-hint { font-size: 0.72rem; color: var(--muted); margin-top: 2px; display: block; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 8px; margin: 20px 0 0; padding: 0; }
/* ------------------------------------------------------------------ SEVERITY BADGES */
.sev-badge {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 3px 8px;
border: 1px solid transparent;
border-radius: 6px;
font-family: var(--mono);
font-size: 0.7rem;
font-weight: 700;
letter-spacing: 0.03em;
white-space: nowrap;
}
.sev-badge.critical { color: #fca5a5; background: var(--sev-critical-soft); border-color: rgba(239, 68, 68, 0.35); }
.sev-badge.high { color: #fdba74; background: var(--sev-high-soft); border-color: rgba(249, 115, 22, 0.35); }
.sev-badge.medium { color: #fcd34d; background: var(--sev-medium-soft); border-color: rgba(245, 158, 11, 0.35); }
.sev-badge.low { color: #6ee7b7; background: var(--sev-low-soft); border-color: rgba(16, 185, 129, 0.35); }
.sev-badge.info { color: #cbd5e1; background: var(--sev-info-soft); border-color: rgba(100, 116, 139, 0.35); }
.kev-badge {
display: inline-flex;
align-items: center;
padding: 2px 7px;
border: 1px solid rgba(220, 38, 38, 0.45);
border-radius: 6px;
background: var(--kev-soft);
color: #fca5a5;
font-family: var(--mono);
font-size: 0.66rem;
font-weight: 700;
letter-spacing: 0.04em;
text-transform: uppercase;
box-shadow: 0 0 10px rgba(220, 38, 38, 0.2);
}
.conf-badge {
display: inline-flex;
align-items: center;
padding: 2px 6px;
border: 1px solid var(--line);
border-radius: 5px;
color: var(--muted);
font-size: 0.66rem;
font-weight: 600;
}
.tag-badge {
display: inline-flex;
align-items: center;
padding: 2px 7px;
border: 1px solid var(--line);
border-radius: 6px;
background: rgba(255, 255, 255, 0.03);
font-family: var(--mono);
font-size: 0.72rem;
color: var(--text);
white-space: nowrap;
}
/* ------------------------------------------------------------------ TABLE */
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.host-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.host-table thead th {
position: sticky;
top: 0;
z-index: 1;
padding: 11px 13px;
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: 12px 13px; border-top: 1px solid var(--line); font-size: 0.83rem; 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(56, 189, 248, 0.06); }
.host-row.open { background: rgba(56, 189, 248, 0.05); }
.host-row .rank { color: var(--muted); font-family: var(--mono); font-size: 0.74rem; width: 44px; }
.host-name { font-size: 0.86rem; color: var(--text); }
.chevron-cell { color: var(--muted); text-align: right; width: 36px; font-size: 1.1rem; }
.status-indicator {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 0.76rem;
font-weight: 600;
}
.status-indicator.active { color: #34d399; }
.status-indicator.gone { color: #f87171; }
.status-indicator .sdot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
/* ------------------------------------------------------------------ HOST DETAIL EXPANSION */
.host-detail-row td { padding: 0; background: rgba(0, 0, 0, 0.12); }
html[data-theme="light"] .host-detail-row td { background: rgba(20, 48, 64, 0.03); }
.host-detail-wrap { padding: 16px; display: grid; gap: 14px; }
.ports-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 12px; }
.port-card {
padding: 14px;
border: 1px solid var(--line);
border-radius: 10px;
background: var(--panel);
display: flex;
flex-direction: column;
gap: 10px;
}
.port-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.port-num { font-family: var(--mono); font-size: 0.96rem; font-weight: 700; color: var(--accent); }
.port-product { font-size: 0.82rem; color: var(--text); }
.cpe-block {
padding: 6px 8px;
border-radius: 6px;
background: rgba(0, 0, 0, 0.2);
font-family: var(--mono);
font-size: 0.7rem;
color: var(--muted);
overflow-x: auto;
white-space: nowrap;
}
.port-findings-list { display: grid; gap: 6px; }
.port-finding-mini {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
padding: 6px 9px;
border: 1px solid var(--line);
border-radius: 7px;
background: rgba(255, 255, 255, 0.02);
font-size: 0.74rem;
}
/* ------------------------------------------------------------------ FINDINGS CARDS */
.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;
transition: border-color 140ms ease;
}
.alert-card.critical { border-left-color: var(--sev-critical); }
.alert-card.high { border-left-color: var(--sev-high); }
.alert-card.medium { border-left-color: var(--sev-medium); }
.alert-card.low { border-left-color: var(--sev-low); }
.alert-card.info { border-left-color: var(--sev-info); }
.alert-head {
display: grid;
grid-template-columns: auto minmax(0, 1fr) auto 20px;
gap: 14px;
align-items: center;
width: 100%;
padding: 14px 16px;
border: 0;
background: transparent;
color: inherit;
text-align: left;
cursor: pointer;
}
.alert-head:hover { background: rgba(56, 189, 248, 0.04); }
.alert-head:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.alert-main { display: grid; gap: 4px; min-width: 0; }
.alert-title { font-size: 0.88rem; font-weight: 600; line-height: 1.35; 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; }
.alert-target { font-family: var(--mono); color: var(--text); }
.alert-body {
display: grid;
gap: 14px;
padding: 16px;
border-top: 1px solid var(--line);
background: rgba(0, 0, 0, 0.12);
}
html[data-theme="light"] .alert-body { background: rgba(20, 48, 64, 0.025); }
.metrics { display: flex; flex-wrap: wrap; gap: 8px; }
.metric {
display: grid;
gap: 3px;
min-width: 90px;
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; font-weight: 600; }
.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; }
.kv { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.kv th {
width: 32%;
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;
}
.kv td { padding: 6px 10px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 0.74rem; overflow-wrap: anywhere; }
.kv tr:first-child th, .kv tr:first-child td { border-top: 0; }
/* ------------------------------------------------------------------ OVERVIEW PRIORITIES */
.overview-findings { display: grid; gap: 8px; }
.ov-item {
display: grid;
grid-template-columns: auto minmax(0, 1fr) auto;
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;
cursor: pointer;
transition: 130ms ease;
}
.ov-item:hover { border-color: var(--line-strong); background: rgba(56, 189, 248, 0.05); }
.ov-item.critical { border-left-color: var(--sev-critical); }
.ov-item.high { border-left-color: var(--sev-high); }
.ov-item.medium { border-left-color: var(--sev-medium); }
/* ------------------------------------------------------------------ GROUPS & SCHEDULE */
.groups-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
gap: 14px;
}
.group-card {
padding: 18px;
border: 1px solid var(--line);
border-radius: var(--radius);
background: linear-gradient(160deg, var(--panel), rgba(13, 25, 38, 0.35));
display: flex;
flex-direction: column;
gap: 12px;
}
.group-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.group-name { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.cron-tag {
padding: 4px 8px;
border-radius: 6px;
background: rgba(0, 0, 0, 0.2);
font-family: var(--mono);
font-size: 0.72rem;
color: var(--accent);
}
.group-next { display: grid; gap: 3px; font-size: 0.78rem; color: var(--muted); }
.group-next strong { color: var(--text); font-family: var(--mono); }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.summary-grid-wide { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-top: 0; }
.summary-tile {
display: grid;
gap: 4px;
padding: 12px 14px;
border: 1px solid var(--line);
border-radius: 10px;
background: rgba(255, 255, 255, 0.02);
}
.summary-label { color: var(--muted); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.summary-value { font-family: var(--mono); font-size: 0.84rem; font-weight: 600; overflow-wrap: anywhere; }
/* ------------------------------------------------------------------ TIMELINE */
.timeline { display: grid; gap: 10px; }
.timeline-item {
display: grid;
grid-template-columns: 28px minmax(0, 1fr) auto;
gap: 14px;
align-items: center;
padding: 12px 14px;
border: 1px solid var(--line);
border-radius: 10px;
background: rgba(255, 255, 255, 0.02);
}
.timeline-dot {
width: 24px;
height: 24px;
border-radius: 50%;
display: inline-grid;
place-items: center;
font-size: 0.75rem;
font-weight: 700;
}
.timeline-dot.host_new { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.timeline-dot.port_opened { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.timeline-dot.service_changed { background: rgba(56, 189, 248, 0.2); color: #38bdf8; }
.timeline-dot.port_closed, .timeline-dot.host_gone { background: rgba(100, 116, 139, 0.2); color: #94a3b8; }
.timeline-dot.default { background: rgba(245, 158, 11, 0.2); color: #fcd34d; }
.timeline-info { display: grid; gap: 3px; min-width: 0; }
.timeline-title { font-size: 0.84rem; font-weight: 600; }
.timeline-sub { font-size: 0.72rem; color: var(--muted); font-family: var(--mono); }
.timeline-time { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); white-space: nowrap; }
/* ------------------------------------------------------------------ DIALOG */
dialog {
width: min(440px, 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, 6, 10, 0.65); backdrop-filter: blur(4px); }
.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; font-weight: 600; }
.segmented button.active { background: rgba(56, 189, 248, 0.16); color: var(--text); }
.empty {
color: var(--muted);
font-size: 0.84rem;
line-height: 1.5;
margin: 0;
padding: 16px;
border: 1px dashed var(--line);
border-radius: 10px;
text-align: center;
}
.footnote { margin-top: 14px; color: var(--muted); font-size: 0.74rem; line-height: 1.5; }
.foot { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; color: var(--muted); font-size: 0.74rem; }
/* ------------------------------------------------------------------ RESPONSIVE */
@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) {
.app { grid-template-columns: 1fr; }
.sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
.nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.side-foot { margin-top: 0; }
.main { padding-top: 24px; }
.toolbar-slim { align-items: flex-end; }
.alert-head { grid-template-columns: auto minmax(0, 1fr) 20px; }
.last-updated { display: none; }
}
@media (max-width: 640px) {
.kpi-grid { grid-template-columns: 1fr; }
.summary-grid { grid-template-columns: 1fr; }
.nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.alert-head { grid-template-columns: auto minmax(0, 1fr) 20px; }
.ov-item { grid-template-columns: auto minmax(0, 1fr); }
.toolbar { gap: 10px; }
.field.compact, .search-field { flex: 1 1 100%; min-width: 0; }
.foot { flex-direction: column; }
}