:root {
  --bg: #f3eee6;
  --ink: #1a1714;
  --muted: #6e665c;
  --line: #eadfce;
  --card: #fffdf9;
  --green: #1c9a62;
  --green-dark: #14734a;
  --green-soft: #e3f7ec;
  --gold: #e8b03a;
  --red: #d4523a;
  --red-soft: #fde8e3;
  --shadow: 0 12px 28px rgba(46, 32, 14, 0.08);
  --radius: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: "Nunito", system-ui, sans-serif;
  background:
    radial-gradient(900px 480px at -10% -20%, #ffe7b8 0%, transparent 55%),
    radial-gradient(700px 420px at 110% 0%, #c8f0dc 0%, transparent 50%),
    radial-gradient(600px 300px at 50% 120%, #f3d7c4 0%, transparent 45%),
    var(--bg);
  color: var(--ink);
}
button, a { font-family: inherit; }
button { cursor: pointer; }
h1, h2, .prompt, .learn-card h3, .done-card h2, .section-title, .learn-head {
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: auto;
}

.app {
  width: min(560px, 100%);
  margin: 0 auto;
  min-height: 100vh;
  padding: 20px 16px 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(160deg, #2bb874, #14734a);
  color: white;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 8px 0 #0f5a39, 0 12px 20px rgba(20, 115, 74, 0.25);
}
.brand h1 {
  font-size: 24px;
  line-height: 1;
}
.brand p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
  font-weight: 700;
}
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.theme-btn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  font-size: 18px;
  box-shadow: var(--shadow);
}
.xp {
  background: linear-gradient(180deg, #fff6d6, #ffe8a3);
  border: 0;
  color: #8a5a00;
  font-weight: 800;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14px;
  box-shadow: 0 4px 0 #e2b84a;
}
.hero {
  background: linear-gradient(180deg, #fffefb 0%, #fff8ec 100%);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 28px;
  padding: 22px 20px 20px;
  box-shadow: var(--shadow), inset 0 1px 0 #fff;
  margin-bottom: 22px;
}
.hero h2 {
  font-size: 28px;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 8px;
}
.hero p {
  font-family: "Fraunces", Georgia, serif;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 600;
}
.overall-row,
.stats span,
.stats b {
  font-family: "Fraunces", Georgia, serif;
}
.overall {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.overall-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-weight: 800;
  font-size: 14px;
}
.overall-row span { color: var(--muted); }
.overall-row em { font-style: normal; }
.overall-row em.ok { color: var(--green-dark); }
.overall-row em.no { color: var(--red); }
.bar.big { height: 16px; background: #efe4d2; }
.count {
  min-width: 52px;
  text-align: right;
  font-weight: 800;
  font-size: 13px;
  color: var(--muted);
}

.section-title {
  font-size: 26px;
  margin: 6px 2px 6px;
  letter-spacing: -0.03em;
}
.section-help {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  margin: 0 2px 14px;
  font-weight: 700;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}
.stats > div {
  background: #fff;
  border-radius: 18px;
  padding: 12px 6px 10px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(46, 32, 14, 0.06);
}
.stats b {
  display: block;
  font-size: 24px;
  line-height: 1.1;
}
.stats span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.stats .ok { background: var(--green-soft); }
.stats .ok b { color: var(--green-dark); }
.stats .no { background: var(--red-soft); }
.stats .no b { color: var(--red); }

.path {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.lesson {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 0;
  border-radius: 22px;
  padding: 16px 10px 14px;
  text-align: center;
  color: inherit;
  width: 100%;
  min-height: 148px;
  box-shadow: var(--shadow), 0 3px 0 #e6d9c4;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.lesson:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(46, 32, 14, 0.12), 0 3px 0 #e6d9c4;
}
.lesson:active:not(:disabled) { transform: translateY(1px); }
.lesson.done {
  box-shadow: var(--shadow), 0 3px 0 #b7e0c8;
}
.bubble {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 26px;
  background: #efe7d8;
}
.lesson h3 {
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 800;
}
.lesson span { color: var(--muted); font-size: 12px; font-weight: 800; }
.lesson span em { font-style: normal; }
.lesson span em.ok { color: var(--green-dark); }
.lesson span em.no { color: var(--red); }
.mini-bar {
  width: 72%;
  height: 7px;
  background: #efe4d2;
  border-radius: 99px;
  overflow: hidden;
  display: flex;
}
.mini-bar > i {
  display: block;
  height: 100%;
  flex-shrink: 0;
}
.mini-bar > i.ok { background: var(--green); }
.mini-bar > i.bad { background: var(--red); }
.tone-shop .bubble { background: #ffe1c7; }
.tone-teal .bubble { background: #c9f3e6; }
.tone-sky .bubble { background: #d4e9ff; }
.tone-amber .bubble { background: #ffe7b0; }
.tone-violet .bubble { background: #ead7ff; }
.tone-lime .bubble { background: #d8f5c8; }
.tone-clay .bubble { background: #f3d4c4; }
.tone-fire .bubble { background: #ffd0c4; }
.tone-plum .bubble { background: #f0d0e8; }
.tone-navy .bubble { background: #d3def8; }
.tone-shop.done, .tone-teal.done, .tone-sky.done, .tone-amber.done,
.tone-violet.done, .tone-lime.done, .tone-clay.done, .tone-fire.done,
.tone-plum.done, .tone-navy.done { outline: 2px solid #8fd4ad; }

.screen { display: none; }
.screen.active { display: block; }

.lesson-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.back {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  font-size: 20px;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.bar {
  flex: 1;
  height: 14px;
  background: #efe4d2;
  border-radius: 99px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.06);
  display: flex;
}
.bar > i {
  display: block;
  height: 100%;
  width: 0;
  flex-shrink: 0;
  transition: width 0.25s ease;
}
.bar > i.ok,
.bar > i:not(.bad) { background: var(--green); }
.bar > i.bad { background: var(--red); }

.prompt {
  font-size: 28px;
  letter-spacing: -0.03em;
  line-height: 1.22;
  margin: 8px 0 22px;
}

.options { display: grid; gap: 10px; }
.opt {
  width: 100%;
  text-align: left;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 18px;
  padding: 16px;
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  box-shadow: var(--shadow), 0 3px 0 #e6d9c4;
}
.opt:active { transform: translateY(2px); box-shadow: 0 1px 0 #e6d9c4; }
.opt.picked {
  border-color: var(--muted);
  background: #ebe6de;
  box-shadow: 0 3px 0 #cfc9be;
}
.opt.good { border-color: var(--green); background: var(--green-soft); }
.opt.bad { border-color: var(--red); background: var(--red-soft); }

.footer {
  position: sticky;
  bottom: 0;
  margin-top: 24px;
  padding: 14px 0 8px;
  background: linear-gradient(transparent, var(--bg) 28%);
}
.btn {
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 16px;
  font-size: 18px;
  font-weight: 800;
  color: white;
  background: var(--green);
  box-shadow: 0 5px 0 var(--green-dark);
}
.btn:disabled { opacity: 0.45; box-shadow: none; }
.btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 3px 0 var(--green-dark); }
.btn-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 10px;
  margin-top: 16px;
}
.level-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.level-badge.l1 { background: #dff5e8; color: #166b46; }
.level-badge.l2 { background: #fff0d6; color: #9a6200; }
.level-badge.l3 { background: #fde2e2; color: #9b1c1c; }
.count small {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  margin-top: 2px;
}
.calc-entry-wrap {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.btn.calc-entry {
  width: 100%;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow), 0 3px 0 #e6d9c4;
}
.btn.calc-entry:active:not(:disabled) {
  box-shadow: 0 2px 0 #e6d9c4;
}
.btn.ghost {
  background: #3a3530;
  box-shadow: 0 5px 0 #1c1915;
}

.learn-head {
  font-size: 26px;
  flex: 1;
}
.learn-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.learn-nav a {
  background: #fff;
  border: 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(46, 32, 14, 0.06);
}
.learn-card {
  background: #fff;
  border: 0;
  border-radius: 24px;
  padding: 22px 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.learn-ico { font-size: 30px; margin-bottom: 8px; }
.learn-card h3 {
  font-size: 24px;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.learn-card p, .learn-card li {
  color: #3a342c;
  line-height: 1.55;
  font-weight: 700;
  margin-bottom: 10px;
}
.learn-card ul { padding-left: 18px; margin-bottom: 10px; }
.mini {
  background: #f7f1e6;
  border-radius: 16px;
  padding: 12px 12px 4px;
  margin-bottom: 10px;
}
.mini h4 { font-size: 15px; margin-bottom: 6px; }
.mini p { font-size: 15px; }
.src {
  display: inline-block;
  margin-top: 4px;
  color: var(--green-dark);
  font-weight: 800;
}
.alloc { margin: 12px 0 16px; }
.alloc-row {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 4px;
}
.alloc-bar {
  height: 12px;
  background: #efe4d2;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 10px;
}
.alloc-bar > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #2bb874, #14734a);
  border-radius: 99px;
}

.sheet {
  display: none;
  margin-top: 12px;
  border-radius: 20px;
  padding: 16px;
}
.sheet.show { display: block; }
.sheet.ok { background: var(--green-soft); color: #145c3b; }
.sheet.no { background: var(--red-soft); color: #8a2b1d; }
.sheet strong { display: block; font-size: 18px; margin-bottom: 6px; }
.sheet p { line-height: 1.45; font-weight: 700; }
.sheet a {
  display: inline-block;
  margin-top: 10px;
  color: inherit;
  font-weight: 800;
}

.done-card {
  background: #fff;
  border: 0;
  border-radius: 28px;
  padding: 32px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.done-card .big { font-size: 56px; margin-bottom: 8px; }
.done-card h2 { font-size: 30px; margin-bottom: 8px; }
.done-card p { color: var(--muted); margin-bottom: 22px; font-weight: 700; }

.note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  font-weight: 700;
}
.note a { color: var(--green-dark); font-weight: 800; }

html[data-theme="night"] {
  color-scheme: dark;
  --bg: #12151c;
  --ink: #f3efe6;
  --muted: #b4ab9e;
  --line: #2a3140;
  --card: #1b2130;
  --green: #3dce86;
  --green-dark: #1f8a58;
  --green-soft: #1a3d2d;
  --red: #ff7a63;
  --red-soft: #3d221e;
  --shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
html[data-theme="night"] body {
  background:
    radial-gradient(800px 420px at -10% -20%, #2a2418 0%, transparent 55%),
    radial-gradient(700px 400px at 110% 0%, #163028 0%, transparent 50%),
    radial-gradient(500px 280px at 50% 120%, #2a1c24 0%, transparent 45%),
    var(--bg);
}
html[data-theme="night"] .hero,
html[data-theme="night"] .lesson,
html[data-theme="night"] .opt,
html[data-theme="night"] .learn-card,
html[data-theme="night"] .done-card,
html[data-theme="night"] .stats > div,
html[data-theme="night"] .learn-nav a,
html[data-theme="night"] .back,
html[data-theme="night"] .theme-btn,
html[data-theme="night"] .btn.calc-entry {
  background: #1b2130;
  box-shadow: var(--shadow);
}
html[data-theme="night"] .btn.calc-entry {
  box-shadow: var(--shadow), 0 3px 0 #12151c;
}
html[data-theme="night"] .calc-entry-wrap {
  border-top-color: #2e3648;
}
html[data-theme="night"] .hero {
  background: linear-gradient(180deg, #222a3b 0%, #1b2130 100%);
  border-color: #2e3648;
}
html[data-theme="night"] .level-badge.l1 { background: #1a3d2d; color: #8ee4b4; }
html[data-theme="night"] .level-badge.l2 { background: #3d3018; color: #ffd27a; }
html[data-theme="night"] .level-badge.l3 { background: #3d221e; color: #ffb4a8; }
html[data-theme="night"] .xp {
  background: linear-gradient(180deg, #5a4310, #3d2e0a);
  color: #ffe7a3;
  box-shadow: 0 4px 0 #2a1e06;
}
html[data-theme="night"] .stats .ok { background: var(--green-soft); }
html[data-theme="night"] .stats .no { background: var(--red-soft); }
html[data-theme="night"] .bar,
html[data-theme="night"] .bar.big,
html[data-theme="night"] .mini-bar,
html[data-theme="night"] .alloc-bar {
  background: #2a3140;
}
html[data-theme="night"] .mini { background: #242b3c; }
html[data-theme="night"] .opt { box-shadow: 0 3px 0 #12151c; }
html[data-theme="night"] .opt.picked {
  border-color: #6b7385;
  background: #2e3648;
  box-shadow: 0 3px 0 #12151c;
}
html[data-theme="night"] .opt.good { background: var(--green-soft); }
html[data-theme="night"] .opt.bad { background: var(--red-soft); }
html[data-theme="night"] .tone-shop .bubble { background: #4a3224; }
html[data-theme="night"] .tone-teal .bubble { background: #1d4038; }
html[data-theme="night"] .tone-sky .bubble { background: #24364a; }
html[data-theme="night"] .tone-amber .bubble { background: #4a3b18; }
html[data-theme="night"] .tone-violet .bubble { background: #3a2a4a; }
html[data-theme="night"] .tone-lime .bubble { background: #2a401c; }
html[data-theme="night"] .tone-clay .bubble { background: #4a3028; }
html[data-theme="night"] .tone-fire .bubble { background: #4a2820; }
html[data-theme="night"] .tone-plum .bubble { background: #402030; }
html[data-theme="night"] .tone-navy .bubble { background: #243048; }
html[data-theme="night"] .learn-card p,
html[data-theme="night"] .learn-card li { color: #ddd4c6; }
html[data-theme="night"] .footer {
  background: linear-gradient(transparent, var(--bg) 28%);
}

.calc-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px 18px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.calc-lead {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 18px;
}
.calc-label {
  display: block;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 8px;
}
.calc-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 16px;
  padding: 4px 14px 4px 4px;
  box-shadow: inset 0 0 0 2px var(--line);
  margin-bottom: 12px;
}
.calc-input-row input {
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 28px;
  font-weight: 800;
  padding: 12px 10px;
  color: var(--ink);
  min-width: 0;
}
.calc-input-row input:focus { outline: none; }
.calc-input-row input::-webkit-outer-spin-button,
.calc-input-row input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-unit {
  color: var(--muted);
  font-weight: 800;
  font-size: 14px;
}
.calc-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.calc-presets button {
  border: 0;
  border-radius: 12px;
  padding: 10px 6px;
  background: #f7f1e6;
  color: var(--ink);
  font-weight: 800;
  font-size: 13px;
}
.calc-presets button:active { transform: translateY(1px); }
.calc-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--muted);
  cursor: pointer;
}
.calc-check input {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  accent-color: var(--green);
  flex-shrink: 0;
}
.calc-results { margin-top: 4px; }
.calc-summary {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}
.calc-big {
  border-radius: 18px;
  padding: 16px 14px;
  text-align: center;
}
.calc-big span {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 6px;
}
.calc-big strong {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.calc-big small {
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--muted);
}
.calc-big.employer {
  background: #eef1f8;
  border: 2px solid #c8d4ef;
}
.calc-big.employer strong { color: #3d5080; }
.calc-big.gross {
  background: #f7f1e6;
  border: 2px solid #eadfce;
}
.calc-big.gross strong { color: var(--ink); }
.calc-big.net {
  background: var(--green-soft);
  border: 2px solid #8fd4ad;
}
.calc-big.net strong { color: var(--green-dark); }
.calc-breakdown-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 18px;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.calc-empty {
  color: var(--muted);
  font-weight: 700;
  text-align: center;
  padding: 18px 8px;
}
.calc-bar {
  height: 14px;
  background: #efe4d2;
  border-radius: 99px;
  overflow: hidden;
  display: flex;
  margin-bottom: 10px;
}
.calc-bar > i {
  display: block;
  height: 100%;
  flex-shrink: 0;
}
.calc-bar > i.ok { background: var(--green); }
.calc-bar > i.tax { background: #c98a2e; }
.calc-bar > i.bad { background: var(--red); }
.calc-bar > i.cas { background: #6b7db8; }
.calc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}
.calc-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.calc-legend i {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  display: inline-block;
}
.calc-legend i.ok { background: var(--green); }
.calc-legend i.tax { background: #c98a2e; }
.calc-legend i.bad { background: var(--red); }
.calc-legend i.cas { background: #6b7db8; }
.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-weight: 700;
}
.calc-row strong { font-weight: 800; white-space: nowrap; }
.calc-row.highlight {
  border-top: 0;
  padding-top: 0;
  font-size: 18px;
}
.calc-row.highlight strong { color: var(--green-dark); font-size: 22px; }
.calc-row.muted { color: var(--muted); font-size: 14px; }
.calc-extra {
  margin-top: 8px;
  padding: 12px 14px;
  background: #f7f1e6;
  border-radius: 14px;
}
.calc-extra p {
  color: #3a342c;
  font-weight: 700;
  line-height: 1.5;
  font-size: 14px;
}
.calc-note b { color: var(--ink); }
.calc-banner {
  background: var(--green-soft);
  border: 2px solid #8fd4ad;
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  color: #145c3b;
  margin-bottom: 14px;
}
.calc-banner a {
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
}
.calc-more {
  background: var(--card);
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.calc-more summary {
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.calc-more summary::-webkit-details-marker { display: none; }
.calc-more summary::after {
  content: "+";
  font-size: 18px;
  color: var(--muted);
  font-weight: 800;
}
.calc-more[open] summary::after { content: "−"; }
.calc-more ul {
  margin-top: 12px;
  padding-left: 18px;
}
.calc-more li {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  color: #3a342c;
  margin-bottom: 8px;
}
.calc-more a {
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
}
.calc-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 10px;
}
.calc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 20px;
}
.calc-links a {
  color: var(--green-dark);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
}


html[data-theme="night"] .calc-card,
html[data-theme="night"] .calc-input-row {
  background: #1b2130;
}
html[data-theme="night"] .calc-input-row input { color: var(--ink); }
html[data-theme="night"] .calc-big.employer {
  background: #243048;
  border-color: #3a4a68;
}
html[data-theme="night"] .calc-big.employer strong { color: #a8bce8; }
html[data-theme="night"] .calc-big.gross {
  background: #242b3c;
  border-color: #2e3648;
}
html[data-theme="night"] .calc-big.net {
  background: var(--green-soft);
  border-color: #2a5a40;
}
html[data-theme="night"] .calc-more {
  background: #1b2130;
}
html[data-theme="night"] .calc-more li { color: #ddd4c6; }
html[data-theme="night"] .calc-banner {
  background: var(--green-soft);
  border-color: #2a5a40;
  color: #a8e0c0;
}
html[data-theme="night"] .calc-presets button,
html[data-theme="night"] .calc-extra {
  background: #242b3c;
}
html[data-theme="night"] .calc-extra p { color: #ddd4c6; }
html[data-theme="night"] .calc-bar { background: #2a3140; }

