:root {
  --bg: #fbfbfa; --surface: #ffffff; --surface-2: #f2f3f1; --text: #1c1e1d; --muted: #5a605d; --border: #d9dcd8;
  --accent: #1f6f5c; --accent-ink: #ffffff; --accent-soft: #e3f0ec; --link: #17604f;
  --ok: #1d6b3a; --ok-bg: #e6f3ea; --warn: #8a5300; --warn-bg: #fdf1dc; --err: #a4262c; --err-bg: #fbe7e8; --info: #2c5282; --info-bg: #e8eff9;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 8px; --max: 1080px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131615; --surface: #1b1f1d; --surface-2: #222725; --text: #e7eae8; --muted: #a3aba7; --border: #343b38;
    --accent: #5cc4a6; --accent-ink: #0d1a16; --accent-soft: #1d332c; --link: #7fd6bc;
    --ok: #7ed39b; --ok-bg: #16301f; --warn: #f0b85a; --warn-bg: #352710; --err: #ff8f94; --err-bg: #3a1a1c; --info: #9cc0f0; --info-bg: #1a2638;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #131615; --surface: #1b1f1d; --surface-2: #222725; --text: #e7eae8; --muted: #a3aba7; --border: #343b38;
  --accent: #5cc4a6; --accent-ink: #0d1a16; --accent-soft: #1d332c; --link: #7fd6bc;
  --ok: #7ed39b; --ok-bg: #16301f; --warn: #f0b85a; --warn-bg: #352710; --err: #ff8f94; --err-bg: #3a1a1c; --info: #9cc0f0; --info-bg: #1a2638;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
header.site { border-bottom: 1px solid var(--border); background: var(--surface); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; flex-wrap: wrap; }
.brand { font-weight: 700; color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; font-size: 1.05rem; }
.brand svg { flex: none; }
nav.top { display: flex; gap: 4px 16px; align-items: center; flex-wrap: wrap; }
nav.top a { color: var(--text); text-decoration: none; font-size: .95rem; padding: 6px 2px; }
nav.top a:hover, nav.top a[aria-current="page"] { color: var(--link); text-decoration: underline; }
.theme-toggle { background: none; border: 1px solid var(--border); color: var(--text); border-radius: 6px; padding: 4px 8px; cursor: pointer; font: inherit; font-size: .85rem; }
main { padding: 24px 0 48px; }
.crumbs { font-size: .85rem; color: var(--muted); margin: 0 0 8px; }
.crumbs a { color: var(--muted); }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); line-height: 1.2; margin: 0 0 8px; letter-spacing: -.01em; }
h2 { font-size: 1.35rem; line-height: 1.3; margin: 2em 0 .5em; }
h3 { font-size: 1.1rem; margin: 1.5em 0 .4em; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 70ch; margin: 0 0 20px; }
.prose { max-width: 75ch; }
.prose p, .prose li { overflow-wrap: anywhere; }
.prose code, .tool code { font-family: var(--mono); font-size: .9em; background: var(--surface-2); padding: .1em .3em; border-radius: 4px; overflow-wrap: anywhere; }
pre { font-family: var(--mono); font-size: .88rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; overflow-x: auto; line-height: 1.5; }
pre code { background: none; padding: 0; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--border); vertical-align: top; overflow-wrap: anywhere; }
th { font-weight: 600; background: var(--surface-2); }
.table-scroll { overflow-x: auto; max-width: 100%; }
.tool { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px; margin: 8px 0 24px; }
.tool .row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .tool .row.two { grid-template-columns: 1fr 1fr; } }
label { display: block; font-weight: 600; font-size: .92rem; margin: 0 0 4px; }
.hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
textarea, input[type="text"], input[type="url"], input[type="number"], select {
  width: 100%; font: 14px/1.45 var(--mono); color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px;
}
input[type="text"], input[type="url"], select { font-family: var(--sans); font-size: 15px; }
textarea { min-height: 220px; resize: vertical; tab-size: 4; }
textarea.short { min-height: 110px; }
.field { margin-bottom: 12px; }
.fields { display: grid; gap: 0 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .fields.cols-2 { grid-template-columns: 1fr 1fr; } }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 10px 0; }
button, .btn { font: inherit; font-size: .93rem; border-radius: 6px; padding: 7px 14px; cursor: pointer; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); text-decoration: none; display: inline-block; }
button.secondary, .btn.secondary { background: transparent; color: var(--link); border-color: var(--border); }
button:disabled { opacity: .55; cursor: not-allowed; }
.checks { display: flex; gap: 6px 18px; flex-wrap: wrap; margin: 6px 0 10px; }
.checks label { font-weight: 400; display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.out { margin-top: 8px; }
.findings { list-style: none; padding: 0; margin: 8px 0; }
.findings li { padding: 8px 10px 8px 12px; border-radius: 6px; margin: 6px 0; border-left: 4px solid; font-size: .93rem; overflow-wrap: anywhere; }
.findings .tag { font-weight: 700; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; margin-right: 8px; }
.l-ok { background: var(--ok-bg); border-color: var(--ok); } .l-ok .tag { color: var(--ok); }
.l-warn { background: var(--warn-bg); border-color: var(--warn); } .l-warn .tag { color: var(--warn); }
.l-error { background: var(--err-bg); border-color: var(--err); } .l-error .tag { color: var(--err); }
.l-info { background: var(--info-bg); border-color: var(--info); } .l-info .tag { color: var(--info); }
.verdict { font-size: 1.15rem; font-weight: 700; padding: 12px 14px; border-radius: 8px; margin: 8px 0; }
.verdict.yes { background: var(--ok-bg); color: var(--ok); } .verdict.no { background: var(--err-bg); color: var(--err); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 10px 0; }
.stat { background: var(--surface-2); border-radius: 8px; padding: 10px 12px; }
.stat b { display: block; font-size: 1.35rem; }
.stat span { font-size: .82rem; color: var(--muted); }
.bar { height: 10px; background: var(--accent); border-radius: 3px; min-width: 2px; }
.preview-card { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); max-width: 520px; }
.preview-card .img { aspect-ratio: 1.91/1; background: var(--surface-2) center/cover no-repeat; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .85rem; }
.preview-card .body { padding: 10px 12px; }
.preview-card .dom { font-size: .78rem; color: var(--muted); text-transform: uppercase; }
.preview-card .t { font-weight: 700; margin: 2px 0; overflow-wrap: anywhere; }
.preview-card .d { font-size: .88rem; color: var(--muted); overflow-wrap: anywhere; }
.serp { font-family: Arial, sans-serif; max-width: 600px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.serp .site { font-size: 14px; color: var(--text); }
.serp .url { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.serp .t { font-size: 20px; line-height: 1.3; color: #1a0dab; margin: 4px 0 2px; overflow-wrap: anywhere; }
:root[data-theme="dark"] .serp .t { color: #99c3ff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .serp .t { color: #99c3ff; } }
.serp .d { font-size: 14px; line-height: 1.58; color: var(--muted); overflow-wrap: anywhere; }
.grid-tools { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: 16px 0; padding: 0; list-style: none; }
.grid-tools li { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.grid-tools a { font-weight: 700; text-decoration: none; }
.grid-tools a:hover { text-decoration: underline; }
.grid-tools p { margin: 6px 0 0; color: var(--muted); font-size: .92rem; }
.cat { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0; }
.callout { border: 1px solid var(--border); background: var(--accent-soft); border-radius: 10px; padding: 14px 16px; margin: 24px 0; max-width: 75ch; }
.callout h2, .callout h3 { margin-top: 0; font-size: 1.05rem; }
.callout p { margin: .4em 0; }
.ad-slot { min-height: 280px; margin: 24px auto; display: flex; flex-direction: column; align-items: stretch; justify-content: center; max-width: 100%; contain: layout; }
@media (min-width: 728px) { .ad-slot { min-height: 250px; } }
.ad-slot.preview { border: 1px dashed var(--border); border-radius: 8px; color: var(--muted); font-size: .78rem; align-items: center; }
.ad-label { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; text-align: center; margin-bottom: 4px; }
.related { margin-top: 32px; }
.related ul { padding-left: 1.2em; }
footer.site { border-top: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: .9rem; }
footer.site .wrap { padding: 20px 16px; display: flex; gap: 8px 20px; flex-wrap: wrap; justify-content: space-between; }
footer.site nav { display: flex; gap: 6px 16px; flex-wrap: wrap; }
footer.site a { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.copy-wrap { position: relative; }
.copy-wrap button.copy { position: absolute; top: 6px; right: 6px; padding: 3px 10px; font-size: .8rem; }
details { margin: 8px 0; }
summary { cursor: pointer; font-weight: 600; }
.chain { list-style: none; padding: 0; margin: 8px 0; counter-reset: hop; }
.chain li { padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; margin: 6px 0; background: var(--surface-2); overflow-wrap: anywhere; }
.code-badge { display: inline-block; font: 700 .85rem var(--mono); padding: 1px 7px; border-radius: 4px; background: var(--surface); border: 1px solid var(--border); margin-right: 6px; }
.progress { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; margin: 8px 0; }
.progress div { height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.drop { border: 2px dashed var(--border); border-radius: 10px; padding: 18px; text-align: center; color: var(--muted); }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }

.actions label.btn { margin: 0; font-weight: 400; font-size: .93rem; }
