/* Erwin Gezond - glass design, donkerblauw dark theme, aurora achtergrond */
:root {
  --bg-0: #040918;
  --bg-1: #081130;
  --glass: rgba(255, 255, 255, 0.055);
  --glass-strong: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.12);
  --border-soft: rgba(255, 255, 255, 0.07);
  --text: #e8edf7;
  --text-dim: #9aa7c7;
  --text-faint: #64719a;
  --blue: #4c8dff;
  --purple: #9b72cb;
  --rose: #d96570;
  --teal: #2bbfa4;
  --amber: #e8b94a;
  --grad: linear-gradient(100deg, #4c8dff, #9b72cb 55%, #d96570);
  --radius: 22px;
  --nav-h: 72px;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 16px; }
body {
  font-family: "Google Sans", "Segoe UI", Roboto, system-ui, sans-serif;
  background: radial-gradient(120% 90% at 50% 0%, var(--bg-1) 0%, var(--bg-0) 65%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---------- aurora achtergrond (Gemini-stijl, zacht gloeiend) ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.aurora span {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .32; will-change: transform, opacity;
  animation: drift 42s ease-in-out infinite alternate, glow 9s ease-in-out infinite alternate;
}
.aurora .a1 { width: 55vmax; height: 55vmax; left: -18vmax; top: -20vmax; background: #2f6bff; animation-delay: 0s, 0s; }
.aurora .a2 { width: 46vmax; height: 46vmax; right: -16vmax; top: -8vmax; background: #8b5fd6; animation-delay: -12s, -3s; }
.aurora .a3 { width: 42vmax; height: 42vmax; left: -10vmax; bottom: -16vmax; background: #d96570; opacity: .2; animation-delay: -24s, -6s; }
.aurora .a4 { width: 38vmax; height: 38vmax; right: -8vmax; bottom: -14vmax; background: #1ea896; opacity: .22; animation-delay: -32s, -1.5s; }
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(6vmax, 4vmax) scale(1.12); }
  100% { transform: translate(-4vmax, 7vmax) scale(0.95); }
}
@keyframes glow {
  from { opacity: .18; }
  to   { opacity: .38; }
}
@media (prefers-reduced-motion: reduce) {
  .aurora span { animation: none; }
}

/* ---------- layout ---------- */
.app { max-width: 480px; margin: 0 auto; padding: 18px 16px calc(var(--nav-h) + 28px); }
header.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 2px 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand .logo {
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--grad); display: grid; place-items: center;
  font-weight: 700; font-size: 1.05rem; color: #fff;
  box-shadow: 0 4px 18px rgba(76, 141, 255, .35);
}
.brand h1 { font-size: 1.12rem; font-weight: 600; letter-spacing: .2px; }
.brand small { display: block; color: var(--text-dim); font-size: .72rem; font-weight: 400; }
.iconbtn {
  width: 40px; height: 40px; border-radius: 14px; border: 1px solid var(--border);
  background: var(--glass); color: var(--text-dim); display: grid; place-items: center;
  cursor: pointer; transition: .2s;
}
.iconbtn:active { transform: scale(.93); }
.iconbtn svg { width: 20px; height: 20px; }

/* ---------- glass kaarten ---------- */
.card {
  background: var(--glass);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 10px 34px rgba(2, 6, 20, .45), inset 0 1px 0 rgba(255,255,255,.06);
}
.card.hero {
  background: linear-gradient(135deg, rgba(76,141,255,.14), rgba(155,114,203,.10) 55%, rgba(255,255,255,.04));
  border-color: var(--border);
}
.card h2 { font-size: .82rem; font-weight: 600; color: var(--blue); text-transform: uppercase; letter-spacing: 1.1px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.card h2 svg { width: 15px; height: 15px; opacity: .9; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- typografie ---------- */
.big { font-size: 1.9rem; font-weight: 700; letter-spacing: -.5px; }
.big small { font-size: 1rem; color: var(--text-dim); font-weight: 500; }
.gradtext { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dim { color: var(--text-dim); font-size: .86rem; }
.faint { color: var(--text-faint); font-size: .78rem; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

/* ---------- badges en chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px; font-size: .76rem; font-weight: 600;
  border: 1px solid var(--border); background: var(--glass-strong);
}
.badge.blue { color: #9cc0ff; border-color: rgba(76,141,255,.4); background: rgba(76,141,255,.12); }
.badge.teal { color: #7fe0cd; border-color: rgba(43,191,164,.4); background: rgba(43,191,164,.12); }
.badge.amber { color: #f2d489; border-color: rgba(232,185,74,.4); background: rgba(232,185,74,.12); }
.badge.rose { color: #f0a3aa; border-color: rgba(217,101,112,.45); background: rgba(217,101,112,.12); }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 999px; font-size: .84rem;
  border: 1px solid var(--border); background: var(--glass-strong); color: var(--text);
  margin: 0 8px 8px 0;
}
.chip button { background: none; border: none; color: var(--text-faint); font-size: 1rem; cursor: pointer; line-height: 1; padding: 0 0 0 2px; }
.chip button:active { color: var(--rose); }

/* ---------- knoppen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 20px; border-radius: 16px; border: 1px solid var(--border);
  background: var(--glass-strong); color: var(--text);
  font-size: .95rem; font-weight: 600; cursor: pointer; transition: .18s;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn:active { transform: scale(.97); }
.btn.primary {
  background: var(--grad); border: none; color: #fff;
  box-shadow: 0 6px 24px rgba(108, 99, 255, .38);
}
.btn.full { width: 100%; }
.btn.small { padding: 8px 14px; font-size: .82rem; border-radius: 12px; }
.btn svg { width: 18px; height: 18px; }

/* ---------- voortgangsbalken ---------- */
.bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.bar i {
  display: block; height: 100%; border-radius: 999px;
  background: var(--grad); transition: width .6s cubic-bezier(.22,1,.36,1);
}
.bar.teal i { background: linear-gradient(90deg, #2bbfa4, #4c8dff); }

/* ---------- navigatie onderin ---------- */
nav.bottom {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%);
  width: min(464px, calc(100% - 24px)); height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-around;
  background: rgba(10, 17, 42, .72);
  border: 1px solid var(--border);
  border-radius: 26px;
  backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 14px 40px rgba(2, 6, 20, .6);
  z-index: 40;
}
nav.bottom button {
  background: none; border: none; color: var(--text-faint);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: .64rem; font-weight: 600; cursor: pointer; width: 62px; padding: 6px 0;
  transition: color .2s;
}
nav.bottom button svg { width: 22px; height: 22px; }
nav.bottom button.active { color: #fff; }
nav.bottom button.active svg { filter: drop-shadow(0 0 8px rgba(76,141,255,.8)); color: var(--blue); }
nav.bottom .fab {
  width: 58px; height: 58px; border-radius: 20px; margin-top: -26px;
  background: var(--grad); color: #fff; display: grid; place-items: center;
  border: none; cursor: pointer; box-shadow: 0 10px 28px rgba(108, 99, 255, .5);
  transition: .2s;
}
nav.bottom .fab:active { transform: scale(.92); }
nav.bottom .fab svg { width: 26px; height: 26px; }

/* ---------- views ---------- */
.view { display: none; animation: viewin .3s ease; }
.view.active { display: block; }
@keyframes viewin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.pagetitle { font-size: 1.35rem; font-weight: 700; margin: 4px 2px 16px; letter-spacing: -.3px; }
.pagetitle .dim { font-size: .85rem; font-weight: 400; margin-top: 2px; }

/* ---------- maaltijdrijen ---------- */
.meal {
  display: flex; align-items: center; gap: 13px; padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
}
.meal:last-child { border-bottom: none; }
.meal .mtag {
  min-width: 64px; text-align: center; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px; color: var(--blue);
  padding: 6px 8px; border-radius: 10px; background: rgba(76,141,255,.08);
  border: 1px solid rgba(76,141,255,.25);
}
.meal .minfo { flex: 1; min-width: 0; }
.meal .minfo b { display: block; font-size: .92rem; font-weight: 600; line-height: 1.3; }
.meal .minfo span { font-size: .76rem; color: var(--text-faint); }
.meal .note { font-size: .72rem; color: var(--amber); display: block; margin-top: 2px; }
.meal .macts { display: flex; gap: 6px; }
.meal .macts button {
  width: 34px; height: 34px; border-radius: 11px; border: 1px solid var(--border);
  background: var(--glass); color: var(--text-dim); cursor: pointer; display: grid; place-items: center;
}
.meal .macts button svg { width: 16px; height: 16px; }
.meal .macts button.done { color: var(--teal); border-color: rgba(43,191,164,.5); background: rgba(43,191,164,.12); }
.daynav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.daynav b { font-size: .98rem; }

/* ---------- boodschappenlijst ---------- */
.shopcat { margin-bottom: 4px; }
.shopcat h3 { font-size: .74rem; text-transform: uppercase; letter-spacing: 1px; color: var(--blue); margin: 14px 0 6px; }
.shopitem {
  display: flex; align-items: center; gap: 12px; padding: 10px 2px;
  border-bottom: 1px solid var(--border-soft); cursor: pointer;
}
.shopitem:last-child { border-bottom: none; }
.shopitem .cbox {
  width: 24px; height: 24px; border-radius: 8px; border: 1.5px solid var(--border);
  display: grid; place-items: center; flex: none; transition: .15s; background: var(--glass);
}
.shopitem.have .cbox { background: var(--teal); border-color: var(--teal); }
.shopitem .cbox svg { width: 14px; height: 14px; color: #04121c; opacity: 0; }
.shopitem.have .cbox svg { opacity: 1; }
.shopitem .sname { flex: 1; font-size: .92rem; }
.shopitem.have .sname { text-decoration: line-through; color: var(--text-faint); }
.shopitem .shint { font-size: .74rem; color: var(--text-faint); }

/* ---------- formulieren ---------- */
label.field { display: block; margin-bottom: 14px; }
label.field span { display: block; font-size: .8rem; color: var(--text-dim); margin-bottom: 7px; font-weight: 500; }
input[type="number"], input[type="text"], input[type="time"], input[type="date"], select {
  width: 100%; padding: 13px 15px; border-radius: 14px;
  border: 1px solid var(--border); background: rgba(255,255,255,.05);
  color: var(--text); font-size: 1rem; outline: none; font-family: inherit;
  transition: border-color .2s;
}
input:focus, select:focus { border-color: rgba(76,141,255,.6); }
select option { background: var(--bg-1); }
.inline2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- modals ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(3, 7, 18, .66);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  z-index: 60; display: none; align-items: flex-end; justify-content: center;
}
.overlay.open { display: flex; }
.sheet {
  width: min(480px, 100%); max-height: 88vh; overflow-y: auto;
  background: linear-gradient(180deg, rgba(20, 30, 64, .92), rgba(8, 14, 36, .96));
  border: 1px solid var(--border); border-bottom: none;
  border-radius: 26px 26px 0 0; padding: 22px 20px 34px;
  backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  animation: sheetup .32s cubic-bezier(.22,1,.36,1);
}
@keyframes sheetup { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet .grip { width: 42px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.18); margin: 0 auto 18px; }
.sheet h3 { font-size: 1.15rem; margin-bottom: 4px; }
.sheet .sub { color: var(--text-dim); font-size: .85rem; margin-bottom: 18px; }

/* ---------- suggestiekaart ---------- */
.suggest {
  text-align: center; padding: 10px 4px 4px;
}
.suggest .scat { font-size: .72rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--blue); }
.suggest .sname { font-size: 1.3rem; font-weight: 700; margin: 8px 0 6px; line-height: 1.25; }
.suggest .smacro { display: flex; justify-content: center; gap: 18px; margin: 12px 0 4px; }
.suggest .smacro div b { display: block; font-size: 1.1rem; }
.suggest .smacro div span { font-size: .72rem; color: var(--text-faint); }
.suggest .snote { font-size: .78rem; color: var(--amber); margin-top: 8px; }

/* ---------- plek-kiezer ---------- */
.sites { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 18px; }
.sites button {
  padding: 13px 10px; border-radius: 14px; border: 1px solid var(--border);
  background: var(--glass); color: var(--text); font-size: .88rem; font-weight: 600; cursor: pointer;
}
.sites button.sel { border-color: var(--blue); background: rgba(76,141,255,.16); box-shadow: 0 0 0 1px var(--blue) inset; }
.sites button .rec { display: block; font-size: .66rem; color: var(--teal); font-weight: 700; margin-top: 3px; text-transform: uppercase; letter-spacing: .6px; }

/* ---------- grafiek ---------- */
.chartwrap { margin-top: 6px; }
.chartwrap svg { width: 100%; height: auto; display: block; }

/* ---------- toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 30px); transform: translateX(-50%) translateY(20px);
  background: rgba(16, 26, 58, .95); border: 1px solid var(--border);
  color: var(--text); padding: 12px 20px; border-radius: 14px; font-size: .88rem;
  opacity: 0; pointer-events: none; transition: .3s; z-index: 80; max-width: 90%;
  backdrop-filter: blur(16px); box-shadow: 0 10px 30px rgba(2,6,20,.5);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- allergielijst ---------- */
.addrow { display: flex; gap: 10px; margin-top: 10px; }
.addrow input { flex: 1; }
.addrow .btn { flex: none; }

/* ---------- log ---------- */
.logrow { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border-soft); font-size: .86rem; }
.logrow:last-child { border-bottom: none; }
.logrow span { color: var(--text-faint); }

/* ---------- toggle-knop meldingen ---------- */
.btn.on { background: rgba(43,191,164,.18); border-color: rgba(43,191,164,.55); color: #7fe0cd; }
.btn.off { background: rgba(217,101,112,.16); border-color: rgba(217,101,112,.55); color: #f0a3aa; }

/* ---------- receptdetail ---------- */
.recipe-hero {
  width: 100%; aspect-ratio: 16/10; border-radius: 18px; overflow: hidden;
  margin-bottom: 16px; background: linear-gradient(135deg, rgba(76,141,255,.25), rgba(155,114,203,.2) 55%, rgba(217,101,112,.2));
  display: grid; place-items: center; border: 1px solid var(--border-soft);
}
.recipe-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.recipe-hero .noimg { font-size: 2.4rem; opacity: .5; }
.sheet h4.rh { font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--blue); margin: 18px 0 8px; }
ol.steps { margin: 0 0 4px 20px; }
ol.steps li { margin-bottom: 8px; font-size: .92rem; line-height: 1.45; color: var(--text); }
.dirkrow { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border-soft); font-size: .88rem; }
.dirkrow:last-child { border-bottom: none; }
.dirkrow .din { color: var(--text-dim); flex: none; }
.dirkrow .dpr { text-align: right; }
.dirkrow .dpr b { display: block; font-weight: 600; }
.dirkrow .dpr span { font-size: .74rem; color: var(--text-faint); }
.recipe-warn { font-size: .8rem; color: var(--amber); background: rgba(232,185,74,.1); border: 1px solid rgba(232,185,74,.3); border-radius: 12px; padding: 10px 12px; margin-bottom: 4px; }

/* ---------- BMI-klassen ---------- */
.bmirow { padding: 11px 12px; border-radius: 14px; border: 1px solid var(--border-soft); margin-bottom: 8px; }
.bmirow.current { border-color: rgba(76,141,255,.55); background: rgba(76,141,255,.1); }
.bmirow .spread b { font-size: .9rem; }
.bmirow .spread span { font-size: .78rem; color: var(--text-dim); }
.bmirow p { font-size: .82rem; color: var(--text-dim); margin-top: 6px; line-height: 1.45; }
.bmirow.current p { color: var(--text); }

/* ---------- coach ---------- */
.card.coach { background: linear-gradient(135deg, rgba(43,191,164,.12), rgba(76,141,255,.1)); }
.card.coach p { font-size: .95rem; line-height: 1.55; }

/* ---------- klikbare kaarten en rijen ---------- */
.card.tap { cursor: pointer; transition: transform .15s; }
.card.tap:active { transform: scale(.98); }
.meal.tap { cursor: pointer; }

/* ---------- BMI-kleurcodes per klasse ---------- */
.bmirow.t-blue  { border-color: rgba(76,141,255,.35);  background: rgba(76,141,255,.07); }
.bmirow.t-green { border-color: rgba(52,199,123,.35);  background: rgba(52,199,123,.07); }
.bmirow.t-amber { border-color: rgba(232,185,74,.4);   background: rgba(232,185,74,.08); }
.bmirow.t-red   { border-color: rgba(230,86,98,.4);    background: rgba(230,86,98,.08); }
.bmirow.t-blue  .spread b { color: #9cc0ff; }
.bmirow.t-green .spread b { color: #7fe6ac; }
.bmirow.t-amber .spread b { color: #f2d489; }
.bmirow.t-red   .spread b { color: #f59aa3; }
.bmirow.current.t-blue  { border-color: #4c8dff; box-shadow: 0 0 20px rgba(76,141,255,.35), inset 0 0 0 1px rgba(76,141,255,.5); }
.bmirow.current.t-green { border-color: #34c77b; box-shadow: 0 0 20px rgba(52,199,123,.35), inset 0 0 0 1px rgba(52,199,123,.5); }
.bmirow.current.t-amber { border-color: #e8b94a; box-shadow: 0 0 20px rgba(232,185,74,.4),  inset 0 0 0 1px rgba(232,185,74,.55); }
.bmirow.current.t-red   { border-color: #e65662; box-shadow: 0 0 22px rgba(230,86,98,.45),  inset 0 0 0 1px rgba(230,86,98,.6); }
.bmirow.current { background: rgba(255,255,255,.05); }

/* ---------- donkere, afgeronde invoervelden (ook native Android-velden) ---------- */
:root { color-scheme: dark; }
input[type="number"], input[type="text"], input[type="time"], input[type="date"],
input[type="datetime-local"], input[type="password"], select {
  width: 100%; padding: 14px 16px; border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.04));
  color: var(--text); font-size: 1rem; outline: none; font-family: inherit;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: border-color .2s, box-shadow .2s;
  color-scheme: dark; appearance: none; -webkit-appearance: none;
}
input:focus, select:focus {
  border-color: rgba(76,141,255,.65);
  box-shadow: 0 0 0 3px rgba(76,141,255,.14);
}
input::placeholder { color: var(--text-faint); }
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #101a35 inset;
  -webkit-text-fill-color: #e8edf7; caret-color: #e8edf7; border-radius: 16px;
}
::-webkit-calendar-picker-indicator { filter: invert(.78); opacity: .85; cursor: pointer; }
input[type="datetime-local"], input[type="time"], input[type="date"] { min-height: 52px; }

/* ---------- weekoverzicht (week-ui.js) ---------- */
.wk { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; height: 160px; padding-top: 8px; }
.wk-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; background: none; border: none; color: var(--text-dim); font: inherit; cursor: pointer; padding: 0; min-width: 0; }
.wk-bar { width: 60%; max-width: 26px; border-radius: 4px 4px 0 0; background: var(--teal); opacity: .85; }
.wk-col.today .wk-bar { opacity: 1; }
.wk-col.sel .wk-bar { outline: 2px solid var(--text); outline-offset: 2px; }
.wk-day { font-size: .78rem; }
.wk-col.today .wk-day { color: var(--text); font-weight: 600; }
.wk-prot { font-size: .72rem; color: var(--text-faint); }
.wk-prot.ok { color: var(--text); }
.wk-line { position: absolute; left: 0; right: 0; border-top: 1px dashed rgba(255,255,255,.28); pointer-events: none; }
.wk-line span { position: absolute; right: 0; top: -16px; font-size: .68rem; color: var(--text-faint); }

/* ---------- schatten van vrije tekst (ui-food.js) ---------- */
.est-list { margin-top: 10px; }
.est-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border-soft); }
.est-row b { font-weight: 500; }
.est-row span { color: var(--text-dim); font-size: .82rem; white-space: nowrap; }
.est-row button { background: none; border: none; color: var(--text); opacity: .55; font-size: 15px; cursor: pointer; padding: 2px 6px; }
textarea#eetlog-est-text { width: 100%; min-height: 70px; resize: vertical; font: inherit; color: var(--text); background: rgba(255,255,255,.06); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
#modal-login .sheet { max-width: 420px; }

/* ---------- inspreken (voice-ui.js) ---------- */
.voice-cta { display: flex; align-items: center; justify-content: center; gap: 8px; }
.voice-cta svg { width: 18px; height: 18px; }
#voice-text { width: 100%; min-height: 90px; resize: vertical; font: inherit; color: var(--text); background: rgba(255,255,255,.06); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-top: 12px; }
.voice-row { display: flex; align-items: center; gap: 14px; margin: 14px 0; }
.voice-mic { width: 64px; height: 64px; border-radius: 50%; border: none; cursor: pointer; color: #fff; background: var(--grad); display: grid; place-items: center; flex: none; box-shadow: 0 6px 20px rgba(76,141,255,.35); }
.voice-mic svg { width: 28px; height: 28px; }
.voice-mic.rec { background: var(--rose); animation: voicepulse 1.2s ease-in-out infinite; }
@keyframes voicepulse { 0%,100% { box-shadow: 0 0 0 0 rgba(217,101,112,.55); } 50% { box-shadow: 0 0 0 14px rgba(217,101,112,0); } }
details.help { margin-top: 10px; border: 1px solid var(--border-soft); border-radius: 12px; padding: 10px 12px; background: rgba(255,255,255,.03); }
details.help summary { cursor: pointer; color: var(--text); font-weight: 600; font-size: .9rem; }
details.help .steps { margin-top: 8px; }
.voice-example { text-align: left; margin: 4px 4px 0 0; cursor: pointer; font: inherit; font-size: .8rem; }
@media (prefers-reduced-motion: reduce) { .voice-mic.rec { animation: none; } }

/* ---------- weekoverzicht v2: status per dag, weeksaldo, dagdetail ---------- */
.wk { height: 175px; }
.wk-col:disabled { cursor: default; opacity: .45; }
.wk-arrow { font-size: .7rem; line-height: 1; min-height: .8rem; }
.wk-col.st-under .wk-bar { background: var(--teal); }
.wk-col.st-under .wk-arrow, .c-under { color: var(--teal); }
.wk-col.st-over .wk-bar { background: var(--rose); }
.wk-col.st-over .wk-arrow, .c-over { color: var(--rose); }
.wk-col.st-low .wk-bar { background: var(--amber); }
.wk-col.st-low .wk-arrow, .c-low { color: var(--amber); font-weight: 700; }
.wk-legend { margin-top: 6px; }
.wk-legend span { margin-right: 8px; }
.wk-nav { width: 34px; height: 34px; font-size: 1.3rem; line-height: 1; }
.wk-sum { margin-top: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border-soft); background: rgba(255,255,255,.04); }
.wk-sum.good { border-color: rgba(43,191,164,.45); }
.wk-sum.bad { border-color: rgba(217,101,112,.5); }
.wk-sum-main { font-size: 1rem; margin-bottom: 4px; }
.wk-sum.good .wk-sum-arrow { color: var(--teal); }
.wk-sum.bad .wk-sum-arrow { color: var(--rose); }
.wk-detail { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border-soft); }
.wk-badge { font-size: .78rem; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.wk-badge.good { color: var(--teal); background: rgba(43,191,164,.12); }
.wk-badge.bad { color: var(--rose); background: rgba(217,101,112,.14); }
.wk-badge.warn { color: var(--amber); background: rgba(232,185,74,.12); white-space: normal; text-align: right; }
/* v3: gedeeld plotvlak zodat staven en richtlijn exact dezelfde schaal hebben */
.wk-plot { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; margin-top: 18px; }
.wk-plot .wk-col { justify-content: flex-end; gap: 3px; height: 100%; }
.wk-labels { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 6px; }
.wk-lab { display: flex; flex-direction: column; align-items: center; gap: 2px; background: none; border: none; color: var(--text-dim); font: inherit; cursor: pointer; padding: 0; }
.wk-lab:disabled { opacity: .45; cursor: default; }
.wk-lab.today .wk-day { color: var(--text); font-weight: 600; }
.wk-plot .wk-col.sel .wk-bar { outline: none; box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.wk-lab.sel .wk-day { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
/* inspreken v2: microfoon gecentreerd, groene verwerkknop */
.voice-row { flex-direction: column; justify-content: center; gap: 8px; text-align: center; }
#voice-process { background: linear-gradient(135deg, #6ee7a0 0%, #22c55e 45%, #15803d 100%); color: #06240f; font-weight: 700; box-shadow: 0 6px 18px rgba(34,197,94,.3); border: none; }
#voice-process:disabled { opacity: .7; }
