/* ═══════════════════════════════════════════════════════════════ BREAKPILOT LEDGER — Prüfwerk dashboard The breakpilot portal's design system: paper-white ledger with hairline rules, one violet accent, mono machine values and a restrained status palette. Dark ledger under data-theme="dark". ═══════════════════════════════════════════════════════════════ */ @import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500;600&display=swap'); /* ── Design Tokens (light ledger, the default) ── */ :root { --sidebar-width: 232px; --header-height: 48px; /* Surfaces: paper, recessed wells, panels */ --bg-primary: oklch(0.976 0.008 300); --bg-secondary: oklch(0.995 0.004 300); --bg-card: oklch(0.995 0.004 300); --bg-card-solid: oklch(0.995 0.004 300); --bg-card-hover: oklch(0.958 0.012 300); --bg-elevated: oklch(0.958 0.012 300); /* Ink */ --text-primary: oklch(0.24 0.035 295); --text-secondary: oklch(0.45 0.026 295); --text-tertiary: oklch(0.6 0.02 297); --text-faint: oklch(0.72 0.015 300); /* The single interactive accent: breakpilot violet */ --accent: oklch(0.52 0.23 293); --accent-hover: oklch(0.46 0.23 293); --accent-muted: oklch(0.52 0.23 293 / 0.10); --accent-glow: none; --accent-ink: #fff; /* Hairlines */ --border: oklch(0.905 0.011 300); --border-bright: oklch(0.85 0.014 300); --border-strong: oklch(0.78 0.018 300); --border-accent: oklch(0.52 0.23 293 / 0.32); /* Functional status, low chroma */ --danger: oklch(0.53 0.15 27); --danger-bg: oklch(0.53 0.15 27 / 0.10); --warning: oklch(0.62 0.105 70); --warning-bg: oklch(0.62 0.105 70 / 0.12); --success: oklch(0.55 0.085 155); --success-bg: oklch(0.55 0.085 155 / 0.10); --info: oklch(0.5 0.07 240); --info-bg: oklch(0.5 0.07 240 / 0.10); --orange: oklch(0.6 0.13 45); --orange-bg: oklch(0.6 0.13 45 / 0.10); /* Severity ramp (findings) */ --sev-critical: oklch(0.5 0.16 25); --sev-high: oklch(0.6 0.13 45); --sev-medium: oklch(0.64 0.1 75); --sev-low: oklch(0.6 0.02 260); /* Typography */ --font-display: 'Geist', system-ui, -apple-system, sans-serif; --font-body: 'Geist', system-ui, -apple-system, sans-serif; --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', monospace; /* Radii */ --radius-sm: 5px; --radius: 6px; --radius-lg: 8px; --shadow-pop: 0 1px 2px oklch(0.2 0.02 260 / 0.04), 0 8px 24px -8px oklch(0.2 0.02 260 / 0.18), 0 2px 8px -4px oklch(0.2 0.02 260 / 0.10); /* Transitions */ --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1); color-scheme: light; } /* ── Dark ledger ── When chosen explicitly (`data-theme="dark"`), or when the OS prefers dark and no choice was made. */ :root[data-theme="dark"] { --bg-primary: oklch(0.195 0.028 292); --bg-secondary: oklch(0.238 0.032 292); --bg-card: oklch(0.238 0.032 292); --bg-card-solid: oklch(0.238 0.032 292); --bg-card-hover: oklch(0.232 0.032 292); --bg-elevated: oklch(0.232 0.032 292); --text-primary: oklch(0.94 0.012 300); --text-secondary: oklch(0.75 0.016 300); --text-tertiary: oklch(0.6 0.02 300); --text-faint: oklch(0.48 0.022 300); --accent: oklch(0.7 0.2 293); --accent-hover: oklch(0.64 0.2 293); --accent-muted: oklch(0.7 0.2 293 / 0.18); --border-accent: oklch(0.7 0.2 293 / 0.42); --border: oklch(0.31 0.028 295); --border-bright: oklch(0.37 0.03 295); --border-strong: oklch(0.45 0.032 295); --danger: oklch(0.66 0.17 26); --danger-bg: oklch(0.66 0.17 26 / 0.15); --warning: oklch(0.76 0.13 75); --warning-bg: oklch(0.76 0.13 75 / 0.16); --success: oklch(0.7 0.13 158); --success-bg: oklch(0.7 0.13 158 / 0.14); --info: oklch(0.68 0.1 240); --info-bg: oklch(0.68 0.1 240 / 0.14); --orange: oklch(0.72 0.15 48); --orange-bg: oklch(0.72 0.15 48 / 0.14); --sev-critical: oklch(0.66 0.18 26); --sev-high: oklch(0.72 0.15 48); --sev-medium: oklch(0.78 0.12 78); --sev-low: oklch(0.6 0.02 264); --shadow-pop: 0 1px 2px oklch(0 0 0 / 0.3), 0 12px 32px -10px oklch(0 0 0 / 0.6), 0 2px 8px -4px oklch(0 0 0 / 0.5); color-scheme: dark; } @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg-primary: oklch(0.195 0.028 292); --bg-secondary: oklch(0.238 0.032 292); --bg-card: oklch(0.238 0.032 292); --bg-card-solid: oklch(0.238 0.032 292); --bg-card-hover: oklch(0.232 0.032 292); --bg-elevated: oklch(0.232 0.032 292); --text-primary: oklch(0.94 0.012 300); --text-secondary: oklch(0.75 0.016 300); --text-tertiary: oklch(0.6 0.02 300); --text-faint: oklch(0.48 0.022 300); --accent: oklch(0.7 0.2 293); --accent-hover: oklch(0.64 0.2 293); --accent-muted: oklch(0.7 0.2 293 / 0.18); --border-accent: oklch(0.7 0.2 293 / 0.42); --border: oklch(0.31 0.028 295); --border-bright: oklch(0.37 0.03 295); --border-strong: oklch(0.45 0.032 295); --danger: oklch(0.66 0.17 26); --danger-bg: oklch(0.66 0.17 26 / 0.15); --warning: oklch(0.76 0.13 75); --warning-bg: oklch(0.76 0.13 75 / 0.16); --success: oklch(0.7 0.13 158); --success-bg: oklch(0.7 0.13 158 / 0.14); --info: oklch(0.68 0.1 240); --info-bg: oklch(0.68 0.1 240 / 0.14); --orange: oklch(0.72 0.15 48); --orange-bg: oklch(0.72 0.15 48 / 0.14); --sev-critical: oklch(0.66 0.18 26); --sev-high: oklch(0.72 0.15 48); --sev-medium: oklch(0.78 0.12 78); --sev-low: oklch(0.6 0.02 264); --shadow-pop: 0 1px 2px oklch(0 0 0 / 0.3), 0 12px 32px -10px oklch(0 0 0 / 0.6), 0 2px 8px -4px oklch(0 0 0 / 0.5); color-scheme: dark; } } /* ── Reset & Base ── */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; } body { font-family: var(--font-body); font-size: 13px; line-height: 1.5; background: var(--bg-primary); color: var(--text-primary); min-height: 100vh; font-feature-settings: "cv05" 1, "ss01" 1; } a { color: var(--accent); text-decoration: none; transition: color 0.15s; } a:hover { color: var(--accent-hover); } h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; color: var(--text-primary); } code { font-family: var(--font-mono); font-size: 0.9em; } ::selection { background: var(--accent-muted); } /* Mono metadata, as the portal labels things */ .eyebrow { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-tertiary); font-weight: 500; } /* ── App Shell ── */ .app-shell { display: flex; min-height: 100vh; } /* ── Sidebar (the portal's nav rail) ── */ .sidebar { width: var(--sidebar-width); background: var(--bg-secondary); border-right: 1px solid var(--border); display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; z-index: 40; overflow-y: auto; overflow-x: hidden; transition: width 0.2s ease; } .sidebar.collapsed { width: 60px; } .sidebar.collapsed + .main-content { margin-left: 60px; } .sidebar-header { padding: 14px 14px 12px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 9px; } /* Back to the platform portal: above the product's own navigation. */ .nav-item.portal-link { margin: 8px 8px 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-faint); } .nav-item.portal-link:hover { color: var(--accent); } /* Breakpilot mark + wordmark */ .brand-mark { width: 26px; height: 26px; flex-shrink: 0; background: var(--text-primary); color: var(--bg-primary); display: grid; place-items: center; font-family: var(--font-mono); font-weight: 600; font-size: 13px; border-radius: 5px; } :root[data-theme="dark"] .brand-mark { background: var(--accent); color: oklch(0.16 0.01 264); } @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-mark { background: var(--accent); color: oklch(0.16 0.01 264); } } .brand-text { display: flex; flex-direction: column; min-width: 0; } .brand-name { font-weight: 600; font-size: 14px; letter-spacing: -0.02em; color: var(--text-primary); line-height: 1.2; } .brand-name::after { content: "."; color: var(--accent); } .brand-sub { font-family: var(--font-mono); font-size: 9.5px; color: var(--text-tertiary); letter-spacing: 0.06em; text-transform: uppercase; } .sidebar-nav { padding: 8px 8px 16px; flex: 1; display: flex; flex-direction: column; gap: 1px; } .nav-item { display: flex; align-items: center; gap: 9px; padding: 6px 9px; border-radius: 6px; color: var(--text-secondary); text-decoration: none; font-family: var(--font-body); font-size: 13px; font-weight: 500; cursor: pointer; position: relative; user-select: none; white-space: nowrap; } .nav-item svg { opacity: 0.85; flex-shrink: 0; } /* Runtime-only surfaces (DAST, pentest) when the agent runs source-only. */ .nav-item.disabled { color: var(--text-faint); cursor: not-allowed; } .nav-item.disabled:hover { background: transparent; color: var(--text-faint); } .nav-item:hover { background: var(--bg-elevated); color: var(--text-primary); } .nav-item.active { background: var(--bg-elevated); color: var(--text-primary); font-weight: 600; } .nav-item.active::before { content: ''; position: absolute; left: -8px; top: 50%; transform: translateY(-50%); width: 2px; height: 16px; background: var(--accent); border-radius: 2px; } .sidebar-spacer { flex: 1; } .sidebar-user { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-top: 1px solid var(--border); } .sidebar.collapsed .sidebar-user { justify-content: center; flex-direction: column; gap: 6px; padding: 12px 8px; } .user-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-muted); border: 1px solid var(--border-accent); display: grid; place-items: center; flex-shrink: 0; } .avatar-initials { font-family: var(--font-mono); font-size: 10px; font-weight: 600; color: var(--accent); line-height: 1; text-transform: uppercase; } .avatar-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; } .user-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; } .user-name { font-size: 12px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .logout-link { font-family: var(--font-mono); font-size: 9.5px; color: var(--text-tertiary); text-decoration: none; } .logout-link:hover, .logout-btn-icon:hover { color: var(--danger); } .logout-btn-icon { display: flex; align-items: center; justify-content: center; color: var(--text-tertiary); text-decoration: none; } .sidebar-legal { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 12px 12px; font-size: 11px; } .sidebar-legal a { color: var(--text-tertiary); text-decoration: none; } .sidebar-legal a:hover { color: var(--text-primary); text-decoration: underline; } .legal-dot { color: var(--text-faint); } .sidebar-toggle { background: none; border: none; border-top: 1px solid var(--border); color: var(--text-tertiary); padding: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; } .sidebar-toggle:hover { color: var(--text-primary); background: var(--bg-elevated); } .theme-toggle { background: none; border: none; border-top: 1px solid var(--border); color: var(--text-secondary); padding: 8px 17px; cursor: pointer; display: flex; align-items: center; gap: 9px; font-family: var(--font-body); font-size: 12.5px; font-weight: 500; width: 100%; text-align: left; } .theme-toggle:hover { color: var(--text-primary); background: var(--bg-elevated); } .theme-toggle svg { flex-shrink: 0; opacity: 0.85; } .sidebar.collapsed .theme-toggle { justify-content: center; padding: 8px 0; } .sidebar.collapsed .sidebar-header { padding: 14px 0; justify-content: center; } .sidebar.collapsed .sidebar-nav { padding: 8px 6px; } .sidebar.collapsed .nav-item { justify-content: center; padding: 7px; } .sidebar.collapsed .nav-item.active::before { left: -6px; } /* ── Main Content ── */ .main-content { margin-left: var(--sidebar-width); flex: 1; padding: 22px 26px 64px; transition: margin-left 0.2s ease; min-height: 100vh; position: relative; } /* ── Back Navigation ── */ .back-nav { margin-bottom: 12px; } .btn-back { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 5px 10px; color: var(--text-secondary); } .btn-back:hover { color: var(--text-primary); } /* ── Page Header ── */ .page-header { margin-bottom: 18px; } .page-header h2 { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--text-primary); letter-spacing: -0.02em; } .page-header p { color: var(--text-tertiary); margin-top: 3px; font-size: 12.5px; } /* ── Stat Cards (the portal's metric row) ── */ .stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0; margin-bottom: 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-card); } .stat-card { padding: 13px 15px 14px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 0 -1px -1px 0; position: relative; } .stat-card .label, .stat-card .stat-label { font-family: var(--font-mono); font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.13em; color: var(--text-tertiary); margin-bottom: 9px; } .stat-card .value, .stat-card .stat-value { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 25px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; } /* ── Cards (the portal's panel) ── */ .card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; margin-bottom: 12px; position: relative; } .card-header { font-family: var(--font-display); font-size: 12px; font-weight: 600; margin: -16px -16px 14px; padding: 11px 14px; border-bottom: 1px solid var(--border); color: var(--text-primary); letter-spacing: -0.01em; } /* The portal's corner ticks, for panels that carry evidence. */ .bracket::before, .bracket::after { content: ""; position: absolute; width: 7px; height: 7px; pointer-events: none; border-color: var(--text-tertiary); opacity: 0.55; } .bracket::before { top: -1px; left: -1px; border-top: 1.5px solid; border-left: 1.5px solid; border-top-left-radius: 2px; } .bracket::after { bottom: -1px; right: -1px; border-bottom: 1.5px solid; border-right: 1.5px solid; border-bottom-right-radius: 2px; } /* ── Tables (the portal's ledger table) ── */ .table-wrapper { overflow-x: auto; } table { width: 100%; border-collapse: collapse; font-size: 12.5px; } th { text-align: left; padding: 8px 14px; font-family: var(--font-mono); font-size: 9.5px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-tertiary); border-bottom: 1px solid var(--border-bright); white-space: nowrap; position: sticky; top: 0; background: var(--bg-card-solid); z-index: 1; } td { padding: 8px 14px; border-bottom: 1px solid var(--border); font-size: 12.5px; color: var(--text-primary); vertical-align: middle; } tbody tr:hover { background: var(--bg-elevated); } tbody tr:last-child td { border-bottom: none; } /* ── Badges (mono tags, low-chroma status) ── */ .badge { display: inline-flex; align-items: center; gap: 5px; padding: 1px 7px; border-radius: 4px; font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; border: 1px solid transparent; } .badge-critical { background: color-mix(in oklch, var(--sev-critical) 12%, transparent); color: var(--sev-critical); border-color: color-mix(in oklch, var(--sev-critical) 30%, transparent); } .badge-high { background: color-mix(in oklch, var(--sev-high) 12%, transparent); color: var(--sev-high); border-color: color-mix(in oklch, var(--sev-high) 30%, transparent); } .badge-medium { background: color-mix(in oklch, var(--sev-medium) 14%, transparent); color: var(--sev-medium); border-color: color-mix(in oklch, var(--sev-medium) 32%, transparent); } .badge-low { background: color-mix(in oklch, var(--sev-low) 12%, transparent); color: var(--sev-low); border-color: color-mix(in oklch, var(--sev-low) 30%, transparent); } .badge-info { background: var(--accent-muted); color: var(--accent); border-color: var(--border-accent); } .badge-danger { background: var(--danger-bg); color: var(--danger); border-color: color-mix(in oklch, var(--danger) 30%, transparent); } .badge-success { background: var(--success-bg); color: var(--success); border-color: color-mix(in oklch, var(--success) 30%, transparent); } /* Neutral: skipped because a feature is disabled in this environment — not an error. */ .badge-neutral { background: transparent; color: var(--text-tertiary); border-color: var(--border-bright); border-style: dashed; } /* ── Buttons (the portal's buttons) ── */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 6px 12px; border-radius: var(--radius); font-family: var(--font-body); font-size: 12.5px; font-weight: 500; border: 1px solid var(--border-bright); background: var(--bg-card); color: var(--text-primary); cursor: pointer; transition: background 0.1s, border-color 0.1s; white-space: nowrap; position: relative; } .btn:hover { background: var(--bg-elevated); border-color: var(--border-strong); color: var(--text-primary); } .btn[disabled] { opacity: 0.5; cursor: not-allowed; } .btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); } .btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); } .btn-ghost { background: transparent; color: var(--text-secondary); border-color: transparent; } .btn-ghost:hover { color: var(--text-primary); border-color: var(--border); background: var(--bg-elevated); } .btn-ghost-danger:hover { color: var(--danger); border-color: color-mix(in oklch, var(--danger) 30%, var(--border-bright)); background: var(--danger-bg); } .btn-scanning { opacity: 0.7; cursor: not-allowed; display: inline-flex; align-items: center; gap: 6px; } .btn-icon { display: inline-flex; align-items: center; justify-content: center; padding: 5px 7px; min-width: 30px; } /* ── Overview Cards Grid ── */ .overview-section { margin-top: 28px; } .overview-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; } .overview-section-header h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--text-primary); } .overview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; } .overview-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; transition: border-color 0.2s, box-shadow 0.2s; text-decoration: none; color: inherit; display: flex; align-items: center; gap: 12px; } .overview-card:hover { border-color: var(--accent); box-shadow: none; } .overview-card-icon { color: var(--accent); flex-shrink: 0; } .overview-card-body { min-width: 0; } .overview-card-title { font-weight: 600; font-size: 14px; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .overview-card-sub { font-size: 12px; color: var(--text-secondary); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mcp-status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; } .mcp-status-dot.running { background: var(--success); } .mcp-status-dot.stopped { background: var(--text-tertiary); } .mcp-status-dot.error { background: var(--danger); } /* ── MCP Server Cards ── */ .mcp-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 16px; } .mcp-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; transition: border-color 0.2s; } .mcp-card:hover { border-color: var(--border-bright); } .mcp-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; } .mcp-card-title { display: flex; align-items: center; gap: 10px; } .mcp-card-title h3 { font-family: var(--font-display); font-size: 16px; font-weight: 600; margin: 0; color: var(--text-primary); } .mcp-card-status { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 8px; border-radius: 10px; } .mcp-card-status.running { color: var(--success); background: var(--success-bg); } .mcp-card-status.stopped { color: var(--text-secondary); background: var(--bg-secondary); } .mcp-card-status.error { color: var(--danger); background: var(--danger-bg); } .mcp-card-desc { font-size: 13px; color: var(--text-secondary); margin: 0 0 16px; line-height: 1.4; } .mcp-card-details { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; padding: 12px; background: var(--bg-secondary); border-radius: var(--radius-md); } .mcp-detail-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); } .mcp-detail-label { font-size: 12px; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; min-width: 80px; flex-shrink: 0; } .mcp-detail-value { font-family: var(--font-mono); font-size: 12px; color: var(--text-primary); word-break: break-all; } .mcp-card-tools { margin-bottom: 16px; } .mcp-tools-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .mcp-tool-chip { font-family: var(--font-mono); font-size: 11px; padding: 3px 10px; background: var(--accent-muted); color: var(--accent); border-radius: 12px; border: 1px solid var(--border-accent); } .mcp-card-token { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; background: var(--bg-secondary); border-radius: var(--radius-md); margin-bottom: 12px; } .mcp-token-display { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; color: var(--text-secondary); } .mcp-token-code { font-family: var(--font-mono); font-size: 12px; color: var(--text-primary); word-break: break-all; } .mcp-token-actions { display: flex; gap: 4px; flex-shrink: 0; } .mcp-card-footer { font-size: 11px; color: var(--text-tertiary); } /* ── DAST Stat Cards ── */ .stat-card-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; text-align: center; } .stat-card-value { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; } .stat-card-label { font-size: 13px; color: var(--text-secondary); display: flex; align-items: center; justify-content: center; gap: 6px; } /* ── Button active state ── */ .btn-active, .btn.btn-active { background: var(--accent-muted); border-color: var(--accent); color: var(--accent); } .spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--border-bright); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; } .btn-danger { background: var(--bg-card); color: var(--danger); border: 1px solid color-mix(in oklch, var(--danger) 30%, var(--border-bright)); } .btn-danger:hover { background: var(--danger-bg); color: var(--danger); border-color: var(--danger); } /* ── Modal ── */ .modal-overlay { position: fixed; inset: 0; z-index: 1000; background: oklch(0.2 0.02 260 / 0.32); display: flex; align-items: center; justify-content: center; } .modal-dialog { background: var(--bg-card-solid); border: 1px solid var(--border-bright); border-radius: 10px; padding: 18px; max-width: 480px; width: calc(100vw - 32px); box-shadow: var(--shadow-pop); } .modal-dialog h3 { font-family: var(--font-display); font-size: 14px; font-weight: 600; margin-bottom: 12px; } .modal-dialog p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 8px; } .modal-warning { color: var(--danger) !important; font-size: 13px !important; background: var(--danger-bg); border-radius: var(--radius-sm); padding: 10px 12px; margin-top: 4px; } .modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; } /* The portal's default button: surface, hairline border. */ .btn-secondary { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border-bright); } .btn-secondary:hover { background: var(--bg-elevated); border-color: var(--border-strong); color: var(--text-primary); } .btn-sm { padding: 4px 9px; font-size: 12px; } .btn:disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; } /* The selected option in a button group: disabled, but not faded. */ .btn-current:disabled { opacity: 1; cursor: default; } /* Layout utilities used by the pages. */ .flex { display: flex; } .items-center { align-items: center; } .justify-center { justify-content: center; } .gap-2 { gap: 8px; } .gap-4 { gap: 16px; } .mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } /* ── Code Blocks ── */ .code-block { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7; overflow-x: auto; white-space: pre; color: var(--text-primary); } /* ── Pagination ── */ .pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); } .pagination span { font-family: var(--font-mono); font-size: 12px; color: var(--text-tertiary); letter-spacing: 0.02em; } /* ── Filter Bar ── */ .filter-bar { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; } .filter-bar select, .filter-bar input { background: var(--bg-card-solid); border: 1px solid var(--border-bright); border-radius: var(--radius); padding: 6px 10px; color: var(--text-primary); font-family: var(--font-body); font-size: 12.5px; transition: border-color 0.2s; cursor: pointer; -webkit-appearance: none; appearance: none; } .filter-bar select { padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235e7291' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; } .filter-bar select:hover, .filter-bar input:hover { border-color: var(--border-strong); } .filter-bar select:focus, .filter-bar input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--border-accent); } /* ── Forms ── */ .form-group { margin-bottom: 18px; } .form-group label { display: block; font-family: var(--font-mono); font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 5px; color: var(--text-tertiary); } .form-group input, .form-group select, .form-group textarea { width: 100%; background: var(--bg-card); border: 1px solid var(--border-bright); border-radius: var(--radius); padding: 7px 10px; color: var(--text-primary); font-family: var(--font-body); font-size: 13px; } .form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--border-accent); } .form-group input::placeholder { color: var(--text-faint); } /* ── Loading State ── */ .loading { display: flex; align-items: center; justify-content: center; padding: 48px; font-family: var(--font-mono); font-size: 13px; color: var(--text-tertiary); letter-spacing: 0.03em; } .loading::before { content: ''; width: 16px; height: 16px; border: 2px solid var(--border-bright); border-top-color: var(--accent); border-radius: 50%; margin-right: 12px; animation: spin 0.8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } /* ── Severity Chart ── */ .severity-chart { display: flex; gap: 8px; align-items: flex-end; height: 200px; padding: 16px 0; } .severity-bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; } .severity-bar-count { font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: var(--text-primary); } .severity-bar-fill { width: 100%; border-radius: 2px 2px 0 0; min-height: 4px; transition: height 0.6s var(--ease-out); position: relative; } .severity-bar-label { font-family: var(--font-mono); font-size: 10px; font-weight: 500; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.1em; } /* ── Toast Notifications (the portal's ink toasts) ── */ .toast-container { position: fixed; bottom: 18px; right: 18px; z-index: 200; display: flex; flex-direction: column; gap: 8px; pointer-events: none; } .toast { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; max-width: 340px; padding: 11px 14px; border-radius: var(--radius-lg); background: var(--text-primary); color: var(--bg-primary); border-left: 3px solid var(--text-tertiary); box-shadow: var(--shadow-pop); font-family: var(--font-body); font-size: 12.5px; pointer-events: auto; animation: toast-in 0.18s ease; } .toast-success { border-left-color: var(--success); } .toast-error { border-left-color: var(--danger); } .toast-info { border-left-color: var(--accent); } .toast-dismiss { background: none; border: none; color: inherit; font-size: 16px; cursor: pointer; opacity: 0.6; padding: 0 2px; line-height: 1; } .toast-dismiss:hover { opacity: 1; } @keyframes toast-in { from { opacity: 0; transform: translateY(8px); } } /* ── Scrollbar ── */ ::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: var(--border-bright); border: 3px solid var(--bg-primary); border-radius: 8px; } ::-webkit-scrollbar-thumb:hover { background: var(--border-strong); } /* ── Graph Explorer ── */ .graph-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; } .graph-search-bar { flex: 1; max-width: 400px; } .graph-search-bar input { width: 100%; background: var(--bg-card-solid); border: 1px solid var(--border-bright); border-radius: var(--radius); padding: 8px 14px; color: var(--text-primary); font-family: var(--font-body); font-size: 13px; transition: border-color 0.2s; } .graph-search-bar input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-muted); } .graph-search-bar input::placeholder { color: var(--text-tertiary); } .graph-explorer-layout { display: grid; grid-template-columns: 250px 1fr; gap: 0; height: calc(100vh - 200px); min-height: 500px; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-card); } .graph-explorer-layout.inspector-open { grid-template-columns: 250px 550px 1fr; } /* File Tree Panel */ .file-tree-panel { background: var(--bg-secondary); border-right: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden; } .file-tree-header { padding: 12px 16px; border-bottom: 1px solid var(--border); } .file-tree-header h4 { font-family: var(--font-display); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-secondary); } .file-tree-search { padding: 8px 10px; border-bottom: 1px solid var(--border); } .file-tree-search input { width: 100%; background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 5px 10px; color: var(--text-primary); font-family: var(--font-body); font-size: 12px; transition: border-color 0.2s; } .file-tree-search input:focus { border-color: var(--accent); outline: none; } .file-tree-search input::placeholder { color: var(--text-tertiary); } .file-tree-content { flex: 1; overflow-y: auto; padding: 4px 0; } .file-tree-empty { padding: 20px 16px; color: var(--text-tertiary); font-size: 12px; text-align: center; } .file-tree-item { display: flex; align-items: center; gap: 6px; padding: 4px 10px; cursor: pointer; font-size: 12px; color: var(--text-secondary); transition: all 0.15s; user-select: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .file-tree-item:hover { background: var(--accent-muted); color: var(--text-primary); } .file-tree-icon { flex-shrink: 0; width: 14px; text-align: center; font-size: 10px; color: var(--text-tertiary); } .file-tree-dir .file-tree-icon { color: var(--accent); } .file-tree-file .file-tree-icon { color: var(--text-tertiary); font-size: 8px; } .file-tree-name { flex: 1; overflow: hidden; text-overflow: ellipsis; } .file-tree-dir .file-tree-name { font-weight: 500; color: var(--text-primary); } .file-tree-badge { flex-shrink: 0; background: var(--accent-muted); color: var(--accent); font-family: var(--font-mono); font-size: 10px; font-weight: 500; padding: 1px 5px; border-radius: 4px; } /* Graph Canvas Panel */ .graph-canvas-panel { display: flex; flex-direction: column; background: var(--bg-primary); position: relative; overflow: hidden; } .graph-canvas { flex: 1; width: 100%; min-height: 0; } /* ── Graph Stabilization Overlay ── */ .graph-stab-overlay { position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; background: color-mix(in oklch, var(--bg-primary) 92%, transparent); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s; } .graph-stab-overlay.graph-stab-fade-out { opacity: 0; pointer-events: none; } .graph-stab-content { display: flex; flex-direction: column; align-items: center; gap: 24px; } /* Orbital rings */ .graph-stab-rings { position: relative; width: 120px; height: 120px; } .graph-stab-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid transparent; } .graph-stab-ring-1 { border-top-color: var(--accent); border-right-color: var(--accent-muted); animation: stab-orbit 2.4s linear infinite; } .graph-stab-ring-2 { inset: 14px; border-bottom-color: rgba(224, 64, 251, 0.5); border-left-color: rgba(224, 64, 251, 0.1); animation: stab-orbit 1.8s linear infinite reverse; filter: drop-shadow(0 0 6px rgba(224, 64, 251, 0.25)); } .graph-stab-ring-3 { inset: 30px; border-top-color: var(--success); border-right-color: var(--success-bg); animation: stab-orbit 3.2s linear infinite; } .graph-stab-core { position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; transform: translate(-50%, -50%); background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 3px var(--border-accent); animation: stab-pulse 1.6s ease-in-out infinite; } @keyframes stab-orbit { to { transform: rotate(360deg); } } @keyframes stab-pulse { 0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 50% { transform: translate(-50%, -50%) scale(1.6); opacity: 0.6; } } /* Text */ .graph-stab-text { text-align: center; } .graph-stab-title { font-family: var(--font-display); font-size: 16px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-primary); margin-bottom: 4px; } .graph-stab-subtitle { font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); letter-spacing: 0.03em; } /* Progress bar */ .graph-stab-progress { width: 200px; height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; position: relative; } .graph-stab-progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), #e040fb); border-radius: 2px; transition: width 0.3s ease-out; box-shadow: none; position: relative; } .graph-stab-progress-fill::after { content: ''; position: absolute; right: 0; top: -2px; width: 7px; height: 7px; background: #fff; border-radius: 50%; box-shadow: none; } .graph-stab-pct { font-family: var(--font-mono); font-size: 11px; color: var(--text-tertiary); letter-spacing: 0.04em; } .graph-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: var(--text-tertiary); gap: 8px; } .graph-empty-icon { font-size: 48px; opacity: 0.3; } .graph-empty-state h3 { font-family: var(--font-display); font-size: 16px; color: var(--text-secondary); } .graph-empty-state p { font-size: 13px; } /* Stats Bar */ .graph-stats-bar { display: flex; align-items: center; gap: 12px; padding: 8px 16px; background: var(--bg-secondary); border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 11px; flex-shrink: 0; } .graph-stat { display: inline-flex; align-items: center; } .graph-stat-value { color: var(--accent); font-weight: 600; } .graph-stat-label { color: var(--text-tertiary); } .graph-stat-divider { color: var(--border-bright); } /* Node Kind Badges */ .node-label-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 4px; font-family: var(--font-mono); font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; } .node-kind-function, .node-kind-method { background: var(--accent-muted); color: var(--accent); border: 1px solid var(--border-accent); } .node-kind-struct, .node-kind-class { background: rgba(224, 64, 251, 0.12); color: #e040fb; border: 1px solid rgba(224, 64, 251, 0.2); } .node-kind-enum { background: rgba(255, 176, 32, 0.12); color: #ffb020; border: 1px solid rgba(255, 176, 32, 0.2); } .node-kind-interface, .node-kind-trait { background: rgba(124, 77, 255, 0.12); color: #7c4dff; border: 1px solid rgba(124, 77, 255, 0.2); } .node-kind-module { background: rgba(255, 138, 61, 0.12); color: #ff8a3d; border: 1px solid rgba(255, 138, 61, 0.2); } .node-kind-file { background: var(--success-bg); color: var(--success); border: 1px solid color-mix(in oklch, var(--success) 30%, transparent); } /* Code Inspector Panel */ .code-inspector-panel { background: var(--bg-secondary); border-right: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden; } .code-inspector-header { padding: 12px 16px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; position: relative; } .code-inspector-title { display: flex; align-items: center; gap: 8px; overflow: hidden; } .code-inspector-file-name { font-family: var(--font-mono); font-size: 12px; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .code-inspector-meta { display: flex; align-items: center; gap: 8px; } .code-inspector-node-name { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--accent); } .code-inspector-lines { font-family: var(--font-mono); font-size: 11px; color: var(--text-tertiary); } .code-inspector-close { position: absolute; top: 10px; right: 10px; } .code-inspector-body { flex: 1; overflow-y: auto; } .code-inspector-code { font-family: var(--font-mono); font-size: 12px; line-height: 1.7; padding: 0; } .code-line { display: flex; padding: 0 12px 0 0; transition: background-color 0.15s; } .code-line:hover { background: var(--accent-muted); } .code-line-highlight { background: var(--accent-muted); border-left: 2px solid var(--accent); } .code-line-highlight:hover { background: var(--accent-muted); } .code-line-number { display: inline-block; width: 48px; text-align: right; padding-right: 12px; color: var(--text-tertiary); user-select: none; flex-shrink: 0; font-size: 11px; } .code-line-content { white-space: pre; color: var(--text-primary); overflow-x: auto; } .code-inspector-empty { padding: 20px 16px; color: var(--text-tertiary); font-size: 12px; text-align: center; } /* ── Responsive ── */ @media (max-width: 768px) { .sidebar { transform: translateX(-100%); transition: transform 0.3s var(--ease-out); } .sidebar.open { transform: translateX(0); } .main-content { margin-left: 0; padding: 16px; } .stat-cards { grid-template-columns: repeat(2, 1fr); } .graph-explorer-layout { grid-template-columns: 1fr; height: auto; } .graph-explorer-layout.inspector-open { grid-template-columns: 1fr; } .file-tree-panel { max-height: 200px; border-right: none; border-bottom: 1px solid var(--border); } .graph-canvas-panel { min-height: 400px; } .code-inspector-panel { border-right: none; border-top: 1px solid var(--border); max-height: 300px; } } @media (max-width: 480px) { .stat-cards { grid-template-columns: 1fr; } } /* ── Graph Index Repo Cards ── */ .graph-index-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; } .graph-repo-card { display: block; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; text-decoration: none; color: var(--text-primary); transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background 0.2s var(--ease-out); } .graph-repo-card:hover { border-color: var(--border-accent); background: var(--bg-card-hover); box-shadow: var(--accent-glow); } .graph-repo-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; } .graph-repo-card-icon { font-size: 20px; color: var(--accent); line-height: 1; } .graph-repo-card-name { font-family: var(--font-display); font-size: 16px; font-weight: 600; margin: 0; } .graph-repo-card-url { font-family: var(--font-mono); font-size: 11px; color: var(--text-secondary); margin: 0 0 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .graph-repo-card-meta { display: flex; flex-wrap: wrap; gap: 8px; } .graph-repo-card-tag { font-size: 11px; color: var(--text-secondary); background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 2px 8px; } .graph-repo-card-tag-findings { color: var(--accent); border-color: var(--border-accent); background: var(--accent-muted); } /* ── Search Suggestions ── */ .graph-search-bar { position: relative; } .search-suggestions { position: absolute; top: 100%; left: 0; right: 0; z-index: 100; background: var(--bg-elevated); border: 1px solid var(--border-bright); border-radius: 0 0 var(--radius) var(--radius); max-height: 300px; overflow-y: auto; box-shadow: var(--shadow-pop); } .search-suggestion-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; cursor: pointer; border-bottom: 1px solid var(--border); transition: background 0.15s; } .search-suggestion-item:last-child { border-bottom: none; } .search-suggestion-item:hover { background: var(--bg-card-hover); } .search-suggestion-name { font-size: 13px; font-weight: 500; color: var(--text-primary); flex-shrink: 0; } .search-suggestion-kind { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); background: var(--accent-muted); border-radius: var(--radius-sm); padding: 1px 6px; flex-shrink: 0; } .search-suggestion-path { font-family: var(--font-mono); font-size: 11px; color: var(--text-tertiary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-left: auto; } /* ── AI Chat ── */ .chat-embedding-banner { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 16px; font-size: 13px; color: var(--text-secondary); } .chat-embedding-building { border-color: var(--border-accent); background: var(--accent-muted); } .chat-embedding-status { display: flex; align-items: center; gap: 10px; flex: 1; } .chat-spinner { width: 16px; height: 16px; border: 2px solid var(--border-bright); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; flex-shrink: 0; } @keyframes spin { to { transform: rotate(360deg); } } .chat-progress-bar { width: 120px; height: 6px; background: var(--bg-secondary); border-radius: 3px; overflow: hidden; flex-shrink: 0; } .chat-progress-fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width 0.5s var(--ease-out); min-width: 2%; } .chat-embedding-banner .btn-sm { padding: 6px 14px; font-size: 12px; background: var(--accent-muted); color: var(--accent); border: 1px solid var(--border-accent); border-radius: var(--radius-sm); cursor: pointer; transition: all 0.2s var(--ease-out); } .chat-embedding-banner .btn-sm:hover:not(:disabled) { background: var(--accent); color: var(--bg-primary); } .chat-embedding-banner .btn-sm:disabled { opacity: 0.5; cursor: not-allowed; } .chat-container { display: flex; flex-direction: column; height: calc(100vh - 240px); background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; } .chat-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; } .chat-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: var(--text-tertiary); text-align: center; } .chat-empty h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; } .chat-empty p { font-size: 13px; max-width: 400px; } .chat-message { max-width: 80%; padding: 12px 16px; border-radius: var(--radius); font-size: 14px; line-height: 1.6; } .chat-message-user { align-self: flex-end; background: var(--accent-muted); border: 1px solid var(--border-accent); color: var(--text-primary); } .chat-message-assistant { align-self: flex-start; background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-primary); } .chat-message-role { font-family: var(--font-display); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-tertiary); margin-bottom: 6px; } .chat-message-content { white-space: pre-wrap; word-break: break-word; } .chat-typing { color: var(--text-tertiary); font-style: italic; } .chat-sources { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 10px; } .chat-sources-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-tertiary); display: block; margin-bottom: 8px; } .chat-source-card { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 6px; } .chat-source-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; } .chat-source-name { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--accent); } .chat-source-location { font-family: var(--font-mono); font-size: 11px; color: var(--text-tertiary); } .chat-source-snippet { margin: 0; padding: 8px; background: var(--bg-primary); border-radius: 4px; overflow-x: auto; max-height: 120px; } .chat-source-snippet code { font-family: var(--font-mono); font-size: 11px; color: var(--text-secondary); white-space: pre; } .chat-input-area { display: flex; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--border); background: var(--bg-secondary); } .chat-input { flex: 1; background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-primary); font-family: var(--font-body); font-size: 14px; padding: 10px 14px; resize: none; min-height: 42px; max-height: 120px; outline: none; transition: border-color 0.2s var(--ease-out); } .chat-input:focus { border-color: var(--accent); } .chat-input:disabled { opacity: 0.5; cursor: not-allowed; } .chat-send-btn { padding: 10px 20px; background: var(--accent); color: var(--bg-primary); border: none; border-radius: var(--radius-sm); font-family: var(--font-display); font-weight: 600; font-size: 13px; cursor: pointer; transition: all 0.2s var(--ease-out); align-self: flex-end; } .chat-send-btn:hover:not(:disabled) { background: var(--accent-hover); box-shadow: var(--accent-glow); } .chat-send-btn:disabled { opacity: 0.5; cursor: not-allowed; } /* ── SBOM Enhancements ── */ .sbom-tab-bar { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 1px solid var(--border); padding-bottom: 0; } .sbom-tab { padding: 10px 20px; background: none; border: none; border-bottom: 2px solid transparent; color: var(--text-secondary); font-family: var(--font-display); font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s var(--ease-out); } .sbom-tab:hover { color: var(--text-primary); } .sbom-tab.active { color: var(--accent); border-bottom-color: var(--accent); } .sbom-filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; align-items: center; } .sbom-filter-select { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-primary); font-family: var(--font-body); font-size: 13px; padding: 8px 12px; outline: none; transition: border-color 0.2s var(--ease-out); min-width: 140px; } .sbom-filter-select:focus { border-color: var(--accent); } .sbom-filter-input { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-primary); font-family: var(--font-body); font-size: 13px; padding: 8px 14px; outline: none; min-width: 200px; transition: border-color 0.2s var(--ease-out); } .sbom-filter-input:focus { border-color: var(--accent); } .sbom-filter-input::placeholder { color: var(--text-tertiary); } .sbom-result-count { font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; } /* Export */ .sbom-export-wrapper { position: relative; margin-left: auto; } .sbom-export-btn { font-size: 13px; } .sbom-export-dropdown { position: absolute; top: 100%; right: 0; z-index: 50; background: var(--bg-elevated); border: 1px solid var(--border-bright); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 8px; min-width: 200px; box-shadow: var(--shadow-pop); margin-top: 4px; } .sbom-export-hint { font-size: 11px; color: var(--text-tertiary); } .sbom-export-result { margin-bottom: 16px; } .sbom-export-result-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; } /* Vulnerability drill-down */ .sbom-vuln-toggle { cursor: pointer; user-select: none; } .sbom-vuln-detail-row td { padding: 0 !important; background: var(--bg-secondary); } .sbom-vuln-detail { padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 10px; } .sbom-vuln-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; min-width: 240px; flex: 1; max-width: 400px; } .sbom-vuln-card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; } .sbom-vuln-id { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--text-primary); } .sbom-vuln-source { font-size: 11px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.04em; } .sbom-vuln-link { font-size: 12px; color: var(--accent); text-decoration: none; transition: color 0.15s; } .sbom-vuln-link:hover { color: var(--accent-hover); text-decoration: underline; } /* License compliance */ .sbom-license-badge { font-size: 12px; padding: 2px 8px; border-radius: var(--radius-sm); font-weight: 500; white-space: nowrap; } .license-permissive { background: var(--success-bg); color: var(--success); border: 1px solid color-mix(in oklch, var(--success) 30%, transparent); } .license-weak-copyleft { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(255, 176, 32, 0.2); } .license-copyleft { background: var(--danger-bg); color: var(--danger); border: 1px solid color-mix(in oklch, var(--danger) 30%, transparent); } .license-copyleft-warning { background: var(--danger-bg); border: 1px solid color-mix(in oklch, var(--danger) 30%, transparent); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 16px; } .license-copyleft-warning strong { color: var(--danger); font-size: 15px; display: block; margin-bottom: 6px; } .license-copyleft-warning p { color: var(--text-secondary); font-size: 13px; margin-bottom: 10px; } .license-copyleft-item { padding: 6px 0; font-size: 13px; color: var(--text-secondary); } .license-pkg-list { font-family: var(--font-mono); font-size: 12px; color: var(--text-tertiary); } .license-bar-chart { display: flex; flex-direction: column; gap: 8px; } .license-bar-row { display: flex; align-items: center; gap: 12px; } .license-bar-label { font-size: 13px; color: var(--text-secondary); min-width: 120px; text-align: right; flex-shrink: 0; } .license-bar-track { flex: 1; height: 20px; background: var(--bg-secondary); border-radius: var(--radius-sm); overflow: hidden; } .license-bar { height: 100%; border-radius: var(--radius-sm); transition: width 0.3s var(--ease-out); } .license-bar.license-permissive { background: var(--success); border: none; } .license-bar.license-copyleft { background: var(--danger); border: none; } .license-bar-count { font-family: var(--font-mono); font-size: 12px; color: var(--text-tertiary); min-width: 32px; } /* SBOM Diff */ .sbom-diff-controls { display: flex; gap: 16px; flex-wrap: wrap; } .sbom-diff-select-group { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 200px; } .sbom-diff-select-group label { font-size: 12px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.04em; } .sbom-diff-summary { display: flex; gap: 12px; margin: 16px 0; flex-wrap: wrap; } .sbom-diff-stat { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 20px; display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; min-width: 100px; text-align: center; font-size: 12px; color: var(--text-secondary); } .sbom-diff-stat-num { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--text-primary); } .sbom-diff-added .sbom-diff-stat-num { color: var(--success); } .sbom-diff-removed .sbom-diff-stat-num { color: var(--danger); } .sbom-diff-changed .sbom-diff-stat-num { color: var(--warning); } .sbom-diff-row-added { border-left: 3px solid var(--success); } .sbom-diff-row-removed { border-left: 3px solid var(--danger); } .sbom-diff-row-changed { border-left: 3px solid var(--warning); } /* ═══════════════════════════════════ ATTACK CHAIN VISUALIZATION ═══════════════════════════════════ */ /* KPI bar */ .ac-kpi-bar { display: flex; gap: 2px; margin-bottom: 16px; } .ac-kpi-card { flex: 1; background: var(--bg-secondary); border: 1px solid var(--border-color); padding: 12px 14px; position: relative; overflow: hidden; } .ac-kpi-card:first-child { border-radius: 10px 0 0 10px; } .ac-kpi-card:last-child { border-radius: 0 10px 10px 0; } .ac-kpi-card::before { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; } .ac-kpi-card:nth-child(1)::before { background: var(--accent, #3b82f6); opacity: 0.4; } .ac-kpi-card:nth-child(2)::before { background: var(--danger, #dc2626); opacity: 0.5; } .ac-kpi-card:nth-child(3)::before { background: var(--success, #16a34a); opacity: 0.4; } .ac-kpi-card:nth-child(4)::before { background: var(--warning, #d97706); opacity: 0.4; } .ac-kpi-value { font-family: var(--font-display); font-size: 24px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; } .ac-kpi-label { font-family: var(--font-mono, monospace); font-size: 9px; color: var(--text-tertiary, #6b7280); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; } /* Phase progress rail */ .ac-phase-rail { display: flex; align-items: flex-start; margin-bottom: 14px; position: relative; padding: 0 8px; } .ac-phase-rail::before { content: ''; position: absolute; top: 7px; left: 8px; right: 8px; height: 2px; background: var(--border-color); z-index: 0; } .ac-rail-node { display: flex; flex-direction: column; align-items: center; position: relative; z-index: 1; cursor: pointer; min-width: 56px; flex: 1; transition: all 0.15s; } .ac-rail-node:hover .ac-rail-dot { transform: scale(1.25); } .ac-rail-node.active .ac-rail-label { color: var(--accent, #3b82f6); } .ac-rail-node.active .ac-rail-dot { box-shadow: 0 0 0 3px rgba(59,130,246,0.2), 0 0 12px rgba(59,130,246,0.15); } .ac-rail-dot { width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid var(--bg-primary, #0f172a); transition: transform 0.2s cubic-bezier(0.16,1,0.3,1); flex-shrink: 0; } .ac-rail-dot.done { background: var(--success, #16a34a); box-shadow: 0 0 8px rgba(22,163,74,0.25); } .ac-rail-dot.running { background: var(--warning, #d97706); box-shadow: 0 0 10px rgba(217,119,6,0.35); animation: ac-dot-pulse 2s ease-in-out infinite; } .ac-rail-dot.pending { background: var(--text-tertiary, #6b7280); opacity: 0.5; } .ac-rail-dot.mixed { background: conic-gradient(var(--success, #16a34a) 0deg 270deg, var(--danger, #dc2626) 270deg 360deg); box-shadow: 0 0 8px rgba(22,163,74,0.2); } @keyframes ac-dot-pulse { 0%, 100% { box-shadow: 0 0 8px rgba(217,119,6,0.35); } 50% { box-shadow: 0 0 18px rgba(217,119,6,0.55); } } .ac-rail-label { font-family: var(--font-mono, monospace); font-size: 9px; color: var(--text-tertiary, #6b7280); margin-top: 5px; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; transition: color 0.15s; } .ac-rail-findings { font-family: var(--font-mono, monospace); font-size: 9px; font-weight: 600; margin-top: 1px; } .ac-rail-findings.has { color: var(--danger, #dc2626); } .ac-rail-findings.none { color: var(--text-tertiary, #6b7280); opacity: 0.4; } .ac-rail-heatmap { display: flex; gap: 2px; margin-top: 3px; } .ac-hm-cell { width: 7px; height: 7px; border-radius: 1.5px; } .ac-hm-cell.ok { background: var(--success, #16a34a); opacity: 0.5; } .ac-hm-cell.fail { background: var(--danger, #dc2626); opacity: 0.65; } .ac-hm-cell.run { background: var(--warning, #d97706); opacity: 0.5; animation: ac-pulse 1.5s ease-in-out infinite; } .ac-hm-cell.wait { background: var(--text-tertiary, #6b7280); opacity: 0.15; } .ac-rail-bar { flex: 1; height: 2px; margin-top: 7px; position: relative; z-index: 1; } .ac-rail-bar-inner { height: 100%; border-radius: 1px; } .ac-rail-bar-inner.done { background: var(--success, #16a34a); opacity: 0.35; } .ac-rail-bar-inner.running { background: linear-gradient(to right, var(--success, #16a34a), var(--warning, #d97706)); opacity: 0.35; } /* Progress track */ .ac-progress-track { height: 3px; background: var(--border-color); border-radius: 2px; overflow: hidden; margin-bottom: 10px; } .ac-progress-fill { height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--success, #16a34a) 0%, var(--accent, #3b82f6) 100%); transition: width 0.6s cubic-bezier(0.16,1,0.3,1); } /* Expand all controls */ .ac-controls { display: flex; justify-content: flex-end; margin-bottom: 6px; } .ac-btn-toggle { font-family: var(--font-body); font-size: 11px; color: var(--accent, #3b82f6); background: none; border: 1px solid transparent; cursor: pointer; padding: 3px 10px; border-radius: 4px; transition: all 0.15s; } .ac-btn-toggle:hover { background: rgba(59,130,246,0.08); border-color: rgba(59,130,246,0.12); } /* Phase accordion */ .ac-phases { display: flex; flex-direction: column; gap: 2px; } .ac-phase { animation: ac-phase-in 0.35s cubic-bezier(0.16,1,0.3,1) both; } @keyframes ac-phase-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } } .ac-phase-header { display: flex; align-items: center; gap: 10px; padding: 9px 14px; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 10px; cursor: pointer; user-select: none; transition: background 0.15s; } .ac-phase.open .ac-phase-header { border-radius: 10px 10px 0 0; } .ac-phase-header:hover { background: var(--bg-tertiary); } .ac-phase-num { font-family: var(--font-mono, monospace); font-size: 10px; font-weight: 600; color: var(--accent, #3b82f6); background: rgba(59,130,246,0.08); padding: 2px 8px; border-radius: 4px; letter-spacing: 0.04em; white-space: nowrap; border: 1px solid rgba(59,130,246,0.1); } .ac-phase-title { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--text-primary); flex: 1; } .ac-phase-dots { display: flex; gap: 3px; align-items: center; } .ac-phase-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; } .ac-phase-dot.completed { background: var(--success, #16a34a); } .ac-phase-dot.failed { background: var(--danger, #dc2626); } .ac-phase-dot.running { background: var(--warning, #d97706); animation: ac-pulse 1.5s ease-in-out infinite; } .ac-phase-dot.pending { background: var(--text-tertiary, #6b7280); opacity: 0.4; } @keyframes ac-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } } .ac-phase-meta { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono, monospace); font-size: 11px; color: var(--text-secondary); } .ac-phase-meta .findings-ct { color: var(--danger, #dc2626); font-weight: 600; } .ac-phase-meta .running-ct { color: var(--warning, #d97706); font-weight: 500; } .ac-phase-chevron { color: var(--text-tertiary, #6b7280); font-size: 11px; transition: transform 0.25s cubic-bezier(0.16,1,0.3,1); width: 14px; text-align: center; } .ac-phase.open .ac-phase-chevron { transform: rotate(90deg); } .ac-phase-body { max-height: 0; overflow: hidden; transition: max-height 0.35s cubic-bezier(0.16,1,0.3,1); background: var(--bg-secondary); border-left: 1px solid var(--border-color); border-right: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); border-radius: 0 0 10px 10px; } .ac-phase.open .ac-phase-body { max-height: 2000px; } .ac-phase-body-inner { padding: 4px 6px; display: flex; flex-direction: column; gap: 1px; } /* Tool rows */ .ac-tool-row { display: grid; grid-template-columns: 5px 26px 1fr auto auto auto; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 6px; cursor: pointer; transition: background 0.12s; } .ac-tool-row:hover { background: var(--bg-elevated); } .ac-tool-row.expanded { background: rgba(59,130,246,0.03); } .ac-tool-row.is-pending { opacity: 0.45; cursor: default; } .ac-status-bar { width: 4px; height: 26px; border-radius: 2px; flex-shrink: 0; } .ac-status-bar.completed { background: var(--success, #16a34a); } .ac-status-bar.failed { background: var(--danger, #dc2626); } .ac-status-bar.running { background: var(--warning, #d97706); animation: ac-pulse 1.5s ease-in-out infinite; } .ac-status-bar.pending { background: var(--text-tertiary, #6b7280); opacity: 0.25; } .ac-tool-icon { font-size: 17px; text-align: center; line-height: 1; } .ac-tool-info { min-width: 0; } .ac-tool-name { font-size: 12.5px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* Category chips */ .ac-cat-chip { font-family: var(--font-mono, monospace); font-size: 9px; font-weight: 500; padding: 1px 6px; border-radius: 3px; display: inline-block; letter-spacing: 0.02em; } .ac-cat-chip.recon { color: #38bdf8; background: rgba(56,189,248,0.1); } .ac-cat-chip.api { color: #818cf8; background: rgba(129,140,248,0.1); } .ac-cat-chip.headers { color: #06b6d4; background: rgba(6,182,212,0.1); } .ac-cat-chip.csp { color: #d946ef; background: rgba(217,70,239,0.1); } .ac-cat-chip.cookies { color: #f59e0b; background: rgba(245,158,11,0.1); } .ac-cat-chip.logs { color: #78716c; background: rgba(120,113,108,0.1); } .ac-cat-chip.ratelimit { color: #64748b; background: rgba(100,116,139,0.1); } .ac-cat-chip.cors { color: #8b5cf6; background: rgba(139,92,246,0.1); } .ac-cat-chip.tls { color: #14b8a6; background: rgba(20,184,166,0.1); } .ac-cat-chip.redirect { color: #fb923c; background: rgba(251,146,60,0.1); } .ac-cat-chip.email { color: #0ea5e9; background: rgba(14,165,233,0.1); } .ac-cat-chip.auth { color: #f43f5e; background: rgba(244,63,94,0.1); } .ac-cat-chip.xss { color: #f97316; background: rgba(249,115,22,0.1); } .ac-cat-chip.sqli { color: #ef4444; background: rgba(239,68,68,0.1); } .ac-cat-chip.ssrf { color: #a855f7; background: rgba(168,85,247,0.1); } .ac-cat-chip.idor { color: #ec4899; background: rgba(236,72,153,0.1); } .ac-cat-chip.fuzzer { color: #a78bfa; background: rgba(167,139,250,0.1); } .ac-cat-chip.cve { color: #dc2626; background: rgba(220,38,38,0.1); } .ac-cat-chip.default { color: #94a3b8; background: rgba(148,163,184,0.1); } .ac-tool-duration { font-family: var(--font-mono, monospace); font-size: 10px; color: var(--text-tertiary, #6b7280); white-space: nowrap; min-width: 48px; text-align: right; } .ac-tool-duration.running-text { color: var(--warning, #d97706); font-weight: 500; } .ac-findings-pill { font-family: var(--font-mono, monospace); font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; min-width: 22px; padding: 1px 7px; border-radius: 9px; line-height: 1.4; text-align: center; } .ac-findings-pill.has { background: rgba(220,38,38,0.12); color: var(--danger, #dc2626); } .ac-findings-pill.zero { background: transparent; color: var(--text-tertiary, #6b7280); font-weight: 400; opacity: 0.5; } .ac-risk-val { font-family: var(--font-mono, monospace); font-size: 10px; font-weight: 700; min-width: 32px; text-align: right; } .ac-risk-val.high { color: var(--danger, #dc2626); } .ac-risk-val.medium { color: var(--warning, #d97706); } .ac-risk-val.low { color: var(--text-secondary); } .ac-risk-val.none { color: transparent; } /* Tool detail (expanded) */ .ac-tool-detail { max-height: 0; overflow: hidden; transition: max-height 0.28s cubic-bezier(0.16,1,0.3,1); } .ac-tool-detail.open { max-height: 800px; } .ac-tool-detail-inner { padding: 6px 10px 10px 49px; font-size: 12px; line-height: 1.55; color: var(--text-secondary); } .ac-reasoning-block { background: rgba(59,130,246,0.03); border-left: 2px solid var(--accent, #3b82f6); padding: 7px 12px; border-radius: 0 6px 6px 0; font-style: italic; margin-bottom: 8px; color: var(--text-secondary); } .ac-detail-grid { display: grid; grid-template-columns: auto 1fr; gap: 3px 14px; font-family: var(--font-mono, monospace); font-size: 10px; } .ac-detail-label { color: var(--text-tertiary, #6b7280); text-transform: uppercase; font-size: 9px; letter-spacing: 0.04em; } .ac-detail-value { color: var(--text-secondary); } /* Running node pulse animation */ .ac-node-running { animation: ac-pulse 2s ease-in-out infinite; } @keyframes ac-pulse { 0%, 100% { box-shadow: inset 0 0 0 transparent; } 50% { box-shadow: inset 0 0 12px rgba(217, 119, 6, 0.15); } } /* Tool input/output data blocks */ .ac-data-section { margin-top: 8px; } .ac-data-label { color: var(--text-tertiary, #6b7280); text-transform: uppercase; font-size: 9px; letter-spacing: 0.04em; margin-bottom: 3px; } .ac-data-block { background: rgba(0, 0, 0, 0.25); border: 1px solid var(--border, #162038); border-radius: 6px; padding: 8px 10px; font-family: var(--font-mono, monospace); font-size: 10px; line-height: 1.5; color: var(--text-secondary); white-space: pre-wrap; word-break: break-all; max-height: 200px; overflow-y: auto; margin: 0; } /* ═══════════════════════════════════════════════════ Pentest Wizard ═══════════════════════════════════════════════════ */ .wizard-backdrop { position: fixed; inset: 0; background: oklch(0.2 0.02 260 / 0.32); display: flex; align-items: center; justify-content: center; z-index: 1000; } .wizard-dialog { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-lg); width: 600px; max-width: 92vw; max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; position: relative; } /* Close button (top-right corner, always visible) */ .wizard-close-btn { position: absolute; top: 12px; right: 12px; z-index: 10; background: none; border: 1px solid transparent; border-radius: 6px; color: var(--text-secondary); cursor: pointer; padding: 4px 6px; display: flex; align-items: center; justify-content: center; transition: color 0.15s, border-color 0.15s; } .wizard-close-btn:hover { color: var(--text-primary); border-color: var(--border-color); } /* Dropdown for existing targets/repos */ .wizard-dropdown { position: absolute; top: 100%; left: 0; right: 0; z-index: 20; background: var(--bg-elevated, var(--bg-secondary)); border: 1px solid var(--border-color); border-radius: 0 0 8px 8px; max-height: 200px; overflow-y: auto; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); } .wizard-dropdown-item { padding: 8px 12px; cursor: pointer; transition: background 0.1s; border-bottom: 1px solid var(--border-color); } .wizard-dropdown-item:last-child { border-bottom: none; } .wizard-dropdown-item:hover { background: var(--bg-card-hover); } /* SSH key display */ .wizard-ssh-key { margin-top: 8px; padding: 10px 12px; background: var(--accent-muted); border: 1px solid var(--border-accent, rgba(0,200,255,0.15)); border-radius: 8px; } .wizard-ssh-key-box { padding: 8px 10px; background: var(--bg-primary); border-radius: 4px; font-family: var(--font-mono, monospace); font-size: 10px; word-break: break-all; user-select: all; color: var(--text-secondary); line-height: 1.4; } .wizard-steps { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 24px; border-bottom: 1px solid var(--border-color); background: var(--bg-primary); } .wizard-step { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--text-tertiary); position: relative; } .wizard-step + .wizard-step::before { content: ''; display: block; width: 24px; height: 1px; background: var(--border-color); margin-right: 4px; } .wizard-step.active { color: var(--accent); } .wizard-step.completed { color: var(--status-success); } .wizard-step-dot { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; background: var(--bg-tertiary); color: var(--text-tertiary); flex-shrink: 0; } .wizard-step.active .wizard-step-dot { background: var(--accent); color: var(--bg-primary); } .wizard-step.completed .wizard-step-dot { background: var(--status-success); color: var(--bg-primary); } .wizard-step-label { display: none; } @media (min-width: 480px) { .wizard-step-label { display: inline; } } .wizard-body { padding: 20px 24px; min-height: 300px; overflow-y: auto; flex: 1; } .wizard-body h3 { font-size: 1.05rem; font-weight: 600; color: var(--text-primary); } .wizard-field { margin-bottom: 12px; } .wizard-field label { display: block; font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 4px; font-weight: 500; } .wizard-field .chat-input, .wizard-field select { width: 100%; } .wizard-footer { display: flex; justify-content: space-between; align-items: center; padding: 12px 24px; border-top: 1px solid var(--border-color); background: var(--bg-primary); } .wizard-disclaimer { background: rgba(255, 176, 32, 0.08); border: 1px solid rgba(255, 176, 32, 0.25); border-radius: var(--radius); padding: 16px; margin-top: 16px; color: var(--text-primary); font-size: 0.85rem; line-height: 1.55; } .wizard-summary { background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 16px; } .wizard-summary dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 0.85rem; } .wizard-summary dt { color: var(--text-secondary); font-weight: 500; } .wizard-summary dd { color: var(--text-primary); margin: 0; } .wizard-toggle { width: 36px; height: 20px; background: var(--bg-tertiary); border-radius: 10px; cursor: pointer; position: relative; transition: background 0.2s; flex-shrink: 0; } .wizard-toggle.active { background: var(--accent); } .wizard-toggle-knob { width: 16px; height: 16px; background: #fff; border-radius: 50%; position: absolute; top: 2px; left: 2px; transition: transform 0.2s; } .wizard-toggle.active .wizard-toggle-knob { transform: translateX(16px); } /* ═══════════════════════════════════════════════════════════════ HELP CHAT WIDGET Floating assistant for documentation Q&A ═══════════════════════════════════════════════════════════════ */ .help-chat-toggle { position: fixed; bottom: 24px; right: 28px; z-index: 50; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: var(--bg-primary); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-pop); transition: transform 0.15s, box-shadow 0.15s; } .help-chat-toggle:hover { transform: scale(1.08); box-shadow: var(--shadow-pop); } .help-chat-panel { position: fixed; bottom: 24px; right: 28px; z-index: 51; width: 400px; height: 520px; background: var(--bg-secondary); border: 1px solid var(--border-bright); border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow-pop); } .help-chat-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--bg-primary); } .help-chat-title { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--text-primary); } .help-chat-close { background: none; border: none; color: var(--text-secondary); cursor: pointer; padding: 4px; border-radius: 6px; display: flex; } .help-chat-close:hover { color: var(--text-primary); background: var(--bg-elevated); } .help-chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; } .help-chat-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; text-align: center; color: var(--text-secondary); font-size: 13px; gap: 8px; } .help-chat-hint { font-size: 12px; color: var(--text-tertiary); font-style: italic; } .help-msg { max-width: 88%; animation: helpMsgIn 0.15s ease-out; } @keyframes helpMsgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } } .help-msg-user { align-self: flex-end; } .help-msg-assistant { align-self: flex-start; } .help-msg-content { padding: 10px 14px; border-radius: 12px; font-size: 13px; line-height: 1.55; word-wrap: break-word; } .help-msg-user .help-msg-content { background: var(--accent); color: var(--bg-primary); border-bottom-right-radius: 4px; } .help-msg-assistant .help-msg-content { background: var(--bg-elevated); color: var(--text-primary); border: 1px solid var(--border); border-bottom-left-radius: 4px; } .help-msg-assistant .help-msg-content code { background: var(--accent-muted); padding: 1px 5px; border-radius: 3px; font-family: var(--font-mono); font-size: 12px; } .help-msg-loading { padding: 10px 14px; border-radius: 12px; background: var(--bg-elevated); border: 1px solid var(--border); border-bottom-left-radius: 4px; color: var(--text-secondary); font-size: 13px; animation: helpPulse 1.2s ease-in-out infinite; } @keyframes helpPulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } } .help-chat-input { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--border); background: var(--bg-primary); } .help-chat-input input { flex: 1; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; color: var(--text-primary); font-size: 13px; font-family: var(--font-body); outline: none; transition: border-color 0.15s; } .help-chat-input input:focus { border-color: var(--accent); } .help-chat-input input::placeholder { color: var(--text-tertiary); } .help-chat-send { width: 36px; height: 36px; border-radius: 8px; background: var(--accent); color: var(--bg-primary); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: opacity 0.15s; } .help-chat-send:disabled { opacity: 0.4; cursor: not-allowed; } .help-chat-send:not(:disabled):hover { background: var(--accent-hover); } /* ═══════════════════════════════════════════════════════════════ NOTIFICATION BELL — CVE alert dropdown ═══════════════════════════════════════════════════════════════ */ .notification-bell-wrapper { position: fixed; top: 16px; right: 28px; z-index: 48; } .notification-bell-btn { position: relative; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; transition: color 0.15s, border-color 0.15s; } .notification-bell-btn:hover { color: var(--text-primary); border-color: var(--border-bright); } .notification-badge { position: absolute; top: -4px; right: -4px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; font-family: var(--font-display); } .notification-panel { position: absolute; top: 44px; right: 0; width: 380px; max-height: 480px; background: var(--bg-secondary); border: 1px solid var(--border-bright); border-radius: 12px; overflow: hidden; box-shadow: 0 12px 48px rgba(0,0,0,0.5); display: flex; flex-direction: column; } .notification-panel-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--text-primary); } .notification-close-btn { background: none; border: none; color: var(--text-secondary); cursor: pointer; padding: 2px; } .notification-panel-body { overflow-y: auto; flex: 1; padding: 8px; } .notification-loading, .notification-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; color: var(--text-secondary); font-size: 13px; gap: 8px; } .notification-item { padding: 10px 12px; border-radius: 8px; margin-bottom: 4px; background: var(--bg-card); border: 1px solid var(--border); transition: border-color 0.15s; } .notification-item:hover { border-color: var(--border-bright); } .notification-item-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; } .notification-sev { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px; font-family: var(--font-display); } .notification-sev.sev-critical { background: var(--danger-bg); color: var(--danger); } .notification-sev.sev-high { background: rgba(255,140,0,0.12); color: #ff8c00; } .notification-sev.sev-medium { background: var(--warning-bg); color: var(--warning); } .notification-sev.sev-low { background: rgba(0,200,255,0.08); color: var(--accent); } .notification-cve-id { font-size: 12px; font-weight: 600; color: var(--text-primary); font-family: var(--font-mono); } .notification-cve-id a { color: var(--accent); text-decoration: none; } .notification-cve-id a:hover { text-decoration: underline; } .notification-cvss { font-size: 10px; color: var(--text-secondary); margin-left: auto; font-family: var(--font-mono); } .notification-dismiss-btn { background: none; border: none; color: var(--text-tertiary); cursor: pointer; padding: 2px; margin-left: 4px; } .notification-dismiss-btn:hover { color: var(--danger); } .notification-item-pkg { font-size: 12px; color: var(--text-primary); font-family: var(--font-mono); } .notification-item-repo { font-size: 11px; color: var(--text-secondary); margin-bottom: 4px; } .notification-item-summary { font-size: 11px; color: var(--text-secondary); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } /* ═══════════════════════════════════════════════════════════════ COPY BUTTON — Reusable clipboard copy component ═══════════════════════════════════════════════════════════════ */ .copy-btn { background: none; border: 1px solid var(--border); border-radius: 6px; padding: 5px 7px; color: var(--text-secondary); cursor: pointer; display: inline-flex; align-items: center; transition: color 0.15s, border-color 0.15s, background 0.15s; flex-shrink: 0; } .copy-btn:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-muted); } .copy-btn-sm { padding: 3px 5px; border-radius: 4px; } /* Copyable inline field pattern: value + copy button side by side */ .copyable { display: flex; align-items: center; gap: 6px; } .copyable code, .copyable .mono { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .code-snippet-wrapper { position: relative; } .code-snippet-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; gap: 8px; } /* ── Scan progress: stepper and reveal ── */ .scan-stepper { margin-top: 8px; } .scan-progress { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; } .scan-progress-fill { height: 100%; background: var(--accent); transition: width 0.6s ease; } .scan-steps-count { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); margin: 4px 0; } .scan-steps { display: flex; flex-wrap: wrap; gap: 4px; } .scan-step { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); font-size: 12px; transition: background 0.3s ease, color 0.3s ease; } .scan-step.done { color: var(--success); border-color: color-mix(in oklch, var(--success) 40%, var(--border)); } .scan-step.current { color: var(--accent); border-color: var(--accent); background: var(--accent-muted); font-weight: 600; } .scan-step.pending { color: var(--text-faint); } .scan-step-spinner { width: 10px; height: 10px; } .run-reveal { margin: 4px 0 10px 13px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; } .run-reveal-head { display: flex; align-items: baseline; gap: 8px; } .run-reveal-count { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; } .run-reveal-list { list-style: none; padding: 0; margin: 8px 0; } .run-reveal-item { display: flex; gap: 8px; align-items: center; padding: 3px 0; opacity: 0; animation: reveal-in 0.4s ease forwards; } @keyframes reveal-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } } @media (prefers-reduced-motion: reduce) { .run-reveal-item { animation: none; opacity: 1; } .scan-progress-fill { transition: none; } }