@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: #4f46e5;
  --ink-fg: #ffffff;
  --ok: #059669;
  --warn: #d97706;
  --bad: #dc2626;
  --s-dns: #a78bfa;
  --s-tcp: #38bdf8;
  --s-tls: #34d399;
  --s-fb: #fbbf24;
  --s-dl: #f472b6;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --ink: #818cf8;
  --ink-fg: #111133;
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
} }
:root[data-theme="dark"] {
  --ink: #818cf8;
  --ink-fg: #111133;
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #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); }

/* Reach Check. Same tokens as the other laplaceip.online tools; the accent is indigo. Timing segments: --s-dns … --s-dl. */

 }

body { background: var(--bg); color: var(--fg); font: 14px/1.5 var(--f-ui); -webkit-font-smoothing: antialiased; }
.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; }
#main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
a { color: var(--ink); }
button, input, select { font: inherit; color: inherit; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
select option { background-color: var(--panel); color: var(--fg); }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: baseline; gap: 8px; min-width: 0; overflow: hidden; text-decoration: none; color: var(--fg); }
.brand-name { font-size: 20px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
@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; } }
.brand { align-items: center; }
.brand-name { overflow: hidden; text-overflow: ellipsis; }
.top-acts { display: flex; gap: 8px; align-items: center; flex: none; }
.sel { position: relative; display: flex; align-items: center; height: 34px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); padding-left: 10px; }
.sel svg { width: 15px; height: 15px; color: var(--muted); 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; cursor: pointer; outline: none; }
#theme { cursor: pointer; padding: 0; }
#theme svg { display: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 480px) { .brand-name { font-size: 17px; } }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); color: var(--fg); flex: none; }
.gh svg { fill: currentColor; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: 12.5px; }
.foot a { color: inherit; }
/* On a phone the last line's link (GitHub) is index-finger-sized: the target grows to 32px while its line box stays 19px
   (tool contract, mobile: an independent link needs min-height and must look the same; links in a sentence are exempt). */
@media (pointer: coarse) {
  .foot { align-items: center; }
  .foot > a { display: inline-flex; align-items: center; min-height: 32px; margin-block: -6.5px; }
}
/* 1. what to check, and the answer under it in the same card */
.main { display: flex; flex-direction: column; }
.hero { padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.hero h1 { font-size: clamp(20px, 2.6vw, 26px); line-height: 1.25; letter-spacing: -.015em; }
.intro { color: var(--muted); font-size: 14px; max-width: 760px; }

.form { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.fld { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); min-width: 0; }
.fld input, .fld select { height: 40px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); padding: 0 12px; font-size: 16px; color: var(--fg); min-width: 0; width: 100%; }
.fld.grow { flex: 1 1 260px; }
.fld.port { flex: 0 0 132px; }
/* the port and its list of usual services */
.combo { position: relative; }
/* search fields: no clear button or rounded look of their own */
.fld input[type=search] { -webkit-appearance: none; appearance: none; }
.fld input[type=search]::-webkit-search-cancel-button, .fld input[type=search]::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.combo input { padding-right: 34px; }
.combo-btn { position: absolute; right: 2px; top: 2px; width: 32px; height: 36px; border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; padding: 0; }
.combo-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.combo-list { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; min-width: 100%; width: 240px; max-width: calc(100vw - 32px); max-height: 300px; overflow: auto;
  margin: 0; padding: 4px; list-style: none; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px #0002; }
.combo-list li { display: flex; align-items: baseline; gap: 12px; padding: 8px 10px; border-radius: 7px; cursor: pointer; font-size: 14px; color: var(--fg); }
.combo-list li b { font: 600 13.5px var(--f-num); min-width: 48px; }
.combo-list li span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.combo-list li:hover, .combo-list li[aria-selected="true"] { background: var(--soft); }
.fld.ipv { flex: 0 0 96px; }
.fld.proto { flex: 0 0 86px; }
.btn { height: 40px; padding: 0 18px; border: 0; border-radius: 9px; background: var(--ink); color: var(--ink-fg); font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn:disabled { opacity: .55; cursor: default; }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.sub { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; font-size: 12.5px; min-height: 19px; }
.link { background: none; border: 0; padding: 0; color: var(--ink); cursor: pointer; font: inherit; }
.quota { margin-left: 0; flex-basis: 100%; font-variant-numeric: tabular-nums; }

/* 2. the answer */
.verdict { padding: 18px 22px 20px; display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); }
.v-head { display: flex; align-items: center; gap: 10px; }
.v-head h2 { font-size: 21px; line-height: 1.3; min-width: 0; }
/* share and invite close the answer, under what they share */
.v-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.v-acts .btn { height: 36px; padding: 0 16px; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--line); flex: none; }
.dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); } .dot.bad { background: var(--bad); }
.v-sub { min-height: 21px; }
/* the numbers: three columns of a label over its result, split by thin rules; stacked on phones */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 12px 0 4px; }
.fact { display: flex; flex-direction: column; gap: 2px; padding: 2px 16px; border-left: 1px solid var(--line); min-width: 0; }
.fact:first-child { padding-left: 0; border-left: 0; }
.fl { font-size: 12.5px; color: var(--muted); }
.fv { font-size: 15px; }
.fv b { font-weight: 600; }
.fv b:not([class]), .fv b[class=""] { color: var(--muted); font-weight: 400; }
.fv .m { font-size: 13px; }
.fact .ok { color: var(--ok); } .fact .warn { color: var(--warn); } .fact .bad { color: var(--bad); }
.steps { margin: 6px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 7px; line-height: 1.55; }
.steps li::marker { color: var(--muted); }
.steps li b { font-weight: 600; }
.steps:empty { display: none; }
.more-steps summary { cursor: pointer; color: var(--ink); font-size: 13px; margin-top: 6px; width: fit-content; }
.xl { display: inline-flex; align-items: center; gap: 3px; color: var(--ink); text-decoration: none; }
.xl:hover { text-decoration: underline; }
.xl svg { width: 1em; height: 1em; flex: none; }
.dv { color: inherit; text-decoration: underline dotted; text-underline-offset: 2px; }

/* sections */
.sec { padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sec-h { display: flex; align-items: baseline; gap: 6px 12px; flex-wrap: wrap; }
.sec-h h3 { font-size: 15px; }
.sec-h .src { flex: 1; font-size: 12px; }
.sec-h .src a { color: inherit; }
.prog { font-variant-numeric: tabular-nums; font-size: 12.5px; }
.note { font-size: 12.5px; }
.foot p { margin: 0; }

.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend .seg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.s-dns { background: var(--s-dns); } .s-tcp { background: var(--s-tcp); } .s-tls { background: var(--s-tls); }
.s-fb { background: var(--s-fb); } .s-dl { background: var(--s-dl); }
.s-setup { background: color-mix(in srgb, var(--s-tcp) 45%, var(--muted)); }   /* this browser: DNS, TCP and TLS together */

/* 3. one line per region; its details open under it. Drawn up front with placeholders, filled as results arrive */
.regions { display: flex; flex-direction: column; }
.grp { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .04em; padding: 12px 0 2px; }
.grp:first-child { padding-top: 0; }
.rg { display: grid; grid-template-columns: 220px 14px minmax(0, 1fr) 70px; gap: 4px 12px; align-items: center; padding: 6px 4px; border-radius: 8px; min-height: 36px; font-size: 13.5px; }
.rg[data-row] { cursor: pointer; }
.rg[data-row]:hover, .rg.open { background: var(--soft); }
.rg-name { display: flex; align-items: center; gap: 4px; min-width: 0; line-height: 1.3; }   /* long names (ru, de) wrap rather than lose their end */
.chev { width: 14px; height: 14px; flex: none; color: var(--muted); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.rg.open .chev { transform: rotate(90deg); }
/* the status dot */
.sdot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); justify-self: center; }
.sdot.ok { background: var(--ok); } .sdot.warn { background: var(--warn); } .sdot.bad { background: var(--bad); }
.pill { justify-self: start; max-width: 100%; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rg.open .pill { background: var(--panel); }
.pill.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 13%, transparent); }
.pill.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.pill.bad { color: var(--bad); background: color-mix(in srgb, var(--bad) 13%, transparent); }
.pill.m { font-weight: 400; color: var(--muted); }
.rg-more .links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.bar { position: relative; display: flex; height: 8px; border-radius: 4px; background: var(--soft); overflow: hidden; }
.rg.open .bar { background: var(--panel); }
.bar i { display: block; height: 100%; min-width: 0; }
.bar i + i { box-shadow: inset 1px 0 0 var(--panel); }
/* past the scale: the bar fills it and fades out at its end */
.bar.over::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 28px; background: linear-gradient(to right, transparent, var(--panel)); }
.rg.open .bar.over::after { background: linear-gradient(to right, transparent, var(--soft)); }
.bar.fail { background: repeating-linear-gradient(-45deg, var(--line) 0 3px, transparent 3px 8px); opacity: .6; }
.rg-tot { text-align: right; font-family: var(--f-num); font-variant-numeric: tabular-nums; font-size: 13.5px; font-weight: 600; }
.rg-tot.wait { color: var(--muted); font-weight: 400; }
.rg-tot small { font-size: 12px; }
.rg-more { grid-column: 1 / -1; padding: 2px 0 6px 18px; display: flex; flex-direction: column; gap: 3px; font-size: 13px; cursor: default; }
.rg-more .ok { color: var(--ok); } .rg-more .warn { color: var(--warn); } .rg-more .bad { color: var(--bad); }
.segs { font-size: 12px; color: var(--muted); font-family: var(--f-num); }
.segs .hot { color: var(--bad); font-weight: 600; }
.trace { font-size: 12px; margin-left: 6px; font-family: var(--f-ui); }
@media (pointer: coarse) { .trace, .link, .xl { min-height: 32px; display: inline-flex; align-items: center; } }
/* the server row: what the service said, the certificate chain */
.sv-said { overflow-wrap: anywhere; }
.chain { margin: 2px 0 0; padding-left: 18px; font-size: 12.5px; display: flex; flex-direction: column; gap: 2px; }
.chain li { overflow-wrap: anywhere; }
/* UDP: the server alone, so no timing legend or probe source */
.udp .legend, .udp .sec-h .src, .udp .prog { display: none; }
.tr { margin: 4px 0 0; padding: 10px 12px; background: var(--panel); border-radius: 8px; font: 12px/1.45 var(--f-num); overflow-x: auto; white-space: pre; }
.blink { animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .45; } }
@media (max-width: 640px) {
  /* the form in three rows: the address; port, protocol and IP version; the button */
  .row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fld select { padding: 0 8px; }
  .row .fld { flex: none; }
  .fld.grow, .row #go { grid-column: 1 / -1; }
  .rg { grid-template-columns: minmax(0, 1fr) 14px 58px; }
  .rg .bar { grid-column: 1 / -1; grid-row: 2; margin-left: 18px; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .fact { flex-direction: row; align-items: baseline; gap: 12px; padding: 0; border: 0; }
  .fl { flex: 0 0 72px; }
  .sec-h .src { order: 3; flex-basis: 100%; }
  .v-sub { padding-left: 0; }
}

.st-ok { color: var(--ok); font-weight: 600; } .st-warn { color: var(--warn); font-weight: 600; } .st-bad { color: var(--bad); font-weight: 600; }
.mono { font-family: var(--f-num); font-size: 12.5px; }
.flag { border-left: 3px solid var(--warn); padding: 2px 0 2px 10px; font-size: 13px; }
.flag.bad { border-color: var(--bad); }

/* help dialog */
.scrim { position: fixed; inset: 0; z-index: 40; background: #0006; display: flex; align-items: center; justify-content: center; padding: 16px; }
.dialog { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); max-width: 100%; max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: 0 24px 64px #0004; }
.dlg-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--line); }
.dlg-h h2 { font-size: 16px; }
.dialog .icon-btn { cursor: pointer; padding: 0; }
.dialog .icon-btn svg, #helpBtn svg { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
#helpBtn { cursor: pointer; padding: 0; }
.dialog.help { width: 860px; height: min(560px, calc(100vh - 32px)); }
.help-b { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 0; flex: 1; }
.help-nav { border-right: 1px solid var(--line); padding: 8px; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.help-nav button { text-align: left; border: 0; background: none; padding: 9px 12px; border-radius: 8px; cursor: pointer; font-size: 13px; color: var(--muted); line-height: 1.4; }
.help-nav button:hover { background: var(--soft); color: var(--fg); }
.help-nav button[aria-selected="true"] { background: color-mix(in srgb, var(--ink) 14%, transparent); color: var(--fg); font-weight: 600; }
.help-c { padding: 18px 22px 24px; overflow: auto; }
.help-c h3 { margin: 0 0 10px; font-size: 17px; line-height: 1.35; }
.help-c p { font-size: 13.5px; line-height: 1.7; margin: 0 0 10px; }
.help-pick { display: none; gap: 8px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.help-pick select { flex: 1; min-width: 0; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--fg); font: 600 16px var(--f-ui); text-overflow: ellipsis; } /* 16px: iOS zooms into smaller fields */
.help-pick .icon-btn:disabled { opacity: .35; cursor: default; }
@media (max-width: 760px) {
  .dialog.help { height: calc(100vh - 32px); }
  .help-b { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .help-nav { display: none; }
  .help-b .help-pick { display: flex; }
}
#checkLink:empty { display: none; }

/* country and continent pages (scripts/build.mjs): breadcrumbs, the data blocks, the continent nav and the test rows */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: var(--fs-small); color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--fg); text-decoration: underline; }
.crumb-sep { color: var(--line); }
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.kpi b.t { font: 600 var(--fs-title)/1.25 var(--f-ui); }
.kpi b .hint { display: inline; margin-left: 1px; }
.rg-nav { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.rg-nav-h { display: flex; align-items: center; gap: 8px; padding: 10px 2px; font-size: var(--fs-caption); font-weight: 600; letter-spacing: .03em; color: var(--muted); }
.rg-nav-h span { display: inline-flex; }
.rg-nav-h svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.rg-nav details { border-bottom: 1px solid var(--line); }
.rg-nav summary { display: flex; justify-content: space-between; gap: 8px; padding: 11px 2px; cursor: pointer; font-weight: 600; font-size: var(--fs-small); }
.rg-nav-l { padding: 0 0 8px 12px; }

.rg-nav-l a[aria-current] { color: var(--ink); font-weight: 600; }
/* Country chips: one inline label per country, wrapping, no card grid (reference: dense-chips.webp). The chip is the
   link; flags and names only. */
.cc-grid, .rg-nav-l { display: flex; flex-wrap: wrap; gap: 8px; }
.cc, .rg-nav-l a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 10px; border: 0; border-radius: 8px; background: var(--soft); color: var(--fg); text-decoration: none; font-size: 14px; font-weight: 400; white-space: nowrap; min-width: 96px; justify-content: flex-start; }
.cc:hover, .rg-nav-l a:hover { background: color-mix(in srgb, var(--soft) 60%, var(--line)); color: var(--fg); }
.cc img { flex: none; border-radius: 2px; width: 16px; height: 12px; }
.cc-n { min-width: 0; }
.rows { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.rg-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 64px; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-ctl-sm); background: var(--soft); font-size: var(--fs-small); }
.rg-row .rg-ms { text-align: right; font-family: var(--f-num); font-variant-numeric: tabular-nums; font-size: var(--fs-caption); }
.rg-where { display: flex; align-items: center; gap: 7px; min-width: 0; overflow-wrap: anywhere; }
.rg-where img { flex: none; border-radius: 2px; width: 16px; height: 12px; }
@media (max-width: 640px) {
  .cc-grid, .rg-nav-l { gap: 6px; }
  .cc, .rg-nav-l a { min-height: 34px; min-width: 0; padding: 4px 8px; }
}

/* country filter: no request, the list narrows as you type; sticky on phones but only one row tall */
.rg-filter { display: flex; align-items: center; gap: 8px; }
.rg-filter input { flex: 1; min-width: 0; height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-ctl-sm); background: var(--panel); color: var(--fg); font-size: 16px; }
.rg-filter .m { flex: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rg-filter .link { flex: none; }
.rg-nores { margin-top: 8px; }
.city-list { display: flex; flex-wrap: wrap; gap: 6px 8px; font-size: var(--fs-small); }
.city-list span { display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 9px; border-radius: var(--r-chip); background: var(--soft); }
.city-list b { font: 600 var(--fs-micro) var(--f-num); color: var(--muted); font-variant-numeric: tabular-nums; }
.cc[hidden], .rg-nav-l a[hidden], .rg-nav details[hidden] { display: none !important; }
@media (max-width: 640px) {
  .rg-filter { position: sticky; top: 0; z-index: 20; background: var(--bg); padding: 6px 0; margin: -6px 0 0; }
}

/* home country index: continent chips on their own row, then the country chip flow */
.cont-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 2px; }
.cont-chips .cc { background: var(--panel); border: 1px solid var(--line); }
.country-index .rg-filter { margin-top: 2px; }

/* continent nav: every continent open, its title is a link to the continent page */
.rg-nav-g { border-bottom: 1px solid var(--line); padding: 6px 0 8px; }
.rg-nav-t { display: flex; align-items: center; gap: 7px; padding: 6px 2px; min-height: 32px; font-weight: 500; font-size: var(--fs-small); color: var(--fg); text-decoration: none; }
.rg-nav-t:hover { color: var(--ink); }
.rg-nav-t svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; }
.rg-nav-n { margin-right: auto; }

/* allowance: the button stays clickable so a tap can explain itself, but looks clearly unavailable */
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn[aria-disabled="true"]:hover { background: var(--ink); }
.quota.flash { color: var(--bad); animation: qflash .4s ease-in-out 3; }
@keyframes qflash { 50% { opacity: .35; } }

/* result rows: the probe's flag before its name (browser row keeps none) */
.rg-name .rf { flex: none; width: 16px; height: 12px; margin-right: 7px; border-radius: 2px; }
