:root {
  color-scheme: dark;
  font-family: "Inter", system-ui, sans-serif;
  color: #edf1ff;
  background: #101421;
  --muted: #abb5ce;
  --line: #343d57;
  --accent: #b4c5ff;
}
* { box-sizing: border-box; }
body { margin: 0; }
.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.bar { border-bottom: 1px solid var(--line); background: #141a2a; }
.bar .wrap, .intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.bar .wrap { min-height: 64px; }
.bar label { color: var(--muted); white-space: nowrap; }
input { accent-color: #9bb5ff; }
.intro { padding-top: 34px; }
h1 { margin: 0; font-size: clamp(1.8rem, 5vw, 2.65rem); letter-spacing: -.035em; }
h2 { margin: 0 0 16px; font-size: 1.2rem; }
h3 { margin: 0 0 8px; font-size: .95rem; color: var(--muted); }
p { color: var(--muted); line-height: 1.5; margin: 8px 0; }
button { background: #b4c5ff; color: #182146; border: 0; border-radius: 8px; padding: 11px 16px; font: inherit; font-weight: 700; cursor: pointer; }
button:disabled { opacity: .65; cursor: wait; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid #f5ce8d; outline-offset: 4px; }
#progress { min-height: 24px; margin: 8px 0; color: var(--muted); font-size: .9rem; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-bottom: 36px; }
section { padding: 20px; background: #191f32; border: 1px solid var(--line); border-radius: 12px; }
.wide { grid-column: 1 / -1; }
.test-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.test-panel button { margin-top: 6px; }
.routes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.routes > div { border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: #151a2a; }
.routes p, .source { font-size: .875rem; }
.ip, dd { overflow-wrap: anywhere; }
.ip, .score { font-variant-numeric: tabular-nums; }
.score { font-size: 2.25rem; font-weight: 750; color: var(--accent); }
meter { width: 100%; accent-color: var(--accent); }
details { color: var(--muted); margin: 12px 0; }
summary { cursor: pointer; }
dl { margin: 0; }
dl > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
dt { color: var(--muted); }
dd { margin: 0; text-align: right; }
.flagged { color: #ffcf9a; }
.clear { color: #a2edce; }
.geo-russia { color: #ff929f; }
.geo-unknown { color: #f6d481; }
.geo-clear { color: #a2edce; }
@media (max-width: 880px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 570px) {
  .wrap { width: calc(100% - 28px); }
  .intro { align-items: flex-start; flex-direction: column; gap: 8px; }
  .grid, .routes, .test-grid { grid-template-columns: 1fr; }
}
