:root {
  color-scheme: dark;
  --bg: #090b0d;
  --panel: #101316;
  --panel-2: #15191d;
  --line: #272d32;
  --muted: #8d969e;
  --text: #f3f5f6;
  --green: #a8ff60;
  --green-2: #73dc38;
  --yellow: #ffd166;
  --orange: #ff8a4c;
  --red: #ff5263;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .2; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, black, transparent 60%); }
button, input, textarea { font: inherit; }
button { color: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin: auto; position: relative; }
.topbar { height: 78px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: 11px; align-items: center; color: var(--text); text-decoration: none; font-weight: 720; letter-spacing: -.02em; }
.brand-mark { width: 28px; height: 28px; display: grid; place-items: center; color: var(--green); }
.brand-mark svg { width: 100%; fill: rgba(168,255,96,.08); stroke: currentColor; stroke-width: 1.6; }
.brand-mark svg path:last-child { fill: none; stroke-width: 2; }
.local-pill { border: 1px solid var(--line); background: rgba(255,255,255,.02); color: #b8c0c6; font: 12px var(--mono); border-radius: 99px; padding: 8px 12px; display: flex; align-items: center; gap: 8px; }
.local-pill span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.hero { padding: 76px 0 54px; max-width: 790px; }
.eyebrow { color: var(--green); font: 12px var(--mono); letter-spacing: .18em; margin-bottom: 18px; }
h1 { font-size: clamp(48px, 7vw, 82px); line-height: .96; letter-spacing: -.065em; margin: 0 0 26px; font-weight: 750; }
.hero p { color: #a9b1b7; line-height: 1.72; font-size: 17px; max-width: 690px; margin: 0; }
.scanner-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--line); background: var(--line); gap: 1px; box-shadow: 0 28px 80px rgba(0,0,0,.32); }
.panel { background: var(--panel); padding: 26px; min-width: 0; }
.panel-head { height: 38px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.panel-head > div { display: flex; gap: 11px; align-items: center; }
.panel-head h2 { font-size: 15px; margin: 0; letter-spacing: -.01em; }
.step { font: 11px var(--mono); color: var(--green); border: 1px solid #314126; background: #141c10; padding: 4px 5px; }
.text-button, .icon-button { border: 0; background: transparent; cursor: pointer; color: var(--muted); }
.text-button { font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.text-button:hover { color: var(--green); }
.icon-button { width: 34px; height: 34px; border: 1px solid var(--line); display: grid; place-items: center; }
.icon-button:disabled { opacity: .35; cursor: default; }
.icon-button svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.dropzone { height: 148px; border: 1px dashed #3a4248; background: #0d1012; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-direction: column; transition: .2s ease; }
.dropzone:hover, .dropzone.dragging { border-color: var(--green); background: rgba(168,255,96,.035); }
.upload-icon { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); margin-bottom: 13px; color: var(--green); }
.upload-icon svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.dropzone strong { font-size: 14px; margin-bottom: 7px; }
.dropzone > span:last-child { color: var(--muted); font-size: 11px; }
.or { height: 44px; display: flex; align-items: center; color: #5f686f; font: 10px var(--mono); text-transform: uppercase; gap: 10px; }
.or::before, .or::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.editor-wrap { border: 1px solid var(--line); background: #0b0e10; }
.editor-bar { height: 38px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 11px; }
.editor-bar input { color: #d9dee1; border: 0; outline: 0; background: transparent; font: 11px var(--mono); width: 70%; }
.editor-bar span { color: #687178; font: 10px var(--mono); }
textarea { width: 100%; height: 166px; resize: vertical; display: block; border: 0; outline: none; background: transparent; color: #cbd2d6; padding: 14px; font: 12px/1.65 var(--mono); }
textarea::placeholder { color: #4f575d; }
.scan-button { width: 100%; height: 48px; border: 0; margin-top: 16px; cursor: pointer; background: var(--green); color: #0b0f08; font-weight: 760; display: flex; align-items: center; justify-content: center; gap: 8px; transition: .18s; }
.scan-button:hover { background: #bbff83; transform: translateY(-1px); }
.scan-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.privacy-note { margin: 12px 0 0; color: #687178; text-align: center; font-size: 10px; display: flex; align-items: center; justify-content: center; gap: 5px; }
.privacy-note svg { width: 12px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.result-panel { min-height: 610px; }
.empty-state { height: 490px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-state strong { font-size: 14px; margin-top: 24px; }
.empty-state p { color: var(--muted); max-width: 290px; line-height: 1.6; font-size: 12px; }
.radar { position: relative; width: 116px; height: 116px; border: 1px solid #293036; border-radius: 50%; background: radial-gradient(circle, transparent 0 23%, #252b30 24% 25%, transparent 26% 48%, #252b30 49% 50%, transparent 51%); }
.radar::before, .radar::after { content: ""; position: absolute; background: #252b30; }
.radar::before { left: 50%; top: 0; height: 100%; width: 1px; }
.radar::after { top: 50%; left: 0; width: 100%; height: 1px; }
.radar i { position: absolute; width: 50%; height: 50%; left: 50%; top: 0; transform-origin: 0 100%; animation: sweep 3s linear infinite; background: linear-gradient(35deg, transparent 45%, rgba(168,255,96,.17)); border-bottom: 1px solid rgba(168,255,96,.5); }
.radar span { position: absolute; width: 4px; height: 4px; background: var(--green); border-radius: 50%; box-shadow: 0 0 8px var(--green); }
.radar span:nth-child(1) { left: 30px; top: 34px; }.radar span:nth-child(2) { right: 23px; top: 48px; }.radar span:nth-child(3) { left: 52px; bottom: 18px; }
@keyframes sweep { to { transform: rotate(360deg); } }
.hidden { display: none !important; }
.risk-hero { border: 1px solid var(--line); background: var(--panel-2); padding: 18px; display: flex; align-items: center; gap: 17px; margin-bottom: 15px; }
.score-ring { width: 76px; height: 76px; border: 4px solid var(--risk-color, var(--green)); outline: 1px solid #30363b; outline-offset: 4px; border-radius: 50%; display: flex; align-items: baseline; justify-content: center; flex-shrink: 0; padding-top: 19px; box-shadow: inset 0 0 26px color-mix(in srgb, var(--risk-color, var(--green)) 12%, transparent); }
.score-ring span { font: 25px var(--mono); font-weight: bold; }.score-ring small { color: var(--muted); font: 9px var(--mono); }
.risk-label { color: var(--risk-color); font: 10px var(--mono); font-weight: bold; letter-spacing: .13em; }
.risk-hero h3 { margin: 5px 0 3px; font-size: 17px; }.risk-hero p { margin: 0; color: var(--muted); font-size: 11px; }
.category-list { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.category { display: flex; align-items: center; gap: 9px; background: #0c0f11; border: 1px solid var(--line); padding: 9px 10px; min-width: 0; }
.category-dot { width: 7px; height: 7px; border-radius: 50%; background: #435059; flex: none; }.category.flagged .category-dot { background: var(--category-color); box-shadow: 0 0 8px var(--category-color); }
.category span:nth-child(2) { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 10px; flex: 1; }.category small { font: 9px var(--mono); color: #657079; }.category.flagged small { color: var(--category-color); }
.findings-head { display: flex; justify-content: space-between; align-items: center; margin: 20px 0 10px; }.findings-head h3 { margin: 0; font-size: 13px; }.findings-head span { color: var(--muted); font: 10px var(--mono); }
.findings { max-height: 230px; overflow: auto; padding-right: 4px; }
.finding { border-left: 2px solid var(--finding-color); background: #0c0f11; border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 11px 12px; margin-bottom: 8px; }
.finding-top { display: flex; align-items: center; gap: 8px; }.severity { color: var(--finding-color); font: bold 9px var(--mono); }.rule-id { color: #606a71; font: 9px var(--mono); }
.finding h4 { margin: 6px 0; font-size: 12px; }.finding p { color: var(--muted); font-size: 10px; line-height: 1.5; margin: 0 0 7px; }.finding code { display: block; color: #b9c1c6; background: #15191c; padding: 6px 7px; font: 9px/1.4 var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 6px; }.finding .fix { color: #aab5a4; }
.clean-card { border: 1px solid #2c4121; background: #11180d; color: #b9e6a0; text-align: center; padding: 24px; font-size: 12px; }
.disclaimer { color: #626b71; font-size: 9px; line-height: 1.5; margin: 14px 0 0; }
.checks { padding: 100px 0 90px; }.section-title span { color: var(--green); font: 11px var(--mono); letter-spacing: .13em; }.section-title h2 { font-size: 30px; letter-spacing: -.035em; margin: 10px 0 35px; }
.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }.check-grid article { min-height: 150px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 21px; background: rgba(16,19,22,.55); }.check-grid article > span { color: #4e575d; font: 10px var(--mono); }.check-grid h3 { font: 14px var(--mono); margin: 30px 0 8px; }.check-grid p { color: var(--muted); font-size: 11px; line-height: 1.6; margin: 0; }
footer { min-height: 75px; border-top: 1px solid var(--line); color: #626b71; font: 10px var(--mono); display: flex; justify-content: space-between; align-items: center; }
@media (max-width: 820px) { .scanner-grid { grid-template-columns: 1fr; }.result-panel { min-height: 550px; }.check-grid { grid-template-columns: 1fr 1fr; }.hero { padding-top: 58px; } }
@media (max-width: 520px) { .shell { width: min(100% - 22px, 1180px); }.local-pill { display: none; }.panel { padding: 18px; }.category-list, .check-grid { grid-template-columns: 1fr; }.risk-hero { align-items: flex-start; }.hero p { font-size: 15px; }.checks { padding: 70px 0 60px; } footer { gap: 15px; align-items: flex-start; flex-direction: column; padding: 20px 0; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; animation-duration: .01ms !important; } }
