/* Kring — stijl. Helder-tokens (persoonlijke huisstijl) + Kring-componenten.
   Waarden volgen de ontwerpnotitie van 2026-09-06 (design/claude-design). */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Mulish:wght@300;400;500;600;700&display=swap');

:root {
  --creme: #FBF7F0; --white: #FFFFFF; --ink: #2D2A26; --grey: #8C857B; --line: #ECE4D8; --sand: #EFE7D9; --creme-deep: #F4EDE1;
  --border-strong: #DCCFBC; --text-on-ink: #F4EFE6; --meta-licht: #B9B1A5;
  --liefde: #EE6A4D; --liefde-deep: #E0512F; --liefde-tint: #FBE7E0;
  --harmonie: #54B0A1; --betrokkenheid: #4C9BD1; --expressie: #7E72C4; --vitaliteit: #EFA73E; --groei: #84B257; --plezier: #E36FA4; --financien: #9E8F7A; --huishouden: #C2B6A2;
  --accent: var(--liefde); --accent-deep: var(--liefde-deep);
  --font-display: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body: 'Mulish', system-ui, -apple-system, sans-serif;
  --radius-sm: 9px; --radius-md: 12px; --radius-lg: 16px; --radius-xl: 22px;
  --shadow-card: 0 1px 3px rgba(45,42,38,.05), 0 6px 16px rgba(45,42,38,.05);
  --shadow-raised: 0 4px 10px rgba(45,42,38,.07), 0 14px 34px rgba(45,42,38,.08);
  --shadow-pop: 0 10px 24px rgba(224,81,47,.16), 0 2px 6px rgba(224,81,47,.12);
  --topbar: 64px; --rail: 96px; --onderbalk: 84px;
  --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--creme); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow: hidden; overscroll-behavior: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--accent-deep); }
a.navknop, a.persoonkaartje, a.mini-persoon, a.wordmark, .kruimels a, .keten a, .avatars a { text-decoration: none; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; margin: 0; }
h1 { font-size: 28px; line-height: 1.1; } h2 { font-size: 20px; letter-spacing: -.01em; } h3 { font-size: 15px; letter-spacing: 0; }
.kicker { font-family: var(--font-display); font-weight: 500; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--grey); }
.meta { font-size: 13.5px; color: var(--grey); }
.vet { font-weight: 600; }
[hidden] { display: none !important; }
.verborgen { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- schil ---------- */
#schil { display: grid; grid-template-rows: auto 1fr; height: 100%; }
#bovenbalk { background: var(--ink); color: var(--text-on-ink); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; height: var(--topbar); }
#bovenbalk .wordmark { font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: -.02em; display: inline-flex; align-items: baseline; color: inherit; }
#bovenbalk .wordmark .stip { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-left: 3px; }
#bovenbalk .rechts { display: flex; align-items: center; gap: 18px; }
#bovenbalk .sync { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--meta-licht); }
#bovenbalk .sync .bol { width: 8px; height: 8px; border-radius: 50%; background: var(--harmonie); }
#bovenbalk .sync .bol.uit { background: var(--meta-licht); }
#bovenbalk .sync .bol.bezig { background: var(--vitaliteit); animation: knipper 1s ease-in-out infinite; }
#bovenbalk .sync .bol.offline { background: var(--meta-licht); box-shadow: 0 0 0 2px var(--vitaliteit) inset; }
#bovenbalk .sync .bol.fout, #bovenbalk .sync .bol.uitgelogd { background: var(--liefde); }
#bovenbalk .sync { text-decoration: none; }
#bovenbalk .sync:hover { color: var(--text-on-ink); }
@keyframes knipper { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
#bovenbalk .icoonknop-donker { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-on-ink); border-radius: 50%; }
#bovenbalk .titel { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -.02em; display: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
#bovenbalk .terug { display: none; }
#lichaam { position: relative; display: grid; grid-template-columns: 1fr var(--rail); min-height: 0; }
#hoofd { overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; padding: 28px 40px 40px; }
#navrail { background: var(--white); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; padding: 26px 8px; }
.navknop { display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--ink); font-family: var(--font-display); font-weight: 500; font-size: 13px; padding: 10px 0; border-radius: var(--radius-md); min-height: 44px; }
.navknop.actief { color: var(--liefde-deep); font-weight: 600; }
#onderbalk { display: none; }
#fab { display: none; }

@media (max-width: 899px) {
  :root { --topbar: calc(56px + var(--safe-top)); }
  #bovenbalk { padding: var(--safe-top) 20px 0; align-items: center; }
  #bovenbalk .wordmark { font-size: 22px; }
  #bovenbalk .sync span.tekst { display: none; }
  #bovenbalk .titel { display: block; }
  #bovenbalk .titel:empty { display: none; }
  #bovenbalk .terug { display: inline-flex; }
  #bovenbalk.met-titel .wordmark { display: none; }
  #bovenbalk .links { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1; }
  #lichaam { grid-template-columns: 1fr; }
  #navrail { display: none; }
  #hoofd { padding: 16px 16px calc(var(--onderbalk) + var(--safe-bottom) + 24px); }
  #onderbalk { display: flex; position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--onderbalk) + var(--safe-bottom)); padding-bottom: var(--safe-bottom); background: var(--white); border-top: 1px solid var(--line); align-items: flex-start; z-index: 20; }
  #onderbalk .navknop { flex: 1; font-size: 12px; gap: 4px; padding-top: 10px; border-radius: 0; }
  #fab { display: flex; position: absolute; right: 18px; bottom: calc(var(--onderbalk) + var(--safe-bottom) + 16px); width: 60px; height: 60px; border-radius: 50%; background: var(--accent); color: #fff; align-items: center; justify-content: center; box-shadow: var(--shadow-pop); z-index: 21; }
  h1 { font-size: 22px; }
}

/* ---------- knoppen, chips, velden ---------- */
.knop { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 14px; border-radius: var(--radius-sm); padding: 0 16px; height: 44px; white-space: nowrap; color: var(--ink); background: var(--white); border: 1.5px solid var(--border-strong); }
.knop.primair { color: #fff; background: var(--accent); border-color: var(--accent); box-shadow: 0 1px 2px rgba(45,42,38,.06); }
.knop.inkt { color: var(--text-on-ink); background: var(--ink); border-color: var(--ink); }
.knop.gevaar { color: var(--liefde-deep); border-color: var(--liefde); }
.knop.breed { width: 100%; }
.knop.klein { height: 36px; font-size: 13px; padding: 0 12px; }
.knop:disabled { opacity: .5; cursor: default; }
.icoonknop { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--white); color: var(--ink); border: 1.5px solid var(--line); }
.icoonknop.actief { background: var(--ink); color: var(--text-on-ink); border-color: var(--ink); }
.icoonknop.plat { border-color: transparent; background: transparent; }
.chip { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 600; font-size: 13.5px; border-radius: 999px; padding: 0 13px; height: 36px; white-space: nowrap; background: var(--white); color: var(--ink); border: 1.5px solid var(--line); }
.chip.actief { background: var(--ink); color: var(--text-on-ink); border-color: var(--ink); }
.chip .stip { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.chip.klein { height: 30px; font-size: 13px; padding: 0 11px; }
.chip.dashed { border-style: dashed; color: var(--grey); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.segment { display: inline-flex; gap: 2px; padding: 3px; background: var(--sand); border-radius: 999px; }
.segment button { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; padding: 0 12px; height: 32px; border-radius: 999px; color: var(--ink); }
.segment button.actief { background: var(--ink); color: var(--text-on-ink); }
.veld-invoer { width: 100%; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-md); min-height: 46px; padding: 10px 14px; font-size: 16px; color: var(--ink); outline: none; }
.veld-invoer:focus { border-color: var(--ink); }
textarea.veld-invoer { resize: vertical; min-height: 88px; line-height: 1.45; }
label.etiket { font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--ink); display: block; margin-bottom: 6px; }
.zoekveld { position: relative; }
.zoekveld svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--grey); }
.zoekveld input { padding-left: 42px; }
kbd { font-family: var(--font-body); font-size: 11.5px; font-weight: 600; color: var(--grey); border: 1px solid var(--border-strong); border-radius: 5px; padding: 0 5px; line-height: 18px; }

/* ---------- kaarten en avatars ---------- */
.kaart { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.kaart.pad { padding: 18px 22px; }
.avatar { border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; overflow: hidden; position: relative; background: var(--sand); color: var(--grey); border: 2px solid var(--huishouden); }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.groot { border-width: 3px; }
.avatar.overleden { background: var(--creme-deep) !important; color: var(--grey) !important; border-color: var(--huishouden) !important; }
.avatar.overleden img { filter: grayscale(1); opacity: .8; }
.persoonkaartje { padding: 16px 10px 14px; display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; color: inherit; width: 100%; }
.persoonkaartje .naam { font-family: var(--font-display); font-weight: 600; font-size: 15px; line-height: 1.2; }
.persoonkaartje.overleden .naam { color: var(--grey); }
.persoonkaartje .jaren { font-size: 13px; color: var(--grey); }
.grid-kaartjes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
@media (max-width: 899px) { .grid-kaartjes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } }

/* ---------- vandaag ---------- */
.vandaag { display: flex; gap: 16px; margin-bottom: 22px; }
.vandaag .kaart { padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.vandaag .kaart.links { flex: 1; }
.vandaag .kaart.rechts { width: 420px; }
.vandaag .avatars { display: flex; gap: 10px; margin-left: auto; }
@media (max-width: 899px) { .vandaag { flex-direction: column; gap: 12px; margin-bottom: 12px; } .vandaag .kaart { padding: 14px 16px; } .vandaag .kaart.rechts { width: auto; } }

/* ---------- werkbalk kaartjes ---------- */
.werkbalk { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.werkbalk .zoekveld { width: 520px; max-width: 100%; }
.werkbalk .rechts { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.werkbalk .weergave { display: inline-flex; align-items: center; gap: 10px; }
@media (max-width: 899px) { .werkbalk { gap: 10px; } .werkbalk .zoekveld { width: 100%; } .werkbalk .rechts { margin-left: 0; } }

/* ---------- persoonskaart ---------- */
.kruimels { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--grey); margin-bottom: 18px; }
.kruimels .huidig { color: var(--ink); }
.persoon-layout { display: grid; grid-template-columns: 380px 1fr; gap: 28px; align-items: start; }
.persoon-kolom { display: flex; flex-direction: column; gap: 16px; }
.persoon-kop { padding: 28px 24px 22px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.persoon-kop .fotowrap { position: relative; }
.persoon-kop .camera { position: absolute; right: 2px; bottom: 2px; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--text-on-ink); display: flex; align-items: center; justify-content: center; border: 3px solid #fff; }
.persoon-kop h1 { margin-top: 6px; }
.persoon-kop .acties { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; justify-content: center; }
.velden { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; padding: 6px 22px 8px; }
.veld { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; width: 100%; color: inherit; }
.veld .icoon { color: var(--grey); flex: none; margin-top: 2px; }
.veld .inhoud { flex: 1; min-width: 0; }
.veld .label { font-family: var(--font-display); font-weight: 600; font-size: 12px; color: var(--grey); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 2px; }
.veld .waarde { font-size: 16px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.veld .waarde.leeg { color: var(--meta-licht); }
.veld .potlood { color: var(--grey); flex: none; margin-top: 2px; }
.veld.bewerk .inhoud input, .veld.bewerk .inhoud textarea, .veld.bewerk .inhoud select { width: 100%; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 6px 10px; font-size: 16px; background: var(--white); outline: none; }
.veld.bewerk .inhoud input:focus, .veld.bewerk .inhoud textarea:focus { border-color: var(--ink); }
.relaties { padding: 14px 22px 6px; }
.relaties .rijen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.relatie-rij { display: flex; gap: 12px; align-items: flex-start; padding: 4px 0; }
.relatie-rij .label { width: 92px; flex: none; font-family: var(--font-display); font-weight: 600; font-size: 13px; padding-top: 14px; }
.relatie-rij .personen { display: flex; gap: 10px; flex-wrap: wrap; }
.mini-persoon { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 64px; text-align: center; color: inherit; }
.mini-persoon span { font-size: 12px; line-height: 1.15; }
.mini-persoon .rol { color: var(--grey); }
.mini-plus { width: 48px; height: 48px; border-radius: 50%; border: 1.5px dashed var(--border-strong); display: flex; align-items: center; justify-content: center; color: var(--grey); }
.hoeken { padding: 18px 22px; }
.hoeken .kop { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.hoeken .keten { display: flex; align-items: center; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.hoeken .keten .lijn { width: 22px; height: 2px; background: var(--border-strong); }
.oefenstand { padding: 18px 22px; }
.bakkenbalk { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--line); }
.bakkenbalk .gekend { background: var(--ink); } .bakkenbalk .lerend { background: var(--grey); }
.notities { padding: 16px 22px 18px; }
.notities .tekst { font-size: 16px; line-height: 1.6; white-space: pre-wrap; }
.ezelsbrug { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--grey); }
.pad-tint { background: #E2F1EE; border-radius: var(--radius-md); padding: 12px 14px; font-size: 14px; line-height: 1.5; display: flex; gap: 10px; align-items: flex-start; }
@media (max-width: 899px) {
  .persoon-layout { grid-template-columns: 1fr; gap: 12px; }
  .persoon-kolom { display: contents; }
  .persoon-kop { order: 1; } .hoeken { order: 2; } .extra-velden { order: 3; } .velden-kaart { order: 4; } .relaties { order: 5; } .notities { order: 6; } .oefenstand { order: 7; } .onder-acties { order: 8; }
  .werkbalk .weergave { display: none; }
  .persoon-kop { flex-direction: row; text-align: left; align-items: center; padding: 6px 0 4px; background: transparent; border: 0; box-shadow: none; gap: 16px; }
  .persoon-kop .info { flex: 1; min-width: 0; }
  .persoon-kop .acties { justify-content: flex-start; }
  .velden { grid-template-columns: 1fr; padding: 4px 16px; }
  .relaties { padding: 14px 16px 10px; }
  .relaties .rijen { grid-template-columns: 1fr; }
  .kruimels { display: none; }
}

/* ---------- dialoog / onderblad / toast ---------- */
.overlay { position: fixed; inset: 0; background: rgba(45,42,38,.28); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; }
.dialoog { background: var(--white); border-radius: var(--radius-xl); box-shadow: var(--shadow-raised); width: min(560px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; padding: 22px 24px; position: relative; }
.dialoog h2 { margin-bottom: 4px; padding-right: 44px; }
.dialoog .sluit { position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--grey); border-radius: 50%; }
.dialoog .acties { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.dialoog .acties .knop { min-width: 120px; }
.dialoog .inhoud { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
@media (max-width: 899px) {
  .overlay { align-items: flex-end; padding: 0; }
  .dialoog { width: 100%; border-radius: var(--radius-xl) var(--radius-xl) 0 0; max-height: 88vh; padding: 12px 20px calc(16px + var(--safe-bottom)); box-shadow: 0 -6px 24px rgba(45,42,38,.12); }
  .dialoog::before { content: ''; display: block; width: 40px; height: 4px; border-radius: 999px; background: var(--border-strong); margin: 0 auto 14px; }
  .dialoog .acties { flex-direction: column-reverse; }
  .dialoog .acties .knop { width: 100%; height: 48px; }
}
.keuzegrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.keuzegrid button { height: 64px; border: 1.5px solid var(--line); border-radius: var(--radius-md); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-family: var(--font-display); font-weight: 600; font-size: 13.5px; background: var(--white); color: var(--ink); }
.keuzegrid button .plus { color: var(--liefde-deep); }
.keuzegrid button.actief { background: var(--ink); color: var(--text-on-ink); border-color: var(--ink); }
.keuzegrid button.actief .plus { color: var(--text-on-ink); }
.lijst-personen { display: flex; flex-direction: column; max-height: 30vh; overflow-y: auto; border: 1.5px solid var(--line); border-radius: var(--radius-md); }
.lijst-personen button { display: flex; align-items: center; gap: 12px; padding: 8px 12px; min-height: 52px; text-align: left; border-bottom: 1px solid var(--line); color: inherit; width: 100%; }
.lijst-personen button:last-child { border-bottom: 0; }
.lijst-personen button .meta { margin-left: auto; }
#toast { position: fixed; left: 50%; bottom: calc(24px + var(--safe-bottom)); transform: translate(-50%, 20px); background: var(--ink); color: var(--text-on-ink); font-family: var(--font-display); font-weight: 500; font-size: 14px; padding: 12px 18px; border-radius: 999px; box-shadow: var(--shadow-raised); opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; z-index: 80; max-width: calc(100% - 40px); text-align: center; }
#toast.zichtbaar { opacity: 1; transform: translate(-50%, 0); }
#knopinfo { position: fixed; left: 0; top: 0; background: var(--ink); color: var(--text-on-ink); font-family: var(--font-body); font-size: 13px; line-height: 1.3; padding: 6px 10px; border-radius: var(--radius-sm); box-shadow: var(--shadow-raised); opacity: 0; transition: opacity .12s; pointer-events: none; z-index: 90; max-width: 260px; white-space: normal; }
#knopinfo.zichtbaar { opacity: 1; }
button, a.icoonknop { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
@media (max-width: 899px) { #toast { bottom: calc(var(--onderbalk) + var(--safe-bottom) + 16px); } }

/* ---------- lege staat ---------- */
.leeg-staat { text-align: center; padding: 60px 20px; max-width: 420px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.leeg-staat .icoon { width: 72px; height: 72px; border-radius: 50%; background: var(--sand); color: var(--grey); display: flex; align-items: center; justify-content: center; }
.leeg-staat p { margin: 0; color: var(--grey); }

/* ---------- bijsnijden ---------- */
.bijsnijder { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.bijsnijder canvas { width: min(320px, 100%); aspect-ratio: 1; border-radius: var(--radius-lg); background: var(--sand); touch-action: none; cursor: grab; border: 1px solid var(--line); }
.bijsnijder .zoom { width: min(320px, 100%); display: flex; align-items: center; gap: 10px; }
.bijsnijder input[type=range] { flex: 1; accent-color: var(--ink); }

/* ---------- meer / instellingen ---------- */
.instellingen { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.instelling-rij { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.instelling-rij:last-child { border-bottom: 0; }
.instelling-rij .tekst { flex: 1 1 200px; min-width: 0; }
.instelling-rij > .chips { flex: none; }
@media (max-width: 899px) { .instelling-rij { flex-wrap: wrap; } .instelling-rij .tekst { flex: 1 1 100%; } .instelling-rij > .chips, .instelling-rij > .chip { margin-left: auto; } .herstelcode { font-size: 15px; letter-spacing: 0; padding: 12px 8px; } .dialoog .segment button { flex: 1; white-space: normal; line-height: 1.2; } }
.instelling-rij .tekst .meta { display: block; }
.groep-rij { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.groep-rij:last-child { border-bottom: 0; }
.groep-rij .naam { flex: 1; font-weight: 600; font-family: var(--font-display); }
.versietabel { width: 100%; border-collapse: collapse; font-size: 14px; }
.versietabel th { text-align: left; background: var(--sand); padding: 8px 10px; font-family: var(--font-display); border-bottom: 3px solid var(--accent); }
.versietabel td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tabs button { padding: 10px 14px; font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--grey); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.actief { color: var(--ink); border-bottom-color: var(--ink); }
.instructie p { margin: 0 0 10px; }

/* ---------- grafen (Netwerk, Stamboom) ---------- */
.graafview { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.graaf-werkbalk { margin-bottom: 14px; }
.graaf-werkbalk .knop.keuze { gap: 10px; padding: 0 8px 0 14px; height: 46px; border-color: var(--line); border-radius: var(--radius-md); }
.graaf-werkbalk .chips.scroll-x { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.graaf-werkbalk .chips.scroll-x::-webkit-scrollbar { display: none; }
.graafvlak { position: relative; flex: 1; min-height: 420px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; }
.graaf-svg { width: 100%; height: 100%; display: block; touch-action: none; }
.graaf-knoppen { position: absolute; left: 14px; top: 14px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.graaf-knoppen .icoonknop { width: 40px; height: 40px; }
.graaf-legenda { position: absolute; right: 14px; bottom: 14px; background: var(--creme); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 10px 14px; display: flex; flex-direction: column; gap: 5px; z-index: 2; }
.graaf-legenda .rij { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.graaf-onderregel { position: absolute; left: 14px; bottom: 12px; z-index: 2; font-size: 12.5px; max-width: 55%; }
.graaf-minikaart { position: absolute; left: 50%; transform: translateX(-50%); bottom: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-raised); padding: 10px 12px; display: flex; align-items: center; gap: 12px; width: min(420px, calc(100% - 28px)); z-index: 3; }
.graaf-plusbalk { position: absolute; left: 14px; right: 14px; bottom: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-raised); padding: 8px 12px; display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; z-index: 3; }
.stappers { display: flex; gap: 14px; }
.stapper { display: flex; align-items: center; gap: 6px; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-md); height: 46px; padding: 0 8px 0 12px; }
.stapper .getal { font-family: var(--font-display); font-weight: 600; min-width: 18px; text-align: center; }
.stapper .icoonknop.klein { width: 32px; height: 32px; border-color: transparent; font-size: 18px; }
@media (max-width: 899px) {
  #hoofd.vol { padding: 12px 12px calc(var(--onderbalk) + var(--safe-bottom) + 12px); display: flex; flex-direction: column; }
  .graafview { flex: 1; }
  .graaf-werkbalk { margin-bottom: 10px; gap: 8px; }
  .graaf-werkbalk .knop.keuze { height: 40px; }
  .graaf-werkbalk .rechts { margin-left: auto; }
  .graafvlak { min-height: 0; border-radius: var(--radius-lg); }
  .graaf-onderregel { display: none; }
  .graaf-minikaart { bottom: 12px; width: calc(100% - 24px); }
  .graaf-plusbalk { left: 10px; right: 10px; bottom: 10px; }
  .stapper { height: 40px; }
  .graaf-knoppen.inline { position: static; flex-direction: row; gap: 6px; }
  .graaf-knoppen.inline > span { display: none; }
  .graafvlak .boom-cont { position: absolute; left: 0; right: 0; top: 6px; bottom: 68px; height: auto; }
}

/* ---------- synchronisatie (M5) ---------- */
.instelling-rij.kolom { flex-direction: column; align-items: stretch; gap: 10px; }
.sync-sectie { display: flex; flex-direction: column; gap: 10px; }
.sync-stand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-family: var(--font-display); }
.sync-stand .bol { width: 10px; height: 10px; border-radius: 50%; background: var(--harmonie); flex: none; }
.sync-stand .bol.bezig { background: var(--vitaliteit); animation: knipper 1s ease-in-out infinite; }
.sync-stand .bol.offline { background: var(--vitaliteit); }
.sync-stand .bol.fout, .sync-stand .bol.uitgelogd { background: var(--liefde); }
.sync-stand .bol.uit { background: var(--meta-licht); }
.knoppenrij { display: flex; gap: 10px; flex-wrap: wrap; }
.veldblok { display: flex; flex-direction: column; gap: 6px; }
.wachtwoord-rij { display: flex; align-items: center; gap: 6px; }
.wachtwoord-rij .veld-invoer { flex: 1; min-width: 0; }
.sterkte { margin-top: 6px; min-height: 1.2em; }
.sterkte[data-niveau="zwak"] { color: var(--liefde-deep); }
.sterkte[data-niveau="sterk"] { color: var(--ink); }
.meta.fout:not(:empty) { color: var(--liefde-deep); font-weight: 600; }
.herstelcode { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 20px; letter-spacing: 1px; text-align: center; padding: 14px; border: 1.5px dashed var(--line); border-radius: var(--radius-md); background: var(--creme); user-select: all; -webkit-user-select: all; word-break: break-all; }
.dialoog .segment { margin-bottom: 4px; }
@media print {
  body[data-print="herstelcode"] #schil { display: none; }
  body[data-print="herstelcode"] .overlay { position: static; background: none; }
  body[data-print="herstelcode"] .dialoog { box-shadow: none; border: 0; max-width: none; }
  body[data-print="herstelcode"] .dialoog .acties, body[data-print="herstelcode"] .dialoog .knoppenrij, body[data-print="herstelcode"] .dialoog label { display: none; }
}

/* family-chart overrides (stamboom) */
.boom-cont { width: 100%; height: 100%; }
.boom-cont .f3-nav-cont, .boom-cont .f3-history-controls { display: none; }
.f3 .card { background: transparent !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; color: inherit !important; }
.f3 .card-inner { background: transparent !important; padding: 0 !important; }
.f3 svg { background: transparent; }
.kring-kaart { width: 100%; height: 100%; background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 8px; box-sizing: border-box; cursor: pointer; }
.kring-kaart.hoofd { border: 2px solid var(--ink); box-shadow: var(--shadow-raised); }
.kring-kaart.overleden { opacity: .85; }
.kring-avatar { border-radius: 50%; display: flex; align-items: center; justify-content: center; overflow: hidden; box-sizing: border-box; flex: none; }
.kring-naam { font-family: var(--font-display); font-weight: 600; font-size: 15px; line-height: 1.15; }
.kring-jaren { font-size: 12px; color: var(--grey); }
.f3 path.link { stroke: #DCCFBC !important; stroke-width: 2px !important; fill: none; }
.f3 path.link.spouse, .f3 .link-spouse { stroke: #EE6A4D !important; stroke-width: 3px !important; }

/* ---------- oefenen (M6) ---------- */
.oefen-start { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.oefen-vandaag { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.oefen-vandaag .groot, .afsluiting .groot { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -.01em; }
.oefen-vandaag .getal, .afsluiting .getal { font-size: 34px; line-height: 1; margin-right: 4px; }
.oefen-vandaag .segment { align-self: flex-start; }
.oefen-vandaag .knop.breed { margin-top: 4px; }
.oefen-groepen { padding: 14px 18px; }
.oefen-groepen .kop { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.legenda { display: flex; gap: 12px; font-size: 12.5px; }
.legenda span { display: inline-flex; align-items: center; gap: 5px; }
.legenda .vak { width: 8px; height: 8px; border-radius: 2px; background: var(--line); }
.legenda .vak.gekend { background: var(--ink); } .legenda .vak.lerend { background: var(--grey); }
.groep-rij.oefen { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; color: var(--ink); }
.groep-rij.oefen:last-child { border-bottom: 0; }
.groep-rij.oefen .stip { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.groep-rij.oefen .tekst { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.groep-rij.oefen .naam { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.groep-rij.oefen .bakkenbalk { width: 120px; flex: none; }
.groep-rij.oefen svg { color: var(--grey); flex: none; }

.oefen-sessie { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.oefen-kop { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.oefen-kop .titel { font-family: var(--font-display); font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oefen-kop .voortgang { flex: 1; }
.oefen-kop .balk { height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; }
.oefen-kop .vul { height: 100%; background: var(--accent); border-radius: 999px; transition: width .3s; }
.oefen-kop .teller { white-space: nowrap; }
.oefen-lichaam { display: flex; gap: 22px; align-items: flex-start; justify-content: center; flex: 1; min-height: 0; }
.sessie-paneel { width: 220px; flex: none; padding: 14px 16px; }
.sessie-lijst { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.sessie-lijst .rij { display: flex; align-items: center; gap: 10px; font-size: 13.5px; padding: 4px 0; color: var(--ink); text-decoration: none; }
.sessie-lijst .rij .naam { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sessie-lijst .uitkomst { font-size: 12.5px; color: var(--grey); }
.sessie-lijst .uitkomst.fout, .sessie-lijst .uitkomst.nu { color: var(--liefde-deep); }
.sessie-paneel .meta { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.oefen-midden { width: min(620px, 100%); display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.oefenkaart { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); padding: 34px 28px 26px; min-height: 420px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; cursor: pointer; outline: none; touch-action: pan-y; user-select: none; }
.oefenkaart:focus-visible { box-shadow: 0 0 0 3px var(--sand), var(--shadow-card); }
.oefenkaart.achter { cursor: default; }
.oefenkaart .avatar-groot .avatar { border-width: 4px; }
.oefenkaart .vraag { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -.01em; margin-top: 8px; }
.oefenkaart .naam-groot { display: flex; flex-direction: column; align-items: center; line-height: 1.1; margin-top: 4px; }
.oefenkaart .naam-groot .voor { font-family: var(--font-display); font-weight: 600; font-size: 34px; letter-spacing: -.02em; }
.oefenkaart .naam-groot .achter { font-family: var(--font-display); font-weight: 500; font-size: 17px; color: var(--grey); margin-top: 4px; }
.oefenkaart .groepchip { cursor: default; }
.oefenkaart .hintpillen { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: auto; padding-top: 14px; }
.oefenkaart .hintpillen .chip { height: 44px; padding: 0 16px; }
.oefenkaart .hintpillen .chip:disabled { opacity: .45; cursor: default; }
.oefenkaart .hint-onthuld { margin-top: 6px; background: var(--creme); border-radius: var(--radius-lg); padding: 14px 22px; min-width: 60%; }
.oefenkaart .hint-onthuld .tekst { font-family: var(--font-display); font-weight: 600; font-size: 30px; letter-spacing: -.01em; margin-top: 4px; }
.oefenkaart .details { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; text-align: left; width: 100%; max-width: 420px; margin-top: 8px; border-top: 1px solid var(--line); padding-top: 14px; }
.oefenkaart .details .regel { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.oefenkaart .details .regel svg { color: var(--grey); flex: none; margin-top: 3px; }
.oefenkaart .ezel { display: inline-flex; align-items: center; }
.oefenkaart .bakregel { margin-top: auto; padding-top: 12px; font-size: 12.5px; }
.oefenkaart .gezichten { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; width: 100%; max-width: 380px; }
.oefenkaart .gezicht { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; border-radius: var(--radius-lg); border: 2px solid transparent; }
.oefenkaart .gezicht:hover:not(:disabled) { background: var(--creme); }
.oefenkaart .gezicht.goed { border-color: var(--ink); background: var(--creme); }
.oefenkaart .gezicht.fout { border-color: var(--liefde); }
.oefenkaart .gezicht.uit { opacity: .4; }
.oefenkaart .gezicht .naam { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; }
.oefenkaart.mini { min-height: 0; padding: 18px; box-shadow: none; }
.oefenkaart.afsluiting { cursor: default; align-items: stretch; text-align: center; }
.oefenkaart.afsluiting .sessie-lijst { max-height: 260px; overflow-y: auto; text-align: left; border-top: 1px solid var(--line); padding-top: 8px; }
.oefen-knoppen { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; align-items: center; }
.oefen-knoppen .knop { min-width: 120px; }
.oefen-knoppen .knop kbd { margin-left: 4px; }
.oefen-knoppen .knop.primair kbd { color: #fff; border-color: rgba(255,255,255,.55); }
.oefen-knoppen .knop.inkt kbd { color: var(--text-on-ink); border-color: rgba(255,255,255,.4); }
.oefen-knoppen .uitkomst { width: 100%; text-align: center; }
.veeg { text-align: center; }
.avatarknop { border-radius: 50%; }
.dialoog.wie-is-dit .inhoud { display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 899px) {
  .oefen-kop { gap: 10px; margin-bottom: 10px; }
  .oefen-kop .titel { font-size: 15px; }
  .oefen-kop .teller { font-size: 12.5px; }
  .oefen-lichaam { flex-direction: column; }
  .oefen-midden { width: 100%; flex: 1; gap: 12px; }
  .oefenkaart { padding: 24px 18px 20px; min-height: 0; flex: 1; border-radius: var(--radius-lg); }
  .oefenkaart .naam-groot .voor { font-size: 30px; }
  .oefenkaart .hint-onthuld .tekst { font-size: 26px; }
  .oefen-knoppen { gap: 10px; }
  .oefen-knoppen .knop { flex: 1; min-width: 0; height: 52px; }
  .oefen-knoppen .knop.primair { flex-basis: 100%; order: -1; }
  .oefen-vandaag .segment { align-self: stretch; }
  .oefen-vandaag .segment button { flex: 1; }
  .groep-rij.oefen .bakkenbalk { width: 64px; }
}
