:root {
  color-scheme: dark;
  --bg: #070b14;
  --surface: #0c1323;
  --surface-deep: #080e1a;
  --surface-raised: #111b2e;
  --line: rgba(255, 255, 255, .078);
  --line-bright: #26344d;
  --text: #f4f7fc;
  --muted: #a4b1c6;
  --muted-dim: #718199;
  --cyan: #59e1ff;
  --cyan-bright: #80e9ff;
  --violet: #a99bff;
  --green: #45d89b;
  --yellow: #ffd166;
  --red: #ff7185;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Avenir Next", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
::selection { background: rgba(89,225,255,.23); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.ambient-light, .grid-overlay { position: fixed; inset: 0; pointer-events: none; }
.ambient-light {
  background:
    radial-gradient(circle at 10% 12%, rgba(89,225,255,.105), transparent 27rem),
    radial-gradient(circle at 90% 18%, rgba(169,155,255,.10), transparent 29rem),
    radial-gradient(circle at 52% 88%, rgba(69,216,155,.045), transparent 34rem);
}
.grid-overlay {
  background-image: linear-gradient(rgba(124,151,189,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(124,151,189,.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, #000 4%, transparent 78%);
}

.shell { position: relative; width: min(100% - 32px, 1400px); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 30; padding-top: 12px; }
.header-bar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(9,14,26,.86);
  box-shadow: 0 16px 60px rgba(0,0,0,.28);
  backdrop-filter: blur(18px);
}
.brand { min-height: 44px; display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(89,225,255,.25);
  border-radius: 12px;
  background: rgba(89,225,255,.08);
  box-shadow: 0 0 24px rgba(89,225,255,.08);
}
.brand-mark::before, .brand-mark::after, .brand-mark span { content: ""; position: absolute; border-radius: 50%; }
.brand-mark::before { width: 22px; height: 22px; border: 1px solid var(--cyan); }
.brand-mark::after { width: 6px; height: 6px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.brand-mark span { width: 31px; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan)); transform: rotate(-32deg); transform-origin: center; opacity: .8; }
.brand-copy strong { display: block; font-size: 13px; letter-spacing: .16em; }
.brand-copy small { display: block; margin-top: 3px; color: #7d8ca5; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; letter-spacing: .18em; text-transform: uppercase; }
.year-chip { padding: 4px 8px; border: 1px solid rgba(169,155,255,.2); border-radius: 999px; background: rgba(169,155,255,.1); color: #c3baff; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.online { min-height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.025); color: #9aa8bd; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.online i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.source-link { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; background: rgba(255,255,255,.035); color: #bdc7d6; font-size: 12px; font-weight: 700; text-decoration: none; transition: border-color .2s ease, background .2s ease, color .2s ease; }
.source-link:hover { border-color: rgba(89,225,255,.25); background: rgba(89,225,255,.06); color: #fff; }
.code-icon { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }

main { padding: 44px 0 56px; }
.hero-grid { display: grid; align-items: center; gap: 34px; }
.hero-copy { position: relative; z-index: 2; padding: 8px 0; }
.eyebrow { width: fit-content; display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 12px; border: 1px solid rgba(89,225,255,.15); border-radius: 999px; background: rgba(89,225,255,.055); color: var(--cyan-bright); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.hero-copy h1 { max-width: 11ch; margin: 24px 0 0; color: #fff; font-size: clamp(44px, 7.25vw, 102px); font-weight: 680; letter-spacing: -.068em; line-height: .9; }
.hero-copy h1 span { background: linear-gradient(105deg, #f4f7fc 5%, #83e9ff 48%, #b5aaff 92%); background-clip: text; -webkit-background-clip: text; color: transparent; }
.hero-description { max-width: 590px; margin: 24px 0 0; color: var(--muted); font-size: clamp(15px, 1.5vw, 18px); line-height: 1.75; }
.signal-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.signal-pills span { min-height: 36px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.03); color: #aeb9ca; font-size: 12px; font-weight: 600; }

.scanner-panel {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(89,225,255,.15);
  border-radius: 26px;
  background: radial-gradient(circle at 88% 4%, rgba(89,225,255,.13), transparent 16rem), radial-gradient(circle at 18% 102%, rgba(169,155,255,.095), transparent 19rem), linear-gradient(145deg, rgba(14,23,41,.98), rgba(9,15,28,.98));
  box-shadow: inset 0 1px rgba(255,255,255,.055), 0 30px 90px rgba(0,0,0,.34), 0 0 0 1px rgba(89,225,255,.025);
}
.panel-grid { position: absolute; inset: 0; opacity: .65; background-image: radial-gradient(circle, rgba(89,225,255,.18) 1px, transparent 1px), linear-gradient(rgba(89,225,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(89,225,255,.025) 1px, transparent 1px); background-size: 24px 24px, 48px 48px, 48px 48px; mask-image: radial-gradient(circle at 82% 12%, #000, transparent 63%); pointer-events: none; }
.scope-radar { position: absolute; z-index: 0; right: -18px; top: -30px; width: 116px; aspect-ratio: 1; border: 1px solid rgba(89,225,255,.22); border-radius: 50%; opacity: .6; background: linear-gradient(90deg, transparent 49.4%, rgba(89,225,255,.13) 50%, transparent 50.6%), linear-gradient(transparent 49.4%, rgba(89,225,255,.13) 50%, transparent 50.6%), radial-gradient(circle, rgba(89,225,255,.08), transparent 67%); box-shadow: inset 0 0 32px rgba(89,225,255,.055), 0 0 42px rgba(89,225,255,.07); }
.scope-radar::before, .scope-radar::after { content: ""; position: absolute; inset: 20%; border: 1px solid rgba(89,225,255,.16); border-radius: 50%; }
.scope-radar::after { inset: 40%; }
.scope-radar i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.scope-radar i:nth-child(1) { left: 25%; top: 31%; }
.scope-radar i:nth-child(2) { right: 20%; top: 47%; background: var(--violet); box-shadow: 0 0 12px var(--violet); }
.scope-radar i:nth-child(3) { bottom: 17%; left: 47%; width: 4px; height: 4px; }
.scanner-content { position: relative; z-index: 2; }
.scanner-status { min-height: 49px; display: flex; align-items: center; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.07); }
.status-icon { width: 32px; height: 32px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid rgba(69,216,155,.2); border-radius: 8px; background: rgba(69,216,155,.1); color: #65e2ac; }
.scanner-status strong, .scanner-status small { display: block; }
.scanner-status strong { font-size: 12px; }
.scanner-status small { margin-top: 2px; color: #6f7f98; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; letter-spacing: .14em; }
.scanner-status code { margin-left: auto; margin-right: 80px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; background: rgba(0,0,0,.15); color: #71829c; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; }
.scanner-intro { max-width: 540px; margin-top: 28px; }
.scanner-intro > p { margin: 0; color: #8e9db2; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.scanner-intro h2 { margin: 8px 0 0; font-size: clamp(24px, 4vw, 28px); letter-spacing: -.035em; }
.scanner-intro > span { display: block; max-width: 460px; margin-top: 8px; color: #8998ae; font-size: 14px; line-height: 1.7; }
#scan-form { margin-top: 28px; }
.field-label { display: block; margin-bottom: 8px; color: #bdc8d8; font-size: 12px; font-weight: 700; }
.scan-row { display: grid; gap: 12px; }
.target-field { position: relative; display: block; min-width: 0; }
.globe-icon { position: absolute; left: 16px; top: 50%; z-index: 1; color: #71819a; font-size: 20px; transform: translateY(-50%); }
.target-field input { width: 100%; height: 56px; padding: 0 16px 0 48px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; outline: none; background: rgba(7,11,20,.8); color: #fff; box-shadow: inset 0 2px 8px rgba(0,0,0,.2); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; transition: border-color .18s ease, box-shadow .18s ease; }
.target-field input::placeholder { color: #4f5e75; }
.target-field input:focus { border-color: rgba(89,225,255,.45); box-shadow: 0 0 0 3px rgba(89,225,255,.1), inset 0 2px 8px rgba(0,0,0,.2); }
#scan-button { position: relative; overflow: hidden; min-width: 164px; height: 56px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 24px; border: 0; border-radius: 12px; background: linear-gradient(110deg, #63e5ff, #8cdcfb 45%, #b0a1ff); color: #06131a; box-shadow: 0 14px 38px rgba(89,225,255,.16), inset 0 1px rgba(255,255,255,.45); font-size: 14px; font-weight: 800; cursor: pointer; transition: transform .2s ease, filter .2s ease, opacity .2s ease; }
#scan-button:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.05); }
#scan-button:disabled { cursor: not-allowed; opacity: .4; }
#scan-button.loading .button-icon { animation: spin 1s linear infinite; }
.authorization { min-height: 50px; display: flex; align-items: flex-start; gap: 12px; margin-top: 14px; padding: 12px; border: 1px solid rgba(255,255,255,.065); border-radius: 12px; background: rgba(255,255,255,.025); color: #98a6ba; font-size: 12px; line-height: 1.65; cursor: pointer; }
.authorization:hover { border-color: rgba(255,255,255,.11); background: rgba(255,255,255,.04); }
.authorization input { width: 18px; height: 18px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--cyan); }
.error { margin: 14px 0 0; padding: 13px 15px; overflow-wrap: anywhere; border: 1px solid rgba(255,113,133,.25); border-radius: 12px; background: rgba(255,113,133,.075); color: #ff9bab; font-size: 13px; line-height: 1.6; }
.scan-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 19px; color: #65758e; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }

.capability-grid { display: grid; gap: 12px; margin-top: 28px; }
.metric-card { min-height: 128px; display: flex; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(12,19,35,.84); box-shadow: inset 0 1px rgba(255,255,255,.04), 0 18px 60px rgba(0,0,0,.18); }
.metric-icon { width: 40px; height: 40px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid; border-radius: 12px; font-weight: 800; }
.metric-card.cyan .metric-icon { border-color: rgba(89,225,255,.15); background: rgba(89,225,255,.07); color: var(--cyan-bright); }
.metric-card.violet .metric-icon { border-color: rgba(169,155,255,.15); background: rgba(169,155,255,.07); color: #bcb1ff; }
.metric-card.green .metric-icon { border-color: rgba(69,216,155,.15); background: rgba(69,216,155,.07); color: #65e2ac; }
.metric-card small { color: #687890; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; font-weight: 700; letter-spacing: .15em; }
.metric-card h2 { margin: 6px 0 0; font-size: 16px; }
.metric-card p { margin: 6px 0 0; color: #7f8fa6; font-size: 12px; line-height: 1.65; }

.empty-state, .report, .history-panel { margin-top: 28px; border: 1px solid var(--line); border-radius: 22px; background: rgba(12,19,35,.88); box-shadow: inset 0 1px rgba(255,255,255,.04), 0 18px 60px rgba(0,0,0,.18); }
.empty-state { min-height: 288px; display: grid; gap: 28px; align-items: center; padding: 20px; }
.empty-icon { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(169,155,255,.18); border-radius: 12px; background: rgba(169,155,255,.1); color: #bcb1ff; font-size: 20px; }
.empty-copy > p { margin: 20px 0 0; color: #6c7c94; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; font-weight: 700; letter-spacing: .16em; }
.empty-copy h2 { margin: 8px 0 0; font-size: clamp(20px, 3vw, 24px); letter-spacing: -.025em; }
.empty-copy > span:last-child { display: block; max-width: 540px; margin-top: 9px; color: #8190a7; font-size: 14px; line-height: 1.7; }
.preview-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.preview-grid > span { min-height: 105px; display: grid; grid-template-columns: 1fr auto; align-content: space-between; padding: 14px; border: 1px solid rgba(255,255,255,.065); border-radius: 12px; background: rgba(8,14,26,.75); }
.preview-grid i { color: #576881; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; font-style: normal; }
.preview-grid b { width: 6px; height: 6px; border-radius: 50%; background: #34445e; }
.preview-grid strong { grid-column: 1/-1; color: var(--muted); font-size: 12px; font-weight: 600; }
.loading-state { position: relative; min-height: 154px; overflow: hidden; display: flex; align-items: center; gap: 16px; }
.loading-state::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(89,225,255,.14), transparent); transform: translateX(-100%); animation: sweep 1.9s cubic-bezier(.2,.8,.2,1) infinite; pointer-events: none; }
.loading-icon { width: 52px; height: 52px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid rgba(89,225,255,.2); border-radius: 13px; background: rgba(89,225,255,.1); color: var(--cyan-bright); font-size: 22px; animation: pulse 1.8s ease-in-out infinite; }
.loading-copy { min-width: 0; flex: 1; }
.loading-copy h2 { margin: 0; overflow: hidden; color: #fff; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.loading-copy p { margin: 7px 0 0; color: #718199; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.loading-bar { height: 6px; margin-top: 13px; overflow: hidden; border-radius: 999px; background: #1b2940; }
.loading-bar i { display: block; width: 62%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--violet)); }

.report { overflow: hidden; }
.report-summary { display: grid; align-items: center; gap: 26px; padding: 22px; border-bottom: 1px solid rgba(255,255,255,.065); }
.score-ring { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.score-meter { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.score-meter circle { fill: none; stroke-width: 7; }
.score-meter .track { stroke: #1b2940; }
.score-meter .progress { stroke: var(--red); stroke-linecap: round; }
.score-ring.score-good .progress { stroke: var(--green); }
.score-ring.score-warn .progress { stroke: var(--yellow); }
.score-copy { position: relative; z-index: 1; text-align: center; }
.score-copy strong { display: block; color: #fff; font-size: 36px; letter-spacing: -.05em; }
.score-copy small { color: #74849c; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; letter-spacing: .15em; text-transform: uppercase; }
.report-copy { min-width: 0; }
.report-kicker { margin: 0; color: #6f8099; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; font-weight: 700; letter-spacing: .16em; }
.report-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; margin-top: 8px; }
.report-title-row h2 { min-width: 0; margin: 0; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: clamp(19px, 3vw, 24px); }
.report-copy > p:not(.report-kicker) { max-width: 720px; margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.report-copy .report-meta { color: #64748c !important; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px !important; letter-spacing: .12em; text-transform: uppercase; }
.report-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.report-stat { min-width: 0; padding: 12px 14px; border: 1px solid; border-radius: 12px; }
.report-stat.review { border-color: rgba(255,113,133,.14); background: rgba(255,113,133,.055); }
.report-stat.passed { border-color: rgba(69,216,155,.14); background: rgba(69,216,155,.05); }
.report-stat small { color: #8995a8; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.report-stat strong { display: block; margin-top: 4px; font-size: 24px; }
.grade { min-width: 74px; display: inline-flex; justify-content: center; padding: 5px 9px; border: 1px solid; border-radius: 7px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.grade-good { border-color: rgba(69,216,155,.2); background: rgba(69,216,155,.1); color: #65e2ac; }
.grade-warn { border-color: rgba(255,209,102,.2); background: rgba(255,209,102,.1); color: #ffdc84; }
.grade-bad { border-color: rgba(255,113,133,.2); background: rgba(255,113,133,.1); color: #ff93a4; }
.report-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 12px 18px 0; border-bottom: 1px solid var(--line); }
.report-tabs button { min-width: max-content; min-height: 44px; padding: 0 14px; border: 0; border-bottom: 2px solid transparent; background: none; color: #7c8aa0; font-size: 13px; cursor: pointer; }
.report-tabs button[aria-selected="true"] { border-bottom-color: var(--cyan); color: var(--cyan-bright); }
.report-body { padding: 18px; }
.tab-panel[hidden] { display: none; }
.findings { display: grid; gap: 12px; }
.finding { position: relative; overflow: hidden; display: grid; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(8,14,26,.72); }
.finding::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 2px; background: var(--yellow); box-shadow: 0 0 16px var(--yellow); }
.finding.pass::before { background: var(--green); box-shadow: 0 0 16px var(--green); }
.finding.info::before { background: var(--cyan); box-shadow: 0 0 16px var(--cyan); }
.finding.high::before { background: var(--red); box-shadow: 0 0 16px var(--red); }
.finding-icon { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid; border-radius: 12px; font-weight: 800; }
.finding.pass .finding-icon { border-color: rgba(69,216,155,.15); background: rgba(69,216,155,.07); color: #65e2ac; }
.finding.info .finding-icon { border-color: rgba(89,225,255,.15); background: rgba(89,225,255,.07); color: var(--cyan-bright); }
.finding.warn .finding-icon, .finding.fail .finding-icon { border-color: rgba(255,209,102,.15); background: rgba(255,209,102,.07); color: #ffdc84; }
.finding.high .finding-icon { border-color: rgba(255,113,133,.15); background: rgba(255,113,133,.07); color: #ff93a4; }
.finding h4 { display: inline; margin: 0; font-size: 14px; }
.finding-category { margin-left: 8px; color: #66768f; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }
.finding p { margin: 8px 0 0; overflow-wrap: anywhere; color: #8291a7; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; line-height: 1.7; }
.finding .recommendation { color: #a5b1c3; font-family: inherit; font-size: 12px; }
.finding-status { width: fit-content; padding: 4px 7px; border: 1px solid rgba(255,209,102,.15); border-radius: 6px; background: rgba(255,209,102,.07); color: #ffdc84; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.finding.pass .finding-status { border-color: rgba(69,216,155,.15); background: rgba(69,216,155,.07); color: #65e2ac; }
.finding.info .finding-status { border-color: rgba(89,225,255,.15); background: rgba(89,225,255,.07); color: var(--cyan-bright); }
.finding.high .finding-status { border-color: rgba(255,113,133,.15); background: rgba(255,113,133,.07); color: #ff93a4; }
.endpoints { display: grid; gap: 12px; }
.endpoint { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(8,14,26,.72); }
.endpoint header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.endpoint strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.endpoint p { margin: 10px 0 0; color: #77879f; font-size: 12px; line-height: 1.65; }
.endpoint-status { padding: 4px 7px; border: 1px solid var(--line); border-radius: 6px; color: #7b8aa1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; }
.endpoint-status.up { border-color: rgba(69,216,155,.2); background: rgba(69,216,155,.1); color: #65e2ac; }
.scope-note { padding: 18px; border: 1px solid rgba(89,225,255,.14); border-radius: 12px; background: rgba(89,225,255,.045); color: #95a4b9; font-size: 14px; line-height: 1.75; }
.scope-note strong { display: block; margin-bottom: 7px; color: #fff; }

.history-panel { overflow: hidden; }
.history-panel > header { min-height: 72px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 15px 20px; border-bottom: 1px solid rgba(255,255,255,.065); }
.history-icon { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(169,155,255,.18); border-radius: 9px; background: rgba(169,155,255,.1); color: #b8adff; }
.history-panel h2 { margin: 0; font-size: 14px; }
.history-panel header p { margin: 4px 0 0; color: #718199; font-size: 12px; }
.history-panel header code { color: #687890; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; letter-spacing: .15em; }
.history-empty { padding: 46px 20px; text-align: center; color: #77879f; }
.history-empty > span { font-size: 20px; }
.history-empty p { margin: 9px 0 0; font-size: 13px; }
.history-item { width: 100%; min-height: 72px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 14px 20px; border: 0; border-bottom: 1px solid rgba(255,255,255,.055); background: transparent; color: inherit; text-align: left; cursor: pointer; transition: background .2s ease; }
.history-item:last-child { border-bottom: 0; }
.history-item:hover { background: rgba(255,255,255,.025); }
.history-item strong { display: block; overflow: hidden; color: #fff; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.history-item small { display: block; margin-top: 5px; color: #718199; font-size: 11px; }
.history-score { display: none; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; text-align: center; }
.history-arrow { display: none; color: #53627a; font-size: 18px; }

footer { min-height: 78px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; justify-content: center; padding: 18px 0; border-top: 1px solid var(--line); color: #687890; font-size: 11px; line-height: 1.6; }
footer p { margin: 0; }
footer span { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; letter-spacing: .14em; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sweep { to { transform: translateX(100%); } }
@keyframes pulse { 50% { opacity: .48; transform: scale(.96); } }

@media (min-width: 640px) {
  .header-bar { padding-inline: 20px; }
  .scanner-panel { padding: 24px; }
  .scope-radar { right: 20px; top: 8px; }
  .scan-row { grid-template-columns: minmax(0,1fr) auto; }
  .empty-state { padding: 28px; }
  .finding { grid-template-columns: 40px minmax(0,1fr) auto; align-items: start; padding: 19px 20px 19px 22px; }
  .finding-status { grid-column: auto; }
  .report-summary { grid-template-columns: auto minmax(0,1fr); padding: 28px; }
  .report-stats { grid-column: 1/-1; }
  .report-body { padding: 28px; }
  .history-item { grid-template-columns: minmax(0,1fr) 96px 105px 20px; }
  .history-score, .history-arrow { display: block; }
  footer { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 768px) {
  .capability-grid { grid-template-columns: repeat(3, 1fr); }
  .empty-state { grid-template-columns: minmax(0,1fr) minmax(280px,.8fr); }
  .report-stats { grid-column: auto; grid-template-columns: 1fr; min-width: 170px; }
  .report-summary { grid-template-columns: auto minmax(0,1fr) auto; }
  .endpoints { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (min-width: 1180px) {
  main { padding-top: 62px; }
  .hero-grid { grid-template-columns: minmax(0,.92fr) minmax(520px,1.08fr); gap: 56px; }
  .scanner-panel { padding: 28px; }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 24px, 1400px); }
  .brand-copy small, .year-chip, .online, .source-copy { display: none; }
  .source-link { padding: 0 12px; }
  main { padding-top: 34px; }
  .hero-copy h1 { font-size: clamp(45px, 15vw, 69px); }
  .scanner-status code { display: none; }
  #scan-button { width: 100%; }
  .scan-meta { gap-x: 12px; }
  .history-panel header code { display: none; }
}

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