:root {
  color-scheme: dark;
  --bg: #0b0d0f;
  --surface: #111519;
  --surface-2: #171c21;
  --surface-3: #20272e;
  --ink: #f2f5f3;
  --muted: #8f9ba2;
  --line: #293138;
  --accent: #b8f36b;
  --accent-dim: #27391e;
  --high: #ff806f;
  --high-bg: #3b211f;
  --medium: #f2c26b;
  --medium-bg: #3b301e;
  --low: #70c8b3;
  --low-bg: #18332e;
  --info: #8fa5ff;
  --shadow: 0 22px 70px rgba(0, 0, 0, .24);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { background: var(--bg); color: var(--ink); font: 400 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; padding-top: env(safe-area-inset-top, 0px); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 5px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
nav { border-bottom: 1px solid var(--line); background: rgba(11, 13, 15, .88); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); }
.nav-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { color: var(--ink); font-size: 22px; font-weight: 700; letter-spacing: -.05em; text-decoration: none; }
.logo-mark { color: var(--accent); margin-left: 2px; }
.nav-links { display: flex; align-items: center; gap: 26px; color: var(--muted); font-size: 14px; }
.nav-links a { text-decoration: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; border: 1px solid var(--accent); border-radius: 8px; padding: 13px 19px; background: var(--accent); color: #10140c; cursor: pointer; font: 700 14px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; text-decoration: none; transition: transform .2s, background .2s, color .2s, border-color .2s; }
.btn:hover { background: #d0ff91; color: #10140c; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { cursor: wait; opacity: .55; transform: none; }
.btn.sm { min-height: 36px; padding: 9px 14px; font-size: 13px; }
.btn.secondary { border-color: var(--line); background: var(--surface-3); color: var(--ink); }
.btn.secondary:hover { border-color: var(--muted); background: var(--surface-2); color: var(--ink); }
.btn.ghost { border-color: var(--line); background: transparent; color: var(--muted); }
.hero { max-width: 820px; padding: 86px 0 48px; }
.eyebrow { color: var(--accent); font: 700 11px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; }
h1 { max-width: 11em; margin-top: 15px; font-size: clamp(48px, 8vw, 88px); line-height: .98; letter-spacing: -.075em; font-weight: 700; }
h2 { font-size: clamp(27px, 4vw, 42px); line-height: 1.04; letter-spacing: -.055em; font-weight: 700; }
h3 { font-size: 17px; line-height: 1.2; letter-spacing: -.02em; }
h4 { font-size: 18px; line-height: 1.25; }
.lead { max-width: 680px; margin-top: 23px; color: var(--muted); font-size: 20px; line-height: 1.45; }
.launch-card { padding: 29px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(135deg, var(--surface-2), var(--surface)); box-shadow: var(--shadow); }
.launch-card h2 { margin-top: 9px; font-size: 30px; }
form { margin-top: 25px; }
label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.form-row { display: flex; align-items: stretch; gap: 10px; }
input, select { min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); font: 400 16px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
input { flex: 1 1 400px; padding: 14px 15px; }
select { padding: 10px 12px; }
input:focus, select:focus { outline: 2px solid var(--accent); border-color: transparent; }
input:disabled { cursor: not-allowed; opacity: .6; }
.note, .muted { color: var(--muted); }
.note { margin-top: 9px; font-size: 13px; }
.local-scan { margin-top: 19px; }
.local-scan input { display: block; width: 100%; padding: 10px; font-size: 14px; }
.plan-box { margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line); }
.plan-label { color: var(--muted); font-size: 13px; font-weight: 600; }
.plan-fieldset { display: grid; gap: 8px; margin: 8px 0 0; padding: 0; border: 0; }
.plan-legend { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.plan-option { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; }
.plan-option.active { border-color: var(--accent); background: var(--accent-dim); }
.plan-option.locked { cursor: not-allowed; opacity: .65; }
.plan-hint a, #plan-hint a { color: var(--accent); }
.plan-option input { flex: none; width: 16px; height: 16px; padding: 0; accent-color: var(--accent); }
.plan-name { font-size: 14px; font-weight: 700; }
.plan-detail { margin-left: auto; color: var(--muted); font-size: 12px; text-align: right; }
.privacy-note { margin-top: 21px; color: var(--muted); font-size: 13px; }
#status { min-height: 1.6em; margin: 18px 0 0; color: var(--muted); font-size: 14px; }
#status.err { color: var(--high); }
#status.ok { color: var(--accent); }
.mono, code, pre, .activity-log, .counter-value, .score-number { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.scan-view { margin: 55px 0 72px; }
.scan-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.scan-heading h2 { margin-top: 9px; }
.elapsed { min-width: 86px; text-align: right; }
.elapsed span { display: block; color: var(--muted); font: 700 10px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .12em; }
.elapsed strong { display: block; margin-top: 5px; color: var(--accent); font: 500 24px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.progress-track { height: 5px; margin-top: 27px; overflow: hidden; border-radius: 99px; background: var(--surface-3); }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent); transition: width .35s ease; }
.stage-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 18px; }
.stage { min-height: 76px; padding: 13px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.stage-index { color: var(--muted); font: 11px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.stage-name { display: block; margin-top: 11px; color: var(--muted); font-size: 12px; line-height: 1.25; }
.stage.running { border-color: var(--accent); background: var(--accent-dim); }
.stage.running .stage-name, .stage.done .stage-name { color: var(--ink); }
.stage.running .stage-index { color: var(--accent); }
.stage.done { border-color: #41622c; }
.stage.done .stage-index::after { content: " ✓"; color: var(--accent); }
.counter-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin-top: 25px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--line); }
.counter { min-height: 93px; padding: 18px; background: var(--surface); }
.counter-label { display: block; color: var(--muted); font-size: 12px; }
.counter-value { display: block; margin-top: 7px; color: var(--ink); font-size: 25px; letter-spacing: -.06em; }
.counter-findings { display: flex; gap: 8px; margin-top: 8px; font: 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.counter-findings span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 4px 1px 0; border-radius: 50%; background: currentColor; }
.high { color: var(--high); }.medium { color: var(--medium); }.low { color: var(--low); }
.scan-columns { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: 17px; margin-top: 17px; }
.panel { border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.live-dot { color: var(--accent); font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .1em; }
.live-dot::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 6px 1px 0; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.repo-tree, .live-feed { min-height: 280px; max-height: 410px; overflow: auto; padding: 7px 0; }
.skeleton-row { height: 29px; margin: 0 18px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, var(--surface) 25%, var(--surface-3) 50%, var(--surface) 75%); background-size: 220% 100%; animation: skeleton 1.4s ease-in-out infinite; }.feed-skeleton { height: 57px; margin: 0; }
.tree-file, .feed-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 9px 18px; border-bottom: 1px solid rgba(41, 49, 56, .62); font-size: 12px; }
.tree-file:last-child, .feed-item:last-child { border-bottom: 0; }
.tree-file .path, .feed-item .path { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-state { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.tree-file.scanned .file-state { background: var(--accent); }.tree-file.finding .file-state { background: var(--high); box-shadow: 0 0 0 4px var(--high-bg); }.tree-file.finding.medium .file-state { background: var(--medium); box-shadow: 0 0 0 4px var(--medium-bg); }.tree-file.finding.low .file-state { background: var(--low); box-shadow: 0 0 0 4px var(--low-bg); }
.feed-item { grid-template-columns: auto 1fr; align-items: start; animation: reveal .35s ease both; }
.feed-item .badge { grid-row: span 2; }.feed-copy { min-width: 0; }.feed-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }.feed-copy span { display: block; margin-top: 3px; color: var(--muted); }
.badge { display: inline-flex; align-items: center; width: max-content; padding: 4px 7px; border-radius: 5px; font: 700 10px/1.1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.badge.high { background: var(--high-bg); color: var(--high); }.badge.medium { background: var(--medium-bg); color: var(--medium); }.badge.low { background: var(--low-bg); color: var(--low); }.badge.info { background: var(--surface-3); color: var(--muted); }
.activity { margin-top: 17px; }
.activity-log { height: 138px; overflow: auto; padding: 11px 18px 15px; list-style: none; color: var(--muted); font-size: 11px; line-height: 1.8; }
.activity-log li::before { content: ">"; margin-right: 9px; color: var(--accent); }.activity-log time { color: #5d6b73; margin-right: 9px; }
#result { margin: 58px 0 84px; }
.report-hero { padding: 30px 0 33px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.report-kicker { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; }
.report-hero h2 { max-width: 780px; margin-top: 14px; font-size: clamp(32px, 5vw, 55px); }
.verdict-grid { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 32px; align-items: center; margin-top: 29px; }
.score-ring { display: grid; place-items: center; width: 142px; height: 142px; border-radius: 50%; background: conic-gradient(var(--accent) var(--score), var(--surface-3) 0); position: relative; }
.score-ring::after { content: ""; position: absolute; inset: 9px; border-radius: inherit; background: var(--bg); }.score-ring-content { z-index: 1; text-align: center; }.score-number { display: block; font-size: 42px; line-height: .95; letter-spacing: -.08em; }.score-grade { display: block; margin-top: 6px; color: var(--accent); font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.verdict-copy { color: var(--muted); font-size: 18px; line-height: 1.45; }.verdict-copy strong { color: var(--ink); font-weight: 600; }
.severity-chart { display: flex; gap: 10px; align-items: end; height: 48px; margin-top: 17px; }.severity-bar { display: flex; align-items: end; gap: 6px; height: 100%; color: var(--muted); font: 11px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }.severity-bar i { display: block; width: 12px; min-height: 4px; border-radius: 3px 3px 0 0; background: currentColor; }.severity-label { align-self: end; }
.summary-bar { position: sticky; top: 68px; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 17px 0 0; padding: 12px 15px; border: 1px solid var(--line); border-radius: 9px; background: rgba(17, 21, 25, .94); backdrop-filter: blur(12px); color: var(--muted); font-size: 13px; }.summary-bar strong { color: var(--ink); }
.report-section { margin-top: 39px; }.report-section > header { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 14px; }.report-section > header p { color: var(--muted); font-size: 13px; }
.group-title { margin: 19px 0 5px; color: var(--accent); font: 700 11px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; }
.top-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }.top-card { min-height: 150px; padding: 17px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }.top-card h4 { margin-top: 15px; }.top-card .where { margin-top: 10px; }
.report-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }.report-tools input { flex: 1 1 190px; padding: 10px 12px; }.report-tools select { min-height: 40px; font-size: 13px; }
.finding-list { display: grid; gap: 10px; margin-top: 14px; }.finding-card { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }.finding-card[open] { border-color: #46535c; }.finding-card summary { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; min-height: 65px; padding: 14px 16px; cursor: pointer; list-style: none; }.finding-card summary::-webkit-details-marker { display: none; }.finding-card summary::after { content: "+"; color: var(--muted); font-size: 22px; }.finding-card[open] summary::after { content: "−"; }.finding-title { min-width: 0; }.finding-title strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.finding-meta { display: block; margin-top: 4px; color: var(--muted); font: 11px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.finding-body { padding: 0 16px 20px; }.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, .72fr); gap: 18px; padding-top: 4px; }.detail-label { color: var(--accent); font: 700 10px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; }.detail-copy { margin-top: 8px; color: var(--muted); font-size: 14px; }.impact { margin-top: 14px; padding-left: 12px; border-left: 2px solid var(--medium); }.code-block { margin-top: 9px; overflow: auto; border: 1px solid var(--line); border-radius: 7px; background: #0b0e10; }.code-line { display: grid; grid-template-columns: 44px 1fr; padding: 4px 10px; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; }.code-line.highlight { background: rgba(255, 128, 111, .13); color: #ffd2cb; }.line-no { color: #5d6b73; text-align: right; padding-right: 12px; user-select: none; }.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }.flow-step { padding: 7px 9px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-2); color: var(--ink); font: 11px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }.flow-arrow { color: var(--accent); }.fix-panel { position: relative; margin-top: 18px; padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }.fix-panel.locked .diff { filter: blur(5px); opacity: .38; user-select: none; }.fix-lock { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 11px; color: var(--muted); font-size: 13px; }.diff { margin-top: 9px; padding: 10px; border-radius: 5px; background: #0b0e10; color: var(--low); font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; }.diff .remove { color: var(--high); }.diff .add { color: var(--low); }
.empty-state, .error-state { padding: 30px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }.empty-state { border-color: #41622c; background: linear-gradient(135deg, var(--accent-dim), var(--surface)); }.empty-state h2, .error-state h2 { margin-top: 10px; }.empty-state p, .error-state p { max-width: 650px; margin-top: 11px; color: var(--muted); }.error-state { border-color: var(--high); background: linear-gradient(135deg, var(--high-bg), var(--surface)); }.error-state .eyebrow { color: var(--high); }
.report-actions { display: flex; flex-wrap: wrap; gap: 9px; }.history-list, .compare-list { display: grid; gap: 7px; padding: 0; list-style: none; }.history-list li, .compare-list li { display: flex; justify-content: space-between; gap: 15px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font-size: 13px; }.history-list strong, .compare-list strong { color: var(--ink); }.compare-list .new { color: var(--high); }.compare-list .fixed { color: var(--accent); }.compare-list .unchanged { color: var(--muted); }
.connect { margin: 80px 0 0; padding: 30px 0; border-top: 1px solid var(--line); }.connect h2 { max-width: 620px; margin-top: 12px; }.connect p:not(.eyebrow) { max-width: 620px; margin-top: 13px; color: var(--muted); font-size: 17px; }.foot { margin: 18px 0 52px; color: var(--muted); font-size: 12px; }
footer { padding: 23px 0 45px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; } footer a { text-decoration: none; }
[hidden] { display: none !important; }
@keyframes reveal { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes skeleton { from { background-position: 200% 0; } to { background-position: -20% 0; } }
@media (max-width: 820px) { .stage-grid { grid-template-columns: repeat(3, 1fr); }.counter-grid { grid-template-columns: repeat(3, 1fr); }.counter:last-child { grid-column: span 3; }.top-grid { grid-template-columns: 1fr; }.detail-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .wrap { padding: 0 18px; }.nav-links a:first-child { display: none; }.hero { padding: 62px 0 35px; }.launch-card { padding: 21px; }.form-row { display: grid; grid-template-columns: 1fr; }.form-row .btn { width: 100%; }.scan-heading { align-items: start; }.elapsed { min-width: auto; }.stage-grid { gap: 5px; }.stage { min-height: 69px; padding: 10px 8px; }.stage-name { font-size: 10px; }.counter-grid { grid-template-columns: repeat(2, 1fr); }.counter:last-child { grid-column: span 2; }.counter { min-height: 78px; padding: 13px; }.counter-value { font-size: 21px; }.scan-columns { grid-template-columns: 1fr; }.repo-tree, .live-feed { min-height: 190px; }.verdict-grid { grid-template-columns: 1fr; gap: 20px; }.score-ring { width: 126px; height: 126px; }.summary-bar { top: 68px; align-items: start; flex-direction: column; gap: 3px; }.finding-card summary { grid-template-columns: auto 1fr; }.finding-card summary::after { grid-column: 2; grid-row: 1; justify-self: end; }.finding-title { grid-column: 2; grid-row: 1; }.report-kicker { align-items: start; flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
@media print { nav, footer, .launch-card, #status, .scan-view, .connect, .report-actions, .report-tools, .summary-bar { display: none !important; } body { background: #fff; color: #111; } .wrap { max-width: none; } .report-hero, .finding-card, .empty-state { border-color: #bbb; background: #fff; color: #111; } .finding-card { break-inside: avoid; } .fix-panel.locked { display: none; } }
