/* Shared stylesheet for the English pilot sites. Theme tokens switch on body class. */

:root {
  --max: 1120px;
  --radius: 14px;
  --radius-sm: 9px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body.theme-time {
  --bg: #fbf8f2;
  --ink: #101c29;
  --muted: #5b6675;
  --line: #e4dccd;
  --card: #ffffff;
  --accent: #b45309;
  --accent-ink: #7c3a06;
  --accent-soft: #fbeedb;
  --head-bg: rgba(251, 248, 242, 0.92);
  --display: var(--serif);
}

body.theme-text {
  --bg: #f7f2e9;
  --ink: #1d2a24;
  --muted: #5c6a62;
  --line: #e2dac9;
  --card: #fffdf8;
  --accent: #1f4d3a;
  --accent-ink: #143528;
  --accent-soft: #e7efe9;
  --head-bg: rgba(247, 242, 233, 0.92);
  --display: var(--serif);
}

img { max-width: 100%; }

a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- header ---------- */

.site-head {
  position: sticky; top: 0; z-index: 40;
  background: var(--head-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--ink); color: #fff;
  font-family: var(--display); font-weight: 700; font-size: 19px;
}
.brand-name { font-family: var(--display); font-size: 21px; letter-spacing: -0.01em; }

.main-nav { display: flex; gap: 28px; font-size: 15px; }
.main-nav a { color: var(--muted); text-decoration: none; }
.main-nav a:hover { color: var(--ink); }

/* ---------- layout ---------- */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 56px;
  padding-top: 44px;
  padding-bottom: 72px;
  align-items: start;
}
.content { min-width: 0; }

.rail { position: sticky; top: 92px; }
.rail .ad-box { min-height: 600px; }

/* ---------- headings ---------- */

.kicker {
  margin: 0 0 12px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
}
h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.lede { margin: 16px 0 0; font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 62ch; }

.page-head { margin-bottom: 34px; }
.page-head h1 { max-width: 26ch; }

/* ---------- home hero ---------- */

.hero { padding: 26px 0 8px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.1rem); max-width: 20ch; }
.hero .lede { font-size: 21px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  background: var(--ink); color: #fff; border: 1px solid var(--ink);
  font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--card); color: var(--ink); border-color: var(--ink); }

.stat-strip {
  display: flex; flex-wrap: wrap; gap: 0;
  margin: 40px 0 0; padding: 18px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  list-style: none;
}
.stat-strip li { flex: 1 1 160px; padding: 0 22px; border-left: 1px solid var(--line); }
.stat-strip li:first-child { border-left: 0; padding-left: 0; }
.stat-strip b { display: block; font-family: var(--display); font-size: 26px; font-weight: 600; line-height: 1.2; }
.stat-strip span { font-size: 13px; color: var(--muted); }

/* ---------- sections ---------- */

.section { margin-top: 56px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head h2 {
  margin: 0; font-family: var(--display); font-size: 27px; letter-spacing: -0.01em;
}
.section-head .micro { font-size: 12px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }

.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.tool-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); color: var(--ink); text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.tool-card:hover { transform: translateY(-2px); border-color: var(--ink); box-shadow: 0 10px 24px rgba(16, 28, 41, 0.07); color: var(--ink); }
.tool-card .num { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: 0.1em; }
.tool-card strong { font-size: 17px; line-height: 1.35; }
.tool-card p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }

/* ---------- tool widget ---------- */

.tool {
  padding: 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); box-shadow: 0 1px 0 rgba(16, 28, 41, 0.03);
}
.tool h2 { margin: 0 0 4px; font-size: 15px; font-weight: 600; letter-spacing: 0.02em; }
.tool .hint { margin: 0 0 18px; font-size: 13.5px; color: var(--muted); }

.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
input[type="text"], input[type="number"], input[type="date"], input[type="datetime-local"], select, textarea {
  width: 100%; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--ink);
  font: inherit; font-size: 15px;
}
textarea { min-height: 190px; resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.btn--sm { padding: 9px 14px; font-size: 14px; }

.result {
  margin-top: 20px; padding: 18px 20px;
  background: var(--accent-soft); border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
.result-big { font-family: var(--display); font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.15; margin: 0; }
.result .sub { margin: 6px 0 0; font-size: 14px; color: var(--muted); }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-top: 16px; }
.stat { padding: 12px 14px; background: var(--bg); border-radius: var(--radius-sm); border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--mono); font-size: 20px; font-weight: 600; }
.stat span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font: inherit; font-size: 13px; cursor: pointer;
}
.chip:hover, .chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.copy-note { font-size: 13px; color: var(--muted); margin-top: 10px; min-height: 1.2em; }

/* ---------- prose ---------- */

.prose { margin-top: 34px; max-width: 68ch; }
.prose h2 { margin: 36px 0 10px; font-family: var(--display); font-size: 24px; letter-spacing: -0.01em; }
.prose h3 { margin: 24px 0 8px; font-size: 17px; }
.prose p, .prose li { color: var(--ink); }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }
.prose blockquote {
  margin: 20px 0; padding: 2px 0 2px 18px; border-left: 3px solid var(--accent);
  color: var(--muted); font-style: italic;
}
.prose code { font-family: var(--mono); font-size: 0.9em; background: var(--accent-soft); padding: 2px 5px; border-radius: 4px; }

.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

.faq { margin-top: 34px; max-width: 68ch; }
.faq h2 { font-family: var(--display); font-size: 24px; margin: 0 0 14px; }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; }
.faq summary::marker { color: var(--accent); }
.faq details p { margin: 10px 0 0; color: var(--muted); }

.related { margin-top: 40px; }
.related h2 { font-family: var(--display); font-size: 22px; margin: 0 0 12px; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.related a { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; background: var(--card); color: var(--ink); }
.related a:hover { border-color: var(--ink); }
.related small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }

/* ---------- ads ---------- */

.ad-slot { display: flex; flex-direction: column; gap: 6px; }
.ad-label { font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.ad-box {
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background:
    repeating-linear-gradient(135deg, transparent 0 10px, rgba(16, 28, 41, 0.025) 10px 20px),
    var(--card);
  color: var(--muted);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
}
.ad-box--rail { width: 160px; min-height: 600px; }
.ad-box--inline { min-height: 250px; width: 100%; }
.ad-slot--inline { margin: 26px 0 0; }
@media (min-width: 981px) { .ad-slot--inline { display: none; } }

/* ---------- footer ---------- */

.site-foot { border-top: 1px solid var(--line); background: var(--card); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding: 46px 24px 26px; }
.foot-name { font-family: var(--display); font-size: 20px; margin: 0 0 10px; }
.foot-blurb { margin: 0 0 10px; color: var(--muted); font-size: 14.5px; max-width: 40ch; }
.foot-note { margin: 0; font-size: 12.5px; color: var(--muted); }
.foot-head { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 4px 0 10px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 6px; font-size: 14px; }
.site-foot a { color: var(--ink); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 16px 24px 26px; border-top: 1px solid var(--line); }
.foot-base p { margin: 0; font-size: 12.5px; color: var(--muted); }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; gap: 0; padding-top: 30px; }
  .rail { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .head-inner { height: 60px; }
  .main-nav { gap: 18px; font-size: 14px; }
  .hero h1 { font-size: clamp(2.1rem, 9vw, 2.8rem); }
  .lede { font-size: 17px; }
  .stat-strip li { flex-basis: 50%; padding: 10px 0 10px 16px; }
  .stat-strip li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .tool { padding: 18px; }
  .foot-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* ---------- sponsored card (Monetag direct-link placement) ---------- */

.sponsor-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 160px;
  min-height: 600px;
  padding: 20px 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card) 0%, var(--accent-soft) 100%);
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
}
.sponsor-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.08;
}
.sponsor-card:hover { border-color: var(--accent); color: var(--ink); }
.sponsor-kicker {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.sponsor-title {
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.22;
  letter-spacing: -0.01em;
}
.sponsor-copy { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.sponsor-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 9px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}
.sponsor-note { font-size: 10px; color: var(--muted); text-align: center; }
.sponsor-card--inline {
  width: 100%;
  min-height: 250px;
  padding: 22px 20px;
}
.sponsor-card--inline .sponsor-title { font-size: 22px; }
.sponsor-card--inline .sponsor-copy { font-size: 14px; }
.sponsor-card--inline .sponsor-cta { padding: 11px 16px; font-size: 13px; }

body.theme-convert {
  --bg: #f5f8fc;
  --ink: #0d1b2a;
  --muted: #56657a;
  --line: #dbe4ee;
  --card: #ffffff;
  --accent: #1d4ed8;
  --accent-ink: #163ea8;
  --accent-soft: #e9f0ff;
  --head-bg: rgba(245, 248, 252, 0.92);
  --display: var(--sans);
}
body.theme-convert .hero h1 { letter-spacing: -0.035em; font-weight: 750; }
body.theme-convert .brand-mark { background: var(--accent); }
body.theme-convert .hero {
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: -1px -1px;
  border-radius: 18px;
  padding: 34px 26px 8px;
}

.cv-table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 15px; }
.cv-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); }
.cv-table td:last-child { text-align: right; font-family: var(--mono); white-space: nowrap; }

body.theme-dev {
  --bg: #0e1116;
  --ink: #e6edf3;
  --muted: #97a3b2;
  --line: #242c37;
  --card: #151b24;
  --accent: #7ee787;
  --accent-ink: #9be9a8;
  --accent-soft: #122319;
  --head-bg: rgba(14, 17, 22, 0.9);
  --display: var(--mono);
}
body.theme-dev .brand-mark { background: var(--accent); color: #0b0f14; }
body.theme-dev .btn { background: var(--accent); border-color: var(--accent); color: #0b0f14; }
body.theme-dev .btn:hover { background: #b7f7c1; border-color: #b7f7c1; color: #0b0f14; }
body.theme-dev .btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
body.theme-dev .btn--ghost:hover { background: var(--card); color: var(--ink); border-color: var(--muted); }
body.theme-dev .sponsor-card { background: linear-gradient(180deg, #151b24 0%, #102016 100%); }
body.theme-dev .sponsor-cta { background: var(--accent); color: #0b0f14; }
body.theme-dev .kicker { color: var(--accent); }
body.theme-dev .tool-card:hover { border-color: var(--accent); box-shadow: none; }
body.theme-dev .result { background: #102016; border-color: #1f3a2a; }
body.theme-dev input, body.theme-dev select, body.theme-dev textarea { background: #0b0f14; }
body.theme-dev .chip { background: #0b0f14; }
body.theme-dev .chip:hover, body.theme-dev .chip[aria-pressed="true"] { background: var(--accent); color: #0b0f14; border-color: var(--accent); }
body.theme-dev .hero { background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 22px 22px; border-radius: 18px; padding: 34px 26px 8px; }
body.theme-dev pre { background: #0b0f14; border: 1px solid var(--line); border-radius: 9px; padding: 14px; overflow: auto; font-size: 13.5px; }
body.theme-dev code { background: #1a2a1f; color: #b7f7c1; }

.data-table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 15px; }
.data-table th, .data-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }
.status-code { font-family: var(--mono); font-weight: 700; color: var(--accent-ink); }
.rx-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.rx-list li { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: 14px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.rx-index { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.rx-groups { color: var(--muted); font-size: 12px; }
.cron-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cron-chip { font-family: var(--mono); font-size: 12px; }
.js-status--bad { color: #ff7b72; }
.js-status--ok { color: var(--accent-ink); }

body.theme-pdf {
  --bg: #fbf7f1;
  --ink: #221f1a;
  --muted: #6b6357;
  --line: #e6ddcf;
  --card: #fffdf9;
  --accent: #b42318;
  --accent-ink: #8f1c13;
  --accent-soft: #f8e9e4;
  --head-bg: rgba(251, 247, 241, 0.93);
  --display: var(--serif);
}
body.theme-pdf .brand-mark { background: var(--accent); color: #fff; }
body.theme-pdf .btn { background: var(--accent); border-color: var(--accent); }
body.theme-pdf .btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
body.theme-pdf .kicker { color: var(--accent); }
body.theme-pdf .tool { box-shadow: 0 1px 0 rgba(34, 31, 26, 0.04), 0 12px 30px rgba(34, 31, 26, 0.04); }
body.theme-pdf .hero { border-bottom: 2px solid var(--ink); padding-bottom: 30px; }
body.theme-pdf .sponsor-card { background: linear-gradient(180deg, #fffdf9 0%, #f8e9e4 100%); }

.pdf-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.pdf-list li { display: flex; gap: 10px; align-items: baseline; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); font-size: 14px; }
.pdf-index { font-family: var(--mono); color: var(--accent); min-width: 18px; }
.pdf-size { margin-left: auto; color: var(--muted); font-family: var(--mono); font-size: 12px; }
.pdf-status--ok { color: var(--accent-ink); }
.pdf-status--bad { color: #b42318; }
input[type="file"] { width: 100%; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 9px; background: var(--bg); color: var(--ink); font: inherit; font-size: 14px; }

body.theme-calc {
  --bg: #f7f5ee;
  --ink: #15241d;
  --muted: #5c6b60;
  --line: #ddd8c9;
  --card: #fffdf7;
  --accent: #1f6f4a;
  --accent-ink: #175539;
  --accent-soft: #e7f2ec;
  --head-bg: rgba(247, 245, 238, 0.93);
  --display: var(--serif);
}
body.theme-calc .brand-mark { background: var(--accent); color: #fff; }
body.theme-calc .btn { background: var(--accent); border-color: var(--accent); }
body.theme-calc .btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
body.theme-calc .kicker { color: var(--accent); }
body.theme-calc .tool { box-shadow: 0 1px 0 rgba(21, 36, 29, 0.05), 0 14px 32px rgba(21, 36, 29, 0.05); }
body.theme-calc .hero { border-bottom: 1px solid var(--line); padding-bottom: 28px; }
body.theme-calc .stat-strip b { font-variant-numeric: tabular-nums; }
body.theme-calc .sponsor-card { background: linear-gradient(180deg, #fffdf7 0%, #e7f2ec 100%); }
body.theme-calc .result { background: #eef6f1; }
body.theme-calc .stat b { font-size: 16px; }

body.theme-health {
  --bg: #f3f8f7;
  --ink: #122a2b;
  --muted: #56706f;
  --line: #d6e5e2;
  --card: #ffffff;
  --accent: #0f766e;
  --accent-ink: #0b5a54;
  --accent-soft: #e2f2ef;
  --head-bg: rgba(243, 248, 247, 0.93);
  --display: var(--sans);
}
body.theme-health .brand-mark { background: var(--accent); color: #fff; }
body.theme-health .btn { background: var(--accent); border-color: var(--accent); }
body.theme-health .btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
body.theme-health .kicker { color: var(--accent); }
body.theme-health .hero h1 { letter-spacing: -0.03em; font-weight: 750; }
body.theme-health .tool { border-radius: 18px; }
body.theme-health .sponsor-card { background: linear-gradient(180deg, #ffffff 0%, #e2f2ef 100%); }
body.theme-health .result { background: #e8f6f3; }
body.theme-health .note-box { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 12px 16px; border-radius: 8px; font-size: 14px; color: var(--muted); }

body.theme-image {
  --bg: #f6f5fb;
  --ink: #17152b;
  --muted: #625d78;
  --line: #e2def2;
  --card: #ffffff;
  --accent: #5b4bff;
  --accent-ink: #4636d6;
  --accent-soft: #ece9ff;
  --head-bg: rgba(246, 245, 251, 0.93);
  --display: var(--sans);
}
body.theme-image .brand-mark { background: var(--accent); color: #fff; }
body.theme-image .btn { background: var(--accent); border-color: var(--accent); }
body.theme-image .btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
body.theme-image .kicker { color: var(--accent); }
body.theme-image .hero h1 { letter-spacing: -0.035em; font-weight: 780; }
body.theme-image .hero { background: radial-gradient(600px 220px at 12% 0%, #ece9ff 0%, transparent 70%); border-radius: 20px; padding: 34px 26px 10px; }
body.theme-image .tool { border-radius: 18px; }
body.theme-image .sponsor-card { background: linear-gradient(180deg, #ffffff 0%, #ece9ff 100%); }

.img-preview { max-width: 100%; margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.favicon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 16px; }
.favicon-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-size: 12px; color: var(--muted); text-align: center; }
.favicon-card img { background: #fff; border-radius: 6px; }
.favicon-card a { font-size: 12px; }
.img-status--ok { color: var(--accent-ink); }
.img-status--bad { color: #b42318; }
