:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#25332e;background:#f8f8f6;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer;border:0;background:none;color:inherit}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #799a8e;outline-offset:2px}[hidden]{display:none!important}#app{min-height:100vh;display:flex}.sidebar{width:226px;flex:none;padding:31px 18px;position:sticky;top:0;height:100vh;background:#f0f2ee;border-right:1px solid #e6e9e4;display:flex;flex-direction:column}.brand{font-size:22px;font-weight:690;letter-spacing:-.04em;padding:4px 14px 43px}.mark{color:#547d70;font-size:30px;vertical-align:-2px;margin-right:6px}.sidebar nav{display:grid;gap:6px}.sidebar nav button,.sidebar-bottom button{padding:12px 14px;text-align:left;border-radius:11px;width:100%;font-size:14px}.sidebar button.active,.mobile-nav button.active{background:#e0eae4;color:#285a47;font-weight:650}.sidebar nav button:hover,.sidebar-bottom button:hover{background:#e6eae5}.sidebar-bottom{margin-top:auto;display:grid;gap:3px;color:#6a7770}main{width:min(1100px,100%);padding:55px 50px 80px;margin:auto;align-self:flex-start}header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:38px}h1{font-size:39px;letter-spacing:-.055em;line-height:1.15;margin:8px 0 9px;font-weight:670}h2{font-size:21px;letter-spacing:-.035em;margin:0}.eyebrow{text-transform:uppercase;letter-spacing:.14em;font-size:11px;font-weight:700;color:#799087;margin:0}.subhead,.muted{color:#809087;font-size:14px;line-height:1.5;margin:0}.new-button,.primary{background:#2b433b;color:white;border-radius:11px;padding:11px 16px;font-weight:600;white-space:nowrap}.new-button:hover,.primary:hover{background:#3f6455}#notice:not(:empty){padding:13px 15px;background:#eef5ed;color:#345443;border-radius:10px;margin-bottom:18px;font-size:14px}.panel{background:white;border:1px solid #ecede9;border-radius:17px;box-shadow:0 4px 20px #20352906;overflow:hidden}.panel-heading{padding:22px 23px 14px;display:flex;justify-content:space-between;align-items:center;font-weight:650}.panel-heading small,.count{color:#98a69d;font-weight:500}.task{display:flex;align-items:flex-start;gap:11px;padding:12px 21px;border-top:1px solid #f0f1ee;min-height:56px}.task:hover{background:#fafbf9}.task[draggable=true]{cursor:grab}.task.dragging{opacity:.4}.check{width:20px;height:20px;border:1.6px solid #b9c9bf;border-radius:50%;margin-top:3px;flex:none}.check:hover{border-color:#5c8c71;background:#eff6f1}.task-body{flex:1;min-width:0;text-align:left;padding:0}.task-title{font-size:14px;font-weight:540;display:block;word-break:break-word}.task-meta{display:block;color:#99a49d;font-size:12px;margin-top:4px}.task.done .task-title{text-decoration:line-through;color:#9ba8a0}.task.done .check{background:#7fa48e;border-color:#7fa48e;color:white}.empty{padding:46px 20px;text-align:center;color:#92a098;font-size:14px}.section{margin-bottom:28px}.week-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}.day{border:1px solid #e9ece7;border-radius:15px;background:white;min-height:300px;padding:12px 9px;transition:background .15s,border .15s}.day.hover{background:#eaf3ec;border-color:#8ead95}.day.today{border-color:#b9d3bd}.day-head{text-align:center;margin-bottom:12px;font-size:13px;font-weight:650}.day-head small{display:block;color:#a0aba2;font-size:11px;font-weight:550;text-transform:uppercase;letter-spacing:.09em;margin-bottom:3px}.day .task{padding:9px 6px;border:0;border-radius:8px;gap:6px;min-height:0}.day .check{height:16px;width:16px;margin-top:1px}.day .task-title{font-size:12px}.day .task-meta{font-size:10px}.event{background:#edf4ef;border-left:3px solid #80a58d;border-radius:6px;padding:7px;margin:5px 0;font-size:11px;word-break:break-word}.event time{display:block;color:#789182;margin-bottom:2px}.week-controls{display:flex;align-items:center;gap:8px;margin:-11px 0 18px}.week-controls button{background:white;border:1px solid #e8ebe6;border-radius:8px;padding:7px 12px}.mobile-nav,.fab{display:none}dialog{width:min(450px,calc(100% - 24px));border:1px solid #e6eae6;border-radius:18px;padding:25px;box-shadow:0 25px 80px #1f312e30;color:#27392f}dialog::backdrop{background:#1d2d2880}.dialog-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:23px}.icon{font-size:25px;color:#8b9b90}label{font-size:12px;font-weight:650;display:block;margin:15px 0 8px;color:#617168}input,textarea,select{display:block;width:100%;border:1px solid #dce4dc;background:white;border-radius:10px;padding:12px 13px;margin-top:8px;color:#283d32;min-height:46px}textarea{resize:vertical}.field-row{display:grid;grid-template-columns:1fr 110px;gap:12px}.quick{display:flex;gap:8px;margin-top:19px}.quick button{background:#eef2ed;border-radius:8px;padding:8px 10px;font-size:12px}.quick button:hover{background:#dcece0}.actions{display:flex;justify-content:flex-end;gap:12px;align-items:center;margin-top:25px}.danger{color:#bc6662;margin-right:auto}.auth{min-height:100vh;display:grid;place-items:center;padding:20px;background:#f4f6f2}.auth-card{width:min(390px,100%);background:white;padding:34px;border:1px solid #e8ece6;border-radius:20px;box-shadow:0 15px 40px #2035290a}.auth-card h1{font-size:28px}.auth-card p{color:#819087;font-size:14px}.auth-card .primary{width:100%;margin-top:18px}.auth-card .error{color:#b84c46}.split{display:grid;grid-template-columns:1fr 1fr;gap:20px}@media(max-width:950px){main{padding:35px 25px}.week-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.day{min-height:140px}.split{grid-template-columns:1fr}}@media(max-width:650px){.sidebar{display:none}main{padding:35px 18px 145px}header{margin-bottom:27px}h1{font-size:34px}.new-button{display:none}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid #e8ece6;padding:6px 8px calc(8px + env(safe-area-inset-bottom));z-index:10;justify-content:space-around}.mobile-nav button{min-width:68px;border-radius:10px;padding:5px 8px;font-size:21px}.mobile-nav small{display:block;font-size:10px;margin-top:3px}.fab{display:block;position:fixed;right:21px;bottom:calc(90px + env(safe-area-inset-bottom));background:#2b433b;color:white;font-size:27px;width:54px;height:54px;border-radius:18px;box-shadow:0 8px 22px #233b3670;z-index:10}.week-grid{grid-template-columns:1fr}.day{min-height:90px}.day-head{text-align:left;display:flex;gap:8px;align-items:center}.day-head small{margin:0}.panel-heading{padding:18px}.task{padding:13px 17px}dialog{max-height:88vh;overflow:auto;padding:20px}.field-row{grid-template-columns:1fr 100px}}
.agenda-day{background:white;border:1px solid #ecede9;border-radius:15px;padding:18px 20px;margin-bottom:12px}.agenda-day h2{font-size:15px;margin:0 0 12px;text-transform:capitalize}.agenda-day .event{font-size:13px;padding:10px}.agenda-day .task{padding:10px 2px}.calendar-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid #edf0ea}.calendar-row strong,.calendar-row small{display:block;word-break:break-word}.calendar-row small{font-size:11px;color:#819087;margin-top:3px}.calendar-row button{font-size:22px;color:#b75b57}@media(max-width:650px){.mobile-nav{padding-left:4px;padding-right:4px}.mobile-nav button{min-width:0;flex:1;padding-left:3px;padding-right:3px}}
.event.all-day{background:#e6eee8;border-left-color:#527965;font-weight:560}.day .event.all-day{margin-top:5px}.day .event.all-day time{font-weight:650;color:#527965}
.test-button{margin:14px 0;padding:9px 11px;border-radius:9px;background:#e8f0e8;color:#315747;font-size:13px;font-weight:650}.diagnostic{padding:9px 0;border-top:1px solid #e9eee8}.diagnostic strong,.diagnostic small{display:block}.diagnostic small{font-size:12px;color:#64776b;line-height:1.5;margin-top:4px}
/* Taken en agenda-afspraken delen dezelfde rijopmaak. */
.calendar-event{background:transparent;border-left:0;border-radius:0;box-shadow:none;margin:0;word-break:normal;font-size:inherit}.calendar-event .event-dot{width:20px;height:20px;border-radius:50%;background:var(--event-color,#769a86);border:5px solid color-mix(in srgb,var(--event-color,#769a86) 24%,white);flex:none;margin-top:2px}.calendar-event .task-meta{color:#7e8c83}.calendar-event.all-day{background:#f7f9f6;font-weight:normal}.calendar-event.all-day .task-title{font-weight:630}.day .calendar-event{padding:9px 6px;border:0}.day .calendar-event .event-dot{width:16px;height:16px;border-width:4px;margin-top:1px}.calendar-entry{border-bottom:1px solid #e9eee8;padding-bottom:8px}.calendar-entry details{margin:2px 0 12px}.calendar-entry summary{cursor:pointer;color:#527466;font-size:12px;padding:5px 0}.calendar-entry form{background:#f8faf7;border-radius:10px;padding:10px 12px}.calendar-entry form label{margin-top:8px}.calendar-row strong .family-dot{display:inline-block;margin-right:7px;vertical-align:middle}.family-filters{display:flex;gap:7px;margin:0 0 22px}.family-filters button{border:1px solid #e0e8df;border-radius:20px;padding:8px 13px;font-size:12px;background:#fff}.family-filters button.selected{background:#2b433b;color:white;border-color:#2b433b}.family-day{margin-bottom:20px}.family-day h2{font-size:14px;text-transform:capitalize;color:#617269;margin:0 0 9px}.family-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.family-card{border:1px solid #e8eee8;border-radius:13px;padding:13px;background:#fff;min-width:0}.family-card-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13px}.family-dot{height:10px;width:10px;border-radius:50%;background:var(--member-color,#a1b2a1);flex:none}.custody{margin-left:auto;color:#426f57;background:#edf5ee;border-radius:12px;font-size:11px;padding:4px 8px}.custody.unknown{color:#929f96;background:#f3f5f1}.family-card .muted{padding:12px 0 3px;font-size:12px}.family-card .task{padding:9px 0}.family-card .calendar-event{border-top:1px solid #eff2ed}.family-card .calendar-event .event-dot{width:15px;height:15px;border-width:4px;margin-top:1px}@media(max-width:650px){.mobile-nav{overflow-x:auto;justify-content:flex-start}.mobile-nav button{flex:0 0 56px;min-width:56px}.mobile-nav small{font-size:9px}.family-grid{grid-template-columns:1fr}.family-card{padding:12px}}
.task:not(.done) .check{border-color:var(--event-color,#b9c9bf)}

.family-row{background:#fff;border:1px solid #e8eee8;border-radius:14px;padding:14px 18px;margin-bottom:9px}.family-row.is-today{border-color:#9cb9a9}.family-row-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.family-row h2{margin:0;font-size:14px;text-transform:capitalize;min-width:150px}.family-statuses{display:flex;gap:7px;flex-wrap:wrap}.family-status{font-size:12px;color:#426f57;background:#edf5ee;border-radius:14px;padding:5px 9px}.family-status strong{font-weight:650}.family-status.unknown{color:#758178;background:#f3f5f1}.family-status.conflict{color:#a04b37;background:#fff0e9}.family-appointments{margin-top:11px;padding-top:4px;border-top:1px solid #eef1ed}.family-appointments .task{padding:8px 0}.family-appointments .task+.task{border-top:1px solid #f1f3ef}@media(max-width:650px){.family-row{padding:12px}.family-row h2{min-width:0;width:100%}}

.planning-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}.planning-top .family-filters{margin-bottom:12px}.planning-top .week-controls{margin:0 0 12px}.today-status{margin-bottom:18px}.today-status:empty{display:none}.today-status .family-statuses{gap:8px}.family-row[data-drop].hover{background:#eaf3ec;border-color:#8ead95}@media(max-width:650px){.planning-top{display:block}.planning-top .week-controls{margin:0 0 12px}}

.people-choice{border:0;padding:0;margin:17px 0 8px;min-width:0}.people-choice legend{font-size:12px;font-weight:650;color:#617168;padding:0}.people-options{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.person-option{display:inline-flex;align-items:center;gap:7px;margin:0;padding:9px 12px;border:1px solid #dce4dc;border-radius:11px;background:#fff;color:#344c3e;font-size:13px;cursor:pointer;user-select:none}.person-option:has(input:checked){background:#eef5f0;border-color:#8dad98;color:#254739}.person-option:focus-within{outline:2px solid #799a8e;outline-offset:2px}.person-option input{appearance:none;display:inline-grid;place-content:center;width:17px;height:17px;min-height:0;margin:0;padding:0;border:1.5px solid #97a99b;border-radius:5px}.person-option input:checked{background:#466f57;border-color:#466f57}.person-option input:checked::after{content:'✓';color:#fff;font-size:12px;line-height:1}.person-dot{width:9px;height:9px;border-radius:50%;background:var(--person-color);display:inline-block}@media(max-width:400px){.people-options{gap:6px}.person-option{padding:8px 9px}}

.all-day-choice{display:flex;align-items:center;gap:10px;margin:12px 0}.all-day-choice input{width:19px;height:19px;min-height:0;margin:0;accent-color:#547d70}.repeat-fields{grid-template-columns:1fr 1fr}.calendar-event .task-body[data-edit]{cursor:pointer}.calendar-event .task-body[data-edit]:hover .task-title{text-decoration:underline}@media(max-width:650px){.repeat-fields{grid-template-columns:1fr 1fr}}

.sync-status{display:block;color:#547965;font-size:11px;margin-top:5px}.sync-status.sync-error{color:#a54837}.backlog-link{display:inline-block;background:#edf4ee;color:#315b42;border-radius:10px;padding:10px 13px;font-size:13px;font-weight:650;margin:0 0 18px}.backlog-heading{font-size:12px;font-weight:650;color:#75867a;padding:16px 21px 7px;background:#fafbf9}.backlog-item .task{border-top:1px solid #f0f1ee}.plan-actions{display:flex;gap:7px;flex-wrap:wrap;margin:-4px 18px 12px 52px;align-items:center}.plan-actions button{background:#edf3ed;border-radius:8px;padding:7px 9px;color:#315b42;font-size:12px}.plan-actions label{display:flex;align-items:center;gap:6px;margin:0;font-size:12px}.plan-actions input{min-height:34px;width:auto;margin:0;padding:5px;font-size:12px}@media(max-width:650px){.plan-actions{margin-left:48px}.family-filters{flex-wrap:wrap}}

/* iOS Safari vergroot de hele pagina zodra een invoerveld kleiner dan 16px focus krijgt. */
@media(max-width:650px){
 dialog{font-size:16px;width:calc(100% - 24px);max-width:450px;max-height:calc(100dvh - 24px);overflow-x:hidden;overflow-y:auto}
 dialog input:not([type=checkbox]),dialog textarea,dialog select,.plan-actions input[type=date]{font-size:16px;max-width:100%;min-width:0}
 .plan-actions{min-width:0}.plan-actions label{max-width:100%;flex-wrap:wrap}
 .field-row,.repeat-fields{min-width:0;grid-template-columns:minmax(0,1fr) minmax(0,100px)}
 .field-row>label{min-width:0}
}

/* Het uitgebreide formulier gebruikt op telefoon één kolom. iOS-datumvelden
   hebben een grote intrinsieke breedte en drukten eerder de dialoog opzij. */
@media(max-width:650px){
 #editor{width:calc(100vw - 20px);max-width:450px;margin:10px auto;max-height:calc(100dvh - 20px);padding:18px;overscroll-behavior:contain}
 #taskForm,#taskForm .field-row,#taskForm .field-row>label{min-width:0;width:100%}
 #taskForm .field-row,#taskForm .repeat-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:0}
 #taskForm input[type=date],#taskForm input[type=datetime-local]{width:100%;min-width:0}
 #taskForm .quick{flex-wrap:wrap}
 #taskForm .quick button{font-size:14px;min-height:40px}
 #taskForm .actions{flex-wrap:wrap;gap:10px}
 #taskForm .actions .primary{min-height:44px}
 #taskForm .people-options{min-width:0}
}

/* Rustige hiërarchie: persoonskleur is een klein herkenningspunt. */
.person-dots{display:inline-flex;gap:3px;vertical-align:middle;margin-right:6px}
.person-dots .person-dot{width:7px;height:7px;border-radius:50%;display:block}
.person-dots .arndt{background:#568e8e}
.person-dots .annemijn{background:#a788bc}
.person-dots .jort{background:#77a9a0}
.task:not(.done) .check{border-color:#b9c9bf}
.calendar-event .event-dot{background:var(--event-color,#9aaa9e)}
#extraOptions{border-top:1px solid #e9eee9;margin:17px 0 0;padding-top:13px}
#extraOptions summary{cursor:pointer;color:#547365;font-weight:650;font-size:13px;padding:5px 0;list-style:none}
#extraOptions summary::after{content:'⌄';float:right;font-size:18px;line-height:16px}
#extraOptions[open] summary::after{content:'⌃'}
#extraOptions .extra-fields{padding-top:5px}
#extraOptions .field-row{min-width:0}
#taskForm .calendar-help{margin-top:12px}
@media(max-width:650px){#extraOptions .repeat-fields{grid-template-columns:minmax(0,1fr)}.calendar-event .task-meta,.task .task-meta{line-height:1.35}}

.theme-setting{margin:0 0 22px}

/* Warm neutraal met inktblauw: kleur markeert acties, personen en echte waarschuwingen. */
html[data-theme=light],html[data-theme=light] body{background:#f7f6f3;color:#29323c}
html[data-theme=light] .auth{background:#f4f2ee}
html[data-theme=light] .sidebar,html[data-theme=light] .mobile-nav{background:#f0efeb;border-color:#e1e1df}
html[data-theme=light] .panel,html[data-theme=light] .family-row,html[data-theme=light] .family-card,html[data-theme=light] .agenda-day,html[data-theme=light] .day,html[data-theme=light] dialog,html[data-theme=light] .auth-card{background:#fff;border-color:#e7e7e5;color:#29323c}
html[data-theme=light] .new-button,html[data-theme=light] .primary,html[data-theme=light] .fab{background:#344b63;color:#fff}
html[data-theme=light] .new-button:hover,html[data-theme=light] .primary:hover{background:#263d54}
html[data-theme=light] .sidebar button.active,html[data-theme=light] .mobile-nav button.active,html[data-theme=light] .family-filters button.selected{background:#dfe7ee;color:#273f59}
html[data-theme=light] .family-filters button.selected{border-color:#a9b9c8}
html[data-theme=light] .sidebar nav button:hover,html[data-theme=light] .sidebar-bottom button:hover,html[data-theme=light] .task:hover{background:#f4f6f8}
html[data-theme=light] .quick button,html[data-theme=light] .plan-actions button,html[data-theme=light] .backlog-link,html[data-theme=light] .test-button{background:#e8eef3;color:#2c4864}
html[data-theme=light] .family-status{background:#e8edf3;color:#304c68}
html[data-theme=light] .family-status.unknown,html[data-theme=light] .custody.unknown{background:#f0f0ef;color:#59626a}
html[data-theme=light] .family-status.conflict{background:#fff0e9;color:#9c4435}
html[data-theme=light] .calendar-event.all-day,html[data-theme=light] .backlog-heading,html[data-theme=light] .calendar-entry form{background:#f6f7f8}
html[data-theme=light] .task,html[data-theme=light] .family-appointments,html[data-theme=light] .family-appointments .task+.task,html[data-theme=light] .calendar-row,html[data-theme=light] .calendar-entry,html[data-theme=light] #extraOptions{border-color:#ececea}
html[data-theme=light] .task-meta,html[data-theme=light] .calendar-event .task-meta,html[data-theme=light] .subhead,html[data-theme=light] .muted,html[data-theme=light] .empty,html[data-theme=light] .sidebar-bottom,html[data-theme=light] .panel-heading small{color:#626e79}
html[data-theme=light] label,html[data-theme=light] .people-choice legend,html[data-theme=light] #extraOptions summary{color:#4f6070}
html[data-theme=light] .eyebrow,html[data-theme=light] .mark{color:#47627d}
html[data-theme=light] input:not([type=checkbox]),html[data-theme=light] textarea,html[data-theme=light] select,html[data-theme=light] .person-option{border-color:#cbd4dc;color:#29323c}
html[data-theme=light] .person-option:has(input:checked){background:#eaf0f5;border-color:#8ea6ba;color:#263e58}
html[data-theme=light] .person-option input:checked,html[data-theme=light] .task.done .check{background:#486985;border-color:#486985}
html[data-theme=light] .task:not(.done) .check{border-color:#a6b3bd}
html[data-theme=light] .family-row.is-today,html[data-theme=light] .day.today{border-color:#8ca8c0}
html[data-theme=light] .family-row[data-drop].hover,html[data-theme=light] .day.hover{background:#eaf0f6;border-color:#8ca8c0}
html[data-theme=light] #notice:not(:empty){background:#e8eef3;color:#2c4864}
html[data-theme=light] .sync-status{color:#315573}
html[data-theme=light] .sync-status.sync-error{color:#a34836}
html[data-theme=light] button:focus-visible,html[data-theme=light] input:focus-visible,html[data-theme=light] select:focus-visible,html[data-theme=light] textarea:focus-visible{outline-color:#476f96}
.person-dots .arndt{background:#486985}.person-dots .annemijn{background:#a788bc}.person-dots .jort{background:#5f9b9a}

html[data-theme=dark],html[data-theme=dark] body,html[data-theme=dark] .auth{background:#171d25;color:#e9edf2}
html[data-theme=dark] .sidebar,html[data-theme=dark] .mobile-nav{background:#1d2732;border-color:#354251}
html[data-theme=dark] .panel,html[data-theme=dark] .family-row,html[data-theme=dark] .family-card,html[data-theme=dark] .agenda-day,html[data-theme=dark] .day,html[data-theme=dark] dialog,html[data-theme=dark] .auth-card{background:#222d39;border-color:#394757;color:#e9edf2}
html[data-theme=dark] .calendar-event.all-day,html[data-theme=dark] .backlog-heading,html[data-theme=dark] .calendar-entry form{background:#283543}
html[data-theme=dark] .task,html[data-theme=dark] .family-appointments,html[data-theme=dark] .family-appointments .task+.task,html[data-theme=dark] .calendar-row,html[data-theme=dark] .calendar-entry,html[data-theme=dark] #extraOptions,html[data-theme=dark] .diagnostic{border-color:#3a4856}
html[data-theme=dark] .task:hover,html[data-theme=dark] .sidebar nav button:hover,html[data-theme=dark] .sidebar-bottom button:hover{background:#2a3b4e}
html[data-theme=dark] .sidebar button.active,html[data-theme=dark] .mobile-nav button.active,html[data-theme=dark] .family-filters button.selected{background:#344b63;color:#f4f7fa}
html[data-theme=dark] .family-filters button,html[data-theme=dark] .week-controls button,html[data-theme=dark] input:not([type=checkbox]),html[data-theme=dark] textarea,html[data-theme=dark] select,html[data-theme=dark] .person-option{background:#1b2632;border-color:#536377;color:#f2f5f8}
html[data-theme=dark] .person-option:has(input:checked){background:#31465d;border-color:#849eb9;color:#fff}
html[data-theme=dark] .person-option input:checked,html[data-theme=dark] .task.done .check{background:#7896b6;border-color:#7896b6}
html[data-theme=dark] .new-button,html[data-theme=dark] .primary,html[data-theme=dark] .fab{background:#809dbb;color:#142437}
html[data-theme=dark] .quick button,html[data-theme=dark] .plan-actions button,html[data-theme=dark] .backlog-link,html[data-theme=dark] .test-button{background:#30465c;color:#e2edf8}
html[data-theme=dark] .family-status{background:#30465c;color:#e2edf8}
html[data-theme=dark] .family-status.unknown,html[data-theme=dark] .custody.unknown{background:#36404b;color:#d1d9e0}
html[data-theme=dark] .family-status.conflict{background:#56372e;color:#ffccba}
html[data-theme=dark] .task-meta,html[data-theme=dark] .calendar-event .task-meta,html[data-theme=dark] .subhead,html[data-theme=dark] .muted,html[data-theme=dark] .calendar-row small,html[data-theme=dark] .diagnostic small,html[data-theme=dark] .empty,html[data-theme=dark] .sidebar-bottom,html[data-theme=dark] .panel-heading small{color:#b4c2cf}
html[data-theme=dark] label,html[data-theme=dark] .people-choice legend,html[data-theme=dark] .backlog-heading,html[data-theme=dark] #extraOptions summary{color:#cbd7e3}
html[data-theme=dark] .eyebrow,html[data-theme=dark] .mark,html[data-theme=dark] .sync-status{color:#a8bfd6}
html[data-theme=dark] #notice:not(:empty){background:#30465c;color:#e2edf8}
html[data-theme=dark] .family-row.is-today,html[data-theme=dark] .day.today{border-color:#7f9dbb}
html[data-theme=dark] .family-row[data-drop].hover,html[data-theme=dark] .day.hover{background:#30465c;border-color:#8eacce}
html[data-theme=dark] button:focus-visible,html[data-theme=dark] input:focus-visible,html[data-theme=dark] select:focus-visible,html[data-theme=dark] textarea:focus-visible{outline-color:#9dbedf}

html[data-theme=light] .calendar-entry summary,html[data-theme=light] .auth-card p{color:#52657a}
html[data-theme=light] .check:hover{border-color:#486985;background:#e8eef3}
html[data-theme=dark] .calendar-entry summary,html[data-theme=dark] .auth-card p{color:#b4c2cf}
html[data-theme=dark] .check:hover{border-color:#a4c0dc;background:#30465c}
html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#aebdcb}

/* Afspraakmarkeringen volgen de gekoppelde personen, zonder oude groene ring. */
.calendar-event .event-person-markers{display:flex;align-items:center;justify-content:center;flex:none;min-width:20px;height:20px;margin-top:2px}
.calendar-event .event-person-markers .person-dots{display:flex;gap:3px;margin:0}
.calendar-event .event-person-markers .person-dot{width:10px;height:10px}
.calendar-event .neutral-event-dot{width:10px;height:10px;border-radius:50%;background:#9ca2aa}
html[data-theme=dark] .calendar-event .neutral-event-dot{background:#a9b8ca}
.family-appointments .calendar-event .event-person-markers{min-width:25px}

/* Versie 27: weekrooster naar het voorbeeld van de papieren gezinsagenda */
.week-grid{display:grid;grid-template-columns:62px minmax(0,1fr);gap:6px;margin:0 0 18px}.week-grid.cols-4{grid-template-columns:62px repeat(4,minmax(0,1fr))}
.grid-head{padding:8px 10px;font-size:12px;font-weight:650;letter-spacing:.02em;color:#566a7d;background:#e4eaf3;border-radius:10px;display:flex;align-items:center}
.grid-day{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;background:#e4eaf3;border-radius:10px;color:#566a7d;font-size:12px;text-transform:capitalize}
.grid-day span{font-size:17px;font-weight:650;color:#2c4864}
.grid-day.is-today{background:#486985;color:#fff}.grid-day.is-today span{color:#fff}
.grid-cell{min-height:92px;min-width:0;background:#f1f4f9;border-radius:10px;padding:6px;display:flex;flex-direction:column;gap:3px}
.grid-cell.is-today{background:#e6edf7;box-shadow:inset 0 0 0 1px #8ca8c0}
.grid-cell.hover,.grid-day.hover{background:#dbe5f2}
.grid-cell .family-statuses{display:flex;flex-direction:column;align-items:flex-start;gap:3px;margin:0 0 3px}
.grid-cell .family-status{font-size:11px;padding:3px 7px}
.cell-item{display:flex;align-items:baseline;gap:6px;width:100%;text-align:left;font-size:12.5px;line-height:1.3;padding:4px 6px;border-radius:7px;background:#fff;color:#25332e;word-break:break-word}
.cell-item time{flex:none;font-size:11px;color:#6b7b8b;font-variant-numeric:tabular-nums}
.cell-item.cell-external{background:transparent;box-shadow:inset 0 0 0 1px #d5dde8}
.cell-task{padding:0;align-items:stretch;background:#fff}.cell-task.dragging{opacity:.5}
.cell-text{flex:1;min-width:0;text-align:left;font-size:inherit;padding:4px 6px 4px 0;display:flex;gap:6px;align-items:baseline;color:inherit}
.cell-check{flex:none;width:18px;height:18px;margin:6px 6px 0;border-radius:50%;border:1.5px solid #8ca8c0;background:transparent}
.cell-item .sync-status{margin:0}
.grid-todo{margin-bottom:18px}.grid-todo .panel{max-height:260px;overflow:auto}
html[data-theme=dark] .grid-head,html[data-theme=dark] .grid-day{background:#2c3a49;color:#cbd7e3}
html[data-theme=dark] .grid-day span{color:#e6eef7}
html[data-theme=dark] .grid-day.is-today,html[data-theme=dark] .grid-day.is-today span{background:#486985;color:#fff}
html[data-theme=dark] .grid-cell{background:#222d39}html[data-theme=dark] .grid-cell.is-today{background:#2a394a;box-shadow:inset 0 0 0 1px #7f9dbb}
html[data-theme=dark] .grid-cell.hover,html[data-theme=dark] .grid-day.hover{background:#30465c}
html[data-theme=dark] .cell-item{background:#2f3d4c;color:#e6eef7}html[data-theme=dark] .cell-item time{color:#a9b9c8}
html[data-theme=dark] .cell-item.cell-external{background:transparent;box-shadow:inset 0 0 0 1px #3e4f60}
html[data-theme=dark] .cell-check{border-color:#7f9dbb}

@media(max-width:900px){.week-grid{grid-template-columns:44px minmax(0,1fr);gap:4px}.week-grid.cols-4{grid-template-columns:44px repeat(4,minmax(0,1fr))}.grid-head{padding:6px 5px;font-size:11px;justify-content:center;text-align:center}.grid-day{font-size:10px}.grid-day span{font-size:15px}.grid-cell{padding:4px;min-height:76px}.cell-item{flex-direction:column;gap:1px;font-size:11.5px;padding:3px 4px}.cell-item time{font-size:10px}.cell-text{flex-direction:column;gap:1px;padding:3px 4px 3px 0}.cell-check{width:15px;height:15px;margin:4px 3px 0 4px}.grid-cell .family-status{font-size:10px;padding:2px 5px}.grid-cell .family-status strong{display:block}}
.cell-item,.cell-text{hyphens:auto;-webkit-hyphens:auto}
@media(max-width:480px){.cell-item{font-size:11px}.grid-head{font-size:10.5px}}

/* Versie 30: beheerpaneel */
[hidden]{display:none!important}
.status-row{display:flex;gap:12px;align-items:flex-start;padding:9px 2px;border-top:1px solid #e6ebf1}.status-row:first-of-type{border-top:0}
.status-row small,.admin-calendar small{display:block;color:#6b7b8b;font-size:12px;margin-top:2px;word-break:break-word}
.status-mark{flex:none;width:22px;height:22px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;background:#e2efe7;color:#2f6a4a}
.status-warn .status-mark{background:#fdf0d8;color:#8a5a0b}.status-error .status-mark{background:#fbe3dd;color:#a54837}
.admin-user{padding:14px 2px;border-top:1px solid #e6ebf1}.admin-user:first-of-type{border-top:0}
.admin-user-head{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.admin-user .muted{margin:6px 0}
.badge{font-size:11px;font-weight:650;padding:2px 8px;border-radius:999px;background:#e4eaf3;color:#2c4864}.badge-warn{background:#fdf0d8;color:#8a5a0b}
.admin-error{color:#a54837;font-size:12.5px;margin:6px 0}
.admin-user details{margin:8px 0}.admin-calendar{margin:6px 0;font-size:13px}
.admin-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.admin-actions button,.admin-blocked button{background:#e8eef3;color:#2c4864;border-radius:9px;padding:8px 12px;font-size:13px}.admin-actions .danger{background:#fbe3dd;color:#a54837}
.admin-add{margin-top:18px;padding-top:14px;border-top:1px solid #e6ebf1}
.admin-blocked{background:#fff0e9;color:#9c4435;border-radius:10px;padding:10px 12px;margin:0 0 12px}.admin-blocked p{margin:4px 0;font-size:13px}
.admin-log{width:100%;border-collapse:collapse;font-size:12.5px}.admin-log th{text-align:left;color:#6b7b8b;font-weight:600;padding:6px 8px 6px 0}.admin-log td{padding:6px 8px 6px 0;border-top:1px solid #e6ebf1;word-break:break-word}
@media(max-width:650px){.admin-log{font-size:11.5px}}
html[data-theme=dark] .status-row,html[data-theme=dark] .admin-user,html[data-theme=dark] .admin-add,html[data-theme=dark] .admin-log td{border-color:#394a5b}
html[data-theme=dark] .status-mark{background:#27473a;color:#bfe6cf}html[data-theme=dark] .status-warn .status-mark{background:#4f3f1c;color:#f3d79b}html[data-theme=dark] .status-error .status-mark{background:#56372e;color:#ffccba}
html[data-theme=dark] .badge{background:#30465c;color:#e2edf8}html[data-theme=dark] .badge-warn{background:#4f3f1c;color:#f3d79b}
html[data-theme=dark] .admin-actions button,html[data-theme=dark] .admin-blocked button{background:#30465c;color:#e2edf8}html[data-theme=dark] .admin-actions .danger{background:#56372e;color:#ffccba}
html[data-theme=dark] .admin-blocked{background:#56372e;color:#ffccba}html[data-theme=dark] .admin-error{color:#ffccba}
html[data-theme=dark] .status-row small,html[data-theme=dark] .admin-calendar small,html[data-theme=dark] .admin-log th{color:#a9b9c8}
.status-row,.admin-user,.admin-add{padding-left:18px;padding-right:18px}
.admin-blocked{margin-left:18px;margin-right:18px}.admin-log{width:calc(100% - 36px);margin:0 18px 14px}
.panel>p.muted{padding:0 18px}
/* Versie 31: opgeruimde instellingen */
.sidebar-bottom button.active{background:#e4eaf3;color:#2c4864;font-weight:650}
html[data-theme=dark] .sidebar-bottom button.active{background:#30465c;color:#e6eef7}
.settings-more{margin:12px 0;border-top:1px solid #e6ebf1;padding-top:10px}.settings-more summary{cursor:pointer;font-weight:650;font-size:14px;padding:4px 0}
#adminLink{margin:0 0 18px}#adminLink .muted{margin:6px 0 0;font-size:12.5px}
html[data-theme=dark] .settings-more{border-color:#394a5b}

/* Versie 32 */
.loading-note{color:#6f8aa3;font-size:12.5px;margin-top:4px}
html[data-theme=dark] .loading-note{color:#9bb4cc}

/* Versie 33: verlopen dagen inklappen en vaste kolomkoppen */
.collapsed-day{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;text-align:left;color:#566a7d;padding:2px 0}.collapsed-day h2{margin:0;font-size:13.5px;font-weight:600}.collapsed-day span{font-size:12px}
.family-row.is-collapsed{padding:9px 18px;background:#f1f4f9;border-color:transparent}
.collapse-btn{margin-left:auto;font-size:12px;color:#566a7d;padding:4px 8px;border-radius:8px}
.grid-day.is-past{flex-direction:row;gap:8px;min-height:36px;padding:4px 0;cursor:pointer}.grid-day.is-past span{font-size:14px}
.grid-day.is-past-open{cursor:pointer}
.grid-collapsed{grid-column:2/-1;display:flex;justify-content:space-between;align-items:center;min-height:36px;padding:0 12px;border-radius:10px;background:#f1f4f9;color:#566a7d;font-size:12px;text-align:left}
.week-grid .grid-head,.week-grid .grid-corner{position:sticky;top:0;z-index:3;box-shadow:0 0 0 3px #f7f6f3}
.week-grid .grid-corner{background:#f7f6f3}
html[data-theme=dark] .family-row.is-collapsed,html[data-theme=dark] .grid-collapsed{background:#222d39;color:#cbd7e3}
html[data-theme=dark] .collapsed-day,html[data-theme=dark] .collapse-btn{color:#cbd7e3}
html[data-theme=dark] .week-grid .grid-head,html[data-theme=dark] .week-grid .grid-corner{box-shadow:0 0 0 3px #171d25}
html[data-theme=dark] .week-grid .grid-corner{background:#171d25}

/* Versie 34: Yildez, tikken op cellen en boodschappen */
.p-arndt{--person-color:#486985}.p-annemijn{--person-color:#aa85c0}.p-jort{--person-color:#5f9b9a}.p-yildez{--person-color:#c58a45}
.person-dots .yildez{background:#c58a45}
.week-grid.cols-5{grid-template-columns:62px repeat(5,minmax(0,1fr))}
@media(max-width:900px){.week-grid.cols-5{grid-template-columns:44px repeat(5,minmax(0,1fr))}}
@media(max-width:480px){.week-grid.cols-5{grid-template-columns:34px repeat(5,minmax(0,1fr));gap:3px}.week-grid.cols-5 .grid-head{font-size:9.5px;padding:5px 2px;overflow:hidden}.week-grid.cols-5 .grid-cell{padding:3px}.week-grid.cols-5 .cell-item{font-size:10.5px;padding:2px 3px}.week-grid.cols-5 .grid-day strong{font-size:9px}.week-grid.cols-5 .grid-cell .family-status{font-size:9px;padding:2px 3px}}
.grid-cell[data-cell-day]{cursor:pointer}.grid-cell[data-cell-day]:hover{background:#e9eff8}
.shopping-add{display:flex;gap:8px;margin:0 0 16px}.shopping-add input{flex:1;min-width:0}
.shop-item{display:flex;align-items:center;gap:12px;padding:10px 18px;border-top:1px solid #e6ebf1}.shop-item:first-of-type{border-top:0}
.shop-check{flex:none;width:26px;height:26px;border-radius:50%;border:1.5px solid #8ca8c0;color:#fff;font-size:14px;display:inline-flex;align-items:center;justify-content:center}
.shop-item.done .shop-check{background:#486985;border-color:#486985}.shop-item.done .shop-title{text-decoration:line-through;color:#7d8c9a}
.shop-title{flex:1;min-width:0;word-break:break-word}.shop-delete{flex:none;color:#8a98a6;font-size:20px;padding:0 6px}
.shop-clear{margin-left:auto;font-size:12px;color:#566a7d;padding:4px 8px;border-radius:8px}
html[data-theme=dark] .shop-item{border-color:#394a5b}html[data-theme=dark] .shop-check{border-color:#7f9dbb}html[data-theme=dark] .shop-item.done .shop-check{background:#486985}
html[data-theme=dark] .shop-clear,html[data-theme=dark] .shop-delete{color:#cbd7e3}html[data-theme=dark] .grid-cell[data-cell-day]:hover{background:#2a394a}
.panel-heading:has(.shop-clear){display:flex;align-items:center;gap:8px}.panel-heading:has(.shop-clear) small{margin-left:0}

/* Versie 35: daglijst op de telefoon */
.day-add{margin-left:auto;width:32px;height:32px;border-radius:50%;background:#e8eef3;color:#2c4864;font-size:18px;line-height:1;display:inline-flex;align-items:center;justify-content:center}
.day-add+.collapse-btn{margin-left:4px}
html[data-theme=dark] .day-add{background:#30465c;color:#e2edf8}
.family-row-head .family-statuses{flex-basis:100%;order:5}.collapsed-day span{white-space:nowrap}
.family-row-head{position:relative}.family-row-head h2{padding-right:44px}.family-row-head:has(.collapse-btn) h2{padding-right:150px}
.family-row-head .day-add{position:absolute;right:0;top:-3px;margin:0}.family-row-head .collapse-btn{position:absolute;right:40px;top:0;margin:0}

/* Versie 37: verblijfschema in beheer */
.schedule-form{padding:4px 18px 16px}.schedule-form h3{margin:18px 0 8px;font-size:14px}.schedule-form .field-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.vac-row{display:grid;grid-template-columns:minmax(0,1fr) 150px 150px 32px;gap:6px;margin-bottom:6px;align-items:center}.vac-remove{color:#8a98a6;font-size:20px}
.vac-region{margin:0;display:inline-flex;flex-direction:row;align-items:center;gap:8px;font-size:13px}
.schedule-result{padding:0 18px 18px}.sched-cal{padding:10px 0;border-top:1px solid #e6ebf1}.sched-cal p{margin:4px 0;font-size:13px}.sched-delete{display:flex;gap:8px;align-items:flex-start;margin:12px 0;font-size:13px}
@media(max-width:650px){.vac-row{grid-template-columns:1fr 1fr 32px}.vac-row [name=vac_name]{grid-column:1/-1}.schedule-form .field-row{grid-template-columns:1fr}}
html[data-theme=dark] .sched-cal{border-color:#394a5b}

.schedule-vacations{padding:4px 18px 16px;border-top:1px solid #e6ebf1}.schedule-vacations h3{margin:14px 0 8px;font-size:14px}.schedule-vacations .schedule-result{padding:0}
.child-choice{display:flex;gap:18px;margin:10px 0}.child-choice label{display:inline-flex;align-items:center;gap:8px;margin:0;font-size:14px}
html[data-theme=dark] .schedule-vacations{border-color:#394a5b}
