:root{font-family:system-ui,-apple-system,'Segoe UI',sans-serif;color:#342b2a;background:#f8f5ee}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}header{background:#541d2a;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:13px max(22px,calc((100vw - 1180px)/2));gap:15px;flex-wrap:wrap}.brand{display:flex;align-items:center;gap:12px;color:#f8e3a4;text-decoration:none;font-family:Georgia,serif;font-size:21px;letter-spacing:2px}.brand small{display:block;font-size:13px;letter-spacing:1px}.seal{display:grid;place-items:center;border:2px solid #d8b66b;border-radius:50%;width:54px;height:54px;font-size:30px}nav,.toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}nav button{border:0;background:transparent;color:white;padding:10px}nav select{background:#fff;border-radius:5px;padding:8px}.hero{background:linear-gradient(130deg,#6d2c37,#431723);text-align:center;color:white;padding:68px 18px 75px}.hero h1{font:clamp(30px,5vw,55px) Georgia,serif;margin:12px}.hero p{color:#f3dfd6}.eyebrow{color:#d8b66b;letter-spacing:4px}main{min-height:80vh}.panel{max-width:1180px;margin:32px auto;background:#fff;border:1px solid #eee1cf;border-radius:16px;padding:26px;box-shadow:0 7px 28px #4b24210a}.panelHead{display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;align-items:center}h2,h3{font-family:Georgia,serif;color:#5c2631}h2{font-size:28px}p{line-height:1.6}input,select,textarea{padding:10px;border:1px solid #d7c7b8;border-radius:7px;background:#fff;max-width:100%}button{border:1px solid #cdb8aa;background:#fff;border-radius:7px;padding:9px 13px;color:#5c2631}.primary{background:#632734;color:white;border-color:#632734}.danger{color:#b21f2d}.tree{min-height:260px;overflow:auto;background:#faf7f0;border:1px solid #f0e5d6;border-radius:12px;padding:24px 12px;text-align:center}.generation{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin:14px 0}.genlabel{font-size:12px;color:#8b7265;letter-spacing:2px;text-transform:uppercase}.person{width:160px;min-height:105px;background:#fff;border:1px solid #d9bb83;box-shadow:0 2px 10px #0000000d;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px}.person.selected{background:#632734;color:#fff;border-color:#632734}.person img,.profile img{width:55px;height:55px;border-radius:50%;object-fit:cover}.person small{opacity:.7}.arrow{font-size:22px;color:#c39b61}.profile{margin-top:18px;border-top:1px solid #eee;padding:18px;display:flex;gap:20px;align-items:start}.profile[hidden]{display:none}.profile img{width:115px;height:115px}.columns{display:grid;grid-template-columns:1fr 1fr;gap:35px}.stack{display:flex;flex-direction:column;gap:12px}.stack label{display:flex;flex-direction:column;gap:4px}.stack .check{flex-direction:row;align-items:center}.narrow{max-width:450px}.list{display:flex;flex-direction:column;gap:6px}.listrow{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:9px;border:1px solid #eee5dc;border-radius:7px}.listrow span{overflow-wrap:anywhere}.notice{background:#fff9e8;border:1px solid #e4c886;padding:14px;margin-top:12px;overflow-wrap:anywhere}footer{text-align:center;color:#9d8b83;padding:45px 15px}#toast{position:fixed;bottom:22px;right:22px;max-width:350px;background:#4e222b;color:#fff;padding:12px 18px;border-radius:8px;display:none}@media(max-width:760px){.columns{grid-template-columns:1fr}.panel{margin:16px 10px;padding:18px}.hero{padding:45px 14px}header{padding:12px}.profile{flex-direction:column}.person{width:135px}}

/* Family Chow: geslachtskleuren, inclusief geselecteerde persoon */
.tree .person.gender-male{background:#e8f2ff;border:2px solid #508fe0;color:#173e76}
.tree .person.gender-female{background:#fce9f2;border:2px solid #df83ad;color:#813759}
.tree .person.gender-unknown{background:#fff;border:2px solid #d9bb83;color:#342b2a}
.tree .person.gender-male.selected{background:#cbdfff;border-color:#195ca9;color:#113967;box-shadow:0 0 0 3px #508fe055}
.tree .person.gender-female.selected{background:#f9d4e5;border-color:#a83d77;color:#712447;box-shadow:0 0 0 3px #df83ad55}
.tree .person.gender-unknown.selected{background:#632734;border-color:#632734;color:#fff}
.tree .person.gender-male:hover,.tree .person.gender-female:hover{filter:brightness(.98)}

/* Vertakkende stamboom: de lijnen verbinden echte ouders met hun eigen kinderen. */
#tree.fc-branch-tree{overflow:auto;text-align:left;padding:18px;position:relative}
.fc-branch-canvas{position:relative;margin:0 auto;min-width:max-content}
.fc-branch-lines{position:absolute;inset:0;overflow:visible;pointer-events:none;z-index:0}
.fc-parent-link{stroke:#a77a42;stroke-width:2.2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.fc-branch-heading{position:absolute;left:0;right:0;text-align:center;font-size:11px;letter-spacing:1.6px;text-transform:uppercase;color:#987451}
.fc-branch-couple{display:flex;align-items:center;gap:14px;position:absolute;z-index:1}
.fc-branch-couple .person{width:160px;min-height:105px;flex:0 0 160px;white-space:normal}
.fc-branch-partner-line{height:2px;width:14px;background:#a77a42;flex:0 0 14px}
.fc-branch-unconnected{margin:20px 0 0;padding:15px;border-top:1px dashed #d7c7b8;text-align:center}
.fc-branch-unconnected-row{display:flex;gap:14px;flex-wrap:wrap;justify-content:center}

/* Family Chow 1.1 — homepage and interactive tree */
.hero{position:relative;overflow:hidden;padding:75px 20px 84px;background:radial-gradient(circle at 75% 15%,#855063 0%,transparent 36%),linear-gradient(125deg,#3c1b29,#632c3e 64%,#44202f)}
.hero:before{content:'周';position:absolute;right:7%;top:0;font:220px Georgia,serif;color:#fff;opacity:.035;pointer-events:none}.hero h1{max-width:850px;margin:15px auto}.hero p{max-width:600px;margin:0 auto 26px}.fc-hero-links{display:flex;justify-content:center;flex-wrap:wrap;gap:12px}.fc-hero-links a{padding:13px 20px;border-radius:8px;text-decoration:none;font-weight:600}.fc-hero-primary{background:#e1bf7c;color:#422232}.fc-hero-secondary{border:1px solid #e1bf7c;color:#fff}.fc-hero-links a:hover{filter:brightness(1.08)}
.fc-tree-controls{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 14px;margin-top:12px;background:#f8f3e9;border:1px solid #e8d8c5;border-radius:10px 10px 0 0}.fc-tree-control-label{font-weight:600;color:#63313d}.fc-tree-control-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.fc-tree-control-actions button{padding:7px 11px;min-height:36px}.fc-tree-control-actions output{min-width:48px;text-align:center;font-size:13px;color:#604939}#tree.fc-branch-tree{margin-top:0;border-radius:0 0 12px 12px;min-height:420px;max-height:70vh;cursor:grab;overscroll-behavior:contain}#tree.fc-dragging{cursor:grabbing;user-select:none}#tree:fullscreen{max-height:none;height:100vh;background:#faf7f0}.fc-tree-viewport{position:relative;margin:0 auto}.fc-branch-lines{z-index:0}.fc-branch-couple{z-index:2}.fc-branch-heading{pointer-events:none}.fc-branch-couple .person{border-radius:9px;padding:8px;line-height:1.35;overflow-wrap:anywhere}.fc-parent-link{stroke:#936b3e;stroke-width:2.5}.fc-branch-partner-line{background:#936b3e}.panel{box-shadow:0 12px 34px #44212710}@media(max-width:760px){.hero{padding:50px 16px}.fc-tree-controls{align-items:stretch}.fc-tree-control-actions{justify-content:space-between}.fc-tree-control-label{font-size:13px}}

/* Family Chow 1.2 — uitgebreide persoonsprofielen */
#profile.fc-profile{display:block;margin-top:24px;padding:0;border:1px solid #e7d7c7;border-radius:15px;overflow:hidden;background:#fff;box-shadow:0 7px 24px #54262b0c}
#profile.fc-profile[hidden]{display:none}
.fc-profile-header{display:flex;align-items:center;gap:20px;padding:25px;background:linear-gradient(115deg,#fcf8f0,#f6ecdf)}
.fc-profile-avatar{width:96px!important;height:96px!important;border-radius:50%;object-fit:cover;border:3px solid #d4b782;flex-shrink:0}
.fc-profile-avatar-empty{display:grid;place-items:center;background:#f1e2ca;color:#713943;font:40px Georgia,serif}
.fc-profile-heading h3{font-size:27px;margin:5px 0;color:#562837}.fc-profile-heading p{margin:0;color:#7c5b54}
.fc-profile-kicker{text-transform:uppercase;letter-spacing:1.8px;font-size:11px;color:#8b745e;font-weight:700}
.fc-profile-tabs{display:flex;gap:3px;padding:10px 20px 0;border-bottom:1px solid #e9dccc;overflow-x:auto}
.fc-profile-tab{border:0;border-radius:8px 8px 0 0;background:transparent;color:#72515b;padding:11px 17px;white-space:nowrap}
.fc-profile-tab.active{background:#642b3c;color:white}
.fc-profile-content{padding:23px 27px 30px;min-height:125px}
.fc-profile-section h4{font:22px Georgia,serif;color:#562837;margin:0 0 17px}
.fc-profile-field{display:grid;grid-template-columns:minmax(130px,190px) 1fr;gap:12px;padding:12px 0;border-bottom:1px solid #f0e9e2}
.fc-profile-key{color:#836b60;font-size:14px}.fc-profile-value{font-weight:600;overflow-wrap:anywhere}
.fc-profile-family-group{margin:14px 0 22px}.fc-profile-family-group h5{font-size:13px;color:#8c7367;margin:0 0 9px}
.fc-profile-relatives{display:flex;flex-wrap:wrap;gap:9px}.fc-profile-relative{border:1px solid #dcc9b3;background:#faf6ef;color:#622c3b}
.fc-profile-biography{white-space:pre-wrap;overflow-wrap:anywhere}.fc-profile-empty{color:#917f75}
.fc-admin-help{font-size:13px;color:#766459}#detailsStatus{color:#6d4050;font-size:13px;margin:0}
@media(max-width:600px){.fc-profile-header{padding:17px;gap:13px}.fc-profile-avatar{width:72px!important;height:72px!important}.fc-profile-heading h3{font-size:21px}.fc-profile-tabs{padding-left:8px}.fc-profile-tab{padding:10px}.fc-profile-content{padding:17px}.fc-profile-field{grid-template-columns:1fr;gap:3px}}

/* Family Chow: vaste kolommen voor beheerderaccounts.
   Gericht op #usersList, niet op de algemene .listrow. */
#usersList .listrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 145px 185px;
  gap: 12px;
  align-items: center;
}
#usersList .listrow > span:first-child {
  grid-column: 1;
  min-width: 0;
}
#usersList .listrow > button:first-of-type {
  grid-column: 2;
  width: 100%;
  margin: 0 !important;
}
#usersList .listrow > button:nth-of-type(2) {
  grid-column: 3;
  width: 100%;
  margin: 0 !important;
}
@media (max-width: 700px) {
  #usersList .listrow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  #usersList .listrow > span:first-child { grid-column: 1 / -1; }
  #usersList .listrow > button:first-of-type { grid-column: 1; }
  #usersList .listrow > button:nth-of-type(2) { grid-column: 2; }
}
