:root {
  color-scheme: dark;
  --bg: #070b0a;
  --panel: #0d1311;
  --panel-2: #111916;
  --line: #203028;
  --muted: #8fa097;
  --text: #f3f7f4;
  --mint: #62e6ae;
  --mint-dim: #163f31;
  --red: #ff695e;
  --amber: #f0bc5e;
}

* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at 80% -10%, #18382d 0, transparent 32%), var(--bg); color: var(--text); font: 14px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
button, select, textarea { font: inherit; }
.topbar { height: 70px; display: flex; align-items: center; justify-content: space-between; padding: 0 4vw; border-bottom: 1px solid var(--line); background: rgba(7,11,10,.86); backdrop-filter: blur(16px); position: sticky; top: 0; z-index: 4; }
.brand { color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 12px; font-weight: 730; letter-spacing: -.02em; font-size: 16px; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #41715c; background: #10231c; color: var(--mint); border-radius: 9px; font: 700 11px/1 ui-monospace, monospace; }
.top-actions { display: flex; align-items: center; gap: 20px; }
.mode { color: #bfd0c7; font-size: 12px; }
.pulse { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); margin-right: 8px; box-shadow: 0 0 0 5px rgba(98,230,174,.1); }
.ghost { color: #dfe8e3; text-decoration: none; border: 1px solid #33453d; border-radius: 8px; padding: 8px 12px; }
main { width: min(1440px, 94vw); margin: auto; }
.hero { min-height: 315px; display: flex; align-items: flex-end; justify-content: space-between; padding: 68px 1.5vw 46px; }
.eyebrow { margin: 0 0 14px; color: var(--mint); font: 700 11px/1.2 ui-monospace, monospace; letter-spacing: .16em; }
h1 { margin: 0; max-width: 820px; font-size: clamp(42px, 6vw, 82px); line-height: .98; letter-spacing: -.065em; font-weight: 690; }
h1 span { color: #8ea198; }
.lede { margin: 26px 0 0; max-width: 720px; color: #b4c2bb; font-size: 17px; }
.hero-stat { min-width: 190px; padding: 18px 0; border-top: 1px solid #3b5147; display: grid; gap: 2px; color: var(--muted); }
.hero-stat strong { color: var(--text); font-size: 28px; letter-spacing: -.04em; }
.stat-label { color: var(--mint); font: 700 10px ui-monospace, monospace; letter-spacing: .12em; }
.workspace { display: grid; grid-template-columns: 340px 1fr; border: 1px solid var(--line); border-radius: 16px 16px 0 0; overflow: hidden; min-height: 850px; background: rgba(9,14,12,.8); }
.control-panel { padding: 28px; border-right: 1px solid var(--line); background: linear-gradient(180deg, #101713, #0a0f0d); }
.panel-heading, .card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.panel-heading > span:first-child { font-weight: 690; font-size: 16px; }
.step { color: var(--mint); font: 700 10px ui-monospace, monospace; border: 1px solid #315344; padding: 4px 6px; border-radius: 5px; margin-right: 9px; }
label { display: flex; justify-content: space-between; color: #9aaba2; font-size: 11px; margin: 19px 0 7px; text-transform: uppercase; letter-spacing: .08em; }
label span { text-transform: none; letter-spacing: 0; color: #63746b; }
select, textarea { width: 100%; border: 1px solid #2c3c34; background: #0b110e; color: #e7eee9; border-radius: 8px; padding: 11px 12px; outline: none; }
select:focus, textarea:focus { border-color: #4f8c70; box-shadow: 0 0 0 3px rgba(98,230,174,.08); }
textarea { min-height: 88px; resize: vertical; }
.operation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.operation { padding: 9px; border: 1px solid #2a3932; color: #9caaa3; background: transparent; border-radius: 7px; cursor: pointer; }
.operation.active { color: #07100c; background: var(--mint); border-color: var(--mint); font-weight: 700; }
.primary { width: 100%; margin-top: 19px; border: 0; background: var(--mint); color: #07100c; padding: 13px 15px; border-radius: 8px; font-weight: 750; display: flex; justify-content: space-between; cursor: pointer; }
.primary:disabled { opacity: .55; cursor: wait; }
.privacy { color: #687870; font-size: 11px; margin: 13px 2px; }
.result-panel { padding: 28px; min-width: 0; }
.decision-row { display: flex; justify-content: space-between; min-height: 140px; padding: 8px 8px 22px; border-bottom: 1px solid var(--line); }
.decision { display: flex; align-items: baseline; gap: 16px; }
.decision > span:first-child { font: 750 52px/1 ui-monospace, monospace; letter-spacing: -.05em; color: var(--red); }
.decision > span:last-child { color: #a8b7af; }
.score-wrap { position: relative; width: 120px; height: 120px; }
.gauge { width: 120px; height: 120px; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 8; }
.gauge-bg { stroke: #1e2924; }
.gauge-value { stroke: var(--red); stroke-linecap: round; stroke-dasharray: 314.16; stroke-dashoffset: 20; transition: stroke-dashoffset .6s ease, stroke .4s ease; }
.score { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.score strong { font-size: 28px; line-height: 1; }
.score span { font-size: 10px; color: var(--muted); }
.graph-card, .findings-card, .tickets-card { margin-top: 24px; border: 1px solid var(--line); background: var(--panel); border-radius: 11px; padding: 20px; }
.card-head { margin-bottom: 18px; }
.chip { color: #a7b7af; background: #17211d; border: 1px solid #293a32; border-radius: 999px; padding: 4px 8px; font-size: 10px; }
.chip.safe { color: var(--mint); }
.graph { position: relative; min-height: 245px; display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)); align-items: center; gap: 30px; overflow: hidden; }
.graph::before { content: ""; position: absolute; left: 7%; right: 7%; top: 50%; border-top: 1px dashed #395046; z-index: 0; }
.node { position: relative; z-index: 1; border: 1px solid #34463e; background: #0a100e; border-radius: 10px; padding: 15px; min-height: 112px; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.node.source { border-color: #7b4b48; box-shadow: inset 0 3px 0 var(--red); }
.node.critical { border-color: #725e34; box-shadow: inset 0 3px 0 var(--amber); }
.node small { font: 700 9px ui-monospace, monospace; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.node strong { display: block; margin: 7px 0 6px; font-size: 13px; overflow-wrap: anywhere; }
.node span { color: #798a81; font-size: 10px; }
.legend { display: flex; gap: 18px; color: #73847c; font-size: 10px; }
.legend i { width: 7px; height: 7px; display: inline-block; margin-right: 5px; border-radius: 50%; }
.source-dot { background: var(--red); }.impact-dot { background: #719080; }.critical-dot { background: var(--amber); }
.lower-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.finding, .ticket { border-top: 1px solid #1f2d27; padding: 13px 0; display: grid; grid-template-columns: 76px 1fr; gap: 12px; }
.finding:first-child, .ticket:first-child { border-top: 0; }
.severity, .ticket-id { font: 700 9px ui-monospace, monospace; text-transform: uppercase; letter-spacing: .08em; }
.severity.critical { color: var(--red); }.severity.high { color: var(--amber); }.severity.medium { color: #8fd1b4; }
.finding strong, .ticket strong { display: block; font-size: 12px; margin-bottom: 3px; }
.finding p, .ticket p { margin: 0; color: #788981; font-size: 11px; }
.ticket-id { color: var(--mint); }
.receipt { margin-top: 24px; border-top: 1px solid var(--line); padding: 19px 4px 2px; display: flex; gap: 14px; align-items: center; color: #73847c; font: 700 9px ui-monospace, monospace; letter-spacing: .08em; }
.receipt code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #96a79e; flex: 1; letter-spacing: 0; }
.receipt button { border: 0; background: transparent; color: var(--mint); cursor: pointer; }
@media (max-width: 980px) { .workspace { grid-template-columns: 1fr; }.control-panel { border-right: 0; border-bottom: 1px solid var(--line); }.graph { grid-template-columns: 1fr 1fr; }.hero-stat { display: none; } }
@media (max-width: 650px) { .top-actions .mode { display: none; }.hero { padding-top: 45px; }.workspace { border-radius: 10px 10px 0 0; }.result-panel,.control-panel { padding: 18px; }.decision-row { min-height: 120px; }.decision > span:first-child { font-size: 39px; }.score-wrap,.gauge { width: 94px; height: 94px; }.lower-grid { grid-template-columns: 1fr; }.graph { grid-template-columns: 1fr; }.graph::before { display:none; } }

