:root {
  --bg: #f7f8fa; --surface: #ffffff; --text: #1b2430; --muted: #5b6676; --border: #dde2ea;
  --accent: #0b6e4f; --accent-soft: #e4f3ed; --link: #0a58ca;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #11151b; --surface: #1a2029; --text: #e8ecf2; --muted: #9aa5b5; --border: #2c3542; --accent: #4fc79a; --accent-soft: #16322a; --link: #7ab4ff; }
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--link); }
.wrap { max-width: 820px; margin: 0 auto; padding: 0 16px; }
header.site { background: var(--surface); border-bottom: 1px solid var(--border); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 58px; }
header.site a.brand { font-weight: 700; color: var(--accent); text-decoration: none; font-size: 1.1rem; }
header.site nav a { margin-left: 16px; color: var(--muted); text-decoration: none; font-size: .95rem; }
h1 { font-size: 1.9rem; line-height: 1.25; margin: 28px 0 8px; }
h2 { font-size: 1.35rem; margin: 36px 0 10px; }
.lead { color: var(--muted); margin: 0 0 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
form.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form.calc label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 4px; color: var(--muted); }
form.calc input, form.calc select { width: 100%; padding: 10px 12px; font-size: 1rem; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); }
form.calc .full { grid-column: 1 / -1; }
.net { background: var(--accent-soft); border-radius: 10px; padding: 14px 16px; margin: 18px 0 12px; display: flex; flex-direction: column; }
.net strong { font-size: 2rem; color: var(--accent); line-height: 1.2; }
.net small, .muted { color: var(--muted); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 8px 10px; text-align: right; border-bottom: 1px solid var(--border); }
th:first-child, td:first-child { text-align: left; }
tr.total td { font-weight: 700; border-top: 2px solid var(--border); }
.table-scroll { overflow-x: auto; }
.ad-slot { min-height: 100px; margin: 24px 0; text-align: center; }
.state-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.state-grid a { display: block; padding: 8px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; text-decoration: none; }
.callout { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 18px 0; }
details { border-bottom: 1px solid var(--border); padding: 10px 0; }
summary { cursor: pointer; font-weight: 600; }
footer.site { margin-top: 56px; padding: 28px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; background: var(--surface); }
footer.site a { color: var(--muted); margin-right: 14px; }
@media (max-width: 560px) { form.calc { grid-template-columns: 1fr; } h1 { font-size: 1.55rem; } }
