@font-face { font-family: "Overpass"; src: url(../fonts/overpass-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Overpass"; src: url(../fonts/overpass-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Overpass"; src: url(../fonts/overpass-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Overpass Mono"; src: url(../fonts/overpass-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Overpass Mono"; src: url(../fonts/overpass-mono-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --paper: #EEF1F4;
  --sheet: #FFFFFF;
  --ink: #1B2A4A;
  --ink-2: #4A5874;
  --ink-3: #7A869C;
  --rule: #D5DCE5;
  --rule-strong: #B7C2D0;
  --blue: #2F5FA8;
  --blue-soft: #E3EBF7;
  --red: #C8323C;
  --red-soft: #FBE6E7;
  --amber: #B26B00;
  --amber-soft: #FFF1D9;
  --green: #2E7D5B;
  --green-soft: #E1F2EA;
  --crit: #8E1420;
  --focus: #2F5FA8;
  --sans: "Overpass", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Overpass Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --r-sm: 3px;
  --r-md: 6px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #0F1726;
  --sheet: #162036;
  --ink: #E4E9F1;
  --ink-2: #AEB9CB;
  --ink-3: #7C8AA3;
  --rule: #26324B;
  --rule-strong: #34425F;
  --blue: #7FA6E6;
  --blue-soft: #1D2D4D;
  --red: #F06A72;
  --red-soft: #3A1C25;
  --amber: #F0B04A;
  --amber-soft: #352A17;
  --green: #5CC496;
  --green-soft: #15302A;
  --crit: #FF8A92;
  --focus: #9DBDF2;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.55 var(--sans); min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px 64px; }
a { color: var(--blue); text-underline-offset: 2px; }
code, .mono { font-family: var(--mono); font-size: .92em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--sheet); padding: 8px 12px; z-index: 10; }
[hidden] { display: none !important; }

/* ---------- top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1240px; width: 100%; margin: 0 auto; padding: 18px 28px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 34px; height: 24px; color: var(--ink); }
.brand-stripe { stroke: var(--red); }
.brand-name { font-weight: 800; font-size: 20px; letter-spacing: .02em; }
.brand-sub { color: var(--ink-3); font-size: 15px; padding-left: 10px; border-left: 1px solid var(--rule-strong); }
.topnav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.btn {
  font: 600 15px/1 var(--sans); border-radius: var(--r-sm); padding: 11px 16px 9px; cursor: pointer;
  border: 1px solid transparent; color: var(--ink); background: none; display: inline-flex; align-items: center; gap: 8px;
}
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: var(--blue); }
.btn.primary[disabled] { opacity: .6; cursor: progress; }
.btn.ghost { border-color: var(--rule-strong); }
.btn.ghost:hover { border-color: var(--ink-2); background: var(--sheet); }
.icon-btn { width: 38px; height: 38px; border: 1px solid var(--rule-strong); background: none; color: var(--ink-2); border-radius: var(--r-sm); cursor: pointer; display: grid; place-items: center; }
.icon-btn svg { width: 18px; height: 18px; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

/* ---------- intake ---------- */
.intake { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px 48px; padding-top: 40px; }
.intake-copy { grid-column: 1 / -1; max-width: 46rem; }
.intake h1 { font-weight: 800; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.04; letter-spacing: -.02em; margin: 0 0 16px; }
.lede { font-size: 19px; color: var(--ink-2); margin: 0; max-width: 40rem; }
.privacy-badge {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 12px 5px 10px;
  font-size: 14.5px; font-weight: 600; color: var(--green); background: var(--green-soft);
  border: 1px solid color-mix(in srgb, var(--green) 35%, transparent); border-radius: 999px;
}
.deliv { color: var(--ink-2); }
.deliv.warn { color: var(--amber); }
.privacy-badge svg { width: 15px; height: 15px; flex: none; margin-top: -2px; }
.field-label { display: block; font-weight: 600; margin-bottom: 8px; }
.drop { position: relative; }
.drop textarea {
  width: 100%; min-height: 380px; resize: vertical; padding: 18px 20px;
  font: 400 13.5px/1.6 var(--mono); color: var(--ink); background: var(--sheet);
  border: 1px solid var(--rule-strong); border-radius: var(--r-md);
  /* the airmail edge: the one decorative flourish on the page */
  box-shadow: inset 0 6px 0 -0px transparent;
  background-image: repeating-linear-gradient(135deg, var(--red) 0 14px, transparent 14px 22px, var(--blue) 22px 36px, transparent 36px 44px);
  background-size: 100% 6px; background-repeat: no-repeat; background-position: top left;
  background-origin: border-box; padding-top: 22px;
}
.drop textarea::placeholder { color: var(--ink-3); }
.drop textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.drop-hint {
  position: absolute; inset: 0; display: none; place-items: center; font-weight: 800; font-size: 22px;
  border: 2px dashed var(--blue); border-radius: var(--r-md); background: color-mix(in srgb, var(--blue-soft) 88%, transparent); color: var(--blue);
}
.drop.dragging .drop-hint { display: grid; }
.intake-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 14px; margin-top: 14px; }
.file-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-btn:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.samples { color: var(--ink-2); font-size: 15px; flex-basis: 100%; }
.print-only { display: none; }
.btn.small { font-size: 13.5px; padding: 7px 10px 5px; }
.ioc-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 12px 0 4px; }
.ioc-export { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--ink-2); font-size: 14.5px; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.ioc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ioc-table th, .ioc-table td { text-align: left; vertical-align: top; padding: 7px 12px 6px 0; border-top: 1px solid var(--rule); }
.ioc-table th { font-weight: 600; color: var(--ink-3); font-size: 13px; border-top: 0; }
.ioc-table td .mono { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .ioc-table thead { display: none; }
  .ioc-table, .ioc-table tbody, .ioc-table tr, .ioc-table td { display: block; }
  .ioc-table tr { border-top: 1px solid var(--rule); padding: 6px 0; }
  .ioc-table td { border: 0; padding: 1px 0; }
}
.error { color: var(--red); font-weight: 600; margin: 12px 0 0; }
.howto { font-size: 15px; color: var(--ink-2); padding-top: 30px; }
.howto h2 { font-size: 17px; color: var(--ink); margin: 0 0 10px; }
.howto dl { margin: 0; }
.howto dt { font-weight: 600; color: var(--ink); margin-top: 12px; }
.howto dd { margin: 2px 0 0; }
.howto em { font-style: normal; font-weight: 600; color: var(--ink); }
.privacy { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--rule); }
.engine-status { margin: 8px 0 0; font-size: 14px; color: var(--ink-3); padding-left: 16px; position: relative; }
.engine-status:empty { display: none; }
.engine-status::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.engine-status[data-state="ready"]::before { background: var(--green); }
.engine-status[data-state="error"] { color: var(--red); }
.engine-status[data-state="error"]::before { background: var(--red); }
@media (prefers-reduced-motion: no-preference) {
  .engine-status[data-state="loading"]::before { animation: esha-pulse 1.2s ease-in-out infinite; }
}
@keyframes esha-pulse { 50% { opacity: 0.25; } }

/* ---------- report ---------- */
.report { padding-top: 20px; }
.verdict {
  display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 32px; align-items: center;
  padding: 28px 0 30px; border-bottom: 1px solid var(--rule-strong);
}
.postmark { width: 172px; height: 172px; color: var(--tone); position: relative; }
.postmark svg { width: 100%; height: 100%; overflow: visible; }
.postmark .ring { fill: none; stroke: currentColor; }
.postmark .waves { fill: none; stroke: currentColor; stroke-width: 2.5; opacity: .35; }
.postmark text { fill: currentColor; font-family: var(--sans); }
.postmark .score { font-weight: 800; font-size: 46px; letter-spacing: -.03em; }
.postmark .level { font-weight: 800; font-size: 14.5px; letter-spacing: .04em; }
.postmark .arc-text { font-size: 10px; font-weight: 600; letter-spacing: .18em; }
.tone-high { --tone: var(--red); }
.tone-medium { --tone: var(--amber); }
.tone-low { --tone: var(--green); }
.tone-none { --tone: var(--ink-3); }
@media (prefers-reduced-motion: no-preference) {
  .postmark.stamp { animation: stamp .42s cubic-bezier(.2, 1.4, .4, 1) both; }
  @keyframes stamp { from { transform: scale(1.35) rotate(-14deg); opacity: 0; } to { transform: scale(1) rotate(-6deg); opacity: 1; } }
}
.postmark.stamp { transform: rotate(-6deg); }

.subject { font-size: clamp(22px, 2.6vw, 31px); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 12px; overflow-wrap: anywhere; }
.envelope { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 0; font-size: 15.5px; }
.envelope dt { color: var(--ink-3); }
.envelope dd { margin: 0; overflow-wrap: anywhere; }
.envelope .addr { font-family: var(--mono); font-size: 14px; color: var(--ink-2); }
.authrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 10px 3px; border-radius: 99px;
  font-size: 14px; font-weight: 600; border: 1px solid var(--rule-strong); background: var(--sheet);
}
.chip b { font-weight: 800; }
.chip.ok { color: var(--green); border-color: color-mix(in srgb, var(--green) 45%, transparent); background: var(--green-soft); }
.chip.bad { color: var(--red); border-color: color-mix(in srgb, var(--red) 45%, transparent); background: var(--red-soft); }
.chip.warn { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 45%, transparent); background: var(--amber-soft); }
.chip.muted { color: var(--ink-2); }
.chip small { font-weight: 400; font-size: 12.5px; opacity: .85; }

.cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; padding-top: 32px; }
.section-title { font-size: 21px; font-weight: 800; margin: 0 0 4px; letter-spacing: -.005em; }
.section-note { margin: 0 0 18px; color: var(--ink-3); font-size: 15px; }

/* findings */
.findings { list-style: none; margin: 0; padding: 0; }
.finding { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule); }
.finding:first-child { border-top: 0; padding-top: 2px; }
.finding .dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 5px; background: var(--ink-3); }
.finding.critical .dot { background: var(--crit); box-shadow: 0 0 0 3px var(--red-soft); }
.finding.high .dot { background: var(--red); }
.finding.medium .dot { background: var(--amber); }
.finding.low .dot { background: transparent; border: 2px solid var(--amber); }
.finding.info .dot { background: transparent; border: 2px solid var(--ink-3); }
.finding.pass .dot { background: var(--green); }
.finding .t { font-weight: 600; }
.finding .sev { font-size: 13px; color: var(--ink-3); font-weight: 400; margin-left: 6px; }
.finding.critical .sev, .finding.high .sev { color: var(--red); }
.finding .d { color: var(--ink-2); font-size: 15px; overflow-wrap: anywhere; }
.findings-more { margin-top: 6px; }
.finding .rule-id { font: 400 12px/1 var(--mono); color: var(--ink-3); margin-left: 8px; white-space: nowrap; }
.f-more { margin-top: 4px; font-size: 14.5px; color: var(--ink-2); }
.f-more summary { cursor: pointer; color: var(--blue); width: fit-content; }
.f-more p { margin: 6px 0 0; max-width: 62rem; }
.f-attack a { overflow-wrap: anywhere; }

/* ---------- report tabs ---------- */
.tabs { margin-top: 30px; }
/* Tabs wrap rather than scroll, so no section is ever hidden off-screen. */
.tablist { display: flex; flex-wrap: wrap; column-gap: 2px; border-bottom: 1px solid var(--rule-strong); }
.tab {
  font: 600 15px/1 var(--sans); color: var(--ink-2); background: none; border: 0; cursor: pointer;
  padding: 13px 14px 11px; border-bottom: 3px solid transparent; margin-bottom: -1px;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; flex: none;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tab .n { font-size: 12.5px; font-weight: 600; line-height: 1; padding: 4px 7px 3px; border-radius: 10px; background: var(--rule); color: var(--ink-2); }
.tab .n.alert { background: var(--red-soft); color: var(--red); }
.tab:focus-visible { outline-offset: -2px; }
.tabpanel { padding-top: 22px; }
.tabpanel:focus-visible { outline-offset: 6px; }
.tabpanel .findings { max-width: 64rem; }
@media (max-width: 560px) {
  .tab { padding: 11px 10px 9px; font-size: 14.5px; }
}

/* route */
.route { list-style: none; margin: 0; padding: 0; position: relative; }
.route::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: repeating-linear-gradient(to bottom, var(--rule-strong) 0 6px, transparent 6px 11px); }
.hop { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding-bottom: 18px; }
.hop-num {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px;
  background: var(--sheet); border: 2px solid var(--ink); position: relative; z-index: 1; padding-top: 2px;
}
.hop.origin .hop-num { background: var(--ink); color: var(--paper); }
.hop.final .hop-num { border-style: double; border-width: 4px; }
.hop-body { min-width: 0; padding-top: 5px; }
.hop-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.hop-host { font-weight: 600; overflow-wrap: anywhere; }
.hop-to { color: var(--ink-3); }
.hop-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--ink-2); margin-top: 3px; }
.hop-meta .ip { font-family: var(--mono); font-size: 13px; }
.hop-meta .flag { vertical-align: 0; margin-right: 5px; }
.tag { font-size: 12.5px; padding: 1px 7px 0; border-radius: var(--r-sm); border: 1px solid var(--rule-strong); color: var(--ink-2); white-space: nowrap; }
.tag.tls { color: var(--green); border-color: color-mix(in srgb, var(--green) 45%, transparent); }
.tag.notls { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 45%, transparent); }
.tag.priv { color: var(--ink-3); }
.tag.skew { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 45%, transparent); }
.delay { margin-top: 8px; max-width: 420px; }
.delay-bar { height: 6px; background: var(--rule); border-radius: 3px; overflow: hidden; }
.delay-bar span { display: block; height: 100%; border-radius: 3px; min-width: 2px; }
/* Delay bars are red and sized relative to the longest hop (as in Microsoft's Message Header
   Analyzer). Every hop has a time column; the slowest hop's badge is solid red, other hops of
   5 minutes or more are outlined in red, and their rows are tinted. */
.delay-bar span { background: color-mix(in srgb, var(--red) 70%, var(--sheet)); }
.delay.slowest .delay-bar { background: color-mix(in srgb, var(--red) 18%, transparent); }
.delay.slowest .delay-bar span { background: var(--red); }
.hop-body { display: grid; grid-template-columns: minmax(0, 1fr) max-content; gap: 4px 18px; align-items: start; }
.hop-main { min-width: 0; }
.hop-time { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; text-align: right; }
.delay-badge {
  font: 800 19px/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--ink);
  padding: 7px 10px 5px; border-radius: var(--r-sm); border: 1.5px solid var(--rule-strong); background: var(--sheet);
  white-space: nowrap;
}
.hop-clock { display: flex; flex-direction: column; align-items: flex-end; font: 600 13px/1.3 var(--mono); color: var(--ink-2); white-space: nowrap; }
.hop-date { font-weight: 400; font-size: 12px; color: var(--ink-3); }
.hop-time-label { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--red); }
.hop-time.slowest .delay-badge { background: var(--red); border-color: var(--red); color: var(--sheet); }
.hop-time.slow .delay-badge { border-color: var(--red); color: var(--red); }
.hop.slow .hop-body {
  background: var(--red-soft); border-left: 3px solid var(--red); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 8px 12px 10px; margin-top: -3px;
}
.hop.slow .hop-num { border-color: var(--red); color: var(--red); }
.route-summary { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 10px 0 16px; font-size: 15px; }
.route-summary .rs-k { color: var(--ink-3); }
.route-summary .rs-slowest b { color: var(--red); }
@media (max-width: 560px) {
  .hop-body { grid-template-columns: 1fr; }
  .hop-time { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 4px 10px; text-align: left; order: -1; }
  .hop-time-label { order: 2; }
  .hop-clock { flex-direction: row; gap: 8px; align-items: baseline; }
  .delay-badge { font-size: 16px; padding: 5px 8px 4px; }
}
.route-alert {
  margin: 10px 0 18px; padding: 10px 14px; border-left: 3px solid var(--red); background: var(--red-soft);
  border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--ink); font-size: 15px;
}
.route-alert b { color: var(--red); }
.hop-raw { margin-top: 6px; }
.hop-raw summary { font-size: 13.5px; color: var(--ink-3); cursor: pointer; width: max-content; }
.hop-raw pre { font: 12.5px/1.55 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-sm); padding: 10px 12px; margin: 6px 0 0; color: var(--ink-2); }
.route-total { margin: 4px 0 0 50px; color: var(--ink-2); font-size: 15px; }
.geo-note { color: var(--ink-3); font-size: 13.5px; margin-top: 10px; max-width: 34rem; }

/* auth details + headers */
.block { padding-top: 40px; }
.auth-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.auth-cell { padding: 14px 18px 16px 0; border-right: 1px solid var(--rule); }
.auth-cell + .auth-cell { padding-left: 18px; }
.auth-cell:last-child { border-right: 0; }
.auth-cell h3 { font-size: 15px; margin: 0; color: var(--ink-2); font-weight: 600; }
.auth-cell .res { font-size: 26px; font-weight: 800; margin: 2px 0 6px; text-transform: lowercase; }
.auth-cell .res.ok { color: var(--green); } .auth-cell .res.bad { color: var(--red); } .auth-cell .res.warn { color: var(--amber); } .auth-cell .res.muted { color: var(--ink-3); }
.auth-cell p { margin: 2px 0; font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.auth-cell .mono { font-size: 13px; }
.spamline { margin-top: 14px; font-size: 14.5px; color: var(--ink-2); }

.hdr-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 14px; }
.search { flex: 1 1 260px; max-width: 380px; font: 15px var(--sans); padding: 9px 12px 7px; border: 1px solid var(--rule-strong); border-radius: var(--r-sm); background: var(--sheet); color: var(--ink); }
.filters { display: flex; flex-wrap: wrap; gap: 4px; }
.filter { font: 600 14px var(--sans); padding: 6px 11px 4px; border-radius: 99px; border: 1px solid var(--rule-strong); background: none; color: var(--ink-2); cursor: pointer; }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filter .n { font-weight: 400; opacity: .7; margin-left: 3px; }
.hdr-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.hdr-table th, .hdr-table td { text-align: left; vertical-align: top; padding: 9px 12px 8px 0; border-top: 1px solid var(--rule); }
.hdr-table th { width: 250px; font-weight: 600; font-size: 14.5px; overflow-wrap: anywhere; }
.hdr-table td { font: 13px/1.55 var(--mono); color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.hdr-table tr.cat-authentication th { color: var(--blue); }
.hdr-table tr.cat-spam th { color: var(--amber); }
.hdr-table mark { background: var(--amber-soft); color: inherit; border-radius: 2px; }
.empty { color: var(--ink-3); padding: 18px 0; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 10px 16px 8px; border-radius: var(--r-sm); font-weight: 600; z-index: 20; }

.foot { max-width: 1240px; width: 100%; margin: 0 auto; padding: 22px 28px 30px; display: flex; flex-wrap: wrap; gap: 6px 26px; color: var(--ink-3); font-size: 14px; border-top: 1px solid var(--rule); }
.foot a { color: inherit; }

.sub-title { font-size: 17px; font-weight: 800; margin: 30px 0 4px; }
.align-table, .link-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.align-table th, .align-table td, .link-table td { text-align: left; vertical-align: top; padding: 8px 14px 7px 0; border-top: 1px solid var(--rule); }
.align-table thead th { font-weight: 600; color: var(--ink-3); border-top: 0; font-size: 13.5px; }
.align-table tbody th { font-weight: 600; white-space: nowrap; }
.align-table .mono { font-size: 13.5px; overflow-wrap: anywhere; }
.al-state { white-space: nowrap; font-weight: 600; }
.al-icon { display: inline-block; width: 18px; }
.al-yes .al-state { color: var(--green); }
.al-no .al-state { color: var(--red); }
.al-ref .al-state { color: var(--ink-3); font-weight: 400; }
.al-ref td.mono { font-weight: 600; color: var(--ink); }
.al-note { color: var(--ink-3); }
.att-list { list-style: none; margin: 0; padding: 0; }
.att-list li { padding: 9px 0 8px 14px; border-top: 1px solid var(--rule); border-left: 3px solid var(--rule-strong); margin-bottom: 4px; }
.att-list li.risky { border-left-color: var(--red); }
.att-name { font-family: var(--mono); font-weight: 600; font-size: 14px; display: block; overflow-wrap: anywhere; }
.att-list li.risky .att-name { color: var(--red); }
.att-inner { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.att-inner-head { display: block; font-weight: 600; }
.att-inner ul { list-style: none; margin: 4px 0 0; padding: 0 0 0 12px; border-left: 1px dashed var(--rule-strong); }
.att-list .att-inner li { font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere;
  border: 0; padding: 1px 0; margin: 0; }
.att-list .att-inner li.risky { color: var(--red); font-weight: 600; }
.att-inner li.risky::after { content: "  risky"; font-family: var(--sans); font-weight: 400; font-size: 12px; }
.att-inner li.more { font-family: var(--sans); color: var(--ink-3); }
.att-meta { font-size: 13.5px; color: var(--ink-2); }
.link-table td:first-child { width: 26%; }
.link-table td:nth-child(2) { width: 42%; }
.lk-host { font-weight: 600; overflow-wrap: anywhere; }
.lk-text { font-size: 13px; color: var(--ink-3); overflow-wrap: anywhere; }
.lk-href { font-size: 12.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.link-table tr.flagged .lk-host { color: var(--red); }
.lk-flags { display: flex; flex-wrap: wrap; gap: 4px; }
.flag-tag { color: var(--red); border-color: color-mix(in srgb, var(--red) 40%, transparent); white-space: normal; }
.ok-text { color: var(--ink-3); font-size: 13.5px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .cols { grid-template-columns: 1fr; gap: 36px; }
  .auth-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-cell:nth-child(2) { border-right: 0; }
  .auth-cell:nth-child(3) { padding-left: 0; }
  .auth-cell:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 760px) {
  main { padding: 0 18px 48px; }
  .topbar { padding: 14px 18px; }
  .brand-sub { display: none; }
  .intake { grid-template-columns: 1fr; padding-top: 18px; }
  .howto { padding-top: 8px; }
  .drop textarea { min-height: 280px; }
  .verdict { grid-template-columns: 1fr; gap: 18px; }
  .postmark { width: 132px; height: 132px; }
  .topbar { flex-wrap: wrap; }
  .topnav { gap: 6px; }
  .topnav .btn { padding: 9px 11px 7px; font-size: 14px; }
  .hdr-table, .hdr-table tbody, .hdr-table tr, .hdr-table th, .hdr-table td { display: block; width: auto; }
  .hdr-table tr { border-top: 1px solid var(--rule); padding: 8px 0; }
  .hdr-table th, .hdr-table td { border: 0; padding: 0; }
  .hdr-table th { margin-bottom: 2px; }
  .align-table thead { display: none; }
  .align-table, .align-table tbody, .align-table tr, .align-table th, .align-table td,
  .link-table, .link-table tbody, .link-table tr, .link-table td { display: block; width: auto !important; }
  .align-table tr, .link-table tr { border-top: 1px solid var(--rule); padding: 8px 0; }
  .align-table th, .align-table td, .link-table td { border: 0; padding: 1px 0; }
}
@media (max-width: 460px) {
  .topnav { width: 100%; flex-wrap: nowrap; justify-content: space-between; order: 2; gap: 4px; }
  .topnav .btn { padding: 8px 8px 6px; font-size: 13px; }
  .topnav .icon-btn { width: 34px; height: 34px; flex: none; }
}
@media print {
  .print-only { display: block; }
  .ioc-tools { display: none; }
  .tabpanel .section-title { margin-top: 20px; page-break-after: avoid; }
  .finding, .hop, .att-list li, tr { page-break-inside: avoid; }
  .f-more { display: none; }
  .tablist { display: none; }
  .tabpanel[hidden] { display: block !important; }
  .tabpanel { padding-top: 16px; }
  .topbar, .intake, .foot, .hdr-tools, .hop-raw { display: none !important; }
  body { background: #fff; }
}
