:root {
  --bg: #f7f7f5; --surface: #ffffff; --text: #1d1d1f; --muted: #5f6368;
  --border: #e2e2dd; --accent: #0b7a5b; --accent-soft: #e6f4ef; --warn: #b3261e;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111214; --surface: #1b1c1f; --text: #ececec; --muted: #a0a4ab;
    --border: #2d2f33; --accent: #4fd1a5; --accent-soft: #15302a; --warn: #ff8a80; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", sans-serif; }
a { color: var(--accent); }
header, main, footer { max-width: 760px; margin: 0 auto; padding: 0 16px; }
header { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding-top: 20px; }
header .logo { font-weight: 700; font-size: 1.1rem; text-decoration: none; color: var(--text); }
header nav { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .92rem; }
header nav a { text-decoration: none; color: var(--muted); }
header nav a[aria-current] { color: var(--accent); font-weight: 600; }
h1 { font-size: 1.6rem; margin: 24px 0 4px; }
h2 { font-size: 1.2rem; margin-top: 32px; }
.lead { color: var(--muted); margin-top: 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin: 16px 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 16px; }
label { display: block; font-size: .9rem; color: var(--muted); margin-bottom: 4px; }
input, select { width: 100%; padding: 10px 12px; font-size: 1rem; border: 1px solid var(--border);
  border-radius: 8px; background: var(--bg); color: var(--text); }
.check { display: flex; gap: 8px; align-items: center; }
.check input { width: auto; }
.hint { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.result { background: var(--accent-soft); }
.big { font-size: 1.8rem; font-weight: 700; margin: 0; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
td { padding: 6px 0; border-bottom: 1px solid var(--border); }
td { vertical-align: top; }
td:first-child { padding-right: 12px; }
.result td:last-child { text-align: right; white-space: nowrap; }
.warn { color: var(--warn); font-weight: 600; }
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.tools a { display: block; text-decoration: none; color: var(--text); margin: 0; }
.tools a strong { color: var(--accent); }
.ad-slot:empty { display: none; }
.ad-slot { margin: 16px 0; min-height: 90px; }
footer { color: var(--muted); font-size: .85rem; padding-top: 24px; padding-bottom: 40px; }
header .logo { display: inline-flex; align-items: center; gap: 8px; }
.crumb { font-size: .85rem; color: var(--muted); margin-top: 20px; }
.crumb a { color: var(--muted); }
.crumb + h1 { margin-top: 8px; }
.updated { font-size: .85rem; color: var(--muted); margin: 0 0 12px; }
.sources { margin-top: 32px; padding-top: 8px; border-top: 1px solid var(--border); font-size: .9rem; }
.sources h2 { font-size: 1rem; }
.sources ul { padding-left: 20px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px 24px;
  border-top: 1px solid var(--border); padding-top: 16px; }
.footer-cols h3 { font-size: .9rem; color: var(--text); margin: 8px 0 4px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin: 2px 0; }
.footer-cols a { color: var(--muted); text-decoration: none; }
.footer-cols a:hover { color: var(--accent); }
.checklist li { margin: 6px 0; }
