@import url("https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@100..125,500..900&family=Barlow+Condensed:wght@500;600;700&family=Figtree:wght@400;500;600;700&display=swap");

/* ===== ProFuelCoach huisstijl ===== */
:root {
  --roze: #E8386A;
  --roze-donker: #C9265A;
  --roze-licht: #FCE4EB;
  --carbon: #12131A;
  --carbon-2: #23242E;
  --papier: #F4F3F6;

  /* Kleuren alleen voor voedingsdata */
  --kh: #F5A524;
  --eiwit: #3F7FF0;
  --vet: #9A6CF0;
  --vocht: #1FB5C9;
  --kh-licht: #FEF1D9;
  --eiwit-licht: #E3ECFD;
  --vet-licht: #EEE7FD;
  --vocht-licht: #DDF4F7;

  /* Variabelen van het platform */
  --groen: var(--roze);
  --groen-donker: var(--roze-donker);
  --groen-licht: var(--roze-licht);
  --groen-tekst: #fff;
  --donker: var(--carbon);
  --donker-2: var(--carbon-2);
  --achtergrond: var(--papier);
  --rand: #E2E0E7;
  --gedempt: #6A6975;
  --balk: var(--carbon);
  --balk-tekst: #fff;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --kop: "Archivo", "Figtree", system-ui, sans-serif;
  --cijfer: "Barlow Condensed", "Figtree", system-ui, sans-serif;
  --radius: 14px;
  --radius-sm: 9px;
  --schaduw: 0 1px 2px rgba(18, 19, 26, .05), 0 6px 20px rgba(18, 19, 26, .06);
}

body { font-family: var(--font); background: var(--papier); color: var(--carbon); }
h1, h2, h3, h4 { font-family: var(--kop); letter-spacing: -.015em; }
h1 { font-weight: 800; }
a { color: var(--roze-donker); }
.btn { font-family: var(--font); font-weight: 600; }
.btn-primary, .btn-primary:hover { color: #fff; }
.btn-dark { background: var(--carbon); }
.badge-groen { background: var(--roze-licht); border-color: #F6C3D2; color: var(--roze-donker); }
.stat-value, .cijfer, .cijfer-sm, .cijfer-xl { font-family: var(--cijfer); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.stat-value { font-size: 2.3rem; }
.cijfer-xl { font-size: 3.4rem; line-height: 1; margin: .2rem 0 .6rem; }
.cijfer-xl small { font-size: 1.1rem; font-family: var(--font); font-weight: 500; opacity: .7; }
.cijfer-sm { font-size: 1.05rem; }
.card-dark { background: var(--carbon); color: #fff; }
.card-dark .stat-label, .card-dark .muted { color: rgba(255, 255, 255, .7); }
.p-3 { padding: 1rem; }
.icoon { width: 1.25em; height: 1.25em; vertical-align: -.25em; flex: none; }
.icoon-sm { width: 1em; height: 1em; vertical-align: -.15em; }
.icoon-xl { width: 3.5rem; height: 3.5rem; color: var(--roze); margin-bottom: .5rem; }
.empty { text-align: center; }
input[type=range] { accent-color: var(--roze); width: 100%; }
:focus-visible { outline: 2px solid var(--roze); outline-offset: 2px; }

/* ===== Portal: bovenbalk en inlogpagina ===== */
body.layout-app .topbar { background: var(--carbon); box-shadow: inset 0 -3px 0 var(--roze); }
body.layout-app .topbar a[aria-current="page"], body.layout-app .topbar .current { box-shadow: inset 0 -3px 0 var(--roze); }
body.layout-auth { background: var(--carbon) radial-gradient(circle at 80% 0%, rgba(232, 56, 106, .35), transparent 50%); }
body.layout-auth .auth-brand { color: #fff; }
body.layout-auth .auth-brand .brand-logo { filter: none; }
body.layout-auth .auth-card { border: 0; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); border-top: 4px solid var(--roze); }
body.layout-auth .site-footer, body.layout-auth .site-footer a { color: rgba(255, 255, 255, .6); }

/* ===== Uitleglijst en meters ===== */
.uitleg-lijst { padding-left: 1.1rem; margin: 0; }
.uitleg-lijst li { margin-bottom: .45rem; }
.meters { display: grid; gap: .9rem; }
.meter-kop { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; }
.meter-label { font-weight: 600; }
.meter-waarde { font-family: var(--cijfer); font-size: 1.1rem; }
.meter-waarde b { font-weight: 700; }
.meter-baan { height: 10px; background: var(--papier); border-radius: 99px; overflow: hidden; margin: .3rem 0 .2rem; }
.meter-baan span { display: block; height: 100%; border-radius: 99px; background: var(--carbon); }
.meter-kh .meter-baan span { background: var(--kh); }
.meter-eiwit .meter-baan span { background: var(--eiwit); }
.meter-vet .meter-baan span { background: var(--vet); }
.meter-vocht .meter-baan span { background: var(--vocht); }
.meter-sub { font-size: .8rem; color: var(--gedempt); }

/* ===== Vandaag ===== */
.datumnav { gap: .35rem; }
.doelkaart { position: relative; overflow: hidden; }
.doelkaart::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: var(--roze); opacity: .25; }
.doel-som { display: flex; flex-wrap: wrap; gap: .3rem .8rem; color: rgba(255, 255, 255, .8); }
.doel-som b { font-family: var(--cijfer); font-size: 1.1rem; color: #fff; }
.snelinvoer { border-left: 4px solid var(--roze); }
.snel-label { display: flex; gap: .5rem; align-items: center; font-family: var(--kop); font-weight: 700; margin-bottom: .6rem; }
.snel-label .icoon { color: var(--roze); }
.snel-rij { display: flex; gap: .5rem; }
.snel-rij input { flex: 1; min-width: 0; }
.spraakknop { padding-left: .8rem; padding-right: .8rem; }
.spraakknop.luistert { background: var(--roze); color: #fff; animation: puls 1s infinite; }
@keyframes puls { 50% { box-shadow: 0 0 0 6px rgba(232, 56, 106, .2); } }
.logblok { border-top: 1px solid var(--rand); }
.logblok-kop { display: flex; justify-content: space-between; padding: .6rem 1.25rem; background: var(--papier); font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; }
.logregel { display: grid; grid-template-columns: 1fr auto auto; gap: .5rem 1rem; align-items: center; padding: .65rem 1.25rem; border-top: 1px solid var(--rand); }
.logregel-naam { display: flex; flex-wrap: wrap; gap: .2rem .5rem; align-items: center; }
.logregel-naam a { color: inherit; font-weight: 600; text-decoration: none; }
.logregel-macro { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: flex-end; align-items: center; }
.logregel-weg { margin: 0; }
.macro { display: inline-block; padding: .05rem .45rem; border-radius: 6px; font-size: .78rem; font-weight: 600; border-left: 3px solid; background: var(--papier); color: var(--carbon); }
.macro-kh { border-color: var(--kh); background: var(--kh-licht); }
.macro-eiwit { border-color: var(--eiwit); background: var(--eiwit-licht); }
.macro-vet { border-color: var(--vet); background: var(--vet-licht); }
.macro-vocht { border-color: var(--vocht); background: var(--vocht-licht); }
.weeg-tag { display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; border-radius: 6px; background: var(--carbon); color: #fff; }
.weeg-tag .icoon { width: 1rem; height: 1rem; vertical-align: 0; }
.trainingregel { display: flex; gap: .75rem; align-items: flex-start; padding: .6rem 0; border-top: 1px solid var(--rand); }
.trainingregel:first-of-type { border-top: 0; }
.trainingregel-icoon { width: 2.2rem; height: 2.2rem; border-radius: 10px; background: var(--roze-licht); color: var(--roze-donker); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.fuel { display: inline-flex; gap: .3rem; align-items: center; margin-top: .25rem; padding: .1rem .5rem; border-radius: 6px; background: var(--kh-licht); font-size: .82rem; font-weight: 600; }
.kaartlink { display: flex; gap: .75rem; align-items: center; }
.kaartlink .icoon { width: 1.8rem; height: 1.8rem; color: var(--roze); }

/* ===== Coach ===== */
.chat { display: flex; flex-direction: column; gap: 1rem; }
.chat-stroom { display: flex; flex-direction: column; gap: .8rem; max-height: 62vh; overflow-y: auto; padding: 1.25rem; background: var(--wit); border-radius: var(--radius); box-shadow: var(--schaduw); }
.chat-bericht { display: flex; flex-direction: column; max-width: 82%; scroll-margin-top: 1rem; }
.chat-coach { align-self: flex-start; }
.chat-sporter { align-self: flex-end; align-items: flex-end; }
.chat-ballon { padding: .7rem 1rem; border-radius: 16px; background: var(--papier); white-space: pre-line; }
.chat-coach .chat-ballon { border-bottom-left-radius: 4px; }
.chat-sporter .chat-ballon { background: var(--carbon); color: #fff; border-bottom-right-radius: 4px; }
.chat-tijd { font-size: .72rem; color: var(--gedempt); margin-top: .2rem; padding: 0 .3rem; }
.voorstel { margin-top: .7rem; background: var(--wit); border: 1px solid var(--rand); border-radius: 12px; padding: .4rem; white-space: normal; }
.voorstel-item { display: grid; grid-template-columns: auto 1fr; gap: .2rem .6rem; padding: .55rem .6rem; border-radius: 8px; cursor: pointer; }
.voorstel-item:hover { background: var(--papier); }
.voorstel-item input { margin-top: .25rem; accent-color: var(--roze); }
.voorstel-naam { display: flex; flex-direction: column; font-weight: 600; }
.voorstel-uitleg { font-weight: 400; font-size: .82rem; color: var(--gedempt); }
.voorstel-macro { grid-column: 2; display: flex; flex-wrap: wrap; gap: .3rem; }
.voorstel-acties { display: flex; flex-wrap: wrap; gap: .4rem; padding: .5rem .6rem .3rem; border-top: 1px solid var(--rand); margin-top: .3rem; }
.voorstel-acties input, .voorstel-acties select { width: auto; flex: 1 1 8rem; }
.voorstel-klaar { color: var(--roze-donker); padding: .4rem .6rem; font-weight: 600; }
.chat-invoer { display: flex; gap: .5rem; }
.chat-invoer textarea, .chat-invoer input[type=text] { flex: 1; min-width: 0; }
.voorbeelden { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { border: 1px solid var(--rand); background: var(--wit); border-radius: 99px; padding: .3rem .8rem; font: inherit; font-size: .85rem; cursor: pointer; color: var(--carbon); }
.chip:hover { border-color: var(--roze); color: var(--roze-donker); }

/* ===== Training: weekbalk ===== */
.weekbalk { display: grid; grid-template-columns: repeat(7, 1fr); gap: .5rem; align-items: end; }
.weekdag { display: flex; flex-direction: column; align-items: center; gap: .25rem; text-align: center; padding: .4rem .2rem; border-radius: 10px; }
.weekdag.is-vandaag { background: var(--roze-licht); }
.weekdag-baan { display: flex; flex-direction: column-reverse; width: 100%; max-width: 46px; height: 150px; gap: 2px; }
.weekdag-basis { background: #CFCDD6; border-radius: 0 0 4px 4px; }
.weekdag-training { background: var(--roze); border-radius: 4px 4px 0 0; }
.weekdag-naam { font-weight: 600; font-size: .85rem; }
.weekdag-kh { color: var(--gedempt); }
.weekdag-waarde { font-size: 1rem; }
.legenda { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .85rem; color: var(--gedempt); margin-top: .8rem; }
.legenda-blok { display: inline-block; width: .85rem; height: .85rem; border-radius: 3px; vertical-align: -.1rem; margin-right: .3rem; }
.legenda-basis { background: #CFCDD6; }
.legenda-training { background: var(--roze); }
.rij-rust td { color: var(--gedempt); }

/* ===== Ritplanner ===== */
.ritform output { display: block; font-size: 2rem; margin-top: .2rem; }
.etappe-svg { width: 100%; height: auto; display: block; margin-bottom: .5rem; }
.etappe-grid { stroke: var(--rand); stroke-width: 1; }
.etappe-basis { stroke: var(--carbon); stroke-width: 1.5; }
.etappe-as { font-family: var(--cijfer); font-size: 12px; fill: var(--gedempt); }
.etappe-label { font-family: var(--cijfer); font-size: 13px; font-weight: 600; fill: var(--carbon); }
.etappe-balk { fill: var(--kh); }
.etappe-blok:hover .etappe-balk { fill: #D98A0C; }
.stat-kh { border-top: 4px solid var(--kh); }
.ritvoorstel { list-style: none; padding: 0; margin: 0 0 .8rem; display: grid; gap: .6rem; }
.ritvoorstel li { display: flex; gap: .7rem; align-items: center; }
.ritvoorstel .icoon { width: 1.8rem; height: 1.8rem; color: var(--carbon); padding: .3rem; border-radius: 8px; background: var(--kh-licht); }
.ritopslaan { align-items: flex-end; gap: 1rem; flex-wrap: wrap; }

/* ===== Producten ===== */
.zoekbalk { display: flex; gap: .5rem; flex-wrap: wrap; padding: 1rem; }
.zoekbalk input { flex: 1 1 16rem; }
.zoekbalk select { flex: 0 1 14rem; width: auto; }
.producttabel a { color: inherit; text-decoration: none; }
.producttabel a:hover b { color: var(--roze-donker); }
.macrogrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.macrotegel { display: flex; flex-direction: column; padding: .8rem; border-radius: 10px; background: var(--papier); border-top: 4px solid var(--carbon); }
.macrotegel .cijfer { font-size: 1.9rem; line-height: 1.1; }
.macrotegel-kh { border-color: var(--kh); }
.macrotegel-eiwit { border-color: var(--eiwit); }
.macrotegel-vet { border-color: var(--vet); }
.portielijst { list-style: none; padding: 0; margin: 0; }
.portielijst li { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .45rem 0; border-top: 1px solid var(--rand); }
.inline { display: inline; margin: 0; }
details.card > summary { cursor: pointer; font-family: var(--kop); font-weight: 700; }
.weegschaal { display: flex; gap: 1rem; align-items: center; padding: 1rem; margin: .5rem 0 1rem; border-radius: 12px; background: var(--carbon); color: #fff; }
.weegschaal[hidden], [hidden] { display: none !important; }
.weegschaal-icoon { flex: none; width: 4.5rem; height: 4.5rem; border-radius: 14px; background: var(--roze); display: flex; align-items: center; justify-content: center; }
.weegschaal-icoon .icoon { width: 3rem; height: 3rem; color: #fff; }
.weegschaal-invoer { flex: 1; min-width: 0; }
.weegschaal-invoer label { color: #fff; font-weight: 600; }
.weegschaal-invoer .help { color: rgba(255, 255, 255, .7); }
.weegschaal-display { display: flex; align-items: baseline; gap: .4rem; background: #0A0B10; border-radius: 8px; padding: .3rem .8rem; margin: .3rem 0; border: 1px solid #33343F; }
.weegschaal-display input { background: transparent; border: 0; color: #fff; font-family: var(--cijfer); font-size: 2.2rem; font-weight: 600; text-align: right; width: 100%; padding: 0; box-shadow: none; }
.weegschaal-display input:focus { outline: none; }
.weegschaal-display span { font-family: var(--cijfer); font-size: 1.3rem; color: rgba(255, 255, 255, .7); }
.logvoorbeeld { min-height: 1.4em; font-weight: 600; }

/* ===== Boodschappen ===== */
.lijstform { align-items: flex-end; }
.lijstkop { display: flex; flex-direction: column; gap: .3rem; border-left: 4px solid var(--roze); }
.lijstcat { font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; color: var(--gedempt); }
.vinklijst { list-style: none; padding: 0; margin: 0; }
.vinklijst li { display: flex; gap: .7rem; align-items: flex-start; padding: .5rem 0; border-top: 1px solid var(--rand); }
.vinklijst li:first-child { border-top: 0; }
.vinkform { margin: 0; }
.vinkje { width: 1.7rem; height: 1.7rem; border-radius: 7px; border: 2px solid var(--rand); background: var(--wit); color: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.vinkje .icoon { width: 1rem; height: 1rem; vertical-align: 0; }
.vinkje:hover { border-color: var(--roze); }
.is-af .vinkje { background: var(--roze); border-color: var(--roze); color: #fff; }
.vink-tekst { flex: 1; }
.is-af .vink-tekst b, .is-af .vink-tekst .nowrap { text-decoration: line-through; color: var(--gedempt); }
.abonnementform { gap: .4rem; flex-wrap: nowrap; margin: 0; }
.abonnementform select { width: auto; }

/* ===== Responsief ===== */
@media (max-width: 640px) {
  .logregel { grid-template-columns: 1fr auto; padding: .6rem 1rem; }
  .logregel-macro { grid-column: 1; grid-row: 2; justify-content: flex-start; }
  .logregel-weg { grid-row: 1 / span 2; grid-column: 2; }
  .snel-rij, .chat-invoer { flex-wrap: wrap; }
  .snel-rij .btn-primary, .chat-invoer .btn-primary { flex: 1; }
  .chat-bericht { max-width: 94%; }
  .weekbalk { gap: .2rem; }
  .weekdag-baan { height: 110px; }
  .weekdag-kh { display: none; }
  .weekdag-waarde { font-size: .85rem; }
  .macrogrid { grid-template-columns: repeat(2, 1fr); }
  .weegschaal { flex-direction: column; align-items: stretch; }
  .weegschaal-icoon { width: 3.5rem; height: 3.5rem; }
}

/* ===== Afdrukken ===== */
@media print {
  .geen-print { display: none !important; }
  body { background: #fff; }
  .boodschappenlijst { display: block; }
  .boodschappenlijst .card { break-inside: avoid; margin-bottom: .8rem; border: 1px solid #ccc; }
  .vinkje { border: 1.5px solid #000; }
}

/* =====================================================================
   ProfuelCoach-app (/app, /coach, /loggen, /training, /profiel ...)
   Telefoon-app in het ontwerp van de demo. Alleen pagina's met .pfc-app;
   Mijn account, Gebruikers, Beheer en Wachtlijst blijven breed.
   ===================================================================== */
body.layout-app:has(.pfc-app) {
  --s1: #fff; --s2: #efedf2; --lijn: #e3e1e8; --gedempt: #6c6f7c; --gel-tekst: #b26a00; --rosa-zacht: rgba(232, 56, 106, .10);
  --app-b: 440px; --tabs-h: 74px;
  background: var(--papier); font-size: 15px; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom));
}
@media (min-width: 600px) {
  body.layout-app:has(.pfc-app) { background: radial-gradient(900px 640px at 75% 30%, rgba(232, 56, 106, .22), transparent 60%), var(--carbon) fixed; }
  body.layout-app:has(.pfc-app) main.container { min-height: calc(100vh - 52px); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
}
/* Balk van het platform: compact, op telefoonbreedte */
body.layout-app:has(.pfc-app) .topbar { max-width: var(--app-b); margin: 0 auto; box-shadow: none; padding-top: env(safe-area-inset-top); }
body.layout-app:has(.pfc-app) .topbar-inner { min-height: 52px; padding: 0 16px; gap: 10px; }
body.layout-app:has(.pfc-app) .topbar .brand-logo { max-height: 26px; }
body.layout-app:has(.pfc-app) .mainnav:empty { display: none; }
body.layout-app:has(.pfc-app) .usermenu-name { display: none; }
body.layout-app:has(.pfc-app) main.container { max-width: var(--app-b); background: var(--papier); padding: 18px 16px 28px; }
body.layout-app:has(.pfc-app) .site-footer { max-width: var(--app-b); margin: 0 auto; padding: 8px 16px 16px; font-size: 11px; background: var(--papier); }
body.layout-app:has(.pfc-app) .alert { border-radius: 16px; margin-bottom: 14px; }

.pfc-app { display: flex; flex-direction: column; gap: 14px; color: #15161c; }
.pfc-app > * { margin: 0; }
.pfc-app h1, .pfc-app h2, .pfc-app h3 { font-family: var(--kop); }
.pfc-app a { color: inherit; text-decoration: none; }
.pfc-app .icoon { width: 22px; height: 22px; vertical-align: middle; }

/* Kop */
.pfc-kop { display: flex; align-items: center; gap: 12px; }
.pfc-kop-tekst { flex: 1; min-width: 0; }
.pfc-kop h1 { font-stretch: 108%; font-size: 24px; font-weight: 700; margin: 2px 0 0; letter-spacing: -.01em; line-height: 1.15; overflow-wrap: anywhere; }
.pfc-sub { color: var(--gedempt); font-size: 13px; }
.pfc-you { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--s2); display: grid; place-items: center; font-weight: 700; border: 0; color: #15161c; box-shadow: 0 0 0 2px var(--papier), 0 0 0 4px var(--roze); cursor: pointer; }
.pfc-you-licht { box-shadow: none; }
.pfc-terug, .pfc-rond { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--s1); display: grid; place-items: center; box-shadow: 0 1px 2px rgba(21, 22, 28, .06); }
.pfc-terug:active, .pfc-rond:active { background: var(--s2); }

/* Kleine onderdelen */
.pfc-label { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gedempt); font-weight: 700; }
.pfc-pill { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 6px 12px; background: var(--s2); color: var(--gedempt); white-space: nowrap; }
.pfc-pill-rosa { background: var(--rosa-zacht); color: var(--roze); }
.pfc-rijkop { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 4px; }
.pfc-klein { font-size: 13px; color: var(--gedempt); line-height: 1.5; margin: 0; }
.pfc-opt { font-weight: 400; color: var(--gedempt); }
.pfc-groot { font-family: var(--cijfer); font-size: 44px; font-weight: 600; line-height: 1; margin: 6px 0 8px; }
.pfc-groot small { font-family: var(--font); font-size: 15px; font-weight: 500; opacity: .7; }
.pfc-metric { font-family: var(--cijfer); font-size: 1.15em; font-weight: 600; }
.pfc-dagnav { display: flex; align-items: center; gap: 8px; }
.pfc-dagnav .pfc-rond:last-child { margin-left: auto; }

/* Kaarten */
.pfc-card { background: var(--s1); border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 1px 2px rgba(21, 22, 28, .04); }
.pfc-card-carbon { background: var(--carbon); color: #fff; }
.pfc-card-carbon .pfc-label, .pfc-card-carbon .pfc-klein { color: rgba(255, 255, 255, .68); }
.pfc-card-carbon .pfc-pill { background: rgba(255, 255, 255, .1); color: #fff; }
.pfc-card-carbon .pfc-pill-rosa { background: var(--roze); }
.pfc-leeg { align-items: center; text-align: center; gap: 6px; }
.pfc-leeg p { margin: 0; }
.pfc-melding { background: var(--kh-licht); color: #5c3b00; font-size: 14px; display: block; }
.pfc-melding a { color: var(--gel-tekst); font-weight: 700; text-decoration: underline; }
.pfc-uitklap { gap: 0; }
.pfc-uitklap > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; min-height: 28px; }
.pfc-uitklap > summary::-webkit-details-marker { display: none; }
.pfc-uitklap > summary::after { content: "+"; font-size: 22px; font-weight: 600; color: var(--roze); line-height: 1; }
.pfc-uitklap[open] > summary::after { content: "−"; }
.pfc-uitklap[open] > summary { margin-bottom: 12px; }
.pfc-uitleg { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 14px; line-height: 1.5; }
.pfc-why { font-size: 12.5px; color: var(--gedempt); line-height: 1.5; border-top: 1px solid var(--lijn); padding-top: 12px; margin: 0; }

/* Fotokaart (training van vandaag) */
.pfc-foto { color: #fff !important; position: relative; border-radius: 22px; overflow: hidden; min-height: 176px; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; background: var(--carbon) center / cover no-repeat; }
.pfc-foto::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 14, 19, .15) 0%, rgba(12, 14, 19, .35) 40%, rgba(12, 14, 19, .92) 100%); }
.pfc-foto > * { position: relative; }
.pfc-foto .pfc-chip { position: absolute; top: 14px; left: 14px; font-size: 11.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: rgba(12, 14, 19, .65); backdrop-filter: blur(8px); }
.pfc-foto h3 { font-stretch: 110%; font-size: 22px; font-weight: 700; margin: 0 0 8px; color: #fff; }
.pfc-foto p { margin: 0; color: #d5d8df; font-size: 13.5px; line-height: 1.45; }
.pfc-stats { display: flex; gap: 18px; }
.pfc-stats b { display: block; font-family: var(--cijfer); font-size: 24px; font-weight: 600; line-height: 1; }
.pfc-stats span { font-size: 11.5px; color: #c9cdd6; }

/* Rij naar een ander scherm */
.pfc-next { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; background: var(--s1); border-radius: 18px; padding: 12px 14px; min-height: 68px; border: 0; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; box-shadow: 0 1px 2px rgba(21, 22, 28, .04); }
.pfc-next:active, .pfc-lijstrij:active { background: var(--s2); }
.pfc-ic { width: 44px; height: 44px; border-radius: 14px; background: var(--s2); display: grid; place-items: center; color: var(--roze); }
.pfc-next-t { min-width: 0; }
.pfc-next-t b { display: block; font-weight: 700; }
.pfc-next-t small { display: block; color: var(--gedempt); font-size: 13px; line-height: 1.35; }
.pfc-pijl { color: #b3b5bf; width: 18px !important; height: 18px !important; }
.pfc-uitlog { grid-template-columns: 44px 1fr; }
.pfc-uitlog .pfc-ic { color: var(--gedempt); }

/* Brandstof: ring en balken */
.pfc-fuel { display: grid; grid-template-columns: 124px 1fr; gap: 16px; align-items: center; }
.pfc-ring { position: relative; width: 124px; height: 124px; }
.pfc-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.pfc-ring-baan { stroke: var(--s2); }
.pfc-ring-vul { stroke: var(--roze); transition: stroke-dashoffset .6s cubic-bezier(.2, .8, .2, 1); }
.pfc-ring-vul.over { stroke: var(--kh); }
.pfc-ring-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pfc-ring-c b { font-family: var(--cijfer); font-size: 32px; font-weight: 600; line-height: 1; }
.pfc-ring-c span { font-size: 11.5px; color: var(--gedempt); }
.pfc-bars { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pfc-balk-rij { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; margin-bottom: 5px; font-size: 13px; }
.pfc-balk-rij b { font-family: var(--cijfer); font-size: 16px; font-weight: 600; white-space: nowrap; }
.pfc-balk-rij b span { color: var(--gedempt); font-weight: 500; }
.pfc-spoor { height: 8px; border-radius: 99px; background: var(--s2); overflow: hidden; }
.pfc-spoor i { display: block; height: 100%; border-radius: 99px; background: var(--roze); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.pfc-spoor-donker { background: rgba(255, 255, 255, .12); }
.pfc-balk-kh i { background: var(--kh); }
.pfc-balk-eiwit i { background: var(--eiwit); }
.pfc-balk-vet i { background: var(--vet); }
.pfc-balk-vocht i { background: var(--vocht); }

/* Tip van de coach */
.pfc-nudge { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 16px; border-radius: 22px; background: linear-gradient(135deg, rgba(232, 56, 106, .12), rgba(232, 56, 106, .03)), var(--s1); border: 1px solid rgba(232, 56, 106, .25); }
.pfc-nudge p { margin: 0 0 12px; line-height: 1.5; font-size: 14px; }
.pfc-avatar { width: 40px; height: 40px; border-radius: 13px; background: var(--carbon); display: grid; place-items: center; }
.pfc-avatar img { width: 20px; height: auto; }

/* Knoppen */
.pfc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 16px; padding: 14px 18px; min-height: 50px; font: inherit; font-weight: 700; font-size: 15px; background: var(--roze); color: #fff !important; cursor: pointer; text-decoration: none; }
.pfc-btn:active { background: var(--roze-donker); }
.pfc-btn:disabled { opacity: .55; cursor: default; }
.pfc-btn-sm { padding: 9px 14px; min-height: 40px; font-size: 13.5px; border-radius: 12px; }
.pfc-btn-groot { flex: 1; min-height: 54px; font-size: 16px; }
.pfc-btn-blok { width: 100%; }
.pfc-btn-ghost { background: var(--s2); color: #15161c !important; font-weight: 600; }
.pfc-btn-ghost:active { background: var(--lijn); }
.pfc-btn-link { background: none; border: 0; color: var(--gedempt); font: inherit; font-weight: 600; font-size: 13px; padding: 8px; cursor: pointer; }
.pfc-round { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--s2); color: #15161c; cursor: pointer; }
.pfc-round-rosa { background: var(--roze); color: #fff; }
.pfc-round.luistert, .pfc-mic.luistert { background: var(--roze); color: #fff; animation: puls 1s infinite; }

/* Maaltijden */
.pfc-meals { display: flex; flex-direction: column; gap: 8px; }
.pfc-meal { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; align-items: center; background: var(--s1); border-radius: 18px; padding: 10px 12px 10px 10px; box-shadow: 0 1px 2px rgba(21, 22, 28, .04); }
.pfc-meal-open { background: var(--s1); border-radius: 18px; box-shadow: 0 1px 2px rgba(21, 22, 28, .04); }
.pfc-meal-open > summary { list-style: none; cursor: pointer; box-shadow: none; }
.pfc-meal-open > summary::-webkit-details-marker { display: none; }
.pfc-th { width: 60px; height: 60px; border-radius: 14px; object-fit: cover; background: var(--s2); }
.pfc-th-leeg { border: 1.5px dashed var(--lijn); background: transparent; display: grid; place-items: center; color: var(--gedempt); }
.pfc-meal-t { min-width: 0; }
.pfc-meal-t b { display: block; font-weight: 700; }
.pfc-meal-t small { display: block; color: var(--gedempt); font-size: 12.5px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pfc-kc { text-align: right; white-space: nowrap; }
.pfc-kc b { display: block; font-family: var(--cijfer); font-size: 18px; font-weight: 600; }
.pfc-kc small { color: var(--gel-tekst); font-size: 12px; }
.pfc-items { display: flex; flex-direction: column; gap: 2px; padding: 0 12px 10px; margin: 0; }
.pfc-it { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--lijn); font-size: 14px; }
.pfc-it-t { flex: 1; min-width: 0; }
.pfc-it-t small { display: block; color: var(--gedempt); font-size: 12.5px; }
.pfc-it form { margin: 0; }
.pfc-weg { width: 40px; height: 40px; border: 0; border-radius: 12px; background: transparent; color: var(--gedempt); font-size: 20px; cursor: pointer; display: grid; place-items: center; }
.pfc-weg:active { background: var(--s2); color: var(--roze); }

/* Loggen */
.pfc-logkaart textarea { width: 100%; border: 1px solid var(--lijn); border-radius: 16px; padding: 14px; font: inherit; font-size: 17px; line-height: 1.4; resize: vertical; min-height: 96px; background: var(--papier); color: #15161c; }
.pfc-logkaart textarea:focus { outline: 2px solid var(--roze); outline-offset: 0; border-color: transparent; }
.pfc-logknoppen { display: flex; gap: 8px; }
.pfc-mic { flex: none; display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 16px; padding: 0 16px; min-height: 54px; background: var(--s2); color: #15161c; font: inherit; font-weight: 600; cursor: pointer; }
.pfc-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -2px; padding: 2px; }
.pfc-chips::-webkit-scrollbar { display: none; }
.pfc-chip2 { flex: none; border: 1px solid var(--lijn); background: var(--s1); border-radius: 999px; padding: 9px 13px; font: inherit; font-size: 13px; color: #15161c; cursor: pointer; white-space: nowrap; }
.pfc-chip2.is-aan { border-color: var(--roze); background: var(--rosa-zacht); color: var(--roze); font-weight: 600; }
.pfc-zoek { display: flex; align-items: center; gap: 8px; background: var(--s1); border-radius: 18px; padding: 6px 6px 6px 14px; box-shadow: 0 1px 2px rgba(21, 22, 28, .04); color: var(--gedempt); }
.pfc-zoek input:not([type=hidden]) { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 16px; padding: 10px 0; color: #15161c; }
.pfc-zoek input:focus { outline: none; }
.pfc-zoek:focus-within { box-shadow: 0 0 0 2px var(--roze); }
.pfc-lijst { display: flex; flex-direction: column; background: var(--s1); border-radius: 18px; overflow: hidden; box-shadow: 0 1px 2px rgba(21, 22, 28, .04); }
.pfc-lijstrij { display: grid; grid-template-columns: 44px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 14px; min-height: 64px; border-top: 1px solid var(--lijn); }
.pfc-lijstrij:first-child { border-top: 0; }
.pfc-lijstrij .pfc-ic { width: 40px; height: 40px; border-radius: 12px; }
.pfc-bron-nevo { color: #2f6b3a; background: #e6f2e8; }
.pfc-bron-merk, .pfc-bron-sport { color: var(--gel-tekst); background: var(--kh-licht); }
.pfc-bron-eigen { color: var(--eiwit); background: var(--eiwit-licht); }

/* Coach */
.pfc-chat { display: flex; flex-direction: column; gap: 10px; }
.pfc-msg { max-width: 88%; padding: 11px 14px; border-radius: 20px; line-height: 1.5; font-size: 14.5px; overflow-wrap: anywhere; }
.pfc-msg p { margin: 0 0 6px; }
.pfc-msg p:last-child { margin-bottom: 0; }
.pfc-msg-coach { background: var(--s1); border-top-left-radius: 6px; align-self: flex-start; }
.pfc-msg-me { background: var(--roze); color: #fff; border-top-right-radius: 6px; align-self: flex-end; font-weight: 600; }
.pfc-msg .pfc-items { padding: 0; margin: 8px 0 6px; }
.pfc-msg .pfc-it { font-size: 13.5px; cursor: pointer; }
.pfc-msg .pfc-it input { width: 20px; height: 20px; accent-color: var(--roze); flex: none; }
.pfc-msg .pfc-kc { font-family: var(--cijfer); font-size: 15px; color: var(--gedempt); }
.pfc-tot { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: var(--s2); border-radius: 14px; padding: 9px 4px; text-align: center; margin: 6px 0 8px; }
.pfc-tot b { display: block; font-family: var(--cijfer); font-size: 19px; font-weight: 600; line-height: 1.1; }
.pfc-tot span { font-size: 10.5px; color: var(--gedempt); }
.pfc-tot div:nth-child(2) b { color: var(--gel-tekst); }
.pfc-done { font-size: 13px; color: var(--roze); font-weight: 700; }
.pfc-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: flex-end; }
.pfc-acts select, .pfc-acts input { border: 1px solid var(--lijn); border-radius: 12px; padding: 9px 10px; font: inherit; font-size: 15px; background: var(--papier); min-height: 42px; }
.pfc-acts .pfc-btn { width: 100%; }
.pfc-tijd { font-size: 11px; color: var(--gedempt); margin-top: 4px; }
.pfc-wis { align-self: center; margin: 0; }
.pfc-composer { position: sticky; bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom)); z-index: 5; display: flex; flex-direction: column; gap: 10px; margin: 0 -16px; padding: 10px 16px 12px; background: var(--papier); border-top: 1px solid var(--lijn); }
.pfc-inputrow { display: flex; gap: 8px; align-items: center; margin: 0; }
.pfc-inputrow input { flex: 1; min-width: 0; background: var(--s1); border: 1px solid var(--lijn); border-radius: 16px; padding: 12px 14px; font: inherit; font-size: 16px; color: #15161c; min-height: 48px; }

/* Training: weekgrafiek */
.pfc-chart { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; height: 170px; padding-top: 6px; }
.pfc-col { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; }
.pfc-col-v { font-family: var(--cijfer); font-size: 12.5px; color: var(--gedempt); }
.pfc-col-baan { width: 100%; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; }
.pfc-col-baan i { display: block; width: 100%; }
.pfc-col-train { background: var(--kh); border-radius: 10px 10px 4px 4px; }
.pfc-col-basis { background: rgba(245, 165, 36, .28); border-radius: 4px 4px 6px 6px; }
.pfc-col.is-rust .pfc-col-basis { border-radius: 10px 10px 6px 6px; }
.pfc-col-d { font-size: 12px; color: var(--gedempt); font-weight: 600; }
.pfc-col.is-vandaag .pfc-col-d { color: var(--roze); }
.pfc-col.is-vandaag .pfc-col-v { color: #15161c; font-weight: 600; }
.pfc-legend { display: flex; gap: 14px; font-size: 12px; color: var(--gedempt); }
.pfc-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: 0; }
.pfc-lg-basis { background: rgba(245, 165, 36, .28); }
.pfc-lg-train { background: var(--kh); }
.pfc-dag { background: var(--s1); border-radius: 18px; padding: 4px 14px; box-shadow: 0 1px 2px rgba(21, 22, 28, .04); }
.pfc-dag.is-vandaag { box-shadow: inset 0 0 0 2px var(--roze); }
.pfc-dag-kop { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; min-height: 44px; }
.pfc-dag-kop span { font-family: var(--cijfer); font-size: 16px; color: var(--gedempt); }
.pfc-dag-rust { color: var(--gedempt); font-size: 13.5px; padding: 0 0 10px; }
.pfc-dag .pfc-it .pfc-ic { width: 36px; height: 36px; border-radius: 11px; }

/* Ritplanner */
.pfc-slidewaarde { display: block; font-family: var(--cijfer); font-size: 40px; font-weight: 600; color: var(--gel-tekst); line-height: 1; }
.pfc-slider { width: 100%; height: 36px; accent-color: var(--kh); margin: 0; }
.pfc-slide-as { display: flex; justify-content: space-between; font-size: 12px; color: var(--gedempt); margin-top: -6px; }
.pfc-stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pfc-stats3 > div { background: var(--s1); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(21, 22, 28, .04); }
.pfc-stats3 span { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--gedempt); font-weight: 700; }
.pfc-stats3 b { font-family: var(--cijfer); font-size: 28px; font-weight: 600; line-height: 1.1; margin-top: 4px; }
.pfc-stats3 small { font-size: 11.5px; color: var(--gedempt); line-height: 1.3; }
.pfc-stats3 .pfc-gel b { color: var(--gel-tekst); }
.pfc-pak { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.pfc-pak li { display: flex; gap: 12px; align-items: center; }
.pfc-pak .icoon { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--kh-licht); color: var(--gel-tekst); flex: none; }
.pfc-pak .muted { color: var(--gedempt); }

/* Boodschappen */
.pfc-vinklijst { list-style: none; padding: 4px 14px; gap: 0; }
.pfc-vinklijst li { display: flex; gap: 12px; align-items: center; padding: 10px 0; min-height: 56px; border-top: 1px solid var(--lijn); }
.pfc-vinklijst li:first-child { border-top: 0; }
.pfc-vinklijst form { margin: 0; }
.pfc-vinklijst .vinkje { width: 30px; height: 30px; border-radius: 9px; }
.pfc-vinklijst .vink-tekst { flex: 1; min-width: 0; font-size: 14.5px; }
.pfc-vinklijst .vink-tekst .nowrap { color: var(--gedempt); font-size: 13px; }
.pfc-vinklijst .vink-tekst small { display: block; color: var(--gedempt); font-size: 12.5px; line-height: 1.4; }
.pfc-tweeveld { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pfc-tweeveld .field { min-width: 0; }

/* Profiel */
.pfc-profiel-pills { display: flex; flex-wrap: wrap; gap: 6px; }

/* Formulieren en onderdelen van het platform binnen de app */
.pfc-app .form, .pfc-app form.pfc-card { gap: 12px; }
.pfc-app .field { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.pfc-app .field label, .pfc-app .form > label { font-size: 13px; font-weight: 600; color: #15161c; }
.pfc-app .field input, .pfc-app .field select, .pfc-app .field textarea { width: 100%; min-height: 48px; border: 1px solid var(--lijn); border-radius: 14px; padding: 11px 13px; font: inherit; font-size: 16px; background: var(--papier); color: #15161c; }
.pfc-app .field input:focus, .pfc-app .field select:focus, .pfc-app .field textarea:focus { outline: 2px solid var(--roze); outline-offset: 0; border-color: transparent; }
.pfc-app .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.pfc-app .grid { display: flex; flex-direction: column; gap: 14px; }
.pfc-app .stack { display: flex; flex-direction: column; gap: 14px; }
.pfc-app .card { background: var(--s1); border: 0; border-radius: 22px; padding: 16px; margin: 0; box-shadow: 0 1px 2px rgba(21, 22, 28, .04); }
.pfc-app .card h3 { font-size: 17px; margin: 0 0 10px; }
.pfc-app details.card > summary { cursor: pointer; min-height: 28px; }
.pfc-app .btn { border-radius: 14px; min-height: 46px; font-weight: 700; }
.pfc-app .btn-block, .pfc-app .logform .btn-primary { width: 100%; min-height: 54px; border-radius: 16px; font-size: 16px; }
.pfc-app .logform { order: -1; display: flex; flex-direction: column; gap: 12px; }
.pfc-app .macrogrid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pfc-app .weegschaal { margin: 0; border-radius: 18px; }
.pfc-app .portielijst li { padding: 8px 0; gap: 8px; }
.pfc-app .etappe-svg { margin: 0; }
.pfc-app .help { font-size: 12.5px; }

/* Menubalk onderin */
.pfc-tabs { position: fixed; z-index: 30; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--app-b, 440px);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; padding: 6px 6px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); border-top: 1px solid #e3e1e8; }
.pfc-tab, .pfc-fab { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: #6c6f7c; text-decoration: none; padding: 6px 0 2px; min-height: 52px; justify-content: flex-end; }
.pfc-tab .icoon { width: 25px; height: 25px; }
.pfc-tab[aria-current="page"] { color: #15161c; }
.pfc-tab[aria-current="page"] .icoon { color: var(--roze); }
.pfc-fab { padding-top: 0; }
.pfc-fab-rond { width: 60px; height: 60px; margin-top: -30px; border-radius: 50%; background: var(--roze); color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(232, 56, 106, .38), 0 0 0 6px #fff; transition: transform .15s; }
.pfc-fab-rond .icoon { width: 28px; height: 28px; stroke-width: 2.6; }
.pfc-fab:active .pfc-fab-rond { transform: scale(.94); }
.pfc-fab[aria-current="page"] { color: #15161c; }

@media (max-width: 360px) {
  .pfc-fuel { grid-template-columns: 1fr; justify-items: center; }
  .pfc-fuel .pfc-bars { width: 100%; }
  .pfc-stats3 b { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) { .pfc-app *, .pfc-tabs * { transition: none !important; animation: none !important; } }
@media print {
  .pfc-tabs, .pfc-kop .pfc-you, .pfc-terug { display: none !important; }
  body.layout-app:has(.pfc-app) { background: #fff; padding: 0; }
}
