:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#192543;background:#f3f6fc;line-height:1.5;--ink:#192543;--muted:#4f6079;--border:#dce5f1;--purple:#274dc4;--deep:#1d3892;--light:#eaf0ff}
*{box-sizing:border-box}
body{margin:0}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
button:disabled{cursor:wait;opacity:.55}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #8e6ed9;outline-offset:3px}
header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem clamp(1rem,4vw,4rem);background:#fff;border-bottom:1px solid var(--border)}
.brand,.header-actions,.week-controls,.filters,.record,.card-actions,.modal-actions{display:flex;align-items:center;gap:.65rem}
small,.muted,.heading p{color:var(--muted)}
.account{position:relative}
.account summary{cursor:pointer;font-weight:650;overflow-wrap:anywhere}
.account-menu{position:absolute;z-index:2;right:0;top:calc(100% + .65rem);min-width:12rem;background:#fff;border:1px solid var(--border);box-shadow:0 8px 20px #21183a16;border-radius:12px;padding:.7rem;display:grid;gap:.4rem}
#app{max-width:1560px;margin:auto;padding:0 clamp(.85rem,4vw,4rem) 2rem}
.nav{display:flex;gap:.4rem;flex-wrap:wrap;margin:1.25rem 0 1.8rem}
h1,h2,h3,h4,p{margin:0}
h1{font-size:clamp(1.55rem,3vw,2.45rem);line-height:1.14;letter-spacing:-.035em}
.heading p{margin-top:.45rem}
.page-title,.toolbar{display:flex;justify-content:space-between;align-items:center;gap:.8rem;flex-wrap:wrap}
.toolbar{margin:1.25rem 0 1rem;justify-content:space-between}
.filters{flex-wrap:wrap;margin-left:auto}
.switch{display:inline-flex;gap:2px;padding:3px;border:1px solid var(--border);border-radius:10px;background:#f5f3f9}
button{border:1px solid transparent;border-radius:9px;padding:.46rem .72rem;color:var(--ink);background:#fff;font-size:.88rem;font-weight:650}
.primary{background:var(--purple);color:white}
.primary:hover{background:var(--deep)}
.quiet,.icon{border-color:var(--border)}
.quiet:hover,.icon:hover,.nav-button:hover,.switch-button:hover{background:var(--light)}
.icon{font-size:1.45rem;line-height:1;padding:.38rem .76rem}
.switch-button{background:transparent;white-space:nowrap}
.switch-button[aria-pressed=true],.nav-button[aria-current=page]{background:var(--light);color:var(--deep)}
.nav-button{background:transparent}
.calendar{background:white;border:1px solid var(--border);border-radius:15px;overflow:hidden}
table{width:100%;border-collapse:collapse;table-layout:fixed;text-align:left}
th,td{padding:.67rem;border-bottom:1px solid var(--border);border-right:1px solid var(--border);vertical-align:top}
th:last-child,td:last-child{border-right:0}
tbody tr:last-child>*{border-bottom:0}
thead{background:#f4f1fa}
thead th:first-child{width:8.4rem}
thead small{display:block;font-weight:500}
th.today{background:var(--light);color:var(--deep)}
td.today{background:#fbf9ff}
.time{font-size:.83rem;color:var(--muted);background:#fcfbfe}
td{height:5.5rem;overflow-wrap:anywhere}
.session{background:#edf1fe;border-left:3px solid #6966bb;border-radius:8px;margin-bottom:.4rem;padding:.48rem .55rem;font-size:.85rem}
.session.completed{background:#eff8f2;border-color:#34825b}
.session.cancelled{background:#f3f0f2;border-color:#917f8b}
.session.noShow{background:#fff5e8;border-color:#a5641c}
.session>strong,.session>small{display:block}
.session>small{margin-bottom:.3rem}
.pill{display:inline-block;padding:.12rem .45rem;border-radius:20px;background:#e1e4fa;color:#393371;font-size:.74rem;font-weight:700}
.pill.completed{background:#dcefe3;color:#19573a}
.pill.cancelled{background:#eee3eb;color:#6c3f59}
.pill.noShow{background:#f8e7c9;color:#704309}
.card-actions{flex-wrap:wrap;gap:.15rem .5rem;margin-top:.25rem}
.link,.add-slot{background:transparent;color:var(--deep);padding:.15rem 0;text-align:left;font-size:.75rem;border:0}
.link:hover,.add-slot:hover{text-decoration:underline}
.empty{padding:1.1rem;color:var(--muted);text-align:center;border-top:1px solid var(--border)}
.mobile-days{display:none;margin-bottom:.75rem}
.records{margin-top:1rem;background:white;border:1px solid var(--border);border-radius:15px;overflow:hidden}
.record{padding:.8rem 1rem;border-bottom:1px solid var(--border);flex-wrap:wrap}
.record:last-child{border-bottom:0}
.record-name{display:grid;flex:1;overflow-wrap:anywhere}
label.field{display:grid;gap:.3rem;min-width:0;font-size:.9rem;font-weight:650}
input:not([type=checkbox]),select,textarea{width:100%;min-width:0;padding:.49rem .63rem;border:1px solid #cfc9dd;border-radius:8px;background:#fff;color:var(--ink)}
.filters>*{width:auto;max-width:100%}
textarea{resize:vertical}
.check{display:flex;align-items:center;gap:.45rem}
.form-grid,.login-form{display:grid;gap:.8rem}
.field[hidden]{display:none}
.error{color:#9d2638;font-size:.88rem;white-space:pre-line}
.error:empty{display:none}
.page-error{margin-bottom:.8rem}
dialog{width:min(94vw,36rem);max-height:90dvh;overflow:auto;border:1px solid var(--border);border-radius:17px;padding:1.35rem;color:var(--ink);box-shadow:0 22px 88px #20153460}
dialog::backdrop{background:#24193e85}
dialog h2{margin-bottom:.8rem}
.modal-actions{justify-content:flex-end;margin-top:1rem}
dialog form .error{margin-top:.65rem}
.profile h4{margin-top:.75rem}
.profile dl{margin:.65rem 0}
.detail{border-bottom:1px solid var(--border);padding:.55rem 0;overflow-wrap:anywhere}
dt{font-weight:650}
dd{margin:0;white-space:pre-wrap}
.login-shell{margin:clamp(2rem,12vh,8rem) auto 0;max-width:26rem}
.login-card{background:white;border:1px solid var(--border);border-radius:18px;padding:clamp(1rem,5vw,2rem);box-shadow:0 12px 35px #31215b10}
.login-card h1{margin-bottom:1rem;font-size:1.9rem}
@media(max-width:850px){
  .mobile-days{display:block}
  .other-day{display:none}
  .filters{margin-left:0}
}
@media(max-width:480px){
  header{align-items:flex-start}
  .header-actions{flex-wrap:wrap;justify-content:flex-end}
  .filters{display:grid;grid-template-columns:1fr;flex:1}
  .filters>*{width:100%}
  thead th:first-child{width:6.4rem}
}
.demo-notice{margin-top:1rem;background:#eee8fe;color:#38216e;border-radius:9px;padding:.55rem .85rem;font-size:.875rem}
.branch-tabs{display:flex;gap:.4rem;flex-wrap:wrap;margin-top:1.25rem}
.branch-tab{border-color:var(--border);font-size:.9rem;text-align:left}
.branch-tab[aria-pressed=true]{background:var(--deep);border-color:var(--deep);color:#fff}
.branch-tab:not([aria-pressed=true]):hover{background:var(--light)}
.toolbar .filters{align-items:end}
.filters .field{min-width:9rem}
.open-slot{display:grid;place-items:center;width:100%;min-height:4.4rem;border:1px dashed transparent;border-radius:8px;color:var(--muted);text-align:center;font-size:.875rem}
.open-slot:hover,.open-slot:focus-visible{border-color:#aa94d0;color:var(--deep);background:var(--light);text-decoration:none}
td.no-card{padding:.35rem}
.session-menu{margin-top:.25rem}
.session-menu summary{cursor:pointer;color:var(--deep);font-size:.82rem}
.session-menu .link{font-size:.82rem}
@media(max-width:480px){.branch-tabs{display:grid;grid-template-columns:1fr}.filters .field{min-width:0}}
.student-row{display:grid;grid-template-columns:1fr 1fr;gap:.65rem}
.student-registration .field input,.student-registration .field select{background:#f6f8fb}
.registration-notes summary{cursor:pointer;font-weight:650;color:var(--deep)}
.registration-notes .form-grid{margin-top:.65rem}
@media(max-width:420px){.student-row{grid-template-columns:1fr}}

/* Nur Kidz dashboard */
body { min-height:100dvh; }
header { padding-block:.9rem; box-shadow:0 2px 12px #20336a0a; }
.switch { background:#f1f5fd; }
.nav {
  width:fit-content;
  padding:.26rem;
  margin:1rem 0 1.45rem;
  gap:.15rem;
  border:1px solid var(--border);
  border-radius:13px;
  background:#fff;
}
.nav-button { padding:.52rem .9rem; }
.nav-button[aria-current=page] { background:var(--light); }
.demo-notice { background:transparent; color:var(--muted); padding:.2rem 0; }
.schedule-title {
  padding:clamp(1.1rem,3vw,2rem);
  border-radius:20px;
  color:#fff;
  background:radial-gradient(ellipse at 95% 5%,#4566da 0%,transparent 56%),linear-gradient(118deg,#162c70,#2948ad);
  box-shadow:0 12px 26px #2a469027;
}
.schedule-title .heading p { color:#e7eeff; }
.week-controls {
  padding:.28rem;
  border:1px solid #ffffff52;
  border-radius:12px;
  gap:.3rem;
  background:#12265a46;
}
.week-controls button { color:#fff; border-color:transparent; background:transparent; }
.week-controls button:hover,.week-controls button:focus-visible { background:#ffffff29; }
.schedule-controls,.calendar,.records {
  background:#fff;
  border:1px solid var(--border);
  border-radius:17px;
  box-shadow:0 8px 24px #182d6109;
}
.schedule-controls { padding:1rem; margin:1rem 0 .8rem; }
.branch-tabs { margin:0; }
.branch-tab[aria-pressed=true] { background:var(--purple); border-color:var(--purple); }
.toolbar { margin:.85rem 0 0; }
.filters { margin-left:0; flex:1; }
.filters .field { flex:1 1 10rem; }
.filters .quiet,.field select,.field input:not([type=checkbox]) { min-height:2.65rem; }
.mobile-days { margin:.75rem 0 0; }
thead { background:#f0f4fc; }
thead th { padding:.75rem; font-size:.925rem; }
thead small { margin-top:.15rem; font-size:.82rem; }
th.today { background:#e3ebff; box-shadow:inset 0 3px #3b61d5; }
td.today { background:#f7faff; }
.time { background:#f8faff; font-size:.875rem; }
.open-slot { border-color:#dce5f3; background:#f8faff; }
.open-slot:hover,.open-slot:focus-visible { border-color:#6b88e3; }
.session { background:#eaf0ff; border-color:#4869d1; border-radius:10px; padding:.58rem .62rem; }
.session>strong { font-size:.95rem; }
.pill.scheduled { background:#dce6ff; color:#23429b; }
.session-menu summary,.session-menu .link { font-size:.875rem; }
.record { padding:1rem 1.15rem; }
.record:hover { background:#f8faff; }
.record-name strong { font-size:1rem; }
dialog { padding:clamp(1rem,3vw,1.65rem); border-radius:20px; }
dialog::backdrop { background:#10204d88; }
dialog h2 { font-size:clamp(1.35rem,3vw,1.65rem); letter-spacing:-.025em; }
.registration-dialog { width:min(94vw,39rem); }
.student-registration p { padding-bottom:.7rem; border-bottom:1px solid var(--border); }
.registration-notes { border:1px solid var(--border); border-radius:10px; padding:.65rem .75rem; }
.modal-actions { flex-wrap:wrap; }
.registration-dialog .modal-actions .primary { flex:1; min-height:2.7rem; }
@media(max-width:480px){
  .nav { width:100%; }
  .nav-button { flex:1; padding-inline:.4rem; }
  .schedule-title { align-items:flex-start; flex-direction:column; }
  .schedule-controls { padding:.75rem; }
  .filters .field { min-width:0; }
  th,td { padding:.5rem; }
}
.session-balance{display:grid;gap:.2rem;padding:.65rem .8rem;border:1px solid var(--border);border-radius:10px;background:#f3f6ff;font-size:.875rem}
.session-balance[hidden]{display:none}
.balance-preview{font-weight:650;color:var(--deep)}

.brand { display:grid; gap:.35rem; min-width:0; }
.brand-logo { display:block; width:min(100%,16rem); height:auto; }
.brand-caption { font-size:.81rem; line-height:1.3; }
@media(max-width:480px){
  .brand-logo { width:min(100%,12rem); }
  .brand-caption { font-size:.75rem; }
}
.danger-link{color:#a32138}
.danger-button{background:#ae263b;color:#fff}
.danger-button:hover{background:#8f1e30}
.record-actions{display:flex;flex-wrap:wrap;gap:.5rem}
.student-history{margin-top:1rem}
.view-picker{margin-bottom:.75rem}
.month-table th,.month-table td{text-align:center}
.month-table thead th:first-child{width:auto}
.month-table td{padding:.3rem;height:auto}
.month-day{width:100%;min-height:3.5rem;display:grid;place-content:center;justify-items:center;gap:.2rem;background:transparent}
.month-day:hover,.month-day:focus-visible{background:var(--light);color:var(--deep)}
.month-outside{background:#f6f8fb}
.month-count{background:var(--light);color:var(--deep);border-radius:99px;padding:.05rem .4rem;font-size:.75rem}
@media(max-width:480px){.month-table th,.month-table td{padding:.15rem}.month-day{padding:.15rem}.month-table th{font-size:.75rem}}
.session-note-text{margin-top:.3rem;white-space:pre-wrap;overflow-wrap:anywhere}
.assessment-list{display:grid;gap:1rem;margin-top:1rem}
.assessment-card{padding:1rem;background:#fff;border:1px solid var(--border);border-radius:15px;overflow-wrap:anywhere}
.assessment-card h2{font-size:1.1rem}
.assessment-details{display:grid;grid-template-columns:repeat(auto-fit,minmax(13rem,1fr));gap:.3rem 1rem}
.assessment-warning{margin-top:.45rem;padding:.65rem .8rem;background:#fff1d8;border:1px solid #edcd95;border-radius:9px;color:#694006;font-size:.875rem}
.assessment-warning ul{margin:.2rem 0 0;padding-inline-start:1.25rem}
@media(max-width:480px){.assessment-details{grid-template-columns:1fr}}
