/* ============================================================
   CGT Monitor — VAS-dagboek
   Designsysteem overgenomen van de CGT Analyse Tool: Open Sans,
   CGT-blauw, zachtgroene achtergrond, hairline-kaarten met
   gelaagde schaduw, radius 10/7.
   ============================================================ */
:root{
  --cgt-blue:#4A6E8A;          /* accent voor tekst en iconen */
  --brand:#4A6E8A;             /* vlakken: kopbalk en knoppen, in beide thema's */
  --cgt-blue-dk:#3C5A73;
  --cgt-green:#C5DDB8;
  --bg:#F4F7F2;
  --surface:#FFFFFF;
  --border:#CBD5E1;
  --txt:#0F172A;
  --muted:#64748B;
  --danger:#DC2626;
  --node-bg:#E8F0E4;
  --node-border:#B2CCAA;
  --blue-bg:#EFF6FF;

  /* schaalkleuren, uit het kleurenpalet van de analyse-tool */
  --sc-laag:#C0653F;
  --sc-mid:#9C8552;
  --sc-hoog:#64885A;

  --r:10px; --r-sm:7px; --r-lg:14px;
  --hairline:rgba(29,53,87,.08);
  --sh:0 1px 2px rgba(15,23,42,.05), 0 2px 8px rgba(29,53,87,.06);
  --sh-md:0 2px 4px rgba(15,23,42,.05), 0 12px 28px -8px rgba(29,53,87,.16);
  --sh-lift:0 2px 4px rgba(15,23,42,.06), 0 10px 22px -6px rgba(29,53,87,.20);

  --hdr-h:56px;
  --tab-h:60px;
  --ease:cubic-bezier(.22,.61,.36,1);
  --font:'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --safe-b:env(safe-area-inset-bottom, 0px);
  --safe-t:env(safe-area-inset-top, 0px);
}

@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#131A1E; --surface:#1B2429; --border:#33424B; --txt:#E7EDF0; --muted:#94A6B0;
    --hairline:rgba(255,255,255,.08); --blue-bg:#1E2C38; --node-bg:#22302A; --node-border:#3D5244;
    --cgt-blue:#7FA6C2; --brand:#3F607A; --cgt-blue-dk:#25333D;
    --sh:0 1px 2px rgba(0,0,0,.4);
    --sh-md:0 2px 4px rgba(0,0,0,.4), 0 12px 28px -8px rgba(0,0,0,.7);
    --sh-lift:0 2px 4px rgba(0,0,0,.5), 0 10px 22px -6px rgba(0,0,0,.8);
  }
}
:root[data-theme="dark"]{
  --bg:#131A1E; --surface:#1B2429; --border:#33424B; --txt:#E7EDF0; --muted:#94A6B0;
  --hairline:rgba(255,255,255,.08); --blue-bg:#1E2C38; --node-bg:#22302A; --node-border:#3D5244;
  --cgt-blue:#7FA6C2; --brand:#3F607A; --cgt-blue-dk:#25333D;
  --sh:0 1px 2px rgba(0,0,0,.4);
  --sh-md:0 2px 4px rgba(0,0,0,.4), 0 12px 28px -8px rgba(0,0,0,.7);
  --sh-lift:0 2px 4px rgba(0,0,0,.5), 0 10px 22px -6px rgba(0,0,0,.8);
}

*, *::before, *::after{box-sizing:border-box; margin:0; padding:0; -webkit-tap-highlight-color:transparent}
html,body{height:100%}
body{
  background:var(--bg); color:var(--txt); font-family:var(--font); font-size:15px; line-height:1.5;
  -webkit-text-size-adjust:100%; -webkit-font-smoothing:antialiased; overscroll-behavior-y:none;
}
button,input,textarea,select{font:inherit; color:inherit}
button{border:0; background:none; cursor:pointer}
ul{list-style:none}
a{color:var(--cgt-blue)}
:focus-visible{outline:2px solid var(--cgt-blue); outline-offset:2px; border-radius:4px}

/* ============================================================
   App shell + blauwe balk
   ============================================================ */
/* Vaste hoogte, zodat het schermgebied zelf scrollt: de kopbalk blijft staan en
   een nieuw scherm begint altijd bovenaan. */
.app{max-width:760px; margin:0 auto; height:100dvh; display:flex; flex-direction:column}
.app-header{
  position:sticky; top:0; z-index:100; background:var(--brand);
  padding:calc(var(--safe-t) + 12px) 14px 12px; display:flex; align-items:center; gap:8px;
  box-shadow:0 1px 3px rgba(0,0,0,.10), 0 1px 2px rgba(0,0,0,.06);
  min-height:calc(var(--hdr-h) + var(--safe-t));
}
.app-header h1{
  font-size:17px; font-weight:700; flex:1; color:#fff; line-height:1.25;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.app-header h1:empty::before{content:'\00A0'}
.back-btn{font-size:28px; line-height:1; color:#fff; padding:2px 6px 2px 0}
#hdr-logo{width:28px; height:32px; object-fit:contain; flex-shrink:0}
.hdr-act{display:flex; align-items:center; gap:4px}
.hdr-btn{
  width:34px; height:34px; border-radius:50%; display:grid; place-items:center; color:#fff;
  transition:background .15s;
}
.hdr-btn:active{background:rgba(255,255,255,.18)}

.screen{
  flex:1; padding:16px 16px calc(var(--tab-h) + var(--safe-b) + 26px);
  overflow-y:auto; -webkit-overflow-scrolling:touch; overscroll-behavior-y:contain;
}
.page-lead{font-size:13.5px; color:var(--muted); margin:-4px 0 14px}

/* ============================================================
   Knoppen
   ============================================================ */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:7px; width:100%;
  min-height:44px; padding:10px 16px; border-radius:var(--r-sm); font-size:15px; font-weight:600;
  transition:filter .12s, transform .15s, box-shadow .15s;
}
@media (hover:hover){ .btn:hover{transform:translateY(-1px); box-shadow:var(--sh-lift)} }
.btn:active{filter:brightness(.92); transform:none}
.btn-primary{background:var(--brand); color:#fff}
.btn-ghost{background:var(--surface); border:1px solid var(--border); color:var(--txt); box-shadow:0 1px 2px rgba(15,23,42,.05)}
.btn-quiet{background:var(--surface); border:1px solid var(--border); color:var(--muted); font-weight:600}
.btn-danger{background:var(--surface); border:1px solid var(--danger); color:var(--danger)}
.btn[disabled]{opacity:.45; pointer-events:none}
a.btn{text-decoration:none}
.btn-row{display:flex; gap:8px; margin-top:12px}
.btn-row .btn{width:auto; flex:1}

.iconbtn{
  width:38px; height:38px; border-radius:50%; display:grid; place-items:center; flex:none;
  background:var(--surface); border:1px solid var(--border); color:var(--muted); box-shadow:var(--sh);
  transition:transform .15s;
}
.iconbtn:active{transform:scale(.94)}
.iconbtn.ghost{background:transparent; border-color:transparent; box-shadow:none; color:#fff}

/* ============================================================
   Kaarten, secties, lijsten
   ============================================================ */
.card{
  background:var(--surface); border:1px solid var(--hairline); border-radius:var(--r);
  box-shadow:var(--sh); padding:14px;
}
.card + .card{margin-top:12px}
.section-title{
  font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:var(--muted);
  margin:22px 2px 8px; display:flex; justify-content:space-between; align-items:center; gap:10px;
}
.section-title button{
  font-size:12px; font-weight:700; letter-spacing:0; text-transform:none; color:var(--cgt-blue);
}

.rows, .list{
  background:var(--surface); border:1px solid var(--hairline); border-radius:var(--r);
  box-shadow:var(--sh); overflow:hidden;
}
.row, .list > button, .list > .li{
  display:flex; align-items:center; gap:12px; width:100%; text-align:left; padding:13px 14px;
  border-bottom:1px solid var(--border); transition:background .12s;
}
.rows > *:last-child, .list > *:last-child{border-bottom:0}
.row:active, .list > button:active{background:var(--bg)}
.row-main, .list .li-main{flex:1; min-width:0}
.row-title{
  font-weight:600; font-size:15px; line-height:1.3; overflow:hidden;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
}
.row-sub, .list .li-sub{font-size:13px; color:var(--muted); margin-top:2px; display:flex; align-items:center; gap:7px; flex-wrap:wrap}
.list .li-sub{display:block}
.list .li-stack{flex-direction:column; align-items:stretch; gap:11px}
.list .li-head{display:flex; align-items:center; gap:12px}
.list .ic{color:var(--muted); flex:none; display:grid; place-items:center}
.row-score{font-size:18px; font-weight:700; color:var(--c,var(--txt)); min-width:40px; text-align:right; font-variant-numeric:tabular-nums}
.row-spark{width:64px; height:30px; flex:none}
.row-arrow{color:var(--muted); flex:none; display:grid; place-items:center}
.minibar{height:5px; border-radius:99px; background:var(--border); overflow:hidden; margin-top:7px}
.minibar i{display:block; height:100%; border-radius:99px; background:var(--c,var(--cgt-blue))}

.tag{
  font-size:11px; font-weight:700; letter-spacing:.03em; padding:2px 9px; border-radius:99px;
  background:var(--bg); color:var(--muted); border:1px solid var(--hairline);
}
.tag.doel{background:var(--blue-bg); color:var(--cgt-blue); border-color:transparent}
.pill{
  display:inline-flex; align-items:center; gap:5px; padding:3px 10px; border-radius:99px;
  font-size:12px; font-weight:600; background:var(--bg); color:var(--muted); border:1px solid var(--hairline);
}
.pill.up{background:var(--node-bg); color:#436038; border-color:transparent}
.pill.down{background:#F7ECE7; color:#A8482A; border-color:transparent}
:root[data-theme="dark"] .pill.up, :root[data-theme="dark"] .pill.down{background:rgba(255,255,255,.07); color:var(--txt)}

/* ============================================================
   Startscherm: totaalscore en statistieken
   ============================================================ */
.hero{
  background:var(--surface); border:1px solid var(--hairline); border-radius:var(--r);
  box-shadow:var(--sh); padding:16px 14px 14px;
}
.hero-label{font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:var(--muted)}
.hero-top{display:flex; justify-content:space-between; align-items:flex-start; gap:10px}
.hero-score{display:flex; align-items:baseline; gap:7px; margin-top:6px}
.hero-score .val{font-size:46px; font-weight:700; line-height:1; letter-spacing:-.02em; color:var(--hero-c,var(--txt)); font-variant-numeric:tabular-nums}
.hero-score .max{font-size:15px; color:var(--muted); font-weight:600}
.hero-meta{display:flex; align-items:center; gap:7px; margin-top:10px; flex-wrap:wrap}
.hero-spark{margin:12px -4px -2px; height:58px}
.hero-empty{font-size:14px; color:var(--muted); margin-top:6px; line-height:1.55}

.stats{display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:12px}
.stat{background:var(--surface); border:1px solid var(--hairline); border-radius:var(--r); box-shadow:var(--sh); padding:11px 10px}
.stat .k{font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--muted)}
.stat .v{font-size:19px; font-weight:700; margin-top:3px; font-variant-numeric:tabular-nums}

/* Seintjes */
.nudge{
  display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-bottom:14px;
  background:var(--surface); border:1px solid var(--hairline); border-left:3px solid var(--cgt-blue);
  border-radius:var(--r); padding:13px 14px; box-shadow:var(--sh);
}
.nudge-ic{width:38px; height:38px; border-radius:var(--r-sm); display:grid; place-items:center; flex:none; background:var(--blue-bg); color:var(--cgt-blue)}
.nudge-main{flex:1; min-width:150px}
.nudge-main strong{display:block; font-size:15px; font-weight:700}
.nudge-main p{font-size:13px; color:var(--muted); margin-top:2px; line-height:1.45}
.nudge-btns{display:flex; gap:8px; width:100%}
.nudge-btns .btn{flex:1; min-height:40px; font-size:14px}
.nudge.warm{border-left-color:var(--sc-mid)}
.nudge.warm .nudge-ic{background:#F2EEE3; color:#7C6838}
:root[data-theme="dark"] .nudge.warm .nudge-ic{background:rgba(255,255,255,.07); color:var(--sc-mid)}

/* ============================================================
   Tabbalk
   ============================================================ */
.tabbar{
  position:fixed; left:0; right:0; bottom:0; z-index:90; max-width:760px; margin:0 auto;
  height:calc(var(--tab-h) + var(--safe-b)); padding-bottom:var(--safe-b);
  display:flex; background:var(--surface); border-top:1px solid var(--border);
  box-shadow:0 -1px 3px rgba(15,23,42,.04);
}
.tab{
  flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
  color:var(--muted); font-size:11px; font-weight:600; transition:color .15s;
}
.tab[aria-current="page"]{color:var(--cgt-blue)}

/* ============================================================
   Formulieren
   ============================================================ */
.field{margin-bottom:13px}
.field label, label{display:block; font-size:14px; font-weight:600; margin-bottom:4px}
.field .hint, .hint{font-size:12px; color:var(--muted); font-weight:400; margin-top:5px; line-height:1.45}
input[type=text], input[type=date], input[type=time], textarea, select{
  width:100%; padding:9px 11px; border:1.5px solid var(--border); border-radius:var(--r-sm);
  font-size:15px; font-family:inherit; color:var(--txt); background:var(--surface);
  transition:border-color .14s; -webkit-appearance:none; appearance:none;
}
input:focus, textarea:focus, select:focus{outline:none; border-color:var(--cgt-blue)}
textarea{resize:vertical; min-height:72px; line-height:1.55}

.seg{display:flex; gap:6px; flex-wrap:wrap}
.seg button, .chip, .range button{
  padding:7px 13px; border-radius:99px; background:var(--surface); border:1px solid var(--border);
  font-size:13px; font-weight:600; color:var(--muted); transition:background .12s, color .12s, border-color .12s;
}
.seg button{flex:1; min-width:84px}
.seg button[aria-pressed="true"], .chip[aria-pressed="true"], .range button[aria-pressed="true"]{
  background:var(--brand); color:#fff; border-color:var(--brand);
}
.seg button:active, .chip:active, .range button:active{transform:scale(.96)}
.chips{display:flex; gap:7px; flex-wrap:wrap}
.range{display:flex; gap:6px; margin:2px 0 12px; flex-wrap:wrap}
.switch{
  width:48px; height:28px; border-radius:99px; background:var(--border); position:relative; flex:none;
  transition:background .2s var(--ease);
}
.switch i{
  position:absolute; top:2px; left:2px; width:24px; height:24px; border-radius:50%;
  background:#fff; box-shadow:0 1px 3px rgba(15,23,42,.3); transition:transform .2s var(--ease);
}
.switch[aria-checked="true"]{background:var(--brand)}
.switch[aria-checked="true"] i{transform:translateX(20px)}

.menu{display:flex; flex-direction:column}
.menu button{display:flex; align-items:center; gap:13px; padding:14px 2px; font-size:15px; font-weight:600; border-bottom:1px solid var(--border); text-align:left}
.menu button:last-child{border-bottom:0}
.menu button .ic{color:var(--muted); display:grid; place-items:center}
.menu button.danger, .list > button.danger{color:var(--danger)}
.menu button.danger .ic, .list > button.danger .ic{color:var(--danger)}

/* ============================================================
   VAS-schuif
   ============================================================ */
.vas{padding:6px 0 0; touch-action:none; user-select:none; -webkit-user-select:none}
.vas-rail{position:relative; height:44px; display:flex; align-items:center}
.vas-track{position:absolute; left:0; right:0; height:12px; border-radius:99px; background:var(--bg); border:1px solid var(--border); overflow:hidden}
.vas-track::after{content:""; position:absolute; inset:0; background:linear-gradient(90deg,var(--sc-laag),var(--sc-mid),var(--sc-hoog)); opacity:.16}
.vas-fill{position:absolute; left:0; top:0; bottom:0; border-radius:99px; background:var(--c)}
.vas-thumb{
  position:absolute; top:50%; width:30px; height:30px; margin:-15px 0 0 -15px; border-radius:50%;
  background:var(--surface); border:3px solid var(--c); box-shadow:var(--sh-md);
}
.vas.dragging .vas-thumb{box-shadow:var(--sh-lift)}
.vas-ticks{display:flex; justify-content:space-between; margin-top:6px; padding:0 1px}
.vas-ticks span{width:1px; height:5px; background:var(--border)}
.vas-nums{display:flex; justify-content:space-between; margin-top:3px; font-size:11px; color:var(--muted); font-variant-numeric:tabular-nums}
.vas-anchors{display:flex; gap:14px; margin-top:14px; font-size:12.5px; line-height:1.45; color:var(--muted)}
.vas-anchors > div{flex:1}
.vas-anchors .r{text-align:right}
.vas-anchors b{display:block; font-size:15px; color:var(--txt); font-weight:700; margin-bottom:2px; font-variant-numeric:tabular-nums}

/* ============================================================
   Meetflow
   ============================================================ */
.layer{position:fixed; inset:0; z-index:400; pointer-events:none}
.layer > *{pointer-events:auto}
.flow{position:fixed; inset:0; background:var(--bg); display:flex; flex-direction:column; animation:fadeIn .18s ease}
@keyframes fadeIn{from{opacity:0}}
.flow-head{
  background:var(--brand); padding:calc(var(--safe-t) + 12px) 14px 12px;
  display:flex; align-items:center; gap:12px; box-shadow:0 1px 3px rgba(0,0,0,.10);
  min-height:calc(var(--hdr-h) + var(--safe-t));
}
.flow-head > *{max-width:760px}
.flow-prog{flex:1; max-width:none}
.flow-prog .bar{height:4px; border-radius:99px; background:rgba(255,255,255,.28); overflow:hidden}
.flow-prog .bar i{display:block; height:100%; background:#fff; border-radius:99px; transition:width .3s var(--ease)}
.flow-prog .lbl{font-size:12px; color:rgba(255,255,255,.9); margin-top:5px; font-weight:600}
.flow-body{flex:1; overflow-y:auto; padding:18px 16px 8px; max-width:760px; margin:0 auto; width:100%}
.flow-foot{
  padding:10px 16px calc(var(--safe-b) + 14px); display:flex; gap:8px; max-width:760px; margin:0 auto; width:100%;
  background:linear-gradient(transparent, var(--bg) 40%);
}
.flow-foot .btn{flex:1}
.flow-foot .btn.narrow{flex:none; width:54px; padding:0}
.q-type{margin-bottom:10px}
.q-title{font-size:22px; font-weight:700; line-height:1.25}
.q-note{font-size:14.5px; color:var(--muted); margin-top:7px; line-height:1.5}
.q-card{background:var(--surface); border:1px solid var(--hairline); border-radius:var(--r); padding:16px 16px 18px; box-shadow:var(--sh-md); margin-top:18px}
.q-value{display:flex; align-items:baseline; justify-content:center; gap:5px; margin:14px 0 4px}
.q-value .v{font-size:60px; font-weight:700; line-height:1; letter-spacing:-.02em; color:var(--c); font-variant-numeric:tabular-nums}
.q-value .m{font-size:16px; color:var(--muted); font-weight:600}
.q-word{text-align:center; font-size:13.5px; color:var(--muted); font-weight:600; min-height:20px}
.skip{display:block; margin:16px auto 0; font-size:13.5px; color:var(--muted); font-weight:600; padding:8px 14px; text-align:center}
.review-total{text-align:center; padding:6px 0 16px}
.review-total .v{font-size:50px; font-weight:700; line-height:1; color:var(--c); font-variant-numeric:tabular-nums}
.review-total .k{font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); margin-top:7px}

/* ============================================================
   Welkomstuitleg
   ============================================================ */
.intro{background:var(--bg)}
.intro-top{display:flex; align-items:center; width:100%; max-width:760px; margin:0 auto; padding:calc(var(--safe-t) + 10px) 14px 0}
.intro-body{flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:10px 24px; max-width:760px; margin:0 auto; overflow-y:auto}
.intro-mark{width:92px; height:92px; border-radius:22px; display:grid; place-items:center; margin-bottom:22px; background:var(--surface); box-shadow:var(--sh-md); overflow:hidden}
.intro-mark img{width:92px; height:92px; display:block}
.intro-mark.soft{background:var(--blue-bg); color:var(--cgt-blue); box-shadow:none}
.intro-mark.soft svg{width:42px; height:42px}
.intro-title{font-size:22px; font-weight:700; line-height:1.25}
.intro-text{font-size:15px; color:var(--muted); margin-top:10px; line-height:1.6; max-width:34ch}
.intro-scale{width:100%; max-width:320px; margin-bottom:22px}
.intro-bar{height:12px; border-radius:99px; background:linear-gradient(90deg,var(--sc-laag),var(--sc-mid),var(--sc-hoog))}
.intro-ends{display:flex; justify-content:space-between; gap:16px; margin-top:9px; font-size:12.5px; color:var(--muted); line-height:1.45; text-align:left}
.intro-ends .r{text-align:right}
.intro-ends b{display:block; font-size:19px; font-weight:700; margin-bottom:2px}
.intro-dots{display:flex; gap:6px; justify-content:center; padding:4px 0 12px}
.intro-dots i{width:7px; height:7px; border-radius:50%; background:var(--border); transition:width .25s var(--ease), background .25s}
.intro-dots i.on{width:20px; border-radius:99px; background:var(--cgt-blue)}

/* ============================================================
   Bladen (sheets) en dialogen
   ============================================================ */
.scrim{position:fixed; inset:0; background:rgba(0,0,0,.5); animation:fadeIn .15s ease}
.sheet{
  position:fixed; left:0; right:0; bottom:0; z-index:2; background:var(--surface);
  border-radius:20px 20px 0 0; padding:0 16px calc(var(--safe-b) + 30px);
  max-height:88dvh; overflow-y:auto; max-width:760px; margin:0 auto;
  animation:sheetUp .2s ease;
}
@keyframes sheetUp{from{transform:translateY(50px); opacity:0}}
.sheet-kop{
  position:sticky; top:0; z-index:3; background:var(--surface);
  display:flex; align-items:center; justify-content:center;
  padding:14px 0 12px; margin:0 -16px 4px;
}
.grip{width:40px; height:4px; background:var(--border); border-radius:2px}
.sheet-close{
  position:absolute; right:10px; top:8px; width:36px; height:36px; border-radius:50%;
  display:grid; place-items:center; color:var(--muted); background:var(--bg);
}
.sheet-close:active{background:var(--border)}
.sheet h2{font-size:17px; font-weight:700; margin-bottom:4px}
.sheet .lead{font-size:13.5px; color:var(--muted); margin-bottom:16px; line-height:1.5}
.sheet .rows{box-shadow:none}

/* ============================================================
   Grafieken
   ============================================================ */
.chart-wrap{position:relative; margin:6px -2px 0}
.chart-wrap svg{display:block; width:100%; height:auto; overflow:visible}
.chart-tip{
  position:absolute; top:0; transform:translate(-50%,-6px); pointer-events:none;
  background:#1E293B; color:#fff; border-radius:var(--r-sm); padding:5px 9px; font-size:12px; font-weight:600;
  white-space:nowrap; box-shadow:var(--sh-md); opacity:0; transition:opacity .15s;
}
.chart-tip.on{opacity:1}

/* ============================================================
   Lege staat, uitleg, rapport
   ============================================================ */
.empty{text-align:center; padding:44px 20px; background:var(--surface); border:1px solid var(--hairline); border-radius:var(--r); box-shadow:var(--sh)}
.empty .ic{width:48px; height:48px; border-radius:var(--r); display:grid; place-items:center; margin:0 auto 12px; background:var(--blue-bg); color:var(--cgt-blue)}
.empty h3{font-size:17px; font-weight:700; margin-bottom:6px}
.empty p{font-size:14.5px; color:var(--muted); line-height:1.55}
.empty .btn{margin-top:18px}

.prose{font-size:14.5px; line-height:1.6; color:var(--txt)}
.prose h3{font-size:15px; font-weight:700; margin:16px 0 6px}
.prose p{margin:0 0 9px}
.prose ul{margin:0 0 9px}
.prose li{position:relative; padding-left:15px; margin-bottom:5px; color:var(--muted)}
.prose li::before{content:""; position:absolute; left:0; top:.62em; width:5px; height:5px; border-radius:50%; background:var(--cgt-blue)}
.anchor-card{display:flex; gap:10px; margin-top:12px}
.anchor-card > div{flex:1; background:var(--bg); border:1px solid var(--hairline); border-radius:var(--r-sm); padding:12px}
.anchor-card .n{font-size:22px; font-weight:700; line-height:1}
.anchor-card .t{font-size:12.5px; color:var(--muted); margin-top:5px; line-height:1.45}

.report{position:fixed; inset:0; background:var(--bg); overflow-y:auto; padding:calc(var(--safe-t) + 14px) 16px calc(var(--safe-b) + 24px); z-index:1}
.report-inner{max-width:760px; margin:0 auto}
.rep-table{width:100%; border-collapse:collapse; font-size:12.5px; margin-top:8px}
.rep-table th, .rep-table td{padding:6px; border-bottom:1px solid var(--border); text-align:right; font-variant-numeric:tabular-nums}
.rep-table th:first-child, .rep-table td:first-child{text-align:left}
.rep-table th{font-size:11px; color:var(--muted); font-weight:700; text-transform:uppercase; letter-spacing:.04em}
.rep-scroll{overflow-x:auto; -webkit-overflow-scrolling:touch}

/* ============================================================
   Melding bij een nieuwe versie
   ============================================================ */
.update-bar{
  position:fixed; left:12px; right:12px; bottom:calc(var(--tab-h) + var(--safe-b) + 12px);
  max-width:736px; margin:0 auto; z-index:450;
  display:flex; align-items:center; gap:12px;
  background:var(--brand); color:#fff; border-radius:var(--r);
  padding:11px 12px 11px 14px; box-shadow:var(--sh-md);
  animation:updateIn .25s var(--ease);
}
@keyframes updateIn{from{transform:translateY(14px); opacity:0}}
.update-txt{flex:1; min-width:0; line-height:1.35}
.update-txt strong{display:block; font-size:14.5px; font-weight:700}
.update-txt span{font-size:12.5px; color:rgba(255,255,255,.85)}
.update-bar .btn{
  width:auto; flex:none; min-height:38px; padding:8px 14px; font-size:14px;
  background:#fff; color:var(--brand);
}

/* ============================================================
   Toast
   ============================================================ */
.toast{
  position:fixed; left:50%; bottom:calc(var(--tab-h) + var(--safe-b) + 16px);
  transform:translateX(-50%) translateY(12px);
  background:#1E293B; color:#fff; padding:9px 20px; border-radius:100px;
  font-size:14px; font-weight:500; opacity:0; transition:opacity .18s, transform .18s;
  z-index:500; pointer-events:none; max-width:88vw; text-align:center;
}
.toast.on{opacity:1; transform:translateX(-50%) translateY(0)}

@media print{
  .tabbar, .flow-foot, .app-header, .no-print{display:none !important}
  body{background:#fff}
  .report{position:static; padding:0}
  .card, .list, .rows{box-shadow:none; border:1px solid #ddd; break-inside:avoid}
  .chart-wrap{break-inside:avoid}
}
@media (prefers-reduced-motion: reduce){
  *{animation-duration:.01ms !important; transition-duration:.01ms !important}
}
