ff4f2ca2e2
Full visual redesign onto a dense terminal/IDE layout: breadcrumb titlebar,
iconed sidebar, optional tab row, IDE-style status bar, JetBrains Mono
throughout, semantic severity palette, and a calm-red rule that reserves
bright red for severity tags, destructive buttons, and the brand dot.
Splits the 1,598-line tools.js into a 66-line registry plus one module per
scanner under app/static/js/results/tools/ (yara, checkplz, stringnalyzer,
pe_sieve, moneta, patriot, hsb, rededr, summary), with shared rendering
helpers in tools/_shared.js. Each module exports
{id, elementId, statsElementId?, render(results, ctx)}, and the registry
does lazy DOM lookups so a module loaded on a page that doesn't have its
tab silently no-ops.
Switches Tailwind from the precompiled v2.2.19 file (~2.8MB) to a v4 build
generated locally by the standalone CLI binary (~284KB). End-user setup is
unchanged: the committed tailwind.min.css ships ready to use; only the
maintainer needs the binary, which lives outside the repo.
Fixes:
- ModalHandler crash on dynamic results pages (null-deref against the old
.bg-gray-900 selector)
- AnalysisCore.updateStageToComplete null-deref against removed
stage-indicator markup
- summary.render silently skipped because elementId pointed at the
removed summaryWrapper div — points at scannerResultsBody now
- Per-tool render failures no longer suppress the rest of the rendering
- Drag-and-drop highlight no longer null-derefs against the removed
.upload-icon selector
- Upload "Unsupported file type" false positive — extensions now sourced
from window.serverConfig instead of DOM scraping
- XSS hardening at user-data interpolation sites in results renderers
702 lines
21 KiB
CSS
702 lines
21 KiB
CSS
/* app/static/css/style.css
|
|
*
|
|
* LitterBox UI — Hybrid Terminal/IDE design system
|
|
* Pure-black + zinc grayscale + red accent + semantic severity.
|
|
* Density-first IDE/terminal layout: sidebar + tabs + dock panels
|
|
* + status bar. JetBrains Mono throughout.
|
|
*
|
|
* NOTE: Tailwind in this project is precompiled (tailwind.min.css is
|
|
* shipped as a static asset; there is no Node/PostCSS build pipeline).
|
|
* That means @apply directives DO NOT work here — browsers silently
|
|
* ignore them. Always write raw CSS in this file.
|
|
*
|
|
* Class prefix: .lb-* marks the unified design system. Templates use
|
|
* these component classes rather than long inline Tailwind chains.
|
|
*/
|
|
|
|
/* ============================================================
|
|
* Design tokens
|
|
* ============================================================ */
|
|
:root {
|
|
/* Surfaces (pure-black foundation) */
|
|
--lb-bg: #08090b; /* page background */
|
|
--lb-bg-soft: #0e1014; /* topbar / sidebar / table head */
|
|
--lb-bg-row: #0a0c10; /* zebra row */
|
|
--lb-panel: #14171c; /* panel body */
|
|
--lb-panel-hi: #1a1d24; /* row hover */
|
|
|
|
/* Borders */
|
|
--lb-border: rgba(255, 255, 255, 0.07);
|
|
--lb-border-hi: rgba(255, 255, 255, 0.14);
|
|
|
|
/* Text */
|
|
--lb-text: #f4f4f5; /* zinc-100 */
|
|
--lb-text-dim: #a1a1aa; /* zinc-400 */
|
|
--lb-text-mute: #71717a; /* zinc-500 */
|
|
|
|
/* Brand accent (red) */
|
|
--lb-accent: #ef4444; /* red-500 */
|
|
--lb-accent-soft: #f87171; /* red-400 */
|
|
--lb-accent-deep: #b91c1c; /* red-700 */
|
|
|
|
/* Severity (semantic) */
|
|
--lb-sev-critical: #ef4444; /* red-500 */
|
|
--lb-sev-high: #f97316; /* orange-500 */
|
|
--lb-sev-medium: #eab308; /* yellow-500 */
|
|
--lb-sev-low: #22c55e; /* green-500 */
|
|
--lb-sev-clean: #22c55e;
|
|
--lb-sev-info: #71717a; /* zinc-500 */
|
|
|
|
/* Layout */
|
|
--lb-sidebar-width: 220px;
|
|
--lb-titlebar-h: 36px;
|
|
--lb-tabs-h: 34px;
|
|
--lb-statusbar-h: 24px;
|
|
|
|
/* Motion */
|
|
--lb-transition-fast: 150ms ease;
|
|
--lb-transition: 200ms ease;
|
|
}
|
|
|
|
/* ============================================================
|
|
* Reset + base
|
|
* ============================================================ */
|
|
* { box-sizing: border-box; }
|
|
|
|
html, body {
|
|
margin: 0;
|
|
padding: 0;
|
|
background: var(--lb-bg);
|
|
color: var(--lb-text);
|
|
font-family: 'JetBrains Mono', 'Cascadia Code', Menlo, Consolas, monospace;
|
|
font-size: 13px;
|
|
line-height: 1.5;
|
|
-webkit-font-smoothing: antialiased;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
a {
|
|
color: var(--lb-text);
|
|
text-decoration: none;
|
|
}
|
|
a:hover { color: var(--lb-accent); }
|
|
|
|
::-webkit-scrollbar { width: 8px; height: 8px; }
|
|
::-webkit-scrollbar-track { background: var(--lb-bg-soft); }
|
|
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); border-radius: 4px; }
|
|
::-webkit-scrollbar-thumb:hover { background: rgba(239, 68, 68, 0.4); }
|
|
|
|
/* ============================================================
|
|
* Layout shell
|
|
* ============================================================ */
|
|
.lb-page {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 100vh;
|
|
}
|
|
.lb-shell {
|
|
display: grid;
|
|
grid-template-columns: var(--lb-sidebar-width) 1fr;
|
|
flex: 1;
|
|
min-height: 0;
|
|
}
|
|
.lb-main {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
}
|
|
|
|
/* Titlebar / breadcrumb */
|
|
.lb-titlebar {
|
|
height: var(--lb-titlebar-h);
|
|
background: var(--lb-bg-soft);
|
|
border-bottom: 1px solid var(--lb-border);
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0 14px;
|
|
font-size: 12px;
|
|
color: var(--lb-text-dim);
|
|
}
|
|
.lb-tb-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
background: var(--lb-accent);
|
|
margin-right: 10px;
|
|
flex-shrink: 0;
|
|
}
|
|
.lb-tb-path { color: var(--lb-text); }
|
|
.lb-tb-sep { color: var(--lb-text-mute); margin: 0 6px; }
|
|
.lb-tb-right { margin-left: auto; color: var(--lb-text-mute); font-size: 11px; }
|
|
|
|
/* Tabs */
|
|
.lb-tabs {
|
|
background: var(--lb-bg);
|
|
border-bottom: 1px solid var(--lb-border);
|
|
display: flex;
|
|
height: var(--lb-tabs-h);
|
|
overflow-x: auto;
|
|
}
|
|
.lb-tab {
|
|
padding: 0 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 12px;
|
|
color: var(--lb-text-dim);
|
|
border-right: 1px solid var(--lb-border);
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
transition: background var(--lb-transition-fast), color var(--lb-transition-fast);
|
|
white-space: nowrap;
|
|
flex-shrink: 0;
|
|
}
|
|
.lb-tab:hover { background: var(--lb-bg-soft); color: var(--lb-text); }
|
|
.lb-tab.active {
|
|
background: var(--lb-panel);
|
|
color: var(--lb-text);
|
|
box-shadow: 0 -2px 0 0 var(--lb-accent-soft) inset;
|
|
}
|
|
.lb-tab.active svg { color: var(--lb-accent-soft); }
|
|
.lb-tab svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--lb-text-mute); }
|
|
|
|
/* Sidebar */
|
|
.lb-sidebar {
|
|
background: var(--lb-bg-soft);
|
|
border-right: 1px solid var(--lb-border);
|
|
padding: 12px 0;
|
|
font-size: 12px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow-y: auto;
|
|
}
|
|
.lb-sidebar-brand {
|
|
padding: 0 14px 14px;
|
|
margin-bottom: 8px;
|
|
border-bottom: 1px solid var(--lb-border);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
text-decoration: none;
|
|
color: var(--lb-text);
|
|
}
|
|
.lb-sidebar-brand:hover { color: var(--lb-text); }
|
|
.lb-brand-mark {
|
|
width: 28px;
|
|
height: 28px;
|
|
flex-shrink: 0;
|
|
}
|
|
.lb-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
|
|
.lb-brand-title {
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
color: var(--lb-text);
|
|
letter-spacing: 0.02em;
|
|
}
|
|
.lb-brand-tag {
|
|
font-size: 9px;
|
|
color: var(--lb-text-mute);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.14em;
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.lb-nav-group { padding: 8px 14px; }
|
|
.lb-nav-heading {
|
|
font-size: 10px;
|
|
color: var(--lb-text-mute);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.12em;
|
|
padding: 8px 0 6px;
|
|
}
|
|
.lb-nav-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 6px 8px;
|
|
color: var(--lb-text-dim);
|
|
cursor: pointer;
|
|
border-radius: 2px;
|
|
background: transparent;
|
|
border: 0;
|
|
text-align: left;
|
|
width: 100%;
|
|
font-family: inherit;
|
|
font-size: inherit;
|
|
text-decoration: none;
|
|
transition: background var(--lb-transition-fast), color var(--lb-transition-fast);
|
|
}
|
|
.lb-nav-item:hover { color: var(--lb-text); background: var(--lb-panel); }
|
|
.lb-nav-item.active {
|
|
color: var(--lb-text);
|
|
background: var(--lb-panel);
|
|
box-shadow: inset 2px 0 0 0 var(--lb-accent-soft);
|
|
}
|
|
.lb-nav-item svg {
|
|
width: 14px;
|
|
height: 14px;
|
|
flex-shrink: 0;
|
|
color: var(--lb-text-mute);
|
|
}
|
|
.lb-nav-item:hover svg { color: var(--lb-text-dim); }
|
|
.lb-nav-item.active svg { color: var(--lb-accent-soft); }
|
|
.lb-nav-text { flex: 1; }
|
|
|
|
/* Sidebar status footer */
|
|
.lb-sidebar-foot {
|
|
margin-top: auto;
|
|
padding: 12px 14px;
|
|
border-top: 1px solid var(--lb-border);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 11px;
|
|
color: var(--lb-text-dim);
|
|
}
|
|
.lb-sidebar-foot .lb-status-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
background: var(--lb-text-mute);
|
|
flex-shrink: 0;
|
|
}
|
|
.lb-sidebar-foot .lb-status-dot.ok { background: var(--lb-sev-low); box-shadow: 0 0 6px var(--lb-sev-low); }
|
|
.lb-sidebar-foot .lb-status-dot.warn { background: var(--lb-sev-medium); box-shadow: 0 0 6px var(--lb-sev-medium); }
|
|
.lb-sidebar-foot .lb-status-dot.fail { background: var(--lb-accent); box-shadow: 0 0 6px var(--lb-accent); }
|
|
|
|
/* Main content area */
|
|
.lb-content {
|
|
padding: 16px 24px;
|
|
overflow-x: hidden;
|
|
overflow-y: auto;
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
/* Status bar — IDE-style: dark with subtle red dot, only goes red on alerts. */
|
|
.lb-statusbar {
|
|
height: var(--lb-statusbar-h);
|
|
background: var(--lb-bg-soft);
|
|
border-top: 1px solid var(--lb-border);
|
|
color: var(--lb-text-dim);
|
|
font-size: 11px;
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0 12px;
|
|
gap: 16px;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
.lb-statusbar .lb-status-seg { display: flex; align-items: center; gap: 6px; color: var(--lb-text-dim); }
|
|
.lb-statusbar .lb-status-seg-right { margin-left: auto; }
|
|
.lb-statusbar .lb-status-seg::before {
|
|
content: '';
|
|
width: 4px;
|
|
height: 4px;
|
|
border-radius: 50%;
|
|
background: var(--lb-text-mute);
|
|
flex-shrink: 0;
|
|
}
|
|
.lb-statusbar .lb-status-seg.brand::before { background: var(--lb-accent); }
|
|
.lb-statusbar.warn { background: rgba(234, 179, 8, 0.08); border-top-color: var(--lb-sev-medium); color: var(--lb-sev-medium); }
|
|
.lb-statusbar.crit { background: rgba(239, 68, 68, 0.08); border-top-color: var(--lb-sev-critical); color: var(--lb-accent-soft); }
|
|
.lb-statusbar.ok { color: var(--lb-sev-low); }
|
|
|
|
/* ============================================================
|
|
* Panels
|
|
* ============================================================ */
|
|
.lb-panel {
|
|
background: var(--lb-panel);
|
|
border: 1px solid var(--lb-border);
|
|
margin-bottom: 12px;
|
|
}
|
|
.lb-panel-hdr {
|
|
display: flex;
|
|
align-items: center;
|
|
height: 32px;
|
|
padding: 0 12px;
|
|
background: var(--lb-bg-soft);
|
|
border-bottom: 1px solid var(--lb-border);
|
|
font-size: 12px;
|
|
color: var(--lb-text);
|
|
font-weight: 500;
|
|
}
|
|
.lb-panel-hdr .lb-glyph { color: var(--lb-text-mute); margin-right: 8px; }
|
|
.lb-panel-hdr .lb-panel-badge {
|
|
margin-left: auto;
|
|
font-size: 10px;
|
|
padding: 1px 8px;
|
|
border: 1px solid var(--lb-border-hi);
|
|
color: var(--lb-text-dim);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
}
|
|
.lb-panel-body { padding: 12px 16px; }
|
|
|
|
/* Panel split into columns */
|
|
.lb-panel-split { display: flex; align-items: stretch; }
|
|
.lb-panel-split > .lb-col {
|
|
flex: 1;
|
|
padding: 16px 20px;
|
|
border-right: 1px solid var(--lb-border);
|
|
}
|
|
.lb-panel-split > .lb-col:last-child { border-right: 0; }
|
|
|
|
/* Hero risk-card columns */
|
|
.lb-hero-label {
|
|
font-size: 10px;
|
|
color: var(--lb-text-mute);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.12em;
|
|
margin-bottom: 6px;
|
|
}
|
|
.lb-hero-score {
|
|
font-size: 28px;
|
|
font-weight: 700;
|
|
line-height: 1;
|
|
color: var(--lb-text);
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
.lb-hero-score .unit { font-size: 12px; color: var(--lb-text-mute); margin-left: 4px; }
|
|
.lb-hero-filename { color: var(--lb-text); font-size: 14px; word-break: break-all; }
|
|
.lb-hero-meta { color: var(--lb-text-dim); font-size: 11px; margin-top: 4px; }
|
|
.lb-hero-meta.crit { color: var(--lb-sev-critical); }
|
|
.lb-hero-meta.high { color: var(--lb-sev-high); }
|
|
.lb-hero-meta.medium { color: var(--lb-sev-medium); }
|
|
.lb-hero-meta.low { color: var(--lb-sev-low); }
|
|
|
|
/* Detection chips (count panels) */
|
|
.lb-chip-row { display: flex; }
|
|
.lb-chip {
|
|
flex: 1;
|
|
padding: 12px;
|
|
border-right: 1px solid var(--lb-border);
|
|
text-align: center;
|
|
}
|
|
.lb-chip:last-child { border-right: 0; }
|
|
.lb-chip-name { font-size: 11px; color: var(--lb-text-dim); margin-bottom: 4px; }
|
|
.lb-chip-count { font-size: 18px; color: var(--lb-text); font-variant-numeric: tabular-nums; }
|
|
.lb-chip.hit .lb-chip-count { color: var(--lb-accent); }
|
|
|
|
/* ============================================================
|
|
* Severity tags & badges
|
|
* ============================================================ */
|
|
.lb-tag {
|
|
display: inline-block;
|
|
padding: 0 6px;
|
|
font-size: 10px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
border: 1px solid;
|
|
line-height: 1.6;
|
|
white-space: nowrap;
|
|
}
|
|
.lb-tag.critical { color: var(--lb-sev-critical); border-color: var(--lb-sev-critical); }
|
|
.lb-tag.high { color: var(--lb-sev-high); border-color: var(--lb-sev-high); }
|
|
.lb-tag.medium { color: var(--lb-sev-medium); border-color: var(--lb-sev-medium); }
|
|
.lb-tag.low,
|
|
.lb-tag.clean { color: var(--lb-sev-low); border-color: var(--lb-sev-low); }
|
|
.lb-tag.info,
|
|
.lb-tag.muted { color: var(--lb-text-mute); border-color: var(--lb-border-hi); }
|
|
|
|
/* ============================================================
|
|
* Buttons
|
|
* ============================================================ */
|
|
.lb-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
padding: 6px 14px;
|
|
font-family: inherit;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
color: var(--lb-text);
|
|
background: transparent;
|
|
border: 1px solid var(--lb-border-hi);
|
|
cursor: pointer;
|
|
transition: background var(--lb-transition-fast), border-color var(--lb-transition-fast), color var(--lb-transition-fast);
|
|
text-decoration: none;
|
|
white-space: nowrap;
|
|
}
|
|
.lb-btn:hover {
|
|
background: var(--lb-panel-hi);
|
|
border-color: var(--lb-text-mute);
|
|
color: var(--lb-text);
|
|
}
|
|
.lb-btn:disabled,
|
|
.lb-btn[disabled] { opacity: 0.5; cursor: not-allowed; }
|
|
.lb-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
|
|
|
|
.lb-btn-primary {
|
|
color: var(--lb-text);
|
|
background: var(--lb-panel-hi);
|
|
border-color: var(--lb-border-hi);
|
|
}
|
|
.lb-btn-primary:hover {
|
|
background: rgba(255, 255, 255, 0.06);
|
|
border-color: var(--lb-text-mute);
|
|
color: var(--lb-text);
|
|
}
|
|
|
|
/* .lb-btn-danger — reserved for destructive actions (Delete, Cleanup). */
|
|
.lb-btn-danger {
|
|
color: var(--lb-accent-soft);
|
|
border-color: rgba(239, 68, 68, 0.35);
|
|
background: rgba(239, 68, 68, 0.05);
|
|
}
|
|
.lb-btn-danger:hover {
|
|
background: rgba(239, 68, 68, 0.12);
|
|
color: #fca5a5;
|
|
border-color: rgba(239, 68, 68, 0.55);
|
|
}
|
|
|
|
.lb-btn-ghost {
|
|
border-color: transparent;
|
|
color: var(--lb-text-dim);
|
|
}
|
|
.lb-btn-ghost:hover {
|
|
background: var(--lb-panel-hi);
|
|
color: var(--lb-text);
|
|
border-color: var(--lb-border-hi);
|
|
}
|
|
|
|
/* ============================================================
|
|
* Tables
|
|
* ============================================================ */
|
|
.lb-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 12px;
|
|
}
|
|
.lb-table thead th {
|
|
text-align: left;
|
|
padding: 8px 12px;
|
|
color: var(--lb-text-dim);
|
|
font-weight: 500;
|
|
font-size: 11px;
|
|
border-bottom: 1px solid var(--lb-border);
|
|
background: var(--lb-bg-soft);
|
|
white-space: nowrap;
|
|
}
|
|
.lb-table tbody td {
|
|
padding: 6px 12px;
|
|
border-bottom: 1px solid var(--lb-border);
|
|
vertical-align: top;
|
|
}
|
|
.lb-table tbody tr:nth-child(even) { background: var(--lb-bg-row); }
|
|
.lb-table tbody tr:hover { background: var(--lb-panel-hi); }
|
|
.lb-table tbody tr:last-child td { border-bottom: 0; }
|
|
.lb-table .line-no { color: var(--lb-text-mute); user-select: none; width: 32px; text-align: right; padding-right: 8px; }
|
|
.lb-table .key { color: var(--lb-text-dim); }
|
|
.lb-table .fn { color: var(--lb-text); }
|
|
|
|
/* Inline status icons used in detail text */
|
|
.lb-ok::before { content: '✓'; color: var(--lb-sev-low); margin-right: 6px; }
|
|
.lb-alert::before { content: '!'; color: var(--lb-accent); margin-right: 6px; }
|
|
|
|
/* ============================================================
|
|
* Hash / monospace value display
|
|
* ============================================================ */
|
|
.lb-hash-row {
|
|
display: grid;
|
|
grid-template-columns: 90px 1fr;
|
|
gap: 12px;
|
|
padding: 4px 0;
|
|
align-items: start;
|
|
}
|
|
.lb-hash-label {
|
|
color: var(--lb-text-mute);
|
|
font-size: 11px;
|
|
padding-top: 1px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
}
|
|
.lb-hash-value { color: var(--lb-text); font-size: 12px; word-break: break-all; }
|
|
.lb-hash-value .lb-copy {
|
|
margin-left: 8px;
|
|
color: var(--lb-text-mute);
|
|
cursor: pointer;
|
|
background: transparent;
|
|
border: 0;
|
|
padding: 0;
|
|
transition: color var(--lb-transition-fast);
|
|
}
|
|
.lb-hash-value .lb-copy:hover { color: var(--lb-accent); }
|
|
|
|
/* ============================================================
|
|
* Forms
|
|
* ============================================================ */
|
|
.lb-input,
|
|
.lb-select,
|
|
.lb-textarea {
|
|
width: 100%;
|
|
padding: 6px 10px;
|
|
font-family: inherit;
|
|
font-size: 12px;
|
|
color: var(--lb-text);
|
|
background: var(--lb-bg);
|
|
border: 1px solid var(--lb-border-hi);
|
|
outline: none;
|
|
transition: border-color var(--lb-transition-fast);
|
|
-webkit-appearance: none;
|
|
-moz-appearance: none;
|
|
appearance: none;
|
|
}
|
|
.lb-input:focus,
|
|
.lb-select:focus,
|
|
.lb-textarea:focus {
|
|
border-color: rgba(255, 255, 255, 0.3);
|
|
}
|
|
.lb-input::placeholder,
|
|
.lb-textarea::placeholder { color: var(--lb-text-mute); }
|
|
|
|
.lb-select {
|
|
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2371717a' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
|
|
background-position: right 8px center;
|
|
background-repeat: no-repeat;
|
|
background-size: 1.25em 1.25em;
|
|
padding-right: 32px;
|
|
}
|
|
|
|
input:-webkit-autofill,
|
|
input:-webkit-autofill:hover,
|
|
input:-webkit-autofill:focus,
|
|
input:-webkit-autofill:active {
|
|
-webkit-box-shadow: 0 0 0 30px var(--lb-bg) inset !important;
|
|
-webkit-text-fill-color: var(--lb-text) !important;
|
|
}
|
|
|
|
/* ============================================================
|
|
* Upload zone
|
|
* ============================================================ */
|
|
.lb-upload-zone {
|
|
border: 1px dashed var(--lb-border-hi);
|
|
background: var(--lb-bg);
|
|
padding: 48px 24px;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
transition: border-color var(--lb-transition-fast), background var(--lb-transition-fast);
|
|
}
|
|
.lb-upload-zone:hover,
|
|
.lb-upload-zone.lb-drag-over {
|
|
border-color: var(--lb-accent);
|
|
background: rgba(239, 68, 68, 0.04);
|
|
}
|
|
.lb-upload-icon {
|
|
width: 36px;
|
|
height: 36px;
|
|
color: var(--lb-text-mute);
|
|
margin: 0 auto 12px;
|
|
}
|
|
.lb-upload-zone:hover .lb-upload-icon { color: var(--lb-accent); }
|
|
.lb-upload-title { font-size: 14px; color: var(--lb-text); margin-bottom: 4px; }
|
|
.lb-upload-hint { font-size: 11px; color: var(--lb-text-mute); }
|
|
|
|
/* ============================================================
|
|
* Empty state (used for "Clean" / "No findings")
|
|
* ============================================================ */
|
|
.lb-empty {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 14px 16px;
|
|
font-size: 12px;
|
|
border: 1px dashed var(--lb-border);
|
|
}
|
|
.lb-empty.clean { color: var(--lb-sev-low); border-color: rgba(34, 197, 94, 0.3); }
|
|
.lb-empty.threats { color: var(--lb-accent); border-color: rgba(239, 68, 68, 0.3); }
|
|
.lb-empty svg { width: 16px; height: 16px; flex-shrink: 0; }
|
|
|
|
/* ============================================================
|
|
* Animations / utilities
|
|
* ============================================================ */
|
|
@keyframes lb-spin { to { transform: rotate(360deg); } }
|
|
.lb-spinner {
|
|
width: 14px;
|
|
height: 14px;
|
|
border: 2px solid rgba(239, 68, 68, 0.2);
|
|
border-top-color: var(--lb-accent);
|
|
border-radius: 50%;
|
|
animation: lb-spin 0.8s linear infinite;
|
|
display: inline-block;
|
|
}
|
|
|
|
@keyframes lb-pulse {
|
|
0%, 100% { opacity: 1; }
|
|
50% { opacity: 0.4; }
|
|
}
|
|
.lb-pulse { animation: lb-pulse 1.6s ease-in-out infinite; }
|
|
|
|
@keyframes lb-fade-in {
|
|
from { opacity: 0; transform: translateY(4px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
.lb-fade-in { animation: lb-fade-in 0.18s ease-out; }
|
|
|
|
/* ============================================================
|
|
* Modal
|
|
* ============================================================ */
|
|
.lb-modal-backdrop {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.6);
|
|
backdrop-filter: blur(4px);
|
|
-webkit-backdrop-filter: blur(4px);
|
|
z-index: 100;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 24px;
|
|
}
|
|
.lb-modal {
|
|
background: var(--lb-panel);
|
|
border: 1px solid var(--lb-border-hi);
|
|
max-width: 480px;
|
|
width: 100%;
|
|
box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6);
|
|
}
|
|
.lb-modal-hdr {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 12px 16px;
|
|
background: var(--lb-bg-soft);
|
|
border-bottom: 1px solid var(--lb-border);
|
|
color: var(--lb-text);
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
}
|
|
.lb-modal-hdr svg { width: 16px; height: 16px; color: var(--lb-text-dim); }
|
|
.lb-modal-body { padding: 16px; font-size: 12px; color: var(--lb-text-dim); }
|
|
.lb-modal-foot {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
padding: 12px 16px;
|
|
border-top: 1px solid var(--lb-border);
|
|
}
|
|
|
|
/* ============================================================
|
|
* Misc utilities
|
|
* ============================================================ */
|
|
.lb-mono { font-family: 'JetBrains Mono', 'Cascadia Code', Menlo, Consolas, monospace; }
|
|
.lb-muted { color: var(--lb-text-mute); }
|
|
.lb-dim { color: var(--lb-text-dim); }
|
|
.lb-accent { color: var(--lb-accent); }
|
|
.lb-strong { color: var(--lb-text); }
|
|
.lb-eyebrow {
|
|
font-size: 10px;
|
|
color: var(--lb-text-mute);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.12em;
|
|
}
|
|
|
|
.lb-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
|
|
.lb-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
|
|
@media (max-width: 900px) {
|
|
.lb-grid-2, .lb-grid-3 { grid-template-columns: 1fr; }
|
|
}
|
|
|
|
.lb-hidden,
|
|
.hidden { display: none !important; }
|