From 173907e60a3ed71558b6b1300b6b384fbf1ebf22 Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar <30073382+mighty840@users.noreply.github.com> Date: Wed, 23 Sep 2026 21:56:01 +0200 Subject: [PATCH] feat(dashboard): breakpilot branding and the portal's ledger design The dashboard adopts the breakpilot portal's design (paper, ink, hairline rules, violet accent, Geist and Geist Mono) and its brand mark, light by default with a dark theme. Token names are kept, so pages keep working; cyan and neon literals become tokens. Also defines the layout utilities the pages already used (flex, gap, margins), and keeps the current status button on the finding detail page from looking disabled. Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p --- Dioxus.toml | 2 +- compliance-dashboard/assets/favicon.svg | 31 +- compliance-dashboard/assets/main.css | 1128 ++++++++--------- .../src/components/help_chat.rs | 2 +- .../src/components/sidebar.rs | 12 +- .../src/components/theme_toggle.rs | 14 +- .../src/pages/finding_detail.rs | 2 +- compliance-dashboard/src/pages/overview.rs | 16 +- 8 files changed, 572 insertions(+), 635 deletions(-) diff --git a/Dioxus.toml b/Dioxus.toml index dc7b586..5d7d47b 100644 --- a/Dioxus.toml +++ b/Dioxus.toml @@ -4,7 +4,7 @@ default_platform = "web" asset_dir = "assets" [web.app] -title = "Compliance Scanner Dashboard" +title = "Prüfwerk · Breakpilot" [web.watcher] reload_html = true diff --git a/compliance-dashboard/assets/favicon.svg b/compliance-dashboard/assets/favicon.svg index 0ba70b3..6ef296a 100644 --- a/compliance-dashboard/assets/favicon.svg +++ b/compliance-dashboard/assets/favicon.svg @@ -1,28 +1,5 @@ - - - - - - - - - - - - - - - - - - - - - - - - + + + + B diff --git a/compliance-dashboard/assets/main.css b/compliance-dashboard/assets/main.css index c917d0e..400ab72 100644 --- a/compliance-dashboard/assets/main.css +++ b/compliance-dashboard/assets/main.css @@ -1,134 +1,175 @@ /* ═══════════════════════════════════════════════════════════════ - OBSIDIAN CONTROL — Compliance Scanner Dashboard - A precision security operations center aesthetic + 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=Outfit:wght@400;500;600;700;800&family=DM+Sans:ital,wght@0,400;0,500;0,600;1,400&family=JetBrains+Mono:wght@400;500;600&display=swap'); +@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 ── */ +/* ── Design Tokens (light ledger, the default) ── */ :root { - --sidebar-width: 264px; - --header-height: 56px; + --sidebar-width: 232px; + --header-height: 48px; - /* Surfaces */ - --bg-primary: #060a13; - --bg-secondary: #0b1120; - --bg-card: rgba(12, 20, 38, 0.75); - --bg-card-solid: #0c1426; - --bg-card-hover: #101c34; - --bg-elevated: #111b30; + /* 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); - /* Text */ - --text-primary: #e4eaf4; - --text-secondary: #5e7291; - --text-tertiary: #3d506b; + /* 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); - /* Accent */ - --accent: #00c8ff; - --accent-hover: #40d8ff; - --accent-muted: rgba(0, 200, 255, 0.12); - --accent-glow: 0 0 20px rgba(0, 200, 255, 0.15); + /* 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; - /* Borders */ - --border: #162038; - --border-bright: #1e3050; - --border-accent: rgba(0, 200, 255, 0.2); + /* 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); - /* Status */ - --danger: #ff3b5c; - --danger-bg: rgba(255, 59, 92, 0.1); - --warning: #ffb020; - --warning-bg: rgba(255, 176, 32, 0.1); - --success: #00e676; - --success-bg: rgba(0, 230, 118, 0.1); - --info: #448aff; - --info-bg: rgba(68, 138, 255, 0.1); - --orange: #ff8a3d; - --orange-bg: rgba(255, 138, 61, 0.1); + /* 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: 'Outfit', -apple-system, sans-serif; - --font-body: 'DM Sans', -apple-system, sans-serif; - --font-mono: 'JetBrains Mono', 'Fira Code', monospace; + --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: 6px; - --radius: 10px; - --radius-lg: 14px; + --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; } -/* ── Light theme tokens ── - Applied when the user has explicitly chosen light (`data-theme="light"`) - OR when their OS prefers light AND they have made no explicit choice. */ -:root[data-theme="light"] { - --bg-primary: #f5f7fb; - --bg-secondary: #ffffff; - --bg-card: rgba(255, 255, 255, 0.85); - --bg-card-solid: #ffffff; - --bg-card-hover: #f1f5fb; - --bg-elevated: #f8fafc; +/* ── 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: #0c1426; - --text-secondary: #475569; - --text-tertiary: #8a9bb4; + --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: #0070d4; - --accent-hover: #0080f0; - --accent-muted: rgba(0, 112, 212, 0.10); - --accent-glow: 0 0 20px rgba(0, 112, 212, 0.10); + --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: #e2e8f0; - --border-bright: #cbd5e1; - --border-accent: rgba(0, 112, 212, 0.30); + --border: oklch(0.31 0.028 295); + --border-bright: oklch(0.37 0.03 295); + --border-strong: oklch(0.45 0.032 295); - --danger: #dc2626; - --danger-bg: rgba(220, 38, 38, 0.08); - --warning: #d97706; - --warning-bg: rgba(217, 119, 6, 0.08); - --success: #16a34a; - --success-bg: rgba(22, 163, 74, 0.08); - --info: #2563eb; - --info-bg: rgba(37, 99, 235, 0.08); - --orange: #ea580c; - --orange-bg: rgba(234, 88, 12, 0.08); + --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: light) { - :root:not([data-theme="dark"]) { - --bg-primary: #f5f7fb; - --bg-secondary: #ffffff; - --bg-card: rgba(255, 255, 255, 0.85); - --bg-card-solid: #ffffff; - --bg-card-hover: #f1f5fb; - --bg-elevated: #f8fafc; +@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: #0c1426; - --text-secondary: #475569; - --text-tertiary: #8a9bb4; + --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: #0070d4; - --accent-hover: #0080f0; - --accent-muted: rgba(0, 112, 212, 0.10); - --accent-glow: 0 0 20px rgba(0, 112, 212, 0.10); + --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: #e2e8f0; - --border-bright: #cbd5e1; - --border-accent: rgba(0, 112, 212, 0.30); + --border: oklch(0.31 0.028 295); + --border-bright: oklch(0.37 0.03 295); + --border-strong: oklch(0.45 0.032 295); - --danger: #dc2626; - --danger-bg: rgba(220, 38, 38, 0.08); - --warning: #d97706; - --warning-bg: rgba(217, 119, 6, 0.08); - --success: #16a34a; - --success-bg: rgba(22, 163, 74, 0.08); - --info: #2563eb; - --info-bg: rgba(37, 99, 235, 0.08); - --orange: #ea580c; - --orange-bg: rgba(234, 88, 12, 0.08); + --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; } } @@ -149,11 +190,12 @@ html { body { font-family: var(--font-body); - font-size: 14px; - line-height: 1.6; + 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 { @@ -168,9 +210,10 @@ a:hover { h1, h2, h3, h4 { font-family: var(--font-display); - font-weight: 700; + font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; + color: var(--text-primary); } code { @@ -179,8 +222,17 @@ code { } ::selection { - background: var(--accent); - color: var(--bg-primary); + 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; } @@ -192,7 +244,7 @@ code { } -/* ── Sidebar ── */ +/* ── Sidebar (the portal's nav rail) ── */ .sidebar { width: var(--sidebar-width); @@ -218,126 +270,130 @@ code { margin-left: 60px; } -.sidebar::after { - content: ''; - position: absolute; - top: 0; - right: 0; - bottom: 0; - width: 1px; - background: linear-gradient( - to bottom, - transparent, - var(--accent-muted) 30%, - var(--accent-muted) 70%, - transparent - ); - pointer-events: none; -} - .sidebar-header { - padding: 22px 20px; + padding: 14px 14px 12px; border-bottom: 1px solid var(--border); display: flex; align-items: center; - gap: 12px; - position: relative; + gap: 9px; } -.sidebar-header::after { - content: ''; - position: absolute; - bottom: -1px; - left: 20px; - right: 20px; - height: 1px; - background: linear-gradient(to right, var(--accent-muted), transparent); +/* 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; } -.sidebar-header svg { - color: var(--accent); - filter: drop-shadow(0 0 8px rgba(0, 200, 255, 0.3)); +:root[data-theme="dark"] .brand-mark { + background: var(--accent); + color: oklch(0.16 0.01 264); } -.sidebar-header h1 { - font-family: var(--font-display); - font-size: 15px; - font-weight: 700; +@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); - letter-spacing: -0.01em; + 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: 12px 10px; + padding: 8px 8px 16px; flex: 1; display: flex; flex-direction: column; - gap: 2px; + gap: 1px; } .nav-item { display: flex; align-items: center; - gap: 11px; - padding: 9px 14px; - border-radius: var(--radius); + gap: 9px; + padding: 6px 9px; + border-radius: 6px; color: var(--text-secondary); text-decoration: none; font-family: var(--font-body); - font-size: 13.5px; + font-size: 13px; font-weight: 500; - transition: all 0.2s var(--ease-out); cursor: pointer; position: relative; - border: 1px solid transparent; + user-select: none; + white-space: nowrap; } .nav-item svg { - opacity: 0.6; - transition: opacity 0.2s; + opacity: 0.85; flex-shrink: 0; } /* Runtime-only surfaces (DAST, pentest) when the agent runs source-only. */ .nav-item.disabled { - opacity: 0.4; + color: var(--text-faint); cursor: not-allowed; - pointer-events: none; +} + +.nav-item.disabled:hover { + background: transparent; + color: var(--text-faint); } .nav-item:hover { - background: rgba(0, 200, 255, 0.06); + background: var(--bg-elevated); color: var(--text-primary); - border-color: var(--border); -} - -.nav-item:hover svg { - opacity: 0.9; } .nav-item.active { - background: var(--accent-muted); - color: var(--accent); - border-color: var(--border-accent); + background: var(--bg-elevated); + color: var(--text-primary); font-weight: 600; } .nav-item.active::before { content: ''; position: absolute; - left: 0; + left: -8px; top: 50%; transform: translateY(-50%); - width: 3px; - height: 18px; + width: 2px; + height: 16px; background: var(--accent); - border-radius: 0 4px 4px 0; - box-shadow: 0 0 10px rgba(0, 200, 255, 0.4); -} - -.nav-item.active svg { - opacity: 1; - color: var(--accent); + border-radius: 2px; } .sidebar-spacer { @@ -347,8 +403,8 @@ code { .sidebar-user { display: flex; align-items: center; - gap: 10px; - padding: 12px 16px; + gap: 9px; + padding: 9px 12px; border-top: 1px solid var(--border); } @@ -360,25 +416,20 @@ code { } .user-avatar { - width: 36px; - height: 36px; + width: 26px; + height: 26px; border-radius: 50%; - background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(139, 92, 246, 0.15)); - border: 2px solid rgba(56, 189, 248, 0.2); - display: flex; - align-items: center; - justify-content: center; + background: var(--accent-muted); + border: 1px solid var(--border-accent); + display: grid; + place-items: center; flex-shrink: 0; - transition: border-color 0.2s; -} - -.user-avatar:hover { - border-color: rgba(56, 189, 248, 0.4); } .avatar-initials { - font-size: 14px; - font-weight: 700; + font-family: var(--font-mono); + font-size: 10px; + font-weight: 600; color: var(--accent); line-height: 1; text-transform: uppercase; @@ -396,11 +447,11 @@ code { min-width: 0; display: flex; flex-direction: column; - gap: 2px; + gap: 1px; } .user-name { - font-size: 13px; + font-size: 12px; font-weight: 600; color: var(--text-primary); white-space: nowrap; @@ -409,14 +460,15 @@ code { } .logout-link { - font-size: 11px; + font-family: var(--font-mono); + font-size: 9.5px; color: var(--text-tertiary); text-decoration: none; - transition: color 0.15s; } -.logout-link:hover { - color: #fca5a5; +.logout-link:hover, +.logout-btn-icon:hover { + color: var(--danger); } .logout-btn-icon { @@ -425,11 +477,6 @@ code { justify-content: center; color: var(--text-tertiary); text-decoration: none; - transition: color 0.15s; -} - -.logout-btn-icon:hover { - color: #fca5a5; } .sidebar-legal { @@ -437,23 +484,22 @@ code { align-items: center; justify-content: center; gap: 6px; - padding: 8px 16px 14px; + padding: 6px 12px 12px; font-size: 11px; } .sidebar-legal a { color: var(--text-tertiary); text-decoration: none; - transition: color 0.15s; } .sidebar-legal a:hover { - color: var(--text-secondary); + color: var(--text-primary); + text-decoration: underline; } .legal-dot { - color: var(--text-tertiary); - opacity: 0.5; + color: var(--text-faint); } .sidebar-toggle { @@ -461,17 +507,16 @@ code { border: none; border-top: 1px solid var(--border); color: var(--text-tertiary); - padding: 12px; + padding: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; - transition: color 0.2s, background 0.2s; } .sidebar-toggle:hover { - color: var(--accent); - background: rgba(0, 200, 255, 0.06); + color: var(--text-primary); + background: var(--bg-elevated); } .theme-toggle { @@ -479,73 +524,64 @@ code { border: none; border-top: 1px solid var(--border); color: var(--text-secondary); - padding: 11px 18px; + padding: 8px 17px; cursor: pointer; display: flex; align-items: center; - gap: 11px; + gap: 9px; font-family: var(--font-body); - font-size: 13.5px; + font-size: 12.5px; font-weight: 500; - transition: color 0.2s, background 0.2s; width: 100%; text-align: left; } .theme-toggle:hover { - color: var(--accent); - background: var(--accent-muted); + color: var(--text-primary); + background: var(--bg-elevated); } .theme-toggle svg { flex-shrink: 0; - opacity: 0.75; - transition: opacity 0.2s; -} - -.theme-toggle:hover svg { - opacity: 1; + opacity: 0.85; } .sidebar.collapsed .theme-toggle { justify-content: center; - padding: 11px 0; + padding: 8px 0; } .sidebar.collapsed .sidebar-header { - padding: 22px 0; + padding: 14px 0; justify-content: center; } .sidebar.collapsed .sidebar-nav { - padding: 12px 6px; + padding: 8px 6px; } .sidebar.collapsed .nav-item { justify-content: center; - padding: 9px; + padding: 7px; } .sidebar.collapsed .nav-item.active::before { - left: 0; + left: -6px; } + /* ── Main Content ── */ .main-content { margin-left: var(--sidebar-width); flex: 1; - padding: 28px 36px; + padding: 22px 26px 64px; transition: margin-left 0.2s ease; min-height: 100vh; - background-image: radial-gradient(circle at 1px 1px, rgba(22, 32, 56, 0.5) 1px, transparent 0); - background-size: 28px 28px; position: relative; } -/* ── Page Header ── */ - /* ── Back Navigation ── */ .back-nav { @@ -556,8 +592,8 @@ code { display: inline-flex; align-items: center; gap: 6px; - font-size: 13px; - padding: 6px 12px; + font-size: 12.5px; + padding: 5px 10px; color: var(--text-secondary); } @@ -565,176 +601,161 @@ code { color: var(--text-primary); } -.page-header { - margin-bottom: 28px; - padding-bottom: 20px; - border-bottom: 1px solid var(--border); - position: relative; -} -.page-header::after { - content: ''; - position: absolute; - bottom: -1px; - left: 0; - width: 80px; - height: 2px; - background: var(--accent); - border-radius: 1px; - box-shadow: var(--accent-glow); +/* ── Page Header ── */ + +.page-header { + margin-bottom: 18px; } .page-header h2 { font-family: var(--font-display); - font-size: 26px; - font-weight: 800; + font-size: 20px; + font-weight: 600; color: var(--text-primary); letter-spacing: -0.02em; } .page-header p { - color: var(--text-secondary); - margin-top: 5px; - font-size: 14px; + color: var(--text-tertiary); + margin-top: 3px; + font-size: 12.5px; } -/* ── Stat Cards ── */ +/* ── Stat Cards (the portal's metric row) ── */ .stat-cards { display: grid; - grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); - gap: 14px; - margin-bottom: 28px; + 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 { - background: var(--bg-card); - backdrop-filter: blur(12px); - border: 1px solid var(--border); - border-radius: var(--radius-lg); - padding: 20px 22px; + padding: 13px 15px 14px; + border-right: 1px solid var(--border); + border-bottom: 1px solid var(--border); + margin: 0 -1px -1px 0; position: relative; - overflow: hidden; - transition: all 0.25s var(--ease-out); -} - -.stat-card::before { - content: ''; - position: absolute; - top: 0; - left: 0; - right: 0; - height: 2px; - background: linear-gradient(90deg, var(--accent), transparent); - opacity: 0.5; -} - -.stat-card:hover { - border-color: var(--border-bright); - transform: translateY(-1px); - box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); } .stat-card .label, .stat-card .stat-label { - font-family: var(--font-body); - font-size: 11px; - font-weight: 600; + font-family: var(--font-mono); + font-size: 10px; + font-weight: 500; text-transform: uppercase; - letter-spacing: 0.08em; - color: var(--text-secondary); - margin-bottom: 8px; + letter-spacing: 0.13em; + color: var(--text-tertiary); + margin-bottom: 9px; } .stat-card .value, .stat-card .stat-value { font-family: var(--font-mono); - font-size: 30px; - font-weight: 600; + font-variant-numeric: tabular-nums; + font-size: 25px; + font-weight: 500; letter-spacing: -0.02em; line-height: 1; } -/* ── Cards ── */ +/* ── Cards (the portal's panel) ── */ .card { background: var(--bg-card); - backdrop-filter: blur(12px); border: 1px solid var(--border); border-radius: var(--radius-lg); - padding: 22px; - margin-bottom: 16px; + padding: 16px; + margin-bottom: 12px; position: relative; - transition: border-color 0.2s; -} - -.card:hover { - border-color: var(--border-bright); } .card-header { font-family: var(--font-display); - font-size: 15px; + font-size: 12px; font-weight: 600; - margin-bottom: 16px; - padding-bottom: 12px; + 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; +} -/* ── Tables ── */ +.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; - margin: -2px; - padding: 2px; } table { width: 100%; - border-collapse: separate; - border-spacing: 0; -} - -thead tr { - position: relative; + border-collapse: collapse; + font-size: 12.5px; } th { text-align: left; - padding: 10px 16px; - font-family: var(--font-body); - font-size: 11px; - font-weight: 600; + padding: 8px 14px; + font-family: var(--font-mono); + font-size: 9.5px; + font-weight: 500; text-transform: uppercase; - letter-spacing: 0.06em; + 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: 12px 16px; + padding: 8px 14px; border-bottom: 1px solid var(--border); - font-size: 13.5px; + font-size: 12.5px; color: var(--text-primary); vertical-align: middle; } -tbody tr { - transition: background-color 0.15s; - position: relative; -} - tbody tr:hover { - background: rgba(0, 200, 255, 0.03); + background: var(--bg-elevated); } tbody tr:last-child td { @@ -742,121 +763,133 @@ tbody tr:last-child td { } -/* ── Badges ── */ +/* ── Badges (mono tags, low-chroma status) ── */ .badge { display: inline-flex; align-items: center; gap: 5px; - padding: 4px 10px; - border-radius: 6px; + padding: 1px 7px; + border-radius: 4px; font-family: var(--font-mono); - font-size: 11px; - font-weight: 500; - letter-spacing: 0.02em; + font-size: 10px; + font-weight: 600; + letter-spacing: 0.04em; + text-transform: uppercase; white-space: nowrap; border: 1px solid transparent; } .badge-critical { - background: var(--danger-bg); - color: #ff6b82; - border-color: rgba(255, 59, 92, 0.25); - box-shadow: 0 0 10px rgba(255, 59, 92, 0.08); + 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: var(--orange-bg); - color: #ffaa6b; - border-color: rgba(255, 138, 61, 0.25); + 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: var(--warning-bg); - color: #ffc85c; - border-color: rgba(255, 176, 32, 0.2); + 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: var(--success-bg); - color: #5cffaa; - border-color: rgba(0, 230, 118, 0.2); + 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(--info-bg); - color: #7aabff; - border-color: rgba(68, 138, 255, 0.2); + background: var(--accent-muted); + color: var(--accent); + border-color: var(--border-accent); } .badge-danger { background: var(--danger-bg); - color: #ff6b82; - border-color: rgba(255, 59, 92, 0.25); + color: var(--danger); + border-color: color-mix(in oklch, var(--danger) 30%, transparent); } .badge-success { background: var(--success-bg); - color: #5cffaa; - border-color: rgba(0, 230, 118, 0.2); + 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-secondary); + color: var(--text-tertiary); border-color: var(--border-bright); border-style: dashed; } -/* ── Buttons ── */ +/* ── Buttons (the portal's buttons) ── */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; - padding: 8px 18px; + padding: 6px 12px; border-radius: var(--radius); font-family: var(--font-body); - font-size: 13px; - font-weight: 600; - border: none; + font-size: 12.5px; + font-weight: 500; + border: 1px solid var(--border-bright); + background: var(--bg-card); + color: var(--text-primary); cursor: pointer; - transition: all 0.2s var(--ease-out); + transition: background 0.1s, border-color 0.1s; white-space: nowrap; position: relative; - letter-spacing: 0.01em; +} + +.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(--bg-primary); - box-shadow: 0 0 16px rgba(0, 200, 255, 0.2); + color: var(--accent-ink); + border-color: var(--accent); } .btn-primary:hover { background: var(--accent-hover); - box-shadow: 0 0 24px rgba(0, 200, 255, 0.3); - transform: translateY(-1px); + border-color: var(--accent-hover); + color: var(--accent-ink); } .btn-ghost { background: transparent; color: var(--text-secondary); - border: 1px solid var(--border-bright); + border-color: transparent; } .btn-ghost:hover { color: var(--text-primary); - border-color: var(--accent); - background: var(--accent-muted); + border-color: var(--border); + background: var(--bg-elevated); } .btn-ghost-danger:hover { color: var(--danger); - border-color: var(--danger); + border-color: color-mix(in oklch, var(--danger) 30%, var(--border-bright)); background: var(--danger-bg); } @@ -872,8 +905,8 @@ tbody tr:last-child td { display: inline-flex; align-items: center; justify-content: center; - padding: 6px 8px; - min-width: 32px; + padding: 5px 7px; + min-width: 30px; } /* ── Overview Cards Grid ── */ @@ -917,7 +950,7 @@ tbody tr:last-child td { .overview-card:hover { border-color: var(--accent); - box-shadow: 0 0 16px rgba(0, 200, 255, 0.06); + box-shadow: none; } .overview-card-icon { @@ -1171,14 +1204,15 @@ tbody tr:last-child td { } .btn-danger { - background: var(--danger); - color: #fff; - border: 1px solid var(--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: #e0334f; - box-shadow: 0 0 12px rgba(255, 59, 92, 0.3); + background: var(--danger-bg); + color: var(--danger); + border-color: var(--danger); } /* ── Modal ── */ @@ -1187,8 +1221,7 @@ tbody tr:last-child td { position: fixed; inset: 0; z-index: 1000; - background: rgba(0, 0, 0, 0.6); - backdrop-filter: blur(4px); + background: oklch(0.2 0.02 260 / 0.32); display: flex; align-items: center; justify-content: center; @@ -1197,22 +1230,22 @@ tbody tr:last-child td { .modal-dialog { background: var(--bg-card-solid); border: 1px solid var(--border-bright); - border-radius: var(--radius-lg); - padding: 24px 28px; - max-width: 460px; - width: 90%; - box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5); + 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: 18px; + font-size: 14px; font-weight: 600; margin-bottom: 12px; } .modal-dialog p { - font-size: 14px; + font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 8px; @@ -1234,34 +1267,22 @@ tbody tr:last-child td { margin-top: 20px; } +/* The portal's default button: surface, hairline border. */ .btn-secondary { - background: transparent; - color: var(--accent); - border: 1px solid var(--border-accent); -} - -.btn-secondary:hover { - background: var(--accent-muted); - border-color: var(--accent); -} - -.btn-sm { - padding: 5px 12px; - font-size: 12px; - border-radius: var(--radius-sm); - background: transparent; - color: var(--text-secondary); + background: var(--bg-card); + color: var(--text-primary); border: 1px solid var(--border-bright); } -.btn-sm:hover { - color: var(--accent); - border-color: var(--accent); - background: var(--accent-muted); +.btn-secondary:hover { + background: var(--bg-elevated); + border-color: var(--border-strong); + color: var(--text-primary); } -.btn:active { - transform: scale(0.97); +.btn-sm { + padding: 4px 9px; + font-size: 12px; } .btn:disabled { @@ -1270,11 +1291,30 @@ tbody tr:last-child td { 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: #050a12; + background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; @@ -1321,10 +1361,10 @@ tbody tr:last-child td { background: var(--bg-card-solid); border: 1px solid var(--border-bright); border-radius: var(--radius); - padding: 8px 14px; + padding: 6px 10px; color: var(--text-primary); font-family: var(--font-body); - font-size: 13px; + font-size: 12.5px; transition: border-color 0.2s; cursor: pointer; -webkit-appearance: none; @@ -1339,11 +1379,15 @@ tbody tr:last-child td { } .filter-bar select:hover, -.filter-bar input: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); } @@ -1355,37 +1399,38 @@ tbody tr:last-child td { .form-group label { display: block; - font-family: var(--font-body); - font-size: 12px; - font-weight: 600; + font-family: var(--font-mono); + font-size: 10px; + font-weight: 500; text-transform: uppercase; - letter-spacing: 0.05em; - margin-bottom: 7px; - color: var(--text-secondary); + letter-spacing: 0.08em; + margin-bottom: 5px; + color: var(--text-tertiary); } .form-group input, -.form-group select { +.form-group select, +.form-group textarea { width: 100%; - background: var(--bg-primary); + background: var(--bg-card); border: 1px solid var(--border-bright); border-radius: var(--radius); - padding: 10px 14px; + padding: 7px 10px; color: var(--text-primary); font-family: var(--font-body); - font-size: 14px; - transition: border-color 0.2s, box-shadow 0.2s; + font-size: 13px; } .form-group input:focus, -.form-group select:focus { +.form-group select:focus, +.form-group textarea:focus { border-color: var(--accent); outline: none; - box-shadow: 0 0 0 3px var(--accent-muted); + box-shadow: 0 0 0 3px var(--border-accent); } .form-group input::placeholder { - color: var(--text-tertiary); + color: var(--text-faint); } @@ -1447,37 +1492,29 @@ tbody tr:last-child td { .severity-bar-fill { width: 100%; - border-radius: 4px 4px 0 0; + border-radius: 2px 2px 0 0; min-height: 4px; transition: height 0.6s var(--ease-out); position: relative; } -.severity-bar-fill::after { - content: ''; - position: absolute; - inset: 0; - border-radius: inherit; - background: linear-gradient(to top, transparent, rgba(255,255,255,0.1)); -} - .severity-bar-label { - font-family: var(--font-body); - font-size: 11px; + font-family: var(--font-mono); + font-size: 10px; font-weight: 500; color: var(--text-tertiary); text-transform: uppercase; - letter-spacing: 0.04em; + letter-spacing: 0.1em; } -/* ── Toast Notifications ── */ +/* ── Toast Notifications (the portal's ink toasts) ── */ .toast-container { position: fixed; - top: 20px; - right: 20px; - z-index: 50; + bottom: 18px; + right: 18px; + z-index: 200; display: flex; flex-direction: column; gap: 8px; @@ -1486,52 +1523,35 @@ tbody tr:last-child td { .toast { display: flex; - align-items: center; + align-items: flex-start; justify-content: space-between; - gap: 12px; - min-width: 300px; - max-width: 440px; - padding: 12px 16px; - border-radius: var(--radius); + 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: 13px; - font-weight: 500; + font-size: 12.5px; pointer-events: auto; - animation: toast-in 0.35s var(--ease-spring); - backdrop-filter: blur(16px); + animation: toast-in 0.18s ease; } -.toast-success { - background: rgba(0, 230, 118, 0.1); - border: 1px solid rgba(0, 230, 118, 0.3); - color: #5cffaa; - box-shadow: 0 4px 20px rgba(0, 230, 118, 0.08); -} - -.toast-error { - background: rgba(255, 59, 92, 0.1); - border: 1px solid rgba(255, 59, 92, 0.3); - color: #ff6b82; - box-shadow: 0 4px 20px rgba(255, 59, 92, 0.08); -} - -.toast-info { - background: rgba(68, 138, 255, 0.1); - border: 1px solid rgba(68, 138, 255, 0.3); - color: #7aabff; - box-shadow: 0 4px 20px rgba(68, 138, 255, 0.08); -} +.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: 18px; + font-size: 16px; cursor: pointer; - opacity: 0.5; - padding: 0 4px; + opacity: 0.6; + padding: 0 2px; line-height: 1; - transition: opacity 0.15s; } .toast-dismiss:hover { @@ -1540,40 +1560,8 @@ tbody tr:last-child td { @keyframes toast-in { from { - transform: translateX(100%) scale(0.95); opacity: 0; - } - to { - transform: translateX(0) scale(1); - opacity: 1; - } -} - - -/* ── Stagger Animation for Cards ── */ - -.stat-cards > .stat-card { - animation: card-in 0.5s var(--ease-out) both; -} - -.stat-cards > .stat-card:nth-child(1) { animation-delay: 0s; } -.stat-cards > .stat-card:nth-child(2) { animation-delay: 0.04s; } -.stat-cards > .stat-card:nth-child(3) { animation-delay: 0.08s; } -.stat-cards > .stat-card:nth-child(4) { animation-delay: 0.12s; } -.stat-cards > .stat-card:nth-child(5) { animation-delay: 0.16s; } -.stat-cards > .stat-card:nth-child(6) { animation-delay: 0.20s; } -.stat-cards > .stat-card:nth-child(7) { animation-delay: 0.24s; } -.stat-cards > .stat-card:nth-child(8) { animation-delay: 0.28s; } -.stat-cards > .stat-card:nth-child(9) { animation-delay: 0.32s; } - -@keyframes card-in { - from { - opacity: 0; - transform: translateY(12px); - } - to { - opacity: 1; - transform: translateY(0); + transform: translateY(8px); } } @@ -1581,8 +1569,8 @@ tbody tr:last-child td { /* ── Scrollbar ── */ ::-webkit-scrollbar { - width: 6px; - height: 6px; + width: 10px; + height: 10px; } ::-webkit-scrollbar-track { @@ -1591,11 +1579,12 @@ tbody tr:last-child td { ::-webkit-scrollbar-thumb { background: var(--border-bright); - border-radius: 3px; + border: 3px solid var(--bg-primary); + border-radius: 8px; } ::-webkit-scrollbar-thumb:hover { - background: var(--text-tertiary); + background: var(--border-strong); } @@ -1730,7 +1719,7 @@ tbody tr:last-child td { } .file-tree-item:hover { - background: rgba(0, 200, 255, 0.06); + background: var(--accent-muted); color: var(--text-primary); } @@ -1797,8 +1786,7 @@ tbody tr:last-child td { display: flex; align-items: center; justify-content: center; - background: radial-gradient(ellipse at center, rgba(6, 10, 19, 0.88) 0%, rgba(6, 10, 19, 0.96) 100%); - backdrop-filter: blur(6px); + 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; } @@ -1829,10 +1817,9 @@ tbody tr:last-child td { } .graph-stab-ring-1 { - border-top-color: rgba(0, 200, 255, 0.6); - border-right-color: rgba(0, 200, 255, 0.15); + border-top-color: var(--accent); + border-right-color: var(--accent-muted); animation: stab-orbit 2.4s linear infinite; - filter: drop-shadow(0 0 6px rgba(0, 200, 255, 0.3)); } .graph-stab-ring-2 { @@ -1845,10 +1832,9 @@ tbody tr:last-child td { .graph-stab-ring-3 { inset: 30px; - border-top-color: rgba(0, 230, 118, 0.4); - border-right-color: rgba(0, 230, 118, 0.08); + border-top-color: var(--success); + border-right-color: var(--success-bg); animation: stab-orbit 3.2s linear infinite; - filter: drop-shadow(0 0 4px rgba(0, 230, 118, 0.2)); } .graph-stab-core { @@ -1860,9 +1846,7 @@ tbody tr:last-child td { transform: translate(-50%, -50%); background: var(--accent); border-radius: 50%; - box-shadow: - 0 0 12px rgba(0, 200, 255, 0.6), - 0 0 40px rgba(0, 200, 255, 0.2); + box-shadow: 0 0 0 3px var(--border-accent); animation: stab-pulse 1.6s ease-in-out infinite; } @@ -1913,7 +1897,7 @@ tbody tr:last-child td { background: linear-gradient(90deg, var(--accent), #e040fb); border-radius: 2px; transition: width 0.3s ease-out; - box-shadow: 0 0 8px rgba(0, 200, 255, 0.4); + box-shadow: none; position: relative; } @@ -1926,7 +1910,7 @@ tbody tr:last-child td { height: 7px; background: #fff; border-radius: 50%; - box-shadow: 0 0 6px rgba(0, 200, 255, 0.8); + box-shadow: none; } .graph-stab-pct { @@ -2006,9 +1990,9 @@ tbody tr:last-child td { } .node-kind-function, .node-kind-method { - background: rgba(0, 200, 255, 0.12); - color: #00c8ff; - border: 1px solid rgba(0, 200, 255, 0.2); + background: var(--accent-muted); + color: var(--accent); + border: 1px solid var(--border-accent); } .node-kind-struct, .node-kind-class { @@ -2036,9 +2020,9 @@ tbody tr:last-child td { } .node-kind-file { - background: rgba(0, 230, 118, 0.12); - color: #00e676; - border: 1px solid rgba(0, 230, 118, 0.2); + background: var(--success-bg); + color: var(--success); + border: 1px solid color-mix(in oklch, var(--success) 30%, transparent); } /* Code Inspector Panel */ @@ -2119,16 +2103,16 @@ tbody tr:last-child td { } .code-line:hover { - background: rgba(0, 200, 255, 0.03); + background: var(--accent-muted); } .code-line-highlight { - background: rgba(0, 200, 255, 0.08); + background: var(--accent-muted); border-left: 2px solid var(--accent); } .code-line-highlight:hover { - background: rgba(0, 200, 255, 0.12); + background: var(--accent-muted); } .code-line-number { @@ -2292,7 +2276,7 @@ tbody tr:last-child td { border-radius: 0 0 var(--radius) var(--radius); max-height: 300px; overflow-y: auto; - box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); + box-shadow: var(--shadow-pop); } .search-suggestion-item { @@ -2359,7 +2343,7 @@ tbody tr:last-child td { .chat-embedding-building { border-color: var(--border-accent); - background: rgba(0, 200, 255, 0.04); + background: var(--accent-muted); } .chat-embedding-status { @@ -2729,7 +2713,7 @@ tbody tr:last-child td { flex-direction: column; gap: 8px; min-width: 200px; - box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); + box-shadow: var(--shadow-pop); margin-top: 4px; } @@ -2823,7 +2807,7 @@ tbody tr:last-child td { .license-permissive { background: var(--success-bg); color: var(--success); - border: 1px solid rgba(0, 230, 118, 0.2); + border: 1px solid color-mix(in oklch, var(--success) 30%, transparent); } .license-weak-copyleft { @@ -2835,12 +2819,12 @@ tbody tr:last-child td { .license-copyleft { background: var(--danger-bg); color: var(--danger); - border: 1px solid rgba(255, 59, 92, 0.2); + border: 1px solid color-mix(in oklch, var(--danger) 30%, transparent); } .license-copyleft-warning { background: var(--danger-bg); - border: 1px solid rgba(255, 59, 92, 0.3); + border: 1px solid color-mix(in oklch, var(--danger) 30%, transparent); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 16px; @@ -3315,7 +3299,7 @@ tbody tr:last-child td { transition: background 0.12s; } .ac-tool-row:hover { - background: rgba(255,255,255,0.02); + background: var(--bg-elevated); } .ac-tool-row.expanded { background: rgba(59,130,246,0.03); @@ -3506,7 +3490,7 @@ tbody tr:last-child td { .wizard-backdrop { position: fixed; inset: 0; - background: rgba(0, 0, 0, 0.6); + background: oklch(0.2 0.02 260 / 0.32); display: flex; align-items: center; justify-content: center; @@ -3572,14 +3556,14 @@ tbody tr:last-child td { border-bottom: none; } .wizard-dropdown-item:hover { - background: var(--bg-card-hover, rgba(255,255,255,0.04)); + background: var(--bg-card-hover); } /* SSH key display */ .wizard-ssh-key { margin-top: 8px; padding: 10px 12px; - background: rgba(0, 200, 255, 0.04); + background: var(--accent-muted); border: 1px solid var(--border-accent, rgba(0,200,255,0.15)); border-radius: 8px; } @@ -3790,12 +3774,12 @@ tbody tr:last-child td { display: flex; align-items: center; justify-content: center; - box-shadow: 0 4px 20px rgba(0, 200, 255, 0.3); + box-shadow: var(--shadow-pop); transition: transform 0.15s, box-shadow 0.15s; } .help-chat-toggle:hover { transform: scale(1.08); - box-shadow: 0 6px 28px rgba(0, 200, 255, 0.4); + box-shadow: var(--shadow-pop); } .help-chat-panel { @@ -3811,7 +3795,7 @@ tbody tr:last-child td { display: flex; flex-direction: column; overflow: hidden; - box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5), var(--accent-glow); + box-shadow: var(--shadow-pop); } .help-chat-header { @@ -3826,7 +3810,7 @@ tbody tr:last-child td { display: flex; align-items: center; gap: 8px; - font-family: 'Outfit', sans-serif; + font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--text-primary); @@ -3904,10 +3888,10 @@ tbody tr:last-child td { border-bottom-left-radius: 4px; } .help-msg-assistant .help-msg-content code { - background: rgba(0, 200, 255, 0.1); + background: var(--accent-muted); padding: 1px 5px; border-radius: 3px; - font-family: 'JetBrains Mono', monospace; + font-family: var(--font-mono); font-size: 12px; } .help-msg-loading { @@ -3941,7 +3925,7 @@ tbody tr:last-child td { padding: 10px 14px; color: var(--text-primary); font-size: 13px; - font-family: 'DM Sans', sans-serif; + font-family: var(--font-body); outline: none; transition: border-color 0.15s; } @@ -3978,27 +3962,27 @@ tbody tr:last-child td { .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: 'Outfit', sans-serif; } +.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: 'Outfit', sans-serif; font-weight: 600; font-size: 14px; color: var(--text-primary); } +.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: 'Outfit', sans-serif; } +.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: 'JetBrains Mono', monospace; } +.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: 'JetBrains Mono', monospace; } +.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: 'JetBrains Mono', monospace; } +.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; } @@ -4013,33 +3997,3 @@ tbody tr:last-child td { .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; } - - -/* ═══════════════════════════════════════════════════════════════ - LIGHT THEME — surface overrides for the few hardcoded dark - colors that don't go through CSS custom properties. - ═══════════════════════════════════════════════════════════════ */ - -:root[data-theme="light"] .main-content { - background-image: radial-gradient(circle at 1px 1px, rgba(100, 116, 139, 0.18) 1px, transparent 0); -} -:root[data-theme="light"] .code-block { - background: #f8fafc; - color: #0c1426; -} -:root[data-theme="light"] .graph-stab-overlay { - background: radial-gradient(ellipse at center, rgba(245, 247, 251, 0.92) 0%, rgba(245, 247, 251, 0.98) 100%); -} - -@media (prefers-color-scheme: light) { - :root:not([data-theme="dark"]) .main-content { - background-image: radial-gradient(circle at 1px 1px, rgba(100, 116, 139, 0.18) 1px, transparent 0); - } - :root:not([data-theme="dark"]) .code-block { - background: #f8fafc; - color: #0c1426; - } - :root:not([data-theme="dark"]) .graph-stab-overlay { - background: radial-gradient(ellipse at center, rgba(245, 247, 251, 0.92) 0%, rgba(245, 247, 251, 0.98) 100%); - } -} diff --git a/compliance-dashboard/src/components/help_chat.rs b/compliance-dashboard/src/components/help_chat.rs index c79f912..df6bd01 100644 --- a/compliance-dashboard/src/components/help_chat.rs +++ b/compliance-dashboard/src/components/help_chat.rs @@ -144,7 +144,7 @@ pub fn HelpChat() -> Element { div { class: "help-chat-messages", if messages().is_empty() { div { class: "help-chat-empty", - p { "Ask me anything about the Compliance Scanner." } + p { "Ask me anything about Prüfwerk." } p { class: "help-chat-hint", "e.g. \"How do I add a repository?\" or \"What is SBOM?\"" } diff --git a/compliance-dashboard/src/components/sidebar.rs b/compliance-dashboard/src/components/sidebar.rs index 320f784..49957ca 100644 --- a/compliance-dashboard/src/components/sidebar.rs +++ b/compliance-dashboard/src/components/sidebar.rs @@ -31,7 +31,8 @@ struct NavItem { #[component] pub fn Sidebar() -> Element { let current_route = use_route::(); - let mut collapsed = use_signal(|| true); + // Open, like the portal's nav rail; the toggle collapses it. + let mut collapsed = use_signal(|| false); let source_only = use_source_only(); let lang = use_lang()(); @@ -98,10 +99,15 @@ pub fn Sidebar() -> Element { rsx! { nav { class: "{sidebar_class}", + // The breakpilot brand, as the portal shows it; Prüfwerk is the + // product within it. div { class: "sidebar-header", - Icon { icon: BsShieldCheck, width: 24, height: 24 } + span { class: "brand-mark", aria_hidden: "true", "B" } if !collapsed() { - h1 { "Prüfwerk" } + div { class: "brand-text", + span { class: "brand-name", "Breakpilot" } + span { class: "brand-sub", "Prüfwerk" } + } } } div { class: "sidebar-nav", diff --git a/compliance-dashboard/src/components/theme_toggle.rs b/compliance-dashboard/src/components/theme_toggle.rs index 2219516..46127a8 100644 --- a/compliance-dashboard/src/components/theme_toggle.rs +++ b/compliance-dashboard/src/components/theme_toggle.rs @@ -31,13 +31,13 @@ pub fn ThemeToggle(collapsed: bool) -> Element { let lang = use_lang()(); let label = if collapsed { "" - } else if is_dark().unwrap_or(true) { + } else if is_dark().unwrap_or(false) { nav::LIGHT_MODE.get(lang) } else { nav::DARK_MODE.get(lang) }; - let title = if is_dark().unwrap_or(true) { + let title = if is_dark().unwrap_or(false) { nav::SWITCH_TO_LIGHT.get(lang) } else { nav::SWITCH_TO_DARK.get(lang) @@ -50,11 +50,11 @@ pub fn ThemeToggle(collapsed: bool) -> Element { title: "{title}", "aria-label": "{title}", onclick: move |_| { - let next_dark = !is_dark().unwrap_or(true); + let next_dark = !is_dark().unwrap_or(false); is_dark.set(Some(next_dark)); apply_theme(next_dark); }, - if is_dark().unwrap_or(true) { + if is_dark().unwrap_or(false) { Icon { icon: BsSun, width: 16, height: 16 } } else { Icon { icon: BsMoonStars, width: 16, height: 16 } @@ -68,7 +68,7 @@ pub fn ThemeToggle(collapsed: bool) -> Element { /// Returns `(is_dark, from_storage)`. `from_storage` is true when an explicit /// user choice is in localStorage; false when we fell back to OS preference -/// (or to the dark default). +/// (or to light, the ledger default, as the breakpilot portal). #[cfg(feature = "web")] fn initial_theme() -> (bool, bool) { if let Some(window) = web_sys::window() { @@ -81,12 +81,12 @@ fn initial_theme() -> (bool, bool) { return (mql.matches(), false); } } - (true, false) + (false, false) } #[cfg(not(feature = "web"))] fn initial_theme() -> (bool, bool) { - (true, false) + (false, false) } #[cfg(feature = "web")] diff --git a/compliance-dashboard/src/pages/finding_detail.rs b/compliance-dashboard/src/pages/finding_detail.rs index 5346d72..73367fb 100644 --- a/compliance-dashboard/src/pages/finding_detail.rs +++ b/compliance-dashboard/src/pages/finding_detail.rs @@ -186,7 +186,7 @@ pub fn FindingDetailPage(id: String) -> Element { let label = tx::status(&status).get(lang); rsx! { button { - class: if current { "btn btn-primary" } else { "btn btn-ghost" }, + class: if current { "btn btn-primary btn-current" } else { "btn btn-ghost" }, title: "{label}", disabled: current, onclick: move |_| { diff --git a/compliance-dashboard/src/pages/overview.rs b/compliance-dashboard/src/pages/overview.rs index b9c7c5d..8983180 100644 --- a/compliance-dashboard/src/pages/overview.rs +++ b/compliance-dashboard/src/pages/overview.rs @@ -68,22 +68,22 @@ pub fn OverviewPage() -> Element { StatCard { label: common::CRITICAL.get(lang), value: s.critical_findings.to_string(), - color: "var(--danger)", + color: "var(--sev-critical)", } StatCard { label: common::HIGH.get(lang), value: s.high_findings.to_string(), - color: "#f97316", + color: "var(--sev-high)", } StatCard { label: common::MEDIUM.get(lang), value: s.medium_findings.to_string(), - color: "var(--warning)", + color: "var(--sev-medium)", } StatCard { label: common::LOW.get(lang), value: s.low_findings.to_string(), - color: "var(--success)", + color: "var(--sev-low)", } StatCard { label: overview::DEPENDENCIES.get(lang), value: s.total_sbom_entries.to_string() } StatCard { label: overview::CVE_ALERTS.get(lang), value: s.total_cve_alerts.to_string() } @@ -93,10 +93,10 @@ pub fn OverviewPage() -> Element { div { class: "card", div { class: "card-header", {overview::SEVERITY_DISTRIBUTION.get(lang)} } div { class: "severity-chart", - SeverityBar { label: common::CRITICAL.get(lang), count: s.critical_findings, max: s.total_findings, color: "var(--danger)" } - SeverityBar { label: common::HIGH.get(lang), count: s.high_findings, max: s.total_findings, color: "var(--orange)" } - SeverityBar { label: common::MEDIUM.get(lang), count: s.medium_findings, max: s.total_findings, color: "var(--warning)" } - SeverityBar { label: common::LOW.get(lang), count: s.low_findings, max: s.total_findings, color: "var(--success)" } + SeverityBar { label: common::CRITICAL.get(lang), count: s.critical_findings, max: s.total_findings, color: "var(--sev-critical)" } + SeverityBar { label: common::HIGH.get(lang), count: s.high_findings, max: s.total_findings, color: "var(--sev-high)" } + SeverityBar { label: common::MEDIUM.get(lang), count: s.medium_findings, max: s.total_findings, color: "var(--sev-medium)" } + SeverityBar { label: common::LOW.get(lang), count: s.low_findings, max: s.total_findings, color: "var(--sev-low)" } } } -- 2.54.1