/* ============================================================
   MEMENTO / MORI — Design System
   Zwart-wit · marmer · Grieks/Romeins · rustig · premium
   ============================================================ */

:root {
  /* raw grayscale constants (thema-onafhankelijk) */
  --black:     #0a0a0b;
  --ink:       #141416;
  --stone-900: #1c1c1f;
  --stone-800: #26262a;
  --stone-700: #35353b;
  --stone-600: #4a4a52;
  --stone-500: #6b6b74;
  --stone-400: #8f8f98;
  --stone-300: #b6b6bd;
  --stone-200: #d6d6db;
  --stone-100: #ececee;
  --marble:    #f5f4f1;   /* constante lichte "steen/papier" */
  --white:     #ffffff;
  --gold:      #c9a24b;

  /* semantische tokens — LICHT thema (default) */
  --bg:        #f5f4f1;
  --surface:   #ffffff;
  --surface-2: #f0efeb;
  --text:      #141416;
  --text-soft: #6b6b74;
  --line:      #dedcd6;
  --inv-bg:    #141416;   /* knoppen/actief: donker in licht thema */
  --inv-text:  #f5f4f1;
  --sketch-ink:#2b2a27;   /* houtskool voor MORI */

  --shadow-sm: 0 1px 2px rgba(20,20,22,.04), 0 2px 8px rgba(20,20,22,.05);
  --shadow-md: 0 4px 14px rgba(20,20,22,.07), 0 14px 40px rgba(20,20,22,.08);
  --shadow-lg: 0 10px 30px rgba(20,20,22,.10), 0 30px 80px rgba(20,20,22,.14);

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.22,.61,.36,1);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --maxw: 720px;
}

/* DONKER thema — "de tempel bij nacht" */
body.theme-dark {
  --bg:        #0b0b0d;
  --surface:   #17171a;
  --surface-2: #202024;
  --text:      #efeee8;
  --text-soft: #9a9aa2;
  --line:      #30303600;   /* set below */
  --line:      #303036;
  --inv-bg:    #efeee8;      /* knoppen/actief: licht in donker thema */
  --inv-text:  #141416;
  --sketch-ink:#e7e5de;      /* krijt voor MORI */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 6px 20px rgba(0,0,0,.5);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.6);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .45s var(--ease), color .45s var(--ease);
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .55;
  background:
    radial-gradient(140% 120% at 15% 0%, rgba(255,255,255,.6), transparent 45%),
    radial-gradient(120% 120% at 100% 100%, rgba(0,0,0,.05), transparent 40%);
}
body.theme-dark::before {
  background:
    radial-gradient(140% 120% at 20% 0%, rgba(255,255,255,.05), transparent 45%),
    radial-gradient(120% 120% at 100% 100%, rgba(0,0,0,.5), transparent 40%);
}

h1,h2,h3 { font-weight: 600; line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 1rem; color: inherit; }
::selection { background: var(--inv-bg); color: var(--inv-text); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

#app { position: relative; z-index: 1; min-height: 100vh; }

.screen { max-width: var(--maxw); margin: 0 auto; padding: 24px 22px 130px; animation: fade-up .5s var(--ease) both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.eyebrow { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--text-soft); font-weight: 600; }
.muted { color: var(--text-soft); }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; font-weight: 600; font-size: .98rem; letter-spacing: .01em;
  background: var(--inv-bg); color: var(--inv-text);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), opacity .2s; box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .4; pointer-events: none; }
.btn.full { width: 100%; }
.btn.ghost { background: transparent; color: var(--text); box-shadow: none; border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--stone-400); }
.btn.lg { padding: 18px 34px; font-size: 1.05rem; }
.btn svg { width: 20px; height: 20px; }
.link-btn { color: var(--text-soft); font-weight: 600; font-size: .9rem; padding: 8px; display: inline-flex; align-items: center; gap: 6px; }
.link-btn svg { width: 18px; height: 18px; }
.link-btn:hover { color: var(--text); }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.card + .card { margin-top: 16px; }

/* ============================================================ SPLASH */
.splash {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 26px; padding: 30px; background: var(--black); color: var(--marble);
}
.splash .logo { font-family: var(--serif); font-size: clamp(3rem, 12vw, 5.2rem); letter-spacing: .04em; line-height: .95; }
.splash .logo small { display: block; font-size: .28em; letter-spacing: .5em; color: var(--stone-400); margin-top: 14px; }
.splash .tagline { color: var(--stone-400); font-family: var(--serif); font-size: 1.4rem; }
.mori-mark { color: #ece9e2; animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 0%,100% { transform: scale(1); opacity: .95; } 50% { transform: scale(1.03); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .mori-mark, .mori-glow, .focus-mori-mini { animation: none !important; } }

/* ============================================================ ONBOARDING */
.onb { min-height: 100vh; display: flex; flex-direction: column; }
.onb-top { padding: 20px 22px 0; max-width: var(--maxw); margin: 0 auto; width: 100%; }
.progress-rail { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--text); border-radius: 4px; transition: width .5s var(--ease); }
.onb-step-count { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-soft); margin-top: 12px; font-weight: 600; }
.onb-body { flex: 1; max-width: var(--maxw); margin: 0 auto; width: 100%; padding: 26px 22px 140px; animation: fade-up .45s var(--ease) both; }
.onb-body h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 6vw, 2.7rem); margin-bottom: 8px; }
.onb-body .sub { color: var(--text-soft); margin-bottom: 26px; font-size: 1.05rem; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 8px; }
.field input[type=text], .field input[type=date], .field input[type=time], .field input[type=number], .field textarea, .field select {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 90px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--text) 8%, transparent); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 500; font-size: .95rem; transition: all .2s var(--ease); user-select: none; color: var(--text); }
.chip:hover { border-color: var(--stone-400); }
.chip.on { background: var(--inv-bg); color: var(--inv-text); border-color: var(--inv-bg); transform: translateY(-1px); }

.onb-nav {
  position: fixed; bottom: 0; left: 0; right: 0; padding: 16px 22px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 60%, transparent); display: flex; gap: 12px; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; z-index: 20;
}
.life-preview { margin: 20px 0; }
.big-stat { font-family: var(--serif); font-size: clamp(2.4rem,9vw,3.6rem); line-height: 1; font-variant-numeric: tabular-nums; }

/* ============================================================ CHROME */
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px 14px; max-width: var(--maxw); margin: 0 auto;
  backdrop-filter: saturate(160%) blur(12px); background: color-mix(in srgb, var(--bg) 82%, transparent);
}
.topbar .brand { font-family: var(--serif); font-size: 1.35rem; letter-spacing: .06em; }
.topbar .date { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft); font-weight: 600; }

.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; display: flex; justify-content: space-around;
  padding: 10px 8px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: saturate(180%) blur(16px); border-top: 1px solid var(--line);
}
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--text-soft); text-decoration: none; font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; padding: 6px 10px; border-radius: 12px; transition: color .2s; }
.bottom-nav a svg { width: 22px; height: 22px; stroke-width: 1.6; }
.bottom-nav a.active { color: var(--text); }

/* ============================================================ DASHBOARD */
.hero-quote { font-family: var(--serif); font-size: clamp(1.6rem,6vw,2.2rem); line-height: 1.15; margin: 6px 0 4px; }
.building-line { font-size: .95rem; color: var(--text-soft); }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 14px; text-align: center; }
.stat .v { font-family: var(--serif); font-size: 1.9rem; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .l { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft); margin-top: 6px; font-weight: 600; }

.ring-wrap { position: relative; width: 64px; height: 64px; flex: none; }
.ring-wrap .pct { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }

.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 30px 0 14px; }
.section-title h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; }
.section-title .meta { font-size: .78rem; color: var(--text-soft); font-weight: 600; letter-spacing: .04em; }
.section-title .add-link { font-size: .82rem; font-weight: 600; color: var(--text); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; }
.section-title .add-link:hover { background: var(--surface-2); }
.section-title .add-link svg { width: 15px; height: 15px; }

.focus-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--inv-bg); color: var(--inv-text);
  border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-md); cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.focus-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.focus-cta .fc-label { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; opacity: .6; }
.focus-cta .fc-task { font-family: var(--serif); font-size: 1.4rem; margin-top: 4px; }
.focus-cta .fc-sub { font-size: .82rem; opacity: .6; }
.focus-cta .fc-play { width: 52px; height: 52px; border-radius: 50%; background: var(--inv-text); color: var(--inv-bg); display: grid; place-items: center; flex: none; }
.focus-cta .fc-play svg { width: 22px; height: 22px; }

/* ---------- Task list ---------- */
.task { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 10px; transition: opacity .3s, background .3s; }
.task.done { opacity: .55; }
.task.done .task-title { text-decoration: line-through; }
.task-check { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--stone-400); flex: none; display: grid; place-items: center; transition: all .25s var(--ease); color: var(--inv-text); }
.task-check svg { width: 15px; height: 15px; opacity: 0; transform: scale(.5); transition: all .25s var(--ease); }
.task.done .task-check { background: var(--inv-bg); border-color: var(--inv-bg); }
.task.done .task-check svg { opacity: 1; transform: scale(1); }
.task-main { flex: 1; min-width: 0; }
.task-title { font-weight: 600; font-size: 1rem; }
.task-sub { font-size: .8rem; color: var(--text-soft); margin-top: 2px; display: flex; gap: 10px; flex-wrap: wrap; }
.task-act { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--text-soft); transition: all .2s; }
.task-act:hover { background: var(--inv-bg); color: var(--inv-text); border-color: var(--inv-bg); }
.task-act.del:hover { background: #b23c3c; border-color: #b23c3c; color: #fff; }
.task-act svg { width: 18px; height: 18px; }
.custom-badge { font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft); border: 1px solid var(--line); padding: 1px 6px; border-radius: 999px; }

.virtus-pop { position: fixed; z-index: 90; pointer-events: none; font-family: var(--serif); font-size: 1.6rem; color: var(--gold); animation: virtus-rise 1.1s var(--ease) forwards; text-shadow: 0 2px 8px rgba(0,0,0,.2); }
@keyframes virtus-rise { 0% { opacity: 0; transform: translateY(6px) scale(.9); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-40px) scale(1.1); } }

/* ============================================================ MORI */
.mori-stage { display: grid; place-items: center; padding: 16px; }
.mori-svg-wrap { width: min(280px, 72vw); aspect-ratio: 3/4; color: var(--sketch-ink); }
.mori-svg-wrap svg { width: 100%; height: 100%; display: block; }
.mori-glow { animation: breathe 6s ease-in-out infinite; }
.mori-title { font-family: var(--serif); font-size: 2rem; text-align: center; margin-top: 8px; }
.mori-level-label { text-align: center; color: var(--text-soft); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; }
.mori-progress-bar { height: 8px; background: var(--line); border-radius: 8px; overflow: hidden; margin: 8px 0 6px; }
.mori-progress-bar > div { height: 100%; background: var(--text); border-radius: 8px; transition: width .8s var(--ease); }

.levels-list { margin-top: 22px; }
.level-item { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; background: var(--surface); transition: opacity .3s; }
.level-item.locked { opacity: .45; }
.level-item.current { border-color: var(--text); box-shadow: var(--shadow-sm); }
.level-item .lv-badge { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--serif); font-size: 1.2rem; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); }
.level-item.current .lv-badge, .level-item.unlocked .lv-badge { background: var(--inv-bg); color: var(--inv-text); border-color: var(--inv-bg); }
.level-item .lv-name { font-weight: 600; }
.level-item .lv-desc { font-size: .82rem; color: var(--text-soft); }
.level-item .lv-req { margin-left: auto; font-size: .74rem; color: var(--text-soft); font-weight: 600; white-space: nowrap; }

/* ============================================================ FOCUS MODE */
.focus-overlay { position: fixed; inset: 0; z-index: 100; background: var(--black); color: var(--marble); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; gap: 20px; animation: fade-in .5s var(--ease); }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.focus-overlay .f-task { font-family: var(--serif); font-size: clamp(1.8rem,7vw,2.6rem); }
.focus-overlay .f-why { color: var(--stone-400); max-width: 420px; font-size: 1.05rem; }
.focus-timer { font-family: var(--serif); font-size: clamp(4.5rem, 22vw, 8rem); font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: .01em; }
.focus-ring-wrap { position: relative; width: min(300px, 78vw); aspect-ratio: 1; display: grid; place-items: center; }
.focus-ring-wrap .center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.focus-ring-wrap svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.focus-mori-mini { width: 70px; color: #ece9e2; margin-bottom: 6px; }
.focus-mori-mini svg { width: 100%; }
.focus-actions { display: flex; gap: 14px; margin-top: 10px; }
.focus-actions .btn { background: var(--stone-800); color: var(--marble); }
.focus-actions .btn.primary { background: var(--marble); color: var(--ink); }
.focus-line { color: var(--stone-500); font-size: .9rem; letter-spacing: .06em; }
.duration-picker { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.duration-picker .chip { background: transparent; color: var(--marble); border-color: var(--stone-700); }
.duration-picker .chip.on { background: var(--marble); color: var(--ink); border-color: var(--marble); }

/* ============================================================ LIFE TIMELINE */
.weeks-grid { display: grid; grid-template-columns: repeat(52, 1fr); gap: 2px; margin: 18px 0; }
.wk { width: 100%; aspect-ratio: 1; border-radius: 1.5px; background: var(--stone-200); }
.wk.lived  { background: var(--stone-400); }
.wk.strong { background: var(--text); }
.wk.missed { background: repeating-linear-gradient(45deg, var(--stone-300), var(--stone-300) 1px, transparent 1px, transparent 3px); }
.wk.current { background: var(--gold); box-shadow: 0 0 0 1.5px var(--gold), 0 0 8px rgba(201,162,75,.7); position: relative; z-index: 2; }
.wk.future { background: var(--surface-2); border: .5px solid var(--line); }
body.theme-dark .wk.future { background: var(--stone-800); border-color: var(--stone-700); }
body.theme-dark .wk.lived  { background: var(--stone-600); }

.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; font-size: .78rem; color: var(--text-soft); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.impact-text { font-family: var(--serif); font-size: 1.5rem; line-height: 1.25; margin: 4px 0; }

/* ============================================================ REFLECTION */
.reflect-q { margin-bottom: 22px; }
.reflect-q .q { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 10px; }
.reflect-q textarea { width: 100%; min-height: 84px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); resize: vertical; line-height: 1.5; }
.reflect-q textarea:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--text) 8%, transparent); }

/* ============================================================ ANALYTICS */
.bars { display: flex; align-items: flex-end; gap: 8px; height: 140px; margin: 16px 0 6px; }
.bars .bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.bars .bar { width: 100%; max-width: 34px; background: linear-gradient(180deg, var(--text), var(--text-soft)); border-radius: 6px 6px 0 0; min-height: 3px; transition: height .6s var(--ease); }
.bars .bar-lbl { font-size: .66rem; color: var(--text-soft); font-weight: 600; letter-spacing: .04em; }
.reclaimed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }

/* ============================================================ SETTINGS */
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.set-row:last-child { border-bottom: none; }
.set-row .lbl { font-weight: 600; }
.set-row .desc { font-size: .82rem; color: var(--text-soft); }
.switch { width: 48px; height: 28px; border-radius: 999px; background: var(--stone-300); position: relative; transition: background .25s; flex: none; cursor: pointer; }
.switch.on { background: var(--inv-bg); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch.on::after { transform: translateX(20px); }

.habit-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.habit-row:last-child { border-bottom: none; }
.habit-row .h-main { flex: 1; }
.habit-row .h-title { font-weight: 600; }
.habit-row .h-sub { font-size: .8rem; color: var(--text-soft); }
.icon-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--text-soft); flex: none; }
.icon-btn:hover { background: #b23c3c; border-color: #b23c3c; color: #fff; }
.icon-btn svg { width: 16px; height: 16px; }

/* ============================================================ MODAL */
.modal-backdrop { position: fixed; inset: 0; z-index: 110; background: rgba(10,10,11,.55); backdrop-filter: blur(4px); display: flex; align-items: flex-end; justify-content: center; padding: 0; animation: fade-in .25s var(--ease); }
.modal { background: var(--surface); width: 100%; max-width: var(--maxw); border-radius: 24px 24px 0 0; padding: 26px 22px calc(26px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-lg); animation: sheet-up .35s var(--ease); }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
.modal h3 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; margin-bottom: 4px; }
.modal .modal-sub { color: var(--text-soft); font-size: .9rem; margin-bottom: 18px; }
.modal .dur-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.modal .dur-chips .chip { padding: 9px 15px; font-size: .9rem; }
.modal .repeat-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 6px; }
.modal-actions { display: flex; gap: 12px; margin-top: 20px; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(20px); background: var(--inv-bg); color: var(--inv-text); padding: 13px 22px; border-radius: 999px; font-size: .9rem; font-weight: 500; box-shadow: var(--shadow-lg); opacity: 0; transition: all .35s var(--ease); z-index: 130; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.divider { height: 1px; background: var(--line); margin: 24px 0; border: none; }
.row { display: flex; gap: 12px; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: .74rem; font-weight: 600; color: var(--text-soft); }

@media (max-width: 420px) { .stat-row { gap: 8px; } .stat .v { font-size: 1.6rem; } }

/* ============================================================
   STEM · reflectie met je stem
   ============================================================ */
.voice-hint {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 22px;
  font-size: .9rem; line-height: 1.55;
}
.voice-hint svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--text-soft); }

.mic-wrap { margin-top: 10px; }
.mic-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 20px 11px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font-weight: 600; font-size: .9rem; cursor: pointer;
  transition: transform .2s var(--ease), border-color .2s, background .2s;
}
.mic-btn:hover { border-color: var(--stone-400); transform: translateY(-1px); }
.mic-btn:active { transform: scale(.97); }
.mic-btn .mic-ico { display: inline-flex; }
.mic-btn svg { width: 19px; height: 19px; }
.mic-btn.off { opacity: .55; }

/* opnemen: goud, rustig ademend — nooit alarmerend */
.mic-btn.rec {
  background: var(--gold); border-color: var(--gold); color: #1a1508;
  box-shadow: 0 0 0 0 rgba(201,162,75,.55);
  animation: mic-pulse 1.9s var(--ease) infinite;
}
@keyframes mic-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(201,162,75,.5); }
  70%  { box-shadow: 0 0 0 14px rgba(201,162,75,0); }
  100% { box-shadow: 0 0 0 0 rgba(201,162,75,0); }
}
.mic-live {
  margin-top: 10px; padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px dashed var(--line);
  font-size: .9rem; line-height: 1.5; min-height: 40px; color: var(--text);
}
.mic-live.dim { color: var(--text-soft); font-style: italic; }

/* grote ingang op Vandaag */
.voice-cta {
  width: 100%; display: flex; align-items: center; gap: 16px; text-align: left;
  background: var(--inv-bg); color: var(--inv-text);
  border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow-md);
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.voice-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.voice-cta .vc-ico { display: inline-flex; }
.voice-cta svg { width: 26px; height: 26px; }
.voice-cta .vc-main { display: flex; flex-direction: column; gap: 3px; }
.voice-cta .vc-t { font-weight: 600; font-size: 1rem; }
.voice-cta .vc-s { font-size: .8rem; opacity: .62; }

/* ============================================================
   SIGNALEN · dagcheck
   ============================================================ */
.scale-card .scale-row + .scale-row { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.scale-row { }
.scale-q { font-weight: 600; font-size: .95rem; margin-bottom: 12px; }
.dots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.dot {
  height: 46px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--surface); color: var(--text-soft); font-weight: 600; font-size: .95rem;
  cursor: pointer; transition: all .18s var(--ease);
}
.dot:hover { border-color: var(--stone-400); color: var(--text); }
.dot.on { background: var(--inv-bg); color: var(--inv-text); border-color: var(--inv-bg); }
.scale-ends { display: flex; justify-content: space-between; margin-top: 8px; font-size: .74rem; color: var(--text-soft); }

.num-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.num-row + .num-row, .scale-row + .num-row, .num-row + .scale-row {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line);
}
.num-l { font-weight: 600; font-size: .95rem; }
.num-u { color: var(--text-soft); font-weight: 500; margin-left: 6px; font-size: .82rem; }
.stepper { display: flex; align-items: center; gap: 6px; flex: none; }
.stepper .st {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer;
  transition: border-color .18s, background .18s;
}
.stepper .st:hover { border-color: var(--stone-400); background: var(--surface-2); }
.stepper .st svg { width: 16px; height: 16px; }
.stepper input {
  width: 74px; height: 38px; text-align: center; border: 1px solid var(--line);
  border-radius: 10px; background: var(--surface); color: var(--text);
  font-weight: 600; font-variant-numeric: tabular-nums; font-size: .95rem;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input[type=number] { -moz-appearance: textfield; }

.dagcheck-nudge { margin-top: 0; cursor: pointer; transition: transform .2s var(--ease); }
.dagcheck-nudge:hover { transform: translateY(-2px); }

/* ============================================================
   TOTAALBEELD · domeinen
   ============================================================ */
.life-score { display: flex; align-items: center; gap: 18px; }
.life-score .ring-wrap { width: 84px; height: 84px; }
.life-score .ring-wrap .pct { font-size: 1.15rem; font-family: var(--serif); }

.dom-row { display: grid; grid-template-columns: 116px 1fr 34px; align-items: center; gap: 12px; }
.dom-row + .dom-row { margin-top: 14px; }
.dom-l { font-size: .88rem; font-weight: 600; }
.dom-bar { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.dom-bar span { display: block; height: 100%; background: var(--text); border-radius: 999px; transition: width .7s var(--ease); }
.dom-v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; font-size: .88rem; color: var(--text-soft); }

/* ============================================================
   FASES · het pad
   ============================================================ */
.stage-card { display: flex; align-items: center; gap: 18px; cursor: pointer; transition: transform .2s var(--ease); }
.stage-card:hover { transform: translateY(-2px); }
.stage-card .sc-left { flex: none; }
.sc-eyebrow { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-soft); font-weight: 600; }
.sc-name { font-size: 1.5rem; line-height: 1.1; margin-top: 4px; }
.sc-nl { font-size: .82rem; color: var(--text-soft); }
.stage-card .sc-right { flex: 1; min-width: 0; }
.sc-next { font-size: .78rem; color: var(--text-soft); margin-top: 8px; text-align: right; }

.stage-prog { height: 6px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.stage-prog span { display: block; height: 100%; background: var(--gold); border-radius: 999px; transition: width .7s var(--ease); }

.stage-now { text-align: center; }
.stage-now .stage-name { font-size: 2.4rem; line-height: 1; }
.stage-now .stage-nl { font-size: .92rem; color: var(--text-soft); margin-top: 6px; }
.stage-now .stage-line { font-size: 1rem; line-height: 1.6; margin: 16px 0 18px; }
.stage-now .stage-meta { font-size: .8rem; color: var(--text-soft); margin-top: 10px; font-variant-numeric: tabular-nums; }

.stage-item { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); opacity: .5; }
.stage-item:first-child { border-top: 0; padding-top: 0; }
.stage-item.reached { opacity: 1; }
.stage-item.now { opacity: 1; }
.si-dot {
  width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center;
  border: 1px solid var(--line); font-size: .82rem; font-weight: 700; color: var(--text-soft);
}
.stage-item.reached .si-dot { background: var(--inv-bg); color: var(--inv-text); border-color: var(--inv-bg); }
.stage-item.now .si-dot { background: var(--gold); border-color: var(--gold); color: #1a1508; }
.si-dot svg { width: 15px; height: 15px; }
.si-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.si-nl { font-size: .8rem; color: var(--text-soft); }
.si-line { font-size: .88rem; line-height: 1.5; margin-top: 3px; }
.si-unlock { font-size: .76rem; color: var(--text-soft); margin-top: 6px; }

/* ============================================================
   SPIEGEL · inzichten en AI
   ============================================================ */
.insight {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--line);
  border-radius: var(--radius-sm); padding: 18px 20px; margin-bottom: 12px;
}
.insight.good { border-left-color: var(--text); }
.insight.warn { border-left-color: var(--gold); }
.ins-title { font-family: var(--serif); font-size: 1.22rem; margin-bottom: 6px; }
.ins-body { font-size: .92rem; line-height: 1.6; color: var(--text); }
.ins-action { font-size: .88rem; line-height: 1.5; margin-top: 10px; color: var(--text-soft); font-weight: 600; }

.ai-answer { border-color: var(--gold); }
.ai-head { display: flex; align-items: center; gap: 8px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-soft); font-weight: 600; margin-bottom: 12px; }
.ai-head svg { width: 16px; height: 16px; }
.ai-text { font-size: .95rem; line-height: 1.68; }
.ai-text p { margin-bottom: 12px; }

.txt-input {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font-size: .92rem; font-family: var(--sans);
}
.txt-input:focus { outline: none; border-color: var(--stone-400); }
.card textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); resize: vertical; line-height: 1.5; font-family: var(--sans);
}

.track-group + .track-group { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.tg-label { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-soft); font-weight: 600; margin-bottom: 10px; }
.track-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; cursor: pointer; font-size: .92rem; }
.track-row input { width: 20px; height: 20px; accent-color: var(--text); flex: none; }
.track-row span:nth-of-type(1) { flex: 1; }
.tr-u { font-size: .76rem; color: var(--text-soft); }

@media (prefers-reduced-motion: reduce) {
  .mic-btn.rec { animation: none; box-shadow: 0 0 0 3px rgba(201,162,75,.35); }
  .dom-bar span, .stage-prog span { transition: none; }
}

/* ---------- data meenemen ---------- */
.imp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 4px; }
.imp-col { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; }
.imp-col.dim { opacity: .72; }
.imp-h { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-soft); font-weight: 600; margin-bottom: 10px; }
.imp-l { display: flex; justify-content: space-between; gap: 8px; font-size: .8rem; padding: 3px 0; }
.imp-l span { color: var(--text-soft); }
.imp-l b { font-variant-numeric: tabular-nums; text-align: right; }
@media (max-width: 430px) { .imp-cols { grid-template-columns: 1fr; } .modal-actions { flex-wrap: wrap; } }

/* ============================================================
   MORI als tekening — middentoon-grafiet, leesbaar op licht
   én donker. Geen filter: het beeld doet het zelf.
   ============================================================ */
.mori-art { width: 100%; height: auto; display: block; user-select: none; -webkit-user-drag: none; }
.mori-mark .mori-art, .focus-mori-mini .mori-art { width: 100%; }
body.theme-dark .mori-art { filter: brightness(1.08) contrast(1.04); }

/* ============================================================
   De klok — dagen die aftikken
   ============================================================ */

/* strip op Vandaag: het getal nooit verder weg dan één blik */
.days-strip {
  display: flex; align-items: center; gap: 16px; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.days-strip:active { transform: scale(.99); }
.ds-num { font-size: 2.1rem; line-height: 1; letter-spacing: -.01em; }
.ds-txt { flex: 1; min-width: 0; }
.ds-lbl { font-weight: 600; font-size: .95rem; }
.ds-go { width: 22px; height: 22px; color: var(--text-soft); flex: none; }
.ds-go svg { width: 100%; height: 100%; }

/* kaart op MORI */
.counter-card { text-align: center; cursor: pointer; margin-top: 18px; }
.cc-eyebrow {
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-soft); margin-bottom: 10px;
}
.cc-num { font-size: clamp(3rem, 15vw, 4.4rem); line-height: .95; letter-spacing: -.02em; }
.cc-lbl { color: var(--text-soft); margin-top: 4px; font-size: .95rem; }
.cc-meta {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: .78rem; color: var(--text-soft); margin-top: 10px;
}

/* het verbruikte deel van je leven, als één streep */
.life-bar {
  height: 6px; border-radius: 999px; background: var(--surface-2);
  border: 1px solid var(--line); overflow: hidden; margin-top: 16px;
}
.life-bar.big { height: 10px; margin-top: 22px; }
.life-bar > span {
  display: block; height: 100%; background: var(--text);
  transition: width .8s var(--ease);
}

/* het scherm zelf: één getal, groot genoeg om te voelen */
.mortality-hero { text-align: center; padding: 26px 0 8px; }
.tick-num {
  font-size: clamp(3.6rem, 22vw, 6rem); line-height: .92; letter-spacing: -.03em;
}
.tick-num.ticking { animation: tick-in .9s var(--ease) both; }
@keyframes tick-in {
  0%   { opacity: 0; transform: translateY(-14px); }
  60%  { opacity: 1; transform: translateY(2px); }
  100% { opacity: 1; transform: none; }
}
.tick-prev {
  font-size: 1.4rem; color: var(--text-soft); text-decoration: line-through;
  text-decoration-thickness: 1px; opacity: .55;
  animation: tick-out 1s var(--ease) both;
}
@keyframes tick-out {
  0%   { opacity: .9; transform: none; }
  100% { opacity: .35; transform: translateY(-6px); }
}
.tick-lbl { color: var(--text-soft); margin-top: 6px; font-size: 1rem; }
.tick-note { font-size: .82rem; color: var(--text-soft); margin-top: 10px; }
@media (prefers-reduced-motion: reduce) {
  .tick-num.ticking, .tick-prev { animation: none; }
}

/* dagen zijn abstract — deze eenheden niet */
.units { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 8px; }
.unit {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 10px; text-align: center;
}
.u-n { font-size: 1.7rem; line-height: 1; }
.u-l { font-size: .74rem; color: var(--text-soft); margin-top: 6px; letter-spacing: .04em; }

/* ============================================================
   Instellingen — taal en levensduur
   ============================================================ */
.lang-switch {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px;
  overflow: hidden; background: var(--surface-2);
}
.lang-opt {
  border: 0; background: transparent; color: var(--text-soft);
  padding: 8px 14px; font: inherit; font-size: .84rem; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.lang-opt.on { background: var(--inv-bg); color: var(--inv-text); font-weight: 600; }

.age-input { display: inline-flex; align-items: center; gap: 8px; }
.age-input input {
  width: 74px; padding: 8px 10px; text-align: center;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--text); font: inherit;
}
.age-input span { font-size: .82rem; color: var(--text-soft); }

.sel {
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--text); font: inherit;
}

/* Taal- en leeftijdsrij mogen afbreken: op een smal scherm past
   een tekstblok plus een keuzeknop niet naast elkaar. */
.set-row.wrap { flex-wrap: wrap; }
.set-row.wrap > :first-child { flex: 1 1 100%; }
.set-row.wrap .lang-switch,
.set-row.wrap .age-input { flex: 0 0 auto; margin-top: 4px; }
.lang-switch { flex: none; }

/* ============================================================
   LEZEN — de zandloper
   ============================================================ */
.hourglass { width: 100%; height: auto; display: block; }
.hg-glass { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.hg-sand { fill: currentColor; opacity: .9; transition: y .9s linear, height .9s linear; }
.hg-stream {
  stroke: currentColor; stroke-width: 2; stroke-linecap: round;
  opacity: 0; transition: opacity .4s var(--ease);
  animation: hg-fall .5s linear infinite;
}
@keyframes hg-fall { 0% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -12px; } }
.hg-stream { stroke-dasharray: 2 4; }

.hg-wrap { width: min(220px, 56vw); color: var(--marble); }
.hg-wrap.small { width: min(130px, 34vw); }
.hg-wrap.done .hg-sand { transition: none; }

/* in de overlay is alles licht-op-zwart */
.read-overlay .hg-wrap { color: var(--marble); }
.read-book {
  width: min(320px, 82vw); padding: 12px 14px; margin-top: 4px;
  border: 1px solid rgba(255,255,255,.22); border-radius: 12px;
  background: rgba(255,255,255,.06); color: var(--marble);
  font: inherit; font-size: .95rem; text-align: center;
}
.read-book::placeholder { color: rgba(245,244,241,.45); }

/* mini-zandloper in kaarten volgt het thema */
.hg-mini { width: 34px; flex: none; color: var(--text); opacity: .75; }
.hg-mini .hg-sand { transition: none; }

.read-strip, .read-cta { display: flex; align-items: center; gap: 16px; }
.read-strip { cursor: pointer; }
.read-cta .btn { flex: none; }

/* ============================================================
   LEZEN — de jaarplaat
   ============================================================ */
.rd-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.rd-period { font-size: 1.3rem; text-transform: capitalize; }
.rd-nav {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; background: var(--surface);
  color: var(--text); cursor: pointer;
}
.rd-nav svg { width: 18px; height: 18px; }

.rd-scales {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px;
  overflow: hidden; background: var(--surface-2); margin-bottom: 14px;
}
.rd-scale {
  border: 0; background: transparent; color: var(--text-soft);
  padding: 7px 16px; font: inherit; font-size: .82rem; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.rd-scale.on { background: var(--inv-bg); color: var(--inv-text); font-weight: 600; }

.rd-grid { display: grid; gap: 14px 12px; }
.rd-grid.scale-year { grid-template-columns: repeat(3, 1fr); }
.rd-grid.scale-quarter { grid-template-columns: repeat(2, 1fr); }
.rd-grid.scale-month { grid-template-columns: 1fr; }

.rd-month { cursor: pointer; }
.rd-grid.scale-month .rd-month { cursor: default; }
.rd-m-label {
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-soft); margin-bottom: 6px;
}
.rd-cells { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.rd-grid.scale-month .rd-cells { gap: 7px; }

.rd {
  width: 100%; aspect-ratio: 1; border-radius: 3px;
  background: var(--surface-2); border: 1px solid var(--line);
}
.rd-grid.scale-month .rd { border-radius: 7px; }
.rd.lv0 { background: var(--surface-2); }
.rd.lv1 { background: var(--stone-300); border-color: var(--stone-300); }
.rd.lv2 { background: var(--stone-500); border-color: var(--stone-500); }
.rd.lv3 { background: var(--stone-700); border-color: var(--stone-700); }
.rd.lv4 { background: var(--ink); border-color: var(--ink); }
.rd.future { background: transparent; border-style: dashed; opacity: .5; }
.rd.today { box-shadow: 0 0 0 2px var(--gold); }

body.theme-dark .rd.lv0 { background: var(--stone-800); border-color: var(--stone-700); }
body.theme-dark .rd.lv1 { background: var(--stone-700); border-color: var(--stone-700); }
body.theme-dark .rd.lv2 { background: var(--stone-500); border-color: var(--stone-500); }
body.theme-dark .rd.lv3 { background: var(--stone-300); border-color: var(--stone-300); }
body.theme-dark .rd.lv4 { background: var(--marble); border-color: var(--marble); }

.rd-legend {
  display: flex; align-items: center; gap: 5px; margin-top: 16px;
  font-size: .74rem; color: var(--text-soft);
}
.rd-legend i { width: 13px; height: 13px; aspect-ratio: auto; display: inline-block; }
.rd-legend span:first-child { margin-right: 3px; }
.rd-legend span:last-child { margin-left: 3px; }

/* De leeskaart brak op smalle schermen: tekst en knop vochten om
   dezelfde regel. Knop gaat onder de tekst zodra het krap wordt. */
.read-cta { flex-wrap: wrap; }
.read-cta .grow { min-width: 0; }
.read-cta .btn { flex: 1 1 100%; margin-top: 4px; }
@media (min-width: 520px) {
  .read-cta .btn { flex: 0 0 auto; margin-top: 0; }
}

/* ---------- cloud-opslag ---------- */
.sync-state { display: flex; align-items: center; gap: 9px; font-weight: 600; }
.sync-state .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.sync-state.on .dot { background: #4a7c59; box-shadow: 0 0 0 3px rgba(74,124,89,.18); }
.sync-state.off .dot { background: var(--stone-400); box-shadow: 0 0 0 3px rgba(143,143,152,.16); }

/* ============================================================
   DE DAG — checklist en punten
   ============================================================ */
.points-card { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.points-card .row { flex: 1 1 100%; }
@media (min-width: 520px) { .points-card .row { flex: 0 0 auto; } }
.btn.sm { padding: 8px 14px; font-size: .82rem; }
.btn.sm svg { width: 14px; height: 14px; vertical-align: -2px; }

.intention { background: var(--surface-2); }

.checklist { padding-top: 6px; padding-bottom: 6px; }
.check-wrap { display: flex; align-items: stretch; gap: 8px; }
.check-wrap .check-row { flex: 1; }

.check-row {
  display: flex; align-items: center; gap: 13px; width: 100%;
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 13px 0; font: inherit; color: var(--text); text-align: left; cursor: pointer;
}
.check-row:last-child { border-bottom: 0; }
.cr-box {
  width: 26px; height: 26px; flex: none; border-radius: 9px;
  border: 1.5px solid var(--line); display: grid; place-items: center;
  color: transparent; transition: all .18s var(--ease);
}
.cr-box svg { width: 15px; height: 15px; }
.check-row.on .cr-box { background: var(--inv-bg); border-color: var(--inv-bg); color: var(--inv-text); }
.check-row.on .cr-t { text-decoration: line-through; color: var(--text-soft); }
.cr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cr-t { font-weight: 600; font-size: .95rem; }
.cr-s { font-size: .78rem; color: var(--text-soft); }
.cr-pts { font-size: .76rem; color: var(--text-soft); flex: none; font-variant-numeric: tabular-nums; }
.check-row.big .cr-t { font-family: var(--serif); font-size: 1.15rem; font-weight: 400; }
.check-row.empty .cr-box { border-style: dashed; color: var(--text-soft); }
.cr-timer {
  flex: none; width: 40px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface-2); color: var(--text); cursor: pointer; display: grid; place-items: center;
}
.cr-timer svg { width: 14px; height: 14px; }

.food-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 4px; }
.chips.tight { gap: 6px; }
.chips.tight .chip { padding: 7px 12px; font-size: .8rem; }

.mit-input { font-family: var(--serif); font-size: 1.15rem; }
.dots.wide { flex-wrap: wrap; gap: 5px; }
.dots.wide .dot { width: 30px; height: 30px; font-size: .78rem; }

/* ============================================================
   DOELEN
   ============================================================ */
.goals-remind { cursor: pointer; }
.goals-remind.empty { text-align: center; }
.gr-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.gr-left { font-size: .76rem; color: var(--text-soft); }
.gr-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 9px; }
.gr-list li { font-size: .92rem; display: grid; gap: 5px; }
.gr-bar { display: block; height: 3px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.gr-bar > span { display: block; height: 100%; background: var(--gold); }
.gr-horizon { font-size: .84rem; color: var(--text-soft); margin-top: 6px; line-height: 1.5; }
.gr-horizon b { color: var(--text); font-weight: 600; }

.qc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.qc-left { font-size: .76rem; color: var(--text-soft); }
.q-goal { margin-bottom: 14px; }
.q-prog { display: flex; align-items: center; gap: 10px; margin-top: 7px; }
.q-prog input[type="range"] { flex: 1; accent-color: var(--text); }
.q-pct { font-size: .78rem; color: var(--text-soft); width: 38px; text-align: right; font-variant-numeric: tabular-nums; }
.qc-avg { font-size: .82rem; color: var(--text-soft); border-top: 1px solid var(--line); padding-top: 11px; }

/* ============================================================
   LEVENSWIEL
   ============================================================ */
.wheel-card { text-align: center; }
.life-wheel { width: 100%; height: auto; max-width: 360px; margin: 0 auto; display: block; }
.wh-ring { fill: none; stroke: var(--line); stroke-width: 1; }
.wh-spoke { stroke: var(--line); stroke-width: 1; }
.wh-shape { fill: var(--text); fill-opacity: .12; stroke: var(--text); stroke-width: 2; stroke-linejoin: round; }
.wh-dot { fill: var(--text); }
.wh-label { font-size: 10px; fill: var(--text-soft); font-family: var(--sans); letter-spacing: .02em; }
.wh-avg { font-size: .84rem; color: var(--text-soft); margin-top: 10px; }

/* gewoonteplaten */
.habit-track { padding: 12px 0; border-bottom: 1px solid var(--line); }
.habit-track:last-child { border-bottom: 0; }
.ht-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 7px; }
.ht-name { font-weight: 600; font-size: .9rem; }
.ht-streak { font-size: .78rem; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.habit-cells { grid-template-columns: repeat(26, 1fr); gap: 2px; }

/* De timerknop stond de hele rijhoogte uit te rekken. */
.cr-timer { align-self: center; height: 40px; }
/* Rijen zitten nu in een wrapper, dus :last-child greep de streep niet meer. */
.checklist .check-wrap:last-of-type .check-row { border-bottom: 0; }
.checklist .divider + .check-wrap .check-row { border-top: 0; }
