:root{color-scheme:light;--ink:#151221;--muted:#475569;--purple:#6920b4;--border:#dfd7eb;--surface:#faf9fc;--green:#146333;--red:#a51d25;--yellow:#825609}
*{box-sizing:border-box}
body{margin:0;background:var(--surface);color:var(--ink);font:18px/1.5 system-ui,sans-serif;min-height:100vh;display:flex;flex-direction:column}
header{background:#fff;border-bottom:1px solid #d5dce6}
.header-inner{max-width:1040px;min-height:65px;padding:0 52px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{font-size:28px;font-weight:750;letter-spacing:.3px;text-decoration:none;color:#142038}
.languages{display:flex;gap:28px}
button{font:650 18px/1.5 system-ui,sans-serif;cursor:pointer}
.languages button{min-height:48px;padding:9px 0;border:0;border-bottom:3px solid transparent;border-radius:0;background:none;color:#142038;font-weight:400}
.languages button[aria-pressed=true]{color:var(--purple);border-bottom-color:var(--purple);font-weight:650}
button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--purple);outline-offset:3px}
button:disabled{cursor:wait;opacity:.65}
main{width:100%;max-width:1040px;padding:36px 52px 56px;margin:0 auto;flex:1}
h1{margin:0 0 12px;text-align:center;font-size:36px;line-height:1.2;font-weight:750}
.intro{text-align:center;color:var(--muted);margin:0 0 26px}
.address-section label{display:block;font-weight:650;margin-bottom:6px;color:#142038}
.address-controls{display:flex;gap:14px;align-items:stretch}
.address-controls input{width:100%;min-width:0;flex:1;border:1px solid #8692a6;border-radius:8px;padding:9px 16px;min-height:48px;background:#fff;color:#142038;font:18px system-ui,sans-serif}
.primary,.secondary{min-height:48px;padding:9px 16px;border:0;border-radius:8px;white-space:nowrap}
.primary{background:var(--purple);color:#fff}
.primary:hover{background:#571a98}
.secondary{color:var(--purple);background:#ede5f7;border:1px solid var(--border)}
.text-button{color:var(--purple);border:0;background:none;padding:4px 0;font-size:16px;white-space:normal;text-align:left}
.text-button:hover{text-decoration:underline}
.card{background:#fff;border:1px solid var(--border);border-radius:14px;margin:24px 0;box-shadow:0 4px 12px #14203805;overflow:hidden}
.card h2{font-size:20px;line-height:1.3;margin:0;font-weight:700}
.card-heading{padding:18px 22px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #e1e7ef}
.explanation{padding:18px 22px}
.explanation ol{padding-left:24px;margin:12px 0}
.explanation li{margin:6px 0}
.muted,.report-expiry{color:var(--muted);font-size:15px}
.muted{margin-bottom:0}
.waiting{padding:20px 22px}
.waiting p{margin:9px 0;color:var(--muted)}
.waiting-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:15px;color:var(--muted)}
.progress{height:5px;border-radius:10px;overflow:hidden;background:#ede5f7;margin-top:18px}
.progress span{display:block;width:35%;height:100%;background:var(--purple);animation:waiting 2s ease-in-out infinite}
@keyframes waiting{0%{transform:translateX(-110%)}100%{transform:translateX(390%)}}
.notice{margin:24px 0 18px;padding:16px 20px;border:1px solid;border-radius:12px}
.notice h2{font-size:21px;margin:0;line-height:1.4}
.notice p{font-size:16px;margin:7px 0 0}
.notice.pass{background:#def4e5;border-color:#9dcdac}
.notice.warn{background:#fff3d4;border-color:#d7a848}
.notice.fail{background:#fce2e4;border-color:#db9b9f}
.metadata{margin:0;padding:8px 22px 18px;display:grid;grid-template-columns:160px minmax(0,1fr);font-size:16px;gap:8px 20px}
.metadata dt{font-weight:650;color:#334155}
.metadata dd{margin:0;overflow-wrap:anywhere}
.check{margin:0 22px;padding:12px 0;border-top:1px solid #e1e7ef}
.check:first-child{border-top:0}
.check:last-child{padding-bottom:18px}
.check-line{display:grid;grid-template-columns:170px minmax(0,1fr) auto;gap:16px;align-items:center}
.check-name{font-weight:650;font-size:17px}
.check-info{font-size:16px;color:var(--muted);overflow-wrap:anywhere}
.badge{display:inline-block;white-space:nowrap;padding:3px 11px;border-radius:20px;font-size:15px;line-height:1.4;font-weight:650}
.badge.pass{color:var(--green);background:#def4e5}
.badge.fail{color:var(--red);background:#fce2e4}
.badge.warn{color:var(--yellow);background:#fff3d4}
.check details{font-size:15px;margin-top:7px;color:var(--muted)}
.check summary{color:var(--purple);cursor:pointer}
.check details p{overflow-wrap:anywhere;margin:6px 0}
.detail-table-wrap{overflow-x:auto;margin:12px 0}
.detail-table{border-collapse:collapse;width:100%;min-width:650px;font-size:15px;table-layout:fixed}
.detail-table th,.detail-table td{border-bottom:1px solid #e1e7ef;text-align:left;vertical-align:top;padding:10px 9px;overflow-wrap:anywhere;white-space:pre-line}
.detail-table th{color:#334155;font-weight:650}
.detail-table th:first-child,.detail-table td:first-child{padding-left:0}
.detail-table td:last-child,.detail-table th:last-child{padding-right:0}
.dns-value{font-family:ui-monospace,monospace;font-size:14px}
.spam-rules th:first-child,.spam-rules td:first-child{width:80px}
.spam-rules th:nth-child(2),.spam-rules td:nth-child(2){width:230px}
.rule-positive{color:var(--green);font-weight:650}
.rule-attention{color:var(--yellow);font-weight:650}
.report-expiry{margin-top:12px}
footer{background:#0c1730;color:#dce4f0;margin-top:34px}
.footer-inner{max-width:1280px;margin:auto;padding:25px 50px 16px;display:grid;grid-template-columns:1fr 1fr;gap:16px 70px;font-size:15px}
.footer-inner strong{font-size:19px;color:#fff}
.footer-inner p{margin:8px 0;color:#b1bed0}
.copyright{grid-column:1/-1;border-top:1px solid #ffffff20;padding-top:13px;margin-top:16px;font-size:13px;letter-spacing:.2px;color:#b1bed0}
[hidden]{display:none!important}
@media(max-width:700px){.header-inner{padding:0 20px;gap:14px}.brand{font-size:23px}.languages{gap:14px}.languages button{font-size:16px}main{padding:28px 20px 36px}h1{font-size:30px}.intro{font-size:16px}.address-controls{flex-wrap:wrap;gap:10px}.address-controls input{flex-basis:100%;font-size:16px}.primary,.secondary{font-size:16px}.card-heading,.waiting-bottom{align-items:flex-start;flex-wrap:wrap;gap:9px}.metadata{grid-template-columns:1fr;gap:3px}.metadata dd{margin-bottom:9px}.check-line{grid-template-columns:minmax(0,1fr) auto;gap:5px 12px}.check-info{grid-column:1/-1;grid-row:2}.footer-inner{padding:24px 20px 16px;grid-template-columns:1fr;gap:12px}.copyright{margin-top:4px}}
@media(prefers-reduced-motion:reduce){.progress span{animation:none;width:100%;opacity:.3}}

/* Completed report: owner's supplied reference. Home and waiting views stay scoped above. */
body.report-mode{background:#f0ebfc;color:#0d0b18;line-height:1.3}
.report-mode>header,.report-mode main>h1,.report-mode .intro,.report-mode .address-section{display:none}
.report-mode main{max-width:1040px;padding:12px 26px 36px}
.report-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 10px;margin-bottom:22px;min-height:48px}
.report-brand{display:flex;align-items:center;gap:20px;color:#080715;text-decoration:none;min-width:0}
.report-brand h1{font-size:32px;line-height:1.15;letter-spacing:-.6px;font-weight:800;text-align:left;margin:0;white-space:nowrap}
.report-icon{width:24px;height:24px;flex:none;vertical-align:middle}
.report-brand .report-brand-icon{width:42px;height:42px;color:#7315ed}
.report-brand-divider{height:42px;width:1px;background:#c4b8d8;flex:none}
.report-copy-button{display:flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:8px 16px;border:1.5px solid #7d20ec;border-radius:12px;background:transparent;color:#6813d1;font-size:17px;font-weight:650;line-height:1.3;white-space:nowrap}
.report-copy-button:hover,.analysis-button:hover{background:#e9dffc}
.report-copy-button .report-icon{width:23px;height:23px}
.report-summary,.report-mode .card{background:#ffffffee;border:1px solid #eee9f7;border-radius:19px;box-shadow:0 5px 14px #6241a61c}
.report-summary{padding:22px 20px 20px;margin:0 0 24px}
.summary-header{display:flex;align-items:center;gap:20px;padding:0 8px}
.summary-shield{width:60px;height:68px;color:#10b447;flex:none}
.report-summary.fail .summary-shield{color:var(--red)}
.report-summary.warn .summary-shield{color:#d88a14}
.summary-text{padding-left:18px;border-left:1px solid #e5dfed;min-width:0}
.report-mode #verdict-title{font-size:28px;font-weight:800;letter-spacing:-.6px;line-height:1.2;margin:0}
.summary-counts{display:flex;align-items:center;gap:0;flex-wrap:wrap;margin-top:10px;font-size:18px}
.summary-count{display:inline-flex;align-items:center;gap:7px;padding:0 14px;border-left:1px solid #e6e0ed;color:#15121e;line-height:1.5}
.summary-count:first-child{padding-left:0;border-left:0}
.summary-count strong{font-weight:750;margin-right:-3px}
.summary-count.pass .report-icon{color:#fff;background:#0ab342;border-radius:50%}
.summary-count.warn .report-icon{color:#f4a50b}
.summary-count.fail .report-icon{color:var(--red)}
.summary-count .report-icon{width:24px;height:24px}
.summary-alerts{display:grid;gap:8px;margin-top:20px}
.summary-alert{display:flex;align-items:center;gap:12px;padding:8px 16px;border-radius:9px;border:1px solid #ffd16c;background:#fff0c7;color:#6f380d;font-size:17px;line-height:1.4}
.summary-alert .report-icon{color:#a45c08}
.summary-alert.fail{background:#fce2e4;color:var(--red);border-color:#e7a3a8}
.summary-alert.fail .report-icon{color:var(--red)}
.report-mode #verdict-note{font-size:16px;color:#5e536b;margin:14px 8px 0}
.report-mode .card{margin:0 0 24px}
.report-mode .card-heading{padding:18px 22px 10px;border:0}
.report-mode .card h2{font-size:28px;font-weight:800;letter-spacing:-.6px;line-height:1.2}
.report-mode .metadata{grid-template-columns:minmax(140px,30%) minmax(0,1fr);gap:0;padding:0 22px 18px;font-size:17px}
.report-mode .metadata dt,.report-mode .metadata dd{border-top:1px solid #ece9f1;padding:7px 0;line-height:1.3;min-width:0}
.report-mode .metadata dt{font-size:16px;color:#585366;font-weight:750;padding-right:10px}
.report-mode .metadata dd{color:#12101b;white-space:pre-line;margin:0}
.report-checks>.card-heading{padding-bottom:14px}
.report-mode #checks{padding:0 20px 18px}
.report-mode .check{margin:0;padding:0;border:0;border-top:1px solid #ece9f1;color:inherit;font-size:17px}
.report-mode .check:first-child{border-top:1px solid #ece9f1}
.report-mode .check:last-child{padding-bottom:0}
.report-mode .check-line{display:grid;grid-template-columns:56px minmax(0,1fr) auto 25px;gap:16px;align-items:center;padding:9px 4px;list-style:none;cursor:pointer;border-radius:9px;color:inherit}
.report-mode .check-line::-webkit-details-marker{display:none}
.report-mode .check-line::marker{content:''}
.check-symbol{display:flex;align-items:center;justify-content:center;width:56px;height:48px;border-radius:11px;background:#f0eafa;color:#17131f}
.check-symbol .report-icon{width:34px;height:34px;stroke-width:1.65}
.check-copy{min-width:0;display:block}
.report-mode .check-name{display:block;font-size:20px;font-weight:800;line-height:1.1;letter-spacing:-.35px}
.report-mode .check-info{display:block;margin-top:3px;font-size:16px;line-height:1.25;color:#474252}
.report-mode .badge{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:4px 12px;border-radius:10px;font-size:17px;font-weight:700;line-height:1.3}
.report-mode .badge .report-icon{width:20px;height:20px}
.report-mode .badge.pass{background:#d4fbd6;color:#0d5d24}
.report-mode .badge.warn{background:#ffedb6;border:1px solid #f3c263;color:#89520a}
.report-mode .badge.fail{background:#fce2e4;color:var(--red)}
.check-chevron{width:20px;height:20px;justify-self:end}
.report-mode .check.warn>.check-line{background:#fff7e7;margin:0 -10px;padding-left:14px;padding-right:14px}
.check.warn .check-symbol{background:#ffedc1;color:#986117}
.report-mode .check[open]{border:1px solid #eee8f5;border-radius:12px}
.report-mode .check[open]>.check-line{background:#f3edfc;margin:0;padding-left:4px;padding-right:4px}
.check[open]>.check-line .check-chevron{transform:rotate(90deg)}
.check-details{padding:0 10px 10px;color:#484153;font-size:17px}
.check-details>p{margin:12px;overflow-wrap:anywhere}
.spam-analysis{padding:17px 18px 18px;border-radius:15px;background:#f3edfc}
.spam-analysis h3,.spam-analysis h4{margin:0 0 18px;color:#100b1b;font-size:26px;line-height:1.2;letter-spacing:-.4px;font-weight:800}
.spam-analysis h4{font-size:24px;margin:20px 0 12px}
.spam-metrics{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.spam-metric{background:#ffffffdf;border:1px solid #ddd4ee;border-radius:15px;padding:12px 16px 10px;min-width:0}
.metric-label{display:block;font-size:18px;font-weight:750;color:#5c566d;line-height:1.3}
.metric-value{display:block;color:#100d1c;font-size:38px;font-weight:800;line-height:1.15;margin-top:4px;overflow-wrap:anywhere}
.metric-value.score-pass{color:#09843c}
.metric-value.score-fail{color:var(--red)}
.spam-explanation{font-size:18px;color:#575064;line-height:1.35;margin:13px 0 0}
.report-mode .detail-table-wrap{margin:0;border:1px solid #d9cfeb;border-radius:12px;overflow:auto;background:#ffffffbd}
.report-mode .detail-table{min-width:0;font-size:17px;table-layout:auto}
.report-mode .detail-table th,.report-mode .detail-table td{padding:10px 12px;white-space:pre-line;line-height:1.3;border-bottom:1px solid #ded7e8}
.report-mode .detail-table tr:last-child td{border-bottom:0}
.report-mode .detail-table th{background:#e9e0f7;color:#51485f;font-weight:750}
.report-mode .spam-rules th:first-child,.report-mode .spam-rules td:first-child{width:34%;padding-left:18px}
.report-mode .spam-rules th:nth-child(2),.report-mode .spam-rules td:nth-child(2){width:16%;white-space:nowrap}
.report-mode .spam-rules th:last-child,.report-mode .spam-rules td:last-child{padding-right:12px}
.rule-code{font-family:ui-monospace,monospace;font-size:15px}
.report-mode .rule-positive{color:#0c9b37;font-weight:800}
.rule-neutral{color:#5c556b;font-weight:700}
.rule-action{display:block;color:#62586e;font-size:15px;margin-top:7px}
.spam-observations{font-size:16px;color:#8b5b12}
.analysis-actions{display:flex;gap:18px;align-items:flex-start;flex-wrap:wrap;margin-top:16px}
.analysis-raw{margin:0;color:#6516ce;max-width:100%;font-size:17px}
.analysis-button,.analysis-copy{display:inline-flex;align-items:center;gap:9px;min-height:44px;line-height:1.3;font-size:17px;list-style:none;cursor:pointer;white-space:nowrap}
.analysis-button{border:1.5px solid #7c25e9;border-radius:12px;padding:8px 14px;color:#6817ce;background:transparent}
.analysis-button::-webkit-details-marker{display:none}
.analysis-button::marker{content:''}
.analysis-copy{border:0;padding:8px 5px;background:transparent;color:#554963;font-weight:500}
.analysis-copy .report-icon{width:22px;height:22px}
.analysis-raw .raw-analysis-output{max-width:100%;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;background:#fff;padding:15px;border:1px solid #dfd4ec;border-radius:10px;color:#42344d;font-size:13px}
.report-mode .report-expiry{font-size:14px;margin:0 4px;color:#6c607e}
@media(min-width:1040px){.report-mode main{padding-left:52px;padding-right:52px}}
@media(max-width:600px){
 .report-mode main{padding:12px 16px 28px}.report-toolbar{padding:0 3px;gap:12px;flex-wrap:wrap}.report-brand{gap:12px}.report-brand h1{font-size:28px}.report-brand .report-brand-icon{width:35px;height:35px}.report-brand-divider{height:35px}
 .report-copy-button{font-size:15px;min-height:40px;padding:7px 11px}.report-summary{padding:18px 14px}.summary-header{gap:10px;padding:0}.summary-shield{width:46px;height:58px}.summary-text{padding-left:12px}.report-mode #verdict-title{font-size:23px}.summary-counts{font-size:15px;gap:5px}.summary-count{padding:0 7px;gap:5px}.summary-count .report-icon{width:20px;height:20px}.summary-alert{font-size:15px;padding:8px 10px;gap:9px}
 .report-mode .card-heading{padding:17px 17px 10px}.report-mode .card h2{font-size:25px}.report-mode .metadata{padding:0 17px 16px;grid-template-columns:minmax(100px,33%) minmax(0,1fr);font-size:15px}.report-mode .metadata dt{font-size:14px}
 .report-mode #checks{padding:0 12px 14px}.report-mode .check-line{grid-template-columns:42px minmax(0,1fr) auto 17px;gap:9px;padding:10px 0}.check-symbol{width:42px;height:44px;border-radius:9px}.check-symbol .report-icon{width:29px;height:29px}.report-mode .check-name{font-size:17px}.report-mode .check-info{font-size:14px}.report-mode .badge{font-size:14px;padding:4px 7px;gap:3px}.report-mode .badge .report-icon{width:17px;height:17px}.check-chevron{width:17px;height:17px}
 .report-mode .check.warn>.check-line{margin:0 -6px;padding-left:6px;padding-right:6px}.check-details{padding:0 5px 7px}.spam-analysis{padding:15px 12px}.spam-analysis h3{font-size:23px}.spam-analysis h4{font-size:21px}.spam-metrics{gap:10px}.spam-metric{padding:11px 12px}.metric-label{font-size:15px}.metric-value{font-size:32px}.spam-explanation{font-size:16px}.report-mode .detail-table{font-size:14px}.report-mode .detail-table th,.report-mode .detail-table td{padding:9px 7px}.report-mode .spam-rules th:first-child,.report-mode .spam-rules td:first-child{padding-left:9px}.rule-code{font-size:12px}.rule-action{font-size:13px}.analysis-actions{gap:8px}.analysis-button,.analysis-copy{font-size:15px}
}
