#terrain-home .th-dns-directory { grid-template-columns:repeat(3,minmax(0,1fr)); }
#terrain-home .th-mail-panel { margin-top:30px;padding:32px;border:1px solid var(--th-line);background:var(--th-panel); }
#terrain-home .th-mail-panel .th-dns-head h2 { font:400 clamp(25px,3.3vw,38px)/1.15 var(--th-serif);margin:10px 0 18px; }
#terrain-home .th-mail-intro,#terrain-home .th-mail-privacy,#terrain-home .th-mail-hint { color:var(--th-muted);font-size:13px;line-height:1.7; }
#terrain-home .th-mail-intro { max-width:760px;margin:0 0 26px; }
#terrain-home .th-mail-privacy { margin:24px 0 0;font-size:12px; }
#terrain-home .th-mail-primary,#terrain-home .th-mail-address-row button { background:var(--th-lilac);border:0;color:#19151e;font:600 13px 'DM Sans',sans-serif;padding:14px 19px;cursor:pointer; }
#terrain-home .th-mail-primary:disabled,#terrain-home .th-mail-address-row button:disabled { opacity:.5;cursor:wait; }
#terrain-home .th-mail-primary:hover,#terrain-home .th-mail-address-row button:hover { filter:brightness(1.09); }
#terrain-home .th-mail-primary:focus-visible,#terrain-home .th-mail-address-row button:focus-visible,#terrain-home .th-mail-address-row input:focus-visible { outline:2px solid var(--th-peach);outline-offset:3px; }
#terrain-home .th-mail-instructions { margin-top:25px;padding:20px;border:1px solid var(--th-line); }
#terrain-home .th-mail-instructions ol { padding-left:22px;margin:0 0 18px;color:var(--th-ink);font-size:13px;line-height:1.8; }
#terrain-home .th-mail-instructions label { display:block;font-size:12px;font-weight:600;margin-bottom:9px; }
#terrain-home .th-mail-address-row { display:flex;gap:10px; }
#terrain-home .th-mail-address-row input { flex:1;min-width:0;padding:13px 14px;border:1px solid var(--th-line);background:var(--th-bg);color:var(--th-ink);font:13px var(--th-mono); }
#terrain-home .th-mail-status { min-height:22px;margin:15px 0 0;color:var(--th-lilac);font-size:13px; }
#terrain-home .th-mail-status[data-error="true"] { color:var(--th-peach); }
#terrain-home .th-mail-report { margin-top:20px;padding-top:22px;border-top:1px solid var(--th-line); }
#terrain-home .th-mail-report-heading h3 { margin:8px 0 20px;font:400 28px var(--th-serif); }
#terrain-home .th-mail-report-heading { display:flex;align-items:center;justify-content:space-between;gap:20px; }
#terrain-home .th-mail-export { margin:0 0 18px;flex-shrink:0;cursor:pointer;padding:11px 16px;color:var(--th-lilac);background:transparent;border:1px solid var(--th-lilac);font:600 12px 'DM Sans',sans-serif; }
#terrain-home .th-mail-export:hover { background:var(--th-lilac);color:var(--th-bg); }
#terrain-home .th-mail-export:disabled { cursor:wait;opacity:.5; }
#terrain-home .th-mail-export:focus-visible { outline:2px solid var(--th-peach);outline-offset:3px; }
#terrain-home .th-mail-score { padding:22px 24px;margin-bottom:22px;border:1px solid var(--th-line);background:var(--th-bg); }
#terrain-home .th-mail-score-overview { display:flex;align-items:center;justify-content:space-between;gap:24px; }
#terrain-home .th-mail-score-overview h4 { font:400 clamp(22px,3vw,30px) var(--th-serif);margin:8px 0; }
#terrain-home .th-mail-score-overview p:not(.th-label) { font-size:13px;color:var(--th-muted);margin:0 0 14px; }
#terrain-home #mail-score-value { color:var(--th-lilac);font:500 clamp(36px,5vw,56px) var(--th-serif);white-space:nowrap; }
#terrain-home .th-mail-meter { width:100%;height:9px;background:var(--th-line);overflow:hidden; }
#terrain-home .th-mail-meter span { display:block;height:100%;background:var(--th-lilac);transition:width .4s ease; }
#terrain-home .th-mail-meter span[data-band="medium"] { background:var(--th-peach); }
#terrain-home .th-mail-meter span[data-band="low"] { background:#e89ca0; }
#terrain-home .th-mail-score-breakdown { margin-top:15px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 22px; }
#terrain-home .th-mail-score-part { display:grid;grid-template-columns:1fr auto;gap:5px 12px;border-bottom:1px solid var(--th-line);padding:8px 0; }
#terrain-home .th-mail-score-part span { color:var(--th-muted);font-size:12px; }
#terrain-home .th-mail-score-part strong { white-space:nowrap;font:600 12px var(--th-mono); }
#terrain-home .th-mail-score-part small { grid-column:1/-1;color:var(--th-muted);font-size:11px;line-height:1.6; }
#terrain-home .th-mail-scl { margin-top:20px;padding:20px;border-left:3px solid var(--th-lilac);background:var(--th-bg); }
#terrain-home .th-mail-scl h4 { font:400 23px var(--th-serif);margin:0 0 10px; }
#terrain-home .th-mail-scl p { color:var(--th-muted);font-size:12px;line-height:1.7;margin:8px 0; }
#terrain-home .th-mail-scl a { color:var(--th-lilac);text-decoration:underline;text-underline-offset:3px; }
#terrain-home .th-mail-checks { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px; }
#terrain-home .th-mail-check { min-width:0;border:1px solid var(--th-line);padding:18px; }
#terrain-home .th-mail-check-top { display:flex;align-items:center;justify-content:space-between;gap:12px; }
#terrain-home .th-mail-check h4 { margin:0;font:400 22px var(--th-serif); }
#terrain-home .th-mail-check p { font-size:12px;color:var(--th-muted);line-height:1.7;margin:12px 0 0; }
#terrain-home .th-mail-pill { border:1px solid currentColor;padding:5px 8px;font:10px var(--th-mono);white-space:nowrap;text-transform:uppercase; }
#terrain-home .th-mail-pill[data-verdict="pass"] { color:#a5d5a0; }
#terrain-home .th-mail-pill[data-verdict="fail"],#terrain-home .th-mail-pill[data-verdict="permerror"],#terrain-home .th-mail-pill[data-verdict="softfail"] { color:#e89ca0; }
#terrain-home .th-mail-pill[data-verdict="unknown"],#terrain-home .th-mail-pill[data-verdict="none"] { color:var(--th-muted); }
#terrain-home .th-mail-details { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:18px; }
#terrain-home .th-mail-detail { padding:12px 15px;border:1px solid var(--th-line);overflow-wrap:anywhere; }
#terrain-home .th-mail-detail span { display:block;color:var(--th-muted);font-size:11px;margin-bottom:5px; }
#terrain-home .th-mail-detail strong { font:500 13px/1.5 var(--th-mono); }
#terrain-home .th-mail-advice { margin-top:22px; }
#terrain-home .th-mail-advice h4 { font:400 24px var(--th-serif);margin:0 0 12px; }
#terrain-home .th-mail-advice li { color:var(--th-muted);font-size:13px;line-height:1.75;margin-bottom:7px; }
@media(max-width:850px) { #terrain-home .th-dns-directory { grid-template-columns:1fr; } }
@media(max-width:720px) {
  #terrain-home .th-mail-panel { padding:20px; }
  #terrain-home .th-mail-checks,#terrain-home .th-mail-details { grid-template-columns:1fr; }
  #terrain-home .th-mail-address-row { flex-direction:column; }
  #terrain-home .th-mail-address-row input { width:100%;box-sizing:border-box; }
  #terrain-home .th-mail-report-heading { align-items:stretch;flex-direction:column; }
  #terrain-home .th-mail-export { align-self:flex-start; }
  #terrain-home .th-mail-score-overview { align-items:flex-start;flex-direction:column;gap:4px; }
  #terrain-home .th-mail-score-breakdown { grid-template-columns:1fr; }
}
