/* ---------- algemeen ---------- */
.muted{color:var(--muted)}
.sp{flex:1}
.nil{color:var(--faint)}
.field.sans,.form .field.sans{font-family:var(--sans)}
.field.sm{height:32px;padding:0 10px;font-size:13px}
.field.search{width:220px}
.btn{white-space:nowrap}
.btn.sm{height:32px;padding:0 11px;font-size:13px;border-radius:9px}
.btn.icon{width:36px;padding:0;justify-content:center}
.btn .ico{width:16px;height:16px}
.btn.danger{color:var(--red)}
.btn.danger:hover{background:var(--red-soft);border-color:transparent}
.btn:disabled{opacity:.45;cursor:not-allowed}
.card-h h2{display:flex;align-items:center;gap:8px}
.card-h h2 .ico{width:16px;height:16px;color:var(--amber)}
.card-h .hint{text-align:right}
.g-2e{grid-template-columns:repeat(2,minmax(0,1fr))}
.g-3s{grid-template-columns:repeat(3,minmax(0,1fr))}

/* ---------- dagboek ---------- */
.diary{min-width:1300px}
.diary td{height:58px;padding:0 8px}
.diary th{padding:12px 8px}
.diary .gh th{padding:12px 8px 0;border-bottom:0;text-transform:uppercase;font-size:10.5px;letter-spacing:.09em;color:var(--faint)}
.diary .gh th span{display:block;padding-bottom:7px;border-bottom:1px solid var(--line-2)}
.diary .c-date{min-width:0;padding-left:20px}
.diary .c-date .dow{width:24px}
.diary tr.is-today .c-date .dt,.diary tr.is-today .c-date .dow{color:var(--accent)}
.diary td input.n{font-size:13px}
.diary td.r input.n{width:64px;margin:0 -8px 0 0}
.diary td.r input[data-f="vet"]{width:50px}
.diary td.meal{max-width:128px}
.diary .slot{min-height:34px}
.diary .slot .nm{max-width:108px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal;font-size:13px;line-height:1.3}
.diary td[data-slot="snacks"] .slot .nm{max-width:86px}
.slot .more{flex:none;font-family:var(--mono);font-size:11px;padding:1px 6px;border-radius:99px;background:var(--surface-3);color:var(--muted)}
.slot.empty .add{display:none;align-items:center;gap:4px}
.slot.empty .add svg{width:13px;height:13px}
tr:hover .slot.empty .add,tr.is-today .slot.empty .add,.slot.empty:focus-visible .add{display:inline-flex}
tr:hover .slot.empty .ph,tr.is-today .slot.empty .ph,.slot.empty:focus-visible .ph{display:none}
.saldo{display:inline-flex;align-items:center;gap:8px}
.saldo i{width:7px;height:7px;border-radius:50%;flex:none}
.diary td.acts{width:1%;white-space:nowrap;text-align:right;padding-right:8px}
.acts>*{vertical-align:middle}
@media (min-width:861px){
  .app{grid-template-columns:212px 1fr}
  .main{padding:36px 32px 72px}
}
.acts .row-del,.t-ico,.note-btn{display:inline-grid;place-items:center;width:26px;height:28px;border-radius:7px;color:var(--faint);transition:background .12s,color .12s,opacity .12s}
.t-ico:hover,.note-btn:hover{background:var(--surface-3);color:var(--text)}
.t-ico .ico,.note-btn .ico,.acts .row-del .ico{width:16px;height:16px}
.note-btn{opacity:0}
tr:hover .note-btn,tr.is-today .note-btn,.note-btn.has,.note-btn:focus-visible{opacity:1}
.note-btn.has{color:var(--amber)}
.diary tr.wk td{height:auto;padding:26px 14px 10px;background:var(--bg);border-bottom:1px solid var(--line)}
.diary tbody tr.wk:first-child td{padding-top:12px}
.diary tbody tr.wk:hover{background:none}
.wk div{position:sticky;left:10px;display:inline-flex;align-items:baseline;gap:12px;flex-wrap:wrap;font-size:12.5px;color:var(--muted)}
.wk b{color:var(--text);font-weight:600;font-size:13px}
.wk em{font-style:normal;font-family:var(--mono);font-size:11.5px;padding:2px 8px;border-radius:99px;background:var(--surface-2);color:var(--muted)}

/* popover: snacks + notitie */
.picked{display:flex;flex-wrap:wrap;gap:6px;padding:10px;border-bottom:1px solid var(--line)}
.picked .muted,.pop .foot .muted{font-size:12.5px;padding:4px 6px}
.note-pop{display:grid;gap:8px;padding:12px}
.note-pop textarea{width:100%;min-height:96px;resize:vertical;padding:10px;border-radius:8px;border:1px solid var(--line-2);background:var(--surface);font:inherit;color:inherit}
.note-pop textarea:focus{outline:none;border-color:var(--accent)}

/* ---------- maaltijden ---------- */
.meal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}
.mcard{padding:0;overflow:hidden}
.mcard-h{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:22px 24px 16px}
.mcard-h h2{display:flex;align-items:center;gap:10px;margin:0;font-size:16px;font-weight:600;letter-spacing:-.01em}
.mcard-h h2 i{width:10px;height:10px;border-radius:3px}
.mcard-h .hint{font-size:12.5px;color:var(--muted);text-align:right}
.mrow{display:grid;grid-template-columns:minmax(0,1fr) 64px 56px 62px 132px;align-items:center;gap:8px;min-height:52px;padding:0 16px 0 20px;border-top:1px solid var(--line);transition:background .12s}
.mrow:hover{background:var(--hover)}
.mrow.mhead,.mrow.mhead:hover{min-height:32px;background:var(--surface-2);font-size:11px;color:var(--faint);text-transform:uppercase;letter-spacing:.05em}
.mrow .r{text-align:right}
.mrow input{width:calc(100% + 8px);min-width:0;height:34px;margin-left:-8px;padding:0 8px;border:1px solid transparent;border-radius:8px;background:transparent;transition:background .12s,border-color .12s}
.mrow input.n{margin:0 -8px 0 0;font-family:var(--mono);font-variant-numeric:tabular-nums;text-align:right}
.mrow input:hover{background:var(--surface-2)}
.mrow input:focus{outline:none;background:var(--surface-2);border-color:var(--accent)}
.mrow input::placeholder{color:var(--faint)}
.used{font-family:var(--mono);font-size:12.5px;color:var(--muted);text-align:right}
.macts{display:flex;justify-content:flex-end;align-items:center;gap:4px;opacity:0;transition:opacity .12s}
.mrow:hover .macts,.macts:focus-within,.macts.show{opacity:1}
.macts .row-del{opacity:1}
select.mini{height:28px;max-width:96px;padding:0 6px;border-radius:7px;border:1px solid var(--line-2);background:var(--surface-2);color:var(--muted);font-size:12px;cursor:pointer}
.mrow.madd{background:var(--hover)}
.madd input::placeholder{color:var(--muted)}
.mempty{padding:16px 20px;border-top:1px solid var(--line);color:var(--faint)}

/* ---------- training ---------- */
.week-dots{display:flex;gap:6px;margin-top:12px}
.wd{flex:1;display:grid;gap:6px;text-align:center}
.wdb{display:flex;gap:2px;height:8px}
.wdb i{flex:1;border-radius:4px;background:var(--surface-3)}
.wd.fut .wdb i{background:transparent;box-shadow:inset 0 0 0 1px var(--line-2)}
.wd small{font-size:11px;color:var(--faint)}
.wd.now small{color:var(--text);font-weight:600}
.last-pr{display:flex;align-items:center;gap:8px;margin-top:16px;font-size:13px;color:var(--muted)}
.last-pr .ico{width:16px;height:16px;color:var(--amber);flex:none}
.last-pr b{color:var(--text);font-weight:500}
.pr-list{display:grid}
.pr{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) 86px 58px;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid var(--line)}
.pr:last-child{border-bottom:0}
.pr-n{display:flex;align-items:center;gap:8px;min-width:0;font-weight:500}
.pr-s{font-family:var(--mono);font-size:12.5px;color:var(--muted)}
.pr-v{font-family:var(--mono);font-weight:600;text-align:right}
.pr-d{font-size:12.5px;color:var(--faint);text-align:right}
.new{font-size:10px;font-weight:600;padding:2px 7px;border-radius:99px;background:var(--amber-soft);color:var(--amber);text-transform:uppercase;letter-spacing:.05em}
.card-h.pad{padding:18px 20px 0;margin-bottom:12px;flex-wrap:wrap}
.tlog{display:grid}
.trow{display:grid;grid-template-columns:92px minmax(0,1fr) 64px 84px 16px;align-items:center;gap:14px;width:100%;padding:12px 16px 12px 20px;border-top:1px solid var(--line);text-align:left;transition:background .12s}
.trow:hover{background:var(--hover)}
.tdt{font-size:13px;color:var(--muted)}
.tdt b{margin-right:4px;color:var(--text);font-weight:500}
.tt{display:flex;align-items:center;gap:12px;min-width:0}
.tt>.ico{flex:none;width:32px;height:32px;padding:7px;border-radius:9px;background:var(--surface-2)}
.tt>span{display:grid;min-width:0}
.tt small{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:12.5px;color:var(--muted)}
.tm,.tx{font-family:var(--mono);font-size:13px;text-align:right;color:var(--muted)}
.tx{color:var(--text)}
.trow>.ico{width:16px;height:16px;color:var(--faint)}

/* modal */
dialog.modal{width:min(640px,calc(100vw - 32px));max-height:calc(100vh - 48px);overflow:auto;padding:0;border:1px solid var(--line-2);border-radius:16px;background:var(--surface);color:var(--text);box-shadow:0 30px 80px var(--shadow)}
dialog.modal::backdrop{background:var(--backdrop);backdrop-filter:blur(3px)}
.mbox{display:grid;gap:18px;padding:22px}
.mbox header{display:flex;align-items:center;justify-content:space-between}
.mbox h2{margin:0;font-size:18px;font-weight:600;letter-spacing:-.01em}
.seg.full{display:flex}
.seg.full button{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:7px}
.seg.full .ico{width:15px;height:15px}
.form.f3{grid-template-columns:repeat(3,minmax(0,1fr))}
.full-l{display:grid;gap:6px;font-size:12.5px;color:var(--muted)}
.full-l .field{width:100%}
.oefs{display:grid;gap:12px}
.oef{padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}
.oef-h{display:flex;gap:8px;margin-bottom:10px}
.oef-h .field{flex:1;background:var(--surface)}
.sets{display:grid;gap:6px;margin-bottom:6px}
.set{display:grid;grid-template-columns:32px 1fr 1fr 36px;gap:8px;align-items:center}
.set.head{font-size:11px;color:var(--faint);text-transform:uppercase;letter-spacing:.05em}
.set .sn{font-family:var(--mono);color:var(--muted);text-align:center}
.set .field{width:100%;height:34px;background:var(--surface);font-family:var(--mono);text-align:right}
.pace{min-height:18px;margin-top:-6px;font-size:13px;color:var(--muted)}
.pace b{font-family:var(--mono);font-weight:500;color:var(--text)}
.mbox footer{display:flex;align-items:center;gap:8px;padding-top:16px;border-top:1px solid var(--line)}

/* ---------- instellingen + export ---------- */
.exp-grid{display:grid;grid-template-columns:1fr 1.15fr;gap:28px}
.checks{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.check{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 12px;border-radius:10px;border:1px solid var(--line-2);background:var(--surface-2);font-size:13.5px;cursor:pointer;transition:border-color .15s,background .15s}
.check:has(input:checked){border-color:var(--accent);background:var(--accent-soft)}
.check input{margin:0;accent-color:var(--accent);cursor:pointer}
.check.plain,.check.plain:has(input:checked){height:auto;margin-top:16px;padding:0;border:0;background:none;color:var(--muted);font-size:13px}
#exSeg{margin-top:10px;flex-wrap:wrap}
.range{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}
.range label{display:grid;gap:6px;font-size:12.5px;color:var(--muted)}
.range .field{width:100%;font-family:var(--mono)}
.exp-foot{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}
.exp-prev{margin-top:14px}
.exp-prev summary{cursor:pointer;font-size:13px;color:var(--muted)}
.exp-prev pre{max-height:320px;overflow:auto;margin:10px 0 0;padding:14px;border-radius:10px;border:1px solid var(--line);background:var(--bg);font:12px/1.55 var(--mono);color:var(--code)}
.field:disabled{color:var(--muted);background:var(--surface-2)}

@media (max-width:1180px){
  .g-2e,.g-3s,.meal-grid,.exp-grid{grid-template-columns:1fr}
}
@media (max-width:860px){
  .form.f3,.range{grid-template-columns:1fr}
  .field.search{width:100%}
  .trow{grid-template-columns:72px minmax(0,1fr) 60px 16px}
  .trow .tm{display:none}
  .pr{grid-template-columns:minmax(0,1fr) 80px 52px}
  .pr-s{display:none}
  .mcard-h{flex-direction:column;gap:2px;padding:16px 16px 12px}
  .mcard-h .hint{text-align:left}
  .mrow{grid-template-columns:minmax(0,1fr) 56px 46px 30px;gap:6px;padding:0 10px 0 16px}
  .mrow .used,.mrow.mhead span:nth-child(4),.macts select{display:none}
  .macts{opacity:1}
  .madd .btn{width:30px;padding:0;justify-content:center;font-size:0;gap:0}
  .nav{gap:0}
  .nav button{flex:1;min-width:0;padding:0 2px}
  .nav button span{max-width:100%;overflow:hidden;text-overflow:ellipsis;font-size:10px}
}

/* ---------- iconen, kleurcodes, legenda ---------- */
.faint{color:var(--faint)}
.dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:7px;flex:none}
.cat-ico{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:8px;background:color-mix(in srgb,var(--c) 15%,transparent);color:var(--c);flex:none}
.cat-ico .ico{width:15px;height:15px}
.qd{display:inline-block;width:8px;height:8px;border-radius:50%;flex:none;background:var(--line-2)}
.qd.q-goed,.qbar .q-goed{background:var(--green)}
.qd.q-oke,.qbar .q-oke{background:var(--amber)}
.qd.q-slecht,.qbar .q-slecht{background:var(--red)}
.qds{display:inline-flex;gap:2px;flex:none}
.fav-mini{display:inline-grid;place-items:center;color:var(--amber);flex:none}
.fav-mini .ico{width:12px;height:12px;fill:currentColor}
.legend-card{display:flex;align-items:center;flex-wrap:wrap;gap:10px 18px;margin-bottom:20px;padding:14px 22px;font-size:12.5px;color:var(--muted)}
.legend-bar{display:flex;align-items:center;flex-wrap:wrap;gap:8px 18px;padding:14px 22px;border-bottom:1px solid var(--line);font-size:12.5px;color:var(--muted);background:var(--surface)}
.lg{display:inline-flex;align-items:center;gap:7px}
.lg .dot{margin:0}
.lg .ico{width:15px;height:15px}
.lg-t{font-size:10.5px;text-transform:uppercase;letter-spacing:.09em;color:var(--faint)}
.lg-sep{width:1px;height:16px;background:var(--line-2)}
.note-ico{display:inline-grid;color:var(--amber)}

/* maaltijden: favorieten + score */
.fav{display:grid;place-items:center;width:26px;height:26px;border-radius:7px;color:var(--faint);transition:color .12s,background .12s,opacity .12s}
.fav .ico{width:16px;height:16px}
.fav:hover{color:var(--amber);background:var(--amber-soft)}
.fav.on{color:var(--amber)}
.fav.on .ico{fill:currentColor}
.mrow:not(.is-fav):not(:hover) .fav:not(:focus-visible){opacity:.45}
.legend-card .fav{width:auto;height:auto;opacity:1}
.fav-filter .ico{width:16px;height:16px}
.fav-filter .cnt{font-family:var(--mono);font-size:11.5px;padding:1px 6px;border-radius:99px;background:var(--surface-3);color:var(--muted)}
.fav-filter.on{border-color:var(--amber);background:var(--amber-soft);color:var(--amber)}
.fav-filter.on .ico{fill:currentColor}
.qual{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 9px;border-radius:99px;font-size:12px;font-weight:500;border:1px solid transparent;white-space:nowrap;transition:filter .12s}
.qual::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.qual.q-goed{background:var(--green-soft);color:var(--green)}
.qual.q-oke{background:var(--amber-soft);color:var(--amber)}
.qual.q-slecht{background:var(--red-soft);color:var(--red)}
.qual.auto{border-style:dashed;border-color:color-mix(in srgb,currentColor 40%,transparent)}
button.qual:hover{filter:brightness(1.25)}
.mrow{grid-template-columns:26px minmax(0,1fr) 58px 50px 78px 56px 120px;padding-left:12px}
.mrow.mhead .ico{width:14px;height:14px;vertical-align:-2px}
.mcard-h{align-items:center}
.mcard-h h2{gap:10px}
.mstats{display:flex;gap:14px;font-family:var(--mono);font-size:13px;color:var(--text)}
.mstats>span{display:inline-flex;align-items:center;gap:5px}
.mstats .ico{width:14px;height:14px;color:var(--faint)}
.mstats small{color:var(--muted);font-size:11px;margin-left:1px}
.qbar{display:flex;gap:2px;height:3px;margin:0 24px 14px;border-radius:99px;overflow:hidden;background:var(--surface-3)}
.qbar i{display:block}
.qopt{display:inline-flex;align-items:center;gap:9px;min-width:0}
.qopt>span{display:grid}
.qopt small{font-family:var(--sans)!important;font-size:11.5px;color:var(--muted)}
.qpop .opt .ico{width:15px;height:15px;color:var(--accent)}
.pop .sec .ico{width:12px;height:12px;vertical-align:-1px;margin-right:4px;color:var(--amber);fill:currentColor}

/* dagboek: weken inklappen + kleurpunten */
.diary .gh th span{display:flex;align-items:center;gap:6px}
.diary .gh th span .ico{width:13px;height:13px}
.th-i{display:inline-flex;align-items:center;gap:7px}
.th-i.r{justify-content:flex-end}
.th-i .cat-ico{width:20px;height:20px;border-radius:6px}
.th-i .cat-ico .ico{width:12px;height:12px}
.th-i .dot{margin:0}
.diary .slot{gap:7px}
.diary tr.wk{cursor:pointer}
.diary tbody tr.wk:hover td{background:var(--wk-hover)}
.wk div{align-items:center}
.wk-tog{display:grid;place-items:center;width:24px;height:24px;margin-right:-4px;border-radius:7px;color:var(--muted);transition:transform .18s,background .12s}
.wk-tog .ico{width:15px;height:15px}
tr.wk:hover .wk-tog{background:var(--surface-2);color:var(--text)}
tr.wk.closed .wk-tog{transform:rotate(-90deg)}
.wk-dots{display:inline-flex;gap:4px;padding:0 4px}
.wk-dots i{width:9px;height:9px;border-radius:3px;background:var(--line-2)}
.wk-dots i.none{background:transparent;box-shadow:inset 0 0 0 1px var(--line-2)}
.wk-dots i.fut{background:transparent;box-shadow:inset 0 0 0 1px var(--line);opacity:.6}
.wk em{display:inline-flex;align-items:center;gap:5px}
.wk em .ico{width:12px;height:12px;color:var(--faint)}
.diary tr.wk.closed td{padding-bottom:12px}
.fold-all .ico{width:16px;height:16px;transition:transform .18s;transform:rotate(-90deg)}
.fold-all.flip .ico{transform:rotate(180deg)}
.strip .si{display:flex;align-items:center;gap:12px}
.si-ico{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:color-mix(in srgb,var(--c) 14%,transparent);color:var(--c);flex:none}
.si-ico .ico{width:17px;height:17px}

/* metingen: silhouet */
.g-body{grid-template-columns:minmax(0,1.7fr) minmax(300px,1fr);align-items:start}
.card-h h2 .ico{color:var(--muted)}
.body-card{padding-bottom:14px}
.body-wrap{display:flex;justify-content:center}
.body-svg{display:block;width:100%;height:auto;max-height:540px}
.body-svg .f-name{font:600 12px var(--sans);letter-spacing:.08em;fill:var(--muted)}
.body-svg .f-val{font:600 30px var(--mono);fill:var(--text);letter-spacing:-.02em}
.body-svg .f-unit{font:400 14px var(--mono);fill:var(--muted)}
.body-svg .f-d{font:500 12.5px var(--sans)}
.mpoint .halo{transition:r .2s,opacity .2s}
.mpoint:hover .halo{r:16;opacity:.32}
.body-list{display:none}
.body-foot{display:flex;justify-content:center;flex-wrap:wrap;gap:6px 18px;margin-top:6px;font-size:12px;color:var(--muted)}
.body-foot span{display:inline-flex;align-items:center}
.last-m .lm-rows>div{align-items:center}
.lm-rows span{display:inline-flex;align-items:center;color:var(--text)!important}
.lm-rows b small{color:var(--muted);font-weight:400;font-size:12px}
.lm-rows em{font-style:normal;font-family:var(--mono);font-size:13px;min-width:70px;text-align:right}
.lm-rows .arr{margin-right:5px}
.lm-tip{margin:14px 0 0;padding:10px 12px;border-radius:10px;background:var(--surface-2);font-size:12.5px;color:var(--muted)}
.lm-tip b{color:var(--text);font-weight:500}

@media (max-width:1500px){ .meal-grid{grid-template-columns:1fr} }
@media (max-width:1180px){ .g-body{grid-template-columns:1fr} }
@media (max-width:860px){
  .mrow{grid-template-columns:26px minmax(0,1fr) 52px 42px 16px 30px;gap:6px;padding:0 10px}
  .mrow.mhead span:nth-child(6),.mrow .used{display:none}
  .qcell .qual{width:10px;height:10px;padding:0;font-size:0;border:0;background:currentColor}
  .qcell .qual::before{display:none}
  .mrow.mhead span:nth-child(5){font-size:0}
  .mstats{gap:10px;font-size:12px}
  .legend-bar,.legend-card{gap:8px 12px;font-size:12px}
  .lg-sep{display:none}
}
@media (max-width:700px){
  .body-svg .lbl,.body-svg .mpoint path,.body-svg .lend{display:none}
  .body-svg{max-height:380px}
  .body-list{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}
  .bl{display:grid;grid-template-columns:auto 1fr;align-items:center;column-gap:8px;padding:10px 12px;border-radius:10px;background:var(--surface-2)}
  .bl i{width:8px;height:8px;border-radius:50%}
  .bl span{font-size:12px;color:var(--muted)}
  .bl b{grid-column:1/-1;font-family:var(--mono);font-size:18px;font-weight:600}
  .bl b small{font-size:12px;color:var(--muted);font-weight:400;margin-left:3px}
  .bl em{grid-column:1/-1;font-style:normal;font-family:var(--mono);font-size:12px}
}

/* ---------- dagrij: tegel + naam, doelkleur alleen bij missers ---------- */
.mtile{position:relative;display:inline-grid;place-items:center;width:26px;height:26px;border-radius:8px;flex:none;background:color-mix(in srgb,var(--c) 15%,transparent);color:var(--c)}
.mtile .ico{width:14px;height:14px}
.mtile.sm{width:20px;height:20px;border-radius:6px}
.mtile.sm .ico{width:12px;height:12px}
.mtile.empty{background:none;box-shadow:inset 0 0 0 1px var(--line-2);color:var(--faint)}
.mtile em{position:absolute;top:-6px;right:-6px;min-width:16px;height:16px;padding:0 4px;border-radius:99px;background:var(--surface-3);border:1px solid var(--line-2);font:600 10px/14px var(--mono);font-style:normal;color:var(--text)}
.diary td.meal{max-width:190px}
.diary .slot{gap:10px;min-height:38px}
.diary .slot .nm{display:block;max-width:114px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13.5px;line-height:1.3}
.diary td[data-slot="snacks"] .slot .nm{max-width:86px}
.slot.empty .mtile{transition:box-shadow .12s,color .12s}
tr:hover .slot.empty .mtile{box-shadow:inset 0 0 0 1px var(--accent);color:var(--accent)}
.th-goal{display:block;margin-top:1px;font-size:10.5px;color:var(--faint);font-weight:400;text-transform:none;letter-spacing:0}
.miss{display:inline-flex;align-items:center;gap:3px;font-weight:600}
.miss .ico{width:12px;height:12px;stroke-width:2.4}
.miss.mid{color:var(--amber)}
.miss.bad{color:var(--red)}
.saldo-v{font-weight:600;color:var(--text)}
.saldo-v.idle{font-weight:400;color:var(--muted)}
.diary td.stap{white-space:nowrap}
td.stap .arr{display:inline-flex;vertical-align:middle;margin-right:-2px}
td.stap .arr:empty{display:none}
td.stap .arr .ico{width:12px;height:12px;stroke-width:2.4}
td.stap.miss-mid,td.stap.miss-mid input{color:var(--amber);font-weight:600}
td.stap.miss-bad,td.stap.miss-bad input{color:var(--red);font-weight:600}
.lg-ok{font-weight:600;color:var(--text)}
@media (max-width:860px){
  .strip .si .faint{display:none}
  .strip .si{gap:10px}
  .strip>div{padding:14px 16px}
}

/* ---------- dagboek: maaltijden als chips, lichte scheidingslijnen ---------- */
.diary tbody td{border-bottom:0}
.diary tbody tr[data-date] + tr[data-date] > td{background-image:linear-gradient(var(--line),var(--line));background-repeat:no-repeat;background-size:100% 1px;background-position:0 0}
.diary tbody tr[data-date] + tr[data-date] > td:first-child{background-size:calc(100% - 20px) 1px;background-position:20px 0}
.diary tbody tr[data-date] + tr[data-date] > td:last-child{background-size:calc(100% - 20px) 1px}
.diary tbody tr.wk td,.diary tbody tr.wk:hover td{background:transparent;border-bottom:0;padding:24px 14px 8px}
.diary tbody tr.wk:first-child td{padding-top:16px}
.diary .slot{display:inline-flex;width:auto;max-width:100%;height:34px;min-height:34px;margin:0;padding:0 12px 0 4px;gap:8px;border-radius:99px;background:var(--surface-2);border:1px solid var(--line);transition:border-color .12s,background .12s,box-shadow .12s}
.diary .slot:hover{background:var(--surface);border-color:var(--line-2);box-shadow:0 1px 4px rgba(20,30,50,.07)}
.diary .slot .mtile{width:26px;height:26px;border-radius:50%}
.diary .slot .mtile .ico{width:13px;height:13px}
.diary .slot .mtile em{top:-5px;right:-6px}
.diary .slot .nm{font-weight:500;font-size:13px}
.diary .slot .more{background:var(--surface-3);color:var(--muted)}
.diary .slot.empty{background:transparent;border:1px dashed var(--line-2);color:var(--faint);padding-right:14px}
.diary .slot.empty .mtile{box-shadow:none;background:var(--surface-2)}
.diary .slot.empty .add{display:inline-flex;font-size:12.5px;font-weight:500}
.diary tr:hover .slot.empty{border-color:color-mix(in srgb,var(--accent) 55%,transparent);color:var(--accent)}
.diary tr:hover .slot.empty .mtile{box-shadow:none;color:var(--accent);background:var(--accent-soft)}
.t-ico.run{color:var(--blue)}
.t-ico.run:hover{background:color-mix(in srgb,var(--blue) 10%,transparent);color:var(--blue)}

/* snelle tooltip (notitie, run) */
.tip.hint{max-width:300px;min-width:0;padding:10px 13px;border-radius:12px}
.tip.hint .t{font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--faint);margin-bottom:3px}
.tip .tb{white-space:pre-wrap;color:var(--text);line-height:1.45}

/* notitie-popover met run */
.pop:has(.note-pop){width:380px;max-height:none}
.note-pop{gap:10px}
.np-runs{display:grid;gap:8px;padding-top:10px;border-top:1px solid var(--line)}
.run-row{display:grid;grid-template-columns:28px minmax(0,1fr) minmax(0,1fr) 72px 28px;align-items:center;gap:8px}
.run-ico{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:8px;background:color-mix(in srgb,var(--c,var(--blue)) 12%,transparent);color:var(--c,var(--blue));flex:none}
.run-ico .ico{width:16px;height:16px}
.lg .run-ico{width:20px;height:20px;border-radius:6px}
.lg .run-ico .ico{width:13px;height:13px}
.rf{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted)}
.pop .rf input.field{width:100%;min-width:0;height:32px;padding:0 8px;border:1px solid var(--line-2);border-radius:8px;background:var(--surface);text-align:right;font-size:13px}
.pop .rf input.field:focus{border-color:var(--accent)}
.run-pace{font-size:12px;color:var(--muted);white-space:nowrap;text-align:right}
.icon-btn{display:grid;place-items:center;width:28px;height:28px;border-radius:7px;color:var(--faint)}
.icon-btn:hover{background:var(--red-soft);color:var(--red)}
.icon-btn .ico{width:15px;height:15px}
.run-add{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:36px;border-radius:10px;border:1px dashed var(--line-2);color:var(--muted);font-weight:600;font-size:13px;transition:background .12s,border-color .12s,color .12s}
.run-add:hover{border-color:var(--blue);color:var(--blue);background:color-mix(in srgb,var(--blue) 6%,transparent)}
.run-add.first{border-style:solid;border-color:color-mix(in srgb,var(--blue) 35%,transparent);color:var(--blue);background:color-mix(in srgb,var(--blue) 7%,transparent)}
.run-add .ico{width:17px;height:17px}

/* ---------- metingen: tabs + podium met animatie ---------- */
.seg.tabs button{display:inline-flex;align-items:center;gap:7px}
.seg.tabs .ico{width:15px;height:15px}
.g-lift{grid-template-columns:minmax(0,1.35fr) minmax(320px,1fr);align-items:stretch}
.stage-card{display:flex;flex-direction:column;padding-bottom:20px}
.stage-h{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.stage-h h2{margin:4px 0 0;font-size:24px;font-weight:700;letter-spacing:-.02em}
.stage-h .eyebrow{display:flex;align-items:center;gap:6px}
.stage-h .eyebrow .ico,.lift-info .eyebrow .ico{width:14px;height:14px;color:var(--amber)}
.stage{position:relative;margin:14px 0 16px;border-radius:14px;background:linear-gradient(180deg,#FAFBFC,#EFF2F5);overflow:hidden}
.stage svg{display:block;width:100%;height:auto;max-height:380px}
.hud{position:absolute;inset:16px 18px auto;display:flex;justify-content:space-between;align-items:flex-start;pointer-events:none}
.hud b{display:inline-block;font-size:30px;font-weight:800;letter-spacing:-.03em;line-height:1}
.hud small{display:block;margin-top:5px;font-size:12px;color:var(--muted);font-weight:500}
.hud-r{text-align:right}
.hud-r b{color:var(--accent)}
.stage:has(#runSvg) .hud-r b{color:var(--blue)}
.bump{animation:bump .35s ease}
@keyframes bump{40%{transform:scale(1.28)}}
.burst{position:absolute;left:50%;top:16px;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 18px;border-radius:16px;background:rgba(255,255,255,.94);box-shadow:0 12px 34px rgba(20,30,50,.14);animation:popIn .55s cubic-bezier(.2,1.5,.4,1);white-space:nowrap}
.burst[hidden]{display:none}
.b-tag{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:99px;background:var(--accent);color:#fff;font-weight:800;font-size:11.5px;letter-spacing:.1em}
.b-tag .ico{width:13px;height:13px}
.burst b{font-size:17px;font-weight:700}
@keyframes popIn{0%{opacity:0;transform:translateX(-50%) scale(.5)}100%{opacity:1;transform:translateX(-50%) scale(1)}}
.stage-f{display:flex;align-items:center;gap:12px;margin-top:auto}
.stage-f .ico{width:15px;height:15px}
.stage-f .hint{font-size:12.5px;color:var(--muted)}

.lift-info{display:flex;flex-direction:column}
.lift-info .eyebrow{display:flex;align-items:center;gap:6px}
.li-big{font-size:56px;font-weight:800;letter-spacing:-.04em;line-height:1.05;margin:8px 0 4px}
.li-big small{font-size:18px;font-weight:600;color:var(--muted);margin-left:6px;letter-spacing:0}
.li-sub{color:var(--muted);font-size:13px}
.li-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0 16px}
.li-stats>div{padding:12px 14px;border-radius:12px;background:var(--surface-2)}
.li-stats span{display:block;font-size:12px;color:var(--muted)}
.li-stats b{display:block;margin-top:3px;font-size:20px;font-weight:700}
.li-stats b.pos{color:var(--green)}
#liftChart{margin-bottom:14px}
.li-hist{display:grid;margin-top:auto}
.li-hist .eyebrow{margin-bottom:6px}
.lh{display:grid;grid-template-columns:64px 1fr auto 28px;align-items:center;gap:10px;padding:8px 0;border-top:1px solid var(--line);font-size:13px}
.lh span:first-child{color:var(--muted)}
.lh b{font-weight:600}
.lh:hover .row-del,.rl:hover .row-del{opacity:1}

.lift-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.lift-card{display:grid;gap:2px;padding:10px 12px 12px;border-radius:14px;border:1px solid var(--line);background:var(--surface);text-align:left;transition:border-color .15s,box-shadow .15s,transform .15s}
.lift-card:hover{border-color:var(--line-2);box-shadow:0 6px 18px rgba(20,30,50,.07);transform:translateY(-1px)}
.lift-card.on{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.lift-card .thumb{width:100%;height:auto;border-radius:10px;background:var(--surface-2);margin-bottom:8px}
.lc-n{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lc-v{display:flex;align-items:baseline;gap:4px;font-size:20px;font-weight:800;letter-spacing:-.02em}
.lc-v small{font-size:12px;color:var(--muted);font-weight:600}
.lc-v .new{margin-left:auto;align-self:center}
.lc-s{font-size:12px;color:var(--muted)}

.run-prs{display:flex;flex-direction:column;gap:4px}
.rp{display:grid;grid-template-columns:38px minmax(0,1fr) auto 52px;align-items:center;gap:12px;width:100%;padding:10px 12px;border-radius:12px;border:1px solid transparent;text-align:left;transition:background .12s,border-color .12s}
button.rp:hover{background:var(--surface-2)}
.rp.on{background:color-mix(in srgb,var(--blue) 7%,var(--surface));border-color:color-mix(in srgb,var(--blue) 30%,transparent)}
.rp-ico{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:color-mix(in srgb,var(--blue) 12%,transparent);color:var(--blue)}
.rp-ico .ico{width:19px;height:19px}
.rp-n{display:grid;font-weight:600}
.rp-n small{font-weight:400;font-size:12px;color:var(--muted)}
.rp b{font-size:17px;font-weight:700}
.rp-d{font-size:12px;color:var(--faint);text-align:right}
.rp.locked{opacity:.55}
.rp.locked .rp-ico{background:var(--surface-3);color:var(--faint)}
.rtrack{margin:-4px 0 16px}
.rbar{position:relative;height:8px;border-radius:99px;background:var(--surface-3)}
.rbar i{position:absolute;inset:0 auto 0 0;width:0;border-radius:99px;background:linear-gradient(90deg,color-mix(in srgb,var(--blue) 45%,#fff),var(--blue))}
.rbar span{position:absolute;top:50%;left:0;width:18px;height:18px;margin:-9px 0 0 -9px;border-radius:50%;background:var(--surface);border:3px solid var(--blue);box-shadow:0 0 0 4px color-mix(in srgb,var(--blue) 15%,transparent)}
.rmarks{display:flex;justify-content:space-between;margin-top:9px;font-size:11.5px;color:var(--faint)}
.run-list{display:grid;padding:0 12px 10px}
.rl{display:grid;grid-template-columns:minmax(0,1fr) 72px 72px 92px 28px;align-items:center;gap:10px;padding:10px 12px;border-top:1px solid var(--line);font-size:13px}
.rl:first-child{border-top:0}
.rl-d{color:var(--muted)}
.rl-d b{color:var(--text);font-weight:600;margin-right:4px;text-transform:capitalize}
.rl-v{text-align:right;font-weight:600}
.rl-p{text-align:right;color:var(--muted)}
.empty-state{display:grid;justify-items:center;text-align:center;gap:10px;padding:40px 24px}
.es-fig{width:220px;height:auto;border-radius:14px;background:var(--surface-2)}
.empty-state h2{margin:6px 0 0;font-size:19px}
.empty-state .sub{max-width:52ch}
.mbox .pace b.pos{color:var(--green)}

/* overzicht: records en runs */
.rec-card .card-h .btn .ico{width:14px;height:14px}
.rec-row{display:flex;align-items:center;gap:12px;width:100%;padding:11px 0;border-top:1px solid var(--line);text-align:left}
.rec-row:first-of-type{border-top:0}
.rec-row>span:last-child{display:grid}
.rec-row b{font-weight:600;transition:color .12s}
.rec-row small{font-size:12px;color:var(--muted)}
.rec-row:hover b{color:var(--accent)}

@media (max-width:1180px){ .g-lift{grid-template-columns:1fr} }
@media (max-width:860px){
  .seg.tabs{order:-1;width:100%}
  .seg.tabs button{flex:1;justify-content:center}
  .hud b{font-size:22px}
  .li-big{font-size:44px}
  .rl{grid-template-columns:minmax(0,1fr) 60px 64px 28px}
  .rl-p{display:none}
  .pop:has(.note-pop){width:calc(100vw - 24px)}
}

/* ---------- dagboek: rustige kop, legenda onderaan, gekleurde weekband ---------- */
.table-card .legend-bar{justify-content:flex-end;border-bottom:0;border-top:1px solid var(--line);padding:12px 22px;font-size:12px}
.diary thead th{padding-top:14px;padding-bottom:14px;font-size:11px;letter-spacing:.06em}
.diary th[data-hint]{cursor:help;text-decoration:underline dotted var(--faint);text-underline-offset:4px}
.diary tbody tr.wk td,.diary tbody tr.wk:hover td{background:color-mix(in srgb,var(--accent) 5%,var(--surface));border-top:1px solid color-mix(in srgb,var(--accent) 15%,transparent);border-bottom:1px solid color-mix(in srgb,var(--accent) 15%,transparent);padding:11px 14px}
.diary tbody tr.wk:first-child td{padding-top:11px;border-top:0}
.diary tbody tr.wk:hover td{background:color-mix(in srgb,var(--accent) 8%,var(--surface))}
.diary tbody tr.wk b{color:var(--accent)}
.diary tbody tr.wk em{background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 12%,transparent)}
.diary tbody tr.wk .wk-tog{color:var(--accent)}

/* notitie: activiteit kiezen */
.rf.span2{grid-column:span 2}
.act-add{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.act-add>span{flex-basis:100%;font-size:12px;color:var(--muted)}
.act-add button{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 11px 0 8px;border-radius:9px;border:1px solid color-mix(in srgb,var(--c) 30%,transparent);background:color-mix(in srgb,var(--c) 7%,transparent);color:var(--c);font-size:12.5px;font-weight:600;transition:background .12s}
.act-add button:hover{background:color-mix(in srgb,var(--c) 14%,transparent)}
.act-add .ico{width:16px;height:16px}

/* ---------- donkere zijbalk en bovenbalk ---------- */
:root{--chrome:#15181E;--chrome-2:#1F242C;--chrome-3:#2A303A;--chrome-text:#F2F4F7;--chrome-muted:#98A1AE;--main-pt:28px;--main-px:32px}
.side{background:var(--chrome);border-right-color:var(--chrome)}
.brand{color:var(--chrome-text)}
.nav button{color:var(--chrome-muted)}
.nav button:hover{background:var(--chrome-2);color:var(--chrome-text)}
.nav button.on{background:var(--chrome-3);color:var(--chrome-text)}
.side-goal{background:var(--chrome-2);border-color:var(--chrome-3);box-shadow:none}
.side-goal .lbl{color:var(--chrome-muted)}
.side-goal .val{color:var(--chrome-text)}
.side-goal .bar{background:var(--chrome-3)}
.top{margin:calc(-1 * var(--main-pt)) calc(-1 * var(--main-px)) 28px;padding:calc(var(--main-pt) - 4px) var(--main-px) 24px;background:var(--chrome);color:var(--chrome-text)}
.top .sub{color:var(--chrome-muted)}
.top .seg{background:var(--chrome-2);border-color:var(--chrome-3)}
.top .seg button{color:var(--chrome-muted)}
.top .seg button:hover{color:var(--chrome-text)}
.top .seg button.on{background:var(--chrome-3);color:var(--chrome-text)}
.top .field{background:var(--chrome-2);border-color:var(--chrome-3);color:var(--chrome-text);color-scheme:dark}
.top .field::placeholder{color:var(--chrome-muted)}
.top .btn:not(.primary){background:var(--chrome-2);border-color:var(--chrome-3);color:var(--chrome-text)}
.top .btn:not(.primary):hover{background:var(--chrome-3)}
.top .btn.ghost{background:none;border-color:transparent;color:var(--chrome-muted)}
.top .btn.ghost:hover{background:var(--chrome-2);color:var(--chrome-text)}
.top .fav-filter .cnt{background:var(--chrome-3);color:var(--chrome-muted)}
.top .fav-filter.on{border-color:var(--amber);color:#F5B73B;background:rgba(245,183,59,.12)}
@media (min-width:861px){ :root{--main-pt:36px;--main-px:32px} }

/* account / synchronisatie in de zijbalk */
.side-goal{margin-top:auto}
.sync{display:flex;align-items:center;gap:10px;width:100%;margin-top:-16px;padding:10px 12px;border-radius:12px;color:var(--chrome-text);text-align:left;transition:background .15s}
.sync:hover{background:var(--chrome-2)}
.sync i{width:9px;height:9px;border-radius:50%;flex:none;background:var(--chrome-muted)}
.sync span{display:grid;min-width:0}
.sync b{font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sync small{font-size:11.5px;color:var(--chrome-muted)}
.sync.s-ok i{background:var(--green);box-shadow:0 0 0 3px rgba(21,160,74,.25)}
.sync.s-bezig i{background:var(--amber);animation:pulse 1s ease-in-out infinite}
.sync.s-fout i,.sync.s-offline i{background:var(--red)}
@keyframes pulse{50%{opacity:.35}}
@media (max-width:860px){ .sync{position:fixed;top:14px;right:14px;z-index:31;width:auto;margin:0;padding:8px;background:var(--chrome-2)} .sync span{display:none} }

/* welkom bij een lege start */
.welcome{display:grid;grid-template-columns:220px 1fr;gap:24px;align-items:center;margin-bottom:20px;background:linear-gradient(120deg,#FFF6F0,#FFFFFF 55%)}
.welcome h2{margin:4px 0 0;font-size:22px;font-weight:700;letter-spacing:-.02em}
.steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.step{display:flex;align-items:center;gap:12px;padding:14px;border-radius:14px;border:1px solid var(--line);background:var(--surface);text-align:left;transition:border-color .15s,box-shadow .15s}
.step:hover{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.step>span:nth-child(3){display:grid;flex:1;min-width:0}
.step b{font-weight:600;font-size:13.5px}
.step small{font-size:12px;color:var(--muted)}
.step-n{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--accent);color:#fff;font-size:12px;font-weight:700;flex:none}
.step>.ico{width:16px;height:16px;color:var(--faint)}
@media (max-width:1180px){ .welcome{grid-template-columns:1fr} .steps{grid-template-columns:1fr} }

/* lichte inhoud als afgerond paneel op de donkere achtergrond */
:root{--main-pb:72px}
body,.app,.main{background:var(--chrome)}
.top{background:none;margin-bottom:0}
#view{background:var(--bg);border-top-left-radius:24px;margin:0 calc(-1 * var(--main-px)) calc(-1 * var(--main-pb));padding:28px var(--main-px) var(--main-pb);min-height:calc(100vh - 120px)}
@media (max-width:860px){
  :root{--main-pt:20px;--main-px:16px;--main-pb:96px}
  #view{border-radius:20px 20px 0 0;padding-top:20px}
  .side{border-top-color:var(--chrome)}
}
