@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/static/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/static/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --bg: #f3f6fb;
  --surface: #ffffff;
  --surface-2: #f1f4f9;
  --surface-3: #e8edf5;
  --line: #e1e7f0;
  --line-strong: #cbd5e3;
  --text: #0b1626;
  --text-2: #33445c;
  --muted: #64748b;
  --brand: #1a7fe6;
  --brand-ink: #0f63bd;
  --brand-soft: #e6f1fd;
  --teal: #13a89e;
  --amber: #e8920c;
  --ok: #0b8a5c;
  --ok-soft: #dff5eb;
  --warn: #b26a00;
  --warn-soft: #fff1d9;
  --bad: #c2352e;
  --bad-soft: #fde8e6;
  --info: #3b5bdb;
  --info-soft: #e8edff;
  --hero-a: #0b1626;
  --hero-b: #0f2f57;
  --hero-c: #1a5fa8;
  --edge: #b7c6da;
  --shadow: 0 1px 2px rgba(11, 22, 38, 0.05), 0 8px 24px -12px rgba(11, 22, 38, 0.18);
  --radius: 16px;
  --sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07101b;
    --surface: #0d1826;
    --surface-2: #122033;
    --surface-3: #18293f;
    --line: #1b2a3f;
    --line-strong: #2a3d57;
    --text: #e6edf7;
    --text-2: #b9c6d8;
    --muted: #8a9bb2;
    --brand: #4d9ef0;
    --brand-ink: #82bcf6;
    --brand-soft: #112e4d;
    --teal: #2cc2b6;
    --amber: #f5a83a;
    --ok: #3cc28d;
    --ok-soft: #0e3326;
    --warn: #f2b14c;
    --warn-soft: #3a2a0c;
    --bad: #f37b70;
    --bad-soft: #3d1614;
    --info: #8ca2ff;
    --info-soft: #1b2450;
    --hero-a: #040a12;
    --hero-b: #0a2240;
    --hero-c: #134a86;
    --edge: #33496a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px -14px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--sans); font-feature-settings: "tnum" 1; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.015em; }
img { max-width: 100%; }
.mono { font-family: var(--mono); font-size: 0.92em; letter-spacing: -0.01em; }
.strong { font-weight: 700; color: var(--text); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sub { display: block; font-size: 12.5px; color: var(--muted); font-weight: 500; overflow-wrap: anywhere; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.flag { width: 20px; height: 15px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); vertical-align: -2px; flex: none; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
main { min-height: 70vh; padding-bottom: 64px; }
.sec { margin-top: 26px; }
.sec.first { margin-top: 28px; }
.lift { margin-top: -38px; position: relative; z-index: 2; }

/* ---------- top bar ---------- */
.top { background: var(--hero-a); color: #e9f0fa; position: sticky; top: 0; z-index: 30; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.bar { display: flex; align-items: center; gap: 18px; height: 62px; }
.brand { display: flex; align-items: center; gap: 9px; color: #e9f0fa; text-decoration: none !important; flex: none; }
.brand .mark { display: inline-flex; color: #4d9ef0; }
.brand .mark svg { width: 30px; height: 21px; }
.brand .word { font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.brand .prod { font: 700 11px/1 var(--mono); letter-spacing: 0.08em; padding: 5px 7px; border-radius: 6px; background: rgba(77, 158, 240, 0.18); color: #8cc2f7; }
.top .search { flex: 1; max-width: 500px; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { color: #b6c4d8; font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 9px; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); text-decoration: none; }
.lang { display: flex; padding: 3px; gap: 2px; border-radius: 10px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.08); }
.lang a { font: 700 12px var(--mono); color: #8fa2bc; padding: 5px 8px; border-radius: 7px; }
.lang a.on { background: #e9f0fa; color: #0b1626; }
.lang a:hover { text-decoration: none; color: #fff; }
.lang a.on:hover { color: #0b1626; }

/* ---------- search ---------- */
.search { display: flex; align-items: center; position: relative; }
.search > .ico { position: absolute; left: 13px; color: #7f91a9; pointer-events: none; z-index: 1; }
.search input {
  width: 100%; height: 40px; padding: 0 14px 0 40px; border-radius: 11px; border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08); color: #e9f0fa; font: 500 14px var(--sans); outline: none;
}
.search input::placeholder { color: #7f91a9; }
.search input:focus { border-color: #4d9ef0; background: rgba(255, 255, 255, 0.12); }
.search.big { max-width: 720px; margin-top: 28px; }
.search.big input {
  height: 60px; font-size: 17px; padding-left: 52px; padding-right: 128px; border-radius: 18px;
  background: #fff; border: 1px solid transparent; color: #0b1626; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.55);
}
.search.big input::placeholder { color: #8391a7; }
.search.big input:focus { border-color: #4d9ef0; box-shadow: 0 0 0 5px rgba(77, 158, 240, 0.28); background: #fff; }
.search.big > .ico { left: 19px; width: 21px; height: 21px; color: #64748b; }
.search.big button {
  position: absolute; right: 8px; height: 44px; padding: 0 22px; border: 0; border-radius: 12px;
  background: var(--brand); color: #fff; font: 700 15px var(--sans); cursor: pointer;
}
.search.big button:hover { background: #0f63bd; }
.suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 50; background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 60px -20px rgba(11, 22, 38, 0.45); padding: 6px; max-height: 420px; overflow-y: auto;
}
.sg { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; color: var(--text); }
.sg:hover, .sg.on { background: var(--surface-2); text-decoration: none; }
.sg-k { font: 700 11px var(--mono); padding: 4px 6px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-ink); flex: none; }
.sg-m { display: flex; flex-direction: column; min-width: 0; }
.sg-t { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-s { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- heroes ---------- */
.hero-home, .hero-as {
  color: #eaf2fc;
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.09) 1px, transparent 0) 0 0 / 22px 22px,
    radial-gradient(1200px 400px at 85% -10%, rgba(77, 158, 240, 0.35), transparent 60%),
    linear-gradient(160deg, var(--hero-a) 0%, var(--hero-b) 55%, var(--hero-c) 130%);
}
.hero-home { padding: 64px 0 96px; }
.hero-in { max-width: 820px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 12px var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: #8cc2f7; }
.eyebrow .ico { width: 16px; height: 16px; }
.hero-home h1 { font-size: clamp(32px, 5.4vw, 54px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.06; margin-top: 14px; color: #fff; }
.hero-home .lead { font-size: 18px; color: #b8c8de; margin: 16px 0 0; max-width: 640px; }
.try { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; font-size: 14px; color: #8fa2bc; align-items: center; }
.try a {
  display: inline-flex; align-items: center; gap: 6px; font: 600 13px var(--mono); padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); color: #e6eefa;
}
.try a:hover { background: rgba(255, 255, 255, 0.14); text-decoration: none; }

.hero-as { padding: 22px 0 0; }
.hero-as .crumbs { display: flex; gap: 8px; font-size: 13px; color: #8fa2bc; flex-wrap: wrap; margin-bottom: 18px; }
.hero-as .crumbs a { color: #b6c4d8; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: center; padding-bottom: 66px; }
.hero-main h1 { font-size: clamp(28px, 4.4vw, 44px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-top: 8px; color: #fff; overflow-wrap: anywhere; }
.hero-main h1.mono { font-size: clamp(26px, 4.2vw, 40px); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); white-space: nowrap;
}
a.chip:hover { text-decoration: none; border-color: var(--brand); color: var(--brand-ink); }
.hero-main .chip, .hero-as .chip { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.14); color: #e3ecf8; }
.hero-as a.chip:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }
.chip-as { font-family: var(--mono); font-weight: 700; background: rgba(77, 158, 240, 0.22) !important; border-color: rgba(77, 158, 240, 0.45) !important; color: #cfe6ff !important; }
.chip-tag { color: #bfe9e3 !important; background: rgba(19, 168, 158, 0.16) !important; border-color: rgba(19, 168, 158, 0.35) !important; }
.chip-rpki { padding: 3px 4px !important; }
.handle { margin: 12px 0 0; color: #8fa2bc; font-size: 13px; }
.hero-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 8px 13px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); color: #e6eefa;
}
.btn-ghost .ico { width: 14px; height: 14px; opacity: 0.75; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.15); text-decoration: none; }
.ip-note { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: rgba(77, 158, 240, 0.18); color: #dcecff; font-size: 14px; margin-bottom: 14px; }
.hero-prefix .hero-main, .hero-simple .hero-main, .hero-country .hero-main { padding-bottom: 66px; }
.hero-simple .hero-main { padding-bottom: 58px; }
.flag-big .flag { width: 44px; height: 33px; border-radius: 6px; margin-right: 14px; vertical-align: -3px; }

.site-card { border-radius: 16px; overflow: hidden; background: #0f1d31; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.site-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: rgba(255, 255, 255, 0.06); }
.site-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); }
.site-bar span { margin-left: 8px; font: 500 12px var(--mono); color: #9fb2cc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-shot { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: #fff; }
.site-ph {
  aspect-ratio: 16 / 10; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; text-align: center;
  background: radial-gradient(400px 200px at 30% 20%, rgba(77, 158, 240, 0.35), transparent 60%), linear-gradient(135deg, #10233d, #0a1729);
}
.site-letter {
  width: 74px; height: 74px; border-radius: 22px; display: flex; align-items: center; justify-content: center; font: 800 36px var(--sans); color: #fff;
  background: linear-gradient(135deg, #4d9ef0, #13a89e); box-shadow: 0 14px 30px -12px rgba(77, 158, 240, 0.8);
}
.site-host { font: 600 13px var(--mono); color: #b8c8de; overflow-wrap: anywhere; }

.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-top: -40px; padding-bottom: 0; }
.tabs a {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 11px 16px; border-radius: 12px 12px 0 0;
  font-size: 14px; font-weight: 700; color: #b6c4d8;
}
.tabs a:hover { color: #fff; text-decoration: none; background: rgba(255, 255, 255, 0.06); }
.tabs a.on { background: var(--bg); color: var(--text); }
.tab-n { font: 700 11px var(--mono); padding: 2px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); color: inherit; }
.tabs a.on .tab-n { background: var(--brand-soft); color: var(--brand-ink); }
.hero-as:has(.tabs) .lift, .hero-as + .lift { margin-top: -38px; }
.hero-as:has(.tabs) + .lift { margin-top: 22px; }
.hero-as:has(.tabs) + .sec { margin-top: 22px; }

/* ---------- stats ---------- */
.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.stat {
  position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px 14px; box-shadow: var(--shadow); min-width: 0;
}
.stat-top { display: flex; align-items: center; gap: 10px; }
.stat-ic { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand-ink); }
.stat-ic .ico { width: 17px; height: 17px; }
.stat-l { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.stat-v { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; margin-top: 10px; }
.stat-s { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.stat-spark { margin-top: 10px; height: 34px; }
.stat-bar { margin-top: 12px; }
.spark { width: 100%; height: 34px; display: block; }
.spark-line { fill: none; stroke: var(--brand); stroke-width: 2; vector-effect: non-scaling-stroke; }
.spark-area { fill: var(--brand); opacity: 0.1; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; min-width: 0; box-shadow: var(--shadow); }
.card + .card, .stack-col > .card + .card, .ov-main > .card + .card, .ov-side > .card + .card { margin-top: 16px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-h h2 { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 750; }
.card-h h2 .ico { color: var(--brand); width: 19px; height: 19px; }
.card-r { display: flex; align-items: center; gap: 10px; }
.more { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.more .ico { width: 15px; height: 15px; }
.count { font: 700 12px var(--mono); padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.card-warn { border-color: color-mix(in srgb, var(--bad) 30%, var(--line)); }
.empty { color: var(--muted); margin: 4px 0; font-size: 14px; }
.summary { font-size: 15px; color: var(--text-2); margin: 0 0 16px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.grid-2-1 { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
.grid-2 > .card + .card, .grid-2-1 > .card + .card { margin-top: 0; }
.ov-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.sec-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 38px 0 0; }
.sec-title h2 { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 800; }
.sec-title h2 .flag { width: 28px; height: 21px; border-radius: 4px; }
.sec-title h2 .ico { width: 22px; height: 22px; color: var(--brand); }

/* ---------- lists ---------- */
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-list li { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.rank-list li:first-child { border-top: 0; padding-top: 2px; }
.rank-list .ascell { flex: 1; min-width: 0; }
.rank-list .ascell .strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-n { width: 30px; height: 30px; flex: none; border-radius: 9px; display: flex; align-items: center; justify-content: center; font: 800 13px var(--mono); background: var(--surface-2); color: var(--muted); }
.rank-list li:nth-child(-n+3) .rank-n { background: var(--brand-soft); color: var(--brand-ink); }
.rank-v { text-align: right; flex: none; }
.rank-v .strong { display: block; font-size: 15px; }
.ranks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ranks li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.rank-big { font: 800 24px var(--sans); letter-spacing: -0.03em; color: var(--brand-ink); min-width: 74px; }
.ranks .strong { display: block; font-size: 14px; }
.ix-list, .fac-list, .blocks { list-style: none; margin: 0; padding: 0; }
.ix-list li, .fac-list li, .blocks li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.ix-list li:first-child, .fac-list li:first-child, .blocks li:first-child { border-top: 0; }
.ix-list .sub { display: inline; flex: 1; }
.blocks .sub { display: inline; margin-left: auto; }
.pill { font: 600 12px var(--mono); padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.chips-wrap { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chips-wrap .chip, .issue .chip, .origins .chip { padding: 4px 9px; font-size: 12.5px; }

/* ---------- donut, legends, charts ---------- */
.donut-row { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 22px; align-items: center; }
.donut { width: 190px; height: 190px; display: block; }
.donut-track { fill: none; stroke: var(--surface-2); }
.donut-v { font: 800 30px var(--sans); fill: var(--text); letter-spacing: -0.03em; }
.donut-l { font: 600 12px var(--sans); fill: var(--muted); }
.donut-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.donut-legend li { display: flex; align-items: center; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); }
.donut-legend li:first-child { border-top: 0; }
.donut-legend .ascell { flex: 1; min-width: 0; }
.donut-legend .ascell .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot { width: 11px; height: 11px; border-radius: 4px; flex: none; display: inline-block; }
.c0 { background: #1a7fe6; } .c1 { background: #13a89e; } .c2 { background: #f0a020; } .c3 { background: #8b5cf6; }
.c4 { background: #e5484d; } .c5 { background: #2fb36d; } .c6 { background: #7c8ba1; } .c7 { background: #d6409f; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 4px 0 10px; font-size: 13px; color: var(--text-2); }
.lg { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.lg::before { content: ""; width: 14px; height: 4px; border-radius: 2px; background: var(--muted); }
.lg.s0::before, .lg.up::before { background: var(--brand); }
.lg.s1::before, .lg.peer::before { background: var(--teal); }
.lg.down::before { background: var(--amber); }
.lg.ok::before { background: var(--ok); height: 10px; width: 10px; border-radius: 3px; }
.lg.bad::before { background: var(--bad); height: 10px; width: 10px; border-radius: 3px; }
.lg.mute::before { background: var(--line-strong); height: 10px; width: 10px; border-radius: 3px; }
.lg b { font-family: var(--mono); }
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { font: 500 11px var(--sans); fill: var(--muted); }
.chart .line { fill: none; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.chart .line.s0 { stroke: var(--brand); } .chart .line.s1 { stroke: var(--teal); }
.chart .dot { stroke: var(--surface); stroke-width: 1.5; }
.chart .dot.s0 { fill: var(--brand); } .chart .dot.s1 { fill: var(--teal); }
.chart .dot-hide { opacity: 0; }
.chart .dot:hover { opacity: 1; r: 5; }

/* ---------- connectivity map, tree, propagation ---------- */
.cmap-wrap { overflow-x: auto; margin: 0 -6px; padding: 0 6px; }
.cmap { width: 100%; min-width: 720px; height: auto; display: block; }
.me { fill: none; stroke-linecap: round; opacity: 0.75; }
.me-up { stroke: var(--brand); } .me-up2 { stroke: var(--edge); } .me-peer { stroke: var(--teal); } .me-down { stroke: var(--amber); }
.mn rect { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.2; }
.mn text { text-anchor: middle; }
.mn-a { font: 700 13px var(--mono); fill: var(--text); }
.mn-s { font: 500 10.5px var(--sans); fill: var(--muted); }
.mn-up rect { stroke: color-mix(in srgb, var(--brand) 55%, var(--line)); }
.mn-up2 rect { fill: var(--surface-2); }
.mn-peer rect { stroke: color-mix(in srgb, var(--teal) 60%, var(--line)); }
.mn-down rect { stroke: color-mix(in srgb, var(--amber) 60%, var(--line)); }
.mn-more rect { fill: var(--surface-2); stroke-dasharray: 4 3; }
.mn-center rect { fill: var(--brand); stroke: var(--brand); }
.mn-center text { fill: #fff; }
a:hover .mn rect { stroke: var(--brand); stroke-width: 2; }

.prop-wrap { overflow-x: auto; margin: 0 -6px; padding: 0 6px; }
.prop { width: 100%; height: auto; display: block; }
.prop-big .prop { min-width: 820px; }
.pg-zone-o { fill: color-mix(in srgb, var(--ok) 9%, transparent); stroke: color-mix(in srgb, var(--ok) 30%, transparent); stroke-dasharray: 5 4; }
.pg-zone-t { fill: color-mix(in srgb, var(--brand) 9%, transparent); stroke: color-mix(in srgb, var(--brand) 30%, transparent); stroke-dasharray: 5 4; }
.pg-zl { font: 700 11px var(--sans); fill: var(--muted); text-anchor: middle; letter-spacing: 0.08em; text-transform: uppercase; }
.pe { fill: none; stroke: var(--edge); stroke-linecap: round; }
.pe-strong { stroke: var(--brand); }
.pe-weak { stroke-dasharray: 4 4; opacity: 0.8; }
.ah { fill: var(--edge); } .ah-strong { fill: var(--brand); }
.pn rect { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.2; }
.pn text { text-anchor: middle; }
.pn-a { font: 700 13px var(--mono); fill: var(--text); }
.pn-s { font: 500 10.5px var(--sans); fill: var(--muted); }
.pn-o rect { fill: var(--ok); stroke: var(--ok); } .pn-o text { fill: #fff; }
.pn-t1 rect { fill: var(--brand-soft); stroke: color-mix(in srgb, var(--brand) 55%, var(--line)); }
.pn-t1 .pn-a { fill: var(--brand-ink); }
a:hover .pn rect { stroke: var(--brand); stroke-width: 2; }
.fam-toggle { display: flex; gap: 4px; padding: 3px; border-radius: 10px; background: var(--surface-2); }
.fam-toggle a { font: 700 12px var(--mono); padding: 5px 10px; border-radius: 7px; color: var(--muted); }
.fam-toggle a.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.fam-toggle a:hover { text-decoration: none; }

/* ---------- health ---------- */
.rpki-bar { margin-bottom: 14px; }
.stack { width: 100%; height: 12px; display: block; border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.seg-ok { fill: var(--ok); } .seg-bad { fill: var(--bad); } .seg-mute { fill: var(--line-strong); }
.rpki-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: 13px; color: var(--text-2); }
.issue { border-left: 3px solid var(--line-strong); background: var(--surface-2); border-radius: 0 10px 10px 0; padding: 10px 12px; margin-top: 10px; }
.issue-t { font-weight: 700; font-size: 14px; }
.issue-items { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.issue.bad { border-color: var(--bad); background: var(--bad-soft); }
.issue.warn { border-color: var(--amber); background: var(--warn-soft); }
.issue.info { border-color: var(--info); background: var(--info-soft); }
.issue.ok { border-color: var(--ok); background: var(--ok-soft); }
.issue .chip { background: var(--surface); }

/* ---------- key-value ---------- */
.kv { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 9px 14px; margin: 0; font-size: 14px; }
.kv dt { color: var(--muted); font-weight: 500; }
.kv dd { margin: 0; overflow-wrap: anywhere; font-weight: 600; }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; max-height: 560px; overflow-y: auto; }
.tbl-wrap.tall { max-height: 760px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th {
  text-align: left; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted);
  padding: 9px 10px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); white-space: nowrap; z-index: 1;
}
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: var(--surface-2); }
.tbl th:first-child, .tbl td:first-child { padding-left: 0; }
.tbl th:last-child, .tbl td:last-child { padding-right: 0; }
.ascell { display: flex; flex-direction: column; min-width: 0; }
.ascell .strong { font-weight: 700; }
.vis { display: flex; align-items: center; gap: 10px; min-width: 130px; }
.vis span { font-size: 13px; font-weight: 700; min-width: 46px; text-align: right; font-variant-numeric: tabular-nums; }
.meter { width: 90px; height: 6px; display: block; flex: none; }
.stat-bar .meter { width: 100%; }
.bar-bg { fill: var(--surface-3); }
.bar-ok .bar-fg { fill: var(--ok); } .bar-warn .bar-fg { fill: var(--amber); } .bar-bad .bar-fg { fill: var(--bad); } .bar-brand .bar-fg { fill: var(--brand); }
.fam { display: flex; gap: 4px; }
.fam-t { font: 700 11px var(--mono); padding: 2px 6px; border-radius: 6px; background: var(--surface-2); color: var(--text-2); }
.cc { display: inline-flex; align-items: center; gap: 7px; font: 600 12.5px var(--mono); color: var(--text-2); }
.origins { display: flex; flex-wrap: wrap; gap: 4px; }
.num { font-variant-numeric: tabular-nums; }

/* badges */
.b { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.b-ok { background: var(--ok-soft); color: var(--ok); }
.b-bad { background: var(--bad-soft); color: var(--bad); }
.b-mute { background: var(--surface-2); color: var(--muted); }
.b-info { background: var(--info-soft); color: var(--info); }

/* filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.fchip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font-weight: 700; font-size: 14px; }
.fchip span { font: 700 11.5px var(--mono); padding: 1px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.fchip:hover { text-decoration: none; border-color: var(--brand); }
.fchip.on { background: var(--text); color: var(--surface); border-color: var(--text); }
.fchip.on span { background: rgba(255, 255, 255, 0.18); color: inherit; }

/* paths */
.paths { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.paths li { display: flex; align-items: center; gap: 4px; overflow-x: auto; padding: 2px 0 6px; }
.hop {
  display: inline-flex; flex-direction: column; align-items: center; padding: 6px 10px; border-radius: 10px; background: var(--surface-2);
  border: 1px solid var(--line); color: var(--text); white-space: nowrap; line-height: 1.25; flex: none;
}
.hop .mono { font-weight: 700; font-size: 13px; }
.hop-n { font-size: 10.5px; color: var(--muted); max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.hop.last { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.hop:hover { border-color: var(--brand); text-decoration: none; }
.arrow { color: var(--line-strong); display: inline-flex; }
.arrow .ico { width: 14px; height: 14px; }
.stack-col > .card { margin-top: 0; }
.stack-col > .card + .card { margin-top: 16px; }

/* countries */
.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.country-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--text); box-shadow: var(--shadow); }
.country-card:hover { text-decoration: none; border-color: var(--brand); }
.country-card .flag { width: 30px; height: 22px; border-radius: 4px; }
.country-card .ascell { flex: 1; }

/* prose */
.prose h2 { font-size: 18px; margin: 18px 0 8px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 20px; margin: 0; }
.prose li { margin: 7px 0; color: var(--text-2); }
.prose p { color: var(--text-2); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--surface); font-size: 13px; color: var(--muted); }
.foot-in { display: flex; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 26px; flex-wrap: wrap; }
.foot-in > div { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--text); }
.foot-brand .mark { color: var(--brand); display: inline-flex; }
.foot-brand .mark svg { width: 22px; height: 16px; }
.foot a { color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .ov-grid { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 280px; }
}
@media (max-width: 860px) {
  .grid-2, .grid-2-1 { grid-template-columns: 1fr; }
  .bar { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 10px 12px; }
  .top .search { order: 3; flex-basis: 100%; max-width: none; }
  .nav { margin-left: auto; }
  .nav a { padding: 6px 8px; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; padding-bottom: 60px; }
  .site-card { max-width: 420px; }
  .donut-row { grid-template-columns: 1fr; justify-items: center; }
  .donut-legend { width: 100%; }
  .kv { grid-template-columns: 120px minmax(0, 1fr); }
  .top { position: static; }
}
@media (max-width: 560px) {
  body { font-size: 14px; }
  .brand .word { display: none; }
  .nav a { font-size: 13px; padding: 6px 6px; }
  .hero-home { padding: 40px 0 84px; }
  .search.big input { padding-right: 16px; height: 54px; font-size: 16px; border-radius: 15px; }
  .search.big button { display: none; }
  .stat-v { font-size: 23px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 14px; }
  .card { padding: 15px; }
  .tbl-wrap { margin: 0 -15px; padding: 0 15px; }
  .rank-big { font-size: 20px; min-width: 60px; }
  .vis { min-width: 110px; }
  .meter { width: 60px; }
}
