@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: italic;
  font-weight: 100 700;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-italic-latin.woff2") format("woff2");
}

:root {
  --bg: #f4f6f9;
  --bg-soft: #e9edf4;
  --surface: rgba(255, 255, 255, .78);
  --surface-solid: #fff;
  --surface-2: rgba(246, 248, 252, .88);
  --ink: #11141a;
  --muted: #687181;
  --faint: #929bab;
  --line: rgba(20, 30, 48, .09);
  --line-strong: rgba(20, 30, 48, .15);
  --accent: #2268e8;
  --accent-2: #5792ff;
  --accent-soft: #e3edff;
  --blue: #5d87df;
  --amber: #d19045;
  --red: #d95b60;
  --mint: #5b8ff5;
  --lavendel: #9a8be0;
  --hemel: #6d9ee8;
  --perzik: #e7a967;
  --koraal: #dc6d79;
  --shadow: 0 24px 70px rgba(25, 40, 68, .11), 0 2px 12px rgba(25, 40, 68, .05);
  --shadow-sm: 0 10px 30px rgba(25, 40, 68, .08);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 17px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

[data-thema="donker"] {
  --bg: #0d1118;
  --bg-soft: #151b25;
  --surface: rgba(27, 34, 46, .82);
  --surface-solid: #1a202b;
  --surface-2: rgba(36, 44, 58, .88);
  --ink: #f5f7fb;
  --muted: #a8b1c0;
  --faint: #778295;
  --line: rgba(236, 242, 255, .09);
  --line-strong: rgba(236, 242, 255, .16);
  --accent: #6ea4ff;
  --accent-2: #93bbff;
  --accent-soft: rgba(72, 126, 220, .20);
  --blue: #82aaff;
  --amber: #e3ad68;
  --red: #ed7c82;
  --shadow: 0 28px 90px rgba(0, 0, 0, .32);
  --shadow-sm: 0 12px 36px rgba(0, 0, 0, .22);
}

* { box-sizing: border-box; }
html { color-scheme: light; background: var(--bg); scroll-behavior: smooth; }
[data-thema="donker"] { color-scheme: dark; }
#ios-statusbar-tint { display: none; }
@media (display-mode: standalone) and (orientation: portrait) {
  html.is-ios body { padding-top: 16px; }
  html.is-ios #ios-statusbar-tint {
    display: block;
    position: fixed;
    z-index: 2147483647;
    inset: 0 0 auto;
    height: 16px;
    pointer-events: none;
    background: var(--pwa-header-tint, var(--bg));
  }
}
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 34rem),
    radial-gradient(circle at 100% 28%, color-mix(in srgb, var(--blue) 8%, transparent), transparent 30rem),
    var(--bg);
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
.vs-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.overslaan { position: fixed; z-index: 100; left: 16px; top: -80px; padding: 12px 18px; border-radius: 12px; background: var(--ink); color: var(--bg); }
.overslaan:focus { top: 16px; }
.glas { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); backdrop-filter: blur(28px) saturate(150%); -webkit-backdrop-filter: blur(28px) saturate(150%); }

.sfeer { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.blob { position: absolute; border-radius: 50%; filter: blur(1px); opacity: .14; animation: zweef 18s var(--ease) infinite alternate; }
.blob-mint { width: 30rem; height: 30rem; left: -18rem; top: 25%; background: var(--mint); }
.blob-hemel { width: 25rem; height: 25rem; right: -15rem; top: 12%; background: var(--hemel); animation-delay: -6s; }
.blob-lavendel { width: 18rem; height: 18rem; right: 10%; bottom: -11rem; background: var(--lavendel); animation-delay: -10s; }
.blob-perzik { display: none; }
@keyframes zweef { to { transform: translate3d(2rem, 2rem, 0) scale(1.08); } }

.topbalk { position: sticky; top: 0; z-index: 30; padding: max(14px, env(safe-area-inset-top)) 24px 8px; pointer-events: none; }
.topbalk-binnen { max-width: 1400px; min-height: 68px; margin: 0 auto; padding: 10px 12px 10px 18px; border-radius: 22px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; pointer-events: auto; }
.merk { display: inline-flex; align-items: center; gap: 10px; margin: 0; width: max-content; font-weight: 720; font-size: 20px; letter-spacing: -.04em; }
.merk-punt { color: var(--accent); }
.merk-symbool { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; background: transparent; }
.merk-symbool img { display: block; width: 100%; height: 100%; object-fit: contain; }
.maandkiezer { display: flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.maand-label { min-width: 148px; border: 0; padding: 8px 10px; background: transparent; font-weight: 650; cursor: pointer; }
.topbalk-acties { justify-self: end; display: flex; align-items: center; gap: 6px; }
.icoonknop { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 12px; background: transparent; cursor: pointer; transition: background .2s, transform .2s var(--ease); }
.icoonknop:hover { background: var(--surface-2); }
.icoonknop:active { transform: scale(.92); }
.icoonknop svg, .knop-ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-icoon, .nav-icoon svg, .kpi-icoon svg, .ruimte-signaal svg, .tekstknop svg, .menu-item svg, .kaart-icoon svg, .showcase-status svg, .showcase-voet svg, .auth-wissel svg, .auth-voet svg { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic-zon { display: none; }.ic-maan { display: block; }[data-thema="donker"] .ic-zon { display: block; }[data-thema="donker"] .ic-maan { display: none; }
.gebruikersmenu { position: relative; }
.gebruikersmenu summary { list-style: none; cursor: pointer; }.gebruikersmenu summary::-webkit-details-marker { display: none; }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: var(--ink); color: var(--bg); font-weight: 750; }
.menu { position: absolute; right: 0; top: calc(100% + 10px); width: 230px; padding: 8px; border-radius: 18px; box-shadow: var(--shadow); }
.menu-naam { margin: 4px 8px 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 11px; border: 0; border-radius: 11px; background: none; color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; }
.menu-item svg { width: 17px; height: 17px; color: var(--muted); }
.menu-item:hover { background: var(--surface-2); }

main { width: min(1400px, calc(100% - 48px)); margin: 18px auto 0; padding-bottom: calc(50px + env(safe-area-inset-bottom)); }
.maandkaart { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(260px, .72fr) minmax(500px, 1.5fr); min-height: 420px; border-radius: var(--radius-xl); }
.maandkaart::before { content: ""; position: absolute; width: 34rem; height: 34rem; right: -11rem; top: -17rem; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 18%, transparent), transparent 68%); }
.maandkaart-meter { position: relative; display: grid; place-items: center; padding: 48px; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--surface-2) 80%, transparent); }
.meter { width: min(250px, 100%); transform: rotate(-90deg); overflow: visible; }
.meter-spoor, .meter-vulling { fill: none; stroke-width: 7; }
.meter-spoor { stroke: var(--line-strong); }
.meter-vulling { stroke: url(#meterKleur); stroke-linecap: round; stroke-dasharray: 515.2; stroke-dashoffset: 515.2; transition: stroke-dashoffset 1.1s var(--ease); }
.meter-midden { position: absolute; display: grid; text-align: center; }
.meter-percentage { font-size: clamp(38px, 4vw, 58px); font-weight: 660; letter-spacing: -.065em; line-height: 1; }
.meter-onder { color: var(--muted); margin-top: 7px; }
.maandkaart-inhoud { position: relative; z-index: 1; padding: clamp(32px, 5vw, 68px); display: flex; flex-direction: column; justify-content: center; }
.sectie-label { margin: 0 0 8px; color: var(--accent); font-size: 12px; font-weight: 760; letter-spacing: .11em; text-transform: uppercase; }
.hero-groet { margin: 0 0 8px; color: var(--accent); font-size: clamp(17px, 1.4vw, 21px); font-weight: 680; letter-spacing: -.025em; text-transform: none; }
.maandkaart-titel { margin: 0; font-size: clamp(28px, 4vw, 54px); line-height: 1.02; letter-spacing: -.055em; font-weight: 640; }
.ruimte-bedrag { margin: 5px 0 10px; font-size: clamp(48px, 6vw, 82px); line-height: 1; font-weight: 690; letter-spacing: -.075em; font-variant-numeric: tabular-nums; }
.ruimte-bedrag.is-negatief { color: var(--red); }
.maandkaart-zin { max-width: 620px; margin: 0 0 24px; color: var(--muted); font-size: 16px; }
.scope { position: relative; align-self: flex-start; display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--line); }
.scope-pil, .tab-pil { position: absolute; top: 0; left: 0; border-radius: 10px; background: var(--surface-solid); box-shadow: 0 3px 12px rgba(20, 28, 21, .08); transition: transform .45s var(--ease), width .45s var(--ease), height .45s var(--ease); }
.scope-knop { position: relative; z-index: 1; min-width: 95px; padding: 8px 12px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.scope-knop.is-actief { color: var(--ink); font-weight: 650; }
.tegels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 28px 0 0; }
.tegel { position: relative; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface-2); overflow: hidden; }
.tegel::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--faint); }
.tegel-totaal::before { background: var(--accent); }.tegel-open::before { background: var(--amber); }.tegel-betaald::before { background: var(--blue); }
.tegel dt { color: var(--muted); font-size: 12px; }.tegel dd { margin: 4px 0 0; font-size: clamp(20px, 2vw, 28px); font-weight: 680; letter-spacing: -.04em; white-space: nowrap; }.tegel-bij { color: var(--faint); font-size: 11px; }

.tabs { position: sticky; z-index: 20; top: 92px; display: grid; grid-template-columns: repeat(4, 1fr); width: min(720px, 100%); margin: 22px auto 28px; padding: 5px; border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(24px); }
.tab { position: relative; z-index: 1; min-height: 46px; padding: 10px 14px; border: 0; background: none; color: var(--muted); border-radius: 13px; cursor: pointer; }
.tab.is-actief { color: var(--ink); font-weight: 680; }
.tab-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; margin-left: 4px; border-radius: 8px; background: var(--bg-soft); font-size: 11px; }

.paneel { animation: paneel-in .45s var(--ease); }
@keyframes paneel-in { from { opacity: 0; transform: translateY(12px); } }
.paneel-kop { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 0 4px 20px; }
.paneel-kop h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); font-weight: 640; letter-spacing: -.055em; line-height: 1; }
.paneel-onder { margin: 9px 0 0; color: var(--muted); }
.paneel-knoppen { display: flex; gap: 8px; flex-wrap: wrap; justify-content: end; }
.knop { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 43px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-solid); color: var(--ink); font-weight: 650; cursor: pointer; transition: transform .2s var(--ease), background .2s, box-shadow .2s; }
.knop:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }.knop:active { transform: scale(.97); }
.knop-primair { border-color: transparent; background: var(--ink); color: var(--bg); }
.knop-stil { background: var(--surface); }.knop-gevaar { color: var(--red); }.knop-blok { width: 100%; }
.voortgangsbalk { height: 5px; border-radius: 99px; background: var(--line); overflow: hidden; }.voortgangsbalk-breed { margin-bottom: 12px; }.voortgang-vulling { display: block; height: 100%; border-radius: inherit; transition: width .8s var(--ease); }
.accent-mint { background: var(--mint); }.accent-lavendel { background: var(--lavendel); }.accent-hemel { background: var(--hemel); }.accent-perzik { background: var(--perzik); }.accent-koraal { background: var(--koraal); }

.lijst { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.regel { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto 42px; align-items: center; gap: 12px; min-height: 82px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 4px 18px rgba(33, 46, 37, .035); animation: regel-in .5s var(--ease) both; transition: border-color .2s, opacity .25s, transform .25s var(--ease); }
.regel:hover { border-color: var(--line-strong); transform: translateY(-1px); }.regel.is-betaald { opacity: .58; }.regel.is-inkomen { background: linear-gradient(90deg, color-mix(in srgb, var(--accent-soft) 80%, transparent), var(--surface) 40%); }
@keyframes regel-in { from { opacity: 0; transform: translateY(10px); } }
.vink { position: relative; width: 42px; height: 42px; border: 0; padding: 0; background: none; cursor: pointer; }.vink svg { width: 32px; fill: none; stroke-width: 1.8; }.vink-ring { stroke: var(--line-strong); fill: var(--surface-solid); }.vink-haak { stroke: transparent; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }.is-betaald .vink-ring { fill: var(--accent); stroke: var(--accent); }.is-betaald .vink-haak { stroke: var(--bg); }
.regel-tekst { min-width: 0; display: grid; gap: 3px; }.regel-naam { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 670; font-size: 16px; }.regel-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 12px; }.label-type { padding: 2px 7px; border-radius: 7px; background: var(--bg-soft); }.label-type[data-type="gezamenlijk"] { color: var(--blue); background: color-mix(in srgb, var(--blue) 12%, transparent); }.regel-datum.is-verlopen { color: var(--red); font-weight: 650; }.regel-bedrag { font-size: 18px; font-weight: 700; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }.is-inkomen .regel-bedrag { color: var(--accent); }.icoonknop-stil { color: var(--faint); }
.leeg { padding: 50px 24px; border: 1px dashed var(--line-strong); border-radius: 22px; color: var(--muted); text-align: center; }.leeg strong, .leeg span { display: block; }.leeg strong { color: var(--ink); font-size: 18px; margin-bottom: 5px; }

.kaarten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }.kaart { position: relative; min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); animation: regel-in .5s var(--ease) both; }.kaart h3 { margin: 0 0 4px; font-size: 20px; letter-spacing: -.035em; }.kaart p { color: var(--muted); }.kaart-kop, .kaart-voet, .kaart-cijfers { display: flex; justify-content: space-between; gap: 12px; align-items: center; }.kaart-bewerk { position: absolute; top: 12px; right: 12px; }.kaart-bedrag { font-size: 28px; font-weight: 700; letter-spacing: -.045em; }.kaart .voortgangsbalk { margin: 18px 0 8px; }.doel-icoon { font-size: 25px; }
.kaart-icoon { flex: 0 0 auto; display: grid; place-items: center; width: 43px; height: 43px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }.kaart-icoon svg { width: 21px; height: 21px; }.kaart-titelvak { min-width: 0; flex: 1; }.kaart-titel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.kaart-sub { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; color: var(--muted); font-size: 11px; }.kaart-groot { display: block; margin-top: 24px; font-size: 30px; font-weight: 720; letter-spacing: -.05em; }.kaart-klein, .kaart-percentage { color: var(--muted); font-size: 12px; }.kaart-percentage { color: var(--ink); font-weight: 700; }.kaart-voet { margin-top: 18px; }.kaart-vlag { padding: 6px 9px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 700; }.kaart.is-klaar { opacity: .68; }

.grafiekkaart { padding: clamp(20px, 4vw, 38px); border-radius: var(--radius-xl); }.grafiek-legenda { display: flex; justify-content: end; gap: 18px; color: var(--muted); font-size: 12px; }.legenda-item { display: inline-flex; align-items: center; gap: 6px; }.legenda-stip { width: 8px; height: 8px; border-radius: 50%; }.legenda-streep { width: 18px; border-top: 1px dashed var(--faint); }
.grafiek { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(5px, 1.4vw, 18px); align-items: end; height: 340px; margin: 28px 0 22px; padding-top: 25px; border-bottom: 1px solid var(--line); }.staafkolom { position: relative; height: 100%; display: flex; flex-direction: column; align-items: stretch; justify-content: end; gap: 8px; border: 0; padding: 0; background: none; cursor: pointer; }.staaf { position: relative; display: flex; flex-direction: column; justify-content: end; width: min(34px, 72%); min-height: 2px; margin: 0 auto; border-radius: 8px 8px 3px 3px; overflow: hidden; transition: height .9s var(--ease), transform .2s; }.staafkolom:hover .staaf { transform: scaleX(1.12); }.staaf-open { background: var(--perzik); }.staaf-betaald { background: var(--mint); }.staaf-label { color: var(--muted); font-size: 11px; text-transform: uppercase; }.staaf-tip { position: absolute; z-index: 3; left: 50%; bottom: calc(100% - 8px); padding: 7px 9px; border-radius: 9px; background: var(--ink); color: var(--bg); font-size: 11px; white-space: nowrap; opacity: 0; transform: translate(-50%, 4px); pointer-events: none; transition: .2s; }.staafkolom:hover .staaf-tip, .staafkolom:focus-visible .staaf-tip { opacity: 1; transform: translate(-50%, 0); }.gemiddelde-lijn { position: absolute; z-index: 2; left: 0; right: 0; border-top: 1px dashed var(--faint); pointer-events: none; }.gemiddelde-label { position: absolute; right: 0; bottom: 4px; color: var(--muted); font-size: 10px; }
.trend-cijfers { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 1px solid var(--line); }.trend-cijfers div { min-width: 0; padding: 18px; border-right: 1px solid var(--line); }.trend-cijfers div:last-child { border: 0; }.trend-cijfers dt { color: var(--muted); font-size: 11px; }.trend-cijfers dd { margin: 5px 0 0; font-weight: 680; }.trend-op { color: var(--red); }.trend-neer { color: var(--accent); }.tussenkop { margin: 34px 4px 15px; font-size: 22px; letter-spacing: -.035em; }.categorielijst { display: grid; gap: 8px; }.categorieregel { display: grid; grid-template-columns: 160px minmax(120px, 1fr) auto; gap: 14px; align-items: center; padding: 13px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); animation: regel-in .45s var(--ease) both; }.categorie-naam { font-weight: 650; }.categorie-bedrag { font-variant-numeric: tabular-nums; font-weight: 650; }.categorie-balk { height: 7px; border-radius: 99px; background: var(--line); overflow: hidden; }.categorie-balk span { display: block; height: 100%; border-radius: inherit; }
.voet { padding: 50px 0 10px; color: var(--faint); text-align: center; font-size: 11px; }

dialog { color: var(--ink); }
.dialoog { width: min(650px, calc(100% - 24px)); max-height: min(88vh, 820px); padding: 0; border-radius: 27px; overflow: auto; }.dialoog-klein { width: min(480px, calc(100% - 24px)); }.dialoog::backdrop { background: rgba(9, 12, 10, .42); backdrop-filter: blur(9px); }.dialoog[open] { animation: dlg-in .35s var(--ease); }@keyframes dlg-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.dialoog-form { padding: clamp(22px, 5vw, 34px); }.dialoog-form h3 { margin: 0 0 22px; font-size: 27px; line-height: 1.1; letter-spacing: -.045em; }.dialoog-uitleg { margin: -10px 0 22px; color: var(--muted); }.veld { display: grid; gap: 7px; margin: 0 0 16px; min-width: 0; }.veld-label { color: var(--muted); font-size: 12px; font-weight: 650; }.veld input, .veld select { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 13px; outline: 0; background: var(--surface-2); color: var(--ink); transition: border .2s, box-shadow .2s; }.veld input:focus, .veld select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }.veld-rij { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }.veld-smal { grid-template-columns: 110px; }.veld-icoon { text-align: left; font-size: 13px; }.veld-euro { position: relative; }.veld-euro > span { position: absolute; z-index: 1; left: 13px; top: 13px; color: var(--muted); }.veld-euro input { padding-left: 32px; }.veld-hint { margin: -9px 0 15px; color: var(--faint); font-size: 12px; }.dialoog-knoppen { display: flex; align-items: center; gap: 8px; margin-top: 23px; }.rek { flex: 1; }.dialoog-fout, .melding-fout { padding: 11px 13px; border-radius: 12px; color: var(--red); background: color-mix(in srgb, var(--red) 10%, transparent); }.melding-goed { padding: 11px 13px; border-radius: 12px; color: var(--accent); background: var(--accent-soft); }
.schakelaar { display: flex; align-items: center; gap: 10px; cursor: pointer; }.schakelaar input { position: absolute; opacity: 0; }.schakelaar-spoor { width: 42px; height: 25px; padding: 3px; border-radius: 99px; background: var(--line-strong); transition: background .2s; }.schakelaar-knop { display: block; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 2px 7px rgba(0,0,0,.18); transition: transform .25s var(--ease); }.schakelaar input:checked + .schakelaar-spoor { background: var(--accent); }.schakelaar input:checked + .schakelaar-spoor .schakelaar-knop { transform: translateX(17px); }.schakelaar-tekst { font-size: 13px; }.kleurkiezer { border: 0; padding: 0; }.kleuren { display: flex; gap: 8px; }.kleuren label { cursor: pointer; }.kleuren input { position: absolute; opacity: 0; }.stip { display: block; width: 28px; height: 28px; border: 3px solid transparent; border-radius: 50%; }.kleuren input:checked + .stip { border-color: var(--surface-solid); outline: 2px solid currentColor; }.snelbedragen { display: flex; gap: 7px; flex-wrap: wrap; }.snelbedragen button { border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; background: var(--surface-2); }.codeveld { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }.codeveld code { flex: 1; font-size: 18px; letter-spacing: .08em; }.ledenlijst, .keuzelijst { list-style: none; padding: 0; margin: 0; }.ledenlijst li { padding: 10px 0; border-bottom: 1px solid var(--line); }.keuzelijst { display: grid; gap: 8px; border: 0; }.keuze { cursor: pointer; }.keuze input { position: absolute; opacity: 0; }.keuze-vak { display: grid; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }.keuze input:checked + .keuze-vak { border-color: var(--accent); background: var(--accent-soft); }.keuze-titel { font-weight: 660; }.keuze-uitleg { color: var(--muted); font-size: 12px; }
.meldingen { position: fixed; z-index: 100; right: 18px; bottom: 18px; display: grid; gap: 8px; }.toast { display: flex; align-items: center; gap: 12px; max-width: 380px; padding: 11px 11px 11px 16px; border-radius: 14px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow); animation: toast-in .35s var(--ease); }.toast.toast-fout { background: var(--red); color: #fff; }.toast-tekst { min-width: 0; flex: 1; }.toast-sluit { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; padding: 0; border: 0; border-radius: 10px; background: color-mix(in srgb, currentColor 11%, transparent); color: inherit; cursor: pointer; }.toast-sluit:hover { background: color-mix(in srgb, currentColor 19%, transparent); }.toast-sluit:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }.toast-sluit svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }.toast.weg { pointer-events: none; animation: toast-uit .24s ease forwards; }@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }@keyframes toast-uit { to { opacity: 0; transform: translateY(8px) scale(.98); } }

/* Login: een zelfstandige productervaring, zonder externe assets. */
.pagina-auth { display: grid; place-items: center; min-height: 100vh; padding: clamp(18px, 3vw, 42px); background: var(--bg); }
.pagina-auth::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle at 15% 18%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 34rem), radial-gradient(circle at 92% 90%, color-mix(in srgb, var(--blue) 8%, transparent), transparent 30rem); }
.auth-wrap { position: relative; width: min(1220px, 100%); min-height: min(780px, calc(100vh - 56px)); display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(410px, .92fr); gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 42px; background: color-mix(in srgb, var(--surface-solid) 72%, transparent); box-shadow: var(--shadow); backdrop-filter: blur(28px); }
.auth-showcase { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; min-height: 690px; padding: clamp(34px, 5vw, 58px); border-radius: 32px; color: #f4f7ff; background: linear-gradient(145deg, #18356a 0%, #0c2048 52%, #081124 100%); }
.auth-showcase::before { content: ""; position: absolute; z-index: -1; width: 34rem; height: 34rem; right: -18rem; top: -17rem; border-radius: 50%; background: #5792ff; opacity: .25; filter: blur(4px); }
.auth-showcase::after { content: ""; position: absolute; z-index: -1; inset: auto -15% -40% 15%; height: 55%; border-radius: 50%; background: #2268e8; opacity: .2; filter: blur(50px); }
.showcase-kop { display: flex; justify-content: space-between; align-items: center; gap: 18px; }.auth-showcase .merk { color: #f7f9ff; }.showcase-status { display: inline-flex; align-items: center; gap: 8px; color: rgba(239,244,255,.68); font-size: 12px; }.showcase-status svg { width: 15px; height: 15px; color: #84b2ff; }
.showcase-copy { margin: auto 0 34px; max-width: 540px; }.showcase-label, .auth-label { margin: 0 0 13px; color: #8bb6ff; font-size: 11px; font-weight: 760; letter-spacing: .15em; text-transform: uppercase; }.showcase-copy h1 { margin: 0; font-size: clamp(54px, 6vw, 82px); line-height: .95; font-weight: 620; letter-spacing: -.075em; }.showcase-copy h1 span { color: #93bbff; }.showcase-copy > p:last-child { max-width: 470px; margin: 24px 0 0; color: rgba(239,244,255,.7); font-size: 17px; line-height: 1.65; }
.showcase-preview { width: min(500px, 94%); padding: 24px 26px; border: 1px solid rgba(255,255,255,.13); border-radius: 25px; background: rgba(255,255,255,.075); box-shadow: 0 24px 50px rgba(0,0,0,.18); backdrop-filter: blur(20px); transform: rotate(-1.2deg); transition: transform .5s var(--ease); }.auth-showcase:hover .showcase-preview { transform: rotate(0deg) translateY(-3px); }.preview-boven, .preview-cijfers { display: flex; align-items: center; justify-content: space-between; gap: 14px; }.preview-boven { color: rgba(239,244,255,.64); font-size: 12px; }.preview-periode { padding: 5px 8px; border-radius: 8px; background: rgba(255,255,255,.08); }.showcase-preview > strong { display: block; margin: 8px 0 17px; font-size: clamp(32px, 4vw, 45px); font-weight: 640; letter-spacing: -.055em; }.preview-lijn { height: 5px; margin-bottom: 18px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.09); }.preview-lijn span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #5792ff, #a7c8ff); }.preview-cijfers div { display: grid; gap: 2px; }.preview-cijfers small { color: rgba(239,244,255,.5); font-size: 10px; }.preview-cijfers b { font-size: 13px; font-weight: 640; }.showcase-voet { display: flex; align-items: center; gap: 9px; margin: 27px 0 0; color: rgba(239,244,255,.5); font-size: 11px; }.showcase-voet svg { width: 15px; height: 15px; color: #8bb6ff; }
.auth-kaart { display: flex; flex-direction: column; justify-content: center; padding: clamp(38px, 5vw, 68px); border-radius: 32px; background: var(--surface-solid); }.merk-mobiel { display: none; }.auth-kop { margin-bottom: 31px; }.auth-label { color: var(--accent); }.auth-kop h1 { margin: 0 0 10px; font-size: clamp(38px, 4vw, 52px); line-height: 1; font-weight: 630; letter-spacing: -.065em; }.auth-onder { max-width: 420px; margin: 0; color: var(--muted); font-size: 15px; }.auth-form { display: grid; }.auth-form .veld { margin-bottom: 18px; }.auth-form .veld-label { color: var(--ink); font-size: 12px; }.auth-form .veld input { min-height: 54px; border-radius: 15px; background: var(--surface-2); }.auth-form .knop-blok { min-height: 54px; margin-top: 4px; border-radius: 15px; background: var(--accent); color: #fff; box-shadow: 0 12px 26px color-mix(in srgb, var(--accent) 20%, transparent); }.auth-form .knop-blok:hover { background: color-mix(in srgb, var(--accent) 86%, #000); }
.auth-wissel { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 25px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }.auth-wissel a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 680; text-decoration: none; white-space: nowrap; }.auth-wissel a:hover { color: var(--accent); }.auth-wissel svg { width: 15px; height: 15px; }.auth-voet { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 33px 0 0; color: var(--faint); font-size: 10px; }.auth-voet svg { width: 13px; height: 13px; color: var(--accent); }
.auth-wissel-meervoud { display: grid; gap: 11px; }
.auth-wissel-rij { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; }
.auth-onthouden { position: relative; display: inline-flex; align-items: center; gap: 10px; width: max-content; margin: -2px 0 18px; color: var(--muted); font-size: 14px; cursor: pointer; user-select: none; }.auth-onthouden input { position: absolute; width: 1px; height: 1px; opacity: 0; }.auth-onthouden-vak { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface-2); color: transparent; transition: border-color .2s, background .2s, color .2s, box-shadow .2s; }.auth-onthouden-vak svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }.auth-onthouden input:checked + .auth-onthouden-vak { border-color: var(--accent); background: var(--accent); color: #fff; }.auth-onthouden input:focus-visible + .auth-onthouden-vak { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }

@media (max-width: 960px) {
  .maandkaart { grid-template-columns: 220px 1fr; }.maandkaart-meter { padding: 30px; }.maandkaart-inhoud { padding: 38px; }.tegels { grid-template-columns: repeat(3, minmax(0, 1fr)); }.kaarten { grid-template-columns: repeat(2, minmax(0, 1fr)); }.auth-wrap { width: min(570px, 100%); min-height: 0; grid-template-columns: 1fr; padding: 9px; border-radius: 34px; }.auth-showcase { display: none; }.auth-kaart { width: 100%; min-height: min(700px, calc(100vh - 50px)); margin: auto; }.merk-mobiel { display: inline-flex; margin-bottom: auto; }.auth-kop { margin-top: 48px; }
}

@media (max-width: 720px) {
  .topbalk { padding: max(8px, env(safe-area-inset-top)) 10px 5px; }.topbalk-binnen { min-height: 58px; grid-template-columns: auto 1fr auto; padding: 7px; border-radius: 18px; }.merk-naam, .merk-punt { display: none; }.maandkiezer { justify-self: center; }.maand-label { min-width: 118px; font-size: 13px; }.icoonknop { width: 38px; height: 38px; }.topbalk-acties { gap: 2px; }
  main { width: min(100% - 20px, 680px); margin-top: 10px; }.maandkaart { display: flex; flex-direction: column; min-height: 0; border-radius: 26px; }.maandkaart-meter { order: 2; min-height: 150px; padding: 20px; border: 0; border-top: 1px solid var(--line); }.meter { width: 128px; }.meter-midden .meter-percentage { font-size: 32px; }.maandkaart-inhoud { padding: 28px 22px 24px; }.ruimte-bedrag { font-size: clamp(46px, 15vw, 70px); }.scope { width: 100%; }.scope-knop { min-width: 0; }.tegels { grid-template-columns: 1fr; gap: 7px; }.tegel { display: grid; grid-template-columns: 1fr auto; align-items: baseline; padding: 12px 15px; }.tegel dd { grid-row: 1 / span 2; grid-column: 2; margin-left: 10px; }.tegel-bij { grid-column: 1; }
  .tabs { position: fixed; z-index: 40; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); top: auto; width: auto; margin: 0; border-radius: 18px; box-shadow: var(--shadow); }.tab { padding: 8px 4px; min-height: 50px; font-size: 11px; }.tab-badge { display: none; }
  .paneel { padding-bottom: 80px; }.paneel-kop { align-items: flex-start; flex-direction: column; margin-top: 28px; }.paneel-knoppen { width: 100%; justify-content: stretch; }.paneel-knoppen .knop { flex: 1; }.regel { grid-template-columns: 42px minmax(0, 1fr) auto; padding: 10px 8px; }.regel-bewerk { position: absolute; right: 4px; bottom: 1px; width: 32px; height: 32px; }.regel-bedrag { font-size: 15px; align-self: start; padding-top: 8px; }.regel-meta { padding-right: 20px; }.kaarten { grid-template-columns: 1fr; }.grafiekkaart { border-radius: 24px; }.grafiek { height: 270px; gap: 3px; }.grafiek-legenda { justify-content: start; flex-wrap: wrap; }.trend-cijfers { grid-template-columns: repeat(2, 1fr); }.trend-cijfers div:nth-child(2) { border-right: 0; }.trend-cijfers div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }.categorieregel { grid-template-columns: 1fr auto; }.categorie-balk { grid-column: 1 / -1; }.veld-rij { grid-template-columns: 1fr; }.dialoog { width: calc(100% - 12px); max-height: calc(100dvh - 12px); border-radius: 24px; }.dialoog-knoppen { flex-wrap: wrap; }.meldingen { left: 12px; right: 12px; bottom: calc(78px + env(safe-area-inset-bottom)); }.toast { max-width: none; }.pagina-auth { padding: 8px; }.auth-wrap { padding: 6px; border-radius: 28px; }.auth-kaart { min-height: calc(100dvh - 28px); padding: 28px 23px; border-radius: 22px; }.merk-mobiel { margin-bottom: 40px; }.pagina-auth .merk-mobiel .merk-naam, .pagina-auth .merk-mobiel .merk-punt { display: inline; }.auth-kop { margin-top: 0; }.auth-kop h1 { font-size: 38px; }.auth-wissel { align-items: flex-start; flex-direction: column; gap: 6px; }.auth-wissel-meervoud { gap: 12px; }.auth-wissel-rij { align-items: flex-start; flex-direction: column; gap: 4px; }.auth-voet { margin-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent); outline-offset: 2px; }

/* ==================================================================
   Ruimte 1.1 - volwaardige app-layout
   ================================================================== */

body:not(.pagina-auth) { background: var(--bg); }
body:not(.pagina-auth) .sfeer { opacity: .28; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 238px minmax(0, 1fr); }
.zijbalk { position: sticky; z-index: 35; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 31px 20px 24px; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--surface-solid) 92%, transparent); backdrop-filter: blur(24px); }
.zijbalk-merk { margin: 0 10px 42px; font-size: 22px; }
.zijbalk .tabs { position: relative; inset: auto; display: grid; grid-template-columns: 1fr; gap: 5px; width: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
.zijbalk .tab-pil { display: none; }
.zijbalk .tab { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 47px; padding: 10px 12px; border-radius: 13px; color: var(--muted); text-align: left; }
.zijbalk .tab:hover { color: var(--ink); background: var(--surface-2); }
.zijbalk .tab.is-actief { color: var(--ink); background: var(--surface-solid); box-shadow: 0 7px 24px rgba(28, 38, 31, .07); }
.nav-icoon { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 9px; }
.nav-icoon svg { width: 17px; height: 17px; }
.tab.is-actief .nav-icoon { background: var(--ink); color: var(--bg); }
.zijbalk-voet { display: flex; align-items: center; gap: 9px; margin-top: auto; padding: 14px 10px 0; border-top: 1px solid var(--line); color: var(--faint); font-size: 10px; }
.veilig-stip { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 10%, transparent); }
.app-werkruimte { min-width: 0; }
.app-werkruimte .topbalk { position: sticky; top: 0; z-index: 28; padding: 13px 34px; border: 0; border-bottom: 1px solid var(--line); background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; pointer-events: auto; }
.app-werkruimte .topbalk::before { content: none; display: none; }
.app-werkruimte .topbalk > * { position: relative; z-index: 1; }

/* iOS-PWA: bewust géén glas of vervaging in de vaste header. Deze combinatie
   van feature- en display-mode-detectie werkt rechtstreeks in CSS en blijft
   dus betrouwbaar wanneer Safari nog een oudere JS-context in geheugen heeft. */
html.is-ios.is-pwa .app-werkruimte .topbalk::before {
  background: var(--pwa-header-tint, var(--bg));
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transform: none;
  will-change: auto;
}
@supports (-webkit-touch-callout: none) {
  @media (display-mode: standalone) {
    .app-werkruimte .topbalk::before {
      background: var(--pwa-header-tint, var(--bg));
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
      transform: none;
      will-change: auto;
    }
  }
}
.app-werkruimte .topbalk-binnen { max-width: 1560px; min-height: 48px; margin: 0 auto; padding: 0; display: flex; align-items: center; gap: 18px; border: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
.mobiel-merk { display: none; }
.app-werkruimte .maandkiezer { margin-right: auto; background: var(--surface-solid); }
.app-werkruimte .gebruikersmenu .menu { z-index: 50; }
.app-werkruimte main { width: 100%; max-width: 1560px; margin: 0 auto; padding: 31px 38px 65px; }

.dashboard-titel { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.dashboard-titel .hero-groet { margin: 0; }
.dashboard-titel .scope { flex: 0 0 auto; }
.dashboard-samenvatting { display: grid; grid-template-columns: minmax(420px, 1.35fr) minmax(230px, .72fr) minmax(230px, .72fr); grid-template-rows: auto auto; gap: 14px; margin-bottom: 42px; }
.ruimte-hoofdkaart, .kpi-kaart, .voortgangkaart { border: 1px solid var(--line); border-radius: 25px; box-shadow: 0 9px 32px rgba(26, 35, 29, .055); }
.ruimte-hoofdkaart { grid-row: 1 / span 2; min-height: 318px; display: flex; flex-direction: column; justify-content: center; padding: clamp(30px, 4vw, 52px); color: #f5f7f4; background: #171a18; }
.ruimte-hoofdkaart h1 { max-width: 700px; margin: 0; font-size: clamp(42px, 4.2vw, 66px); line-height: .98; font-weight: 640; letter-spacing: -.067em; }
.ruimte-hoofdkaart .ruimte-bedrag { margin: 16px 0 13px; font-size: clamp(55px, 5.2vw, 78px); }
.ruimte-hoofdkaart .maandkaart-zin { margin-bottom: 25px; color: rgba(245,247,244,.58); }
.ruimte-signaal { align-self: flex-start; display: inline-flex; align-items: center; gap: 9px; padding: 8px 11px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: rgba(255,255,255,.055); color: rgba(245,247,244,.72); font-size: 11px; }
.ruimte-signaal svg { width: 18px; height: 18px; color: #7eacff; }
.kpi-kaart { min-height: 151px; padding: 21px 23px; display: flex; flex-direction: column; background: var(--surface-solid); }
.kpi-kop { display: flex; align-items: center; gap: 9px; }.kpi-label { color: var(--muted); font-size: 11px; font-weight: 680; letter-spacing: .035em; }.kpi-icoon { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 9px; }.kpi-icoon svg { width: 15px; height: 15px; }.kpi-inkomen .kpi-icoon { color: #2268e8; background: #e3edff; }.kpi-uitgaven .kpi-icoon { color: #a25747; background: #f7e8e4; }[data-thema="donker"] .kpi-inkomen .kpi-icoon { color: #93bbff; background: rgba(72,126,220,.2); }[data-thema="donker"] .kpi-uitgaven .kpi-icoon { color: #eda090; background: rgba(180,87,67,.16); }
.kpi-kaart > strong { margin-top: 14px; font-size: clamp(27px, 2.2vw, 37px); line-height: 1; letter-spacing: -.05em; }.kpi-kaart > span:not(.kpi-sub) { margin-top: 5px; color: var(--faint); font-size: 10px; }.tekstknop { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; margin: auto 0 0; padding: 0; border: 0; background: transparent; color: var(--accent); font-size: 11px; font-weight: 680; cursor: pointer; }.tekstknop svg { width: 14px; height: 14px; }.kpi-sub { margin-top: auto; padding-top: 11px; color: var(--muted); font-size: 10px; }.kpi-sub b { color: var(--ink); }
.voortgangkaart { grid-column: 2 / 4; padding: 20px 23px; background: var(--surface-solid); }.voortgang-kop { display: flex; justify-content: space-between; align-items: end; gap: 16px; }.voortgang-kop > div { display: grid; gap: 4px; }.voortgang-kop strong { font-size: 25px; line-height: 1; letter-spacing: -.045em; }.voortgangkaart .meter-onder { color: var(--muted); font-size: 11px; }.voortgangkaart .voortgangsbalk { height: 7px; margin: 17px 0 9px; background: var(--line); }.voortgangkaart .voortgang-vulling { background: var(--ink); }.voortgangkaart p { margin: 0; color: var(--faint); font-size: 10px; }

.overzicht-paneelkop { margin-bottom: 18px; }
.overzicht-grid { display: grid; grid-template-columns: minmax(470px, 1.55fr) minmax(310px, .78fr); gap: 16px; align-items: start; }
.stroomkaart { min-width: 0; padding: 21px; border: 1px solid var(--line); border-radius: 25px; background: var(--surface-solid); box-shadow: 0 8px 28px rgba(26,35,29,.045); }
.stroomkaart-kop { min-height: 49px; display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 18px; }.stroomkaart-kop > div:first-child { min-width: 0; display: flex; align-items: center; gap: 12px; }.stroomkaart-kop h3 { margin: 0; font-size: 19px; letter-spacing: -.035em; }.stroomkaart-kop p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }.stroommarkering { width: 4px; height: 39px; flex: 0 0 auto; border-radius: 99px; }.stroommarkering.uitgave { background: #c97866; }.stroommarkering.inkomen { background: #4f86ec; }
.rekening-profiel { display: grid; gap: 1px; }
.rekening-profiel strong { color: var(--ink); font-size: 13px; font-weight: 650; }
.rekening-profiel span { color: var(--muted); font-size: 11px; font-weight: 450; }
.postfilters { display: flex; gap: 3px; padding: 3px; border-radius: 11px; background: var(--bg-soft); }.postfilter { min-height: 31px; padding: 5px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 10px; cursor: pointer; }.postfilter.is-actief { color: var(--ink); background: var(--surface-solid); box-shadow: 0 2px 8px rgba(20,28,21,.07); font-weight: 680; }
.stroomkaart .lijst { gap: 6px; }.stroomkaart .regel { min-height: 71px; border-radius: 15px; border-color: transparent; background: var(--surface-2); box-shadow: none; }.stroomkaart .regel:hover { border-color: var(--line-strong); background: var(--surface-solid); }.stroomkaart .regel.is-betaald { opacity: .52; }.stroomkaart .regel.is-inkomen { opacity: 1; border: 1px solid var(--line); background: transparent; }.stroomkaart .regel.is-inkomen.is-betaald { opacity: .66; }.stroomkaart .regel-bedrag { font-size: 15px; }.stroomkaart .is-inkomen .regel-bedrag { color: var(--accent); }.stroomkaart .leeg { padding: 38px 18px; border-radius: 16px; }.stroomkaart .leeg strong { font-size: 15px; }.leeg-compact { padding: 26px 15px !important; }
.inkomstenkaart { position: sticky; top: 92px; }.lijst-inkomsten .regel { grid-template-columns: 39px minmax(0,1fr) auto; padding: 8px; }.lijst-inkomsten .regel-bewerk { position: absolute; right: 2px; bottom: 0; width: 29px; height: 29px; }.lijst-inkomsten .regel-meta { padding-right: 18px; }.lijst-inkomsten .regel-bedrag { align-self: start; padding-top: 7px; padding-right: 5px; }.lijst-inkomsten .label-type { display: none; }

.instellingen-dialoog { width: min(720px, calc(100% - 24px)); }.instellingen-kop { display: flex; justify-content: space-between; align-items: start; gap: 20px; }.instellingen-kop h3 { margin-bottom: 13px; }.instellingen-kop .dialoog-uitleg { margin: 0 0 18px; }.instellingen-inhoud { min-height: 0; }.instellinggroep, .instelling-schakelaar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(225px, .8fr); align-items: center; gap: 22px; padding: 18px 0; border-top: 1px solid var(--line); }.instelling-uitleg { display: grid; gap: 3px; }.instelling-uitleg strong { font-size: 13px; }.instelling-uitleg span { color: var(--muted); font-size: 11px; }.instellinggroep > select { min-height: 42px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); color: var(--ink); }.optie-segmenten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 3px; border-radius: 11px; background: var(--bg-soft); }.optie-segmenten.optie-twee { grid-template-columns: repeat(2, 1fr); }.optie-segmenten input { position: absolute; opacity: 0; }.optie-segmenten span { display: block; padding: 8px 7px; border-radius: 8px; color: var(--muted); font-size: 11px; text-align: center; cursor: pointer; }.optie-segmenten input:checked + span { color: var(--ink); background: var(--surface-solid); box-shadow: 0 2px 8px rgba(20,28,21,.07); font-weight: 680; }.instelling-schakelaar > .schakelaar { justify-self: end; }

[data-dichtheid="compact"] .stroomkaart .regel { min-height: 58px; padding-top: 5px; padding-bottom: 5px; }[data-dichtheid="compact"] .regel-meta { font-size: 10px; }[data-dichtheid="compact"] .regel-naam { font-size: 14px; }.rustige-beweging *, .rustige-beweging *::before, .rustige-beweging *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }

@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 82px minmax(0, 1fr); }.zijbalk { padding: 25px 12px 20px; }.zijbalk-merk { justify-content: center; margin: 0 0 38px; }.zijbalk-merk .merk-naam, .zijbalk-merk .merk-punt, .zijbalk .tab > span:nth-child(2), .zijbalk .tab-badge, .zijbalk-voet { display: none; }.zijbalk .tab { grid-template-columns: 1fr; justify-items: center; padding: 9px; }.nav-icoon { width: 34px; height: 34px; }.app-werkruimte main { padding-left: 27px; padding-right: 27px; }.dashboard-samenvatting { grid-template-columns: repeat(2, minmax(0,1fr)); }.ruimte-hoofdkaart { grid-column: 1 / -1; grid-row: auto; min-height: 260px; }.voortgangkaart { grid-column: 1 / -1; }.overzicht-grid { grid-template-columns: 1fr; }.inkomstenkaart { position: static; }.lijst-inkomsten { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px !important; }
}

@media (max-width: 760px) {
  .app-shell { display: block; }.zijbalk { position: fixed; z-index: 50; inset: auto 9px max(9px, env(safe-area-inset-bottom)) 9px; width: auto; height: auto; padding: 5px; border: 1px solid var(--line); border-radius: 19px; background: color-mix(in srgb, var(--surface-solid) 91%, transparent); box-shadow: var(--shadow); }.zijbalk-merk, .zijbalk-voet { display: none; }.zijbalk .tabs { grid-template-columns: repeat(4, 1fr); gap: 2px; }.zijbalk .tab { min-height: 53px; display: flex; flex-direction: column; justify-content: center; gap: 1px; padding: 5px 2px; text-align: center; font-size: 9px; }.zijbalk .tab > span:nth-child(2) { display: block; }.zijbalk .tab .nav-icoon { width: 25px; height: 25px; background: transparent; color: inherit; font-size: 15px; }.zijbalk .tab.is-actief { background: var(--surface-2); box-shadow: none; }.app-werkruimte .topbalk { top: 0; padding: max(9px, env(safe-area-inset-top)) 12px 8px; }.app-werkruimte .topbalk-binnen { min-height: 45px; display: grid; grid-template-columns: 38px 1fr auto; gap: 5px; }.mobiel-merk { display: block; }.app-werkruimte .maandkiezer { justify-self: center; margin: 0; }.app-werkruimte main { width: 100%; padding: 18px 13px calc(105px + env(safe-area-inset-bottom)); margin: 0; }.dashboard-titel { display: block; margin-bottom: 16px; }.dashboard-titel h1 { font-size: 30px; }.dashboard-titel .scope { width: 100%; margin-top: 18px; }.dashboard-titel .scope-knop { min-width: 0; }.dashboard-samenvatting { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin-bottom: 32px; }.ruimte-hoofdkaart { grid-column: 1 / -1; min-height: 225px; padding: 27px 23px; border-radius: 22px; }.ruimte-hoofdkaart .ruimte-bedrag { font-size: clamp(45px, 13vw, 62px); }.ruimte-signaal { font-size: 10px; }.kpi-kaart { min-height: 148px; padding: 17px; border-radius: 19px; }.kpi-kaart > strong { font-size: clamp(22px, 7vw, 30px); }.kpi-sub { line-height: 1.35; }.voortgangkaart { grid-column: 1 / -1; padding: 17px; border-radius: 19px; }.voortgang-kop strong { font-size: 22px; }.paneel-kop { margin-top: 0; }.overzicht-paneelkop .paneel-knoppen { display: grid; grid-template-columns: 1fr 1fr; }.overzicht-paneelkop .knop { min-width: 0; padding-left: 9px; padding-right: 9px; font-size: 11px; }.overzicht-grid { display: grid; gap: 10px; }.stroomkaart { padding: 14px; border-radius: 20px; }.stroomkaart-kop { align-items: flex-start; flex-direction: column; }.stroomkaart-kop > div:first-child { width: 100%; }.uitgavenkaart .postfilters { width: 100%; }.postfilter { flex: 1; }.lijst-inkomsten { grid-template-columns: 1fr; }.stroomkaart .regel { grid-template-columns: 39px minmax(0,1fr) auto; }.stroomkaart .regel-bedrag { align-self: start; padding-top: 8px; font-size: 13px; }.stroomkaart .regel-bewerk { position: absolute; right: 1px; bottom: 0; width: 29px; height: 29px; }.stroomkaart .regel-meta { padding-right: 19px; }.instellinggroep, .instelling-schakelaar { grid-template-columns: 1fr; gap: 11px; }.instelling-schakelaar > .schakelaar { justify-self: start; }.instellingen-dialoog .dialoog-knoppen { display: grid; grid-template-columns: 1fr 1fr; }.instellingen-dialoog .dialoog-knoppen .rek { display: none; }.instellingen-dialoog #instellingen-reset { grid-column: 1 / -1; }.grafiek { overflow-x: auto; }
}

@media (max-width: 760px) {
  .instellingen-dialoog { width: calc(100% - 18px); height: calc(100vh - 18px); height: calc(100dvh - 18px); max-height: calc(100vh - 18px); max-height: calc(100dvh - 18px); overflow: hidden; }
  .instellingen-dialoog .dialoog-form { display: flex; flex-direction: column; min-height: 0; height: 100%; padding: 0; overflow: hidden; }
  .instellingen-dialoog .instellingen-kop { flex: 0 0 auto; margin: 0; padding: max(16px, env(safe-area-inset-top)) 17px 11px; border-bottom: 1px solid var(--line); }
  .instellingen-dialoog .instellingen-kop h3 { margin: 0; font-size: 24px; }
  .instellingen-dialoog .instellingen-kop .sectie-label { margin-bottom: 1px; }
  .instellingen-dialoog .instellingen-kop .dialoog-uitleg { display: none; }
  .instellingen-inhoud { flex: 1 1 0; min-height: 0; overflow-x: hidden; overflow-y: scroll; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; padding: 0 17px; scrollbar-gutter: stable; }
  .instellingen-inhoud .instellinggroep,
  .instellingen-inhoud .instelling-schakelaar { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 12px 0; }
  .instellingen-inhoud .instelling-uitleg { gap: 1px; }
  .instellingen-inhoud .instelling-uitleg strong { font-size: 14px; white-space: nowrap; }
  .instellingen-inhoud .instelling-uitleg span { font-size: 11px; line-height: 1.3; }
  .instellingen-inhoud > .instellinggroep:not(.pwa-instelling) .instelling-uitleg span,
  .instellingen-inhoud > .instelling-schakelaar .instelling-uitleg span { display: none; }
  .instellingen-inhoud .instellinggroep > select { width: 174px; min-height: 40px; padding: 6px 9px; }
  .instellingen-inhoud .optie-segmenten { width: 216px; min-width: 0; }
  .instellingen-inhoud .optie-segmenten span { padding: 7px 5px; }
  .instellingen-inhoud .pwa-uitleg { gap: 0; }
  .instellingen-inhoud .pwa-uitleg img { display: none; }
  .instellingen-inhoud .pwa-instelling .instelling-uitleg span { margin-top: 2px; }
  .instellingen-inhoud .pwa-instelling > .knop { width: 174px; min-height: 40px; padding: 7px 9px; font-size: 12px; }
  .instellingen-inhoud .app-ververs-instelling .instelling-uitleg > span { display: none; }
  .instellingen-inhoud .app-ververs-instelling small { font-size: 10px; }
  .instellingen-dialoog .dialoog-knoppen { position: relative; z-index: 2; flex: 0 0 auto; display: grid; grid-template-columns: .75fr 1fr 1fr; gap: 7px; margin: 0; padding: 11px 17px max(11px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface-solid); }
  .instellingen-dialoog .dialoog-knoppen .rek { display: none; }
  .instellingen-dialoog .dialoog-knoppen .knop { width: 100%; min-width: 0; min-height: 40px; padding: 7px 8px; font-size: 12px; }
  .instellingen-dialoog #instellingen-reset { grid-column: auto; }
}

@media (max-width: 370px) {
  .instellingen-inhoud .instellinggroep,
  .instellingen-inhoud .instelling-schakelaar { grid-template-columns: 1fr; }
  .instellingen-inhoud .instelling-schakelaar > .schakelaar { justify-self: start; }
  .instellingen-inhoud .instellinggroep > select,
  .instellingen-inhoud .optie-segmenten,
  .instellingen-inhoud .pwa-instelling > .knop { width: 100%; }
}

@media (display-mode: standalone) and (orientation: portrait) {
  html.is-ios .app-werkruimte .topbalk { top: 16px; }
}

@media (max-width: 1180px) {
  .ruimte-hoofdkaart { min-height: 305px; }
}

@media (max-width: 760px) {
  .dashboard-titel { display: grid; gap: 16px; }
  .dashboard-titel .scope { margin-top: 0; }
  .ruimte-hoofdkaart { min-height: 305px; }
  .ruimte-hoofdkaart h1 { font-size: clamp(39px, 12vw, 54px); }
}

/* ==================================================================
   Ruimte 1.2 - gezamenlijke afdracht, spaargeschiedenis en PWA
   ================================================================== */

.ruimte-signaal {
  gap: 10px;
  padding: 10px 13px;
  border-radius: 12px;
  color: rgba(245, 247, 252, .84);
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 610;
  letter-spacing: -.015em;
}

.afdrachtkaart {
  position: relative;
  overflow: hidden;
  margin: 0 0 30px;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 28px;
  background:
    radial-gradient(circle at 96% 0%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 26rem),
    var(--surface-solid);
  box-shadow: var(--shadow-sm);
}
.afdracht-kop { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; }
.afdracht-titelvak { display: flex; align-items: center; gap: 15px; min-width: 0; }
.afdracht-titelvak .sectie-label { margin-bottom: 4px; }
.afdracht-titelvak h2 { margin: 0; font-size: clamp(24px, 2.3vw, 36px); line-height: 1.06; letter-spacing: -.052em; }
.afdracht-icoon { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 auto; border-radius: 15px; color: var(--accent); background: var(--accent-soft); }
.afdracht-icoon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.afdracht-totaal { display: grid; justify-items: end; gap: 3px; flex: 0 0 auto; }
.afdracht-totaal span { color: var(--muted); font-size: 11px; }
.afdracht-totaal strong { font-size: clamp(25px, 2.4vw, 38px); line-height: 1; letter-spacing: -.052em; }
.afdracht-personen { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 10px; margin-top: 28px; }
.afdracht-persoon { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-width: 0; padding: 16px 17px; border: 1px solid var(--line); border-radius: 17px; background: color-mix(in srgb, var(--surface-2) 78%, transparent); }
.afdracht-identiteit { display: flex; align-items: center; gap: 11px; min-width: 0; }
.afdracht-identiteit > div { display: grid; min-width: 0; }
.afdracht-identiteit strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.afdracht-identiteit span:not(.afdracht-stip) { color: var(--muted); font-size: 10px; }
.afdracht-stip { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: #2268e8; box-shadow: 0 0 0 5px rgba(34, 104, 232, .11); }
.afdracht-aandeel { display: grid; justify-items: end; flex: 0 0 auto; }
.afdracht-aandeel span { color: var(--accent); font-size: 11px; font-weight: 700; }
.afdracht-aandeel strong { font-size: 17px; letter-spacing: -.035em; }
.afdracht-balk { display: flex; width: 100%; height: 9px; margin-top: 19px; overflow: hidden; border-radius: 99px; background: var(--bg-soft); }
.afdracht-segment { min-width: 2px; height: 100%; transition: width .7s var(--ease); }
.afdracht-segment.persoon-0, .afdracht-persoon.persoon-0 .afdracht-stip { background: #2268e8; }
.afdracht-segment.persoon-1, .afdracht-persoon.persoon-1 .afdracht-stip { background: #78a7fa; }
.afdracht-segment.persoon-2, .afdracht-persoon.persoon-2 .afdracht-stip { background: #9a8be0; }
.afdracht-segment.persoon-3, .afdracht-persoon.persoon-3 .afdracht-stip { background: #b7cdf6; }
.afdracht-uitleg { margin: 11px 0 0; color: var(--muted); font-size: 11px; }

.kaart-voet { flex-wrap: wrap; justify-content: flex-start; }
.kaart-voet .kaart-vlag { margin-left: auto; }
.spaar-transactievelden { display: grid; gap: 17px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.spaar-transactievelden .veld { margin: 0; }
.spaarhistorie-dialoog { width: min(720px, calc(100% - 24px)); }
.spaarhistorie-kop { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.spaarhistorie-kop h3 { margin: 0 0 6px; font-size: clamp(25px, 3vw, 34px); letter-spacing: -.05em; }
.spaarhistorie-kop .dialoog-uitleg { margin: 0; }
.spaarhistorie-kop .dialoog-uitleg strong { color: var(--ink); font-size: 15px; }
.spaarhistorie-lijst { display: grid; gap: 7px; max-height: min(52vh, 470px); margin: 24px 0 4px; overflow: auto; scrollbar-gutter: stable; }
.spaartransactie { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; min-height: 66px; padding: 10px 10px 10px 12px; border: 1px solid transparent; border-radius: 15px; background: var(--surface-2); transition: border-color .2s, background .2s; }
.spaartransactie:hover { border-color: var(--line-strong); background: var(--surface-solid); }
.spaartransactie-icoon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: var(--accent); background: var(--accent-soft); }
.spaartransactie-icoon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.spaartransactie.is-opname .spaartransactie-icoon { color: var(--red); background: color-mix(in srgb, var(--red) 11%, transparent); }
.spaartransactie-tekst { display: grid; min-width: 0; }
.spaartransactie-tekst strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.spaartransactie-tekst span { color: var(--muted); font-size: 10px; }
.spaartransactie-bedrag { color: var(--accent); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.spaartransactie.is-opname .spaartransactie-bedrag { color: var(--red); }
.spaartransactie-acties { display: flex; gap: 1px; }
.spaartransactie-acties .icoonknop { width: 34px; height: 34px; }
.spaartransactie-acties .icoonknop svg { width: 17px; height: 17px; }
.transactie-verwijder:hover { color: var(--red); background: color-mix(in srgb, var(--red) 10%, transparent); }

.pwa-instelling { border-bottom: 1px solid var(--line); }
.pwa-uitleg { display: flex; align-items: center; gap: 13px; min-width: 0; }
.pwa-uitleg img { width: 54px; height: 54px; flex: 0 0 auto; border-radius: 14px; box-shadow: 0 7px 20px rgba(0, 0, 0, .18); }
.pwa-instelling > .knop { justify-self: end; }
.pwa-instelling > .knop:disabled { opacity: .62; cursor: default; }
.app-ververs-instelling { border-top: 0; }
.app-ververs-instelling small { margin-top: 3px; color: var(--faint); font-size: 11px; }

@media (max-width: 760px) {
  .dashboard-titel { width: 100%; justify-items: stretch; }
  .dashboard-titel .scope { width: 100%; max-width: none; justify-self: stretch; align-self: stretch; }
  .dashboard-titel .scope-knop { width: 100%; }
  .hero-groet { font-size: 18px; }
  .ruimte-signaal { font-size: 14px; line-height: 1.35; }
  .afdrachtkaart { padding: 21px 17px; border-radius: 22px; }
  .afdracht-kop { display: grid; gap: 19px; }
  .afdracht-totaal { justify-items: start; }
  .afdracht-totaal strong { font-size: 30px; }
  .afdracht-personen { grid-template-columns: 1fr; margin-top: 19px; }
  .afdracht-persoon { padding: 14px; }
  .spaarhistorie-lijst { max-height: 49vh; }
  .spaartransactie { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 9px; }
  .spaartransactie-icoon { width: 35px; height: 35px; }
  .spaartransactie-acties { grid-column: 2 / -1; justify-content: flex-end; margin-top: -5px; }
  .pwa-instelling > .knop { width: 100%; justify-self: stretch; }
  .spaarhistorie-dialoog .dialoog-knoppen { display: grid; grid-template-columns: 1fr; }
  .spaarhistorie-dialoog .dialoog-knoppen .rek { display: none; }
}

/* De scopekeuze en hoofdkaart delen op telefoon exact dezelfde contentbreedte. */
@media (max-width: 820px) {
  .app-werkruimte main > .dashboard-titel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    justify-content: stretch;
    inline-size: 100%;
  }
  .app-werkruimte main > .dashboard-titel > .scope {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    inline-size: 100%;
    min-inline-size: 0;
    max-inline-size: none;
    margin-inline: 0;
    justify-self: stretch;
    align-self: stretch;
  }
  .app-werkruimte main > .dashboard-titel > .scope > .scope-knop {
    inline-size: 100%;
    min-inline-size: 0;
  }
}

/* Contextuele hero: ieder hoofdonderdeel krijgt een eigen verhaal. */
.dashboard-samenvatting { --hero-gloed: #5792ff; }
.dashboard-samenvatting[data-context="trend"] { --hero-gloed: #7eacff; }
.dashboard-samenvatting[data-context="schulden"] { --hero-gloed: #d95b60; }
.dashboard-samenvatting[data-context="sparen"] { --hero-gloed: #6e92ee; }
.ruimte-hoofdkaart { position: relative; isolation: isolate; overflow: hidden; }
.ruimte-hoofdkaart::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 28rem;
  height: 28rem;
  right: -16rem;
  top: -18rem;
  border-radius: 50%;
  background: var(--hero-gloed);
  opacity: .2;
  filter: blur(8px);
  transform: translate3d(0, 0, 0) scale(1);
  transition: background .55s var(--ease), transform .75s var(--ease), opacity .55s;
}
.dashboard-samenvatting[data-context="trend"] .ruimte-hoofdkaart::after { transform: translate3d(-4rem, 5rem, 0) scale(1.15); opacity: .24; }
.dashboard-samenvatting[data-context="schulden"] .ruimte-hoofdkaart::after { transform: translate3d(-1rem, 8rem, 0) scale(.92); opacity: .18; }
.dashboard-samenvatting[data-context="sparen"] .ruimte-hoofdkaart::after { transform: translate3d(-6rem, 7rem, 0) scale(1.25); opacity: .22; }
.dashboard-samenvatting.hero-wissel .ruimte-hoofdkaart > *,
.dashboard-samenvatting.hero-wissel .kpi-kaart > *,
.dashboard-samenvatting.hero-wissel .voortgangkaart > * { animation: hero-in .52s var(--ease) both; }
.dashboard-samenvatting.hero-wissel .ruimte-hoofdkaart > :nth-child(2),
.dashboard-samenvatting.hero-wissel .kpi-kaart > :nth-child(2) { animation-delay: .035s; }
.dashboard-samenvatting.hero-wissel .ruimte-hoofdkaart > :nth-child(3),
.dashboard-samenvatting.hero-wissel .kpi-kaart > :nth-child(3) { animation-delay: .07s; }
.dashboard-samenvatting.hero-wissel .ruimte-hoofdkaart > :nth-child(4) { animation-delay: .105s; }
.tekstknop[hidden] { display: none; }
@keyframes hero-in {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Leesbaarheidsronde: ondersteunende tekst blijft op ieder scherm volwaardig leesbaar. */
body { font-size: 16px; }
.veld[hidden] { display: none; }
.veld-hint-binnen { margin: 0; line-height: 1.5; }

.sectie-label,
.veld-label,
.regel-meta,
.grafiek-legenda,
.kaart-sub,
.kaart-klein,
.kaart-percentage,
.kaart-vlag,
.trend-cijfers dt,
.veld-hint,
.keuze-uitleg,
.auth-wissel,
.showcase-status,
.preview-boven,
.preview-cijfers small,
.showcase-voet,
.auth-voet,
.voet,
.tab-badge,
.tegel-bij,
.staaf-label,
.staaf-tip,
.gemiddelde-label,
.zijbalk-voet,
.afdracht-totaal span,
.afdracht-identiteit span:not(.afdracht-stip),
.afdracht-aandeel span,
.afdracht-uitleg,
.spaartransactie-tekst span,
.instelling-uitleg span,
.optie-segmenten span,
.dialoog-uitleg,
.meter-onder,
.voortgangkaart p,
.stroomkaart-kop p,
.kpi-sub,
.kpi-kaart > span:not(.kpi-sub) {
  font-size: 13px;
  line-height: 1.45;
}

.kpi-label { font-size: 14px; line-height: 1.35; }
.tegel dt,
.showcase-label,
.auth-label,
.auth-form .veld-label { font-size: 13px; line-height: 1.4; }
.ruimte-signaal { font-size: 14px; line-height: 1.4; }
.tab { font-size: 13px; }
.tekstknop,
.postfilter,
.afdracht-identiteit strong,
.spaartransactie-tekst strong { font-size: 14px; }
.instelling-uitleg strong { font-size: 15px; line-height: 1.35; }
.postfilter { min-height: 36px; padding-inline: 13px; }
.stroomkaart .regel-bedrag { font-size: 15px; }
.kpi-kaart > span:not(.kpi-sub),
.voortgangkaart p,
.veld-hint,
.auth-voet,
.showcase-voet { color: var(--muted); }

/* ==================================================================
   Ruimte 1.5 - ING CSV import en gekoppelde bankgegevens
   ================================================================== */

.menu-ing-mini,
.ing-merkicoon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: #ff6200;
  font-weight: 820;
  letter-spacing: -.04em;
  box-shadow: 0 7px 18px rgba(255, 98, 0, .2);
}
.menu-ing-mini { width: 19px; height: 19px; border-radius: 6px; font-size: 7px; }
.ing-merkicoon { width: 58px; height: 58px; border-radius: 18px; font-size: 16px; }
.ing-merkicoon-klein { width: 31px; height: 31px; border-radius: 10px; font-size: 9px; }

.import-dialoog { width: min(940px, calc(100% - 24px)); max-height: min(92vh, 940px); }
.import-kop { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 17px; margin-bottom: 25px; }
.import-kop h3 { margin: 2px 0 8px; }
.import-kop .dialoog-uitleg { max-width: 680px; margin: 0; }
.import-drop { position: relative; display: grid; justify-items: center; gap: 7px; padding: 34px 22px; border: 1.5px dashed color-mix(in srgb, #ff6200 40%, var(--line-strong)); border-radius: 20px; background: color-mix(in srgb, #ff6200 5%, var(--surface-2)); text-align: center; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.import-drop:hover, .import-drop.is-slepen { border-color: #ff6200; background: color-mix(in srgb, #ff6200 9%, var(--surface-2)); transform: translateY(-1px); }
.import-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.import-drop strong { font-size: 17px; letter-spacing: -.025em; }
.import-drop > span:last-child { color: var(--muted); font-size: 13px; }
.import-drop-icoon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 3px; border-radius: 14px; color: #ff6200; background: color-mix(in srgb, #ff6200 12%, var(--surface-solid)); }
.import-drop-icoon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.import-scope { max-width: 330px; margin: 18px 0; }
.import-privacy { display: flex; align-items: flex-start; gap: 11px; padding: 14px 15px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-2); }
.import-privacy svg { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 1px; color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.8; }
.import-privacy p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.import-privacy strong { color: var(--ink); }
.import-disclaimer { margin: 12px 2px 0; color: var(--faint); font-size: 11px; line-height: 1.45; }
.knop:disabled { opacity: .48; cursor: not-allowed; transform: none; box-shadow: none; }

.import-samenvatting { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-bottom: 17px; }
.import-samenvatting > div { display: grid; gap: 3px; padding: 14px 15px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-2); }
.import-samenvatting span { color: var(--muted); font-size: 11px; }
.import-samenvatting strong { font-size: 17px; letter-spacing: -.035em; }
.import-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0 2px 10px; color: var(--muted); font-size: 12px; }
.import-alles { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.import-alles input, .import-keuzecheck input { width: 17px; height: 17px; accent-color: var(--accent); }
.import-suggesties { display: grid; gap: 9px; max-height: min(52vh, 540px); padding-right: 3px; overflow: auto; scrollbar-gutter: stable; }
.import-suggestie { display: grid; grid-template-columns: auto minmax(165px, 1.15fr) minmax(115px, .55fr) minmax(138px, .65fr) minmax(180px, .8fr); gap: 12px; align-items: center; padding: 15px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface-2); transition: opacity .2s, border-color .2s, background .2s; }
.import-suggestie:hover { border-color: var(--line-strong); background: var(--surface-solid); }
.import-suggestie.is-uit { opacity: .48; }
.import-keuzecheck { align-self: start; display: grid; padding-top: 4px; cursor: pointer; }
.import-suggestie-hoofd { min-width: 0; }
.import-suggestie-titel { display: flex; align-items: center; gap: 8px; min-width: 0; }
.import-suggestie-titel input { min-width: 0; width: 100%; padding: 7px 8px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--ink); font-size: 14px; font-weight: 700; }
.import-suggestie-titel input:focus { outline: 0; border-color: var(--accent); background: var(--surface-solid); }
.import-soortstip { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #c97866; }
.import-soortstip.inkomen { background: #4f86ec; }
.import-suggestie-meta { display: flex; flex-wrap: wrap; gap: 5px 9px; margin: 4px 0 0 17px; color: var(--muted); font-size: 11px; }
.import-suggestie-bedrag { display: grid; gap: 3px; }
.import-suggestie-bedrag strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.import-suggestie-bedrag span { color: var(--muted); font-size: 10px; }
.import-herhaling { display: inline-flex; align-items: center; gap: 6px; width: max-content; margin-top: 5px; color: var(--ink); font-size: 11px; font-weight: 680; cursor: pointer; }
.import-herhaling input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.import-herhaling span { color: inherit; font-size: inherit; }
.import-suggestie-velden { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.import-suggestie select { min-width: 0; width: 100%; min-height: 38px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-solid); color: var(--ink); font-size: 11px; }
.import-koppeling { display: grid; gap: 5px; }
.import-koppeling label { color: var(--muted); font-size: 10px; }
.import-match { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); font-size: 10px; font-weight: 700; }
.import-match svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.import-leeg { justify-items: center; padding: 35px 20px; color: var(--muted); text-align: center; }
.import-leeg:not([hidden]) { display: grid; gap: 7px; }
.import-leeg strong { color: var(--ink); font-size: 16px; }
.import-leeg p { max-width: 510px; margin: 0; font-size: 13px; line-height: 1.5; }

.rekening-bankdetails { margin-top: 19px; padding: 14px; border: 1px solid color-mix(in srgb, #ff6200 22%, var(--line)); border-radius: 16px; background: color-mix(in srgb, #ff6200 5%, var(--surface-2)); }
.rekening-bankkop { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.rekening-bankkop strong { font-size: 13px; }
.rekening-bankdetails dl { display: grid; gap: 9px; margin: 0; }
.rekening-bankdetails dl > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; }
.rekening-bankdetails dt { color: var(--muted); font-size: 11px; }
.rekening-bankdetails dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: 12px; }
.regel-bank { color: #dd5700; font-weight: 700; }

@media (max-width: 760px) {
  .import-dialoog .dialoog-form { padding: 17px 16px; }
  .import-kop { grid-template-columns: auto minmax(0, 1fr) auto; gap: 11px; margin-bottom: 17px; }
  .ing-merkicoon { width: 44px; height: 44px; border-radius: 14px; font-size: 12px; }
  .import-kop h3 { font-size: 23px; }
  .import-drop { gap: 4px; padding: 20px 16px; border-radius: 17px; }
  .import-scope { margin: 13px 0; }
  .import-privacy { padding: 11px 12px; }
  .import-disclaimer { margin-top: 8px; }
  #import-start > .dialoog-knoppen { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; margin-top: 16px; }
  #import-start > .dialoog-knoppen .rek { display: none; }
  #import-start > .dialoog-knoppen .knop { width: 100%; min-width: 0; padding-inline: 7px; white-space: nowrap; }
  #knop-import-analyseren { gap: 6px; }
  #knop-import-analyseren .knop-ic { display: block; flex: 0 0 19px; width: 19px; height: 19px; }
  .import-samenvatting { grid-template-columns: 1fr; }
  .import-samenvatting > div { grid-template-columns: 1fr auto; align-items: center; }
  .import-suggesties { max-height: none; overflow: visible; }
  .import-suggestie { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .import-suggestie-bedrag, .import-suggestie-velden, .import-koppeling { grid-column: 2; }
  .import-suggestie-velden { grid-template-columns: 1fr 1fr; }
  .import-voetknoppen { display: grid; grid-template-columns: 1fr; position: sticky; bottom: -1px; padding-top: 15px; background: linear-gradient(180deg, transparent, var(--surface-solid) 20%); }
  .import-voetknoppen .rek { display: none; }
  .rekening-bankdetails dl > div { grid-template-columns: 1fr; gap: 2px; }
}

[data-dichtheid="compact"] .regel-meta,
[data-dichtheid="compact"] .kaart-sub,
[data-dichtheid="compact"] .tegel-bij { font-size: 13px; }

@media (max-width: 820px) {
  .zijbalk .tab { font-size: 13px; }
  .overzicht-paneelkop .knop { font-size: 13px; }
  .stroomkaart .regel-bedrag { font-size: 15px; }
  .kaart-sub,
  .kaart-klein,
  .regel-meta,
  .meter-onder,
  .voortgangkaart p { font-size: 13px; }
}

/* Check 1.6: compacte hoofdkaart en betrouwbaar mobiel formulier. */
.ruimte-hoofdkaart { min-height: 270px; padding: clamp(25px, 3vw, 38px); }
.ruimte-hoofdkaart h1 { font-size: clamp(38px, 3.7vw, 56px); }
.ruimte-hoofdkaart .ruimte-bedrag { margin: 10px 0; font-size: clamp(50px, 4.6vw, 69px); }
.ruimte-hoofdkaart .maandkaart-zin { margin-bottom: 16px; }

#form-rekening, #form-rekening .veld-rij, #form-rekening .veld { min-width: 0; }
#form-rekening input[type="date"] {
  box-sizing: border-box;
  display: block;
  inline-size: 100%;
  min-inline-size: 0;
  max-inline-size: 100%;
  -webkit-appearance: none;
  appearance: none;
  text-align: left;
}
#form-rekening input[type="date"]::-webkit-date-and-time-value { min-inline-size: 0; text-align: left; }
#form-rekening input[type="date"]::-webkit-datetime-edit { min-inline-size: 0; padding: 0; }
#form-rekening input[type="date"]::-webkit-calendar-picker-indicator { flex: 0 0 auto; margin-inline: auto 0; }
@supports (-webkit-touch-callout: none) {
  #form-rekening input[type="date"] { width: -webkit-fill-available !important; }
}
#form-rekening .rekening-acties .knop { white-space: nowrap; }
#form-rekening .rekening-acties [hidden] { display: none; }

.grafiekkaart { min-width: 0; max-width: 100%; }
.grafiek { width: 100%; min-width: 0; grid-template-columns: repeat(12, minmax(0, 1fr)); overflow: visible; }
#grafiek[hidden] { display: none; }
.staafkolom { min-width: 0; }
.staaf-label { white-space: nowrap; }
.trend-inzicht { margin: 0 0 20px; padding: 13px 16px; border-radius: 13px; background: var(--surface-2); color: var(--ink); font-size: 14px; line-height: 1.5; }

@media (max-width: 1180px) {
  .ruimte-hoofdkaart { min-height: 245px; }
}

@media (max-width: 760px) {
  .ruimte-hoofdkaart { min-height: 205px; padding: 22px 20px; }
  .ruimte-hoofdkaart h1 { font-size: clamp(34px, 10vw, 45px); }
  .ruimte-hoofdkaart .ruimte-bedrag { margin: 9px 0; font-size: clamp(42px, 12vw, 57px); }
  .ruimte-hoofdkaart .maandkaart-zin { margin-bottom: 14px; }

  #form-rekening .rekening-acties { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  #form-rekening .rekening-acties .rek { display: none; }
  #form-rekening .rekening-acties .knop { width: 100%; min-width: 0; justify-content: center; padding-inline: 5px; font-size: 12px; }
  #form-rekening .rekening-acties [data-verwijder][hidden] { display: none; }
  #form-rekening .rekening-acties [data-verwijder][hidden] ~ [data-sluit] { grid-column: 2; }

  #form-rekening .veld-rij, #form-rekening .veld { inline-size: 100%; max-inline-size: 100%; }
  #form-rekening input[type="date"] { inline-size: 100% !important; min-inline-size: 0 !important; max-inline-size: 100% !important; }

  #paneel-trend { inline-size: 100%; max-inline-size: 100%; min-inline-size: 0; overflow-x: clip; }
  #paneel-trend .grafiekkaart { inline-size: 100%; max-inline-size: 100%; padding: 17px 13px; overflow-x: clip; }
  #paneel-trend .grafiek { inline-size: 100%; max-inline-size: 100%; height: 250px; gap: 2px; margin: 21px 0 15px; overflow: visible; }
  #paneel-trend .staaf-tip { max-inline-size: min(210px, calc(100vw - 54px)); overflow-wrap: anywhere; white-space: normal; }
  #paneel-trend .staafkolom:first-of-type .staaf-tip { left: 0; transform: translate(0, 4px); }
  #paneel-trend .staafkolom:first-of-type:hover .staaf-tip,
  #paneel-trend .staafkolom:first-of-type:focus-visible .staaf-tip { transform: translate(0, 0); }
  #paneel-trend .staafkolom:last-child .staaf-tip { left: auto; right: 0; transform: translate(0, 4px); }
  #paneel-trend .staafkolom:last-child:hover .staaf-tip,
  #paneel-trend .staafkolom:last-child:focus-visible .staaf-tip { transform: translate(0, 0); }
  .staaf { width: min(22px, 84%); }
  .staaf-label { font-size: 10px; }
  .gemiddelde-label { font-size: 11px; }
  .trend-inzicht { padding: 12px; font-size: 13px; }
}

/* BeUI/React Bits-geïnspireerde beweging, uitgevoerd zonder React-afhankelijkheden. */
:root { --check-spring: cubic-bezier(.22, 1.25, .36, 1); --check-ease: cubic-bezier(.22, 1, .36, 1); }
.knop, .icoonknop, .tab, .scope-knop, .postfilter, .menu-item, .avatar, .staafkolom {
  transition: transform .32s var(--check-spring), background-color .24s ease, box-shadow .32s var(--check-ease), color .24s ease, opacity .24s ease;
}
.knop:not(:disabled):active, .icoonknop:active, .tab:active, .scope-knop:active, .postfilter:active, .menu-item:active { transform: scale(.95); }
.knop:not(:disabled):hover { transform: translateY(-2px); }
.knop-gevaar:not(:disabled):hover { background: color-mix(in srgb, var(--red) 12%, var(--surface-solid)); box-shadow: 0 8px 20px color-mix(in srgb, var(--red) 12%, transparent); }
.knop-gevaar:not(:disabled):active { transform: scale(.93); }
.tab:hover .nav-icoon, .tab.is-actief .nav-icoon { transform: translateY(-2px) scale(1.06); }
.tab .nav-icoon { transition: transform .4s var(--check-spring); }
.scope-knop.is-actief, .postfilter.is-actief { animation: check-keuze .35s var(--check-spring); }
@keyframes check-keuze { from { transform: scale(.95); } to { transform: scale(1); } }

.gebruikersmenu[open] .menu { transform-origin: top right; animation: check-menu .34s var(--check-spring) both; }
.gebruikersmenu[open] .menu-item { animation: check-menu-item .34s var(--check-ease) both; }
.gebruikersmenu[open] .menu-item:nth-of-type(2) { animation-delay: 25ms; }
.gebruikersmenu[open] .menu-item:nth-of-type(3) { animation-delay: 50ms; }
.gebruikersmenu[open] .menu-item:nth-of-type(4) { animation-delay: 75ms; }
.gebruikersmenu[open] .menu-item:nth-of-type(5) { animation-delay: 100ms; }
.gebruikersmenu[open] .menu-item:nth-of-type(6) { animation-delay: 125ms; }
.gebruikersmenu .avatar { transition: transform .35s var(--check-spring), border-radius .35s var(--check-spring); }
.gebruikersmenu[open] .avatar { transform: scale(1.06); border-radius: 16px; }
@keyframes check-menu { from { opacity: 0; transform: translateY(-9px) scale(.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes check-menu-item { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
.gebruikersmenu.is-sluitend .menu { animation: check-menu-uit .18s ease both; pointer-events: none; }
@keyframes check-menu-uit { to { opacity: 0; transform: translateY(-7px) scale(.97); } }

.dialoog { opacity: 0; transform: translateY(16px) scale(.97); transition: opacity .28s var(--check-ease), transform .36s var(--check-spring), display .36s allow-discrete, overlay .36s allow-discrete; }
.dialoog[open] { opacity: 1; transform: translateY(0) scale(1); animation: none; }
@starting-style { .dialoog[open] { opacity: 0; transform: translateY(18px) scale(.97); } }
.dialoog::backdrop { background: rgba(9, 12, 10, 0); backdrop-filter: blur(0); transition: background .34s ease, backdrop-filter .34s ease, display .36s allow-discrete, overlay .36s allow-discrete; }
.dialoog[open]::backdrop { background: rgba(9, 12, 10, .42); backdrop-filter: blur(9px); }
@starting-style { .dialoog[open]::backdrop { background: rgba(9, 12, 10, 0); backdrop-filter: blur(0); } }
.dialoog[open] .dialoog-form > h3, .dialoog[open] .instellingen-kop { animation: check-inhoud .42s var(--check-ease) both; }
.dialoog[open] .dialoog-form > .veld, .dialoog[open] .dialoog-form > .veld-rij, .dialoog[open] .dialoog-knoppen { animation: check-inhoud .43s var(--check-ease) both; animation-delay: 35ms; }
@keyframes check-inhoud { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

.kpi-kaart, .voortgangkaart, .stroomkaart, .kaart, .grafiekkaart { transition: transform .4s var(--check-ease), box-shadow .4s var(--check-ease), border-color .3s ease; }
@media (hover: hover) { .kpi-kaart:hover, .voortgangkaart:hover, .stroomkaart:hover, .kaart:hover, .grafiekkaart:hover { transform: translateY(-3px); box-shadow: var(--shadow); } }
.cijfer-animeert { font-variant-numeric: tabular-nums; }
.staafkolom:focus-visible .staaf, .staafkolom:hover .staaf { transform: scaleX(1.12) translateY(-2px); }
.trend-inzicht { animation: check-inhoud .45s var(--check-ease) both; }
.pagina-auth .auth-kaart { animation: check-inhoud .6s var(--check-ease) both; }
.pagina-auth .auth-kop { animation: check-inhoud .58s var(--check-ease) .08s both; }
.pagina-auth .auth-form .veld, .pagina-auth .auth-form .knop { animation: check-inhoud .48s var(--check-ease) .14s both; }

@media (prefers-reduced-motion: reduce) {
  .dialoog, .dialoog::backdrop { transition-duration: .01ms !important; }
}

/* ==================================================================
   Check 1.8 - mobiele mock-up en uitklapbare rekeningregels
   ================================================================== */
.mobiel-uitgave-toevoegen { display: none; }
.mobiel-scope-slot { display: none; }
.scope-anker { flex: 0 0 auto; }
.regel { cursor: pointer; overflow: hidden; }
.regel-tekst { gap: 0; }
.regel-meta {
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-5px);
  transition: max-height .42s var(--check-ease), margin-top .36s var(--check-ease), opacity .22s ease, transform .42s var(--check-spring);
}
.regel-bewerk {
  opacity: 0;
  pointer-events: none;
  transform: translateX(5px) scale(.88);
  transition: opacity .22s ease, transform .38s var(--check-spring), background-color .2s ease;
}
.regel.is-open {
  border-color: var(--line-strong);
  background: var(--surface-solid);
  box-shadow: 0 12px 32px rgba(26, 35, 29, .08);
}
.regel.is-open .regel-meta { max-height: 92px; margin-top: 5px; opacity: 1; transform: translateY(0); }
.regel.is-open .regel-bewerk { opacity: 1; pointer-events: auto; transform: translateX(0) scale(1); }
.regel:focus, .regel:focus-visible, .paneel:focus { outline: none; }

@media (max-width: 760px) {
  html, body { max-width: 100%; overflow-x: clip; }
  body {
    background: var(--bg);
    font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  }

  .app-werkruimte .topbalk {
    position: sticky;
    top: 0;
    z-index: 60;
    padding: max(8px, env(safe-area-inset-top)) 8px 7px;
    border-bottom: 1px solid var(--line);
    background: var(--bg) !important;
  }
  .app-werkruimte .topbalk-binnen {
    min-height: 52px;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 7px;
  }
  .app-werkruimte .mobiel-merk { display: flex !important; align-items: center; justify-content: flex-start; }
  .mobiel-merk .merk-symbool { width: 35px; height: 35px; }
  .app-werkruimte .maandkiezer {
    width: 100%;
    max-width: 258px;
    min-width: 0;
    height: 52px;
    justify-content: space-between;
    padding: 3px 4px;
    border-color: rgba(17, 20, 26, .1);
    border-radius: 17px;
    background: var(--surface-solid);
  }
  .app-werkruimte .maand-label {
    min-width: 0;
    padding-inline: 4px;
    font-size: 15px;
    font-weight: 680;
    letter-spacing: -.01em;
    white-space: nowrap;
  }
  .app-werkruimte .topbalk-acties { gap: 4px; }
  .app-werkruimte #thema-knop { width: 38px; height: 46px; }
  .app-werkruimte .avatar { width: 46px; height: 46px; border-radius: 15px; font-size: 17px; }

  .mobiel-scope-slot { display: block; width: 100%; margin-top: 4px; }
  .mobiel-scope-slot .scope {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    min-height: 36px;
    margin: 0;
    padding: 3px;
    border-radius: 13px;
    background: #e8edf5;
  }
  .mobiel-scope-slot .scope-pil { border-radius: 9px; box-shadow: 0 2px 8px rgba(20, 28, 41, .08); }
  .mobiel-scope-slot .scope-knop { min-width: 0; width: 100%; padding: 4px; font-size: 14px; }

  .app-werkruimte main { padding: 8px 8px calc(102px + env(safe-area-inset-bottom)); }
  .dashboard-titel { display: none; }
  .dashboard-titel .hero-groet { display: none; }
  .app-werkruimte main > .dashboard-titel > .scope {
    min-height: 44px;
    margin: 0;
    padding: 4px;
    border-radius: 15px;
    background: #e8edf5;
  }
  .dashboard-titel .scope-pil { border-radius: 10px; box-shadow: 0 3px 10px rgba(20, 28, 41, .09); }
  .dashboard-titel .scope-knop { padding: 6px 4px; font-size: 16px; }

  .dashboard-samenvatting { display: block; margin: 0 2px 8px; }
  .ruimte-hoofdkaart {
    min-height: 154px;
    padding: 24px 25px 21px;
    justify-content: center;
    border-radius: 23px;
    background: linear-gradient(118deg, #101310 0%, #17202c 64%, #22344c 100%);
    box-shadow: 0 7px 18px rgba(16, 23, 35, .13);
  }
  .ruimte-hoofdkaart::after { right: -19rem; top: -19rem; opacity: .12; }
  .ruimte-hoofdkaart h1 {
    font-size: clamp(35px, 9.7vw, 43px);
    line-height: .98;
    font-weight: 700;
    letter-spacing: -.065em;
  }
  .ruimte-hoofdkaart .ruimte-bedrag {
    margin: 11px 0 0;
    font-size: clamp(47px, 13.3vw, 59px);
    line-height: .9;
    font-weight: 700;
    letter-spacing: -.06em;
  }
  .ruimte-hoofdkaart .maandkaart-zin,
  .ruimte-hoofdkaart .ruimte-signaal,
  .dashboard-samenvatting .kpi-kaart,
  .dashboard-samenvatting .voortgangkaart { display: none; }

  .dashboard-samenvatting[data-context="rekeningen"] .ruimte-hoofdkaart {
    min-height: 62px;
    padding: 11px 18px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-radius: 17px;
  }
  .dashboard-samenvatting[data-context="rekeningen"] .ruimte-hoofdkaart h1 {
    flex: 0 0 auto;
    font-size: 16px;
    line-height: 1;
    letter-spacing: -.035em;
  }
  .dashboard-samenvatting[data-context="rekeningen"] .ruimte-hoofdkaart .ruimte-bedrag {
    min-width: 0;
    margin: 0;
    font-size: clamp(25px, 7.4vw, 30px);
    line-height: 1;
    text-align: right;
    white-space: nowrap;
  }

  #paneel-rekeningen { padding-bottom: 0; }
  .overzicht-paneelkop { display: none; }
  .overzicht-grid { gap: 9px; }
  .stroomkaart {
    padding: 11px 14px 14px;
    border-radius: 22px;
    background: var(--surface-solid);
    box-shadow: 0 5px 20px rgba(26, 35, 49, .055);
  }
  .stroomkaart-kop {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 54px;
    gap: 10px 12px;
    align-items: start;
    min-height: 0;
    margin-bottom: 10px;
  }
  .stroomkaart-kop > div:first-child { align-items: flex-start; gap: 0; padding: 0 5px; }
  .stroommarkering { display: none; }
  .stroomkaart-kop h3 { font-size: 21px; line-height: 1.1; font-weight: 700; letter-spacing: -.04em; }
  .stroomkaart-kop p { margin-top: 4px; font-size: 12px; line-height: 1.3; }
  .uitgavenkaart .rekening-profiel { display: grid; gap: 1px; margin-top: 5px; }
  .uitgavenkaart .rekening-profiel strong { color: var(--ink); font-size: 15px; font-weight: 650; }
  .uitgavenkaart .rekening-profiel span { color: var(--muted); font-size: 12px; font-weight: 450; }
  .uitgavenkaart .stroomkaart-uitleg { display: none; }
  .mobiel-uitgave-toevoegen {
    display: grid;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    color: #fff;
    background: #11141a;
  }
  .mobiel-uitgave-toevoegen:hover { background: #11141a; }
  .mobiel-uitgave-toevoegen svg { width: 24px; height: 24px; }
  .uitgavenkaart .postfilters {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 40px;
    padding: 4px;
    border-radius: 12px;
    background: #e8edf5;
  }
  .postfilter { min-height: 32px; border-radius: 9px; font-size: 15px; }

  .stroomkaart .lijst { gap: 0; }
  .stroomkaart .regel,
  [data-dichtheid="compact"] .stroomkaart .regel {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 49px;
    padding: 6px 4px;
    border: 0;
    border-bottom: 1px solid rgba(17, 20, 26, .14);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .stroomkaart .regel.is-inkomen,
  .stroomkaart .regel.is-inkomen.is-betaald {
    border: 0;
    border-bottom: 1px solid rgba(17, 20, 26, .14);
    border-radius: 0;
    background: transparent;
  }
  .stroomkaart .regel.is-inkomen:last-child { border-bottom-color: transparent; }
  .stroomkaart .regel:last-child { border-bottom-color: transparent; }
  .stroomkaart .regel:hover,
  .stroomkaart .regel.is-open { background: transparent; box-shadow: none; transform: none; }
  .stroomkaart .regel.is-betaald { opacity: .55; }
  .stroomkaart .vink { width: 31px; height: 31px; }
  .stroomkaart .regel-naam,
  [data-dichtheid="compact"] .regel-naam { font-size: 17px; line-height: 1.2; font-weight: 450; }
  .stroomkaart .regel-bedrag {
    align-self: center;
    padding: 0 7px 0 0;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
  }
  .stroomkaart .regel-meta,
  [data-dichtheid="compact"] .regel-meta { padding-right: 36px; font-size: 11px; line-height: 1.4; }
  .stroomkaart .regel.is-open { min-height: 85px; }
  .stroomkaart .regel-bewerk {
    right: 3px;
    bottom: 7px;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    color: var(--ink);
    background: var(--surface-2);
  }

  .inkomstenkaart { margin-top: 0; }
  .inkomstenkaart .stroomkaart-kop { grid-template-columns: minmax(0, 1fr) 46px; }
  .inkomstenkaart .stroomkaart-kop > .icoonknop { width: 46px; height: 46px; border-radius: 50%; background: var(--surface-2); }

  .zijbalk {
    inset: auto 4px max(5px, env(safe-area-inset-bottom)) 4px;
    padding: 5px;
    border-radius: 21px;
    background: color-mix(in srgb, var(--surface-solid) 94%, transparent);
    box-shadow: 0 8px 30px rgba(25, 36, 56, .13);
  }
  .zijbalk .tab { min-height: 62px; gap: 2px; border-radius: 16px; font-size: 13px; }
  .zijbalk .tab .nav-icoon { width: 25px; height: 25px; }
  .zijbalk .tab.is-actief { background: #f6f8fc; }

  #paneel-trend, #paneel-trend * { min-inline-size: 0; }
  #paneel-trend { overflow-x: clip; }

  #dlg-rekening { border: 0; }
  #dlg-rekening .dialoog-form { padding-top: 14px; }
  #dlg-rekening .dialoog-form > h3 { margin-bottom: 20px; }
  #titel-rekening:focus, #titel-rekening:focus-visible { outline: none; }
}

.profielvelden { display: grid; gap: 9px; }
.profielvelden label { display: grid; gap: 4px; color: var(--muted); font-size: 11px; }
.profielvelden input {
  width: 100%;
  min-height: 42px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: 0;
  color: var(--ink);
  background: var(--surface-2);
}
.profielvelden input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent); }

/* IBM Plex Sans gebruikt zijn gewichtsas om informatiehiërarchie direct zichtbaar te maken. */
.tab, .scope-knop, .postfilter, .knop, .maand-label { font-weight: 500; }
.ruimte-bedrag, .kpi-kaart > strong, .voortgang-kop strong, .kaart-bedrag,
.trend-cijfers dd, .afdracht-totaal strong { font-weight: 700; font-variant-numeric: tabular-nums; }
.regel-meta, .paneel-onder, .stroomkaart-uitleg, .rekening-profiel span { font-weight: 300; }
.regel-bedrag { font-weight: 700; }

@media (max-width: 760px) {
  .instellingen-inhoud .profiel-instelling { grid-template-columns: 1fr; }
  .instellingen-inhoud .profielvelden { width: 100%; }
}

/* Dark mode: eigen donkere oppervlakken zonder lichte, geïnverteerde tabs. */
[data-thema="donker"] .avatar { color: #f7f9fd; background: #070a0f; }
@media (max-width: 760px) {
  [data-thema="donker"] .mobiel-scope-slot .scope,
  [data-thema="donker"] .uitgavenkaart .postfilters {
    border-color: rgba(255,255,255,.08);
    background: #151c27;
  }
  [data-thema="donker"] .mobiel-scope-slot .scope-pil,
  [data-thema="donker"] .postfilter.is-actief {
    color: #f6f8fc;
    background: #293446;
    box-shadow: 0 3px 12px rgba(0,0,0,.2);
  }
  [data-thema="donker"] .scope-knop,
  [data-thema="donker"] .postfilter { color: #8f9aab; }
  [data-thema="donker"] .scope-knop.is-actief { color: #f6f8fc; }
  [data-thema="donker"] .zijbalk {
    border-color: rgba(255,255,255,.09);
    background: rgba(21, 27, 38, .95);
    box-shadow: 0 12px 36px rgba(0,0,0,.38);
  }
  [data-thema="donker"] .zijbalk .tab { color: #8f9aab; }
  [data-thema="donker"] .zijbalk .tab.is-actief {
    color: #f6f8fc;
    background: #293446;
  }
  [data-thema="donker"] .zijbalk .tab.is-actief .nav-icoon {
    color: inherit;
    background: transparent;
  }
}

/* Eén compacte actiegroep: het potlood schuift naast het bedrag bij uitklappen. */
.regel-acties {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
}
.regel-acties .regel-bedrag { align-self: center; padding-top: 0; }
.regel-acties .regel-bewerk {
  position: static;
  right: auto;
  bottom: auto;
  flex: 0 0 0;
  width: 0;
  height: 32px;
  margin-left: 0;
  padding: 0;
  overflow: hidden;
  border-width: 0;
  transition: flex-basis .38s var(--check-spring), width .38s var(--check-spring), margin-left .38s var(--check-spring), opacity .22s ease, transform .38s var(--check-spring), background-color .2s ease;
}
.regel.is-open .regel-bewerk {
  flex-basis: 32px;
  width: 32px;
  margin-left: 7px;
}
@media (max-width: 760px) {
  .stroomkaart .regel-meta,
  [data-dichtheid="compact"] .regel-meta { padding-right: 0; }
  .stroomkaart .regel.is-open .regel-bewerk { flex-basis: 34px; width: 34px; }
}

@media (max-width: 410px) {
  .app-werkruimte .topbalk-binnen { grid-template-columns: 37px minmax(0, 1fr) auto; gap: 4px; }
  .mobiel-merk .merk-symbool { width: 31px; height: 31px; }
  .app-werkruimte #thema-knop { width: 34px; }
  .app-werkruimte .avatar { width: 42px; height: 42px; }
  .app-werkruimte .maand-label { font-size: 14px; }
}

/* iOS vergroot de pagina bij focus op formulierbesturingen met tekst kleiner dan 16px. */
@media (max-width: 1024px) {
  input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]),
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Compacte, consistente formulieren voor rekeningen, schulden en spaardoelen. */
.financieel-dialoog { width: min(620px, calc(100% - 24px)); max-height: min(92dvh, 760px); border: 0; }
.compact-formulier { padding: 22px 24px; }
.compact-formulier > h3 { margin-bottom: 16px; font-size: 25px; }
.compact-formulier > h3:focus,
.compact-formulier > h3:focus-visible { outline: none; }
.compact-formulier .veld { gap: 5px; margin-bottom: 10px; }
.compact-formulier .veld-rij { gap: 10px; }
.compact-formulier .veld input,
.compact-formulier .veld select { min-height: 44px; padding-block: 9px; }
.compact-formulier .veld input:focus,
.compact-formulier .veld select:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 8%, transparent);
}
.compact-formulier .veld-euro > span { top: 11px; }
.compact-formulier .schakelaar { min-height: 34px; margin-top: 1px; }
.compact-formulier .dialoog-knoppen { margin-top: 15px; }
.financieel-dialoog input[type="date"] {
  box-sizing: border-box;
  display: block;
  inline-size: 100%;
  min-inline-size: 0;
  max-inline-size: 100%;
  -webkit-appearance: none;
  appearance: none;
  text-align: left;
}
.financieel-dialoog input[type="date"]::-webkit-date-and-time-value { min-inline-size: 0; text-align: left; }
.financieel-dialoog input[type="date"]::-webkit-datetime-edit { min-inline-size: 0; padding: 0; }

.veld-labelrij { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.categorie-nieuw-knop { padding: 0; border: 0; background: transparent; color: var(--accent); font-size: 12px; font-weight: 700; cursor: pointer; }
.categorie-maker {
  grid-template-columns: minmax(0, 1fr) 56px auto auto;
  gap: 8px;
  align-items: end;
  margin: 1px 0 11px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  animation: check-inhoud .3s var(--check-ease) both;
}
.categorie-maker:not([hidden]) { display: grid; }
.categorie-maker .veld { margin: 0; }
.categorie-maker .kleurveld input { width: 48px; min-height: 44px; padding: 4px; cursor: pointer; }
.categorie-maker-acties { grid-column: 3 / 5; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.categorie-maker .knop { min-height: 44px; padding-inline: 12px; }

.regel-naam.heeft-categoriekleur {
  color: color-mix(in srgb, var(--categorie-kleur) 82%, var(--ink));
}
.regel-acties .regel-bedrag { color: var(--ink); }
.regel.is-inkomen .regel-acties .regel-bedrag { color: var(--accent); }
.regel-categorie-kleur {
  padding: 2px 7px;
  border-radius: 7px;
  color: color-mix(in srgb, var(--categorie-kleur) 72%, var(--ink));
  background: color-mix(in srgb, var(--categorie-kleur) 15%, transparent);
  font-weight: 600;
}

@media (max-width: 760px) {
  .financieel-dialoog { width: calc(100% - 12px); max-height: calc(100dvh - 12px); border-radius: 24px; }
  .compact-formulier { padding: 15px 16px 16px; }
  .compact-formulier > h3 { margin-bottom: 13px; font-size: 23px; }
  .compact-formulier .veld { margin-bottom: 8px; }
  .compact-formulier .dialoog-knoppen { margin-top: 12px; }
  .compacte-acties { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .compacte-acties .rek { display: none; }
  .compacte-acties [hidden] { display: none; }
  .compacte-acties:has([data-verwijder][hidden]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compacte-acties .knop { min-width: 0; width: 100%; padding-inline: 5px; font-size: 12px; white-space: nowrap; }
  .compacte-acties [data-verwijder][hidden] ~ [data-sluit] { grid-column: auto; }
  .categorie-maker { grid-template-columns: minmax(0, 1fr) 52px; }
  .categorie-maker-acties { grid-column: 1 / -1; }
  .categorie-maker .knop { padding-inline: 8px; }
}

@media (min-width: 360px) and (max-width: 760px) {
  .compact-formulier .veld-rij { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobiel maandbeheer en betaalvoortgang blijven compact zichtbaar. */
@media (max-width: 760px) {
  .dashboard-samenvatting[data-context="rekeningen"] .voortgangkaart {
    display: block;
    margin-top: 8px;
    padding: 11px 15px 10px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(26, 35, 49, .045);
  }
  .dashboard-samenvatting[data-context="rekeningen"] .voortgang-kop { align-items: center; }
  .dashboard-samenvatting[data-context="rekeningen"] .voortgang-kop > div {
    display: flex;
    align-items: baseline;
    gap: 8px;
  }
  .dashboard-samenvatting[data-context="rekeningen"] .voortgang-kop strong { font-size: 18px; }
  .dashboard-samenvatting[data-context="rekeningen"] .voortgangkaart .voortgangsbalk { margin: 8px 0 0; }
  .dashboard-samenvatting[data-context="rekeningen"] .voortgangkaart p { display: none; }

  .overzicht-paneelkop { display: block; margin: 0 2px 9px; }
  .overzicht-paneelkop > div:first-child { display: none; }
  .overzicht-paneelkop .maandacties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .overzicht-paneelkop .maandacties .knop {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 7px 8px;
    font-size: 12px;
  }
  .overzicht-paneelkop #knop-nieuwe-rekening { display: none; }
}
