/* Total Uptime tools: the NetOps / NetDiag look (same tokens and components). */

:root {
  --canvas: #e8ecf2;
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #f0f2f7;
  --border: #dde2ea;
  --line: #edf0f4;
  --text: #18202d;
  --muted: #5d6878;
  --accent: #1ca3db;
  --accent-ink: #0b78a6;
  --accent-text: #ffffff;
  --accent-soft: #e0f3fb;
  --ok: #0a7a5f;
  --warn: #c2570c;
  --bad: #c62828;
  --radius: 12px;
  --mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #080b10; --bg: #0d1117; --surface: #161b24; --surface-2: #1d2430; --border: #2a3342; --line: #222a36;
    --text: #e4e9f1; --muted: #93a0b4; --accent: #1ca3db; --accent-ink: #1ca3db; --accent-text: #06202c; --accent-soft: #10303f;
    --ok: #34d1a5; --warn: #f7943a; --bad: #f87171; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --canvas: #080b10; --bg: #0d1117; --surface: #161b24; --surface-2: #1d2430; --border: #2a3342; --line: #222a36;
  --text: #e4e9f1; --muted: #93a0b4; --accent: #1ca3db; --accent-ink: #1ca3db; --accent-text: #06202c; --accent-soft: #10303f;
  --ok: #34d1a5; --warn: #f7943a; --bad: #f87171; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--text); font: 15px/1.5 var(--sans); }
h1, h2, h3 { margin: 0; line-height: 1.25; }
[hidden] { display: none !important; }
a { color: var(--accent-ink); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }

/* ---------- Frame: a top bar, then the page in a rounded panel ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1080px; margin: 0 auto; padding: 14px 20px 12px;
}
.brand { display: flex; align-items: center; gap: 14px; color: var(--text); text-decoration: none; }
.brand img { width: 168px; height: auto; display: none; }
:root:not([data-theme="dark"]) .brand .th-light, :root[data-theme="dark"] .brand .th-dark { display: block; }
/* The menu: folder tabs sitting on the page panel; the current one joins it */
.site-tabs {
  display: flex; align-items: flex-end; gap: 2px; max-width: 1080px; margin: 0 auto; padding: 0 18px;
  overflow-x: auto; scrollbar-width: none;
}
.site-tabs::-webkit-scrollbar { display: none; }
.site-tabs a {
  position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px 11px;
  border-radius: 12px 12px 0 0; font-size: .9rem; font-weight: 600; color: var(--muted);
  text-decoration: none; white-space: nowrap;
}
.site-tabs a:hover { color: var(--text); background: color-mix(in srgb, var(--bg) 55%, transparent); }
.site-tabs a[aria-current="page"] { color: var(--text); background: var(--bg); }
.site-tabs a[aria-current="page"] svg { color: var(--accent); }
/* curved feet where the current tab meets the panel */
.site-tabs a[aria-current="page"]::before, .site-tabs a[aria-current="page"]::after {
  content: ""; position: absolute; bottom: 0; width: 12px; height: 12px; pointer-events: none;
}
.site-tabs a[aria-current="page"]::before { left: -12px; background: radial-gradient(circle at 0 0, transparent 11.5px, var(--bg) 12px); }
.site-tabs a[aria-current="page"]::after { right: -12px; background: radial-gradient(circle at 100% 0, transparent 11.5px, var(--bg) 12px); }
.site-tabs svg { flex: none; }
.site-tabs .l-short { display: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 8px;
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
}
.icon-btn:hover { background: var(--surface); color: var(--text); }
.ico-sun { display: none; }
:root[data-theme="dark"] .ico-sun { display: block; }
:root[data-theme="dark"] .ico-moon { display: none; }

.page {
  max-width: 1080px; margin: 0 auto; padding: 28px 28px 32px;
  background: var(--bg); border-radius: 20px;
}
.intro { margin-bottom: 20px; }
.intro h1 { font-size: 1.6rem; font-weight: 700; letter-spacing: -.01em; }
.intro p { margin: 4px 0 0; color: var(--muted); }

footer {
  max-width: 1080px; margin: 0 auto; padding: 18px 20px 28px;
  display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; color: var(--muted); font-size: .85rem;
}
footer a { color: var(--muted); }

/* ---------- Your IP addresses ---------- */
.ips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.ip-card { position: relative; background: var(--surface); border-radius: var(--radius); padding: 16px 18px 18px; min-width: 0; }
.ip-k { display: flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 650; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.ip-v {
  margin-top: 6px; font-family: var(--mono); font-size: 1.45rem; font-weight: 600; letter-spacing: -.01em;
  overflow-wrap: anywhere; min-height: 1.5em;
}
.ip-v.none { color: var(--muted); font-family: var(--sans); font-size: 1.05rem; font-weight: 500; padding-top: .25em; }
.tag.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.ip-note { margin: 4px 0 0; font-size: .85rem; color: var(--muted); }
.ip-card .copy { position: absolute; top: 10px; right: 10px; }
.ip-card .copy:hover { background: var(--surface-2); }
.copy.done { color: var(--ok); }
.tag {
  font-size: .68rem; font-weight: 650; letter-spacing: .02em; text-transform: none;
  padding: 1px 8px; border-radius: 999px; color: var(--accent-ink); background: var(--accent-soft);
}

/* ---------- Tool card with tabs ---------- */
.card { background: var(--surface); border-radius: var(--radius); }
.tabs {
  display: flex; gap: 4px; padding: 8px 8px 0; box-shadow: inset 0 -1px var(--line);
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px;
  font: inherit; font-weight: 600; color: var(--muted); background: none; cursor: pointer;
  border: 0; border-bottom: 2px solid transparent; white-space: nowrap; text-decoration: none;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.tab svg { flex: none; }
.tab[aria-selected="true"] svg { color: var(--accent); }
.no-js .tabs { display: none; }

.panel { padding: 20px 20px 22px; }
.no-js .panel + .panel { border-top: 1px solid var(--line); }
.panel-head { margin-bottom: 14px; }
.panel-head h2 { font-size: 1.1rem; }
.panel-head p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }

/* ---------- Forms ---------- */
.row { display: grid; gap: 12px; align-items: end; }
.row-dns { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.3fr) minmax(0, 1.3fr) auto; }
.row-one { grid-template-columns: minmax(0, 1fr) auto; }
.row-trace { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto; }
.row-opts { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 12px; }
.field { min-width: 0; }
.field > label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 6px; }
input[type="text"], input[type="number"], input[type="password"], select {
  width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px; min-height: 42px;
}
input.mono-in { font-family: var(--mono); font-size: 15px; }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.btn {
  font: inherit; font-weight: 650; min-height: 42px; padding: 0 20px; border-radius: 8px; border: 1px solid transparent;
  background: var(--accent); color: var(--accent-text); cursor: pointer; white-space: nowrap;
}
.btn:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 86%, black); }
.btn:disabled { opacity: .6; cursor: progress; }
.opts { margin-top: 12px; }
.opts > summary {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none;
  font-size: .85rem; font-weight: 600; color: var(--muted);
}
.opts > summary::-webkit-details-marker { display: none; }
.opts > summary::before { content: "›"; display: inline-block; font-size: 1.1rem; line-height: 1; transition: transform .15s; }
.opts[open] > summary::before { transform: rotate(90deg); }
.opts > summary:hover { color: var(--text); }
.checks { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 12px; }
label.check { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; cursor: pointer; }
label.check input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }

/* ---------- Results ---------- */
.result { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.result:empty { display: none; }
.loading { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--accent); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.load-error {
  margin: 0; padding: 10px 12px; border-radius: 8px; color: var(--text);
  background: color-mix(in srgb, var(--bad) 12%, transparent); border: 1px solid color-mix(in srgb, var(--bad) 40%, transparent);
}
.res-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 14px; }
.res-head .what { font-weight: 650; overflow-wrap: anywhere; }
.res-head .meta { color: var(--muted); font-size: .9rem; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; padding: 2px 10px; border-radius: 999px;
  color: var(--muted); background: var(--surface-2);
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 13%, transparent); }
.pill.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.pill.bad { color: var(--bad); background: color-mix(in srgb, var(--bad) 13%, transparent); }

.sec { display: flex; align-items: center; gap: 8px; margin: 18px 0 8px; font-size: .78rem; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.sec:first-child { margin-top: 0; }
.count { font-weight: 700; padding: 0 7px; border-radius: 999px; background: var(--surface-2); letter-spacing: 0; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; font-size: .74rem; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; background: var(--surface-2); }
th, td { padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
td.mono, td .mono { font-family: var(--mono); font-size: .85rem; }
td.wrap { white-space: normal; overflow-wrap: anywhere; min-width: 200px; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.sub { color: var(--muted); font-size: .82rem; }
td .alt { display: block; color: var(--muted); font-size: .82rem; }
td.lost { color: var(--muted); }
td.hop { color: var(--muted); font-weight: 650; width: 1%; }
/* Traceroute, laid out like MTR: stats per hop and a chart (range bar min-max, dot at the average) */
.stats.stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); clear: both; }
table.mtr td { vertical-align: middle; }
table.mtr td.wrap { min-width: 220px; white-space: nowrap; }
table.mtr tr.dest td { background: var(--accent-soft); }
table.mtr tr.dest td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
table.mtr tbody tr:last-child td { border-bottom: 0; }
.mtr-loss { color: var(--warn); font-weight: 650; }
.mtr-more { font-size: .82rem; color: var(--muted); }
.mtr-more summary { cursor: pointer; width: max-content; }
.mtr-more > div { margin-top: 2px; }
th.mtr-c { min-width: 200px; width: 30%; }
th.mtr-c span { text-transform: none; letter-spacing: 0; }
th.mtr-c span:last-child { float: right; }
td.mtr-c { position: relative; padding: 0; min-width: 200px; width: 30%; }
.mtr-g { position: absolute; top: 0; bottom: 0; left: 12px; right: 12px; }
.mtr-g::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--border); }
.mtr-bar { position: absolute; top: calc(50% - 3px); height: 6px; border-radius: 3px; background: #a9c4f1; }
:root[data-theme="dark"] .mtr-bar { background: #34507e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mtr-bar { background: #34507e; } }
.mtr-g svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mtr-g polyline { fill: none; stroke: var(--ok); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.mtr-dot { position: absolute; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2px var(--surface); }
.mtr-note { margin: 8px 0 0; font-size: .82rem; }
.hop-host + .hop-host { margin-top: 6px; }
.empty-line { margin: 0; padding: 10px 12px; color: var(--muted); border: 1px dashed var(--border); border-radius: 10px; font-size: .9rem; }

.stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.stat-k { font-size: .72rem; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.stat-v { font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-v small { font-size: .8rem; font-weight: 600; color: var(--muted); margin-left: 2px; }
.stat-v.ok { color: var(--ok); } .stat-v.warn { color: var(--warn); } .stat-v.bad { color: var(--bad); }

.kv-grid { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 0 0 14px; padding: 14px 16px; background: var(--surface-2); border-radius: 10px; }
.kv-grid dt { color: var(--muted); font-size: .88rem; }
.kv-grid dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.kv-grid dd span { display: block; }

pre.out {
  margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--surface-2);
  font: .82rem/1.5 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 560px; overflow: auto;
}
details.raw { margin-top: 14px; }
details.raw > summary { cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
details.raw > summary:hover { color: var(--text); }

/* Result page reached without JavaScript */
.back { display: inline-block; margin-top: 18px; font-weight: 600; }

/* ---------- /myip/ ---------- */
.myip .ips { margin-bottom: 10px; }
.cli { margin-top: 18px; }
.cli h2 { font-size: 1rem; margin-bottom: 8px; }

/* ---------- /download/ ---------- */
.drop {
  position: relative; display: grid; justify-items: center; gap: 4px; padding: 30px 16px; text-align: center; cursor: pointer;
  border: 2px dashed var(--border); border-radius: var(--radius); background: var(--surface-2); transition: border-color .15s, background .15s;
}
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.drop-ico { color: var(--accent); }
.drop-main strong { color: var(--accent-ink); }
.drop-sub { font-size: .85rem; color: var(--muted); }
#dl-progress { display: grid; gap: 8px; margin-top: 12px; }
#dl-progress:empty { display: none; }
.up-row { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.up-top { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; }
.up-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.up-state { color: var(--muted); white-space: nowrap; }
.up-row.done .up-state { color: var(--ok); font-weight: 600; }
.up-row.failed .up-state { color: var(--bad); font-weight: 600; white-space: normal; text-align: right; }
.bar { height: 6px; margin-top: 8px; border-radius: 999px; background: var(--border); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width .2s; }
.up-row.done .bar span { background: var(--ok); }
.up-row.failed .bar { display: none; }
.dl .sec { margin-top: 24px; }
.sec-note { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 500; }
a.dl-name { font-weight: 600; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
a.dl-name:hover { color: var(--accent-ink); text-decoration: underline; }
td.acts { width: 1%; text-align: right; }
.btn-sm {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; vertical-align: middle;
  font: inherit; font-size: .82rem; font-weight: 600; color: var(--text); background: var(--surface-2);
  border: 1px solid transparent; border-radius: 8px; cursor: pointer;
}
.btn-sm:hover { background: var(--border); }
.btn-sm.done { color: var(--ok); }
.icon-btn.danger { width: 32px; height: 32px; vertical-align: middle; margin-left: 4px; }
.icon-btn.danger:hover { color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); }
.linkish { font: inherit; font-weight: 600; color: var(--accent-ink); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
@media (max-width: 600px) {
  .btn-sm span { display: none; }
  td.sub, th.sub { display: none; }
}

/* ---------- /share/ ---------- */
textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; resize: vertical; min-height: 120px;
}
textarea.mono-in { font-family: var(--mono); font-size: 14px; line-height: 1.5; }
textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
textarea[readonly] { background: var(--surface-2); }
.hint { margin: 6px 0 0; font-size: .82rem; color: var(--muted); }
.field-foot { display: flex; justify-content: space-between; gap: 12px; }
.field-foot .hint { margin-top: 6px; }
.share .field { margin-bottom: 14px; }
.share-opts { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); margin-top: 4px; }
.pass-wrap { position: relative; display: flex; align-items: center; }
.pass-wrap input { padding-right: 84px; }
.pass-wrap .icon-btn { position: absolute; width: 34px; height: 34px; }
.pass-wrap .icon-btn:hover { background: var(--surface-2); }
#pass-show { right: 42px; }
#pass-gen { right: 4px; }
.share-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-row { display: inline-flex; align-items: center; gap: 8px; }
.btn.done, .btn-sm.done { color: var(--accent-text); }
.danger-sm:hover { color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); }
#share-err, #view-err { margin-top: 14px; }
.done-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 12px; }
.done-head .meta { color: var(--muted); font-size: .9rem; }
.link-box { display: flex; gap: 10px; }
.link-box input { flex: 1; min-width: 0; }
#share-done .hint { margin: 10px 0 0; }
#share-done .btn-sm { margin-top: 16px; }
#done-pass { color: var(--warn); font-weight: 600; }
.view-facts { margin: 0 0 16px; }
#view-ready .btn { margin-top: 4px; }
.gone { display: grid; justify-items: center; gap: 6px; padding: 28px 12px; text-align: center; }
.gone-ico { color: var(--muted); }
.gone p { margin: 0; max-width: 52ch; color: var(--muted); }
.how { max-width: 760px; margin: 22px 4px 0; color: var(--muted); font-size: .9rem; }
.how h2 { font-size: 1rem; color: var(--text); margin-bottom: 6px; }
.how ol { margin: 0; padding-left: 20px; }
.how li + li { margin-top: 4px; }
@media (max-width: 720px) {
  .share-opts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .share-opts .field:first-child { grid-column: 1 / -1; }
  .link-box { flex-direction: column; }
}

/* ---------- Narrow screens ---------- */
@media (max-width: 820px) {
  .site-tabs svg { display: none; }
  .row-dns { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .row-dns .f-domain { grid-column: 1 / -1; }
  .row-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .topbar { padding: 10px 14px; }
  .site-tabs { padding: 0 10px; }
  .site-tabs a { padding: 9px 12px 10px; }
  .site-tabs a:has(.l-short) .l-long { display: none; }
  .site-tabs .l-short { display: inline; }
  .brand img { width: 130px; }
  .page { padding: 18px 14px 22px; border-radius: 16px; }
  .intro h1 { font-size: 1.3rem; }
  .ips { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ip-v { font-size: 1.15rem; }
  .panel { padding: 16px 14px 18px; }
  .row-trace, .row-one { grid-template-columns: minmax(0, 1fr); }
  .row-dns .btn, .row-trace .btn, .row-one .btn { grid-column: 1 / -1; }
  .tab { padding: 10px 10px; }
  .tab svg { display: none; }
  footer { padding: 14px 16px 24px; }
}

/* ---- DNS traversal (folded under a DNS result; as in NetDiag) ---- */
details.dns-trace { margin-top: 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
details.dns-trace > summary { cursor: pointer; padding: 10px 14px; font-weight: 650; font-size: .92rem; list-style-position: inside; }
details.dns-trace[open] > summary { border-bottom: 1px solid var(--border); }
.trace-body { padding: 12px 14px 4px; }
.trace-intro { margin: 0 0 12px; }
.trace-stats .stat-v { font-size: 1.05rem; overflow-wrap: anywhere; }
.trace-stats .stat-v .small { font-size: .82rem; }
.small { font-size: .82rem; }
.dns-msg { font-weight: 600; margin: 0 0 10px; }
.dns-msg.bad { color: var(--bad); } .dns-msg.warn { color: var(--warn); }
.dns-warn { color: var(--warn); font-weight: 600; font-size: .88rem; }
.dns-step { padding: 14px 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.dns-step-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.dns-step-n { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-ink); }
.dns-intro { margin: 0; }
.dns-out { font-weight: 600; font-size: .86rem; }
.dns-out.ref { color: var(--accent-ink); }
.dns-out.hit { color: var(--ok); }
.dns-out.warn { color: var(--warn); }
.dns-out.bad { color: var(--bad); }
.dns-agree { font-size: .82rem; font-weight: 650; }
.dns-agree.ok { color: var(--ok); } .dns-agree.warn { color: var(--warn); }
table.dns-servers td, table.dns-servers th { padding: 6px 12px; }
tr.srv-row[aria-expanded] { cursor: pointer; }
tr.srv-row[aria-expanded]:hover td { background: var(--surface-2); }
tr.srv-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.dns-srv .tog { display: inline-block; width: 14px; color: var(--muted); font-weight: 700; transition: transform .15s; }
.dns-srv .tog.none { visibility: hidden; }
tr.srv-row[aria-expanded="true"] .tog { transform: rotate(90deg); }
tr.dns-differs td { background: color-mix(in srgb, var(--warn) 12%, transparent); }
tr.dns-err td { color: var(--muted); }
tr.srv-detail > td { white-space: normal; background: var(--surface-2); padding: 8px 12px 10px 30px; }
.dns-said { border: 1px dashed var(--border); border-radius: 8px; padding: 8px 10px; }
.dns-said-title { font-size: .82rem; font-weight: 650; color: var(--muted); margin-bottom: 4px; }
.dns-sec + .dns-sec { margin-top: 8px; }
.dns-sec-title { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 2px; }
table.dns-rr { font-family: var(--mono); font-size: .8rem; }
table.dns-rr td { padding: 3px 8px; border-bottom: 1px solid var(--line); background: none; }
table.dns-rr tr:last-child td { border-bottom: 0; }
.dns-rr .rr-name { color: var(--muted); }
.dns-rr .rr-ttl { text-align: right; color: var(--muted); }
.dns-rr .rr-data { white-space: normal; overflow-wrap: anywhere; width: 100%; }
.rr-badge { display: inline-block; font-size: .7rem; font-weight: 700; padding: 0 5px; border: 1px solid var(--border); border-radius: 5px; color: var(--muted); }
.dns-rr tr.hit td { background: color-mix(in srgb, var(--ok) 13%, transparent); }
.dns-rr tr.hit .rr-data, .dns-rr tr.hit .rr-name { color: var(--text); font-weight: 600; }
.dns-rr tr.hit .rr-badge { border-color: var(--ok); color: var(--ok); }
.dns-rr tr.ref td { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.dns-rr tr.ref .rr-badge { border-color: var(--accent); color: var(--accent-ink); }

/* ---- Website tests: grade header, check rows ---- */
.row-speed { grid-template-columns: minmax(0, 1fr) 220px auto; }
.row-ssl { grid-template-columns: minmax(0, 1fr) 120px auto; }
@media (max-width: 600px) { .row-speed, .row-ssl { grid-template-columns: minmax(0, 1fr); } }
.grade-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; }
.grade { flex: none; width: 76px; height: 76px; border-radius: 16px; display: grid; place-items: center; font-size: 2.3rem; font-weight: 800; color: #fff; background: var(--muted); letter-spacing: -.02em; }
.grade.ok { background: var(--ok); } .grade.warn { background: var(--warn); } .grade.bad { background: var(--bad); }
:root[data-theme="dark"] .grade { color: #0d1117; }
.grade-info { flex: 1 1 320px; min-width: 0; display: grid; gap: 3px; }
.grade-info .what { font-weight: 700; font-size: 1.05rem; overflow-wrap: anywhere; }
.grade-info .meta { color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }
.scan-form { display: grid; justify-items: center; gap: 4px; }
.scan-box { margin: -4px 0 16px; padding: 12px 14px; border: 1px dashed var(--border); border-radius: 10px; }
.mark { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: .78rem; font-weight: 800; line-height: 1; vertical-align: middle; }
.mark.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 15%, transparent); }
.mark.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 16%, transparent); }
.mark.bad { color: var(--bad); background: color-mix(in srgb, var(--bad) 14%, transparent); }
.mark.info { color: var(--accent-ink); background: var(--accent-soft); font-style: italic; font-family: Georgia, serif; }
.hcheck { display: grid; gap: 8px; }
.hrow { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border-left: 3px solid transparent; }
.hrow.bad { border-left-color: var(--bad); } .hrow.warn { border-left-color: var(--warn); } .hrow.ok { border-left-color: var(--ok); }
.hbody { min-width: 0; display: grid; gap: 2px; }
.hname { font-weight: 650; }
.hval { font-size: .84rem; overflow-wrap: anywhere; }
.hval.missing { color: var(--bad); font-weight: 600; font-size: .86rem; }
.hadv { color: var(--muted); font-size: .86rem; }
.hnote { display: flex; gap: 10px; align-items: center; margin: 8px 0; font-size: .9rem; }
table.raw-headers th { width: 1%; text-transform: none; letter-spacing: 0; font-size: .84rem; color: var(--text); background: none; font-family: var(--mono); }
table.raw-headers tr.h-good th { color: var(--ok); }
table.raw-headers tr.h-bad th { color: var(--bad); }
.small { font-size: .82rem; }
.wrapall { word-break: break-all; }
.kv-grid dd span.muted, .kv-grid dd span.small { display: inline; }
.kv-grid dd span.mono { font-weight: 500; }
/* certification path */
.cert-path { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cp-step { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); position: relative; }
.cp-step + .cp-step::before { content: ""; position: absolute; left: 24px; top: -9px; height: 8px; border-left: 2px solid var(--border); }
.cp-step.missing { border-style: dashed; border-color: var(--bad); padding: 10px 12px; }
.cp-step.missing p { margin: 4px 0 0 34px; }
.cp-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 12px; cursor: pointer; list-style: none; }
.cp-head::-webkit-details-marker { display: none; }
.cp-step.missing .cp-head { padding: 0; cursor: default; }
.cp-n { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--surface-2); font-size: .75rem; font-weight: 700; color: var(--muted); }
.cp-head .pill { margin-left: auto; }
.cp-step details[open] .kv-grid { margin: 0 12px 12px; }
/* full scan */
.scorebars { display: grid; gap: 8px; margin: 0 0 16px; max-width: 640px; }
.sb { display: grid; grid-template-columns: 140px minmax(0, 1fr) 36px; gap: 10px; align-items: center; font-size: .88rem; }
.sb-k { color: var(--muted); font-weight: 600; }
.sb-bar { height: 12px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.sb-bar span { display: block; height: 100%; width: var(--w); border-radius: 6px; background: var(--ok); }
.sb-bar span.warn { background: var(--warn); } .sb-bar span.bad { background: var(--bad); }
.sb-v { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
table.findings td { white-space: normal; padding: 6px 10px; }
table.findings td:nth-child(2) { font-weight: 600; min-width: 170px; max-width: 280px; }
table.findings .cve { display: block; font-weight: 400; font-size: .74rem; color: var(--muted); overflow-wrap: anywhere; }
td.tmark { width: 1%; }
details.fold { margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; }
details.fold > summary { cursor: pointer; padding: 10px 14px; font-weight: 650; }
details.fold[open] > summary { border-bottom: 1px solid var(--line); }
details.fold .table-wrap { border: 0; border-radius: 0 0 10px 10px; }

/* ---- Page speed report ---- */
.score-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.ring { display: grid; justify-items: center; gap: 6px; padding: 12px 6px; background: var(--surface-2); border-radius: 12px; --c: var(--muted); }
.ring.ok { --c: var(--ok); } .ring.warn { --c: var(--warn); } .ring.bad { --c: var(--bad); }
.ring-v { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; font-size: 1.45rem; font-weight: 800; color: var(--c);
  background: radial-gradient(closest-side, var(--surface-2) 79%, transparent 80% 100%), conic-gradient(var(--c) calc(var(--p) * 1%), color-mix(in srgb, var(--c) 16%, transparent) 0); }
.ring-k { font-size: .82rem; font-weight: 650; color: var(--muted); text-align: center; }
.stat-sub { font-size: .72rem; color: var(--muted); margin-top: 2px; }
.film { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.film figure { margin: 0; flex: 0 0 auto; text-align: center; }
.film img { display: block; height: 150px; width: auto; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.film figcaption { font-size: .78rem; color: var(--muted); margin-top: 3px; font-variant-numeric: tabular-nums; }
.film figcaption b { color: var(--accent-ink); }
.typebar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; margin: 4px 0 8px; background: var(--surface-2); }
.typebar span { width: var(--w); min-width: 2px; }
.typelegend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .84rem; margin-bottom: 8px; }
.typelegend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.t-html { background: #1ca3db; } .t-js { background: #e6a700; } .t-css { background: #8e5cd9; } .t-images { background: #2ea86b; }
.t-fonts { background: #d9537e; } .t-xhr { background: #e2742f; } .t-media { background: #5b7fd6; } .t-other { background: #8a94a6; }
.issues { display: grid; gap: 8px; }
.issue { border: 1px solid var(--line); border-left: 3px solid var(--warn); border-radius: 10px; background: var(--surface-2); }
.issue.bad { border-left-color: var(--bad); }
.issue > summary { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; list-style: none; }
.issue > summary::-webkit-details-marker { display: none; }
.issue-t { font-weight: 650; flex: 1; }
.issue-s { font-size: .84rem; font-weight: 650; color: var(--muted); white-space: nowrap; }
.issue-b { padding: 0 14px 12px 44px; font-size: .88rem; }
.issue-b p { margin: 0 0 6px; color: var(--muted); }
.issue-items { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 3px; overflow-wrap: anywhere; font-size: .86rem; }
.issue-items.pad { padding: 10px 14px 12px 32px; }
/* waterfall */
.wf-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.wf-filter button { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; padding: 4px 12px; font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; }
.wf-filter button.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.wf-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .78rem; color: var(--muted); margin-bottom: 8px; }
.wf-legend i { display: inline-block; width: 12px; height: 8px; border-radius: 2px; margin-right: 5px; }
.wf-legend i.ev-dcl, .wf-legend i.ev-load, .wf-legend i.ev-lcp { width: 2px; height: 11px; vertical-align: -1px; }
table.wf { font-size: .82rem; min-width: 860px; table-layout: fixed; }
table.wf th, table.wf td { padding: 4px 8px; }
table.wf th:nth-child(1) { width: 34%; } table.wf th:nth-child(2) { width: 58px; } table.wf th:nth-child(3) { width: 60px; } table.wf th:nth-child(4) { width: 78px; }
th.wf-tl { display: flex; justify-content: space-between; }
tr.wf-row { cursor: pointer; }
tr.wf-row:hover td { background: var(--surface-2); }
td.wf-url { overflow: hidden; text-overflow: ellipsis; }
td.wf-url .tog { display: inline-block; width: 12px; color: var(--muted); font-weight: 700; transition: transform .15s; }
tr.wf-row[aria-expanded="true"] .tog { transform: rotate(90deg); }
.wf-file { font-weight: 600; } .wf-host { color: var(--muted); margin-left: 6px; font-size: .76rem; }
td.wf-bar { padding: 4px 0 !important; }
.wf-track { position: relative; height: 16px; }
.wf-track i { position: absolute; top: 3px; height: 10px; }
.wf-track i.ev { top: -4px; height: 24px; width: 0; border-left: 1px dashed; }
.wf-ms { position: absolute; top: 0; padding-left: 4px; font-size: .72rem; color: var(--muted); white-space: nowrap; }
.p-blocked { background: #c3cad6; } .p-dns { background: #2fb7a6; } .p-connect { background: #f0a030; } .p-ssl { background: #b05fd9; }
.p-send { background: #7a8cff; } .p-wait { background: #2ea86b; } .p-receive { background: #1ca3db; }
.ev-dcl { border-color: #8e5cd9 !important; background: #8e5cd9; } .ev-load { border-color: #c62828 !important; background: #c62828; } .ev-lcp { border-color: #0a7a5f !important; background: #0a7a5f; }
tr.srv-detail .kv-grid { margin: 4px 0 8px; }
.final-shot { padding: 12px; } .final-shot img { max-width: 100%; border: 1px solid var(--line); border-radius: 6px; }
@media (max-width: 720px) { .score-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* IP lookup */
.ipl-result { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ---------- Share button at the top right of a result ---------- */
.share-link { float: right; margin: 0 0 10px 14px; text-decoration: none; color: var(--muted); }
.share-link:hover { color: var(--text); }
.share-link.done { color: var(--ok); }

/* ---------- Your recent tests (Website tests page) ---------- */
.recent { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.recent ul { list-style: none; margin: 8px 0 6px; padding: 0; }
.recent li { padding: 6px 0; overflow-wrap: anywhere; }
.recent li + li { border-top: 1px dashed var(--line); }
.recent li > a:first-child { font-weight: 600; }

/* ---------- DNS tools: SPF, DMARC, DKIM ---------- */
.row-dkim { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr) auto; }
@media (max-width: 700px) { .row-dkim { grid-template-columns: minmax(0, 1fr); } .row-dkim .btn { grid-column: 1 / -1; } }
pre.out.rec { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 16px; }
td.key { word-break: break-all; font-size: .8rem; }
.spf-tree { display: grid; gap: 8px; }
.spf-node { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: var(--surface); }
.spf-node .spf-node { margin-top: 8px; }
.spf-node > summary { cursor: pointer; font-weight: 600; }
.spf-node .table-wrap { margin-top: 8px; }
.spf-terms td:first-child { white-space: nowrap; }
.spf-terms .mark { width: 18px; height: 18px; font-size: .7rem; vertical-align: middle; }
.spf-group { padding: 6px 0; border-top: 1px solid var(--line); }
.spf-group > summary { cursor: pointer; }
.spf-ranges { list-style: none; margin: 6px 0 4px; padding: 0 0 0 18px; columns: 2 260px; column-gap: 24px; }
.spf-ranges li { padding: 1px 0; break-inside: avoid; }
.dkim-one { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ---------- DNS propagation ---------- */
.row-prop { grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) auto; }
@media (max-width: 700px) { .row-prop { grid-template-columns: minmax(0, 1fr); } .row-prop .btn { grid-column: 1 / -1; } }
.prop-expected { margin: 0 0 14px; }
.prop-expected pre.out { margin-top: 4px; }
.prop-map { margin: 6px 0 4px; padding: 10px; border-radius: 12px; background: var(--surface-2); }
.prop-map svg { display: block; width: 100%; height: auto; }
.prop-map .land { fill: color-mix(in srgb, var(--accent) 30%, var(--surface)); stroke: var(--surface-2); stroke-width: .7; }
.prop-map .pin circle { stroke: var(--surface); stroke-width: 2.5; }
.prop-map .pin path { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.prop-map .pin.ok circle { fill: var(--ok); } .prop-map .pin.warn circle { fill: var(--warn); } .prop-map .pin.bad circle { fill: var(--bad); }
:root[data-theme="dark"] .prop-map .pin path { stroke: #0d1117; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .prop-map .pin path { stroke: #0d1117; } }
.prop-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; margin-top: 8px; color: var(--muted); }
.prop-legend .mark { width: 18px; height: 18px; font-size: .7rem; margin-right: 4px; }
.prop-table td.pc { text-align: center; vertical-align: top; padding: 8px 6px; white-space: normal; max-width: 150px; }
.prop-table th.vth { vertical-align: bottom; text-align: center; padding: 10px 4px; }
.prop-table th.vth .vh { display: inline-block; writing-mode: vertical-rl; transform: rotate(180deg); text-align: left; white-space: nowrap; line-height: 1.25; }
.prop-table th.vth .mono { text-transform: none; letter-spacing: 0; }
.prop-table th.vth .sub { display: block; font-size: .66rem; font-weight: 500; text-transform: none; letter-spacing: 0; opacity: .85; }
.prop-table td.pc .mark { width: 20px; height: 20px; font-size: .72rem; }
.prop-table td.pc div { margin-top: 3px; overflow-wrap: anywhere; }
.prop-table td.pc.warn { background: color-mix(in srgb, var(--warn) 7%, transparent); }
.prop-table td.pc.bad { background: color-mix(in srgb, var(--bad) 7%, transparent); }
.prop-table th:first-child { text-align: left; vertical-align: bottom; }
.prop-table .ploc { white-space: nowrap; }
.prop-table .ploc > * { vertical-align: middle; }
.flag { border-radius: 2px; box-shadow: 0 0 0 1px var(--border); margin-right: 6px; }
.flag-code { display: inline-block; font: 700 .68rem var(--mono); padding: 1px 4px; border-radius: 3px; background: var(--surface-2); margin-right: 6px; }

/* ---------- BGP routes ---------- */
a.asn, span.asn { font-family: var(--mono); font-size: .84rem; white-space: nowrap; }
span.asn[title] { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }
.bgp-path { white-space: normal; line-height: 1.7; }
.bgp-path .asn { display: inline-block; padding: 0 5px; margin: 1px 2px 1px 0; border-radius: 5px; background: var(--surface-2); }
.bgp-path sup { font-size: .68rem; color: var(--muted); margin-right: 3px; }
.bgp-comm { max-width: 260px; color: var(--muted); }
.bgp-rrc { border: 1px solid var(--line); border-radius: 10px; margin: 6px 0; }
.bgp-rrc > summary { padding: 9px 12px; cursor: pointer; }
.bgp-rrc[open] > summary { border-bottom: 1px solid var(--line); }
.bgp-rrc .table-wrap { border: 0; border-radius: 0; margin: 0; }
.bgp-up { display: grid; gap: 6px; margin-bottom: 6px; }
.bgp-upr { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 80px; gap: 12px; align-items: center; }
.bgp-upr .bar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.bgp-upr .bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
@media (max-width: 600px) { .bgp-upr { grid-template-columns: minmax(0, 1fr) 70px; } .bgp-upr .bar { display: none; } }

/* ---------- DNSSEC ---------- */
.row-dsec { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; }
@media (max-width: 700px) { .row-dsec { grid-template-columns: minmax(0, 1fr); } .row-dsec .btn { grid-column: 1 / -1; } }
.ok-t { color: var(--ok); font-weight: 650; }
.dsec-res td { vertical-align: top; white-space: normal; }
.dsec-ede { color: var(--warn); }
.dsec-graph { margin: 4px 0; padding: 8px; border-radius: 12px; background: var(--surface-2); overflow-x: auto; }
.dsec-graph svg { display: block; width: 100%; min-width: 560px; height: auto; font-family: var(--sans); }
.dg-zone { fill: var(--surface); stroke: var(--border); stroke-width: 1.5; }
.dg-zone.secure { stroke: color-mix(in srgb, var(--ok) 55%, var(--border)); }
.dg-zone.bogus { stroke: var(--bad); stroke-width: 2; }
.dg-zone.insecure { stroke-dasharray: 6 4; }
.dg-zl { font-size: 12px; font-weight: 700; fill: var(--muted); font-family: var(--mono); }
.dg-n rect { fill: var(--surface); stroke: var(--muted); stroke-width: 1.2; }
.dg-n.sep rect { fill: var(--accent-soft); stroke: var(--accent-ink); }
.dg-n.rr rect { fill: var(--surface-2); }
.dg-n.ok rect { stroke: var(--ok); stroke-width: 1.6; }
.dg-n.bad rect { stroke: var(--bad); stroke-width: 2; }
.dg-n.warn rect { stroke: var(--warn); stroke-width: 1.6; }
.dg-n.na rect { stroke: var(--border); }
.dg-n.dash rect { stroke-dasharray: 5 3; }
.dg-n text { text-anchor: middle; fill: var(--text); }
.dg-n .t1 { font-size: 11.5px; font-weight: 700; }
.dg-n .t2 { font-size: 10px; fill: var(--muted); }
.dg-n.na text { fill: var(--muted); }
.dg-e { fill: none; stroke-width: 1.6; }
.dg-e.ok { stroke: var(--ok); } .dg-e.bad { stroke: var(--bad); stroke-dasharray: 5 3; } .dg-e.na { stroke: var(--muted); stroke-dasharray: 3 3; }
.dg-m.ok { fill: var(--ok); } .dg-m.bad { fill: var(--bad); } .dg-m.na { fill: var(--muted); }
.dsec-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 6px 2px 0; }
.dsec-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dsec-legend .lg { display: inline-block; width: 16px; height: 10px; border-radius: 3px; border: 1.5px solid; }
.lg.ok { border-color: var(--ok); } .lg.bad { border-color: var(--bad); border-style: dashed; } .lg.na { border-color: var(--muted); border-style: dashed; }
.lg.sep { background: var(--accent-soft); border-color: var(--accent-ink); } .lg.zsk { background: var(--surface); border-color: var(--muted); }
.dsec-steps { display: grid; gap: 10px; }
.dsec-zone { border: 1px solid var(--line); border-left: 3px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.dsec-zone.secure { border-left-color: var(--ok); } .dsec-zone.bogus { border-left-color: var(--bad); }
.dsec-zh { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.dsec-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .88rem; }
.dsec-lines li { display: flex; gap: 8px; align-items: flex-start; }
.dsec-lines .mark { width: 18px; height: 18px; font-size: .68rem; margin-top: 1px; }
.dsec-lines .wrap { word-break: break-all; }
.dsec-raw { margin-top: 12px; }
.dsec-raw > summary { cursor: pointer; color: var(--accent-ink); }
