/* Style follows ../microtools/style.css (same tokens, same look), plus the scanner-specific parts. */
:root {
  --bg: #fafaf8; --fg: #1d2530; --muted: #5b6573; --card: #ffffff; --border: #d9dde3;
  --accent: #1f5f8b; --accent-fg: #ffffff; --ok: #1b7a43; --ok-bg: #e7f5ec;
  --warn: #8a5a00; --warn-bg: #fff4d6; --bad: #a12626; --bad-bg: #fdeaea; --info-bg: #eaf1f8;
  --radius: 10px; --ctl-border: #6b7685;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161b; --fg: #e6e9ee; --muted: #9aa5b3; --card: #1a2028; --border: #2f3944;
    --accent: #6cb4e6; --accent-fg: #0b1117; --ok: #6fd69a; --ok-bg: #12301f;
    --warn: #f0c35c; --warn-bg: #352a0c; --bad: #ff8f8f; --bad-bg: #3a1717; --info-bg: #18283a; --ctl-border: #7d8896;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
.wrap { max-width: 900px; margin: 0 auto; padding: 0 16px 48px; }
header.site { padding: 20px 0 4px; }
header.site .brand { font-weight: 700; letter-spacing: .2px; }
.muted { color: var(--muted); }
h1 { font-size: 1.6rem; line-height: 1.25; margin: 10px 0 6px; }
h2 { font-size: 1.15rem; margin: 0 0 8px; }
h3 { font-size: 1rem; margin: 18px 0 6px; }
p.lead { color: var(--muted); margin-top: 0; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin: 14px 0; }
.privacy { background: var(--info-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; font-size: .95rem; margin: 12px 0; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.privacy > noscript { flex-basis: 100%; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.mt { margin-top: 12px; }
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
.hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
input, select, textarea { width: 100%; font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--ctl-border); border-radius: 8px; padding: 9px 10px; min-height: 42px; }
textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible, .drop:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
button { font: inherit; font-weight: 600; background: var(--accent); color: var(--accent-fg); border: 0; border-radius: 8px; padding: 10px 18px; min-height: 42px; cursor: pointer; }
button.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
button.small-btn { min-height: 34px; padding: 4px 14px; }
button:disabled { opacity: .55; cursor: not-allowed; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.check input { width: auto; min-height: 0; }
.check-col { display: flex; align-items: end; }
progress { width: 100%; height: 14px; accent-color: var(--accent); }
.drop { border: 2px dashed var(--ctl-border); border-radius: var(--radius); padding: 22px 14px; text-align: center; cursor: pointer; background: var(--bg); }
.drop.over { border-color: var(--accent); background: var(--info-bg); }
.drop[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.banner { border-radius: var(--radius); padding: 12px 14px; border: 2px solid var(--border); font-weight: 700; font-size: 1.1rem; }
.banner.red { background: var(--bad-bg); border-color: var(--bad); color: var(--bad); }
.banner.yellow { background: var(--warn-bg); border-color: var(--warn); color: var(--warn); }
.banner.green { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.counts { margin: 8px 0 0; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); vertical-align: top; word-break: break-word; }
.table-scroll { overflow-x: auto; }
tr.low { opacity: .7; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; padding: 1px 7px; border-radius: 999px; border: 1px solid currentColor; }
.tag.imp { color: var(--bad); } .tag.inc { color: var(--warn); } .tag.low { color: var(--muted); }
details { margin-top: 6px; }
summary { cursor: pointer; font-size: .9rem; }
pre { white-space: pre-wrap; word-break: break-word; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 8px; max-height: 260px; overflow: auto; font-size: .82rem; }
.warn-list { margin: 4px 0 0 1.1rem; padding: 0; color: var(--warn); font-size: .9rem; }
.bad-text { color: var(--bad); font-weight: 600; }
.ok-text { color: var(--ok); font-weight: 600; }
footer.site { margin-top: 28px; padding-top: 12px; border-top: 1px solid var(--border); font-size: .82rem; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
dialog { width: min(860px, 94vw); max-height: 90vh; overflow: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); color: var(--fg); padding: 16px; }
dialog::backdrop { background: rgba(0, 0, 0, .5); }
.proof-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.proof-head h2 { margin: 0; }
.proof-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 10px 0; }
.proof-sum div { border: 1px solid var(--border); border-radius: 8px; padding: 8px; }
.proof-sum b { display: block; font-size: 1.3rem; }
.proof-list { max-height: 280px; overflow: auto; font-size: .8rem; }
.proof-list td { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
@media (max-width: 480px) { h1 { font-size: 1.35rem; } .card { padding: 12px; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
