:root {
  color-scheme: light;
  --ink: #172b24;
  --muted: #52645c;
  --line: #d8dfd9;
  --bg: #f4f6f2;
  --surface: #fff;
  --rail: #152820;
  --accent: #c4ef8e;
  --green: #276548;
  --warn: #805502;
  --bad: #9d352c;
  --sans: Inter, "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "IBM Plex Mono", Consolas, "SFMono-Regular", monospace;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  -webkit-text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; line-height: 1.55; }
button, input, select, textarea { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid #4d8365; outline-offset: 3px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.skip { position: fixed; left: 1rem; top: -5rem; z-index: 99; padding: .6rem 1rem; background: white; border-radius: .4rem; }
.skip:focus { top: .5rem; }
.shell { display: grid; grid-template-columns: 218px minmax(0, 1fr); min-height: 100vh; }
.rail { color: #f2f7ed; background: var(--rail); display: flex; flex-direction: column; min-height: 100vh; height: 100dvh; position: sticky; top: 0; }
.brand { display: flex; gap: 13px; align-items: center; margin: 33px 23px 0; font-size: 20px; font-weight: 750; letter-spacing: .035em; white-space: nowrap; }
.brand-mark { position: relative; display: inline-block; width: 34px; height: 34px; border-radius: 8px; background: var(--accent); flex: none; }
.brand-mark i { position: absolute; display: block; width: 6px; height: 15px; border-radius: 1px; background: var(--rail); transform: skewY(-30deg); }
.brand-mark i:nth-child(1) { left: 6px; top: 13px; height: 12px; }
.brand-mark i:nth-child(2) { left: 14px; top: 8px; height: 16px; }
.brand-mark i:nth-child(3) { left: 22px; top: 7px; height: 11px; }
.navigation { display: grid; gap: 6px; padding: 0 13px; margin-top: 50px; }
.navigation a { text-decoration: none; color: #c0cec2; display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 0 14px; border: 1px solid transparent; border-radius: 6px; font-size: 14px; font-weight: 580; }
.navigation a:hover { color: white; background: #203a2d; }
.navigation a[aria-current="page"] { color: var(--accent); background: #2b4233; border-color: #354e3e; }
.navigation a:focus-visible { outline-color: var(--accent); }
.nav-icon { display: block; position: relative; width: 18px; height: 18px; color: currentColor; flex: none; }
.nav-icon::before, .nav-icon::after { content: ""; display: block; position: absolute; }
.icon-nodes::before, .icon-nodes::after { width: 16px; height: 6px; border: 1.5px solid currentColor; border-radius: 2px; left: 1px; }
.icon-nodes::before { top: 1px; } .icon-nodes::after { bottom: 2px; }
.icon-regions::before { inset: 1px; border: 1.5px solid currentColor; border-radius: 50%; }
.icon-regions::after { left: 6px; top: 1px; width: 6px; height: 16px; border: 1.5px solid currentColor; border-radius: 50%; }
.icon-regions { background: linear-gradient(currentColor, currentColor) center 8px / 15px 1px no-repeat; }
.icon-dns::before { width: 7px; height: 7px; left: 1px; top: 6px; border: 1.5px solid currentColor; box-shadow: 9px -5px 0 -2px var(--rail), 9px -5px 0 -1px currentColor, 9px 5px 0 -2px var(--rail), 9px 5px 0 -1px currentColor; }
.icon-dns::after { width: 3px; height: 10px; left: 8px; top: 4px; border: solid currentColor; border-width: 1px 0 1px 1px; }
.rail-host { margin: auto 22px 0; padding: 20px 0 24px; border-top: 1px solid #35493d; }
.rail-host span, .rail-host b { display: block; }
.rail-host span { color: #a6b8ac; font-size: 11px; margin-bottom: 4px; }
.rail-host b { color: #e0ebdf; font: 13px/1.5 var(--mono); }
.workspace { min-width: 0; }
.topbar { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 clamp(22px, 3.5vw, 58px); background: #fcfdfa; border-bottom: 1px solid var(--line); }
.scope, .refresh-tools, .actions, .panel-name { display: flex; align-items: center; }
.scope { color: var(--muted); font-size: 12px; gap: 9px; white-space: nowrap; }
.scope b { color: #354a3c; font: 600 13px/1.4 var(--mono); }
.scope-dot { width: 8px; height: 8px; border-radius: 50%; border: 2px solid #698f55; background: #e2f0d8; }
.refresh-tools, .actions { gap: 10px; }
.updated { font-size: 12px; color: var(--muted); }
.button, .icon-button, .text-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; text-decoration: none; font-weight: 600; }
.button { min-height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: 6px; font-size: 13px; white-space: nowrap; }
.button.primary { color: #fff; background: #284f38; border-color: #244831; }
.button.primary:hover:not(:disabled) { background: #1d412c; }
.button.secondary, .button.plain { color: #354c3e; border-color: #c9d3ca; background: #fff; }
.button.secondary:hover:not(:disabled), .button.plain:hover:not(:disabled) { border-color: #8fa98e; background: #f2f6ef; }
.button.small { min-height: 32px; padding: 0 10px; font-size: 12px; }
.plus { position: relative; display: inline-block; width: 12px; height: 12px; }
.plus::before, .plus::after { content: ""; position: absolute; background: currentColor; border-radius: 2px; }
.plus::before { width: 12px; height: 1.5px; left: 0; top: 5px; }
.plus::after { height: 12px; width: 1.5px; top: 0; left: 5px; }
.refresh-icon { font: 20px/1 var(--sans); }
main { max-width: 1680px; padding: 38px clamp(22px, 3.5vw, 58px) 64px; margin: 0 auto; }
main:focus { outline: none; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 27px; }
h1 { font-size: clamp(29px, 2.85vw, 40px); font-weight: 740; letter-spacing: -.055em; line-height: 1.22; }
.page-head p, .gate p { color: var(--muted); margin-top: 9px; font-size: 14px; }
h2 { font-size: 18px; font-weight: 700; line-height: 1.4; letter-spacing: -.025em; }
h3 { font-size: 14px; font-weight: 650; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 22px; }
.metric { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 17px 18px 15px; min-width: 0; }
.metric:first-child { background: #ebf2e6; border-color: #cadac4; }
.metric-heading { display: flex; justify-content: space-between; gap: 4px; align-items: center; color: #40564a; font-size: 13px; font-weight: 600; }
.metric-symbol { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; color: #67806c; font: 18px/1 var(--sans); }
.metric-value { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 6px; color: #1a3526; margin: 11px 0 5px; font-size: clamp(25px, 2.35vw, 38px); letter-spacing: -.04em; line-height: 1.08; font-weight: 650; overflow-wrap: anywhere; }
.metric-value small { font: 500 12px/1.4 var(--sans); color: var(--muted); letter-spacing: 0; }
.metric-note, .panel-note, .panel-sub, .sub { color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.5; }
.panel { border: 1px solid var(--line); border-radius: 9px; background: var(--surface); margin-bottom: 20px; min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 21px; border-bottom: 1px solid var(--line); }
.panel-name { gap: 9px; }
.count { color: #46634e; background: #eff3eb; border-radius: 5px; padding: 1px 7px; font: 600 12px/1.65 var(--mono); }
.panel-sub { margin-top: 3px; }
.data-table, .matrix { width: 100%; border-collapse: separate; border-spacing: 0; }
.data-table { table-layout: auto; }
.data-table th, .matrix thead th { background: #f8faf6; color: var(--muted); font-weight: 550; text-align: start; font-size: 12px; }
.data-table th { padding: 9px 12px; }
.data-table td { vertical-align: middle; padding: 15px 12px; font-size: 14px; overflow-wrap: anywhere; }
.data-table td:first-child, .data-table th:first-child { padding-left: 21px; }
.data-table td:last-child, .data-table th:last-child { padding-right: 21px; }
.data-table th:last-child { text-align: right; }
.data-table tbody tr + tr td, .matrix tbody tr + tr > * { border-top: 1px solid #e8ede6; }
.data-table tbody tr:hover { background: #fcfdfa; }
.data-table .identity { min-width: 100px; max-width: 240px; }
.identity strong { display: block; font-size: 14px; font-weight: 650; line-height: 1.5; }
.identity .mono, .data-table td.mono { font-size: 13px; }
.sub { display: block; margin-top: 3px; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 550; border-radius: 5px; padding: 2px 7px; white-space: nowrap; }
.badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.good { color: #29613f; background: #e8f3e7; }
.badge.warn { color: var(--warn); background: #fcf0d5; }
.badge.bad { color: var(--bad); background: #fae9e6; }
.badge.muted { color: #55615a; background: #edf0eb; }
.data-line { display: inline-block; color: #293d30; font-weight: 600; }
.flow-in, .flow-out { font-family: var(--mono); color: #52704f; }
.flow-out { margin-left: 7px; }
.row-actions { width: 1%; text-align: right; white-space: nowrap; }
.row-actions div { display: inline-flex; gap: 3px; }
.text-button { color: #2c6444; padding: 5px 6px; min-height: 32px; border-radius: 4px; background: transparent; font-size: 13px; }
.text-button:hover { color: #1c4e31; background: #edf4e9; }
.empty { display: grid; justify-items: center; padding: 42px 18px; text-align: center; }
.empty strong { font-size: 15px; }
.empty p { margin-top: 6px; font-size: 13px; color: var(--muted); }
.policy { border: 1px solid var(--line); border-radius: 7px; background: #f0f3ed; }
.policy summary { list-style: none; display: flex; align-items: center; gap: 9px; padding: 12px 16px; cursor: pointer; color: #435447; font-size: 13px; font-weight: 600; }
.policy summary::-webkit-details-marker { display: none; }
.info-icon { display: inline-flex; align-items: center; justify-content: center; height: 15px; width: 15px; flex: none; border: 1.3px solid currentColor; border-radius: 50%; font: bold 10px/1 Georgia, serif; }
.chevron { width: 7px; height: 7px; margin-left: auto; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.policy[open] .chevron { transform: rotate(225deg); }
.policy-body { padding: 0 16px 13px 40px; color: var(--muted); font-size: 13px; }
.policy-body p + p { margin-top: 5px; }
.probe-filters { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.probe-filters label { color: var(--muted); font-size: 12px; font-weight: 550; }
.probe-filters input, .probe-filters select { display: block; width: 100%; height: 34px; margin-top: 3px; background: #fff; border: 1px solid #c9d4c7; border-radius: 5px; padding: 0 9px; font-size: 13px; }
.probe-filters label:first-child { width: min(100%,235px); }
.probe-filters label:nth-child(2) { width: 125px; }
.test-controls { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px; padding: 16px 20px 10px; }
.test-controls label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 600; }
.test-controls label:first-child { flex: 1 1 240px; max-width: 360px; min-width: 0; }
.test-controls select { min-width: 0; width: 100%; height: 40px; border: 1px solid #c9d4c7; background: white; border-radius: 5px; padding: 0 9px; color: var(--ink); }
.run-line { padding: 0 20px 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.run-line progress { width: 120px; accent-color: var(--green); height: 8px; }
.test-error { margin: 10px 20px; }
.heat-legend { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 18px; }
.heat-legend span { border-radius: 4px; padding: 2px 7px; font-size: 11px; }
.heat-fast { color: #224e36; background: #d9eddc; }
.heat-mid { color: #275963; background: #dbecef; }
.heat-slow { color: #6b4d12; background: #f7eac8; }
.heat-loss { color: #774018; background: #f7dfc9; }
.heat-fail { color: #842e2c; background: #f2d2ce; }
.heat-none { color: #495b50; background: #edf0ec; }
.heat-table { table-layout: fixed; }
.heat-table thead th:first-child, .heat-table tbody th:first-child { width: clamp(72px,19%,195px); min-width: 72px; }
.heat-table tbody th { word-break: break-word; }
.matrix.heat-table td { padding: 3px 5px; min-width: 90px; }
.heat-cell { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; justify-content: space-between; width: 100%; min-height: 34px; padding: 6px 9px; border: 1px solid transparent; border-radius: 4px; font: inherit; text-align: start; }
.heat-cell + .heat-cell { margin-top: 3px; }
.heat-cell small { font-size: 11px; line-height: 1.4; }
.heat-cell:focus-visible { outline-offset: -3px; }
.heat-cell:hover { border-color: currentColor; }
.reading-data { display: grid; grid-template-columns: max-content minmax(0,1fr); gap: 9px 17px; margin: 16px 0 0; }
.reading-data dt { color: var(--muted); }
.reading-data dd { margin: 0; overflow-wrap: anywhere; }
.matrix-scroll, .long-list { max-height: min(62vh, 580px); overflow: auto; border-radius: 0 0 8px 8px; overscroll-behavior: contain; }
.matrix thead th, .long-list thead th { position: sticky; top: 0; z-index: 2; }
.matrix th, .matrix td { padding: 8px 15px; text-align: left; vertical-align: middle; min-width: 144px; overflow-wrap: anywhere; }
.matrix th:first-child { position: sticky; left: 0; background: #f8faf6; box-shadow: 1px 0 0 var(--line); z-index: 1; max-width: 210px; }
.matrix thead th:first-child { z-index: 3; }
.matrix thead th { border-bottom: 1px solid var(--line); }
.matrix tbody th { font-size: 14px; font-weight: 650; }
.matrix td { font-size: 14px; }
.matrix td + td { border-left: 1px solid #edf0eb; }
.probe-measures { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1px 7px; }
.loss { color: var(--muted); font-size: 12px; white-space: nowrap; }
.matrix .sub { margin-top: 1px; }
.good-text { color: var(--green); }
.warn-text { color: var(--warn); }
.bad-text { color: var(--bad); }
.faded { color: var(--muted); }
.dns-message { border-left: 3px solid #829383; padding: 9px 13px; background: #eff3ed; margin: 18px 21px 0; font-size: 13px; overflow-wrap: anywhere; }
.dns-message.bad { border-color: #b55040; background: #fdf0ed; color: #8a382e; }
.dns-message.warn { border-color: #ad7d33; background: #fbf4e5; color: #75521a; }
.dns-message.good { border-color: #5f8960; color: #2b5c3e; background: #edf5ea; }
.records-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; padding: 20px 21px; }
.records-grid > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.ip-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ip { padding: 2px 7px; border: 1px solid #dce4da; border-radius: 4px; background: #f7f9f5; font-size: 13px; }
.dns-summary { border-top: 1px solid #e5ebe3; padding: 13px 21px; display: flex; flex-wrap: wrap; gap: 4px 22px; color: var(--muted); font-size: 12px; }
.routing-note { display: flex; align-items: flex-start; gap: 8px; margin: -6px 2px 22px; color: var(--muted); font-size: 13px; }
.routing-note .info-icon { margin-top: 3px; }
.event-list { list-style: none; padding: 0 21px; margin: 0; }
.event-list li { display: grid; grid-template-columns: 8px minmax(0,1fr) auto; align-items: baseline; gap: 10px; padding: 13px 0; }
.event-list li + li { border-top: 1px solid #e7ece5; }
.event-dot { width: 7px; height: 7px; background: #689271; border-radius: 50%; align-self: start; margin-top: 7px; }
.event-dot.error { background: #b74b3c; }
.event-list strong { font-size: 14px; font-weight: 540; overflow-wrap: anywhere; }
.event-list time { color: var(--muted); font: 12px/1.5 var(--mono); }
.notice { padding: 10px 13px; border: 1px solid #eacbc4; border-radius: 5px; font-size: 13px; overflow-wrap: anywhere; }
.notice.danger { background: #fff2ef; color: var(--bad); }
#connection-message { margin-bottom: 16px; }
.gate { max-width: 690px; margin: clamp(20px, 8vh, 90px) auto; padding: clamp(28px, 5vw, 64px); background: white; border: 1px solid var(--line); border-radius: 10px; }
.gate-mark { display: block; width: 38px; height: 5px; border-radius: 3px; background: #a1cd7b; margin-bottom: 20px; }
.gate h1 { font-size: clamp(25px, 3vw, 35px); }
.gate-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.gate-actions:has([hidden] + [hidden]) { margin-top: 0; }
dialog { width: min(540px, calc(100vw - 28px)); max-height: calc(100dvh - 32px); padding: 0; margin: auto; color: var(--ink); background: var(--surface); border: 1px solid #cad6c9; border-radius: 10px; box-shadow: 0 22px 85px #12211930; }
dialog::backdrop { background: #13231bb0; }
.dialog-head, .dialog-foot { display: flex; align-items: center; gap: 10px; background: white; }
.dialog-head { justify-content: space-between; padding: 17px 22px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { font-size: 21px; }
.icon-button { width: 32px; height: 32px; background: #f2f5ef; color: var(--muted); border-radius: 5px; font: 23px/1 var(--sans); }
.icon-button:hover { background: #e8eee5; }
.form-body { padding: 20px 22px; }
.form-grid { display: grid; gap: 16px 14px; grid-template-columns: repeat(2, minmax(0,1fr)); }
.form-grid label, .secret-label { display: block; font-weight: 620; font-size: 13px; }
.form-grid label small { font-weight: 450; color: var(--muted); font-size: 11px; }
.form-grid input, .form-grid select, .secret-label textarea { display: block; margin-top: 5px; width: 100%; height: 40px; padding: 0 10px; border: 1px solid #bfcbbf; border-radius: 5px; background: #fff; font-weight: 450; }
.form-grid input::placeholder { color: #6a786e; }
.form-grid label:focus-within, .secret-label:focus-within { color: var(--green); }
.form-grid input:focus, .form-grid select:focus, .secret-label textarea:focus { border-color: #4a7655; outline: 2px solid #b9d4ab; outline-offset: 1px; }
.form-grid .span { grid-column: 1 / -1; }
.hint { display: block; color: var(--muted); font-size: 12px; line-height: 1.55; font-weight: 400; }
.form-grid p.hint { margin-top: -10px; }
label > .hint { margin-top: 5px; }
.check-row { display: flex; align-items: flex-start; gap: 9px; padding: 12px; border: 1px solid var(--line); margin-top: 18px; border-radius: 5px; background: #f6f8f3; cursor: pointer; }
.check-row input { width: 16px; height: 16px; margin: 3px 0 0; flex: none; accent-color: #315e3f; }
.check-row b { font-size: 13px; font-weight: 620; }
.check-row .hint { margin-top: 2px; }
.dialog-foot { padding: 13px 22px; border-top: 1px solid var(--line); justify-content: flex-end; }
.form-error { margin: 13px 0 0; }
.confirmation { color: #34493a; overflow-wrap: anywhere; line-height: 1.7; }
.secret-label { margin: 16px 0 8px; }
.node-id { font-weight: 600; margin-top: 4px; }
.kit-link { display: inline-block; color: var(--green); font-size: 13px; font-weight: 600; margin: 13px 0 3px; }
.kit-guide { margin-bottom: 15px; }
.form-body .kit-guide { margin: 7px 0 0; }
.kit-steps { margin: 0; padding-left: 1.3em; }
.kit-steps li + li { margin-top: 7px; }
.kit-command { display: block; margin: 7px 0; padding: 8px 10px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 5px; overflow-wrap: anywhere; white-space: pre-wrap; }
.secret-label textarea { height: auto; min-height: 76px; padding: 8px 10px; font: 14px/1.55 var(--mono); resize: vertical; }
.toast { position: fixed; right: 22px; bottom: 22px; max-width: min(85vw,480px); z-index: 9; color: #fff; background: #253e2d; border-radius: 6px; padding: 11px 16px; box-shadow: 0 4px 18px #25342924; font-size: 13px; overflow-wrap: anywhere; }
.signin { min-height: 100dvh; display: grid; place-items: center; background: var(--rail); }
.signin-main { width: min(100%, 440px); padding: 24px; margin: 0; }
.signin-brand { margin: 0 0 18px; color: #f2f7ed; }
.signin-card { padding: clamp(22px,5vw,34px); background: var(--surface); border-radius: 10px; }
.signin-card h1 { font-size: 29px; }
.signin-site { color: var(--muted); margin: 5px 0 20px; }
.signin-card form { display: grid; gap: 7px; }
.signin-card label { font-weight: 600; }
.signin-card input { display: block; width: 100%; min-height: 42px; padding: 8px 11px; background: white; border: 1px solid #aabaac; border-radius: 5px; }
.signin-card button { margin-top: 10px; }
.signin-card .notice { margin-bottom: 14px; }
@media (min-width: 1560px) { .shell { grid-template-columns: 240px minmax(0,1fr); } }
@media (max-width: 1190px) {
  .shell { grid-template-columns: 184px minmax(0,1fr); }
  .brand { margin-left: 18px; font-size: 18px; gap: 10px; }
  .metric { padding: 15px 13px; }
  .data-table th, .data-table td { padding-left: 9px; padding-right: 9px; }
  .data-table td:first-child, .data-table th:first-child { padding-left: 15px; }
  .data-table td:last-child, .data-table th:last-child { padding-right: 15px; }
}
@media (max-width: 980px) {
  .shell { display: block; }
  .rail { position: static; min-height: 0; height: auto; display: flex; flex-direction: row; align-items: center; gap: 22px; padding: 10px 22px; }
  .brand { margin: 0; font-size: 18px; }
  .brand-mark { width: 34px; height: 34px; }
  .navigation { margin: 0; padding: 0; display: flex; gap: 5px; }
  .navigation a { min-height: 39px; padding: 0 10px; gap: 7px; }
  .rail-host { display: none; }
  .topbar { height: 52px; }
  main { padding-top: 27px; }
}
@media (max-width: 740px) {
  .metric-value { font-size: 27px; }
  .metrics { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
  .data-table { display: block; }
  .data-table thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .data-table tbody { display: block; }
  .data-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px 15px; padding: 15px 16px; }
  .data-table tbody tr + tr { border-top: 1px solid var(--line); }
  .data-table tbody tr + tr td { border-top: 0; }
  .data-table td, .data-table td:first-child, .data-table td:last-child { padding: 0; }
  .data-table .identity { min-width: 0; max-width: none; grid-column: 1/-1; }
  .data-table td[data-label]::before { display: block; content: attr(data-label); color: var(--muted); font: 11px/1.6 var(--sans); margin-bottom: 2px; }
  .data-table .row-actions { width: auto; text-align: right; align-self: end; }
  .data-table .row-actions div { gap: 7px; }
  .text-button { border: 1px solid #dce5d9; padding: 3px 10px; }
  .identity strong { font-size: 15px; }
  .event-list li { grid-template-columns: 7px minmax(0,1fr); gap: 2px 9px; }
  .event-list time { grid-column: 2; }
}
@media (max-width: 590px) {
  .test-controls { padding: 12px 14px 8px; }
  .test-controls label:first-child { flex-basis: 100%; max-width: none; }
  .run-line { padding: 0 14px 9px; }
  .heat-legend { padding: 8px 12px; gap: 4px; }
  .matrix.heat-table th, .matrix.heat-table td { min-width: 0; }
  .matrix.heat-table th { padding: 5px; }
  .matrix.heat-table td { padding: 2px; }
  .matrix.heat-table .heat-cell { padding: 4px; gap: 0 4px; }
  .heat-cell b { font-size: 12px; }
  .rail { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 14px 8px; }
  .brand { font-size: 17px; }
  .brand-mark { transform: scale(.83); margin: -3px -3px -3px -2px; }
  .navigation { justify-content: flex-start; gap: 3px; }
  .navigation a { justify-content: center; min-height: 38px; padding: 0 9px; gap: 6px; font-size: 13px; }
  .nav-icon { transform: scale(.83); }
  .topbar { padding: 0 14px; gap: 8px; height: 46px; }
  .scope { font-size: 11px; gap: 5px; }
  .scope b { font-size: 12px; }
  .refresh-tools { gap: 7px; }
  .updated { font-size: 11px; }
  main { padding: 24px 14px 40px; }
  .page-head { align-items: flex-start; flex-wrap: wrap; gap: 13px; margin-bottom: 17px; }
  .page-head p { font-size: 13px; margin-top: 6px; }
  .button { min-height: 38px; padding: 0 13px; }
  .panel-head { padding: 14px 15px; }
  .metric { padding: 12px; }
  .metric-note { font-size: 11px; }
  .metrics, .panel { margin-bottom: 15px; }
  .metric-value { margin: 6px 0 4px; }
  .matrix th, .matrix td { min-width: 126px; padding: 10px 12px; }
  .matrix th:first-child { min-width: 115px; max-width: 150px; }
  .probe-filters { padding: 10px 14px; gap: 7px; }
  .probe-filters label:first-child { flex: 1 1 135px; }
  .probe-filters label:nth-child(2) { width: 97px; }
  .records-grid { grid-template-columns: minmax(0,1fr); padding: 15px; gap: 13px; }
  .records-grid > div + div { border-left: 0; border-top: 1px solid var(--line); padding: 12px 0 0; }
  .dns-message { margin: 13px 15px 0; }
  .dns-summary { padding: 11px 15px; }
  .event-list { padding: 0 15px; }
  .toast { right: 14px; bottom: 14px; }
  dialog { max-height: calc(100dvh - 16px); }
  .dialog-head, .dialog-foot { padding: 12px 15px; }
  .form-body { padding: 15px; }
  .form-grid { gap: 13px 10px; }
}
@media (max-width: 400px) {
  .topbar .updated { max-width: 61px; line-height: 1.15; text-align: right; }
  .topbar .scope-dot { display: none; }
  .navigation a { padding: 0 8px; }
  .refresh-tools { gap: 4px; }
  .button.small { padding: 0 7px; }
  .form-grid { grid-template-columns: 1fr; }
  .matrix-scroll { max-width: calc(100vw - 30px); }
  .gate-actions { align-items: flex-start; flex-direction: column; }
}
