@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;
  /* 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: the tool's own colors, the only part of this file it edits =====
   --ink is the one accent (primary button, focus ring, the tool's icon in the suite list), --ink-fg the text on it.
   --t1…--t5 are the shared good-to-bad ladder: same meaning in every tool, never redefined per tool.
   Add a tool-specific color inside this block, never outside it. */
:root {
  --ink: #2563eb; --ink-fg: #ffffff; --ink-soft: #2563eb14;
  --warn: #b86e00; --warn-soft: #b86e001f; --bad: #d23a2f;
  --t0: #8b5cf6; --t1: #1a8a5a; --t2: #3d7d1e; --t3: #8a6700; --t4: #b0530a; --t5: #d23a2f;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --ink: #60a5fa; --ink-fg: #0b1a3a; --ink-soft: #60a5fa24;
  --warn: #f5a524; --warn-soft: #f5a52424; --bad: #f56565;
  --t0: #c4a7ff; --t1: #3ecf8e; --t2: #9fd356; --t3: #f5c524; --t4: #f59e42; --t5: #f56565;
} }
:root[data-theme="dark"] {
  --ink: #60a5fa; --ink-fg: #0b1a3a; --ink-soft: #60a5fa24;
  --warn: #f5a524; --warn-soft: #f5a52424; --bad: #f56565;
  --t0: #c4a7ff; --t1: #3ecf8e; --t2: #9fd356; --t3: #f5c524; --t4: #f59e42; --t5: #f56565;
}
/* ===== 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; } }
/* a 320px phone: the logo and the four actions do not fit side by side at full size */
@media (max-width: 380px) { .logo, .logo img { width: 62px; height: 25px; } .top { gap: 8px; flex-wrap: wrap; } .top-acts { gap: 6px; margin-left: auto; } }
.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; } .btn.sm { height: 40px; padding: 0 14px; } .icon-btn { width: 44px; height: 44px; } .sel { height: 40px; } }

/* 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); }

/* Down Check. Tokens and common components come from base.css. The page is a status board: the current state is the
   largest thing on it, the summary is a panel, and every status is a shape first and a word second. */

html { scrollbar-gutter: stable; }
/* Safari parks focus on html/body/main after a modal dialog closes; the page must not wear a ring. */
html:focus-visible, body:focus-visible, main:focus-visible, dialog:focus-visible { outline: none; }
body { -webkit-text-size-adjust: 100%; }
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }
svg { display: block; }

/* the brand and the header icons are not the accent: red means offline, the header never does */
.brand, .brand:hover { color: var(--fg); text-decoration: none; }
a.icon-btn { color: var(--fg); }
a.icon-btn:hover { background: var(--soft); }

/* breadcrumb: the same quiet chevrons as Reach Check, not blue links with slashes */
.dn-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--fs-small); color: var(--muted); margin-bottom: 2px; }
.dn-crumbs a { color: var(--muted); }
.dn-crumbs a:hover { color: var(--fg); }
.dn-crumbs .dn-crumb-here { color: var(--fg); }
.dn-crumbs .dn-sep { color: var(--line); font-size: 15px; line-height: 1; }

/* ---------- status icons: shape first, colour second ----------
   filled circle = online · half circle = partial / recovered · diamond = offline · hollow ring = unconfirmed / stale */
.ic { width: 9px; height: 9px; flex: none; display: inline-block; border-radius: 50%; background: var(--muted); box-sizing: border-box; }
.ic.ok { background: var(--t1); }
.ic.warn { background: var(--warn); }
.ic.bad { background: var(--t5); }
.ic.unknown { background: var(--muted); }

/* ---------- hero: centered; no side panel, no duplicate cadence line ---------- */
.dn-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 6px 0 2px; }
.dn-hero .page-h { max-width: 820px; }
.dn-intro { color: var(--muted); max-width: 100%; margin: 0 auto; }
.dn-age { min-height: 18px; font-size: var(--fs-caption); color: var(--muted); font-variant-numeric: tabular-nums; }
.dn-hero .dn-age { text-align: center; }
.dn-hero-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; margin-top: 2px; }
.dn-hero-tools input[type="search"] { flex: 0 1 340px; height: 36px; padding: 0 12px; font-size: 16px;
  color: var(--fg); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-ctl); }
.dn-hero-tools input[type="search"]:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.dn-hero-tools .dn-legend { justify-content: flex-end; }
.dn-hero-right { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
/* legend */
.dn-legend { justify-content: center; }

/* filter and legend */
.dn-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.dn-tools input[type="search"] { flex: 1 1 220px; max-width: 320px; height: 36px; padding: 0 12px; font-size: 16px;
  color: var(--fg); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-ctl); }
.dn-tools input[type="search"]:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.dn-check { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-small); color: var(--fg); cursor: pointer; min-height: 36px; }
.dn-check input { width: 16px; height: 16px; accent-color: var(--ink); }
.dn-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--fs-caption); color: var(--muted); }
.dn-legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- the board of every service ---------- */
.dn-board { display: flex; flex-direction: column; gap: 26px; }
.dn-cat-h { padding-bottom: 6px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.dn-cat-h h2 { font-size: var(--fs-title); }
.dn-cat-h h2 a { color: var(--fg); }
.dn-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.svc-img { width: 18px; height: 18px; border-radius: 4px; object-fit: contain; flex: none; background: var(--soft); }
.svc-mono { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; background: var(--soft); color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .02em; flex: none; }
.svc-wrap { position: relative; width: 18px; height: 18px; display: inline-flex; flex: none; }
.svc-wrap .ic.st { position: absolute; right: -4px; bottom: -4px; width: 9px; height: 9px; border: 1.5px solid var(--panel); box-sizing: content-box; }
.svc-lg { display: inline-flex; width: 28px; height: 28px; vertical-align: -5px; margin-right: 8px; }
.svc-lg .svc-img, .svc-lg .svc-mono { width: 28px; height: 28px; border-radius: 6px; font-size: 12px; }
.svc-img.sm, .svc-mono.sm { width: 16px; height: 16px; border-radius: 3px; font-size: 7px; }
.dn-tile { display: grid; grid-template-columns: 18px minmax(0, 1fr) 46px; align-items: center; gap: 9px; height: 42px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); color: var(--fg); }
.dn-tile:hover { border-color: var(--muted); text-decoration: none; }
.dn-tile-n { font-weight: 600; font-size: var(--fs-small); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dn-tile[data-state="bad"] { border-color: color-mix(in srgb, var(--t5) 45%, var(--line)); }
.dn-tile[data-state="warn"] { border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); }
.dn-empty { padding: 20px 0; color: var(--muted); font-size: var(--fs-small); text-align: center; }
.dn-noscript { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--soft); color: var(--muted); font-size: var(--fs-small); }

/* a 24-hour strip: one cell per hour, green / red / grey, no axes */
.dn-spark { display: flex; align-items: stretch; gap: 1px; height: 12px; width: 46px; flex: none; }
.dn-spark:empty { background: var(--line); opacity: .55; border-radius: 1px; }
.dn-spark i { flex: 1; border-radius: 1px; background: var(--line); }
.dn-spark i.ok { background: var(--t1); }
.dn-spark i.warn { background: var(--warn); }
.dn-spark i.bad { background: var(--t5); }
.dn-spark i.unk { background: var(--muted); opacity: .45; }

/* ---------- category page: aligned columns, status next to the name ---------- */
.dn-list-h { display: grid; grid-template-columns: minmax(180px, 230px) 84px minmax(120px, 1fr) 60px; gap: 14px;
  padding: 0 16px 6px; font-size: var(--fs-micro); color: var(--muted); }
.dn-list-h span:last-child { text-align: right; }
.dn-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); overflow: hidden; }
.dn-list li + li { border-top: 1px solid var(--line); }
.dn-row { display: grid; grid-template-columns: minmax(180px, 230px) 84px minmax(120px, 1fr) 60px; align-items: center; gap: 14px;
  min-height: 50px; padding: 0 16px; color: var(--fg); }
.dn-row:hover { background: var(--soft); text-decoration: none; }
.dn-row-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dn-row-name b { font-size: var(--fs-body); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dn-row .dn-spark { width: 100%; height: 14px; }
.dn-row-up { font-variant-numeric: tabular-nums; font-size: var(--fs-small); color: var(--muted); text-align: right; }
.dn-row-up i { display: none; font-style: normal; font-size: var(--fs-micro); margin-right: 5px; opacity: .8; }
.dn-row-up b { font-family: var(--f-num); font-weight: 500; color: var(--fg); }
.dn-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 80px; height: 28px; padding: 0 10px;
  border-radius: var(--r-pill); font-size: var(--fs-small); font-weight: 600; background: var(--soft); color: var(--muted); white-space: nowrap; }
.dn-pill.ok { background: color-mix(in srgb, var(--t1) 12%, transparent); color: var(--t1); }
.dn-pill.warn { background: var(--warn-soft); color: var(--warn); }
.dn-pill.bad { background: color-mix(in srgb, var(--t5) 12%, transparent); color: var(--t5); }
.dn-pill.unknown { background: var(--soft); color: var(--muted); }

/* ---------- service page: a full-width status banner is the answer ---------- */
.dn-svc-head { display: flex; flex-direction: column; gap: 10px; }
.dn-status-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 16px 22px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); }
.dn-status-banner .ic { width: 16px; height: 16px; }
.dn-status-banner b { font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.dn-status-banner .dn-status-meta { margin-left: auto; font-size: var(--fs-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.dn-status-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dn-status-banner:has(.dn-status-acts) { row-gap: 12px; }
/* the report entry: quiet, but a real target beside the share button */
.dn-report-btn { color: var(--muted); }
.dn-report-btn:hover { color: var(--fg); background: var(--soft); }
@media (pointer: coarse) { .dn-report-btn, .dn-hero-right #reportBtn { height: 36px; padding: 0 12px; } }
.dn-status-banner.ok { background: color-mix(in srgb, var(--t1) 7%, var(--panel)); border-color: color-mix(in srgb, var(--t1) 28%, var(--line)); }
.dn-status-banner.warn { background: color-mix(in srgb, var(--warn) 9%, var(--panel)); border-color: color-mix(in srgb, var(--warn) 32%, var(--line)); }
.dn-status-banner.bad { background: color-mix(in srgb, var(--t5) 8%, var(--panel)); border-color: color-mix(in srgb, var(--t5) 30%, var(--line)); }
.dn-status-banner.ok b { color: var(--t1); }
.dn-status-banner.warn b { color: var(--warn); }
.dn-status-banner.bad b { color: var(--t5); }
.dn-status-banner.unknown b { color: var(--muted); }
.dn-status-meta { font-size: var(--fs-caption); color: var(--muted); font-variant-numeric: tabular-nums; }
.dn-official-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--r-pill);
  background: var(--soft); color: var(--muted); font-size: var(--fs-caption); font-weight: 600; }
.dn-official-chip.ok { color: var(--t1); } .dn-official-chip.warn { color: var(--warn); } .dn-official-chip.bad { color: var(--t5); }

.dn-history { display: flex; flex-direction: column; gap: 10px; }
.dn-history-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.dn-history-h h2 { font-size: var(--fs-title); }
.dn-history-h .dn-up { font: 600 var(--fs-num)/1 var(--f-num); font-variant-numeric: tabular-nums; }
.dn-bar { display: flex; align-items: stretch; gap: 1px; height: 26px; position: relative; }
.dn-bar:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 3px; }
/* the hover card: which place saw what, for one ten-minute bucket */
.dn-bar-tip { position: absolute; z-index: 5; top: 0; left: 0; box-sizing: border-box; transform: translateY(calc(-100% - 8px)); min-width: 190px;
  padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); color: var(--fg);
  box-shadow: 0 8px 24px rgba(0,0,0,.14); font-size: var(--fs-small); line-height: 1.45; pointer-events: none; }
.dn-bar-tip[hidden] { display: none; }
.dn-bar-tip.dn-tip-below { top: 100%; transform: translateY(8px); }
@media (pointer: coarse) { .dn-bar-tip { min-width: 0; max-width: none; } }
.dn-tip-h { display: block; font-size: var(--fs-micro); color: var(--muted); font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.dn-tip-p { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.dn-tip-p b { margin-left: auto; font-weight: 600; }
.dn-tip-f { width: 14px; height: 10px; border-radius: 2px; object-fit: cover; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
[data-theme="dark"] .dn-tip-f { box-shadow: 0 0 0 1px rgba(255,255,255,.16); }
.dn-tip-m { display: block; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); color: var(--muted); }
.dn-bar i { flex: 1; border-radius: 1px; background: var(--line); }
.dn-bar i.ok { background: var(--t1); }
.dn-bar i.warn { background: var(--warn); }
.dn-bar i.bad { background: var(--t5); }
.dn-bar i.unk { background: var(--muted); opacity: .45; }
.dn-axis { display: flex; justify-content: space-between; font-size: var(--fs-micro); color: var(--muted); }
.dn-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 4px; }
.dn-kpis > div { padding: 10px 12px; border-radius: var(--r); background: var(--soft); }
.dn-kpis span { display: block; font-size: var(--fs-caption); color: var(--muted); }
.dn-kpis b { display: block; margin-top: 3px; font: 600 var(--fs-num)/1.15 var(--f-num); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

.dn-loc { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; min-height: 40px; border-bottom: 1px solid var(--line); font-size: var(--fs-small); }
.dn-loc:last-child { border-bottom: 0; }
.dn-loc b { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.dn-flag { width: 18px; height: 13px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.08); flex: none; }
[data-theme="dark"] .dn-flag { box-shadow: 0 0 0 1px rgba(255,255,255,.14); }
.dn-loc-v { font-family: var(--f-num); font-variant-numeric: tabular-nums; color: var(--muted); text-align: right; }
.dn-loc-v.ok { color: var(--t1); } .dn-loc-v.bad { color: var(--t5); } .dn-loc-v.warn { color: var(--warn); }
.dn-loc-age { font-size: var(--fs-caption); color: var(--muted); text-align: right; min-width: 74px; }

.dn-off { display: grid; grid-template-columns: 9px auto minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 40px; font-size: var(--fs-small); }
.dn-off b { font-weight: 600; }
.dn-off-desc { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dn-off-age { font-size: var(--fs-caption); color: var(--muted); text-align: right; white-space: nowrap; }
.dn-off.ok b { color: var(--t1); } .dn-off.warn b { color: var(--warn); } .dn-off.bad b { color: var(--t5); } .dn-off.unknown b { color: var(--muted); }
.dn-src-note { margin-top: 8px; font-size: var(--fs-caption); color: var(--muted); }
.dn-src-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-size: var(--fs-small); }
.dn-src-link svg { width: 11px; height: 11px; }

/* incidents keep a fixed height, so the page does not jump when the data arrives */
.dn-outs { list-style: none; margin: 0; padding: 0; height: 150px; overflow: auto; border-top: 1px solid var(--line); }
.dn-out { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 44px; padding: 4px 2px; border-bottom: 1px solid var(--line); }
.dn-out:last-child { border-bottom: 0; }
.dn-out b { font: 500 var(--fs-small)/1.35 var(--f-ui); color: var(--fg); }
.dn-out span { font-size: var(--fs-caption); color: var(--muted); }
.dn-out-empty { min-height: 148px; align-items: center; justify-content: center; text-align: center; color: var(--muted); font-size: var(--fs-small); border-bottom: 0; }

/* footer, related, cross-tool links */
.dn-related { display: flex; flex-direction: column; gap: 8px; }
.dn-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dn-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--panel); color: var(--fg); font-size: var(--fs-small); }
.dn-chip:hover { border-color: var(--muted); text-decoration: none; }
.dn-cross { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.dn-cross-foot { justify-content: center; }
.dn-cross-link { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; font-size: var(--fs-small); }
.dn-cross-link svg, .dn-ext svg { width: 11px; height: 11px; flex: none; }
.dn-ext { display: inline-flex; align-items: center; gap: 3px; }
.dn-report { display: flex; }
/* the share dialog draws its card after the link is shortened: a soft surface meanwhile, not a white hole */
.dialog.ms-share .ms-share-img { background: var(--soft); }
.dn-foot { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; font-size: var(--fs-small); color: var(--muted); padding: 2px 4px; }
.dn-foot p { margin: 0; }
.dn-p { color: var(--fg); max-width: none; }
.card h2 { margin-bottom: 8px; }

/* help dialog, the same shape as the other tools */
.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; }
/* min-width:0 and max-width:100%: a flex child is as wide as its widest content unless told otherwise, and a long
   question or a <select> with a long option was pushing the dialog past the screen edge */
.dialog { width: min(760px, 100%); min-width: 0; max-width: 100%; max-height: min(86vh, 720px); background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--r-lg); 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: var(--fs-title); 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: var(--fs-body) var(--f-ui); padding: 8px 10px; border-radius: var(--r-ctl-sm); 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: var(--fs-body); }
.help-c article[hidden] { display: none; }
.help-c h3 { margin: 0 0 8px; font-size: var(--fs-title); }
.help-c p { margin: 0 0 8px; }
.help-c p + p { margin-top: 8px; }

@media (max-width: 600px) {
  .dn-status-banner .dn-status-meta { margin-left: 0; width: 100%; }
  .dn-status-acts { width: 100%; }
  .dn-hero-tools { flex-direction: column; align-items: stretch; gap: 10px; }
  .dn-hero-tools input[type="search"] { flex: 1 1 auto; max-width: none; }
  .dn-hero-tools .dn-legend { justify-content: center; }
  .dn-hero-right { justify-content: center; }
}
@media (max-width: 760px) {
  .dn-list-h { display: none; }
  .dn-row { grid-template-columns: minmax(0, 1fr) 92px; grid-template-areas: "name pill" "spark up"; row-gap: 6px; padding: 10px 12px; min-height: 0; }
  .dn-row-name { grid-area: name; }
  .dn-row .dn-spark { grid-area: spark; width: 100%; height: 10px; }
  .dn-row-up { grid-area: up; }
  .dn-row-up i { display: inline; }
  .dn-pill { grid-area: pill; justify-self: end; }
  .dn-tile { grid-template-columns: 18px minmax(0, 1fr); }
  .dn-tile .dn-spark { display: none; }
  .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); }
  /* a <select> is as wide as its longest option, whatever the container: without min-width:0 it pushes out of the dialog */
  .help-pick select { flex: 1 1 auto; min-width: 0; width: 100%; max-width: 100%; height: 36px; font-size: 16px; border-radius: var(--r-ctl-sm);
    border: 1px solid var(--line); background: var(--panel); color: var(--fg); padding: 0 8px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
  .help-c { padding: 12px 14px; }
}
@media (max-width: 460px) {
  .dn-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dn-status-panel b { font-size: 28px; }
}

/* touch: breadcrumb and cross links are text, but on a phone they still need a real target */
@media (pointer: coarse) {
  .dn-crumbs a, .dn-crumbs .dn-crumb-here, .dn-src-link, .dn-ext, .dn-cross-link, .dn-chip { min-height: 40px; display: inline-flex; align-items: center; }
  .dn-crumbs { gap: 4px 8px; }
}

/* small phones: two-line tile names, and category headings that are real tap targets */
@media (max-width: 460px) {
  .dn-tile { height: auto; min-height: 44px; align-items: center; }
  .dn-tile-n { white-space: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; }
  .svc-mono { font-size: 9px; }
}
@media (pointer: coarse) {
  .dn-cat-h h2 a { display: inline-flex; align-items: center; min-height: 40px; }
}

/* ---------- auto refresh ----------
   A 300 s progress ring turns 1.2° a second: nobody sees that, and a full ring is just a circle. So the meaning is in
   the words ("242 秒后自动刷新"), and the sign of life is an arc that spins fast enough for the eye to catch. The same
   ring also fills slowly over the cycle, which is what a second glance shows. */
.dn-refresh { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-caption);
  color: var(--muted); font-variant-numeric: tabular-nums; vertical-align: middle; }
.dn-refresh #refreshText { color: var(--fg); opacity: .78; }
.dn-refresh.is-soon #refreshText { color: var(--t1); opacity: 1; }
/* on the age line it follows the text after a quiet separator */
.dn-refresh-in::before { content: "·"; margin: 0 6px 0 2px; color: var(--line); }
.dn-age .dn-refresh, .dn-status-meta .dn-refresh { margin-left: 0; }
.dn-refresh[hidden] { display: none; }
.dn-ring { width: 16px; height: 16px; flex: none; display: block; cursor: help; }
.dn-ring svg { width: 16px; height: 16px; transform: rotate(-90deg); display: block; }
.dn-ring-bg, .dn-arc, .dn-ring-fill { fill: none; stroke-width: 3; }
.dn-ring-bg { stroke: var(--line); }
/* motion the eye catches without being told to look: a quarter-circle going round every 2.4 s */
.dn-arc { stroke: var(--muted); stroke-linecap: round; stroke-dasharray: 10 30.2;
  animation: dn-spin 2.4s linear infinite;
  /* without this the circle spins about the SVG's corner and leaves the ring entirely */
  transform-box: view-box; transform-origin: 8px 8px; }
/* the cycle itself, as a slow fill under the arc */
.dn-ring-fill { stroke: var(--line); stroke-linecap: round; stroke-dasharray: 40.2; transition: stroke-dashoffset .9s linear; }
.dn-refresh.is-soon .dn-arc { stroke: var(--t1); }
.dn-refresh.is-soon .dn-ring-fill { stroke: color-mix(in srgb, var(--t1) 55%, var(--line)); }
.dn-refresh.is-failed .dn-arc { stroke: var(--warn); animation-duration: 1s; }
.dn-refresh.is-failed #refreshText { color: var(--warn); opacity: 1; }
.dn-refresh.is-paused .dn-arc { animation: none; stroke: var(--muted); opacity: .35; }
.dn-refresh.is-paused { opacity: .85; }
@keyframes dn-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .dn-arc { animation: none; stroke-dasharray: 30.2 40.2; }
  .dn-ring-fill { transition: none; }
}
/* the age line gives one quiet pulse when a refresh actually landed */
@keyframes dn-flash { from { color: var(--t1); } to { color: inherit; } }
.dn-age.dn-flash { animation: dn-flash 1.6s ease-out 1; }
@media (prefers-reduced-motion: reduce) { .dn-age.dn-flash { animation: none; } }
