From 2c0d26c4f2842ef18eb6e3906dfd3f9c7c0e3c5f Mon Sep 17 00:00:00 2001
From: PeaBox <5895515+iwebslogtech@users.noreply.github.com>
Date: Sun, 8 Nov 2026 19:21:19 +0000
Subject: [PATCH] Redesign the GUI with a responsive repository overview and
improve policy and report history loading
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
---
src/codeproof/gui/app.js | 21 +++--
src/codeproof/gui/index.html | 164 ++++++++++-------------------------
src/codeproof/gui/styles.css | 129 ++++++++++-----------------
3 files changed, 108 insertions(+), 206 deletions(-)
diff --git a/src/codeproof/gui/app.js b/src/codeproof/gui/app.js
index 8afcc7e..5632f6b 100644
--- a/src/codeproof/gui/app.js
+++ b/src/codeproof/gui/app.js
@@ -15,7 +15,11 @@ async function api(path, opts = {}) {
function setView(name) {
$$('.view').forEach(v => v.classList.toggle('active', v.id === `view-${name}`));
$$('.nav-btn').forEach(b => b.classList.toggle('active', b.dataset.view === name));
- $('#view-title').textContent = name.charAt(0).toUpperCase() + name.slice(1);
+ const titles = { dashboard: 'Repository overview', findings: 'Findings', inventory: 'Inventory', policy: 'Policy & tools', history: 'Report history' };
+ $('#view-title').textContent = titles[name];
+ $('#breadcrumb').textContent = name === 'dashboard' ? 'OVERVIEW' : name.toUpperCase();
+ if (name === 'policy') { loadPolicy(); loadDoctor(); }
+ if (name === 'history') loadHistory();
}
function scoreColor(score) {
@@ -57,7 +61,7 @@ function renderResults() {
${r.required ? 'Yes' : 'No'}
${fmt(r.duration_seconds, 3)}s
${esc(r.summary)}
- `).join('') || 'No results. ';
+ `).join('') || `No results to show ${state.report ? 'Try another status filter.' : 'Run a scan to see your check results here.'} `;
}
function renderFindings() {
@@ -66,7 +70,7 @@ function renderFindings() {
$('#findings-table tbody').innerHTML = rows.map(f => `
${esc(f.check)} ${esc(f.level)} ${esc(f.rule || '')}
${esc(f.path || '')} ${f.line ?? ''} ${esc(f.message)}
- `).join('') || 'No findings. Adapters may include structured findings in future scans. ';
+ `).join('') || `No findings to show ${q ? 'Try a different search.' : state.report ? 'No structured findings were reported in this scan.' : 'Run a scan to see reported findings.'} `;
}
async function runScan() {
@@ -77,6 +81,7 @@ async function runScan() {
const report = await api('/api/scan', { method: 'POST', body: JSON.stringify({ path: target }) });
renderReport(report);
$('#scan-status').textContent = `Scan complete. Policy ${report.policy_passed ? 'PASS' : 'FAIL'}.`;
+ loadHistory();
} catch (e) {
$('#scan-status').textContent = `Error: ${e.message}`;
} finally { btn.disabled = false; }
@@ -115,8 +120,12 @@ async function loadHistory() {
Load
`).join('') || 'No saved JSON reports found in .codeproof/reports. ';
$$('#history-table [data-load-report]').forEach(btn => btn.addEventListener('click', async () => {
- const report = await api(`/api/report?path=${encodeURIComponent(target)}&file=${encodeURIComponent(btn.dataset.loadReport)}`);
- renderReport(report); setView('dashboard');
+ try {
+ const report = await api(`/api/report?path=${encodeURIComponent(target)}&file=${encodeURIComponent(btn.dataset.loadReport)}`);
+ renderReport(report); setView('dashboard');
+ } catch (e) {
+ $('#history-table tbody').innerHTML = `Error: ${esc(e.message)} `;
+ }
}));
} catch (e) { $('#history-table tbody').innerHTML = `Error: ${esc(e.message)} `; }
}
@@ -125,7 +134,7 @@ $$('.nav-btn').forEach(b => b.addEventListener('click', () => setView(b.dataset.
$('#run-scan').addEventListener('click', runScan);
$('#status-filter').addEventListener('change', renderResults);
$('#finding-search').addEventListener('input', renderFindings);
-$('#refresh-doctor').addEventListener('click', loadDoctor);
+$('#refresh-doctor').addEventListener('click', () => setView('policy'));
$('#load-inventory').addEventListener('click', loadInventory);
$('#load-policy').addEventListener('click', () => { loadPolicy(); loadDoctor(); });
$('#load-history').addEventListener('click', loadHistory);
diff --git a/src/codeproof/gui/index.html b/src/codeproof/gui/index.html
index 62774d4..b676379 100644
--- a/src/codeproof/gui/index.html
+++ b/src/codeproof/gui/index.html
@@ -7,144 +7,70 @@
+
+
+
+
+
+
+
+
+
+
+
+ WORKSPACE / OVERVIEW
Local environment
-
-
-
—
-
-
Confidence Score
-
—
-
No data
-
-
-
-
-
Findings
-
—
-
Structured findings reported by adapters
-
-
-
Fail Under
-
—
-
+
+
EVIDENCE, NOT GUESSWORK
Know where yourcode stands. Run your checks in one place and turn the results into a clearer picture of your repository’s health.
+
+
Checks run locally in your target repository.
+
REPORT CONFIDENCE ↗
No scan yet
Awaiting results
-
-
-
-
Check Results
-
-
- All statuses
- Passed
- Failed
- Unavailable
- Error
-
-
-
-
-
- Check Status Weight Required Duration Summary
-
-
-
-
-
-
-
-
-
-
-
Findings
-
-
- Check Level Rule Path Line Message
-
-
-
-
-
-
-
-
-
Public Symbols Load Inventory
-
-
-
-
-
-
-
Effective Policy Reload
-
-
-
-
Tool Availability
-
+
A snapshot of your loaded report
+
+
+
FINDINGS
—
Structured findings reported
+
PASS THRESHOLD
—
Defined by your policy
-
-
-
-
-
Report History Reload
-
-
- Generated Project Score Grade Policy Action
-
-
-
+
+
THE DETAILS
Check results See how each check performed.
Filter by status All statuses Passed Failed Unavailable Error
Check Status Weight Required Duration Summary
Ready when you are Run a scan to see your check results here.
+
GOOD TO KNOW
About your results Confidence is built from the checks in your policy. Each report shows what passed, what didn’t, and what needs a closer look.
KEEP IN MIND
A passing report is evidence, not proof that code is correct. Scans may execute repository code. Use an isolated environment for untrusted projects.
+
Check Level Rule Path Line Message No findings to show Run a scan to see reported findings.
+
EXPLORE
Public symbols Browse the public symbols in your repository.
Load inventory Symbol File Line Inventory is ready to load Load your public symbols to explore them here.
+
CONFIGURATION
Effective policy The settings used to evaluate your repository.
Reload Select Reload to view your effective policy. ENVIRONMENT
Tool availability Check which tools are available locally.
+
PREVIOUS RUNS
Report history Return to a saved report from this repository.
Reload Generated Project Score Grade Policy Action
diff --git a/src/codeproof/gui/styles.css b/src/codeproof/gui/styles.css
index 09ad153..e675d9e 100644
--- a/src/codeproof/gui/styles.css
+++ b/src/codeproof/gui/styles.css
@@ -1,81 +1,48 @@
-:root {
- --bg: #0b1020;
- --bg-elev: #121933;
- --bg-elev-2: #182142;
- --border: rgba(255,255,255,0.08);
- --text: #e8eefc;
- --muted: #9fb0d0;
- --primary: #6ea8fe;
- --primary-2: #4c7dff;
- --good: #2dd4bf;
- --warn: #f59e0b;
- --bad: #fb7185;
- --neutral: #64748b;
- --shadow: 0 10px 30px rgba(0,0,0,0.25);
- --radius: 14px;
- font-synthesis: none;
-}
-* { box-sizing: border-box; }
-html, body { margin: 0; height: 100%; background: radial-gradient(1200px 600px at 10% -10%, #172554 0%, transparent 50%), var(--bg); color: var(--text); font: 14px/1.45 system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }
-button, input, select { font: inherit; color: inherit; }
-.app { display: grid; grid-template-columns: 300px 1fr; min-height: 100vh; }
-.sidebar { border-right: 1px solid var(--border); background: linear-gradient(180deg, rgba(18,25,51,0.95), rgba(11,16,32,0.98)); padding: 20px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; }
-.brand { display: flex; gap: 12px; align-items: center; }
-.logo { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, var(--primary), #8b5cf6); display: grid; place-items: center; font-weight: 700; box-shadow: var(--shadow); }
-.brand h1 { font-size: 18px; margin: 0; }
-.muted { color: var(--muted); margin: 0; }
-.small { font-size: 12px; }
-nav { display: flex; flex-direction: column; gap: 6px; }
-.nav-btn { text-align: left; padding: 10px 12px; background: transparent; border: 1px solid transparent; border-radius: 10px; cursor: pointer; color: var(--muted); }
-.nav-btn:hover { background: rgba(255,255,255,0.04); color: var(--text); }
-.nav-btn.active { background: rgba(110,168,254,0.12); border-color: rgba(110,168,254,0.25); color: var(--text); }
-.sidebar-footer { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
-.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
-input, select { width: 100%; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; outline: none; }
-input:focus, select:focus { border-color: rgba(110,168,254,0.5); }
-.primary { background: linear-gradient(135deg, var(--primary-2), #6366f1); border: none; padding: 11px 14px; border-radius: 10px; font-weight: 600; cursor: pointer; }
-.primary:disabled { opacity: 0.6; cursor: progress; }
-.ghost { background: rgba(255,255,255,0.03); border: 1px solid var(--border); padding: 8px 12px; border-radius: 10px; cursor: pointer; }
-.ghost:hover { background: rgba(255,255,255,0.06); }
-.content { padding: 22px 26px 40px; }
-.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
-.topbar h2 { margin: 0 0 4px; font-size: 24px; }
-.topbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
-.view { display: none; }
-.view.active { display: block; }
-.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
-.card, .panel { background: linear-gradient(180deg, rgba(24,33,66,0.9), rgba(18,25,51,0.92)); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
-.card { padding: 16px; }
-.score-card { display: flex; gap: 14px; align-items: center; }
-.score-ring { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--neutral) 0deg, rgba(255,255,255,0.06) 0deg); position: relative; }
-.score-ring::before { content: ""; position: absolute; inset: 7px; background: var(--bg-elev); border-radius: 50%; }
-.score-ring span { position: relative; font-size: 18px; font-weight: 700; }
-.kpi-label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
-.kpi { font-size: 28px; font-weight: 700; margin-top: 4px; }
-.grade { font-size: 22px; font-weight: 700; margin: 2px 0 6px; }
-.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(100,116,139,0.2); color: var(--muted); }
-.badge.pass { background: rgba(45,212,191,0.15); color: var(--good); }
-.badge.fail { background: rgba(251,113,133,0.15); color: var(--bad); }
-.panel { margin-bottom: 14px; overflow: hidden; }
-.panel-head { padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
-.panel-head h3 { margin: 0; font-size: 16px; }
-.table-wrap { overflow: auto; }
-table { width: 100%; border-collapse: collapse; }
-th, td { padding: 11px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
-th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; background: rgba(255,255,255,0.01); }
-tbody tr:hover { background: rgba(255,255,255,0.02); }
-.status { display: inline-flex; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; text-transform: capitalize; }
-.status.passed { background: rgba(45,212,191,0.15); color: var(--good); }
-.status.failed { background: rgba(251,113,133,0.15); color: var(--bad); }
-.status.unavailable, .status.skipped { background: rgba(100,116,139,0.2); color: #b6c2d9; }
-.status.error { background: rgba(245,158,11,0.18); color: var(--warn); }
-.limitations { margin: 0; padding: 12px 18px 18px 34px; color: var(--muted); }
-.limitations li { margin: 6px 0; }
-.codeblock { margin: 0; padding: 16px; overflow: auto; color: #cfe1ff; font: 12px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
-.doctor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; padding: 14px 16px 16px; }
-.doctor-item { padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,0.02); }
-.doctor-item .name { font-weight: 600; }
-.search { max-width: 320px; }
-.filters select { width: auto; min-width: 160px; }
-@media (max-width: 1100px) { .cards { grid-template-columns: repeat(2, minmax(0,1fr)); } }
-@media (max-width: 860px) { .app { grid-template-columns: 1fr; } .sidebar { position: static; height: auto; } }
+:root { --ink:#1c2a29; --muted:#60716b; --border:#e5ebe8; --good:#19876b; --warn:#b97b27; --bad:#bd5d58; --neutral:#899c97; font-synthesis:none; }
+* { box-sizing:border-box; }
+html, body { margin:0; min-height:100%; background:#f6f8f6; color:var(--ink); font:14px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
+button, input, select { font:inherit; color:inherit; }
+button { cursor:pointer; }
+button:focus-visible, input:focus-visible, select:focus-visible { outline:3px solid #8bd3bc; outline-offset:2px; }
+svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; flex:none; }
+.icon-defs, .sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
+.app { display:grid; grid-template-columns:246px minmax(0,1fr); min-height:100vh; }
+.sidebar { background:#172b28; color:#fff; padding:32px 18px 20px; display:flex; flex-direction:column; position:sticky; top:0; height:100vh; }
+.brand { display:flex; align-items:center; gap:11px; padding:0 8px 42px; }
+.logo { width:39px; height:39px; display:grid; place-items:center; background:#b9e4cf; color:#183a30; border-radius:12px; }
+.logo svg { width:23px; height:23px; stroke-width:2; }
+.brand h1 { margin:0; font-size:17px; letter-spacing:-.5px; line-height:1.2; }
+.brand h1 span { color:#a6d9bf; }
+.brand p { margin:4px 0 0; font-size:8px; font-weight:700; letter-spacing:1.35px; color:#91aaa0; }
+.nav-label { color:#77918a; font-size:10px; font-weight:700; letter-spacing:1.2px; padding:0 14px; margin-bottom:12px; }
+nav { display:flex; flex-direction:column; gap:5px; }
+.nav-btn { display:flex; align-items:center; gap:13px; width:100%; text-align:left; padding:12px 14px; color:#a6bab3; background:transparent; border:0; border-radius:8px; font-weight:500; }
+.nav-btn:hover { background:#233c36; color:white; }
+.nav-btn.active { color:#e4f7ec; background:#31544a; font-weight:650; }
+.nav-btn.active svg { color:#b2e1c8; }
+.sidebar-footer { margin-top:auto; background:#223a34; border:1px solid #37534a; border-radius:12px; padding:16px; }
+.local-icon { color:#bce5ce; margin-bottom:11px; }
+.sidebar-footer strong { font-size:13px; }
+.sidebar-footer p { font-size:12px; line-height:1.6; color:#a4b9b0; margin:7px 0 15px; }
+.sidebar-footer span { color:#b6d7c4; font-size:9px; font-weight:700; letter-spacing:.9px; }
+i { display:inline-block; width:6px; height:6px; border-radius:50%; background:#81caa4; margin-right:6px; vertical-align:middle; }
+.sidebar-bottom { color:#789088; padding:21px 3px 0; font-size:10px; letter-spacing:1px; font-weight:700; }.sidebar-bottom span { margin:0 6px; }
+.content { padding:0 42px 45px; min-width:0; max-width:1700px; width:100%; margin:0 auto; }
+.utility-bar { height:58px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--border); color:#596f65; font-size:10px; font-weight:700; letter-spacing:1px; }.utility-bar span { margin:0 10px; color:#cbd5d1; }.utility-bar strong { color:#5d7369; }
+.local-pill { color:#526f60; background:#edf3ef; border:1px solid #e1ebe4; border-radius:20px; padding:6px 10px; font-size:10px; letter-spacing:0; font-weight:600; }
+.topbar { display:flex; justify-content:space-between; align-items:end; gap:20px; padding:31px 0 25px; }.eyebrow { font-size:10px; letter-spacing:1.35px; font-weight:750; color:#557666; }.topbar h2 { margin:4px 0 3px; font-size:30px; line-height:1.2; letter-spacing:-1.15px; }.muted { color:var(--muted); margin:0; }.topbar .muted { font-size:13px; }.topbar-actions { display:flex; gap:8px; flex-wrap:wrap; }
+.ghost { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:10px 13px; border:1px solid #dfe7e2; background:#fff; border-radius:8px; font-size:12px; font-weight:650; color:#52665e; }.ghost svg { width:15px; height:15px; }.ghost:hover { background:#edf4ef; }
+.view { display:none; }.view.active { display:block; }
+.hero { position:relative; overflow:hidden; min-height:305px; display:grid; grid-template-columns:minmax(0,1fr) 270px; color:#fff; background:#1e3b34; border-radius:16px; }
+.hero::before, .hero::after { content:""; position:absolute; pointer-events:none; border:1px solid rgba(189,224,199,.1); border-radius:50%; width:470px; height:470px; right:180px; top:-210px; }.hero::after { width:600px; height:600px; right:115px; top:-275px; }
+.hero-copy { position:relative; z-index:1; padding:31px 36px 27px; }.hero-kicker { color:#b6dac4; font-size:10px; font-weight:750; letter-spacing:1.45px; }.hero-kicker span { display:inline-block; width:18px; height:2px; vertical-align:middle; margin-right:7px; background:#a7d5b8; }.hero h3 { margin:14px 0 10px; font-size:32px; line-height:1.14; font-weight:650; letter-spacing:-1px; }.hero h3 em { font-family:Georgia, serif; font-weight:400; color:#b8e2c8; }.hero-copy > p:not(.scan-status) { max-width:475px; margin:0; color:#b1c7ba; font-size:13px; line-height:1.65; }
+.scan-controls { display:flex; gap:9px; max-width:590px; align-items:end; margin-top:21px; }.field { flex:1; min-width:0; }.field label { display:block; margin-bottom:6px; font-size:9px; font-weight:700; letter-spacing:1px; color:#b2c9bd; }.input-wrap { display:flex; align-items:center; gap:9px; background:#fff; color:#90a49a; border-radius:8px; padding:0 12px; }.input-wrap svg { width:16px; }.input-wrap input { min-width:0; width:100%; border:0; outline:0; padding:12px 0; color:#43574e; background:transparent; font-size:12px; }.input-wrap:focus-within { outline:3px solid #8bd3bc; }.primary { display:inline-flex; align-items:center; justify-content:center; gap:18px; min-height:42px; padding:0 17px; border:0; border-radius:8px; color:#183a2d; background:#bce5ca; font-size:12px; font-weight:750; white-space:nowrap; }.primary:hover { background:#d1f1dc; }.primary:disabled { opacity:.6; cursor:progress; }.primary svg { width:16px; }
+.scan-status { color:#a7c2b2; font-size:11px; margin:9px 0 0; }
+.hero-score { position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; justify-content:center; border-left:1px solid rgba(213,239,222,.12); background:rgba(11,36,29,.15); padding:22px; }.score-heading { width:100%; display:flex; justify-content:space-between; color:#a7c3b3; letter-spacing:1px; font-weight:700; font-size:9px; }.score-heading span { font-size:16px; }.score-ring { width:140px; height:140px; display:grid; place-items:center; border-radius:50%; margin:17px 0 12px; background:conic-gradient(var(--neutral) 0deg, rgba(220,246,230,.14) 0deg); }.score-inner { width:122px; height:122px; border-radius:50%; background:#203e35; display:flex; flex-direction:column; align-items:center; justify-content:center; }.score-inner span { font-size:38px; font-weight:650; line-height:1; letter-spacing:-2px; }.score-inner small { margin-top:8px; font-size:8px; font-weight:700; letter-spacing:1px; color:#9ab9a8; }.grade { font-size:13px; font-weight:650; margin-bottom:7px; }.badge { display:inline-flex; align-items:center; padding:4px 9px; border-radius:20px; font-size:10px; font-weight:700; color:#c1d7ca; background:#38584b; }.badge.pass { background:#ddf3e7; color:#26785a; }.badge.fail { background:#f9e7e4; color:#a34943; }
+.section-heading { display:flex; align-items:end; justify-content:space-between; margin:32px 0 14px; }.section-heading h3, .panel h3 { font-size:18px; letter-spacing:-.4px; margin:3px 0 0; }.section-note { color:#687c72; font-size:12px; }.cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-bottom:24px; }.card,.panel { background:#fff; border:1px solid var(--border); border-radius:12px; box-shadow:0 3px 12px rgba(23,48,37,.025); }.card { padding:17px 19px 16px; }.card-top { display:flex; align-items:center; justify-content:space-between; }.kpi-label { font-size:10px; color:#62766b; letter-spacing:1px; font-weight:750; }.metric-icon { display:grid; place-items:center; width:33px; height:33px; border-radius:9px; }.metric-icon svg { width:16px; }.blue { color:#6685a7; background:#edf3f8; }.peach { color:#c28768; background:#fbf1e9; }.green { color:#6e9a7b; background:#edf6ee; }.kpi { font-size:28px; line-height:1.2; font-weight:700; letter-spacing:-1px; margin:3px 0; }.small { font-size:12px; }
+.dashboard-grid { display:grid; grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr); gap:14px; align-items:start; }.panel { overflow:hidden; margin-bottom:14px; }.panel-head { padding:20px 21px; display:flex; justify-content:space-between; align-items:center; gap:14px; border-bottom:1px solid #edf1ee; }.panel-head p { color:#667b70; font-size:12px; margin:4px 0 0; }.table-wrap { overflow:auto; }table { width:100%; border-collapse:collapse; }th, td { padding:12px 15px; border-bottom:1px solid #f0f3f1; text-align:left; vertical-align:top; font-size:12px; }th { color:#5e7167; font-size:9px; text-transform:uppercase; letter-spacing:.8px; white-space:nowrap; background:#fafcfb; }tbody tr:last-child td { border-bottom:0; }tbody tr:hover { background:#fbfdfb; }.empty-cell { text-align:center; padding:32px 15px 37px; color:#53695f; }.empty-cell strong,.empty-cell span { display:block; }.empty-cell span { margin-top:5px; color:#5f7368; font-size:12px; }.empty-icon { margin:0 auto 10px; display:grid; place-items:center; width:38px; height:38px; background:#eef5f0; border-radius:50%; color:#8bb19a; }
+select, .search { background:#fff; border:1px solid #e2eae5; border-radius:8px; padding:9px 12px; color:#60756b; font-size:12px; }.search { width:220px; }.status { display:inline-flex; padding:3px 8px; border-radius:20px; font-size:10px; font-weight:700; text-transform:capitalize; }.status.passed { background:#e5f5ea; color:#27855f; }.status.failed { background:#fae9e7; color:#b8504c; }.status.unavailable,.status.skipped { background:#f0f3f1; color:#75857d; }.status.error { background:#fbf1dd; color:#a77321; }
+.insight-icon { color:#7ba38b; background:#eef6f0; width:36px; height:36px; display:grid; place-items:center; border-radius:10px; }.insight-body { padding:18px 21px 22px; color:#5e7568; font-size:12px; line-height:1.7; }.insight-body p { margin:0; }.insight-divider { border-top:1px solid #edf1ee; margin:17px 0; }.insight-title { font-size:9px; font-weight:750; letter-spacing:1px; color:#5d7367; }.limitations { margin:8px 0 0; padding-left:17px; }.limitations li { margin:7px 0; padding-left:3px; }.codeblock { margin:0; padding:20px; overflow:auto; color:#526d5e; font:12px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; }.doctor-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:10px; padding:20px; }.doctor-item { padding:14px; border:1px solid var(--border); border-radius:9px; overflow-wrap:anywhere; }.doctor-item .name { font-weight:700; margin-bottom:8px; }.doctor-item .small { margin-top:8px; }
+@media (max-width:1100px) { .content { padding-left:28px; padding-right:28px; }.dashboard-grid { grid-template-columns:1fr; }.hero { grid-template-columns:minmax(0,1fr) 220px; } }
+@media (max-width:760px) { .app { display:block; }.sidebar { position:static; height:auto; padding:16px; }.brand { padding:0 0 15px; }.nav-label,.sidebar-footer,.sidebar-bottom { display:none; }nav { flex-direction:row; flex-wrap:wrap; }.nav-btn { width:auto; white-space:nowrap; padding:9px 11px; }.nav-btn svg { width:15px; }.content { padding:0 18px 30px; }.utility-bar { height:45px; }.topbar { align-items:flex-start; flex-direction:column; padding:24px 0; }.topbar h2 { font-size:26px; }.hero { grid-template-columns:1fr; }.hero-copy { padding:27px 24px; }.hero-score { border-left:0; border-top:1px solid rgba(213,239,222,.12); padding:20px; }.score-ring { width:110px; height:110px; margin:10px 0; }.score-inner { width:94px; height:94px; }.score-inner span { font-size:30px; }.cards { gap:8px; }.card { padding:13px; }.kpi { font-size:24px; }.section-note { display:none; } }
+@media (max-width:480px) { .scan-controls { flex-direction:column; align-items:stretch; }.cards { grid-template-columns:1fr; }.card { display:grid; grid-template-columns:1fr auto; align-items:center; }.card-top { grid-column:1 / -1; }.panel-head { align-items:flex-start; flex-direction:column; }.filters, .filters select, .search { width:100%; }.topbar-actions { width:100%; }.topbar-actions .ghost { flex:1; }.hero h3 { font-size:29px; } }