:root {
  --navy: #ca1a5b;
  --navy-2: #7f1038;
  --blue: #ca1a5b;
  --teal: #b81752;
  --green: #ffbf40;
  --orange: #ffbf40;
  --cream: #fff8ea;
  --gold-soft: #fff0c8;
  --magenta-soft: #fde8f0;
  --paper: #fff;
  --ink: #17212b;
  --muted: #66727e;
  --line: #b8c2c8;
  --danger: #b94242;
  --shadow: 0 18px 50px rgba(202, 26, 91, .14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 1.08fr) minmax(360px, .92fr);
}

.auth-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(32px, 6vw, 84px);
  color: white;
  background:
    radial-gradient(circle at 78% 18%, rgba(255,191,64,.72), transparent 22%),
    radial-gradient(circle at 18% 82%, rgba(202,26,91,.55), transparent 27%),
    linear-gradient(145deg, var(--navy-2), var(--navy));
}

.auth-hero::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: -230px;
  bottom: -180px;
  border: 80px solid rgba(255,255,255,.06);
  border-radius: 50%;
}

.brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 750;
  letter-spacing: .01em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--navy);
  background: white;
  font-size: 22px;
}

.brand-logo {
  width: 84px;
  height: 42px;
  object-fit: contain;
  padding: 4px 6px;
  border-radius: 12px;
  background: white;
  box-shadow: 0 8px 22px rgba(0,0,0,.1);
}

.auth-brand {
  align-items: center;
  color: inherit;
  gap: 18px;
  text-decoration: none;
}

.auth-brand:hover .brand-logo,
.auth-brand:focus-visible .brand-logo {
  transform: translateY(-1px);
}

.auth-brand .brand-logo {
  width: clamp(132px, 12vw, 178px);
  height: auto;
  min-height: 70px;
  padding: 8px 12px;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(0,0,0,.16);
  transition: transform .15s ease;
}

.auth-brand span {
  display: grid;
  gap: 2px;
  line-height: 1.02;
}

.auth-brand strong {
  max-width: 320px;
  font-size: clamp(1.35rem, 2.1vw, 2.15rem);
  letter-spacing: -.04em;
}

.auth-brand small {
  color: var(--orange);
  font-size: clamp(1.05rem, 1.45vw, 1.45rem);
  font-weight: 850;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.sidebar .brand-logo {
  width: 112px;
  height: 56px;
  padding: 5px 8px;
}

.sidebar-brand {
  display: grid;
  justify-items: center;
  gap: 12px;
  color: white;
  text-align: center;
  text-decoration: none;
}

.sidebar-brand .brand-logo {
  width: 136px;
  height: auto;
  min-height: 68px;
  padding: 8px 12px;
  border-radius: 16px;
  transition: transform .15s ease, box-shadow .15s ease;
}

.sidebar-brand span {
  display: grid;
  gap: 2px;
  line-height: 1.05;
}

.sidebar-brand strong {
  font-size: 1.18rem;
  letter-spacing: -.035em;
}

.sidebar-brand small {
  color: var(--orange);
  font-size: .9rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.sidebar-brand:hover .brand-logo,
.sidebar-brand:focus-visible .brand-logo {
  box-shadow: 0 14px 32px rgba(0,0,0,.18);
  transform: translateY(-1px);
}

.hero-copy { position: relative; z-index: 1; max-width: 650px; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero-copy h1 {
  max-width: 620px;
  margin: 0 0 20px;
  font-size: clamp(2.5rem, 5vw, 5.5rem);
  line-height: .98;
  letter-spacing: -.055em;
}
.hero-copy > p {
  max-width: 560px;
  color: rgba(255,255,255,.78);
  font-size: 1.08rem;
  line-height: 1.65;
}
.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-pills span {
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  font-size: .86rem;
}

.auth-panel {
  position: relative;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255,191,64,.18), transparent 25%),
    radial-gradient(circle at 85% 82%, rgba(202,26,91,.1), transparent 26%),
    #fcfbf8;
}
.auth-card {
  width: min(100%, 520px);
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid rgba(202,26,91,.1);
  border-radius: 28px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 24px 70px rgba(23,33,43,.11);
}
.auth-card h2 { margin: 0 0 22px; font-size: clamp(2rem, 3vw, 2.75rem); letter-spacing: -.05em; }
.auth-card .intro { margin: 0 0 28px; color: var(--muted); line-height: 1.55; }
.auth-help-link { margin: 16px 0 0; text-align: center; font-weight: 800; }
.auth-help-link a { color: var(--magenta); }
.auth-toast {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  transform: translateX(-50%);
}
.staff-corner-link {
  position: absolute;
  top: clamp(18px, 4vw, 42px);
  right: clamp(18px, 4vw, 46px);
  padding: 9px 14px;
  border: 1px solid rgba(255,191,64,.62);
  border-radius: 999px;
  color: #6a4a12;
  background: rgba(255,240,200,.92);
  font-size: .78rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(255,191,64,.16);
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.staff-corner-link:hover {
  border-color: rgba(255,191,64,.9);
  background: #fff4d3;
  transform: translateY(-1px);
}
.auth-error {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(185,66,66,.28);
  border-left: 5px solid var(--danger);
  border-radius: 14px;
  color: #7c1f1f;
  background: #fff1f1;
  box-shadow: 0 12px 28px rgba(185,66,66,.12);
}
.auth-error strong {
  font-size: .95rem;
}
.auth-error span {
  line-height: 1.45;
}
.field-error {
  color: var(--danger);
  font-size: .82rem;
  font-weight: 750;
}
.field-hint {
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.45;
}
.auth-card form {
  display: grid;
  gap: 16px;
}
.auth-card form p {
  display: grid;
  gap: 8px;
  margin: 0;
}
.auth-card form .helptext {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.45;
}
.auth-card form ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.45;
}
.auth-card form .errorlist {
  display: grid;
  gap: 5px;
  margin: 4px 0 0;
  padding: 12px 14px 12px 32px;
  border: 1px solid rgba(185,66,66,.28);
  border-left: 5px solid var(--danger);
  border-radius: 14px;
  color: #7c1f1f;
  background: #fff1f1;
  box-shadow: 0 10px 24px rgba(185,66,66,.1);
}
.auth-card form .errorlist li {
  padding-left: 2px;
}
.auth-card label {
  color: #3f2732;
  font-size: .9rem;
  font-weight: 800;
}
.auth-card input {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid #ead5de;
  border-radius: 14px;
  outline: none;
  color: var(--ink);
  background: #fffafc;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.auth-card input:focus {
  border-color: var(--navy);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(202,26,91,.12);
}
.street-suggestions {
  display: grid;
  gap: 4px;
  margin: -8px 0 4px;
  padding: 8px;
  border: 1px solid rgba(202,26,91,.14);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(23,33,43,.12);
}
.street-suggestions[hidden] {
  display: none;
}
.street-suggestions button {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  font-weight: 700;
}
.street-suggestions button:hover,
.street-suggestions button:focus {
  color: var(--navy);
  background: #fff4f8;
}
.auth-card p:has(.field-error) input {
  border-color: rgba(185,66,66,.7);
  background: #fff8f8;
}
.auth-card .btn-primary {
  min-height: 56px;
  margin-top: 6px;
  border-radius: 15px;
  font-size: 1.05rem;
  box-shadow: 0 15px 32px rgba(202,26,91,.26);
}
.auth-actions {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.auth-actions-two {
  grid-template-columns: 1.25fr 1fr;
}
.auth-link-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid rgba(202,26,91,.18);
  border-radius: 14px;
  color: var(--navy);
  background: #fff4f8;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.auth-link-card:hover {
  border-color: rgba(202,26,91,.34);
  box-shadow: 0 10px 24px rgba(202,26,91,.12);
  transform: translateY(-1px);
}
.auth-link-card-soft {
  color: #6a4a12;
  border-color: rgba(255,191,64,.55);
  background: var(--gold-soft);
}
.auth-register-card {
  min-height: 76px;
  flex-direction: column;
  gap: 3px;
  color: var(--navy);
  border-color: rgba(202,26,91,.18);
  background: linear-gradient(135deg, #fff4f8, #fffafc);
  box-shadow: 0 12px 28px rgba(202,26,91,.1);
  font-size: 1.08rem;
}
.auth-register-card span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 750;
}
.auth-register-card:hover {
  border-color: rgba(202,26,91,.34);
  background: #fff;
  box-shadow: 0 16px 34px rgba(202,26,91,.15);
}
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 5px;
  margin-bottom: 24px;
  border-radius: 14px;
  background: #e9eeef;
}
.tab {
  padding: 11px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font-weight: 700;
}
.tab.active { color: var(--navy); background: white; box-shadow: 0 3px 12px rgba(0,0,0,.08); }

.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: .84rem; font-weight: 750; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  color: var(--ink);
  background: white;
  transition: .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(202,26,91,.13);
}
.field textarea { min-height: 95px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  padding: 10px 16px;
  border: 0;
  border-radius: 11px;
  font-weight: 750;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: white; background: var(--navy); box-shadow: 0 8px 22px rgba(202,26,91,.22); }
.btn-secondary { color: #601028; background: var(--gold-soft); }
.btn-ghost { color: var(--navy); background: transparent; border: 1px solid var(--line); }
.btn-danger { color: white; background: var(--danger); box-shadow: 0 10px 24px rgba(185,66,66,.22); }
.btn-wide { width: 100%; }
.demo-note { margin-top: 18px; color: var(--muted); font-size: .82rem; text-align: center; }
.text-button { border: 0; padding: 0; color: var(--blue); background: none; font-weight: 750; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 25px 18px;
  color: white;
  background:
    radial-gradient(circle at 25% 4%, rgba(255,191,64,.22), transparent 28%),
    linear-gradient(180deg, var(--navy-2), #4d0b22);
}
.sidebar .brand { padding: 0 8px 28px; }
.sidebar .brand-mark { width: 36px; height: 36px; font-size: 18px; }
.nav-label { margin: 15px 10px 8px; color: rgba(255,255,255,.42); font-size: .68rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.nav { display: grid; gap: 5px; }
.nav button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 10px;
  color: rgba(255,255,255,.68);
  background: transparent;
  text-align: left;
  font-weight: 650;
}
.nav button.active, .nav button:hover { color: white; background: rgba(255,255,255,.1); }
.nav button.active {
  position: relative;
  background: rgba(255,255,255,.14);
  box-shadow: inset 4px 0 0 var(--orange);
}
.nav button.active .nav-icon {
  color: var(--orange);
}
.nav-icon { width: 20px; text-align: center; }
.sidebar-footer {
  position: relative;
  margin-top: auto;
}
.profile-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px 10px;
  border-top: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  color: white;
  list-style: none;
  cursor: pointer;
  transition: background .15s ease;
}
.profile-mini:hover,
.profile-menu[open] .profile-mini {
  background: rgba(255,255,255,.1);
}
.profile-mini::-webkit-details-marker {
  display: none;
}
.avatar {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #4d0b22;
  background: var(--orange);
  font-weight: 800;
}
.profile-mini strong, .profile-mini small { display: block; }
.profile-mini small { margin-top: 2px; color: rgba(255,255,255,.48); }
.profile-menu {
  position: relative;
}
.profile-menu-popover {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 10px);
  z-index: 20;
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 14px;
  background: #5b0d28;
  box-shadow: 0 18px 38px rgba(0,0,0,.24);
}
.profile-menu:not([open]) .profile-menu-popover {
  display: none;
}
.profile-menu-popover button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 10px;
  color: rgba(255,255,255,.78);
  background: transparent;
  text-align: left;
  font-weight: 750;
}
.profile-menu-popover button:hover,
.profile-menu-popover button.active {
  color: white;
  background: rgba(255,255,255,.12);
}

.main { min-width: 0; padding: 34px clamp(22px, 4vw, 58px) 60px; }
.site-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 42px;
  color: var(--muted);
  font-size: .82rem;
}
.site-legal a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 750;
}
.site-legal a:hover,
.site-legal a:focus-visible {
  color: var(--navy);
  text-decoration: underline;
}
.auth-legal {
  position: fixed;
  right: 20px;
  bottom: 18px;
  z-index: 20;
  margin-top: 0;
  padding: 10px 14px;
  border: 1px solid rgba(202,26,91,.11);
  border-radius: 999px;
  background: rgba(255, 248, 234, .9);
  box-shadow: 0 10px 28px rgba(202,26,91,.08);
  backdrop-filter: blur(8px);
}
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.topbar h1 { margin: 0 0 6px; font-size: clamp(1.8rem, 3vw, 2.65rem); letter-spacing: -.045em; }
.topbar p { margin: 0; color: var(--muted); }
.grid { display: grid; gap: 20px; }
.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-bottom: 30px; }
.card {
  padding: 22px;
  border: 1px solid rgba(202,26,91,.09);
  border-radius: 17px;
  background: var(--paper);
  box-shadow: 0 8px 26px rgba(202,26,91,.06);
}
.stat { position: relative; min-height: 130px; overflow: hidden; }
.stat::after {
  content: "";
  position: absolute;
  width: 75px;
  height: 75px;
  right: -25px;
  top: -25px;
  border-radius: 50%;
  background: var(--stat-color, var(--blue));
  opacity: .16;
}
.stat-label { color: var(--muted); font-size: .8rem; font-weight: 700; }
.stat-value { margin: 13px 0 2px; font-size: 2rem; font-weight: 850; letter-spacing: -.04em; }
.stat-foot { color: var(--muted); font-size: .78rem; }
.dashboard-actions .stat {
  min-height: 150px;
}
.dashboard-actions .stat-label {
  color: var(--ink);
  font-size: .95rem;
}
.dashboard-actions .stat-value {
  color: var(--navy);
}
.dashboard-actions .stat-foot {
  max-width: 230px;
  line-height: 1.45;
}
.stat-link {
  color: inherit;
  text-decoration: none;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.stat-link:hover,
.stat-link:focus-visible {
  border-color: rgba(202,26,91,.25);
  box-shadow: 0 18px 40px rgba(202,26,91,.13);
  transform: translateY(-3px);
}
.stat-link:hover .stat-foot,
.stat-link:focus-visible .stat-foot {
  color: var(--navy);
  font-weight: 800;
}
.dashboard-grid { grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.section-head h2 { margin: 0; font-size: 1.16rem; letter-spacing: -.02em; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: .82rem; }

.form-card {
  max-width: 760px;
}

.styled-form {
  display: grid;
  gap: 17px;
}

.styled-form p {
  display: grid;
  gap: 8px;
  margin: 0;
}

.styled-form label {
  color: #3f2732;
  font-size: .9rem;
  font-weight: 800;
}
.styled-form p:has(input[required]) label::after,
.styled-form p:has(select[required]) label::after,
.styled-form p:has(textarea[required]) label::after,
.required-label::after {
  content: " *";
  color: var(--navy);
  font-weight: 900;
}

.styled-form input,
.styled-form select,
.styled-form textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid #ead5de;
  border-radius: 14px;
  outline: none;
  color: var(--ink);
  background: #fffafc;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.styled-form input:focus,
.styled-form select:focus,
.styled-form textarea:focus {
  border-color: var(--navy);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(202,26,91,.12);
}

.styled-form textarea {
  min-height: 120px;
  resize: vertical;
}

.styled-form .btn {
  justify-self: start;
  min-width: 150px;
}

.child-list, .application-list { display: grid; gap: 16px; }
.child-row, .application-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.child-row {
  display: block;
}
.child-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.child-status-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 850;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.status-pill:hover,
.status-pill:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(202,26,91,.12);
}
.status-pill-success {
  color: #24683f;
  background: #dff2e7;
}
.status-pill-open {
  color: #78551d;
  background: var(--gold-soft);
}
.application-row-link {
  color: inherit;
  text-decoration: none;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.application-row-link:hover,
.application-row-link:focus-visible {
  border-color: rgba(202,26,91,.25);
  box-shadow: 0 14px 30px rgba(202,26,91,.1);
  transform: translateY(-2px);
}
.card > .registration-card + .registration-card,
.card > .application-row + .application-row,
.card > .admin-registration-card + .admin-registration-card {
  margin-top: 20px;
}
.registration-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}
.cost-overview-card {
  margin-top: 8px;
}
.cost-total {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 14px;
  color: white;
  background: var(--navy);
  box-shadow: 0 12px 26px rgba(202,26,91,.18);
}
.cost-list {
  display: grid;
  gap: 18px;
}
.cost-child-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}
.compact-registration-details {
  margin-top: 16px;
}
.registration-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.registration-details {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid #edf0f1;
}
.parent-application-details {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #edf0f1;
}
.parent-application-details summary {
  width: fit-content;
  cursor: pointer;
  color: var(--navy);
  font-weight: 850;
}
.parent-application-details .admin-meta-grid {
  margin-top: 14px;
}
.child-profile-details {
  margin-top: 14px;
}
.child-profile-actions {
  padding-top: 14px;
  border-top: 1px solid #edf0f1;
}
.change-status-notice {
  margin: 14px 0;
}
.change-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.change-compare-grid section {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fffafc;
}
.change-compare-grid h3 {
  margin: 0 0 12px;
  color: var(--navy);
}
.review-form {
  margin-top: 18px;
}
.request-section {
  margin-top: 18px;
}
.registration-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}
.btn:disabled {
  cursor: not-allowed;
  opacity: .58;
  transform: none;
  box-shadow: none;
}
.admin-registration-list {
  display: grid;
  gap: 18px;
}
.admin-registration-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}
.collapsible-card {
  overflow: hidden;
}
.collapsible-card > summary {
  cursor: pointer;
  list-style: none;
}
.collapsible-card > summary::-webkit-details-marker {
  display: none;
}
.collapsible-card > summary::after {
  content: "Ausklappen";
  flex: 0 0 auto;
  margin-left: auto;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--navy);
  background: #fff4f8;
  font-size: .78rem;
  font-weight: 850;
}
.collapsible-card[open] > summary::after {
  content: "Einklappen";
}
.collapsible-card > summary .badge {
  margin-left: 8px;
}
.collapsible-card .collapsible-body {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #edf0f1;
}
.care-admin-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.care-admin-block {
  padding: 13px;
  border-radius: 12px;
  background: #fff8ea;
  border: 1px solid #ffe1a0;
}
.care-admin-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: #4d0b22;
}
.care-admin-title span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 750;
  white-space: nowrap;
}
.care-days {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.care-days span {
  min-width: 36px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #4d0b22;
  background: #fff;
  border: 1px solid #ffe1a0;
  text-align: center;
  font-size: .78rem;
  font-weight: 850;
}
.child-alerts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 13px;
}
.child-alerts div {
  padding: 10px 12px;
  border-radius: 11px;
  background: #fff;
  border: 1px solid #ffe1a0;
}
.child-alerts strong {
  display: block;
  margin-bottom: 4px;
  color: #4d0b22;
  font-size: .78rem;
}
.child-alerts span {
  color: var(--ink);
  font-size: .86rem;
  line-height: 1.35;
}
.admin-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.admin-meta-grid div {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}
.admin-meta-grid strong {
  display: block;
  margin-bottom: 4px;
  color: #4d0b22;
  font-size: .78rem;
}
.admin-meta-grid span {
  display: block;
  white-space: pre-line;
  color: var(--ink);
  font-size: .86rem;
  line-height: 1.35;
}
.attendance-grid {
  display: grid;
  gap: 8px;
}
.attendance-summary-head {
  align-items: flex-start;
  gap: 18px;
}
.attendance-summary-main {
  display: grid;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.attendance-summary-care,
.attendance-summary-extra {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.attendance-day-note {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffaf2;
}
.attendance-day-note h2 {
  margin: 0;
  font-size: 1.15rem;
}
.attendance-day-note p {
  margin: 3px 0 0;
  color: var(--muted);
}
.attendance-day-note-form {
  display: grid;
  gap: 10px;
}
.attendance-day-note textarea,
.attendance-day-note-readonly {
  width: 100%;
  min-height: 110px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  line-height: 1.45;
}
.attendance-day-note textarea {
  resize: vertical;
}
.attendance-day-note .btn {
  justify-self: start;
}
.attendance-care-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid #ead5de;
  border-radius: 13px;
  background: #fffafc;
  font-size: .8rem;
  line-height: 1.25;
}
.attendance-card.is-present {
  border-color: #8bd5a6;
  background: #f1fbf5;
}
.attendance-card.is-absent {
  border-color: #efb0b0;
  background: #fff6f6;
}
.attendance-card.is-open {
  border-color: var(--line);
  background: #fff;
}
.attendance-care-chip.is-present {
  border-color: #8bd5a6;
  background: #e3f8eb;
  box-shadow: inset 4px 0 0 #31a75d;
}
.attendance-care-chip.is-absent {
  border-color: #efb0b0;
  background: #fff0f0;
  box-shadow: inset 4px 0 0 #cf3434;
}
.attendance-care-chip.is-open {
  border-color: var(--line);
  background: #f4f6f7;
  box-shadow: inset 4px 0 0 #a8b3ba;
}
.attendance-care-chip strong {
  color: var(--ink);
}
.attendance-care-chip small {
  color: var(--muted);
}
.attendance-summary-extra span {
  display: inline-grid;
  gap: 2px;
  min-width: 120px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: .78rem;
}
.attendance-summary-extra strong {
  color: var(--muted);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.attendance-badge.is-present {
  color: #24683f;
  background: #dff2e7;
}
.attendance-badge.is-absent {
  color: var(--danger);
  background: #faeaea;
}
.attendance-badge.is-open {
  color: #5f6f78;
  background: #e9eef1;
}
.attendance-row {
  display: grid;
  grid-template-columns: minmax(260px, .7fr) 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 11px;
  background: #fff;
}
.attendance-edit-main {
  display: grid;
  gap: 9px;
}
.attendance-choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.attendance-choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}
.attendance-choice input {
  width: 18px;
  height: 18px;
  accent-color: var(--navy);
}
.attendance-choice.is-present:has(input:checked) {
  color: #24683f;
  border-color: #8bd5a6;
  background: #e3f8eb;
}
.attendance-choice.is-absent:has(input:checked) {
  color: var(--danger);
  border-color: #efb0b0;
  background: #fff0f0;
}
.attendance-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}
.attendance-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--navy);
}
.attendance-note {
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}
.item-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.item-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--navy);
  background: var(--magenta-soft);
  font-weight: 850;
}
.item-copy { min-width: 0; }
.item-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-copy small { display: block; margin-top: 4px; color: var(--muted); }
.badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; font-size: .72rem; font-weight: 800; }
.badge.approved { color: #24683f; background: #dff2e7; }
.badge.info { color: var(--navy); background: var(--magenta-soft); }
.badge.danger { color: var(--danger); background: #faeaea; }
.item-actions { display: flex; gap: 7px; }
.payment-row {
  align-items: center;
}
.payment-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
}
.payment-actions form {
  margin: 0;
}
.icon-btn {
  width: 35px;
  height: 35px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--navy);
  background: white;
}

.welcome-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 30px;
  color: white;
  background:
    radial-gradient(circle at 88% 35%, rgba(255,191,64,.45), transparent 24%),
    linear-gradient(125deg, var(--navy), #8f123f);
}
.welcome-card::after {
  content: "✓";
  position: absolute;
  right: 35px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,.12);
  font-size: 8rem;
  font-weight: 900;
}
.welcome-card h2 { position: relative; z-index: 1; margin: 0 0 8px; font-size: 1.5rem; }
.welcome-card p { position: relative; z-index: 1; max-width: 650px; margin: 0; color: rgba(255,255,255,.72); line-height: 1.55; }
.onboarding-card {
  margin-bottom: 18px;
  padding: clamp(26px, 4vw, 42px);
  color: white;
  background:
    radial-gradient(circle at 88% 20%, rgba(255,191,64,.5), transparent 24%),
    linear-gradient(125deg, var(--navy), #7f1038);
}
.onboarding-card h2 {
  max-width: 720px;
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  letter-spacing: -.04em;
}
.onboarding-card p:not(.eyebrow) {
  max-width: 720px;
  margin: 0 0 22px;
  color: rgba(255,255,255,.8);
  line-height: 1.55;
}
.onboarding-card .btn-primary {
  color: #4d0b22;
  background: var(--orange);
  box-shadow: 0 14px 32px rgba(0,0,0,.16);
}
.welcome-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.welcome-actions .btn-ghost {
  color: white;
  border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.08);
}
.onboarding-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}
.step-preview {
  display: grid;
  gap: 8px;
}
.step-preview strong {
  color: var(--navy);
}
.step-preview span {
  color: var(--muted);
  line-height: 1.45;
}
.step-preview.active {
  border-color: rgba(202,26,91,.22);
  box-shadow: 0 16px 36px rgba(202,26,91,.11);
}
.welcome-steps .step-preview {
  align-content: start;
  min-height: 190px;
}
.step-preview .welcome-step-number {
  display: inline-grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 3px solid rgba(255,191,64,.78);
  border-radius: 18px;
  color: #fff6cf;
  text-shadow: 0 2px 0 rgba(74,10,32,.72), 0 0 18px rgba(255,255,255,.45);
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.18), transparent 34%),
    linear-gradient(135deg, var(--navy), #8a103d);
  box-shadow: 0 14px 28px rgba(202,26,91,.18);
  font-size: 1.35rem;
  font-weight: 950;
}
.welcome-helper-card {
  margin-top: 18px;
}
.welcome-helper-card h2 {
  margin-top: 0;
}
.welcome-link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.welcome-link-grid a {
  display: grid;
  gap: 6px;
  min-height: 110px;
  padding: 18px;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffafc;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.welcome-link-grid a:hover {
  transform: translateY(-2px);
  border-color: rgba(202,26,91,.28);
  box-shadow: 0 16px 32px rgba(202,26,91,.11);
}
.welcome-link-grid span {
  color: var(--muted);
  line-height: 1.45;
}

.empty { padding: 34px 18px; color: var(--muted); text-align: center; border: 1px dashed #cbd4d8; border-radius: 13px; }
.empty strong { display: block; margin-bottom: 5px; color: var(--ink); }
.compact-empty { padding: 16px; }

.booking-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .65fr); gap: 20px; align-items: start; }
.deadline-card {
  margin-bottom: 16px;
  border-color: rgba(202,26,91,.18);
  background: #fff7fa;
}
.deadline-card h2 {
  margin-top: 0;
}
.deadline-card-open {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #5b1029;
  background: var(--gold-soft);
}
.deadline-card-open span {
  color: var(--muted);
}
.deadline-highlight {
  display: grid;
  gap: 2px;
  min-width: 210px;
  padding: 12px 16px;
  border: 2px solid rgba(202,26,91,.28);
  border-radius: 16px;
  color: var(--navy) !important;
  text-align: center;
  background: #fffafc;
  box-shadow: 0 12px 26px rgba(202,26,91,.12);
  font-size: 1.18rem;
  font-weight: 900;
}
.deadline-highlight small {
  color: #7f1038;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.booking-intro-card {
  margin-bottom: 16px;
  color: white;
  background:
    radial-gradient(circle at 88% 20%, rgba(255,191,64,.42), transparent 24%),
    linear-gradient(125deg, var(--navy), #7f1038);
}
.booking-intro-card h2 {
  max-width: 760px;
  margin: 0 0 14px;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  letter-spacing: -.035em;
}
.booking-intro-card p:not(.eyebrow) {
  max-width: 820px;
  margin: 14px 0 0;
  color: rgba(255,255,255,.8);
  line-height: 1.55;
}
.booking-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.booking-meta span {
  display: grid;
  gap: 2px;
  min-width: 130px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  background: rgba(255,255,255,.08);
}
.booking-meta strong {
  color: var(--orange);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.step-card { margin-bottom: 16px; }
.step-title { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; }
.step-number {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: white;
  background: var(--navy);
  font-size: .85rem;
  font-weight: 850;
}
.step-title h2 { margin: 0; font-size: 1.08rem; }
.step-card > p,
.step-card .form-grid p {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}
.step-card label:not(.day-check):not(.legal-check) {
  color: #3f2732;
  font-size: .9rem;
  font-weight: 800;
}
.step-card select,
.step-card input:not([type="checkbox"]),
.step-card textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #ead5de;
  border-radius: 13px;
  outline: none;
  color: var(--ink);
  background: #fffafc;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.step-card select {
  appearance: none;
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, #7f1038 50%),
    linear-gradient(135deg, #7f1038 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 20px,
    calc(100% - 14px) 20px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.step-card input:not([type="checkbox"]):focus,
.step-card select:focus,
.step-card textarea:focus {
  border-color: var(--navy);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(202,26,91,.12);
}
.step-card textarea {
  min-height: 98px;
  resize: vertical;
}
.step-card .form-grid {
  gap: 0 18px;
}
.step-card .notice + p {
  margin-top: 18px;
}
.child-profile-notice {
  margin-bottom: 20px;
}
.emergency-contact-box {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.emergency-contact-box > label:first-child {
  color: #3f2732;
  font-size: .9rem;
  font-weight: 800;
}
.choice-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid #ead5de;
  border-radius: 14px;
  color: var(--ink);
  background: #fffafc;
}
.choice-card input {
  width: auto !important;
}
.choice-card strong {
  display: inline-block;
  margin-left: 6px;
  color: var(--navy);
}
.fixed-contact-note strong {
  color: var(--blue);
}
.additional-contacts {
  display: grid;
  gap: 10px;
}
.emergency-custom-field {
  display: grid;
  gap: 8px;
  margin: 0;
}
.extra-contact-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.btn-inline {
  justify-self: start;
}
.btn-icon {
  padding: 12px 14px;
  box-shadow: none;
}
.field-notice {
  display: block;
  margin: 0;
}
.checkbox-field {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}
.pickup-flow {
  display: grid;
  gap: 22px;
  margin-top: 20px;
}
.pickup-flow > p,
.pickup-flow > .checkbox-field {
  margin: 0;
}
.pickup-flow > p,
.pickup-flow > .checkbox-field,
.pickup-leave-block {
  display: grid;
  gap: 9px;
}
.pickup-flow .field-notice,
.pickup-flow .muted-notice {
  padding: 10px 13px;
  margin-bottom: 2px;
}
.pickup-combined-field .inline-control {
  display: grid;
  grid-template-columns: minmax(115px, 150px) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.pickup-flow .compact-check {
  min-height: 40px;
  width: fit-content;
  min-width: 110px;
  padding: 9px 13px;
  margin: 0;
  align-items: center;
  font-size: .82rem;
}
.pickup-flow .legal-check input {
  width: 16px;
  height: 16px;
}
.pickup-flow [name="pickup_learning"] {
  margin-top: 0;
}
.pickup-combined-field [data-pickup-bus-time] {
  display: grid;
}
.pickup-flow select,
.pickup-flow input:not([type="checkbox"]),
.pickup-flow textarea {
  margin-top: 0;
}
.pickup-combined-field [name="pickup_bus"] {
  min-height: 44px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.pickup-leave-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.homework-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 12px;
  align-items: center;
  margin: 0;
}
.homework-inline > label:first-child {
  font-size: .82rem;
}
.homework-inline .compact-check {
  min-width: 100px;
}
.care-options { display: grid; gap: 14px; }
.school-care-group {
  display: grid;
  gap: 14px;
}
.school-care-group[hidden] {
  display: none;
}
.care-option { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.care-option.selected { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(202,26,91,.12); }
.care-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px;
  background: #fafbfa;
}
.care-title { display: flex; align-items: center; gap: 11px; }
.care-title input { width: 18px; height: 18px; accent-color: var(--navy); }
.care-title strong { display: block; }
.care-title small { display: block; margin-top: 3px; color: var(--muted); }
.care-price { font-weight: 850; color: var(--navy); white-space: nowrap; }
.price-tier-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  padding: 10px 15px;
  border-top: 1px solid #edf0f1;
  color: #78551d;
  background: #fff7df;
  font-size: .78rem;
  line-height: 1.35;
}
.price-tier-info strong {
  color: var(--navy);
}
.price-tier-info span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  font-weight: 750;
}
.price-rule-notice {
  margin: 12px 0 14px;
}
.weekdays { display: flex; gap: 7px; padding: 12px 15px 15px 44px; border-top: 1px solid #edf0f1; }
.day-check input { position: absolute; opacity: 0; pointer-events: none; }
.day-check span {
  width: 39px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: white;
  font-size: .78rem;
  font-weight: 800;
}
.day-check input:checked + span { color: white; border-color: var(--blue); background: var(--blue); }
.summary-card { position: sticky; top: 25px; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #edf0f1; font-size: .85rem; }
.summary-line span:first-child { color: var(--muted); }
.summary-line small {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: .76rem;
  font-weight: 750;
}
.summary-empty {
  margin: 16px 0;
  padding: 13px;
  border: 1px dashed #e4c7d3;
  border-radius: 12px;
  color: var(--muted);
  background: #fff8fb;
  font-size: .84rem;
}
.total { display: flex; justify-content: space-between; align-items: baseline; margin: 20px 0; }
.total span { color: var(--muted); font-weight: 700; }
.total strong { font-size: 1.8rem; letter-spacing: -.04em; }
.new-total {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #edf0f1;
}
.new-total strong { color: var(--magenta); }
.change-price-delta {
  display: inline-flex;
  margin-top: -6px;
  padding: 8px 11px;
  border-radius: 999px;
  background: #f8ecf2;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}
.change-price-delta.is-higher {
  background: #fff0c9;
  color: #835000;
}
.change-price-delta.is-lower {
  background: #dff2e7;
  color: #24683f;
}
.change-price-delta.is-same {
  background: #eef3f5;
  color: var(--muted);
}
.legal-check { display: flex; gap: 12px; margin: 15px 0; color: var(--muted); font-size: .84rem; line-height: 1.45; }
.legal-check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--navy);
}
.consent-row {
  padding: 14px 16px;
  border: 1px solid #ead5de;
  border-radius: 14px;
  background: #fffafc;
}
.pickup-flow .legal-check.compact-check {
  min-height: 40px;
  margin: 0;
  padding: 9px 13px;
}
.conditions-box {
  margin: 15px 0;
  padding: 14px 16px;
  border: 1px solid rgba(202,26,91,.14);
  border-radius: 14px;
  background: #fff;
}
.conditions-box summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 850;
}
.conditions-box ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}
.document-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.muted-small,
.document-hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: .82rem;
}
.notice { padding: 14px 16px; border-radius: 13px; color: #78551d; background: var(--gold-soft); font-size: .84rem; line-height: 1.45; }
.notice-danger {
  margin-bottom: 18px;
  color: #7c1f1f;
  border: 1px solid rgba(185,66,66,.24);
  background: #fff1f1;
}
.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr);
  gap: 18px;
  align-items: start;
}
.invite-link-card {
  margin-bottom: 18px;
  border-color: rgba(255,191,64,.45);
  background: #fffaf0;
}
.invite-link-card p {
  margin: 6px 0 12px;
  color: var(--muted);
}
.invite-link-card input {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #ead5de;
  border-radius: 11px;
  color: var(--ink);
  background: white;
}

.toolbar { display: flex; gap: 10px; margin-bottom: 16px; }
.toolbar input, .toolbar select { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.toolbar input { flex: 1; min-width: 120px; }
.export-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 16px; }
.export-card {
  margin-bottom: 18px;
}
.export-filter {
  max-width: 360px;
  margin-bottom: 22px;
}
.export-form-grid {
  align-items: start;
  gap: 22px 18px;
  margin-bottom: 22px;
}
.export-card .legal-check {
  padding: 14px 16px;
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffafc;
}
.export-filter + .export-actions {
  margin-top: 10px;
}
.export-notice {
  margin: 22px 0 20px;
}
.export-card .export-actions {
  margin-bottom: 0;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 24, 36, .56);
  backdrop-filter: blur(4px);
}
.modal {
  width: min(100%, 620px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 26px;
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow);
}
.modal-head { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 22px; }
.modal-head h2 { margin: 0; }
.close { width: 34px; height: 34px; border: 0; border-radius: 9px; background: #eef1f2; font-size: 1.1rem; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 24px; }
.toast {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 80;
  max-width: 360px;
  padding: 14px 18px;
  border-radius: 12px;
  color: white;
  background: var(--navy-2);
  box-shadow: var(--shadow);
  animation: slideIn .25s ease;
}
@keyframes slideIn { from { transform: translateY(15px); opacity: 0; } }

@media (max-width: 1050px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .onboarding-steps { grid-template-columns: 1fr; }
  .welcome-link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid, .booking-layout, .profile-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
}

@media (max-width: 780px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-hero { min-height: 420px; }
  .auth-brand .brand-logo { width: 132px; }
  .hero-copy h1 { font-size: clamp(2.6rem, 12vw, 4.5rem); }
  .app-shell { display: block; }
  .sidebar { position: static; height: auto; padding: 14px; }
  .sidebar .brand { padding: 0 4px 12px; }
  .sidebar-brand { align-items: center; display: flex; justify-content: flex-start; text-align: left; }
  .sidebar-brand .brand-logo { width: 112px; min-height: 56px; }
  .nav-label, .sidebar-footer { display: none; }
  .nav { display: flex; overflow-x: auto; padding-bottom: 2px; }
  .nav button { flex: 0 0 auto; width: auto; }
  .main { padding: 24px 16px 45px; }
  .topbar { align-items: center; }
}

@media (max-width: 540px) {
  .auth-panel { align-content: center; justify-items: stretch; padding: 70px 18px 24px; }
  .auth-hero { padding: 28px 22px; }
  .auth-brand { align-items: flex-start; flex-direction: column; gap: 14px; }
  .auth-card { padding: 24px 18px; border-radius: 22px; }
  .auth-legal {
    position: static;
    width: fit-content;
    margin: 18px auto 24px;
  }
  .staff-corner-link { top: 18px; right: 18px; }
  .auth-actions-two { grid-template-columns: 1fr; }
  .form-grid, .stats { grid-template-columns: 1fr; }
  .pickup-combined-field .inline-control {
    grid-template-columns: 1fr;
  }
  .welcome-link-grid { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .card { padding: 18px; }
  .child-row, .application-row { align-items: flex-start; }
  .child-row-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .child-row .item-main {
    width: 100%;
  }
  .child-status-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
    width: 100%;
  }
  .child-status-actions .status-pill,
  .child-status-actions .btn {
    justify-content: center;
    width: 100%;
    min-height: 44px;
    text-align: center;
  }
  .registration-actions {
    justify-content: stretch;
  }
  .registration-actions .btn {
    width: 100%;
    text-align: center;
  }
  .payment-actions { justify-content: flex-start; }
  .child-alerts { grid-template-columns: 1fr; }
  .admin-meta-grid { grid-template-columns: 1fr; }
  .change-compare-grid { grid-template-columns: 1fr; }
  .attendance-row { grid-template-columns: 1fr; }
  .weekdays { padding-left: 15px; flex-wrap: wrap; }
  .toolbar { flex-wrap: wrap; }
  .deadline-card-open {
    align-items: stretch;
    flex-direction: column;
  }
  .deadline-highlight {
    width: 100%;
  }
  .cost-overview-card .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .cost-total {
    width: 100%;
    justify-content: center;
  }
}
