@font-face {
  font-family: 'Familjen Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/familjen-grotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Familjen Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/familjen-grotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --zee-diep: #0F3B4C;
  --zee-midden: #2C6E85;
  --zee-donker: #1E5468;
  --zee-donker2: #1E4F63;
  --schuim: #BFE0E6;
  --schuimtekst: #9EC3CC;
  --schuimtekst2: #CFE6EA;
  --lucht: #E4EDEF;
  --zand: #E9E3D6;
  --zandkaart: #F4F0E7;
  --zandlijn: #CFC6B3;
  --zandlijn2: #D8D0BF;
  --inkt: #0F2E3A;
  --inkt-zacht: #4A5A5F;
  --helm: #56633D;
  --helm2: #5E6F44;
  --helm-licht: #DCE3CF;
  --boei: #E8833A;
  --rood: #C8402A;
  --rood-tekst: #A8321F;
  --licht: #EAF2F3;
  --nav-h: 72px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--zand); color: var(--inkt); }
body {
  font-family: 'Familjen Grotesk', system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
button, input, textarea, select { font-family: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
button:disabled { cursor: default; }
a { color: var(--zee-diep); }
:focus-visible { outline: 3px solid var(--boei); outline-offset: 2px; }
h1, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#app { max-width: 480px; margin: 0 auto; min-height: 100dvh; position: relative; background: var(--zand); }
.screen {
  min-height: calc(100dvh - var(--nav-h) - var(--safe-b));
  padding-bottom: calc(var(--nav-h) + var(--safe-b) + 16px);
  display: flex; flex-direction: column;
}
.screen > .page { flex-grow: 1; display: flex; flex-direction: column; min-height: calc(100dvh - var(--nav-h) - var(--safe-b)); }

/* Menubalk */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  max-width: 480px; margin: 0 auto;
  height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: var(--zandkaart); border-top: 1px solid var(--zandlijn);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
}
.nav a {
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--inkt-zacht); text-decoration: none;
  border-top: 3px solid transparent; margin-top: -1px;
}
.nav a.active { font-weight: 700; color: var(--zee-diep); border-top-color: var(--zee-diep); }

/* Zeekop met golvende overgang */
.hdr {
  position: relative; background: var(--zee-diep); color: var(--licht);
  padding: calc(26px + var(--safe-t)) 22px 56px; display: flex; flex-direction: column; gap: 8px;
}
.hdr.midden { background: var(--zee-midden); }
.hdr .kicker { font-size: 14px; color: var(--schuimtekst); }
.hdr.midden .kicker { color: var(--schuimtekst2); }
.hdr h1 { font-size: 32px; font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }
.hdr h1.groot { font-size: 34px; }
.hdr .lead { font-size: 15px; line-height: 1.4; color: var(--schuimtekst2); }
.hdr .wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 50px; display: block; }
.hdr .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hdr .terug {
  display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0 -8px -10px; padding: 0 10px;
  font-size: 14px; font-weight: 600; color: var(--schuimtekst); text-decoration: none; background: none; border: 0;
}

.main { flex-grow: 1; padding: 4px 22px 20px; display: flex; flex-direction: column; gap: 14px; }
.card { background: var(--zandkaart); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.card .titel { font-size: 15px; font-weight: 600; }
.card p { font-size: 14px; line-height: 1.45; color: #34474F; }
.voet { margin-top: auto; font-size: 13px; line-height: 1.45; color: var(--inkt-zacht); }

/* Knoppen */
.btn {
  min-height: 48px; border-radius: 12px; font-size: 16px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; text-decoration: none; padding: 0 12px;
}
.btn-primair { border: none; background: var(--zee-diep); color: var(--licht); font-weight: 700; }
.btn-rand { border: 1.5px solid var(--zee-diep); background: transparent; color: var(--zee-diep); }
.btn-groot { min-height: 56px; border-radius: 14px; font-size: 17px; }
.btn-link { border: none; background: transparent; color: var(--zee-diep); font-size: 15px; font-weight: 600; text-decoration: underline; min-height: 46px; }
.chip {
  min-height: 44px; border-radius: 12px; border: 1px solid var(--zandlijn); background: var(--zandkaart);
  color: var(--inkt); font-size: 15px; padding: 0 6px;
}
.chip[aria-pressed="true"] { border: 2px solid var(--zee-diep); background: #DCE9EC; font-weight: 600; }

.tekstveld {
  width: 100%; font-size: 16px; line-height: 1.4; border: 1px solid var(--zandlijn); border-radius: 12px;
  padding: 12px; background: var(--zandkaart); color: var(--inkt); resize: none;
}

/* Melding onderin */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 14px); transform: translate(-50%, 20px);
  max-width: min(440px, calc(100% - 32px)); width: max-content;
  background: var(--inkt); color: var(--licht); font-size: 15px; line-height: 1.35;
  padding: 12px 16px; border-radius: 12px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 20;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Vandaag ---------- */
.vd { position: relative; flex-grow: 1; display: flex; flex-direction: column; background: var(--zand); }
.vd-zee { position: relative; height: calc(424px + var(--safe-t)); overflow: hidden; flex-shrink: 0; }
.vd-zee .lucht { position: absolute; left: 0; right: 0; top: 0; height: calc(392px + var(--safe-t)); background: var(--lucht); }
.vd-zee svg.water { position: absolute; left: 0; top: var(--safe-t); width: 100%; height: 424px; }
.vd-zee .laag { position: absolute; left: 0; right: 0; top: var(--safe-t); height: 424px; }
.vd-top { position: absolute; left: 12px; right: 22px; top: 10px; display: flex; justify-content: space-between; align-items: center; }
.vd-dag { display: flex; align-items: center; gap: 2px; }
.vd-dag button { width: 44px; height: 44px; border-radius: 10px; border: none; background: transparent; color: var(--inkt); font-size: 22px; }
.vd-dag button:disabled { opacity: 0.3; }
.vd-datum { position: relative; min-width: 112px; min-height: 44px; display: flex; align-items: center; justify-content: center; }
.vd-datum span { font-size: 15px; font-weight: 600; text-align: center; text-decoration: underline dotted #9AA9AD; text-underline-offset: 4px; }
.vd-datum input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; padding: 0; cursor: pointer; }
.vd-terug { border: none; background: none; min-height: 44px; padding: 0; font-weight: 600; color: var(--zee-diep); }
.vd-fase { font-size: 13px; color: var(--inkt-zacht); text-align: right; }
.vd-stand { position: absolute; left: 22px; top: 60px; width: 210px; display: flex; flex-direction: column; gap: 4px; }
.vd-stand .lbl { font-size: 15px; font-weight: 600; }
.vd-stand .getal { font-size: 124px; font-weight: 700; line-height: 0.84; letter-spacing: -0.06em; }
.vd-stand .sub { font-size: 15px; color: var(--inkt-zacht); }
.vd-knoppen { position: absolute; left: 22px; top: 220px; display: flex; gap: 10px; }
.vd-knoppen button { width: 64px; height: 56px; border-radius: 14px; font-size: 26px; }
.vd-min { border: 1.5px solid var(--inkt); background: rgba(228,237,239,0.9); color: var(--inkt); }
.vd-plus { border: none; background: var(--inkt); color: var(--licht); }
.vd-schaal { position: absolute; right: 22px; top: 60px; width: 81px; height: 320px; }
.vd-msg { position: absolute; left: 22px; top: 284px; width: 200px; display: flex; flex-direction: column; gap: 3px; }
.vd-msg .t { font-size: 15px; font-weight: 700; }
.vd-msg .x { font-size: 14px; line-height: 1.35; }
.vd-onder { flex-grow: 1; padding: 0 22px 12px; display: flex; flex-direction: column; gap: 8px; }
.vd-plan {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: var(--zandkaart); border-radius: 12px; padding: 0 4px 0 12px; min-height: 44px; font-size: 14px;
}
.vd-plan a { font-weight: 600; min-height: 44px; display: flex; align-items: center; padding: 0 8px; }
.vd-kop { display: flex; justify-content: space-between; align-items: baseline; }
.vd-kop .a { font-size: 15px; font-weight: 600; }
.vd-kop .b { font-size: 13px; color: var(--inkt-zacht); }
.vd-mood { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 3px; }
.vd-mood button { height: 44px; border-radius: 8px; border: none; padding: 0; font-size: 14px; font-weight: 600; }
.vd-extra summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 44px;
  font-size: 15px; font-weight: 600; cursor: pointer;
}
.vd-extra summary::-webkit-details-marker { display: none; }
.vd-extra summary .b { font-size: 13px; font-weight: 400; color: var(--inkt-zacht); }
.vd-extra summary .pijl { display: inline-block; margin-left: 6px; transition: transform .15s; }
.vd-extra[open] summary .pijl { transform: rotate(90deg); }
.vd-extra .inhoud { display: flex; flex-direction: column; gap: 10px; padding: 2px 0 6px; }
.vd-soort { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.vd-teller { display: flex; min-height: 44px; border-radius: 12px; border: 1px solid var(--zandlijn); background: var(--zandkaart); overflow: hidden; }
.vd-teller.aan { border: 2px solid var(--zee-diep); background: #DCE9EC; }
.vd-teller button { border: none; background: none; color: var(--inkt); font-size: 15px; padding: 0 4px; }
.vd-teller button:first-child { flex-grow: 1; }
.vd-teller b { font-weight: 700; margin-left: 2px; }
.vd-teller .min { width: 38px; flex-shrink: 0; font-size: 18px; border-left: 1px solid #B9CCD3; }
.vd-pop { position: absolute; width: 40px; height: 32px; animation: dobber 3.4s ease-in-out infinite; }
.vd-pop > div { transform-origin: 20px 27px; }
@keyframes dobber { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.5px); } }
@media (prefers-reduced-motion: reduce) { .vd-pop { animation: none; } }
.vd-reden { margin: 2px 0 0; font-size: 13px; line-height: 1.35; color: var(--inkt-zacht); font-style: italic; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.vd-vraag { gap: 8px; margin-top: 4px; }
.vd-vraag .k { font-size: 12px; color: var(--inkt-zacht); }
.vd-vraag .v { font-size: 16px; font-weight: 600; line-height: 1.3; }
.vd-tijd { display: flex; justify-content: space-between; align-items: center; font-size: 15px; gap: 10px; }
.vd-tijd input {
  font-size: 16px; border: 1px solid var(--zandlijn); border-radius: 8px; padding: 8px 10px; background: var(--zandkaart); min-height: 44px;
}
.vd-week .kop { display: flex; justify-content: space-between; font-size: 14px; }
.vd-week .kop .a { font-weight: 600; }
.vd-week .kop .b { color: var(--inkt-zacht); }
.vd-balk { position: relative; height: 12px; border-radius: 6px; background: var(--zandlijn2); overflow: hidden; display: flex; margin-top: 6px; }
.vd-balk div { height: 12px; }
.vd-acties { margin-top: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.vd-acties button { height: 50px; border-radius: 14px; font-size: 16px; }
.vd-droog { border: 1.5px solid var(--helm2); background: transparent; color: #2F3A1F; font-weight: 600; }
.vd-droog[aria-pressed="true"] { background: var(--helm-licht); }
.vd-sluit { border: none; background: var(--zee-diep); color: var(--licht); font-weight: 700; }

/* ---------- Week ---------- */
.wk-getij { width: 100%; height: auto; display: block; }
.wk-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--schuimtekst); }
.wk-labels .nu { color: var(--licht); font-weight: 700; }
.wk-kop { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.wk-kop .a { font-size: 16px; font-weight: 600; }
.wk-kop .b { font-size: 13px; color: var(--inkt-zacht); text-align: right; }
.wk-staven { width: 100%; height: auto; display: block; }
.wk-wkn { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); font-size: 12px; color: var(--inkt-zacht); text-align: center; margin-top: -6px; }
.wk-wkn .nu { font-weight: 700; color: var(--inkt); }
.wk-tegels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.wk-tegels div { background: var(--zandkaart); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; }
.wk-tegels .n { font-size: 26px; font-weight: 700; }
.wk-tegels .l { font-size: 12px; color: var(--inkt-zacht); }

/* ---------- Vooruit ---------- */
.vo-week { display: flex; flex-direction: column; gap: 6px; }
.vo-week .kop { display: flex; justify-content: space-between; font-size: 14px; }
.vo-week .kop .a { font-weight: 600; }
.vo-week .kop .b { font-weight: 600; }
.vo-dagen { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.vo-dagen button {
  height: 70px; border-radius: 10px; padding: 4px 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
}
.vo-dagen .wd { font-size: 11px; }
.vo-dagen .n { font-size: 17px; font-weight: 700; }
.vo-dagen .tag { font-size: 10px; font-weight: 600; min-height: 12px; }
.vo-sel .kop { display: flex; justify-content: space-between; align-items: baseline; }
.vo-sel .kop .a { font-size: 16px; font-weight: 700; }
.vo-sel .kop .b { font-size: 13px; color: var(--inkt-zacht); }
.vo-max { display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; gap: 10px; align-items: center; }
.vo-max button { height: 48px; border-radius: 12px; font-size: 22px; }
.vo-max .min { border: 1px solid var(--zandlijn); background: var(--zand); color: var(--inkt); }
.vo-max .plus { border: none; background: var(--zee-diep); color: var(--licht); }
.vo-max .w { display: flex; align-items: baseline; justify-content: center; gap: 6px; }
.vo-max .w b { font-size: 36px; font-weight: 700; line-height: 1; }
.vo-max .w span { font-size: 14px; color: var(--inkt-zacht); }
.vo-hint { font-size: 13px; line-height: 1.4; color: var(--inkt-zacht); }

/* ---------- Moment ---------- */
.mo-max { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.mo-max button { height: 52px; border-radius: 12px; border: 1px solid var(--zandlijn); background: var(--zandkaart); color: var(--inkt); font-size: 20px; }
.mo-max button.nul { border-color: var(--helm2); background: var(--helm-licht); color: #2F3A1F; font-weight: 600; }
.mo-max button[aria-pressed="true"] { border: 2px solid var(--zee-diep); background: #DCE9EC; color: var(--inkt); font-weight: 700; }
.mo-max button.nul[aria-pressed="true"] { border-color: var(--helm); background: var(--helm-licht); color: #2F3A1F; }
.mo-als p { font-size: 15px; line-height: 1.4; color: var(--inkt); }
.mo-als p span { color: #6A6250; }
.mo-reden { background: #DCE9EC; border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.mo-reden .l { font-size: 13px; color: #34474F; }
.mo-reden .r { font-size: 17px; font-weight: 600; line-height: 1.3; }
.kaartkop { display: flex; justify-content: space-between; align-items: center; }
.kaartkop button { border: none; background: none; color: var(--zee-diep); font-size: 14px; font-weight: 600; text-decoration: underline; min-height: 44px; padding: 0 0 0 12px; }

/* ---------- Uitglijder ---------- */
.ug-kal .kop { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.ug-maand { display: flex; align-items: center; gap: 2px; margin-left: -10px; }
.ug-maand button { width: 40px; height: 44px; border: none; background: transparent; color: var(--inkt); font-size: 20px; }
.ug-maand button:disabled { opacity: 0.3; }
.ug-maand span { font-size: 15px; font-weight: 600; min-width: 64px; text-align: center; white-space: nowrap; }
.ug-tel { font-size: 14px; text-align: right; white-space: nowrap; letter-spacing: -0.01em; }
.ug-tel strong { color: var(--helm); }
.ug-dagen { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.ug-dagen div {
  height: 28px; border-radius: 6px; border: 1px solid; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600;
}
.ug-triggers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ug-label { font-size: 15px; font-weight: 600; }

/* ---------- Regels ---------- */
.rg { flex-grow: 1; display: flex; flex-direction: column; background: var(--zand); }
.rg-zee { position: relative; flex-grow: 1; background: var(--zee-diep); color: var(--licht); padding: calc(18px + var(--safe-t)) 26px 110px; }
.rg-zee .golf { position: absolute; left: 0; bottom: -1px; width: 100%; height: 96px; display: block; }
.rg-kop { position: relative; display: flex; justify-content: space-between; align-items: center; margin: 0 -10px 4px 0; }
.rg-kop > span { font-size: 15px; font-weight: 600; color: var(--schuimtekst); }
.rg-kop nav { display: flex; }
.rg-kop nav a { min-height: 44px; display: flex; align-items: center; padding: 0 10px; font-size: 15px; font-weight: 600; color: var(--schuimtekst); text-decoration: none; }
.rg-h { position: relative; margin: 0 0 14px; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.rg-zes { margin-top: 30px; padding-top: 22px; border-top: 1px solid #2C6E85; }
.rg-redenlijst { position: relative; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.rg-redenlijst li { font-size: 19px; font-weight: 600; line-height: 1.25; padding-left: 16px; position: relative; }
.rg-redenlijst li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 7px; height: 7px; border-radius: 50%; background: var(--schuim); }
.rg-leeg { position: relative; font-size: 16px; color: var(--schuimtekst2); }
.rg-links { position: relative; display: flex; gap: 18px; margin-top: 6px; }
.rg-links button { border: none; background: none; padding: 0; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--schuim); text-decoration: underline; text-underline-offset: 3px; }
.rg-schreef { position: relative; display: flex; flex-direction: column; gap: 14px; margin: 4px 0 8px; }
.rg-schreef .item { border-left: 2px solid #2C6E85; padding-left: 12px; display: flex; flex-direction: column; gap: 4px; }
.rg-schreef .k { font-size: 12px; color: var(--schuimtekst); line-height: 1.35; }
.rg-schreef .zin { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 15px; line-height: 1.35; }
.rg-schreef .zin button { flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; border: 1px solid #2C6E85; background: transparent; color: var(--schuim); font-size: 18px; }
.rg-schreef .zin button:disabled { border-color: transparent; color: #A9C77E; }
.rg-edit { position: relative; margin: 0 0 10px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.rg-edit li { display: flex; align-items: center; gap: 6px; background: #164A5E; border-radius: 12px; padding: 4px; }
.rg-edit li.sleept { position: relative; z-index: 2; box-shadow: 0 6px 18px rgba(0,0,0,0.3); background: #1E5468; }
.rg-edit .greep { width: 40px; height: 44px; border: none; background: none; color: var(--schuimtekst); touch-action: none; cursor: grab; flex-shrink: 0; }
.rg-edit .weg { width: 40px; height: 44px; border: none; background: none; color: var(--schuimtekst); font-size: 22px; flex-shrink: 0; }
.rg-invoer { flex-grow: 1; min-width: 0; font-size: 16px; line-height: 1.3; border: none; border-radius: 8px; padding: 10px; background: var(--zee-diep); color: var(--licht); resize: none; overflow: hidden; display: block; }
.rg-invoer::placeholder { color: var(--schuimtekst); }
.rg-zee .rg-knoppen { position: relative; }
.rg-licht { border: none; background: var(--licht); color: var(--zee-diep); font-weight: 700; }
.rg-licht-rand { border: 1.5px solid var(--schuim); background: transparent; color: var(--licht); }
.rg-knoppen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

/* ---------- Plan ---------- */
.pl-tijd { width: 100%; height: auto; display: block; }
.pl-fase { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--zandlijn2); }
.pl-fase .w { font-size: 13px; color: var(--inkt-zacht); padding-top: 2px; }
.pl-fase .w.nu { font-weight: 700; color: var(--inkt); }
.pl-fase .n { font-size: 17px; font-weight: 700; }
.pl-fase .x { font-size: 14px; line-height: 1.35; color: #34474F; }

/* ---------- Koppelen en data ---------- */
.kd-status { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--zee-midden); border-radius: 14px; padding: 12px 14px; position: relative; }
.kd-status .n { font-size: 17px; font-weight: 700; }
.kd-status .s { font-size: 13px; color: var(--schuimtekst); }
.kd-status .st { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--schuimtekst); }
.kd-lijst { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; font-size: 14px; }
.kd-lijn { height: 1px; background: var(--zandlijn2); }
.kd-knoppen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.kd-knoppen .btn { font-size: 15px; }

/* ---------- Inzicht (lege staat) ---------- */
.iz-voortgang { display: flex; flex-direction: column; gap: 6px; }
.iz-voortgang .kop { display: flex; justify-content: space-between; font-size: 14px; }
.iz-voortgang .kop .b { color: var(--inkt-zacht); }

/* Tekst onder water: lichte kopie, geknipt langs de golf */
.vd-stand.onder, .vd-msg.onder { color: var(--licht); pointer-events: none; }
.vd-stand.onder .sub { color: var(--schuimtekst2); }
.vd-planlink { display: flex; align-items: center; min-height: 40px; font-size: 14px; font-weight: 600; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
span.vd-planlink { text-decoration: none; }
.wk-tik { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); }
.wk-tik button { border: none; background: transparent; padding: 0; border-radius: 6px; }
.wk-tik button:active { background: rgba(191, 224, 230, 0.15); }

/* Schermen zonder menubalk (Plan voor vanavond, Na een uitglijder) */
body.zonder-nav .nav { display: none; }
body.zonder-nav .screen { padding-bottom: calc(var(--safe-b) + 16px); min-height: 100dvh; }
body.zonder-nav .screen > .page { min-height: calc(100dvh - var(--safe-b)); }
body.zonder-nav .toast { bottom: calc(var(--safe-b) + 14px); }

/* Notitie bij de stemming */
.vd-notitieknop { display: inline-flex; align-items: center; gap: 6px; border: none; background: none; padding: 0; margin: -12px 0; min-height: 44px; color: var(--inkt); text-align: left; }
.vd-notitieknop svg { color: var(--inkt-zacht); flex-shrink: 0; }
.vd-notitie { display: flex; flex-direction: column; gap: 6px; }
.vd-notitie .tekstveld { padding: 10px 12px; }
.vd-klaar { align-self: flex-end; border: none; background: none; color: var(--zee-diep); font-size: 14px; font-weight: 600; text-decoration: underline; min-height: 36px; padding: 0 2px; }
.vd-notitie-kort {
  border: none; background: var(--zandkaart); border-radius: 10px; padding: 8px 12px; min-height: 40px; text-align: left;
  font-size: 14px; line-height: 1.35; color: #34474F; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- Instellingen ---------- */
.in-rij { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; }
.in-lbl { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.in-lbl small { font-size: 12px; line-height: 1.35; color: var(--inkt-zacht); }
.in-stap { display: grid; grid-template-columns: 44px 40px 44px; align-items: center; flex-shrink: 0; }
.in-stap button { height: 44px; border-radius: 12px; font-size: 20px; border: 1px solid var(--zandlijn); background: var(--zand); color: var(--inkt); }
.in-stap button:last-child { border: none; background: var(--zee-diep); color: var(--licht); }
.in-stap b { text-align: center; font-size: 22px; font-weight: 700; }
.in-veld { font-size: 16px; border: 1px solid var(--zandlijn); border-radius: 8px; padding: 8px 10px; background: var(--zand); min-height: 44px; flex-shrink: 0; }
.in-schaal { display: grid; gap: 2px; height: 12px; border-radius: 6px; overflow: hidden; }
.in-schaal-lbl { display: flex; justify-content: space-between; font-size: 12px; color: var(--inkt-zacht); margin-top: -4px; }

/* Week: legenda en terugkrijgen */
.wk-legenda { display: flex; gap: 16px; font-size: 12px; color: var(--schuimtekst2); }
.wk-legenda span { display: inline-flex; align-items: center; gap: 6px; }
.wk-legenda.zand { color: var(--inkt-zacht); margin-top: -6px; justify-content: center; }
.wk-terug p { font-size: 15px; color: var(--inkt); }
.wk-terug b { color: var(--helm); font-size: 20px; }

/* Plan: opbrengst van een droge maand */
.pl-opbrengst { margin-top: 8px; background: var(--zandkaart); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.pl-opbrengst .k { font-size: 12px; font-weight: 600; color: var(--helm); }
.pl-opbrengst .r { display: flex; flex-direction: column; gap: 1px; font-size: 13px; line-height: 1.35; color: #34474F; }
.pl-opbrengst .r b { font-size: 13px; color: var(--inkt); }
.pl-opbrengst .r em { font-style: normal; font-size: 11px; color: var(--inkt-zacht); }

/* Regels: tabbladen en de zes regels op zee */
.rg-paneel { position: relative; }
.rg-lijst { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.rg-lijst li { display: flex; flex-direction: column; gap: 3px; }
.rg-lijst b { font-size: 23px; font-weight: 700; line-height: 1.12; letter-spacing: -0.015em; }
.rg-lijst span { font-size: 15px; line-height: 1.35; color: var(--schuimtekst2); }

/* Ochtendcheck */
.vd-check { gap: 8px; margin-top: 4px; border: 1.5px solid var(--zandlijn); }
.vd-check .k { font-size: 12px; font-weight: 600; color: var(--zee-midden); }
.vd-check .v { font-size: 17px; font-weight: 600; line-height: 1.3; }
.vd-stemkop { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.vd-zon { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.vd-zon b { font-size: 30px; font-weight: 700; min-width: 2ch; text-align: right; }
.vd-stemming input[type=range] { width: 100%; height: 32px; accent-color: var(--zee-diep); }
.vd-schaal-lbl { display: flex; justify-content: space-between; font-size: 13px; color: var(--inkt-zacht); margin-top: -4px; }

/* Vandaag: de zeven dagen van deze week */
.vd-strook { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 10px; }
.vd-strook button {
  height: 48px; border-radius: 10px; border: 1px solid var(--zandlijn2); background: var(--zandkaart); color: var(--inkt);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0;
}
.vd-strook button[aria-current="date"] { border: 2px solid var(--zee-diep); }
.vd-strook button:disabled { background: transparent; opacity: 0.6; }
.vd-strook span { font-size: 11px; color: var(--inkt-zacht); }
.vd-strook b { font-size: 15px; font-weight: 700; }
.vd-strook b.hoog { color: #462F5E; }
.vd-strook i { font-style: normal; font-size: 13px; font-weight: 700; color: #9AA9AD; }

.kd-link { border: none; background: none; padding: 0; color: var(--zee-diep); font-size: 13px; font-weight: 600; text-decoration: underline; }

/* Inzicht: droog tegenover nat */
.iz-rij { background: var(--zandkaart); border-radius: 14px; padding: 10px 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.iz-rij .l { font-size: 14px; color: var(--inkt-zacht); }
.iz-rij .d { font-size: 14px; font-weight: 700; }
.iz-rij .w { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px; }
.iz-rij .droog { font-size: 26px; font-weight: 700; color: var(--helm); }
.iz-rij .nat { font-size: 26px; font-weight: 700; color: var(--zee-diep); }
.iz-rij .t { font-size: 15px; color: #6A6250; }
