/* Oracle Cloud Network Explorer — cartographic control room.
   Type: Space Grotesk (display+UI), IBM Plex Mono (data/code). */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-var.woff2") format("woff2-variations");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #07080d;
  --bg-2: #0c0f16;
  --panel: #0f141d;
  --panel-2: #141a26;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #eef1f6;
  --muted: #8d99ad;
  --accent: #f04e30;
  --accent-2: #ff8a3d;
  --accent-soft: rgba(240, 78, 48, 0.15);
  --cyan: #3ec3ff;
  --green: #3ddc97;
  --amber: #ffb02e;
  --radius: 12px;
  --font-ui: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  background:
    radial-gradient(1400px 700px at 80% -15%, rgba(240, 78, 48, 0.1), transparent 60%),
    radial-gradient(1000px 600px at 5% 5%, rgba(62, 195, 255, 0.06), transparent 55%),
    repeating-linear-gradient(0deg, transparent 0 79px, rgba(255, 255, 255, 0.016) 79px 80px),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(255, 255, 255, 0.016) 79px 80px),
    var(--bg);
  color: var(--text);
  font: 500 16px/1.55 var(--font-ui);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
code, .cidr { font-family: var(--mono); font-size: 0.9em; }
h1, h2, h3, h4 { line-height: 1.05; margin: 0; letter-spacing: -0.025em; font-weight: 650; }
p { margin: 0; }
::selection { background: rgba(240, 78, 48, 0.4); }

/* ---------- reveal motion ---------- */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity .55s cubic-bezier(.2, .7, .2, 1), transform .55s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i, 0) * 45ms);
}

/* ---------- header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 20px;
  padding: 13px clamp(16px, 4vw, 40px);
  background: rgba(7, 8, 13, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; font-size: 17px; }
.brand svg { display: block; }
.brand .sub { color: var(--muted); font-weight: 500; font-size: 12.5px; font-family: var(--mono); letter-spacing: 0.02em; }
.nav { display: flex; gap: 3px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  padding: 8px 14px; border-radius: 8px; color: var(--muted);
  font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: 0.12em; white-space: nowrap;
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav a.active { color: #ffb59f; background: var(--accent-soft); }
#feed-dot { flex: none; align-self: center; }

/* ---------- ticker ---------- */
.ticker {
  display: flex; gap: clamp(18px, 4vw, 48px); align-items: center;
  padding: 9px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
  font: 500 11.5px var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); overflow-x: auto; scrollbar-width: none; white-space: nowrap;
}
.ticker::-webkit-scrollbar { display: none; }
.ticker b { color: var(--text); font-weight: 700; margin-right: 7px; }
.ticker .tick-accent b { color: var(--accent-2); }

/* ---------- banner ---------- */
#banner[hidden] { display: none; }
#banner {
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  padding: 10px 16px; font-size: 13.5px;
  background: rgba(255, 176, 46, 0.1);
  border-bottom: 1px solid rgba(255, 176, 46, 0.3);
  color: #ffd9a0;
}

/* ---------- dots ---------- */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.dot-live { background: var(--green); box-shadow: 0 0 10px rgba(61, 220, 151, 0.9); }
.dot-snapshot { background: var(--amber); box-shadow: 0 0 10px rgba(255, 176, 46, 0.9); }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(430px, 540px) 1fr;
  min-height: 640px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.map-wrap { position: relative; min-height: 420px; }
.map-canvas { position: absolute; inset: 0; }
.map-tip {
  position: absolute; top: 0; left: 0; z-index: 5;
  background: rgba(10, 13, 19, 0.95);
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--accent);
  border-radius: 8px; padding: 9px 12px;
  font: 500 12.5px/1.45 var(--mono);
  pointer-events: none;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.55);
}
.map-tip span { color: var(--muted); }

.hero-panel {
  position: relative; z-index: 2;
  min-width: 0;
  margin: clamp(20px, 5vh, 56px) 0 clamp(20px, 5vh, 56px) clamp(16px, 3.5vw, 44px);
  padding: clamp(26px, 3.2vw, 42px);
  background: linear-gradient(165deg, rgba(15, 19, 28, 0.96), rgba(10, 13, 19, 0.92));
  border: 1px solid var(--line-2);
  border-radius: 18px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  align-self: center;
}
/* corner ticks — survey-marker motif */
.hero-panel::before, .hero-panel::after {
  content: ""; position: absolute; width: 18px; height: 18px; pointer-events: none;
}
.hero-panel::before { top: -1px; left: -1px; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); border-top-left-radius: 18px; }
.hero-panel::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent); border-bottom-right-radius: 18px; }

.eyebrow {
  font: 600 11.5px var(--mono); letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent-2); flex: none; }
.hero h1 {
  font-size: clamp(38px, 4.6vw, 60px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
}
.hero h1 em { font-style: normal; color: transparent; background: linear-gradient(100deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; }
.lede { color: var(--muted); margin: 18px 0 0; font-size: 16px; max-width: 44ch; }
.counters { display: flex; gap: clamp(20px, 3vw, 44px); margin: 30px 0 26px; }
.counter .num {
  display: block; font: 700 clamp(28px, 3.2vw, 42px)/1 var(--mono);
  font-variant-numeric: tabular-nums; letter-spacing: -0.03em;
}
.counter.addrs .num { color: transparent; background: linear-gradient(100deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; }
.counter label { display: block; margin-top: 7px; color: var(--muted); font: 600 10.5px var(--mono); text-transform: uppercase; letter-spacing: 0.18em; }
.hero-meta { margin-top: 18px; }

/* lookup form */
.lookup-form {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 12px; padding: 6px 6px 6px 14px;
  transition: border-color .15s, box-shadow .15s;
}
.lookup-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(240, 78, 48, 0.2), 0 0 30px rgba(240, 78, 48, 0.12); }
.lookup-icon { width: 17px; height: 17px; color: var(--muted); flex: none; }
.lookup-form input {
  flex: 1; min-width: 0; background: none; border: none; outline: none;
  color: var(--text); font: 500 15px var(--mono); padding: 9px 0;
}
.lookup-form input::placeholder { color: #525e72; }
.lookup-big input { font-size: 16px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 42px; padding: 9px 18px;
  background: var(--panel-2); color: var(--text);
  border: 1px solid var(--line-2); border-radius: 9px;
  font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.1em;
  cursor: pointer; white-space: nowrap;
  transition: transform .12s, background .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { background: #1b2333; border-color: rgba(255, 255, 255, 0.28); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(120deg, var(--accent), #d63e22);
  border-color: transparent; color: #fff;
  box-shadow: 0 6px 24px rgba(240, 78, 48, 0.35);
}
.btn-primary:hover { box-shadow: 0 8px 32px rgba(240, 78, 48, 0.5); background: linear-gradient(120deg, #ff5c3c, #e04428); }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: 11px; border-radius: 7px; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); border-color: transparent; box-shadow: none; transform: none; }
.btn[style*="--chip"] { border-left: 3px solid var(--chip); }

/* chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 99px;
  font: 600 10.5px var(--mono); text-transform: uppercase; letter-spacing: 0.08em;
  background: color-mix(in srgb, var(--chip, #8a94a6) 15%, transparent);
  color: var(--chip, #aeb8c8);
  border: 1px solid color-mix(in srgb, var(--chip, #8a94a6) 35%, transparent);
  white-space: nowrap;
}
.chip-realm { --chip: #8a94a6; }
.chip-sovereign { --chip: var(--amber); }
.chip-fresh { --chip: var(--muted); font-weight: 500; text-transform: none; letter-spacing: 0.03em; font-size: 11.5px; }
.chip-unknown { --chip: var(--muted); }

/* ---------- sections ---------- */
.section { padding: clamp(40px, 5.5vw, 72px) clamp(16px, 4vw, 40px); max-width: 1320px; margin: 0 auto; }
.section.page { min-height: 60vh; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-bottom: 26px;
}
.section-head h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 700; letter-spacing: -0.035em; }
.kicker { display: block; font: 600 11px var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 10px; }
.muted { color: var(--muted); font-size: 14px; }
.muted-sm { color: var(--muted); font-size: 12.5px; }
.note { color: var(--muted); font-size: 13.5px; margin-top: 18px; max-width: 74ch; }
.empty { color: var(--muted); padding: 30px 0; }

/* region grid */
.region-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
}
.region-card {
  display: block; padding: 20px; position: relative;
  background: linear-gradient(170deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .18s cubic-bezier(.2, .7, .2, 1), border-color .18s, box-shadow .18s;
  overflow: hidden;
}
.region-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0; transition: opacity .18s;
}
.region-card:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 78, 48, 0.5);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 40px rgba(240, 78, 48, 0.08);
}
.region-card:hover::before { opacity: 1; }
.rc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rc-head strong { font-size: 18.5px; letter-spacing: -0.02em; }
.rc-sub { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.rc-sub code { color: #6f7c93; }
.rc-addr { margin-top: 16px; font: 700 26px/1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.rc-addr span { display: block; margin-top: 5px; font: 600 10px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.16em; }
.rc-foot { margin-top: 13px; color: var(--muted); font: 500 11.5px var(--mono); letter-spacing: 0.04em; }

.minibar { display: flex; height: 5px; border-radius: 3px; overflow: hidden; margin-top: 12px; background: rgba(255, 255, 255, 0.07); }
.minibar span { display: block; height: 100%; }
.minibar-osn { position: relative; }
.minibar-osn i { position: absolute; left: 0; top: 0; bottom: 0; display: block; }

/* tag cards */
.tag-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.tag-card {
  padding: 24px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line);
  border-top: 3px solid var(--chip);
  transition: transform .18s, box-shadow .18s;
}
.tag-card:hover { transform: translateY(-3px); box-shadow: 0 16px 44px rgba(0, 0, 0, 0.4); }
.tag-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tag-card h3 { font-size: 18px; margin-bottom: 8px; }
.tag-card p { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }
.num-sm { font: 700 22px var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- controls ---------- */
.controls { display: flex; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.controls-wrap { align-items: center; }
.controls input[type="search"], .controls select, .compare-select {
  min-height: 44px; padding: 9px 14px;
  background: var(--bg-2); color: var(--text);
  border: 1px solid var(--line-2); border-radius: 9px;
  font: 500 13px var(--mono); outline: none;
}
.controls input[type="search"] { flex: 1; min-width: 180px; }
.controls input:focus, .controls select:focus, .compare-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(240, 78, 48, 0.15); }
.tag-toggles { display: flex; gap: 6px; }
.tag-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 7px 14px;
  border: 1px solid var(--line-2); border-radius: 9px;
  font: 600 11.5px var(--mono); text-transform: uppercase; letter-spacing: 0.08em;
  cursor: pointer; color: var(--muted);
  transition: all .15s;
}
.tag-toggle:has(input:checked) {
  color: var(--chip);
  border-color: color-mix(in srgb, var(--chip) 50%, transparent);
  background: color-mix(in srgb, var(--chip) 10%, transparent);
}
.tag-toggle input { accent-color: var(--chip); width: 15px; height: 15px; margin: 0; }

/* ---------- tables ---------- */
.panel {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; margin-top: 22px;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.panel-head h3, .panel h3 { font-size: 18px; letter-spacing: -0.02em; }
.panel h4 { font-size: 15px; margin-bottom: 10px; }
.copy-row { display: flex; gap: 7px; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; margin: 12px -6px 0; padding: 0 6px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th {
  text-align: left; color: var(--muted); font: 600 10.5px var(--mono);
  text-transform: uppercase; letter-spacing: 0.14em;
  padding: 10px 10px; border-bottom: 1px solid var(--line-2);
  position: sticky; top: 0; background: var(--panel);
}
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; font-family: var(--mono); font-size: 12.5px; }
.tbl td.tags, .tbl td:first-child { font-family: var(--font-ui); }
.tbl td:first-child code, .tbl .cidr { font-family: var(--mono); }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover { background: rgba(240, 78, 48, 0.045); }
.tbl .tags { display: flex; gap: 4px; flex-wrap: wrap; }
.num-cell { font-variant-numeric: tabular-nums; white-space: nowrap; }
.range-cell { color: var(--muted); white-space: nowrap; }
.cidr { color: #ffb59f; }

/* ---------- region detail ---------- */
.crumbs { display: flex; gap: 10px; color: var(--muted); font: 500 12px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 20px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--text); }
.region-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.region-hero h2 { font-size: clamp(36px, 4.6vw, 56px); font-weight: 700; letter-spacing: -0.045em; }
.region-hero-sub { color: var(--muted); margin-top: 9px; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: 14px; }
.stat-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); }
.stat {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 17px 19px;
  transition: transform .16s, border-color .16s;
}
.stat:hover { transform: translateY(-2px); border-color: var(--line-2); }
.stat label { display: block; color: var(--muted); font: 600 10px var(--mono); text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 8px; }
.stat .num { font: 700 26px/1.1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.num-sm2 { font-size: 17px !important; }
.stat-sub { display: block; color: var(--muted); font: 500 11.5px var(--mono); margin-top: 5px; }

.bigbar { display: flex; height: 30px; border-radius: 7px; overflow: hidden; margin-top: 18px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.bigbar span { display: block; height: 100%; transition: width .7s cubic-bezier(.2, .7, .2, 1); }
.bigbar-osn { position: relative; }
.bigbar-osn i { position: absolute; left: 0; top: 0; bottom: 0; display: block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.3); }
.bigbar-legend { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 14px; font: 500 12px var(--mono); color: var(--muted); }
.bigbar-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; }

.map-mini-wrap {
  height: 320px; margin-top: 22px; position: relative;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.region-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

/* ---------- compare ---------- */
.compare-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.compare-select { min-width: 240px; }
.vs { color: var(--accent-2); font: 700 12px var(--mono); text-transform: uppercase; letter-spacing: 0.16em; }
.compare-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.compare-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.compare-card h3 { font-size: 21px; margin-bottom: 16px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; letter-spacing: -0.02em; }
.compare-card h3 code { font-size: 12.5px; color: var(--muted); }
.compare-card .num { font: 700 34px/1 var(--mono); font-variant-numeric: tabular-nums; margin-top: 14px; letter-spacing: -0.02em; }
.compare-card label { display: block; margin-top: 6px; color: var(--muted); font: 600 10px var(--mono); text-transform: uppercase; letter-spacing: 0.14em; }
.compare-card .btn { margin-top: 18px; }
.compare-bar { height: 8px; background: rgba(255, 255, 255, 0.07); border-radius: 4px; overflow: hidden; }
.compare-bar span { display: block; height: 100%; background: linear-gradient(90deg, #c23a20, var(--accent), var(--accent-2)); border-radius: 4px; transition: width .7s cubic-bezier(.2, .7, .2, 1); }
.compare-mini { margin-top: 16px; }
.tbl-compare th:first-child { width: 40%; }
.tbl-compare td { font-size: 13px; }
.tbl-compare td.win { color: var(--accent-2); font-weight: 700; }

/* ---------- lookup ---------- */
.lookup-page .lookup-big { max-width: 760px; }
.lookup-result { margin-top: 24px; max-width: 1020px; }
.lookup-help p { color: var(--muted); max-width: 68ch; }
.examples { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.examples .btn { font-family: var(--mono); text-transform: none; letter-spacing: 0.02em; font-size: 13px; }
.verdict { padding: 19px 22px; border-radius: var(--radius); font-size: 15.5px; margin-bottom: 18px; border: 1px solid; position: relative; overflow: hidden; }
.verdict::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; }
.verdict code { font-size: 14.5px; }
.verdict a { text-decoration: underline; text-underline-offset: 3px; }
.verdict-in { background: rgba(61, 220, 151, 0.07); border-color: rgba(61, 220, 151, 0.35); }
.verdict-in::before { background: var(--green); }
.verdict-in strong { color: #8df0c6; }
.verdict-out { background: rgba(240, 78, 48, 0.07); border-color: rgba(240, 78, 48, 0.32); }
.verdict-out::before { background: var(--accent); }
.verdict-out strong { color: #ffa48d; }
.verdict-bad { background: rgba(255, 176, 46, 0.07); border-color: rgba(255, 176, 46, 0.35); }
.verdict-bad::before { background: var(--amber); }
.verdict-info { background: rgba(62, 195, 255, 0.07); border-color: rgba(62, 195, 255, 0.32); }
.verdict-info::before { background: var(--cyan); }
.match-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); margin-bottom: 18px; }
.match-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.match-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.match-head a:hover { text-decoration: underline; text-underline-offset: 3px; }
.match-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.match-row span { display: flex; gap: 4px; }
.lookup-columns { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); margin-bottom: 18px; }
.match-list { list-style: none; margin: 0; padding: 0; }
.match-list li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.match-list li:first-child { border-top: none; }

/* ---------- loading ---------- */
.hero-loading { display: flex; }
.loading-line { display: flex; align-items: center; gap: 11px; color: var(--muted); margin: 24px 0; font: 500 13px var(--mono); letter-spacing: 0.06em; }
.spinner {
  width: 16px; height: 16px; border-radius: 50%; flex: none;
  border: 2px solid rgba(255, 255, 255, 0.15); border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.skel { height: 15px; border-radius: 7px; margin-top: 13px; background: linear-gradient(90deg, rgba(255,255,255,.05) 25%, rgba(255,255,255,.11) 50%, rgba(255,255,255,.05) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skel-w60 { width: 60%; } .skel-w40 { width: 40%; }
@keyframes shimmer { to { background-position: -200% 0; } }

.notfound { text-align: center; padding: 54px 20px; }
.notfound h2 { margin-bottom: 10px; }
.notfound p { color: var(--muted); margin-bottom: 22px; }

/* ---------- footer ---------- */
footer.site {
  border-top: 1px solid var(--line);
  padding: 28px clamp(16px, 4vw, 40px);
  color: var(--muted); font: 500 12px var(--mono); letter-spacing: 0.03em;
  display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between;
}
footer.site a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: #171e2c; border: 1px solid var(--line-2); border-left: 3px solid var(--accent); color: var(--text);
  padding: 11px 19px; border-radius: 10px; font: 600 12.5px var(--mono); letter-spacing: 0.04em;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.55); z-index: 100;
  max-width: min(90vw, 480px); text-align: center;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- mobile ---------- */
.mobile-list { display: none; }

@media (max-width: 760px) {
  header.site { gap: 12px; padding: 11px 14px; }
  .brand .sub { display: none; }
  .hero { min-height: 0; padding: 14px; grid-template-columns: 1fr; }
  .map-wrap { display: none; }
  .hero-panel { margin: 0; max-width: none; padding: 22px; }
  .hero h1 { font-size: 32px; }
  .counters { gap: 18px; margin: 22px 0 20px; flex-wrap: wrap; }
  .counter .num { font-size: 24px; }
  .lookup-big { flex-wrap: wrap; }
  .lookup-form .btn { min-height: 44px; }
  .chip-fresh { white-space: normal; }
  .mobile-list {
    display: block; margin-top: 14px;
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    max-height: 340px; overflow-y: auto;
  }
  .mrow {
    display: grid; grid-template-columns: 1fr auto; grid-template-areas: "city addr" "key addr";
    padding: 11px 16px; border-bottom: 1px solid var(--line);
    min-height: 54px; align-items: center;
  }
  .mrow:last-child { border-bottom: none; }
  .mrow:active { background: rgba(255, 255, 255, 0.04); }
  .mrow-city { grid-area: city; font-weight: 650; font-size: 15.5px; }
  .mrow-key { grid-area: key; color: var(--muted); font: 500 11.5px var(--mono); }
  .mrow-addr { grid-area: addr; font: 700 15px var(--mono); font-variant-numeric: tabular-nums; }
  .region-grid { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .tbl { font-size: 12px; }
  .tbl td { font-size: 11.5px; }
  .range-cell { display: none; }
  .copy-row .btn { flex: 1 1 40%; }
  .compare-select { min-width: 0; flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
