
:root{
  --bg:#f4f8fb;
  --surface:#ffffff;
  --surface-2:#eef5f8;
  --text:#10233f;
  --muted:#6d7e90;
  --line:#dfe8ef;
  --primary:#19c4c9;
  --primary-2:#0a84d7;
  --primary-dark:#0e5aa7;
  --navy:#0c2f57;
  --ok:#19b67b;
  --warn:#e6a329;
  --danger:#df5c5c;
  --shadow:0 16px 40px rgba(21,61,94,.10);
  --radius:18px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:Inter,Arial,Helvetica,sans-serif;
  background:linear-gradient(180deg,#f7fbfd 0%,var(--bg) 100%);
  color:var(--text);
  line-height:1.45;
}
a{color:inherit;text-decoration:none}
.topbar{
  background:linear-gradient(135deg,#0b2e55 0%,#0f4c7a 54%,#0a8db0 100%);
  color:#fff;
  position:sticky;top:0;z-index:50;
  box-shadow:0 10px 30px rgba(5,35,61,.18);
}
.topbar-inner,.nav-inner,.container{max-width:1180px;margin:0 auto}
.topbar-inner{display:flex;align-items:center;justify-content:space-between;padding:14px 22px}
.brand{display:flex;align-items:center;gap:12px;min-width:0}
.brand-logo{width:46px;height:46px;object-fit:cover;border-radius:14px;background:#fff;padding:3px;box-shadow:0 5px 18px rgba(0,0,0,.16)}
.brand-copy{display:flex;flex-direction:column;min-width:0}
.brand-copy strong{font-size:1.5rem;line-height:1;font-weight:800;letter-spacing:-.02em}
.brand-copy small{font-size:.77rem;opacity:.82;margin-top:4px;white-space:nowrap}
.top-actions{display:flex;align-items:center;gap:10px}
.quick,.logout,.theme-toggle{
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.10);
  color:#fff;border-radius:12px;
  height:40px;display:inline-flex;align-items:center;justify-content:center;
  padding:0 14px;font-weight:700;
  backdrop-filter:blur(10px)
}
.quick{background:linear-gradient(135deg,var(--primary),#18a7d4);border:none;color:#062f3d}
.theme-toggle{width:40px;padding:0;cursor:pointer}
.nav{background:rgba(255,255,255,.94);border-bottom:1px solid var(--line);position:sticky;top:74px;z-index:40;backdrop-filter:blur(10px)}
.nav-inner{display:flex;gap:8px;overflow-x:auto;padding:10px 22px;scrollbar-width:none}
.nav-inner::-webkit-scrollbar{display:none}
.nav a{padding:9px 12px;border-radius:10px;font-weight:700;font-size:.92rem;color:#35546f;white-space:nowrap}
.nav a:hover{background:var(--surface-2);color:var(--navy)}
.container{padding:26px 22px 95px}
.hero{display:grid;grid-template-columns:1.3fr .7fr;gap:18px;margin-bottom:18px}
.card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:22px;
  box-shadow:var(--shadow)
}
.section{margin-top:18px}
.card h1,.card h2,.card h3{margin-top:0}
h1{font-size:clamp(1.7rem,3vw,2.4rem);letter-spacing:-.03em;margin:0 0 8px}
h2{font-size:1.15rem;letter-spacing:-.015em;margin-bottom:14px}
h3{font-size:1rem}
.muted{color:var(--muted)}
.eyebrow{text-transform:uppercase;letter-spacing:.13em;font-size:.72rem;font-weight:900;color:#0f9fbc;margin-bottom:6px}
.big-money{font-size:clamp(2rem,5vw,3.25rem);font-weight:850;letter-spacing:-.04em;color:var(--navy)}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:14px}
.stat{
  background:linear-gradient(180deg,#f8fbfd 0%,#f2f7fa 100%);
  border:1px solid var(--line);
  border-radius:15px;padding:16px
}
.stat b{display:block;font-size:1.25rem;margin-top:4px;color:var(--navy)}
.row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 0;border-bottom:1px solid var(--line)}
.row:last-child{border-bottom:0}
.actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.btn{
  border:0;border-radius:12px;padding:10px 14px;
  background:linear-gradient(135deg,var(--primary),#16add1);
  color:#073b46;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;justify-content:center
}
.btn.secondary{background:#e8f2f6;color:#254760}
.btn.danger{background:#fde7e7;color:#9b2d2d}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.field{display:flex;flex-direction:column;gap:6px}
.field.full{grid-column:1/-1}
label{font-size:.88rem;font-weight:800;color:#36536b}
input,select,textarea{
  width:100%;border:1px solid #ccdbe5;border-radius:12px;
  background:#fff;color:var(--text);padding:11px 12px;font:inherit;outline:none
}
input:focus,select:focus,textarea:focus{border-color:#27b6c7;box-shadow:0 0 0 3px rgba(39,182,199,.12)}
.flash{padding:14px 16px;border-radius:13px;margin-bottom:18px;font-weight:700}
.flash.success{background:#e8f8f1;color:#147451}
.flash.error{background:#fdecec;color:#9c3333}
.pill{display:inline-flex;padding:5px 9px;border-radius:999px;font-size:.78rem;font-weight:800}
.pill.ok{background:#e8f8f1;color:#147451}
.pill.warn{background:#fff4dd;color:#9a6710}
.pill.danger{background:#fdecec;color:#9c3333}
.login-wrap{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 20% 20%,rgba(23,200,204,.18),transparent 28%),linear-gradient(160deg,#edf7fb 0%,#f9fbfc 55%,#eef5f8 100%)}
.login-card{width:min(430px,100%);background:#fff;border:1px solid var(--line);border-radius:24px;padding:30px;box-shadow:0 22px 60px rgba(18,57,85,.16)}
.milo-mark{width:70px;height:70px;margin:0 auto 16px;border-radius:22px;background:url('milo-logo.png') center/cover no-repeat;box-shadow:0 10px 28px rgba(20,184,166,.22);font-size:0}
.login-card h1{text-align:center}
.login-tagline{text-align:center;color:var(--muted);margin-top:-4px;margin-bottom:24px}
.fab{
  position:fixed;right:20px;bottom:20px;width:58px;height:58px;border-radius:18px;
  background:linear-gradient(135deg,var(--primary),#16add1);color:#063641;
  display:flex;align-items:center;justify-content:center;font-size:1.9rem;font-weight:700;
  box-shadow:0 16px 30px rgba(8,137,164,.28);z-index:60
}
[data-theme="dark"]{
  --bg:#07111f;
  --surface:#0e1b2c;
  --surface-2:#14243a;
  --text:#f2f7fb;
  --muted:#93a4b7;
  --line:#23344a;
  --navy:#e6f4ff;
  --shadow:0 16px 40px rgba(0,0,0,.24)
}
[data-theme="dark"] body{background:linear-gradient(180deg,#07111f 0%,#0a1524 100%);color:var(--text)}
[data-theme="dark"] .nav{background:rgba(9,20,34,.96);border-color:var(--line)}
[data-theme="dark"] .nav a{color:#c5d7e6}
[data-theme="dark"] .nav a:hover{background:#14243a;color:#fff}
[data-theme="dark"] .card{background:var(--surface);border-color:var(--line)}
[data-theme="dark"] .stat{background:linear-gradient(180deg,#122238,#0f1c2d);border-color:var(--line)}
[data-theme="dark"] input,[data-theme="dark"] select,[data-theme="dark"] textarea{background:#0a1626;color:#f3f7fb;border-color:#2c4057;color-scheme:dark}
[data-theme="dark"] label{color:#bdd0df}
[data-theme="dark"] .btn.secondary{background:#1c2e45;color:#eaf4fb}
[data-theme="dark"] .login-wrap{background:radial-gradient(circle at 20% 20%,rgba(23,200,204,.14),transparent 30%),linear-gradient(160deg,#07111f,#0a1626)}
[data-theme="dark"] .login-card{background:#0e1b2c;border-color:#22364c}
@media(max-width:900px){
  .hero{grid-template-columns:1fr}
  .grid{grid-template-columns:1fr 1fr}
}
@media(max-width:700px){
  .topbar-inner{padding:10px 14px}
  .brand-logo{width:42px;height:42px}
  .brand-copy small{display:none}
  .quick{padding:0 12px}
  .logout{display:none}
  .nav{top:62px}
  .nav-inner{padding:8px 12px}
  .container{padding:18px 14px 90px}
  .grid{grid-template-columns:1fr}
  .form-grid{grid-template-columns:1fr}
  .field.full{grid-column:auto}
  .card{padding:18px;border-radius:16px}
  .row{align-items:flex-start;flex-direction:column}
  .actions{width:100%}
}

/* v0.6 dashboard */
.dashboard-head{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:18px}
.course-card{position:relative;overflow:hidden}
.course-card:after{content:"";position:absolute;right:-70px;top:-70px;width:220px;height:220px;border-radius:50%;background:radial-gradient(circle,rgba(24,196,201,.13),transparent 68%);pointer-events:none}
.course-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}
.course-head h2{margin:10px 0 4px}
.course-icon{width:46px;height:46px;border-radius:15px;background:linear-gradient(135deg,#d9fbf7,#dff4ff);display:flex;align-items:center;justify-content:center;font-size:1.5rem;color:#0a7c9c;font-weight:900}
.course-main{display:flex;justify-content:space-between;gap:22px;align-items:flex-end;margin-top:20px}
.course-side{display:flex;flex-direction:column;align-items:flex-end;text-align:right}
.course-side b{font-size:1.15rem}
.mini-kpi{display:flex;justify-content:space-between;gap:14px;padding:14px 0;border-bottom:1px solid var(--line)}
.mini-kpi:last-child{border-bottom:0}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.section-head a{font-weight:800;color:#0f93b0;font-size:.9rem}
.warning-line{display:flex;justify-content:space-between;gap:18px;padding:16px;border:1px solid var(--line);border-radius:14px;margin-top:10px}
.warning-line.warn{background:#fffaf0}
.warning-line.danger{background:#fff3f3}
.warning-advice{display:flex;flex-direction:column;text-align:right;max-width:380px}
.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.quick-tile{border:1px solid var(--line);background:var(--surface-2);border-radius:14px;padding:16px;display:flex;align-items:center;gap:10px}
.quick-tile span{width:32px;height:32px;border-radius:10px;background:linear-gradient(135deg,#c8fbf5,#d9f1ff);display:grid;place-items:center;color:#087e99;font-size:1.15rem;font-weight:900}
.money-in{color:var(--ok)}
.money-out{color:#b95050}

/* mobile menu */
.menu-toggle{display:none;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.10);color:#fff;width:40px;height:40px;border-radius:12px;font-size:1.25rem;cursor:pointer}
.menu-overlay{position:fixed;inset:0;background:rgba(4,15,27,.52);z-index:79;opacity:0;pointer-events:none;transition:opacity .2s ease}
.menu-overlay.open{opacity:1;pointer-events:auto}
.mobile-menu{position:fixed;top:0;right:0;width:min(86vw,360px);height:100dvh;background:var(--surface);z-index:80;transform:translateX(105%);transition:transform .22s ease;box-shadow:-18px 0 50px rgba(4,19,31,.22);display:flex;flex-direction:column;padding:18px}
.mobile-menu.open{transform:translateX(0)}
.mobile-menu-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:4px 2px 18px}
.mobile-menu-head>div{display:flex;flex-direction:column}
.mobile-menu-head strong{font-size:1.45rem;color:var(--navy)}
.mobile-menu-head small{color:var(--muted);margin-top:3px}
.menu-close{border:0;background:var(--surface-2);color:var(--text);width:40px;height:40px;border-radius:12px;font-size:1.7rem;cursor:pointer}
.mobile-menu-primary{display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--primary),#16add1);color:#073b46;font-weight:900;padding:13px;border-radius:13px;margin-bottom:12px}
.mobile-menu-links{display:flex;flex-direction:column;gap:4px;overflow:auto}
.mobile-menu-links a{display:flex;align-items:center;gap:12px;padding:13px 12px;border-radius:12px;font-weight:800;color:var(--text)}
.mobile-menu-links a:hover{background:var(--surface-2)}
.mobile-menu-links span{width:30px;height:30px;border-radius:9px;background:var(--surface-2);display:grid;place-items:center;color:#0a8eaa}
.mobile-menu-foot{margin-top:auto;padding-top:16px;border-top:1px solid var(--line)}
.mobile-menu-foot a{display:block;padding:11px 12px;color:var(--muted);font-weight:800}
body.menu-open{overflow:hidden}
[data-theme="dark"] .warning-line.warn{background:#2c2718}
[data-theme="dark"] .warning-line.danger{background:#321d23}
[data-theme="dark"] .mobile-menu{background:var(--surface)}
.desktop-only{display:inline-flex}

@media(max-width:900px){
  .two-col{grid-template-columns:1fr}
}
@media(max-width:700px){
  .desktop-nav{display:none}
  .menu-toggle{display:inline-flex;align-items:center;justify-content:center}
  .desktop-quick,.logout{display:none}
  .topbar{position:sticky;top:0}
  .container{padding-top:18px}
  .dashboard-head{align-items:flex-start}
  .desktop-only{display:none}
  .course-main{align-items:flex-start;flex-direction:column}
  .course-side{align-items:flex-start;text-align:left}
  .warning-line{flex-direction:column}
  .warning-advice{text-align:left}
  .quick-grid{grid-template-columns:1fr 1fr}
  .fab{display:flex}
}
@media(min-width:701px){
  .mobile-menu,.menu-overlay{display:none!important}
}


/* v0.6.1 MOBILE MENU HOTFIX - hard overrides */
@media screen and (max-width:700px){
  nav.nav.desktop-nav,
  #desktopNav,
  .desktop-nav,
  .nav.desktop-nav{
    display:none !important;
    visibility:hidden !important;
    height:0 !important;
    min-height:0 !important;
    max-height:0 !important;
    overflow:hidden !important;
    padding:0 !important;
    margin:0 !important;
    border:0 !important;
  }

  .menu-toggle{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    visibility:visible !important;
    opacity:1 !important;
  }

  .mobile-menu{
    display:flex !important;
    position:fixed !important;
    top:0 !important;
    right:0 !important;
    bottom:0 !important;
    width:min(88vw,360px) !important;
    height:100dvh !important;
    z-index:9999 !important;
    transform:translateX(110%) !important;
  }

  .mobile-menu.open{
    transform:translateX(0) !important;
  }

  .menu-overlay{
    display:block !important;
    position:fixed !important;
    inset:0 !important;
    z-index:9998 !important;
  }

  .topbar{
    z-index:9997 !important;
  }

  .topbar-inner{
    min-height:62px;
  }

  .brand-copy small{
    display:none !important;
  }

  .desktop-quick,
  .logout{
    display:none !important;
  }
}

/* fallback when JS marks mobile */
body.is-mobile .desktop-nav{display:none !important}
body.is-mobile .menu-toggle{display:inline-flex !important}

/* v0.7 smart budget advice */
.milo-advice{display:flex;gap:12px;align-items:flex-start;background:linear-gradient(135deg,#e8fbf9,#edf7ff);border:1px solid #d3edf2;border-radius:14px;padding:14px 15px;margin-top:16px}
.milo-advice-icon{flex:0 0 34px;width:34px;height:34px;border-radius:11px;background:linear-gradient(135deg,#1ac6c9,#169ed1);display:grid;place-items:center;font-weight:900;color:#073943}
.milo-advice>div:last-child{display:flex;flex-direction:column;gap:2px}
.milo-advice span{color:#48677f}
.budget-advice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.budget-advice-card{border:1px solid var(--line);border-radius:16px;padding:16px;background:var(--surface)}
.budget-advice-card.warn{background:#fffaf1}
.budget-advice-card.danger{background:#fff3f3}
.budget-advice-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.budget-advice-head>div{display:flex;flex-direction:column}
.budget-advice-head span:not(.pill){font-size:.82rem;color:var(--muted);margin-top:2px}
.budget-progress{height:8px;border-radius:99px;background:#e8eff3;overflow:hidden;margin:14px 0}
.budget-progress span{display:block;height:100%;background:linear-gradient(90deg,#1ec5c8,#159ed3);border-radius:99px}
.budget-advice-card.warn .budget-progress span{background:linear-gradient(90deg,#e7b13d,#ee8f42)}
.budget-advice-card.danger .budget-progress span{background:linear-gradient(90deg,#ef7a7a,#d94e4e)}
.budget-numbers{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.budget-numbers div{background:rgba(255,255,255,.55);border-radius:11px;padding:10px}
.budget-numbers span{display:block;color:var(--muted);font-size:.76rem}
.budget-numbers b{display:block;margin-top:2px;font-size:.97rem}
.budget-projection{margin-top:12px;padding:10px 12px;border-radius:11px;background:rgba(217,78,78,.09);color:#9b3b3b}
.budget-advice-text{margin:12px 0 0;color:#48677f}
[data-theme="dark"] .milo-advice{background:linear-gradient(135deg,#0f2a2d,#10263a);border-color:#244454}
[data-theme="dark"] .milo-advice span{color:#a8bfd0}
[data-theme="dark"] .budget-advice-card.warn{background:#2c2718}
[data-theme="dark"] .budget-advice-card.danger{background:#321d23}
[data-theme="dark"] .budget-numbers div{background:rgba(255,255,255,.035)}
[data-theme="dark"] .budget-advice-text{color:#a8bfd0}
[data-theme="dark"] .budget-projection{color:#f1a4a4;background:rgba(217,78,78,.10)}
@media(max-width:800px){
  .budget-advice-grid{grid-template-columns:1fr}
}
@media(max-width:520px){
  .budget-numbers{grid-template-columns:1fr 1fr 1fr;gap:6px}
  .budget-numbers div{padding:8px}
  .budget-numbers b{font-size:.9rem}
}

/* Milo v0.8 toegankelijkheid */
.help-top{border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.10);color:#fff;border-radius:12px;height:40px;display:inline-flex;align-items:center;padding:0 13px;font-weight:800}
.simple-page-head{max-width:760px;margin-bottom:22px}
.lead{font-size:1.08rem;color:var(--muted);line-height:1.65}
.help-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.help-card{position:relative;padding-top:24px}
.help-number{width:38px;height:38px;border-radius:12px;background:linear-gradient(135deg,#c9faf4,#d9f2ff);display:grid;place-items:center;color:#087e99;font-weight:900;margin-bottom:13px}
.help-card p{color:var(--muted);min-height:68px}
.explain{border-top:1px solid var(--line);padding:14px 0}
.explain:first-of-type{border-top:0}
.explain summary{cursor:pointer;font-weight:850;color:var(--text)}
.explain p{color:var(--muted);margin:8px 0 0;max-width:760px}
.reassurance{background:linear-gradient(135deg,#eafbf8,#eef7ff)}
[data-theme="dark"] .reassurance{background:linear-gradient(135deg,#102b2d,#11263a)}
[data-theme="dark"] .help-number{background:#15354a;color:#66d9dc}
@media(max-width:700px){
 .help-top{display:none}
 .help-grid{grid-template-columns:1fr}
 .help-card p{min-height:0}
}

/* v0.8.2 calculation correction */
.calculation-note{margin:14px 0 0;padding-top:12px;border-top:1px solid var(--line);font-size:.82rem;color:var(--muted);line-height:1.5}

/* Milo v0.8.5 — Milo praat met je */
.milo-says{
  display:flex;
  align-items:flex-start;
  gap:13px;
  margin-top:16px;
}
.milo-avatar{
  width:46px;
  height:46px;
  flex:0 0 46px;
  border-radius:15px;
  background:#fff;
  padding:3px;
  box-shadow:0 7px 20px rgba(16,75,99,.13);
  position:relative;
  z-index:2;
}
.milo-avatar img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:12px;
}
.milo-bubble{
  position:relative;
  flex:1;
  min-width:0;
  padding:14px 16px;
  border-radius:5px 17px 17px 17px;
  background:#e9faf8;
  border:1px solid #cceeea;
  box-shadow:0 7px 18px rgba(20,89,107,.06);
}
.milo-bubble:before{
  content:"";
  position:absolute;
  left:-10px;
  top:11px;
  width:18px;
  height:18px;
  background:inherit;
  border-left:1px solid;
  border-bottom:1px solid;
  border-color:inherit;
  transform:rotate(45deg);
  border-radius:0 0 0 4px;
}
.milo-bubble-title{
  position:relative;
  z-index:1;
  font-weight:900;
  color:#126b71;
  margin-bottom:3px;
}
.milo-bubble-text{
  position:relative;
  z-index:1;
  color:#426576;
  line-height:1.5;
}
.milo-says.warn .milo-bubble{
  background:#fff7e6;
  border-color:#f1dfb4;
}
.milo-says.warn .milo-bubble-title{color:#936514}
.milo-says.danger .milo-bubble{
  background:#fff0f0;
  border-color:#efcdcd;
}
.milo-says.danger .milo-bubble-title{color:#a33d3d}
.milo-says.compact{
  margin:0 0 18px;
}
.milo-says.compact .milo-avatar{
  width:40px;height:40px;flex-basis:40px;border-radius:13px;
}
.milo-says.compact .milo-bubble{
  padding:11px 14px;
}
[data-theme="dark"] .milo-bubble{
  background:#102d30;
  border-color:#245157;
}
[data-theme="dark"] .milo-bubble-title{color:#72ddd4}
[data-theme="dark"] .milo-bubble-text{color:#b3cbd2}
[data-theme="dark"] .milo-says.warn .milo-bubble{
  background:#302817;border-color:#5a4926;
}
[data-theme="dark"] .milo-says.warn .milo-bubble-title{color:#f0c66d}
[data-theme="dark"] .milo-says.danger .milo-bubble{
  background:#321e24;border-color:#5d3038;
}
[data-theme="dark"] .milo-says.danger .milo-bubble-title{color:#f1a3a3}
@media(max-width:520px){
  .milo-says{gap:10px}
  .milo-avatar{width:40px;height:40px;flex-basis:40px;border-radius:13px}
  .milo-bubble{padding:12px 13px;border-radius:5px 15px 15px 15px}
  .milo-bubble-title{font-size:.94rem}
  .milo-bubble-text{font-size:.9rem}
}

/* Milo v0.8.7 profile */
.profile-form{max-width:820px}
.profile-save-row{display:flex;justify-content:flex-start;margin-top:18px}
.birthday-message{margin-bottom:18px}
.profile-form input{min-height:46px}

/* Milo v0.8.9 desktop sidebar */
@media(min-width:761px){
  .topbar-inner{max-width:none}
  .container{padding-left:28px;padding-right:28px}
}


/* Milo v0.8.12 — maandelijkse vaste lasten + mobiele uitlijning */
html,body{
  max-width:100%;
  overflow-x:hidden;
}
.container,
.card,
.form-grid,
.field,
.row,
.actions,
.fixed-cost-item,
.fixed-cost-main,
.fixed-cost-copy{
  min-width:0;
}
input,
select,
textarea,
button{
  max-width:100%;
}
textarea{
  resize:vertical;
}
.field input,
.field select,
.field textarea{
  min-width:0;
  width:100%;
}
.field-help,
.optional{
  color:var(--muted);
  font-size:.79rem;
  font-weight:500;
}
.money-input{
  display:flex;
  align-items:center;
  width:100%;
  min-width:0;
  border:1px solid #ccdbe5;
  border-radius:12px;
  background:#fff;
  overflow:hidden;
}
.money-input span{
  flex:0 0 auto;
  padding-left:12px;
  color:var(--muted);
  font-weight:800;
}
.money-input input{
  border:0 !important;
  box-shadow:none !important;
  min-width:0;
  padding-left:8px;
}
[data-theme="dark"] .money-input{
  background:#0a1626;
  border-color:#2c4057;
}
.form-actions{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:18px;
}
.fixed-costs-summary .big-money{
  margin-top:4px;
}
.fixed-cost-list{
  display:flex;
  flex-direction:column;
}
.fixed-cost-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:15px 0;
  border-bottom:1px solid var(--line);
}
.fixed-cost-item:last-child{
  border-bottom:0;
}
.fixed-cost-main{
  display:flex;
  align-items:flex-start;
  gap:12px;
  flex:1 1 auto;
}
.fixed-cost-icon{
  width:38px;
  height:38px;
  flex:0 0 38px;
  border-radius:11px;
  display:grid;
  place-items:center;
  background:var(--surface-2);
  color:#078da9;
  font-weight:900;
}
.fixed-cost-copy{
  display:flex;
  flex-direction:column;
  overflow-wrap:anywhere;
}
.fixed-cost-copy>b{
  color:var(--text);
}
.fixed-cost-copy span,
.fixed-cost-copy small{
  color:var(--muted);
  margin-top:2px;
}
.fixed-cost-copy small{
  overflow-wrap:anywhere;
}
.fixed-cost-actions{
  display:flex;
  align-items:center;
  gap:12px;
  flex:0 0 auto;
}
.fixed-cost-amount{
  white-space:nowrap;
}
.compact-button{
  padding:8px 10px;
  font-size:.82rem;
}
.empty-state{
  padding:18px;
  border-radius:14px;
  background:var(--surface-2);
  display:flex;
  flex-direction:column;
  gap:4px;
}
.empty-state span{
  color:var(--muted);
}

@media(max-width:760px){
  .container{
    width:100% !important;
    max-width:100% !important;
    padding-left:12px !important;
    padding-right:12px !important;
  }

  .card{
    width:100%;
    max-width:100%;
    padding:16px;
  }

  .form-grid{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    width:100%;
    gap:13px;
  }

  .field,
  .field.full{
    grid-column:1 !important;
    width:100%;
    max-width:100%;
  }

  .mobile-safe-form{
    width:100%;
    max-width:100%;
    overflow:hidden;
  }

  .mobile-safe-form input,
  .mobile-safe-form select,
  .mobile-safe-form textarea{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
  }

  .form-actions{
    width:100%;
  }

  .form-actions .btn{
    width:100%;
    min-height:46px;
  }

  .fixed-cost-item{
    align-items:stretch;
    flex-direction:column;
    gap:10px;
  }

  .fixed-cost-actions{
    width:100%;
    justify-content:space-between;
    align-items:center;
  }

  .fixed-cost-actions form{
    margin:0;
  }

  .fixed-cost-amount{
    font-size:1.05rem;
  }

  .row{
    width:100%;
    max-width:100%;
    overflow-wrap:anywhere;
  }

  .actions{
    max-width:100%;
  }

  .actions form,
  .actions .btn{
    max-width:100%;
  }

  .lead,
  .muted,
  p,
  span,
  b,
  small,
  label{
    overflow-wrap:anywhere;
  }
}

/* Milo v0.8.13 — schulden bewerken/verwijderen */
.debt-row{gap:18px}
.debt-info{min-width:0;overflow-wrap:anywhere}
.debt-right{display:flex;flex-direction:column;align-items:flex-end;gap:8px;min-width:250px}
.debt-open{font-size:1.08rem}
.debt-buttons{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.debt-buttons form{margin:0}
.debt-payment{display:flex;gap:7px;align-items:center;max-width:330px}
.debt-payment input{width:115px;min-width:0}
.debt-edit-card{margin-bottom:18px}
@media(max-width:760px){
 .debt-row{flex-direction:column;align-items:stretch!important}
 .debt-right{min-width:0;width:100%;align-items:stretch}
 .debt-buttons{display:grid;grid-template-columns:1fr 1fr;width:100%}
 .debt-buttons .btn,.debt-buttons form,.debt-buttons form button{width:100%}
 .debt-payment{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);width:100%;max-width:none}
 .debt-payment input,.debt-payment button{width:100%!important;max-width:100%}
}

/* Milo v0.8.14 — vaste lasten zichtbaar */
.fixed-cost-dashboard-total{
  font-size:2rem;
  font-weight:900;
  color:var(--navy);
  letter-spacing:-.03em;
  margin:8px 0 6px;
}
.fixed-cost-dashboard-card .btn{
  margin-top:6px;
}

/* Milo v0.8.15 */
.checkline{display:flex!important;align-items:center;gap:8px;margin-top:7px;font-size:.82rem!important;font-weight:700!important;color:var(--muted)!important}
.checkline input{width:auto!important;max-width:none!important}
.cycle-period{font-size:.8rem;color:var(--muted);margin-top:4px}
.budget-home-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}
.budget-home-card{border:1px solid var(--line);border-radius:16px;padding:16px;background:var(--surface)}
.budget-home-card.warn{background:#fffaf1}
.budget-home-card.danger{background:#fff3f3}
.budget-home-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.budget-home-top>div{min-width:0}
.budget-home-top b{display:block;overflow-wrap:anywhere}
.budget-home-amount{font-size:1.65rem;font-weight:900;letter-spacing:-.03em;color:var(--navy);margin:10px 0 4px}
.budget-home-meta{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:.82rem}
.budget-home-progress{height:8px;background:#e8eff3;border-radius:99px;overflow:hidden;margin-top:12px}
.budget-home-progress span{display:block;height:100%;background:linear-gradient(90deg,#1ec5c8,#159ed3);border-radius:99px}
.budget-home-card.warn .budget-home-progress span{background:linear-gradient(90deg,#e7b13d,#ee8f42)}
.budget-home-card.danger .budget-home-progress span{background:linear-gradient(90deg,#ef7a7a,#d94e4e)}
[data-theme="dark"] .budget-home-card.warn{background:#2c2718}
[data-theme="dark"] .budget-home-card.danger{background:#321d23}
@media(max-width:760px){
  .budget-home-grid{grid-template-columns:1fr}
}

/* Milo v0.8.16.2 — globale mobiele formulierfix */
*,
*::before,
*::after{
  box-sizing:border-box;
}

html,
body{
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}

.container,
.card,
.section,
.form-grid,
.field,
.row,
.actions,
form{
  min-width:0;
  max-width:100%;
}

input,
select,
textarea{
  display:block;
  width:100%;
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
}

input[type="date"],
input[type="month"],
input[type="time"],
input[type="datetime-local"],
input[type="number"]{
  width:100%;
  max-width:100%;
  min-width:0;
  -webkit-appearance:none;
  appearance:none;
}

textarea{
  overflow-wrap:anywhere;
  word-break:break-word;
}

@media(max-width:760px){
  body{
    width:100vw;
    max-width:100vw;
    overflow-x:hidden!important;
  }

  .container{
    width:100%!important;
    max-width:100%!important;
    margin-left:0!important;
    margin-right:0!important;
    padding-left:12px!important;
    padding-right:12px!important;
    overflow-x:hidden!important;
  }

  .card,
  .section{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow:hidden;
  }

  .form-grid{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:12px!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }

  .field,
  .field.full{
    grid-column:1/-1!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }

  .field > input,
  .field > select,
  .field > textarea,
  .money-input,
  .money-input input{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }

  input[type="date"],
  input[type="month"],
  input[type="time"],
  input[type="datetime-local"]{
    padding:0!important;
    min-height:44px;
    border:1px solid #ccdbe5;
    border-radius:12px;
    background:var(--surface,#fff);
  }

  input[type="date"]::-webkit-date-and-time-value,
  input[type="month"]::-webkit-date-and-time-value,
  input[type="time"]::-webkit-date-and-time-value{
    text-align:left;
    padding:10px 12px;
  }

  select{
    padding-right:34px!important;
  }

  .actions,
  .form-actions,
  .debt-buttons,
  .fixed-cost-actions{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    flex-wrap:wrap!important;
  }

  .row,
  .debt-row,
  .fixed-cost-item{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }

  .row > *,
  .debt-row > *,
  .fixed-cost-item > *{
    min-width:0!important;
    max-width:100%!important;
  }

  .btn,
  button{
    max-width:100%;
  }

  table{
    max-width:100%;
  }

  pre,
  code{
    white-space:pre-wrap;
    overflow-wrap:anywhere;
  }
}

/* Milo v0.8.18 — subtiel actiemenu */
.action-menu{
  position:relative;
  display:inline-block;
}
.action-menu summary{
  list-style:none;
  cursor:pointer;
  user-select:none;
  border:1px solid var(--line);
  background:var(--surface-2);
  color:var(--text);
  border-radius:10px;
  padding:7px 10px;
  font-size:.82rem;
  font-weight:800;
  white-space:nowrap;
}
.action-menu summary::-webkit-details-marker{display:none}
.action-menu summary::after{
  content:"⋮";
  margin-left:7px;
  color:var(--muted);
}
.action-menu[open] summary{
  background:var(--surface);
  border-color:#a9c8d6;
}
.action-menu-popover{
  position:absolute;
  right:0;
  top:calc(100% + 6px);
  z-index:300;
  min-width:165px;
  padding:6px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--surface);
  box-shadow:0 14px 35px rgba(14,45,67,.16);
}
.action-menu-popover a,
.action-menu-popover button{
  display:block;
  width:100%;
  border:0;
  background:transparent;
  color:var(--text);
  text-align:left;
  padding:9px 10px;
  border-radius:8px;
  font:inherit;
  font-size:.88rem;
  font-weight:700;
  cursor:pointer;
}
.action-menu-popover a:hover,
.action-menu-popover button:hover{
  background:var(--surface-2);
}
.action-menu-popover form{margin:0}
.action-menu-popover .action-danger{color:#b54848}
.row-actions-wrap{
  display:flex;
  align-items:center;
  gap:10px;
}
[data-theme="dark"] .action-menu-popover{
  box-shadow:0 14px 35px rgba(0,0,0,.35);
}
@media(max-width:760px){
  .action-menu{align-self:flex-end}
  .action-menu-popover{
    position:fixed;
    left:12px;
    right:12px;
    top:auto;
    bottom:14px;
    min-width:0;
    width:auto;
    border-radius:16px;
    padding:8px;
    z-index:100000;
  }
  .action-menu-popover a,
  .action-menu-popover button{
    padding:13px 12px;
    font-size:1rem;
  }
  .row-actions-wrap{
    width:100%;
    justify-content:space-between;
  }
}

/* Milo v0.8.19 — budgetcategorieën */
.budget-custom-category{margin-top:8px}

/* Milo v0.8.20 — bankrekeningen */
.bank-account-row small{display:block;margin-top:3px}
.action-menu-popover input{margin:4px 0 6px}

/* Milo v0.8.23 — officiële startdatum */
.milo-start-banner{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px;margin:0 0 18px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.milo-start-banner b,.milo-start-banner span{display:block}.milo-start-banner span{margin-top:4px;color:var(--muted)}
.opening-balance-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,260px);gap:18px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line)}
.start-rule-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.start-rule{padding:16px;border:1px solid var(--line);border-radius:14px}.start-rule b,.start-rule span{display:block}.start-rule span{margin-top:5px;color:var(--muted)}
@media(max-width:760px){.milo-start-banner{align-items:flex-start;flex-direction:column}.opening-balance-row,.start-rule-grid{grid-template-columns:minmax(0,1fr)}}

/* Milo v0.8.25 — categorieën vaste lasten */
.fixed-cost-custom-category{margin-top:8px}

/* Milo v0.8.26 — echte doorrekening */
.reality-big{font-size:2.1rem;font-weight:900;letter-spacing:-.04em;margin:8px 0 3px;color:var(--navy)}
.reality-flow{display:flex;flex-direction:column;gap:2px;margin-top:10px}
.reality-flow>div{display:flex;justify-content:space-between;gap:15px;padding:12px 0;border-bottom:1px solid var(--line)}
.reality-flow .result{border-bottom:0;margin-top:3px;padding:14px 12px;border-radius:12px;background:var(--surface-2)}
.reality-flow .result b{font-size:1.25rem}
.calculation-explainer p{color:var(--muted);margin:8px 0}
@media(max-width:520px){.reality-flow>div{align-items:flex-start;flex-direction:column;gap:3px}}

/* Milo v0.8.27 — automatische schuldberekening */
.debt-live-calc{padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:var(--surface-2)}
.debt-live-calc span,.debt-live-calc small{display:block;color:var(--muted)}
.debt-live-calc b{display:block;font-size:1.6rem;margin:3px 0;color:var(--navy)}
.debt-balance-block{text-align:right}
.debt-balance-block span,.debt-balance-block small{display:block;color:var(--muted)}
@media(max-width:760px){.debt-balance-block{text-align:left}}

/* Milo v0.8.28 — inkomsten versus maandplan */
.affordability-card{overflow:visible}
.affordability-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;margin-top:14px}
.affordability-item{padding:12px;border:1px solid var(--line);border-radius:13px;background:var(--surface)}
.affordability-item span{display:block;color:var(--muted);font-size:.8rem}
.affordability-item b{display:block;margin-top:4px;font-size:1.05rem}
.affordability-item.total{background:var(--surface-2)}
.affordability-card.danger .affordability-item.total{background:#fff0f0}
.affordability-card.warn .affordability-item.total{background:#fff8e8}
.affordability-bar{height:10px;margin-top:15px;background:#e8eff3;border-radius:99px;overflow:hidden}
.affordability-bar span{display:block;height:100%;background:linear-gradient(90deg,#1ec5c8,#159ed3);border-radius:99px}
.affordability-card.warn .affordability-bar span{background:linear-gradient(90deg,#e7b13d,#ee8f42)}
.affordability-card.danger .affordability-bar span{background:linear-gradient(90deg,#ef7a7a,#d94e4e)}
.affordability-meta{display:flex;justify-content:space-between;gap:12px;margin-top:7px;color:var(--muted);font-size:.8rem}
[data-theme="dark"] .affordability-card.danger .affordability-item.total{background:#321e24}
[data-theme="dark"] .affordability-card.warn .affordability-item.total{background:#302817}
@media(max-width:900px){.affordability-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.affordability-item.total{grid-column:1/-1}}
@media(max-width:520px){.affordability-grid{grid-template-columns:1fr}.affordability-item.total{grid-column:auto}.affordability-meta{flex-direction:column;gap:3px}}

/* Milo v0.8.29 — herstelplan */
.affordability-action{display:flex;align-items:center;gap:12px;margin-top:14px;flex-wrap:wrap}
.recovery-cta{display:flex;align-items:center;justify-content:space-between;gap:15px}.recovery-cta b,.recovery-cta span{display:block}.recovery-cta span{margin-top:3px}
.recovery-summary{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;gap:10px;align-items:center}
.recovery-kpi{padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}.recovery-kpi span,.recovery-kpi b{display:block}.recovery-kpi span{color:var(--muted);font-size:.82rem}.recovery-kpi b{font-size:1.35rem;margin-top:3px}
.recovery-arrow{font-size:1.5rem;color:var(--muted)}
.recovery-step{display:grid;grid-template-columns:auto auto minmax(0,1fr) auto;gap:12px;align-items:center;padding:13px 0;border-bottom:1px solid var(--line)}
.recovery-step.review{grid-template-columns:auto minmax(0,1fr) auto}.recovery-number{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--surface-2);font-weight:900}.recovery-copy b,.recovery-copy span{display:block}.recovery-copy span{margin-top:4px;color:var(--muted)}.recovery-saving{font-weight:900}.inline-money{display:inline-block!important;width:105px!important;padding:5px 7px!important;margin-left:4px}.recovery-warning{margin-top:15px;padding:13px;border-radius:12px;background:var(--surface-2);color:var(--muted)}
@media(max-width:700px){.recovery-summary{grid-template-columns:1fr}.recovery-arrow{transform:rotate(90deg);text-align:center}.recovery-step,.recovery-step.review{grid-template-columns:auto minmax(0,1fr)}.recovery-check{grid-row:1/3}.recovery-saving,.recovery-step.review .btn{grid-column:2}.recovery-cta{align-items:flex-start;flex-direction:column}}

/* Milo v0.8.30 — financieel periode-overzicht */
.report-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:12px}
.report-toolbar-actions{display:flex;gap:8px}
.financial-report{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:26px;max-width:1100px;margin:0 auto 30px}
.report-head{display:flex;justify-content:space-between;gap:20px;border-bottom:2px solid var(--line);padding-bottom:18px;margin-bottom:18px}
.report-brand{display:flex;align-items:center;gap:12px}.report-brand img{width:52px;height:52px;border-radius:14px}.report-brand b,.report-brand span{display:block}.report-brand b{font-size:1.35rem}.report-brand span{color:var(--muted)}
.report-meta{display:grid;gap:6px;min-width:300px}.report-meta>div{display:grid;grid-template-columns:90px 1fr;gap:8px}.report-meta b{font-size:.8rem}.report-meta span{font-size:.85rem;color:var(--muted)}
.report-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0}.report-summary>div{border:1px solid var(--line);border-radius:12px;padding:13px}.report-summary span,.report-summary b{display:block}.report-summary span{font-size:.76rem;color:var(--muted)}.report-summary b{margin-top:4px;font-size:1.15rem}.report-summary .negative b{color:#b54848}.report-summary .positive b{color:#23795a}
.report-section{margin:26px 0}.report-section h2{font-size:1.1rem;margin-bottom:10px}.report-section h3{font-size:.92rem;margin:0 0 8px}
.report-table{width:100%;border-collapse:collapse;font-size:.84rem}.report-table th,.report-table td{padding:8px 7px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}.report-table th{font-size:.74rem;color:var(--muted);text-transform:uppercase;letter-spacing:.03em}.report-table .num{text-align:right;white-space:nowrap}.report-table .report-total td{font-weight:900;border-top:2px solid var(--line)}.report-table.compact td{padding:6px}
.report-two{display:grid;grid-template-columns:1fr 1fr;gap:20px}.report-empty{color:var(--muted);font-size:.86rem}.report-foot{border-top:1px solid var(--line);padding-top:14px;margin-top:30px}.report-foot p{font-size:.72rem;color:var(--muted)}
@media(max-width:760px){.report-toolbar,.report-head{flex-direction:column;align-items:stretch}.report-meta{min-width:0}.report-summary{grid-template-columns:1fr 1fr}.report-two{grid-template-columns:1fr}.financial-report{padding:16px}.report-table{font-size:.76rem}}
@media print{
  @page{size:A4;margin:12mm}
  body{background:#fff!important;color:#111!important}
  .topbar,.milo-desktop-sidebar,#miloMobileBackdrop,#miloMobilePanel,.fab,.no-print{display:none!important}
  .container{margin:0!important;padding:0!important;max-width:none!important;width:auto!important}
  .financial-report{border:0!important;border-radius:0!important;padding:0!important;margin:0!important;max-width:none!important;background:#fff!important;color:#111!important}
  .report-head,.report-section,.report-summary{break-inside:avoid}
  .report-table{font-size:8.5pt}
  .report-table th,.report-table td{border-color:#bbb!important;padding:5px}
  .report-summary>div{border-color:#bbb!important}
  .report-meta span,.report-brand span,.report-summary span,.report-table th,.report-empty,.report-foot p{color:#555!important}
  a{color:#111!important;text-decoration:none!important}
}

/* Milo v0.9.0 — complete basis */
.forecast-flow>div{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}.forecast-flow .result{font-size:1.08rem;font-weight:900;border-bottom:0}.check-alert{padding:11px 13px;border-radius:12px;margin:8px 0;background:var(--surface-2)}.check-alert b,.check-alert span{display:block}.check-alert span{margin-top:3px;color:var(--muted);font-size:.84rem}.quick-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.quick-tool{display:block;padding:15px;border:1px solid var(--line);border-radius:14px;background:var(--surface);text-decoration:none!important;color:inherit!important}.quick-tool b,.quick-tool span{display:block}.quick-tool span{margin-top:4px;color:var(--muted);font-size:.82rem}.goal-row,.history-row,.transfer-step{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px 0;border-bottom:1px solid var(--line)}.goal-row span,.history-row span,.transfer-step span{display:block;color:var(--muted);font-size:.82rem;margin-top:3px}.goal-progress{height:7px;background:var(--surface-2);border-radius:99px;overflow:hidden;margin-top:8px}.goal-progress i{display:block;height:100%;background:linear-gradient(90deg,#1ec5c8,#159ed3)}.history-row>div:last-child{text-align:right}.transfer-step{display:grid;grid-template-columns:auto minmax(0,1fr) auto}.transfer-step strong{font-size:1.05rem}
@media(max-width:700px){.quick-tools{grid-template-columns:1fr}.goal-row,.history-row{align-items:flex-start;flex-direction:column}.history-row>div:last-child{text-align:left}.transfer-step{grid-template-columns:auto minmax(0,1fr)}.transfer-step strong{grid-column:2}}

/* Milo v0.9.1 — geplande uitgaven */
.planned-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:12px 0}.planned-kpis>div{padding:11px;border:1px solid var(--line);border-radius:12px}.planned-kpis span,.planned-kpis b{display:block}.planned-kpis span{color:var(--muted);font-size:.76rem}.planned-kpis b{margin-top:3px}.planned-progress{margin:13px 0 15px}.planned-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:14px}.inline-reserve{display:flex;gap:7px;align-items:center}.inline-reserve input{max-width:140px}
@media(max-width:700px){.planned-kpis{grid-template-columns:1fr 1fr}.planned-actions{align-items:stretch;flex-direction:column}.inline-reserve{align-items:stretch;flex-direction:column}.inline-reserve input{max-width:none}}

/* Milo v0.9.2 — voortgang geplande uitgaven */
.planned-progress-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin-top:10px}
.planned-progress-head span,.planned-progress-head b{display:block}
.planned-progress-head span{color:var(--muted);font-size:.82rem}
.planned-progress-head b{font-size:1.45rem;margin-top:2px}
.planned-progress-percent{font-size:1.35rem;font-weight:900;color:var(--navy)}
.planned-kpis small{display:block;margin-top:3px;color:var(--muted);font-size:.7rem}
.planned-dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.planned-dashboard-card{padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.planned-dashboard-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.planned-dashboard-top b,.planned-dashboard-top span{display:block}
.planned-dashboard-top span{margin-top:3px;color:var(--muted);font-size:.78rem}
.planned-dashboard-top strong{font-size:1.15rem}
.planned-dashboard-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}
.planned-dashboard-stats span{font-size:.72rem;color:var(--muted)}
.planned-dashboard-stats b{display:block;color:var(--text);font-size:.9rem;margin-top:2px}
@media(max-width:760px){.planned-dashboard-grid{grid-template-columns:1fr}.planned-dashboard-stats{grid-template-columns:1fr 1fr 1fr}}

/* Milo v0.9.3 — alle banksaldi op één pagina */
.balance-summary-grid{margin-bottom:8px}
.balance-update-list{display:flex;flex-direction:column}
.balance-update-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(190px,250px);
  gap:18px;
  align-items:center;
  padding:15px 0;
  border-bottom:1px solid var(--line);
}
.balance-update-row:last-child{border-bottom:0}
.balance-account-info{display:flex;align-items:flex-start;gap:12px;min-width:0}
.balance-account-icon{
  width:38px;height:38px;flex:0 0 38px;
  display:grid;place-items:center;border-radius:11px;
  background:var(--surface-2);color:#078da9;font-weight:900
}
.balance-account-info b,.balance-account-info span,.balance-account-info small{display:block}
.balance-account-info b{overflow-wrap:anywhere}
.balance-account-info span{margin-top:2px;color:var(--muted);font-size:.84rem}
.balance-account-info small{margin-top:3px;color:var(--muted);font-size:.74rem;overflow-wrap:anywhere}
.balance-field{margin:0}
.balance-field label{font-size:.76rem}
.balance-save-actions{justify-content:flex-end}
.section-links{display:flex;gap:10px;flex-wrap:wrap}
@media(max-width:760px){
  .balance-update-row{grid-template-columns:minmax(0,1fr);gap:10px}
  .balance-save-actions{align-items:stretch;flex-direction:column}
  .balance-save-actions .btn{width:100%}
}

/* Milo v0.9.5 — eenmalige betalingen */
.otp-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:13px;align-items:center;padding:13px 0;border-bottom:1px solid var(--line)}.otp-row.paid,.otp-row.cancelled{opacity:.6}.otp-date{width:46px;height:50px;border-radius:12px;background:var(--surface-2);display:grid;place-items:center;align-content:center}.otp-date b{font-size:1.08rem}.otp-date span{font-size:.63rem;color:var(--muted)}.otp-copy b,.otp-copy span,.otp-copy small,.otp-amount span{display:block}.otp-copy span,.otp-copy small,.otp-amount span{color:var(--muted);font-size:.76rem;margin-top:2px}.otp-amount{text-align:right;font-weight:900;white-space:nowrap}.action-menu{position:relative}.action-menu summary{cursor:pointer;list-style:none;padding:7px 10px;border:1px solid var(--line);border-radius:9px;font-size:.78rem;font-weight:800}.action-menu-pop{position:absolute;right:0;top:calc(100% + 5px);z-index:20;min-width:170px;padding:6px;background:var(--surface);border:1px solid var(--line);border-radius:11px;box-shadow:0 12px 30px rgba(0,0,0,.12)}.action-menu-pop a,.action-menu-pop button{display:block;width:100%;border:0;background:none;text-align:left;padding:8px;color:var(--text);font:inherit;font-size:.8rem;text-decoration:none;cursor:pointer}.action-menu-pop .danger{color:#b54848}
@media(max-width:700px){.otp-row{grid-template-columns:auto minmax(0,1fr) auto}.otp-actions{grid-column:2/4}}

/* Milo v0.9.6 — centrale categorieën */
.milo-custom-category{margin-top:8px}

/* Milo v0.9.8 — testperiode vóór officiële start */
.test-period-pill{margin-left:6px;background:#eef2f5!important;color:#64717d!important}
.test-period-inline{font-weight:800;color:#7c8995}
.report-test-note{margin:14px 0;padding:12px 14px;border:1px dashed #aab7c2;border-radius:10px;background:#f7f9fa}
.report-test-note b,.report-test-note span{display:block}.report-test-note span{margin-top:4px;color:#5f6d78;font-size:.8rem}
[data-theme="dark"] .report-test-note{background:#17202b}
@media print{.report-test-note{border-color:#aaa!important;background:#fff!important}}

/* Milo v0.9.9 — bon scannen */
.receipt-capture{display:flex;flex-direction:column;gap:10px}
.receipt-camera-box{display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;min-height:150px;padding:20px;border:2px dashed var(--line);border-radius:16px;background:var(--surface-2);cursor:pointer}
.receipt-camera-icon{font-size:2rem;margin-bottom:7px}.receipt-camera-box b,.receipt-camera-box small{display:block}.receipt-camera-box small{margin-top:5px;color:var(--muted)}
#receiptInput{position:absolute;left:-9999px;width:1px;height:1px}
.receipt-preview{display:block;max-width:100%;max-height:460px;object-fit:contain;border:1px solid var(--line);border-radius:14px;background:#fff}
.receipt-ocr-status{display:flex;gap:9px;align-items:center;margin-top:12px;padding:11px 13px;border-radius:12px;background:var(--surface-2);color:var(--muted);font-size:.84rem}
.spinner-dot{width:10px;height:10px;border-radius:50%;background:#159ed3;animation:miloPulse 1s infinite alternate}
@keyframes miloPulse{from{opacity:.35;transform:scale(.8)}to{opacity:1;transform:scale(1.15)}}
.receipt-check-note{margin-top:14px;padding:12px 14px;border-radius:12px;background:var(--surface-2)}.receipt-check-note b,.receipt-check-note span{display:block}.receipt-check-note span{margin-top:3px;color:var(--muted);font-size:.82rem}
.receipt-row{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:13px 0;border-bottom:1px solid var(--line)}.receipt-row span{display:block;margin-top:3px;color:var(--muted);font-size:.8rem}
@media(max-width:700px){.receipt-row{align-items:flex-start;flex-direction:column}.receipt-row .row-actions-wrap{width:100%;justify-content:space-between}}

/* Milo v0.9.10 — bon scannen altijd zichtbaar */
.dashboard-head-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.receipt-quick-tool{border-style:dashed}
@media(max-width:760px){
  .dashboard-head-actions{width:100%}
  .dashboard-head-actions .btn{width:100%}
}

/* Milo v0.9.11 — mobiel plusmenu */
.mobile-fab-wrap{position:fixed;right:18px;bottom:calc(18px + env(safe-area-inset-bottom));z-index:99980}
.mobile-fab-wrap .fab{
  position:relative!important;right:auto!important;bottom:auto!important;
  width:58px;height:58px;border-radius:50%;display:grid;place-items:center;
  border:0;cursor:pointer;font-size:30px;line-height:1;
  box-shadow:0 10px 28px rgba(0,0,0,.22);
}
.mobile-fab-wrap .fab.open{transform:rotate(0)}
.mobile-fab-menu{
  position:absolute;right:0;bottom:70px;width:min(82vw,290px);
  padding:8px;border:1px solid var(--line);border-radius:16px;
  background:var(--surface);box-shadow:0 16px 42px rgba(0,0,0,.22);
  opacity:0;visibility:hidden;pointer-events:none;transform:translateY(8px) scale(.98);
  transition:.16s ease;
}
.mobile-fab-menu.open{opacity:1;visibility:visible;pointer-events:auto;transform:none}
.mobile-fab-menu a{
  display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;gap:10px;
  min-height:48px;padding:7px 9px;border-radius:11px;color:var(--text);text-decoration:none!important
}
.mobile-fab-menu a:hover{background:var(--surface-2)}
.mobile-fab-menu a span{
  width:36px;height:36px;border-radius:10px;display:grid;place-items:center;
  background:var(--surface-2);font-size:1.05rem;font-weight:900
}
.mobile-fab-menu a b{font-size:.92rem}
@media(min-width:761px){.mobile-fab-wrap{display:none!important}}
@media(max-width:760px){
  .dashboard-head-actions.desktop-only{display:none!important}
}

/* Milo v0.9.12 — compacte mobiele startpagina */
.mobile-home-summary,.mobile-home-actions,.mobile-home-alert,.mobile-only{display:none}

@media(max-width:760px){
  .mobile-only{display:block}
  .mobile-home-summary{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    margin:10px 0;
  }
  .mobile-summary-card{
    display:block;
    min-width:0;
    padding:13px;
    border:1px solid var(--line);
    border-radius:14px;
    background:var(--surface);
    color:var(--text)!important;
    text-decoration:none!important;
  }
  .mobile-summary-card:first-child{grid-column:1/-1}
  .mobile-summary-card span,.mobile-summary-card b{display:block}
  .mobile-summary-card span{font-size:.75rem;color:var(--muted)}
  .mobile-summary-card b{margin-top:3px;font-size:1.3rem;letter-spacing:-.03em}
  .mobile-summary-card.danger{background:#fff3f3}
  [data-theme="dark"] .mobile-summary-card.danger{background:#321d23}

  .mobile-home-actions{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:7px;
    margin:10px 0 14px;
  }
  .mobile-home-actions a{
    display:flex;
    min-height:52px;
    align-items:center;
    justify-content:center;
    padding:8px 5px;
    border:1px solid var(--line);
    border-radius:12px;
    background:var(--surface);
    color:var(--text)!important;
    text-decoration:none!important;
    text-align:center;
    font-size:.75rem;
    font-weight:800;
  }

  .mobile-home-alert{
    margin:0 0 14px;
  }
  .mobile-home-alert a,.mobile-home-alert .ok{
    display:block;
    padding:12px 14px;
    border-radius:13px;
    background:var(--surface-2);
    color:var(--text)!important;
    text-decoration:none!important;
  }
  .mobile-home-alert b,.mobile-home-alert span{display:block}
  .mobile-home-alert span{margin-top:2px;font-size:.78rem;color:var(--muted)}

  .mobile-detail-section{
    position:relative;
  }
  .mobile-detail-section.mobile-collapsed{
    max-height:62px;
    overflow:hidden;
    padding-bottom:10px!important;
  }
  .mobile-detail-section.mobile-collapsed > *:not(.section-head):not(.mobile-collapse-toggle){
    display:none!important;
  }
  .mobile-detail-section.mobile-collapsed .section-head{
    margin-bottom:0!important;
  }
  .mobile-detail-section .mobile-collapse-toggle{
    display:flex;
    width:100%;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    padding:0;
    margin:0;
    border:0;
    background:none;
    color:var(--text);
    font:inherit;
    cursor:pointer;
  }
  .mobile-detail-section .mobile-collapse-toggle::after{
    content:"⌄";
    font-size:1.1rem;
    color:var(--muted);
  }
  .mobile-detail-section:not(.mobile-collapsed) .mobile-collapse-toggle::after{
    content:"⌃";
  }

  /* Reduce visual noise on mobile */
  .dashboard-head p{display:none}
  .dashboard-head{margin-bottom:6px}
  .dashboard-head h1{font-size:1.6rem}
  .section{margin-top:10px!important}
  .card{border-radius:14px}
  .affordability-grid{grid-template-columns:1fr 1fr}
  .affordability-item.total{grid-column:1/-1}
}

/* Milo v0.9.13 — mobiele tegel-home */
.mobile-tile-home{display:none}
@media(max-width:760px){
  .mobile-tile-home{display:block;margin:8px 0 18px}
  .mobile-home-summary,.mobile-home-actions,.mobile-home-alert{display:none!important}
  .mobile-detail-section{display:none!important}

  .mobile-tile-hero{
    display:flex;justify-content:space-between;align-items:flex-end;gap:12px;
    padding:16px;border-radius:16px;background:var(--surface);border:1px solid var(--line);
    margin-bottom:10px
  }
  .mobile-tile-hero span,.mobile-tile-hero b{display:block}
  .mobile-tile-hero>div>span{font-size:.78rem;color:var(--muted)}
  .mobile-tile-hero>div>b{font-size:1.75rem;letter-spacing:-.04em;margin-top:3px}
  .mobile-tile-status{padding:6px 9px;border-radius:99px;font-size:.7rem;font-weight:900;background:var(--surface-2)}
  .mobile-tile-status.danger{background:#fff0f0;color:#b54848}
  .mobile-tile-status.warn{background:#fff7e3;color:#8a6a13}
  .mobile-tile-status.ok{background:#eaf8f0;color:#23795a}
  [data-theme="dark"] .mobile-tile-status.danger{background:#321d23}
  [data-theme="dark"] .mobile-tile-status.warn{background:#302817}
  [data-theme="dark"] .mobile-tile-status.ok{background:#173225}

  .mobile-tile-grid{
    display:grid;grid-template-columns:1fr 1fr;gap:10px
  }
  .mobile-tile{
    display:block;min-height:138px;padding:14px;border:1px solid var(--line);border-radius:16px;
    background:var(--surface);color:var(--text)!important;text-decoration:none!important
  }
  .mobile-tile.danger{background:#fff4f4}
  [data-theme="dark"] .mobile-tile.danger{background:#321d23}
  .mobile-tile-icon{display:block;font-size:1.35rem;margin-bottom:9px}
  .mobile-tile-label{display:block;font-size:.75rem;color:var(--muted);font-weight:800}
  .mobile-tile b{display:block;font-size:1.12rem;margin-top:5px;overflow-wrap:anywhere}
  .mobile-tile small{display:block;font-size:.7rem;color:var(--muted);margin-top:4px}
  .mobile-tile-advice{margin-top:10px}

  .dashboard-head{display:block}
  .dashboard-head .eyebrow{display:none}
  .dashboard-head h1{font-size:1.45rem;margin-bottom:0}
}

/* Milo v0.9.14 — tegel-home zichtbaarheid hotfix */
.milo-mobile-home-v2{display:none}
@media screen and (max-width:900px){
  body .milo-mobile-home-v2{display:block!important}
  body .mobile-home-summary,
  body .mobile-home-actions,
  body .mobile-home-alert,
  body .mobile-detail-section{display:none!important}
  body .milo-mobile-home-v2 .mobile-tile-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body .milo-mobile-home-v2 .mobile-tile{display:block!important}
}
@media screen and (min-width:901px){
  body .milo-mobile-home-v2{display:none!important}
}

/* Milo v0.9.15 — harde mobiele tegel-home */
.milo-mobile-tile-home{display:none}

@media screen and (max-width:900px){
  .milo-mobile-tile-home{
    display:block!important;
    margin:8px 0 18px!important;
  }

  /* Oude mobiele dashboarddelen weg; de tegel-home is de startpagina */
  .mobile-home-summary,
  .mobile-home-actions,
  .mobile-home-alert,
  .mobile-detail-section,
  .quick-tools.section,
  .report-cta,
  .calculation-explainer{
    display:none!important;
  }

  .milo-mobile-balance{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:12px;
    padding:16px;
    border:1px solid var(--line);
    border-radius:17px;
    background:var(--surface);
    margin-bottom:10px;
  }
  .milo-mobile-balance span,.milo-mobile-balance b{display:block}
  .milo-mobile-balance>div>span{font-size:.78rem;color:var(--muted)}
  .milo-mobile-balance>div>b{font-size:1.8rem;line-height:1.05;margin-top:4px;letter-spacing:-.04em}

  .milo-mobile-status{
    padding:6px 9px;
    border-radius:999px;
    font-size:.72rem;
    font-weight:900;
    background:var(--surface-2);
  }
  .milo-mobile-status.ok{color:#23795a;background:#eaf8f0}
  .milo-mobile-status.warn{color:#8a6a13;background:#fff7e3}
  .milo-mobile-status.danger{color:#b54848;background:#fff0f0}
  [data-theme="dark"] .milo-mobile-status.ok{background:#173225}
  [data-theme="dark"] .milo-mobile-status.warn{background:#302817}
  [data-theme="dark"] .milo-mobile-status.danger{background:#321d23}

  .milo-tile-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }

  .milo-home-tile{
    display:block!important;
    min-width:0!important;
    min-height:138px;
    padding:14px;
    border:1px solid var(--line);
    border-radius:16px;
    background:var(--surface);
    color:var(--text)!important;
    text-decoration:none!important;
    box-shadow:0 2px 8px rgba(15,35,55,.04);
  }
  .milo-home-tile.danger{background:#fff4f4}
  [data-theme="dark"] .milo-home-tile.danger{background:#321d23}

  .milo-home-tile .tile-icon{display:block;font-size:1.35rem;margin-bottom:9px}
  .milo-home-tile .tile-title{display:block;color:var(--muted);font-size:.76rem;font-weight:900}
  .milo-home-tile b{display:block;font-size:1.12rem;margin-top:5px;overflow-wrap:anywhere}
  .milo-home-tile small{display:block;color:var(--muted);font-size:.7rem;margin-top:4px}

  .milo-mobile-advice{margin-top:10px!important}

  .dashboard-head p{display:none!important}
  .dashboard-head .eyebrow{display:none!important}
  .dashboard-head h1{font-size:1.45rem!important;margin-bottom:0!important}
}

@media screen and (min-width:901px){
  .milo-mobile-tile-home{display:none!important}
}


/* Milo Administratie v1 */
.admin-action-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.admin-action-card{display:flex;flex-direction:column;gap:7px;padding:20px;border:1px solid var(--line,#dfe8ef);background:var(--surface,#fff);border-radius:18px;min-height:170px;color:var(--text,#10233f);box-shadow:0 7px 24px rgba(15,35,55,.06)}.admin-action-card>span{font-size:2rem}.admin-action-card b{font-size:1.05rem}.admin-action-card small{color:var(--muted,#6d7e90);line-height:1.45}.admin-action-card.primary{background:linear-gradient(145deg,rgba(25,196,201,.13),rgba(22,173,209,.07));border-color:rgba(12,171,193,.3)}.admin-action-card.vault{background:linear-gradient(145deg,rgba(109,94,252,.10),rgba(255,255,255,.03))}.admin-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.admin-stat-grid a{padding:16px 18px;border:1px solid var(--line,#dfe8ef);border-radius:16px;background:var(--surface,#fff);display:flex;flex-direction:column;gap:5px}.admin-stat-grid span{color:var(--muted,#6d7e90);font-size:.88rem}.admin-stat-grid b{font-size:1.6rem}.admin-doc-list{display:grid;gap:7px}.admin-doc-list a{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:10px;padding:11px;border-radius:13px;color:var(--text,#10233f)}.admin-doc-list a:hover{background:var(--surface-2,#eef5f8)}.admin-doc-list small{display:block;color:var(--muted,#6d7e90);margin-top:2px}.doc-type-icon{font-size:1.45rem}.admin-doc-list em{font-size:1.5rem;font-style:normal;color:var(--muted,#6d7e90)}.document-drop{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;border:2px dashed rgba(15,140,170,.35);background:var(--surface-2,#eef5f8);padding:30px 18px;border-radius:18px;cursor:pointer}.document-drop>span{font-size:2.3rem}.document-drop small{color:var(--muted,#6d7e90)}#documentFile{margin-top:10px}.document-search-form{display:flex;align-items:end;gap:12px}.document-search-form .grow{flex:1}.document-library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.document-library-card{display:block;padding:17px;border:1px solid var(--line,#dfe8ef);border-radius:17px;background:var(--surface,#fff);color:var(--text,#10233f);box-shadow:0 5px 18px rgba(15,35,55,.04)}.document-library-card.sensitive{border-color:rgba(109,94,252,.28)}.doc-card-top{display:flex;align-items:center;justify-content:space-between}.doc-card-top>span{font-size:1.55rem}.doc-card-top em{font-style:normal;font-size:.75rem;background:var(--surface-2,#eef5f8);padding:5px 8px;border-radius:999px}.document-library-card h3{margin:13px 0 5px}.document-library-card p{margin:0;color:var(--muted,#6d7e90);min-height:22px}.doc-card-meta{display:flex;justify-content:space-between;gap:10px;margin-top:14px;font-size:.86rem}.doc-deadline{display:block;margin-top:9px;padding-top:9px;border-top:1px solid var(--line,#dfe8ef);color:#b45b00}.document-preview{text-align:center}.document-preview img{max-width:100%;max-height:74vh;border-radius:12px}.document-pdf-note{display:flex;align-items:center;gap:16px}.document-pdf-note>span{font-size:2.2rem}.document-pdf-note div{flex:1}.document-pdf-note p{margin:3px 0 0;color:var(--muted,#6d7e90)}.document-view-actions{display:flex;gap:8px;flex-wrap:wrap}.danger-zone{border-color:rgba(200,50,50,.18)}.doc-camera-stage{position:relative;background:#10151b;border-radius:20px;overflow:hidden;min-height:360px}.doc-camera-stage video{display:block;width:100%;height:min(68vh,650px);object-fit:cover}.doc-camera-message{position:absolute;inset:0;display:grid;place-items:center;text-align:center;padding:25px;background:rgba(0,0,0,.45);color:#fff}.doc-guide{position:absolute;inset:8% 7% 16%;border:2px solid rgba(255,255,255,.78);border-radius:10px;pointer-events:none}.doc-shutter{position:absolute;left:50%;bottom:20px;transform:translateX(-50%);width:70px;height:70px;border-radius:50%;border:6px solid rgba(255,255,255,.9);background:rgba(255,255,255,.2)}.doc-shutter span{display:block;width:47px;height:47px;margin:auto;border-radius:50%;background:#fff}.scan-pages{display:flex;gap:8px;overflow-x:auto;margin-top:10px}.scan-pages img{width:92px;height:125px;object-fit:cover;border-radius:9px;border:1px solid var(--line,#dfe8ef)}.scan-controls{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.vault-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.vault-card{padding:20px;border-radius:18px;border:1px solid rgba(109,94,252,.24);background:var(--surface,#fff)}.vault-icon{font-size:2rem}.vault-card h3{margin:10px 0 4px}.vault-card p{color:var(--muted,#6d7e90)}.vault-actions{display:flex;gap:7px;flex-wrap:wrap}.empty-state{padding:25px;text-align:center;color:var(--muted,#6d7e90)}
@media(max-width:900px){.admin-action-grid,.document-library-grid,.vault-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.admin-action-grid{grid-template-columns:1fr 1fr;gap:9px}.admin-action-card{min-height:145px;padding:15px}.admin-action-card>span{font-size:1.7rem}.admin-stat-grid{grid-template-columns:1fr 1fr}.document-library-grid,.vault-grid{grid-template-columns:1fr}.document-search-form{display:grid;grid-template-columns:1fr}.doc-camera-stage{min-height:320px}.document-pdf-note{align-items:flex-start;flex-wrap:wrap}.mobile-home-actions{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:420px){.admin-action-grid{grid-template-columns:1fr}.admin-stat-grid{grid-template-columns:1fr}.mobile-home-actions{grid-template-columns:repeat(3,minmax(0,1fr))}}


/* Milo branding v6 — donkere Milo-logo overal */
.brand-logo,
.milo-avatar img,
.login-logo img,
.milo-logo,
img[src*="milo-logo-dark.png"]{
  background:transparent !important;
  box-shadow:none !important;
}
.brand-logo{
  object-fit:cover !important;
  padding:0 !important;
}
.milo-avatar img{
  object-fit:cover !important;
}


/* Milo Budgethulp 2.0 */
.budget-coach-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:4px 0 16px}
.budget-coach-kpi{padding:16px;border:1px solid var(--line);border-radius:15px;background:var(--surface-2);display:flex;flex-direction:column;gap:4px}
.budget-coach-kpi.primary{border-color:rgba(25,196,201,.35);background:rgba(25,196,201,.08)}
.budget-coach-kpi>span{font-size:.76rem;font-weight:800;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.budget-coach-kpi>b{font-size:1.55rem;color:var(--text)}.budget-coach-kpi.primary>b{color:#5ee7e7}
.budget-coach-kpi small{color:var(--muted);line-height:1.35}
.budget-coach-message{margin-top:12px}
.budget-follow-grid-v2 .budget-follow-card{display:flex;flex-direction:column}
.budget-follow-top>div{display:flex;flex-direction:column;gap:2px}.budget-follow-top>div small{color:var(--muted);font-weight:500}
.budget-follow-numbers{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:4px 0 10px}
.budget-follow-numbers>span{padding:8px;border-radius:9px;background:rgba(255,255,255,.035);display:flex;flex-direction:column}
.budget-follow-numbers b{font-size:.9rem}.budget-follow-numbers small{font-size:.68rem;color:var(--muted)}
.budget-follow-card p{margin:0;color:var(--muted);font-size:.82rem;line-height:1.4}
.budget-projection-warning{margin-top:10px;padding:9px 10px;border-radius:9px;background:rgba(223,92,92,.12);color:#ffb6b6;font-size:.78rem}
.milo-budget-coach-dashboard{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:14px 0 4px;padding:15px 17px;border-radius:15px;border:1px solid rgba(25,196,201,.25);background:rgba(25,196,201,.07);text-decoration:none;color:inherit}
.milo-budget-coach-dashboard>div{display:flex;flex-direction:column;gap:3px}.milo-budget-coach-dashboard strong{font-size:1rem;color:var(--text)}.milo-budget-coach-dashboard small{color:var(--muted)}
.milo-budget-coach-dashboard.warn{border-color:rgba(230,163,41,.35);background:rgba(230,163,41,.08)}
.milo-budget-coach-dashboard.danger{border-color:rgba(223,92,92,.4);background:rgba(223,92,92,.09)}
.milo-budget-coach-arrow{font-size:2rem;line-height:1;color:var(--muted)}
@media(max-width:760px){
 .budget-coach-kpis{grid-template-columns:1fr}
 .budget-follow-numbers{grid-template-columns:repeat(3,1fr)}
 .milo-budget-coach-dashboard{align-items:flex-start}
}


/* Milo Aflosplan v1 */
.debt-page-head,.debt-plan-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px}
.debt-arrangement-label{display:block;color:#f0c66d;margin-top:3px}
.check-label{display:flex;align-items:center;gap:9px;font-weight:750;min-height:42px}
.check-label input{width:18px;height:18px}
.debt-plan-settings{display:grid;grid-template-columns:minmax(170px,1fr) minmax(170px,1fr) auto;gap:14px;align-items:end}
.debt-plan-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.debt-plan-kpis .card{display:flex;flex-direction:column;gap:4px}
.debt-plan-kpis span{color:var(--muted);font-size:.78rem;font-weight:800;text-transform:uppercase}
.debt-plan-kpis b{font-size:1.45rem}.debt-plan-kpis small{color:var(--muted)}
.debt-rule-list{display:grid;gap:9px}
.debt-rule-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 0;border-bottom:1px solid var(--line)}
.debt-rule-row:last-child{border-bottom:0}.debt-rule-row>div{display:flex;flex-direction:column;gap:4px}.debt-rule-row>div:last-child{align-items:flex-end}
.debt-rule-row small{color:var(--muted)}
.debt-plan-periods{display:grid;gap:13px}
.debt-plan-period{border:1px solid var(--line);border-radius:15px;padding:15px;background:var(--surface-2)}
.debt-plan-period-head,.debt-plan-payment{display:flex;align-items:center;justify-content:space-between;gap:16px}
.debt-plan-period-head{padding-bottom:11px;border-bottom:1px solid var(--line)}
.debt-plan-period-head>div,.debt-plan-payment>div{display:flex;flex-direction:column;gap:2px}
.debt-plan-period-head small,.debt-plan-payment small{color:var(--muted)}
.debt-plan-period-head strong{font-size:1.1rem;color:#5ee7e7}
.debt-plan-payment{padding:11px 0;border-bottom:1px solid rgba(109,126,144,.14)}
.debt-plan-payment:last-child{border-bottom:0;padding-bottom:0}.debt-plan-payment>div:last-child{align-items:flex-end}
@media(max-width:760px){
 .debt-page-head,.debt-plan-head{align-items:stretch;flex-direction:column}
 .debt-page-head .btn,.debt-plan-head .btn{width:100%;justify-content:center}
 .debt-plan-settings,.debt-plan-kpis{grid-template-columns:1fr}
 .debt-rule-row{align-items:flex-start;flex-direction:column}.debt-rule-row>div:last-child{align-items:flex-start}
 .debt-plan-period-head,.debt-plan-payment{align-items:flex-start}
}

/* Milo Afloscapaciteit 2.0 */
.debt-capacity-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-bottom:12px}
.debt-capacity-grid>div{display:flex;flex-direction:column;gap:3px;padding:12px;border:1px solid var(--line);border-radius:11px;background:var(--surface-2)}
.debt-capacity-grid span{font-size:.75rem;color:var(--muted);font-weight:750}.debt-capacity-grid b{font-size:.95rem}
@media(max-width:760px){.debt-capacity-grid{grid-template-columns:1fr 1fr}}
