:root{--navy:#1f2d4d;--navy-dark:#14203a;--green:#4ea845;--green-dark:#3d8a35;--red:#c0392b;--header-bg:#e8f1fa;--page-bg:#fff;--card-bg:#fff;--border:#e4e8ee;--text:#333a47;--text-soft:#6b7280;color:var(--text);font-family:Segoe UI,system-ui,-apple-system,Roboto,sans-serif;line-height:1.5}body{background:var(--page-bg);color:var(--text);margin:0}.auth-gate{background:radial-gradient(1200px 600px at 10% -10%,#4ea8451f,#0000 60%),radial-gradient(1000px 500px at 110% 110%,#1f2d4d2e,#0000 60%),linear-gradient(135deg,#f4f7fb 0%,#e8f1fa 100%);justify-content:center;align-items:center;min-height:100vh;padding:24px;display:flex}.auth-card{text-align:center;background:#fff;border-radius:16px;width:100%;max-width:420px;padding:40px 32px 32px;position:relative;box-shadow:0 1px 2px #14203a0a,0 10px 30px #14203a1f}.auth-logo{background:linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);color:#fff;letter-spacing:-1px;border-radius:22px;justify-content:center;align-items:center;width:84px;height:84px;margin:0 auto 18px;font-size:32px;font-weight:700;display:flex;box-shadow:0 10px 24px #1f2d4d40}.auth-card h1{color:var(--navy);margin:0 0 6px;font-size:24px}.auth-card .auth-sub{color:var(--text-soft);margin:0 0 28px;font-size:14px}.auth-card .ms-button{color:#fff;cursor:pointer;background:#2f2f2f;border:none;border-radius:10px;justify-content:center;align-items:center;gap:12px;width:100%;padding:12px 18px;font-size:15px;font-weight:600;transition:background .15s,transform 50ms;display:inline-flex}.auth-card .ms-button:hover{background:#1a1a1a}.auth-card .ms-button:active{transform:translateY(1px)}.auth-card .ms-button:disabled{opacity:.6;cursor:progress}.auth-card .ms-button .ms-logo{flex:0 0 18px;grid-template-columns:1fr 1fr;gap:2px;width:18px;height:18px;display:grid}.auth-card .ms-button .ms-logo span{width:100%;height:100%;display:block}.auth-card .ms-button .ms-logo span:first-child{background:#f25022}.auth-card .ms-button .ms-logo span:nth-child(2){background:#7fba00}.auth-card .ms-button .ms-logo span:nth-child(3){background:#00a4ef}.auth-card .ms-button .ms-logo span:nth-child(4){background:#ffb900}.auth-card .auth-foot{color:var(--text-soft);margin-top:22px;font-size:12px}.auth-card .auth-error{color:#9b2c2c;text-align:left;background:#fdecea;border-radius:8px;margin-bottom:16px;padding:10px 12px;font-size:13px}.auth-loading{min-height:100vh;color:var(--text-soft);justify-content:center;align-items:center;font-size:14px;display:flex}.auth-bar{border-bottom:1px solid var(--border);color:var(--text-soft);background:#f4f7fb;justify-content:flex-end;align-items:center;gap:8px;padding:6px 16px;font-size:13px;display:flex}.auth-bar button{border:1px solid var(--border);cursor:pointer;color:var(--text);background:0 0;border-radius:6px;padding:4px 10px;font-size:12px}.auth-bar button:hover{background:#fff}.modal-backdrop{z-index:1000;background:#14203a8c;justify-content:center;align-items:center;padding:20px;animation:.15s ease-out backdropIn;display:flex;position:fixed;inset:0}@keyframes backdropIn{0%{opacity:0}to{opacity:1}}.modal-card{background:#fff;border-radius:14px;width:100%;max-width:540px;max-height:90vh;animation:.18s ease-out cardIn;overflow:auto;box-shadow:0 20px 60px #14203a59}@keyframes cardIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.modal-head{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:16px 20px;display:flex}.modal-head h2{color:var(--navy);align-items:center;gap:8px;margin:0;font-size:17px;display:inline-flex}.icon-button{cursor:pointer;color:var(--text-soft);background:0 0;border:none;border-radius:6px;padding:6px}.icon-button:hover{color:var(--text);background:#f4f7fb}.modal-body{flex-direction:column;gap:14px;padding:20px;display:flex}.modal-body label{color:var(--text-soft);flex-direction:column;gap:6px;font-size:13px;font-weight:500;display:flex}.modal-body input,.modal-body textarea{font:inherit;border:1px solid var(--border);color:var(--text);background:#fff;border-radius:8px;outline:none;padding:9px 12px;transition:border-color .15s,box-shadow .15s}.modal-body input:focus,.modal-body textarea:focus{border-color:var(--navy);box-shadow:0 0 0 3px #1f2d4d1f}.modal-actions{justify-content:flex-end;gap:10px;padding-top:6px;display:flex}.modal-actions button{font:inherit;background:var(--navy);color:#fff;cursor:pointer;border:1px solid #0000;border-radius:8px;padding:9px 16px;font-weight:600}.modal-actions button.secondary{color:var(--text);border-color:var(--border);background:#fff}.modal-actions button:disabled{opacity:.6;cursor:progress}.small{font-size:12px}.error-text{color:var(--red);margin:0;font-size:13px}.success-text{color:var(--green-dark);margin:0;font-size:13px;font-weight:600}.head-actions{gap:8px;display:inline-flex}*{box-sizing:border-box}button{-webkit-tap-highlight-color:transparent}.brand-bar{background:var(--header-bg);border-bottom:3px solid var(--green);align-items:center;padding:.85rem 1.5rem;display:flex;box-shadow:0 1px 3px #1f2d4d0f}.brand-bar img{object-fit:contain;width:auto;max-width:260px;height:48px;display:block}.app{max-width:1100px;margin:0 auto;padding:1.5rem 1rem 6rem}.app-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem;margin-bottom:1.5rem;display:flex}.app-head.sticky{background:var(--page-bg);z-index:50;border-bottom:1px solid var(--border);margin:-.5rem 0 1.25rem;padding:.75rem 0;position:sticky;top:0;box-shadow:0 4px 6px -4px #1f2d4d14}.app-head h1{color:var(--navy);letter-spacing:-.01em;margin:0;font-size:1.6rem;font-weight:600}.head-actions{align-items:center;gap:.5rem;display:flex}.head-status{flex-wrap:wrap;flex:1;justify-content:center;align-items:center;gap:.5rem;display:flex}.save-status{color:var(--green-dark);background:#e7f3e4;border-radius:999px;padding:.3rem .8rem;font-size:.82rem;font-weight:500}.save-status.saving{color:#92400e;background:#fef3c7}.progress-pill{color:var(--navy);background:#eef2f7;border-radius:999px;align-items:center;gap:.3rem;padding:.3rem .7rem;font-size:.82rem;font-weight:500;display:inline-flex}.search-row{margin-bottom:1.25rem;position:relative}.search-row .search-icon{color:var(--text-soft);pointer-events:none;position:absolute;top:50%;left:.85rem;transform:translateY(-50%)}.search-input{border:1px solid var(--border);background:#fff;border-radius:8px;width:100%;margin:0;padding:.7rem 2.5rem;font-family:inherit;font-size:1rem}.search-input:focus{outline:2px solid var(--green);outline-offset:-1px;border-color:var(--green)}.search-clear{width:32px;height:32px;min-height:32px;padding:0;font-size:1.2rem;line-height:1;position:absolute;top:50%;right:.4rem;transform:translateY(-50%)}.card{background:var(--card-bg);border:1px solid var(--border);border-radius:8px;margin-bottom:1.5rem;padding:1.4rem;box-shadow:0 1px 2px #1f2d4d0a}.card h2{color:var(--navy);text-transform:uppercase;letter-spacing:.05em;border-bottom:2px solid var(--border);margin:0 0 1.1rem;padding-bottom:.6rem;font-size:1.1rem;font-weight:600}.card h3{color:var(--navy);margin:1.5rem 0 .6rem;font-size:.95rem;font-weight:600}label{color:var(--text-soft);text-transform:uppercase;letter-spacing:.04em;font-size:.78rem;font-weight:600;display:block}label.check{color:var(--text);text-transform:none;letter-spacing:0;cursor:pointer;align-items:center;gap:.5rem;margin-top:.5rem;font-size:.95rem;font-weight:500;display:inline-flex}label.check input[type=checkbox]{width:18px;height:18px;accent-color:var(--green);cursor:pointer}input[type=text],input[type=date],input[type=number],select,textarea{border:1px solid var(--border);width:100%;color:var(--text);background:#fff;border-radius:6px;margin-top:.35rem;padding:.6rem .75rem;font-family:inherit;font-size:1rem;transition:border-color .15s,box-shadow .15s}textarea{resize:vertical;min-height:2.5rem}input:focus,select:focus,textarea:focus{border-color:var(--green);outline:none;box-shadow:0 0 0 3px #4ea8452e}.grid-2{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.85rem;display:grid}button{background:var(--green);color:#fff;cursor:pointer;border:none;border-radius:6px;justify-content:center;align-items:center;gap:.4rem;min-height:42px;padding:.6rem 1rem;font-family:inherit;font-size:.92rem;font-weight:600;line-height:1;transition:background .15s,transform 50ms,box-shadow .15s;display:inline-flex}button:hover{background:var(--green-dark)}button:active{transform:translateY(1px)}button:disabled{opacity:.5;cursor:not-allowed;transform:none}button.secondary{background:var(--navy);color:#fff}button.secondary:hover{background:var(--navy-dark)}button.delete{color:#991b1b;background:#fee2e2}button.delete:hover{background:#fecaca}button.icon-only{width:42px;height:42px;min-height:42px;padding:0}button.icon-only.ghost{color:var(--text-soft);background:0 0}button.icon-only.ghost:hover{color:var(--navy);background:#f1f4f8}button.icon-only.ghost.delete{color:#991b1b}button.icon-only.ghost.delete:hover{background:#fee2e2}button.link-btn{color:var(--green-dark);background:0 0;min-height:auto;margin-top:.5rem;padding:.4rem .5rem;font-size:.85rem;font-weight:500;text-decoration:underline}button.link-btn:hover{color:var(--navy);background:0 0}.icon-btn{color:var(--navy);background:#f1f4f8;border-radius:6px;width:40px;height:40px;min-height:40px;padding:0}.icon-btn:hover{background:#e4e8ee}.icon-btn:disabled{opacity:.3}.icon-btn.delete{color:#991b1b;background:#fee2e2}.icon-btn.delete:hover{background:#fecaca}.muted{color:var(--text-soft);font-size:.9rem}.muted.small{font-size:.82rem}.aanwezige-row{grid-template-columns:1fr 1fr auto;align-items:end;gap:.5rem;margin-bottom:.5rem;display:grid}.empty-state{text-align:center;color:var(--text-soft);border:1px dashed var(--border);background:#fafbfc;border-radius:10px;padding:3rem 1rem}.empty-state p{margin:0 0 1rem}.report-list{flex-direction:column;gap:.75rem;display:flex}.report-card{background:var(--card-bg);border:1px solid var(--border);border-left:4px solid var(--green);cursor:pointer;border-radius:8px;align-items:center;gap:1rem;padding:1rem 1.2rem;transition:border-color .15s,box-shadow .15s,transform 50ms;display:flex}.report-card:hover{border-left-color:var(--navy);box-shadow:0 4px 12px #1f2d4d14}.report-card:active{transform:scale(.998)}.report-card .report-main{flex-direction:column;flex:1;gap:.3rem;min-width:0;display:flex}.report-card strong{color:var(--navy);font-size:1.05rem}.card-actions{flex-shrink:0;gap:.25rem;display:flex}.progress{background:#eef2f7;border-radius:999px;height:18px;margin:.2rem 0;position:relative;overflow:hidden}.progress-bar{background:linear-gradient(90deg, var(--green) 0%, var(--green-dark) 100%);transition:width .3s;position:absolute;inset:0 auto 0 0}.progress-label{text-align:center;color:var(--navy);mix-blend-mode:multiply;font-size:.72rem;font-weight:600;line-height:18px;display:block;position:relative}.regel-card{border:1px solid var(--border);border-left:3px solid var(--green);background:#fafbfc;border-radius:8px;margin-bottom:.85rem;padding:.95rem;transition:border-color .15s,opacity .15s}.regel-card.done{opacity:.7;border-left-color:var(--green-dark);background:#f3f9f1}.regel-head{flex-wrap:wrap;align-items:center;gap:.5rem;margin-bottom:.75rem;display:flex}.regel-head .nr{color:#fff;background:var(--navy);border-radius:999px;justify-content:center;align-items:center;min-width:28px;height:28px;padding:0 .5rem;font-size:.82rem;font-weight:700;display:inline-flex}.regel-head .ruimte{flex:1;min-width:120px;margin-top:0}.regel-controls{gap:.25rem;display:flex}.field{margin-bottom:.75rem}.add-row{border:2px dashed var(--green);width:100%;color:var(--green-dark);background:#fff;margin-top:.5rem;padding:.85rem}.add-row:hover{border-color:var(--green-dark);background:#f1f8ef}.room-chips{border:1px solid var(--border);background:#fafbfc;border-radius:6px;flex-wrap:wrap;gap:.4rem;margin-top:.6rem;padding:.75rem;display:flex}.chip{color:var(--navy);border:1px solid var(--border);background:#fff;border-radius:999px;min-height:34px;padding:.35rem .7rem;font-size:.82rem;font-weight:500}.chip:hover{background:var(--green);color:#fff;border-color:var(--green)}.photo-picker .thumbs{flex-wrap:wrap;gap:.5rem;margin-top:.35rem;display:flex}.photo-picker .thumb{border:1px solid var(--border);background:#f1f4f8;border-radius:6px;width:80px;height:80px;min-height:80px;padding:0;position:relative;overflow:hidden}.photo-picker .thumb img{object-fit:cover;cursor:pointer;width:100%;height:100%;display:block}.photo-picker .thumb-x{color:#fff;background:#000000b3;border:none;border-radius:999px;justify-content:center;align-items:center;width:22px;height:22px;min-height:22px;padding:0;display:flex;position:absolute;top:2px;right:2px}.photo-picker .add-thumb{color:var(--green-dark);border:2px dashed var(--green);background:#fff;flex-direction:column;justify-content:center;align-items:center;gap:.3rem;min-height:80px;font-size:.7rem;font-weight:600;display:flex}.photo-picker .add-thumb:hover{background:#f1f8ef}.photo-picker .camera-tile{background:var(--green);color:#fff;border:2px solid var(--green)}.photo-picker .camera-tile:hover{background:var(--green-dark);border-color:var(--green-dark)}.photo-picker .upload-tile{color:var(--navy);border:2px dashed var(--navy);background:#fff}.photo-picker .upload-tile:hover{background:#f1f4f8}.camera-overlay{z-index:200;background:#000;flex-direction:column;display:flex;position:fixed;inset:0}.camera-bar{color:#fff;background:#000000d9;flex-shrink:0;justify-content:space-between;align-items:center;gap:.5rem;padding:.6rem .75rem;display:flex}.camera-bar .session-count{color:#fff;text-align:center;flex:1;font-size:.9rem;font-weight:500}.camera-bar .cam-btn{color:#fff;background:#ffffff26;min-height:42px;padding:.55rem .9rem;font-size:.88rem}.camera-bar .cam-btn:hover{background:#ffffff40}.camera-bar .cam-btn.primary{background:var(--green)}.camera-bar .cam-btn.primary:hover{background:var(--green-dark)}.camera-bar .cam-btn:disabled{opacity:.4}.camera-stage{background:#000;flex:1;position:relative;overflow:hidden}.camera-video{object-fit:cover;background:#000;width:100%;height:100%;display:block}.snap-btn{cursor:pointer;z-index:3;background:#fff;border:5px solid #fff6;border-radius:50%;width:76px;height:76px;min-height:76px;padding:0;position:absolute;bottom:1.5rem;left:50%;transform:translate(-50%);box-shadow:0 0 0 3px #0006}.snap-btn:hover{background:#f4f4f5}.snap-btn:active{transform:translate(-50%)scale(.95)}.session-strip{z-index:2;gap:.5rem;padding:.5rem 1rem;display:flex;position:absolute;bottom:7.5rem;left:0;right:0;overflow-x:auto}.session-thumb{background:#000;border:2px solid #fff;border-radius:6px;flex-shrink:0;width:64px;height:64px;position:relative;overflow:hidden}.session-thumb img{object-fit:cover;width:100%;height:100%;display:block}.session-thumb .thumb-x{color:#fff;background:#000000b3;border:none;border-radius:999px;justify-content:center;align-items:center;width:20px;height:20px;min-height:20px;padding:0;display:flex;position:absolute;top:1px;right:1px}.camera-error{color:#fff;text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;padding:2rem;display:flex}.photo-viewer{z-index:100;background:#000000e6;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;inset:0}.photo-viewer .viewer-inner{background:#fff;border-radius:10px;flex-direction:column;gap:.75rem;min-width:280px;max-width:95vw;max-height:95vh;padding:1rem;display:flex}.viewer-image-wrap{justify-content:center;align-items:center;display:flex;position:relative}.viewer-image-wrap img{border-radius:6px;max-width:100%;max-height:70vh;display:block}.viewer-nav{color:#fff;z-index:1;background:#0000008c;border:none;border-radius:999px;width:48px;height:48px;min-height:48px;padding:0;position:absolute;top:50%;transform:translateY(-50%)}.viewer-nav:hover{background:#000000bf}.viewer-nav.prev{left:.5rem}.viewer-nav.next{right:.5rem}.viewer-count{text-align:center;color:var(--text-soft);font-size:.85rem;font-weight:500}.photo-viewer input[type=text]{width:100%;margin:0}.viewer-actions{justify-content:space-between;gap:.5rem;display:flex}.error{color:#991b1b;background:#fee2e2;border-radius:6px;margin-bottom:1rem;padding:.75rem 1rem}@media (width<=600px){.brand-bar{padding:.6rem 1rem}.brand-bar img{height:36px}.app{padding:1rem .75rem 5rem}.app-head h1{font-size:1.3rem}.aanwezige-row{grid-template-columns:1fr}.head-actions button:not(.icon-only) span{display:none}}.debug-toggle{z-index:9999;color:#fff;cursor:pointer;background:#18181b;border:none;border-radius:999px;align-items:center;gap:.4rem;min-height:38px;padding:.5rem .85rem;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.85rem;display:inline-flex;position:fixed;bottom:1rem;right:1rem;box-shadow:0 4px 12px #00000040}.debug-toggle:hover{background:#27272a}.debug-toggle .x{align-items:center;min-height:0;padding:0;display:inline-flex}.debug-toggle .badge{color:#fff;background:#dc2626;border-radius:999px;margin-left:.4rem;padding:0 .4rem;font-size:.75rem;font-weight:700}.debug-panel{color:#e2e8f0;z-index:9999;background:#0f172a;border-radius:12px;flex-direction:column;width:min(560px,100vw - 2rem);max-height:70vh;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.82rem;display:flex;position:fixed;bottom:4rem;right:1rem;overflow:hidden;box-shadow:0 12px 40px #00000073}.debug-head{background:#1e293b;border-bottom:1px solid #1e293b;justify-content:space-between;align-items:center;padding:.6rem .85rem;display:flex}.debug-head .x{color:#cbd5e1;cursor:pointer;background:0 0;border:none;padding:0 .3rem;font-size:1.1rem}.debug-controls{border-bottom:1px solid #1e293b;flex-wrap:wrap;align-items:center;gap:.5rem;padding:.55rem .85rem;display:flex}.debug-controls label{color:#94a3b8;align-items:center;gap:.3rem;font-size:.78rem;display:flex}.debug-controls select,.debug-controls button{color:#e2e8f0;cursor:pointer;background:#334155;border:1px solid #475569;border-radius:6px;padding:.25rem .5rem;font-family:inherit;font-size:.78rem}.debug-controls button.danger{background:#7f1d1d;border-color:#991b1b}.debug-list{flex:1;padding:.4rem .6rem;overflow-y:auto}.debug-list .empty{color:#64748b;text-align:center;padding:1rem}.log{background:#1e293b;border-left:3px solid #475569;border-radius:0 6px 6px 0;margin-bottom:.35rem;padding:.35rem .55rem}.log-debug{border-color:#64748b}.log-info{border-color:#3b82f6}.log-warn{background:#422006;border-color:#f59e0b}.log-error{background:#450a0a;border-color:#dc2626}.log-head{color:#94a3b8;gap:.5rem;margin-bottom:.15rem;font-size:.7rem;display:flex}.log-head .level{text-transform:uppercase;font-weight:700}.log-warn .log-head .level{color:#fbbf24}.log-error .log-head .level{color:#fca5a5}.log-head .scope{color:#cbd5e1}.log .msg{color:#f1f5f9;word-break:break-word}.log .data{white-space:pre-wrap;word-break:break-word;background:#0f172a;border-radius:4px;max-height:200px;margin:.3rem 0 0;padding:.35rem .5rem;font-size:.72rem;overflow:auto}
