@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}

/* Global Ping. Theme variables are the platform's: the navigation bar follows them. */
:root {
  --bg: #f6f6f7; --fg: #17181a; --muted: #5f6673; --line: #e2e4e8; --soft: #eef0f3; --panel: #ffffff;
  --ink: #b45309; --ok: #15803d; --warn: #b45309; --bad: #dc2626;
  --lat-1: #16a34a; --lat-2: #ca8a04; --lat-3: #ea580c; --lat-4: #dc2626;
  --f-ui: Geist, "PingFang SC", "Microsoft YaHei", "Hiragino Sans", "Malgun Gothic", sans-serif;
  --f-num: "Geist Mono", Consolas, monospace;
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #121316; --fg: #ededee; --muted: #9aa1ad; --line: #2b2e34; --soft: #1b1d21; --panel: #191b1f;
  --ink: #fbbf24; --ok: #4ade80; --warn: #fbbf24; --bad: #f87171;
  --lat-1: #4ade80; --lat-2: #facc15; --lat-3: #fb923c; --lat-4: #f87171;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg: #121316; --fg: #ededee; --muted: #9aa1ad; --line: #2b2e34; --soft: #1b1d21; --panel: #191b1f;
    --ink: #fbbf24; --ok: #4ade80; --warn: #fbbf24; --bad: #f87171;
    --lat-1: #4ade80; --lat-2: #facc15; --lat-3: #fb923c; --lat-4: #f87171;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
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; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.m { color: var(--muted); font-weight: 400; }
.mono { font-family: var(--f-num); }
svg { display: block; }

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

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0 2px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 700; }
.brand:hover { text-decoration: none; }
.logo img { height: 30px; width: auto; }
.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: 16px; }
.top-acts { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 9px; background: transparent; color: var(--fg); cursor: pointer; padding: 0; }
.icon-btn:hover { background: var(--soft); }
.icon-btn svg { width: 18px; height: 18px; 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: inline-flex; align-items: center; color: var(--muted); }
.sel > svg { position: absolute; left: 10px; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.3; pointer-events: none; }
.sel select { appearance: none; -webkit-appearance: none; border: 1px solid var(--line); background: var(--panel); color: var(--fg); border-radius: 9px; height: 40px; padding: 0 26px 0 32px; font: 16px var(--f-ui); cursor: pointer; }
.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); }
select option:checked { background-color: var(--soft); }

/* 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 .row { 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:disabled { opacity: .5; cursor: default; }
.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-wrap: wrap; gap: 6px 14px; 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 img { height: 22px; }
  .brand-name { font-size: 13px; white-space: nowrap; }
  .top-acts { gap: 0; flex: 0 0 auto; }
  .sel > svg { display: none; }
  .sel select { height: 38px; font-size: 16px; padding: 0 18px 0 7px; max-width: 104px; }
  .icon-btn { width: 34px; height: 34px; }
  .card { padding: 14px; border-radius: 12px; }
  .form .row { 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: 420px) {
  /* 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; }
  .brand-name { font-size: 15px; white-space: nowrap; }
  .top-acts { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .bar { transition: none; }
}
