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

/* 1ms.dog 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 1ms.dog 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;
  color-scheme: light;
}
@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: dark;
}

/* ===== 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: #1d4ed8;
  --ok: #15803d;
  --warn: #b45309;
  --bad: #dc2626;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  ) {
    --bg: #121316;
  --ink: #7aa2ff;
  --ok: #4ade80;
  --warn: #fbbf24;
  --bad: #f87171;
  : };
} }
:root[data-theme="dark"] {
  --ink: #7aa2ff;
  --ok: #4ade80;
  --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; width: 90px; height: 36px; flex: none; }
.logo img { display: block; width: 90px; height: 36px; }
.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); }

/* DNS Records. 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; }
.ext { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.ext svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

.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 1ms.dog 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; }
/* Narrow screens: the four controls and the 90 px logo leave ~50 px for the name, which cuts 域名透视 and, worse,
   Рентген домена to a fragment. The logo alone is the brand there (the shell's bar above already says 1ms.dog); the
   link keeps the tool's name as its aria-label (page.html), so it is not just "1ms" to a screen reader. */
@media (max-width: 540px) {
  /* no name to clip, so nothing may overflow: flex: none keeps the 90 px logo from being squeezed into a 89.5 px box,
     which alone reads as a truncated brand */
  .brand { gap: 0; flex: none; overflow: visible; }
  .brand-name { display: none; }
}
.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; }
select option, select optgroup { background-color: var(--panel); color: var(--fg); }

/* 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; max-width: none; }
.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 260px; min-width: 0; }
.fld input { 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 { outline: 2px solid var(--ink); outline-offset: 1px; }
.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; }
.types { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; min-height: 32px; }
.types-h { color: var(--muted); font-size: 12px; margin-right: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; display: inline-flex; align-items: center; min-height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--muted); font: 600 13px var(--f-num); cursor: pointer; user-select: none; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip:has(input:checked), .chip.on { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.chip:focus-within { outline: 2px solid var(--ink); outline-offset: 1px; }
.hint { font-size: 12px; margin-left: auto; }
.sub { display: flex; flex-wrap: wrap; gap: 6px 14px; min-height: 20px; margin-top: 8px; font-size: 13px; }
.bad { color: var(--bad); }
.prog { font-variant-numeric: tabular-nums; }

/* verdict */
.verdict { border-top: 1px solid var(--line); padding-top: 14px; }
/* the share buttons arrive with the result; their height is reserved so the title row does not grow under it (CLS) */
.v-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; min-height: 34px; }
.v-head h2 { margin: 0; font-size: 20px; line-height: 1.3; flex: 1 1 auto; min-width: 0; }
.v-acts { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.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: 20px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; min-height: 80px; }
.fact { border: 1px solid var(--line); border-radius: 11px; background: var(--bg); padding: 9px 12px; min-width: 0; }
.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 i { display: block; font-style: normal; color: var(--muted); font-size: 12px; min-height: 19px; }
.findings { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; min-height: 75px; }   /* three lines are reserved: the last finding to be decided fills a place that already existed */
.findings li { display: flex; gap: 8px; align-items: baseline; }
.findings li.ph { color: var(--muted); }
.findings li::before { content: "·"; color: var(--muted); flex: none; }
.findings li.warn::before { color: var(--warn); }
.findings li.bad::before { color: var(--bad); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; min-height: 19px; }
.badge { display: inline-block; padding: 2px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--muted); font: 600 11px var(--f-num); }
.st.grade { font-family: var(--f-num); font-size: 13px; padding: 0 6px; border: 1px solid currentColor; border-radius: 6px; }
.st.grade:empty { display: none; }
.links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 0; font-size: 13px; }
.foot { font-size: 12px; margin: 0; }

/* section cards */
.sec { display: flex; flex-direction: column; gap: 10px; }
/* both slots exist from the first paint: mail and registration keep their place while their data is on the way */
#mailBody { min-height: 300px; }
#rdapBody { min-height: 176px; }
table.rec tr.ph td { color: var(--muted); }
/* a thin result (few types answered) must not pull the sections below it up by more than a row or two; an empty
   table (NXDOMAIN) has nothing to reserve and keeps its natural height */
@media (min-width: 761px) { #records .table-wrap:has(#recBody tr) { min-height: 180px; } }
.sec-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 30px; }
.sec-h h3 { margin: 0; font-size: 16px; }
.rec-count { font-size: 13px; font-variant-numeric: tabular-nums; }
.apex-note { font-size: 12px; color: var(--muted); }   /* "查的是 baidu.com": this block is about the zone, not the host */
.apex-at { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }   /* the name a zone-level row was asked of */
.note { font-size: 12px; margin: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table.rec { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 520px; }
table.rec th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--soft); white-space: nowrap; }
table.rec td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.rec tr:last-child td { border-bottom: 0; }
table.rec td.t { font: 600 12px var(--f-num); color: var(--muted); white-space: nowrap; }
table.rec td.v { font-family: var(--f-num); overflow-wrap: anywhere; }
table.rec td.v a { color: inherit; text-decoration: underline dashed; text-underline-offset: 2px; }
table.rec td.n { font-family: var(--f-num); white-space: nowrap; color: var(--muted); }
table.rec td.f { font-family: var(--f-num); white-space: nowrap; color: var(--muted); }
.v-meta { display: none; }

/* propagation */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.tab { min-height: 30px; padding: 0 10px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--muted); font: 600 12px var(--f-num); cursor: pointer; }
.tab:hover { background: var(--soft); }
.tab[aria-selected="true"] { background: var(--soft); border-color: var(--line); color: var(--fg); }
.tab[aria-selected="true"] .tab-n { color: var(--fg); }
.tab-n { color: var(--muted); font-weight: 400; }
.prop-sum { margin-left: auto; font-size: 13px; font-variant-numeric: tabular-nums; }
.prop-hint { margin: 0; font-size: 12px; }
.prop-rows { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pr { display: grid; grid-template-columns: 150px 92px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.pr:last-child { border-bottom: 0; }
.pr-name { font-weight: 600; overflow-wrap: anywhere; }
.pr-name i { display: block; font-style: normal; font-weight: 400; color: var(--muted); font-size: 11px; }
.pr-state { font-size: 12px; font-weight: 600; }
.pr-state.ok { color: var(--ok); }
.pr-state.diff { color: var(--warn); }
.pr-state.err { color: var(--bad); }
.pr-val { font-family: var(--f-num); overflow-wrap: anywhere; color: var(--fg); }
.pr-val.muted { color: var(--muted); }

/* mail and registration */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
/* a long unbreakable value (the hash in a DMARC rua address) must not widen the column past the page */
.grid2 > * { min-width: 0; }
.blk { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.blk:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.blk-h { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.blk-h h4 { margin: 0; font-size: 14px; }
.blk-h .st { font-size: 12px; font-weight: 600; }
.st.ok { color: var(--ok); } .st.warn { color: var(--warn); } .st.bad { color: var(--bad); }
.blk p { margin: 3px 0; font-size: 13px; overflow-wrap: anywhere; }
.blk .val { font-family: var(--f-num); overflow-wrap: anywhere; }
.pills { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.pill { display: inline-block; padding: 1px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font: 12px var(--f-num); max-width: 100%; overflow-wrap: anywhere; }
.pill.bad { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); color: var(--bad); }
.pill.warn { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); color: var(--warn); }
dl.rdap { display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; margin: 0; font-size: 13px; }
dl.rdap dt { color: var(--muted); }
dl.rdap dd { margin: 0; overflow-wrap: anywhere; }
dl.rdap dd .mono { font-family: var(--f-num); }
/* the registry's own reply, behind a closed disclosure: readable when needed, out of the way otherwise */
details.raw { margin-top: 14px; font-size: 12px; color: var(--muted); }
details.raw summary { cursor: pointer; min-height: 24px; line-height: 24px; }
details.raw pre { margin: 8px 0 0; padding: 10px 12px; max-height: 340px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere;
  background: var(--soft); border: 1px solid var(--line); border-radius: 8px; color: var(--fg); font: 11.5px/1.5 var(--f-num); }

/* help */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .42); display: grid; place-items: center; padding: 16px; z-index: 50; }
.dialog { width: min(860px, 100%); max-height: min(86vh, 760px); background: var(--panel); color: var(--fg); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .28); display: flex; flex-direction: column; overflow: hidden; }
.dlg-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.dlg-h h2 { margin: 0; font-size: 17px; }
.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; border-right: 1px solid var(--line); overflow-y: auto; }
.help-nav button { text-align: left; padding: 8px 10px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--fg); font: 13px/1.4 var(--f-ui); cursor: pointer; min-height: 34px; }
.help-nav button:hover { background: var(--soft); }
.help-nav button[aria-selected="true"] { background: var(--soft); border-color: var(--line); font-weight: 600; }
.help-pick { display: none; }
.help-c { padding: 16px 20px; overflow-y: auto; }
.help-c h3 { margin: 0 0 8px; font-size: 16px; }
.help-c p { margin: 0 0 10px; font-size: 14px; line-height: 1.65; color: var(--fg); }
.help-c p:last-child { margin-bottom: 0; }

@media (max-width: 760px) {
  .grid2 { grid-template-columns: 1fr; }
  .pr { grid-template-columns: minmax(88px, 1fr) 88px; }
  .pr-val { grid-column: 1 / -1; }
  .prop-sum { margin-left: 0; }
  /* the conclusion owns its line; share/report sit under it and can never cover it */
  .v-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 4px 9px; }
  .v-head h2 { grid-column: 2; }
  .v-head .dot { grid-column: 1; margin-top: 8px; }
  .v-acts { grid-column: 1 / -1; margin-left: 0; justify-content: flex-start; }
  /* TTL and the resolver count move under the value instead of scrolling out of the table */
  table.rec { min-width: 0; }
  table.rec th:nth-child(3), table.rec th:nth-child(4), table.rec td.n, table.rec td.f { display: none; }
  .v-meta { display: block; margin-top: 3px; color: var(--muted); font: 12px/1.5 var(--f-ui); }
  .facts { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .fact { padding: 7px 9px; }
  .fact b { font-size: 18px; }
  .help-b { grid-template-columns: 1fr; }
  .help-nav { display: none; }
  .help-pick { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
  .help-pick select { flex: 1; min-width: 0; height: 36px; font-size: 16px; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; }
  .hint { margin-left: 0; }
}
@media (pointer: coarse) {
  .chip { min-height: 38px; }
  .tab { min-height: 36px; }
  .help-nav button { min-height: 40px; }
}
