:root {
  --bg: #f7f7f5;
  --card: #ffffff;
  --ink: #1d2327;
  --muted: #5b6670;
  --line: #e3e5e8;
  --accent: #0f766e;
  --accent-soft: #e0f2ef;
  --tax: #c0533a;
  --ni: #d59a2b;
  --loan: #6a5acd;
  --pension: #3a7bc0;
  --net: #1f6f5c;
  --radius: 12px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15181b; --card: #1e2226; --ink: #e8eaed; --muted: #9aa4ad;
    --line: #2f353b; --accent: #2dd4bf; --accent-soft: #123430;
  }
}
* { box-sizing: border-box; }
body { margin: 0; }
header.site { background: var(--card); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; }
header.site a { color: var(--ink); text-decoration: none; font-weight: 700; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 1rem; }
h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 1.6rem 0 .3rem; line-height: 1.2; }
.lede { color: var(--muted); margin: 0 0 1.2rem; }
.grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 820px) { .grid { grid-template-columns: 340px 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; }
label { display: block; font-weight: 600; font-size: .92rem; margin: .8rem 0 .3rem; }
label:first-child { margin-top: 0; }
.hint { font-weight: 400; color: var(--muted); font-size: .82rem; }
input, select { width: 100%; padding: .6rem .7rem; font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; }
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.row { display: flex; gap: .5rem; }
.row > * { flex: 1; }
.check { display: flex; align-items: center; gap: .5rem; font-weight: 500; margin-top: .7rem; }
.check input { width: auto; }
.headline { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .6rem; margin-bottom: 1rem; }
.stat { background: var(--accent-soft); border-radius: 10px; padding: .7rem .8rem; }
.stat .k { font-size: .8rem; color: var(--muted); }
.stat .v { font-size: 1.4rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--line); margin: .4rem 0 .5rem; }
.bar span { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .82rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: .3rem; vertical-align: -1px; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; margin-top: 1rem; }
th, td { padding: .45rem .4rem; border-bottom: 1px solid var(--line); text-align: right; }
th:first-child, td:first-child { text-align: left; }
thead th { font-size: .8rem; color: var(--muted); font-weight: 600; }
tr.total td { font-weight: 700; border-bottom: none; }
.note { font-size: .85rem; color: var(--muted); margin-top: .8rem; }
.ad-slot { min-height: 90px; margin: 1.2rem 0; display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-size: .75rem; }
article { margin: 2rem auto; }
article h2 { margin-top: 2rem; font-size: 1.35rem; }
article table { max-width: 620px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: .7rem .9rem; margin: .5rem 0; }
summary { cursor: pointer; font-weight: 600; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; padding: 1.5rem 0 2.5rem; margin-top: 2rem; }
footer a { color: var(--muted); }
a { color: var(--accent); }
nav.tools { display: flex; gap: 1rem; margin-left: auto; font-size: .9rem; }
nav.tools a { font-weight: 500; color: var(--muted); }
nav.tools a[aria-current] { color: var(--accent); font-weight: 700; }
.chart { width: 100%; height: auto; display: block; margin-top: 1rem; }
.scroll { max-height: 320px; overflow: auto; }
.seg { display: flex; gap: .3rem; flex-wrap: wrap; }
.seg label { flex: 1; margin: 0; font-weight: 500; border: 1px solid var(--line); border-radius: 8px; padding: .5rem; text-align: center; cursor: pointer; }
.seg input { display: none; }
.seg label:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 700; }
.gear-table td, .gear-table th { padding: .3rem .35rem; font-size: .85rem; }
.gear-table td.hl { background: var(--accent-soft); font-weight: 700; }
.zone-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: .4rem; vertical-align: -1px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin: 1rem 0; }
.tiles a { display: block; text-decoration: none; color: var(--ink); }
.tiles a:hover .card { border-color: var(--accent); }
.tiles h2 { margin: 0 0 .3rem; font-size: 1.15rem; color: var(--accent); }
.tiles p { margin: 0; color: var(--muted); font-size: .92rem; }
.conv { display: grid; grid-template-columns: 1fr auto 1fr; gap: .6rem; align-items: end; }
.conv button { font: inherit; padding: .6rem .8rem; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.conv button:hover { border-color: var(--accent); }
.big { font-size: 1.6rem; font-weight: 700; margin: 1rem 0 .2rem; font-variant-numeric: tabular-nums; }
.cats { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.cats a { padding: .35rem .7rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: .9rem; background: var(--card); }
.cats a[aria-current] { background: var(--accent); border-color: var(--accent); color: #fff; }
textarea { width: 100%; min-height: 260px; font: inherit; padding: .7rem; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); }
.recipe-out { white-space: pre-wrap; font-size: 1rem; line-height: 1.8; margin: 0; }
.recipe-out .chg { background: var(--accent-soft); border-radius: 4px; padding: 0 .2rem; }
.links { columns: 2; padding-left: 1.1rem; } @media (min-width: 700px) { .links { columns: 3; } }
.grid.single { grid-template-columns: 1fr; }
.recipe-out { font-family: inherit; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; user-select: none; }
.cal .dow { font-size: .75rem; color: var(--muted); text-align: center; }
.cal button { font: inherit; padding: .45rem 0; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink); cursor: pointer; }
.cal button.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.cal button:disabled { opacity: .35; cursor: default; }
.cal .month { grid-column: 1 / -1; font-weight: 700; margin-top: .6rem; }
.btn { font: inherit; font-weight: 600; padding: .65rem 1.1rem; border-radius: 8px; border: 1px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn:disabled { opacity: .5; cursor: default; }
.err { color: #b91c1c; font-size: .9rem; min-height: 1.2em; }
.two { display: grid; grid-template-columns: 1fr; gap: 1rem; } @media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; } }
.avail { overflow-x: auto; }
.avail table { border-collapse: separate; border-spacing: 0; margin: 0; user-select: none; touch-action: none; }
.avail th { font-size: .72rem; font-weight: 600; color: var(--muted); padding: .2rem .3rem; text-align: center; white-space: nowrap; }
.avail th.t { text-align: right; vertical-align: top; transform: translateY(-.55em); }
.avail td { width: 54px; min-width: 44px; height: 18px; padding: 0; border-left: 1px solid var(--line); border-bottom: 1px dotted var(--line); background: var(--bg); cursor: pointer; }
.avail tr.hour td { border-top: 1px solid var(--line); }
.avail td.on { background: var(--accent); }
.avail td.best { outline: 2px solid #f59e0b; outline-offset: -2px; }
.people { display: flex; flex-wrap: wrap; gap: .35rem; margin: .6rem 0; }
.people span { font-size: .82rem; padding: .2rem .55rem; border-radius: 999px; background: var(--accent-soft); }
.people span.off { background: transparent; border: 1px solid var(--line); color: var(--muted); text-decoration: line-through; }
.share { display: flex; gap: .5rem; } .share input { flex: 1; }
.scale { display: flex; align-items: center; gap: .4rem; font-size: .78rem; color: var(--muted); margin: .5rem 0; }
.scale i { display: inline-block; width: 18px; height: 12px; border-radius: 2px; }
.avail table { width: auto; }
.cal small { font-size: .7em; }
