@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400;500&family=Inter:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700&display=swap");

:root {
  --bg: #07070a;
  --surface: rgba(15, 15, 20, .84);
  --surface-2: #111116;
  --line: rgba(255, 255, 255, .105);
  --line-strong: rgba(255, 255, 255, .19);
  --text: #f4f2ed;
  --muted: #96949e;
  --dim: #5e5d66;
  --acid: #baff65;
  --cyan: #5be7e2;
  --violet: #9b87ff;
  --danger: #ff616d;
  --warning: #ffc866;
  --mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
  --sans: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: dark; background: var(--bg); scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; color: var(--text); background: var(--bg); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

#fieldCanvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .55; z-index: 0; }
.noise { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .032; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E"); }

.topbar { position: relative; z-index: 5; height: 72px; padding: 0 max(28px, calc((100vw - 1320px)/2)); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; background: rgba(7, 7, 10, .74); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font: 500 12px/1 var(--mono); letter-spacing: .12em; }
.brand b { color: var(--muted); font-weight: 400; }
.brand-mark { position: relative; width: 27px; height: 27px; border: 1px solid var(--line-strong); transform: rotate(45deg); display: grid; place-items: center; }
.brand-mark::after { content: ""; width: 5px; height: 5px; background: var(--acid); box-shadow: 0 0 13px var(--acid); }
.brand-mark i { position: absolute; background: var(--line-strong); }
.brand-mark i:nth-child(1) { width: 9px; height: 1px; left: -5px; top: 4px; }
.brand-mark i:nth-child(2) { width: 1px; height: 9px; right: 4px; bottom: -5px; }
.system-state { display: flex; align-items: center; gap: 9px; color: var(--muted); font: 400 10px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.state-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--warning); box-shadow: 0 0 10px var(--warning); }
.state-dot.online { background: var(--acid); box-shadow: 0 0 10px var(--acid); }
.state-dot.offline { background: var(--danger); box-shadow: 0 0 10px var(--danger); }
.state-divider { width: 1px; height: 14px; margin: 0 6px; background: var(--line-strong); }

.shell { position: relative; z-index: 2; width: min(1320px, calc(100% - 56px)); margin: 0 auto; }
.hero { position: relative; min-height: 460px; padding: 94px 0 68px; border-left: 1px solid rgba(255,255,255,.045); border-right: 1px solid rgba(255,255,255,.045); }
.hero::before { content: ""; position: absolute; width: 620px; height: 350px; left: -220px; top: -50px; background: radial-gradient(ellipse, rgba(155,135,255,.14), transparent 67%); filter: blur(10px); pointer-events: none; }
.hero::after { content: "SIGNAL / AUTHENTICITY / OBSERVATION"; position: absolute; right: 5px; bottom: 76px; writing-mode: vertical-rl; color: var(--dim); font: 400 8px/1 var(--mono); letter-spacing: .25em; }
.eyebrow { display: flex; align-items: center; width: min(600px, 70%); gap: 13px; color: var(--acid); font: 500 10px/1 var(--mono); letter-spacing: .16em; }
.eyebrow i { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(186,255,101,.5), transparent); }
.eyebrow em { color: var(--dim); font-style: normal; }
.hero h1 { margin: 29px 0 22px; font-size: clamp(48px, 6.6vw, 92px); line-height: .96; letter-spacing: -.067em; font-weight: 600; }
.hero h1 span { color: transparent; -webkit-text-stroke: 1px rgba(244,242,237,.42); }
.hero > p { width: min(550px, 73%); margin: 0; color: var(--muted); font-size: 15px; line-height: 1.85; }
.hero-stats { position: absolute; right: 78px; top: 117px; display: grid; gap: 25px; }
.hero-stats div { min-width: 110px; padding: 0 0 14px 16px; border-left: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.hero-stats strong { display: block; color: var(--text); font: 400 20px/1 var(--mono); }
.hero-stats span { display: block; margin-top: 7px; color: var(--dim); font-size: 10px; letter-spacing: .12em; }

.workspace { display: grid; grid-template-columns: minmax(370px, .78fr) minmax(520px, 1.22fr); gap: 14px; }
.panel-corners { position: relative; border: 1px solid var(--line); background: var(--surface); backdrop-filter: blur(18px); }
.panel-corners::before, .panel-corners::after { content: ""; position: absolute; z-index: 2; width: 10px; height: 10px; pointer-events: none; }
.panel-corners::before { left: -1px; top: -1px; border-left: 1px solid var(--acid); border-top: 1px solid var(--acid); }
.panel-corners::after { right: -1px; bottom: -1px; border-right: 1px solid var(--acid); border-bottom: 1px solid var(--acid); }
.control-panel, .monitor-panel { min-height: 672px; }
.panel-heading { height: 72px; padding: 0 23px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.panel-heading > div { display: flex; align-items: center; gap: 13px; }
.step-index { color: var(--acid); font: 400 10px/1 var(--mono); }
.panel-heading h2 { margin: 0; font-size: 14px; font-weight: 500; letter-spacing: .03em; }
.privacy-badge { display: flex; align-items: center; gap: 7px; color: var(--muted); font: 400 9px/1 var(--mono); letter-spacing: .1em; }
.privacy-badge i { width: 5px; height: 5px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 8px rgba(186,255,101,.7); }

#scanForm { padding: 24px; }
.field { display: block; margin-bottom: 19px; }
.field-label { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 9px; color: #cbc9c4; font-size: 11px; font-weight: 500; letter-spacing: .04em; }
.field-label small { color: var(--dim); font: 400 8px/1 var(--mono); letter-spacing: .13em; }
.input-shell { height: 48px; border: 1px solid var(--line); background: rgba(5,5,8,.65); display: flex; align-items: center; transition: border-color .2s, box-shadow .2s; }
.input-shell:focus-within { border-color: rgba(186,255,101,.55); box-shadow: inset 0 0 0 1px rgba(186,255,101,.07), 0 0 24px rgba(186,255,101,.045); }
.input-shell > svg { width: 18px; margin-left: 14px; stroke: var(--dim); fill: none; stroke-width: 1.2; flex: 0 0 auto; }
.input-shell input { width: 100%; height: 100%; padding: 0 13px; border: 0; outline: 0; color: var(--text); background: transparent; font: 400 12px/1 var(--mono); }
.input-shell input::placeholder { color: #4d4c54; }
.icon-button { width: 43px; height: 100%; border: 0; border-left: 1px solid var(--line); background: transparent; display: grid; place-items: center; cursor: pointer; }
.icon-button svg { width: 17px; stroke: var(--dim); fill: none; stroke-width: 1.2; }
.mode-field { margin: 25px 0 0; padding: 0; border: 0; }
.mode-field legend { width: 100%; }
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.mode-switch label { min-width: 0; cursor: pointer; }
.mode-switch input { position: absolute; opacity: 0; pointer-events: none; }
.mode-switch span { height: 70px; padding: 13px; border: 1px solid var(--line); background: rgba(5,5,8,.5); display: flex; flex-direction: column; justify-content: center; transition: .2s; }
.mode-switch b { font-size: 11px; font-weight: 500; }
.mode-switch small { margin-top: 7px; color: var(--dim); font-size: 9px; line-height: 1.3; }
.mode-switch input:checked + span { border-color: rgba(186,255,101,.55); background: rgba(186,255,101,.06); box-shadow: inset 2px 0 0 var(--acid); }
.mode-switch input:checked + span b { color: var(--acid); }
.cost-notice { min-height: 42px; margin: 14px 0 18px; padding: 8px 10px; display: flex; align-items: center; gap: 8px; color: var(--dim); background: rgba(255,200,102,.04); font-size: 9px; line-height: 1.45; }
.cost-notice svg { width: 15px; flex: 0 0 auto; stroke: var(--warning); fill: none; stroke-width: 1.2; }
.scan-button { position: relative; overflow: hidden; width: 100%; height: 52px; padding: 0 17px; border: 1px solid var(--acid); color: #0a0b08; background: var(--acid); display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-size: 12px; font-weight: 600; letter-spacing: .04em; transition: filter .2s, transform .2s; }
.scan-button:hover { filter: brightness(1.08); }
.scan-button:active { transform: translateY(1px); }
.scan-button:disabled { color: var(--muted); background: #25252a; border-color: var(--line); cursor: wait; }
.scan-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.button-scanline { position: absolute; inset: 0; opacity: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); transform: translateX(-100%); }
.scan-button:disabled .button-scanline { opacity: 1; animation: scanButton 1.4s linear infinite; }
@keyframes scanButton { to { transform: translateX(100%); } }

.monitor-panel { overflow: hidden; }
.cancel-button { padding: 7px 10px; border: 1px solid rgba(255,97,109,.35); color: var(--danger); background: transparent; font: 400 9px/1 var(--mono); cursor: pointer; }
.idle-state { min-height: 598px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.idle-state h3 { margin: 28px 0 8px; font-size: 15px; font-weight: 500; }
.idle-state p { max-width: 300px; margin: 0; color: var(--dim); font-size: 11px; line-height: 1.65; }
.radar { position: relative; width: 214px; height: 214px; border-radius: 50%; border: 1px solid var(--line); background: repeating-radial-gradient(circle, transparent 0 34px, rgba(255,255,255,.055) 35px 36px), radial-gradient(circle, rgba(91,231,226,.04), transparent 66%); overflow: hidden; }
.radar-axis { position: absolute; background: var(--line); }
.radar-axis.x { left: 0; right: 0; top: 50%; height: 1px; }
.radar-axis.y { top: 0; bottom: 0; left: 50%; width: 1px; }
.radar-sweep { position: absolute; inset: 50% 50% 0 0; transform-origin: right top; background: linear-gradient(35deg, transparent 45%, rgba(91,231,226,.22)); animation: radar 4s linear infinite; }
@keyframes radar { to { transform: rotate(360deg); } }
.radar > span { position: absolute; width: 6px; height: 6px; left: 63%; top: 32%; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); animation: ping 2s ease-in-out infinite; }
@keyframes ping { 50% { opacity: .2; transform: scale(.6); } }

.running-state { padding: 28px; }
.scan-overview { display: flex; align-items: center; gap: 29px; }
.progress-orbit { position: relative; width: 130px; height: 130px; flex: 0 0 auto; }
.progress-orbit svg { width: 100%; transform: rotate(-90deg); }
.orbit-track, .orbit-value { fill: none; stroke-width: 2; }
.orbit-track { stroke: rgba(255,255,255,.08); stroke-dasharray: 4 5; }
.orbit-value { stroke: var(--acid); stroke-linecap: round; stroke-dasharray: 320.44; stroke-dashoffset: 320.44; filter: drop-shadow(0 0 5px rgba(186,255,101,.45)); transition: stroke-dashoffset .5s; }
.progress-orbit > div { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.progress-orbit strong { font: 400 33px/1 var(--mono); }
.progress-orbit small { margin: 6px 0 0 2px; color: var(--muted); font: 400 10px/1 var(--mono); }
.progress-orbit span { position: absolute; top: 88px; color: var(--dim); font: 400 7px/1 var(--mono); letter-spacing: .15em; }
.scan-copy { min-width: 0; }
.live-label { color: var(--acid); font: 400 9px/1 var(--mono); letter-spacing: .08em; }
.live-label i { display: inline-block; width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 9px var(--acid); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: .15; } }
.scan-copy h3 { overflow: hidden; max-width: 450px; margin: 13px 0 6px; font: 500 18px/1.2 var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.scan-copy p { overflow: hidden; max-width: 420px; margin: 0; color: var(--dim); font: 400 10px/1.4 var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.request-counter { margin-top: 18px; color: var(--muted); font: 400 9px/1 var(--mono); letter-spacing: .08em; }
.request-counter span:first-child { color: var(--cyan); }
.probe-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 26px; background: var(--line); border: 1px solid var(--line); }
.probe-rail div { position: relative; min-height: 58px; padding: 12px 10px 9px 17px; background: #0d0d11; display: flex; flex-direction: column; justify-content: center; }
.probe-rail i { position: absolute; left: 8px; width: 3px; height: 3px; border-radius: 50%; background: var(--dim); }
.probe-rail span { color: #aaa8b0; font-size: 9px; }
.probe-rail em { position: absolute; right: 7px; bottom: 5px; color: #34343b; font: 400 7px/1 var(--mono); font-style: normal; }
.probe-rail div.active { background: rgba(91,231,226,.055); }
.probe-rail div.active i { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.probe-rail div.done i { background: var(--acid); box-shadow: 0 0 7px rgba(186,255,101,.7); }
.probe-rail div.failed i { background: var(--danger); box-shadow: 0 0 7px rgba(255,97,109,.7); }
.terminal { margin-top: 24px; border: 1px solid var(--line); background: #08080b; }
.terminal-bar { height: 31px; padding: 0 10px; border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.terminal-bar > span { display: flex; gap: 4px; }
.terminal-bar > span i { width: 5px; height: 5px; border-radius: 50%; background: #34343a; }
.terminal-bar b { margin-left: 12px; color: var(--dim); font: 400 7px/1 var(--mono); letter-spacing: .15em; }
.terminal-bar em { margin-left: auto; color: #424149; font: 400 7px/1 var(--mono); font-style: normal; }
.terminal-log { height: 147px; overflow-y: auto; padding: 10px 12px; color: #7d7b84; font: 400 9px/1.7 var(--mono); scrollbar-color: #303038 transparent; }
.log-line { display: grid; grid-template-columns: 55px 55px 1fr; gap: 8px; }
.log-line time { color: #3f3e45; }
.log-line b { color: var(--cyan); font-weight: 400; }
.log-line.success b { color: var(--acid); }
.log-line.error b { color: var(--danger); }
.log-line span { overflow-wrap: anywhere; }
.error-state { min-height: 598px; padding: 50px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.error-symbol { width: 70px; height: 70px; border: 1px solid rgba(255,97,109,.4); color: var(--danger); display: grid; place-items: center; font: 300 34px/1 var(--mono); box-shadow: 0 0 45px rgba(255,97,109,.08); }
.error-state > span { margin-top: 22px; color: var(--danger); font: 400 8px/1 var(--mono); letter-spacing: .17em; }
.error-state h3 { margin: 13px 0 9px; font-size: 16px; font-weight: 500; }
.error-state p { max-width: 470px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.error-state button { margin-top: 25px; padding: 10px 14px; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; font-size: 10px; }

.result-section { padding-top: 96px; scroll-margin-top: 20px; }
.section-rule { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.section-rule span { color: var(--acid); font: 400 9px/1 var(--mono); }
.section-rule h2 { margin: 0; font-size: 13px; font-weight: 500; letter-spacing: .04em; }
.section-rule i { flex: 1; height: 1px; background: var(--line); }
.section-rule em { color: var(--dim); font: 400 8px/1 var(--mono); font-style: normal; letter-spacing: .1em; }
.result-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 14px; }
.score-card, .telemetry-card { min-height: 310px; }
.score-card { padding: 25px 30px 27px; text-align: center; }
.score-gauge { position: relative; width: 190px; height: 112px; margin: 0 auto; }
.score-gauge svg { width: 100%; overflow: visible; }
.gauge-track, .gauge-value { fill: none; stroke-width: 4; stroke-linecap: round; }
.gauge-track { stroke: rgba(255,255,255,.08); }
.gauge-value { stroke: var(--acid); stroke-dasharray: 242; stroke-dashoffset: 242; filter: drop-shadow(0 0 5px rgba(186,255,101,.4)); transition: stroke-dashoffset .8s ease; }
.score-gauge div { position: absolute; inset: 56px 0 auto; }
.score-gauge strong { font: 400 42px/1 var(--mono); }
.score-gauge small { color: var(--dim); font: 400 10px/1 var(--mono); }
.verdict-pill { display: inline-block; padding: 5px 8px; color: var(--acid); border: 1px solid rgba(186,255,101,.28); background: rgba(186,255,101,.06); font: 400 8px/1 var(--mono); letter-spacing: .11em; }
.score-card h3 { margin: 13px 0 7px; font-size: 16px; font-weight: 500; }
.score-card p { max-width: 420px; margin: 0 auto; color: var(--muted); font-size: 11px; line-height: 1.65; }
.score-card.risk .gauge-value { stroke: var(--danger); filter: drop-shadow(0 0 5px rgba(255,97,109,.4)); }
.score-card.risk .verdict-pill { color: var(--danger); border-color: rgba(255,97,109,.28); background: rgba(255,97,109,.06); }
.score-card.unknown .gauge-value { stroke: var(--warning); }
.score-card.unknown .verdict-pill { color: var(--warning); border-color: rgba(255,200,102,.28); background: rgba(255,200,102,.06); }
.telemetry-card { padding: 27px 29px; overflow: hidden; }
.card-kicker { color: var(--dim); font: 400 8px/1 var(--mono); letter-spacing: .15em; }
.telemetry-grid { display: grid; grid-template-columns: 1fr 1fr; margin-top: 23px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.telemetry-grid div { min-height: 88px; padding: 15px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.telemetry-grid span { display: block; color: var(--dim); font-size: 9px; }
.telemetry-grid strong { display: inline-block; margin-top: 13px; font: 400 21px/1 var(--mono); }
.telemetry-grid small { margin-left: 4px; color: var(--dim); font: 400 8px/1 var(--mono); }
.signal-band { height: 30px; margin-top: 22px; display: flex; align-items: center; gap: 4px; opacity: .6; }
.signal-band i { flex: 1; height: 4px; background: var(--cyan); box-shadow: 0 0 6px rgba(91,231,226,.25); transform-origin: center; animation: wave 1.9s ease-in-out infinite; }
.signal-band i:nth-child(3n) { animation-delay: -.45s; }.signal-band i:nth-child(2n) { animation-delay: -.8s; }
@keyframes wave { 50% { transform: scaleY(5); opacity: .25; } }
.details-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 14px; margin-top: 14px; }
.findings-card, .fingerprint-card { min-height: 386px; padding: 25px 28px 28px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.card-head span { color: var(--dim); font: 400 7px/1 var(--mono); letter-spacing: .14em; }
.card-head h3 { margin: 8px 0 0; font-size: 13px; font-weight: 500; }
.card-head em { color: var(--dim); font: 400 8px/1 var(--mono); font-style: normal; }
.findings-list { max-height: 300px; overflow: auto; scrollbar-color: #303038 transparent; }
.finding { min-height: 49px; padding: 11px 2px; border-bottom: 1px solid rgba(255,255,255,.055); display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 8px; }
.finding > i { width: 15px; height: 15px; border: 1px solid rgba(186,255,101,.32); display: grid; place-items: center; color: var(--acid); font: 400 8px/1 var(--mono); font-style: normal; }
.finding.failed > i { border-color: rgba(255,97,109,.35); color: var(--danger); }
.finding b { display: block; font-size: 10px; font-weight: 500; }
.finding small { color: var(--dim); font: 400 7px/1 var(--mono); text-transform: uppercase; }
.finding em { color: var(--acid); font: 400 8px/1 var(--mono); font-style: normal; text-transform: uppercase; }
.finding.failed em { color: var(--danger); }
.fingerprint-empty { min-height: 275px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.fingerprint-empty p { width: 270px; margin: 22px 0 0; color: var(--dim); text-align: center; font-size: 10px; line-height: 1.65; }
.mini-spectrum { height: 65px; display: flex; align-items: center; gap: 5px; }
.mini-spectrum i { width: 5px; height: 15px; background: var(--violet); opacity: .5; animation: wave 2s ease-in-out infinite; }
.mini-spectrum i:nth-child(2n) { height: 26px; animation-delay: -.6s; }.mini-spectrum i:nth-child(3n) { height: 45px; animation-delay: -1s; }
.fingerprint-plot { padding-top: 17px; }
.plot-legend { display: flex; gap: 16px; color: var(--dim); font-size: 8px; }
.plot-legend span { display: flex; align-items: center; gap: 5px; }
.plot-legend i { width: 13px; height: 1px; }.plot-legend .observed { background: var(--acid); }.plot-legend .reference { background: var(--violet); }
#distributionChart { width: 100%; height: 190px; margin-top: 10px; overflow: visible; }
.plot-grid { stroke: rgba(255,255,255,.055); stroke-width: 1; vector-effect: non-scaling-stroke; }
.reference-area { fill: rgba(155,135,255,.08); }
.reference-line, .observed-line { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.reference-line { stroke: var(--violet); opacity: .72; }.observed-line { stroke: var(--acid); filter: drop-shadow(0 0 4px rgba(186,255,101,.25)); }
.fingerprint-stats { display: grid; grid-template-columns: 1.5fr .8fr .8fr; border-top: 1px solid var(--line); }
.fingerprint-stats div { min-width: 0; padding: 11px 7px 0; }
.fingerprint-stats div + div { border-left: 1px solid var(--line); }
.fingerprint-stats span { display: block; color: var(--dim); font-size: 7px; }
.fingerprint-stats strong { display: block; overflow: hidden; margin-top: 6px; font: 400 10px/1 var(--mono); text-overflow: ellipsis; white-space: nowrap; }

.method-section { padding: 105px 0 120px; }
.method-flow { display: grid; grid-template-columns: 1fr 70px 1fr 70px 1fr; align-items: center; }
.method-flow article { min-height: 240px; padding: 25px; border: 1px solid var(--line); background: rgba(12,12,16,.58); }
.method-flow article > em { color: var(--dim); font: 400 7px/1 var(--mono); font-style: normal; letter-spacing: .13em; }
.method-icon { width: 55px; height: 55px; margin: 35px 0 22px; border: 1px solid var(--line); display: grid; place-items: center; }
.method-flow h3 { margin: 0 0 8px; font-size: 13px; font-weight: 500; }
.method-flow p { margin: 0; color: var(--dim); font-size: 10px; line-height: 1.65; }
.flow-line { height: 1px; background: linear-gradient(90deg, var(--line), var(--cyan), var(--line)); }
.pulse-icon { width: 30px; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 12'%3E%3Cpath d='M0 7h7l3-5 4 9 4-6 3 2h9' fill='none' stroke='%235be7e2' stroke-width='1'/%3E%3C/svg%3E") center/contain no-repeat; }
.hex-icon { color: var(--violet); font: 300 25px/1 var(--mono); }
.bars-icon { height: 25px; display: flex; align-items: end; gap: 3px; }.bars-icon i { width: 3px; height: 12px; background: var(--acid); }.bars-icon i:nth-child(2){height:21px}.bars-icon i:nth-child(3){height:16px}.bars-icon i:nth-child(4){height:24px}.bars-icon i:nth-child(5){height:8px}

footer { position: relative; z-index: 2; min-height: 94px; padding: 0 max(28px, calc((100vw - 1320px)/2)); border-top: 1px solid var(--line); display: flex; align-items: center; gap: 25px; color: var(--dim); font: 400 8px/1.5 var(--mono); }
footer > span { color: var(--muted); letter-spacing: .1em; }
footer p { flex: 1; text-align: center; }
footer a { color: var(--muted); text-decoration: none; letter-spacing: .08em; }

@media (max-width: 980px) {
  .hero-stats { right: 20px; }
  .workspace, .result-grid, .details-grid { grid-template-columns: 1fr; }
  .control-panel, .monitor-panel { min-height: auto; }
  .idle-state, .error-state { min-height: 520px; }
  .method-flow { grid-template-columns: 1fr; gap: 10px; }
  .flow-line { width: 1px; height: 30px; margin: 0 auto; }
}

@media (max-width: 680px) {
  .topbar { height: 60px; padding: 0 16px; }
  .brand b, #apiState, .state-divider { display: none; }
  .shell { width: calc(100% - 24px); }
  .hero { min-height: 395px; padding: 70px 7px 50px; }
  .hero h1 { font-size: clamp(42px, 15vw, 68px); }
  .hero > p { width: 94%; font-size: 13px; }
  .hero-stats { display: none; }
  .hero::after { display: none; }
  .eyebrow { width: 100%; }
  .panel-heading { height: 62px; padding: 0 16px; }
  #scanForm, .running-state { padding: 18px 15px; }
  .privacy-badge { font-size: 7px; }
  .mode-switch { grid-template-columns: 1fr; }
  .scan-overview { gap: 16px; }
  .progress-orbit { width: 105px; height: 105px; }
  .progress-orbit span { top: 72px; }
  .scan-copy h3 { max-width: 50vw; font-size: 14px; }
  .scan-copy p { max-width: 50vw; }
  .probe-rail { grid-template-columns: repeat(2, 1fr); }
  .result-section, .method-section { padding-top: 70px; }
  .score-card, .telemetry-card, .findings-card, .fingerprint-card { padding-left: 18px; padding-right: 18px; }
  .section-rule em { display: none; }
  footer { padding: 25px 16px; flex-direction: column; gap: 12px; text-align: center; }
}

/* Extensible service navigation */
.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 18px;
}
.brand { min-width: 0; justify-self: start; }
.system-state { justify-self: end; }
.service-tabs {
  min-width: 0;
  padding: 3px;
  border: 1px solid #dfe3e6;
  border-radius: 7px;
  background: #f4f6f6;
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 3px;
  overflow-x: auto;
  scrollbar-width: none;
}
.service-tabs::-webkit-scrollbar { display: none; }
.service-tab {
  min-width: 76px;
  height: 28px;
  padding: 0 12px;
  border-radius: 4px;
  color: #737a82;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font: 500 9px/1 var(--mono);
  letter-spacing: .1em;
  text-decoration: none;
  transition: color .16s, background-color .16s, box-shadow .16s;
}
.service-tab:hover { color: #24312d; background: rgba(255,255,255,.8); }
.service-tab.is-active {
  color: #fff;
  background: #292b31;
  box-shadow: 0 1px 3px rgba(17, 19, 24, .18);
}
@media (max-width: 680px) {
  .topbar { grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
  .brand > span:last-child { display: none; }
  .service-tabs { width: 100%; justify-self: stretch; }
  .service-tab { min-width: 68px; padding: 0 9px; }
  .system-state { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* White observatory theme — aligned with llm.status.compare */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: rgba(255, 255, 255, .92);
  --surface-2: #f7f8f8;
  --line: #e4e6e9;
  --line-strong: #cfd3d8;
  --text: #111318;
  --muted: #747987;
  --dim: #9ba0aa;
  --acid: #20b889;
  --cyan: #159f91;
  --violet: #7167c8;
  --danger: #e95055;
  --warning: #d8940a;
}

html,
body { background: #fff; }
#fieldCanvas { opacity: .42; }
.noise { opacity: .014; mix-blend-mode: multiply; }
.topbar { background: rgba(255, 255, 255, .9); border-color: var(--line); }
.brand { color: var(--text); }
.brand b,
.system-state { color: var(--muted); }
.brand-mark { border-color: #bfc4ca; }
.brand-mark i { background: #bfc4ca; }
.brand-mark::after { background: var(--acid); box-shadow: 0 0 10px rgba(32,184,137,.45); }
.state-dot { box-shadow: 0 0 8px currentColor; }
.state-divider { background: var(--line-strong); }

.hero { border-color: #f0f1f2; }
.hero::before { background: radial-gradient(ellipse, rgba(32,184,137,.10), transparent 68%); }
.hero h1 span { -webkit-text-stroke: 1px rgba(17, 19, 24, .34); }
.hero > p { color: #666b76; }
.hero-stats div { border-color: #dfe2e5; }
.hero-stats strong { color: var(--text); }

.panel-corners {
  background: var(--surface);
  border-color: #dfe1e5;
  box-shadow: 0 8px 36px rgba(20, 26, 38, .045);
}
.panel-heading { border-color: #e9eaec; }
.panel-heading h2,
.field-label { color: #24272d; }
.input-shell { border-color: #dfe1e5; background: #fff; }
.input-shell:focus-within { border-color: rgba(32,184,137,.65); box-shadow: 0 0 0 3px rgba(32,184,137,.08); }
.input-shell input { color: var(--text); }
.input-shell input::placeholder { color: #a6aab2; }
.input-shell > svg,
.icon-button svg { stroke: #8f949e; }
.icon-button { border-color: #e4e6e9; }
.mode-switch span { border-color: #dfe1e5; background: #fafafa; }
.mode-switch small { color: #9398a2; }
.mode-switch input:checked + span { border-color: rgba(32,184,137,.6); background: #ecfaf5; box-shadow: inset 2px 0 0 var(--acid); }
.cost-notice { color: #8a6a28; background: #fff9eb; }
.scan-button { color: #fff; background: #24272d; border-color: #24272d; }
.scan-button:hover { background: #111318; filter: none; }
.scan-button:disabled { color: #8e939d; background: #eef0f2; border-color: #dfe1e5; }

.radar { border-color: #d9dde1; background: repeating-radial-gradient(circle, transparent 0 34px, rgba(17,19,24,.07) 35px 36px), radial-gradient(circle, rgba(21,159,145,.07), transparent 66%); }
.radar-axis { background: #dfe2e5; }
.radar-sweep { background: linear-gradient(35deg, transparent 45%, rgba(21,159,145,.18)); }
.idle-state p,
.error-state p { color: var(--muted); }
.orbit-track { stroke: #e3e5e7; }
.scan-copy h3 { color: var(--text); }
.scan-copy p { color: var(--muted); }
.probe-rail { background: #e3e5e7; border-color: #e3e5e7; }
.probe-rail div { background: #fff; }
.probe-rail div.active { background: #eefaf8; }
.probe-rail span { color: #696e78; }
.probe-rail em { color: #c7cbd0; }
.terminal { background: #fafbfb; border-color: #dfe1e5; }
.terminal-bar { border-color: #e4e6e9; }
.terminal-bar > span i { background: #cdd0d5; }
.terminal-log { color: #737884; }
.log-line time { color: #b0b4bb; }
.error-symbol { background: #fff; }
.error-state button { border-color: #cfd3d8; background: #fff; }

.score-card,
.telemetry-card,
.findings-card,
.fingerprint-card { background: #fff; }
.gauge-track { stroke: #e8eaec; }
.verdict-pill { background: #eaf8f3; }
.score-card.risk .verdict-pill { background: #fff0f1; }
.score-card.unknown .verdict-pill { background: #fff8e9; }
.telemetry-grid { border-color: #e3e5e7; }
.telemetry-grid div { border-color: #e3e5e7; }
.card-head,
.finding,
.fingerprint-stats { border-color: #e7e9eb; }
.finding > i { background: #f3fbf8; }
.finding.failed > i { background: #fff1f2; }
.plot-grid { stroke: rgba(17,19,24,.08); }
.reference-area { fill: rgba(113,103,200,.08); }
.fingerprint-stats div + div { border-color: #e4e6e9; }

.method-flow article { background: #fff; border-color: #dfe1e5; box-shadow: 0 4px 18px rgba(20,26,38,.03); }
.method-icon { border-color: #dfe1e5; background: #fafbfb; }
.flow-line { background: linear-gradient(90deg, #dfe2e5, var(--cyan), #dfe2e5); }
footer { border-color: #e4e6e9; background: #fafafa; }

/* Layout polish v2 */
.shell { width: min(1180px, calc(100% - 48px)); }
.topbar { height: 64px; padding: 0 max(24px, calc((100vw - 1180px)/2)); }
.brand { letter-spacing: .08em; }
.brand-mark { width: 25px; height: 25px; }

.hero {
  min-height: 365px;
  padding: 72px 0 54px;
  border: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero::after { right: -12px; bottom: 58px; }
.eyebrow { width: min(530px, 62%); }
.hero h1 { margin: 24px 0 18px; font-size: clamp(48px, 5.2vw, 70px); line-height: .98; letter-spacing: -.055em; }
.hero > p { width: min(570px, 62%); font-size: 14px; line-height: 1.8; }
.hero-stats { right: 38px; top: 92px; gap: 10px; }
.hero-stats div { width: 142px; min-width: 0; padding: 12px 14px; border: 1px solid #e1e4e7; border-radius: 8px; background: rgba(255,255,255,.72); }
.hero-stats span { margin-top: 6px; }

.workspace { grid-template-columns: minmax(390px, .78fr) minmax(530px, 1.22fr); gap: 18px; }
.panel-corners { border-radius: 12px; overflow: hidden; }
.panel-corners::before,
.panel-corners::after { display: none; }
.control-panel,
.monitor-panel { min-height: 700px; }
.panel-heading { height: 66px; padding: 0 22px; background: linear-gradient(180deg, #fff, #fcfcfd); }
.step-index { width: 26px; height: 26px; border-radius: 7px; background: #eaf8f3; display: inline-grid; place-items: center; font-size: 9px; }
.privacy-badge { padding: 6px 8px; border-radius: 99px; background: #eef9f5; color: #497566; }

#scanForm { padding: 23px 24px 25px; }
.field { margin-bottom: 17px; }
.input-shell { height: 50px; border-radius: 7px; }
.icon-button { border-radius: 0 7px 7px 0; }
.mode-field { margin-top: 21px; }
.mode-switch { gap: 9px; }
.mode-switch span { height: 74px; border-radius: 7px; }
.mode-switch input:checked + span { box-shadow: inset 0 0 0 1px rgba(32,184,137,.16); }
.scan-button { border-radius: 7px; }
.cost-notice { border-radius: 7px; }

.key-promise {
  margin: -5px 0 18px;
  padding: 11px 12px;
  border: 1px solid #cfeadd;
  border-radius: 8px;
  background: linear-gradient(135deg, #f0faf6, #fbfefd);
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 10px;
}
.key-promise-icon { width: 32px; height: 32px; border-radius: 8px; color: #168a68; background: #dff4eb; display: grid; place-items: center; }
.key-promise-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.key-promise > span:last-child { min-width: 0; }
.key-promise strong { display: block; color: #185c48; font-size: 11px; font-weight: 650; }
.key-promise small { display: block; margin-top: 4px; color: #628477; font-size: 9px; line-height: 1.55; }

.idle-state {
  min-height: 632px;
  padding: 48px;
  flex-direction: row;
  gap: clamp(35px, 6vw, 68px);
  text-align: left;
}
.idle-visual { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; }
.radar { width: 190px; height: 190px; box-shadow: 0 18px 45px rgba(25,92,74,.08); }
.radar-caption { margin-top: 16px; color: #89909a; font: 400 7px/1 var(--mono); letter-spacing: .14em; }
.radar-caption i { display: inline-block; width: 5px; height: 5px; margin-right: 7px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 7px var(--acid); }
.idle-copy { max-width: 310px; }
.idle-kicker { color: var(--acid); font: 500 8px/1 var(--mono); letter-spacing: .13em; }
.idle-state h3 { margin: 14px 0 9px; font-size: 22px; letter-spacing: -.02em; }
.idle-state p { max-width: none; font-size: 11px; line-height: 1.75; }
.idle-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 22px; }
.idle-checks span { min-height: 40px; padding: 8px 9px; border: 1px solid #e3e6e8; border-radius: 7px; color: #575d67; background: #fafbfb; display: flex; align-items: center; gap: 8px; font-size: 9px; line-height: 1.35; }
.idle-checks i { color: var(--acid); font: 500 7px/1 var(--mono); font-style: normal; }

.running-state { padding: 30px; }
.probe-rail { gap: 7px; padding: 7px; border-radius: 9px; background: #f1f3f4; border: 0; }
.probe-rail div { min-height: 58px; border: 1px solid #e2e5e7; border-radius: 7px; }
.probe-rail div.active { border-color: #a8dbcb; box-shadow: 0 0 0 2px rgba(32,184,137,.08); }
.terminal { overflow: hidden; border-radius: 9px; }

.result-section { padding-top: 86px; }
.score-card,
.telemetry-card { min-height: 300px; }
.details-grid { grid-template-columns: 1.08fr .92fr; gap: 18px; margin-top: 18px; }
.findings-card,
.fingerprint-card { min-height: 420px; }
.card-head { align-items: center; }
.card-head em { padding: 6px 8px; border-radius: 99px; background: #f2f4f4; }
.findings-list { max-height: 318px; padding-top: 14px; display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 9px; }
.finding {
  min-height: 72px;
  padding: 12px;
  border: 1px solid #e4e7e9;
  border-radius: 8px;
  background: linear-gradient(145deg, #fff, #fafbfb);
  grid-template-columns: 27px 1fr auto;
  gap: 9px;
}
.finding > i { width: 27px; height: 27px; border: 0; border-radius: 7px; font-size: 11px; }
.finding b { line-height: 1.45; }
.finding small { display: block; margin-top: 4px; letter-spacing: .06em; }
.finding em { align-self: start; padding: 4px 5px; border-radius: 4px; background: #eaf8f3; font-size: 7px; }
.finding.failed { border-color: #f0cdd0; background: linear-gradient(145deg, #fff, #fff8f8); }
.finding.failed em { background: #ffeaec; }
.finding:only-child { grid-column: 1 / -1; }

.method-section { padding: 94px 0 90px; }
.method-flow { grid-template-columns: 1fr 48px 1fr 48px 1fr; }
.method-flow article { min-width: 0; min-height: 350px; padding: 22px; border-radius: 10px; }
.method-card { display: flex; flex-direction: column; }
.method-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.method-card-head > em { color: var(--dim); font: 500 7px/1 var(--mono); font-style: normal; letter-spacing: .13em; }
.method-card-head > span { color: #779089; font: 500 7px/1 var(--mono); letter-spacing: .1em; }
.method-visual { min-height: 90px; margin: 18px 0 19px; padding: 13px; border: 1px solid #e3e8e6; border-radius: 9px; background: linear-gradient(135deg, #f7fbfa, #fbfbfd); display: grid; grid-template-columns: 54px minmax(0, 1fr); align-items: center; gap: 14px; overflow: hidden; }
.method-icon { width: 54px; height: 54px; margin: 0; border-radius: 9px; background: rgba(255,255,255,.82); }
.method-diagram { min-width: 0; }
.method-diagram > span { display: block; margin-bottom: 7px; color: #84908d; font: 500 6px/1 var(--mono); letter-spacing: .13em; }
.method-diagram svg { width: 100%; height: 30px; overflow: visible; }
.method-diagram svg * { vector-effect: non-scaling-stroke; }
.method-diagram > div { margin-top: 6px; display: flex; justify-content: space-between; gap: 5px; }
.method-diagram b { color: #98a19f; font: 500 5.5px/1 var(--mono); letter-spacing: .08em; }
.diagram-grid { fill: none; stroke: rgba(34,48,44,.075); stroke-width: 1; }
.diagram-line { fill: none; stroke: var(--cyan); stroke-width: 1.4; }
.observe-visual circle { fill: #fff; stroke: var(--cyan); stroke-width: 1.4; }
.verify-visual { background: linear-gradient(135deg, #f8f7fe, #fbfbfd); }
.verify-visual .diagram-link { fill: none; stroke: #9a8be1; stroke-width: 1.2; stroke-dasharray: 2 2; }
.verify-visual rect, .verify-visual circle { fill: #fff; stroke: #8272d4; stroke-width: 1.2; }
.compare-visual { background: linear-gradient(135deg, #f5fbf8, #fbfbfd); }
.compare-visual .diagram-area { fill: rgba(27,181,133,.09); stroke: none; }
.compare-visual .diagram-line { stroke: #1bb585; }
.method-card h3 { margin: 0 0 8px; font-size: 14px; font-weight: 650; letter-spacing: -.01em; }
.method-card > p { min-height: 48px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.method-signals { margin: 14px 0 17px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.method-signals li { padding: 5px 7px; border: 1px solid #e1e7e4; border-radius: 5px; color: #61716d; background: #f8faf9; font: 500 7px/1 var(--mono); white-space: nowrap; }
.method-result { margin-top: auto; padding-top: 12px; border-top: 1px solid #e7eae9; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.method-result span { color: #9aa3a1; font: 500 7px/1 var(--mono); letter-spacing: .08em; }
.method-result strong { color: #27332f; font-size: 9px; font-weight: 600; }

.credits-section { padding: 0 0 105px; }
.credits-intro { padding: 30px 32px; border: 1px solid #dfe3e6; border-radius: 12px 12px 0 0; background: linear-gradient(135deg, #f6fbf9, #fff 60%); display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.credits-intro span { color: var(--acid); font: 500 8px/1 var(--mono); letter-spacing: .13em; }
.credits-intro h3 { margin: 10px 0 0; font-size: 23px; font-weight: 600; letter-spacing: -.025em; }
.credits-intro p { max-width: 460px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.75; }
.credits-grid { display: grid; grid-template-columns: 1fr 1fr; border-left: 1px solid #dfe3e6; }
.credits-grid a { min-height: 118px; padding: 22px 23px; border-right: 1px solid #dfe3e6; border-bottom: 1px solid #dfe3e6; color: inherit; background: #fff; display: grid; grid-template-columns: 30px 1fr auto; align-items: start; gap: 12px; text-decoration: none; transition: background-color .18s, transform .18s; }
.credits-grid a:hover { position: relative; z-index: 1; background: #f7fbf9; transform: translateY(-2px); box-shadow: 0 10px 25px rgba(21,70,57,.06); }
.credit-index { width: 28px; height: 28px; border-radius: 7px; color: #177e61; background: #e6f6f0; display: grid; place-items: center; font: 500 8px/1 var(--mono); }
.credits-grid strong { display: block; font-size: 12px; font-weight: 650; }
.credits-grid p { margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.credits-grid em { color: #9ca1aa; font: 400 7px/1 var(--mono); font-style: normal; letter-spacing: .08em; }
.open-source-note { min-height: 66px; padding: 15px 22px; border: 1px solid #dfe3e6; border-top: 0; border-radius: 0 0 12px 12px; background: #fafbfb; display: flex; align-items: center; gap: 13px; }
.open-source-note svg { width: 22px; flex: 0 0 auto; fill: none; stroke: #6d737d; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.open-source-note p { margin: 0; color: #777d87; font-size: 10px; line-height: 1.6; }
.open-source-note strong { color: #3a3e45; }

footer { min-height: 82px; padding: 0 max(24px, calc((100vw - 1180px)/2)); }

@media (max-width: 980px) {
  .shell { width: min(100% - 32px, 760px); }
  .hero { min-height: 350px; }
  .hero-stats { right: 0; }
  .workspace { grid-template-columns: 1fr; }
  .control-panel,
  .monitor-panel { min-height: auto; }
  .idle-state { min-height: 520px; }
  .details-grid { grid-template-columns: 1fr; }
  .method-flow { grid-template-columns: 1fr; }
  .method-flow article { min-height: 0; }
  .method-card > p { min-height: 0; }
  .credits-intro { align-items: flex-start; flex-direction: column; gap: 15px; }
}

@media (max-width: 680px) {
  .shell { width: calc(100% - 24px); }
  .hero { min-height: 375px; padding: 55px 4px 45px; }
  .hero h1 { font-size: clamp(40px, 14vw, 58px); }
  .hero > p { width: 100%; }
  .panel-heading { padding: 0 15px; }
  #scanForm { padding: 18px 15px 20px; }
  .idle-state { min-height: 560px; padding: 38px 24px; flex-direction: column; gap: 28px; text-align: center; }
  .idle-copy { max-width: 330px; }
  .idle-checks { text-align: left; }
  .findings-list { grid-template-columns: 1fr; max-height: 430px; }
  .finding:only-child { grid-column: auto; }
  .credits-grid { grid-template-columns: 1fr; }
  .credits-intro { padding: 25px 21px; }
  .credits-intro h3 { font-size: 20px; }
  .credits-grid a { grid-template-columns: 30px 1fr; }
  .credits-grid em { display: none; }
  .method-section { padding-bottom: 75px; }
  .method-flow article { padding: 19px; }
  .method-visual { min-height: 84px; grid-template-columns: 48px minmax(0, 1fr); gap: 11px; padding: 11px; }
  .method-icon { width: 48px; height: 48px; }
  .method-signals { margin-bottom: 15px; }
  .credits-section { padding-bottom: 75px; }
}

/* Live service telemetry */
.stats-dashboard {
  margin: -20px 0 18px;
  border: 1px solid #dde3e1;
  border-radius: 13px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 18px 50px rgba(27,72,59,.055);
  overflow: hidden;
}
.stats-heading {
  min-height: 76px;
  padding: 18px 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #e4e8e7;
  background: linear-gradient(120deg, #f5fbf8, #fff 55%);
}
.stats-heading > div { display: flex; align-items: center; gap: 16px; }
.stats-heading h2 { margin: 0; color: #24292f; font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.stats-heading p { margin: 0; color: #8a9198; font: 400 9px/1.5 var(--mono); text-align: right; }
.live-pulse { display: inline-flex; align-items: center; gap: 7px; color: #168a68; font: 500 8px/1 var(--mono); letter-spacing: .11em; white-space: nowrap; }
.live-pulse i { width: 6px; height: 6px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 4px rgba(32,184,137,.1); animation: blink 1.8s ease-in-out infinite; }

.live-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid #e4e8e7; }
.live-stats-grid article { position: relative; min-height: 116px; padding: 22px 23px 18px; border-right: 1px solid #e4e8e7; }
.live-stats-grid article:last-child { border-right: 0; }
.live-stats-grid article::after { content: ""; position: absolute; left: 23px; bottom: 0; width: 28px; height: 2px; border-radius: 2px; background: var(--acid); opacity: .7; }
.live-stats-grid span { display: block; color: #737b83; font-size: 10px; }
.live-stats-grid strong { display: block; margin: 11px 0 9px; color: #18201d; font: 500 30px/1 var(--mono); letter-spacing: -.05em; }
.live-stats-grid small { color: #a4aaaf; font: 400 7px/1 var(--mono); letter-spacing: .14em; }

.stats-activity-grid { display: grid; grid-template-columns: 1.22fr .78fr; }
.activity-card { min-width: 0; padding: 20px 23px 23px; }
.activity-card + .activity-card { border-left: 1px solid #e4e8e7; }
.activity-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 13px; }
.activity-head span { color: #3b4147; font-size: 10px; font-weight: 600; }
.activity-head small { color: #a2a8ae; font: 400 7px/1 var(--mono); letter-spacing: .11em; }
.site-list { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.site-row { min-width: 0; min-height: 58px; padding: 10px 11px; border: 1px solid #e5e9e8; border-radius: 8px; background: #fbfcfc; display: grid; grid-template-columns: 7px minmax(0,1fr) auto; align-items: center; gap: 9px; }
.site-row > i { width: 6px; height: 6px; border-radius: 50%; background: #50c9a5; box-shadow: 0 0 0 3px #e8f8f3; }
.site-row > span { min-width: 0; }
.site-row strong { display: block; overflow: hidden; color: #32383d; font: 500 9px/1.35 var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.site-row small { display: block; overflow: hidden; margin-top: 5px; color: #969da3; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.site-row em { color: #4c7569; font: 400 8px/1 var(--mono); font-style: normal; white-space: nowrap; }
.model-list { display: grid; gap: 7px; }
.model-row { min-width: 0; display: grid; grid-template-columns: 20px minmax(0,1fr) 28px; align-items: center; gap: 9px; }
.model-row > span { color: #a1a7ad; font: 400 7px/1 var(--mono); }
.model-row > div { min-width: 0; }
.model-row strong { display: block; overflow: hidden; color: #4a5056; font: 500 8px/1.2 var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.model-row i { display: block; height: 3px; margin-top: 6px; border-radius: 9px; background: #edf0ef; overflow: hidden; }
.model-row b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #20b889, #73dabb); }
.model-row em { color: #687078; font: 400 8px/1 var(--mono); font-style: normal; text-align: right; }
.stats-empty { grid-column: 1 / -1; min-height: 58px; margin: 0; border: 1px dashed #dde3e1; border-radius: 8px; color: #a0a6ab; background: #fbfcfc; display: grid; place-items: center; font-size: 9px; }

@media (max-width: 980px) {
  .live-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .live-stats-grid article:nth-child(2) { border-right: 0; }
  .live-stats-grid article:nth-child(-n+2) { border-bottom: 1px solid #e4e8e7; }
  .stats-activity-grid { grid-template-columns: 1fr; }
  .activity-card + .activity-card { border-left: 0; border-top: 1px solid #e4e8e7; }
}

@media (max-width: 680px) {
  .stats-dashboard { margin-top: 0; }
  .stats-heading { align-items: flex-start; flex-direction: column; gap: 8px; padding: 17px; }
  .stats-heading > div { width: 100%; justify-content: space-between; }
  .stats-heading p { text-align: left; }
  .live-stats-grid article { min-height: 102px; padding: 18px 16px; }
  .live-stats-grid article::after { left: 16px; }
  .live-stats-grid strong { font-size: 25px; }
  .activity-card { padding: 18px 16px; }
  .site-list { grid-template-columns: 1fr; }
}

/* Result cache control */
.cache-option {
  min-height: 58px;
  margin: 14px 0 0;
  padding: 10px 11px;
  border: 1px solid #dfe5e3;
  border-radius: 8px;
  background: #fbfcfc;
  display: grid;
  grid-template-columns: 34px minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: border-color .18s, background-color .18s, box-shadow .18s;
}
.cache-option:has(input:checked) { border-color: #bfe5d8; background: #f3fbf8; box-shadow: inset 0 0 0 1px rgba(32,184,137,.05); }
.cache-option input { position: absolute; opacity: 0; pointer-events: none; }
.cache-switch { position: relative; width: 34px; height: 20px; border-radius: 99px; background: #d9dfdd; transition: background-color .18s; }
.cache-switch i { position: absolute; width: 14px; height: 14px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(25,45,39,.2); transition: transform .18s; }
.cache-option input:checked + .cache-switch { background: var(--acid); }
.cache-option input:checked + .cache-switch i { transform: translateX(14px); }
.cache-option input:focus-visible + .cache-switch { outline: 2px solid rgba(32,184,137,.28); outline-offset: 2px; }
.cache-copy { min-width: 0; }
.cache-copy strong { display: block; color: #35413d; font-size: 10px; font-weight: 650; }
.cache-copy small { display: block; margin-top: 4px; color: #87928e; font-size: 8px; line-height: 1.45; }
.cache-option em { padding: 5px 6px; border-radius: 5px; color: #168a68; background: #e3f6ef; font: 500 7px/1 var(--mono); font-style: normal; letter-spacing: .08em; white-space: nowrap; }
.cache-option + .cost-notice { margin-top: 9px; }

/* Plain monochrome telemetry lists */
.stats-activity-grid { background: #fff; }
.activity-card { padding: 0; }
.activity-card + .activity-card { border-left-color: #d8d8d8; }
.activity-head { min-height: 50px; margin: 0; padding: 0 20px; border-bottom: 1px solid #161616; }
.activity-head span { color: #080808; font-size: 10px; }
.activity-head small { color: #777; }
.site-list { display: block; padding: 0 20px 16px; }
.site-row {
  min-height: 54px;
  padding: 11px 0;
  border: 0;
  border-bottom: 1px solid #dedede;
  border-radius: 0;
  background: #fff;
  grid-template-columns: 8px minmax(0,1fr) auto;
  gap: 11px;
}
.site-row:last-child { border-bottom: 0; }
.site-row > i { width: 5px; height: 5px; border-radius: 0; background: #111; box-shadow: none; }
.site-row strong { color: #090909; font-size: 9px; font-weight: 500; }
.site-row small { color: #777; }
.site-row em { color: #111; font-weight: 500; }
.model-list { display: block; padding: 0 20px 16px; }
.model-row { min-height: 46px; border-bottom: 1px solid #dedede; grid-template-columns: 22px minmax(0,1fr) 32px; }
.model-row:last-child { border-bottom: 0; }
.model-row > span { color: #777; }
.model-row strong { color: #090909; font-size: 9px; }
.model-row i { height: 2px; background: #e7e7e7; }
.model-row b { background: #111; }
.model-row em { color: #111; font-weight: 500; }
.stats-empty { min-height: 66px; margin: 16px 20px; border: 1px solid #d8d8d8; border-radius: 0; color: #777; background: #fff; }

@media (max-width: 680px) {
  .activity-head { padding: 0 16px; }
  .site-list,
  .model-list { padding-left: 16px; padding-right: 16px; }
  .stats-empty { margin-left: 16px; margin-right: 16px; }
}
