:root {
  --forest: #185c51;
  --forest-dark: #103f37;
  --mint: #dff3ec;
  --cream: #f8f7f1;
  --paper: #fffefa;
  --ink: #193832;
  --muted: #65746e;
  --line: #dfe5df;
  --coral: #d96851;
  --sun: #f1bb4d;
  --shadow: 0 12px 36px rgba(36, 62, 53, 0.09);
  --radius: 18px;
}

.icon {
  width: 1.1em;
  height: 1.1em;
  flex: 0 0 auto;
  vertical-align: -0.16em;
}

.button .icon,
.link-button .icon {
  margin-right: 7px;
}

.icon-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--forest);
  background: var(--paper);
}

.icon-button .icon {
  width: 20px;
  height: 20px;
}

.joint-booking-grid {
  display: grid;
  gap: 16px;
}

.joint-child-card {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.joint-booking-form > label,
.joint-child-card > label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 600;
}

.checkbox-line {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
}

.week-day em {
  font-size: .62rem;
  color: var(--forest);
  font-style: normal;
}

.calendar-overview {
  margin-top: 20px;
}

.calendar-grid small {
  display: block;
  color: var(--forest);
  font-weight: 800;
}
.calendar-grid .calendar-symbol .icon {
  width: 12px;
  height: 12px;
}

.planning-list,
.daily-booking-list {
  display: grid;
  gap: 8px;
}

.planning-list article,
.daily-booking-list > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.planning-list small,
.daily-booking-list span {
  color: var(--muted);
}

.filter-bar {
  display: flex;
  gap: 8px;
  margin: 0 0 18px;
}

.tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 99px;
  background: var(--mint);
  color: var(--forest);
  font-size: .75rem;
}

.deadline-notice {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid #b9dfd1;
  border-radius: 14px;
  background: var(--mint);
  color: var(--forest-dark);
}

.deadline-notice.closed {
  border-color: #f2c8bd;
  background: #fff0ec;
  color: #8d3b29;
}

.booking-workspace {
  max-width: 980px;
}

.booking-guide {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 4px 0 20px;
  color: var(--muted);
  font-size: .9rem;
}

.booking-guide span:last-child {
  flex-basis: 100%;
  margin-top: 2px;
}

.booking-guide-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.booking-guide-dot.reserved {
  background: var(--forest);
}

.booking-guide-dot.empty {
  border: 2px solid #8d9b96;
}

.joint-booking-grid {
  gap: 18px;
}

.joint-child-card {
  padding: 20px;
  background: #fff;
}

.selection-help {
  margin: 13px 0 9px;
  color: var(--muted);
  font-size: .9rem;
}

.meal-day-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(104px, 1fr));
  gap: 10px;
  margin: 14px 0 17px;
}

.meal-day-card {
  position: relative;
  display: grid;
  min-height: 122px;
  align-content: start;
  gap: 2px;
  padding: 13px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.meal-day-card:hover {
  border-color: #7da99d;
}

.meal-day-card.is-booked {
  border-color: #9dccbe;
  background: #eff9f5;
}

.meal-day-card.is-empty {
  background: #fff;
}

.meal-day-card.is-excursion {
  background: #fff8e8;
  border-color: #ebce85;
}

.meal-day-card.is-unavailable,
.meal-day-card.is-locked {
  cursor: not-allowed;
  opacity: .62;
  background: #f1f2ef;
}

.meal-day-card .meal-day-name {
  color: var(--muted);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.meal-day-card strong {
  font-size: 1.45rem;
  line-height: 1.12;
}

.meal-day-card small {
  color: var(--forest-dark);
  font-size: .76rem;
  font-weight: 700;
}

.meal-day-card.is-empty small,
.meal-day-card.is-unavailable small,
.meal-day-card.is-locked small {
  color: var(--muted);
}

.meal-day-card em {
  margin-top: 3px;
  color: #8a5a00;
  font-size: .71rem;
  font-style: normal;
  font-weight: 700;
}

.meal-day-card input[type="checkbox"] {
  position: absolute;
  top: 11px;
  right: 10px;
  width: 20px;
  height: 20px;
  accent-color: var(--forest);
}

.meal-day-card:has(input:checked) {
  border: 3px solid #256da6;
  padding: 11px 8px;
  background: #eaf5ff;
  box-shadow: 0 0 0 3px rgba(37, 109, 166, .12);
}

.meal-day-card:has(input:checked)::after {
  position: absolute;
  right: 9px;
  bottom: 9px;
  padding: 2px 5px;
  border-radius: 5px;
  background: #256da6;
  color: #fff;
  content: attr(data-selected-label);
  font-size: .62rem;
  font-weight: 800;
}

.diet-choice {
  display: grid;
  gap: 5px;
  max-width: 390px;
  color: var(--ink);
  font-size: .88rem;
  font-weight: 700;
}

.copy-choice {
  display: grid;
  grid-template-columns: auto 1fr minmax(180px, auto);
  align-items: center;
  gap: 10px;
  margin: 20px 0;
  padding: 13px 15px;
  border: 1px solid #c9e2d9;
  border-radius: 12px;
  background: #f5fbf8;
  cursor: pointer;
}

.copy-choice span {
  display: grid;
  gap: 2px;
}

.copy-choice small {
  color: var(--muted);
}

.booking-action-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  padding: 16px;
  border-radius: 14px;
  background: var(--forest-dark);
  color: #fff;
}

.booking-action-panel > div:first-child {
  display: grid;
  gap: 3px;
}

.booking-action-panel > div:first-child span {
  color: #cbe4dc;
  font-size: .9rem;
}

.booking-action-panel .button-row {
  margin: 0;
}

.booking-action-panel .button.danger {
  border-color: #f5b8a9;
  background: #fff5f2;
  color: #a4412e;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font:
    16px/1.48 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
a {
  color: var(--forest);
  font-weight: 650;
  text-underline-offset: 3px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.055em;
  line-height: 1.04;
  margin-bottom: 0.55rem;
}
h2 {
  font-size: 1.18rem;
  letter-spacing: -0.025em;
  margin-bottom: 0.35rem;
}
small {
  display: block;
  color: var(--muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.app-layout {
  min-height: 100vh;
  display: flex;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 2;
  width: 250px;
  display: flex;
  flex-direction: column;
  padding: 28px 16px;
  background: var(--forest);
  color: #fff;
  overflow-y: auto;
}
.content-column {
  width: calc(100% - 250px);
  margin-left: 250px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-size: 1.17rem;
  font-weight: 800;
  line-height: 1.05;
}
.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #fff;
  color: var(--forest);
  font-size: 1.5rem;
  font-weight: 850;
}
.school-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: contain;
  padding: 2px;
  border-radius: 13px;
  background: #fff;
}
.brand small {
  display: block;
  margin-top: 4px;
  color: inherit;
  opacity: 0.76;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.main-nav {
  display: grid;
  gap: 5px;
  margin-top: 52px;
}
.nav-section {
  display: grid;
  gap: 3px;
  margin-top: 17px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.nav-section p {
  margin: 0 12px 4px;
  color: rgba(255, 255, 255, 0.63);
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.main-nav a {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 11px 13px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-weight: 650;
}
.main-nav a:hover,
.main-nav a:focus {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.main-nav a span {
  display: inline-grid;
  width: 19px;
  place-items: center;
  font-size: 1.05rem;
}
.main-nav a .nav-icon {
  display: inline-grid;
  width: 19px;
  place-items: center;
}
.main-nav a .nav-icon .icon {
  width: 19px;
  height: 19px;
}
.family-switcher {
  display: grid;
  gap: 6px;
  margin-top: 26px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  background: rgba(0, 0, 0, .09);
}
.family-switcher label {
  color: rgba(255, 255, 255, .75);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.family-switcher select {
  padding: 8px;
  border-color: rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .96);
}
.sidebar-bottom {
  margin-top: auto;
  padding: 12px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
}
.sidebar-bottom p {
  margin: 0;
}
.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 54px);
  background: rgba(255, 254, 250, 0.75);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.page-context {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}
.account-menu {
  display: flex;
  align-items: center;
  gap: 14px;
}
.language-form select {
  border: 0;
  background: transparent;
  color: var(--forest);
  font-weight: 800;
  padding: 5px;
}
.account-details {
  position: relative;
}
.account-details summary,
.mobile-menu summary {
  cursor: pointer;
  list-style: none;
}
.mobile-menu summary .icon {
  width: 19px;
  height: 19px;
  margin-right: 4px;
}
.account-details summary::-webkit-details-marker,
.mobile-menu summary::-webkit-details-marker {
  display: none;
}
.account-details summary {
  display: flex;
  align-items: center;
  gap: 8px;
}
.avatar,
.child-avatar {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--forest);
  font-weight: 850;
}
.account-name {
  max-width: 195px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}
.account-popover {
  position: absolute;
  right: 0;
  top: 44px;
  z-index: 8;
  width: 220px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.account-popover strong {
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}
.link-button {
  border: 0;
  background: none;
  color: var(--forest);
  font-weight: 750;
  padding: 9px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mobile-menu {
  display: none;
}
.install-app-button {
  display: none;
  align-items: center;
  gap: 5px;
  border: 1px solid #9dcfc0;
  border-radius: 9px;
  padding: 7px 9px;
  background: #effaf5;
  color: var(--forest);
  font-size: .78rem;
  font-weight: 800;
}
.install-app-button .icon { width: 16px; height: 16px; }
.page-shell {
  width: min(1180px, 100%);
  padding: clamp(28px, 5vw, 58px) clamp(20px, 4vw, 54px);
  margin: 0 auto;
  flex: 1;
}
.site-footer {
  padding: 24px clamp(20px, 4vw, 54px);
  color: var(--muted);
  font-size: 0.86rem;
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}
.page-heading.compact {
  margin-bottom: 24px;
}
.page-heading p {
  max-width: 680px;
  margin-bottom: 0;
  font-size: 1.08rem;
}
.eyebrow {
  margin-bottom: 8px;
  color: var(--forest);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 15px;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.1;
}
.button.primary {
  background: var(--forest);
  color: #fff;
}
.button.primary:hover {
  background: var(--forest-dark);
}
.button.secondary {
  background: var(--mint);
  color: var(--forest);
}
.button.danger {
  background: #fae3dd;
  color: #a83e2e;
}
.card,
.table-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.card {
  padding: 24px;
}
.soft-card {
  background: #fbefd1;
}
.welcome-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  min-height: 210px;
  margin-bottom: 38px;
  padding: 34px 42px;
  border-radius: 22px;
  background: linear-gradient(120deg, #dff4ec, #eff6cd);
  position: relative;
}
.welcome-banner h1 {
  font-size: clamp(2.2rem, 5vw, 3.7rem);
}
.welcome-banner p:last-child {
  max-width: 500px;
  font-size: 1.1rem;
  margin-bottom: 0;
}
.welcome-illustration {
  font-size: 8rem;
  line-height: 1;
  opacity: 0.8;
  transform: rotate(9deg);
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 15px;
}
.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
}
.family-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.child-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 15px;
  align-items: center;
  padding: 20px;
  border-radius: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 7px 22px rgba(36, 62, 53, 0.06);
}
.child-card h2 {
  font-size: 1.28rem;
}
.child-card p {
  margin-bottom: 0;
  color: var(--muted);
}
.child-card .eyebrow {
  font-size: 0.68rem;
  color: var(--forest);
  margin-bottom: 3px;
}
.child-avatar {
  width: 52px;
  height: 52px;
  font-size: 1.2rem;
  background: #f9e6aa;
}
.child-avatar.tiny {
  width: 34px;
  height: 34px;
  font-size: 0.85rem;
}
.split-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 26px 0;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 28px;
}
.stat-card {
  min-height: 148px;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 7px 22px rgba(36, 62, 53, 0.05);
}
.stat-card span {
  color: var(--forest);
  font-size: 1.25rem;
}
.stat-card strong {
  display: block;
  margin-top: 11px;
  font-size: 2.35rem;
  line-height: 1;
  letter-spacing: -0.07em;
}
.stat-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.stat-card.highlight {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}
.stat-card.highlight span,
.stat-card.highlight p {
  color: #d9f0e7;
}
.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.action-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 17px;
  align-items: center;
  padding: 21px;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 7px 22px rgba(36, 62, 53, 0.05);
}
.action-card:hover {
  border-color: #a7d6c5;
  transform: translateY(-1px);
}
.action-card > span {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 13px;
  background: var(--mint);
  font-size: 1.2rem;
}
.action-card > span .icon {
  width: 23px;
  height: 23px;
}
.action-card b .icon {
  width: 20px;
  height: 20px;
}
.action-card h2,
.action-card p {
  margin: 0;
}
.action-card p {
  color: var(--muted);
  font-size: 0.9rem;
}
.action-card b {
  font-size: 1.25rem;
}
.area-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.area-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  min-height: 235px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.area-card:hover {
  transform: translateY(-2px);
  border-color: #9dccbe;
}
.area-card.dining { background: linear-gradient(145deg, #eaf8f3, #fffefa); }
.area-card.contacts { background: linear-gradient(145deg, #fff5dc, #fffefa); }
.area-card.academic { background: linear-gradient(145deg, #edf2fd, #fffefa); }
.area-card .area-icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 14px;
  background: #fff;
  color: var(--forest);
  font-size: 1.4rem;
  box-shadow: 0 5px 14px rgba(36, 62, 53, .10);
}
.area-card h2,
.area-card p { margin: 0; }
.area-card p:not(.eyebrow) {
  margin-top: 8px;
  color: var(--muted);
}
.area-card b {
  position: absolute;
  right: 21px;
  bottom: 17px;
  font-size: 1.25rem;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.section-title > span {
  padding: 3px 8px;
  border-radius: 20px;
  background: var(--mint);
  color: var(--forest);
  font-size: 0.8rem;
  font-weight: 750;
}
.meal-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.meal-row strong,
.meal-row small {
  display: block;
}
.meal-date {
  display: grid;
  place-items: center;
  width: 39px;
  height: 42px;
  border-radius: 9px;
  background: var(--mint);
  color: var(--forest);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}
.meal-date b {
  font-size: 1rem;
}
.empty-inline {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 24px 0;
  color: var(--muted);
}
.empty-inline span {
  font-size: 1.8rem;
}
.empty-inline p {
  margin: 0;
}
.progress-row {
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.large-number {
  font-size: 3rem;
  font-weight: 850;
  letter-spacing: -0.07em;
}
.compact-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}
.compact-row:first-of-type {
  border-top: 0;
}
.messages {
  margin-bottom: 20px;
}
.message {
  padding: 13px 15px;
  border-radius: 11px;
  margin-bottom: 9px;
  background: #e8f7ef;
  color: #185c51;
}
.message.error {
  background: #fee7e2;
  color: #963927;
}
.message.warning {
  background: #fff0cb;
  color: #72530a;
}
.form-card {
  max-width: 860px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px 20px;
}
.field {
  display: grid;
  gap: 6px;
}
.field:nth-child(4n),
.field:has(textarea) {
  grid-column: span 2;
}
.field-checkbox,
.check-label {
  display: flex !important;
  gap: 9px;
  align-items: center;
}
.field-checkbox input,
.check-label input {
  width: auto;
}
.form-stack,
.stack-form,
.mini-form {
  display: grid;
  gap: 14px;
}
.form-stack label,
.stack-form label,
.mini-form label,
.inline-form label,
.calendar-actions label,
.booking-actions > label {
  display: grid;
  gap: 6px;
  font-size: 0.91rem;
  font-weight: 750;
}
.field label {
  font-weight: 750;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
input,
select,
textarea {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #cbd6cf;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
}
textarea {
  resize: vertical;
}
.error {
  color: #b33426;
}
.form-errors {
  margin-bottom: 14px;
  color: #b33426;
}
.toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 22px;
}
.inline-form {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.inline-form label {
  min-width: 150px;
}
.form-wide label {
  flex: 1;
}
.month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}
.month-nav h2 {
  margin: 0;
  text-transform: capitalize;
}
.month-nav a {
  padding: 5px;
}
.school-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.weekday {
  padding: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.school-day {
  min-height: 94px;
  padding: 7px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.school-day > span {
  display: block;
  font-size: 0.82rem;
  font-weight: 750;
}
.school-day.outside {
  background: #f4f5f1;
  color: #a1aaa4;
}
.day-state {
  margin-top: 8px;
  border: 0;
  border-radius: 6px;
  padding: 4px 7px;
  font-size: 0.73rem;
  font-weight: 750;
}
.day-state.open {
  background: #dff3ec;
  color: #185c51;
}
.day-state.closed {
  background: #f4e3df;
  color: #9d4032;
}
.closure {
  margin-top: 5px;
  font-size: 0.65rem;
  line-height: 1.1;
  color: #9d4032;
}
.holiday-day {
  background: #fff1e9;
}
.holiday {
  display: block;
  margin-top: 6px;
  color: #9d4032;
  font-size: .64rem;
  font-weight: 750;
  line-height: 1.15;
}
.holiday .icon,
.intensive-label .icon,
.closure .icon {
  width: .88em;
  height: .88em;
  margin-right: 2px;
}
.intensive-day {
  background: #f2eefe;
}
.intensive-label {
  display: block;
  margin-top: 5px;
  color: #694da1;
  font-size: .64rem;
  font-weight: 750;
  line-height: 1.15;
}
.data-section {
  margin-top: 30px;
}
.data-section .section-title {
  margin-bottom: 11px;
}
.table-card {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
tbody tr:last-child td {
  border-bottom: 0;
}
td small {
  margin-top: 3px;
}
.empty-cell {
  text-align: center;
  color: var(--muted);
  padding: 32px;
}
.search-bar {
  display: flex;
  max-width: 640px;
  gap: 9px;
}
.search-bar input {
  flex: 1;
}
.status,
.tag {
  display: inline-flex;
  border-radius: 20px;
  padding: 4px 8px;
  background: var(--mint);
  font-size: 0.78rem;
  font-weight: 750;
}
.status.warning {
  background: #fff0cb;
}
.status.success {
  background: var(--mint);
}
.status.pending {
  background: #fff0cb;
  color: #765400;
}
.status.paid {
  background: var(--mint);
  color: var(--forest-dark);
}
.status.exempt,
.status.neutral {
  background: #edf0ed;
  color: #52615b;
}
.status.submitted { color: #875c00; background: #fff3cf; }
.status.approved { color: #17624e; background: #dcf3e9; }
.status.rejected,
.status.withdrawn { color: #9d3a34; background: #fbe5e2; }
.table-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}
.table-actions form {
  margin: 0;
}
.table-actions .link-button {
  padding: 0;
  font-size: inherit;
}
.danger-link {
  color: #a83e2e;
}
.family-context-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
  gap: 16px;
}
.family-context-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.family-context-card.active {
  border-color: #90c8b7;
  background: #f1faf6;
}
.family-context-card h2,
.family-context-card p {
  margin: 0;
}
.family-context-card p {
  color: var(--muted);
}
.family-context-card form {
  grid-column: 1 / -1;
}
.family-context-card .button {
  width: 100%;
}
.family-context-icon,
.family-contact-help > span,
.event-list-icon {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 13px;
  background: var(--mint);
  color: var(--forest);
}
.family-context-icon .icon,
.family-contact-help > span .icon,
.event-list-icon .icon {
  width: 22px;
  height: 22px;
}
.family-quick-actions {
  margin-top: 28px;
}
.family-contact-help {
  align-self: start;
  background: #fff9ea;
}
.family-contact-help h2 {
  margin-top: 17px;
}
.student-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 14px;
}
.student-profile-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}
.student-profile-card h2,
.student-profile-card p,
.student-profile-card small {
  margin: 0;
}
.student-profile-card p,
.student-profile-card small {
  color: var(--muted);
}
.student-profile-card .button {
  grid-column: 1 / -1;
}
.student-profile-icon {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 50%;
  background: #f9e6aa;
  color: var(--forest-dark);
  font-weight: 850;
}
.calendar-filter {
  margin-bottom: 18px;
}
.group-filter {
  margin: 0;
  padding: 0;
  border: 0;
}
.group-filter legend {
  margin-bottom: 8px;
  font-size: .91rem;
  font-weight: 750;
}
.filter-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-chip {
  position: relative;
  cursor: pointer;
}
.filter-chip input {
  position: absolute;
  opacity: 0;
}
.filter-chip span {
  display: inline-flex;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 750;
}
.filter-chip input:checked + span {
  border-color: var(--forest);
  background: var(--mint);
  color: var(--forest-dark);
}
.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin: 16px 0 22px;
  color: var(--muted);
  font-size: .84rem;
}
.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.calendar-legend .icon {
  width: 17px;
  height: 17px;
  color: #9b5d00;
}
.legend-swatch {
  width: 13px;
  height: 13px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}
.legend-swatch.service { background: #e7f6ef; border-color: #a5d7c6; }
.legend-swatch.no-service { background: #ecefec; }
.legend-swatch.holiday { background: #fff0e9; border-color: #f0b49e; }
.legend-swatch.intensive { background: #f2eefe; border-color: #c9b9f2; }
.annual-calendar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.admin-annual-calendar {
  margin: 26px 0;
}
.annual-month {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
}
.annual-month h2 {
  margin: 0 0 9px;
  color: var(--forest-dark);
  font-size: .91rem;
  text-align: center;
  text-transform: capitalize;
}
.annual-weekdays,
.annual-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.annual-weekdays span {
  padding-bottom: 4px;
  color: var(--muted);
  font-size: .59rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}
.annual-day {
  position: relative;
  display: grid;
  min-height: 31px;
  place-items: center;
  border: 1px solid #edf0ed;
  background: #fff;
  color: var(--ink);
  font-size: .71rem;
}
.annual-day.outside {
  border-color: transparent;
  background: transparent;
  color: transparent;
}
.annual-day.service { background: #e7f6ef; }
.annual-day.no-service { background: #ecefec; color: #7d8882; }
.annual-day.holiday { background: #fff0e9; color: #9d4032; }
.annual-day.intensive { background: #f2eefe; color: #694da1; }
.legend-swatch.notice { background: #fff4c7; border-color: #e2bd3c; }
.annual-day.has-notice { box-shadow: inset 0 0 0 2px #e1b535; }
.annual-day.notice-alert { box-shadow: inset 0 0 0 2px #d96851; }
.annual-day.notice-alert .notice-icon { color: #b74431; }
.nav-collapsible {
  display: block;
}
.nav-collapsible summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 13px;
  border-radius: 10px;
  color: rgba(255, 255, 255, .9);
  cursor: pointer;
  font-weight: 750;
  list-style: none;
}
.nav-collapsible summary::-webkit-details-marker { display: none; }
.nav-collapsible summary:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.nav-collapsible summary .nav-icon { display: inline-grid; width: 19px; place-items: center; }
.nav-collapsible summary .nav-icon .icon { width: 19px; height: 19px; }
.nav-collapsible .nav-chevron { width: 15px; height: 15px; margin-left: auto; transition: transform .16s ease; }
.nav-collapsible[open] .nav-chevron { transform: rotate(90deg); }
.nav-links { display: grid; gap: 2px; padding: 2px 0 3px 27px; }
.nav-links a { padding: 9px 11px; font-size: .91rem; }
.nav-links a .icon { width: 16px; height: 16px; }
.page-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: -12px 0 26px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}
.page-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--muted);
  text-decoration: none;
  font-size: .9rem;
}
.page-tabs a[aria-current="page"] { background: var(--mint); color: var(--forest-dark); }
.page-tabs .icon { width: 17px; height: 17px; }
.widget-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.dashboard-widget {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 144px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 4px 14px rgba(36, 62, 53, .04);
  color: var(--ink);
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.dashboard-widget:hover { transform: translateY(-2px); border-color: #afd4c8; box-shadow: var(--shadow); }
.widget-icon { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 13px; background: var(--mint); color: var(--forest); }
.widget-icon .icon { width: 23px; height: 23px; }
.dashboard-widget p { margin: 0 0 2px; color: var(--muted); font-size: .84rem; font-weight: 750; }
.dashboard-widget strong { display: block; font-size: 1.65rem; line-height: 1.2; }
.dashboard-widget small { margin-top: 4px; font-size: .78rem; }
.widget-arrow .icon { width: 18px; height: 18px; color: var(--forest); }
.dashboard-customizer,
.calendar-dialog {
  width: min(640px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 26px 70px rgba(20, 49, 41, .28);
}
.dashboard-customizer::backdrop,
.calendar-dialog::backdrop { background: rgba(18, 48, 41, .5); }
.dashboard-customizer article,
.calendar-dialog article { padding: 25px; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.dialog-heading .close-dialog { transform: rotate(45deg); }
.widget-choice-list { display: grid; gap: 8px; }
.widget-choice { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.widget-choice:has(input:checked) { border-color: #96c9b9; background: #f1faf6; }
.widget-choice > span:first-of-type { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: var(--mint); color: var(--forest); }
.widget-choice .icon { width: 17px; height: 17px; }
.widget-choice strong { display: block; }
.widget-choice small { font-size: .77rem; }
.widget-actions { display: flex; gap: 3px; }
.widget-actions button { display: grid; width: 27px; height: 27px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--forest); }
.widget-actions button:first-child .icon { transform: rotate(90deg); }
.widget-actions button:last-child .icon { transform: rotate(90deg); }
.interactive-annual-calendar .annual-day { min-height: 42px; }
.annual-day-info { position: relative; display: grid; width: 100%; height: 100%; min-height: 30px; place-items: center; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.annual-day-info:hover, .annual-day-info:focus-visible { outline: 2px solid var(--forest); outline-offset: -2px; }
.annual-day.outside .annual-day-info { cursor: default; }
.calendar-day-toggle { position: absolute; right: 1px; top: 1px; z-index: 1; }
.calendar-day-toggle button { width: 14px; height: 14px; padding: 0; border: 0; border-radius: 50%; background: rgba(25, 56, 50, .72); color: #fff; font-size: .76rem; line-height: 12px; opacity: 0; }
.annual-day:hover .calendar-day-toggle button, .calendar-day-toggle button:focus-visible { opacity: 1; }
.notice-icon { position: absolute; left: 1px; bottom: 1px; display: grid; color: #a87800; }
.notice-icon .icon { width: 10px; height: 10px; }
.calendar-management-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.calendar-management-lists .section-title a { display: inline-flex; align-items: center; gap: 4px; font-size: .84rem; }
.calendar-management-lists .section-title a .icon { width: 15px; height: 15px; }
.danger-card { border-color: #f0b9aa; background: #fffaf8; }
.plain-list { display: grid; gap: 8px; padding-left: 20px; color: var(--muted); }
.event-icon {
  position: absolute;
  right: 1px;
  bottom: 1px;
  display: grid;
  color: #9b5d00;
}
.event-icon .icon {
  width: 10px;
  height: 10px;
}
.planning-list .event-list-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}
.planning-list article > div {
  display: grid;
  gap: 2px;
}
.planning-list article > div small {
  color: var(--muted);
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 17px;
}
.list-rows > div {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.list-rows strong,
.list-rows span {
  display: block;
}
.list-rows span {
  color: var(--muted);
  font-size: 0.82rem;
}
.simple-list {
  padding-left: 20px;
}
.simple-list li {
  margin-bottom: 12px;
}
.confirm-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding: 17px 20px;
  border-radius: 13px;
  background: #e7f6ef;
}
.confirm-bar p {
  margin: 0;
}
.booking-mobile {
  display: none;
}
.calendar-scroll {
  overflow: auto;
}
.student-calendar {
  margin-bottom: 21px;
}
.student-title {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 17px;
}
.student-title h2 {
  margin-bottom: 2px;
}
.student-title p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.calendar-grid {
  min-width: 660px;
  table-layout: fixed;
}
.calendar-grid th {
  text-align: center;
}
.calendar-grid td {
  height: 72px;
  padding: 5px;
  text-align: center;
}
.calendar-grid td label {
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 4px;
  border-radius: 8px;
  cursor: pointer;
}
.calendar-grid td input {
  width: 18px;
  height: 18px;
  accent-color: var(--forest);
}
.calendar-grid td.booked label {
  background: var(--mint);
}
.calendar-grid td.unavailable label {
  background: #f2f2ef;
  color: #9da5a0;
}
.calendar-grid td.locked label {
  background: #f9e6df;
  color: #a66c5a;
}
.calendar-grid td.outside {
  background: #fafaf8;
  color: #c2c8c2;
}
.calendar-actions {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
  margin-top: 16px;
}
.calendar-actions label {
  min-width: 220px;
}
.auth-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 32px;
  background:
    radial-gradient(circle at top right, #d8f1e5, transparent 42%), var(--cream);
}
.auth-brand {
  position: absolute;
  top: 28px;
  left: 32px;
  color: var(--forest);
}
.auth-card {
  width: min(460px, 100%);
  padding: 34px;
}
.auth-card h1 {
  font-size: 2.3rem;
}
.auth-card .stack-form {
  margin-top: 25px;
}
.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.table-scroll {
  overflow: auto;
}
.empty-state {
  text-align: center;
  padding: 38px;
}
.muted {
  color: var(--muted);
}
@media (max-width: 900px) {
  .sidebar {
    display: none;
  }
  .content-column {
    width: 100%;
    margin: 0;
  }
  .topbar {
    height: 66px;
  }
  .mobile-menu {
    display: block;
    position: relative;
  }
  .install-app-button:not([hidden]) { display: inline-flex; }
  .mobile-menu summary {
    color: var(--forest);
    font-weight: 800;
  }
  .mobile-menu nav {
    position: absolute;
    top: 39px;
    left: -9px;
    z-index: 10;
    width: min(320px, calc(100vw - 40px));
    display: grid;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--paper);
    box-shadow: var(--shadow);
  }
  .mobile-menu nav a {
    padding: 11px;
    text-decoration: none;
    border-radius: 8px;
  }
  .mobile-menu nav a:hover {
    background: var(--mint);
  }
  .mobile-nav-heading {
    margin: 8px 7px 2px;
    color: var(--muted);
    font-size: .67rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .page-context {
    display: none;
  }
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .area-grid {
    grid-template-columns: 1fr;
  }
  .annual-calendar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .widget-grid,
  .calendar-management-lists {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .school-day {
    min-height: 80px;
  }
  .account-name {
    max-width: 130px;
  }
}
@media (max-width: 640px) {
  body {
    font-size: 15px;
  }
  .topbar {
    padding: 0 17px;
  }
  .account-menu {
    gap: 4px;
  }
  .install-app-button span { display: none; }
  .install-app-button { padding: 7px; }
  .account-name {
    display: none;
  }
  .page-shell {
    padding: 27px 16px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 25px;
    gap: 14px;
  }
  .page-heading h1 {
    font-size: 2.25rem;
  }
  .page-heading p {
    font-size: 1rem;
  }
  .welcome-banner {
    min-height: 0;
    padding: 27px 25px;
    margin: 0 -2px 28px;
  }
  .welcome-illustration {
    font-size: 4.4rem;
  }
  .family-grid {
    grid-template-columns: 1fr;
  }
  .child-card {
    grid-template-columns: auto 1fr;
  }
  .child-card .button {
    grid-column: 2;
  }
  .split-section,
  .two-column,
  .action-grid,
  .area-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .annual-calendar {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .widget-grid,
  .calendar-management-lists {
    grid-template-columns: 1fr;
  }
  .page-tabs {
    margin-bottom: 20px;
  }
  .page-tabs a {
    flex: 1 1 auto;
    justify-content: center;
  }
  .annual-month {
    padding: 10px;
  }
  .annual-day {
    min-height: 29px;
  }
  .family-context-card,
  .student-profile-card {
    padding: 16px;
  }
  .stat-grid {
    gap: 10px;
    margin-bottom: 22px;
  }
  .stat-card {
    min-height: 123px;
    padding: 17px;
  }
  .stat-card strong {
    font-size: 2rem;
  }
  .action-card {
    padding: 17px;
  }
  .card {
    padding: 18px;
  }
  .toolbar,
  .calendar-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .inline-form {
    display: grid;
  }
  .inline-form label {
    min-width: 0;
  }
  .school-calendar {
    font-size: 0.78rem;
  }
  .weekday {
    padding: 5px 1px;
  }
  .school-day {
    min-height: 66px;
    padding: 4px;
  }
  .school-day > span {
    font-size: 0.72rem;
  }
  .day-state {
    margin-top: 3px;
    padding: 3px;
    font-size: 0.6rem;
  }
  .closure {
    font-size: 0.56rem;
  }
  .table-card {
    margin: 0 -1px;
  }
  .table-card table {
    min-width: 620px;
  }
  .search-bar {
    width: 100%;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field:nth-child(4n),
  .field:has(textarea) {
    grid-column: auto;
  }
  .form-actions {
    justify-content: stretch;
    flex-direction: column-reverse;
  }
  .form-actions .button {
    width: 100%;
  }
  .booking-desktop {
    display: none;
  }
  .booking-mobile {
    display: block;
  }
  .weekly-card {
    padding: 17px;
    margin-bottom: 14px;
  }
  .week-days {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin: 17px 0;
  }
  .week-day {
    position: relative;
    display: grid;
    place-items: center;
    gap: 2px;
    min-height: 71px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
  }
  .week-day span {
    font-size: 0.7rem;
    color: var(--muted);
    text-transform: uppercase;
  }
  .week-day b {
    font-size: 1.1rem;
  }
  .week-day input {
    position: absolute;
    opacity: 0;
  }
  .week-day.selected {
    border-color: var(--forest);
    background: var(--mint);
  }
  .week-day.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: #f4f4f1;
  }
  .booking-actions {
    display: grid;
    gap: 11px;
  }
  .booking-actions .button-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .confirm-bar {
    align-items: stretch;
    flex-direction: column;
  }
  .auth-brand {
    position: static;
    margin-bottom: 32px;
  }
  .auth-shell {
    align-content: center;
  }
  .auth-card {
    padding: 25px;
  }
  .site-footer {
    text-align: center;
  }
  .calendar-management {
    padding: 12px;
  }
  .calendar-management .month-nav h2 {
    font-size: 1rem;
  }
}

.monthly-booking-workspace {
  max-width: none;
}
.booking-help {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: .88rem;
}
.booking-guide-icon {
  display: inline-grid;
  width: 16px;
  height: 16px;
  place-items: center;
  color: #9b5d00;
}
.booking-guide-icon .icon { width: 15px; height: 15px; }
.monthly-booking-scroll {
  overflow: auto;
  margin: 0 -4px;
  padding: 2px 4px 12px;
  border-radius: 12px;
  outline: none;
}
.monthly-booking-scroll:focus-visible {
  box-shadow: 0 0 0 3px rgba(24, 92, 81, .22);
}
.monthly-booking-grid {
  min-width: max-content;
  width: 100%;
  border-spacing: 3px;
  border-collapse: separate;
}
.monthly-booking-grid th,
.monthly-booking-grid td {
  min-width: 46px;
  padding: 0;
  text-align: center;
  vertical-align: middle;
}
.monthly-booking-grid thead th {
  padding: 4px 1px 7px;
  color: var(--muted);
  font-size: .65rem;
  font-weight: 750;
}
.monthly-booking-grid thead th span,
.monthly-booking-grid thead th strong { display: block; }
.monthly-booking-grid thead th strong { color: var(--ink); font-size: .87rem; }
.monthly-booking-grid .weekend { color: #8d6d62; }
.monthly-booking-grid .student-column {
  position: sticky;
  left: 0;
  z-index: 3;
  min-width: 168px;
  padding: 8px 10px;
  background: var(--paper);
  text-align: left;
}
.monthly-booking-grid thead .student-column {
  z-index: 5;
  color: var(--muted);
  font-size: .7rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.monthly-booking-grid tbody .student-column {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.monthly-booking-grid tbody .student-column strong,
.monthly-booking-grid tbody .student-column small { display: block; }
.monthly-booking-grid tbody .student-column strong { font-size: .81rem; }
.monthly-booking-grid tbody .student-column small { max-width: 110px; overflow: hidden; font-size: .67rem; text-overflow: ellipsis; white-space: nowrap; }
.monthly-booking-grid .child-avatar.tiny { width: 28px; height: 28px; font-size: .77rem; }
.monthly-booking-cell {
  position: relative;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.monthly-booking-cell[data-state="empty"] { border-color: #a4cfc2; background: #f5fbf8; }
.monthly-booking-cell[data-state="reserved"] { border-color: #4b9a89; background: #dff3ec; }
.monthly-booking-cell[data-state="packed"] { border-color: #e6c568; background: #fff7da; }
.monthly-booking-cell[data-state="unavailable"] { background: #eef0ed; color: #91a09a; }
.monthly-booking-cell[data-saving="true"] { opacity: .58; pointer-events: none; }

.economic-stats .stat-card strong { font-size: 1.75rem; }
.economic-account-list { display: grid; gap: 3px; }
.economic-account-list li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.economic-account-list li:last-child { border-bottom: 0; }
.economic-account-list span small { display: block; color: var(--muted); }
.economic-pending-number { margin: 8px 0 0; color: var(--forest); font-size: 3.3rem; font-weight: 850; line-height: 1; }
.compact-tabs { margin-top: -8px; }
.receipt-upload { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; margin-top: 24px; padding: 18px; border: 1px dashed #7fa99d; border-radius: 14px; background: #f4fbf7; }
.receipt-upload h2 { margin: 3px 0 5px; font-size: 1.05rem; }
.receipt-upload p { margin: 0; color: var(--muted); font-size: .9rem; }
.receipt-upload-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.receipt-upload-actions label { cursor: pointer; }
.receipt-upload-actions input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.receipt-preview-list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.receipt-preview-list:empty { display: none; }
.receipt-preview-item { display: flex; min-width: 0; align-items: center; gap: 9px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.receipt-preview-item img { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 7px; object-fit: cover; }
.receipt-preview-item .icon { width: 24px; height: 24px; flex: 0 0 auto; color: var(--forest); }
.receipt-preview-item span { min-width: 0; overflow: hidden; font-size: .78rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.attached-documents { margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line); }
.attached-documents h2 { margin: 0 0 10px; font-size: 1rem; }
.attached-documents ul { display: flex; flex-wrap: wrap; gap: 9px; margin: 0; padding: 0; list-style: none; }
.attached-documents li, .attachment-link { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; color: var(--forest); font-size: .86rem; }
.attached-documents .icon, .attachment-link .icon { width: 16px; height: 16px; flex: 0 0 auto; }
.access-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.access-choice { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.access-choice > span:nth-child(2) { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: var(--mint); color: var(--forest); }
.access-choice .icon { width: 17px; height: 17px; }
.access-choice small { display: block; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.review-actions { justify-content: space-between; }
@media (max-width: 640px) {
  .receipt-upload { grid-template-columns: 1fr; }
  .receipt-upload-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .receipt-upload-actions .button { justify-content: center; padding-inline: 10px; }
  .economic-filter { display: grid; grid-template-columns: 1fr 1fr; }
  .economic-filter label { min-width: 0; }
  .economic-filter .button { justify-content: center; }
}
.booking-cell-main {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--forest);
  cursor: pointer;
}
.booking-cell-main:hover:not(:disabled),
.booking-cell-main:focus-visible { background: rgba(24, 92, 81, .12); outline: 2px solid var(--forest); outline-offset: -2px; }
.booking-cell-main:disabled { cursor: not-allowed; }
.booking-state-icon { display: none; }
.booking-state-icon .icon { width: 20px; height: 20px; }
.monthly-booking-cell[data-state="empty"] .state-empty,
.monthly-booking-cell[data-state="reserved"] .state-reserved,
.monthly-booking-cell[data-state="packed"] .state-packed,
.monthly-booking-cell[data-state="unavailable"] .state-unavailable { display: grid; }
.monthly-booking-cell[data-state="unavailable"] .state-unavailable { font-size: 1.15rem; }
.booking-diet-trigger {
  position: absolute;
  right: -3px;
  bottom: -3px;
  z-index: 2;
  display: none;
  width: 19px;
  height: 19px;
  place-items: center;
  padding: 0;
  border: 1px solid #7aa99b;
  border-radius: 50%;
  background: #fff;
  color: var(--forest);
}
.booking-diet-trigger .icon { width: 11px; height: 11px; }
.monthly-booking-cell[data-state="reserved"] .booking-diet-trigger,
.monthly-booking-cell[data-state="packed"] .booking-diet-trigger { display: grid; }
.booking-diet-trigger:hover:not(:disabled),
.booking-diet-trigger:focus-visible { background: var(--mint); outline: 2px solid var(--forest); }
.booking-diet-trigger:disabled { cursor: not-allowed; opacity: .55; }
.booking-lock-marker {
  position: absolute;
  top: 2px;
  left: 2px;
  z-index: 1;
  color: #7c8a84;
}
.booking-lock-marker .icon { width: 11px; height: 11px; }
.monthly-booking-cell[data-locked="true"]::after {
  position: absolute;
  inset: 0;
  border-radius: 9px;
  background: rgba(231, 234, 230, .48);
  content: "";
  pointer-events: none;
}
.booking-diet-menu {
  position: absolute;
  z-index: 8;
  top: 100%;
  right: -2px;
  width: max-content;
  min-width: 138px;
  max-width: 190px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: var(--shadow);
  text-align: left;
}
.booking-diet-menu button {
  display: block;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-size: .78rem;
  text-align: left;
}
.booking-diet-menu button:hover,
.booking-diet-menu button[aria-current="true"] { background: var(--mint); color: var(--forest-dark); }
.booking-apply-panel {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #a9d4c7;
  border-radius: 13px;
  background: #f1faf6;
}
.booking-apply-panel p { margin: 3px 0 0; color: var(--muted); font-size: .82rem; }
.booking-apply-choices { display: flex; flex-wrap: wrap; gap: 7px; }
.booking-apply-choices label { display: inline-flex; align-items: center; gap: 4px; font-size: .82rem; font-weight: 700; }
.booking-apply-panel .button-row { margin: 0; }
.booking-save-status { min-height: 1.5em; margin: 13px 0 0; color: var(--forest); font-size: .86rem; font-weight: 700; }
.booking-save-status[data-status="error"] { color: #a4412e; }

@media (max-width: 640px) {
  .monthly-booking-workspace { padding: 15px 10px; }
  .monthly-booking-grid { border-spacing: 2px; }
  .monthly-booking-grid th,
  .monthly-booking-grid td { min-width: 42px; }
  .monthly-booking-grid .student-column { min-width: 138px; padding: 7px; }
  .monthly-booking-grid tbody .student-column small { max-width: 82px; }
  .monthly-booking-cell { height: 43px; }
  .booking-apply-panel { grid-template-columns: 1fr; align-items: stretch; }
  .booking-apply-panel .button-row { display: grid; grid-template-columns: 1fr 1fr; }
  .booking-diet-menu { position: fixed; right: 16px; left: 16px; top: auto; bottom: 16px; width: auto; max-width: none; padding: 10px; }
  .booking-diet-menu button { padding: 11px; font-size: .9rem; }
}

@media (max-width: 640px) {
  .booking-workspace {
    padding: 15px;
  }

  .booking-guide {
    gap: 6px;
    font-size: .82rem;
  }

  .joint-child-card {
    padding: 15px;
  }

  .meal-day-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    margin: 12px 0 16px;
  }

  .meal-day-card {
    min-height: 98px;
    padding: 10px 5px;
    border-radius: 10px;
  }

  .meal-day-card:has(input:checked) {
    padding: 8px 3px;
  }

  .meal-day-card .meal-day-name {
    font-size: .59rem;
  }

  .meal-day-card strong {
    font-size: 1.15rem;
  }

  .meal-day-card small,
  .meal-day-card em {
    font-size: .58rem;
    line-height: 1.1;
  }

  .meal-day-card input[type="checkbox"] {
    top: 7px;
    right: 5px;
    width: 17px;
    height: 17px;
  }

  .meal-day-card:has(input:checked)::after {
    right: 4px;
    bottom: 5px;
    font-size: .5rem;
  }

  .copy-choice {
    grid-template-columns: auto 1fr;
  }

  .copy-choice select {
    grid-column: 2;
  }

  .booking-action-panel,
  .booking-action-panel .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .booking-action-panel .button-row {
    display: grid;
    grid-template-columns: 1fr;
  }
}
