/* 家长端预约与打卡：只覆盖视觉层，所有数据与提交逻辑仍由 app.js 原逻辑提供。 */
body:not(.login-mode):not(.admin-mode) {
  --parent-ink: #1e4345;
  --parent-muted: #6d8587;
  --parent-line: #d9e9e7;
  --parent-teal: #237f7c;
  --parent-teal-soft: #e6f4f1;
  --parent-cream: #fff9ec;
  --parent-gold: #a97727;
  --parent-paper: #fffefd;
  --parent-bg: #f4faf8;
  background:
    radial-gradient(circle at 0 0, rgba(98, 185, 169, .13), transparent 28rem),
    linear-gradient(140deg, #f7fbfa 0%, var(--parent-bg) 48%, #fbfaf5 100%);
  color: var(--parent-ink);
}

body:not(.login-mode):not(.admin-mode) > main {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 64px;
}

/* 登录成功后不再保留登录页的版面高度；员工协助提示仍可正常显示。 */
body:not(.login-mode):not(.admin-mode) .parent-login-shell {
  display: contents;
}

body:not(.login-mode):not(.admin-mode) .parent-login-intro {
  display: none;
}

/* 成功提示使用品牌青绿；红色只保留给错误和风险提醒。 */
body:not(.login-mode):not(.admin-mode) .toast.success {
  border-color: #a9d9d2;
  background: #eef9f6;
  color: #19746f;
  box-shadow: 0 8px 20px rgba(35, 127, 124, .09);
}

body:not(.login-mode):not(.admin-mode) .parent-page-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
  padding: 10px 4px 16px;
}

body:not(.login-mode):not(.admin-mode) .parent-page-header p,
body:not(.login-mode):not(.admin-mode) .parent-page-header h1,
body:not(.login-mode):not(.admin-mode) .parent-page-header span {
  margin: 0;
}

body:not(.login-mode):not(.admin-mode) .parent-page-header p {
  color: var(--parent-teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}

body:not(.login-mode):not(.admin-mode) .parent-page-header h1 {
  margin-top: 7px;
  color: var(--parent-ink);
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -.06em;
}

body:not(.login-mode):not(.admin-mode) .parent-page-header span {
  display: block;
  margin-top: 9px;
  color: var(--parent-muted);
  font-size: 14px;
}

body:not(.login-mode):not(.admin-mode) .parent-page-header-note {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid var(--parent-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .75);
  color: var(--parent-teal);
  font-size: 13px;
  font-weight: 750;
}

body:not(.login-mode):not(.admin-mode) .parent-nav {
  display: inline-flex;
  gap: 4px;
  margin: 0 0 19px;
  padding: 4px;
  border: 1px solid var(--parent-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .78);
}

body:not(.login-mode):not(.admin-mode) .parent-nav button {
  min-width: 112px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--parent-muted);
  font-weight: 750;
  box-shadow: none;
}

body:not(.login-mode):not(.admin-mode) .parent-nav button.is-active {
  background: var(--parent-teal);
  color: #fff;
}

body:not(.login-mode):not(.admin-mode) .parent-nav button:not(:disabled):hover {
  border-color: transparent;
}

body:not(.login-mode):not(.admin-mode) .booking-grid.workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, .8fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body:not(.login-mode):not(.admin-mode) .booking-grid > .form-card,
body:not(.login-mode):not(.admin-mode) .booking-grid > .capacity-card,
body:not(.login-mode):not(.admin-mode) .checkin-section {
  border: 1px solid var(--parent-line);
  border-radius: 22px;
  background: var(--parent-paper);
  box-shadow: 0 10px 30px rgba(32, 84, 80, .055);
}

body:not(.login-mode):not(.admin-mode) .booking-grid > .form-card {
  padding: 0;
  overflow: hidden;
}

body:not(.login-mode):not(.admin-mode) .booking-grid > .form-card > h2 {
  margin: 0;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--parent-line);
  color: var(--parent-ink);
  font-size: 22px;
  letter-spacing: -.03em;
}

body:not(.login-mode):not(.admin-mode) .family-picker {
  padding: 18px 22px 0;
}

body:not(.login-mode):not(.admin-mode) .family-picker-title span,
body:not(.login-mode):not(.admin-mode) .field-label,
body:not(.login-mode):not(.admin-mode) .appointment-form > label,
body:not(.login-mode):not(.admin-mode) .checkin-card label {
  color: var(--parent-ink);
  font-weight: 800;
}

body:not(.login-mode):not(.admin-mode) .family-picker-title em {
  color: var(--parent-muted);
}

body:not(.login-mode):not(.admin-mode) .family-children {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

body:not(.login-mode):not(.admin-mode) .family-child {
  min-height: 104px;
  padding: 14px;
  border: 1px solid var(--parent-line);
  border-radius: 15px;
  background: #fff;
  color: var(--parent-ink);
  text-align: left;
  box-shadow: none;
}

body:not(.login-mode):not(.admin-mode) .family-child span {
  color: var(--parent-ink);
  font-size: 16px;
  font-weight: 800;
}

body:not(.login-mode):not(.admin-mode) .family-child strong,
body:not(.login-mode):not(.admin-mode) .family-child em {
  margin-top: 6px;
  color: var(--parent-muted);
  font-size: 12px;
  font-style: normal;
}

body:not(.login-mode):not(.admin-mode) .family-child.is-selected {
  border: 2px solid #5cb0a8;
  background: linear-gradient(135deg, #f2fbf9, #fff);
}

body:not(.login-mode):not(.admin-mode) .family-child.is-selected em {
  color: var(--parent-teal);
  font-weight: 800;
}

body:not(.login-mode):not(.admin-mode) .appointment-form {
  margin: 18px 22px 0;
  padding: 19px;
  border-radius: 16px;
  background: #f7fbfa;
}

body:not(.login-mode):not(.admin-mode) .current-child {
  order: -1;
  margin: 0 0 17px;
  border: 1px solid var(--parent-line);
  border-radius: 13px;
  background: #fff;
  color: var(--parent-ink);
}

body:not(.login-mode):not(.admin-mode) .current-child strong { color: var(--parent-ink); }
body:not(.login-mode):not(.admin-mode) .current-child em { color: var(--parent-muted); }
body:not(.login-mode):not(.admin-mode) .current-child button {
  border-color: var(--parent-line);
  color: var(--parent-teal);
  background: #fff;
  box-shadow: none;
}

body:not(.login-mode):not(.admin-mode) .booking-calendar {
  border-color: var(--parent-line);
  background: #fff;
}

body:not(.login-mode):not(.admin-mode) .calendar-toolbar,
body:not(.login-mode):not(.admin-mode) .calendar-weekdays {
  background: transparent;
  color: var(--parent-ink);
}

body:not(.login-mode):not(.admin-mode) .calendar-days button {
  border-radius: 9px;
  color: var(--parent-ink);
}

body:not(.login-mode):not(.admin-mode) .calendar-days button.is-today {
  border-color: #77bfb7;
  color: var(--parent-teal);
}

body:not(.login-mode):not(.admin-mode) .calendar-days button.is-selected {
  border-color: var(--parent-teal);
  background: var(--parent-teal);
  color: #fff;
}

body:not(.login-mode):not(.admin-mode) .appointment-form input,
body:not(.login-mode):not(.admin-mode) .appointment-form select,
body:not(.login-mode):not(.admin-mode) .checkin-card input {
  border-color: var(--parent-line);
  background: #fff;
  color: var(--parent-ink);
}

body:not(.login-mode):not(.admin-mode) .appointment-form input:focus,
body:not(.login-mode):not(.admin-mode) .appointment-form select:focus,
body:not(.login-mode):not(.admin-mode) .checkin-card input:focus {
  border-color: var(--parent-teal);
  box-shadow: 0 0 0 4px rgba(35, 127, 124, .11);
}

body:not(.login-mode):not(.admin-mode) .appointment-form .primary,
body:not(.login-mode):not(.admin-mode) .checkin-card .primary {
  border-color: var(--parent-teal);
  background: var(--parent-teal);
  box-shadow: 0 9px 20px rgba(32, 104, 100, .16);
}

body:not(.login-mode):not(.admin-mode) .appointment-form .primary:not(:disabled):hover,
body:not(.login-mode):not(.admin-mode) .checkin-card .primary:not(:disabled):hover {
  border-color: #176965;
  background: #176965;
}

body:not(.login-mode):not(.admin-mode) .mine-panel {
  margin: 20px 22px 22px;
  padding: 0;
  border: 0;
  background: transparent;
}

body:not(.login-mode):not(.admin-mode) .profile-strip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 13px;
  align-items: center;
  padding: 17px;
  border: 1px solid var(--parent-line);
  border-radius: 15px;
  background: linear-gradient(135deg, #eff9f7, #fff);
}

body:not(.login-mode):not(.admin-mode) .profile-strip strong { grid-row: span 2; color: var(--parent-ink); font-size: 18px; }
body:not(.login-mode):not(.admin-mode) .profile-strip span { color: var(--parent-muted); font-size: 13px; }

body:not(.login-mode):not(.admin-mode) .card-balance-list,
body:not(.login-mode):not(.admin-mode) .booking-days {
  margin-top: 12px;
}

body:not(.login-mode):not(.admin-mode) .card-balance,
body:not(.login-mode):not(.admin-mode) .day-card,
body:not(.login-mode):not(.admin-mode) .empty-booking {
  border-color: var(--parent-line);
  background: #fff;
  color: var(--parent-ink);
}

body:not(.login-mode):not(.admin-mode) .card-balance strong,
body:not(.login-mode):not(.admin-mode) .day-card strong { color: var(--parent-ink); }
body:not(.login-mode):not(.admin-mode) .card-balance span,
body:not(.login-mode):not(.admin-mode) .card-balance em,
body:not(.login-mode):not(.admin-mode) .day-card span,
body:not(.login-mode):not(.admin-mode) .day-card em,
body:not(.login-mode):not(.admin-mode) .locked-note { color: var(--parent-muted); }

body:not(.login-mode):not(.admin-mode) .booking-grid > .capacity-card {
  height: fit-content;
  padding: 0;
  overflow: hidden;
}

body:not(.login-mode):not(.admin-mode) .capacity-card h2 {
  margin: 0;
  padding: 22px 22px 15px;
  border-bottom: 1px solid var(--parent-line);
  color: var(--parent-ink);
  font-size: 20px;
}

body:not(.login-mode):not(.admin-mode) .slot-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 17px;
}

body:not(.login-mode):not(.admin-mode) .slot {
  min-height: 52px;
  border-color: var(--parent-line);
  border-radius: 11px;
  background: #fff;
}

body:not(.login-mode):not(.admin-mode) .slot span { color: var(--parent-ink); }
body:not(.login-mode):not(.admin-mode) .slot b { color: var(--parent-teal); }
body:not(.login-mode):not(.admin-mode) .slot.full { background: #fcf8f1; }
body:not(.login-mode):not(.admin-mode) .slot.full b { color: var(--parent-gold); }

body:not(.login-mode):not(.admin-mode) .checkin-section.workbench {
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body:not(.login-mode):not(.admin-mode) .checkin-section .section-title {
  margin: 0;
  padding: 26px;
  border: 0;
  background: linear-gradient(135deg, #eaf6f4, #f9fcfb);
}

body:not(.login-mode):not(.admin-mode) .checkin-section .section-title span { color: var(--parent-teal); font-size: 13px; letter-spacing: .08em; }
body:not(.login-mode):not(.admin-mode) .checkin-section .section-title strong { margin-top: 8px; color: var(--parent-ink); font-size: 24px; }
body:not(.login-mode):not(.admin-mode) .checkin-section .section-title em { color: var(--parent-muted); font-style: normal; }

body:not(.login-mode):not(.admin-mode) .checkin-card {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 16px;
  padding: 25px;
  border: 0;
  background: #fff;
}

body:not(.login-mode):not(.admin-mode) .checkin-list {
  grid-column: 1 / -1;
  min-height: 78px;
  border: 1px dashed #a8d3ce;
  border-radius: 14px;
  background: #fbfefd;
  color: var(--parent-muted);
}

@media (max-width: 830px) {
  body:not(.login-mode):not(.admin-mode) > main { width: min(100% - 32px, 640px); padding-top: 22px; }
  body:not(.login-mode):not(.admin-mode) .parent-page-header { align-items: flex-start; }
  body:not(.login-mode):not(.admin-mode) .parent-page-header-note { display: none; }
  body:not(.login-mode):not(.admin-mode) .booking-grid.workbench { grid-template-columns: 1fr; }
  body:not(.login-mode):not(.admin-mode) .family-children { grid-template-columns: 1fr; }
  body:not(.login-mode):not(.admin-mode) .checkin-card { grid-template-columns: 1fr; }
}
