/* DMARC Glass — same design language as Spam Glass. No external assets. */
:root {
  --bg: #f6f7f9; --card: #fff; --ink: #0f172a; --muted: #5b6474; --line: #e3e6eb; --soft: #f1f3f6;
  --brand: #2563eb; --brand-ink: #fff; --brand-soft: #e8effd;
  --pass: #15803d; --pass-bg: #e9f7ee; --warn: #b45309; --warn-bg: #fdf3e3; --fail: #c81e1e; --fail-bg: #fdecec;
  --info: #1d4ed8; --info-bg: #e8effd; --skip: #64748b; --skip-bg: #eef1f5;
  /* chart marks: validated pair (CVD ΔE 10.8 light / 10.1 dark) — text never uses these */
  --chart-pass: #008f8a; --chart-fail: #e5484d; --grid: #e7e9ee; --axis: #c2c7d0;
  --radius: 14px; --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 16px rgba(15, 23, 42, .04);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120; --card: #121a2b; --ink: #e5e9f0; --muted: #94a0b4; --line: #222c40; --soft: #18223a;
    --brand: #3b82f6; --brand-soft: #15213d; --pass: #4ade80; --pass-bg: #10291b; --warn: #fbbf24; --warn-bg: #2d2310; --fail: #f87171; --fail-bg: #331717;
    --info: #93b4fd; --info-bg: #15213d; --skip: #94a3b8; --skip-bg: #1a2233;
    --chart-pass: #109ca0; --chart-fail: #f0625f; --grid: #222c40; --axis: #3a465e;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-size: 1.4rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
code, .mono { font-family: var(--mono); font-size: .86em; }
[hidden] { display: none !important; }

/* header */
.top { background: #0f172a; color: #fff; position: sticky; top: 0; z-index: 30; padding-top: env(safe-area-inset-top); }
.top-in { display: flex; align-items: center; gap: 14px; min-height: 56px; flex-wrap: wrap; }
.brand { color: #fff; text-decoration: none; font-weight: 700; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.logo { width: 22px; height: 22px; border-radius: 6px; flex: none;
  background: linear-gradient(#fff, #fff) no-repeat 5px 12px / 3px 6px, linear-gradient(#fff, #fff) no-repeat 9.5px 8px / 3px 10px,
    linear-gradient(#fff, #fff) no-repeat 14px 4px / 3px 14px, var(--brand); }
.tabs { display: flex; gap: 4px; overflow-x: auto; flex: 1; }
.tabs a { color: #cbd5e1; text-decoration: none; padding: 8px 12px; border-radius: 8px; white-space: nowrap; position: relative; }
.tabs a[aria-current="page"] { background: rgba(255, 255, 255, .12); color: #fff; }
.nav-badge { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 6px; border-radius: 99px; background: #f59e0b; color: #111; font-size: 11px; font-weight: 800; text-align: center; line-height: 18px; }
.who { display: flex; align-items: center; gap: 10px; margin: 0; }
.who-mail { color: #cbd5e1; font-size: 13px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn.ghost { background: transparent; color: #e2e8f0; border-color: rgba(255, 255, 255, .25); }

main.wrap { padding-top: 18px; padding-bottom: 24px; min-height: 60vh; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; }
.card > h2:first-child, .card > .card-head:first-child { margin-top: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.card-head h2 { margin: 0; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid2 > .card { margin: 0; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], select, textarea {
  font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; min-width: 0;
}
textarea { width: 100%; font-family: var(--mono); font-size: 13px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, summary:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.btn { font: inherit; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 10px; padding: 8px 14px; cursor: pointer; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.btn:hover { border-color: var(--axis); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-weight: 600; }
.btn.danger { color: var(--fail); border-color: var(--fail); background: transparent; }
.btn.small { padding: 4px 10px; font-size: 13px; }
.btn.wide { width: 100%; justify-content: center; padding: 11px 18px; }
.btn:disabled { opacity: .6; cursor: progress; }
.linkbtn { font: inherit; background: none; border: 0; padding: 0; color: var(--brand); cursor: pointer; text-decoration: underline; }
.alert { padding: 10px 12px; border-radius: 10px; margin: 10px 0; }
.alert.bad { background: var(--fail-bg); color: var(--fail); }
.alert.good { background: var(--pass-bg); color: var(--pass); }
.alert.info { background: var(--info-bg); color: var(--info); }
.alert.warn { background: var(--warn-bg); color: var(--warn); }
.lbl { font-size: 13px; font-weight: 600; color: var(--muted); }
.empty { text-align: center; padding: 30px 16px; color: var(--muted); }
.loading { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 30px 0; justify-content: center; }
.spin { width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.busy { opacity: .55; transition: opacity .2s; pointer-events: none; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: #0f172a; color: #fff; padding: 8px 14px; border-radius: 10px; font-size: 14px; z-index: 60; }

.foot { display: flex; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; color: var(--muted); font-size: 12px; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }

/* login */
.login-page { display: flex; min-height: 100vh; align-items: center; justify-content: center; }
.login { width: 100%; max-width: 420px; padding: 24px 16px; }
.login-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; justify-content: center; margin-bottom: 16px; }
.login-card { padding: 24px; }
.login-card input { width: 100%; font-size: 16px; }
.code-input { font-family: var(--mono); font-size: 26px !important; letter-spacing: 8px; text-align: center; }
.login-alt { margin: 12px 0 4px; font-size: 14px; }
.login-foot { text-align: center; font-size: 13px; }

/* scope bar */
.scope { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.scope label { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--muted); font-weight: 600; }
.scope select, .scope input { padding: 7px 10px; font-size: 14px; }
.scope .grow { flex: 1; }
.viewtabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); align-self: flex-end; }
.viewtabs a, .viewtabs button { font: inherit; font-weight: 600; border: 0; background: transparent; color: var(--muted); padding: 6px 16px; border-radius: 9px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.viewtabs [aria-current="page"], .viewtabs [aria-selected="true"] { background: var(--brand); color: var(--brand-ink); }
.subtabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 0 0 14px; overflow-x: auto; }
.subtabs a { padding: 9px 14px; color: var(--muted); text-decoration: none; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.subtabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); }
.subtabs .nav-badge { background: var(--warn); color: #fff; }

/* chips & status */
.chip { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--skip-bg); color: var(--skip); white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.chip.pass, .chip.ok, .chip.good, .chip.imported { background: var(--pass-bg); color: var(--pass); }
.chip.warn, .chip.unassigned, .chip.duplicate { background: var(--warn-bg); color: var(--warn); }
.chip.fail, .chip.bad, .chip.error { background: var(--fail-bg); color: var(--fail); }
.chip.info, .chip.next { background: var(--info-bg); color: var(--info); }
.chip.duplicate { background: var(--skip-bg); color: var(--skip); }
.tag { font-family: var(--mono); font-size: 12px; background: var(--soft); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
.sig { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 12px; background: var(--soft); border-radius: 6px; padding: 1px 6px; margin: 1px 4px 1px 0; white-space: nowrap; }
.sig b { font-weight: 800; }
.sig.r-pass b { color: var(--pass); } .sig.r-fail b, .sig.r-permerror b, .sig.r-temperror b { color: var(--fail); } .sig.r-softfail b, .sig.r-neutral b, .sig.r-none b { color: var(--warn); }
.sig .al { font-family: system-ui, sans-serif; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--pass); }
.sig .nal { font-family: system-ui, sans-serif; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }

/* verdict */
.verdict { border-left: 5px solid var(--skip); display: grid; grid-template-columns: 1fr auto; gap: 16px 24px; align-items: center; }
.verdict.lv-good { border-left-color: var(--pass); } .verdict.lv-warn { border-left-color: var(--warn); } .verdict.lv-bad { border-left-color: var(--fail); }
.verdict h1 { margin: 2px 0 6px; display: flex; gap: 10px; align-items: center; }
.verdict p { margin: 0; max-width: 70ch; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.vi { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 14px; font-weight: 800; color: #fff; background: var(--skip); flex: none; }
.lv-good .vi { background: var(--pass); } .lv-warn .vi { background: var(--warn); } .lv-bad .vi { background: var(--fail); }
@media (prefers-color-scheme: dark) { .vi { color: #0b1120; } }
.hero { text-align: right; }
.hero b { display: block; font-size: 52px; line-height: 1; font-weight: 700; letter-spacing: -.02em; }
.hero span { color: var(--muted); font-size: 13px; }
.actions { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 12px; }
.actions h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 6px; }
.act { display: grid; grid-template-columns: 10px 1fr; gap: 10px; padding: 6px 0; }
.act .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; background: var(--warn); }
.act.l-bad .dot { background: var(--fail); } .act.l-next .dot { background: var(--brand); } .act.l-info .dot { background: var(--skip); }
.act b { display: block; }
.act p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }

/* stat tiles */
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 14px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; }
.tile .t-label { font-size: 13px; color: var(--muted); }
.tile .t-value { font-size: 26px; font-weight: 600; line-height: 1.2; margin-top: 2px; }
.tile .t-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.t-icon { font-weight: 800; }
.t-icon.ok { color: var(--pass); } .t-icon.bad { color: var(--fail); }

/* chart */
.chart-wrap { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .gridline { stroke: var(--grid); stroke-width: 1; shape-rendering: crispEdges; }
.chart .baseline { stroke: var(--axis); stroke-width: 1; shape-rendering: crispEdges; }
.chart .tick { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .m-pass { fill: var(--chart-pass); }
.chart .m-fail { fill: var(--chart-fail); }
.chart .col { cursor: default; outline: none; }
.chart .col .hit { fill: transparent; }
.chart .col:hover .hit, .chart .col:focus .hit { fill: var(--soft); }
.chart .col:focus-visible .hit { stroke: var(--brand); stroke-width: 2; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sw-pass { background: var(--chart-pass); } .sw-fail { background: var(--chart-fail); }
.tip { position: absolute; pointer-events: none; background: var(--card); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(15, 23, 42, .16); border-radius: 10px; padding: 8px 10px; font-size: 13px; min-width: 150px; z-index: 5; }
.tip .tip-h { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.tip .tip-r { display: grid; grid-template-columns: 12px 1fr auto; gap: 6px; align-items: center; }
.tip .tip-r b { font-variant-numeric: tabular-nums; }
.tip .key { width: 12px; height: 2px; border-radius: 1px; display: block; }
.key-pass { background: var(--chart-pass); } .key-fail { background: var(--chart-fail); }

/* senders */
.senders { list-style: none; margin: 0; padding: 0; }
.sender { border-top: 1px solid var(--line); padding: 12px 0; display: grid; grid-template-columns: minmax(180px, 1.1fr) minmax(150px, 1fr) minmax(220px, 2fr); gap: 6px 18px; align-items: start; }
.sender:first-child { border-top: 0; padding-top: 4px; }
.s-name b { display: block; }
.s-name small { color: var(--muted); font-size: 12.5px; }
.s-bar .nums { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.s-bar .nums b { color: var(--ink); }
.s-text { font-size: 14px; }
.s-text p { margin: 4px 0 0; }
.s-text details { font-size: 13px; margin-top: 6px; }
.s-text summary { cursor: pointer; color: var(--brand); }
.fixtext { background: var(--soft); border-radius: 8px; padding: 8px 10px; margin-top: 6px; }
.iplist { margin: 6px 0 0; padding: 0; list-style: none; font-size: 12.5px; }
.iplist li { display: flex; gap: 8px; justify-content: space-between; border-top: 1px dashed var(--line); padding: 3px 0; }
.iplist code { word-break: break-all; }
.meter-track { fill: var(--soft); }

.thin, .mini { display: flex; gap: 2px; }
.thin { height: 8px; margin: 6px 0 4px; }
.mini { width: 52px; height: 6px; flex: none; }
.thin i, .mini i { display: block; height: 100%; min-width: 2px; }
.thin i:first-child, .mini i:first-child { border-top-left-radius: 99px; border-bottom-left-radius: 99px; }
.thin i:last-child, .mini i:last-child { border-top-right-radius: 99px; border-bottom-right-radius: 99px; }
.thin .p, .mini .p { background: var(--chart-pass); }
.thin .f, .mini .f { background: var(--chart-fail); }
.thin .e, .mini .e { background: var(--soft); }
.mini.meter .m { background: var(--brand); }
.mini.meter .e { background: var(--brand-soft); }

/* ramp */
.ramp { display: flex; align-items: center; gap: 8px; margin: 4px 0 12px; }
.rstep { display: flex; gap: 8px; align-items: center; flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.rstep > span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 12px; background: var(--soft); color: var(--muted); flex: none; }
.rstep b { display: block; font-size: 14px; }
.rstep small { color: var(--muted); font-size: 12px; }
.rstep.done { border-color: var(--pass); }
.rstep.done > span { background: var(--pass); color: #fff; }
.rstep.cur { border-color: var(--pass); box-shadow: inset 0 0 0 1px var(--pass); }
.rstep.next { border-color: var(--brand); border-style: dashed; }
.rstep.next > span { background: var(--brand); color: #fff; }
.rline { width: 14px; height: 2px; background: var(--line); flex: none; }
.ready-box { border-radius: 12px; padding: 12px 14px; background: var(--soft); }
.ready-box.yes { background: var(--pass-bg); }
.ready-box ul { margin: 6px 0 0; padding-left: 18px; }
.record { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 10px 0 0; background: var(--card); }
.record-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.record-head .mono { word-break: break-all; }
.record pre { margin: 8px 0 0; background: var(--soft); border-radius: 8px; padding: 8px 10px; white-space: pre-wrap; word-break: break-all; font-family: var(--mono); font-size: 13px; }

/* tables */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--soft); font-weight: 600; white-space: nowrap; font-size: 12.5px; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td .sub { display: block; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
table.sources th:nth-child(1) { min-width: 200px; }
table.sources th:nth-child(2) { min-width: 130px; }
table.sources th:nth-child(4) { min-width: 110px; }
td.mono, td .mono { font-family: var(--mono); font-size: 12.5px; overflow-wrap: anywhere; }
td.mono { min-width: 120px; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--soft); }
tr.open td { background: var(--soft); }
tr.detail > td { background: var(--bg); padding: 12px; }
.pct { display: inline-flex; align-items: center; gap: 6px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.filters input[type=search] { flex: 1; min-width: 200px; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 10px; font-size: 13px; color: var(--muted); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.xml { max-height: 520px; overflow: auto; background: var(--soft); border-radius: 10px; padding: 10px 12px; font-family: var(--mono); font-size: 12px; white-space: pre; margin: 8px 0 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.reporters { list-style: none; margin: 0; padding: 0; }
.reporters li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; }
.reporters li:first-child { border-top: 0; }
.reporters small { display: block; color: var(--muted); font-size: 12px; }
.domains-tbl td:first-child { font-weight: 600; }

/* quick login links */
.who-link { font-size: 12px; font-weight: 600; color: #fde68a; background: rgba(245, 158, 11, .18); border-radius: 99px; padding: 3px 10px; white-space: nowrap; }
#link-panel { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 0 0 14px; background: var(--bg); }
.linkform h3 { margin: 0; }
.linkform textarea { font-family: inherit; font-size: 14px; }
.linkform .alert { margin: 8px 0 0; }
.linkuses { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.linkuses legend { margin-bottom: 6px; }
.linkuses label.inline { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); font-size: 14px; }
input.tiny { width: 84px; }
.row.nowrap { flex-wrap: nowrap; }
.presets { display: flex; gap: 6px; align-items: flex-end; flex-wrap: wrap; padding-bottom: 6px; }
.presets .lbl { width: 100%; }
.presets .chip { border: 1px solid var(--line); cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; }
.presets .chip:hover { background: var(--brand-soft); color: var(--brand); }
.linkbox { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }

/* admin forms */
.form { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 14px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.form label.full, .form .full { grid-column: 1 / -1; }
.form label:not(.inline):not(.full) { justify-content: flex-end; }
.form label.inline { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); }
.form .hint { font-weight: 400; font-size: 12px; }
.form-actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.checks { list-style: none; margin: 0; padding: 0; }
.check { display: grid; grid-template-columns: 26px 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.check:last-child { border-bottom: 0; }
.ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.s-pass .ic { background: var(--pass-bg); color: var(--pass); } .s-warn .ic { background: var(--warn-bg); color: var(--warn); }
.s-fail .ic { background: var(--fail-bg); color: var(--fail); } .s-info .ic { background: var(--info-bg); color: var(--info); }
.drop { border: 2px dashed var(--line); border-radius: 14px; padding: 28px 16px; text-align: center; color: var(--muted); cursor: pointer; }
.drop.over { border-color: var(--brand); background: var(--brand-soft); }
.drop b { color: var(--ink); }
.mbx { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.mbx-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mbx-head h3 { margin: 0; flex: 1; font-size: 15px; }
.mbx dl { margin: 8px 0; }
.custlist td:first-child b { display: block; }
.copy { font: inherit; font-size: 12px; border: 1px solid var(--line); background: var(--card); color: var(--muted); border-radius: 6px; padding: 1px 8px; cursor: pointer; }
.copy:hover { color: var(--ink); }
.danger-zone { border-color: var(--fail-bg); }

@media (max-width: 960px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tiles .tile:first-child { grid-column: 1 / -1; }
  .sender { grid-template-columns: 1fr 1fr; }
  .sender .s-text { grid-column: 1 / -1; }
  .split, .grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .wrap { padding: 0 12px; }
  .top { position: static; }
  .top-in { padding: 6px 0; min-height: 0; gap: 8px; }
  .who-mail { display: none; }
  .who-link { font-size: 11px; padding: 2px 8px; }
  .tabs a { padding: 6px 9px; font-size: 13.5px; }
  .verdict { grid-template-columns: 1fr; }
  .hero { text-align: left; }
  .hero b { font-size: 48px; }
  .scope label { flex: 1 1 45%; }
  .scope select, .scope input { width: 100%; }
  .viewtabs { width: 100%; }
  .viewtabs a { flex: 1; text-align: center; }
  .sender { grid-template-columns: 1fr; }
  .ramp { flex-direction: column; align-items: stretch; }
  .rline { width: 2px; height: 8px; margin-left: 21px; }
  .kv { grid-template-columns: 1fr; }
  .kv dt { margin-top: 6px; }
}
@media print {
  :root { --bg: #fff; --card: #fff; --ink: #0f172a; --muted: #4b5563; --line: #d5dae1; --soft: #f1f3f6; --shadow: none;
    --chart-pass: #008f8a; --chart-fail: #e5484d; --pass: #15803d; --pass-bg: #e9f7ee; --warn: #b45309; --warn-bg: #fdf3e3; --fail: #c81e1e; --fail-bg: #fdecec; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; font-size: 10.5pt; }
  .top, .foot, .scope .viewtabs, .filters, .pager, .copy, .btn, .subtabs { display: none !important; }
  .scope select { border: 0; padding: 0; appearance: none; }
  .card, .tile { break-inside: avoid; box-shadow: none; }
  details > summary { list-style: none; }
  .tbl-wrap { overflow: visible; }
}
