mirror of
https://github.com/CyberSecurityUP/NeuroSploit.git
synced 2026-08-25 19:02:43 +02:00
feat(web): engagement wizard, model/auth picker, Auth & Keys menu, attack-path graph
Full frontend rewrite following a deliberate visual direction (dense security-operations console — borders over shadows, two radii, one accent, no gradients/glassmorphism) and fixing real bugs found in review: - EventSource on the exploit stream never called es.close() on 'done', so the browser silently reconnected and re-streamed the whole job (duplicate log lines/findings). Fixed. - Sidebar 'running' step indicator and openRun() matched ANY running run instead of the one belonging to the current job (by runId). Fixed. New: - 5-step engagement wizard (Asset -> Scope & Auth -> Leads -> Model & Run -> Review) replacing the single flat board — inspired by the Discovery/Plan/Exploit/Remediate stage model both a.security and terra.security use publicly. - Model is now a real dropdown sourced from /api/providers (mirrors harness::models::providers()), with an API-key vs. subscription toggle that disables subscription for API-only providers. - One Auth & Keys menu: target auth header + named roles (IDOR/BOLA/BFLA multi-identity testing) materialize into an ephemeral creds.yaml passed via --creds; per-provider API keys live in server memory only (never on disk) and are merged into every spawned child's env. - Generative Attack Path Chaining: findings rendered as kill-chain columns (recon -> initial-access -> ... -> impact) with chains_from resolved to parent titles, live in the run view and static in run detail. - Findings are now a proper table (severity/title/endpoint/CWE/agent/ confidence) instead of stacked cards. - Explicit light/dark theme toggle persisted in localStorage, defaulting to light (previously light only won when the OS wasn't in dark mode). - All UI strings in English. Backend additions: GET /api/providers, GET/POST/DELETE /api/keys, ephemeral creds.yaml generation for auth/roles, env override merged into every exploit-job and REPL child spawn. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0129WdYHccPsH27k5GGuwijd
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
d1d1c71e24
commit
bb659412fc
+338
-185
@@ -1,242 +1,395 @@
|
||||
/* NeuroSploit v4.0.0 — web console.
|
||||
Visual direction: dense security-operations console (not a marketing SaaS
|
||||
page). Borders over shadows, typography over color, two radii, one accent.
|
||||
*/
|
||||
|
||||
:root {
|
||||
--bg: #f3efe9;
|
||||
--panel: #ffffff;
|
||||
--panel-2: #faf8f5;
|
||||
--border: #e6e1d8;
|
||||
--text: #1c1a17;
|
||||
--text-dim: #7a746a;
|
||||
--text-faint: #a39d92;
|
||||
--accent: #1e2a5e;
|
||||
--accent-2: #2f3f8f;
|
||||
--accent-soft: #eef0fa;
|
||||
--gold: #e8b93f;
|
||||
--gold-soft: #fdf3d9;
|
||||
--green: #2e8b57;
|
||||
--red: #c0392b;
|
||||
--orange: #d97a1f;
|
||||
--radius: 12px;
|
||||
--radius-sm: 8px;
|
||||
--mono: "SF Mono", "Cascadia Code", "JetBrains Mono", Consolas, monospace;
|
||||
/* spacing scale — 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-sm: 6px;
|
||||
--radius-md: 10px;
|
||||
|
||||
--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
|
||||
--shadow: 0 1px 2px rgba(20, 16, 8, 0.04), 0 8px 24px rgba(20, 16, 8, 0.06);
|
||||
--mono: "SF Mono", "Cascadia Code", "JetBrains Mono", Consolas, monospace;
|
||||
|
||||
/* light (default, explicit) */
|
||||
--bg: #f5f4f1;
|
||||
--surface: #ffffff;
|
||||
--surface-2: #faf9f6;
|
||||
--surface-3: #efeeea;
|
||||
--border: #e1dfd8;
|
||||
--border-strong: #cfccc3;
|
||||
--text: #17161a;
|
||||
--text-dim: #6b6862;
|
||||
--text-faint: #9c988f;
|
||||
--accent: #b5590a;
|
||||
--accent-hover: #9a4b07;
|
||||
--accent-contrast: #fff8f0;
|
||||
--accent-soft: #fbe9d8;
|
||||
--focus-ring: #b5590a;
|
||||
|
||||
--sev-critical-bg: #fbe0dc; --sev-critical-fg: #8a271a;
|
||||
--sev-high-bg: #fbe6cf; --sev-high-fg: #8a4a0a;
|
||||
--sev-medium-bg: #f8edc9; --sev-medium-fg: #715600;
|
||||
--sev-low-bg: #dcecdd; --sev-low-fg: #235c34;
|
||||
--sev-info-bg: #e2e6f0; --sev-info-fg: #333e5c;
|
||||
|
||||
--shadow-float: 0 12px 32px rgba(20, 16, 8, 0.16), 0 2px 6px rgba(20, 16, 8, 0.08);
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root:not([data-theme="light"]) {
|
||||
--bg: #16151a;
|
||||
--panel: #1d1c22;
|
||||
--panel-2: #23222a;
|
||||
--border: #302f38;
|
||||
--text: #ecebf0;
|
||||
--text-dim: #9a97a6;
|
||||
--text-faint: #6d6a78;
|
||||
--accent: #6d7fe0;
|
||||
--accent-2: #8b9af0;
|
||||
--accent-soft: #262c4a;
|
||||
--gold: #e8b93f;
|
||||
--gold-soft: #3a3320;
|
||||
--green: #4fbf82;
|
||||
--red: #e0665a;
|
||||
--orange: #e69a4b;
|
||||
--shadow: 0 1px 2px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.35);
|
||||
}
|
||||
:root[data-theme="dark"] {
|
||||
--bg: #121113;
|
||||
--surface: #191819;
|
||||
--surface-2: #1f1e20;
|
||||
--surface-3: #262427;
|
||||
--border: #2d2b2e;
|
||||
--border-strong: #3c3a3d;
|
||||
--text: #ece9e4;
|
||||
--text-dim: #a19d95;
|
||||
--text-faint: #6f6b64;
|
||||
--accent: #e08a3e;
|
||||
--accent-hover: #ec9c57;
|
||||
--accent-contrast: #1a1208;
|
||||
--accent-soft: #3a2a16;
|
||||
--focus-ring: #e08a3e;
|
||||
|
||||
--sev-critical-bg: #3a1c17; --sev-critical-fg: #f0968a;
|
||||
--sev-high-bg: #3a2914; --sev-high-fg: #eeae6a;
|
||||
--sev-medium-bg: #362c10; --sev-medium-fg: #e2c568;
|
||||
--sev-low-bg: #17301f; --sev-low-fg: #78c896;
|
||||
--sev-info-bg: #232840; --sev-info-fg: #9aa6d8;
|
||||
|
||||
--shadow-float: 0 16px 40px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
html, body { margin: 0; padding: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--sans); }
|
||||
html, body { margin: 0; padding: 0; height: 100%; }
|
||||
body {
|
||||
background: var(--bg); color: var(--text); font-family: var(--sans);
|
||||
font-size: 13px; line-height: 1.5; -webkit-font-smoothing: antialiased;
|
||||
}
|
||||
button { font-family: inherit; cursor: pointer; }
|
||||
input, select, textarea { font-family: inherit; color: inherit; }
|
||||
input, select, textarea { font-family: inherit; color: inherit; font-size: 13px; }
|
||||
a { color: var(--accent); text-decoration: none; }
|
||||
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; }
|
||||
|
||||
/* ============================================================ AppShell */
|
||||
|
||||
.app { display: flex; height: 100vh; overflow: hidden; }
|
||||
|
||||
/* ---------------- sidebar ---------------- */
|
||||
.sidebar {
|
||||
width: 260px; flex: none; background: var(--panel); border-right: 1px solid var(--border);
|
||||
display: flex; flex-direction: column; padding: 14px 12px;
|
||||
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; justify-content: space-between; margin-bottom: 14px; }
|
||||
.brand { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; }
|
||||
.sb-icons { display: flex; gap: 4px; }
|
||||
.icon-btn { background: transparent; border: 1px solid transparent; color: var(--text-dim); width: 28px; height: 28px; border-radius: var(--radius-sm); font-size: 13px; }
|
||||
.icon-btn:hover { background: var(--panel-2); border-color: var(--border); }
|
||||
|
||||
.new-engagement {
|
||||
border: 1px solid var(--border); background: var(--panel-2); color: var(--text);
|
||||
border-radius: var(--radius-sm); padding: 9px 10px; font-size: 13px; text-align: left; margin-bottom: 12px;
|
||||
.sb-top {
|
||||
display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-4) var(--sp-4) var(--sp-3);
|
||||
}
|
||||
.new-engagement:hover { border-color: var(--accent); color: var(--accent); }
|
||||
.brand { display: flex; align-items: center; gap: var(--sp-2); font-weight: 600; font-size: 13px; letter-spacing: .01em; flex: 1; }
|
||||
.brand .mark { width: 22px; height: 22px; border-radius: var(--radius-sm); background: var(--accent); color: var(--accent-contrast); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; font-family: var(--mono); }
|
||||
|
||||
.sb-groups { flex: 1; overflow-y: auto; }
|
||||
.sb-group { margin-bottom: 6px; }
|
||||
.icon-btn {
|
||||
background: transparent; border: 1px solid transparent; color: var(--text-dim);
|
||||
width: 26px; height: 26px; border-radius: var(--radius-sm); font-size: 13px;
|
||||
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-4); 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: 12.5px; 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: 6px; padding: 6px 6px; font-size: 12px; color: var(--text-dim);
|
||||
text-transform: none; cursor: pointer; user-select: none;
|
||||
display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-2);
|
||||
font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-faint);
|
||||
cursor: pointer; user-select: none;
|
||||
}
|
||||
.sb-group-head .count { margin-left: auto; opacity: .7; }
|
||||
.sb-group-head .caret { font-size: 10px; transition: transform .15s; }
|
||||
.sb-group-head .count { margin-left: auto; font-weight: 400; }
|
||||
.sb-group-head .caret { font-size: 9px; transition: transform .15s; }
|
||||
.sb-group.collapsed .caret { transform: rotate(-90deg); }
|
||||
.sb-group.collapsed .sb-items { display: none; }
|
||||
.sb-items { padding-left: 4px; }
|
||||
.sb-run {
|
||||
display: block; width: 100%; text-align: left; background: transparent; border: none; color: var(--text);
|
||||
padding: 7px 8px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 2px;
|
||||
}
|
||||
.sb-run:hover { background: var(--panel-2); }
|
||||
.sb-run.active { background: var(--gold-soft); color: #7a5a00; font-weight: 600; }
|
||||
.sb-run .sub {
|
||||
display: block; font-size: 11px; color: var(--text-faint); font-weight: 400; margin-top: 1px;
|
||||
}
|
||||
.sb-steps { padding: 2px 8px 8px 20px; }
|
||||
.sb-step { font-size: 12px; padding: 3px 0; color: var(--text-faint); display: flex; align-items: center; gap: 6px; }
|
||||
|
||||
.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: 12.5px; font-weight: 500; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.sb-run .sub { display: block; font-size: 11px; color: var(--text-faint); font-family: var(--mono); margin-top: 2px; }
|
||||
|
||||
.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: 11px; color: var(--text-faint); display: flex; align-items: center; gap: var(--sp-2); }
|
||||
.sb-step::before { content: "○"; font-size: 9px; width: 10px; }
|
||||
.sb-step.done { color: var(--text-dim); }
|
||||
.sb-step.done::before { content: "✓"; color: var(--green); }
|
||||
.sb-step.active { color: var(--gold); font-weight: 600; }
|
||||
.sb-step.active::before { content: "◐"; }
|
||||
.sb-step.pending::before { content: "○"; opacity: .5; }
|
||||
.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-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--border); }
|
||||
.sb-meta { font-size: 11px; color: var(--text-faint); }
|
||||
.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: 11px; color: var(--text-faint); font-family: var(--mono); }
|
||||
.sb-bottom-actions { display: flex; gap: var(--sp-1); }
|
||||
|
||||
/* ============================================================ Main / Topbar */
|
||||
|
||||
/* ---------------- main / topbar ---------------- */
|
||||
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
|
||||
|
||||
.topbar { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--border); background: var(--bg); }
|
||||
.search-wrap { position: relative; }
|
||||
.search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-faint); font-size: 13px; }
|
||||
#leadSearch {
|
||||
width: 220px; padding: 8px 10px 8px 28px; border-radius: 999px; border: 1px solid var(--border);
|
||||
background: var(--panel); color: var(--text); font-size: 13px;
|
||||
.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;
|
||||
}
|
||||
.chips { display: flex; gap: 8px; }
|
||||
.chip {
|
||||
border: 1px solid var(--border); background: var(--panel); color: var(--text-dim); border-radius: 999px;
|
||||
padding: 7px 12px; font-size: 12px; display: flex; gap: 6px; align-items: center;
|
||||
}
|
||||
.chip span { color: var(--text-faint); }
|
||||
.chip-active { background: var(--gold-soft); border-color: var(--gold); color: #7a5a00; }
|
||||
.chip-active span { color: #7a5a00; }
|
||||
.topbar-title { font-size: 15px; font-weight: 600; }
|
||||
.topbar-sub { font-size: 11px; 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); padding: 9px 14px; font-size: 13px; background: var(--panel); color: var(--text); }
|
||||
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
|
||||
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
|
||||
.btn-primary:hover { background: var(--accent-2); }
|
||||
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
|
||||
.btn-icon { padding: 8px 10px; }
|
||||
.btn {
|
||||
border-radius: var(--radius-sm); border: 1px solid var(--border-strong); padding: var(--sp-2) var(--sp-4);
|
||||
font-size: 12.5px; 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: 12px; }
|
||||
.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); }
|
||||
.btn:disabled { opacity: .5; cursor: not-allowed; }
|
||||
.btn:focus-visible { outline-offset: 2px; }
|
||||
|
||||
.engagement-bar {
|
||||
display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: end; padding: 12px 20px; background: var(--panel);
|
||||
border-bottom: 1px solid var(--border);
|
||||
/* ============================================================ 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;
|
||||
}
|
||||
.eb-field { display: flex; flex-direction: column; gap: 4px; }
|
||||
.eb-field label { font-size: 11px; color: var(--text-faint); }
|
||||
.eb-field input, .eb-field select {
|
||||
border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 7px 9px; font-size: 13px;
|
||||
background: var(--panel-2); color: var(--text); min-width: 120px;
|
||||
.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: 12.5px; font-weight: 500;
|
||||
background: transparent; border-top: none; border-left: none; border-right: none; white-space: nowrap;
|
||||
}
|
||||
.eb-target input { min-width: 260px; }
|
||||
.eb-narrow input, .eb-narrow select { width: 88px; min-width: 0; }
|
||||
.eb-check { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-dim); margin-bottom: 2px; }
|
||||
.step-tab .n { font-family: var(--mono); font-size: 11px; 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: #fff; }
|
||||
.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; }
|
||||
|
||||
/* ---------------- board ---------------- */
|
||||
.board { flex: 1; display: flex; overflow: hidden; }
|
||||
.board-scroll { flex: 1; overflow-y: auto; padding: 18px 20px 40px; }
|
||||
.board-title { font-size: 15px; font-weight: 600; margin: 4px 0 16px; color: var(--text); }
|
||||
.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[hidden] { display: none; }
|
||||
|
||||
.categories { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
|
||||
.cat-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
|
||||
.cat-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; user-select: none; }
|
||||
.cat-head .swatch { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
|
||||
.cat-head .cat-name { font-weight: 600; font-size: 13.5px; flex: 1; }
|
||||
.cat-head .cat-count { font-size: 12px; color: var(--text-faint); }
|
||||
.cat-head .caret { font-size: 10px; color: var(--text-faint); transition: transform .15s; }
|
||||
.field-group { display: flex; flex-direction: column; gap: var(--sp-2); }
|
||||
.field-group + .field-group { margin-top: var(--sp-5); }
|
||||
.field-label { font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--text-faint); }
|
||||
.field-help { font-size: 11.5px; color: var(--text-faint); }
|
||||
.field-row { display: flex; gap: var(--sp-4); flex-wrap: wrap; }
|
||||
.field-row > * { flex: 1; min-width: 160px; }
|
||||
|
||||
.section-title { font-size: 13px; font-weight: 600; }
|
||||
.section-desc { font-size: 12px; 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); }
|
||||
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: 12.5px; }
|
||||
.mode-tile .d { font-size: 11px; 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: 12.5px; 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; }
|
||||
|
||||
.check-row { display: flex; align-items: center; gap: var(--sp-2); font-size: 12.5px; color: var(--text-dim); }
|
||||
|
||||
.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: 10px; top: 50%; transform: translateY(-50%); color: var(--text-faint); font-size: 12px; }
|
||||
#leadSearch { 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: 11.5px; 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: 12.5px; flex: 1; }
|
||||
.cat-head .cat-count { font-size: 11px; color: var(--text-faint); font-family: var(--mono); }
|
||||
.cat-head .caret { font-size: 9px; color: var(--text-faint); transition: transform .15s; }
|
||||
.cat-card.collapsed .caret { transform: rotate(-90deg); }
|
||||
.cat-card.collapsed .agent-rows { display: none; }
|
||||
.agent-rows { border-top: 1px solid var(--border); }
|
||||
.agent-row { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--border); font-size: 13px; }
|
||||
.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: 12.5px; }
|
||||
.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: 11px; color: var(--text-faint); }
|
||||
.agent-row .agent-frac { font-size: 11px; color: var(--text-faint); width: 46px; text-align: right; }
|
||||
.agent-row .chevron { color: var(--text-faint); font-size: 12px; }
|
||||
.agent-row .agent-cwe { font-size: 10.5px; color: var(--text-faint); font-family: var(--mono); }
|
||||
|
||||
.switch { position: relative; width: 34px; height: 19px; flex: none; }
|
||||
.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); border-radius: 999px; transition: background .15s; }
|
||||
.switch .thumb { position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
|
||||
.switch .track { position: absolute; inset: 0; background: var(--border-strong); border-radius: 999px; transition: background .15s; }
|
||||
.switch .thumb { position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--surface); transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
|
||||
.switch input:checked + .track { background: var(--accent); }
|
||||
.switch input:checked + .track + .thumb { transform: translateX(15px); }
|
||||
.switch input:checked + .track + .thumb { transform: translateX(13px); }
|
||||
|
||||
.ask-panel {
|
||||
width: 300px; flex: none; border-left: 1px solid var(--border); background: var(--panel); padding: 16px;
|
||||
display: flex; flex-direction: column; gap: 10px;
|
||||
.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: 12px; 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);
|
||||
}
|
||||
.ask-title { font-size: 12px; color: var(--text-faint); }
|
||||
#askInput {
|
||||
flex: 1; min-height: 90px; resize: vertical; border: 1px solid var(--border); border-radius: var(--radius-sm);
|
||||
padding: 10px; background: var(--panel-2); font-size: 13px;
|
||||
}
|
||||
.ask-row { display: flex; gap: 8px; }
|
||||
.ask-row select { flex: 1; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--panel-2); padding: 8px; font-size: 12px; }
|
||||
.ask-hint { font-size: 11px; color: var(--text-faint); min-height: 14px; }
|
||||
.summary-line { font-size: 11.5px; color: var(--text-faint); }
|
||||
.summary-line b { color: var(--text); font-weight: 600; }
|
||||
|
||||
/* ---------------- live run / detail ---------------- */
|
||||
.liverun, .rundetail { flex: 1; display: flex; flex-direction: column; overflow: hidden; padding: 18px 20px; }
|
||||
.liverun-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
|
||||
.liverun-target { font-weight: 600; font-size: 15px; }
|
||||
.liverun-phase { font-size: 12px; color: var(--text-dim); display: flex; align-items: center; gap: 6px; margin-top: 3px; }
|
||||
.phase-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: pulse 1.4s infinite; }
|
||||
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }
|
||||
.liverun-actions { display: flex; gap: 8px; }
|
||||
.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: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-faint); }
|
||||
.review-item .v { font-size: 13px; margin-top: 3px; font-weight: 500; }
|
||||
.review-item .v.mono { font-family: var(--mono); font-size: 12px; }
|
||||
|
||||
.progress-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
|
||||
.progress-bar { flex: 1; height: 8px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--border); overflow: hidden; }
|
||||
/* ============================================================ 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; padding: var(--sp-5) var(--sp-5) var(--sp-4); border-bottom: 1px solid var(--border); }
|
||||
.run-target { font-size: 15px; font-weight: 600; font-family: var(--mono); }
|
||||
.run-meta { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-1); font-size: 12px; color: var(--text-dim); }
|
||||
.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: 999px; background: var(--surface-3); overflow: hidden; }
|
||||
.progress-fill { height: 100%; width: 0%; background: var(--accent); transition: width .3s; }
|
||||
.progress-label { font-size: 12px; color: var(--text-faint); white-space: nowrap; }
|
||||
.progress-label { font-size: 11.5px; color: var(--text-faint); font-family: var(--mono); white-space: nowrap; }
|
||||
|
||||
.liverun-body { flex: 1; display: flex; gap: 16px; overflow: hidden; }
|
||||
.findings-col, .log-col { flex: 1; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
|
||||
.col-head { padding: 10px 14px; font-size: 12px; font-weight: 600; color: var(--text-dim); border-bottom: 1px solid var(--border); background: var(--panel-2); }
|
||||
.findings-list, .log-list { flex: 1; overflow-y: auto; padding: 8px 10px; }
|
||||
.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: 12px; 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); }
|
||||
|
||||
.finding-card { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 8px; background: var(--panel-2); }
|
||||
.finding-card .f-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
|
||||
.sev { font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; letter-spacing: .03em; }
|
||||
.sev-critical { background: #f6d9d5; color: #8c2a1c; }
|
||||
.sev-high { background: #fbe1cf; color: #8c4a10; }
|
||||
.sev-medium { background: #fdf0c8; color: #7a5a00; }
|
||||
.sev-low { background: #dcecdd; color: #235c34; }
|
||||
.sev-info { background: #e2e6f5; color: #2c3a7a; }
|
||||
.finding-card .f-title { font-size: 13px; font-weight: 600; }
|
||||
.finding-card .f-meta { font-size: 11px; color: var(--text-faint); margin-top: 3px; }
|
||||
.run-body { flex: 1; overflow-y: auto; padding: var(--sp-5); }
|
||||
.run-tab-panel[hidden] { display: none; }
|
||||
|
||||
.log-line { font-family: var(--mono); font-size: 11.5px; color: var(--text-dim); padding: 2px 0; white-space: pre-wrap; word-break: break-word; }
|
||||
/* Generative Attack Path Chaining */
|
||||
.attackpath-empty { font-size: 12.5px; color: var(--text-faint); padding: var(--sp-5); text-align: center; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); }
|
||||
.attackpath { display: flex; gap: var(--sp-4); overflow-x: auto; padding-bottom: var(--sp-3); }
|
||||
.ap-stage { flex: none; width: 220px; display: flex; flex-direction: column; gap: var(--sp-2); }
|
||||
.ap-stage-head { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-faint); padding-bottom: var(--sp-2); border-bottom: 1px solid var(--border); }
|
||||
.ap-node { border: 1px solid var(--border); border-left: 3px solid var(--text-faint); border-radius: var(--radius-sm); padding: var(--sp-2) var(--sp-3); background: var(--surface); font-size: 12px; }
|
||||
.ap-node.sev-critical { border-left-color: var(--sev-critical-fg); }
|
||||
.ap-node.sev-high { border-left-color: var(--sev-high-fg); }
|
||||
.ap-node.sev-medium { border-left-color: var(--sev-medium-fg); }
|
||||
.ap-node.sev-low { border-left-color: var(--sev-low-fg); }
|
||||
.ap-node.sev-info { border-left-color: var(--sev-info-fg); }
|
||||
.ap-node .t { font-weight: 600; }
|
||||
.ap-node .m { font-size: 10.5px; color: var(--text-faint); margin-top: 3px; font-family: var(--mono); }
|
||||
.ap-node .chain-from { font-size: 10.5px; color: var(--accent); margin-top: 3px; }
|
||||
.ap-arrow { flex: none; display: flex; align-items: center; color: var(--text-faint); font-size: 16px; }
|
||||
|
||||
/* findings table */
|
||||
.data-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
|
||||
.data-table th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-faint); font-weight: 600; padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--border-strong); white-space: nowrap; }
|
||||
.data-table td { padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--border); vertical-align: top; }
|
||||
.data-table tbody tr:hover { background: var(--surface-2); }
|
||||
.data-table .col-endpoint { font-family: var(--mono); font-size: 11.5px; 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: 12.5px; }
|
||||
|
||||
.sev { font-size: 10px; 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: 11px; color: var(--text-dim); padding: 1px 0; white-space: pre-wrap; word-break: break-word; }
|
||||
|
||||
/* ============================================================ Modal (Auth & Keys) */
|
||||
|
||||
.modal-overlay { position: fixed; inset: 0; background: rgba(10,9,8,.45); display: flex; align-items: center; justify-content: center; z-index: 60; }
|
||||
.modal-overlay[hidden] { display: none; }
|
||||
.modal { width: 620px; max-width: calc(100vw - 40px); max-height: calc(100vh - 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-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: 14px; font-weight: 600; }
|
||||
.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: 12px; 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; }
|
||||
|
||||
.provider-row { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) 0; border-bottom: 1px solid var(--border); }
|
||||
.provider-row:last-child { border-bottom: none; }
|
||||
.provider-row .p-name { flex: none; width: 150px; font-size: 12.5px; font-weight: 500; }
|
||||
.provider-row .p-kind { flex: none; width: 74px; font-size: 10px; text-transform: uppercase; color: var(--text-faint); font-family: var(--mono); }
|
||||
.provider-row input { flex: 1; font-family: var(--mono); font-size: 12px; }
|
||||
.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); }
|
||||
|
||||
/* ============================================================ REPL drawer */
|
||||
|
||||
/* ---------------- REPL drawer ---------------- */
|
||||
.repl-drawer {
|
||||
position: fixed; right: 20px; bottom: 20px; width: 560px; height: 400px; background: #0e0e12; color: #dcdce0;
|
||||
border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,.45); display: flex; flex-direction: column;
|
||||
overflow: hidden; z-index: 50; border: 1px solid #2a2a33;
|
||||
position: fixed; right: var(--sp-5); bottom: var(--sp-5); width: 560px; height: 400px;
|
||||
background: #0f0e10; color: #d8d5cf; border-radius: var(--radius-md); box-shadow: var(--shadow-float);
|
||||
display: flex; flex-direction: column; overflow: hidden; z-index: 50; border: 1px solid #2a282a;
|
||||
}
|
||||
.repl-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: #17171d; font-size: 12px; color: #9a97a6; border-bottom: 1px solid #2a2a33; }
|
||||
.repl-head .icon-btn { color: #9a97a6; }
|
||||
.repl-head .icon-btn:hover { background: #22222b; color: #fff; }
|
||||
.repl-output { flex: 1; overflow-y: auto; padding: 10px 12px; font-family: var(--mono); font-size: 12.5px; white-space: pre-wrap; word-break: break-word; }
|
||||
.repl-input-row { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-top: 1px solid #2a2a33; }
|
||||
.repl-prompt { color: #6d7fe0; font-family: var(--mono); }
|
||||
#replInput { flex: 1; background: transparent; border: none; color: #ecebf0; font-family: var(--mono); font-size: 13px; outline: none; }
|
||||
.repl-drawer[hidden] { display: none; }
|
||||
.repl-head { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-2) var(--sp-3); background: #171618; font-size: 11.5px; color: #8f8b85; border-bottom: 1px solid #2a282a; }
|
||||
.repl-head .icon-btn { color: #8f8b85; }
|
||||
.repl-head .icon-btn:hover { background: #232123; color: #fff; }
|
||||
.repl-output { flex: 1; overflow-y: auto; padding: var(--sp-3); font-family: var(--mono); font-size: 12px; white-space: pre-wrap; word-break: break-word; }
|
||||
.repl-echo { color: var(--accent); }
|
||||
.repl-input-row { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-3); border-top: 1px solid #2a282a; }
|
||||
.repl-prompt { color: #e08a3e; font-family: var(--mono); }
|
||||
#replInput { flex: 1; background: transparent; border: none; color: #ece9e4; font-family: var(--mono); font-size: 12.5px; outline: none; padding: 4px 0; }
|
||||
|
||||
.fab {
|
||||
position: fixed; right: 20px; bottom: 20px; width: 52px; height: 52px; border-radius: 50%; background: var(--accent);
|
||||
color: #fff; border: none; font-family: var(--mono); font-size: 16px; box-shadow: 0 10px 24px rgba(30,42,94,.35);
|
||||
z-index: 40;
|
||||
position: fixed; right: var(--sp-5); bottom: var(--sp-5); width: 46px; height: 46px; border-radius: var(--radius-md);
|
||||
background: var(--accent); color: var(--accent-contrast); border: none; font-family: var(--mono); font-size: 14px;
|
||||
box-shadow: var(--shadow-float); z-index: 40;
|
||||
}
|
||||
.fab:hover { background: var(--accent-2); }
|
||||
.fab:hover { background: var(--accent-hover); }
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.ask-panel { display: none; }
|
||||
.sidebar { width: 210px; }
|
||||
.repl-drawer { width: calc(100vw - 24px); left: 12px; right: 12px; }
|
||||
/* ============================================================ Responsive */
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
.sidebar { width: 200px; }
|
||||
}
|
||||
@media (max-width: 768px) {
|
||||
.sidebar { position: fixed; left: -220px; top: 0; bottom: 0; z-index: 55; transition: left .2s; }
|
||||
.sidebar.open { left: 0; }
|
||||
.field-row { flex-direction: column; }
|
||||
.repl-drawer { width: calc(100vw - 24px); right: 12px; left: 12px; }
|
||||
.modal { width: calc(100vw - 24px); }
|
||||
.review-grid { grid-template-columns: 1fr; }
|
||||
}
|
||||
@media (max-width: 480px) {
|
||||
.topbar { flex-wrap: wrap; gap: var(--sp-2); }
|
||||
.stepper { padding: 0 var(--sp-3); }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user