:root {
  --bg: #f6f7f5; --panel: #ffffff; --ink: #15201a; --muted: #5d6b63; --line: #dfe4df;
  --accent: #2f7d4f; --accent-ink: #ffffff;
  --pass: #1f7a45; --pass-bg: #e3f3e8; --warn: #8a5a00; --warn-bg: #fdf1d6;
  --fail: #b3261e; --fail-bg: #fbe4e2; --info: #3d5a80; --info-bg: #e5edf6; --error: #6b4fa0; --error-bg: #eee7f8;
  --well: #f0f2ee; --well-dark: rgba(20, 40, 28, .07); --well-light: transparent;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1411; --panel: #161d19; --ink: #e4ebe6; --muted: #93a39a; --line: #26302a;
    --accent: #4fb07a; --accent-ink: #08130c;
    --pass: #6fd39a; --pass-bg: #143322; --warn: #f0c060; --warn-bg: #3a2d0e;
    --fail: #ff8a80; --fail-bg: #3d1714; --info: #9dbbe0; --info-bg: #182a3d; --error: #c6a8f5; --error-bg: #2a1f3d;
    --well: #131a16; --well-dark: rgba(0, 0, 0, .35); --well-light: transparent;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1411; --panel: #161d19; --ink: #e4ebe6; --muted: #93a39a; --line: #26302a;
  --accent: #4fb07a; --accent-ink: #08130c;
  --pass: #6fd39a; --pass-bg: #143322; --warn: #f0c060; --warn-bg: #3a2d0e;
  --fail: #ff8a80; --fail-bg: #3d1714; --info: #9dbbe0; --info-bg: #182a3d; --error: #c6a8f5; --error-bg: #2a1f3d;
  --well: #131a16; --well-dark: rgba(0, 0, 0, .35); --well-light: transparent;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light dark; scrollbar-gutter: stable; }
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
}
a { color: var(--accent); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); font-weight: 400; font-size: .85em; }

.top {
  max-width: 1040px; margin: 0 auto; padding: 22px 16px 6px;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none;
  font-weight: 700; font-size: 1.45rem; letter-spacing: -.01em;
}
.brand svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; align-self: center; }
.tag { color: var(--muted); }
.topnav { margin-left: auto; display: flex; gap: 4px; align-self: center; }
.topnav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 7px 12px; border-radius: 9px; }
.topnav a:hover { background: var(--well); }
.topnav a[aria-current="page"] { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.theme { align-self: center; font: inherit; font-size: 1.05rem; line-height: 1; width: 36px; height: 36px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); cursor: pointer; }
.theme:hover { border-color: var(--accent); }

main { max-width: 1040px; margin: 0 auto; padding: 0 16px 40px; }

.search {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 220px) auto; gap: 8px; margin: 14px 0 12px;
}
.search .sel { font-size: .95rem; }
.search input[type=text] {
  width: 100%; min-width: 0; font: inherit; font-size: 1.05rem; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink);
}
.search input[type=text]:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.search button {
  font: inherit; font-weight: 600; padding: 0 22px; border: 0; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink); cursor: pointer;
}
.search button:disabled { opacity: .6; cursor: progress; }
.opts { grid-column: 1 / -1; color: var(--muted); font-size: .92rem; }
.opts summary { cursor: pointer; width: max-content; }
.opts label { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 0 0; }
.opts input[type=text] { font: inherit; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel); color: var(--ink); min-width: 0; flex: 1 1 180px; max-width: 320px; }
.examples { color: var(--muted); font-size: .92rem; margin: 6px 0 18px; }
.examples button { font: inherit; font-family: var(--mono); font-size: .85rem; background: var(--panel);
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; color: var(--ink); cursor: pointer; margin: 2px 2px; }

/* results */
.head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 8px 0 12px; }
.head h2 { margin: 0; font-size: 1.25rem; font-family: var(--mono); word-break: break-all; }
.counts { display: flex; gap: 6px; flex-wrap: wrap; }
.tools { margin-left: auto; display: flex; gap: 6px; }
.tools button { font: inherit; font-size: .85rem; background: transparent; border: 1px solid var(--line);
  border-radius: 8px; padding: 4px 10px; color: var(--ink); cursor: pointer; }
.note-box { background: var(--info-bg); color: var(--info); border-radius: 10px; padding: 12px 14px; margin: 0 0 12px; }
.err { background: var(--fail-bg); color: var(--fail); border-radius: 10px; padding: 12px 14px; }

.pill { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.s-pass { color: var(--pass); background: var(--pass-bg); }
.s-warn { color: var(--warn); background: var(--warn-bg); }
.s-fail { color: var(--fail); background: var(--fail-bg); }
.s-info { color: var(--info); background: var(--info-bg); }
.s-error { color: var(--error); background: var(--error-bg); }
.s-wait { color: var(--muted); background: var(--line); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; margin: 0 0 12px; overflow: hidden; }
.card > header { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; }
.card > header h3 { margin: 0; font-size: 1rem; }
.card > header p { margin: 2px 0 0; color: var(--muted); }
.card.wait > header p::after { content: "checking…"; }
.card .rows { border-top: 1px solid var(--line); }
.r { display: grid; grid-template-columns: 64px minmax(110px, 220px) minmax(0, 1fr); gap: 2px 12px; padding: 8px 14px;
  border-top: 1px solid var(--line); font-size: .93rem; align-items: baseline; }
.r.none { display: block; color: var(--muted); }
.res { font-size: .72rem; font-weight: 800; letter-spacing: .05em; border-radius: 6px; padding: 1px 6px;
  text-align: center; justify-self: start; }
.r .qa { grid-column: 2 / -1; color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
.r .qa code { font-family: var(--mono); }
.tgt { font-family: var(--mono); font-weight: 400; color: var(--muted); font-size: .88rem; }
.rc { color: var(--muted); font-size: .8rem; margin-top: 2px; }
table.summary { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; margin: 0 0 14px; font-size: .9rem; }
table.summary th, table.summary td { text-align: left; padding: 8px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
table.summary td:nth-child(2) { white-space: nowrap; }
table.summary td.rescell { width: 1%; white-space: nowrap; }
table.summary th { color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; border-top: 0; }
table.summary td.tg { font-family: var(--mono); font-size: .82rem; color: var(--muted); white-space: nowrap; }
.tools button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.r:first-child { border-top: 0; }
.r .k { color: var(--muted); font-family: var(--mono); font-size: .85rem; overflow-wrap: anywhere; white-space: pre-wrap; }
.r .v { overflow-wrap: anywhere; }
.r .v code { font-family: var(--mono); font-size: .86rem; }
.r .note { grid-column: 2 / -1; color: var(--muted); font-size: .86rem; overflow-wrap: anywhere; }
.r.s-row-fail { background: color-mix(in srgb, var(--fail-bg) 55%, transparent); }
.r.s-row-warn { background: color-mix(in srgb, var(--warn-bg) 55%, transparent); }
.r .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: var(--line); }
.dot.s-pass { background: var(--pass); } .dot.s-warn { background: var(--warn); } .dot.s-fail { background: var(--fail); }
.dot.s-info { background: var(--info); } .dot.s-error { background: var(--error); }
.more { display: block; width: 100%; font: inherit; font-size: .88rem; text-align: left; padding: 8px 14px;
  border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--accent); cursor: pointer; }

/* subnet sweep */
.bar { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 4px 0 12px; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
table.hosts { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.hosts th, table.hosts td { text-align: left; padding: 7px 14px; border-top: 1px solid var(--line); vertical-align: top; }
table.hosts th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
table.hosts td.rescell { width: 1%; white-space: nowrap; }
table.hosts td:nth-child(2) { font-family: var(--mono); white-space: nowrap; }
table.hosts td { vertical-align: middle; }
table.hosts .bad { color: var(--fail); }
table.hosts a.hit { color: var(--fail); }
table.hosts a.pol { color: var(--warn); }
table.hosts tr.h-fail td { background: color-mix(in srgb, var(--fail-bg) 45%, transparent); }
table.hosts td.ptr { font-family: var(--mono); font-size: .82rem; color: var(--muted); overflow-wrap: anywhere; }

footer { max-width: 1040px; margin: 0 auto; padding: 18px 16px 30px; color: var(--muted); font-size: .85rem;
  border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
footer nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
footer nav a:hover { color: var(--accent); }
footer .fine { flex: 0 1 auto; }
footer nav { margin-left: auto; }
footer nav, footer .donate, footer .fine { white-space: nowrap; }
@media (max-width: 760px) { footer .fine { white-space: normal; flex-basis: 100%; } footer nav { margin-left: 0; } }
/* donate (c.wehack.net's dialog): a soft glow every 45s, none for reduced motion */
.donate { flex: none; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 600;
  font-size: inherit; cursor: pointer; animation: dn-glow 20s ease-in-out 6s infinite; }
.donate .heart { display: inline-block; color: #e0245e; transform-origin: 50% 60%; animation: dn-heart 20s ease-in-out 6s infinite; }
.donate:hover { color: #e0245e; }
.donate:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
/* most of the cycle nothing happens; for about two seconds the word glows red and the heart beats and glows */
@keyframes dn-glow {
  0%, 88%, 100% { color: var(--ink); text-shadow: none; }
  91%, 96% { color: #e0245e; text-shadow: 0 0 10px rgba(224, 36, 94, .55); }
}
@keyframes dn-heart {
  0%, 88%, 100% { transform: scale(1); text-shadow: none; }
  92% { transform: scale(1.6); text-shadow: 0 0 14px rgba(224, 36, 94, .95); }
  96% { transform: scale(1.6); text-shadow: 0 0 10px rgba(224, 36, 94, .7); }
}
}
@media (prefers-reduced-motion: reduce) { .donate, .donate .heart { animation: none; } }
.dn-back { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 16px;
  background: rgba(0, 0, 0, .55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .15s ease; }
.dn-back.on { opacity: 1; }
.dn-back[hidden] { display: none; }
.dn-card { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 20px 20px 18px; border-radius: 16px;
  background: var(--panel); border: 1px solid var(--line); color: var(--ink);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45); transform: translateY(6px) scale(.98); transition: transform .15s ease; }
.dn-back.on .dn-card { transform: none; }
.dn-head { display: flex; align-items: center; justify-content: space-between; }
.dn-head h3 { margin: 0; font-size: 1.15rem; }
.dn-x { border: 0; background: none; color: var(--muted); font-size: 1.1rem; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.dn-x:hover { color: var(--ink); background: var(--line); }
.dn-msg { color: var(--ink); font-size: 1rem; line-height: 1.55; opacity: .92; margin: 10px 0 16px 4px; text-indent: 1em;
  padding: 2px 0 2px 14px; border-left: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); }
.dn-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.dn-tab { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: none; color: var(--muted); font: inherit; font-size: .9rem; cursor: pointer; }
.dn-tab[aria-selected="true"] { color: var(--ink); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.dn-pane { display: flex; flex-direction: column; gap: 6px; }
.dn-qr { align-self: center; width: min(240px, 100%); height: auto; padding: 10px; background: #fff; border-radius: 12px; margin: 4px 0 14px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 6px 20px rgba(0, 0, 0, .18); }
.dn-lbl { color: var(--muted); font-size: .8rem; }
.dn-row { display: flex; gap: 6px; align-items: stretch; margin-bottom: 6px; }
.dn-addr { flex: 1; min-width: 0; display: flex; align-items: center; padding: 10px 12px; border-radius: 10px;
  background: color-mix(in srgb, var(--ink) 6%, transparent); font-family: var(--mono); font-size: .9rem; line-height: 1.45;
  word-break: break-all; user-select: all; }
.dn-tag { font-size: 1rem; font-weight: 700; letter-spacing: .04em; }
.dn-copy, .dn-open, .dn-ppgo {
  --face: color-mix(in srgb, var(--accent) 78%, #fff 22%); --face2: var(--accent); --edge: color-mix(in srgb, var(--accent) 55%, #000 45%);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 70%, #000 30%); border-radius: 10px;
  background: linear-gradient(180deg, var(--face), var(--face2)); color: #fff; font: inherit; font-weight: 700;
  text-decoration: none; text-shadow: 0 1px 1px rgba(0, 0, 0, .3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 3px 0 var(--edge), 0 6px 14px rgba(0, 0, 0, .2);
  cursor: pointer; transition: transform .08s ease, box-shadow .08s ease, filter .15s ease; }
.dn-copy:hover, .dn-open:hover, .dn-ppgo:hover { filter: brightness(1.06); transform: translateY(-1px); }
.dn-copy:active, .dn-open:active, .dn-ppgo:active { transform: translateY(2px); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .2), 0 1px 0 var(--edge); }
.dn-copy:focus-visible, .dn-open:focus-visible, .dn-ppgo:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.dn-copy { flex: none; min-width: 92px; padding: 10px 16px; font-size: .9rem; }
.dn-note { margin: 4px 0 0; color: var(--muted); font-size: .8rem; }
.dn-open { align-self: stretch; margin: 10px 0 6px; padding: 12px 18px; }
.dn-ppgo { width: 100%; margin: 10px 0 6px; padding: 12px 18px; }

/* theme button: a coloured moon in light mode, a coloured sun in dark mode */
.theme { display: inline-grid; place-items: center; padding: 0; }
.theme svg { width: 22px; height: 22px; }
.i-moon path:first-child { fill: #5b63e6; }
.i-moon .star { fill: #f5b301; }
.i-sun circle { fill: #f5a524; }
.i-sun .rays { fill: none; stroke: #f5a524; stroke-width: 2; stroke-linecap: round; }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; }
:root[data-theme="dark"] .i-moon { display: none; }
:root[data-theme="dark"] .i-moon path:first-child { fill: #9aa2ff; }

/* the three kinds of lookup: cards pressed into the page */
.kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 10px 0 26px; }
.kind { font: inherit; text-align: left; color: var(--ink); cursor: pointer; border: 0; border-radius: 18px;
  padding: 16px 18px 15px; background: var(--well); display: grid; grid-template-columns: 1fr; gap: 5px;
  align-content: start; border: 1px solid var(--line);
  box-shadow: inset 0 2px 6px var(--well-dark), inset 0 1px 1px var(--well-dark);
  transition: box-shadow .2s ease, border-color .2s ease; }
.kind:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  box-shadow: inset 0 3px 9px var(--well-dark), inset 0 1px 2px var(--well-dark); }
.kind:active { box-shadow: inset 0 4px 12px var(--well-dark), inset 0 1px 3px var(--well-dark); }
.kind:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ico { grid-row: span 3; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  box-shadow: 0 1px 2px var(--well-dark), 0 2px 6px var(--well-dark); background: var(--panel); }
.ico svg { width: 24px; height: 24px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico-ip svg { stroke: #2f7d4f; } .ico-net svg { stroke: #3d6fd6; } .ico-dom svg { stroke: #c2410c; }
:root[data-theme="dark"] .ico-ip svg { stroke: #6fd39a; } :root[data-theme="dark"] .ico-net svg { stroke: #8fb2ff; }
:root[data-theme="dark"] .ico-dom svg { stroke: #ffa36b; }
.kt { font-weight: 700; font-size: 1.02rem; }
.kd { color: var(--muted); font-size: .9rem; line-height: 1.4; }
.kx { color: var(--accent); font-size: .78rem; font-weight: 600; letter-spacing: .01em; }

/* deliverability test */
.dl-start { margin: 18px 0; }
.dl-go { font: inherit; font-weight: 700; font-size: 1.05rem; padding: 14px 28px; border: 0; border-radius: 12px;
  background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.dl-go:disabled { opacity: .7; cursor: progress; }
.dl-rules { max-width: 680px; font-size: .88rem; }
.dl-addr { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 16px; margin: 14px 0 6px; }
.dl-addr code { font-family: var(--mono); font-size: 1.15rem; font-weight: 700; flex: 1 1 280px; overflow-wrap: anywhere; user-select: all; }
.dl-addr button, .dl-mailto { font: inherit; font-weight: 600; font-size: .9rem; padding: 8px 14px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); text-decoration: none; }
.dl-addr button { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.dl-meta { margin: 0 0 10px; font-size: .85rem; }
.dl-result { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.dl-head { display: flex; gap: 16px; align-items: center; margin-bottom: 10px; }
.dl-head h2 { margin: 0; font-size: 1.1rem; }
.dl-headline { margin: 2px 0 0; font-weight: 600; }
.dl-score { width: 84px; height: 84px; border-radius: 50%; display: grid; place-content: center; text-align: center; flex: none;
  border: 5px solid currentColor; background: var(--panel); }
.dl-score b { font-size: 1.8rem; line-height: 1; } .dl-score span { font-size: .75rem; color: var(--muted); }
.dl-score.s-pass { color: var(--pass); } .dl-score.s-warn { color: var(--warn); } .dl-score.s-fail { color: var(--fail); }
.dl-panel { padding: 0 14px 12px; }
.dl-report { margin-top: 10px; }
.dl-head .chk-go { display: inline-block; margin-top: 4px; }

/* the deliverability live log */
.prog li.ev { padding-bottom: 10px; }
.ev-h { font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.ev-kv { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px; font-size: .86rem; padding: 2px 0; }
.ev-k { color: var(--muted); }
.ev-v { color: var(--ink); overflow-wrap: anywhere; }
.ev-v.good { color: var(--pass); } .ev-v.bad { color: var(--fail); } .ev-v.warn { color: var(--warn); } .ev-v.muted { color: var(--muted); }
@media (max-width: 640px) { .ev-kv { grid-template-columns: 1fr; gap: 0; } .ev-k { font-size: .76rem; } }

/* decoder */
.dmodes { display: flex; gap: 16px; margin: 10px 0 8px; }
.dmodes label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; font-weight: 600; }
.dbox { width: 100%; font-family: var(--mono); font-size: .85rem; padding: 12px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--panel); color: var(--ink); resize: vertical; min-height: 140px; }
.dbox:focus { outline: 2px solid var(--accent); border-color: transparent; }
.dknows { font-size: .82rem; margin: 6px 0 16px; }
.dcard { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0 0 12px; }
.dh { display: flex; align-items: center; gap: 10px; }
.dh { flex-wrap: wrap; }
.dh h3 { margin: 0; font-size: 1rem; }
.dbadges { display: flex; flex-wrap: wrap; gap: 5px; flex: 1; }
.dbadge { font-family: var(--mono); font-size: .68rem; font-weight: 700; letter-spacing: .04em; padding: 2px 7px; border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 13%, transparent); color: var(--accent); white-space: nowrap; }
.dbadge:first-child { background: var(--accent); color: var(--accent-ink); }
.dcopy { font: inherit; font-size: .82rem; border: 1px solid var(--line); background: none; color: var(--ink); border-radius: 8px;
  padding: 4px 10px; cursor: pointer; }
.dabout { margin: 4px 0 8px; color: var(--muted); font-size: .85rem; }
.dout { margin: 0; font-family: var(--mono); font-size: .85rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere;
  background: var(--bg); border-radius: 8px; padding: 10px 12px; max-height: 420px; overflow: auto; }
.dnote { margin: 6px 0 0; color: var(--warn); font-size: .82rem; }

/* email analyzer: the drop zone */
.drop { border: 2px dashed var(--line); border-radius: 14px; padding: 8px; transition: border-color .15s, background .15s; }
.drop.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.drop textarea { border: 0; background: transparent; min-height: 170px; }
.drop textarea:focus { outline: none; }
.dropbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 4px 6px 2px; }
.pick { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 600; font-size: .9rem;
  border: 1px solid var(--line); border-radius: 9px; padding: 6px 12px; background: var(--panel); }
.pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pick:focus-within { outline: 2px solid var(--accent); }
.mime div { white-space: pre; overflow-x: auto; }
.mono-s { font-family: var(--mono); font-size: .8rem; overflow-wrap: anywhere; }

/* Turnstile: shown only when Cloudflare needs you to interact */
.ts { display: flex; justify-content: center; margin: 4px 0; }
.ts:empty { display: none; }
.tshint { text-align: center; color: var(--warn); font-size: .88rem; margin: 2px 0 8px; }

/* email analyzer progress */
.prog { list-style: none; padding: 0; margin: 4px 0 14px; font-size: .9rem; }
.prog li { padding: 4px 0 4px 26px; position: relative; color: var(--muted); }
.prog li::before { content: ''; position: absolute; left: 4px; top: 9px; width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--accent); border-right-color: transparent; animation: spin .8s linear infinite; }
.prog li.done { color: var(--ink); }
.prog .ptime { color: var(--muted); font-variant-numeric: tabular-nums; }
.prog .pwhy { font-size: .8rem; color: var(--warn); margin-top: 3px; }
.prog li.done::before { content: '✓'; border: 0; animation: none; color: var(--pass); top: 3px; width: auto; height: auto; font-weight: 700; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .prog li::before { animation: none; } }
.hbar button.ghost { background: none; color: var(--ink); border: 1px solid var(--line); }

/* email preview and one-click checks */
.quick.with-pv { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 4px 18px; }
.quick.with-pv .pv-thumb { grid-row: span 2; }
.pv-thumb { position: relative; width: 210px; height: 260px; padding: 0; border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; background: #fff; cursor: zoom-in; }
.pv-mini { width: 640px; height: 800px; border: 0; transform: scale(.328); transform-origin: 0 0; pointer-events: none; background: #fff; }
.pv-cap { position: absolute; left: 0; right: 0; bottom: 0; font-size: .72rem; padding: 5px 8px; text-align: left;
  background: color-mix(in srgb, var(--panel) 88%, transparent); color: var(--muted); border-top: 1px solid var(--line); }
.pv-back { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(3px); opacity: 0; transition: opacity .15s ease; }
.pv-back.on { opacity: 1; }
.pv-card { width: min(860px, 100%); height: calc(100vh - 32px); display: flex; flex-direction: column; background: var(--panel);
  border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
.pv-note { margin: 4px 0 10px; font-size: .82rem; }
.pv-full { flex: 1; width: 100%; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.pv-load { margin-left: auto; margin-right: 10px; font: inherit; font-size: .85rem; font-weight: 600; padding: 6px 12px;
  border-radius: 9px; border: 1px solid var(--warn); color: var(--warn); background: var(--warn-bg); cursor: pointer; }
.pv-note.pv-warn { color: var(--warn); }
.cf-back { z-index: 2100; }
.cf-card { width: min(470px, 100%); }
.cf-say { margin: 10px 0 6px; }
.cf-list { margin: 0 0 10px; padding-left: 20px; } .cf-list li { margin: 3px 0; }
.cf-bar { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.cf-no, .cf-yes { font: inherit; font-weight: 600; padding: 9px 18px; border-radius: 10px; cursor: pointer; }
.cf-no { background: none; border: 1px solid var(--line); color: var(--ink); }
.cf-yes { background: var(--warn); border: 1px solid var(--warn); color: #fff; }
.chk-go { font-size: .76rem; font-weight: 600; white-space: nowrap; text-decoration: none; padding: 1px 6px; border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.chk-go:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.mpart { margin: 2px 0 6px 0; } .mpart summary { cursor: pointer; color: var(--accent); font-size: .78rem; }
.mpart pre { margin-top: 6px; }
@media (max-width: 640px) {
  .quick.with-pv { grid-template-columns: 1fr; }
  .pv-thumb { width: 100%; height: 220px; }
  .pv-mini { transform: scale(.5); }
}

/* header analyzer */
.pt { font-size: 1.5rem; margin: 14px 0 4px; }
.hform textarea { width: 100%; font-family: var(--mono); font-size: .82rem; padding: 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink); resize: vertical; min-height: 180px; }
.hform textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.hbar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 10px 0 18px; }
.hbar button { font: inherit; font-weight: 600; padding: 10px 22px; border: 0; border-radius: 10px; background: var(--accent);
  color: var(--accent-ink); cursor: pointer; }
.hbar button:disabled { opacity: .6; }
.hbar .muted { font-size: .85rem; flex: 1 1 300px; }
h2.sh { font-size: 1.05rem; margin: 22px 0 8px; }
.rawh { font-family: var(--mono); font-size: .78rem; background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; overflow-wrap: anywhere; color: var(--muted); }
.rawh div { padding: 2px 0; }
.allh { margin: 18px 0; } .allh summary { cursor: pointer; color: var(--muted); }
td.bad, span.bad, div.bad { color: var(--fail); }
.note-box.slow { background: var(--warn-bg); color: var(--warn); }

/* the lookup at a glance */
.quick { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 0 0 14px;
  box-shadow: 0 1px 2px var(--well-dark); }
.qh { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.qk { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.qt { font-family: var(--mono); font-weight: 700; font-size: 1.05rem; overflow-wrap: anywhere; }
.qg { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px 22px; }
.qi { display: grid; grid-template-columns: 110px 1fr; gap: 8px; font-size: .9rem; align-items: baseline; }
.ql { color: var(--muted); font-size: .8rem; }
.qv { overflow-wrap: anywhere; }
.qv.mono { font-family: var(--mono); font-size: .84rem; }

/* plain words */
.plain { border-radius: 14px; padding: 14px 16px; margin: 0 0 14px; background: var(--panel); border: 1px solid var(--line); }
.plain h3 { margin: 0; font-size: 1.05rem; }
.plain.wait h3 { color: var(--muted); font-weight: 500; }
.plain.p-fail { border-left: 5px solid var(--fail); }
.plain.p-warn { border-left: 5px solid var(--warn); }
.plain.p-pass { border-left: 5px solid var(--pass); }
.plain .muted { margin: 4px 0 0; }
.issue { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--bg); }
td .issue:first-child { margin-top: 0; }
.issue.i-fail { background: var(--fail-bg); } .issue.i-warn { background: var(--warn-bg); }
.issue .it { font-weight: 700; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.issue .sev { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; padding: 1px 7px; border-radius: 999px;
  color: #fff; background: var(--fail); white-space: nowrap; }
.issue .sev.i-warn { background: var(--warn); }
.issue.i-auto { background: var(--info-bg); }
.issue.i-privacy { background: var(--error-bg); }
.issue .sev.i-privacy { background: var(--error); }
.issue .sev.i-auto { background: var(--info); }
:root[data-theme="dark"] .issue .sev { color: #111; }
.issue .say { margin: 6px 0 0; }
.issue .fix { margin: 6px 0 0; }
/* plain words beside the technical detail */
.ibody.two { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.igeek { margin-top: 6px; background: color-mix(in srgb, var(--panel) 70%, transparent); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px; min-width: 0; }
.igeek .gl { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.igeek pre { margin: 0; font-family: var(--mono); font-size: .76rem; line-height: 1.45; white-space: pre-wrap;
  overflow-wrap: anywhere; color: var(--ink); }
@media (max-width: 900px) { .ibody.two { grid-template-columns: 1fr; } }
table.summary td.chk .srcs { color: var(--muted); font-size: .76rem; margin-top: 3px; white-space: normal; max-width: 260px; }
table.summary td.chk .srcs a { color: var(--muted); }
.problems-only table.summary tr[data-s="pass"], .problems-only table.summary tr[data-s="info"] { display: none; }
.r .brief { grid-column: 2 / -1; color: var(--muted); font-size: .8rem; font-style: italic; }

/* usage / sources / terms / privacy */
.doc { max-width: 760px; }
.doc h1 { font-size: 1.6rem; margin: 18px 0 6px; }
.doc h2 { font-size: 1.12rem; margin: 26px 0 6px; }
.doc p, .doc li { color: var(--ink); line-height: 1.6; }
.doc .lead { color: var(--muted); font-size: 1.02rem; }
.doc .updated { color: var(--muted); font-size: .85rem; }
.src { display: grid; grid-template-columns: 48px 1fr; gap: 4px 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.src:first-of-type { border-top: 0; }
.src .logo { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line);
  font-weight: 800; color: var(--accent); grid-row: span 3; }
.src .logo img { width: 30px; height: 30px; object-fit: contain; }
.src h3 { margin: 0; font-size: 1rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.src .meta { color: var(--muted); font-size: .8rem; font-family: var(--mono); }
.src p { margin: 0; color: var(--muted); }
.src:target { background: color-mix(in srgb, var(--accent) 10%, transparent); border-radius: 10px; }

@media (max-width: 640px) {
  .kinds { grid-template-columns: 1fr; gap: 12px; }
  /* with a report on the page the three cards shrink to a row of small buttons, so the results come first */
  .has-report .kinds { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 6px 0 14px; }
  .has-report .kind { padding: 9px 6px; justify-items: center; text-align: center; border-radius: 12px; }
  .has-report .kind .kd, .has-report .kind .kx { display: none; }
  .has-report .kind .kt { font-size: .8rem; }
  .top { padding-top: 16px; }
  .search { grid-template-columns: 1fr; }
  .search .sel { order: 2; }
  .search button { padding: 12px; }
  .r { grid-template-columns: 58px minmax(0, 1fr); }
  .r .v, .r .note, .r .qa { grid-column: 2; }
  .top { gap: 8px 10px; }
  .brand { order: 1; }
  .theme { order: 2; margin-left: auto; }
  .topnav { order: 3; flex: 1 1 100%; margin-left: 0; justify-content: space-between; gap: 2px; }
  .topnav a { padding: 8px 6px; font-size: .9rem; }
  .search #q { order: 1; } .search .sel { order: 2; } .search button { order: 3; }
  .tag { flex: 1 1 100%; order: 3; font-size: .88rem; }
  .topnav a { padding: 8px 10px; }
  .tools { width: 100%; }
  .tools button { flex: 1; padding: 8px 6px; }
  /* every table becomes a stack of cards: one card per row, each cell labelled by its own content */
  table.summary, table.summary tbody, table.summary tr, table.summary td,
  table.hosts, table.hosts tbody, table.hosts tr, table.hosts td { display: block; width: 100%; }
  table.summary thead, table.hosts thead { display: none; }
  table.summary tr, table.hosts tr { padding: 10px 12px; border-top: 1px solid var(--line); }
  table.summary tr:first-child, table.hosts tr:first-child { border-top: 0; }
  table.summary td, table.hosts td { padding: 2px 0; border: 0; }
  table.summary td.rescell { display: inline-block; width: auto; margin-right: 8px; vertical-align: middle; }
  table.summary td.chk { display: inline-block; width: auto; vertical-align: middle; }
  table.summary td.chk .srcs { max-width: none; }
  table.summary td.tg { font-size: .78rem; }
  table.summary td .issue { margin-top: 8px; }
  table.hosts td.rescell { display: inline-block; width: auto; margin-right: 8px; }
  table.hosts td:nth-child(2) { display: inline-block; width: auto; }
  table.hosts td.ptr { font-size: .78rem; }
  .qi { grid-template-columns: 96px 1fr; }
  .dn-card { padding: 16px 14px; }
  .dn-row { flex-wrap: wrap; } .dn-copy { flex: 1; }
  .tools { margin-left: 0; }
  table.hosts th, table.hosts td { padding: 7px 8px; }
  table.hosts td.ptr { font-size: .75rem; }
}
