/* Studiemaat: donker, game-stijl, neongroen. Leesbaar bij dyslexie (Lexend, ruime regels, geen lange hoofdletterzinnen). */
:root {
  --bg: #0A120E; --bg2: #0F1A15; --card: #13221A; --card2: #192C22; --ink: #EAF6EF; --soft: #B3CBBE; --muted: #74917F;
  --line: #233A2D; --neon: #3DDC84; --neon-ink: #04140B; --cyan: #22D3EE; --glow: 0 0 0 1px rgba(61, 220, 132, .35), 0 0 18px rgba(61, 220, 132, .25);
  --taak: #4EA8FF; --toets: #FF9F43; --examen: #B07CFF; --mee: #2DD4BF; --danger: #FF5A5F; --gold: #FFB020;
  --storm: #FF7A45; --mist: #8EA4BC; --zone: #3DDC84;
  --r: 18px; --fs: 17px; color-scheme: dark;
  --tt-face: #0E1913; --tt-tick: #C9DDD1; --tt-bezel: #1B2E24;
}
:root[data-theme="light"] {
  --bg: #EEF4F0; --bg2: #E2ECE6; --card: #FFFFFF; --card2: #F5FAF7; --ink: #0F1E17; --soft: #3F5649; --muted: #6A8274;
  --line: #CFE0D6; --neon: #12A85A; --neon-ink: #FFFFFF; --cyan: #0891B2; --glow: 0 0 0 1px rgba(18, 168, 90, .35), 0 6px 18px rgba(18, 168, 90, .18);
  --taak: #1F6FCC; --toets: #D9700F; --examen: #7C4DDB; --mee: #0F9488; color-scheme: light;
  --tt-face: #FFFFFF; --tt-tick: #1D2B22; --tt-bezel: #DCE7E0;
}
* { box-sizing: border-box; }
html { font-size: var(--fs); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Lexend', system-ui, sans-serif; line-height: 1.5; min-height: 100vh; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; font-weight: 700; }
h1 { font-size: 1.45rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; }
p { margin: 0 0 .8em; }
a { color: var(--neon); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mono, .num { font-family: 'Chakra Petch', 'Lexend', system-ui, sans-serif; }
.label { font-family: 'Chakra Petch', system-ui, sans-serif; font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.app { max-width: 560px; margin: 0 auto; padding: 0 16px calc(96px + env(safe-area-inset-bottom)); }
.row { display: flex; gap: 10px; align-items: center; } .wrap { flex-wrap: wrap; } .grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); } .soft { color: var(--soft); } .small { font-size: .85rem; } .center { text-align: center; }
.mt { margin-top: 14px; } .mb0 { margin-bottom: 0; }
.sec { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 2px 10px; }

/* ---------- HUD ---------- */
.hud { position: sticky; top: 0; z-index: 20; background: linear-gradient(var(--bg) 80%, transparent); padding: calc(10px + env(safe-area-inset-top)) 0 12px; display: flex; gap: 12px; align-items: center; }
.hud .av { width: 52px; height: 52px; border-radius: 16px; background: var(--card2); border: 2px solid var(--neon); box-shadow: var(--glow); overflow: hidden; display: grid; place-items: center; flex: none; text-decoration: none; }
.hud .av svg { width: 64px; height: 44px; }
.hud .meta { flex: 1; min-width: 0; text-decoration: none; color: inherit; }
.hud .meta .top { display: flex; justify-content: space-between; align-items: baseline; }
.hud .lvl { font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: 1.05rem; }
.hud .coins { font-family: 'Chakra Petch', sans-serif; font-weight: 700; color: var(--gold); }
.xp { height: 8px; border-radius: 8px; background: var(--card2); overflow: hidden; margin-top: 6px; }
.xp i { display: block; height: 100%; background: linear-gradient(90deg, var(--neon), var(--cyan)); box-shadow: 0 0 10px var(--neon); border-radius: 8px; }
.hud .date { font-size: .78rem; color: var(--muted); }
.drop-badge { background: var(--gold); color: #1A1200; border-radius: 10px; padding: 1px 8px; font-size: .75rem; font-weight: 800; margin-left: 6px; }

/* ---------- navigatie ---------- */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--bg2); border-top: 1px solid var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
.nav .in { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; }
.nav a { text-decoration: none; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .7rem; padding: 6px 0; border-radius: 14px; min-height: 56px; justify-content: center; font-weight: 600; }
.nav a .i { font-size: 1.4rem; line-height: 1; opacity: .7; }
.nav a.on { color: var(--neon); } .nav a.on .i { opacity: 1; }
.nav a.plus .i { width: 58px; height: 58px; border-radius: 18px; background: var(--neon); color: var(--neon-ink); display: grid; place-items: center; font-size: 2rem; margin-top: -24px; box-shadow: var(--glow); opacity: 1; font-weight: 700; }

/* ---------- basis ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin: 0 0 12px; }
.card.hl { border-color: var(--neon); box-shadow: var(--glow); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 10px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--card2); color: var(--ink); font-weight: 700; cursor: pointer; text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn.go { background: var(--neon); border-color: var(--neon); color: var(--neon-ink); box-shadow: var(--glow); }
.btn.big { min-height: 62px; font-size: 1.08rem; width: 100%; }
.btn.full { width: 100%; }
.btn.ghost { background: transparent; }
.btn.warn { background: var(--storm); border-color: var(--storm); color: #1A0800; }
.btn.small { min-height: 40px; padding: 6px 12px; font-size: .86rem; border-radius: 12px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btns { display: grid; gap: 10px; } .btns.two { grid-template-columns: 1fr 1fr; } .btns.three { grid-template-columns: 1fr 1fr 1fr; }
.ib { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card2); display: inline-grid; place-items: center; font-size: 1.1rem; cursor: pointer; flex: none; color: var(--ink); text-decoration: none; }
.ib.say { width: 38px; height: 38px; font-size: .95rem; }
.tag { display: inline-flex; align-items: center; gap: 5px; border-radius: 8px; padding: 2px 8px; font-size: .74rem; font-weight: 800; font-family: 'Chakra Petch', sans-serif; letter-spacing: .04em; text-transform: uppercase; background: var(--card2); color: var(--soft); }
.tag.taak { color: var(--taak); background: color-mix(in srgb, var(--taak) 15%, transparent); }
.tag.toets { color: var(--toets); background: color-mix(in srgb, var(--toets) 15%, transparent); }
.tag.examen { color: var(--examen); background: color-mix(in srgb, var(--examen) 15%, transparent); }
.tag.meebrengen { color: var(--mee); background: color-mix(in srgb, var(--mee) 15%, transparent); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--card2); border-radius: 12px; padding: 8px 12px; cursor: pointer; font-size: .9rem; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.chip.on { background: var(--neon); border-color: var(--neon); color: var(--neon-ink); }
.chip.add { border-style: dashed; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; } .tiles.four { grid-template-columns: repeat(4, 1fr); } .tiles.three { grid-template-columns: repeat(3, 1fr); }
.tile { border: 1px solid var(--line); background: var(--card2); border-radius: 14px; padding: 12px 6px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-weight: 700; font-size: .85rem; min-height: 80px; justify-content: center; color: var(--ink); text-decoration: none; }
.tile .e { font-size: 1.7rem; line-height: 1; } .tile small { font-weight: 400; color: var(--muted); font-size: .72rem; }
.tile.on { border-color: var(--neon); background: color-mix(in srgb, var(--neon) 14%, var(--card2)); box-shadow: var(--glow); }
.field { margin: 0 0 16px; } .field > label, .lbl { display: block; font-weight: 700; margin: 0 0 8px; }
.input { width: 100%; min-height: 50px; border-radius: 12px; border: 1px solid var(--line); background: var(--card2); padding: 10px 14px; font-size: 1rem; color: var(--ink); }
textarea.input { min-height: 110px; resize: vertical; }
.input:focus { outline: 2px solid var(--neon); border-color: var(--neon); }
.need { animation: need 1s ease 2; border-radius: 14px; }
@keyframes need { 50% { box-shadow: 0 0 0 3px var(--danger); } }

/* ---------- deadlines (wanneer het moet) ---------- */
.dlrow { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -2px; scrollbar-width: none; }
.dlrow::-webkit-scrollbar { display: none; }
.dl { flex: none; min-width: 150px; background: transparent; border: 1px dashed var(--line); border-radius: 14px; padding: 10px 12px 10px 16px; cursor: pointer; position: relative; }
.dl::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 4px; background: var(--c, var(--muted)); }
.dl .n { font-family: 'Chakra Petch', sans-serif; font-size: 1.7rem; font-weight: 700; line-height: 1; margin-top: 4px; }
.dl .n small { font-size: .8rem; color: var(--muted); font-weight: 600; }
.dl.ready { border-style: solid; border-color: color-mix(in srgb, var(--neon) 50%, var(--line)); }
.flag { display: flex; align-items: center; gap: 8px; border-radius: 10px; padding: 7px 10px; margin: 0 0 6px; font-weight: 700; font-size: .88rem; cursor: pointer; border: 1px dashed var(--c, var(--line)); }

/* ---------- missies (wat je moet doen) ---------- */
.mission { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 12px 12px 16px; margin: 0 0 10px; display: flex; gap: 12px; align-items: center; cursor: pointer; position: relative; overflow: hidden; }
.mission::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c, var(--neon)); }
.mission .t { font-weight: 700; line-height: 1.3; }
.mission .s { font-size: .8rem; color: var(--muted); }
.mission .chk { width: 42px; height: 42px; border-radius: 12px; border: 2px solid var(--c, var(--neon)); background: transparent; flex: none; display: grid; place-items: center; cursor: pointer; font-size: 1.1rem; color: var(--neon-ink); }
.mission.done { opacity: .5; } .mission.done .chk { background: var(--neon); border-color: var(--neon); } .mission.done .t { text-decoration: line-through; }
.hero { border: 1px solid var(--neon); box-shadow: var(--glow); border-radius: 20px; padding: 16px; margin: 0 0 12px; background: linear-gradient(160deg, color-mix(in srgb, var(--neon) 10%, var(--card)), var(--card)); }
.hero .what { font-size: 1.35rem; font-weight: 700; line-height: 1.25; margin: 6px 0 4px; }
.for { font-size: .85rem; color: var(--soft); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.blocks { display: flex; gap: 5px; flex-wrap: wrap; }
.blocks i { width: 22px; height: 22px; border-radius: 6px; background: var(--card2); border: 1px solid var(--line); }
.blocks i.done { background: var(--neon); border-color: var(--neon); box-shadow: 0 0 8px var(--neon); }
.notice { background: var(--card2); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin: 0 0 12px; display: flex; gap: 10px; align-items: center; }
.notice .e { font-size: 1.4rem; } .notice.warn { border-color: color-mix(in srgb, var(--toets) 60%, var(--line)); }
.legend { display: flex; gap: 14px; font-size: .8rem; color: var(--muted); margin: 0 2px 12px; flex-wrap: wrap; }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.legend .sq { width: 12px; height: 12px; border-radius: 3px; background: var(--neon); }
.legend .fl { width: 12px; height: 12px; border-radius: 3px; border: 1px dashed var(--soft); }

/* ---------- week ---------- */
.day { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; margin: 0 0 10px; }
.day.today { border-color: var(--neon); box-shadow: var(--glow); }
.day h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: .98rem; }
.meter { display: flex; gap: 3px; } .meter i { width: 11px; height: 11px; border-radius: 3px; background: var(--card2); border: 1px solid var(--line); }
.meter i.f { background: var(--neon); border-color: var(--neon); } .meter i.o { background: var(--danger); border-color: var(--danger); }
.pill { display: flex; align-items: center; gap: 8px; border-radius: 10px; padding: 7px 10px; margin: 0 0 6px; font-size: .88rem; background: var(--card2); border-left: 4px solid var(--c, var(--neon)); cursor: pointer; }
.pill.done { opacity: .5; text-decoration: line-through; }

/* ---------- plan aanpassen ---------- */
.prow { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.prow:last-child { border-bottom: 0; }
.prow .d { width: 6.4em; font-weight: 700; }
.prow .b { flex: 1; display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.prow .b i { width: 16px; height: 16px; border-radius: 4px; background: var(--neon); }
.prow .b em { font-style: normal; font-size: .8rem; color: var(--muted); margin-left: 4px; }
.prow.dl-day .d { color: var(--toets); }

/* ---------- onderblad ---------- */
.veil { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 560px; background: var(--card); border-radius: 22px 22px 0 0; padding: 10px 16px calc(18px + env(safe-area-inset-bottom)); max-height: 88vh; overflow: auto; border-top: 1px solid var(--line); animation: up .18s ease-out; }
.sheet .grab { width: 44px; height: 5px; border-radius: 4px; background: var(--line); margin: 4px auto 12px; }
@keyframes up { from { transform: translateY(30px); opacity: .6; } to { transform: none; opacity: 1; } }
.daypick { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.daypick button { flex: none; min-width: 62px; min-height: 62px; border-radius: 12px; border: 1px solid var(--line); background: var(--card2); cursor: pointer; font-weight: 700; line-height: 1.2; color: var(--ink); }
.daypick button small { display: block; font-weight: 400; font-size: .7rem; color: var(--muted); }
.daypick button.on { background: var(--neon); color: var(--neon-ink); border-color: var(--neon); } .daypick button.on small { color: var(--neon-ink); }
.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 14px; z-index: 60; font-weight: 700; max-width: calc(100% - 32px); text-align: center; animation: up .2s ease-out; }
.pop { position: fixed; left: 50%; top: 36%; transform: translate(-50%, -50%); z-index: 70; pointer-events: none; text-align: center; animation: pop 1.6s ease-out forwards; }
.pop b { display: block; font-family: 'Chakra Petch', sans-serif; font-size: 2.6rem; color: var(--neon); text-shadow: 0 0 18px var(--neon); }
.pop div { font-weight: 700; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px; display: inline-block; }
.pop.lvl b { color: var(--gold); text-shadow: 0 0 22px var(--gold); font-size: 3rem; }
@keyframes pop { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.8); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } 25% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -62%); } }

/* ---------- Time Timer ---------- */
.ttwrap { width: min(80vw, 330px); margin: 8px auto 6px; touch-action: none; }
.tt { width: 100%; height: auto; display: block; }
.tt-bezel { fill: var(--tt-bezel); } .tt-face { fill: var(--tt-face); }
.tt-tick { stroke: var(--tt-tick); stroke-width: 1; opacity: .55; } .tt-tick.big { stroke-width: 2.4; opacity: .9; }
.tt-num { fill: var(--tt-tick); font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: 13px; text-anchor: middle; }
.tt-knob { fill: var(--tt-bezel); stroke: var(--tt-tick); stroke-width: 1.5; }
.ttime { font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: 2.6rem; text-align: center; line-height: 1; font-variant-numeric: tabular-nums; }
.steps label { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--card2); margin: 0 0 8px; cursor: pointer; font-weight: 600; }
.steps input { width: 24px; height: 24px; accent-color: var(--neon); flex: none; }

/* ---------- collectie ---------- */
.cgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cc { background: var(--card); border: 2px solid var(--rc, var(--line)); border-radius: 14px; padding: 6px 6px 8px; cursor: pointer; text-align: center; position: relative; color: var(--ink); }
.cc .art { width: 100%; height: auto; display: block; }
.cc .nm { font-size: .72rem; font-weight: 700; line-height: 1.2; min-height: 2.4em; display: flex; align-items: center; justify-content: center; }
.cc.lock { border-color: var(--line); } .cc.lock .nm { color: var(--muted); }
.cc.avatar { box-shadow: 0 0 0 2px var(--neon), 0 0 16px var(--neon); }
.cc .rr { position: absolute; top: 6px; left: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--rc); box-shadow: 0 0 8px var(--rc); }
.bigcard { border: 2px solid var(--rc); border-radius: 20px; padding: 12px; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--rc) 25%, var(--card)), var(--card)); box-shadow: 0 0 24px color-mix(in srgb, var(--rc) 45%, transparent); }
.bigcard .art { width: 100%; height: auto; }
.stat { display: flex; align-items: center; gap: 8px; font-size: .82rem; margin: 4px 0; }
.stat span { width: 6.5em; color: var(--soft); }
.stat i { flex: 1; height: 8px; border-radius: 6px; background: var(--card2); overflow: hidden; }
.stat i b { display: block; height: 100%; background: var(--rc); }
.drop { border: 1px solid var(--gold); box-shadow: 0 0 18px rgba(255, 176, 32, .3); border-radius: 18px; padding: 14px; margin: 0 0 14px; background: color-mix(in srgb, var(--gold) 8%, var(--card)); }
.reveal { animation: reveal .7s ease-out; }
@keyframes reveal { 0% { transform: scale(.6) rotateY(90deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 100px; }
.bars div { flex: 1; text-align: center; font-size: .7rem; color: var(--muted); display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.bars div i { display: block; background: var(--neon); border-radius: 6px 6px 2px 2px; margin: 0 auto 4px; width: 100%; max-width: 30px; min-height: 3px; }

/* ---------- rust ---------- */
.sos { width: 100%; border: 0; border-radius: 20px; padding: 18px; cursor: pointer; text-align: left; color: #1A0800; background: linear-gradient(135deg, #FF7A45, #FFB020); display: flex; gap: 14px; align-items: center; box-shadow: 0 0 22px rgba(255, 122, 69, .35); }
.sos .e { font-size: 2.4rem; } .sos b { font-size: 1.3rem; display: block; }
.zone { display: grid; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.zone > div { padding: 12px 14px; display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; }
.zone .e { font-size: 1.6rem; line-height: 1.1; }
.zone .z-storm { background: color-mix(in srgb, var(--storm) 16%, var(--card)); }
.zone .z-zone { background: color-mix(in srgb, var(--zone) 14%, var(--card)); }
.zone .z-mist { background: color-mix(in srgb, var(--mist) 16%, var(--card)); }
.weer { display: grid; gap: 12px; }
.weer button { border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: flex; gap: 14px; align-items: flex-start; text-align: left; background: var(--card); cursor: pointer; color: var(--ink); }
.weer button .e { font-size: 2.2rem; line-height: 1; } .weer button b { font-size: 1.15rem; display: block; margin-bottom: 2px; }
.weer button.storm { border-color: var(--storm); } .weer button.mist { border-color: var(--mist); } .weer button.zon { border-color: var(--zone); }
.tool-stage { text-align: center; }
.breath { width: min(64vw, 260px); height: min(64vw, 260px); margin: 8px auto; position: relative; display: grid; place-items: center; }
.breath .orb { width: 36%; height: 36%; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--cyan), var(--neon)); box-shadow: 0 0 30px var(--neon); transition-property: width, height; transition-timing-function: ease-in-out; }
.breath .ring0 { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed var(--line); }
.cue { font-size: 1.4rem; font-weight: 700; min-height: 2.1em; }
.count { font-family: 'Chakra Petch', sans-serif; font-size: 4rem; font-weight: 700; line-height: 1; }
.taps { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 10px 0; }
.taps button { width: 56px; height: 56px; border-radius: 16px; border: 2px solid var(--neon); background: var(--card2); font-size: 1.3rem; cursor: pointer; color: var(--neon-ink); }
.taps button.on { background: var(--neon); }
.toolgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stars { color: var(--gold); letter-spacing: 1px; }
.body-map svg { width: 170px; height: 290px; display: block; margin: 0 auto; }
.body-map .zone-b { fill: var(--card2); stroke: var(--line); stroke-width: 2; cursor: pointer; }
.body-map .zone-b.on { fill: var(--storm); stroke: var(--storm); }
details.fold { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); margin: 0 0 12px; }
details.fold summary { padding: 14px 16px; font-weight: 700; cursor: pointer; list-style: none; display: flex; gap: 10px; align-items: center; min-height: 54px; }
details.fold summary::-webkit-details-marker { display: none; }
details.fold summary::after { content: '+'; margin-left: auto; color: var(--muted); font-size: 1.3rem; }
details.fold[open] summary::after { content: '−'; }
details.fold .in { padding: 0 16px 14px; }
.photo-prev { display: flex; gap: 8px; flex-wrap: wrap; } .photo-prev img { width: 80px; height: 80px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.progress { height: 10px; border-radius: 8px; background: var(--card2); overflow: hidden; } .progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--neon), var(--cyan)); width: 0; transition: width .3s; }
.irow { display: flex; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin: 0 0 8px; border-left: 5px solid var(--c, var(--line)); }
.irow.off { opacity: .45; } .irow.bad { border-color: var(--danger); }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
:root[data-calm="1"] * { animation: none !important; transition: none !important; }

/* ================= FLEX: kleuren met betekenis ================= */
:root { --k-toets: #B07CFF; --k-studie: #4EA8FF; --k-huis: #FF9F43; --k-mee: #2DD4BF; }
:root[data-theme="light"] { --k-toets: #7C4DDB; --k-studie: #1F6FCC; --k-huis: #D9700F; --k-mee: #0F9488; }
.tag.t-toets { color: var(--k-toets); background: color-mix(in srgb, var(--k-toets) 16%, transparent); }
.tag.t-huiswerk { color: var(--k-huis); background: color-mix(in srgb, var(--k-huis) 16%, transparent); }
.tag.t-mee { color: var(--k-mee); background: color-mix(in srgb, var(--k-mee) 16%, transparent); }
.w-studie { --kc: var(--k-studie); } .w-huiswerk { --kc: var(--k-huis); } .w-mee { --kc: var(--k-mee); }
.s-toets { --kc: var(--k-toets); } .s-huiswerk { --kc: var(--k-huis); } .s-mee { --kc: var(--k-mee); }
.tile.t-toets.on { border-color: var(--k-toets); box-shadow: 0 0 0 1px var(--k-toets); background: color-mix(in srgb, var(--k-toets) 14%, var(--card2)); }
.tile.t-huiswerk.on { border-color: var(--k-huis); box-shadow: 0 0 0 1px var(--k-huis); background: color-mix(in srgb, var(--k-huis) 14%, var(--card2)); }
.tile.t-mee.on { border-color: var(--k-mee); box-shadow: 0 0 0 1px var(--k-mee); background: color-mix(in srgb, var(--k-mee) 14%, var(--card2)); }

/* Mijn werk: gevulde kaart in de kleur van het soort werk */
.wcard { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-start; background: color-mix(in srgb, var(--kc) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--kc) 45%, var(--line)); border-left: 6px solid var(--kc); border-radius: 16px; padding: 12px; margin: 0 0 10px; }
.wcard.big { box-shadow: 0 0 18px color-mix(in srgb, var(--kc) 30%, transparent); }
.wcard .grow { cursor: pointer; }
.wcard .label { color: var(--kc); }
.wcard .t { font-weight: 700; font-size: 1.08rem; line-height: 1.3; }
.wcard.big .t { font-size: 1.25rem; }
.wcard .s { font-size: .82rem; color: var(--soft); margin-top: 2px; }
.wcard.done { opacity: .5; } .wcard.done .t { text-decoration: line-through; }
.wico { width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--kc) 22%, var(--card2)); display: grid; place-items: center; font-size: 1.4rem; flex: none; }
.wact { flex-basis: 100%; display: flex; gap: 8px; align-items: center; }
.wact .btn { flex: 1; min-height: 50px; }
.stdone { font-size: 1.4rem; color: var(--neon); }
.wcard .chk { border-color: var(--kc); }
/* Op school: vaste gebeurtenis, stippellijn, niet verschuifbaar */
.scard { display: flex; gap: 12px; align-items: center; border: 2px dashed var(--kc); border-radius: 16px; padding: 12px; margin: 0 0 10px; background: transparent; cursor: pointer; }
.scard .label { color: var(--kc); } .scard .t { font-weight: 800; font-size: 1.1rem; } .scard .s { font-size: .82rem; color: var(--soft); }
.scard .wico { background: color-mix(in srgb, var(--kc) 22%, var(--card2)); }
.dl.s-toets::before, .dl.s-huiswerk::before, .dl.s-mee::before { background: var(--kc); }
.dl { border-color: color-mix(in srgb, var(--kc, var(--line)) 50%, var(--line)); }

.daysel { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.daysel button { flex: none; min-width: 58px; min-height: 54px; border-radius: 12px; border: 1px solid var(--line); background: var(--card2); color: var(--ink); font-weight: 700; cursor: pointer; line-height: 1.1; }
.daysel button small { display: block; font-weight: 400; font-size: .75rem; color: var(--muted); }
.daysel button.on { background: var(--neon); color: var(--neon-ink); border-color: var(--neon); } .daysel button.on small { color: var(--neon-ink); }

/* agenda */
.cap { height: 6px; border-radius: 4px; background: var(--card2); overflow: hidden; margin: -2px 0 10px; }
.cap i { display: block; height: 100%; background: var(--neon); border-radius: 4px; }
.pill { border-left: 5px solid var(--kc, var(--neon)); background: color-mix(in srgb, var(--kc, var(--neon)) 10%, var(--card2)); }
.pill.fixed { border: 2px dashed var(--kc, var(--line)); background: transparent; font-weight: 600; }
.pill .handle { cursor: grab; touch-action: none; padding: 8px 6px; margin: -8px 0 -8px -6px; color: var(--muted); font-size: 1.2rem; user-select: none; }
.pill.ghost { position: fixed; z-index: 80; pointer-events: none; opacity: .92; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.pill.dragsrc { opacity: .3; }
.day.dropok { outline: 3px solid var(--neon); } .day.dropbad { outline: 3px solid var(--danger); }
.legend .lg { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.legend .lg.t-toets { border: 2px dashed var(--k-toets); }
.legend .lg.w-studie { background: var(--k-studie); } .legend .lg.w-huiswerk { background: var(--k-huis); } .legend .lg.w-mee { background: var(--k-mee); }

/* herplannen en plan */
.hrow { display: flex; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--kc, var(--line)); border-radius: 14px; padding: 10px; margin: 0 0 8px; color: var(--ink); font: inherit; }
.hrow.on { border-color: var(--neon); } .hrow.bad { border-color: var(--danger); }
.ib.sel { background: var(--neon); color: var(--neon-ink); border-color: var(--neon); }
.ib.ghost { background: transparent; border-color: transparent; }
.mins { display: flex; align-items: center; gap: 6px; } .mins b { min-width: 2.2em; text-align: center; font-family: 'Chakra Petch', sans-serif; font-size: 1.15rem; }
.prow2 { display: flex; gap: 10px; align-items: center; border-left: 5px solid var(--kc); background: color-mix(in srgb, var(--kc) 8%, var(--card)); border-radius: 12px; padding: 10px; margin: 0 0 8px; }
.prow2 .t { font-weight: 700; margin-bottom: 6px; cursor: pointer; } .prow2.done { opacity: .5; }
.chip.small { min-height: 34px; padding: 4px 10px; font-size: .8rem; }
.irow.s-toets, .irow.s-huiswerk, .irow.s-mee { border-left-color: var(--kc); }

/* Kroko: het ei */
.eggwrap { width: min(62vw, 250px); margin: 6px auto 0; }
.egg { width: 100%; height: auto; display: block; }
.egg.wobble { animation: wob 6s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes wob { 0%, 90%, 100% { transform: rotate(0); } 93% { transform: rotate(-3deg); } 96% { transform: rotate(3deg); } }
.hatch { position: relative; width: min(70vw, 280px); margin: 0 auto; }
.hatch-card { width: 86%; margin: 0 auto -38%; position: relative; z-index: 2; animation: rise 1s ease-out; filter: drop-shadow(0 0 16px rgba(61,220,132,.5)); }
.hatch-card .art { width: 100%; height: auto; }
.hatch .shell-top { animation: lift .8s ease-out; }
@keyframes rise { from { transform: translateY(40%) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lift { from { transform: translate(30px, 60px) rotate(24deg); } to { transform: none; } }

/* rust */
.sitgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sit { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 92px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--storm) 40%, var(--line)); background: color-mix(in srgb, var(--storm) 8%, var(--card)); color: var(--ink); text-decoration: none; font-weight: 700; font-size: .85rem; text-align: center; padding: 8px 4px; }
.sit .e { font-size: 2rem; line-height: 1; }
.bfig { width: min(56vw, 220px); height: min(56vw, 220px); margin: 6px auto; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--neon) 18%, transparent), transparent 70%); }
.bring { width: 78%; transition-property: transform; transition-timing-function: ease-in-out; transform: scale(.82); }
.bring .art { width: 100%; height: auto; }
.bword { font-family: 'Chakra Petch', sans-serif; font-size: 2.1rem; font-weight: 700; color: var(--neon); letter-spacing: .06em; min-height: 1.2em; }
.bnum { font-family: 'Chakra Petch', sans-serif; font-size: 3.6rem; font-weight: 700; line-height: 1; min-height: 1em; }
.z5 { text-align: left; }
.z5row { display: flex; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px; margin: 0 0 8px; }
.z5row.full { border-color: var(--neon); }
.z5e { font-size: 2rem; } .z5d { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.zd { width: 40px; height: 40px; border-radius: 12px; border: 2px solid var(--neon); background: var(--card2); color: var(--neon-ink); font-weight: 700; cursor: pointer; }
.zd.on { background: var(--neon); }
.look { display: flex; justify-content: center; gap: 18px; font-size: 3rem; margin: 6px 0; }
.memebox { position: relative; margin: 14px auto 0; max-width: 320px; background: #000; border-radius: 14px; padding: 8px; }
.memebox .art { width: 100%; height: auto; display: block; }
.memebox .mt1, .memebox .mt2 { font-family: 'Chakra Petch', Impact, sans-serif; font-weight: 700; color: #fff; text-transform: uppercase; text-align: center; font-size: 1.15rem; text-shadow: 2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000; padding: 4px; }
.popupwin { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 6px 0 12px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.popupwin .pbar { background: #3A4552; color: #fff; font-size: .8rem; padding: 6px 10px; display: flex; justify-content: space-between; }
.popupwin .pbody { background: var(--card2); padding: 16px; font-weight: 700; font-size: 1.15rem; }
.scale input[type=range] { width: 100%; accent-color: var(--neon); height: 40px; }
.num.big { font-size: 3.4rem; text-align: center; font-weight: 700; }
.ico { display: inline-grid; place-items: center; }
.ico img { width: 56px; height: 56px; object-fit: contain; }
.ico i { display: none; font-style: normal; }
.ico.noimg img { display: none; } .ico.noimg i { display: inline; }
.sit .ico img { width: 52px; height: 52px; }
.bigico .ico img { width: 72px; height: 72px; } .bigico .ico i { font-size: 2.4rem; }

/* Illustraties (8 nov 2026): groter dan een emoji, want het figuurtje vult maar een deel van het beeld */
.tile .ico img { width: 92px; height: 92px; margin: -6px 0 -4px; }
.sit .ico img { width: 88px; height: 88px; margin: -6px 0 -4px; }
.bigico .ico img { width: 128px; height: 128px; }
