/* Balthasar Becker · Finanztools · Design v2
 * Mobile first. Kein position:fixed/sticky (Höhe des eingebetteten iFrames folgt dem Inhalt).
 * Alle Farben über Tokens; Kontraste in 02-design.md Abschnitt 3.1. */
:root {
  --navy: #1b252f; --navy-2: #263440; --ink: #263440; --muted: #5d6a74;
  --paper: #f4f5f6; --white: #fff; --line: #dce1e4; --line-strong: #c3ccd2;
  --gold: #e6b43e; --gold-text: #806020; --gold-soft: #fbf3df;
  --up: #12644d; --up-soft: #e7f3ef; --down: #a32f36; --down-soft: #fbeced;
  --paid: #405c74; --muted-fill: #9aa8b2;
  --focus-light: #987018; --focus-dark: #e6b43e;
  --r: 12px; --r-sm: 8px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink); background: var(--paper);
  font-size: 16px; line-height: 1.5; font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; overflow-wrap: anywhere; }
h1 { font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; color: var(--navy); }
h2 { font-size: 20px; line-height: 1.3; color: var(--navy); }
h3 { font-size: 17px; line-height: 1.35; color: var(--navy); margin-top: var(--s5); margin-bottom: var(--s3); }
p + p { margin-top: var(--s3); }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus-light); outline-offset: 3px; }
.result-hero :focus-visible, .topbar .tabs [aria-current=page]:focus-visible { outline-color: var(--focus-dark); }
h1:focus { outline: none; }
main:focus { outline: none; }
.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; }
.skip { position: absolute; left: var(--s3); top: -100px; z-index: 10; background: var(--white); padding: var(--s3) var(--s4); border-radius: var(--r-sm); }
.skip:focus { top: var(--s3); }
.small { font-size: 14px; color: var(--muted); }
.muted { color: var(--muted); }
.center { text-align: center; }
.link { color: var(--gold-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Kopf und Navigation ---------- */
.topbar { background: var(--white); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1120px; margin: 0 auto; padding: var(--s3) var(--s4) 0; display: grid; grid-template-columns: 1fr; gap: var(--s3); }
.brand { display: flex; align-items: center; gap: var(--s3); }
.brand-logo { width: 40px; height: 40px; display: block; flex-shrink: 0; }
.brand-name { font-weight: 800; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy); line-height: 1.25; }
.brand-name small { display: block; font-weight: 500; font-size: 13px; letter-spacing: 0.04em; text-transform: none; color: var(--muted); }
.trust { display: none; font-size: 14px; color: var(--muted); }
.tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s1); margin: 0 calc(-1 * var(--s1)); }
.tabs button { min-height: 44px; padding: var(--s2) var(--s1); border: 0; border-bottom: 3px solid transparent; background: none; font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer; border-radius: var(--r-sm) var(--r-sm) 0 0; }
.tabs button:hover { color: var(--navy); background: var(--paper); }
.tabs button[aria-current=page] { color: var(--navy); border-bottom-color: var(--gold); }

/* ---------- Seitenrahmen ---------- */
main { max-width: 1120px; margin: 0 auto; padding: var(--s5) var(--s4) var(--s7); display: grid; gap: var(--s5); min-width: 0; }
.page-head { display: grid; gap: var(--s2); }
.lead { font-size: 18px; color: var(--muted); max-width: 60ch; }
.footer { max-width: 1120px; margin: 0 auto; padding: var(--s5) var(--s4) var(--s6); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); align-items: center; justify-content: space-between; font-size: 14px; color: var(--muted); }
.noscript { padding: var(--s4); }
.view-note:empty { display: none; }
.split, .stack, .grid-2 { display: grid; gap: var(--s5); grid-template-columns: minmax(0, 1fr); min-width: 0; align-items: start; }
.grid-2 { gap: var(--s4); }
.split > *, .stack > *, .grid-2 > *, .details-body > *, .result-body > *, .inputs > * { min-width: 0; }

/* ---------- Karten ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; min-width: 0; }
.card > h2 { margin-bottom: var(--s4); display: flex; align-items: center; gap: var(--s3); }
.card-quiet { background: transparent; border-style: dashed; border-color: var(--line-strong); }
.inputs { display: grid; gap: var(--s4); }
.step-no { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: var(--white); font-size: 14px; font-weight: 700; flex-shrink: 0; margin-right: var(--s2); }
.steps { list-style: none; padding: 0; margin: 0; display: flex; gap: var(--s2); flex-wrap: wrap; font-size: 14px; color: var(--muted); counter-reset: step; }
.steps li { counter-increment: step; display: flex; align-items: center; gap: var(--s1); }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 13px; font-weight: 700; }
.steps li.is-active { color: var(--navy); font-weight: 600; }
.steps li.is-active::before { background: var(--navy); border-color: var(--navy); color: var(--white); }
.steps li + li::after { content: none; }

/* Startseite */
.tool-grid { display: grid; gap: var(--s4); }
.tool-card { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s5); }
.tool-card h2 { font-size: 21px; }
.tool-card .meta { font-size: 14px; color: var(--muted); margin-top: auto; padding-top: var(--s2); }
.tool-card .btn { align-self: flex-start; margin-top: var(--s2); }
.start-data { display: grid; gap: var(--s3); justify-items: start; }

/* ---------- Felder ---------- */
.field { display: grid; gap: 6px; min-width: 0; margin: 0; }
.field-label { font-weight: 600; font-size: 16px; color: var(--navy); padding: 0; }
.field-hint { font-size: 14px; color: var(--muted); margin: 0; }
.field-error { font-size: 14px; color: var(--down); font-weight: 600; margin: 0; display: flex; gap: 6px; }
.field-error::before { content: '!'; display: inline-grid; place-items: center; flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--down); color: var(--white); font-size: 13px; }
.input-group { display: flex; align-items: stretch; min-width: 0; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--white); }
.input-group:focus-within { outline: 3px solid var(--focus-light); outline-offset: 2px; }
.input-group .input { border: 0; outline: none; }
.input { width: 100%; min-width: 0; min-height: 48px; padding: 10px var(--s3); font-size: 17px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--white); font-variant-numeric: tabular-nums; }
.input:focus-visible { outline-offset: 2px; }
textarea.input { min-height: 72px; resize: vertical; font-size: 16px; }
select.input { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px; background-size: 5px 5px; background-repeat: no-repeat; font-size: 16px; }
.input-unit { display: grid; place-items: center; padding: 0 var(--s3); color: var(--muted); font-weight: 600; background: var(--paper); border-left: 1px solid var(--line); border-radius: 0 var(--r-sm) var(--r-sm) 0; white-space: nowrap; }
.input-group:has([aria-invalid=true]) { border-color: var(--down); background: var(--down-soft); }
.input-group:has([aria-invalid=true]) .input { background: var(--down-soft); }

.segmented { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; min-width: 0; }
.segmented-track { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 3px; gap: 3px; }
.segment { min-height: 44px; display: grid; place-items: center; border-radius: 6px; font-weight: 600; cursor: pointer; color: var(--muted); text-align: center; padding: 0 var(--s2); }
.segment:has(input:checked) { background: var(--navy); color: var(--white); }
.segment:has(input:focus-visible) { outline: 3px solid var(--focus-light); outline-offset: 2px; }
.chips { display: flex; gap: var(--s2); flex-wrap: wrap; }

/* ---------- Knöpfe ---------- */
.btn { min-height: 44px; padding: 10px 18px; border-radius: var(--r-sm); border: 1px solid transparent; font-weight: 700; font-size: 16px; line-height: 1.3; cursor: pointer; text-align: center; max-width: 100%; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-2); }
.btn-secondary { background: var(--white); border-color: var(--line-strong); color: var(--navy); }
.btn-secondary:hover { border-color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); border-color: transparent; text-decoration: underline; text-underline-offset: 3px; padding-left: var(--s2); padding-right: var(--s2); }
.btn-danger { background: var(--down); color: var(--white); }
.btn-link { background: none; border: 0; padding: 0 2px; min-height: 0; color: var(--gold-text); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.footer .btn-link { min-height: 44px; color: var(--muted); }
.btn-chip { min-height: 44px; padding: 4px 14px; border-radius: 999px; background: var(--white); border-color: var(--line-strong); font-weight: 600; font-size: 15px; }
.btn-icon { min-width: 44px; padding: 0; background: transparent; border-color: transparent; color: var(--muted); font-size: 20px; }
.btn-icon:hover { color: var(--navy); background: var(--paper); }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }

/* ---------- Ergebnis ---------- */
.result { border-radius: var(--r); overflow: hidden; background: var(--white); border: 1px solid var(--line); min-width: 0; transition: opacity .15s; }
.result-hero { background: var(--navy); color: var(--white); padding: var(--s5) 20px; display: grid; gap: var(--s2); }
.result-hero .eyebrow { font-size: 14px; font-weight: 600; color: #c9d3db; text-transform: none; letter-spacing: 0; }
.hero-number { font-size: 36px; line-height: 1.1; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.hero-sentence { font-size: 18px; line-height: 1.45; color: var(--white); max-width: 46ch; }
.hero-exact { font-size: 14px; color: #c9d3db; }
.result-empty { background: var(--navy); }
.result-empty .hero-sentence { color: #e3e9ee; }
.result-hero.is-negative .hero-number { color: #ffb4b9; }
.delta { font-size: 17px; font-weight: 700; color: var(--white); }
.delta.is-down { color: #ffb4b9; }
.delta.is-up { color: #9be3c8; }
.result-body { padding: 20px; display: grid; gap: var(--s4); }
.result-body h3 { margin: 0; }
.why { font-size: 17px; }
.is-down-text { color: var(--down); }
.is-up-text { color: var(--up); }
.result.is-stale .result-hero, .result.is-stale .result-body { filter: grayscale(1); }
.stale-label { background: var(--down-soft); color: var(--down); font-weight: 700; font-size: 14px; padding: var(--s2) 20px; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.pair div { background: var(--paper); border-radius: var(--r-sm); padding: var(--s3); display: grid; gap: 2px; }
.pair span { font-size: 14px; color: var(--muted); }
.pair strong { font-variant-numeric: tabular-nums; color: var(--navy); overflow-wrap: anywhere; }
.year-line { font-variant-numeric: tabular-nums; font-size: 15px; }
.mini-result { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--line); }
.mini-number { font-size: 17px; }
.goal-sentence { font-size: 18px; font-weight: 600; }

/* Balken */
.hbars { display: grid; gap: var(--s3); }
.hbar-head { display: flex; justify-content: space-between; gap: var(--s3); font-size: 15px; }
.hbar-head strong { min-width: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; text-align: right; }
.hbar-track { display: block; width: 100%; height: 10px; margin-top: 4px; }
.track { fill: #edf0f2; }
.fill-navy { fill: var(--navy); } .fill-gold { fill: var(--gold); } .fill-muted { fill: var(--muted-fill); } .fill-down { fill: var(--down); }

/* Diagramme */
.figure { margin: 0; display: grid; gap: var(--s2); }
.chart { width: 100%; height: auto; display: block; touch-action: pan-y; }
.chart .grid { stroke: #e5e9ec; stroke-width: 1; }
.chart .axis { font-size: 15px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.chart .fill-paid { fill: var(--paid); } .chart .fill-gain { fill: var(--gold); }
.chart .fill-loss { fill: var(--down-soft); stroke: var(--down); stroke-dasharray: 3 2; }
.chart .col { cursor: pointer; }
.chart .col:not(.is-selected) rect { opacity: .55; }
.chart .marker { stroke: var(--up); stroke-width: 2; stroke-dasharray: 4 3; }
.chart .line { fill: none; stroke-width: 3; stroke-linejoin: round; }
.chart .line.gold { stroke: var(--gold); } .chart .line.navy { stroke: var(--navy); }
.legend { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); font-size: 14px; color: var(--muted); }
.key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.key-paid { background: var(--paid); } .key-gain, .key-gold { background: var(--gold); } .key-navy { background: var(--navy); }
.key-loss { background: var(--down-soft); border: 1px dashed var(--down); }
.range { width: 100%; min-height: 44px; accent-color: var(--focus-light); }

/* ---------- Aufklappbereiche, Tabellen, Hinweise ---------- */
.details { padding: 0; }
.details > summary { list-style: none; cursor: pointer; min-height: 56px; padding: var(--s4) 20px; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); font-weight: 700; color: var(--navy); }
.details > summary::-webkit-details-marker { display: none; }
.details > summary::after { content: ''; flex-shrink: 0; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: -4px 4px 0 var(--s2); }
.details[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.details-title { min-width: 0; overflow-wrap: anywhere; display: flex; align-items: center; }
.details-status { margin-left: auto; font-size: 14px; font-weight: 500; color: var(--muted); text-align: right; }
.details-body { padding: 0 20px 20px; display: grid; gap: var(--s4); }
.details-body > h3:first-child { margin-top: 0; }
.result-body .details { border-color: var(--line); }
.result-body .details > summary { padding-left: var(--s4); padding-right: var(--s4); min-height: 48px; }
.result-body .details-body { padding: 0 var(--s4) var(--s4); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-sm); max-height: 480px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; font-variant-numeric: tabular-nums; }
th, td { padding: 10px var(--s3); text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
thead th { background: var(--paper); font-size: 14px; color: var(--muted); font-weight: 600; position: static; }
tbody th { font-weight: 600; color: var(--navy); }
.num { text-align: right; }
tbody tr:last-child > * { border-bottom: 0; }
.notice { border-radius: var(--r-sm); padding: var(--s3) var(--s4); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); font-size: 15px; border: 1px solid; }
.notice-info { background: #edf1f4; border-color: #d4dde3; }
.notice-success { background: var(--up-soft); border-color: #b9dccf; color: #0d4a39; }
.notice-error { background: var(--down-soft); border-color: #e3b7ba; color: var(--down); font-weight: 600; }
.confirm { border: 2px solid var(--navy); border-radius: var(--r-sm); padding: var(--s4); display: grid; gap: var(--s3); background: var(--white); margin-top: var(--s3); }
.feedback:empty { display: none; }
.feedback { margin-top: var(--s2); }

/* ---------- Budget-Zeilen ---------- */
.entries { display: grid; gap: var(--s3); margin: var(--s3) 0; }
.entry { border-bottom: 1px solid var(--line); padding-bottom: var(--s3); display: grid; gap: var(--s2); }
.entry-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s2); align-items: center; }
.entry-main > .input-label { grid-column: 1; }
.entry-main > .field { grid-column: 1 / -1; }
.entry-flow .entry-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.entry-flow .entry-main > .input-label { grid-column: 1; }
.entry-flow .entry-main > .row-tools { grid-column: 2; grid-row: 1; justify-self: end; }
.entry-flow .entry-main > .field:nth-child(2) { grid-column: 1; }
.entry-flow .entry-main > .field:nth-child(3) { grid-column: 2; }
.entry-main > .row-tools { grid-row: 1; grid-column: 2; }
.row-tools { display: flex; }
.input-label { border: 0; border-bottom: 1px dashed transparent; border-radius: 0; padding: 4px 0; min-height: 44px; font-weight: 600; font-size: 16px; color: var(--navy); background: transparent; }
.input-label:hover { border-bottom-color: var(--line-strong); }
.row-extra { display: grid; gap: var(--s3); padding: var(--s3); background: var(--paper); border-radius: var(--r-sm); }
.entry-sub { display: grid; gap: var(--s3); }

/* Schalter und Regeln */
.switch { display: flex; align-items: center; gap: var(--s3); min-height: 44px; font-weight: 600; cursor: pointer; }
.switch-input { width: 22px; height: 22px; accent-color: var(--navy); }
.rules { border: 0; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.rule { display: grid; grid-template-columns: auto 1fr; gap: var(--s3); align-items: start; padding: var(--s3); border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; }
.rule input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--navy); }
.rule:has(input:checked) { border-color: var(--navy); background: #f7f9fa; }
.rule span { display: grid; gap: 2px; }
.rule-text { font-size: 15px; color: var(--muted); }

/* Deine Daten */
.data-panel { display: grid; gap: var(--s3); }
.data-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s2); }
.save-status { font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.save-status::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.save-status.is-dirty { color: var(--gold-text); }
.save-status.is-dirty::before { background: var(--gold); }
.save-status.is-saved { color: var(--up); }
.save-status.is-saved::before { background: var(--up); }
.file-opener { display: contents; }

/* Datenschutz */
.prose { display: grid; gap: var(--s3); max-width: 75ch; }
.prose h2 { margin-bottom: 0; }
.example { background: var(--gold-soft); border-left: 4px solid var(--gold); padding: var(--s3) var(--s4); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.toc { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); }
.toc a { color: var(--gold-text); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.not-found { padding: var(--s7) var(--s4); }

/* ---------- Ab Tablet ---------- */
@media (min-width: 640px) {
  .topbar-inner { grid-template-columns: auto 1fr; align-items: center; padding-top: var(--s3); }
  .tabs { grid-column: 1 / -1; display: flex; gap: var(--s2); margin: 0; }
  .tabs button { padding: var(--s2) var(--s4); }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entry-main { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; }
  .entry-main > .field { grid-column: auto; }
  .entry-main > .row-tools { grid-row: auto; grid-column: auto; }
  .entry-flow .entry-main { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 0.9fr) auto; }
  .entry-flow .entry-main > .input-label, .entry-flow .entry-main > .field:nth-child(2), .entry-flow .entry-main > .field:nth-child(3), .entry-flow .entry-main > .row-tools { grid-column: auto; grid-row: auto; }
  .entry-sub { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { padding: var(--s5); }
  .details > summary { padding-left: var(--s5); padding-right: var(--s5); }
  .details-body { padding: 0 var(--s5) var(--s5); }
}
@media (min-width: 900px) {
  h1 { font-size: 36px; }
  h2 { font-size: 22px; }
  main { padding-top: var(--s6); gap: var(--s6); }
  .topbar-inner { grid-template-columns: auto 1fr auto; padding: var(--s3) var(--s5); }
  .trust { display: block; grid-column: 3; grid-row: 1; }
  .tabs { grid-column: 2; grid-row: 1; justify-self: center; }
  .tabs button { border-bottom: 0; border-radius: 999px; }
  .tabs button[aria-current=page] { background: var(--navy); color: var(--white); }
  .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s6); }
  .result-hero { padding: var(--s6); }
  .result-body { padding: var(--s5) var(--s6) var(--s6); }
  .hero-number { font-size: 48px; }
  .hero-sentence { font-size: 20px; }
  main, .topbar-inner, .footer { padding-left: var(--s5); padding-right: var(--s5); }
}
@media (max-width: 359px) {
  .tabs button { font-size: 13.5px; padding-left: 0; padding-right: 0; }
  .brand-name { font-size: 13px; }
  .hero-number { font-size: 32px; }
  .card, .result-hero, .result-body { padding: var(--s4); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print {
  .topbar, .footer, .data-panel, .btn { display: none !important; }
  .result-hero { background: none; color: var(--ink); border-bottom: 2px solid var(--navy); }
  .hero-number, .hero-sentence { color: var(--navy); }
}

/* Auf schmalen Geräten steht die erste Einnahme direkt unter der Schrittübersicht. */
@media (max-width: 639px) {
  main:has(#step1) { gap: 12px; padding-top: 16px; }
  main:has(#step1) .page-head { gap: 4px; }
  main:has(#step1) .page-head .save-status { margin-top: 0; }
  main:has(#step1) .page-head .lead { font-size: 16px; }
  main:has(#step1) .steps { gap: 4px 8px; }
  .card:has(> #step1) { display: flex; flex-direction: column; align-items: stretch; padding: 12px 16px; }
  #step1 { margin-bottom: 8px; }
  .card:has(> #step1) > .muted { order: 1; margin: 8px 0 0; }
  .card:has(> #step1) .entries { margin-top: 8px; }
}
