Files
NeuroSploit/web/public/style.css
T
Joas A SantosandClaude Opus 4.6 76ce3101cc fix(web): dashboard stats in pentests view, toolbox JSON parse, PR review modal
- Move dashboardStats into pentests view (was global, polluting all pages)
- Make stats cards reflect actual run data from file storage
- Fix toolbox JSON parsing: separate stdout/stderr in runCli, handle
  array JSON in toolsCall (was only matching object patterns)
- Add New PR Review modal with repo/PR input form
- Target table click now switches to pentests view
- Dashboard cards: severity-colored layout with CSS
- Strip redundant Storage card from stats

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-12-04 10:36:29 -03:00

3230 lines
245 KiB
CSS

/* NeuroSploit v5 — web console.
Visual direction: calm, modern AI-security SaaS. Near-black canvas in dark,
soft paper in light, one violet accent, hairline borders, generous space.
Severity owns red/orange/yellow/green/blue; the accent is the only other hue.
Structure: tokens → base → legacy component rules (re-tokenised) → v5 layer
(at the end of this file), which restyles the shell and core components. */
:root {
/* spacing — 4/8/12/16/24/32/48/64 */
--sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
--sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
--radius-xs: 4px;
--radius-sm: 7px;
--radius-md: 10px;
--radius-lg: 14px;
--radius-xl: 18px;
--radius: 10px;
--radius-pill: 999px;
--fs-2xs: 11px;
--fs-xs: 12px;
--fs-sm: 13px;
--fs-base: 14px;
--fs-lg: 16px;
--fs-xl: 20px;
--fs-2xl: 26px;
--fs-display: 32px;
--t-fast: .12s cubic-bezier(.2, .8, .2, 1);
--t-base: .2s cubic-bezier(.2, .8, .2, 1);
--z-sticky: 10;
--z-header: 20;
--z-overlay: 50;
--z-modal: 60;
--z-toast: 80;
--sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
--mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
--font-mono: var(--mono);
/* ---- light ---- */
--bg: #f6f6f8;
--surface: #ffffff;
--surface-1: #ffffff;
--surface-2: #f8f8fa;
--surface-3: #f0f0f3;
--surface-raised: #ffffff;
--border: #e7e7ec;
--border-strong: #d6d6de;
--text: #0f0f14;
--text-dim: #565664;
--text-muted: #565664;
--text-faint: #8a8a98;
--accent: #5b4cf0;
--accent-hover: #4a3bdc;
--accent-contrast: #ffffff;
--accent-soft: #efedfe;
--accent-line: #d9d4fd;
--focus-ring: #5b4cf0;
--hover: rgba(15, 15, 20, .04);
--sidebar-bg: #fbfbfc;
--sev-critical-bg: #fde8e8; --sev-critical-fg: #b42318; --sev-critical-bar: #e5484d;
--sev-high-bg: #fff0e1; --sev-high-fg: #b54708; --sev-high-bar: #f76b15;
--sev-medium-bg: #fef6d7; --sev-medium-fg: #8a6100; --sev-medium-bar: #e2a508;
--sev-low-bg: #e6f6ec; --sev-low-fg: #157f3c; --sev-low-bar: #30a46c;
--sev-info-bg: #e8f0fe; --sev-info-fg: #2c58c8; --sev-info-bar: #3e7bfa;
--warn-bg: #fef6d7; --warn-fg: #8a6100;
--shadow-xs: 0 1px 2px rgba(16, 16, 24, .05);
--shadow-sm: 0 1px 2px rgba(16, 16, 24, .06), 0 1px 1px rgba(16, 16, 24, .03);
--shadow-float: 0 24px 48px -12px rgba(16, 16, 24, .18), 0 4px 12px rgba(16, 16, 24, .06);
--overlay-scrim: rgba(12, 12, 18, .42);
--term-bg: #0b0b0e;
--term-fg: #e4e4e9;
--term-fg-dim: #a2a2ad;
--term-fg-bright: #ffffff;
--term-title: #e4e4e9;
--term-fill: rgba(255, 255, 255, .04);
--term-hover: rgba(255, 255, 255, .08);
--term-line: rgba(255, 255, 255, .09);
--term-dot: #5c5c66;
--term-fg-faint: #7c7c87;
color-scheme: light;
}
:root[data-theme="dark"] {
--bg: #09090b;
--surface: #111114;
--surface-1: #111114;
--surface-2: #16161a;
--surface-3: #1d1d22;
--surface-raised: #16161a;
--border: #222228;
--border-strong: #303038;
--text: #ededf0;
--text-dim: #a1a1ad;
--text-muted: #a1a1ad;
--text-faint: #6c6c78;
--accent: #8b7dff;
--accent-hover: #a094ff;
--accent-contrast: #0b0a1a;
--accent-soft: #1b1835;
--accent-line: #312b5e;
--focus-ring: #8b7dff;
--hover: rgba(255, 255, 255, .04);
--sidebar-bg: #0c0c0f;
--sev-critical-bg: #2c1215; --sev-critical-fg: #ff8a8a; --sev-critical-bar: #ef4444;
--sev-high-bg: #2b1a0c; --sev-high-fg: #ffad66; --sev-high-bar: #f97316;
--sev-medium-bg: #282108; --sev-medium-fg: #f2cd5c; --sev-medium-bar: #eab308;
--sev-low-bg: #0f2418; --sev-low-fg: #5fd394; --sev-low-bar: #22c55e;
--sev-info-bg: #111d36; --sev-info-fg: #8db1ff; --sev-info-bar: #3b82f6;
--warn-bg: #282108; --warn-fg: #f2cd5c;
--shadow-xs: 0 1px 2px rgba(0, 0, 0, .4);
--shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
--shadow-float: 0 24px 64px -12px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .04);
--overlay-scrim: rgba(0, 0, 0, .62);
color-scheme: dark;
}
* { box-sizing: border-box; }
/* The [hidden] attribute must always win. Any component class that sets its
own `display` (buttons, chips, flex/grid containers, ...) has the SAME
specificity as the browser's built-in `[hidden] { display: none }` rule —
whichever is declared later in the cascade wins, which silently breaks
`el.hidden = true` on anything already styled with `display`. Force it. */
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
background: var(--bg); color: var(--text); font-family: var(--sans);
font-size: var(--fs-base); line-height: 1.5; -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; color: inherit; font-size: var(--fs-base); }
a { color: var(--accent); text-decoration: none; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; }
/* ============================================================ AppShell */
/* 100vh is wrong on mobile: it measures the viewport WITHOUT the browser's
collapsing address bar, so the bottom of the app sits under it and the
footer/CTA is unreachable until you scroll the chrome away. dvh tracks the
visible box; the vh line stays as the fallback for older engines. */
.app { display: flex; height: 100vh; height: 100dvh; overflow: hidden; }
.sidebar {
width: 248px; flex: none; background: var(--surface); border-right: 1px solid var(--border);
display: flex; flex-direction: column;
}
.sb-top {
display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-4) var(--sp-4) var(--sp-3);
}
.brand { display: flex; align-items: center; gap: var(--sp-2); font-weight: 600; font-size: var(--fs-base); letter-spacing: .01em; flex: 1; }
.brand .mark { width: 26px; height: 26px; flex: none; color: var(--text); }
.icon-btn {
background: transparent; border: 1px solid transparent; color: var(--text-dim);
width: 26px; height: 26px; border-radius: var(--radius-sm); font-size: var(--fs-base);
display: flex; align-items: center; justify-content: center;
}
.icon-btn:hover { background: var(--surface-3); border-color: var(--border); color: var(--text); }
.sb-new {
margin: 0 var(--sp-4) var(--sp-3); padding: var(--sp-3) var(--sp-3);
border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
background: var(--surface); color: var(--text); font-size: var(--fs-sm); font-weight: 600; text-align: left;
}
.sb-new:hover { border-color: var(--accent); color: var(--accent); }
.sb-groups { flex: 1; overflow-y: auto; padding: 0 var(--sp-2) var(--sp-4); }
.sb-group-head {
display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-2);
font-size: var(--fs-xs); font-weight: 600; text-transform: none; color: var(--text-faint);
cursor: pointer; user-select: none;
}
.sb-group-head .count { margin-left: auto; font-weight: 400; }
.sb-group-head .caret { font-size: var(--fs-xs); line-height: 1; transition: transform var(--t-base); }
.sb-group.collapsed .caret { transform: rotate(-90deg); }
.sb-group.collapsed .sb-items { display: none; }
.sb-run-row { position: relative; }
.sb-run-row .sb-run { padding-right: 26px; }
.sb-run-del { position: absolute; top: 6px; right: 4px; width: 20px; height: 20px; line-height: 1; padding: 0; border: none; border-radius: var(--radius-sm); background: transparent; color: var(--text-faint); font-size: var(--fs-sm); cursor: pointer; opacity: 0; transition: opacity var(--t-fast), background var(--t-fast), color var(--t-fast); }
.sb-run-row:hover .sb-run-del { opacity: 1; }
.sb-run-del:hover { background: var(--sev-critical-bg); color: var(--sev-critical-fg); }
.sb-run { display: block; width: 100%; text-align: left; background: transparent; border: none; border-radius: var(--radius-sm); padding: var(--sp-2) var(--sp-2); color: var(--text); margin-bottom: 1px; }
.sb-run:hover { background: var(--surface-3); }
.sb-run.active { background: var(--accent-soft); }
.sb-run .name { font-size: var(--fs-sm); font-weight: 500; display: flex; align-items: center; gap: 6px; min-width: 0; }
.sb-run .name .label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* Every sidebar line clips inside the rail — a long target URL used to spill
past the sidebar border into the main pane. */
.sb-run .sub { display: block; font-size: var(--fs-xs); color: var(--text-faint); font-family: var(--mono); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-run .sub-facts { display: flex; justify-content: space-between; gap: var(--sp-2); }
.run-dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.sev-dot-critical { background: var(--sev-critical-bar); }
.sev-dot-high { background: var(--sev-high-bar); }
.sev-dot-medium { background: var(--sev-medium-bar); }
.sev-dot-low { background: var(--sev-low-bar); }
.sev-dot-info { background: var(--sev-info-bar); }
.sb-steps { padding: var(--sp-1) var(--sp-2) var(--sp-2) var(--sp-5); display: flex; flex-direction: column; gap: 2px; }
.sb-step { font-size: var(--fs-xs); color: var(--text-faint); display: flex; align-items: center; gap: var(--sp-2); }
.sb-step::before { content: "○"; font-size: var(--fs-2xs); width: 10px; }
.sb-step.done { color: var(--text-dim); }
.sb-step.done::before { content: "●"; color: var(--sev-low-fg); }
.sb-step.active { color: var(--accent); font-weight: 600; }
.sb-step.active::before { content: "◐"; color: var(--accent); }
.sb-bottom { border-top: 1px solid var(--border); padding: var(--sp-3) var(--sp-4); display: flex; align-items: center; justify-content: space-between; }
.sb-version { font-size: var(--fs-xs); color: var(--text-faint); font-family: var(--mono); }
.sb-bottom-actions { display: flex; gap: var(--sp-1); }
.sb-link {
margin: 0 var(--sp-4) var(--sp-3); padding: var(--sp-2) var(--sp-3);
border: 1px solid transparent; border-radius: var(--radius-sm);
background: transparent; color: var(--text-dim); font-size: var(--fs-sm); text-align: left;
}
.sb-link:hover { background: var(--surface-3); color: var(--text); }
.sb-nav { display: flex; flex-direction: column; gap: 1px; padding: 0 var(--sp-2) var(--sp-3); }
.sb-nav-item {
display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) var(--sp-3);
border: none; border-radius: var(--radius-sm);
background: transparent; color: var(--text-dim); font-size: var(--fs-sm); text-align: left;
cursor: pointer; transition: background var(--t-fast), color var(--t-fast);
}
.sb-nav-item:hover { background: var(--surface-3); color: var(--text); }
.sb-nav-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.sb-nav-icon { width: 18px; text-align: center; font-size: var(--fs-sm); flex: none; opacity: .7; line-height: 1; }
.sb-nav-item.active .sb-nav-icon { opacity: 1; }
.sb-nav-separator { height: 1px; background: var(--border); margin: var(--sp-2) var(--sp-3); }
.sb-run-history { display: flex; flex-direction: column; flex: 1; overflow: hidden; }
.page-view { display: none; flex-direction: column; flex: 1; overflow: hidden; }
.page-view:not([hidden]) { display: flex; }
.page-body { flex: 1; overflow-y: auto; padding: var(--sp-5); }
.topbar-search {
padding: var(--sp-2) var(--sp-3); border: 1px solid var(--border); border-radius: var(--radius-sm);
background: var(--surface); color: var(--text); font-size: var(--fs-sm); width: 220px;
}
.data-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.data-table th { text-align: left; padding: var(--sp-2) var(--sp-3); font-weight: 600; color: var(--text-dim); border-bottom: 2px solid var(--border); font-size: var(--fs-xs); text-transform: none; }
.data-table td { padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--border); vertical-align: top; }
.data-table tr:hover td { background: var(--surface-2); }
.data-table .mono { font-family: var(--mono); font-size: var(--fs-xs); }
.config-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--sp-4); }
.config-card {
border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--sp-4);
background: var(--surface); transition: border-color var(--t-fast);
}
.config-card:hover { border-color: var(--border-strong); }
.config-card-title { font-size: var(--fs-lg); font-weight: 600; margin-bottom: var(--sp-2); display: flex; align-items: center; gap: var(--sp-2); }
.config-card-desc { font-size: var(--fs-sm); color: var(--text-dim); margin-bottom: var(--sp-3); }
.config-card-meta { font-size: var(--fs-xs); color: var(--text-faint); font-family: var(--mono); }
.config-card-actions { display: flex; gap: var(--sp-2); margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--border); }
/* projects / orgs — one card per project, runs grouped under it */
.project-org { margin-bottom: var(--sp-6); }
.project-org-head { display: flex; align-items: center; gap: var(--sp-3); margin: 0 0 var(--sp-3); }
.project-org-head h2 { margin: 0; font-size: var(--fs-lg); font-weight: 700; letter-spacing: -.01em; }
.project-card { display: flex; flex-direction: column; }
.project-runs { display: flex; flex-direction: column; gap: 2px; margin: var(--sp-3) 0; }
.project-run { display: flex; align-items: center; gap: var(--sp-2); width: 100%; text-align: left; padding: 6px 8px;
border: 1px solid transparent; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text);
font-size: var(--fs-xs); cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast); }
.project-run:hover { border-color: var(--border-strong); background: var(--surface); }
.project-run-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-run-meta { color: var(--text-faint); font-family: var(--mono); font-size: var(--fs-2xs); white-space: nowrap; }
.project-run-more { font-size: var(--fs-xs); color: var(--text-faint); padding: 2px 8px; }
.project-empty { font-size: var(--fs-xs); color: var(--text-faint); padding: var(--sp-2) 0; }
.state-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--text-faint); }
.state-dot.state-running { background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.state-dot.state-complete, .state-dot.state-completed, .state-dot.state-done { background: var(--sev-low-fg); }
.state-dot.state-interrupted, .state-dot.state-failed, .state-dot.state-error { background: var(--sev-high-fg); }
@media (max-width: 760px) { .config-grid { grid-template-columns: 1fr; } .project-org-head { flex-wrap: wrap; } }
.btn-accent {
background: var(--accent); color: var(--accent-contrast); border: 1px solid var(--accent);
padding: var(--sp-2) var(--sp-4); border-radius: var(--radius-sm); font-size: var(--fs-sm); font-weight: 600;
}
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.integration-card { display: flex; align-items: center; gap: var(--sp-4); }
.integration-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--surface-3); display: flex; align-items: center; justify-content: center; font-size: var(--fs-xl); flex: none; }
.integration-info { flex: 1; }
.integration-status { font-size: var(--fs-xs); display: flex; align-items: center; gap: var(--sp-1); }
.integration-dot { width: 8px; height: 8px; border-radius: 50%; }
.integration-dot.connected { background: var(--sev-low-fg); }
.integration-dot.disconnected { background: var(--text-faint); }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--sp-4); margin-bottom: var(--sp-5); }
.stat-card {
border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--sp-4);
background: var(--surface);
}
.stat-label { font-size: var(--fs-xs); color: var(--text-dim); text-transform: none; font-weight: 600; }
.stat-value { font-size: var(--fs-2xl); font-weight: 700; margin-top: var(--sp-1); }
.stat-sub { font-size: var(--fs-xs); color: var(--text-faint); margin-top: var(--sp-1); }
.form-modal { max-width: 520px; }
.form-group { margin-bottom: var(--sp-4); }
.form-group label { display: block; font-size: var(--fs-sm); font-weight: 600; margin-bottom: var(--sp-1); }
.form-group input:not([type="checkbox"]):not([type="radio"]), .form-group select, .form-group textarea {
width: 100%; padding: var(--sp-2) var(--sp-3); border: 1px solid var(--border); border-radius: var(--radius-sm);
background: var(--surface); color: var(--text); font-size: var(--fs-sm);
}
.form-group .field-help { font-size: var(--fs-xs); color: var(--text-faint); margin-top: var(--sp-1); }
.form-actions { display: flex; gap: var(--sp-2); justify-content: flex-end; margin-top: var(--sp-5); }
.sb-search { position: relative; margin: 0 var(--sp-4) var(--sp-3); }
.sb-search input { padding-left: 26px; font-size: var(--fs-sm); }
.sb-search .search-icon { left: 8px; }
/* Runs are grouped into one folder per target: twelve rows of near-identical
URLs was a wall to scroll past, and the host is what an operator scans for. */
.sb-folder { margin-bottom: 2px; }
.sb-folder-head {
display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2);
border-radius: var(--radius-sm); cursor: pointer; user-select: none; font-size: var(--fs-sm);
}
.sb-folder-head:hover { background: var(--surface-3); }
.sb-folder-head .caret { font-size: var(--fs-xs); line-height: 1; color: var(--text-faint); transition: transform var(--t-base); }
.sb-folder-head .fname { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-folder-head .fmeta { font-family: var(--mono); font-size: var(--fs-xs); color: var(--text-faint); }
.sb-folder.collapsed .caret { transform: rotate(-90deg); }
.sb-folder.collapsed .sb-items { display: none; }
.sb-folder .sb-items { padding-left: var(--sp-3); border-left: 1px solid var(--border); margin-left: 9px; }
.sb-empty { padding: var(--sp-4) var(--sp-2); font-size: var(--fs-sm); color: var(--text-faint); }
/* ============================================================ Dashboard */
.dashboard { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.dashboard[hidden] { display: none; }
.dash-range { width: auto; padding: 6px 8px; font-size: var(--fs-sm); }
.dash-body { flex: 1; overflow-y: auto; padding: var(--sp-5); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--sp-3); margin-bottom: var(--sp-4); }
.stat-tile { border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--sp-4); background: var(--surface); }
.stat-k { font-size: var(--fs-xs); text-transform: none; color: var(--text-faint); font-weight: 600; }
.stat-v { font-size: var(--fs-display); font-weight: 650; line-height: 1.15; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat-unit { font-size: var(--fs-lg); color: var(--text-faint); font-weight: 500; }
.stat-sub { font-size: var(--fs-xs); color: var(--text-dim); margin-top: 2px; }
/* The score tile carries a status color, so it also carries a word — the band
label — because color alone is not an encoding. */
.stat-score.sev-critical { border-color: var(--sev-critical-fg); }
.stat-score.sev-critical .stat-v { color: var(--sev-critical-fg); }
.stat-score.sev-high { border-color: var(--sev-high-fg); }
.stat-score.sev-high .stat-v { color: var(--sev-high-fg); }
.stat-score.sev-medium { border-color: var(--sev-medium-fg); }
.stat-score.sev-medium .stat-v { color: var(--sev-medium-fg); }
.stat-score.sev-low { border-color: var(--sev-low-fg); }
.stat-score.sev-low .stat-v { color: var(--sev-low-fg); }
.score-ring-wrap { position: relative; width: 80px; height: 80px; margin: var(--sp-2) 0; }
.score-ring { width: 80px; height: 80px; color: inherit; }
.score-ring-value { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: var(--fs-xl); font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-score .score-ring { color: var(--sev-low-fg); }
.stat-score.sev-medium .score-ring { color: var(--sev-medium-fg); }
.stat-score.sev-high .score-ring { color: var(--sev-high-fg); }
.stat-score.sev-critical .score-ring { color: var(--sev-critical-fg); }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--sp-3); }
.dash-card { border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--sp-4); background: var(--surface); }
.dash-card h3 { margin: 0 0 var(--sp-3); font-size: var(--fs-sm); font-weight: 600; }
.dash-card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.dash-card-head h3 { margin: 0; }
.dash-wide { grid-column: 1 / -1; }
.dash-sub { font-size: var(--fs-xs); text-transform: none; color: var(--text-faint); font-weight: 600; margin: var(--sp-4) 0 var(--sp-2); }
.dash-foot { margin-top: var(--sp-4); font-size: var(--fs-xs); color: var(--text-faint); }
.dash-table td.mono { font-family: var(--mono); font-size: var(--fs-xs); }
.dash-table { min-width: 480px; }
/* Bars: thin marks, value labeled on every row, recessive track. */
.bar-row { display: grid; grid-template-columns: 90px 1fr 42px; align-items: center; gap: var(--sp-3); padding: 3px 0; font-size: var(--fs-sm); }
.bar-label { color: var(--text-dim); text-transform: capitalize; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { height: 10px; background: var(--surface-3); border-radius: var(--radius-xs); overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: var(--radius-xs); background: var(--text-faint); }
.bar-critical { background: var(--sev-critical-bar); }
.bar-high { background: var(--sev-high-bar); }
.bar-medium { background: var(--sev-medium-bar); }
.bar-low { background: var(--sev-low-bar); }
.bar-info { background: var(--sev-info-bar); }
.bar-neutral { background: var(--accent); }
.bar-value { font-family: var(--mono); font-size: var(--fs-xs); text-align: right; color: var(--text); }
.fair-hero { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: var(--sp-4); background: var(--surface-2); }
.fair-range { display: flex; gap: var(--sp-5); flex-wrap: wrap; align-items: baseline; }
.fair-point { display: flex; flex-direction: column; }
.fair-point .k { font-size: var(--fs-xs); text-transform: none; color: var(--text-faint); }
.fair-point .v { font-size: var(--fs-xl); font-weight: 600; font-variant-numeric: tabular-nums; }
.fair-likely .v { font-size: var(--fs-display); color: var(--accent); }
.fair-note { font-size: var(--fs-xs); color: var(--text-dim); margin-top: var(--sp-3); }
.contrib-row { display: flex; align-items: center; gap: var(--sp-3); padding: 5px 0; border-bottom: 1px solid var(--border); font-size: var(--fs-sm); }
.contrib-row:last-child { border-bottom: none; }
/* Clickable contributor: a full-width button that reads like a row but opens
the finding. */
button.contrib-row { width: 100%; text-align: left; background: transparent; border-left: none; border-right: none; border-top: none; color: var(--text); cursor: pointer; padding: 5px var(--sp-2); margin: 0 calc(-1 * var(--sp-2)); border-radius: var(--radius-xs); transition: background var(--t-fast); }
button.contrib-row:hover { background: var(--surface-3); }
button.contrib-row:hover .contrib-title { color: var(--accent); }
button.contrib-row .contrib-v { margin-left: auto; }
.contrib-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contrib-v { font-family: var(--mono); font-size: var(--fs-sm); }
.fair-params { display: flex; flex-direction: column; gap: var(--sp-2); }
.fair-param { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); }
.fair-param > span:first-child { width: 92px; flex: none; text-transform: capitalize; }
.fair-param input { flex: 1; font-family: var(--mono); font-size: var(--fs-sm); }
/* ============================================================ Main / Topbar */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-3) var(--sp-5);
border-bottom: 1px solid var(--border); background: var(--bg); min-height: 56px;
}
.topbar-title { font-size: var(--fs-lg); font-weight: 600; }
.topbar-sub { font-size: var(--fs-xs); color: var(--text-faint); font-family: var(--mono); margin-top: 1px; }
.topbar-spacer { flex: 1; }
.btn {
border-radius: var(--radius-sm); border: 1px solid var(--border-strong); padding: var(--sp-2) var(--sp-4);
font-size: var(--fs-sm); font-weight: 500; background: var(--surface); color: var(--text);
display: inline-flex; align-items: center; gap: var(--sp-2); white-space: nowrap;
}
.btn:hover { border-color: var(--text-dim); }
.btn-sm { padding: 6px var(--sp-3); font-size: var(--fs-sm); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); font-weight: 600; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-danger { background: transparent; border-color: var(--sev-critical-fg); color: var(--sev-critical-fg); }
.btn-danger:hover { background: var(--sev-critical-bg); }
/* A paused run is a state to notice, not an error — the resume button wears
the warning hue so the run never looks quietly stalled. */
.btn-warn { background: var(--sev-medium-bg); border-color: var(--sev-medium-fg); color: var(--sev-medium-fg); }
.btn-warn:hover { background: var(--sev-medium-bg); filter: brightness(1.12); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
a.btn:disabled, a.btn[aria-disabled="true"] { pointer-events: none; }
.btn:focus-visible { outline-offset: 2px; }
/* ============================================================ Wizard */
.wizard { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.stepper {
display: flex; align-items: center; padding: 0 var(--sp-5); border-bottom: 1px solid var(--border);
background: var(--surface); overflow-x: auto;
}
.step-tab {
display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-4) var(--sp-4) var(--sp-3);
border-bottom: 2px solid transparent; color: var(--text-faint); font-size: var(--fs-sm); font-weight: 500;
background: transparent; border-top: none; border-left: none; border-right: none; white-space: nowrap;
}
.step-tab .n { font-family: var(--mono); font-size: var(--fs-xs); width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center; }
.step-tab.done .n { background: var(--sev-low-fg); border-color: var(--sev-low-fg); color: var(--term-fg-bright); }
.step-tab.done .n::before { content: "✓"; }
.step-tab.active { color: var(--text); border-bottom-color: var(--accent); }
.step-tab.active .n { border-color: var(--accent); color: var(--accent); }
.step-tab:disabled { cursor: default; }
.wizard-body { flex: 1; overflow-y: auto; padding: var(--sp-6) var(--sp-5) var(--sp-8); }
.wizard-panel { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--sp-6); }
.wizard-panel-wide { max-width: none; gap: var(--sp-4); }
.wizard-panel[hidden] { display: none; }
.lead-tip { margin-top: calc(-1 * var(--sp-2)); }
.cat-match { font-size: var(--fs-2xs); color: var(--accent); font-family: var(--mono); }
.footer-actions { display: flex; gap: var(--sp-2); }
.field-group { display: flex; flex-direction: column; gap: var(--sp-2); }
.field-group + .field-group { margin-top: var(--sp-5); }
.field-label { font-size: var(--fs-xs); font-weight: 600; text-transform: none; color: var(--text-faint); }
.field-help { font-size: var(--fs-xs); color: var(--text-faint); }
.field-error { font-size: var(--fs-xs); color: var(--sev-critical-fg); font-weight: 500; }
.field-error::before { content: "⚠ "; }
.field-error:empty { display: none; }
.field-group:has(.field-error:not([hidden])) input,
.field-group:has(.field-error:not([hidden])) textarea { border-color: var(--sev-critical-fg); }
.field-row { display: flex; gap: var(--sp-4); flex-wrap: wrap; align-items: flex-start; }
.field-row > * { flex: 1; min-width: 160px; }
/* inside a row the groups sit side by side — the stacked-group top margin would
push every group after the first one down and misalign the controls */
.field-row > .field-group + .field-group { margin-top: 0; }
.section-title { font-size: var(--fs-base); font-weight: 600; }
.section-desc { font-size: var(--fs-sm); color: var(--text-dim); margin-top: 2px; }
input[type="text"], input[type="number"], input[type="password"], select, textarea {
border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 8px 10px;
background: var(--surface); color: var(--text); width: 100%;
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
border-color: var(--accent); outline: none;
box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}
textarea { resize: vertical; min-height: 72px; }
.narrow { max-width: 120px; }
.mode-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--sp-3); }
.mode-tile {
border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: var(--sp-3) var(--sp-3);
background: var(--surface); text-align: left; display: flex; flex-direction: column; gap: 2px;
}
.mode-tile .t { font-weight: 600; font-size: var(--fs-sm); }
.mode-tile .d { font-size: var(--fs-xs); color: var(--text-faint); }
.mode-tile:hover { border-color: var(--text-dim); }
.mode-tile.selected { border-color: var(--accent); background: var(--accent-soft); }
.auth-mode-toggle { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; }
.auth-mode-toggle button { border: none; background: var(--surface); padding: 8px 14px; font-size: var(--fs-sm); color: var(--text-dim); }
.auth-mode-toggle button.selected { background: var(--accent); color: var(--accent-contrast); font-weight: 600; }
.auth-mode-toggle button:disabled { opacity: .45; cursor: not-allowed; }
.auth-mode-toggle.mini button { padding: 4px 10px; font-size: 12px; }
.extra-model-row { align-items: center; }
.extra-model-row select { min-width: 120px; }
.extra-model-remove { padding: 2px 8px; line-height: 1; align-self: center; }
.check-row { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--text-dim); }
.check-row input[type="checkbox"] {
appearance: none; -webkit-appearance: none; width: 36px; height: 20px; flex-shrink: 0;
border-radius: 10px; background: var(--border-strong); position: relative; cursor: pointer; transition: background .2s;
}
.check-row input[type="checkbox"]::after {
content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
border-radius: 50%; background: #fff; transition: transform .2s;
}
.check-row input[type="checkbox"]:checked { background: var(--accent); }
.check-row input[type="checkbox"]:checked::after { transform: translateX(16px); }
/* a column of full-width checkbox rows (no squeezing into flex columns) */
.check-col { display: flex; flex-direction: column; gap: 4px; margin-bottom: var(--sp-4); }
.check-col .check-row { align-items: flex-start; }
.check-col .check-help { margin: 0 0 var(--sp-2) 26px; }
/* segmented tabs (lead modal mode) */
.seg-tabs { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 14px; }
.seg-tab { background: var(--surface); border: none; padding: 6px 14px; font: inherit; font-size: var(--fs-sm); color: var(--text-dim); cursor: pointer; }
.seg-tab + .seg-tab { border-left: 1px solid var(--border); }
.seg-tab.active { background: var(--accent); color: #fff; }
/* remove a custom lead from the board */
.agent-remove { margin-left: auto; background: none; border: none; color: var(--text-faint); cursor: pointer; font-size: var(--fs-sm); padding: 0 4px; border-radius: var(--radius-xs); }
.agent-remove:hover { color: var(--sev-critical-fg); background: var(--sev-critical-bg); }
.role-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.role-row { display: flex; gap: var(--sp-2); align-items: center; }
.role-row input { flex: 1; }
.role-row input.role-name { max-width: 140px; flex: none; }
/* leads step reuses category cards */
.lead-toolbar { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.search-wrap { position: relative; flex: 1; min-width: 200px; max-width: 320px; }
.search-icon { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); color: var(--text-faint); font-size: var(--fs-lg); line-height: 1; pointer-events: none; }
.search-wrap input { padding-left: 28px; }
.chips { display: flex; gap: var(--sp-2); }
.chip { border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-dim); border-radius: var(--radius-sm); padding: 6px 10px; font-size: var(--fs-xs); display: flex; gap: 5px; }
.chip span { color: var(--text-faint); font-family: var(--mono); }
.chip-active { border-color: var(--accent); color: var(--accent); }
.chip-active span { color: var(--accent); }
.categories { display: flex; flex-direction: column; gap: var(--sp-2); }
.cat-card { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.cat-head { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-3); cursor: pointer; background: var(--surface); }
.cat-head .cat-name { font-weight: 600; font-size: var(--fs-sm); flex: 1; }
.cat-head .cat-count { font-size: var(--fs-xs); color: var(--text-faint); font-family: var(--mono); }
.cat-head .caret { font-size: var(--fs-sm); line-height: 1; color: var(--text-faint); transition: transform var(--t-base); }
.cat-card.collapsed .caret { transform: rotate(-90deg); }
.cat-card.collapsed .agent-rows { display: none; }
.agent-rows { border-top: 1px solid var(--border); background: var(--surface-2); }
.agent-row { display: flex; align-items: center; gap: var(--sp-3); padding: 7px var(--sp-3); border-bottom: 1px solid var(--border); font-size: var(--fs-sm); }
.agent-row:last-child { border-bottom: none; }
.agent-row.hidden-by-search { display: none; }
.agent-row .agent-title { flex: 1; }
.agent-row .agent-cwe { font-size: var(--fs-2xs); color: var(--text-faint); font-family: var(--mono); }
.switch { position: relative; width: 30px; height: 17px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; background: var(--border-strong); border-radius: var(--radius-pill); transition: background var(--t-base); }
.switch .thumb { position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--surface); transition: transform var(--t-base); box-shadow: var(--shadow-sm); }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track + .thumb { transform: translateX(13px); }
/* partial selection (some agents on, not all) — reads as "partial", not "off" */
.switch input:indeterminate + .track { background: var(--border-strong); }
.switch input:indeterminate + .track + .thumb { transform: translateX(7px); background: var(--accent); }
.custom-leads { display: flex; flex-direction: column; gap: var(--sp-2); }
.custom-lead-chip { display: flex; align-items: center; gap: var(--sp-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px var(--sp-3); font-size: var(--fs-sm); background: var(--surface-2); }
.custom-lead-chip .x { margin-left: auto; color: var(--text-faint); }
.custom-lead-chip .x:hover { color: var(--sev-critical-fg); }
.wizard-footer {
display: flex; align-items: center; justify-content: space-between; padding: var(--sp-4) var(--sp-5);
border-top: 1px solid var(--border); background: var(--surface);
}
.summary-line { font-size: var(--fs-xs); color: var(--text-faint); }
.summary-line b { color: var(--text); font-weight: 600; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--sp-4); }
.review-item { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: var(--sp-3); }
.review-item .k { font-size: var(--fs-xs); text-transform: none; color: var(--text-faint); }
.review-item .v { font-size: var(--fs-base); margin-top: 3px; font-weight: 500; }
.review-item .v.mono { font-family: var(--mono); font-size: var(--fs-sm); }
/* ============================================================ Live run / detail */
.runpage { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.runpage[hidden] { display: none; }
.run-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-5) var(--sp-5) var(--sp-4); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
/* The header is a title plus a row of buttons. Without a flex basis the
buttons win the width fight and the title wraps one character per line —
which is exactly what happened at 390px. */
.run-head-main { flex: 1 1 260px; }
.run-actions { flex: 0 0 auto; flex-wrap: wrap; }
.run-head-main { min-width: 0; }
.run-target { font-size: var(--fs-lg); font-weight: 600; font-family: var(--mono); overflow-wrap: anywhere; }
.run-meta { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-1); font-size: var(--fs-sm); color: var(--text-dim); font-family: var(--mono); }
/* Pinned-leads line: never let a /run with hundreds of pinned agents flood the
header and push the tabs below the fold. Collapsed by default (JS truncates
to a preview + count); clicking expands it, capped so it still scrolls. */
#livePinned { display: block; line-height: 1.5; }
#livePinned.expandable { cursor: pointer; }
#livePinned.expandable:hover { color: var(--text); }
#livePinned { max-height: 4.5em; overflow-y: auto; }
#liveTargetSub:empty, #detailTargetSub:empty { display: none; }
.run-facts { flex-wrap: wrap; font-size: var(--fs-xs); color: var(--text-faint); }
.run-facts span:not(:last-child)::after { content: " ·"; }
.phase-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.4s infinite; }
.phase-dot.static { animation: none; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }
.run-actions { display: flex; gap: var(--sp-2); }
.progress-wrap { display: flex; align-items: center; gap: var(--sp-3); padding: 0 var(--sp-5) var(--sp-4); }
.progress-bar { flex: 1; height: 6px; border-radius: var(--radius-pill); background: var(--surface-3); border: 1px solid var(--border); overflow: hidden; }
.progress-fill { height: 100%; width: 0%; background: var(--accent); transition: width .3s; }
/* agent count unknown yet (still reconning) — slide a segment instead of
sitting at a static, easy-to-miss 0% fill */
.progress-bar.indeterminate .progress-fill { width: 30% !important; animation: progress-indeterminate 1.3s infinite linear; }
@keyframes progress-indeterminate { 0% { margin-left: -30%; } 100% { margin-left: 100%; } }
.progress-label { font-size: var(--fs-xs); color: var(--text-faint); font-family: var(--mono); white-space: nowrap; }
.run-tabs { display: flex; gap: var(--sp-1); padding: 0 var(--sp-5); border-bottom: 1px solid var(--border); }
.run-tab { padding: var(--sp-3) var(--sp-3); font-size: var(--fs-sm); font-weight: 500; color: var(--text-faint); border-bottom: 2px solid transparent; background: none; border-top: none; border-left: none; border-right: none; }
.run-tab.active { color: var(--text); border-bottom-color: var(--accent); }
.run-body { flex: 1; overflow-y: auto; padding: var(--sp-5); }
.run-tab-panel[hidden] { display: none; }
/* findings table */
/* Wide tables scroll inside their own box; without this the whole page
scrolled sideways below ~900px and the last columns were unreachable. */
.table-wrap { overflow-x: auto; }
.findings-toolbar { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-3); }
.sev-summary { display: flex; gap: var(--sp-2); flex-wrap: wrap; align-items: center; }
.sev-pill {
border: 1px solid transparent; border-radius: var(--radius-sm); padding: 3px 9px;
font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
}
.sev-pill b { font-family: var(--mono); font-weight: 700; }
.sev-pill.picked { outline: 2px solid var(--focus-ring); outline-offset: 1px; }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 720px; }
/* Sticky header: a 27-row findings table scrolls past its own column labels,
and severity/confidence are unreadable without them. */
.data-table th { position: sticky; top: 0; z-index: 1; background: var(--bg); text-align: left; font-size: var(--fs-xs); text-transform: none; color: var(--text-faint); font-weight: 600; padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--border-strong); white-space: nowrap; cursor: pointer; user-select: none; }
.data-table th:hover { color: var(--text); }
.data-table th.sorted { color: var(--accent); }
.data-table th.sorted[data-dir="asc"]::after { content: " ↓"; }
.data-table th.sorted[data-dir="desc"]::after { content: " ↑"; }
.data-table td { padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--border); vertical-align: top; }
.data-table tbody tr { cursor: pointer; }
.data-table tbody tr:hover { background: var(--surface-2); }
/* Numbered, pasteable steps — the proof a reader can check without trusting
the report. */
.poc-steps { margin: var(--sp-2) 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: var(--sp-2); }
.poc-steps li { font-size: var(--fs-sm); color: var(--text-dim); }
.poc-steps .step {
margin: 4px 0 0; background: var(--surface-2); border: 1px solid var(--border);
border-radius: var(--radius-sm); padding: var(--sp-2) var(--sp-3);
font-family: var(--mono); font-size: var(--fs-xs); color: var(--text);
white-space: pre-wrap; overflow-wrap: anywhere;
}
.poc-file { display: flex; align-items: center; gap: var(--sp-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: var(--sp-2) var(--sp-3); margin-bottom: var(--sp-2); }
.poc-file .fn { font-family: var(--mono); font-size: var(--fs-sm); flex: 1; }
.poc-pre { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: var(--sp-3); font-family: var(--mono); font-size: var(--fs-xs); max-height: 320px; overflow: auto; white-space: pre-wrap; word-break: break-word; margin-top: var(--sp-2); }
/* Script card — collapsible PoC scripts with header bar */
.script-card { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: var(--sp-3); overflow: hidden; }
.script-card-head { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-3); background: var(--surface-2); cursor: pointer; user-select: none; }
.script-card-head:hover { background: var(--surface-3, var(--surface-2)); }
.script-card-head .script-icon { font-size: var(--fs-xs); color: var(--text-faint); transition: transform .15s; }
.script-card-head[aria-expanded="true"] .script-icon { transform: rotate(90deg); }
.script-card-head .script-name { flex: 1; font-family: var(--mono); font-size: var(--fs-sm); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.script-card-head .script-lang { font-size: var(--fs-2xs); color: var(--text-faint); text-transform: uppercase; letter-spacing: .04em; padding: 1px 6px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.script-card-actions { display: flex; gap: var(--sp-1); margin-left: auto; }
.script-card-body { display: none; }
.script-card-body.open { display: block; }
.script-card-body .poc-pre { margin: 0; border: none; border-top: 1px solid var(--border); border-radius: 0; max-height: 400px; }
/* Copy button inside code blocks */
.code-wrap { position: relative; }
.code-wrap .copy-btn { position: absolute; top: var(--sp-2); right: var(--sp-2); font-size: var(--fs-2xs); padding: 2px 8px; opacity: 0; transition: opacity .15s; }
.code-wrap:hover .copy-btn { opacity: 1; }
/* PoC steps improvements */
.poc-steps li { position: relative; }
.poc-steps .step-wrap { position: relative; }
.poc-steps .step-wrap .copy-btn { position: absolute; top: 4px; right: 4px; font-size: var(--fs-2xs); padding: 2px 8px; opacity: 0; transition: opacity .15s; }
.poc-steps .step-wrap:hover .copy-btn { opacity: 1; }
/* Evidence prose carries raw cookies, tokens and URLs — single "words" wider
than the modal. Without a break they run under the modal's edge and the
tail of the value is simply unreadable. */
.fm-prose { font-family: var(--sans); font-size: var(--fs-sm); line-height: 1.6; color: var(--text-dim); white-space: pre-wrap; overflow-wrap: anywhere; padding: var(--sp-1) 0; }
.review-item .v { overflow-wrap: anywhere; }
.data-table .col-endpoint { font-family: var(--mono); font-size: var(--fs-xs); color: var(--text-dim); max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.data-table .col-conf { font-family: var(--mono); text-align: right; }
.empty-state { padding: var(--sp-7) var(--sp-5); text-align: center; color: var(--text-faint); font-size: var(--fs-sm); }
.sev { font-size: var(--fs-2xs); font-weight: 700; text-transform: uppercase; padding: 3px 8px; border-radius: var(--radius-sm); letter-spacing: .02em; white-space: nowrap; }
.sev-critical { background: var(--sev-critical-bg); color: var(--sev-critical-fg); }
.sev-high { background: var(--sev-high-bg); color: var(--sev-high-fg); }
.sev-medium { background: var(--sev-medium-bg); color: var(--sev-medium-fg); }
.sev-low { background: var(--sev-low-bg); color: var(--sev-low-fg); }
.sev-info { background: var(--sev-info-bg); color: var(--sev-info-fg); }
.log-panel { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); max-height: 100%; overflow-y: auto; padding: var(--sp-3); }
.log-line { font-family: var(--mono); font-size: var(--fs-xs); color: var(--text-dim); padding: 1px 0; white-space: pre-wrap; word-break: break-word; }
.log-tab-panel { display: flex; flex-direction: column; height: 100%; gap: var(--sp-2); }
.log-tab-panel .log-panel { flex: 1; }
.send-prompt-row { display: flex; align-items: center; gap: var(--sp-2); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: var(--sp-2) var(--sp-3); background: var(--surface); }
.send-prompt-row .repl-prompt { color: var(--accent); font-family: var(--mono); }
#sendPromptInput { flex: 1; border: none; background: transparent; font-family: var(--mono); font-size: var(--fs-sm); outline: none; color: var(--text); }
.log-echo { color: var(--accent); }
/* ============================================================ Modal (Auth & Keys) */
.modal-overlay { position: fixed; inset: 0; background: var(--overlay-scrim); display: flex; align-items: center; justify-content: center; z-index: var(--z-modal); }
.modal-overlay[hidden] { display: none; }
.modal { width: 620px; max-width: calc(100vw - 40px); max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-float); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); }
.modal-sm { width: 520px; }
.modal-lg { width: 960px; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); }
@media (max-width: 1000px) { .modal-lg { width: calc(100vw - 32px); } }
.modal-foot { display: flex; justify-content: flex-end; gap: var(--sp-2); padding: var(--sp-3) var(--sp-5); border-top: 1px solid var(--border); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--border); }
.modal-head .title { font-size: var(--fs-lg); font-weight: 600; }
.modal-head .modal-sub { display: block; font-size: var(--fs-xs); font-weight: 400; color: var(--text-faint); margin-top: 2px; }
.modal-tabs { display: flex; gap: var(--sp-1); padding: 0 var(--sp-5); border-bottom: 1px solid var(--border); }
.modal-tab { padding: var(--sp-3) var(--sp-2); font-size: var(--fs-sm); font-weight: 500; color: var(--text-faint); border-bottom: 2px solid transparent; background: none; border-top: none; border-left: none; border-right: none; }
.modal-tab.active { color: var(--text); border-bottom-color: var(--accent); }
.modal-body { padding: var(--sp-5); overflow-y: auto; flex: 1; }
.modal-panel[hidden] { display: none; }
.field-status { font-size: var(--fs-xs); font-family: var(--mono); color: var(--text-faint); overflow-wrap: anywhere; }
.field-status.ok { color: var(--sev-low-fg); }
.field-status.bad { color: var(--sev-critical-fg); }
.provider-row { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-3) 0; border-bottom: 1px solid var(--border); }
.provider-row:last-child { border-bottom: none; }
.provider-row .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); flex: none; }
.provider-row .dot.set { background: var(--sev-low-fg); }
.provider-row .p-name { flex: none; width: 160px; font-size: var(--fs-sm); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.provider-row .p-kind { flex: none; width: 64px; font-size: var(--fs-xs); text-transform: none; color: var(--text-faint); font-family: var(--mono); }
.provider-row input { flex: 1; min-width: 0; }
.provider-row .btn { flex: none; }
.key-verify { flex: none; font-size: var(--fs-2xs); font-weight: 700; min-width: 60px; }
.key-verify.ok { color: var(--sev-low-fg); }
.key-verify.bad { color: var(--sev-critical-fg); }
.key-verify.unknown { color: var(--text-faint); font-weight: 500; }
.key-verify.checking { color: var(--text-dim); font-weight: 500; }
.integ-validation { margin-top: var(--sp-3); padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-sm); font-size: var(--fs-sm); font-weight: 600; }
.integ-validation.ok { color: var(--sev-low-fg); background: rgba(46,204,113,.08); border: 1px solid rgba(46,204,113,.2); }
.integ-validation.bad { color: var(--sev-critical-fg); background: rgba(231,76,60,.08); border: 1px solid rgba(231,76,60,.2); }
.integ-validation.checking { color: var(--text-dim); font-weight: 500; }
/* floating config popover for provider keys */
.provider-popover { position: absolute; top: calc(100% + 4px); right: 0; z-index: var(--z-overlay); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-md); box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: var(--sp-4); min-width: 340px; max-width: 420px; }
.provider-popover .pop-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-3); }
.provider-popover .pop-title { font-size: var(--fs-base); font-weight: 600; }
.provider-popover .pop-close { background: none; border: none; cursor: pointer; color: var(--text-dim); font-size: 16px; padding: 2px 6px; border-radius: var(--radius-xs); }
.provider-popover .pop-close:hover { background: var(--surface-3); }
.provider-popover .pop-body { display: flex; flex-direction: column; gap: var(--sp-3); }
.provider-popover .pop-body input { font-family: var(--mono); font-size: var(--fs-sm); width: 100%; }
.provider-popover .pop-actions { display: flex; gap: var(--sp-2); align-items: center; }
.provider-popover .pop-verify { font-size: var(--fs-2xs); font-weight: 700; }
/* ============================================================ Terminal dock
Docked, not floating: it is a flex child of .main, so opening it shortens
the view above instead of covering the primary action the way the old
floating drawer covered "Next →" and "Start Exploitation". */
.term-dock {
/* A fixed 320px dock eats 82% of a phone in landscape. Track the viewport
and keep a floor that still shows a usable number of rows. */
position: relative; flex: none; height: clamp(180px, 42dvh, 340px); min-height: 140px;
display: flex; flex-direction: column; overflow: hidden;
background: var(--term-bg); color: var(--term-fg); border-top: 1px solid var(--border-strong);
}
.term-dock[hidden] { display: none; }
.term-dock.expanded { flex: 1; height: auto; }
.term-resize { position: absolute; top: 0; left: 0; right: 0; height: 6px; cursor: ns-resize; z-index: 2; touch-action: none; }
.term-resize:hover { background: var(--accent); opacity: .5; }
body.resizing-ns { user-select: none; cursor: ns-resize; }
.term-head {
display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-3); flex-wrap: wrap;
background: var(--term-fill); border-bottom: 1px solid var(--term-line);
font-size: var(--fs-xs); color: var(--term-fg-dim);
}
.term-head .icon-btn { color: var(--term-fg-dim); }
.term-head .icon-btn:hover { background: var(--term-hover); border-color: transparent; color: var(--term-fg-bright); }
.term-title { font-weight: 600; color: var(--term-title); }
.term-target {
width: auto; max-width: 260px; background: var(--term-fill); color: var(--term-title);
border: 1px solid var(--term-line); border-radius: var(--radius-sm); padding: 3px 6px; font-size: var(--fs-xs);
}
.term-status { font-family: var(--mono); font-size: var(--fs-xs); color: var(--term-fg-faint); }
.term-btn {
background: transparent; border: 1px solid var(--term-line); color: var(--term-fg-dim);
border-radius: var(--radius-sm); padding: 3px 8px; font-size: var(--fs-xs);
}
.term-btn:hover { background: var(--term-hover); color: var(--term-fg-bright); }
.term-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--term-dot); flex: none; }
.term-dot[data-state="on"] { background: var(--sev-low-fg); }
.term-dot[data-state="pending"] { background: var(--accent); animation: pulse 1.4s infinite; }
.term-dot[data-state="error"] { background: var(--sev-critical-fg); }
.term-alert { padding: var(--sp-2) var(--sp-3); font-size: var(--fs-xs); background: var(--sev-high-bg); color: var(--sev-high-fg); }
.term-alert[data-kind="error"] { background: var(--sev-critical-bg); color: var(--sev-critical-fg); }
.term-host { flex: 1; min-height: 0; padding: var(--sp-2) var(--sp-3) 0; }
.term-host .xterm { height: 100%; }
.term-hints { padding: 4px var(--sp-3) var(--sp-2); font-size: var(--fs-2xs); color: var(--term-fg-faint); display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.term-hints .k { font-family: var(--mono); color: var(--term-fg-dim); }
/* ============================================================ Toasts */
.toasts { position: fixed; right: var(--sp-5); bottom: var(--sp-5); z-index: var(--z-toast); display: flex; flex-direction: column; gap: var(--sp-2); max-width: 380px; }
.toast {
border: 1px solid var(--border-strong); border-left-width: 3px; border-radius: var(--radius-sm);
background: var(--surface); color: var(--text); padding: var(--sp-3) var(--sp-4); font-size: var(--fs-sm);
box-shadow: var(--shadow-float); cursor: pointer;
}
.toast-ok { border-left-color: var(--sev-low-fg); }
.toast-warn { border-left-color: var(--sev-high-fg); }
.toast-error { border-left-color: var(--sev-critical-fg); }
.toast-info { border-left-color: var(--accent); }
/* ============================================================ Responsive */
.sidebar-scrim {
display: none; position: fixed; inset: 0; z-index: var(--z-overlay); background: var(--overlay-scrim);
}
.sidebar-scrim[hidden] { display: none !important; }
.sidebar-toggle {
display: none; position: fixed; left: 10px; top: 10px; z-index: var(--z-modal);
width: 32px; height: 32px; border-radius: var(--radius-sm);
border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
}
/* Wide screens: line length, not width, is the constraint — a findings table
stretched across 2560px is harder to read, not easier. */
@media (min-width: 1600px) {
.dash-body > *, .run-body > * { max-width: 1500px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 1200px) {
.sidebar { width: 216px; }
}
/* Tablet portrait and small laptops: the sidebar is the first thing to go,
because the main pane is where the work happens. */
@media (max-width: 900px) {
.sidebar-toggle { display: block; }
.sidebar {
position: fixed; left: -280px; top: 0; bottom: 0; width: min(280px, 82vw); z-index: var(--z-modal);
transition: left .2s ease; box-shadow: var(--shadow-float);
}
.sidebar.open { left: 0; }
/* Tapping the page behind an open drawer must close it — otherwise the only
way out is the same small button that opened it. */
.sidebar-scrim { display: block; }
.topbar, .run-head { padding-left: 56px; }
.field-row { flex-direction: column; }
.review-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}
@media (max-width: 680px) {
.topbar { flex-wrap: wrap; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4) var(--sp-3) 56px; }
.topbar-sub { display: none; }
.run-head { flex-direction: column; padding: var(--sp-4) var(--sp-4) var(--sp-3) 56px; }
/* In the column layout the title block must size to its content — the
desktop `flex: 1` made it grow and pushed the buttons to the bottom of a
tall empty header. */
.run-head-main { flex: 0 0 auto; width: 100%; }
.run-actions { width: 100%; }
.run-actions .btn { flex: 1 1 auto; justify-content: center; }
.run-facts { display: block; }
.run-facts span { display: inline; }
.wizard-body, .run-body, .dash-body { padding: var(--sp-4) var(--sp-3) var(--sp-6); }
.wizard-panel { gap: var(--sp-4); }
.modal { width: calc(100vw - 16px); max-width: none; max-height: calc(100dvh - 32px); }
.modal-body, .modal-head, .modal-tabs, .modal-foot { padding-left: var(--sp-4); padding-right: var(--sp-4); }
.review-grid, .dash-grid, .stat-row { grid-template-columns: 1fr; }
.data-table { min-width: 560px; }
.lead-toolbar .btn { flex: 1 1 auto; justify-content: center; }
.search-wrap { max-width: none; }
.term-status { display: none; }
.term-target { max-width: 150px; }
.bar-row { grid-template-columns: 76px 1fr 34px; }
}
@media (max-width: 480px) {
.stepper { padding: 0 var(--sp-2); }
.step-tab { padding: var(--sp-3) var(--sp-2) var(--sp-2); }
.wizard-footer { flex-direction: column; align-items: stretch; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); }
.footer-actions .btn { flex: 1 1 auto; justify-content: center; }
.mode-tiles { grid-template-columns: 1fr 1fr; }
.fair-likely .v { font-size: var(--fs-2xl); }
.stat-v { font-size: var(--fs-2xl); }
}
/* Phone in landscape: ~390px of height, most of it browser chrome. Anything
with a fixed vertical share has to shrink or the content disappears. */
@media (max-height: 500px) and (orientation: landscape) {
.topbar, .run-head { padding-top: var(--sp-2); padding-bottom: var(--sp-2); min-height: 0; }
.term-dock { height: clamp(120px, 46dvh, 220px); }
.term-hints { display: none; }
}
/* Touch devices: a 26px button is a miss target, and iOS zooms the whole page
when a focused input is under 16px — which then breaks the layout the user
was typing into. */
@media (pointer: coarse) {
.icon-btn { width: 38px; height: 38px; }
.btn { min-height: 40px; }
.btn-sm { min-height: 34px; }
.sb-run { padding: var(--sp-3) var(--sp-2); }
.run-tab, .step-tab, .modal-tab { min-height: 44px; }
input[type="text"], input[type="number"], input[type="password"], select, textarea { font-size: var(--fs-lg); }
.switch { width: 38px; height: 22px; }
.switch .thumb { width: 18px; height: 18px; }
.switch input:checked + .track + .thumb { transform: translateX(16px); }
.switch input:indeterminate + .track + .thumb { transform: translateX(8px); }
}
/* Respect a reduced-motion preference: the drawer slide and the progress
animation are decoration, not information. */
@media (prefers-reduced-motion: reduce) {
* { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
/* Scoping/Guardrails UI accents */
.pill { display:inline-block; padding:1px 7px; border-radius: var(--radius-pill); background:var(--sev-medium-bg); color:var(--sev-medium-fg); font-weight:600; letter-spacing:.02em; }
.req { color:var(--text-dim); font-weight:400; font-size:.9em; }
/* Interrupted-run resume banner (web persistence). */
.resume-bar { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) var(--sp-4); background: var(--accent-soft); border-bottom: 1px solid var(--border-strong); font-size: var(--fs-sm); color: var(--text); z-index: var(--z-header); }
.resume-bar .resume-ico { color: var(--accent); font-weight: 700; }
.resume-bar .resume-text { flex: 1; min-width: 0; }
.resume-bar .resume-actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.resume-bar .resume-x { background: transparent; border: none; color: var(--text-dim); cursor: pointer; font-size: var(--fs-sm); padding: 2px 6px; border-radius: var(--radius-xs); }
.resume-bar .resume-x:hover { background: var(--surface-3); color: var(--text); }
/* Live "what's being tested" agent panel. */
.agent-panel { margin: 0 var(--sp-5) var(--sp-3); border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.agent-panel-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-2) var(--sp-3); font-size: var(--fs-xs); font-weight: 600; color: var(--text-dim); border-bottom: 1px solid var(--border); background: var(--surface-2); }
.agent-legend { display: flex; align-items: center; gap: var(--sp-2); font-weight: 400; color: var(--text-faint); }
.agent-legend .ap { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 3px; vertical-align: middle; }
.ap.running { background: var(--accent); } .ap.done { background: var(--text-faint); } .ap.found { background: var(--sev-high-fg); } .ap.failed { background: var(--sev-critical-fg); }
.agent-grid { display: flex; flex-wrap: wrap; gap: 5px; padding: var(--sp-3); max-height: 180px; overflow-y: auto; }
.agent-chip { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: var(--fs-2xs); padding: 2px 7px; border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--surface-2); color: var(--text-dim); white-space: nowrap; }
.agent-chip b { background: var(--sev-high-bg); color: var(--sev-high-fg); border-radius: var(--radius-pill); padding: 0 5px; font-size: 9px; }
.agent-chip.ap-running { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.agent-chip.ap-found { border-color: var(--sev-high-fg); color: var(--sev-high-fg); }
.agent-chip.ap-done { opacity: .6; }
.agent-chip.ap-failed { border-color: var(--sev-critical-fg); color: var(--sev-critical-fg); text-decoration: line-through; }
.agent-chip .spin { width: 7px; height: 7px; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: aspin .7s linear infinite; }
@keyframes aspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .agent-chip .spin { animation: none; } }
/* tab dot — animated indicator for tabs with live data */
.tab-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin-right: 4px; vertical-align: middle; background: transparent; }
.tab-dot.live { background: var(--accent); animation: pulse 1.4s infinite; }
.tab-badge { font-family: var(--mono); font-size: var(--fs-2xs); background: var(--surface-3); border-radius: var(--radius-pill); padding: 0 6px; margin-left: 4px; }
.run-tab.active .tab-badge { background: var(--accent-soft); color: var(--accent); }
/* Agents tab panel */
.agents-tab-head { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.agents-tab-stats { display: flex; gap: var(--sp-4); flex-wrap: wrap; }
.agents-tab-stats .at-stat { display: flex; flex-direction: column; }
.agents-tab-stats .at-stat-k { font-size: var(--fs-xs); text-transform: none; color: var(--text-faint); font-weight: 600; }
.agents-tab-stats .at-stat-v { font-size: var(--fs-xl); font-weight: 700; font-variant-numeric: tabular-nums; }
.agents-tab-grid { display: flex; flex-direction: column; gap: 6px; }
.at-card { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); transition: border-color var(--t-fast); }
.at-card:hover { border-color: var(--border-strong); }
.at-card-status { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.at-card-status.running { background: var(--accent); animation: pulse 1.4s infinite; }
.at-card-status.done { background: var(--text-faint); }
.at-card-status.found { background: var(--sev-high-fg); }
.at-card-status.failed { background: var(--sev-critical-fg); }
.at-card-status.pending { background: var(--border-strong); }
.at-card-name { flex: 1; font-size: var(--fs-sm); font-weight: 500; font-family: var(--mono); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.at-card-name.running { color: var(--accent); }
.at-card-name.failed { color: var(--sev-critical-fg); text-decoration: line-through; }
.at-card-state { font-size: var(--fs-xs); text-transform: none; font-weight: 600; color: var(--text-faint); width: 64px; flex: none; }
.at-card-state.running { color: var(--accent); }
.at-card-findings { font-size: var(--fs-sm); font-family: var(--mono); font-weight: 600; color: var(--sev-high-fg); min-width: 24px; text-align: right; }
/* Coverage tab panel */
.coverage-head { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.coverage-stats { display: flex; gap: var(--sp-4); flex-wrap: wrap; }
.coverage-stats .at-stat { display: flex; flex-direction: column; }
.coverage-stats .at-stat-k { font-size: var(--fs-xs); text-transform: none; color: var(--text-faint); font-weight: 600; }
.coverage-stats .at-stat-v { font-size: var(--fs-xl); font-weight: 700; font-variant-numeric: tabular-nums; }
.coverage-list { display: flex; flex-direction: column; gap: 2px; }
.cv-row { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) var(--sp-3); border: 1px solid var(--border); border-radius: var(--radius-xs); background: var(--surface); font-size: var(--fs-sm); }
.cv-row:hover { border-color: var(--border-strong); }
.cv-method { font-family: var(--mono); font-size: var(--fs-2xs); font-weight: 700; width: 50px; flex: none; text-align: center; }
.cv-method.m-get { color: var(--sev-low-fg); }
.cv-method.m-post { color: var(--accent); }
.cv-method.m-put, .cv-method.m-patch { color: var(--sev-medium-fg); }
.cv-method.m-delete { color: var(--sev-critical-fg); }
.cv-path { flex: 1; font-family: var(--mono); font-size: var(--fs-xs); color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cv-status-badge { font-size: var(--fs-2xs); font-weight: 600; padding: 1px 7px; border-radius: var(--radius-pill); white-space: nowrap; }
.cv-status-badge.tested { background: var(--sev-low-bg); color: var(--sev-low-fg); }
.cv-status-badge.untested { background: var(--surface-3); color: var(--text-faint); }
.cv-status-badge.found { background: var(--sev-high-bg); color: var(--sev-high-fg); }
.cv-agent { font-size: var(--fs-2xs); color: var(--text-faint); width: 100px; flex: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.cv-status-code { font-family: var(--mono); font-size: var(--fs-2xs); font-weight: 700; width: 32px; flex: none; text-align: center; }
.cv-status-code.s-2 { color: var(--sev-low-fg); }
.cv-status-code.s-3 { color: var(--sev-info-fg); }
.cv-status-code.s-4 { color: var(--sev-medium-fg); }
.cv-status-code.s-5 { color: var(--sev-critical-fg); }
/* ---------------------------------------------------------------------------
Run detail — attack graph, dependencies, traffic, traces, deliverables.
Ideas from autonomous-pentest consoles (KPI cards, typed node graph, traffic
table), built on this console's own tokens so both themes work.
------------------------------------------------------------------------- */
.muted { color: var(--text-faint); font-size: var(--fs-xs); }
.panel-toolbar { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-3); }
.panel-help { color: var(--text-dim); font-size: var(--fs-sm); margin: 0 0 var(--sp-3); max-width: 900px; }
.chip-row { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.input-sm { padding: 6px 10px; font-size: var(--fs-sm); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); }
.toggle { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--text-dim); }
/* KPI cards above the findings table */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--sp-3); margin: var(--sp-3) 0; }
.kpi { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-md); padding: var(--sp-3) var(--sp-4); }
.kpi-k { font-size: var(--fs-xs); text-transform: none; color: var(--text-faint); font-weight: 600; }
.kpi-v { font-size: var(--fs-2xl); font-weight: 700; font-family: var(--mono); margin: 2px 0; }
.kpi-sub { font-size: var(--fs-xs); color: var(--text-dim); }
.kpi-ok .kpi-v { color: var(--sev-low-fg); }
.kpi-bad .kpi-v { color: var(--sev-critical-fg); }
/* status + wire badges in the findings table */
.status-badge, .wire-badge, .chain-status, .gm-st { display: inline-block; font-size: var(--fs-2xs); font-weight: 600; padding: 2px 7px; border-radius: var(--radius-pill); border: 1px solid transparent; white-space: nowrap; }
.st-confirmed { background: var(--sev-low-bg); color: var(--sev-low-fg); }
.st-needs-review, .st-needs_review { background: var(--sev-info-bg); color: var(--sev-info-fg); }
.st-needs_validation { background: var(--sev-medium-bg); color: var(--sev-medium-fg); }
.st-hypothesis, .st-candidate { background: var(--surface-3); color: var(--text-dim); }
.st-rejected { background: var(--sev-critical-bg); color: var(--sev-critical-fg); }
.wire-verified { background: var(--sev-low-bg); color: var(--sev-low-fg); }
.wire-contradicted { background: var(--sev-critical-bg); color: var(--sev-critical-fg); }
.wire-unverified, .wire-pending { background: var(--surface-3); color: var(--text-dim); }
.wire-none { background: transparent; color: var(--text-faint); border-color: var(--border); }
/* chains */
.moves { border: 1px solid var(--border); border-left: 3px solid var(--accent); background: var(--surface); border-radius: var(--radius-sm); padding: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-3); }
.moves-h { font-size: var(--fs-xs); text-transform: none; color: var(--accent); font-weight: 700; margin-bottom: 4px; }
.moves ul { margin: 0; padding-left: 18px; font-size: var(--fs-sm); color: var(--text-dim); }
.moves ul li { margin-bottom: 4px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-overflow: ellipsis; }
.chain-ref { display: inline-block; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.chain-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; min-width: 0; }
.chain-impact, .chain-steps .step { overflow-wrap: anywhere; }
.chain-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.chain-card { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); overflow: hidden; }
.chain-card.st-confirmed { border-left: 3px solid var(--sev-low-fg); }
.chain-card.st-needs_validation { border-left: 3px solid var(--sev-medium-fg); }
.chain-card.st-hypothesis { border-left: 3px dashed var(--border-strong); }
.chain-card summary { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); cursor: pointer; flex-wrap: wrap; list-style: none; overflow: hidden; }
.chain-card summary::-webkit-details-marker { display: none; }
.chain-title { font-weight: 600; font-size: var(--fs-base); flex: 1; min-width: 260px; }
.chain-pot { font-size: var(--fs-xs); color: var(--sev-medium-fg); font-weight: 600; }
.chain-meta { font-size: var(--fs-xs); color: var(--text-faint); font-family: var(--mono); white-space: nowrap; flex-shrink: 0; }
.chain-body { padding: 0 var(--sp-4) var(--sp-4); border-top: 1px solid var(--border); overflow: hidden; word-break: break-word; }
.chain-impact { margin: var(--sp-3) 0; font-size: var(--fs-sm); }
.chain-steps { margin: 0 0 var(--sp-3); padding-left: 20px; font-family: var(--mono); font-size: var(--fs-xs); }
.chain-steps .step { padding: 3px 0; color: var(--text-dim); }
.chain-steps .step.st-confirmed { color: var(--sev-low-fg); background: none; }
.chain-steps .step.st-needs_validation { color: var(--sev-medium-fg); background: none; }
.chain-steps .step.st-hypothesis { color: var(--text-faint); background: none; }
.chain-block { margin-top: var(--sp-2); }
.chain-block-h { font-size: var(--fs-xs); text-transform: none; color: var(--text-faint); font-weight: 700; }
.chain-block ul { margin: 4px 0 0; padding-left: 18px; font-size: var(--fs-sm); }
.chain-block li { margin: 3px 0; line-height: 1.5; overflow-wrap: anywhere; }
/* readable chain prose: node refs as chips, relations as labels, meta muted */
.chain-steps { font-family: var(--sans); }
.chain-steps .step { line-height: 1.6; }
.chain-ref { font-family: var(--mono); font-size: 0.92em; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-xs); padding: 0 5px; color: var(--text); white-space: normal; }
.chain-rel { font-family: var(--mono); font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .03em; color: var(--accent); background: var(--accent-soft); border-radius: var(--radius-xs); padding: 0 5px; margin: 0 2px; }
.chain-rel::before { content: ""; }
.chain-note { color: var(--text-faint); font-size: var(--fs-xs); font-family: var(--mono); margin-left: 4px; }
/* dependency todolist */
.todo-chain { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); margin-bottom: var(--sp-3); }
.todo-chain header { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.todo-title { font-weight: 600; flex: 1; min-width: 240px; }
.todo-progress { width: 110px; height: 6px; background: var(--surface-3); border-radius: var(--radius-pill); overflow: hidden; }
.todo-progress span { display: block; height: 100%; background: var(--sev-low-fg); }
.todo-steps { list-style: none; margin: 0; padding: var(--sp-2) var(--sp-4) var(--sp-3); counter-reset: ts; }
.todo-step { display: flex; gap: var(--sp-3); padding: var(--sp-2) 0; border-bottom: 1px dashed var(--border); align-items: flex-start; }
.todo-step:last-child { border-bottom: none; }
.ts-badge { flex: 0 0 120px; font-size: var(--fs-2xs); font-weight: 700; padding: 3px 8px; border-radius: var(--radius-pill); text-align: center; }
.ts-done .ts-badge { background: var(--sev-low-bg); color: var(--sev-low-fg); }
.ts-ready .ts-badge { background: var(--accent-soft); color: var(--accent); }
.ts-blocked .ts-badge { background: var(--surface-3); color: var(--text-faint); }
.ts-blocked .ts-step { color: var(--text-faint); }
.ts-step { font-family: var(--mono); font-size: var(--fs-xs); }
.ts-action { font-size: var(--fs-sm); color: var(--text-dim); margin-top: 2px; }
/* graph (web + internal network) — Wiz-style attack path visualization */
.gm-wrap { position: relative; height: 680px; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; cursor: grab;
background-color: var(--surface);
background-image:
radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 60%),
radial-gradient(var(--border-strong) .8px, transparent .8px);
background-size: 100% 100%, 22px 22px;
box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 0 80px rgba(15,23,42,.04); }
.gm-wrap.dragging { cursor: grabbing; }
.gm-wrap[hidden] { display: none; }
.gm-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.gm-svg { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.gm-e { fill: none; stroke-width: 2.2; opacity: .7; stroke-linecap: round; transition: opacity .15s, stroke-width .15s;
filter: drop-shadow(0 1px 1px rgba(15,23,42,.10)); }
.gm-e.gm-trav { stroke-width: 3; opacity: .9; filter: drop-shadow(0 0 3px color-mix(in srgb, currentColor 35%, transparent)); }
.gm-e.es-confirmed { stroke: #22c55e; }
.gm-e.es-needs_validation { stroke: #f59e0b; stroke-dasharray: 8 5; }
.gm-e.es-hypothesis { stroke: #94a3b8; stroke-dasharray: 2 5; }
.gm-e.es-needs_review { stroke: #38bdf8; stroke-dasharray: 5 4; }
.gm-e:hover { opacity: 1; stroke-width: 4; }
.gm-stage.focusing .gm-e { opacity: .1; }
.gm-stage.focusing .gm-e.hl { opacity: 1; stroke-width: 3; }
/* Circular node — Wiz/Orca style */
.gm-node { position: absolute; display: flex; flex-direction: column; align-items: center; cursor: pointer; user-select: none; }
.gm-node:hover .gm-circle { transform: translateY(-2px) scale(1.06); }
.gm-node.sel .gm-circle { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.gm-circle { width: 64px; height: 64px; border-radius: 50%; border: 3px solid rgba(255,255,255,.9); color: #fff;
display: flex; align-items: center; justify-content: center; position: relative;
transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
box-shadow: 0 8px 22px -6px rgba(15,23,42,.35), 0 0 0 1px rgba(15,23,42,.06); }
.gm-circle::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; opacity: 0; transition: opacity .16s; pointer-events: none;
background: radial-gradient(circle, color-mix(in srgb, currentColor 22%, transparent), transparent 68%); }
.gm-node:hover .gm-circle::after { opacity: 1; }
.gm-circle svg { width: 30px; height: 30px; stroke-width: 1.9; filter: drop-shadow(0 1px 1px rgba(0,0,0,.18)); }
.gm-badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; border-radius: 9px; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; border: 2px solid var(--surface); }
.gm-node-label { font-size: var(--fs-sm); font-weight: 600; color: var(--text); text-align: center; max-width: 176px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 9px; letter-spacing: -.01em; }
.gm-node-info { font-size: 10px; font-family: var(--mono); color: var(--accent); text-align: center; max-width: 176px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; opacity: .85; }
.gm-node-sub { font-size: var(--fs-xs); color: var(--text-faint); text-align: center; max-width: 176px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
/* Kill chain path highlight */
.gm-onpath .gm-circle { box-shadow: 0 0 0 3px #f59e0b, 0 0 18px 4px rgba(245,158,11,.45), 0 8px 22px -6px rgba(15,23,42,.35); }
.gm-onpath .gm-circle::after { opacity: 1; background: radial-gradient(circle, rgba(245,158,11,.3), transparent 68%); }
.gm-onpath .gm-node-label { color: #f59e0b; font-weight: 700; }
.gm-e-onpath { stroke: #f59e0b !important; stroke-width: 4.5 !important; opacity: 1 !important; stroke-dasharray: none !important; filter: drop-shadow(0 0 6px rgba(245,158,11,.5)) !important; }
/* Solid Wiz-style fills by kind (white icon on saturated disc) */
.gk-internet .gm-circle { background: linear-gradient(145deg, #60a5fa, #2563eb); }
.gk-asset .gm-circle { background: linear-gradient(145deg, #38bdf8, #0284c7); }
.gk-surface .gm-circle { background: linear-gradient(145deg, #fbbf24, #ea580c); }
.gk-weak .gm-circle { background: linear-gradient(145deg, #fb7185, #dc2626); }
.gk-step .gm-circle { background: linear-gradient(145deg, #a78bfa, #7c3aed); }
.gk-cred .gm-circle { background: linear-gradient(145deg, #34d399, #059669); }
.gk-impact .gm-circle { background: linear-gradient(145deg, #fb7185, #dc2626); }
.gk-meta .gm-circle { background: linear-gradient(145deg, #94a3b8, #64748b); color: #fff; }
.gk-internet .gm-circle, .gk-asset .gm-circle { color: #fff; }
.gm-sev-badge { position: absolute; top: -2px; left: -2px; font-size: 9px; font-weight: 800; text-transform: uppercase; padding: 1px 5px; border-radius: 8px; }
.gm-leg { font-size: var(--fs-xs); padding: 3px 8px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); color: var(--text-dim); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; transition: opacity .15s, box-shadow .15s; user-select: none; }
.gm-leg:hover { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent); }
.gm-leg:not(.gm-leg-active) { opacity: .35; }
.gm-leg-active { box-shadow: inset 0 0 0 1px var(--accent); }
.gm-leg .gm-leg-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid; }
.gm-leg.gk-internet .gm-leg-dot { border-color: #4da6ff; }
.gm-leg.gk-asset .gm-leg-dot { border-color: #4da6ff; }
.gm-leg.gk-surface .gm-leg-dot { border-color: #f59e0b; }
.gm-leg.gk-weak .gm-leg-dot { border-color: #ef4444; }
.gm-leg.gk-step .gm-leg-dot { border-color: #8b5cf6; }
.gm-leg.gk-cred .gm-leg-dot { border-color: #10b981; }
.gm-leg.gk-impact .gm-leg-dot { border-color: #ef4444; }
.gm-leg-sep { width: 1px; height: 18px; background: var(--border); }
.gm-edge-leg { font-size: var(--fs-xs); color: var(--text-dim); display: inline-flex; align-items: center; gap: 6px; }
.gm-edge-leg::before { content: ""; width: 22px; border-top: 2px solid; }
.gm-edge-leg.es-confirmed::before { border-color: var(--sev-low-fg); }
.gm-edge-leg.es-needs_validation::before { border-color: var(--sev-medium-fg); border-top-style: dashed; }
.gm-edge-leg.es-hypothesis::before { border-color: var(--text-faint); border-top-style: dotted; }
.gm-zoom { position: absolute; left: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 2px; padding: 4px;
background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--border);
border-radius: var(--radius-pill); box-shadow: 0 8px 24px -10px rgba(15,23,42,.45); backdrop-filter: blur(8px); }
.gm-zoom .btn { width: 30px; height: 30px; padding: 0; border-radius: 50%; font-size: 15px; line-height: 1; display: grid; place-items: center; }
.gm-legend-bar { position: absolute; top: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 6px; max-width: 60%; justify-content: flex-end;
padding: 6px; border-radius: var(--radius-md); background: color-mix(in srgb, var(--surface) 82%, transparent);
border: 1px solid var(--border); box-shadow: 0 8px 24px -14px rgba(15,23,42,.4); backdrop-filter: blur(8px); }
.gm-node.gk-weak .gm-circle, .gm-node.gk-impact .gm-circle { box-shadow: 0 10px 26px -6px rgba(220,38,38,.45), 0 0 0 1px rgba(220,38,38,.15); }
.gm-node.gk-cred .gm-circle { box-shadow: 0 10px 26px -8px rgba(5,150,105,.4); }
.gm-detail { margin-top: var(--sp-3); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); padding: var(--sp-3) var(--sp-4); }
.gm-detail header { display: flex; align-items: center; gap: var(--sp-2); justify-content: space-between; margin-bottom: var(--sp-2); }
.kv { border-collapse: collapse; font-size: var(--fs-xs); width: 100%; }
.kv th { text-align: left; color: var(--text-faint); font-weight: 600; padding: 2px var(--sp-3) 2px 0; width: 160px; vertical-align: top; }
.kv td { font-family: var(--mono); padding: 2px 0; word-break: break-all; }
/* traffic */
.method { font-family: var(--mono); font-size: var(--fs-2xs); font-weight: 700; border: 1px solid var(--border-strong); border-radius: var(--radius-xs); padding: 1px 6px; }
.tf { font-family: var(--mono); font-weight: 700; }
.tf-2 { color: var(--sev-low-fg); }
.tf-3 { color: var(--sev-info-fg); }
.tf-4 { color: var(--sev-medium-fg); }
.tf-5 { color: var(--sev-critical-fg); }
.tf-0 { color: var(--text-faint); }
/* traces */
.trace-layout { display: grid; grid-template-columns: 240px 1fr; gap: var(--sp-4); }
.trace-files { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); max-height: 620px; overflow: auto; }
.trace-files li { display: flex; justify-content: space-between; gap: var(--sp-2); padding: 6px var(--sp-3); border-bottom: 1px solid var(--border); font-size: var(--fs-sm); }
.trace-files a { color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trace-files a:hover { color: var(--accent); }
.trace-hits { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-sm); }
.trace-hit { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); padding: 6px var(--sp-3); }
.trace-hit a { font-weight: 600; color: var(--text); }
.trace-hit code { display: block; font-family: var(--mono); font-size: var(--fs-xs); color: var(--text-dim); margin-top: 3px; white-space: pre-wrap; word-break: break-all; }
.trace-hit mark { background: var(--accent-soft); color: var(--accent); }
.trace-file-btn { background: none; border: none; padding: 0; margin: 0; font: inherit; color: var(--text); cursor: pointer; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trace-file-btn:hover { color: var(--accent); }
.trace-file-btn.active { color: var(--accent); font-weight: 700; }
/* transcript viewer */
.transcript-head { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-2); }
.transcript-head .muted { flex: 1; font-size: var(--fs-xs); }
.transcript-block { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: 4px; }
.transcript-block > summary { cursor: pointer; padding: 5px var(--sp-3); font-family: var(--mono); font-size: var(--fs-xs); color: var(--text); white-space: pre-wrap; word-break: break-all; }
.transcript-block > summary mark { background: var(--accent-soft); color: var(--accent); }
.transcript-block pre { margin: 0; border-top: 1px solid var(--border); }
.transcript-block pre mark { background: var(--accent-soft); color: var(--accent); }
/* wire evidence (finding modal) */
.fm-wire-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.wire-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--sp-2) 0; }
.wire-chip { font-size: var(--fs-2xs); font-weight: 700; padding: 2px 8px; border-radius: var(--radius-xs); border: 1px solid var(--border-strong); }
.wire-chip.ok { background: var(--sev-low-bg); color: var(--sev-low-fg); border-color: transparent; }
.wire-chip.warn { background: var(--sev-medium-bg); color: var(--sev-medium-fg); border-color: transparent; }
.wire-chip.bad { background: var(--sev-critical-bg); color: var(--sev-critical-fg); border-color: transparent; }
.wire-chip.muted { color: var(--text-faint); }
.wire-contra { margin: 0 0 var(--sp-2) 0; padding-left: var(--sp-5); font-size: var(--fs-xs); color: var(--sev-critical-fg); }
.wire-sub { font-size: var(--fs-xs); font-weight: 700; color: var(--text-dim); margin: var(--sp-3) 0 4px; text-transform: none; }
.wire-exchanges { display: flex; flex-direction: column; gap: 4px; }
.wire-ex { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.wire-ex > summary { cursor: pointer; display: flex; align-items: center; gap: var(--sp-2); padding: 6px var(--sp-3); font-size: var(--fs-xs); flex-wrap: wrap; }
.wire-role { font-weight: 700; color: var(--text-dim); min-width: 96px; }
.wire-url { font-family: var(--mono); color: var(--text-dim); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.wire-id { font-size: var(--fs-2xs); color: var(--text-faint); }
.wire-prov { font-size: var(--fs-2xs); font-weight: 700; padding: 1px 6px; border-radius: var(--radius-xs); }
.wire-prov.ok { background: var(--sev-low-bg); color: var(--sev-low-fg); }
.wire-prov.muted { color: var(--text-faint); border: 1px solid var(--border); }
.wire-ex-body { padding: 0 var(--sp-3) var(--sp-3); }
.wire-h { margin-top: var(--sp-2); }
.wire-h b { font-size: var(--fs-xs); color: var(--text-dim); text-transform: none; }
.wire-flow { display: flex; align-items: center; gap: var(--sp-2); padding: 4px var(--sp-3); border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); font-size: var(--fs-xs); }
.retest-hist { margin: var(--sp-2) 0; }
.retest-row { display: flex; align-items: center; gap: var(--sp-3); padding: 3px 0; font-size: var(--fs-xs); }
.retest-when { color: var(--text-faint); font-family: var(--mono); font-size: var(--fs-2xs); white-space: nowrap; }
.retest-detail { color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* regression vs previous run */
.reg-badge { font-size: var(--fs-2xs); font-weight: 700; padding: 0 6px; border-radius: var(--radius-xs); margin-left: 6px; vertical-align: middle; }
.reg-new { background: var(--sev-medium-bg); color: var(--sev-medium-fg); }
.reg-recurring { background: var(--sev-info-bg); color: var(--sev-info-fg); }
.reg-fixed { background: var(--sev-low-bg); color: var(--sev-low-fg); }
.reg-banner { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-3); padding: 6px var(--sp-3); margin-bottom: var(--sp-3); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); font-size: var(--fs-sm); }
.reg-banner .reg-h { font-weight: 700; text-transform: none; font-size: var(--fs-xs); color: var(--text-dim); }
.reg-chip { font-size: var(--fs-2xs); font-weight: 700; padding: 1px 8px; border-radius: var(--radius-xs); }
.reg-fixed-list { font-size: var(--fs-sm); }
.reg-fixed-list summary { cursor: pointer; color: var(--accent); }
.reg-fixed-list ul { margin: var(--sp-2) 0 0; padding-left: var(--sp-5); }
.reg-fixed-list li { margin: 2px 0; }
@media (max-width: 760px) { .trace-layout { grid-template-columns: 1fr; } .gm-wrap { height: 460px; } }
/* deliverables */
.deliv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--sp-3); }
.deliv-card { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); padding: var(--sp-3) var(--sp-4); text-decoration: none; color: var(--text); }
a.deliv-card:hover { border-color: var(--accent); }
.deliv-card span { font-size: var(--fs-sm); color: var(--text-dim); }
.deliv-card code { font-family: var(--mono); font-size: var(--fs-2xs); color: var(--text-faint); }
.deliv-group ul { margin: 4px 0 0; padding-left: 16px; font-size: var(--fs-xs); max-height: 160px; overflow: auto; }
/* CLI output dialog */
.out-pre { margin: 0; padding: var(--sp-4) var(--sp-5); font-family: var(--mono); font-size: var(--fs-xs); white-space: pre-wrap; word-break: break-word; overflow: auto; max-height: 60vh; background: var(--surface-2); }
.moves li { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 2px 0; }
.moves details summary { cursor: pointer; font-size: var(--fs-xs); color: var(--accent); margin-top: 4px; }
.panel-toolbar .input-sm { width: 200px; flex: 0 0 auto; }
.panel-toolbar select.input-sm { width: 150px; }
.panel-toolbar .search-wrap { flex: 1 1 260px; max-width: 420px; }
.gm-detail header { justify-content: flex-start; }
.gm-detail header [data-close] { margin-left: auto; }
/* graph split: finding list + graph view */
.graph-split { display: flex; gap: 0; height: 100%; min-height: 540px; }
.graph-finding-list { width: 220px; min-width: 180px; flex: none; border-right: 1px solid var(--border); overflow-y: auto; background: var(--surface); padding: 0; }
.gfl-header { font-size: var(--fs-xs); font-weight: 700; text-transform: none; color: var(--text-dim); padding: var(--sp-3) var(--sp-3) var(--sp-2); }
.gfl-note { font-size: var(--fs-2xs); color: var(--text-dim); padding: 0 var(--sp-3) var(--sp-2); line-height: 1.4; font-style: italic; }
.gfl-item { display: flex; align-items: center; gap: var(--sp-2); width: 100%; text-align: left; background: none; border: none; border-bottom: 1px solid var(--border); padding: var(--sp-2) var(--sp-3); font-size: var(--fs-xs); color: var(--text); cursor: pointer; line-height: 1.3; }
.gfl-item:hover { background: var(--surface-3); }
.gfl-item.active { background: var(--accent-soft, rgba(75,63,209,.10)); color: var(--accent); font-weight: 600; border-left: 3px solid var(--accent); }
.gfl-item .gfl-sev { font-size: var(--fs-2xs); font-weight: 700; flex: none; padding: 1px 5px; border-radius: var(--radius-xs); }
.gfl-item .gfl-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.graph-main { flex: 1; overflow: hidden; display: flex; flex-direction: column; }
.gm-finding-desc { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); padding: var(--sp-4); margin: 0 0 var(--sp-2); flex: none; max-height: 320px; overflow-y: auto; }
.gm-finding-desc .fd-header { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.gm-finding-desc .fd-title { font-weight: 600; font-size: var(--fs-base); }
.gm-finding-desc .fd-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: var(--sp-2); margin-bottom: var(--sp-3); }
.gm-finding-desc .fd-card { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: var(--sp-2) var(--sp-3); }
.gm-finding-desc .fd-card-label { font-size: var(--fs-xs); text-transform: none; color: var(--text-faint); font-weight: 600; }
.gm-finding-desc .fd-card-value { font-size: var(--fs-sm); font-weight: 500; margin-top: 2px; font-family: var(--mono); word-break: break-all; overflow-wrap: break-word; }
.gm-finding-desc .fd-card-value .cvss-vector { display: block; font-size: 9px; color: var(--text-faint); margin-top: 2px; word-break: break-all; }
.gm-finding-desc .fd-section { margin-bottom: var(--sp-3); }
.gm-finding-desc .fd-section:last-child { margin-bottom: 0; }
.gm-finding-desc .fd-section-title { font-size: var(--fs-xs); font-weight: 700; text-transform: none; color: var(--text-faint); margin-bottom: var(--sp-1); }
.gm-finding-desc .fd-section p { font-size: var(--fs-sm); color: var(--text-dim); line-height: 1.6; margin: 0; }
@media (max-width: 760px) { .graph-finding-list { width: 160px; } }
/* ============================================================ Search shortcut badge */
.search-shortcut { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: var(--fs-2xs); color: var(--text-faint); font-family: var(--mono); background: var(--surface-3); border: 1px solid var(--border); border-radius: var(--radius-xs); padding: 1px 5px; pointer-events: none; }
/* ============================================================ Home landing */
.home-landing { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100%; padding: var(--sp-7) var(--sp-5); }
.home-hero { text-align: center; margin-bottom: var(--sp-7); }
.home-title { font-size: 28px; font-weight: 700; margin: 0 0 var(--sp-2); color: var(--text); }
.home-sub { font-size: var(--fs-sm); color: var(--text-faint); margin: 0; }
.home-suggestions { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); max-width: 780px; width: 100%; }
.home-card {
display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-4);
border: 1px solid var(--border); border-radius: var(--radius-md);
background: var(--surface); text-align: left; cursor: pointer;
transition: border-color var(--t-base), background var(--t-base);
}
.home-card:hover { border-color: var(--accent); background: var(--accent-soft); }
.home-card-icon { font-size: var(--fs-xl); line-height: 1; }
.home-card-title { font-size: var(--fs-sm); font-weight: 600; color: var(--text); }
.home-card-desc { font-size: var(--fs-xs); color: var(--text-dim); line-height: 1.4; }
.home-recent { max-width: 780px; width: 100%; margin-top: var(--sp-7); }
.home-recent:empty { display: none; }
.home-recent-title { font-size: var(--fs-xs); font-weight: 600; text-transform: none; color: var(--text-faint); margin-bottom: var(--sp-3); }
.home-recent-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.home-recent-item {
display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4);
border: 1px solid var(--border); border-radius: var(--radius-sm);
background: var(--surface); cursor: pointer; transition: border-color var(--t-fast);
}
.home-recent-item:hover { border-color: var(--accent); }
.home-recent-name { font-size: var(--fs-sm); font-weight: 500; flex: 1; }
.home-recent-target { font-size: var(--fs-xs); font-family: var(--mono); color: var(--text-faint); }
.home-recent-time { font-size: var(--fs-xs); color: var(--text-faint); }
@media (max-width: 680px) { .home-suggestions { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .home-suggestions { grid-template-columns: 1fr; } }
/* ============================================================ Issues page (v4.5) */
.issues-sev-counters {
display: flex; gap: var(--sp-5); flex-wrap: wrap; margin-bottom: var(--sp-4);
}
.issues-sev-item {
display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
}
.issues-sev-label {
display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-xs);
color: var(--text-faint); text-transform: capitalize;
}
.issues-sev-dot {
width: 8px; height: 8px; border-radius: 50%; flex: none;
}
.issues-sev-dot.dot-critical { background: var(--sev-critical-fg); }
.issues-sev-dot.dot-high { background: var(--sev-high-fg); }
.issues-sev-dot.dot-medium { background: var(--sev-medium-fg); }
.issues-sev-dot.dot-low { background: var(--sev-low-fg); }
.issues-sev-value {
font-size: var(--fs-2xl); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1;
}
.issues-status-tabs {
display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: var(--sp-4);
}
.issues-status-tab {
padding: var(--sp-3) var(--sp-4); font-size: var(--fs-sm); font-weight: 500;
color: var(--text-faint); background: none; border: none; border-bottom: 2px solid transparent;
cursor: pointer; white-space: nowrap; display: flex; align-items: center; gap: var(--sp-2);
transition: color var(--t-fast), border-color var(--t-fast);
}
.issues-status-tab:hover { color: var(--text); }
.issues-status-tab.active { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
.issues-tab-count {
font-family: var(--mono); font-size: var(--fs-xs); color: var(--text-faint);
}
.issues-status-tab.active .issues-tab-count { color: var(--accent); }
.issues-filter-bar {
display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-3);
}
.issues-filter-bar .search-wrap { flex: 1; min-width: 200px; max-width: 360px; }
/* Dashboard greeting */
.dash-greeting {
font-size: var(--fs-xl); font-weight: 600; margin-bottom: var(--sp-4);
}
.dash-greeting-sub {
font-size: var(--fs-sm); color: var(--text-dim); font-weight: 400; margin-top: 2px;
}
/* Severity progress bar — horizontal stacked bar in run header */
.sev-progress { display: flex; height: 8px; border-radius: var(--radius-pill); overflow: hidden; background: var(--surface-3); margin: var(--sp-2) 0; }
.sev-progress-seg { height: 100%; transition: width .4s ease; min-width: 0; }
.sev-progress-seg.seg-critical { background: var(--sev-critical-fg); }
.sev-progress-seg.seg-high { background: var(--sev-high-fg); }
.sev-progress-seg.seg-medium { background: var(--sev-medium-fg); }
.sev-progress-seg.seg-low { background: var(--sev-low-fg); }
.sev-progress-seg.seg-info { background: var(--sev-info-fg); }
.sev-progress-legend { display: flex; gap: var(--sp-4); flex-wrap: wrap; margin-top: var(--sp-1); }
.sev-progress-legend-item { display: flex; align-items: center; gap: 5px; font-size: var(--fs-2xs); color: var(--text-dim); }
.sev-progress-legend-item .spl-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.sev-progress-legend-item .spl-count { font-weight: 700; font-family: var(--mono); color: var(--text); }
.run-sev-bar { padding: 0 var(--sp-5); margin-bottom: var(--sp-3); }
/* Coverage status pills */
.cv-pills { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-3); }
.cv-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--surface); font-size: var(--fs-xs); font-weight: 500; color: var(--text-dim); cursor: pointer; transition: all var(--t-fast); }
.cv-pill:hover { border-color: var(--border-strong); }
.cv-pill.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.cv-pill .cv-pill-count { font-family: var(--mono); font-weight: 700; }
.cv-progress-label { font-size: var(--fs-xs); color: var(--text-faint); margin-left: auto; font-family: var(--mono); }
/* Enhanced finding modal metadata */
.fm-meta-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-4); }
@media (max-width: 760px) { .fm-meta-grid { grid-template-columns: repeat(2, 1fr); } }
.fm-meta-cell { display: flex; flex-direction: column; gap: 2px; }
.fm-meta-label { font-size: var(--fs-xs); text-transform: none; color: var(--text-faint); font-weight: 600; display: flex; align-items: center; gap: 4px; }
.fm-meta-value { font-size: var(--fs-base); font-weight: 500; font-family: var(--mono); }
.fm-meta-value.fm-cvss { font-size: var(--fs-xl); font-weight: 700; }
.fm-meta-value.fm-cvss-high { color: var(--sev-critical-fg); }
.fm-meta-value.fm-cvss-med { color: var(--sev-medium-fg); }
.fm-meta-value.fm-cvss-low { color: var(--sev-low-fg); }
.fm-endpoint-badge { display: inline-flex; align-items: center; gap: 6px; }
.fm-endpoint-method { font-family: var(--mono); font-size: var(--fs-2xs); font-weight: 700; padding: 2px 8px; border-radius: var(--radius-xs); }
.fm-endpoint-method.m-get { background: var(--sev-low-bg); color: var(--sev-low-fg); }
.fm-endpoint-method.m-post { background: var(--accent-soft); color: var(--accent); }
.fm-endpoint-method.m-put, .fm-endpoint-method.m-patch { background: var(--sev-medium-bg); color: var(--sev-medium-fg); }
.fm-endpoint-method.m-delete { background: var(--sev-critical-bg); color: var(--sev-critical-fg); }
.fm-endpoint-path { font-family: var(--mono); font-size: var(--fs-xs); color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
/* CVSS vector string — small, muted, below the score */
.fm-cvss-vector { display: block; font-size: var(--fs-2xs); font-family: var(--mono); color: var(--text-faint); font-weight: 400; word-break: break-all; max-width: 180px; margin-top: 2px; }
/* Finding modal action buttons — inline row, not full-width stack */
.fm-actions { display: flex; flex-direction: row; gap: var(--sp-2); margin-bottom: var(--sp-4); flex-wrap: wrap; }
.fm-action-btn { display: inline-flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-3); border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); font-size: var(--fs-xs); color: var(--text-dim); cursor: pointer; transition: all var(--t-fast); text-align: left; white-space: nowrap; }
.fm-action-btn:hover { border-color: var(--border-strong); color: var(--text); background: var(--surface-3); }
/* Issue table endpoint subtitle */
.issue-title-cell { display: flex; flex-direction: column; gap: 2px; }
.issue-title-main { font-weight: 500; }
.issue-endpoint-sub { font-size: var(--fs-2xs); font-family: var(--mono); color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 400px; }
/* Run overview / report quick-nav */
.run-report-nav { display: flex; flex-direction: column; gap: var(--sp-1); padding: var(--sp-3); border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: var(--sp-4); }
.run-report-nav-title { font-size: var(--fs-xs); text-transform: none; color: var(--text-faint); font-weight: 600; margin-bottom: var(--sp-2); }
.run-report-nav a { font-size: var(--fs-sm); color: var(--text-dim); padding: var(--sp-1) var(--sp-2); border-radius: var(--radius-xs); text-decoration: none; transition: all var(--t-fast); }
.run-report-nav a:hover { background: var(--surface-3); color: var(--text); }
/* ============================================================ Refinement layer (v4.5)
Icons, form controls, spacing rhythm. Loaded last on purpose: these rules
adjust the rules above rather than replace them, so every class and id the
console's JS relies on is unchanged. */
/* ---- icons: one stroke set, inherits colour */
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; display: block; flex: none; }
.sb-nav-icon { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; opacity: .72; }
.sb-nav-item.active .sb-nav-icon, .sb-nav-item:hover .sb-nav-icon { opacity: 1; }
.icon-btn .ico { width: 16px; height: 16px; }
.search-icon { display: inline-flex; align-items: center; }
.search-icon .ico { width: 14px; height: 14px; }
.home-card-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent); }
.home-card-icon .ico { width: 18px; height: 18px; }
/* ---- sidebar */
.sb-new {
display: flex; align-items: center; gap: var(--sp-2); justify-content: center; text-align: center;
background: var(--accent); border-color: var(--accent); color: var(--accent-contrast);
min-height: 34px; padding-block: 0;
}
.sb-new:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-contrast); }
.sb-new .ico { width: 15px; height: 15px; stroke-width: 2; }
.sb-nav { gap: 2px; }
.sb-nav-item { position: relative; min-height: 32px; padding-block: 0; }
.sb-nav-item.active::before { content: ""; position: absolute; left: -8px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.sb-nav-separator { margin: var(--sp-2) var(--sp-3); }
/* ---- form controls: one height, one focus treatment, legible placeholder */
input[type="text"], input[type="number"], input[type="password"], input[type="search"], select { min-height: 34px; }
input, select, textarea { transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast); }
input::placeholder, textarea::placeholder { color: var(--text-faint); opacity: 1; }
input:hover:not(:disabled):not(:focus), select:hover:not(:disabled):not(:focus), textarea:hover:not(:disabled):not(:focus) { border-color: var(--text-faint); }
input:focus-visible, select:focus-visible, textarea:focus-visible {
outline: none; border-color: var(--accent);
box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 24%, transparent);
}
input:disabled, select:disabled, textarea:disabled { background: var(--surface-3); color: var(--text-faint); cursor: not-allowed; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--sev-critical-fg); }
select {
cursor: pointer; padding-right: 8px;
}
select, option { background-color: var(--surface-1); color: var(--text); }
input[type="number"] { font-variant-numeric: tabular-nums; }
.field-label { color: var(--text-dim); font-size: var(--fs-sm); }
.field-error::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }
/* ---- type details */
.topbar-sub { font-family: var(--sans); font-size: var(--fs-sm); color: var(--text-dim); }
.stat-value, .bar-row > :last-child, .data-table td, .score-ring-value { font-variant-numeric: tabular-nums; }
.home-title { font-size: 30px; letter-spacing: -.015em; line-height: 1.2; }
.home-sub { font-size: var(--fs-base); color: var(--text-dim); }
/* ---- spacing rhythm: 24px page gutter, 16px between cards, 12px inside lists */
.page-body { padding: var(--sp-5) var(--sp-5) var(--sp-7); }
.dash-grid { gap: var(--sp-4); align-items: start; }
.dash-card { padding: var(--sp-4) var(--sp-5); }
.dash-card h3 { font-size: var(--fs-base); margin-bottom: var(--sp-4); }
.bar-row { padding: 5px 0; }
.topbar { padding-block: var(--sp-3); }
/* ---- home: left-aligned rows (they are buttons, which centre text by default) */
.home-landing { justify-content: flex-start; padding-top: clamp(32px, 11vh, 112px); }
.home-hero { margin-bottom: var(--sp-6); }
.home-suggestions { gap: var(--sp-4); }
.home-card { gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); }
.home-recent { margin-top: var(--sp-6); }
.home-recent-item { width: 100%; text-align: left; font: inherit; color: inherit; }
.home-recent-name { text-align: left; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-recent-target { max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
input, select, textarea, .sb-nav-item, .home-card { transition: none; }
}
/* FAIR range: three figures on one row (the roomier card padding made them wrap) */
.fair-range { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--sp-3); align-items: end; }
.fair-point { min-width: 0; }
.fair-point .fair-v, .fair-point-likely .fair-v { white-space: nowrap; }
.fair-hero { padding: var(--sp-4); }
/* status tint on the score tile: a wash, not a fill — the ring and the word carry the signal */
.stat-score.sev-critical { background: color-mix(in srgb, var(--sev-critical-bg) 45%, var(--surface)); }
.stat-score.sev-high { background: color-mix(in srgb, var(--sev-high-bg) 45%, var(--surface)); }
.stat-score.sev-medium { background: color-mix(in srgb, var(--sev-medium-bg) 45%, var(--surface)); }
.stat-score.sev-low { background: color-mix(in srgb, var(--sev-low-bg) 45%, var(--surface)); }
.fair-point .v { white-space: nowrap; font-size: var(--fs-lg); }
.fair-likely .v { font-size: var(--fs-2xl); }
/* buttons that carry an icon */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); }
.btn .ico { width: 15px; height: 15px; }
.icon-btn .ico { width: 15px; height: 15px; }
/* six engagement types: two clean rows of three instead of five + one orphan */
.mode-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) { .mode-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* ---- terminal dock */
.term-head { padding: var(--sp-2) var(--sp-4); gap: var(--sp-3); }
.term-target {
min-height: 28px; padding: 3px 28px 3px 10px;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a5a099' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
background-repeat: no-repeat; background-position: right 9px center; background-size: 12px;
}
.term-btn { min-height: 26px; }
.term-host { padding: var(--sp-3) var(--sp-4) var(--sp-2); }
.term-hints { padding: var(--sp-2) var(--sp-4) var(--sp-3); font-size: var(--fs-xs); border-top: 1px solid var(--term-line); }
/* FitAddon subtracts the padding of the .xterm element, not of its parent (and
border-box makes the parent's computed width include its own padding), so the
gutter has to live on .xterm or the last columns are clipped. */
.term-host { padding: 0; }
.term-host .xterm { padding: var(--sp-3) var(--sp-4) var(--sp-2); height: 100%; }
/* ── Adaptive Intelligence tab ── */
.adaptive-dashboard {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: var(--sp-4);
padding: var(--sp-4);
}
.adaptive-section {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-md);
padding: var(--sp-4) var(--sp-4) var(--sp-3);
position: relative;
overflow: hidden;
transition: border-color var(--t-fast);
}
.adaptive-section::before {
content: '';
position: absolute;
top: 0; left: 0; right: 0;
height: 3px;
background: var(--accent);
opacity: 0.5;
border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.adaptive-section:hover { border-color: var(--border-strong); }
.adaptive-section.has-data::before { opacity: 1; }
.adaptive-title {
font-size: var(--fs-xs);
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--text-dim);
margin: 0 0 var(--sp-3);
display: flex;
align-items: center;
gap: var(--sp-2);
}
.adaptive-title .a-icon {
width: 20px; height: 20px;
border-radius: var(--radius-xs);
background: var(--accent-soft);
color: var(--accent);
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 11px;
flex: none;
}
.adaptive-stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
gap: var(--sp-2);
}
.astat {
text-align: center;
padding: var(--sp-2) var(--sp-1);
border-radius: var(--radius-sm);
background: var(--surface-2);
transition: background var(--t-fast);
}
.astat:hover { background: var(--surface-3); }
.astat-n {
display: block;
font-size: var(--fs-xl, 1.5rem);
font-weight: 700;
font-variant-numeric: tabular-nums;
color: var(--text);
line-height: 1.2;
}
.astat-n.zero { color: var(--text-faint); }
.astat-l {
display: block;
font-size: 10px;
color: var(--text-faint);
text-transform: uppercase;
letter-spacing: 0.04em;
margin-top: 2px;
}
.adaptive-stack, .adaptive-waf {
font-size: var(--fs-sm);
color: var(--text-dim);
line-height: 1.6;
padding: var(--sp-2);
border-radius: var(--radius-sm);
background: var(--surface-2);
min-height: 40px;
}
.adaptive-stack code, .adaptive-waf code {
background: var(--surface-3);
padding: 1px 5px;
border-radius: var(--radius-xs);
font-size: var(--fs-xs);
font-family: var(--mono);
}
/* Severity-tinted stat highlights */
.astat.stat-warn .astat-n { color: var(--sev-medium-fg); }
.astat.stat-good .astat-n { color: var(--sev-low-fg); }
.astat.stat-bad .astat-n { color: var(--sev-critical-fg); }
/* Two-column layout for wide screens */
@media (min-width: 1200px) {
.adaptive-dashboard { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1600px) {
.adaptive-dashboard { grid-template-columns: repeat(3, 1fr); }
.adaptive-section.wide { grid-column: span 2; }
}
/* ============================================================ Reactive / MCP modals */
.badge-experimental { display: inline-block; font-size: var(--fs-xs); font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--warn-bg, #fff3cd); color: var(--warn-fg, #856404); vertical-align: middle; margin-left: 6px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge-experimental { background: #3d3200; color: #ffc107; } }
:root[data-theme="dark"] .badge-experimental { background: #3d3200; color: #ffc107; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-item { display: flex; gap: var(--sp-2); align-items: flex-start; padding: var(--sp-2); border-radius: var(--radius); background: var(--surface-raised, var(--surface)); }
.feature-icon { font-size: 1.4em; flex-shrink: 0; }
.feature-item b { display: block; margin-bottom: 2px; }
.profile-cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
@media (max-width: 600px) { .profile-cards { grid-template-columns: 1fr; } }
.profile-card { padding: var(--sp-3); border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface-raised, var(--surface)); }
.profile-card-title { font-size: var(--fs-base); font-weight: 600; margin-bottom: 4px; }
.profile-card-desc { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: 6px; }
.profile-card-tools { font-size: var(--fs-xs); color: var(--text-faint); font-family: var(--font-mono, monospace); }
.modal-section { margin-bottom: var(--sp-4); }
.modal-section h3 { font-size: var(--fs-base); font-weight: 600; margin: 0 0 var(--sp-2) 0; }
.modal-section ul { margin: var(--sp-2) 0; padding-left: var(--sp-4); }
.modal-section li { margin-bottom: var(--sp-1); font-size: var(--fs-sm); }
.modal-section p { font-size: var(--fs-sm); color: var(--text-muted); }
.btn-link { background: none; border: none; color: var(--accent); cursor: pointer; padding: 0; font-size: inherit; text-decoration: underline; }
.btn-link:hover { opacity: 0.8; }
/* ============================================================ C2 & Shells */
#c2View .run-tabs { margin-bottom: var(--sp-3); }
#c2View .run-tab { cursor: pointer; }
.c2-selected td { background: var(--surface-2, rgba(127,127,127,.08)); }
.c2-output {
margin: 0;
padding: var(--sp-3);
max-height: 360px;
overflow: auto;
white-space: pre-wrap;
word-break: break-word;
font-family: var(--mono);
font-size: var(--fs-xs);
background: var(--surface-2, rgba(127,127,127,.06));
border: 1px solid var(--border);
border-radius: var(--radius);
}
.c2-payload {
width: 100%;
min-height: 180px;
font-family: var(--mono);
font-size: var(--fs-xs);
background: var(--surface-2, rgba(127,127,127,.06));
border: 1px solid var(--border);
border-radius: var(--radius);
padding: var(--sp-3);
}
#c2View .badge { display: inline-block; font-size: var(--fs-xs); font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); }
#c2View .badge-ok { color: var(--sev-low-fg, #1a7f37); border-color: var(--sev-low-fg, #1a7f37); background: var(--sev-low-bg, rgba(26,127,55,.08)); }
#c2View .badge-warn { color: var(--sev-medium-fg, #9a6700); border-color: var(--sev-medium-fg, #9a6700); background: var(--sev-medium-bg, rgba(154,103,0,.08)); }
#c2View .badge-muted { color: var(--text-faint); }
/* Attack-graph finding detail: evidence/payload blocks */
.fd-pre { font-family: var(--mono); font-size: var(--fs-xs); white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface-2, rgba(127,127,127,.08)); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; margin: 2px 0 0; max-height: 240px; overflow: auto; }
/* Asset context in finding detail */
.fd-asset-ctx { display:flex; flex-wrap:wrap; gap:6px 16px; padding:10px 14px; background:var(--surface-2, rgba(127,127,127,.06)); border-radius:8px; margin:8px 0 4px; border-left:3px solid var(--accent) }
.fd-asset-row { display:flex; gap:6px; align-items:baseline; min-width:200px }
.fd-asset-label { font-size:10px; text-transform:uppercase; letter-spacing:.5px; color:var(--text-faint); white-space:nowrap; font-weight:600 }
.fd-asset-value { font-size:12px; font-family:var(--mono); color:var(--text) }
/* Filter dropdowns */
.gm-filter-wrap { display:inline-flex; align-items:center; gap:4px; position:relative }
.gm-filter-label { font-size:10px; font-weight:600; color:var(--text-faint); text-transform:uppercase; letter-spacing:.3px }
.gm-filter { background:var(--surface-2, rgba(127,127,127,.06)); color:var(--text); border:1px solid var(--border); border-radius:4px; padding:2px 6px; font-size:11px; cursor:pointer; outline:none }
.gm-filter:focus { border-color:var(--accent) }
/* Re-validate button */
.fd-actions { padding:10px 14px; display:flex; gap:8px }
.fd-revalidate { font-size:12px }
/* Kill chain coverage bar */
.gm-killchain { display:flex; gap:2px; padding:6px 0; width:100%; margin-top:4px }
.kc-stage { flex:1; text-align:center; min-width:0 }
.kc-bar { height:4px; background:var(--border); border-radius:2px; transition:background .2s }
.kc-covered .kc-bar { background:var(--accent) }
.kc-label { font-size:8px; color:var(--text-faint); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; margin-top:2px }
.kc-covered .kc-label { color:var(--accent) }
/* Agent findings panel — clickable rows */
.agent-row { cursor: pointer; transition: background var(--t-fast), border-color var(--t-fast); }
.agent-row:hover { border-color: var(--accent); background: var(--surface-2); }
.agent-expanded { background: var(--surface-2) !important; border-left: 3px solid var(--accent) !important; }
.at-card-expand { font-size: var(--fs-xs); color: var(--text-faint); width: 16px; text-align: center; flex: none; transition: transform var(--t-fast); }
.agent-findings-panel {
margin: 0 0 8px 20px; padding: 8px 12px;
background: var(--bg); border-radius: var(--radius-sm); border: 1px solid var(--border);
animation: afpSlideDown .15s ease-out;
}
@keyframes afpSlideDown { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.afp-header { font-size: var(--fs-2xs); color: var(--text-faint); margin-bottom: 6px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.afp-finding {
display: flex; align-items: center; gap: 8px; padding: 4px 8px; cursor: pointer;
border-radius: var(--radius-xs); transition: background var(--t-fast); font-size: var(--fs-sm);
}
.afp-finding:hover { background: rgba(255,255,255,.06); }
.afp-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.afp-status { font-size: var(--fs-2xs); color: var(--text-faint); padding: 1px 6px; background: rgba(255,255,255,.06); border-radius: var(--radius-xs); }
.afp-endpoint { font-size: var(--fs-2xs); color: var(--accent); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Move cards */
.moves-grid { display: flex; flex-direction: column; gap: 4px; }
.move-card {
padding: 8px 12px; background: var(--surface-2); border-radius: var(--radius-sm); margin-bottom: 0;
border-left: 3px solid var(--accent); display: flex; gap: 8px; align-items: flex-start;
}
.move-type {
font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
padding: 2px 6px; border-radius: var(--radius-xs); background: var(--accent); color: var(--bg); white-space: nowrap; margin-top: 1px;
}
.move-type.mt-validate { background: var(--sev-medium-fg); }
.move-type.mt-exploit { background: var(--sev-critical-fg); }
.move-type.mt-escalate { background: var(--sev-high-fg); }
.move-type.mt-pivot { background: #a855f7; }
.move-type.mt-lateral { background: #a855f7; }
.move-type.mt-enumerate, .move-type.mt-recon { background: #38bdf8; }
.move-desc { font-size: var(--fs-sm); color: var(--text); line-height: 1.4; overflow-wrap: anywhere; }
/* Chain edge badges — color-coded by relation type */
.chain-rel.chain-edge-ESCALATES_TO { background: var(--sev-high-fg); color: #fff; }
.chain-rel.chain-edge-IMPACTS { background: var(--sev-critical-fg); color: #fff; }
.chain-rel.chain-edge-PROVES { background: #22c55e; color: #000; }
.chain-rel.chain-edge-CAN_ACCESS { background: #38bdf8; color: #000; }
.chain-rel.chain-edge-PIVOTS_TO { background: #a855f7; color: #fff; }
.chain-rel.chain-edge-ENABLES { background: #f59e0b; color: #000; }
.chain-rel.chain-edge-YIELDS { background: #06b6d4; color: #000; }
/* Chain confidence bar */
.chain-conf-bar { display: inline-block; width: 40px; height: 4px; background: var(--border); border-radius: 2px; vertical-align: middle; margin-left: 6px; }
.chain-conf-fill { display: block; height: 100%; border-radius: 2px; background: var(--accent); }
/* ==========================================================================
v5 LAYER — loaded last. Restyles shell and core components on top of the
rules above (every class/id the JS relies on is unchanged).
========================================================================== */
body { font-family: var(--sans); font-size: var(--fs-base); letter-spacing: -0.006em; background: var(--bg); color: var(--text);
font-feature-settings: "cv11", "ss01", "ss03"; text-rendering: optimizeLegibility; }
code, kbd, .mono, pre { font-family: var(--mono); font-feature-settings: normal; }
code { font-size: .88em; background: var(--surface-3); border: 1px solid var(--border); border-radius: var(--radius-xs); padding: 0 5px; }
kbd { font-size: 10.5px; color: var(--text-faint); border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; line-height: 16px; background: var(--surface); }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-track { background: transparent; }
.hide-sm { display: inline; }
.ico { stroke-width: 1.7; }
/* ---------------------------------------------------------------- shell */
.app { background: var(--bg); }
.main { background: var(--bg); }
.sidebar { width: 244px; background: var(--sidebar-bg); border-right: 1px solid var(--border); overflow: hidden; }
.sb-top { padding: 16px 14px 12px; }
.brand { gap: 10px; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none;
background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-xs); color: var(--text); }
.brand .mark, .brand-mark .mark { width: 20px; height: 20px; }
.brand-text { display: flex; flex-direction: column; font-size: 14px; font-weight: 650; letter-spacing: -.015em; line-height: 1.15; }
.brand-sub { font-size: 11px; font-weight: 450; color: var(--text-faint); letter-spacing: 0; }
.sb-new { margin: 0 12px 10px; min-height: 36px; border-radius: var(--radius-sm); font-weight: 600; font-size: var(--fs-sm);
background: var(--accent); border: 1px solid var(--accent); color: var(--accent-contrast);
box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 1px 2px rgba(0,0,0,.2); position: relative; }
.sb-new kbd { position: absolute; right: 10px; background: transparent; color: inherit; opacity: .65; border-color: currentColor; }
.sb-new:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-contrast); }
.sb-nav { padding: 2px 10px 8px; gap: 1px; overflow-y: auto; flex: 0 1 auto; }
.sb-section { font-size: 11px; font-weight: 600; color: var(--text-faint); padding: 14px 10px 5px; letter-spacing: .02em; list-style: none; user-select: none; }
.sb-section-toggle { display: flex; align-items: center; justify-content: space-between; cursor: pointer; border-radius: var(--radius-sm); }
.sb-section-toggle::-webkit-details-marker { display: none; }
.sb-section-toggle:hover { color: var(--text-dim); }
.caret-ico { width: 13px; height: 13px; transition: transform var(--t-base); }
details[open] > summary .caret-ico { transform: rotate(90deg); }
.sb-adv[open] > summary { margin-bottom: 1px; }
.sb-nav-item { min-height: 32px; padding: 0 10px; gap: 10px; border-radius: var(--radius-sm); font-size: var(--fs-sm); font-weight: 500; color: var(--text-dim); width: 100%; }
.sb-nav-item kbd { margin-left: auto; }
.sb-nav-item:hover { background: var(--hover); color: var(--text); }
.sb-nav-item.active { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow-xs), 0 0 0 1px var(--border); }
:root[data-theme="dark"] .sb-nav-item.active { background: var(--surface-3); box-shadow: none; }
.sb-nav-item.active::before { display: none; }
.sb-nav-item.active .sb-nav-icon { color: var(--accent); }
.sb-nav-icon { width: 17px; height: 17px; opacity: .85; }
.sb-nav-icon .ico { width: 17px; height: 17px; }
.sb-nav-separator { display: none; }
.sb-run-history { border-top: 1px solid var(--border); min-height: 0; }
.sb-run-history > .sb-section { padding: 12px 22px 6px; }
.sb-search { margin: 0 12px 8px; }
.sb-search input { min-height: 32px; font-size: var(--fs-sm); background: var(--surface); border-color: var(--border); padding-left: 30px; border-radius: var(--radius-sm); }
.sb-search .search-icon { left: 10px; }
.sb-groups { padding: 0 8px 10px; }
.sb-folder-head, .sb-group-head { border-radius: var(--radius-sm); font-size: var(--fs-sm); }
.sb-folder-head:hover, .sb-group-head:hover { background: var(--hover); }
.sb-run { border-radius: var(--radius-sm); }
.sb-run:hover { background: var(--hover); }
.sb-run.active { background: var(--accent-soft); }
.sb-folder .sb-items { border-left-color: var(--border); }
.run-dot { width: 7px; height: 7px; }
.sb-bottom { padding: 10px 12px; gap: 8px; border-top: 1px solid var(--border); }
.sb-foot-btn { display: inline-flex; align-items: center; gap: 6px; border: none; background: transparent; color: var(--text-dim);
font-size: var(--fs-xs); font-weight: 500; padding: 5px 8px; border-radius: var(--radius-sm); }
.sb-foot-btn:hover { background: var(--hover); color: var(--text); }
.sb-foot-btn .ico { width: 15px; height: 15px; }
.sb-version { margin-left: auto; font-size: 11px; }
.icon-btn { width: 30px; height: 30px; border-radius: var(--radius-sm); color: var(--text-dim); }
.icon-btn:hover { background: var(--hover); border-color: transparent; color: var(--text); }
/* mobile app bar */
.mobile-bar { display: none; }
.sidebar-toggle { display: none !important; }
/* ---------------------------------------------------------------- page header */
.topbar { min-height: 64px; padding: 14px 32px; background: transparent; border-bottom: 1px solid var(--border); gap: 12px;
position: sticky; top: 0; z-index: var(--z-sticky); backdrop-filter: saturate(1.4) blur(10px);
background: color-mix(in srgb, var(--bg) 82%, transparent); }
.topbar-title { font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
.topbar-sub { font-family: var(--sans); font-size: var(--fs-sm); color: var(--text-faint); margin-top: 1px; }
.topbar-sub .mono { color: var(--text-dim); font-size: 12px; }
.page-body, .dash-body { padding: 28px 32px 64px; }
.page-narrow { max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.page-actions { display: flex; justify-content: flex-end; gap: 8px; }
.topbar-search { border-radius: var(--radius-sm); min-height: 34px; width: 240px; }
.asset-tabs { display: flex; gap: 4px; padding: 14px 32px 0; }
.asset-tabs button { border: 1px solid transparent; background: transparent; color: var(--text-dim); font-size: var(--fs-sm); font-weight: 500;
padding: 6px 12px; border-radius: var(--radius-pill); }
.asset-tabs button:hover { background: var(--hover); color: var(--text); }
.asset-tabs button.active { background: var(--surface); border-color: var(--border); color: var(--text); box-shadow: var(--shadow-xs); }
.asset-tabs + .page-body { padding-top: 18px; }
/* ---------------------------------------------------------------- buttons */
.btn { min-height: 34px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface);
color: var(--text); font-size: var(--fs-sm); font-weight: 550; gap: 7px; box-shadow: var(--shadow-xs);
transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast); }
.btn:hover { border-color: var(--text-faint); background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 30px; padding: 0 11px; font-size: var(--fs-xs); }
.btn-primary, .btn-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); font-weight: 600;
box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 1px 2px rgba(0,0,0,.18); padding: 0 16px; }
.btn-primary:hover, .btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-contrast); }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--text-dim); }
.btn-ghost:hover { background: var(--hover); border-color: transparent; color: var(--text); }
.btn-danger { background: transparent; border-color: color-mix(in srgb, var(--sev-critical-fg) 45%, transparent); color: var(--sev-critical-fg); box-shadow: none; }
.btn-danger:hover { background: var(--sev-critical-bg); border-color: var(--sev-critical-fg); }
.btn.icon-only { width: 34px; padding: 0; }
.btn .ico { width: 15px; height: 15px; }
.btn-launch { min-height: 40px; padding: 0 20px; font-size: var(--fs-base); }
.btn-link { text-decoration: none; font-weight: 500; }
.btn-link:hover { text-decoration: underline; }
/* ---------------------------------------------------------------- menus */
.menu { position: relative; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: var(--z-overlay); min-width: 210px; padding: 5px;
background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-float);
display: flex; flex-direction: column; animation: pop-in .14s ease-out; }
.menu-item { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border: none; background: transparent;
color: var(--text); font-size: var(--fs-sm); padding: 8px 10px; border-radius: var(--radius-sm); text-decoration: none; cursor: pointer; }
.menu-item:hover { background: var(--hover); color: var(--text); }
.menu-item.danger { color: var(--sev-critical-fg); }
.menu-item.danger:hover { background: var(--sev-critical-bg); }
.menu-item:disabled { opacity: .5; }
.menu-sep { height: 1px; background: var(--border); margin: 4px 2px; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
/* ---------------------------------------------------------------- forms */
input[type="text"], input[type="number"], input[type="password"], input[type="search"], input[type="url"], select, textarea {
min-height: 38px; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
background: var(--surface); color: var(--text); font-size: var(--fs-sm); box-shadow: var(--shadow-xs); }
:root[data-theme="dark"] input[type="text"], :root[data-theme="dark"] input[type="number"], :root[data-theme="dark"] input[type="password"],
:root[data-theme="dark"] select, :root[data-theme="dark"] textarea { background: var(--surface-2); box-shadow: none; }
textarea { line-height: 1.5; min-height: 64px; }
select { appearance: none; -webkit-appearance: none; padding-right: 32px;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8a98' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
background-repeat: no-repeat; background-position: right 10px center; background-size: 14px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); outline: none; }
input[type="file"] { font-size: var(--fs-sm); color: var(--text-dim); }
input[type="file"]::file-selector-button { font: inherit; font-weight: 550; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); border-radius: var(--radius-sm); padding: 6px 12px; margin-right: 10px; cursor: pointer; }
.narrow { max-width: 140px; }
.field-group { gap: 6px; }
.field-group + .field-group { margin-top: 18px; }
.field-label, .form-group label { font-size: var(--fs-sm); font-weight: 550; color: var(--text); }
.field-help, .form-group .field-help { font-size: var(--fs-xs); color: var(--text-faint); line-height: 1.5; }
.field-row { gap: 16px; }
.field-row > * { min-width: 140px; }
.form-group { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form-group label { margin-bottom: 0; }
.req { color: var(--text-faint); font-weight: 450; font-size: var(--fs-xs); margin-left: 4px; }
.check-row { gap: 10px; font-size: var(--fs-sm); color: var(--text); padding: 6px 0; }
.check-row label { cursor: pointer; }
.check-row input[type="checkbox"] { width: 34px; height: 20px; border-radius: 99px; background: var(--border-strong); }
.check-row input[type="checkbox"]::after { width: 16px; height: 16px; top: 2px; left: 2px; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.check-row input[type="checkbox"]:checked::after { transform: translateX(14px); }
.callout { font-size: var(--fs-sm); color: var(--text-dim); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 16px; }
.field-error::before { content: ""; }
/* ---------------------------------------------------------------- cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 22px; box-shadow: var(--shadow-xs); }
.card-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-title { font-size: var(--fs-base); font-weight: 650; letter-spacing: -.01em; }
.card-desc { font-size: var(--fs-sm); color: var(--text-dim); margin-top: 2px; }
.form-card { display: flex; flex-direction: column; gap: 0; }
.form-card > .card-title { margin-bottom: 14px; }
.inline-card { display: flex; align-items: center; gap: 14px; padding: 14px 18px; }
.inline-card-body { flex: 1; min-width: 0; }
.cc-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent); }
.cc-icon .ico { width: 18px; height: 18px; }
.config-grid { gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.config-card { border-radius: var(--radius-lg); padding: 18px 20px; box-shadow: var(--shadow-xs); }
.config-card-title { font-size: var(--fs-base); font-weight: 650; }
.config-card-link { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; cursor: pointer; color: var(--text); font: inherit; position: relative; transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast); }
.config-card-link .config-card-title { margin: 6px 0 0; }
.config-card-link .config-card-desc { margin: 0; }
.config-card-link .cc-edit { position: absolute; top: 18px; right: 18px; font-size: var(--fs-xs); font-weight: 600; color: var(--accent); opacity: 0; transition: opacity var(--t-fast); }
.config-card-link:hover { border-color: var(--accent-line); box-shadow: var(--shadow-float); transform: translateY(-1px); }
.config-card-link:hover .cc-edit { opacity: 1; }
.form-section { display: flex; flex-direction: column; gap: 0; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--border); }
.form-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.form-section-title { font-size: var(--fs-xs); font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); margin: 0 0 14px; }
.form-section .field-row + .field-row, .form-section .field-row + .form-group, .form-section .form-group + .field-row { margin-top: 0; }
.form-section > .check-row + .form-group, .form-section > .field-row + .check-row { margin-top: 6px; }
/* ---------------------------------------------------------------- home */
.home-landing { max-width: 880px; margin: 0 auto; width: 100%; align-items: stretch; padding: clamp(36px, 9vh, 96px) 32px 64px; }
.home-hero { text-align: center; margin-bottom: 28px; display: flex; flex-direction: column; align-items: center; }
.home-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-xs); font-weight: 550; color: var(--accent);
background: var(--accent-soft); border: 1px solid var(--accent-line); padding: 4px 11px; border-radius: 99px; margin-bottom: 16px; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); animation: ring 2s infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 80%,100% { box-shadow: 0 0 0 8px transparent; } }
.home-title { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -.035em; line-height: 1.1; margin: 0 0 10px; }
.home-sub { font-size: var(--fs-lg); color: var(--text-dim); margin: 0 0 26px; }
.quick-start { width: 100%; max-width: 680px; display: flex; align-items: center; gap: 8px; padding: 7px 7px 7px 16px; border-radius: 16px;
background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-float); transition: border-color var(--t-base), box-shadow var(--t-base); }
.quick-start:focus-within { border-color: var(--accent); box-shadow: var(--shadow-float), 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.qs-icon { color: var(--text-faint); display: grid; }
.quick-start input { flex: 1; min-width: 0; border: none !important; box-shadow: none !important; background: transparent !important; font-family: var(--mono); font-size: 14px; padding: 8px 4px; min-height: 40px; }
.qs-detect { font-size: var(--fs-xs); font-weight: 600; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--radius-sm); padding: 3px 8px; white-space: nowrap; }
.quick-start .btn { min-height: 42px; border-radius: 11px; padding: 0 18px; }
.home-block { margin-top: 32px; }
.home-block-title, .home-recent-title { font-size: var(--fs-xs); font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); margin-bottom: 12px; }
.home-suggestions { max-width: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.home-card { flex-direction: row; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius-lg); box-shadow: var(--shadow-xs);
display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; row-gap: 1px; }
.home-card-icon { grid-row: span 2; width: 36px; height: 36px; border-radius: 10px; background: var(--surface-3); color: var(--text-dim); transition: background var(--t-fast), color var(--t-fast); }
.home-card-title { font-size: var(--fs-sm); font-weight: 650; align-self: end; }
.home-card-desc { font-size: var(--fs-xs); color: var(--text-faint); align-self: start; }
.home-card:hover { background: var(--surface); border-color: var(--accent-line); transform: translateY(-1px); box-shadow: var(--shadow-float); }
.home-card:hover .home-card-icon { background: var(--accent-soft); color: var(--accent); }
.home-card { transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast); }
.home-recent { max-width: none; margin-top: 32px; }
.home-recent-list { gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-xs); }
.home-recent-item { border: none; border-bottom: 1px solid var(--border); border-radius: 0; padding: 12px 16px; background: transparent; }
.home-recent-item:last-child { border-bottom: none; }
.home-recent-item:hover { background: var(--hover); }
.home-recent-name { font-weight: 550; }
/* onboarding */
.onboarding { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-lg); padding: 18px 20px; box-shadow: var(--shadow-xs); margin-top: 8px; }
.ob-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.ob-title { font-size: var(--fs-base); font-weight: 650; }
.ob-sub { font-size: var(--fs-xs); color: var(--text-faint); }
.ob-bar { flex: 1; height: 6px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.ob-bar span { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .4s ease; }
.ob-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ob-step { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-2); }
.ob-step.done { opacity: .6; }
.ob-step.done .ob-body b { text-decoration: line-through; text-decoration-color: var(--text-faint); }
.ob-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: var(--fs-xs); font-weight: 650;
border: 1px solid var(--border-strong); color: var(--text-dim); background: var(--surface); }
.ob-step.done .ob-n { background: var(--sev-low-bg); border-color: transparent; color: var(--sev-low-fg); }
.ob-n .ico { width: 14px; height: 14px; stroke-width: 2.4; }
.ob-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ob-body b { font-size: var(--fs-sm); font-weight: 600; }
.ob-body span { font-size: var(--fs-xs); color: var(--text-faint); }
/* ---------------------------------------------------------------- wizard */
.wizard { position: relative; }
.stepper { gap: 6px; padding: 12px 32px; background: transparent; border-bottom: 1px solid var(--border); justify-content: flex-start; }
.step-tab { border: 1px solid transparent; border-radius: var(--radius-pill); padding: 5px 14px 5px 6px; gap: 8px; color: var(--text-faint); font-size: var(--fs-sm); font-weight: 550; }
.step-tab:hover { color: var(--text); background: var(--hover); }
.step-tab .n { width: 22px; height: 22px; font-size: 11px; font-family: var(--sans); font-weight: 650; border-color: var(--border-strong); background: var(--surface); }
.step-tab.active { color: var(--text); background: var(--surface); border-color: var(--border); border-bottom-color: var(--border); box-shadow: var(--shadow-xs); }
.step-tab.active .n { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.step-tab.done { color: var(--text-dim); }
.step-tab.done .n { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); font-size: 0; }
.step-tab.done .n::before { content: ""; width: 10px; height: 6px; border: solid var(--accent); border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }
.step-tab + .step-tab::before { content: ""; width: 18px; height: 1px; background: var(--border-strong); margin: 0 4px 0 -14px; order: -1; }
.step-tab + .step-tab { padding-left: 6px; }
.wizard-body { padding: 32px 32px 120px; }
.wizard-panel { max-width: 760px; gap: 18px; }
.wizard-panel-wide { max-width: 1100px; margin: 0 auto; }
.panel-head { margin-bottom: 4px; }
.panel-title { font-size: 22px; font-weight: 700; letter-spacing: -.025em; margin: 0; }
.panel-desc { font-size: var(--fs-base); color: var(--text-dim); margin: 4px 0 0; }
.mode-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mode-tile { border-radius: var(--radius-md); padding: 12px 14px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-xs); gap: 1px; position: relative;
transition: border-color var(--t-fast), background var(--t-fast); }
.mode-tile .t { font-size: var(--fs-sm); font-weight: 650; color: var(--text); }
.mode-tile .d { font-size: var(--fs-xs); color: var(--text-faint); }
.mode-tile:hover { border-color: var(--border-strong); }
.mode-tile.selected { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.mode-tile.selected::after { content: ""; position: absolute; top: 12px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 26px 16px; text-align: center; cursor: pointer;
border: 1.5px dashed var(--border-strong); border-radius: var(--radius-md); background: var(--surface-2); color: var(--text-dim); font-size: var(--fs-sm); transition: border-color var(--t-fast), background var(--t-fast); }
.dropzone:hover { border-color: var(--accent); background: var(--accent-soft); }
.dropzone .ico { width: 22px; height: 22px; color: var(--text-faint); margin-bottom: 4px; }
.dropzone input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone b { color: var(--accent); font-weight: 600; }
.wizard-footer { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 32px; border-top: 1px solid var(--border); justify-content: space-between;
background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px) saturate(1.4); }
.wizard-footer .footer-actions { margin-left: auto; }
.wizard-footer #btnStepBack[hidden] + .footer-actions { margin-left: auto; }
.review-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-xs); }
.review-item { border: none; border-radius: 0; padding: 14px 16px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 0 -1px -1px 0; }
.review-item .k { font-size: var(--fs-xs); color: var(--text-faint); font-weight: 500; }
.review-item .v { font-size: var(--fs-sm); font-weight: 600; margin-top: 2px; }
.review-item .v.mono { font-size: 12px; font-weight: 500; }
.auth-mode-toggle, .seg-tabs { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--border); background: var(--surface-3); border-radius: var(--radius-sm); }
.auth-mode-toggle button, .seg-tab { border: none; background: transparent; border-radius: 5px; padding: 6px 12px; font-size: var(--fs-xs); font-weight: 600; color: var(--text-dim); }
.auth-mode-toggle button.selected, .seg-tab.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.seg-tab + .seg-tab { border-left: none; }
.preset-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.preset-tile { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 12px 14px; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast); }
.preset-tile .t { font-size: var(--fs-sm); font-weight: 650; color: var(--text); }
.preset-tile .d { font-size: var(--fs-xs); color: var(--text-faint); }
.preset-tile:hover { border-color: var(--border-strong); }
.preset-tile.selected { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
details.adv { padding: 0; }
details.adv > summary { display: flex; align-items: center; gap: 10px; padding: 16px 20px; cursor: pointer; list-style: none; font-weight: 650; font-size: var(--fs-sm); }
details.adv > summary::-webkit-details-marker { display: none; }
details.adv > summary .adv-hint { color: var(--text-faint); font-weight: 450; font-size: var(--fs-xs); }
details.adv > summary .caret-ico { margin-left: auto; }
details.adv[open] > summary { border-bottom: 1px solid var(--border); }
.adv-body { padding: 20px 22px; }
.c2-opts { display: flex; flex-direction: column; gap: 4px; padding: 6px 0 6px 44px; }
.pill-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-check { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-sm); font-weight: 500; padding: 6px 12px; border: 1px solid var(--border); border-radius: 99px; cursor: pointer; background: var(--surface); }
.pill-check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.pill-check input { accent-color: var(--accent); margin: 0; }
.lead-toolbar { gap: 8px; }
.chips.seg { padding: 3px; gap: 2px; background: var(--surface-3); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.chip { border: none; background: transparent; border-radius: 5px; padding: 5px 10px; font-weight: 600; color: var(--text-dim); }
.chip-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.chip-active span { color: var(--accent); }
.cat-card { border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-xs); }
.cat-head { padding: 12px 16px; background: transparent; }
.cat-head:hover { background: var(--hover); }
.agent-rows { background: var(--surface-2); }
.agent-row { padding: 8px 16px; }
.switch .track { background: var(--border-strong); }
/* ---------------------------------------------------------------- run pages */
.run-head { padding: 20px 32px 16px; border-bottom: none; align-items: flex-end; }
.crumb { display: inline-flex; align-items: center; gap: 6px; border: none; background: transparent; color: var(--text-faint); font-size: var(--fs-xs); font-weight: 550; padding: 0; margin-bottom: 8px; cursor: pointer; }
.crumb:hover { color: var(--text); }
.crumb .ico { width: 13px; height: 13px; }
.run-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.run-target { font-family: var(--sans); font-size: 22px; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
.run-state { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 600; padding: 3px 10px 3px 8px; border-radius: 99px;
background: var(--surface-3); color: var(--text-dim); border: 1px solid var(--border); text-transform: capitalize; }
.run-state.live { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.run-meta { font-size: var(--fs-xs); color: var(--text-faint); margin-top: 6px; gap: 8px; }
.run-meta:empty { display: none; }
.run-facts span:not(:last-child)::after { content: "·"; margin-left: 8px; color: var(--border-strong); }
.run-actions { gap: 8px; align-items: center; }
.progress-wrap { padding: 0 32px 14px; }
.progress-bar { height: 6px; border: none; background: var(--surface-3); }
.progress-fill { background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #22d3ee)); border-radius: 99px; }
.run-sev-bar { padding: 0 32px; }
.run-tabs { padding: 0 32px; gap: 2px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.run-tabs::-webkit-scrollbar { display: none; }
.run-tab { padding: 11px 12px; font-size: var(--fs-sm); font-weight: 550; color: var(--text-faint); white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.run-tab:hover { color: var(--text); }
.run-tab.active { color: var(--text); border-bottom-color: var(--accent); }
.run-tab > span:not(.tab-dot):not(.tab-badge) { font-size: 11px; color: var(--text-faint); background: var(--surface-3); border-radius: 99px; padding: 1px 7px; margin-left: 4px; font-variant-numeric: tabular-nums; }
.run-tab.active > span:not(.tab-dot) { background: var(--accent-soft); color: var(--accent); }
.run-body { padding: 22px 32px 48px; }
.agent-panel { margin: 0 32px 14px; border-radius: var(--radius-md); }
.run-pinned { max-height: 3em; }
/* tables */
.table-wrap { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-xs); }
.data-table { font-size: var(--fs-sm); }
.data-table th { background: var(--surface-2); color: var(--text-faint); font-size: var(--fs-xs); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.data-table td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover, .data-table tr:hover td { background: var(--hover); }
.sev { border-radius: 6px; padding: 3px 8px; font-size: 11px; font-weight: 650; text-transform: capitalize; letter-spacing: 0; display: inline-flex; align-items: center; gap: 5px; }
.sev::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sev-pill { border-radius: 99px; text-transform: capitalize; letter-spacing: 0; font-weight: 600; font-size: var(--fs-xs); padding: 4px 11px; }
.status-badge, .wire-badge, .chain-status, .gm-st { font-size: 11px; padding: 2px 8px; }
.findings-toolbar { margin-bottom: 14px; }
.kpi-row { gap: 12px; }
.kpi, .stat-tile, .stat-card, .dash-card, .at-card, .cv-row, .chain-card, .todo-chain, .deliv-card, .gm-detail, .reg-banner, .trace-files, .trace-hit, .adaptive-section {
border-radius: var(--radius-lg); border-color: var(--border); box-shadow: var(--shadow-xs); }
.cv-row, .at-card, .trace-hit { border-radius: var(--radius-sm); }
.kpi-v { font-family: var(--sans); font-weight: 700; letter-spacing: -.02em; }
.stat-v { letter-spacing: -.03em; font-weight: 700; }
.dash-card { padding: 20px 22px; }
.dash-card h3 { font-size: var(--fs-sm); font-weight: 650; }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 56px 24px; color: var(--text-faint); font-size: var(--fs-sm);
border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); background: var(--surface-2); margin-top: 12px; }
.empty-state b { color: var(--text); font-size: var(--fs-base); font-weight: 650; }
.log-panel { border-radius: var(--radius-md); background: var(--term-bg); color: var(--term-fg); border-color: var(--border); }
.log-line { color: #c5c5cf; }
.send-prompt-row { border-radius: var(--radius-md); min-height: 46px; box-shadow: var(--shadow-xs); }
.send-prompt-row:focus-within { border-color: var(--accent); }
/* graph */
.graph-split { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-xs); min-height: 620px; }
.graph-finding-list { border-right: 1px solid var(--border); background: var(--surface-2); width: 240px; }
.gfl-header { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); padding: 14px 14px 8px; }
.gfl-item { border-bottom: none; border-radius: var(--radius-sm); margin: 1px 6px; width: calc(100% - 12px); padding: 8px 10px; }
.gfl-item.active { border-left: none; background: var(--surface); box-shadow: var(--shadow-xs), 0 0 0 1px var(--border); color: var(--text); }
.graph-main { padding: 12px; }
.gm-wrap { border-radius: var(--radius-md); background-color: var(--bg); height: 640px;
background-image: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 60%), radial-gradient(var(--border-strong) .9px, transparent .9px);
box-shadow: none; }
.gm-circle { border-color: var(--surface); }
.gm-node-label { color: var(--text); }
.gm-leg { border-radius: 99px; }
/* ---------------------------------------------------------------- modals */
.modal-overlay { background: var(--overlay-scrim); backdrop-filter: blur(4px); padding: 16px; animation: fade-in .16s ease-out; }
.modal { border-radius: var(--radius-xl); border: 1px solid var(--border); box-shadow: var(--shadow-float); background: var(--surface); width: 600px; animation: modal-in .2s cubic-bezier(.2, .8, .2, 1); }
.modal-sm { width: 500px; }
.modal-lg { width: 880px; }
.modal-head { padding: 18px 22px; border-bottom: 1px solid var(--border); gap: 12px; }
.modal-head .title { font-size: var(--fs-lg); font-weight: 650; letter-spacing: -.015em; }
.modal-head .modal-sub { font-size: var(--fs-xs); color: var(--text-faint); font-weight: 450; margin-top: 2px; }
.modal-tabs { padding: 0 22px; gap: 4px; }
.modal-tab { padding: 11px 6px; font-weight: 550; margin-bottom: -1px; }
.modal-tab + .modal-tab { margin-left: 10px; }
.modal-body { padding: 22px; }
.modal-foot { padding: 14px 22px; gap: 8px; background: var(--surface-2); align-items: center; }
.foot-note { margin-right: auto; font-size: var(--fs-xs); color: var(--text-faint); }
.lead-p { font-size: var(--fs-base); color: var(--text-dim); margin: 0 0 16px; }
.feature-grid { gap: 10px; }
.feature-item { flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-2); font-size: var(--fs-sm); }
.feature-item span { color: var(--text-faint); font-size: var(--fs-xs); }
.profile-card { border-radius: var(--radius-md); background: var(--surface-2); }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes sheet-in { from { transform: translateX(32px); opacity: 0; } to { transform: none; opacity: 1; } }
/* finding detail → right-hand sheet */
.modal-sheet { justify-content: flex-end; align-items: stretch; padding: 0; }
.modal-sheet .modal { width: min(820px, 100vw); max-width: 100vw; max-height: none; height: 100%; border-radius: 0; border-width: 0 0 0 1px; animation: sheet-in .22s cubic-bezier(.2, .8, .2, 1); }
.fm-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fm-head .title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-meta-grid { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 16px; }
.fm-action-btn { border-radius: var(--radius-sm); font-weight: 550; }
/* report modal */
.report-status { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); color: var(--text-dim); padding: 10px 12px; border-radius: var(--radius-sm); margin-bottom: 14px; border: 1px solid var(--border); background: var(--surface-2); }
.report-status b { color: var(--text); }
.rs-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-faint); flex: none; }
.report-status.ok .rs-dot { background: var(--sev-low-bar); box-shadow: 0 0 0 3px var(--sev-low-bg); }
.report-formats { display: flex; flex-direction: column; gap: 8px; }
.report-format { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface);
color: var(--text); text-decoration: none; text-align: left; font: inherit; cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast); }
.report-format:hover { border-color: var(--accent-line); background: var(--accent-soft); color: var(--text); }
.report-format > .ico { margin-left: auto; color: var(--text-faint); width: 16px; height: 16px; }
.rf-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 10.5px; font-weight: 750; letter-spacing: .03em; flex: none; }
.rf-html { background: var(--accent-soft); color: var(--accent); }
.rf-pdf { background: var(--sev-critical-bg); color: var(--sev-critical-fg); }
.rf-md { background: var(--surface-3); color: var(--text-dim); }
.rf-csv { background: var(--sev-low-bg); color: var(--sev-low-fg); }
.rf-body { display: flex; flex-direction: column; min-width: 0; }
.rf-body b { font-size: var(--fs-sm); font-weight: 650; }
.rf-body span { font-size: var(--fs-xs); color: var(--text-faint); }
/* command palette */
.cmdk-overlay { align-items: flex-start; padding-top: 14vh; }
.cmdk { width: 600px; max-width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-float); overflow: hidden; animation: modal-in .16s ease-out; }
.cmdk-input { display: flex; align-items: center; gap: 10px; padding: 6px 16px; border-bottom: 1px solid var(--border); color: var(--text-faint); }
.cmdk-input input { flex: 1; border: none !important; box-shadow: none !important; background: transparent !important; font-size: var(--fs-lg); min-height: 48px; padding: 0; }
.cmdk-list { max-height: 380px; overflow-y: auto; padding: 6px; }
.cmdk-group { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); padding: 10px 10px 4px; }
.cmdk-item { display: flex; align-items: center; gap: 10px; width: 100%; border: none; background: transparent; color: var(--text); font-size: var(--fs-sm); padding: 9px 10px; border-radius: var(--radius-sm); text-align: left; }
.cmdk-item.sel, .cmdk-item:hover { background: var(--accent-soft); }
.cmdk-item kbd { margin-left: auto; }
.cmdk-sub { color: var(--text-faint); font-family: var(--mono); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-empty { padding: 28px; text-align: center; color: var(--text-faint); font-size: var(--fs-sm); }
/* toasts */
.toast { border-radius: var(--radius-md); border: 1px solid var(--border); border-left-width: 1px; box-shadow: var(--shadow-float); padding: 12px 14px 12px 36px; position: relative; animation: modal-in .2s ease-out; }
.toast::before { content: ""; position: absolute; left: 14px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.toast-ok::before { background: var(--sev-low-bar); }
.toast-warn::before { background: var(--sev-high-bar); }
.toast-error::before { background: var(--sev-critical-bar); }
/* terminal */
.term-dock { border-top: 1px solid var(--border); }
/* badges */
.badge-experimental { font-size: 10.5px; padding: 1px 7px; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); }
:root[data-theme="dark"] .badge-experimental { background: var(--accent-soft); color: var(--accent); }
.pill { font-size: var(--fs-2xs); }
/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
.home-suggestions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
.mobile-bar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: var(--z-header); height: 54px; padding: 0 12px;
padding-top: env(safe-area-inset-top); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px) saturate(1.4); border-bottom: 1px solid var(--border); }
.mobile-brand { display: flex; align-items: center; gap: 8px; font-weight: 650; letter-spacing: -.015em; flex: 1; }
.mobile-brand .mark { width: 20px; height: 20px; }
.app { height: calc(100dvh - 54px); }
.sidebar { top: 0; width: min(300px, 86vw); left: -320px; border-radius: 0 var(--radius-xl) var(--radius-xl) 0; }
.sidebar.open { left: 0; }
.topbar, .run-head { padding-left: 20px; padding-right: 20px; }
.topbar { position: static; }
.page-body, .dash-body, .run-body, .wizard-body { padding-left: 20px; padding-right: 20px; }
.wizard-body { padding-bottom: 120px; }
.stepper, .run-tabs, .asset-tabs, .progress-wrap, .run-sev-bar { padding-left: 20px; padding-right: 20px; }
.agent-panel { margin-left: 20px; margin-right: 20px; }
.wizard-footer { padding: 12px 20px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
.ob-steps { grid-template-columns: 1fr; }
.graph-split { flex-direction: column; }
.graph-finding-list { width: auto; max-height: 180px; border-right: none; border-bottom: 1px solid var(--border); }
}
@media (max-width: 680px) {
.hide-sm { display: none; }
.topbar { padding: 14px 16px; }
.topbar-sub { display: block; }
.page-body, .dash-body, .run-body, .wizard-body { padding-left: 16px; padding-right: 16px; }
.stepper, .run-tabs, .asset-tabs, .progress-wrap, .run-sev-bar { padding-left: 16px; padding-right: 16px; }
.run-head { padding: 16px; flex-direction: column; align-items: stretch; }
.run-actions { width: 100%; }
.run-actions > .btn { flex: 1 1 auto; }
.run-actions .menu { flex: none; }
.run-target { font-size: 19px; }
.home-landing { padding: 28px 16px 48px; }
.home-sub { font-size: var(--fs-base); margin-bottom: 18px; }
.quick-start { flex-wrap: wrap; padding: 8px; border-radius: 14px; }
.quick-start .qs-icon { display: none; }
.quick-start input { flex: 1 1 100%; padding: 6px 8px; }
.quick-start .btn { flex: 1; }
.home-suggestions { grid-template-columns: 1fr 1fr; gap: 8px; }
.home-card { padding: 12px; column-gap: 10px; }
.home-card-icon { width: 32px; height: 32px; }
.mode-tiles, .preset-tiles { grid-template-columns: 1fr 1fr; }
.step-tab .step-l { display: none; }
.step-tab.active .step-l { display: inline; }
.step-tab + .step-tab::before { width: 10px; margin-left: -10px; }
.modal-overlay { padding: 0; align-items: flex-end; }
.modal, .modal-sm, .modal-lg { width: 100%; max-width: 100%; max-height: 92dvh; border-radius: var(--radius-xl) var(--radius-xl) 0 0; animation: sheet-up .24s cubic-bezier(.2, .8, .2, 1); }
.modal-sheet .modal { height: 92dvh; border-radius: var(--radius-xl) var(--radius-xl) 0 0; border-width: 1px 0 0; }
.cmdk-overlay { align-items: flex-start; padding: 12px; }
.cmdk { border-radius: var(--radius-lg); }
.modal-foot { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
.review-grid { grid-template-columns: 1fr 1fr; }
.inline-card { flex-wrap: wrap; }
.inline-card .btn { margin-left: 50px; }
.lead-toolbar .search-wrap { flex: 1 1 100%; max-width: none; }
.config-grid { grid-template-columns: 1fr; }
.asset-tabs { overflow-x: auto; }
.toasts { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}
@keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (pointer: coarse) {
.btn { min-height: 40px; }
.btn-sm { min-height: 34px; }
.sb-nav-item { min-height: 40px; }
input[type="text"], input[type="number"], input[type="password"], select, textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
.pulse-dot { animation: none; }
}
.form-card > .field-group + .field-row, .form-card > .field-row + .field-group, .form-card > .field-row + .field-row { margin-top: 18px; }
.form-card > .field-row > .field-group { margin-top: 0; }
.lead-toolbar select.input-sm { width: auto; min-width: 170px; flex: none; }
.lead-toolbar .search-wrap { max-width: 340px; }
.auth-mode-toggle { align-self: flex-start; }
.form-card .auth-mode-toggle { margin-top: 14px; }
@media (min-width: 900px) { .review-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.topbar input.topbar-search { width: 260px; flex: none; }
.topbar > div:first-child { min-width: 0; }
.topbar-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 680px) { .topbar input.topbar-search { width: 100%; order: 3; flex: 1 1 100%; } }
.cell-main { font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 420px; }
.cell-sub { font-size: 11.5px; color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 420px; margin-top: 1px; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table .nowrap { white-space: nowrap; }
.data-table .muted { font-size: inherit; }
.tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--surface-3); color: var(--text-dim); border: 1px solid var(--border); text-transform: capitalize; }
.state-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 550; color: var(--text-dim); text-transform: capitalize; }
.state-dot.state-complete, .state-dot.state-completed, .state-dot.state-done { background: var(--sev-low-bar); }
.state-dot.state-interrupted { background: var(--sev-high-bar); }
.search-wrap input[type="text"], .sb-search input[type="text"] { padding-left: 32px; }
.search-wrap .search-icon, .sb-search .search-icon { left: 11px; }
.kpi-v { font-size: 26px; }
.gm-filter-wrap { display: inline-flex; align-items: center; gap: 6px; }
.gm-filter-label { font-size: 11px; font-weight: 600; color: var(--text-faint); text-transform: uppercase; letter-spacing: .05em; }
select.gm-filter, .gm-filter select { min-height: 30px; width: auto; min-width: 110px; padding: 4px 28px 4px 10px; font-size: 12px; }
@media (max-width: 900px) { .sidebar { overflow-y: auto; } .sb-nav { overflow: visible; } .sb-run-history { min-height: 260px; flex: none; } }
/* settings */
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 16px; align-items: start; max-width: 1100px; }
.settings-side { display: flex; flex-direction: column; gap: 16px; }
.status-pill { font-size: 11px; font-weight: 650; padding: 3px 9px; border-radius: 99px; white-space: nowrap; align-self: flex-start; }
.status-pill.ok { background: var(--sev-low-bg); color: var(--sev-low-fg); }
.status-pill.off { background: var(--surface-3); color: var(--text-faint); }
.kv-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: var(--fs-sm); }
.kv-list > div { display: flex; justify-content: space-between; gap: 12px; }
.kv-list span { color: var(--text-faint); }
.btn-row { display: flex; gap: 8px; }
.danger-card { border-color: color-mix(in srgb, var(--sev-critical-fg) 30%, var(--border)); }
@media (max-width: 900px) { .settings-grid { grid-template-columns: 1fr; } }
/* keys */
.detect-box { padding: 16px; border-radius: var(--radius-md); background: var(--accent-soft); border: 1px solid var(--accent-line); display: flex; flex-direction: column; gap: 8px; }
.detect-row { display: flex; gap: 8px; }
.detect-row input { flex: 1; font-family: var(--mono); }
.field-ok { color: var(--sev-low-fg); }
.field-bad { color: var(--sev-critical-fg); }
.key-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.key-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.key-row:last-child { border-bottom: none; }
.key-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); flex: none; }
.key-row.set .key-dot { background: var(--sev-low-bar); box-shadow: 0 0 0 3px var(--sev-low-bg); }
.key-name { display: flex; flex-direction: column; width: 170px; min-width: 0; }
.key-name b { font-size: var(--fs-sm); font-weight: 600; }
.key-name span { font-size: var(--fs-xs); color: var(--text-faint); }
.key-row input { flex: 1; min-width: 140px; min-height: 32px; font-family: var(--mono); }
.key-row .key-verify { flex-basis: 100%; padding-left: 18px; }
.key-row .key-verify:empty { display: none; }
@media (max-width: 680px) { .detect-row { flex-direction: column; } .key-name { width: auto; flex: 1; } }
/* framework mapping */
.fw-map { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 18px; }
.fw-col { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: 14px 16px; box-shadow: var(--shadow-xs); }
.fw-title { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); margin-bottom: 8px; }
.fw-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: var(--fs-sm); border-bottom: 1px dashed var(--border); }
.fw-row:last-child { border-bottom: none; }
.fw-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--text-faint); }
.fw-name { flex: 1; text-transform: capitalize; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fw-n { font-family: var(--mono); font-size: 12px; color: var(--text-dim); }
/* ==========================================================================
Attack graph v5 — lanes, compact nodes, quiet edges, floating inspector
========================================================================== */
:root { --gx-edge: #c3c3cf; --gk-asset: #3e7bfa; --gk-surface: #0ea5a4; --gk-weak: #e5484d; --gk-step: #8b5cf6; --gk-cred: #d97706; --gk-impact: #db2777; --gk-meta: #8a8a98; }
:root[data-theme="dark"] { --gx-edge: #3b3b46; --gk-asset: #6b9bff; --gk-surface: #2dd4bf; --gk-weak: #ff6b70; --gk-step: #a78bfa; --gk-cred: #fbbf24; --gk-impact: #f472b6; }
.graph-split { min-height: 680px; }
.graph-main { padding: 0; display: flex; flex-direction: column; min-width: 0; }
.gx-toolbar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.gx-switch { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 550; color: var(--text-dim); cursor: pointer; user-select: none; }
.gx-switch input { position: absolute; opacity: 0; pointer-events: none; }
.gx-track { width: 30px; height: 18px; border-radius: 99px; background: var(--border-strong); position: relative; transition: background var(--t-fast); flex: none; }
.gx-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: transform var(--t-fast); }
.gx-switch input:checked + .gx-track { background: var(--accent); }
.gx-switch input:checked + .gx-track::after { transform: translateX(12px); }
.gx-switch input:focus-visible + .gx-track { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.gx-filters { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.gx-kc { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.gx-kc:empty { display: none; }
.gx-kc-label { font-size: var(--fs-xs); color: var(--text-faint); white-space: nowrap; }
.gx-kc-label b { color: var(--text); }
.gx-kc-steps { display: flex; flex: 1; gap: 3px; min-width: 0; }
.gx-kc-step { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gx-kc-step i { height: 4px; border-radius: 99px; background: var(--surface-3); }
.gx-kc-step.on i { background: var(--accent); }
.gx-kc-step em { font-style: normal; font-size: 10px; color: var(--text-faint); text-transform: capitalize; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.gx-kc-step.on em { color: var(--text-dim); }
.gm-finding-desc { margin: 12px 14px 0; }
.gm-wrap { flex: 1; height: auto; min-height: 560px; border: none; border-radius: 0; position: relative; overflow: hidden; cursor: grab;
background-color: var(--surface-2);
background-image: radial-gradient(color-mix(in srgb, var(--text-faint) 28%, transparent) 1px, transparent 1px);
background-size: 22px 22px; }
.gm-stage { will-change: transform; }
.gm-stage.gx-anim { transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
/* lanes */
.gx-lane { position: absolute; top: 0; border-radius: 16px; background: color-mix(in srgb, var(--surface) 55%, transparent); border: 1px solid color-mix(in srgb, var(--border) 70%, transparent); pointer-events: none; }
.gx-lane-h { display: flex; align-items: center; gap: 7px; padding: 10px 14px; font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); }
.gx-lane-h b { margin-left: auto; font-weight: 600; color: var(--text-faint); letter-spacing: 0; }
.gx-lane-dot, .gx-leg-dot { width: 8px; height: 8px; border-radius: 3px; background: var(--gk-meta); flex: none; }
.gk-asset { --gk: var(--gk-asset); } .gk-surface { --gk: var(--gk-surface); } .gk-weak { --gk: var(--gk-weak); }
.gk-step { --gk: var(--gk-step); } .gk-cred { --gk: var(--gk-cred); } .gk-impact { --gk: var(--gk-impact); } .gk-meta { --gk: var(--gk-meta); }
.gx-lane .gx-lane-dot, .gx-leg .gx-leg-dot { background: var(--gk); }
/* nodes */
.gx-node { position: absolute; display: flex; flex-direction: row; align-items: center; gap: 10px; padding: 0 10px 0 8px; box-sizing: border-box;
background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-xs); cursor: pointer;
transition: opacity .15s, border-color .15s, box-shadow .15s, transform .15s; }
.gx-node:hover { border-color: color-mix(in srgb, var(--gk) 55%, var(--border)); box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--gk) 40%, transparent); transform: translateY(-1px); }
.gx-node:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.gx-node.sel { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.gx-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none;
background: color-mix(in srgb, var(--gk) 14%, transparent); color: var(--gk); }
.gx-ico svg { width: 17px; height: 17px; stroke-width: 1.9; }
.gx-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.gx-title { font-size: 12.5px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-sub { font-size: 11px; font-family: var(--mono); color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-sev { padding: 0; width: 20px; height: 20px; justify-content: center; border-radius: 6px; font-size: 10.5px; flex: none; }
.gx-sev::before { display: none; }
.gx-count { position: absolute; top: -7px; right: -7px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--text); color: var(--bg); font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.gx-node.gx-sev-critical { border-left: 3px solid var(--sev-critical-bar); }
.gx-node.gx-sev-high { border-left: 3px solid var(--sev-high-bar); }
.gm-onpath.gx-node { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 8px 22px -8px color-mix(in srgb, var(--accent) 60%, transparent); }
.gm-onpath .gm-node-label { color: inherit; }
/* edges: quiet by default, colour only when it means something */
.gm-svg .gm-e { fill: none; stroke: var(--gx-edge); stroke-width: 1.5; opacity: 1; filter: none; transition: opacity .15s, stroke .15s; }
.gm-svg .gm-e.es-confirmed { stroke-dasharray: none; }
.gm-svg .gm-e.es-needs_validation, .gm-svg .gm-e.es-needs_review { stroke-dasharray: 6 4; }
.gm-svg .gm-e.es-hypothesis { stroke-dasharray: 2 4; }
.gm-svg .gm-e:hover { stroke: var(--text-dim); stroke-width: 2; }
.gm-svg .gm-e.gm-e-onpath { stroke: var(--accent) !important; stroke-width: 2.25 !important; stroke-dasharray: 8 6 !important; animation: gx-flow 1.2s linear infinite; filter: none !important; }
@keyframes gx-flow { to { stroke-dashoffset: -28; } }
.gm-stage.focusing .gx-node:not(.nb):not(.sel) { opacity: .22; }
.gm-stage.focusing .gm-e { opacity: .08; }
.gm-stage.focusing .gm-e.hl { opacity: 1; stroke: var(--accent); stroke-width: 2.25; }
/* overlays */
.gx-legend { position: absolute; left: 12px; bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; max-width: calc(100% - 90px); padding: 5px;
background: color-mix(in srgb, var(--surface) 90%, transparent); border: 1px solid var(--border); border-radius: 12px; backdrop-filter: blur(10px); box-shadow: var(--shadow-sm); }
.gx-leg { display: inline-flex; align-items: center; gap: 6px; border: none; background: transparent; color: var(--text-dim); font-size: 11.5px; font-weight: 550; padding: 4px 8px; border-radius: 7px; cursor: pointer; }
.gx-leg:hover { background: var(--hover); color: var(--text); }
.gx-leg.off { opacity: .4; text-decoration: line-through; }
.gx-leg-sep { width: 1px; height: 16px; background: var(--border); margin: 0 4px; }
.gx-edge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-faint); padding: 0 6px; }
.gx-edge::before { content: ""; width: 18px; border-top: 2px solid var(--text-faint); }
.gx-edge.es-needs_validation::before { border-top-style: dashed; }
.gx-edge.es-hypothesis::before { border-top-style: dotted; }
.gx-stats { position: absolute; left: 12px; top: 12px; display: flex; gap: 12px; font-size: 11.5px; color: var(--text-faint); padding: 6px 10px; border-radius: 10px;
background: color-mix(in srgb, var(--surface) 90%, transparent); border: 1px solid var(--border); backdrop-filter: blur(10px); pointer-events: none; }
.gx-stats b { color: var(--text); font-weight: 650; }
.gx-stat-kc b { color: var(--accent); }
.gm-zoom { left: auto; right: 12px; bottom: 12px; border-radius: 12px; flex-direction: column; background: color-mix(in srgb, var(--surface) 90%, transparent); box-shadow: var(--shadow-sm); }
.gm-zoom .btn { border: none; box-shadow: none; background: transparent; border-radius: 8px; min-height: 30px; }
.gm-zoom .btn:hover { background: var(--hover); }
/* inspector */
.gx-inspector { position: absolute; top: 12px; right: 12px; bottom: 60px; width: 320px; margin: 0; padding: 0; overflow-y: auto;
background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-float); cursor: default; animation: sheet-in .2s ease-out; }
.gx-insp-head { display: flex; align-items: center; gap: 10px; padding: 14px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); margin: 0 !important; }
.gx-insp-t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.gx-insp-t b { font-size: var(--fs-sm); font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-insp-kind { font-size: 10.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); }
.gx-open { margin: 12px 14px 0; width: calc(100% - 28px); }
.gx-props { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; padding: 14px; font-size: 12px; }
.gx-props dt { color: var(--text-faint); text-transform: capitalize; white-space: nowrap; }
.gx-props dd { margin: 0; font-family: var(--mono); font-size: 11.5px; overflow-wrap: anywhere; color: var(--text); }
.gx-insp-sec { display: flex; justify-content: space-between; padding: 10px 14px 6px; font-size: 10.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); border-top: 1px solid var(--border); }
.gx-rels { display: flex; flex-direction: column; padding: 0 8px 10px; }
.gx-rel { display: flex; align-items: center; gap: 8px; border: none; background: transparent; color: var(--text); text-align: left; padding: 7px 6px; border-radius: 8px; font-size: 12px; cursor: pointer; }
.gx-rel:hover { background: var(--hover); }
.gx-rel-dir { color: var(--text-faint); font-family: var(--mono); }
.gx-rel-type { font-size: 10.5px; color: var(--accent); background: var(--accent-soft); border-radius: 5px; padding: 1px 6px; white-space: nowrap; }
.gx-rel-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-rel-st { width: 7px; height: 7px; border-radius: 50%; background: var(--text-faint); flex: none; }
.gx-rel-st.es-confirmed { background: var(--sev-low-bar); }
.gx-rel-st.es-needs_validation { background: var(--sev-medium-bar); }
/* attack path list */
.graph-finding-list { padding-bottom: 10px; }
.gfl-note { font-style: normal; font-size: 11px; color: var(--text-faint); }
.gfl-item .gfl-sev { width: 18px; height: 18px; padding: 0; justify-content: center; border-radius: 5px; }
.gfl-item .gfl-sev::before { display: none; }
@media (max-width: 900px) { .gx-inspector { left: 12px; width: auto; top: auto; bottom: 12px; max-height: 60%; } .gm-wrap { min-height: 460px; } .gx-kc-step em { display: none; } }
@media (prefers-reduced-motion: reduce) { .gm-svg .gm-e.gm-e-onpath { animation: none; } }
.graph-split { height: min(78vh, 820px); min-height: 560px; align-items: stretch; }
.graph-finding-list { overflow-y: auto; min-height: 0; }
.graph-main { min-height: 0; overflow: hidden; }
.gm-wrap { flex: 1 1 auto; min-height: 0; height: auto; }
@media (max-width: 900px) { .graph-split { height: auto; } .gm-wrap { flex: none; height: 520px; } }
.gx-stats { pointer-events: auto; align-items: center; }
.gx-showall { border: none; background: var(--accent-soft); color: var(--accent); font: inherit; font-weight: 600; font-size: 11px; border-radius: 6px; padding: 2px 8px; cursor: pointer; }
.gm-stage.gx-far .gx-txt, .gm-stage.gx-far .gx-sev, .gm-stage.gx-far .gx-count { visibility: hidden; }
.gm-stage.gx-far .gx-node { background: color-mix(in srgb, var(--gk) 10%, var(--surface)); border-color: color-mix(in srgb, var(--gk) 35%, var(--border)); }
.gm-stage.gx-far .gx-lane-h { font-size: 26px; padding: 18px 22px; }
.gm-stage.gx-far .gx-lane-h b { font-size: 22px; }
.gm-finding-desc { max-height: 190px; flex: none; }
.ai-summary { display: flex; align-items: center; gap: 14px; }
.ai-summary-t { flex: 1; min-width: 0; }
.ai-summary-t .card-title { font-family: var(--mono); font-size: var(--fs-sm); }
.ai-card.needs-key { border-color: color-mix(in srgb, var(--sev-medium-bar) 45%, var(--border)); }
.ai-card.needs-key .cc-icon { background: var(--sev-medium-bg); color: var(--sev-medium-fg); }
.ai-change { margin-top: 12px; }
.ai-change > summary { cursor: pointer; font-size: var(--fs-xs); font-weight: 600; color: var(--text-faint); list-style: none; display: inline-flex; }
.ai-change > summary::-webkit-details-marker { display: none; }
.ai-change > summary:hover { color: var(--accent); }
.ai-change[open] > summary { margin-bottom: 12px; color: var(--text-dim); }
.key-empty { padding: 14px; font-size: var(--fs-sm); color: var(--text-faint); }
.key-row .btn { margin-left: auto; }
.key-manual { margin-top: 14px; }
.key-manual > summary { cursor: pointer; font-size: var(--fs-xs); color: var(--text-faint); font-weight: 550; }
.key-manual > summary:hover { color: var(--text); }
.key-manual-row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.key-manual-row select { width: 180px; flex: none; }
.key-manual-row input { flex: 1; min-width: 160px; font-family: var(--mono); }
/* ==========================================================================
Chains + dependencies
========================================================================== */
.cx-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.cx-note { font-size: var(--fs-xs); color: var(--text-faint); margin-left: auto; }
.cx-n { font-variant-numeric: tabular-nums; color: var(--text-faint); margin-left: 2px; }
.seg-tab.active .cx-n { color: var(--accent); }
.cx-sec-h { display: flex; align-items: center; gap: 8px; font-size: 10.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .07em; color: var(--text-faint); margin-bottom: 8px; }
.cx-sec-h span { background: var(--surface-3); border-radius: 99px; padding: 0 7px; letter-spacing: 0; }
.cx-moves { border: 1px solid var(--accent-line); background: color-mix(in srgb, var(--accent-soft) 60%, var(--surface)); border-radius: var(--radius-lg); padding: 14px 16px; margin-bottom: 16px; }
.cx-moves ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cx-moves details summary { cursor: pointer; font-size: var(--fs-xs); color: var(--accent); margin-top: 8px; font-weight: 600; }
.cx-moves details ol { margin-top: 6px; }
.cx-move { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); }
.cx-mt { flex: none; width: 84px; text-align: center; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 3px 0; border-radius: 6px; background: var(--surface); border: 1px solid var(--border); color: var(--text-dim); }
.cx-mt.mt-exploit, .cx-mt.mt-escalate { color: var(--sev-critical-fg); border-color: color-mix(in srgb, var(--sev-critical-fg) 30%, var(--border)); }
.cx-mt.mt-validate, .cx-mt.mt-confirm, .cx-mt.mt-test { color: var(--sev-low-fg); border-color: color-mix(in srgb, var(--sev-low-fg) 30%, var(--border)); }
.cx-mt.mt-pivot, .cx-mt.mt-lateral { color: var(--accent); border-color: var(--accent-line); }
.cx-mdesc { flex: 1; min-width: 0; line-height: 1.5; overflow-wrap: anywhere; }
.cx-list, .dx-list { display: flex; flex-direction: column; gap: 10px; }
.cx-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); overflow: hidden; }
.cx-card > summary { display: flex; align-items: center; gap: 10px; padding: 14px 18px; cursor: pointer; list-style: none; flex-wrap: wrap; }
.cx-card > summary::-webkit-details-marker { display: none; }
.cx-card > summary:hover { background: var(--hover); }
.cx-card[open] > summary { border-bottom: 1px solid var(--border); }
.cx-card > summary .caret-ico { margin-left: 4px; color: var(--text-faint); }
.cx-title { font-weight: 650; font-size: var(--fs-sm); flex: 1 1 280px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-meta { font-size: var(--fs-xs); color: var(--text-faint); white-space: nowrap; }
.cx-pill { font-size: 11px; font-weight: 650; padding: 2px 9px; border-radius: 99px; white-space: nowrap; background: var(--surface-3); color: var(--text-dim); }
.cx-pill.st-confirmed { background: var(--sev-low-bg); color: var(--sev-low-fg); }
.cx-pill.st-needs_validation { background: var(--sev-medium-bg); color: var(--sev-medium-fg); }
.cx-pill.st-ready { background: var(--accent-soft); color: var(--accent); }
.cx-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; padding: 18px; }
.cx-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.cx-step { display: flex; gap: 12px; position: relative; padding-bottom: 14px; }
.cx-step:not(:last-child)::before { content: ""; position: absolute; left: 5px; top: 16px; bottom: 0; width: 2px; background: var(--border); }
.cx-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; margin-top: 4px; border: 2px solid var(--text-faint); background: var(--surface); position: relative; z-index: 1; }
.cx-step.s-confirmed .cx-dot { background: var(--sev-low-bar); border-color: var(--sev-low-bar); }
.cx-step.s-needs_validation .cx-dot { border-color: var(--sev-medium-bar); }
.cx-step.s-confirmed:not(:last-child)::before { background: color-mix(in srgb, var(--sev-low-bar) 45%, var(--border)); }
.cx-step-b { flex: 1; min-width: 0; }
.cx-step-t { font-size: var(--fs-sm); line-height: 1.55; overflow-wrap: anywhere; }
.cx-conf { height: 3px; width: 120px; background: var(--surface-3); border-radius: 99px; margin-top: 6px; overflow: hidden; }
.cx-conf span { display: block; height: 100%; background: var(--accent); }
.cx-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cx-sec p { margin: 0 0 6px; font-size: var(--fs-sm); line-height: 1.55; overflow-wrap: anywhere; }
.cx-sec ul { margin: 0; padding-left: 16px; font-size: var(--fs-sm); display: flex; flex-direction: column; gap: 4px; }
.cx-sec li { overflow-wrap: anywhere; line-height: 1.5; }
.cx-pot { color: var(--text-dim); }
.cx-fs { display: flex; flex-direction: column; gap: 6px; }
.cx-f { display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-sm); line-height: 1.45; overflow-wrap: anywhere; }
.cx-f .sev { flex: none; }
.chain-ref { font-size: 11.5px; background: var(--surface-3); border: 1px solid var(--border); border-radius: 5px; padding: 0 5px; white-space: normal; max-width: none; display: inline; color: var(--text); }
.chain-rel { font-size: 10px; text-transform: lowercase; letter-spacing: 0; padding: 1px 6px; border-radius: 5px; }
.chain-note { font-size: 11px; }
.dx-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); overflow: hidden; }
.dx-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.dx-title { flex: 1 1 260px; min-width: 0; font-weight: 650; font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dx-prog { width: 120px; height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.dx-prog span { display: block; height: 100%; background: var(--sev-low-bar); border-radius: 99px; }
.dx-count { font-size: var(--fs-xs); color: var(--text-faint); font-variant-numeric: tabular-nums; }
.dx-steps { list-style: none; margin: 0; padding: 6px 18px 10px; }
.dx-step { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.dx-step:last-child { border-bottom: none; }
.dx-n { width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 11px; font-weight: 700; border: 1px solid var(--border-strong); color: var(--text-faint); background: var(--surface); }
.dx-n .ico { width: 13px; height: 13px; stroke-width: 2.6; }
.dx-step.done .dx-n { background: var(--sev-low-bg); border-color: transparent; color: var(--sev-low-fg); }
.dx-step.ready .dx-n { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); box-shadow: 0 0 0 4px var(--accent-soft); }
.dx-step.blocked { opacity: .6; }
.dx-b { flex: 1; min-width: 0; }
.dx-t { font-size: var(--fs-sm); line-height: 1.5; overflow-wrap: anywhere; }
.dx-step.done .dx-t { color: var(--text-dim); }
.dx-a { margin-top: 6px; font-size: var(--fs-sm); padding: 8px 10px; border-radius: var(--radius-sm); background: var(--accent-soft); border: 1px solid var(--accent-line); overflow-wrap: anywhere; }
.dx-a span { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin-right: 8px; }
.dx-w { margin-top: 4px; font-size: var(--fs-xs); color: var(--text-faint); }
.cx-legend { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--text-dim); }
.dx-st { width: 10px; height: 10px; border-radius: 50%; margin-left: 8px; }
.dx-st:first-child { margin-left: 0; }
.dx-st.done { background: var(--sev-low-bar); } .dx-st.ready { background: var(--accent); } .dx-st.blocked { background: var(--border-strong); }
@media (max-width: 900px) { .cx-body { grid-template-columns: 1fr; } .cx-note { margin-left: 0; } .cx-meta { width: 100%; white-space: normal; } }
/* ---- finding sheet header + metadata */
.fm-head { flex-direction: column; align-items: flex-start; gap: 6px; }
.fm-head .title { white-space: normal; font-size: 17px; line-height: 1.3; letter-spacing: -.015em; }
.fm-sub { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fm-status, .fm-chip { font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 99px; text-transform: capitalize; }
.fm-status.ok { background: var(--sev-low-bg); color: var(--sev-low-fg); }
.fm-status.warn { background: var(--sev-medium-bg); color: var(--sev-medium-fg); }
.fm-status.bad { background: var(--sev-critical-bg); color: var(--sev-critical-fg); }
.fm-status.off { background: var(--surface-3); color: var(--text-dim); }
.fm-chip { background: var(--surface-3); color: var(--text-dim); border: 1px solid var(--border); }
.fm-chip.mono { text-transform: none; font-family: var(--mono); font-weight: 500; font-size: 11px; }
#fmMeta.fm-meta-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 0; overflow: hidden; }
.fm-stat { padding: 14px 16px; border-right: 1px solid var(--border); min-width: 0; }
.fm-stat:nth-child(3) { border-right: none; }
.fm-stat-wide { grid-column: 1 / -1; border-right: none; border-top: 1px solid var(--border); }
.fm-stat-k { font-size: 11px; font-weight: 600; color: var(--text-faint); margin-bottom: 4px; }
.fm-stat-v { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; display: flex; align-items: baseline; gap: 8px; }
.fm-stat-v small { font-size: 13px; color: var(--text-faint); font-weight: 600; margin-left: -6px; }
.fm-stat-v.fm-cvss-high { color: var(--sev-critical-fg); } .fm-stat-v.fm-cvss-med { color: var(--sev-medium-fg); } .fm-stat-v.fm-cvss-low { color: var(--sev-low-fg); }
.fm-band { font-size: 12px; font-weight: 600; color: var(--text-dim); letter-spacing: 0; }
.fm-vec { font-family: var(--mono); font-size: 10.5px; color: var(--text-faint); margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-bar { height: 4px; border-radius: 99px; background: var(--surface-3); margin-top: 8px; overflow: hidden; }
.fm-bar span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.fm-cls-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.fm-cls { font-family: var(--mono); font-size: 12px; padding: 3px 8px; border-radius: 6px; background: var(--surface); border: 1px solid var(--border); }
.fm-loc { display: flex; align-items: flex-start; gap: 8px; }
.fm-loc code { background: none; border: none; padding: 0; font-size: 12.5px; color: var(--text); overflow-wrap: anywhere; line-height: 1.5; }
.fm-loc .fm-endpoint-method { flex: none; margin-top: 1px; }
.fm-actions { gap: 8px; margin: 14px 0 22px; }
.fm-actions .btn .ico { width: 14px; height: 14px; }
@media (max-width: 680px) {
#fmMeta.fm-meta-grid { grid-template-columns: 1fr 1fr; }
.fm-stat:nth-child(2) { border-right: none; }
.fm-stat:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--border); }
.fm-actions .btn { flex: 1 1 auto; }
}
/* graph: finding summary is a one-line bar until opened */
.gm-finding-desc { padding: 10px 14px; max-height: none; }
.gm-finding-desc:not(.open) > :not(.fd-header) { display: none; }
.gm-finding-desc.open { max-height: 260px; overflow-y: auto; }
.gm-finding-desc .fd-header { margin: 0; cursor: pointer; }
.gm-finding-desc .fd-title { flex: 1; min-width: 0; font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gm-finding-desc.open .fd-header { margin-bottom: 12px; }
.fd-toggle { flex: none; }
/* run header: stack actions under the title when space is short */
.run-target { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: clamp(18px, 2.2vw, 22px); }
.run-facts { display: flex; flex-wrap: wrap; row-gap: 2px; }
@media (max-width: 1180px) {
.run-head { flex-direction: column; align-items: stretch; }
.run-actions { justify-content: flex-start; }
}
/* graph: selected vulnerability + richer inspector */
.gx-node.gx-root { border: 2px solid var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent), var(--shadow-float); }
.gx-node.gx-root::after { content: "Selected"; position: absolute; top: -9px; left: 10px; font-size: 9.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
background: var(--accent); color: var(--accent-contrast); padding: 1px 7px; border-radius: 99px; }
.gx-inspector { width: 400px; }
.gx-fd { padding: 12px 14px 4px; display: flex; flex-direction: column; gap: 12px; }
.gx-fd-loading { font-size: var(--fs-xs); color: var(--text-faint); }
.gx-fd-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.gx-fd-st { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--surface-3); color: var(--text-dim); text-transform: capitalize; }
.gx-fd-st.st-confirmed { background: var(--sev-low-bg); color: var(--sev-low-fg); }
.gx-fd-st.st-rejected { background: var(--sev-critical-bg); color: var(--sev-critical-fg); }
.gx-fd-st.st-needs-review, .gx-fd-st.st-needs_review { background: var(--sev-medium-bg); color: var(--sev-medium-fg); }
.gx-fd-tag { font-family: var(--mono); font-size: 11px; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--border); color: var(--text-dim); }
.gx-fd-open { align-self: flex-start; }
.gx-fd-h { font-size: 10.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); margin-bottom: 6px; }
.gx-fd-sec p { margin: 0; font-size: 12.5px; line-height: 1.55; overflow-wrap: anywhere; }
.gx-where { display: block; background: none; border: none; padding: 0; font-size: 12px; overflow-wrap: anywhere; }
.gx-steps { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; }
.gx-steps pre, .gx-pre { margin: 4px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--term-bg); color: #dfe6f3; font-size: 11px; white-space: pre-wrap; word-break: break-all; max-height: 180px; overflow: auto; }
.gx-receipts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.gx-receipts li { display: flex; gap: 6px; align-items: flex-start; }
.gx-receipts b { flex: none; font-size: 10px; color: var(--accent); background: var(--accent-soft); border-radius: 4px; padding: 1px 5px; margin-top: 3px; font-family: var(--mono); }
.gx-receipts code { font-size: 11px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 4px 7px; overflow-wrap: anywhere; white-space: pre-wrap; flex: 1; }
.gx-caveat { font-size: 12px; padding: 8px 10px; border-radius: 8px; background: color-mix(in srgb, #eab308 10%, var(--surface)); border: 1px solid color-mix(in srgb, #eab308 35%, var(--border)); }
.gx-fd-src { font-size: 11px; color: var(--text-faint); padding-bottom: 6px; }
@media (max-width: 900px) { .gx-inspector { width: auto; } }
/* ==========================================================================
Projects v5
========================================================================== */
.pj-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.pj-kpis-sm { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pj-kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; box-shadow: var(--shadow-xs); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pj-kpi > span { font-size: var(--fs-xs); color: var(--text-faint); font-weight: 550; }
.pj-kpi > b { font-size: 26px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.pj-kpi .pj-hot { color: var(--sev-critical-fg); }
.pj-kpi .pj-sevbar { margin-top: 6px; }
.pj-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.pj-toolbar .search-wrap { max-width: 360px; }
.pj-org { margin-bottom: 24px; }
.pj-org-h { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .07em; color: var(--text-faint); margin: 0 0 8px 4px; display: flex; gap: 8px; }
.pj-org-h span { background: var(--surface-3); border-radius: 99px; padding: 0 7px; letter-spacing: 0; }
.pj-rows { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xs); }
.pj-row { display: grid; grid-template-columns: 44px minmax(0, 2.2fr) minmax(170px, 1fr) 120px 96px auto; gap: 18px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background var(--t-fast); }
.pj-row:last-child { border-bottom: none; }
.pj-row:hover { background: var(--hover); }
.pj-row:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
.pj-avatar { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-weight: 700; font-size: 14px; letter-spacing: .02em; flex: none;
background: hsl(var(--h) 70% 55% / .16); color: hsl(var(--h) 60% 45%); border: 1px solid hsl(var(--h) 60% 50% / .25); }
:root[data-theme="dark"] .pj-avatar { color: hsl(var(--h) 80% 72%); }
.pj-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pj-name { font-weight: 650; font-size: var(--fs-base); letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.pj-live { font-size: 10.5px; font-weight: 650; color: var(--accent); background: var(--accent-soft); padding: 1px 7px; border-radius: 99px; }
.pj-desc { font-size: var(--fs-sm); color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-targets { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.pj-targets code { font-size: 11px; }
.pj-more { font-size: 11px; color: var(--text-faint); align-self: center; }
.pj-risk { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pj-risk-top { display: flex; align-items: baseline; gap: 6px; }
.pj-risk-top b { font-size: 16px; font-weight: 700; margin-left: 4px; }
.pj-clean { font-size: var(--fs-xs); color: var(--sev-low-fg); font-weight: 600; }
.pj-sevbar { display: flex; height: 6px; border-radius: 99px; overflow: hidden; background: var(--surface-3); gap: 1px; }
.pj-sevbar.empty { opacity: .6; }
.pj-sevbar .sb-critical { background: var(--sev-critical-bar); } .pj-sevbar .sb-high { background: var(--sev-high-bar); }
.pj-sevbar .sb-medium { background: var(--sev-medium-bar); } .pj-sevbar .sb-low { background: var(--sev-low-bar); } .pj-sevbar .sb-info { background: var(--sev-info-bar); }
.pj-trend { display: flex; flex-direction: column; gap: 2px; color: var(--accent); }
.pj-trend .muted { font-size: 11px; }
.pj-spark { display: block; }
.pj-nospark { color: var(--text-faint); }
.pj-last { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--text-dim); white-space: nowrap; }
.pj-actions { display: flex; align-items: center; gap: 4px; }
.pj-empty { max-width: 560px; margin: 40px auto; }
.pj-sheet-h { display: flex; align-items: center; gap: 12px; }
.pj-sec-h { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .07em; color: var(--text-faint); margin: 20px 0 8px; }
.pj-targets-lg { gap: 6px; }
.pj-tchip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--surface-2); border-radius: 8px; padding: 4px 8px; cursor: pointer; color: var(--text); }
.pj-tchip code { background: none; border: none; padding: 0; font-size: 12px; }
.pj-tchip .ico { width: 12px; height: 12px; color: var(--accent); opacity: 0; transition: opacity var(--t-fast); }
.pj-tchip:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.pj-tchip:hover .ico { opacity: 1; }
.pj-tl { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.pj-tl-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) 160px 96px; gap: 14px; align-items: center; padding: 11px 14px; border: none; border-bottom: 1px solid var(--border); background: transparent; color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.pj-tl-row:last-child { border-bottom: none; }
.pj-tl-row:hover { background: var(--hover); }
.pj-tl-main { display: flex; flex-direction: column; min-width: 0; }
.pj-tl-main b { font-size: var(--fs-sm); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-tl-main span { font-size: 11.5px; color: var(--text-faint); font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-tl-sev { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--text-faint); }
.pj-tl-when { display: flex; flex-direction: column; font-size: 12px; text-align: right; }
.pj-tl-when span { font-size: 11px; color: var(--text-faint); }
.pj-wtargets { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; font-size: var(--fs-xs); }
.pj-wtargets:empty { display: none; }
.pj-wchip { border: 1px dashed var(--accent-line); background: var(--accent-soft); color: var(--accent); font-family: var(--mono); font-size: 11.5px; padding: 3px 8px; border-radius: 7px; cursor: pointer; }
.pj-wchip:hover { border-style: solid; }
@media (max-width: 1100px) { .pj-row { grid-template-columns: 44px minmax(0, 1fr) 170px auto; } .pj-trend, .pj-last { display: none; } }
@media (max-width: 680px) {
.pj-kpis { grid-template-columns: 1fr 1fr; }
.pj-row { grid-template-columns: 40px minmax(0, 1fr); gap: 10px 12px; }
.pj-risk, .pj-actions { grid-column: 2; }
.pj-tl-row { grid-template-columns: 10px minmax(0, 1fr) 80px; }
.pj-tl-sev { display: none; }
}
/* subscriptions card */
.sub-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.sub-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.sub-row:last-child { border-bottom: none; }
.sub-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--border-strong); }
.sub-dot.ok { background: var(--sev-low-bar); box-shadow: 0 0 0 3px var(--sev-low-bg); }
.sub-dot.bad { background: var(--sev-critical-bar); }
.sub-dot.warn { background: var(--sev-medium-bar); }
.sub-dot.checking { background: var(--accent); animation: pulse 1.2s infinite; }
.sub-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sub-main b { font-size: var(--fs-sm); font-weight: 600; }
.sub-main span { font-size: 11.5px; color: var(--text-faint); overflow-wrap: anywhere; }
.sub-main code { font-size: 11px; }
.sub-pill { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; white-space: nowrap; background: var(--surface-3); color: var(--text-faint); }
.sub-pill.ok { background: var(--sev-low-bg); color: var(--sev-low-fg); }
.sub-pill.bad { background: var(--sev-critical-bg); color: var(--sev-critical-fg); }
.sub-pill.warn { background: var(--sev-medium-bg); color: var(--sev-medium-fg); }
.sub-pill.checking { background: var(--accent-soft); color: var(--accent); }
/* inspector: per-type summaries */
.gx-lead { margin: 0; font-size: 13px; line-height: 1.5; }
.gx-note { font-size: 12px; color: var(--text-faint); padding: 8px 10px; border: 1px dashed var(--border-strong); border-radius: 8px; }
.gx-ext { font-size: 12px; font-weight: 600; }
.gx-kv { display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; margin: 0; font-size: 12.5px; }
.gx-kv:empty { display: none; }
.gx-kv dt { color: var(--text-faint); text-transform: capitalize; }
.gx-kv dd { margin: 0; font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; }
.gx-sevrow { display: flex; flex-wrap: wrap; gap: 5px; }
.gx-flist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.gx-flist button { display: flex; align-items: flex-start; gap: 8px; width: 100%; text-align: left; border: none; background: transparent; color: var(--text); font: inherit; font-size: 12.5px; padding: 6px; border-radius: 7px; cursor: pointer; line-height: 1.4; }
.gx-flist button:hover { background: var(--hover); }
.gx-flist .sev { flex: none; width: 18px; height: 18px; padding: 0; justify-content: center; border-radius: 5px; font-size: 10px; }
.gx-flist .sev::before { display: none; }
.gx-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.gx-chips code { font-size: 11px; }
.gx-leads { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; }
.gx-raw { margin: 4px 14px 10px; border-top: 1px solid var(--border); padding-top: 8px; }
.gx-raw > summary { cursor: pointer; font-size: 11px; font-weight: 600; color: var(--text-faint); }
.gx-raw .gx-props { padding: 8px 0 0; }
/* ==========================================================================
Code viewer (white-box) — VS Code-like, both themes
========================================================================== */
:root { --cv-bg: #ffffff; --cv-fg: #1f1f1f; --cv-ln: #8a8a98; --cv-hot: rgba(229, 72, 77, .10); --cv-hotbar: #e5484d;
--tk-k: #0000ff; --tk-s: #a31515; --tk-c: #008000; --tk-n: #098658; --tk-f: #795e26; --tk-d: #af00db; --tk-t: #267f99; }
:root[data-theme="dark"] { --cv-bg: #1e1e1e; --cv-fg: #d4d4d4; --cv-ln: #6e7681; --cv-hot: rgba(255, 92, 92, .14); --cv-hotbar: #ff6b70;
--tk-k: #569cd6; --tk-s: #ce9178; --tk-c: #6a9955; --tk-n: #b5cea8; --tk-f: #dcdcaa; --tk-d: #c586c0; --tk-t: #4ec9b0; }
.cv { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--cv-bg); }
.cv-head { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-bottom: 1px solid var(--border); background: var(--surface-2); font-size: 12px; }
.cv-head .ico { width: 14px; height: 14px; color: var(--text-faint); }
.cv-file { font-family: var(--mono); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-line { font-size: 11px; font-weight: 600; color: var(--sev-critical-fg); background: var(--sev-critical-bg); border-radius: 99px; padding: 1px 8px; }
.cv-copy { margin-left: auto; border: 1px solid var(--border); background: var(--surface); color: var(--text-dim); font-size: 11px; border-radius: 6px; padding: 2px 8px; cursor: pointer; }
.cv-body { overflow: auto; max-height: 440px; }
.cv table { border-collapse: collapse; width: 100%; font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--cv-fg); }
.cv td.ln { width: 1%; padding: 0 12px 0 14px; text-align: right; color: var(--cv-ln); user-select: none; white-space: nowrap; vertical-align: top; }
.cv td.lc { padding: 0 14px 0 4px; white-space: pre; position: relative; }
.cv tr.hot td { background: var(--cv-hot); }
.cv tr.hot td.ln { color: var(--cv-hotbar); font-weight: 700; box-shadow: inset 3px 0 0 var(--cv-hotbar); }
.cv-flag { position: sticky; right: 8px; float: right; font-family: var(--sans); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #fff; background: var(--cv-hotbar); border-radius: 4px; padding: 0 6px; margin-left: 12px; }
.tk-k { color: var(--tk-k); } .tk-s { color: var(--tk-s); } .tk-c { color: var(--tk-c); font-style: italic; } .tk-n { color: var(--tk-n); }
.tk-f { color: var(--tk-f); } .tk-d { color: var(--tk-d); } .tk-t { color: var(--tk-t); }
.cv-loading { font-size: 12px; color: var(--text-faint); padding: 8px 0; }
.cv-more { margin-top: 6px; align-self: flex-start; }
.fm-code { margin-bottom: 18px; }
.fm-kind { text-transform: none; }
.fm-kind.k-code { background: color-mix(in srgb, #3e7bfa 14%, transparent); color: var(--sev-info-fg); border-color: transparent; }
.fm-kind.k-infra { background: color-mix(in srgb, #d97706 14%, transparent); color: var(--sev-high-fg); border-color: transparent; }
.fm-kind.k-web { background: color-mix(in srgb, #0ea5a4 14%, transparent); color: #0f766e; border-color: transparent; }
:root[data-theme="dark"] .fm-kind.k-web { color: #2dd4bf; }
.fm-kind.k-ai, .fm-kind.k-mobile, .fm-kind.k-cloud { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
/* scope page: global vs per test */
.sc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 0 0 14px; }
.sc-per { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.sc-title { font-size: var(--fs-base); font-weight: 650; display: flex; align-items: center; gap: 8px; }
.sc-desc { font-size: var(--fs-sm); color: var(--text-dim); margin-top: 3px; max-width: 720px; }
.sc-badge { font-size: 10.5px; font-weight: 650; padding: 1px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); }
.sc-badge-alt { background: var(--surface-3); color: var(--text-dim); }
.sc-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 900px; }
.sc-col { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; font-size: var(--fs-sm); }
.sc-col ul { margin: 8px 0 0; padding-left: 18px; color: var(--text-dim); display: flex; flex-direction: column; gap: 3px; }
@media (max-width: 680px) { .sc-compare { grid-template-columns: 1fr; } .sc-head { flex-direction: column; } }
/* wizard asset picker */
.ap-box { margin-bottom: 18px; }
.ap-box:empty { display: none; }
.ap-h { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); margin-bottom: 8px; }
.ap-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
.ap-item { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; padding: 8px 10px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-2); color: var(--text); cursor: pointer; min-width: 0; }
.ap-item:hover { border-color: var(--accent-line); }
.ap-item.on { border-color: var(--accent); background: var(--accent-soft); }
.ap-k { font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
.ap-l { font-family: var(--mono); font-size: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-s { font-size: 11px; color: var(--text-faint); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-hint, .ap-empty, .ap-add { font-size: var(--fs-xs); color: var(--text-dim); margin-top: 8px; }
.ap-empty { padding: 10px 12px; border: 1px dashed var(--border-strong); border-radius: 9px; }
/* asset rows */
.as-rows { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xs); }
.as-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.as-row:last-child { border-bottom: none; }
.as-row:hover { background: var(--hover); }
.as-ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.as-ico .ico { width: 17px; height: 17px; }
.as-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.as-main b { font-size: var(--fs-sm); font-weight: 600; font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-main span { font-size: var(--fs-xs); color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 680px) { .as-row .tag { display: none; } }
/* subscriptions summary + modal */
.sub-mini { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.sub-in-modal { border: none; box-shadow: none; padding: 0; background: transparent; }
.sub-in-modal > .card-head { display: none; }
/* finding body sections */
.fm-sec { padding: 16px 0; border-top: 1px solid var(--border); }
.fm-sec:first-child { border-top: none; padding-top: 4px; }
.fm-sec-h { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 13px; font-weight: 650; color: var(--text); }
.fm-sec-i { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-dim); flex: none; }
.fm-sec-i .ico { width: 14px; height: 14px; }
.fm-sec p { margin: 0 0 6px; font-size: 13.5px; line-height: 1.65; color: var(--text-dim); overflow-wrap: anywhere; }
.fm-sec-fix .fm-sec-i { background: var(--sev-low-bg); color: var(--sev-low-fg); }
.fm-sec-poc .fm-sec-i { background: var(--accent-soft); color: var(--accent); }
.fm-where { display: block; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 12.5px; overflow-wrap: anywhere; }
.fm-caveat { margin-top: 8px; font-size: 12.5px; padding: 9px 12px; border-radius: 9px; background: color-mix(in srgb, #eab308 10%, var(--surface)); border: 1px solid color-mix(in srgb, #eab308 35%, var(--border)); color: var(--text-dim); }
.fm-receipts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fm-receipts li { display: flex; gap: 10px; align-items: flex-start; }
.fm-eid { flex: none; min-width: 32px; text-align: center; font-family: var(--mono); font-size: 10.5px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 5px; padding: 2px 5px; margin-top: 3px; }
.fm-receipts code { flex: 1; font-size: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 6px 9px; white-space: pre-wrap; overflow-wrap: anywhere; }
/* proof of concept */
.pc-steps { list-style: none; margin: 4px 0 0; padding: 0; position: relative; }
.pc-step { display: flex; gap: 12px; position: relative; padding-bottom: 16px; }
.pc-step:not(:last-child)::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: 0; width: 2px; background: var(--border); }
.pc-n { width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; background: var(--accent); color: var(--accent-contrast); position: relative; z-index: 1; }
.pc-b { flex: 1; min-width: 0; }
.pc-t { font-size: 13px; font-weight: 600; color: var(--text); margin: 3px 0 6px; overflow-wrap: anywhere; }
.pc-t code { font-weight: 500; font-size: 11.5px; }
.pc-code { position: relative; }
.pc-code pre { margin: 0; padding: 11px 14px; padding-right: 64px; border-radius: 10px; background: var(--cv-bg, #1e1e1e); color: var(--cv-fg, #d4d4d4); border: 1px solid var(--border); font-family: var(--mono); font-size: 12px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; max-height: 300px; overflow: auto; }
.pc-copy { position: absolute; top: 7px; right: 7px; border: 1px solid var(--border); background: var(--surface); color: var(--text-dim); font-size: 11px; border-radius: 6px; padding: 2px 8px; cursor: pointer; opacity: .8; }
.pc-copy:hover { opacity: 1; color: var(--text); }
.pc-sub { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); margin: 10px 0 6px; }
.pc-scripts { margin-top: 6px; }
/* engagement authorization card */
.az-card { margin-bottom: 18px; max-width: 1100px; }
.az-file { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.az-ico { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--sev-critical-bg); color: var(--sev-critical-fg); flex: none; }
.az-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.az-meta b { font-size: var(--fs-sm); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.az-meta span { font-size: 11.5px; color: var(--text-faint); }
.az-drop { padding: 18px; }
input[type="date"] { min-height: 38px; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: inherit; font-size: var(--fs-sm); width: 100%; }
:root[data-theme="dark"] input[type="date"] { background: var(--surface-2); color-scheme: dark; }
/* traces */
.trace-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 16px; }
.trace-files { border-radius: var(--radius-lg); max-height: 680px; padding: 6px; }
.trace-files li { border: none; padding: 0; }
.trace-files li.tr-group { display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); padding: 12px 8px 4px; }
.trace-files li.tr-group span { letter-spacing: 0; }
.trace-files li:not(.tr-group) { display: flex; align-items: center; gap: 6px; padding: 0 6px 0 0; border-radius: 7px; }
.trace-files li:not(.tr-group):hover { background: var(--hover); }
.trace-file-btn { flex: 1; padding: 6px 8px; font-size: 12.5px; text-transform: capitalize; }
.trace-file-btn.active { color: var(--accent); }
.trace-files li:has(.trace-file-btn.active) { background: var(--accent-soft); }
.trace-files .muted { font-size: 10.5px; }
.tr-top { display: flex; align-items: center; gap: 16px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 12px; flex-wrap: wrap; }
.tr-agent { font-weight: 650; font-family: var(--mono); font-size: 13px; }
.tr-fam { font-size: 11.5px; color: var(--text-faint); }
.tr-stats { display: flex; gap: 14px; font-size: 12px; color: var(--text-faint); margin-left: auto; }
.tr-stats b { color: var(--text); }
.tr-stats .tr-hot b { color: var(--sev-high-fg); }
.tr-timeline { display: flex; flex-direction: column; gap: 6px; }
.tr-b { border: 1px solid var(--border); border-radius: 10px; background: var(--surface); overflow: hidden; }
.tr-b > summary { display: flex; align-items: flex-start; gap: 10px; padding: 8px 12px; cursor: pointer; list-style: none; font-size: 12.5px; }
.tr-b > summary::-webkit-details-marker { display: none; }
.tr-b > summary:hover { background: var(--hover); }
.tr-i { flex: none; min-width: 34px; text-align: center; font-family: var(--mono); font-size: 10.5px; font-weight: 700; padding: 1px 5px; border-radius: 5px; background: var(--surface-3); color: var(--text-dim); margin-top: 1px; }
.tr-cmd .tr-i { background: var(--term-bg); color: #4ade80; }
.tr-http .tr-i { background: var(--sev-info-bg); color: var(--sev-info-fg); }
.tr-step .tr-i { background: var(--accent-soft); color: var(--accent); }
.tr-find { border-color: color-mix(in srgb, var(--sev-high-bar) 40%, var(--border)); }
.tr-find .tr-i { background: var(--sev-high-bg); color: var(--sev-high-fg); }
.tr-h { flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.5; }
.tr-cmd .tr-h { font-family: var(--mono); font-size: 12px; }
.tr-badge { flex: none; font-size: 11px; font-weight: 600; color: var(--sev-high-fg); background: var(--sev-high-bg); border-radius: 99px; padding: 1px 8px; }
.tr-pre { margin: 0; padding: 10px 14px; border-top: 1px solid var(--border); background: var(--cv-bg, var(--surface-2)); color: var(--cv-fg, var(--text)); font-family: var(--mono); font-size: 11.5px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; max-height: 420px; overflow: auto; }
.tr-p { margin: 0; padding: 8px 14px 12px 56px; font-size: 13px; line-height: 1.6; color: var(--text-dim); white-space: pre-wrap; overflow-wrap: anywhere; }
.tr-fcards { display: flex; flex-direction: column; gap: 6px; padding: 4px 12px 12px; }
.tr-fcard { border: 1px solid var(--border); border-radius: 9px; background: var(--surface-2); }
.tr-fcard > summary { display: flex; align-items: center; gap: 8px; padding: 8px 10px; cursor: pointer; list-style: none; font-size: 12.5px; }
.tr-fcard > summary::-webkit-details-marker { display: none; }
.tr-ft { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.tr-fdl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; padding: 4px 12px 12px; font-size: 12.5px; }
.tr-fdl dt { color: var(--text-faint); text-transform: capitalize; }
.tr-fdl dd { margin: 0; overflow-wrap: anywhere; color: var(--text-dim); }
.tr-fdl pre { margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--cv-bg); color: var(--cv-fg); font-size: 11.5px; white-space: pre-wrap; word-break: break-word; max-height: 220px; overflow: auto; }
/* deliverables */
.deliv-grid { display: flex; flex-direction: column; gap: 22px; }
.dv-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.dv-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.dv-ico .ico { width: 17px; height: 17px; }
.dv-people { background: var(--accent-soft); color: var(--accent); }
.dv-proof { background: var(--sev-low-bg); color: var(--sev-low-fg); }
.dv-auto { background: var(--sev-info-bg); color: var(--sev-info-fg); }
.dv-detect { background: var(--sev-high-bg); color: var(--sev-high-fg); }
.dv-title { font-weight: 650; font-size: var(--fs-base); display: flex; gap: 8px; align-items: center; }
.dv-title span { font-size: 11px; color: var(--text-faint); background: var(--surface-3); border-radius: 99px; padding: 0 7px; font-weight: 600; }
.dv-desc { font-size: var(--fs-xs); color: var(--text-faint); }
.dv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.dv-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); text-decoration: none; box-shadow: var(--shadow-xs); transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast); }
a.dv-card:hover { border-color: var(--accent-line); transform: translateY(-1px); box-shadow: var(--shadow-float); color: var(--text); text-decoration: none; }
.dv-card b { font-size: var(--fs-sm); font-weight: 650; padding-right: 44px; }
.dv-card > span:not(.dv-ext) { font-size: 12.5px; color: var(--text-dim); line-height: 1.5; }
.dv-card code { font-size: 10.5px; color: var(--text-faint); background: none; border: none; padding: 0; margin-top: 4px; }
.dv-ext { position: absolute; top: 12px; right: 12px; font-size: 9.5px; font-weight: 700; letter-spacing: .04em; color: var(--text-faint); border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; }
.dv-bulk ul { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; max-height: 170px; overflow: auto; }
.dv-bulk li a { font-family: var(--mono); font-size: 11.5px; }
@media (max-width: 760px) { .trace-layout { grid-template-columns: 1fr; } .trace-files { max-height: 220px; } .tr-p { padding-left: 14px; } }
/* continuous testing */
.cont-feed { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 18px; margin-bottom: 16px; box-shadow: var(--shadow-xs); }
.cont-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 12px; flex-wrap: wrap; }
.cont-head .card-desc { max-width: 680px; }
.cont-stats { display: flex; gap: 14px; font-size: 12px; color: var(--text-faint); }
.cont-stats b { color: var(--text); }
.cont-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.cont-ev { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.cont-ev:last-child { border-bottom: none; }
.cont-ev-ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--surface-3); color: var(--text-dim); }
.cont-ev-ico.t-pr { background: var(--accent-soft); color: var(--accent); }
.cont-ev-ico .ico { width: 15px; height: 15px; }
.cont-ev-main { flex: 1; min-width: 0; }
.cont-ev-t { font-size: var(--fs-sm); font-weight: 600; overflow-wrap: anywhere; }
.cont-ev-t a { font-family: var(--mono); margin-right: 4px; }
.cont-ev-s { font-size: 11.5px; color: var(--text-faint); }
.cont-why { margin: 6px 0 0; padding-left: 16px; font-size: 12px; color: var(--text-dim); display: flex; flex-direction: column; gap: 1px; }
.cont-score { flex: none; width: 54px; text-align: center; border-radius: 9px; padding: 4px 0; background: var(--surface-3); }
.cont-score b { display: block; font-size: 17px; font-weight: 700; line-height: 1.1; }
.cont-score span { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); }
.cont-score.l-high { background: var(--sev-critical-bg); color: var(--sev-critical-fg); }
.cont-score.l-medium { background: var(--sev-medium-bg); color: var(--sev-medium-fg); }
.cont-score.l-low { background: var(--sev-low-bg); color: var(--sev-low-fg); }
.cont-score.l-high span, .cont-score.l-medium span, .cont-score.l-low span { color: inherit; opacity: .8; }
.sub-pill.live { background: var(--accent-soft); color: var(--accent); }
.cont-empty { font-size: var(--fs-sm); color: var(--text-dim); padding: 14px; border: 1px dashed var(--border-strong); border-radius: var(--radius-md); }
.cont-sw { font-size: 12px; margin-right: 4px; }
.cont-err { color: var(--sev-critical-fg); }
input[type="range"] { width: 100%; accent-color: var(--accent); }
@media (max-width: 760px) { .cont-row { flex-wrap: wrap; } .cont-ev { flex-wrap: wrap; } }
/* agents step: filter rail + list */
.ag-hidden { display: none !important; }
.ag-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; align-items: start; }
.ag-rail { position: sticky; top: 8px; display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 12px; max-height: calc(100vh - 220px); overflow-y: auto; box-shadow: var(--shadow-xs); }
.ag-main { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ag-sec { padding: 6px 2px 10px; border-bottom: 1px solid var(--border); }
.ag-sec:last-child { border-bottom: none; }
.ag-h { display: flex; justify-content: space-between; align-items: center; font-size: 10.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .07em; color: var(--text-faint); margin: 4px 0 8px; cursor: default; list-style: none; }
details.ag-sec > summary.ag-h { cursor: pointer; }
details.ag-sec > summary::-webkit-details-marker { display: none; }
.ag-clear { border: none; background: none; color: var(--accent); font-size: 11px; font-weight: 600; text-transform: none; letter-spacing: 0; cursor: pointer; padding: 0; }
.ag-rec { width: 100%; justify-content: space-between; margin-bottom: 8px; }
.ag-rec span { font-size: 11px; opacity: .8; }
.ag-presets { display: flex; flex-wrap: wrap; gap: 4px; }
.ag-preset { border: 1px solid var(--border); background: var(--surface-2); color: var(--text-dim); font-size: 11.5px; font-weight: 550; border-radius: 99px; padding: 3px 9px; cursor: pointer; }
.ag-preset em { font-style: normal; color: var(--text-faint); font-size: 10.5px; margin-left: 2px; }
.ag-preset:hover { border-color: var(--accent-line); color: var(--text); }
.ag-preset.rec { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); }
.ag-note { font-size: 11px; color: var(--text-faint); margin-top: 8px; }
.ag-scope { font-size: 11.5px; color: var(--text-dim); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 7px; padding: 5px 8px; margin-bottom: 6px; }
.ag-opt { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 6px; cursor: pointer; font-size: 12.5px; color: var(--text); }
.ag-opt:hover { background: var(--hover); }
.ag-opt input { accent-color: var(--accent); margin: 0; }
.ag-opt span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-opt em { font-style: normal; font-size: 11px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .ag-layout { grid-template-columns: 1fr; } .ag-rail { position: static; max-height: none; } }
/* agents rail v2 */
.ag-reccard { padding: 12px; border-radius: 10px; background: var(--accent-soft); border: 1px solid var(--accent-line); margin-bottom: 6px; }
.ag-rec-t { font-size: 13px; color: var(--text); }
.ag-rec-t b { font-weight: 650; }
.ag-rec-s { font-size: 11.5px; color: var(--text-dim); margin-top: 2px; }
.ag-rec-a { display: flex; gap: 6px; margin-top: 10px; }
.ag-reccard .ag-note { margin-top: 8px; }
.ag-srow { display: flex; align-items: center; gap: 4px; border-radius: 7px; }
.ag-srow .ag-opt { flex: 1; min-width: 0; }
.ag-srow.on .ag-opt span { font-weight: 600; }
.ag-pin { flex: none; display: inline-flex; align-items: center; gap: 4px; border: 1px solid transparent; background: transparent; color: var(--text-faint); border-radius: 6px; padding: 2px 6px; cursor: pointer; font-size: 11px; font-variant-numeric: tabular-nums; }
.ag-pin .ico { width: 12px; height: 12px; }
.ag-pin:hover { border-color: var(--border); color: var(--text); background: var(--surface-2); }
.ag-pin.has { color: var(--accent); }
.ag-pin.full { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
/* wizard draft */
.draft-banner { max-width: 760px; margin: 0 auto 18px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-lg); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.draft-ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--surface); color: var(--accent); border: 1px solid var(--accent-line); }
.draft-ico .ico { width: 17px; height: 17px; }
.draft-t { flex: 1; min-width: 0; display: flex; flex-direction: column; text-align: left; }
.draft-t b { font-size: var(--fs-sm); font-weight: 650; color: var(--text); }
.draft-t span { font-size: 12px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.draft-t code { font-size: 11.5px; }
.home-draft { width: 100%; max-width: 680px; margin: -6px auto 8px; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--accent-line); background: var(--accent-soft); cursor: pointer; font: inherit; color: var(--text); transition: transform var(--t-fast), box-shadow var(--t-fast); }
.home-draft:hover { transform: translateY(-1px); box-shadow: var(--shadow-float); }
.home-draft-go { font-size: 12.5px; font-weight: 650; color: var(--accent); white-space: nowrap; }
@media (max-width: 680px) { .draft-banner { flex-wrap: wrap; } .draft-banner .btn { flex: 1; } }
/* advanced → more options */
.xo-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.xo-group { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 14px; background: var(--surface-2); display: flex; flex-direction: column; gap: 8px; }
.xo-gt { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); }
.xo-row { display: flex; flex-direction: column; gap: 2px; }
.xo-row .check-row { padding: 2px 0; }
.xo-col { gap: 5px; }
.xo-l { font-size: 12.5px; font-weight: 550; color: var(--text); }
.xo-l b { color: var(--accent); font-variant-numeric: tabular-nums; margin-left: 4px; }
.xo-help { font-size: 11.5px; color: var(--text-faint); line-height: 1.45; padding-left: 0; }
.xo-row:not(.xo-col) .xo-help { padding-left: 44px; margin-top: -4px; }
.xo-warn { font-size: 10.5px; font-weight: 650; color: var(--sev-medium-fg); background: var(--sev-medium-bg); border-radius: 99px; padding: 0 7px; margin-left: 4px; }
.xo-count { font-size: 10.5px; text-transform: none; letter-spacing: 0; color: var(--accent); background: var(--accent-soft); border-radius: 99px; padding: 1px 8px; margin-left: 6px; }
.xo-note { margin: 0 0 12px; }
.xo-group .pill-check { font-size: 12px; padding: 4px 10px; }
.xo-link { padding-left: 0 !important; margin-top: 2px !important; }
/* toolbox v5 */
.tb-tabs { padding: 0 0 14px; }
.tb-n { font-size: 11px; color: var(--text-faint); margin-left: 4px; }
.tb-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.tb-search { flex: 1 1 320px; max-width: 460px; }
.tb-cats { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; scrollbar-width: thin; }
.tb-cat { flex: none; border: 1px solid var(--border); background: var(--surface); color: var(--text-dim); font-size: 12.5px; font-weight: 550; border-radius: 99px; padding: 5px 12px; cursor: pointer; white-space: nowrap; }
.tb-cat em { font-style: normal; color: var(--text-faint); font-size: 11px; margin-left: 3px; }
.tb-cat:hover { color: var(--text); border-color: var(--border-strong); }
.tb-cat.on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.tb-cat.on em { color: var(--accent); }
.tb-count { font-size: 12px; color: var(--text-faint); margin-bottom: 10px; }
.tb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 10px; }
.tb-card, .tb-mcp-card { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; box-shadow: var(--shadow-xs); transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast); min-width: 0; }
.tb-card:hover { border-color: var(--accent-line); transform: translateY(-1px); box-shadow: var(--shadow-float); }
.tb-card.on { border-color: var(--accent); }
.tb-card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tb-name { font-weight: 650; font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-desc { font-size: 12.5px; color: var(--text-dim); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tb-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.tb-meta code { font-size: 11px; }
.tb-flag { font-size: 10.5px; font-weight: 650; color: var(--sev-high-fg); background: var(--sev-high-bg); border-radius: 99px; padding: 0 7px; }
.tb-profiles { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 12px 14px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 8px; }
.tb-prof-h { display: flex; justify-content: space-between; font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); }
.tb-prof { display: flex; gap: 10px; align-items: flex-start; }
.tb-prof .tag { flex: none; min-width: 80px; text-align: center; }
.tb-prof-tools { display: flex; flex-wrap: wrap; gap: 4px; }
.tb-chip { border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-family: var(--mono); font-size: 11.5px; border-radius: 6px; padding: 2px 8px; cursor: pointer; }
.tb-chip:hover { border-color: var(--accent-line); color: var(--accent); }
.tb-mcp-intro { font-size: var(--fs-sm); color: var(--text-dim); margin-bottom: 12px; }
.tb-mcp { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.tb-mcp-card { cursor: default; }
.tb-mcp-card.on { border-color: color-mix(in srgb, var(--sev-low-bar) 40%, var(--border)); }
.tb-mcp-a { display: flex; gap: 6px; margin-top: 6px; }
.tb-sheet .modal-body { display: flex; flex-direction: column; }
.tb-status-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tb-status-row code { font-size: 11px; }
.tb-usage { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.tb-usage span { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); }
.tb-usage code { display: block; padding: 8px 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.tb-out { border: 1px solid var(--border); border-radius: 10px; max-height: 380px; }
@media (max-width: 680px) { .tb-bar .seg-tabs { order: 3; width: 100%; overflow-x: auto; } }
/* scope & safety: one section per modal */
#guardrailsModal .gr-one { width: 640px; }
#guardrailsModal .gr-one [data-gr-section] { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
#guardrailsModal .gr-one [data-gr-section] .form-section-title { display: none; }
/* ─── Dashboard stats cards ────────────────────────────────────────────────── */
#dashboardStats { margin: 0 0 16px; }
.dash-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.dash-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 16px; min-width: 110px; flex: 1; }
.dash-card.dash-wide { flex: 100%; }
.dash-label { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); margin-bottom: 4px; }
.dash-val { font-size: 18px; font-weight: 700; color: var(--text); }
.dash-val small { font-size: 11px; font-weight: 500; color: var(--text-dim); }
.dash-badge { display: inline-block; font-size: 11px; font-weight: 650; border-radius: 6px; padding: 2px 10px; }
.dash-ok { background: color-mix(in srgb, var(--sev-low-bar) 20%, transparent); color: var(--sev-low-fg); border: 1px solid var(--sev-low-bar); }
.dash-warn { background: color-mix(in srgb, var(--sev-medium-bar) 20%, transparent); color: var(--sev-medium-fg); border: 1px solid var(--sev-medium-bar); }
.dash-gap { display: inline-block; font-size: 11px; background: var(--surface-3, var(--surface-2)); border: 1px solid var(--border); border-radius: 6px; padding: 2px 8px; margin: 2px 4px 2px 0; color: var(--text-dim); }
.dash-row-main { gap: 12px; }
.dash-row-main .dash-card { text-align: center; padding: 16px 12px; }
.dash-row-meta .dash-card { text-align: center; }
.dash-val-big { font-size: 28px; font-weight: 800; color: var(--text); line-height: 1.1; }
.dash-row-main .dash-label { margin-top: 6px; margin-bottom: 0; }
.dash-card-accent { border-color: var(--accent, #7c5cff); }
.dash-card-accent .dash-val-big { color: var(--accent, #7c5cff); }
.dash-sev-crit { border-color: var(--sev-critical-bar, #e53e3e); }
.dash-sev-crit .dash-val-big { color: var(--sev-critical-fg, #fc8181); }
.dash-sev-high { border-color: var(--sev-high-bar, #dd6b20); }
.dash-sev-high .dash-val-big { color: var(--sev-high-fg, #fbd38d); }
.dash-sev-med { border-color: var(--sev-medium-bar, #d69e2e); }
.dash-sev-med .dash-val-big { color: var(--sev-medium-fg, #fefcbf); }
.dash-sev-low { border-color: var(--sev-low-bar, #38a169); }
.dash-sev-low .dash-val-big { color: var(--sev-low-fg, #9ae6b4); }