/* ============================================================
   Uptimia — Free SPF Record Checker (/spf-checker)
   Ported from docs/spf-checker-mockup.html <style> block.

   EVERYTHING is scoped under the root wrapper `.spf` so it can
   never collide with homepage-v30.css / tools.css (both also
   loaded on the page). The mockup's :root custom properties live
   on `.spf` instead of :root; generic @keyframes are renamed
   spf-pulse / spf-rot / spf-land. The mockup's own site chrome
   (.topbar / .nav / .brand / .dock / .foot) is intentionally
   dropped — the real page provides top_menu + footer. Fonts are
   NOT imported here; the site already loads them and we rely on
   the mockup's font-family stacks. Added beyond the mockup:
   `.hero-error` (run-form error banner, sibling convention) and
   `.dim-note` (the IP-test "simplified evaluation" caveat).
   ============================================================ */

/* scoped reset */
.spf,
.spf *,
.spf *::before,
.spf *::after{box-sizing:border-box}
.spf *,
.spf *::before,
.spf *::after{margin:0;padding:0}

/* ---- theme tokens (scoped, not on :root) + base typography ---- */
.spf{
  /* verbatim from www.uptimia.com :root */

  font-family:var(--sans);
  background:var(--bg-2);
  color:var(--ink);
  font-size:15px;line-height:1.55;font-weight:450;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  font-feature-settings:'cv11','ss01','ss03','tnum';
}
.spf a{color:inherit;text-decoration:none}
.spf button{font:inherit;cursor:pointer;background:none;border:0;color:inherit}
.spf input,.spf select{font:inherit;color:inherit}
.spf svg{display:block}

/* run-form error banner (sibling convention — the mockup has no error state) */
.spf .hero-error{
  max-width:720px;margin:16px auto 0;display:flex;align-items:center;gap:10px;
  border:1px solid var(--bad-line);background:var(--bad-soft);
  border-radius:var(--radius-sm);padding:11px 16px;font-size:14px;color:var(--bad);
  text-align:left;
}
.spf .hero-error[hidden]{display:none}

/* the IP-test "simplified evaluation" caveat */
.spf .dim-note{display:block;margin-top:6px;font-size:11.5px;color:var(--soft)}

/* ============================================================
   Uptimia — SPF Record Checker, mockup v1
   Homepage-matched (same token set as www.uptimia.com :root,
   same recipe as website-from-country-mockup.html and the other
   free-tool mockup siblings).
   NEW tool (/spf-checker): fetch TXT, isolate v=spf1, parse the
   whole record against RFC 7208 — and make the 10-DNS-lookup
   budget THE centrepiece: every include expanded recursively
   into a live tree with a running counter, because that's the
   failure nobody sees coming (permerror = SPF silently off).
   Sibling boundary: dns-checker owns resolver propagation,
   blacklist-checker owns sender-IP reputation, domain-checker
   owns WHOIS/expiry — THIS owns the SPF record itself: syntax,
   the lookup budget, the all-policy grade, and the fully
   expanded list of who may send as you.
   Views: landing / checking (live lookup walk) /
   pass (9 of 10 — correct but zero headroom) /
   permerror (12 of 10 — record silently dead) /
   +all (the open door — everyone on Earth authorized).
   SELF-CONSISTENCY: one fixture DNS map + one walk() engine
   produce the tree, the counter, the IP totals and every chip —
   the views can't disagree with each other.
   ============================================================ */

.spf *,
.spf *::before,
.spf *::after{box-sizing:border-box;margin:0;padding:0}

.spf input,
.spf select{font:inherit;color:inherit}

.spf .wrap{max-width:1120px;margin:0 auto;padding:0 24px}

.spf .mono{font-family:var(--mono)}

.spf .micro{font-size:11.5px;font-weight:600;letter-spacing:.09em;text-transform:uppercase;color:var(--soft)}

.spf .view{display:none}

.spf .view.on{display:block}

/* ============================================================
   HERO (dark)
   ============================================================ */

.spf .testbar{
  max-width:720px;margin:34px auto 0;
  display:flex;align-items:stretch;gap:0;
  background:#fff;border-radius:12px;padding:6px;
  box-shadow:0 1px 0 rgba(255,255,255,.06), 0 24px 60px -24px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08);
}

.spf .testbar .field{flex:1;display:flex;align-items:center;gap:11px;padding:0 8px 0 14px;min-width:0}

.spf .testbar .field.opt{flex:.72;border-left:1px solid var(--line)}

.spf .testbar .field svg{color:var(--soft);flex:none}

.spf .testbar input{flex:1;border:0;outline:0;background:none;min-width:0;font-size:16.5px;font-weight:450;color:var(--ink);height:48px}

.spf .testbar .field.opt input{font-size:14px}

.spf .testbar input::placeholder{color:var(--soft)}

.spf .testbar .btn-run{
  display:inline-flex;align-items:center;gap:8px;padding:0 22px;border-radius:8px;
  background:var(--cta);color:var(--cta-ink);font-size:15px;font-weight:650;letter-spacing:-.01em;white-space:nowrap;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22), 0 6px 18px -6px rgba(78,201,126,.55);
  transition:filter .15s,transform .1s;
}

.spf .testbar .btn-run:hover{filter:brightness(1.05)}

.spf .testbar .btn-run:active{transform:scale(.99)}

.spf .adv-strip{
  display:inline-flex;align-items:center;flex-wrap:wrap;justify-content:center;gap:8px 16px;margin:26px auto 0;
  border:1px solid var(--dark-line-2);border-radius:10px;padding:9px 16px;
  background:rgba(255,255,255,.03);
  font-family:var(--mono);font-size:12px;color:var(--dark-muted);
}

.spf .adv-strip .lbl{font-size:10.5px;font-weight:600;letter-spacing:.09em;text-transform:uppercase;color:var(--dark-soft)}

.spf .adv-strip b{color:#fff;font-weight:600}

.spf .adv-strip a{color:var(--accent-bright);font-weight:600}

/* ============================================================
   Light sections
   ============================================================ */
.spf .sec{padding:72px 0 0}

.spf .sec:last-child{padding-bottom:72px}
.spf .sec-head{max-width:640px;margin:0 0 34px}

.spf .sec-head.center{margin:0 auto 38px;text-align:center}

.spf .sec-head .micro{display:block;margin-bottom:12px;color:var(--accent)}

.spf .sec-head h2{font-size:31px;line-height:1.15;font-weight:700;letter-spacing:-.022em;color:var(--ink)}

.spf .sec-head p{margin-top:12px;font-size:15.5px;color:var(--muted)}

.spf .note-mono{font-family:var(--mono);font-size:12px;color:var(--soft)}

/* the-four quad */

/* readout decoder */

/* duo */
.spf .duo{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:start}

.spf .duo-side h3{font-size:22px;line-height:1.2;font-weight:700;letter-spacing:-.018em;margin-bottom:10px}

.spf .duo-side p{font-size:14.5px;line-height:1.65;color:var(--muted);margin-bottom:12px}

.spf .duo-side ul{list-style:none;display:grid;gap:8px;margin:16px 0 20px}

.spf .duo-side li{display:flex;gap:9px;font-size:13.5px;color:var(--muted)}

.spf .duo-side li svg{color:var(--accent);flex:none;margin-top:3px}

.spf .port-row{display:flex;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid var(--bg-3)}

.spf .port-row:last-child{border-bottom:0}

.spf .port-row .pt{flex:none;min-width:170px;font-family:var(--mono);font-size:12px;color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.spf .port-row .pd{flex:1;font-size:12.5px;color:var(--muted)}

/* terminal cheatsheet */
.spf .cheat{max-width:860px;margin:0 auto;display:grid;gap:8px}

.spf .ch-row{display:flex;align-items:center;gap:14px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm);padding:12px 16px;flex-wrap:wrap}

.spf .ch-row b{flex:1;font-size:13.5px;font-weight:600;letter-spacing:-.01em;color:var(--ink-2);min-width:190px}

.spf .cmd{
  display:inline-flex;align-items:center;gap:8px;max-width:100%;
  font-family:var(--mono);font-size:11.5px;color:var(--ink-3);
  background:var(--bg-3);border:1px solid var(--line-2);border-radius:7px;padding:5px 10px;
}

.spf .cmd .c{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.spf .cmd button{color:var(--accent);font-weight:600;font-size:11px;flex:none}

/* FAQ */
.spf .faq{max-width:760px;margin:0 auto}

.spf .faq-item{border-bottom:1px solid var(--line)}

.spf .faq-item:first-child{border-top:1px solid var(--line)}

.spf .faq-q{width:100%;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 2px;text-align:left;font-size:15.5px;font-weight:600;letter-spacing:-.01em;color:var(--ink-2)}

.spf .faq-q .pm{flex:none;width:22px;height:22px;border-radius:50%;border:1px solid var(--line-2);display:flex;align-items:center;justify-content:center;color:var(--soft);font-size:14px;transition:transform .18s var(--ease)}

.spf .faq-item.open .pm{transform:rotate(45deg);color:var(--accent);border-color:var(--accent-line);background:var(--accent-soft)}

/* The open state animates grid-template-rows, NOT a fixed max-height. The 460px
   cap this used to carry was ALREADY CLIPPING — measured 2026-08-03 in Playwright
   against the served page at 1440/768/600/480/390/360/320. At 320px "What does
   +all actually do?" and "I'm at 9 or 10 lookups — how do I get the number down?"
   both measured 473px against the 460px container and lost their closing line;
   on the flattening answer that line is "Flatten only with tooling or monitoring
   that re-checks it" — the guard rail on the most dangerous advice on the page.
   At 360px the same answer sits at 425px, 35px under the cap: one added clause
   from breaking. overflow:hidden, no scrollbar, no symptom. These answers are
   controller copy (WebsiteSpfCheckerController::faqs()), so any future edit
   re-breaks a pixel cap. Do NOT reintroduce one. */
.spf .faq-a{display:grid;grid-template-rows:0fr;overflow:hidden;transition:grid-template-rows .25s var(--ease)}

/* The closing gap is a pseudo-element, NOT padding-bottom: a border-box element
   can never shrink below its own padding, so an 18px bottom padding would leave
   an 18px ghost row under every CLOSED question. */
.spf .faq-a p{min-height:0;overflow:hidden;padding:0 40px 0 2px;font-size:14.5px;line-height:1.65;color:var(--muted)}

.spf .faq-a p::after{content:'';display:block;height:18px}

.spf .faq-item.open .faq-a{grid-template-rows:1fr}

/* other tools */
.spf .tools-row{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}

.spf .tool-link{display:flex;flex-direction:column;gap:5px;padding:17px 18px 15px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface);transition:border-color .15s, box-shadow .15s}

.spf .tool-link:hover{border-color:var(--accent-line);box-shadow:0 8px 24px -14px rgba(15,23,42,.18)}

.spf .tool-link b{font-size:14px;font-weight:600;letter-spacing:-.01em;color:var(--ink-2);display:flex;align-items:center;gap:7px}

.spf .tool-link b svg{color:var(--accent)}

.spf .tool-link span{font-size:12.5px;color:var(--soft)}

.spf .tool-link.featured{border-color:var(--accent-line);background:linear-gradient(180deg,#fff,var(--accent-soft))}

/* CTA band + footer */
.spf .band{margin-top:80px;background:var(--dark);color:var(--dark-ink);position:relative;overflow:hidden}

.spf .band::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse 640px 320px at 82% 130%, rgba(78,201,126,.14), transparent 60%);pointer-events:none}

.spf .band-in{max-width:1120px;margin:0 auto;padding:58px 24px;display:grid;grid-template-columns:1.05fr .95fr;gap:48px;align-items:center;position:relative}

.spf .band h2{font-size:30px;line-height:1.14;font-weight:700;letter-spacing:-.022em;color:#fff}

.spf .band p{margin-top:12px;font-size:15px;line-height:1.6;color:var(--dark-muted);max-width:46ch}

.spf .band-form{display:flex;gap:8px;background:#fff;border-radius:12px;padding:6px;box-shadow:0 20px 50px -22px rgba(0,0,0,.5)}

.spf .band-form input{flex:1;border:0;outline:0;background:none;padding:0 14px;height:44px;font-size:14.5px;color:var(--ink);min-width:0}

.spf .band-form input::placeholder{color:var(--soft)}

.spf .band-form .btn-run{display:inline-flex;align-items:center;padding:0 18px;border-radius:8px;background:var(--cta);color:var(--cta-ink);font-size:14px;font-weight:650;white-space:nowrap;box-shadow:inset 0 1px 0 rgba(255,255,255,.22)}

.spf .band-trust{display:flex;gap:20px;margin-top:14px;font-family:var(--mono);font-size:11.5px;color:var(--dark-soft)}

.spf .band-trust span{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}

.spf .band-trust svg{color:var(--accent-bright)}

/* ============================================================
   CHECKING view — the live lookup walk
   ============================================================ */
.spf .runhead{background:var(--dark);color:var(--dark-ink);position:relative;overflow:hidden}

.spf .runhead::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse 700px 300px at 50% 130%, rgba(78,201,126,.10), transparent 60%);pointer-events:none}

.spf .runhead-in{max-width:1120px;margin:0 auto;padding:30px 24px 26px;position:relative}

.spf .runrow{display:flex;align-items:center;gap:16px;flex-wrap:wrap}

.spf .urlchip{display:inline-flex;align-items:center;gap:10px;background:rgba(255,255,255,.05);border:1px solid var(--dark-line-2);border-radius:10px;padding:9px 14px;font-family:var(--mono);font-size:14px;color:#fff}

.spf .urlchip .fav{width:18px;height:18px;border-radius:5px;background:linear-gradient(135deg,#7ea4e8,#4f6ab8);display:flex;align-items:center;justify-content:center;font-size:9px;font-weight:700;color:#fff;font-family:var(--sans)}
/* Real favicon of the checked site (loaded into the .fav box; falls back to the initial). */
.spf .urlchip .fav img{width:16px;height:16px;object-fit:contain;border-radius:3px;display:block}
.spf .urlchip .fav[data-favicon]{background:#fff}

.spf .urlchip .rt{color:var(--accent-bright);font-size:12px;font-weight:600}

.spf .runrow .spacer{flex:1}

.spf .run-status{display:inline-flex;align-items:center;gap:9px;font-size:13.5px;color:var(--dark-muted)}

.spf .run-status .hit{color:var(--amber-bright);font-weight:600}

/* the lookup budget — 10 segments, live */

.spf .budget{display:flex;gap:5px}

.spf .budget .seg.limit-tick{position:relative}

.spf .budget .seg.limit-tick::after{content:'10';position:absolute;top:-19px;right:-8px;font-family:var(--mono);font-size:10px;color:var(--dark-soft)}

.spf .live-zone{padding:34px 0 0}

/* live walk terminal */
.spf .term{background:var(--dark);border:1px solid var(--dark-line-2);border-radius:var(--radius);overflow:hidden;box-shadow:0 20px 50px -28px rgba(0,0,0,.55)}

.spf .term-head .tc b{color:var(--amber-bright)}

/* ============================================================
   RESULT views
   ============================================================ */

/* results body */

/* the raw record, tokenized */
.spf .spf-raw{font-family:var(--mono);font-size:12.5px;line-height:2.15;word-break:break-word}

/* white-space:nowrap used to sit here. It suppresses line breaking outright, so
   `.spf-raw`'s word-break could not split the child either and
   `exists:%{i}._spf.corp.salesforce.com` ran 11px past a 320px viewport, where
   tools.css's body{overflow-x:clip} silently cut it off (measured 2026-08-03 on
   /spf-checker/salesforce.com). Every token is ONE whitespace-free SPF term
   (parseTerms splits on whitespace), so dropping nowrap changes nothing for the
   short ones — there is no space to break at — while max-width + overflow-wrap
   let an over-long term break inside itself instead of leaving the card. */
.spf .tok{display:inline-block;max-width:100%;border-radius:6px;padding:1px 7px;margin:0 3px 3px 0;border:1px solid var(--line-2);background:var(--bg-3);color:var(--ink-3);overflow-wrap:anywhere}

.spf .tok.ver{color:var(--soft);background:var(--bg-2);border-style:dashed}

.spf .tok.lk{border-color:#d8dcea;background:#f2f4fa;color:#40518f}

.spf .tok.ip{border-color:var(--accent-line);background:var(--accent-soft);color:var(--accent-2)}

.spf .tok.all-good{border-color:var(--accent-line);background:var(--accent-soft);color:var(--accent);font-weight:600}

.spf .tok.all-warn{border-color:var(--warn-line);background:var(--warn-soft);color:var(--warn);font-weight:600}

.spf .tok.all-bad{border-color:var(--bad-line);background:var(--bad-soft);color:var(--bad);font-weight:700}

.spf .tok.dep{border-color:var(--warn-line);background:var(--warn-soft);color:var(--warn);text-decoration:underline wavy rgba(182,120,0,.5)}

.spf .tok.dead{border-color:var(--bad-line);background:var(--bad-soft);color:var(--bad);text-decoration:line-through}

.spf .rec-note{margin-top:10px;font-size:12.5px;color:var(--muted)}

.spf .rec-note b{color:var(--ink-2)}

/* the include tree — THE centrepiece */
/* minmax(0,1fr), not the default auto track: .tr-row is a flex row whose
   min-content includes the nowrap .tm label and the flex:none .pill, so an auto
   track grows past the card and the row's text spills over the right edge
   instead of ellipsing. Capping the track lets .td (min-width:0) truncate. */
.spf .tree{display:grid;grid-template-columns:minmax(0,1fr)}

.spf .tr-row{display:flex;min-width:0;align-items:center;gap:10px;padding:7.5px 0;border-bottom:1px solid var(--bg-3);font-size:12.5px}

.spf .tr-row:last-child{border-bottom:0}

.spf .tr-row .lkn{flex:none;width:34px;height:22px;border-radius:6px;display:flex;align-items:center;justify-content:center;font-family:var(--mono);font-size:11px;font-weight:600;background:var(--accent-soft);border:1px solid var(--accent-line);color:var(--accent)}

.spf .tr-row .lkn.free{background:var(--bg-3);border-color:var(--line-2);color:var(--soft);font-weight:500}

.spf .tr-row .lkn.hot{background:var(--warn-soft);border-color:var(--warn-line);color:var(--warn)}

.spf .tr-row .lkn.ovr{background:var(--bad-soft);border-color:var(--bad-line);color:var(--bad)}

.spf .tr-row .ind{flex:none;font-family:var(--mono);font-size:11px;color:var(--faint);white-space:pre}

/* Was flex:none + nowrap, which is a floor .td's ellipsis cannot get under: once
   .td has collapsed the row's min-content is still the whole mechanism token, so
   a long one pushed the card past the viewport (measured 2026-08-03: salesforce.com
   at 360px, `exists:%{i}._spf.mta.salesforce.com` = 252px, docW 364 vs 360).
   Truncating the mechanism would hide the row's identity, so let it SHRINK and
   wrap instead — flex-shrink only engages once .td is already ellipsed, so wide
   screens are unchanged and the token stays fully readable either way. */
.spf .tr-row .tm{flex:0 1 auto;min-width:0;font-family:var(--mono);font-size:12px;color:var(--ink-2);font-weight:600;overflow-wrap:anywhere}

.spf .tr-row .tm .q{color:var(--soft);font-weight:500}

.spf .tr-row .td{flex:1;min-width:0;font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.spf .tr-row .td b{color:var(--ink-2);font-weight:600}

.spf .tr-row .pill{flex:none}

.spf .tr-row.is-over{background:linear-gradient(90deg,var(--bad-soft),transparent 70%)}

.spf .tr-row.is-over .tm,
.spf .tr-row.is-over .td{color:var(--bad)}

.spf .tree-cliff{display:flex;align-items:center;gap:10px;margin:2px 0;padding:7px 10px;border:1px dashed var(--bad-line);background:var(--bad-soft);border-radius:8px;font-family:var(--mono);font-size:11.5px;font-weight:600;color:var(--bad)}

.spf .tree-foot{margin-top:12px;font-size:13px;color:var(--muted)}

.spf .tree-foot b{color:var(--ink-2)}

/* budget header inside tree card */
.spf .tree-budget{display:flex;align-items:center;gap:10px}

.spf .tree-budget .tb-n{font-family:var(--mono);font-size:20px;font-weight:600;letter-spacing:-.02em;color:var(--ink)}

.spf .tree-budget .tb-n .of{color:var(--soft);font-size:13px;font-weight:500}

.spf .tree-budget .tb-segs{display:flex;gap:3px}

.spf .tree-budget .tb-segs i{width:14px;height:9px;border-radius:3px;background:var(--bg-3);border:1px solid var(--line-2)}

.spf .tree-budget .tb-segs i.u{background:var(--accent);border-color:var(--accent)}

.spf .tree-budget .tb-segs i.h{background:var(--amber);border-color:var(--amber)}

.spf .tree-budget .tb-segs i.o{background:var(--bad);border-color:var(--bad)}

/* authorized-senders ledger */
.spf .src-row{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--bg-3)}

.spf .src-row:last-child{border-bottom:0}

.spf .src-row .sn{flex:none;min-width:190px;font-family:var(--mono);font-size:12px;color:var(--ink-2);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.spf .src-row .sr{flex:1;font-family:var(--mono);font-size:11px;color:var(--soft);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.spf .src-row .sc{flex:none;font-family:var(--mono);font-size:11.5px;color:var(--ink-3);white-space:nowrap}

.spf .ip-total{display:flex;align-items:baseline;gap:10px;margin-top:14px;padding-top:14px;border-top:1px dashed var(--line-2)}

.spf .ip-total .n{font-family:var(--mono);font-size:24px;font-weight:600;letter-spacing:-.02em;color:var(--ink)}

.spf .ip-total .d{font-size:12.5px;color:var(--muted)}

/* triage list */

.spf .opp:last-child{border-bottom:0}

.spf .opp p b{display:inline;font-size:inherit;color:var(--ink-2)}

.spf .opp p .mono{font-size:11.5px;color:var(--ink-3)}

.spf .opp .act{display:inline-block;margin-top:8px;font-family:var(--mono);font-size:11px;font-weight:600;color:var(--accent);background:var(--accent-soft);border:1px solid var(--accent-line);border-radius:6px;padding:2px 8px;white-space:nowrap}

.spf .opp .act.warn{color:var(--warn);background:var(--warn-soft);border-color:var(--warn-line)}

.spf .opp .act.bad{color:var(--bad);background:var(--bad-soft);border-color:var(--bad-line)}

/* capture cards */

/* tools-page.css sets `.tool .cap-trust span{white-space:nowrap}`, which is fine
   for three-word ticks and not for this page's: "50 monitors in the 30-day trial,
   from 1 on Basic" measured 333px inside a ~271px column at 320px wide. The row
   already wraps between ticks (flex-wrap on the parent); this lets a single long
   tick wrap inside itself too, rather than pushing past the viewport. Scoped to
   .spf so no sibling tool's layout moves. */
.spf .cap-trust span{white-space:normal}


.spf .capture.warn{border-color:var(--warn-line);background:linear-gradient(180deg,#fff,var(--warn-soft));box-shadow:0 1px 2px rgba(15,23,42,.04), 0 16px 40px -22px rgba(182,120,0,.22)}

.spf .capture.bad{border-color:var(--bad-line);background:linear-gradient(180deg,#fff,var(--bad-soft));box-shadow:0 1px 2px rgba(15,23,42,.04), 0 16px 40px -22px rgba(192,56,43,.22)}

.spf .capture h3 em{font-family:var(--serif);font-style:italic;font-weight:500;color:var(--warn)}

.spf .capture.bad h3 em{color:var(--bad)}

.spf .cap-form .btn-warn{
  display:inline-flex;align-items:center;gap:7px;padding:0 16px;border-radius:8px;
  background:var(--warn);color:#fff;font-size:13.5px;font-weight:650;white-space:nowrap;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.15);transition:filter .15s;
}

.spf .cap-form .btn-warn:hover{filter:brightness(1.08)}

.spf .cap-form .btn-bad{
  display:inline-flex;align-items:center;gap:7px;padding:0 16px;border-radius:8px;
  background:var(--bad);color:#fff;font-size:13.5px;font-weight:650;white-space:nowrap;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.15);transition:filter .15s;
}

.spf .cap-form .btn-bad:hover{filter:brightness(1.08)}

.spf .owner-line{margin-top:14px;padding-top:14px;border-top:1px dashed var(--warn-line);font-size:13px;color:var(--muted)}

.spf .owner-line b{color:var(--ink-2)}

.spf .owner-line a{color:var(--accent);font-weight:600}

/* what-we-checked kv */

.spf .kv .v.warn{color:var(--warn);font-weight:550}

.spf .kv .v.good{color:var(--accent);font-weight:550}

/* share / badge */

/* cross-sell */
.spf .deep-link{
  display:flex;align-items:center;gap:14px;padding:16px 18px;
  border:1px solid var(--accent-line);border-radius:var(--radius-sm);
  background:linear-gradient(180deg,#fff,var(--accent-soft));transition:box-shadow .15s;
}

.spf .deep-link:hover{box-shadow:0 10px 26px -16px rgba(0,126,66,.35)}

.spf .deep-link .glyph{flex:none;width:36px;height:36px;border-radius:9px;background:var(--accent-soft);border:1px solid var(--accent-line);color:var(--accent);display:flex;align-items:center;justify-content:center}

.spf .deep-link b{display:block;font-size:13.5px;font-weight:650;color:var(--ink-2)}

.spf .deep-link span{font-size:12px;color:var(--muted)}

.spf .deep-link svg.arr{margin-left:auto;color:var(--accent);flex:none}

.spf .foot-pad{height:74px}

/* containment — body{overflow-x:clip} (tools.css) HIDES horizontal overflow
   instead of scrolling it, so any child that lays out wider than the viewport
   is silently cut off. Two known traps on this family of pages:
   1) the stacked verdict hero keeps align-items:flex-start at ≤960 (tools-page
      .css), so its children size to MAX-CONTENT — the long permalink drags the
      whole hero past the viewport;
   2) grid items default to min-width:auto, so the .cheat rows refuse to shrink
      below their widest command line. */
.spf .verdict-hero > *{min-width:0}
.spf .permalink{max-width:100%;min-width:0}
.spf .badge-code{white-space:normal;overflow-wrap:anywhere}
.spf .verdict-line,.spf .crumb{overflow-wrap:anywhere}
.spf .cheat > *{min-width:0}
.spf .ch-row > *{min-width:0}
@media (max-width:960px){
  .spf .verdict-main,.spf .v-side{width:100%}
}
@media (max-width:620px){
  .spf .upt-badge{max-width:100%;flex-wrap:wrap;height:auto;min-height:30px;row-gap:2px;white-space:normal}
  .spf .port-row{flex-wrap:wrap}
  .spf .port-row .pt{min-width:0}
  .spf .port-row .pd{flex:1 1 100%;order:3}
  /* senders ledger: .sn's 190px floor + .sc's nowrap can't share a 320px
     card — keep name + count on the top line, drop the ranges below. */
  .spf .src-row{flex-wrap:wrap}
  .spf .src-row .sn{flex:1;min-width:0}
  .spf .src-row .sr{flex:1 1 100%;order:3;white-space:normal;overflow-wrap:anywhere}
}

/* responsive */
@media (max-width:960px){
    .spf .duo,
.spf .res-grid{grid-template-columns:1fr}
  .spf .quad{grid-template-columns:1fr 1fr}
  .spf .err-grid{grid-template-columns:1fr 1fr}
  .spf .tools-row{grid-template-columns:1fr 1fr}
  .spf .band-in{grid-template-columns:1fr;gap:28px}
        }

@media (max-width:620px){
    .spf .testbar{flex-direction:column;gap:6px}
  .spf .testbar .field.opt{border-left:0;border-top:1px solid var(--line)}
  .spf .testbar .btn-run{height:46px;justify-content:center}
  .spf .quad,
.spf .err-grid,
.spf .tools-row{grid-template-columns:1fr}
  .spf .tr-row .td{display:none}
}
