@font-face{font-family:"Geist";font-style:normal;font-weight:400 700;font-display:swap;src:url(/assets/fonts/geist-cyrillic-ext.woff2) format("woff2");unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F}
@font-face{font-family:"Geist";font-style:normal;font-weight:400 700;font-display:swap;src:url(/assets/fonts/geist-cyrillic.woff2) format("woff2");unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:"Geist";font-style:normal;font-weight:400 700;font-display:swap;src:url(/assets/fonts/geist-vietnamese.woff2) format("woff2");unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB}
@font-face{font-family:"Geist";font-style:normal;font-weight:400 700;font-display:swap;src:url(/assets/fonts/geist-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Geist";font-style:normal;font-weight:400 700;font-display:swap;src:url(/assets/fonts/geist-latin.woff2) format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:"Geist Mono";font-style:normal;font-weight:400 600;font-display:swap;src:url(/assets/fonts/geist-mono-cyrillic-ext.woff2) format("woff2");unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F}
@font-face{font-family:"Geist Mono";font-style:normal;font-weight:400 600;font-display:swap;src:url(/assets/fonts/geist-mono-cyrillic.woff2) format("woff2");unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:"Geist Mono";font-style:normal;font-weight:400 600;font-display:swap;src:url(/assets/fonts/geist-mono-symbols2.woff2) format("woff2");unicode-range:U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F}
@font-face{font-family:"Geist Mono";font-style:normal;font-weight:400 600;font-display:swap;src:url(/assets/fonts/geist-mono-vietnamese.woff2) format("woff2");unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB}
@font-face{font-family:"Geist Mono";font-style:normal;font-weight:400 600;font-display:swap;src:url(/assets/fonts/geist-mono-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Geist Mono";font-style:normal;font-weight:400 600;font-display:swap;src:url(/assets/fonts/geist-mono-latin.woff2) format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

/* laplaceip.online base — the file every tool page starts from: tokens for both themes, the reset, the page column, the top bar, and
   the few components every tool shows (button, card, section title, key number, status pill, verdict, note, skeleton).
   A tool owns exactly one part of it: the ACCENT block, its --ink and any extra colors. Everything else is shared, so a
   page made by any laplaceip.online tool reads as the same site at a glance.
   This file lives at assets/design/base.css in 1ms-shell and is copied into each tool's src/base.css by
   `npm run design`; edit it here, never in a tool. Rules and the reasoning: docs/design.md. */
:root {
  /* surfaces and text: the same in every tool, light and dark */
  --bg: #f6f6f7; --panel: #ffffff; --soft: #f0f0f2; --line: #e4e4e8;
  --fg: #141416; --muted: #6e6e78;
  --shadow: #0000001c;
  /* type: ten sizes by role, nothing in between (docs/design.md §2) */
  --fs-micro: 11.5px;    /* units, axis labels, corner badges */
  --fs-caption: 12px;    /* secondary notes, table footnotes */
  --fs-small: 13px;      /* labels, secondary cells, the top bar */
  --fs-body: 14px;       /* running text, table cells — body's own size */
  --fs-title: 15px;      /* card and section titles (weight 700) */
  --fs-lead: 17px;       /* the verdict sentence, a result's main value */
  --fs-brand: 20px;      /* the tool's name in the top bar, nothing else */
  --fs-h1: clamp(20px, 2.6vw, 26px);
  --fs-num: clamp(22px, 2.8vw, 28px);       /* a key number in a tile or a row */
  --fs-num-lg: clamp(36px, 5vw, 52px);      /* the one number a running test turns on */
  /* radius: four steps by role, plus pills and circles */
  --r-chip: 6px;   /* badges, small blocks inside a block */
  --r-ctl-sm: 8px; /* a control 30px tall: a small button, the language picker */
  --r-ctl: 10px;   /* a control 36px tall and up: buttons, inputs, the top bar */
  --r: 12px;       /* cards and panels */
  --r-lg: 16px;    /* the first-screen block, a large result card */
  --r-pill: 999px;
  /* spacing: multiples of 4 (an inline gap may be 6) */
  --gap: 20px;           /* between the blocks of a page */
  --pad: 16px 20px;      /* inside a card */
  --f-ui: "Geist", "PingFang SC", "Microsoft YaHei", "Hiragino Sans", "Yu Gothic", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans", system-ui, sans-serif;
  --f-num: "Geist Mono", ui-monospace, "SF Mono", Consolas, monospace;
  /* this page has a dark theme (the media query below, and the switch's data-theme), so it says so: Safari's Adaptive
     Dark Mode only leaves a page alone when it declares dark support, and the browser draws scrollbars, form controls
     and the caret for the scheme declared here (2026-11-13, webkit.org/blog/18541) */
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #1c1c1c; --panel: #232323; --soft: #2a2a2a; --line: #363636;
  --fg: #ededed; --muted: #a0a0a0;
  --shadow: #00000080;
  color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #1c1c1c; --panel: #232323; --soft: #2a2a2a; --line: #363636;
  --fg: #ededed; --muted: #a0a0a0;
  --shadow: #00000080;
  color-scheme: only dark;
}
/* A theme picked in the switch changes the colors, never the declaration: the root keeps `light dark` in both themes.
   Anything that says "light alone" — plain `light`, and `only light` too — is read by Safari's Adaptive Dark Mode as a
   light-only page, and it converts the whole page into its own dark one; the decision is made once, when the page
   loads, so the same page came back light after the switch was tapped and dark after a reload (2026-11-13, iOS Safari,
   reported against the site; a `color-scheme: light dark` page is the one it leaves alone, webkit.org/blog/18541).
   `only dark` is safe on the dark theme: that page is already dark, so there is nothing to convert, and its scrollbars
   and controls are drawn dark. A page whose visitor picked light in a dark system gets the system's widgets instead —
   a lighter-looking scrollbar is a smaller price than a page turned into a browser-made dark one. */

/* ===== ACCENT: this tool's colors, the only part of this file it edits =====
   --ink is the accent; --t1…--t5 keep the site-wide meaning; add a tool color in here, never outside. */
:root {
  --ink: #b45309;
  --ok: #15803d;
  --warn: #b45309;
  --bad: #dc2626;
  --lat-1: #16a34a;
  --lat-2: #ca8a04;
  --lat-3: #ea580c;
  --lat-4: #dc2626;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --ink: #fbbf24;
  --ok: #4ade80;
  --warn: #fbbf24;
  --bad: #f87171;
  --lat-1: #4ade80;
  --lat-2: #facc15;
  --lat-3: #fb923c;
  --lat-4: #f87171;
} }
:root[data-theme="dark"] {
  --ink: #fbbf24;
  --ok: #4ade80;
  --warn: #fbbf24;
  --bad: #f87171;
  --lat-1: #4ade80;
  --lat-2: #facc15;
  --lat-3: #fb923c;
  --lat-4: #f87171;
}
/* ===== ACCENT ends ===== */

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
html { background: var(--bg); scrollbar-gutter: stable; }   /* reserve the scrollbar's space, so the page doesn't shift when one appears */
body { background: var(--bg); color: var(--fg); font: var(--fs-body)/1.5 var(--f-ui); -webkit-font-smoothing: antialiased; }
.app { max-width: 1080px; margin: 0 auto; padding-block: 20px 48px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: flex; flex-direction: column; gap: var(--gap); }
main { display: flex; flex-direction: column; gap: var(--gap); }
button, select { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.m { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg[viewBox="0 0 16 16"] { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* top bar: the page's own header (the site's bar above it is the shell's) */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; overflow: hidden; border-radius: var(--r-ctl); }
.logo { display: block; height: 32px; width: auto; flex: none; }
.logo img { display: block; height: 32px; width: auto; }
.brand-name { font-size: var(--fs-brand); font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
@media (max-width: 720px) { .brand-name { font-size: var(--fs-lead); } }
@media (max-width: 520px) { .brand-name { display: none; } .brand { flex: none; } }
.logo-dark { display: none !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none !important; } :root:not([data-theme="light"]) .logo-dark { display: block !important; } }
:root[data-theme="dark"] .logo-light { display: none !important; }
:root[data-theme="dark"] .logo-dark { display: block !important; }
.top-acts { display: flex; gap: 8px; align-items: center; }
.sel { position: relative; display: flex; align-items: center; height: 34px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--panel); padding-left: 10px; }
.sel svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
/* the open list is drawn by the OS: without its own colors it stays light in the dark theme */
select option, select optgroup { background-color: var(--panel); color: var(--fg); }
select option:checked { background-color: var(--soft); }
.sel select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; height: 100%; padding: 0 12px 0 7px; font-size: 16px; /* under 16px iOS zooms the page on tap */ cursor: pointer; outline: none; }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--panel); cursor: pointer; padding: 0; }
.icon-btn svg { width: 16px; height: 16px; }
/* the GitHub mark is a filled shape, unlike the stroked icons */
.gh svg { fill: currentColor; stroke: none; }
#theme svg { display: none; }
#theme[data-th="system"] .i-sys, #theme[data-th="light"] .i-light, #theme[data-th="dark"] .i-dark, #theme:not([data-th]) .i-sys { display: block; }

/* page heading: one h1 and at most one line under it.
   Class names here are deliberately not the short generic ones (.h1, .lead, .st, .dot, .note, .empty, .pad): a tool page
   that already uses such a name keeps its own rule for the properties it sets and silently inherits the rest from here —
   who's 18px status dot grew 9px of pill padding that way on 2026-11-12. What a page's own name cannot collide with, the
   shared file may own. */
.page-h { font-size: var(--fs-h1); font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
.page-sub { font-size: var(--fs-body); color: var(--muted); }
h2 { font-size: var(--fs-title); font-weight: 700; }

/* everything that answers a question about this page is a card; depth comes from --line and --soft, not from shadows */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.card-pad { padding: var(--pad); }

/* button: one shape in three weights. The primary is the tool's accent, and a page has at most one */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--panel); color: var(--fg);
  font-size: var(--fs-body); font-weight: 500; white-space: nowrap; cursor: pointer; }
.btn svg { width: 15px; height: 15px; }
.btn.pri { background: var(--ink); border-color: transparent; color: var(--ink-fg); font-weight: 600; }
.btn.ghost { border-color: transparent; background: none; }
.btn.sm { height: 30px; padding: 0 10px; border-radius: var(--r-ctl-sm); font-size: var(--fs-small); }
.btn:disabled { opacity: .5; cursor: default; }
@media (pointer: coarse) { .btn { height: 44px; } }

/* key numbers: a row of tiles, label under value, every figure in --f-num so columns line up */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 12px; }
.kpi { padding: 12px 14px; border-radius: var(--r); background: var(--soft); min-width: 0; }
.kpi b { display: block; font: 600 var(--fs-num)/1.15 var(--f-num); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.kpi span { display: block; margin-top: 4px; font-size: var(--fs-caption); color: var(--muted); }

/* the verdict: a colored dot and one sentence, the same shape on every tool and the first thing in the first screen */
.page-verdict { display: flex; align-items: center; gap: 10px; font-size: var(--fs-lead); font-weight: 600; line-height: 1.4; }
.page-verdict .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.page-verdict.ok .dot { background: var(--t1); } .page-verdict.warn .dot { background: var(--warn); } .page-verdict.bad .dot { background: var(--t5); }

/* a state in one word: the pill carries the color, the dot inside it repeats it */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: var(--r-pill);
  font-size: var(--fs-caption); font-weight: 600; background: var(--soft); color: var(--muted); white-space: nowrap; }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.pill.ok { color: var(--t1); background: color-mix(in srgb, var(--t1) 12%, transparent); }
.pill.warn { color: var(--warn); background: var(--warn-soft); }
.pill.bad { color: var(--t5); background: color-mix(in srgb, var(--t5) 12%, transparent); }

.hint { font-size: var(--fs-caption); color: var(--muted); line-height: 1.5; }
/* a value that has not arrived: same height as the text it will replace, so nothing below it moves. No min-width: the
   block that holds it says how wide, and a minimum of our own would push a narrow one wider than its space */
.skel { display: inline-block; height: 12px; max-width: 100%; border-radius: var(--r-chip);
  background: var(--soft); vertical-align: middle; animation: skel-blink 1.4s ease-in-out infinite; }
@keyframes skel-blink { 50% { opacity: .45; } }
/* nothing to show here yet, or nothing this source could tell: never dressed up as a result */
.blank { display: grid; place-items: center; min-height: 64px; padding: 12px; text-align: center; color: var(--muted); font-size: var(--fs-small); }

/* Global Ping. Theme variables are the platform's: the navigation bar follows them. */

html { scrollbar-gutter: stable; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.55 var(--f-ui); -webkit-text-size-adjust: 100%; }
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }
.m { color: var(--muted); font-weight: 400; }
.mono { font-family: var(--f-num); }
svg { display: block; }

.app { max-width: 1080px; margin: 0 auto; padding-block: 20px 40px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: flex; flex-direction: column; gap: 20px; }

/* header: same sizes and spacing as the other laplaceip.online tools (90×36 logo, 20px product name, 34px buttons) */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; color: var(--fg); }
.brand:hover { text-decoration: none; }
.logo-dark { display: none; }
html[data-theme="dark"] .logo-light { display: none; }
html[data-theme="dark"] .logo-dark { display: block; }
html[data-theme="light"] .logo-light { display: block; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .logo-light { display: none; } html:not([data-theme="light"]) .logo-dark { display: block; } }
.brand-name { font-size: 20px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.top-acts { display: flex; align-items: center; gap: 8px; flex: none; }
.icon-btn { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); color: var(--fg); cursor: pointer; padding: 0; }
.icon-btn:hover { background: var(--soft); }
.icon-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn.gh svg { fill: currentColor; stroke: none; }
#theme .i-light, #theme .i-dark { display: none; }
#theme[data-th="light"] .i-sys, #theme[data-th="light"] .i-dark { display: none; }
#theme[data-th="light"] .i-light { display: block; }
#theme[data-th="dark"] .i-sys, #theme[data-th="dark"] .i-light { display: none; }
#theme[data-th="dark"] .i-dark { display: block; }
.sel { position: relative; display: flex; align-items: center; height: 34px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); padding-left: 10px; color: var(--muted); }
.sel > svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; }
.sel select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; height: 100%; padding: 0 10px 0 6px; font-size: 16px; color: var(--fg); cursor: pointer; outline: none; }
.sel.sm select { height: 34px; font-size: 14px; padding: 0 24px 0 10px; background: var(--bg); }
select option, select optgroup { background-color: var(--panel); color: var(--fg); }

/* the two cards */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.main { display: flex; flex-direction: column; gap: 16px; }
.hero h1 { margin: 0 0 6px; font-size: clamp(22px, 4.4vw, 30px); line-height: 1.2; }
.intro { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.form .frow { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.fld { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 12px; }
.fld.grow { flex: 1 1 220px; min-width: 0; }
.fld input, .fld select { height: 44px; font-size: 16px; font-family: var(--f-ui); color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; width: 100%; }
.fld input:focus, .fld select:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.fld.ipv { flex: 0 0 auto; }
.fld.ipv select { width: auto; min-width: 84px; }
.btn { height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--fg); background: var(--fg); color: var(--bg); font: 600 15px var(--f-ui); cursor: pointer; white-space: nowrap; }
.btn:hover { opacity: .9; }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn.sm { height: 34px; padding: 0 14px; font-size: 14px; }
.sub { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 20px; margin-top: 8px; font-size: 13px; }
.warn { color: var(--warn); }
.quota { font-variant-numeric: tabular-nums; }

/* verdict */
.verdict { border-top: 1px solid var(--line); padding-top: 14px; }
.v-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.v-head h2 { margin: 0; font-size: 20px; line-height: 1.3; flex: 1 1 auto; }
.v-head .btn { margin-left: auto; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: 0 0 auto; }
.dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); } .dot.bad { background: var(--bad); }
.v-sub { margin: 6px 0 12px; font-size: 13px; min-height: 1.4em; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; min-height: 74px; }
.fact { border: 1px solid var(--line); border-radius: 11px; background: var(--bg); padding: 9px 12px; }
.fact span { display: block; color: var(--muted); font-size: 12px; }
.fact b { display: block; font-family: var(--f-num); font-size: 21px; font-variant-numeric: tabular-nums; line-height: 1.3; }
.fact b small { font-family: var(--f-ui); font-size: 12px; color: var(--muted); font-weight: 400; }
.fact i { display: block; font-style: normal; color: var(--muted); font-size: 12px; min-height: 1.2em; }
.findings { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.findings li { display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.findings li::before { content: "·"; color: var(--muted); }
.findings li a.ext { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.findings li a.ext svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.v-fallback { margin-top: 12px; }

/* the regions */
.sec { display: flex; flex-direction: column; gap: 10px; }
.sec-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sec-h h3 { margin: 0; font-size: 16px; }
.prog { font-size: 13px; font-variant-numeric: tabular-nums; min-height: 1.4em; }
.sec-h .sel.sm { margin-left: auto; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.seg { display: inline-block; width: 9px; height: 9px; border-radius: 2px; background: var(--ink); }
.seg.s-bar { background: linear-gradient(90deg, var(--lat-1), var(--lat-2), var(--lat-3), var(--lat-4)); }
.seg.s-miss { background: var(--soft); border: 1px dashed var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; }
.chip { border: 1px solid var(--line); background: var(--bg); color: var(--fg); border-radius: 999px; padding: 4px 11px; font: 13px var(--f-ui); cursor: pointer; }
.chip[aria-pressed="true"] { border-color: var(--fg); background: var(--fg); color: var(--bg); }
.chip:disabled { opacity: .5; cursor: default; }

.rows { display: flex; flex-direction: column; }
.grp { display: flex; flex-direction: column; }
.grp-h { margin: 14px 0 2px; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .01em; }
.grp:first-child .grp-h { margin-top: 0; }
.grp .row:first-of-type { border-top: 0; }
.row { display: grid; grid-template-columns: minmax(130px, 1.2fr) minmax(160px, 2fr) 74px 92px; grid-template-areas: "name bars med meta"; align-items: center; gap: 4px 12px; padding: 9px 4px; border-top: 1px solid var(--line); cursor: pointer; border-radius: 8px; }
.row:hover { background: var(--soft); }
.row:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.rows .row:first-child { border-top: 0; }
.rname { grid-area: name; display: inline-flex; align-items: center; gap: 7px; min-width: 0; font-size: 14px; }
.rname .st { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; background: var(--soft); }
.rname .st.ok { background: var(--ok); } .rname .st.warn { background: var(--warn); } .rname .st.bad { background: var(--bad); }
.rname .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rname .tag { color: var(--muted); font-size: 11px; border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; flex: 0 0 auto; }
.bars { grid-area: bars; display: grid; grid-template-columns: repeat(16, minmax(3px, 14px)); justify-content: start; gap: 3px; height: 28px; align-items: end; }
.bars:empty { height: 0; }
.bar { height: 28px; border-radius: 2px; background: var(--ink); transform-origin: bottom; transform: scaleY(var(--h, 0)); transition: transform .3s ease; }
.bar.b1 { background: var(--lat-1); }
.bar.b2 { background: var(--lat-2); }
.bar.b3 { background: var(--lat-3); }
.bar.b4 { background: var(--lat-4); }
.seg.b1 { background: var(--lat-1); }
.seg.b2 { background: var(--lat-2); }
.seg.b3 { background: var(--lat-3); }
.seg.b4 { background: var(--lat-4); }
.bar.miss { background: var(--soft); border: 1px dashed var(--line); transform: scaleY(.18); }
.bar.na { background: transparent; }
.med { grid-area: med; text-align: right; font-family: var(--f-num); font-variant-numeric: tabular-nums; font-size: 15px; }
.med small { font-family: var(--f-ui); color: var(--muted); font-size: 11px; }
.meta { grid-area: meta; text-align: right; font-family: var(--f-num); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.meta .bad { color: var(--bad); }
.detail { grid-column: 1 / -1; padding: 10px 4px 14px; border-top: 1px dashed var(--line); margin-top: 4px; }
.d-bars { display: grid; grid-template-columns: repeat(16, minmax(4px, 26px)); justify-content: start; gap: 3px; height: 64px; align-items: end; margin-bottom: 6px; }
.d-bars:empty { height: 0; margin: 0; }
.d-bars .bar { height: 64px; }
.d-tab { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; font-family: var(--f-num); }
.d-tab th, .d-tab td { text-align: left; padding: 3px 6px; border-bottom: 1px solid var(--line); }
.d-tab th { color: var(--muted); font-family: var(--f-ui); font-weight: 500; }
.d-tab td.miss { color: var(--bad); }
.d-line { margin: 8px 0 0; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.d-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 13px; }
.d-links a { display: inline-flex; align-items: center; gap: 3px; }
.d-links a svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.note { font-size: 13px; margin: 4px 0 0; }
.tip { position: fixed; z-index: 60; pointer-events: none; background: var(--fg); color: var(--bg); font-size: 12px; padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
.dv { text-decoration: underline dotted; }
.tokyo-sep { margin-top: 6px; border-top: 1px solid var(--line); }
.row.own .rname .nm { font-weight: 600; }

/* help */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.scrim[hidden] { display: none; }
.dialog { width: min(760px, 100%); max-height: min(86vh, 720px); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; }
.dlg-h { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--line); }
.dlg-h h2 { margin: 0; font-size: 16px; flex: 1; }
.help-b { display: grid; grid-template-columns: 240px 1fr; min-height: 0; flex: 1; }
.help-nav { display: flex; flex-direction: column; gap: 2px; padding: 10px; overflow: auto; border-right: 1px solid var(--line); }
.help-nav button { text-align: left; border: 0; background: transparent; color: var(--fg); font: 14px var(--f-ui); padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.help-nav button[aria-selected="true"] { background: var(--soft); font-weight: 600; }
.help-pick { display: none; }
.help-c { padding: 16px 20px; overflow: auto; font-size: 14px; }
.help-c article[hidden] { display: none; }
.help-c h3 { margin: 0 0 8px; font-size: 15px; }
.help-c p { margin: 0 0 8px; color: var(--fg); }
.help-c p + p { margin-top: 8px; }
@media (max-width: 720px) {
  .help-b { display: flex; flex-direction: column; }
  .help-nav { display: none; }
  .help-pick { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--line); }
  .help-pick select { flex: 1; height: 36px; font-size: 16px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--fg); padding: 0 8px; }
  .help-c { padding: 12px 14px; }
}

/* footer */
.foot { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; font-size: 13px; padding: 2px 4px; }
.foot p { margin: 0; }
.foot a { min-height: 32px; display: inline-flex; align-items: center; }

/* phones: one header row, two lines per region, everything tappable */
@media (max-width: 560px) {
  .top { flex-wrap: nowrap; gap: 5px; }
  .brand { gap: 5px; flex: 0 1 auto; min-width: 0; }
  .logo { width: auto; height: 22px; }
  .logo img { width: auto; height: 22px; }
  .brand-name { font-size: 17px; white-space: nowrap; }
  .top-acts { gap: 4px; flex: 0 0 auto; }
  .sel { height: 38px; padding-left: 0; }
  .sel > svg { display: none; }
  .sel select { height: 36px; font-size: 16px; padding: 0 10px; max-width: 104px; }
  .icon-btn { width: 34px; height: 34px; }
  .card { padding: 14px; border-radius: 12px; }
  .form .frow { gap: 8px; }
  .fld.grow { flex-basis: 100%; }
  .fld.ipv { flex: 1 1 90px; }
  #go { flex: 1 1 150px; }
  .row { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "name med meta" "bars bars bars"; gap: 5px 10px; padding: 9px 2px; }
  .med { font-size: 14px; }
  .bars { grid-template-columns: repeat(16, minmax(3px, 14px)); gap: 3px; height: 24px; }
  .bar { height: 24px; }
  .d-bars, .d-bars .bar { height: 52px; }
  .facts { gap: 6px; }
  .fact { padding: 7px 9px; }
  .fact b { font-size: 18px; }
  .findings { font-size: 13.5px; }
  .chips { gap: 5px; }
  .chip { padding: 6px 10px; }
  .d-tab { font-size: 12px; }
}
@media (max-width: 460px) {
  /* Russian "Глобальный пинг" and German "Globaler Ping" don't fit next to the language and icon buttons: put the
     controls on a second row instead of truncating the product name (the contract forbids cutting words). */
  .top { flex-wrap: wrap; }
  .brand { flex: 1 1 100%; gap: 6px; }
  .top-acts { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .bar { transition: none; }
}

/* country and continent pages: breadcrumbs, the static facts, the list of countries, the region navigation */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--fg); }
.crumbs span[aria-hidden] { color: var(--line); }
.page-facts { display: flex; flex-direction: column; gap: 12px; }
.route { margin: 0; color: var(--fg); font-size: 14px; line-height: 1.6; }
.rg-cities { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 4px 0 0; padding: 0; list-style: none; font-size: 14px; }
.rg-cities li { display: inline-flex; align-items: baseline; gap: 6px; }
.rg-cc, .rg-ccards { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.rg-cc { margin: 0; padding: 0 0 8px 12px; }
.rg-ccards { margin: 2px 0 4px; padding: 0; }
/* A country is a chip: flag and name, the whole chip the link. The lists read as a dense flow, not a card grid. */
.rg-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 10px; border-radius: 8px;
  background: var(--soft); color: var(--fg); font-size: 14px; font-weight: 400; white-space: nowrap; }
.rg-chip:hover { background: var(--line); text-decoration: none; }
@media (min-width: 720px) { .rg-chip { min-width: 96px; } }   /* about ten chips a row on a 1280 screen */
.rg-chip[aria-current="page"] { background: var(--line); }
.rg-flag { width: 16px; height: 12px; border-radius: 2px; object-fit: cover; flex: none; }
.xlink { display: flex; }
.xlink a { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; }
.xlink svg { width: 12px; height: 12px; }

/* the country filter above a list: names here, English names and codes, matched as you type */
.rg-filter { display: flex; flex-direction: column; gap: 6px; padding: 4px 0; position: sticky; top: 0; z-index: 15; }
.rg-filter-nav { background: var(--bg); }
.rg-filter-cards, .rg-filter-explore { background: var(--panel); }
.rg-frow { display: flex; align-items: center; gap: 8px; }
.rg-q { flex: 1; min-width: 0; height: 32px; font: 16px var(--f-ui); color: var(--fg); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; }
.rg-q:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.rg-q::-webkit-search-cancel-button, .rg-q::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.rg-count { flex: none; color: var(--muted); font: 12px var(--f-num); font-variant-numeric: tabular-nums; }
.rg-clear { flex: none; border: 0; background: none; color: var(--ink); font: 500 13px var(--f-ui); cursor: pointer; padding: 6px 2px; }
.rg-none { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
@media (max-width: 560px) {
  .rg-filter { padding: 6px 0; }
}

/* the home page's way into the country pages: six continent chips, then the same country chips */
.rg-cont-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rg-cont-chips .rg-chip .rg-ic { width: 16px; height: 16px; color: var(--muted); }

/* the bottom navigation: every continent, every country under it */
.region-nav { display: flex; flex-direction: column; gap: 8px; }
.region-nav h2 { margin: 0; font-size: 15px; }
.rg-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.rg-cont { display: flex; flex-direction: column; gap: 4px; padding: 0; }
.rg-cont-link { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 6px 2px; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--fg); font-size: var(--fs-small); font-weight: 500; }
.rg-cont-link:hover { background: var(--soft); text-decoration: none; }
.rg-cont-link[aria-current="page"] { background: var(--soft); }
.rg-ic { width: 16px; height: 16px; color: var(--muted); flex: none; }

/* the allowance is too low: the button is not disabled (it must take the click), but it looks and says off */
.btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn[aria-disabled="true"]:hover { opacity: .45; }
#quota.flash { color: var(--bad); animation: quota-flash .4s ease-in-out 3; }
@keyframes quota-flash { 50% { opacity: .3; } }
/* a partial result is neither good nor bad: the probes that answered are real, the rest simply did not return */
.dot.idle { background: var(--muted); }
