:root {
  --bg: #edf2ed;
  --ink: #1d302d;
  --card: #ffffff;
  --accent: #176f5e;
  --accent-soft: #dcebe3;
  --warm: #edb958;
  --muted: #61716c;
  --danger: #b4233c;
  --shadow: 0 18px 44px rgba(24, 54, 43, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: #edf2ed;
}

body.parent-dashboard-page {
  color: var(--ink);
  background: #eef8f3;
}

body.admin-page {
  color: var(--ink);
  background: #e8f5ed;
  font-size: 16px;
}

body.support-page {
  color: #21372f;
  background: #edf2ed;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
}

.support-page .support-shell {
  display: grid;
  min-height: 100vh;
  align-items: center;
  padding: 32px;
  overflow: visible;
  background-color: #edf2ed;
  background-image: linear-gradient(rgba(30, 57, 50, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(30, 57, 50, 0.035) 1px, transparent 1px);
  background-position: center;
  background-size: 44px 44px;
}

.support-page .support-view {
  width: min(1120px, 100%);
  max-width: none;
  margin: 0 auto;
}

.support-page .support-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #496558;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.support-page .support-back-link span {
  color: #b87d24;
  font-size: 1.05rem;
}

.support-page .support-card {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  min-height: 660px;
  overflow: hidden;
  border: 1px solid #d8e2da;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(25, 54, 43, 0.12);
}

.support-page .support-intro {
  display: flex;
  flex-direction: column;
  padding: 38px 42px;
  background-color: #163f35;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 12px);
  color: #fff;
}

.support-page .support-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.support-page .support-brand span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  color: #f4bd61;
  font-size: 1.1rem;
}

.support-page .support-intro-main {
  margin: auto 0;
  padding: 40px 0;
}

.support-page .support-intro .eyebrow {
  color: #f4bd61;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.support-page .support-intro h1 {
  max-width: 10ch;
  margin-top: 14px;
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.35rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0;
}

.support-page .support-lede {
  max-width: 38ch;
  margin-top: 18px;
  color: #d3e4da;
  font-size: 0.92rem;
  line-height: 1.65;
}

.support-page .support-guide {
  display: grid;
  gap: 0;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.support-page .support-guide li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.support-page .support-guide li > span {
  padding-top: 2px;
  color: #f4bd61;
  font-size: 0.7rem;
  font-weight: 700;
}

.support-page .support-guide strong,
.support-page .support-guide p {
  display: block;
}

.support-page .support-guide strong {
  color: #fff;
  font-size: 0.82rem;
}

.support-page .support-guide p {
  margin-top: 3px;
  color: #c3d9ce;
  font-size: 0.74rem;
  line-height: 1.45;
}

.support-page .support-response-note {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.support-page .support-note-mark {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #f4bd61;
  color: #19392f;
  font-size: 0.85rem;
  font-weight: 700;
}

.support-page .support-response-note p,
.support-page .support-response-note strong,
.support-page .support-response-note p span {
  display: block;
}

.support-page .support-response-note strong {
  color: #fff;
  font-size: 0.8rem;
}

.support-page .support-response-note p span {
  margin-top: 3px;
  color: #c3d9ce;
  font-size: 0.73rem;
}

.support-page .support-content {
  align-self: center;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 52px clamp(28px, 5vw, 64px);
}

.support-page .support-content > .eyebrow {
  color: #397261;
  font-size: 0.7rem;
  letter-spacing: 0.11em;
}

.support-page .support-content h2 {
  margin-top: 10px;
  color: #21372f;
  font-family: "DM Sans", sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.support-page .support-form-intro {
  margin-top: 8px;
  color: #68776f;
  font-size: 0.86rem;
  line-height: 1.55;
}

.support-page #supportForm {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 14px;
  margin-top: 24px;
}

.support-page .support-field {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.support-page .support-field-wide,
.support-page #supportForm > button,
.support-page #supportForm > #supportMessageStatus {
  grid-column: 1 / -1;
}

.support-page .support-field label {
  margin: 0;
  color: #354a40;
  font-size: 0.78rem;
  font-weight: 700;
}

.support-page .support-field input,
.support-page .support-field select,
.support-page .support-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #ccd9d1;
  border-radius: 6px;
  background: #fbfcfb;
  color: #21372f;
  font-family: "DM Sans", sans-serif;
  font-size: 0.84rem;
}

.support-page .support-field textarea {
  min-height: 132px;
  resize: vertical;
}

.support-page .support-field input:focus,
.support-page .support-field select:focus,
.support-page .support-field textarea:focus {
  outline: 3px solid rgba(23, 107, 93, 0.18);
  outline-offset: 1px;
  border-color: #176b5d;
  box-shadow: none;
}

.support-page #supportSubmitBtn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  margin: 0;
  padding: 12px 16px;
  border-radius: 6px;
  background: #176b5d;
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 0.84rem;
}

.support-page #supportSubmitBtn span {
  color: #f4bd61;
  font-size: 1.15rem;
  transition: transform 160ms ease;
}

.support-page #supportSubmitBtn:hover span {
  transform: translateX(3px);
}

.support-page #supportSubmitBtn:disabled {
  cursor: wait;
  opacity: 0.72;
}

.support-page #supportMessageStatus:empty {
  display: none;
}

.support-page .support-footer {
  margin-top: 14px;
  color: #64756b;
  font-size: 0.74rem;
  text-align: right;
}

.support-page .support-footer span {
  margin: 0 5px;
  color: #c18a37;
}

@media (max-width: 760px) {
  .support-page .support-shell {
    align-items: start;
    padding: 24px;
  }

  .support-page .support-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .support-page .support-intro {
    padding: 28px 30px;
  }

  .support-page .support-intro-main {
    margin: 0;
    padding: 28px 0 20px;
  }

  .support-page .support-intro h1 {
    max-width: 14ch;
    font-size: 2.45rem;
  }

  .support-page .support-guide {
    margin-top: 18px;
  }

  .support-page .support-response-note {
    margin-top: 2px;
  }

  .support-page .support-content {
    padding: 34px 30px;
  }
}

@media (max-width: 480px) {
  .support-page .support-shell {
    padding: 16px;
  }

  .support-page .support-intro {
    padding: 24px;
  }

  .support-page .support-intro h1 {
    font-size: 2.15rem;
  }

  .support-page .support-content {
    padding: 28px 24px;
  }

  .support-page .support-content h2 {
    font-size: 1.65rem;
  }

  .support-page #supportForm {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .support-page .support-field,
  .support-page .support-field-wide,
  .support-page #supportForm > button,
  .support-page #supportForm > #supportMessageStatus {
    grid-column: 1;
  }
}

.admin-page .app-shell {
  min-height: 100vh;
  overflow: visible;
  background-color: #f1f4eb;
  background-image:
    linear-gradient(132deg, rgba(239, 196, 112, 0.16), transparent 38%),
    linear-gradient(318deg, rgba(57, 123, 91, 0.12), transparent 52%),
    repeating-linear-gradient(0deg, rgba(35, 75, 57, 0.035) 0 1px, transparent 1px 36px),
    repeating-linear-gradient(90deg, rgba(35, 75, 57, 0.035) 0 1px, transparent 1px 36px);
}

.admin-page .aurora {
  display: none;
}

.admin-page .admin-login-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  width: min(940px, 100%);
  min-height: 560px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(36, 78, 59, 0.14);
  border-radius: 12px;
  background: #fffefa;
  box-shadow: 0 28px 72px rgba(27, 57, 43, 0.2);
}

.support-admin-page .view-dashboard {
  max-width: 1320px;
  padding: 24px 24px 40px;
}

.support-admin-page .app-shell {
  background:
    radial-gradient(ellipse at 12% 4%, rgba(228, 173, 77, 0.17), transparent 38%),
    radial-gradient(ellipse at 90% 14%, rgba(37, 128, 99, 0.14), transparent 42%),
    linear-gradient(145deg, #eaf2eb 0%, #f6f7f0 52%, #e8f0e9 100%);
}

.support-admin-page .topbar {
  margin-bottom: 20px;
  padding: 20px 24px;
  border: 1px solid rgba(69, 111, 91, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(35, 67, 52, 0.09);
}

.support-admin-page .topbar .eyebrow {
  color: #a26a27;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.support-admin-page .topbar h1,
.support-admin-page .support-conversation-list h2,
.support-admin-page .support-thread-panel h2 {
  color: #20382f;
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: 0;
}

.support-admin-page .topbar h1 {
  margin-top: 3px;
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.1;
}

.support-admin-page .support-chat-workspace {
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.8fr);
  gap: 18px;
}

.support-admin-page .support-conversation-list,
.support-admin-page .support-thread-panel {
  overflow: hidden;
  padding: 20px;
  border: 1px solid #d8e3dc;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(35, 67, 52, 0.075);
}

.support-conversation-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.support-admin-page .support-conversation-list h2,
.support-admin-page .support-thread-panel h2 {
  font-size: 1.08rem;
}

.support-admin-page .support-thread-panel h2 {
  font-size: 1.3rem;
  font-weight: 600;
}
.support-admin-page .support-conversation-list .admin-panel-header p {
  margin-top: 4px;
  color: #68776f;
  font-size: 0.78rem;
}
.support-notification-toggle {
  flex: 0 0 auto;
  margin: 0;
  padding: 7px 9px;
  border: 1px solid #ccd9d1;
  border-radius: 6px;
  background: #fff;
  color: #315a49;
  font-family: "DM Sans", sans-serif;
  font-size: 0.7rem;
}
.support-notification-toggle.is-enabled {
  border-color: #b8d9c7;
  background: #edf6f1;
  color: #176b5d;
}
.support-notification-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}
.support-incoming-alerts {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}
.support-incoming-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 10px 11px;
  border: 1px solid #ecd39b;
  border-left: 3px solid #d49a39;
  border-radius: 6px;
  background: #fffaf0;
  color: #354a40;
  text-align: left;
  font-weight: 400;
}
.support-incoming-alert:hover,
.support-incoming-alert:focus-visible {
  border-color: #d49a39;
  background: #fff7e5;
  outline: 2px solid rgba(212, 154, 57, 0.2);
  outline-offset: 1px;
}
.support-incoming-alert-content {
  display: grid;
  min-width: 0;
  gap: 2px;
}
.support-incoming-alert-content strong {
  color: #273f34;
  font-size: 0.76rem;
}
.support-incoming-alert-email,
.support-incoming-alert-preview {
  overflow: hidden;
  color: #637269;
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.support-incoming-alert-arrow {
  flex: 0 0 auto;
  color: #a66b1f;
  font-size: 1rem;
}
.admin-page .admin-login-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 48px 44px;
  background-color: #163f35;
  background-image:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 12px),
    linear-gradient(145deg, #153d33, #245b49 78%);
  color: #fff;
}

.admin-page .admin-login-mark {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 12px;
  color: #f4bd61;
  font-size: 1.55rem;
  font-weight: 700;
}

.admin-page .admin-login-aside .eyebrow {
  margin-top: 42px;
  color: #f4bd61;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.admin-page .admin-login-aside h1 {
  margin-top: 14px;
  color: #fff;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.45rem, 4vw, 3.25rem);
  line-height: 1.04;
}

.admin-page .admin-login-aside-copy {
  max-width: 32ch;
  margin-top: 16px;
  color: #d5e5dc;
  font-size: 0.98rem;
  line-height: 1.65;
}

.admin-page .admin-login-assurance {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-top: auto;
  padding-top: 28px;
}

.admin-page .admin-assurance-number {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: #f4bd61;
  color: #19392f;
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-page .admin-login-assurance p,
.admin-page .admin-login-assurance strong,
.admin-page .admin-login-assurance p span {
  display: block;
}

.admin-page .admin-login-assurance strong {
  color: #fff;
  font-size: 0.88rem;
}

.admin-page .admin-login-assurance p span {
  margin-top: 4px;
  color: #c3d9ce;
  font-size: 0.78rem;
  line-height: 1.45;
}

.admin-page .admin-login-content {
  align-self: center;
  width: min(440px, 100%);
  margin: 0 auto;
  padding: 52px 48px;
}

.admin-page .admin-login-content > .eyebrow {
  color: #397261;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.admin-page .admin-login-content h2 {
  margin-top: 12px;
  color: #20382f;
  font-family: "Fraunces", Georgia, serif;
  font-size: 2rem;
  letter-spacing: 0;
}

.admin-page .admin-login-instruction {
  margin-top: 10px;
  color: #61716a;
  font-size: 0.94rem;
  line-height: 1.55;
}

.admin-page .admin-login-content form {
  gap: 11px;
  margin-top: 28px;
}

.admin-page .admin-login-content label {
  margin-top: 4px;
  color: #2d4439;
  font-size: 0.86rem;
}

.admin-page .admin-login-content input {
  min-height: 50px;
  border: 1px solid #cbd9d1;
  border-radius: 8px;
  background: #fbfcfb;
  font-family: "DM Sans", sans-serif;
  font-size: 0.92rem;
}

.admin-page #adminCode {
  letter-spacing: 0.24em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.admin-page #adminResetCode {
  letter-spacing: 0.24em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.admin-page .admin-login-content form button {
  min-height: 50px;
  margin-top: 6px;
  border-radius: 8px;
  background: #176b5d;
  font-family: "DM Sans", sans-serif;
  font-size: 0.94rem;
}

.admin-page .admin-login-content form button:focus-visible,
.admin-page .admin-login-content a:focus-visible {
  outline: 3px solid #e3b54c;
  outline-offset: 3px;
}

.admin-page .admin-login-content form .ghost-btn {
  border: 1px solid #cbd9d1;
  background: #fff;
  color: #315a49;
}

.admin-page .admin-auth-link {
  display: block;
  width: fit-content;
  min-height: 0;
  margin: 12px 0 0 auto;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #176b5d;
  font-family: "DM Sans", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.admin-page .admin-auth-link:hover {
  color: #104f45;
}

.admin-page .admin-auth-link:focus-visible {
  outline: 3px solid #e3b54c;
  outline-offset: 3px;
}

.admin-page .admin-login-content .error:empty,
.admin-page .admin-login-content .helper:empty {
  display: none;
}

.admin-page .admin-login-content .back-link {
  margin-top: 24px;
  color: #397261;
  font-size: 0.86rem;
  text-decoration: none;
}

.admin-page .admin-login-content .back-link:hover {
  text-decoration: underline;
}

@media (max-width: 760px) {
  .admin-page .admin-login-card {
    grid-template-columns: 1fr;
    width: min(520px, 100%);
    min-height: 0;
  }

  .admin-page .admin-login-aside {
    padding: 28px 32px;
  }

  .admin-page .admin-login-mark {
    width: 44px;
    height: 44px;
    margin-bottom: 0;
  }

  .admin-page .admin-login-aside .eyebrow {
    margin-top: 24px;
  }

  .admin-page .admin-login-aside h1 {
    margin-top: 8px;
    font-size: 2.35rem;
  }

  .admin-page .admin-login-aside-copy {
    margin-top: 10px;
  }

  .admin-page .admin-login-assurance {
    margin-top: 22px;
    padding-top: 0;
  }

  .admin-page .admin-login-content {
    padding: 34px 32px;
  }
}

@media (max-width: 480px) {
  .admin-page .app-shell {
    padding: 14px;
  }

  .admin-page .view-login {
    min-height: calc(100vh - 28px);
  }

  .admin-page .admin-login-aside {
    padding: 24px;
  }

  .admin-page .admin-login-content {
    padding: 28px 24px;
  }

  .admin-page .admin-login-content h2 {
    font-size: 1.75rem;
  }
}

.parent-dashboard-page .app-shell {
  background: #eef8f3;
}

.parent-dashboard-page .aurora {
  display: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  line-height: 1.15;
}

p {
  margin: 0;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  padding: 24px;
  overflow: hidden;
}

.aurora {
  position: absolute;
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.6;
  pointer-events: none;
}

.aurora-a {
  width: 360px;
  height: 360px;
  top: -120px;
  left: -120px;
  background: linear-gradient(35deg, #ffd89a, #ffc5a2);
  animation: driftA 18s ease-in-out infinite;
}

.aurora-b {
  width: 420px;
  height: 420px;
  right: -140px;
  bottom: -140px;
  background: linear-gradient(15deg, #93d6c6, #d5f2ea);
  animation: driftB 20s ease-in-out infinite;
}

.view {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
}

.view-login {
  min-height: calc(100vh - 48px);
  display: grid;
  place-items: center;
}

.landing-shell {
  position: relative;
  min-height: 100vh;
  padding: 24px clamp(20px, 5vw, 76px) 34px;
  background: #1e3932;
}

.landing-gallery {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
}

.landing-gallery::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(30, 57, 50, 0.46);
}

.landing-gallery img {
  position: absolute;
  width: clamp(170px, 19vw, 300px);
  height: clamp(240px, 30vw, 400px);
  object-fit: cover;
  border-radius: 18px;
  border: 10px solid #fff;
  opacity: 0.3;
  filter: saturate(0.72) contrast(1.04);
  mix-blend-mode: screen;
}

.landing-gallery img:nth-child(1) {
  top: 13%;
  left: 1%;
  transform: rotate(-8deg);
}

.landing-gallery img:nth-child(2) {
  bottom: 8%;
  left: 4%;
  transform: rotate(5deg);
}

.landing-gallery img:nth-child(3) {
  top: 8%;
  right: 3%;
  transform: rotate(6deg);
}

.landing-gallery img:nth-child(4) {
  right: 1%;
  bottom: 11%;
  transform: rotate(-7deg);
}

.landing-nav,
.landing-main {
  position: relative;
  z-index: 2;
  max-width: 1500px;
  margin: 0 auto;
}

.landing-shell h1,
.landing-shell h2,
.landing-shell h3,
.landing-shell .brand,
.landing-shell .brand-mark {
  font-family: "DM Sans", sans-serif;
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fffaf0;
}

.landing-announcement {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 1500px;
  min-height: 46px;
  margin: 16px auto 0;
  padding: 8px 16px;
  overflow: hidden;
  border-radius: 7px;
  color: #1e3932;
  background: #f4bd61;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.landing-announcement-label {
  flex: 0 0 auto;
  padding-right: 14px;
  border-right: 1px solid rgba(30, 57, 50, 0.35);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.landing-announcement-window {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.landing-announcement-window:focus-visible {
  outline: 2px solid #1e3932;
  outline-offset: -2px;
}

.landing-announcement-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 52px;
  animation: landingAnnouncementScroll 30s linear infinite;
}

.landing-announcement-window:hover .landing-announcement-track,
.landing-announcement-window:focus-within .landing-announcement-track {
  animation-play-state: paused;
}

.landing-announcement-track p {
  flex: 0 0 auto;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

@keyframes landingAnnouncementScroll {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .landing-announcement-window { overflow: visible; }
  .landing-announcement-track {
    width: 100%;
    animation: none;
  }
  .landing-announcement-track p {
    min-width: 0;
    flex: 1 1 auto;
    white-space: normal;
  }
  .landing-announcement-track p + p { display: none; }
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-family: "Fraunces", serif;
  font-size: 1.45rem;
  font-weight: 700;
}

.brand > span:last-child span { color: #f4bd61; }

.brand-mark {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid #1e3932;
  border-radius: 12px 12px 12px 4px;
  color: #1e3932;
  background: linear-gradient(135deg, #f4bd61 0%, #f7d68f 100%);
  font-family: "Fraunces", serif;
  font-size: 1.22rem;
  font-style: italic;
  font-weight: 700;
  transform: rotate(-6deg);
  box-shadow: 3px 3px 0 #fffaf0;
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -5px;
  width: 11px;
  height: 11px;
  border-right: 2px solid #f4bd61;
  border-bottom: 2px solid #f4bd61;
  border-radius: 0 0 5px 0;
  transform: rotate(-10deg);
}

.support-nav-link {
  display: inline-block;
  color: #fffaf0;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(244, 189, 97, 0.8);
  border-radius: 8px;
  padding: 8px 14px;
  transition: background 170ms ease, color 170ms ease;
}

.support-nav-link:hover,
.support-nav-link:focus-visible {
  color: #1e3932;
  background: #f4bd61;
  outline: none;
}

.landing-main { padding-top: clamp(28px, 5vh, 56px); }

.landing-hero {
  position: relative;
  min-height: min(500px, calc(100vh - 130px));
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(310px, 0.85fr);
  align-items: end;
  gap: clamp(28px, 7vw, 110px);
  padding: clamp(28px, 4vw, 52px);
  border-radius: 28px;
  overflow: hidden;
  background: #1e3932;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.24);
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(17, 46, 38, 0.82);
  z-index: 1;
}

.landing-hero::after {
  content: "";
  position: absolute;
  inset: -8%;
  background: url("https://images.unsplash.com/photo-1503676260728-1c00da094a0b?auto=format&fit=crop&w=1200&q=70") center / cover no-repeat;
  animation: heroBackdrop 10s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-copy,
.landing-hero .role-options { position: relative; z-index: 2; }
.hero-copy { max-width: 670px; color: #fffaf0; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.2); }
.hero-copy .landing-eyebrow { color: #f4bd61; }

.hero-copy h1 {
  max-width: 680px;
  margin-top: 14px;
  font-size: clamp(2.25rem, 4.45vw, 4.15rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero-lede {
  max-width: 510px;
  margin-top: 24px;
  color: #fffaf0;
  font-size: clamp(1.375rem, 1.6vw, 1.535rem);
  line-height: 1.6;
}

.landing-hero .role-options { margin-top: 0; }

.landing-hero > .landing-trust {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  grid-row: 1;
  width: 100%;
  padding: 0;
}

.landing-hero > .hero-copy,
.landing-hero > .role-options { grid-row: 2; }

.landing-hero .role-option {
  border-color: rgba(255, 250, 240, 0.5);
  color: #fffaf0;
  background: rgba(30, 57, 50, 0.68);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.landing-hero .role-option:hover,
.landing-hero .role-option:focus-visible {
  border-color: #f4bd61;
  background: rgba(30, 57, 50, 0.82);
}

.landing-hero .role-mark { color: #1e3932; background: #f4bd61; }
.landing-hero .teacher-role .role-mark { color: #1e3932; background: #b9ded1; }
.landing-hero .training-role .role-mark { color: #1e3932; background: #f4d49b; }
.landing-hero .role-option small { color: #fffaf0; }
.landing-hero .role-option strong { font-size: 1.08rem; }
.landing-hero .role-option small { font-size: 0.94rem; }
.landing-hero .role-arrow { color: #f4bd61; }

.landing-hero > .landing-help-chat {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  width: min(360px, calc(100vw - 32px));
  margin-top: 8px;
}

.landing-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 22px 8px 0;
  color: #fffaf0;
}

.landing-trust div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 250, 240, 0.5);
  border-radius: 10px;
  background: rgba(30, 57, 50, 0.68);
  backdrop-filter: blur(8px);
}
.landing-trust strong { flex: 0 0 auto; color: #f4bd61; font-family: "Fraunces", serif; font-size: 1.36rem; }
.landing-trust span { color: #fffaf0; font-size: 0.98rem; font-weight: 700; line-height: 1.4; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.22); }

.landing-mission {
  margin: 22px auto 0;
  color: #f4bd61;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.landing-testimonials {
  max-width: 980px;
  margin: 64px auto 0;
  color: #fffaf0;
  text-align: center;
}

.landing-testimonials h2 {
  margin-top: 8px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 24px;
  text-align: left;
}

.testimonial-card {
  margin: 0;
  padding: 24px;
  border: 1px solid rgba(255, 250, 240, 0.2);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.08);
}

.testimonial-card p { color: rgba(255, 250, 240, 0.9); line-height: 1.55; }
.testimonial-card footer { margin-top: 16px; color: #f4bd61; font-size: 0.82rem; font-weight: 700; }

.hero-card {
  width: min(560px, 100%);
  padding: 34px;
  border-radius: 24px;
  background: var(--card);
  backdrop-filter: blur(9px);
  box-shadow: var(--shadow);
  transform: translateY(8px);
  animation: riseIn 700ms ease forwards;
}

.eyebrow {
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 700;
}

.hero-card h1 {
  margin-top: 10px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.hero-card > p {
  margin-top: 12px;
  color: var(--muted);
}

.role-panel {
  width: min(660px, 100%);
  padding: 38px;
  border-radius: 24px;
  background: var(--card);
  backdrop-filter: blur(9px);
  box-shadow: var(--shadow);
  animation: riseIn 700ms ease forwards;
}

.role-panel h1 {
  margin-top: 10px;
  font-size: clamp(2rem, 5vw, 3rem);
}

.role-panel > p:not(.eyebrow) {
  margin-top: 12px;
  color: var(--muted);
}

.role-options {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.role-option {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid #cfddd8;
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: border-color 170ms ease, transform 170ms ease, box-shadow 170ms ease;
}

.role-option:hover,
.role-option:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(24, 36, 42, 0.12);
  transform: translateY(-2px);
  outline: none;
}

.role-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: #0f5f53;
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.admin-role .role-mark {
  background: #f7d9a8;
  color: #704817;
}

.teacher-role .role-mark {
  background: #d7e2f1;
  color: #304f73;
}

.role-option strong,
.role-option small {
  display: block;
}

.role-option small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.role-arrow {
  color: var(--accent);
  font-size: 1.4rem;
}

.back-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--accent);
  font-weight: 700;
}

:is(.back-link, .teacher-detail-back, .teacher-auth-back, .training-back-link, .policy-back-link, .support-back-link) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #cbd9d2;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(29, 45, 36, 0.07);
  color: #285c48;
  font-family: "Manrope", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

:is(.back-link, .teacher-detail-back, .teacher-auth-back, .training-back-link, .policy-back-link, .support-back-link):hover {
  border-color: #397963;
  background: #f5f8f6;
  color: #1d4034;
  text-decoration: none;
}

:is(.back-link, .teacher-detail-back, .teacher-auth-back, .training-back-link, .policy-back-link, .support-back-link):focus-visible {
  outline: 3px solid rgba(12, 127, 111, 0.28);
  outline-offset: 3px;
}

.parent-auth-card .auth-return:not(.hidden) {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #cbd9d2;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(29, 45, 36, 0.07);
  color: #285c48;
}

.session-restore-view {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: calc(100vh - 48px);
  place-items: center;
}

.session-restore-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 14px 18px;
  border: 1px solid #dfe7e2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(29, 45, 36, 0.08);
  color: #285c48;
  font-family: "Manrope", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
}

.session-restore-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #397963;
  animation: session-restore-pulse 1.2s ease-in-out infinite alternate;
}

@keyframes session-restore-pulse {
  to { opacity: 0.35; }
}

form {
  margin-top: 24px;
  display: grid;
  gap: 10px;
}

.auth-divider {
  margin-top: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.86rem;
  position: relative;
}

.auth-divider span {
  background: #1e3932;
  color: #fff;
  padding: 0 10px;
  position: relative;
  z-index: 1;
}

.auth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid #d7e5e0;
  transform: translateY(-50%);
}

.help-chat {
  margin-top: 28px;
  padding: 16px;
  border: 1px solid #cfe0da;
  border-radius: 16px;
  background: rgba(238, 248, 243, 0.8);
}

.about-card {
  max-width: 1040px;
  overflow: hidden;
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  align-items: center;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid #d7e5e0;
}

.about-intro h1 {
  margin: 8px 0 18px;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.about-intro h1 em {
  color: var(--accent);
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 500;
}

.about-lede {
  max-width: 650px;
  color: #49625d;
  font-size: 1.05rem;
  line-height: 1.7;
}

.about-badge {
  display: grid;
  width: 142px;
  height: 142px;
  place-content: center;
  gap: 3px;
  border-radius: 50%;
  color: #1e3932;
  background: #f4bd61;
  box-shadow: 10px 10px 0 #d7eee5;
  text-align: center;
  transform: rotate(6deg);
}

.about-badge strong,
.about-badge span {
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
}

.about-badge span {
  color: #0f5f53;
  font-style: italic;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 28px 0;
}

.about-highlights article {
  padding: 18px;
  border: 1px solid #d7e5e0;
  border-radius: 14px;
  background: #f8fcfa;
}

.about-number {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.about-highlights h2 {
  margin: 14px 0 8px;
  font-size: 1.15rem;
}

.about-highlights p {
  margin: 0;
  color: #49625d;
  font-size: 0.9rem;
  line-height: 1.55;
}

.about-closing {
  margin: 4px 0 20px;
  padding: 20px 22px;
  border-radius: 14px;
  color: #fffaf0;
  background: #1e3932;
}

.about-closing p {
  margin: 0 0 6px;
  color: #d7eee5;
}

.about-closing strong {
  color: #f4bd61;
  font-family: "Fraunces", serif;
  font-size: 1.3rem;
}

.help-chat-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.help-chat-heading h2 {
  margin-top: 3px;
  font-size: 1.35rem;
}

.chat-status {
  border-radius: 999px;
  padding: 5px 9px;
  color: #0f5f53;
  background: #d7eee5;
  font-size: 0.76rem;
  font-weight: 700;
}

.help-chat-messages {
  max-height: 190px;
  overflow-y: auto;
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-right: 3px;
}

.chat-message {
  max-width: 92%;
  margin: 0;
  padding: 9px 11px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.bot-message {
  justify-self: start;
  color: var(--ink);
  background: white;
}

.user-message {
  justify-self: end;
  color: white;
  background: var(--accent);
}

.help-chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 12px;
}

.help-chat-form input {
  min-width: 0;
}

.help-chat-form button {
  margin-top: 0;
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.chat-suggestions[hidden] {
  display: none;
}

.chat-suggestions button {
  margin: 0;
  padding: 6px 9px;
  border: 1px solid #b9d5ca;
  border-radius: 999px;
  color: var(--accent);
  background: transparent;
  font-size: 0.78rem;
}

.chat-suggestions button:hover,
.chat-suggestions button:focus-visible {
  background: white;
}

/* Keep the landing-page helper available as a floating messenger-style popup. */
.landing-help-chat {
  position: fixed !important;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  width: min(360px, calc(100vw - 32px));
  height: min(420px, calc(100vh - 90px));
  min-width: 0;
  max-width: min(360px, calc(100vw - 32px));
  min-height: 280px;
  max-height: calc(100vh - 32px);
  resize: none;
  overflow: hidden;
  margin: 0 !important;
  padding: 0;
  border-radius: 10px;
  border-color: #cbdad3;
  background: #fff;
  color: #20382f;
  font-family: Arial, Helvetica, sans-serif;
  box-shadow: 0 18px 45px rgba(15, 37, 33, 0.2);
  display: none;
}

.landing-help-chat.is-open {
  display: flex;
  flex-direction: column;
  bottom: 54px;
}

.landing-chat-launcher {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 21;
  margin: 0;
  padding: 9px 13px;
  border: 0;
  border-radius: 7px;
  color: white;
  background: var(--accent);
  box-shadow: 0 8px 22px rgba(15, 37, 33, 0.2);
  font-size: 0.78rem;
  font-weight: 700;
}

.landing-chat-launcher:hover,
.landing-chat-launcher:focus-visible {
  background: #0b594e;
}

.landing-help-chat .help-chat-heading h2 {
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.98rem;
}

.landing-help-chat .help-chat-heading {
  flex: 0 0 auto;
  align-items: center;
  padding: 14px 16px;
  border-radius: 9px 9px 0 0;
  background: #163f35;
}

.landing-help-chat .help-chat-heading .eyebrow {
  color: #d4e5dc;
  font-size: 0.72rem;
}

.landing-help-chat .help-chat-messages {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  align-content: start;
  margin: 12px 14px 0;
  padding: 12px;
  border-radius: 8px;
  background: #f3f7f4;
}

.landing-help-chat .chat-message {
  padding: 10px 11px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.landing-help-chat .help-chat-form {
  flex: 0 0 auto;
  gap: 8px;
  margin: 10px 14px 0;
}

.landing-help-chat .help-chat-form input {
  min-height: 44px;
  padding: 10px 12px;
  font-size: 0.92rem;
  font-family: Arial, Helvetica, sans-serif;
  border-color: #cbdad3;
  border-radius: 7px;
  background: #fff;
}

.landing-help-chat .help-chat-form button {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 7px;
  font-family: Arial, Helvetica, sans-serif;
}

.landing-help-chat .chat-suggestions {
  flex: 0 0 auto;
  gap: 4px;
  margin: 8px 14px 12px;
}

.landing-help-chat .chat-suggestions button {
  padding: 4px 7px;
  font-size: 0.68rem;
  border-radius: 6px;
  background: #f5f8f6;
  font-family: Arial, Helvetica, sans-serif;
}

@media (max-width: 520px) {
  .landing-help-chat {
    right: 16px;
    bottom: 16px;
    width: calc(100vw - 32px);
    min-width: 0;
    max-width: calc(100vw - 32px);
    height: min(420px, calc(100vh - 90px));
  }

  .landing-help-chat .help-chat-messages {
    min-height: 0;
    max-height: none;
  }

}

.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;
}

label {
  margin-top: 4px;
  font-size: 0.93rem;
  font-weight: 700;
}

input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #cfe0da;
  padding: 12px 14px;
  font: inherit;
  background: rgba(255, 255, 255, 0.95);
  transition: border-color 170ms ease, box-shadow 170ms ease;
}

textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  border-radius: 12px;
  border: 1px solid #cfe0da;
  padding: 12px 14px;
  font: inherit;
  background: rgba(255, 255, 255, 0.95);
}

select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #cfe0da;
  padding: 12px 14px;
  font: inherit;
  background: rgba(255, 255, 255, 0.95);
  transition: border-color 170ms ease, box-shadow 170ms ease;
}

input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(12, 127, 111, 0.16);
}

textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(12, 127, 111, 0.16);
}

.application-card {
  width: min(720px, 100%);
  margin: 30px auto;
}

.application-note {
  padding: 12px 14px;
  border-left: 4px solid var(--warm);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 0.92rem;
}

select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(12, 127, 111, 0.16);
}

button {
  margin-top: 10px;
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease;
}

button:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

form button {
  background: var(--accent);
  color: white;
}

#loginForm button,
#adminLoginForm button {
  border-radius: 999px;
  padding: 13px 20px;
}

.parent-auth-page:not(.parent-dashboard-page) {
  background: #edf4f0;
  font-size: 16px;
}

.parent-auth-page:not(.parent-dashboard-page) .app-shell {
  background: linear-gradient(135deg, #e4eee8 0%, #f7f9f5 54%, #e8f1ed 100%);
}

.parent-auth-page:not(.parent-dashboard-page) .aurora {
  display: none;
}

.parent-auth-page .parent-auth-card {
  width: min(480px, 100%);
  padding: 38px 42px 32px;
  border: 1px solid #d4e1da;
  border-top: 4px solid var(--accent);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(30, 57, 50, 0.11);
}

.parent-auth-card .eyebrow {
  color: #476b5d;
  font-size: 0.75rem;
  letter-spacing: 0;
}

.parent-auth-card h1 {
  margin-top: 12px;
  font-size: 1.95rem;
}

.parent-auth-card > p:not(.eyebrow) {
  margin-top: 10px;
  line-height: 1.5;
  font-size: 0.96rem;
}

.parent-auth-card form {
  margin-top: 26px;
  gap: 9px;
}

.parent-auth-card label {
  margin-top: 8px;
  font-size: 0.85rem;
}

.parent-auth-card input:not([type="checkbox"]),
.parent-auth-card select {
  min-height: 48px;
  border-radius: 6px;
  border-color: #bfcfc6;
  padding: 11px 13px;
  font-size: 0.95rem;
  background: #fff;
}

.parent-auth-card input::placeholder {
  color: #74847e;
}

.parent-auth-card form button:not(.text-btn),
.parent-auth-card #loginForm button[type="submit"] {
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  border-radius: 6px;
  font-size: 0.94rem;
}

.parent-auth-card .ghost-btn {
  border: 1px solid #c4d6cb;
  background: #fff;
  color: var(--ink);
}

.parent-auth-card .text-btn,
.parent-auth-card #loginForm .auth-inline-link {
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 4px 0;
  border-radius: 0;
  background: none;
  color: #086e60;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.parent-auth-card .text-btn:focus-visible,
.parent-auth-card .back-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.parent-auth-card #loginForm .auth-inline-link {
  justify-self: end;
  margin-top: 0;
}

.parent-auth-card .auth-switch {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #e2e9e4;
  color: var(--muted);
  font-size: 0.88rem;
}

.parent-auth-card .auth-return {
  margin-top: 18px;
}

.parent-auth-card .back-link {
  display: block;
  width: fit-content;
  margin-top: 26px;
  font-size: 0.83rem;
}

.parent-auth-card .helper,
.parent-auth-card .trust-note,
.parent-auth-card .consent-row {
  font-size: 0.84rem;
  line-height: 1.5;
}

.parent-auth-card .hidden,
.parent-auth-card .error:empty,
.parent-auth-card .helper:empty {
  display: none;
}

@media (max-width: 640px) {
  .parent-auth-page .parent-auth-card {
    padding: 28px 22px 26px;
  }

  .parent-auth-card h1 {
    font-size: 1.75rem;
  }
}

.helper {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.9rem;
}

.helper.compact {
  margin-top: -2px;
  font-size: 0.84rem;
}

.verification-heading {
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.policy-page {
  max-width: 760px;
}

.policy-page h2 {
  margin-top: 24px;
  font-size: 1.1rem;
}

.policy-page p {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.6;
}

.policy-body {
  min-height: 100vh;
  padding: 36px 20px 56px;
  color: #203a32;
  background-color: #edf2ec;
  background-image: linear-gradient(rgba(25, 67, 54, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(25, 67, 54, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
}

.policy-shell {
  width: min(100%, 1040px);
  margin: 0 auto;
}

.policy-hero {
  position: relative;
  overflow: hidden;
  padding: 28px clamp(24px, 6vw, 68px) 54px;
  border-radius: 8px 8px 0 0;
  color: #fff;
  background-color: #173f35;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 13px);
}

.policy-hero::after {
  position: absolute;
  right: -42px;
  bottom: -132px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(244, 189, 97, 0.45);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(244, 189, 97, 0.045), 0 0 0 48px rgba(244, 189, 97, 0.035);
  content: "";
  pointer-events: none;
}

.policy-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.policy-brand span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 6px;
  color: #f4bd61;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.policy-kicker {
  margin-top: 42px;
  color: #f4bd61;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.policy-hero h1 {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.6rem;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0;
}

.policy-hero h1 span {
  color: #f4bd61;
}

.policy-subtitle {
  max-width: 54ch;
  margin-top: 18px;
  color: #d7e4dc;
  font-size: 0.98rem;
  line-height: 1.6;
}

.policy-date {
  display: inline-block;
  margin-top: 24px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  color: #f4d9a8;
  font-size: 0.78rem;
}

.policy-index {
  padding: 26px clamp(24px, 6vw, 68px) 28px;
  border-bottom: 1px solid #dbe4dc;
  background: #fff;
}

.policy-index-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 17px;
}

.policy-index-heading span {
  color: #a86e20;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.policy-index-heading strong {
  color: #203a32;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 500;
}

.policy-index-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 20px;
}

.policy-index-links a {
  min-width: 0;
  padding: 8px 0;
  border-top: 1px solid #edf1ed;
  color: #486157;
  font-size: 0.76rem;
  line-height: 1.4;
  text-decoration: none;
  transition: color 150ms ease;
}

.policy-index-links a:hover,
.policy-index-links a:focus-visible {
  color: #a86e20;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-index-links a:focus-visible,
.policy-brand:focus-visible,
.policy-back-link:focus-visible,
.policy-contact a:focus-visible {
  outline: 3px solid #e3ad55;
  outline-offset: 3px;
}

.policy-document {
  padding: 0 clamp(24px, 6vw, 68px);
  background: #fff;
}

.policy-section {
  padding: 30px 0 32px;
  border-bottom: 1px solid #e4eae5;
  scroll-margin-top: 20px;
}

.policy-section h2 {
  display: flex;
  align-items: baseline;
  gap: 13px;
  margin: 0 0 15px;
  color: #203a32;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.52rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
}

.policy-section h2 span {
  flex: 0 0 28px;
  color: #a86e20;
  font-family: "DM Sans", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.policy-section h3 {
  margin: 22px 0 8px;
  color: #276653;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
}

.policy-section p,
.policy-section li {
  color: #52645b;
  font-size: 0.9rem;
  line-height: 1.75;
}

.policy-section p {
  margin: 9px 0 0;
}

.policy-section ul {
  display: grid;
  gap: 5px;
  margin: 10px 0 0;
  padding-left: 21px;
}

.policy-section li::marker {
  color: #bd812e;
}

.policy-section blockquote {
  margin: 12px 0 0;
  padding: 12px 16px;
  border-left: 3px solid #e5b65f;
  background: #f5f7f3;
  color: #354d42;
  font-size: 0.88rem;
  line-height: 1.65;
}

.policy-section a,
.policy-contact a {
  color: #176b5d;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.policy-section a:hover,
.policy-contact a:hover {
  color: #a86e20;
}

.policy-financial {
  margin: 0 -18px;
  padding-right: 18px;
  padding-left: 18px;
  border-left: 3px solid #e5b65f;
  background: #fbfaf6;
}

.policy-section .policy-amount {
  margin-top: 13px;
  color: #173f35;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  line-height: 1.45;
}

.policy-contact {
  padding: 34px clamp(24px, 6vw, 68px) 38px;
  background: #eaf1eb;
}

.policy-contact-label {
  color: #a86e20;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.policy-contact h2 {
  margin-top: 7px;
  color: #203a32;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0;
}

.policy-contact > p:not(.policy-contact-label) {
  max-width: 68ch;
  margin-top: 9px;
  color: #52645b;
  font-size: 0.88rem;
  line-height: 1.65;
}

.policy-contact > a {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.9rem;
}

.policy-back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 19px 0 0;
  color: #315d4c;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.policy-back-link span {
  color: #a86e20;
  font-size: 1.1rem;
}

@media (max-width: 700px) {
  .policy-body {
    padding: 14px 12px 36px;
  }

  .policy-hero {
    padding: 22px 22px 38px;
  }

  .policy-kicker {
    margin-top: 32px;
  }

  .policy-hero h1 {
    font-size: 2.7rem;
  }

  .policy-index {
    padding: 22px;
  }

  .policy-index-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
  }

  .policy-document {
    padding: 0 22px;
  }

  .policy-section {
    padding: 25px 0 27px;
  }

  .policy-section h2 {
    gap: 9px;
    font-size: 1.3rem;
  }

  .policy-section h2 span {
    flex-basis: 26px;
  }

  .policy-financial {
    margin: 0 -9px;
    padding-right: 9px;
    padding-left: 12px;
  }

  .policy-contact {
    padding: 28px 22px 32px;
  }
}

@media (max-width: 380px) {
  .policy-index-links {
    grid-template-columns: 1fr;
  }

  .policy-hero h1 {
    font-size: 2.35rem;
  }
}

.registration-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 4px 0 2px;
  padding: 0;
  color: var(--muted);
  font-size: 0.82rem;
  list-style: none;
}

.registration-progress li::before {
  content: "○";
  margin-right: 5px;
}

.registration-progress li.is-complete,
.registration-progress li.is-current {
  color: var(--accent);
  font-weight: 700;
}

.registration-progress li.is-complete::before {
  content: "✓";
}

.trust-note {
  margin: 4px 0 6px;
  padding: 10px 12px;
  border-left: 3px solid var(--accent);
  background: #eef8f4;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.password-strength {
  min-height: 1.2rem;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.password-strength[data-strength="1"],
.password-strength[data-strength="2"] {
  color: var(--danger);
}

.password-strength[data-strength="3"] {
  color: var(--warm);
}

.password-strength[data-strength="4"] {
  color: var(--accent);
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.consent-row input {
  width: auto;
  flex: 0 0 auto;
  margin-top: 3px;
}

.consent-row a {
  color: var(--accent);
  font-weight: 700;
}

#verificationForm .ghost-btn {
  margin-top: 0;
  color: var(--ink);
}

.error {
  color: var(--danger);
  min-height: 1.2rem;
  font-size: 0.92rem;
}

.hidden {
  display: none;
}

.view-dashboard {
  padding: 22px 2px 28px;
  animation: riseIn 480ms ease;
}

.admin-page .admin-dashboard {
  position: relative;
  width: min(1320px, 100%);
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 24px 60px;
  border: 1px solid rgba(43, 91, 66, 0.24);
  border-radius: 16px;
  background: rgba(255, 254, 249, 0.38);
  box-shadow: 0 20px 54px rgba(31, 67, 48, 0.1);
  color: #20382f;
  font-size: 0.94rem;
}

.admin-page .admin-dashboard .topbar {
  position: sticky;
  top: 12px;
  z-index: 5;
  margin-bottom: 18px;
  padding: 20px 24px;
  border: 1px solid rgba(239, 196, 110, 0.68);
  border-radius: 12px;
  background-color: #183f35;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 14px);
  box-shadow: inset 0 0 0 4px rgba(239, 196, 110, 0.08), 0 15px 34px rgba(24, 57, 43, 0.2);
  backdrop-filter: blur(10px);
}

.admin-page .admin-dashboard .topbar::before {
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(239, 196, 110, 0.28);
  border-radius: 7px;
  content: "";
  pointer-events: none;
}

.admin-page .admin-dashboard .topbar .eyebrow {
  color: #efc46e;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.admin-page .admin-dashboard .topbar h2,
.admin-page .admin-dashboard h3,
.admin-page .admin-dashboard h4 {
  color: #20382f;
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: 0;
}

.admin-page .admin-dashboard .topbar h2 {
  margin-top: 4px;
  color: #fffdf5;
  font-size: 1.75rem;
  line-height: 1.15;
}

.admin-page .admin-dashboard-summary {
  margin-top: 5px;
  color: #d0e1d7;
  font-size: 0.82rem;
}

.admin-page .admin-dashboard .topbar-actions {
  align-items: center;
  gap: 8px;
}

.admin-page .admin-dashboard .topbar-actions .ghost-btn {
  width: auto;
  min-width: 0;
  min-height: 38px;
  margin: 0;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #fffdf5;
  font-size: 0.78rem;
  text-align: center;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.admin-page .admin-dashboard .topbar-actions .ghost-btn:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.16);
}

.admin-page .admin-dashboard #adminLogoutBtn {
  border-color: rgba(239, 196, 110, 0.48);
  color: #ffe0a0;
}

.admin-page .admin-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 20px;
  padding: 0 4px 12px;
  overflow-x: visible;
  border-bottom: 1px solid #d4e0d8;
  scrollbar-width: thin;
}

.admin-page .admin-section-nav a {
  flex: 0 0 auto;
  padding: 8px 11px;
  border-radius: 5px;
  color: #4d6556;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.admin-page .admin-section-nav a:hover,
.admin-page .admin-section-nav a:focus-visible {
  background: #e4efe4;
  color: #155b49;
}

.admin-page .admin-dashboard [id] {
  scroll-margin-top: 100px;
}

.admin-page .admin-dashboard .admin-panel {
  margin: 0;
  padding: 24px clamp(16px, 2.6vw, 34px);
  border: 0;
  border-bottom: 1px solid rgba(49, 91, 65, 0.16);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: none;
}

.admin-page .admin-dashboard > .admin-panel:first-of-type {
  border-radius: 8px 8px 0 0;
}

.admin-page .admin-dashboard > .admin-panel:last-of-type {
  border-bottom: 0;
  border-radius: 0 0 8px 8px;
}

.admin-page .admin-dashboard .admin-panel-header {
  padding-left: 14px;
  border-left: 3px solid #d5a34e;
}

.admin-page .admin-dashboard .admin-panel-header h3,
.admin-page .admin-dashboard .grid-header h3 {
  font-size: 1.22rem;
  font-weight: 700;
}

.admin-page .admin-dashboard .admin-panel-header p,
.admin-page .admin-dashboard .grid-header p {
  margin-top: 5px;
  color: #68776f;
  font-size: 0.82rem;
  line-height: 1.5;
}

.admin-page .admin-dashboard .teacher-form {
  grid-template-columns: minmax(160px, 0.34fr) minmax(0, 1fr);
  align-items: start;
  gap: 12px 24px;
  margin-top: 20px;
}

.admin-page .admin-dashboard .teacher-form > label {
  grid-column: 1;
  align-self: center;
  margin: 0;
  color: #43594d;
  font-size: 0.8rem;
}

.admin-page .admin-dashboard .teacher-form > input:not([type="hidden"]),
.admin-page .admin-dashboard .teacher-form > select,
.admin-page .admin-dashboard .teacher-form > textarea {
  grid-column: 2;
  min-width: 0;
  min-height: 42px;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid #cbd9d1;
  border-radius: 6px;
  background: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 0.86rem;
}

.admin-page .admin-dashboard .teacher-form > textarea {
  min-height: 82px;
}

.admin-page .admin-dashboard .admin-teacher-message-form {
  display: grid;
  grid-template-columns: minmax(130px, 0.28fr) minmax(0, 1fr);
  align-items: start;
  gap: 12px 20px;
  margin: 20px 0 26px;
}

.admin-page .admin-dashboard .admin-teacher-message-form label {
  align-self: center;
  color: #43594d;
  font-size: 0.8rem;
}

.admin-page .admin-dashboard .admin-teacher-message-form select,
.admin-page .admin-dashboard .admin-teacher-message-form textarea {
  grid-column: 2;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #cbd9d1;
  border-radius: 6px;
  color: #263b33;
  background: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 0.86rem;
}

.admin-page .admin-dashboard .admin-teacher-message-form textarea {
  min-height: 110px;
  line-height: 1.5;
  resize: vertical;
}

.admin-page .admin-dashboard .admin-teacher-message-form button,
.admin-page .admin-dashboard .admin-teacher-message-form #adminTeacherMessageStatus {
  grid-column: 2;
  justify-self: start;
  margin: 0;
}

.admin-teacher-message-thread-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.admin-teacher-message-thread-heading h4 {
  margin: 0;
  color: #29483d;
  font-size: 0.92rem;
}

.admin-teacher-message-list {
  display: grid;
  align-content: start;
  box-sizing: border-box;
  min-height: 190px;
  height: 190px;
  max-height: 190px;
  gap: 10px;
  margin: 12px 0 0;
  padding: 8px;
  border: 1px solid #cbd8d0;
  border-radius: 5px;
  background: #fff;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  list-style: none;
}

.admin-teacher-message-item {
  max-width: 82%;
  padding: 11px 13px;
  border: 1px solid #d6e2db;
  border-radius: 5px;
  background: #fff;
}

.admin-teacher-message-item.from-teacher {
  border-left: 3px solid #c79131;
  background: #fffaf0;
}

.admin-teacher-message-item.from-admin {
  justify-self: end;
  border-left: 3px solid #43836a;
  background: #f7faf7;
}

.admin-teacher-message-item > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  color: #52685d;
  font-size: 0.72rem;
}

.admin-teacher-message-item time { color: #75857c; }
.admin-teacher-message-item p { margin: 7px 0 0; color: #2c4037; font-size: 0.82rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }

.admin-page .admin-dashboard .teacher-form > .compact,
.admin-page .admin-dashboard .teacher-form > .photo-preview-wrap,
.admin-page .admin-dashboard .teacher-form > .service-fieldset,
.admin-page .admin-dashboard .teacher-form > .form-actions,
.admin-page .admin-dashboard .teacher-form > #adminMessage {
  grid-column: 2;
  min-width: 0;
}

.admin-page .admin-dashboard .teacher-form > .compact {
  margin: -6px 0 0;
  color: #6b7a72;
  font-size: 0.76rem;
}

.admin-page .admin-dashboard .teacher-form > .photo-preview-wrap {
  margin: 0;
  padding: 12px;
  border: 1px solid #dce5df;
  border-radius: 7px;
  background: #f7f9f7;
}

.admin-page .admin-dashboard .photo-preview {
  max-width: 190px;
  border-radius: 6px;
}
.admin-page .admin-dashboard .service-fieldset {
  border-color: #d4e0d8;
  border-radius: 6px;
}

.admin-page .admin-dashboard .form-actions {
  gap: 8px;
}

.admin-page .admin-dashboard .form-actions button,
.admin-page .admin-dashboard .applications-toolbar button {
  min-height: 40px;
  margin: 0;
  border-radius: 6px;
  font-size: 0.82rem;
}

.admin-page .admin-dashboard .form-actions button[type="submit"] {
  background: #176b5d;
}

.admin-page .admin-dashboard .applications-panel {
  margin-top: 0;
}

.admin-page .admin-dashboard .expired-teacher-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid #d8e3dc;
  border-radius: 7px;
  background: #fff;
}

.admin-page .admin-dashboard .expired-teacher-card h5 {
  margin: 0;
  color: #20382f;
  font-size: 0.9rem;
}

.admin-page .admin-dashboard .expired-teacher-card p {
  margin: 5px 0 0;
  color: #68776f;
  font-size: 0.78rem;
}

.admin-page .admin-dashboard .expired-teacher-card button {
  flex: 0 0 auto;
  width: auto;
  min-height: 38px;
  margin: 0;
  border-radius: 6px;
  font-size: 0.78rem;
}

.admin-page .admin-dashboard .archive-subheading {
  margin-top: 24px;
}

.admin-page .admin-dashboard .applications-toolbar {
  gap: 9px;
  margin-top: 16px;
}

.admin-page .admin-dashboard .applications-toolbar label {
  color: #52675c;
  font-size: 0.78rem;
}

.admin-page .admin-dashboard .applications-toolbar select {
  min-height: 38px;
  min-width: 140px;
  margin: 0;
  padding: 7px 30px 7px 10px;
  border-radius: 6px;
  background-color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 0.8rem;
}

.admin-page .admin-dashboard .applications-toolbar .helper {
  color: #68776f;
  font-size: 0.78rem;
}

.admin-page .admin-dashboard .teacher-student-match-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  gap: 14px;
  max-width: 900px;
  margin-top: 16px;
}

.admin-page .admin-dashboard .teacher-student-match-controls > div {
  max-width: 360px;
}

.admin-page .admin-dashboard .teacher-student-match-controls label {
  display: block;
  margin: 0 0 6px;
  color: #52675c;
  font-size: 0.78rem;
}

.admin-page .admin-dashboard .teacher-student-match-controls select,
.admin-page .admin-dashboard .teacher-student-match-controls input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #cbd9d1;
  border-radius: 6px;
  background: #fff;
  font: 0.84rem "DM Sans", sans-serif;
}

.admin-page .admin-dashboard .teacher-student-match-form {
  display: grid;
  grid-template-columns: minmax(130px, 1.2fr) minmax(120px, 1fr) minmax(105px, 0.9fr) minmax(90px, 0.7fr) minmax(80px, 0.55fr) minmax(100px, 0.8fr) minmax(180px, 1.4fr) auto auto;
  align-items: end;
  gap: 9px;
}

.admin-page .admin-dashboard .teacher-student-match-form[hidden] {
  display: none;
}

.admin-page .admin-dashboard .teacher-student-match-parent-email {
  grid-column: 1 / -1;
}

.admin-page .admin-dashboard .teacher-student-match-parent-email-value {
  color: #52675c;
  font-size: 0.74rem;
  overflow-wrap: anywhere;
}

.admin-page .admin-dashboard .teacher-student-match-form button {
  width: auto;
  min-height: 40px;
  margin: 0;
  border-radius: 6px;
  font-size: 0.82rem;
}

.admin-page .admin-dashboard .teacher-student-match-form button[hidden] {
  display: none;
}

.admin-page .admin-dashboard .teacher-student-match-end-field output {
  display: flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid #dce5df;
  border-radius: 6px;
  background: #f3f6f3;
  color: #52675c;
  font-size: 0.78rem;
  white-space: nowrap;
}

.admin-page .admin-dashboard .teacher-student-match-list {
  display: grid;
  gap: 5px;
  max-width: 900px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.admin-page .admin-dashboard .teacher-student-match-list li {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(240px, 1.5fr) auto;
  min-height: 42px;
  align-items: center;
  gap: 12px;
  padding: 7px 10px;
  border-bottom: 1px solid #dce5df;
  color: #43594d;
  font-size: 0.82rem;
}

.admin-page .admin-dashboard .teacher-student-match-list li.helper,
.admin-page .admin-dashboard .teacher-student-match-list li.error {
  justify-content: flex-start;
  border-bottom: 0;
}

.admin-page .admin-dashboard .teacher-student-match-list button {
  flex: 0 0 auto;
  width: auto;
  min-height: 34px;
  margin: 0;
  padding: 6px 9px;
  border-radius: 5px;
  font-size: 0.74rem;
}

.admin-page .admin-dashboard .teacher-student-match-actions {
  display: flex;
  align-self: end;
  flex: 0 0 auto;
  gap: 6px;
}

.admin-page .admin-dashboard .teacher-student-match-link-form {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.admin-page .admin-dashboard .teacher-student-match-link-form label {
  color: #52675c;
  font-size: 0.68rem;
  font-weight: 700;
}

.admin-page .admin-dashboard .teacher-student-match-link-form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
}

.admin-page .admin-dashboard .teacher-student-match-link-form input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid #cbd9d2;
  border-radius: 5px;
  font: inherit;
  font-size: 0.72rem;
}

.admin-page .admin-dashboard .teacher-student-match-link-saved {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 10px;
  color: #285a45;
  font-size: 0.72rem;
  animation: teacher-match-link-saved 220ms ease-out both;
}

.admin-page .admin-dashboard .teacher-student-match-link-saved > span {
  font-weight: 700;
}

.admin-page .admin-dashboard .teacher-student-match-link-saved > a {
  color: #285a45;
  font-weight: 700;
}

@keyframes teacher-match-link-saved {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .admin-page .admin-dashboard .teacher-student-match-link-saved {
    animation: none;
  }
}

.admin-page .admin-dashboard .teacher-student-match-details {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.admin-page .admin-dashboard .teacher-student-match-schedule {
  color: #687a71;
  font-size: 0.74rem;
}

.admin-page .admin-dashboard .teacher-student-match-class {
  color: #52675c;
  font-size: 0.74rem;
}

.admin-page .admin-dashboard .teacher-student-match-recurring {
  display: inline-flex;
  width: max-content;
  padding: 3px 7px;
  border: 1px solid #c9dfd2;
  border-radius: 4px;
  background: #eaf3ed;
  color: #285a45;
  font-size: 0.68rem;
  font-weight: 700;
}

.admin-page .admin-dashboard .teacher-match-report-toolbar {
  align-items: center;
  justify-content: space-between;
}

.admin-page .admin-dashboard .teacher-match-report-toolbar .helper {
  margin: 0;
}

.admin-page .admin-dashboard .teacher-match-report-list {
  display: grid;
  gap: 16px;
}

.admin-page .admin-dashboard .teacher-match-report-group {
  padding-top: 14px;
  border-top: 1px solid #dce5df;
}

.admin-page .admin-dashboard .teacher-match-report-group h4 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 10px;
  color: #294d3d;
  font-size: 0.95rem;
}

.admin-page .admin-dashboard .teacher-match-report-group h4 span {
  color: #687a71;
  font-size: 0.75rem;
  font-weight: 400;
}

.admin-page .admin-dashboard .teacher-match-report-table-wrap {
  overflow-x: auto;
}

.admin-page .admin-dashboard .teacher-match-report-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  text-align: left;
}

.admin-page .admin-dashboard .teacher-match-report-table th,
.admin-page .admin-dashboard .teacher-match-report-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #e2e9e4;
  font-size: 0.78rem;
  white-space: nowrap;
}

.admin-page .admin-dashboard .teacher-match-report-table th {
  color: #52675c;
  font-weight: 700;
}

.admin-page .admin-dashboard .application-card {
  padding: 0;
  border-color: #d8e3dc;
  border-radius: 8px;
  background: #fff;
}

.admin-page .admin-dashboard .application-card-summary {
  display: flex;
  min-height: 56px;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
}

.admin-page .admin-dashboard .application-card-summary::-webkit-details-marker {
  display: none;
}

.admin-page .admin-dashboard .application-card-name {
  min-width: 0;
  overflow: hidden;
  color: #20372e;
  font-size: 0.94rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-page .admin-dashboard .application-card-toggle {
  flex: 0 0 auto;
  margin-left: auto;
  color: #176b5d;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.admin-page .admin-dashboard .application-card-toggle span:last-child,
.admin-page .admin-dashboard .application-card[open] .application-card-toggle span:first-child {
  display: none;
}

.admin-page .admin-dashboard .application-card[open] .application-card-toggle span:last-child {
  display: inline;
}

.admin-page .admin-dashboard .application-card-content {
  padding: 0 14px 14px;
}

.admin-page .admin-dashboard .application-details p {
  font-size: 0.82rem;
}

.admin-page .admin-dashboard .application-status {
  border-radius: 4px;
}

.admin-page .admin-dashboard .approve-btn,
.admin-page .admin-dashboard .danger-btn,
.admin-page .admin-dashboard .download-photo-btn {
  min-height: 38px;
  margin: 0;
  border-radius: 6px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.8rem;
}

.admin-page .admin-dashboard .parents-list {
  margin-top: 14px;
}

.admin-page .admin-dashboard .admin-disclosure {
  margin-top: 12px;
}

.admin-page .admin-dashboard .admin-disclosure > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 4px 0;
  color: #176b5d;
  font-size: 0.82rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.admin-page .admin-dashboard .admin-disclosure > summary::-webkit-details-marker {
  display: none;
}

.admin-page .admin-dashboard .admin-disclosure > summary::before {
  content: "+";
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid #a8c5b7;
  border-radius: 50%;
  font-size: 0.95rem;
  line-height: 1;
}

.admin-page .admin-dashboard .admin-disclosure[open] > summary::before {
  content: "-";
}

.admin-page .admin-dashboard .admin-disclosure > summary:focus-visible {
  outline: 2px solid #176b5d;
  outline-offset: 3px;
}

.admin-page .admin-dashboard .admin-disclosure-content {
  padding-top: 8px;
}

.admin-page .admin-dashboard #settings h4 {
  font-size: 0.95rem;
}

.admin-page .admin-dashboard #currentProfiles {
  display: block;
  margin-top: 0;
}

.admin-page .admin-dashboard .parent-report-row {
  grid-template-columns: 1.2fr 1.4fr 1fr 1fr 1.2fr;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid #dfe7e2;
  border-radius: 0;
  background: transparent;
  font-size: 0.8rem;
}

.admin-page .admin-dashboard .grid-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 26px 0 14px;
}

.admin-page .admin-dashboard .grid-header p {
  margin: 0;
}

.admin-page .admin-dashboard .teacher-grid {
  gap: 14px;
}

.admin-page .admin-dashboard .teacher-card {
  border-color: #d8e3dc;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(25, 54, 43, 0.06);
}

.admin-page .admin-dashboard .teacher-body {
  padding: 15px;
}

.admin-page .admin-dashboard .teacher-name {
  font-size: 1.08rem;
}

.admin-page .admin-dashboard .teacher-profile-details {
  border-radius: 6px;
  font-size: 0.74rem;
}

.admin-page .admin-dashboard .teacher-teaching-management {
  margin-top: 12px;
  padding: 11px;
  border: 1px solid #d8e3dc;
  border-radius: 6px;
  background: #f7f9f7;
}

.admin-page .admin-dashboard .teacher-teaching-management h5 {
  margin: 0 0 7px;
  color: #20382f;
  font-size: 0.82rem;
}

.admin-page .admin-dashboard .teacher-teaching-management > p {
  margin: 4px 0;
  color: #52675c;
  font-size: 0.76rem;
}

.admin-page .admin-dashboard .teacher-monthly-reports,
.admin-page .admin-dashboard .teacher-hours-adjustment {
  margin-top: 8px;
}

.admin-page .admin-dashboard .teacher-monthly-reports > summary,
.admin-page .admin-dashboard .teacher-hours-adjustment > summary {
  color: #176b5d;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.admin-page .admin-dashboard .teacher-monthly-reports ul {
  display: grid;
  gap: 5px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.admin-page .admin-dashboard .teacher-monthly-reports li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #52675c;
  font-size: 0.72rem;
}

.admin-page .admin-dashboard .teacher-hours-adjustment-form {
  display: grid;
  gap: 7px;
  margin-top: 8px;
}

.admin-page .admin-dashboard .teacher-hours-adjustment-form label {
  color: #52675c;
  font-size: 0.74rem;
  font-weight: 700;
}

.admin-page .admin-dashboard .teacher-hours-adjustment-form input {
  min-width: 0;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #cbd9d1;
  border-radius: 5px;
  background: #fff;
  font: inherit;
  font-size: 0.8rem;
}

.admin-page .admin-dashboard .teacher-hours-adjustment-form .helper {
  margin: 0;
  font-size: 0.72rem;
}

.admin-page .admin-dashboard .teacher-hours-adjustment-form button {
  width: fit-content;
  min-height: 36px;
  margin: 0;
  padding: 7px 10px;
  border-radius: 5px;
  font-size: 0.76rem;
}

.admin-page .admin-dashboard .card-actions .action-btn {
  min-height: 36px;
  border-radius: 6px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.78rem;
}

@media (max-width: 760px) {
  .admin-page .admin-dashboard {
    padding: 14px 14px 40px;
    border-radius: 12px;
  }

  .admin-page .admin-dashboard .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 22px;
  }

  .admin-page .admin-dashboard .topbar-actions {
    width: 100%;
  }

  .admin-page .admin-dashboard .topbar-actions .ghost-btn {
    flex: 1 1 135px;
  }

  .admin-page .admin-dashboard .admin-section-nav {
    gap: 4px;
    margin-right: -2px;
    margin-left: -2px;
  }

  .admin-page .admin-dashboard .admin-panel {
    padding: 20px 16px;
  }

  .admin-page .admin-dashboard .teacher-student-match-controls {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-page .admin-dashboard .teacher-student-match-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-page .admin-dashboard .teacher-student-match-name,
  .admin-page .admin-dashboard .teacher-student-match-parent-email,
  .admin-page .admin-dashboard .teacher-student-match-end-field,
  .admin-page .admin-dashboard .teacher-student-match-meet-field,
  .admin-page .admin-dashboard .teacher-student-match-form button {
    grid-column: 1 / -1;
  }

  .admin-page .admin-dashboard .teacher-student-match-list li:not(.helper):not(.error) {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-page .admin-dashboard .teacher-form {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .admin-page .admin-dashboard .teacher-form > label,
  .admin-page .admin-dashboard .teacher-form > input:not([type="hidden"]),
  .admin-page .admin-dashboard .teacher-form > select,
  .admin-page .admin-dashboard .teacher-form > textarea,
  .admin-page .admin-dashboard .teacher-form > .compact,
  .admin-page .admin-dashboard .teacher-form > .photo-preview-wrap,
  .admin-page .admin-dashboard .teacher-form > .service-fieldset,
  .admin-page .admin-dashboard .teacher-form > .form-actions,
  .admin-page .admin-dashboard .teacher-form > #adminMessage {
    grid-column: 1;
  }

  .admin-page .admin-dashboard .admin-teacher-message-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-page .admin-dashboard .admin-teacher-message-form select,
  .admin-page .admin-dashboard .admin-teacher-message-form textarea,
  .admin-page .admin-dashboard .admin-teacher-message-form button,
  .admin-page .admin-dashboard .admin-teacher-message-form #adminTeacherMessageStatus {
    grid-column: 1;
  }

  .admin-teacher-message-thread-heading { align-items: flex-start; flex-direction: column; }
  .admin-teacher-message-item { max-width: 100%; }

  .admin-page .admin-dashboard .teacher-form > label {
    align-self: auto;
    margin-top: 7px;
  }

  .admin-page .admin-dashboard .teacher-form > label:first-of-type {
    margin-top: 0;
  }

  .admin-page .admin-dashboard .parent-report-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }

  .admin-page .admin-dashboard .grid-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-page .admin-dashboard .topbar-actions .ghost-btn,
  .admin-page .admin-section-nav a {
    transition: none;
  }
}

.admin-page .invoice-form {
  max-width: 820px;
  margin-top: 20px;
}

.admin-page .invoice-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}

.admin-page .invoice-field label {
  display: block;
  margin-bottom: 6px;
  color: #43594d;
  font-size: 0.8rem;
  font-weight: 700;
}

.admin-page .invoice-field input,
.admin-page .invoice-field select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #cbd9d1;
  border-radius: 6px;
  background: #fff;
  font: 0.9rem "DM Sans", sans-serif;
}

.admin-page .invoice-estimate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 520px;
  margin: 20px 0 16px;
  padding: 14px 0;
  border-top: 1px solid #d4e0d8;
  border-bottom: 1px solid #d4e0d8;
  color: #43594d;
  font-size: 0.88rem;
  font-weight: 700;
}

.admin-page .invoice-estimate-row output {
  color: #176b5d;
  font-size: 1.1rem;
  font-weight: 800;
  text-align: right;
}

.admin-page .invoice-preview {
  max-width: 820px;
  margin-top: 24px;
  scroll-margin-top: 20px;
}

.admin-page .invoice-paper {
  padding: 40px;
  border: 1px solid #d9e2dc;
  background: #fff;
  color: #243a31;
  font-family: "DM Sans", sans-serif;
}

.admin-page .invoice-paper-header,
.admin-page .invoice-meta-row,
.admin-page .invoice-brand,
.admin-page .invoice-estimate-row,
.admin-page .invoice-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.admin-page .invoice-brand {
  justify-content: flex-start;
  gap: 12px;
}

.admin-page .invoice-brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 6px;
  background: #163f35;
  color: #f4bd61;
  font-size: 1.45rem;
  font-weight: 800;
}

.admin-page .invoice-brand-name {
  display: grid;
  gap: 1px;
  color: #163f35;
  font-size: 1.12rem;
}

.admin-page .invoice-brand-name span {
  color: #64766c;
  font-size: 0.78rem;
}

.admin-page .invoice-document-title {
  text-align: right;
}

.admin-page .invoice-document-title p,
.admin-page .invoice-kicker {
  margin: 0 0 5px;
  color: #718078;
  font-size: 0.68rem;
  font-weight: 800;
}

.admin-page .invoice-document-title h4 {
  margin: 0;
  color: #163f35;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
}

.admin-page .invoice-meta-row {
  margin-top: 24px;
  padding: 12px 0;
  border-top: 1px solid #d9e2dc;
  border-bottom: 1px solid #d9e2dc;
  color: #64766c;
  font-size: 0.78rem;
}

.admin-page .invoice-meta-row p {
  margin: 0;
}

.admin-page .invoice-meta-row strong {
  color: #243a31;
}

.admin-page .invoice-bill-to {
  margin: 26px 0 20px;
}

.admin-page .invoice-bill-to h5,
.admin-page .invoice-payment-details h5 {
  margin: 0;
  color: #243a31;
  font-size: 1rem;
}

.admin-page .invoice-line-items {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  text-align: left;
}

.admin-page .invoice-line-items th {
  padding: 10px 8px;
  border-bottom: 1px solid #b9c9bf;
  color: #64766c;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.admin-page .invoice-line-items td {
  padding: 14px 8px;
  border-bottom: 1px solid #e1e8e3;
  vertical-align: top;
}

.admin-page .invoice-line-items th:not(:first-child),
.admin-page .invoice-line-items td:not(:first-child) {
  text-align: right;
  white-space: nowrap;
}

.admin-page .invoice-total-row {
  justify-content: flex-end;
  margin-top: 14px;
  color: #64766c;
  font-size: 0.85rem;
}

.admin-page .invoice-total-row strong {
  min-width: 150px;
  color: #163f35;
  font-size: 1.25rem;
  text-align: right;
}

.admin-page .invoice-payment-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.9fr);
  gap: 14px 24px;
  margin-top: 34px;
  padding: 20px;
  border-left: 3px solid #176b5d;
  background: #f3f7f4;
}

.admin-page .invoice-payment-details dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.admin-page .invoice-payment-details dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78rem;
}

.admin-page .invoice-payment-details dt {
  color: #64766c;
}

.admin-page .invoice-payment-details dd {
  margin: 0;
  color: #243a31;
  font-weight: 700;
  text-align: right;
}

.admin-page .invoice-payment-note {
  grid-column: 1 / -1;
  margin: 0;
  color: #64766c;
  font-size: 0.72rem;
  line-height: 1.5;
}

.admin-page .invoice-paper-footer {
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px solid #d9e2dc;
  color: #718078;
  font-size: 0.7rem;
}

.admin-page .invoice-print-actions {
  margin-top: 14px;
}

@media (max-width: 760px) {
  .admin-page .invoice-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-page .invoice-paper {
    padding: 22px 16px;
  }

  .admin-page .invoice-payment-details {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
  }

  .admin-page .invoice-payment-note {
    grid-column: 1;
  }
}

@media print {
  @page {
    size: A4;
    margin: 14mm;
  }

  body.admin-page * {
    visibility: hidden !important;
  }

  body.admin-page #invoicePrintArea,
  body.admin-page #invoicePrintArea * {
    visibility: visible !important;
  }

  body.admin-page #invoicePrintArea {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body.admin-page .invoice-print-actions {
    display: none !important;
  }
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: 0 10px 30px rgba(24, 36, 42, 0.12);
}

.topbar h2 {
  margin-top: 4px;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.topbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ghost-btn {
  background: white;
  color: var(--ink);
  border: 1px solid #d0ddd8;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
}

.grid-header {
  margin-bottom: 14px;
}

.grid-header h3 {
  font-size: 1.4rem;
}

.grid-header p {
  margin-top: 6px;
  color: var(--muted);
}

.subject-filter-label {
  display: block;
  margin-top: 18px;
  font-size: 0.9rem;
  font-weight: 700;
}

#subjectFilter {
  width: min(420px, 100%);
  margin-top: 7px;
}

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.teacher-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 16px 0 20px;
}

.teacher-pagination button {
  min-width: 44px;
  margin-top: 0;
  padding: 8px 12px;
  font-size: 1.1rem;
  line-height: 1;
}

.teacher-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.admin-panel {
  margin-bottom: 20px;
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 30px rgba(24, 36, 42, 0.1);
  border: 1px solid #e4edeb;
}

.applications-panel {
  margin-top: 20px;
}

.applications-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.approved-application-search {
  align-items: center;
}

.approved-application-search label {
  flex: 0 0 auto;
}

.approved-application-search input[type="search"] {
  min-width: 180px;
  flex: 1 1 240px;
  margin: 0;
}

.approved-application-search .helper {
  margin-left: auto;
}

.teacher-documents-list {
  display: grid;
  margin-top: 8px;
}

.teacher-document-group {
  padding: 16px 0;
  border-bottom: 1px solid #e4edeb;
}

.teacher-document-group:last-child {
  border-bottom: 0;
}

.teacher-document-group-header,
.teacher-document-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.teacher-document-group-header h4 {
  margin: 0;
  color: var(--ink);
}

.teacher-document-group-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.teacher-document-rows {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.teacher-document-row {
  min-height: 48px;
  padding: 8px 0 8px 12px;
  border-left: 3px solid #d9e8df;
}

.teacher-document-row > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.teacher-document-row small {
  overflow-wrap: anywhere;
  color: var(--muted);
}

.teacher-document-row button {
  flex: 0 0 auto;
  margin: 0;
}

@media (max-width: 520px) {
  .teacher-document-group-header,
  .teacher-document-row {
    align-items: flex-start;
  }

  .teacher-document-group-header {
    flex-direction: column;
    gap: 8px;
  }

  .teacher-document-row button {
    min-width: 88px;
  }
}

.application-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
}

.application-pagination button {
  min-width: 44px;
  margin-top: 0;
  padding: 8px 12px;
  font-size: 1.1rem;
  line-height: 1;
}

.application-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.parents-list {
  display: grid;
  gap: 8px;
}

.support-chat-workspace {
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.8fr);
  gap: 20px;
  align-items: stretch;
}

.support-conversation-list,
.support-thread-panel {
  min-height: 540px;
  padding: 18px;
  border: 1px solid #dce7e3;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
}

.support-conversation-list > div:last-child {
  margin-top: 14px;
  max-height: 430px;
  overflow-y: auto;
}

.support-conversation-row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #e7efec;
}

.support-conversation-item {
  display: grid;
  min-width: 0;
  flex: 1 1 auto;
  width: 100%;
  gap: 4px;
  padding: 12px 12px 12px 10px;
  border: 0;
  border-left: 3px solid transparent;
  border-bottom: 1px solid #e7efec;
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}

.support-conversation-row .support-conversation-item {
  width: auto;
  border-bottom: 0;
}

.support-conversation-delete {
  display: grid;
  width: 36px;
  min-width: 36px;
  min-height: 36px;
  flex: 0 0 36px;
  align-self: flex-start;
  margin: 10px 8px 0 0;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #697970;
  cursor: pointer;
}

.support-conversation-delete:hover {
  background: #fbeceb;
  color: #a23c35;
}

.support-conversation-delete:focus-visible {
  outline: 2px solid #a23c35;
  outline-offset: 2px;
}

.support-conversation-delete svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.support-conversation-item:hover,
.support-conversation-item.is-selected { background: #eaf3ed; }
.support-conversation-item.has-unread { border-left-color: #d49a39; background: #fff8e9; }
.support-conversation-item.has-unread.is-selected { background: #f7f0dc; }
.support-admin-page .support-conversation-item:hover,
.support-admin-page .support-conversation-item.is-selected { border-left-color: #34775e; }
.support-conversation-item strong { color: var(--ink); }
.support-visitor-name { font-size: 1rem; }
.support-visitor-email { color: var(--accent); font-size: 0.85rem; font-weight: 700; }
.support-conversation-meta { display: flex; align-items: center; gap: 8px; min-width: 0; }
.support-conversation-item small { overflow: hidden; color: #68776f; text-overflow: ellipsis; white-space: nowrap; }
.support-conversation-item em { margin-left: auto; color: var(--accent); font-size: 0.7rem; font-style: normal; font-weight: 700; white-space: nowrap; }
.support-conversation-item.has-unread em { color: #a66b1f; }
.support-unread-count { display: grid; min-width: 20px; height: 20px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #d49a39; color: #fff; font-size: 0.68rem; font-weight: 700; }

.support-admin-page .support-thread-panel { display: flex; flex-direction: column; }
.support-thread-empty { margin: auto; text-align: center; color: var(--muted); }
.support-thread-empty h2 { font-size: 1.45rem; }
.support-thread-empty p { max-width: 340px; margin: 8px auto 0; color: #68776f; line-height: 1.6; }
.support-thread-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; border-bottom: 1px solid #e1ebe7; padding-bottom: 14px; }
.support-thread-header h2 { margin: 3px 0; }
.support-admin-page .support-thread-email { color: #397261; font-size: 0.8rem; }
.support-admin-page .chat-status { flex: 0 0 auto; margin-top: 4px; border-radius: 4px; }
.support-thread-messages {
  display: grid;
  flex: 1 1 auto;
  gap: 14px;
  max-height: 430px;
  min-height: 200px;
  align-content: start;
  overflow-y: auto;
  margin: 14px 0;
  padding: 18px;
  border: 1px solid rgba(69, 111, 91, 0.1);
  border-radius: 8px;
  background: linear-gradient(145deg, #f4f7f1, #edf4ef);
}
.support-thread-message { max-width: 78%; padding: 13px 16px; border-radius: 14px; box-shadow: 0 3px 10px rgba(29, 58, 45, 0.07); }
.support-thread-message span { display: block; margin-bottom: 6px; font-size: 0.76rem; font-weight: 700; }
.support-thread-message p { margin: 0; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.visitor-message { justify-self: start; border: 1px solid #e2e9e4; border-bottom-left-radius: 4px; background: #fff; color: var(--ink); }
.admin-message { justify-self: end; border: 1px solid #cce3d4; border-bottom-right-radius: 4px; background: #dcefe2; color: #173f34; }
.support-reply-form { display: grid; gap: 8px; border-top: 1px solid #e1ebe7; padding-top: 14px; }
.support-admin-page .support-reply-form { display: grid; gap: 8px; border-top: 1px solid #e1ebe7; padding-top: 14px; }
.support-admin-page .support-reply-form label { font-size: 0.82rem; }
.support-reply-form textarea { min-height: 100px; resize: vertical; }
.support-admin-page .support-reply-form textarea { border: 1px solid #cbd9d0; border-radius: 6px; background: #fff; font-family: "DM Sans", sans-serif; font-size: 0.9rem; transition: border-color 150ms ease, box-shadow 150ms ease; }
.support-admin-page .support-reply-form textarea:focus { border-color: #34775e; outline: none; box-shadow: 0 0 0 3px rgba(52, 119, 94, 0.15); }
.support-admin-page .support-reply-form button { min-height: 42px; margin: 0; border-radius: 6px; font-family: "DM Sans", sans-serif; font-size: 0.82rem; }

@media (max-width: 760px) {
  .support-chat-workspace { grid-template-columns: 1fr; }
  .support-conversation-list,
  .support-thread-panel { min-height: auto; }
  .support-thread-message { max-width: 92%; }
  .support-admin-page .support-chat-workspace { grid-template-columns: minmax(0, 1fr); }
  .support-admin-page .topbar { align-items: flex-start; flex-direction: column; }
  .support-admin-page .topbar-actions { width: 100%; }
  .support-admin-page .topbar-actions .ghost-btn { flex: 1 1 140px; }
  .support-admin-page .support-conversation-heading { align-items: flex-start; }
}

@media (max-width: 480px) {
  .support-admin-page .view-dashboard { padding: 16px 14px 28px; }
  .support-admin-page .topbar { padding: 18px; }
  .support-admin-page .topbar h1 { font-size: 1.55rem; }
  .support-admin-page .support-conversation-list,
  .support-admin-page .support-thread-panel { padding: 14px; }
  .support-admin-page .support-conversation-heading { flex-direction: column; }
  .support-admin-page .support-notification-toggle { width: 100%; min-height: 36px; }
  .support-thread-header { flex-direction: column; gap: 8px; }
}

.support-questions-list {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.support-question-card {
  padding: 16px;
  border: 1px solid #d8e6df;
  border-radius: 10px;
  background: #fbfdfc;
}

.support-question-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: #527066;
}

.support-question-meta strong { color: #173f34; }
.support-question-text { white-space: pre-wrap; }
.support-question-card textarea { width: 100%; min-height: 88px; resize: vertical; }

.parent-report-row {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1fr 1fr 1.2fr;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #dce7e3;
  border-radius: 10px;
  background: #f7faf8;
  color: var(--muted);
  font-size: 0.9rem;
}

.parent-report-row strong {
  color: var(--ink);
}

.applications-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.applications-toolbar label {
  font-weight: 700;
}

.applications-toolbar select {
  width: auto;
  min-width: 150px;
}

.applications-toolbar .helper {
  margin-right: auto;
}

.application-card {
  border: 1px solid #dce9e4;
  border-radius: 12px;
  padding: 14px;
  background: rgba(248, 252, 250, 0.82);
}

.application-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.application-card-header h4 {
  font-size: 1.08rem;
}

.application-status {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #0f5f53;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: capitalize;
}

.application-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 16px;
  margin-top: 12px;
}

.application-details p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.application-details p:last-child {
  grid-column: 1 / -1;
}

.application-details strong {
  color: var(--ink);
}

.application-photo {
  display: block;
  width: 110px;
  height: 110px;
  margin-top: 12px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #dce9e4;
}

.application-photo-wrap {
  margin-top: 12px;
}

.application-photo-wrap .application-photo {
  margin-top: 0;
}

.application-video-review {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin-top: 14px;
}

.application-intro-video-preview {
  display: block;
  width: min(100%, 560px);
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background: #17241d;
}

.application-intro-video-preview[hidden] { display: none; }

.application-video-review .helper { margin: 0; }

.application-video-upload-btn {
  width: auto;
  min-height: 40px;
  padding: 9px 14px;
  border: 0;
  border-radius: 4px;
  background: #285c48;
  color: #fff;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.application-video-upload-btn:hover { background: #1f4939; }
.application-video-upload-btn:disabled { cursor: wait; opacity: 0.65; }

.application-video-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.application-intro-video-preview { max-height: 320px; }

.download-photo-btn {
  display: inline-flex;
  margin-top: 8px;
  padding: 8px 11px;
  border: 1px solid #176b5d;
  border-radius: 9px;
  color: #176b5d;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.download-photo-btn:hover,
.download-photo-btn:focus-visible {
  background: #e2f2ed;
}

.application-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.approve-btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  background: #176b5d;
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.approve-btn:disabled,
.danger-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.application-photo-preview {
  margin-top: 8px;
  max-width: 180px;
}

.admin-panel h3 {
  font-size: 1.25rem;
}

.admin-panel-header p {
  margin-top: 6px;
  color: var(--muted);
}

.teacher-form {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.photo-preview-wrap {
  margin-top: 4px;
  border: 1px solid #dce9e4;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  padding: 10px;
}

.preview-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

.photo-preview {
  margin-top: 8px;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px dashed #c8dbd4;
  background: linear-gradient(140deg, #f5f7f6, #eef3f1);
  display: block;
}

.photo-preview.is-empty {
  opacity: 0.55;
}

.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.service-fieldset {
  margin: 2px 0 0;
  border: 1px solid #d8e6e1;
  border-radius: 12px;
  padding: 10px 12px;
}

.service-fieldset legend {
  padding: 0 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 0.95rem;
}

.check-row input {
  width: 18px;
  height: 18px;
  padding: 0;
  border-radius: 6px;
}

.policy-agreement {
  align-items: flex-start;
  line-height: 1.5;
}

.policy-agreement input {
  flex: 0 0 18px;
  margin-top: 3px;
}

.policy-agreement a {
  color: var(--accent);
  font-weight: 700;
}

.form-actions button {
  margin-top: 0;
}

.teacher-card {
  position: relative;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(20, 27, 31, 0.09);
  border: 1px solid #dce7e3;
  transform: translateY(14px);
  opacity: 0;
  animation: reveal 550ms ease forwards;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.teacher-card:hover {
  border-color: #b8d2c6;
  box-shadow: 0 15px 32px rgba(20, 54, 43, 0.14);
}

.teacher-card.is-preferred,
.teacher-card.is-preferred:hover {
  border-color: #0f5f53;
  box-shadow: 0 0 0 3px rgba(15, 95, 83, 0.14), 0 10px 26px rgba(20, 27, 31, 0.09);
}

.teacher-preferred-badge {
  display: inline-flex;
  margin-top: 5px;
  padding: 3px 7px;
  border: 1px solid #a9cbbd;
  border-radius: 4px;
  background: #e5f0e9;
  color: #245b45;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.teacher-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.teacher-body {
  padding: 20px 20px 18px;
}

.teacher-name {
  font-family: "Manrope", "DM Sans", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
}

.teacher-profile-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 12px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #e2ece8;
  border-radius: 8px;
  background: #f8faf9;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.teacher-profile-details span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.teacher-profile-details b {
  color: var(--ink);
}

.teacher-profile-details span:last-child {
  grid-column: 1 / -1;
}

.teacher-compact-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.teacher-name-link {
  color: var(--ink);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.teacher-name-link:hover,
.teacher-name-link:focus-visible {
  color: var(--accent);
}

.subject-pill {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #0f5f53;
  font-size: 0.84rem;
  font-weight: 700;
}

.subject-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.subject-list .subject-pill {
  margin-top: 0;
}

.teacher-rate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #e7d8b7;
  border-radius: 8px;
  background: #fcf8ed;
}

.teacher-rate-label {
  color: #58695f;
  font-size: 0.82rem;
  font-weight: 700;
}

.teacher-rate strong {
  color: #205345;
  font-size: 1.05rem;
  text-align: right;
  overflow-wrap: anywhere;
}

.teacher-rate small {
  color: #66766e;
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
}

.meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.35;
}

.meta strong {
  color: var(--ink);
}

.profile-facts,
.verification-summary {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #dce7e3;
  border-radius: 10px;
  background: #f7faf8;
}

.profile-facts .meta,
.verification-summary .meta {
  margin-top: 5px;
}

.profile-facts .meta:first-child,
.verification-summary .meta:first-child {
  margin-top: 0;
}

.teacher-introduction {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.contact-locked,
.contact-unlocked {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #dce7e3;
  color: var(--muted);
  font-size: 0.88rem;
}

.teacher-contact-action {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #dce7e3;
}

.contact-teacher-btn {
  min-height: 40px;
  padding: 9px 14px;
  margin-top: 0;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  font-size: 0.875rem;
  line-height: 1.3;
}

.contact-teacher-btn:focus-visible {
  outline: 3px solid rgba(12, 127, 111, 0.28);
  outline-offset: 2px;
}

.contact-teacher-btn:disabled {
  cursor: wait;
  opacity: 0.7;
}

.contact-status {
  min-height: 1.2em;
  margin-top: 8px;
  color: var(--accent);
  font-size: 0.88rem;
}

.contact-unlocked {
  color: var(--accent);
  font-weight: 700;
}

.payment-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  width: min(900px, 100%);
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  animation: riseIn 600ms ease forwards;
}

.payment-summary,
.gateway-box {
  padding: 34px;
}

.payment-summary {
  background: #173f3a;
  color: white;
}

.payment-summary .eyebrow {
  color: #9de0d2;
}

.payment-summary h1 {
  margin-top: 10px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.payment-summary > p:not(.eyebrow) {
  margin-top: 14px;
  color: #d4e7e3;
  line-height: 1.5;
}

.order-summary {
  margin: 28px 0 0;
}

.order-summary div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.order-summary dt {
  color: #b9d3ce;
}

.order-summary dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
}

.gateway-status {
  font-weight: 700;
}

.payment-warning {
  margin-top: 8px;
  padding: 10px 12px;
  border-left: 3px solid var(--warm);
  background: #fff4df;
  color: #684b1f;
  font-size: 0.86rem;
}

.payment-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.payment-fields label {
  display: block;
  margin-bottom: 10px;
}

.dbs-row {
  margin-top: 10px;
}

.dbs-pill {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid #d5e6e0;
  background: #eef5f2;
  color: #2a4b42;
}

.service-row {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.service-pill {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid #d9dff0;
  background: #eff3ff;
  color: #2e3d73;
}

.card-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.action-btn {
  margin-top: 0;
  padding: 8px 12px;
  font-size: 0.88rem;
}

.danger-btn {
  background: #f7d3d8;
  color: #8f1d35;
  border: 1px solid #efb7c1;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes driftA {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(30px, 20px);
  }
}

@keyframes driftB {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-24px, -18px);
  }
}

@keyframes heroBackdrop {
  from {
    transform: scale(1) translate3d(-1%, -1%, 0);
  }
  to {
    transform: scale(1.12) translate3d(2%, 2%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-hero::after { animation: none; }
}

@media (max-width: 640px) {
  .app-shell {
    padding: 14px;
  }

  .landing-shell { padding: 16px 12px 28px; }
  .landing-nav { padding: 0 4px; }
  .brand { font-size: 1.25rem; }
  .brand-mark { width: 30px; height: 30px; font-size: 1rem; }
  .support-nav-link { padding: 8px 12px; }
  .landing-nav-links { gap: 6px; }
  .landing-main { padding-top: 28px; }

  .about-intro {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .about-badge { width: 112px; height: 112px; }
  .about-highlights { grid-template-columns: 1fr; }

  .parent-report-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .landing-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 26px 18px 20px;
  }
  .landing-gallery img {
    width: 155px;
    height: 220px;
    opacity: 0.2;
  }
  .landing-gallery img:nth-child(1) { top: 15%; left: -58px; }
  .landing-gallery img:nth-child(2) { bottom: 6%; left: -48px; }
  .landing-gallery img:nth-child(3) { top: 12%; right: -60px; }
  .landing-gallery img:nth-child(4) { right: -52px; bottom: 10%; }
  .landing-hero > .hero-copy,
  .landing-hero > .role-options { grid-column: 1 / -1; }
  .landing-eyebrow { font-size: 0.72rem; }
  .hero-copy h1 {
    max-width: 100%;
    margin-top: 10px;
    font-size: clamp(2.35rem, 11.5vw, 3.5rem);
    line-height: 1.02;
  }
  .hero-lede { margin-top: 18px; }
  .landing-hero .role-options { gap: 10px; }
  .landing-hero .role-option { grid-template-columns: 42px minmax(0, 1fr) auto; padding: 12px 10px; }
  .landing-hero .role-option strong { font-size: 1rem; }
  .landing-hero .role-option small { font-size: 0.86rem; }
  .landing-trust { grid-template-columns: 1fr; gap: 10px; padding: 20px 4px 0; }
  .landing-trust div { gap: 10px; }
  .landing-trust span { font-size: 0.92rem; }
  .landing-mission { margin-top: 18px; font-size: 0.82rem; line-height: 1.45; }
  .landing-testimonials { margin-top: 46px; }
  .landing-testimonials h2 { font-size: clamp(1.65rem, 8vw, 2.2rem); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .testimonial-card { padding: 20px; }

  .hero-card {
    padding: 20px;
  }

  .role-panel {
    padding: 24px 18px;
  }

  .role-option {
    grid-template-columns: 42px 1fr auto;
    padding: 14px 12px;
  }

  .role-mark {
    width: 42px;
    height: 42px;
  }

  .payment-panel {
    grid-template-columns: 1fr;
  }

  .payment-summary,
  .gateway-box {
    padding: 22px 18px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions {
    width: 100%;
  }

  .topbar-actions .ghost-btn {
    flex: 1;
    min-width: 150px;
  }

  .ghost-btn {
    width: 100%;
  }

  .form-actions {
    flex-direction: column;
  }
}

.teacher-application-view {
  width: min(100%, 1080px);
  margin-inline: auto;
}

.teacher-application-page {
  background: #edf3ee;
  font-family: "DM Sans", sans-serif;
  font-size: 17px;
}

.teacher-application-page .app-shell {
  background: #edf3ee;
}

.teacher-application-page .aurora {
  display: none;
}

.teacher-auth-panel {
  display: grid;
  min-height: 640px;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  background: #fff;
  box-shadow: 0 24px 68px rgba(24, 54, 43, 0.14);
}

.is-teacher-application-route #teacherAuthPanel {
  display: none;
}

.teacher-auth-story {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
  padding: 44px clamp(30px, 5vw, 62px) 50px;
  overflow: hidden;
  background: #203d35;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 18px);
  color: #fff;
}

.teacher-auth-story::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 100%;
  background: #c85e47;
  content: "";
}

.teacher-auth-home {
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
}

.teacher-auth-home span {
  color: #edc779;
}

.teacher-auth-story .eyebrow {
  margin: auto 0 14px;
  color: #edc779;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.teacher-auth-story h1 {
  max-width: 460px;
  margin: 0;
  color: #fff;
  font-family: "Fraunces", Georgia, serif;
  font-size: 50px;
  font-weight: 500;
  line-height: 1.08;
  text-wrap: balance;
}

.teacher-auth-lede {
  max-width: 42ch;
  margin: 18px 0 0;
  color: #e4eee8;
  font-size: 0.98rem;
  line-height: 1.7;
}

.teacher-auth-footnote {
  max-width: 42ch;
  margin: 46px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  color: #d7e2dc;
  font-size: 0.8rem;
  line-height: 1.55;
}

.teacher-auth-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 48px clamp(26px, 4vw, 52px);
  border-left: 1px solid #e7eee9;
}

.teacher-auth-content > * {
  width: min(100%, 410px);
}

.teacher-auth-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 5px;
  background: #edf3ef;
}

.teacher-auth-switch button {
  min-height: 42px;
  margin: 0;
  padding: 8px 12px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #496258;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.teacher-auth-switch button.is-active {
  background: #203d35;
  color: #fff;
  box-shadow: none;
}

.teacher-auth-form {
  display: grid;
  gap: 10px;
  margin-top: 30px;
}

.teacher-auth-form[hidden],
.teacher-auth-content [hidden],
#teacherApplicationArea[hidden] {
  display: none !important;
}

.teacher-auth-form h2 {
  margin: 0;
  color: #203d35;
  font-family: "Fraunces", Georgia, serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.2;
}

.teacher-auth-form > p {
  margin: 0 0 8px;
  color: #5b6d65;
  font-size: 0.86rem;
  line-height: 1.55;
}

.teacher-auth-form > label {
  margin-top: 5px;
  color: #30483d;
  font-size: 0.8rem;
  font-weight: 700;
}

.teacher-auth-form input {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 11px 13px;
  border: 1px solid #cad9d1;
  border-radius: 4px;
  background: #fff;
  color: #1e2a2f;
  font: inherit;
  font-size: 0.95rem;
}

.teacher-auth-form input:focus-visible {
  border-color: #347966;
  outline: 3px solid rgba(52, 121, 102, 0.16);
}

.password-field {
  position: relative;
  display: block;
  width: 100%;
}

.password-field > input {
  width: 100%;
  padding-right: 48px;
}

.password-field .password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  display: grid;
  width: 32px;
  min-height: 32px;
  margin: 0;
  padding: 0;
  transform: translateY(-50%);
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #53675e;
  font: inherit;
  cursor: pointer;
}

.teacher-auth-form .password-field .password-toggle {
  z-index: 1;
  border: 1px solid #cad9d1;
  background: #f5f8f6;
  color: #315a49;
}

.admin-page .admin-login-content form .password-field button.password-toggle,
.parent-auth-card form .password-field button.password-toggle {
  width: 32px;
  min-height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.password-field .password-toggle:hover {
  background: #edf4f0;
  color: #176b5d;
}

.password-field .password-toggle:focus-visible {
  outline: 2px solid #347966;
  outline-offset: 1px;
}

.password-field .password-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.teacher-auth-hint {
  color: #65766e;
  font-size: 0.74rem;
  line-height: 1.45;
}

.teacher-auth-submit,
.teacher-auth-secondary {
  width: 100%;
  min-height: 48px;
  margin: 12px 0 0;
  padding: 11px 16px;
  border: 0;
  border-radius: 4px;
  font: inherit;
  font-size: 0.87rem;
  font-weight: 800;
  cursor: pointer;
}

.teacher-auth-submit {
  background: #c85e47;
  color: #fff;
  transition: background-color 150ms ease, transform 150ms ease;
}

.teacher-auth-submit:hover {
  background: #aa4936;
  transform: translateY(-1px);
}

.teacher-auth-link {
  justify-self: end;
  min-height: 0;
  margin: -2px 0 0;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #23644f;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.teacher-auth-link:hover {
  color: #173f33;
}

.teacher-auth-link:focus-visible {
  outline: 2px solid #347966;
  outline-offset: 3px;
}

.teacher-auth-submit:disabled,
.teacher-auth-secondary:disabled {
  cursor: wait;
  opacity: 0.68;
}

.teacher-auth-secondary {
  min-height: 40px;
  margin-top: 0;
  background: transparent;
  color: #23644f;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.teacher-auth-message {
  margin: 12px 0 0;
  padding: 0;
  color: #35594b;
  font-size: 0.8rem;
  line-height: 1.5;
}

.teacher-auth-message:empty {
  display: none;
}

.teacher-auth-message.error {
  color: #a33e34;
}

.teacher-auth-back {
  align-self: flex-start;
  margin-top: 24px;
  color: #a94b39;
  font-size: 0.78rem;
  font-weight: 700;
  text-underline-offset: 3px;
}

.teacher-auth-back:hover { color: #7f392e; }

.application-header {
  padding-right: 180px;
}

.teacher-signout-btn {
  position: absolute;
  top: 35px;
  right: 44px;
  min-height: 40px;
  margin: 0;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 5px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.teacher-application-card {
  width: 100%;
  margin: 24px auto;
  padding: 0;
  border: 1px solid rgba(207, 224, 218, 0.8);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 54px rgba(24, 54, 43, 0.12);
}

.application-header {
  position: relative;
  overflow: hidden;
  padding: 40px clamp(26px, 5vw, 54px) 42px;
  background: linear-gradient(115deg, #1e3932, #285447);
  color: #fff;
}

.application-header::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 7px;
  height: 100%;
  background: #e7b95f;
  content: "";
}

.application-header .eyebrow {
  color: #f0c878;
  font-size: 0.76rem;
}

.application-header h1 {
  max-width: 700px;
  margin-top: 12px;
  color: #fff;
  font-size: 2.65rem;
  line-height: 1.1;
}

.application-content {
  padding: 30px clamp(26px, 5vw, 54px) 40px;
}

.teacher-application-card h1 {
  max-width: 700px;
  font-size: 2.5rem;
  line-height: 1.12;
}

.teacher-application-card .application-lede {
  max-width: 68ch;
  margin-top: 12px;
  color: #e0eae4;
  font-size: 1rem;
  line-height: 1.65;
}

.teacher-application-card .application-form {
  display: grid;
  gap: 26px;
  margin-top: 0;
  counter-reset: application-section;
}

.teacher-application-card .application-form[hidden] {
  display: none;
}

.teacher-application-card .application-success h2 {
  margin: 0;
  color: #203d35;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.55rem;
}

.teacher-application-card .application-success p {
  margin-top: 10px;
  color: #43594d;
}

.teacher-application-card .application-note {
  margin: 0;
  padding: 16px 18px;
  border-left-width: 3px;
  border-radius: 0 8px 8px 0;
  background: #f5f8f6;
  line-height: 1.6;
}

.teacher-application-card .application-note a {
  display: inline-block;
  margin-top: 5px;
  color: var(--accent);
  font-weight: 700;
}

.application-section {
  display: grid;
  gap: 9px;
  padding-top: 24px;
  border-top: 1px solid #dce8e3;
  counter-increment: application-section;
}

.application-section h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 5px;
  font-size: 1.28rem;
}

.application-section h2::before {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 50%;
  background: #f5e9cb;
  color: #684b1f;
  content: counter(application-section, decimal-leading-zero);
  font-family: "DM Sans", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
}

.application-section > label:not(.check-row) {
  margin-top: 5px;
}

.application-section input:not([type="checkbox"]),
.application-section select,
.application-section textarea {
  border-color: #cbdad4;
  border-radius: 8px;
  background: #fff;
  font-size: 1rem;
  line-height: 1.45;
}

.application-section input[type="file"] {
  padding: 9px;
  background: #f8faf9;
}

.application-section input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 12px;
  border: 0;
  border-radius: 6px;
  background: #e4eee9;
  color: #24483c;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.availability-picker-control {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
}

.availability-picker-control > input[type="hidden"] {
  display: none;
}

.availability-picker-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 74px;
  margin: 0;
  padding: 11px 16px;
  border: 1px solid #cbdad4;
  border-radius: 8px;
  background: #fff;
  color: #1e2a2f;
  text-align: left;
  cursor: pointer;
}

.availability-picker-trigger:hover,
.availability-picker-trigger[aria-expanded="true"] {
  border-color: #347966;
}

.availability-picker-trigger[aria-invalid="true"] {
  border-color: #a33e34;
}

.availability-picker-trigger:focus-visible {
  outline: 3px solid rgba(52, 121, 102, 0.18);
  outline-offset: 2px;
}

.availability-trigger-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.availability-trigger-copy > span {
  color: #64756c;
  font-size: 0.78rem;
  font-weight: 500;
}

.availability-trigger-copy > strong {
  overflow-wrap: anywhere;
  color: #203d35;
  font-size: 0.96rem;
}

.availability-chevron {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  border-right: 2px solid #203d35;
  border-bottom: 2px solid #203d35;
  transform: translateY(-3px) rotate(45deg);
  transition: transform 150ms ease;
}

.availability-picker-trigger[aria-expanded="true"] .availability-chevron {
  transform: translateY(3px) rotate(225deg);
}

.availability-picker-panel[hidden] {
  display: none;
}

.availability-picker-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 5;
  width: min(520px, calc(100vw - 40px));
  max-height: min(70vh, 620px);
  overflow: auto;
  padding: 18px;
  border: 1px solid #d7dfdc;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(26, 47, 39, 0.2);
}

@media (max-width: 640px) {
  .availability-picker-panel {
    width: min(520px, calc(100vw - 88px));
  }
}

.availability-picker-panel h3,
.availability-picker-panel h4 {
  margin: 0;
  color: #203d35;
  font-family: "DM Sans", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
}

.curricula-field-label {
  display: block;
  margin-top: 5px;
  color: #203d35;
  font-size: 0.92rem;
  font-weight: 600;
}

.curricula-picker-control {
  position: relative;
  z-index: 3;
  width: 100%;
  min-width: 0;
}

.curricula-dropdown {
  width: 100%;
}

.curricula-dropdown > summary {
  list-style: none;
}

.curricula-dropdown > summary::-webkit-details-marker {
  display: none;
}

.curricula-picker-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 58px;
  padding: 11px 16px;
  border: 1px solid #cbdad4;
  border-radius: 8px;
  background: #fff;
  color: #203d35;
  font-size: 0.96rem;
  text-align: left;
  cursor: pointer;
}

.curricula-picker-trigger:hover,
.curricula-dropdown[open] > .curricula-picker-trigger {
  border-color: #347966;
}

.curricula-picker-trigger:focus-visible {
  outline: 3px solid rgba(52, 121, 102, 0.18);
  outline-offset: 2px;
}

.curricula-picker-trigger[aria-invalid="true"] {
  border-color: #a33e34;
}

.curricula-picker-trigger > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.curricula-dropdown[open] .availability-chevron {
  transform: translateY(3px) rotate(225deg);
}

.curricula-picker-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 6;
  box-sizing: border-box;
  width: min(680px, calc(100vw - 40px));
  max-height: min(70vh, 620px);
  overflow: auto;
  padding: 16px;
  border: 1px solid #d7dfdc;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(26, 47, 39, 0.2);
}

.curricula-search-label {
  display: block;
  margin-bottom: 6px;
  color: #52675c;
  font-size: 0.78rem;
  font-weight: 700;
}

.curricula-picker-panel input[type="search"] {
  box-sizing: border-box;
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #cbdad4;
  border-radius: 6px;
  background: #fff;
  color: #203d35;
  font: inherit;
}

.curricula-picker-options {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.curricula-choice-group {
  display: grid;
  gap: 3px;
  min-width: 0;
  margin: 0;
  padding: 10px 0 0;
  border: 0;
  border-top: 1px solid #e1e8e3;
}

.curricula-choice-group legend {
  padding: 0 8px 0 0;
  color: #176b5d;
  font-size: 0.8rem;
  font-weight: 800;
}

.curricula-choice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
  padding: 7px 8px;
  border-radius: 5px;
  color: #34483e;
  font-size: 0.84rem;
  line-height: 1.4;
  cursor: pointer;
}

.curricula-choice:hover {
  background: #f2f7f4;
}

.curricula-choice input[type="checkbox"] {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin: 1px 0 0;
  accent-color: #176b5d;
}

.curricula-choice span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.curricula-other-choice-group {
  border-top-color: #cbdad4;
}

.availability-time-groups {
  display: grid;
  gap: 14px;
  margin-top: 13px;
}

.availability-time-group h4,
.availability-days h4 {
  margin-bottom: 8px;
  color: #5c7066;
  font-size: 0.83rem;
  font-weight: 600;
}

.availability-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.availability-choice,
.availability-day {
  display: grid;
  place-items: center;
  min-width: 0;
  margin: 0;
  border: 1px solid #d5ddd9;
  border-radius: 7px;
  background: #fff;
  color: #20352d;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 130ms ease, background-color 130ms ease, color 130ms ease;
}

.availability-choice {
  min-height: 70px;
  gap: 4px;
  padding: 7px 4px;
  font-size: 0.84rem;
}

.availability-symbol {
  color: #294d3f;
  font-size: 1.2rem;
  line-height: 1;
}

.availability-day {
  min-height: 42px;
  padding: 7px 9px;
  font-size: 0.82rem;
}

.availability-choice:hover,
.availability-day:hover {
  border-color: #347966;
  background: #f2f7f4;
}

.availability-choice.is-selected,
.availability-day.is-selected {
  border-color: #176b5d;
  background: #e8f3ed;
  color: #124d40;
  box-shadow: inset 0 0 0 1px #176b5d;
}

.availability-choice:focus-visible,
.availability-day:focus-visible {
  outline: 3px solid rgba(52, 121, 102, 0.2);
  outline-offset: 2px;
}

.availability-days {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #e1e8e4;
}

.availability-day-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.availability-picker-hint {
  margin: 12px 0 0;
  color: #6a7a72;
  font-size: 0.74rem;
  line-height: 1.45;
}

.availability-selection-summary {
  margin: 7px 0 0;
  color: #466357;
  font-size: 0.78rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.availability-timezone-field {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.availability-timezone-field label {
  color: #43594d;
  font-size: 0.78rem;
  font-weight: 700;
}

.availability-timezone-field select {
  width: 100%;
  min-height: 42px;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid #cbd9d1;
  border-radius: 6px;
  background: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 0.86rem;
}

.application-section .service-fieldset {
  margin-top: 8px;
  padding: 14px 16px;
  border-color: #d3e1db;
  border-radius: 8px;
  background: #f8faf9;
}

.application-section .check-row {
  align-items: flex-start;
  line-height: 1.5;
}

.application-section .check-row input {
  flex: 0 0 18px;
  margin: 3px 0 0;
}

.application-section .check-row span {
  min-width: 0;
}

.application-section .remote-requirements-fieldset {
  min-width: 0;
  padding: 16px 18px;
}

.application-section .remote-requirements-fieldset .check-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
}

.application-section .remote-requirements-fieldset .check-row span {
  max-width: 70ch;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.application-section .remote-requirements-fieldset > .helper {
  max-width: 70ch;
  margin: 8px 0 0 28px;
  font-size: 0.8rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.application-section .photo-preview {
  width: 176px;
  margin-top: 2px;
  border-radius: 8px;
}

.application-section .policy-agreement {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid #d3e1db;
  border-radius: 8px;
  background: #f8faf9;
}

.application-section #submitApplicationBtn {
  width: fit-content;
  min-width: 210px;
  padding: 13px 20px;
  border-radius: 8px;
  background: #1e5d4c;
  box-shadow: 0 6px 16px rgba(30, 93, 76, 0.16);
}

.application-content > .back-link {
  display: inline-block;
  margin-top: 28px;
  color: #315d4e;
  font-size: 0.9rem;
  font-weight: 700;
}

@media (max-width: 760px) {
  .teacher-auth-panel {
    grid-template-columns: 1fr;
  }

  .teacher-auth-story {
    min-height: 310px;
    padding: 28px 26px 30px;
  }

  .teacher-auth-story h1 {
    font-size: 38px;
  }

  .teacher-auth-footnote {
    margin-top: 24px;
  }

  .teacher-auth-content {
    padding: 30px 26px 34px;
  }
}

@media (min-width: 761px) {
  .application-section {
    grid-template-columns: minmax(190px, 0.7fr) minmax(0, 1.3fr);
    column-gap: 24px;
    align-items: center;
  }

  .application-section h2,
  .application-section > .service-fieldset,
  .application-section > .helper,
  .application-section > .policy-agreement,
  .application-section > button {
    grid-column: 1 / -1;
  }

  .application-section > label:not(.check-row) {
    grid-column: 1;
    align-self: center;
    margin: 0;
  }

  .application-section > .curricula-field-label {
    grid-column: 1;
    align-self: center;
    margin: 0;
  }

  .application-section > label:not(.check-row) + input,
  .application-section > label:not(.check-row) + select,
  .application-section > label:not(.check-row) + textarea {
    grid-column: 2;
  }

  .application-section > label:not(.check-row) + .availability-picker-control {
    grid-column: 2;
  }

  .application-section > .curricula-field-label + .curricula-picker-control {
    grid-column: 2;
  }

  .application-section > .photo-preview {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 17px;
  }

  .app-shell input:not([type="checkbox"]),
  .app-shell select,
  .app-shell textarea {
    min-width: 0;
    max-width: 100%;
    font-size: 16px;
  }

  .teacher-application-card {
    margin: 12px auto;
    padding: 0;
  }

  .teacher-auth-story {
    min-height: 290px;
    padding: 24px 20px 26px;
  }

  .teacher-auth-story h1 {
    font-size: 34px;
  }

  .teacher-auth-lede {
    font-size: 0.9rem;
  }

  .teacher-auth-content {
    padding: 24px 20px 28px;
  }

  .teacher-signout-btn {
    position: static;
    margin-top: 18px;
  }

  .application-header {
    padding-right: 20px;
  }

  .application-header {
    padding: 30px 20px 32px;
  }

  .application-header h1 {
    font-size: 2rem;
  }

  .application-content {
    padding: 22px 18px 28px;
  }

  .teacher-application-card .application-form {
    gap: 22px;
    margin-top: 22px;
  }

  .application-section {
    padding-top: 20px;
  }

  .application-section #submitApplicationBtn {
    width: 100%;
  }
}

.training-page {
  min-height: 100vh;
  background-color: #edf1ec;
  background-image: linear-gradient(rgba(24, 53, 45, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(24, 53, 45, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  color: #1e2a2f;
  font-size: 16px;
}

.training-page .app-shell {
  min-height: 100vh;
  padding: 26px;
  background: transparent;
}

.training-page .aurora {
  display: none;
}

.training-view {
  width: min(100%, 1200px);
  max-width: 1200px;
  padding: 10px 0 28px;
}

.training-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px 2px;
  color: #1e3932;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
}

.training-brand strong {
  color: #397261;
}

.training-brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid #1e3932;
  border-radius: 11px 11px 11px 4px;
  background: #f4bd61;
  color: #1e3932;
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
  font-style: italic;
}

.training-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
  border: 1px solid #d7e2da;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 58px rgba(24, 54, 43, 0.14);
}

.training-intro {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 680px;
  overflow: hidden;
  padding: 48px 38px 34px;
  background: #1e3932;
  color: #fff;
}

.training-intro-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.training-intro::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 45, 38, 0.62) 0%, rgba(18, 45, 38, 0.78) 52%, rgba(18, 45, 38, 0.94) 100%);
  content: "";
}

.training-intro > *:not(.training-intro-photo) {
  position: relative;
  z-index: 2;
}

.training-intro::after {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 38px;
  height: 4px;
  background: #e7b95f;
  content: "";
}

.training-intro .eyebrow {
  color: #f0c878;
  font-size: 0.75rem;
  letter-spacing: 0;
}

.training-intro h1 {
  max-width: 420px;
  margin-top: 22px;
  color: #fff;
  font-family: "Fraunces", Georgia, serif;
  font-size: 2.65rem;
  font-weight: 500;
  line-height: 1.08;
}

.training-intro-copy {
  max-width: 38ch;
  margin-top: 18px;
  color: #dce9e2;
  font-size: 1rem;
  line-height: 1.65;
}

.training-benefits {
  display: grid;
  gap: 0;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.training-benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
  font-size: 0.91rem;
}

.training-benefits li span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border: 1px solid rgba(240, 200, 120, 0.72);
  border-radius: 50%;
  color: #f0c878;
  font-size: 0.7rem;
  font-weight: 700;
}

.training-guardian-note {
  margin-top: auto;
  padding-top: 22px;
  color: #dce9e2;
  font-size: 0.83rem;
  line-height: 1.55;
}

.training-form-panel {
  min-width: 0;
  padding: 42px clamp(24px, 4vw, 48px) 32px;
  background: #fff;
}

.training-form-heading {
  padding-bottom: 22px;
  border-bottom: 1px solid #e2eae5;
}

.training-form-heading .eyebrow {
  color: #397261;
  font-size: 0.73rem;
  letter-spacing: 0;
}

.training-form-heading h2 {
  margin-top: 8px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.2;
}

.training-form-heading > p:last-child {
  margin-top: 8px;
  color: #64736c;
  font-size: 0.85rem;
}

.training-form {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.training-progress {
  margin-bottom: 4px;
}

.training-progress-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}

.training-progress-heading p {
  color: #35584c;
  font-size: 0.78rem;
  font-weight: 700;
}

.training-progress-heading span {
  color: #87958d;
  font-size: 0.67rem;
  font-weight: 700;
}

.training-progress-track {
  height: 4px;
  overflow: hidden;
  background: #e4ece7;
}

.training-progress-track span {
  display: block;
  width: 25%;
  height: 100%;
  background: #0d806e;
  transition: width 220ms ease;
}

.training-step {
  min-width: 0;
  padding: 0;
  border: 0;
}

.training-step[hidden],
.training-success[hidden],
.training-step-actions button[hidden] {
  display: none;
}

.training-step legend {
  margin-bottom: 18px;
  color: #1e3932;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem;
  line-height: 1.25;
}

.training-form-section h3 {
  margin: 0 0 12px;
  color: #284b3f;
  font-family: "DM Sans", sans-serif;
  font-size: 0.92rem;
}

.training-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.training-field {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
}

.training-field-wide {
  grid-column: 1 / -1;
}

.training-field label {
  margin: 0;
  color: #344d42;
  font-size: 0.82rem;
  line-height: 1.4;
}

.training-field input,
.training-field select,
.training-field textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 46px;
  border: 1px solid #cedbd3;
  border-radius: 6px;
  background: #fff;
  color: #1e2a2f;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

.training-field input,
.training-field select {
  padding: 10px 12px;
}

.training-field textarea {
  min-height: 92px;
  padding: 11px 12px;
  resize: vertical;
}

.training-field input::placeholder,
.training-field textarea::placeholder {
  color: #7b8982;
  opacity: 1;
}

.training-field input:focus,
.training-field select:focus,
.training-field textarea:focus {
  outline: 3px solid rgba(12, 127, 111, 0.15);
  outline-offset: 1px;
  border-color: #0c7f6f;
}

.training-step-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #e2eae5;
  padding-top: 16px;
}

.training-step-actions button {
  width: 100%;
  min-width: 120px;
  min-height: 48px;
  margin: 0;
  border-radius: 4px;
  background: #176b5d;
  font-size: 0.95rem;
}

.training-step-actions button.ghost-btn {
  border: 1px solid #cad8d0;
  background: #fff;
  color: #284b3f;
}

.training-step-actions button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.training-form > .helper {
  margin: 0;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.training-form > .helper.error {
  color: var(--danger);
}

.training-success {
  padding: 30px 0 12px;
  animation: riseIn 420ms ease both;
}

.training-success-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: #dcefe4;
  color: #176b5d;
  font-size: 1.6rem;
  font-weight: 700;
}

.training-success .eyebrow {
  margin-top: 22px;
  color: #397261;
  font-size: 0.73rem;
}

.training-success h2 {
  margin-top: 8px;
  color: #1e3932;
  font-family: "Fraunces", Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
}

.training-success > p:not(.eyebrow) {
  margin-top: 12px;
  color: #566a60;
  font-size: 0.94rem;
  line-height: 1.6;
}

.training-success > a {
  display: inline-block;
  margin-top: 24px;
  color: #176b5d;
  font-size: 0.88rem;
  font-weight: 700;
  text-underline-offset: 3px;
}

.training-back-link {
  display: inline-block;
  margin-top: 20px;
  color: #397261;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .training-layout {
    grid-template-columns: 1fr;
  }

  .training-intro {
    min-height: 0;
    padding: 34px 30px 30px;
  }

  .training-intro h1 {
    max-width: 600px;
    font-size: 2.25rem;
  }

  .training-intro-copy {
    max-width: 56ch;
  }

  .training-benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
  }

  .training-benefits li {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0 0;
  }

  .training-guardian-note {
    margin-top: 18px;
    padding-top: 16px;
  }
}

@media (max-width: 560px) {
  .training-page .app-shell {
    padding: 16px;
  }

  .training-view {
    padding-top: 4px;
  }

  .training-brand {
    margin-bottom: 16px;
  }

  .training-intro {
    min-height: 0;
    padding: 28px 22px 24px;
  }

  .training-intro::after {
    left: 22px;
  }

  .training-intro h1 {
    margin-top: 15px;
    font-size: 2rem;
  }

  .training-intro-copy {
    margin-top: 12px;
    font-size: 0.92rem;
  }

  .training-benefits {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 17px;
  }

  .training-benefits li {
    align-items: center;
    flex-direction: row;
    gap: 10px;
    padding: 10px 0;
  }

  .training-guardian-note {
    margin-top: 12px;
    padding-top: 12px;
  }

  .training-form-panel {
    padding: 25px 20px 24px;
  }

  .training-form-heading h2 {
    font-size: 1.65rem;
  }

  .training-step legend {
    font-size: 1.3rem;
  }

  .training-fields {
    grid-template-columns: 1fr;
  }

  .training-step-actions button {
    min-width: 0;
  }

  .training-field-wide {
    grid-column: auto;
  }
}

.parent-dashboard-page {
  font-size: 16px;
  font-family: "Manrope", "DM Sans", sans-serif;
}

.parent-dashboard-page .view-dashboard {
  max-width: 1320px;
  padding: 24px 0 40px;
}

.parent-dashboard-page .topbar {
  border: 1px solid #d5e2dc;
  border-left: 4px solid #176b5d;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(24, 54, 43, 0.08);
}

.parent-dashboard-page .topbar .eyebrow {
  color: #397261;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.parent-dashboard-page .parent-welcome {
  position: relative;
  display: grid;
  min-height: 450px;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  margin: 0 0 38px;
  padding: 48px 24px;
  border-radius: 12px;
  background: #103f37;
  color: #fff;
  text-align: center;
}

.parent-dashboard-page .parent-welcome::after {
  position: absolute;
  z-index: -1;
  background: linear-gradient(90deg, rgba(8, 48, 41, 0.58), rgba(8, 48, 41, 0.8) 35%, rgba(8, 48, 41, 0.8) 65%, rgba(8, 48, 41, 0.58));
  content: "";
  inset: 0;
}

.parent-dashboard-page .parent-welcome-photos {
  position: absolute;
  z-index: -2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  inset: 0;
}

.parent-dashboard-page .parent-welcome-photos img {
  width: 100%;
  height: 100%;
  min-width: 0;
  object-fit: cover;
}

.parent-dashboard-page .parent-welcome-content {
  width: min(680px, 100%);
  animation: parent-welcome-arrive 650ms ease-out both;
}

.parent-dashboard-page .parent-welcome-eyebrow {
  margin: 0 0 14px;
  color: #ffda7c;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.parent-dashboard-page .parent-welcome h1 {
  margin: 0;
  color: #fff;
  font-family: "Fraunces", Georgia, serif;
  font-size: 3.2rem;
  font-weight: 500;
  line-height: 1.08;
}

.parent-dashboard-page .parent-welcome-description {
  max-width: 520px;
  margin: 14px auto 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.6;
}

.parent-dashboard-page .parent-subject-picker {
  width: min(440px, 100%);
  margin: 24px auto 0;
  text-align: left;
}

.parent-dashboard-page .parent-subject-pointer {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #ffda7c;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.parent-dashboard-page .parent-subject-arrow {
  width: 16px;
  height: 16px;
  border-right: 3px solid #ffda7c;
  border-bottom: 3px solid #ffda7c;
  animation: parent-subject-nudge 1.8s ease-in-out infinite;
  transform: rotate(45deg);
}

.parent-dashboard-page .parent-subject-picker .subject-filter-label {
  display: block;
  margin: 0 0 7px;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
}

.parent-dashboard-page #subjectFilter {
  width: 100%;
  min-height: 58px;
  margin: 0;
  padding: 12px 48px 12px 16px;
  border: 2px solid #ffda7c;
  border-radius: 8px;
  background-color: #fff;
  color: #173c34;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.2);
}

.parent-dashboard-page #subjectFilter:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.parent-dashboard-page .parent-support-ticker {
  overflow: hidden;
  margin: 0 0 32px;
  border: 1px solid #d6bd75;
  border-radius: 8px;
  background: #fff6dc;
  color: #284c40;
}

.parent-dashboard-page .parent-support-ticker-track {
  display: flex;
  width: max-content;
  animation: parent-support-scroll 42s linear infinite;
}

.parent-dashboard-page .parent-support-ticker-copy {
  flex: 0 0 max-content;
  margin: 0;
  padding: 13px 6vw 13px 0;
  font-size: 0.88rem;
  line-height: 1.5;
  white-space: nowrap;
}

.parent-dashboard-page .parent-support-ticker a {
  color: #116d5a;
  font-weight: 800;
  text-underline-offset: 3px;
}

.parent-dashboard-page .parent-support-ticker:hover .parent-support-ticker-track,
.parent-dashboard-page .parent-support-ticker:focus-within .parent-support-ticker-track {
  animation-play-state: paused;
}

@keyframes parent-support-scroll {
  to { transform: translateX(-50%); }
}

@keyframes parent-welcome-arrive {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes parent-subject-nudge {
  0%, 100% { transform: translateY(-3px) rotate(45deg); }
  50% { transform: translateY(3px) rotate(45deg); }
}

.parent-dashboard-page .grid-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 320px);
  align-items: center;
  column-gap: 24px;
  padding: 2px 2px 18px;
  border-bottom: 1px solid #d5e2dc;
  margin-bottom: 18px;
}

.parent-dashboard-page .grid-header h3 {
  grid-column: 1;
  grid-row: 1;
  font-size: 1.55rem;
}

.parent-dashboard-page .grid-header p {
  grid-column: 1;
  grid-row: 2;
  margin-top: 4px;
  color: #5e6f72;
  font-size: 0.92rem;
}

.parent-dashboard-page .preferred-teachers-section {
  margin-bottom: 28px;
}

.parent-dashboard-page .subject-filter-label {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  color: #344d42;
  font-size: 0.82rem;
}

.parent-dashboard-page #subjectFilter {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  min-width: 0;
  margin-top: 4px;
  border-radius: 6px;
  font-size: 16px;
}

.parent-dashboard-page .teacher-grid {
  gap: 20px;
}

.parent-dashboard-page .teacher-profile-details {
  font-size: 0.875rem;
  line-height: 1.45;
}

.parent-dashboard-page .teacher-rate-label,
.parent-dashboard-page .subject-pill {
  font-size: 0.875rem;
}

.teacher-card-summary {
  margin-top: 13px;
  color: var(--muted);
  font-size: 0.84rem;
}

.teacher-card-summary p {
  margin: 5px 0;
}

.teacher-card-summary b {
  color: var(--ink);
}

.teacher-card-profile-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--accent);
  font-family: "Manrope", "DM Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  text-underline-offset: 3px;
}

.learn-more-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 10px;
  color: var(--accent);
  font-weight: 700;
  text-underline-offset: 4px;
}

.learn-more-link:focus-visible,
.teacher-detail-back:focus-visible {
  outline: 3px solid rgba(12, 127, 111, 0.28);
  outline-offset: 3px;
}

.teacher-detail-page {
  --profile-paper: #f5f1e7;
  --profile-ink: #1d4034;
  --profile-rust: #bd593d;
  --profile-line: #d9d2c5;
  min-height: 100vh;
  background-color: var(--profile-paper);
  background-image: linear-gradient(rgba(29, 64, 52, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(29, 64, 52, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  color: var(--profile-ink);
  font-family: "Manrope", sans-serif;
}

.teacher-detail-shell {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 26px 0 72px;
}

.teacher-detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 34px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--profile-line);
}

.teacher-detail-topbar-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.teacher-detail-topbar .eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #526c5e;
  font-family: "Manrope", sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
}

.teacher-detail-topbar .eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--profile-rust);
  content: "";
}

.teacher-detail-back {
  color: #285c48;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 4px;
}

.teacher-detail-back:hover {
  text-decoration: underline;
}

.teacher-detail-inbox {
  color: #285c48;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.teacher-detail-inbox:hover,
.teacher-detail-inbox:focus-visible {
  color: #bd593d;
}

.teacher-detail-inbox:focus-visible {
  outline: 3px solid rgba(12, 127, 111, 0.28);
  outline-offset: 3px;
}

.teacher-detail-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.84fr) minmax(0, 1.16fr);
  align-items: start;
  gap: 68px;
  padding: 0 0 46px;
  animation: profile-enter 520ms ease-out both;
}

.teacher-detail-media {
  position: relative;
  padding: 0 18px 18px 0;
}

.teacher-detail-media::before {
  position: absolute;
  inset: 18px 0 0 18px;
  border-radius: 8px;
  background: var(--profile-rust);
  content: "";
}

.teacher-detail-photo {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 5px solid var(--profile-paper);
  border-radius: 7px;
  box-shadow: 0 20px 44px rgba(29, 45, 36, 0.16);
  background: #e7ece5;
  object-fit: cover;
}

.teacher-detail-intro-video {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid #dfe7e2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(29, 45, 36, 0.1);
}

.teacher-detail-video-kicker {
  margin: 0 0 5px;
  color: var(--profile-rust);
  font-family: "Manrope", sans-serif;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.teacher-detail-intro-video h2 {
  margin: 0 0 14px;
  color: var(--profile-ink);
  font-family: "Manrope", sans-serif;
  font-size: 1.16rem;
  font-weight: 800;
  line-height: 1.3;
}

.teacher-detail-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid #e3e9e5;
  border-radius: 4px;
  background: #fff;
}

.teacher-detail-copy h1 {
  margin: 0;
  color: var(--profile-ink);
  font-family: "Fraunces", Georgia, serif;
  font-size: 4.35rem;
  font-weight: 500;
  line-height: 1;
}

.teacher-detail-copy > .eyebrow {
  margin-bottom: 8px;
  color: var(--profile-rust);
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.teacher-detail-copy > .subject-list {
  margin-top: 14px;
}

.teacher-profile-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 16px;
}

.teacher-detail-copy .contact-teacher-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.preferred-teacher-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid #245b45;
  border-radius: 5px;
  background: transparent;
  color: #245b45;
  font-family: "Manrope", "DM Sans", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.preferred-teacher-btn[aria-pressed="true"] {
  background: #e9eee6;
}

.preferred-teacher-btn:disabled {
  cursor: wait;
  opacity: 0.65;
}

.preferred-teacher-btn:focus-visible,
.availability-converter select:focus-visible {
  outline: 3px solid rgba(12, 127, 111, 0.3);
  outline-offset: 3px;
}

.preferred-teacher-status {
  margin: 0;
  color: #52675c;
  font-size: 0.8rem;
}

.teacher-detail-copy .subject-pill {
  border: 1px solid #e7c8b8;
  border-radius: 5px;
  background: #f4e4d9;
  color: #88432f;
  font-family: "Manrope", "DM Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
}

.teacher-detail-copy .teacher-rate {
  border-color: #d8e0d5;
  border-radius: 6px;
  background: #e9eee6;
}

.teacher-detail-copy .teacher-rate strong {
  color: #245b45;
  font-family: "Manrope", "DM Sans", sans-serif;
  font-weight: 800;
}

.teacher-detail-about,
.teacher-detail-information {
  margin-top: 24px;
}

.teacher-detail-about h2,
.teacher-detail-information h2,
.teacher-detail-contact h2 {
  margin: 0 0 9px;
  color: var(--profile-ink);
  font-size: 1.05rem;
}

.teacher-detail-about h2,
.teacher-detail-information h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
}

.teacher-detail-about p,
.teacher-detail-contact p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.teacher-detail-about p {
  max-width: 62ch;
  color: #485c50;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.65;
}

.teacher-detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin: 0;
  border-top: 1px solid var(--profile-line);
}

.teacher-detail-fact {
  min-width: 0;
  padding: 13px 0;
  border-bottom: 1px solid var(--profile-line);
  overflow-wrap: anywhere;
}

.teacher-detail-fact dt {
  margin-bottom: 3px;
  color: #667568;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.teacher-detail-fact dd {
  margin: 0;
  color: var(--profile-ink);
  font-size: 0.9rem;
  font-weight: 600;
}

.teacher-availability-schedule {
  margin: 0;
  white-space: pre-wrap;
}

.availability-converter {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--profile-line);
}

.availability-converter label {
  color: #667568;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.availability-converter select {
  width: min(100%, 300px);
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid #cbd9d1;
  border-radius: 5px;
  background: #fff;
  color: var(--profile-ink);
  font: inherit;
  font-size: 0.82rem;
}

.availability-conversion-note {
  margin: 0;
  color: #667568;
  font-size: 0.74rem;
  font-weight: 400;
  line-height: 1.4;
}

.converted-availability-slots {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
  color: var(--profile-ink);
  font-size: 0.82rem;
  font-weight: 600;
}

.teacher-detail-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding: 24px 0 0;
  border: 0;
  border-top: 1px solid var(--profile-line);
  border-radius: 0;
  background: transparent;
  color: var(--profile-ink);
  animation: profile-enter 520ms 160ms ease-out both;
  scroll-margin-top: 24px;
}

.teacher-trial-booking {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 0;
  padding: 28px 30px;
  border: 0;
  border-left: 6px solid var(--profile-rust);
  border-radius: 6px;
  background: var(--profile-ink);
  color: #fff;
  animation: profile-enter 520ms 90ms ease-out both;
}

.teacher-trial-booking-copy .eyebrow {
  margin: 0 0 6px;
  color: #f2b96a;
  font-family: "Manrope", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.teacher-trial-booking-copy h2 {
  margin: 0 0 5px;
  color: #fff;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.65rem;
  font-weight: 500;
}

.teacher-trial-booking-copy p:last-child {
  max-width: 64ch;
  margin: 0;
  color: #d5e1d8;
  line-height: 1.55;
}

.teacher-trial-booking-action {
  flex: 0 0 auto;
  text-align: right;
}

.trial-book-btn,
.trial-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid var(--profile-rust);
  border-radius: 5px;
  background: var(--profile-rust);
  color: #fff;
  font-family: "Manrope", "DM Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.trial-book-btn:hover,
.trial-submit-btn:hover {
  transform: translateY(-1px);
  border-color: #a84932;
  background: #a84932;
}

.trial-book-btn:focus-visible,
.trial-submit-btn:focus-visible,
.trial-cancel-btn:focus-visible,
.trial-dialog-close:focus-visible {
  outline: 3px solid rgba(12, 127, 111, 0.3);
  outline-offset: 3px;
}

.trial-booking-summary {
  max-width: 360px;
  margin: 8px 0 0;
  color: #f2d6ae;
  font-size: 0.82rem;
  line-height: 1.45;
}

.trial-booking-dialog {
  width: min(600px, calc(100% - 28px));
  max-width: none;
  max-height: min(88vh, 760px);
  padding: 28px;
  overflow: auto;
  border: 1px solid #dce7e3;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(18, 35, 29, 0.28);
}

@keyframes profile-enter {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.trial-booking-dialog::backdrop {
  background: rgba(19, 34, 29, 0.62);
  backdrop-filter: blur(3px);
}

.trial-booking-dialog[open] {
  animation: trial-dialog-enter 180ms ease-out;
}

@keyframes trial-dialog-enter {
  from { opacity: 0; transform: translateY(10px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.trial-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.trial-dialog-header .eyebrow {
  margin: 0 0 5px;
  color: #b9553c;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.trial-dialog-header h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.8rem;
  font-weight: 500;
}

.trial-dialog-close {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid #dce7e3;
  border-radius: 50%;
  background: #f3f6f2;
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.trial-dialog-intro {
  margin: 12px 0 22px;
  color: var(--muted);
  line-height: 1.55;
}

.trial-terms-notice {
  margin: -10px 0 20px;
  padding: 11px 13px;
  border-left: 3px solid #b9553c;
  background: #f7eee9;
  color: #654135;
  font-size: 0.83rem;
  line-height: 1.5;
}

.trial-booking-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.trial-booking-fields label {
  display: block;
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.trial-booking-fields input,
.trial-booking-fields select {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid #cbd8d2;
  border-radius: 5px;
  background: #fbfcfa;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
}

.trial-booking-fields input:focus,
.trial-booking-fields select:focus {
  outline: 3px solid rgba(12, 127, 111, 0.18);
  border-color: #0c7f6f;
}

.trial-booking-zone-field {
  grid-column: 1 / -1;
}

.trial-zone-offset {
  min-height: 1.3em;
  margin: 7px 0 0;
  color: #52665d;
  font-size: 0.8rem;
}

.trial-booking-form-status {
  min-height: 1.4em;
  margin: 16px 0 0;
  color: #235c4b;
  font-size: 0.86rem;
}

.trial-booking-form-status.error {
  color: #a3362b;
}

.trial-booking-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.trial-cancel-btn {
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid #cbd8d2;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.trial-submit-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

@media (prefers-reduced-motion: reduce) {
  .teacher-detail-layout,
  .teacher-trial-booking,
  .teacher-detail-contact { animation: none; }
  .trial-booking-dialog[open] { animation: none; }
  .trial-book-btn,
  .trial-submit-btn { transition: none; }
}

.teacher-detail-contact h2 {
  color: var(--profile-ink);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 500;
}

.teacher-detail-contact p {
  color: #596a5f;
}

.teacher-detail-contact .teacher-contact-action {
  flex: 0 1 620px;
  margin: 0;
  padding: 0;
  border: 0;
}

.teacher-contact-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.teacher-contact-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--profile-ink);
  font-size: 0.8rem;
  font-weight: 800;
}

.teacher-contact-field label span {
  color: #718075;
  font-size: 0.74rem;
  font-weight: 600;
}

.teacher-contact-message {
  display: block;
  width: 100%;
  min-height: 82px;
  padding: 10px 12px;
  border: 1px solid #c6d2c8;
  border-radius: 5px;
  background: #fffdf8;
  color: var(--profile-ink);
  font: inherit;
  font-size: 0.84rem;
  line-height: 1.45;
  resize: vertical;
}

.teacher-contact-message:focus-visible {
  outline: 3px solid rgba(12, 127, 111, 0.2);
  border-color: #0c7f6f;
}

.teacher-detail-contact .contact-teacher-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 0;
  border-radius: 5px;
  background: var(--profile-ink);
  color: #fff;
  font-family: "Manrope", "DM Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.teacher-detail-contact .contact-teacher-btn:hover {
  border-color: #315e49;
  background: #315e49;
}

.teacher-detail-contact .contact-status {
  margin: 8px 0 0;
  color: #315e49;
}

.teacher-detail-status {
  padding: 20px 0;
  color: var(--muted);
}

@media (max-width: 640px) {
  .teacher-detail-shell {
    width: calc(100% - 32px);
    padding-top: 16px;
  }

  .teacher-detail-topbar {
    margin-bottom: 24px;
  }

  .teacher-detail-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 0 0 30px;
  }

  .teacher-detail-media {
    padding: 0 12px 12px 0;
  }

  .teacher-detail-media::before {
    inset: 12px 0 0 12px;
  }

  .teacher-detail-photo {
    aspect-ratio: 16 / 11;
  }

  .teacher-detail-copy h1 {
    font-size: 3rem;
  }

  .teacher-detail-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .teacher-detail-contact {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    padding: 20px 0 0;
  }

  .teacher-detail-contact .teacher-contact-action {
    width: 100%;
  }

  .teacher-contact-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .teacher-detail-contact .contact-teacher-btn {
    width: 100%;
  }

  .teacher-trial-booking {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    padding: 22px 20px;
  }

  .teacher-trial-booking-action {
    width: 100%;
    text-align: left;
  }

  .trial-book-btn {
    width: 100%;
  }

  .trial-booking-dialog {
    padding: 22px 18px;
  }

  .trial-booking-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .trial-booking-zone-field {
    grid-column: auto;
  }

  .trial-booking-form-actions {
    flex-direction: column-reverse;
  }

  .trial-booking-form-actions button {
    width: 100%;
  }

  .parent-dashboard-page .view-dashboard {
    padding: 14px 0 28px;
  }

  .parent-dashboard-page .parent-welcome {
    min-height: 430px;
    margin-bottom: 28px;
    padding: 38px 20px;
  }

  .parent-dashboard-page .parent-welcome-photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }

  .parent-dashboard-page .parent-welcome h1 {
    font-size: 2.45rem;
  }

  .parent-dashboard-page .parent-support-ticker-copy {
    font-size: 0.82rem;
  }

  .parent-dashboard-page .grid-header {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .parent-dashboard-page .grid-header h3,
  .parent-dashboard-page .grid-header p,
  .parent-dashboard-page .subject-filter-label,
  .parent-dashboard-page #subjectFilter {
    grid-column: 1;
    grid-row: auto;
  }

  .parent-dashboard-page .subject-filter-label {
    margin-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .parent-dashboard-page .parent-welcome-content,
  .parent-dashboard-page .parent-subject-arrow,
  .parent-dashboard-page .parent-support-ticker-track {
    animation: none;
  }

  .parent-dashboard-page .parent-support-ticker-copy[aria-hidden="true"] {
    display: none;
  }

  .parent-dashboard-page .parent-support-ticker-copy {
    padding: 13px 18px;
    text-align: center;
    white-space: normal;
  }
}

  .landing-page {
    background: #f1f5f0;
    color: #1e2a2f;
    font-size: 17px;
  }

  .landing-page .landing-shell {
    padding: 20px 36px 48px;
    background: #f1f5f0;
  }

  .landing-page .landing-gallery {
    display: none;
  }

  .landing-page .landing-nav {
    max-width: 1320px;
    min-height: 48px;
    color: #1e3932;
  }

  .landing-page .brand {
    font-size: 1.35rem;
  }

  .landing-page .support-nav-link {
    border-color: #b9cdc2;
    border-radius: 6px;
    color: #284b3f;
  }

  .landing-page .support-nav-link:hover,
  .landing-page .support-nav-link:focus-visible {
    border-color: #e7b95f;
    background: #f4bd61;
  }

  .landing-page .landing-main {
    max-width: 1320px;
    padding-top: 28px;
  }

  .landing-page .landing-hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(350px, 0.82fr);
    align-items: center;
    gap: 64px;
    min-height: 610px;
    padding: 60px 64px;
    border-radius: 8px;
    box-shadow: 0 24px 58px rgba(24, 36, 42, 0.2);
  }

  .landing-page .landing-hero::before {
    background: linear-gradient(90deg, rgba(14, 39, 32, 0.93) 0%, rgba(18, 48, 39, 0.76) 44%, rgba(18, 48, 39, 0.24) 100%);
  }

  .landing-page .landing-hero::after {
    filter: saturate(1.08) brightness(0.94);
    background-position: center 42%;
  }

  .landing-page .hero-copy {
    max-width: 610px;
  }

  .landing-page .hero-copy .landing-eyebrow {
    color: #f4bd61;
    font-size: 0.8rem;
    letter-spacing: 0;
  }

  .landing-page .hero-copy h1 {
    max-width: 580px;
    margin-top: 18px;
    font-family: "Fraunces", Georgia, serif;
    font-size: 4.5rem;
    line-height: 1.02;
    letter-spacing: 0;
  }

  .landing-page .hero-highlight {
    display: block;
    color: #f4bd61;
  }

  .landing-page .hero-lede {
    max-width: 43ch;
    margin-top: 22px;
    font-size: 1.12rem;
    line-height: 1.6;
  }

  .landing-page .role-options {
    gap: 12px;
    margin-top: 0;
  }

  .landing-page .pathway-label {
    margin: 0 0 5px 2px;
    color: #f4bd61;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
  }

  .landing-page .role-option {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 86px;
    padding: 16px 18px;
    border-left: 4px solid #f4bd61;
    border-color: rgba(255, 255, 255, 0.82);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 9px 25px rgba(12, 30, 24, 0.2);
    color: #1e3932;
    backdrop-filter: none;
    transition: border-color 170ms ease, transform 170ms ease, box-shadow 170ms ease;
  }

  .landing-page .role-option:hover,
  .landing-page .role-option:focus-visible {
    border-color: #f4bd61;
    background: #fff;
    box-shadow: 0 13px 28px rgba(12, 30, 24, 0.28);
    transform: translateY(-2px);
  }

  .landing-page .role-option strong {
    font-size: 1rem;
  }

  .landing-page .role-option small {
    color: #5e6f72;
    font-size: 0.82rem;
  }

  .landing-page .teacher-role {
    border-left-color: #48a889;
  }

  .landing-page .training-role {
    border-left-color: #ec8067;
  }

  .landing-page .role-arrow {
    color: #176b5d;
  }

  .landing-page .landing-trust {
    max-width: 1100px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 16px auto 0;
    padding: 0;
    border-bottom: 1px solid #cfddd5;
    color: #1e2a2f;
  }

  .landing-page .landing-trust div {
    min-height: 66px;
    padding: 14px 20px;
    border: 0;
    border-right: 1px solid #cfddd5;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .landing-page .landing-trust div:last-child {
    border-right: 0;
  }

  .landing-page .landing-trust strong {
    color: #176b5d;
    font-family: "DM Sans", sans-serif;
    font-size: 0.8rem;
  }

  .landing-page .landing-trust span {
    color: #344d42;
    font-size: 0.9rem;
    text-shadow: none;
  }

  .landing-page .landing-hero > .landing-trust {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 12px 10px;
    border: 1px solid rgba(255, 250, 240, 0.18);
    border-radius: 6px;
    background: rgba(14, 39, 32, 0.72);
    color: #fffaf0;
  }

  .landing-page .landing-hero > .landing-trust div {
    min-height: 48px;
    gap: 12px;
    padding: 8px 16px;
    border: 0;
    border-right: 1px solid rgba(255, 250, 240, 0.2);
    border-radius: 0;
    background: transparent;
  }

  .landing-page .landing-hero > .landing-trust div:last-child {
    border-right: 0;
  }

  .landing-page .landing-hero > .landing-trust strong {
    color: #f4bd61;
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.15rem;
  }

  .landing-page .landing-hero > .landing-trust span {
    color: #fffaf0;
    font-size: 0.84rem;
    text-shadow: none;
  }

  .landing-page .landing-brand-feature {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 480px) minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    max-width: 1320px;
    margin: 52px auto 0;
    padding: 24px;
    overflow: hidden;
    border: 1px solid #d5ad50;
    border-radius: 8px;
    background-color: #0b362e;
    background-image: linear-gradient(rgba(11, 54, 46, 0.58), rgba(11, 54, 46, 0.58)), url("bck.optimized.jpg");
    background-position: center;
    background-size: cover;
    box-shadow: 0 18px 40px rgba(18, 45, 35, 0.16);
  }

  .landing-page .landing-brand-feature::before,
  .landing-page .landing-brand-feature::after {
    content: "";
    height: 1px;
  }

  .landing-page .landing-brand-feature::before {
    background: linear-gradient(90deg, transparent, #d5ad50);
  }

  .landing-page .landing-brand-feature::after {
    background: linear-gradient(90deg, #d5ad50, transparent);
  }

  .landing-page .landing-brand-feature img {
    display: block;
    grid-column: 2;
    width: min(100%, 480px);
    height: auto;
    border: 1px solid #d5ad50;
    border-radius: 8px;
    background: #0b362e;
    box-shadow: 0 16px 36px rgba(18, 45, 35, 0.16);
  }

  .landing-page .landing-mission {
    margin: 48px auto 0;
    color: #397261;
    font-size: 0.86rem;
    letter-spacing: 0;
  }

  .landing-page .landing-testimonials {
    max-width: 1100px;
    margin: 12px auto 0;
    color: #1e2a2f;
    text-align: left;
  }

  .landing-page .landing-testimonials > .eyebrow {
    color: #397261;
    font-size: 0.76rem;
    letter-spacing: 0;
  }

  .landing-page .landing-testimonials h2 {
    margin-top: 8px;
    font-family: "Fraunces", Georgia, serif;
    font-size: 2rem;
  }

  .landing-page .testimonial-card:nth-child(2) {
    border-top-color: #ec8067;
  }

  .landing-page .testimonial-card:nth-child(3) {
    border-top-color: #e5b247;
  }

  .landing-page .testimonial-grid {
    gap: 14px;
    margin-top: 20px;
  }

  .landing-page .testimonial-card {
    padding: 20px;
    border-color: #d7e2da;
    border-top: 3px solid #176b5d;
    border-radius: 8px;
    background: #fff;
  }

  .landing-page .testimonial-card p {
    color: #465b51;
    font-size: 0.94rem;
  }

  .landing-page .testimonial-card footer {
    color: #397261;
    font-size: 0.78rem;
  }

  .landing-page .landing-hours-support {
    max-width: 1100px;
    margin: 48px auto 0;
  }

  .landing-page .landing-hours-heading {
    max-width: 720px;
    margin: 0 auto 22px;
    text-align: center;
  }

  .landing-page .landing-heading-rule {
    display: block;
    width: 32px;
    height: 3px;
    margin: 0 auto 12px;
    border-radius: 2px;
    background: #1769f6;
  }

  .landing-page .landing-hours-heading h2 {
    color: #172b46;
    font-family: "DM Sans", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
  }

  .landing-page .landing-hours-heading h2 span {
    color: #1769f6;
  }

  .landing-page .landing-hours-heading > p {
    max-width: 72ch;
    margin: 8px auto 0;
    color: #596d87;
    font-size: 0.86rem;
    line-height: 1.55;
  }

  .landing-page .landing-hours-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .landing-page .landing-info-card {
    min-width: 0;
    padding: 20px;
    border: 1px solid #dce6f3;
    border-radius: 8px;
    background: #f5f8ff;
  }

  .landing-page .landing-support-card {
    border-color: #d5eee7;
    background: #f1faf7;
  }

  .landing-page .landing-info-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-height: 66px;
  }

  .landing-page .landing-info-icon {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: #e2edff;
    color: #1769f6;
    font-family: "Segoe UI Symbol", sans-serif;
    font-size: 1.6rem;
    line-height: 1;
  }

  .landing-page .support-icon {
    background: #dff5ee;
    color: #159b78;
    font-size: 1.45rem;
  }

  .landing-page .landing-info-heading h3 {
    color: #172b46;
    font-family: "DM Sans", sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
  }

  .landing-page .landing-info-heading p {
    max-width: 44ch;
    margin-top: 4px;
    color: #596d87;
    font-size: 0.76rem;
    line-height: 1.45;
  }

  .landing-page .landing-hours-table {
    display: grid;
    width: min(100%, 390px);
    margin: 18px 0 0;
    overflow: hidden;
    border: 1px solid #d8e2ef;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.84);
  }

  .landing-page .landing-hours-table > div {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }

  .landing-page .landing-hours-table > div + div {
    border-top: 1px solid #d8e2ef;
  }

  .landing-page .landing-hours-table dt,
  .landing-page .landing-hours-table dd {
    min-width: 0;
    margin: 0;
    padding: 9px 10px;
    color: #273c58;
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .landing-page .landing-hours-table dt {
    font-weight: 700;
  }

  .landing-page .landing-hours-table dd {
    border-left: 1px solid #d8e2ef;
    color: #435a77;
  }

  .landing-page .landing-email-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    margin-top: 18px;
    padding: 10px 14px;
    border-radius: 6px;
    background: #1769f6;
    box-shadow: 0 6px 14px rgba(23, 105, 246, 0.16);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 160ms ease, transform 160ms ease;
  }

  .landing-page .landing-email-action:hover,
  .landing-page .landing-email-action:focus-visible {
    transform: translateY(-1px);
    background: #0b58db;
  }

  .landing-page .landing-email-action > span:first-child {
    font-family: "Segoe UI Symbol", sans-serif;
    font-size: 1rem;
  }

  .landing-page .landing-email-arrow {
    font-size: 1rem;
  }

  .landing-page .landing-email-address {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-top: 9px;
    color: #125fe8;
    font-size: 0.78rem;
    font-weight: 700;
    overflow-wrap: anywhere;
    text-decoration: none;
  }

  .landing-page .landing-email-address:hover,
  .landing-page .landing-email-address:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  @media (max-width: 900px) {
    .landing-page .landing-shell {
      padding-inline: 24px;
    }

    .landing-page .landing-hero {
      grid-template-columns: minmax(0, 1fr);
      gap: 30px;
      min-height: 0;
      padding: 44px;
    }

    .landing-page .landing-hero > .landing-trust,
    .landing-page .landing-hero > .hero-copy,
    .landing-page .landing-hero > .role-options {
      grid-column: 1;
      grid-row: auto;
    }

    .landing-page .hero-copy h1 {
      max-width: 720px;
      font-size: 3.5rem;
    }

    .landing-page .landing-hero .role-options {
      width: min(620px, 100%);
    }
  }

  @media (max-width: 640px) {
    .landing-page .landing-shell {
      padding: 16px 16px 32px;
    }

    .landing-page .landing-nav {
      align-items: center;
      gap: 12px;
    }

    .landing-page .brand {
      gap: 8px;
      font-size: 1.08rem;
    }

    .landing-page .brand-mark {
      width: 30px;
      height: 30px;
    }

    .landing-page .landing-nav-links {
      gap: 6px;
    }

    .landing-page .support-nav-link {
      padding: 7px 9px;
      font-size: 0.78rem;
    }

    .landing-page .landing-main {
      padding-top: 20px;
    }

    .landing-page .landing-hero {
      gap: 22px;
      padding: 32px 22px 24px;
      border-radius: 8px;
    }

    .landing-page .landing-hero::before {
      background: linear-gradient(90deg, rgba(14, 39, 32, 0.9), rgba(18, 48, 39, 0.7));
    }

    .landing-page .hero-copy h1 {
      margin-top: 12px;
      font-size: 2.75rem;
      line-height: 1.08;
    }

    .landing-page .hero-lede {
      margin-top: 14px;
      font-size: 1rem;
    }

    .landing-page .landing-hero .role-option {
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
      min-height: 74px;
      padding: 12px;
    }

    .landing-page .role-option strong {
      font-size: 0.92rem;
    }

    .landing-page .role-option small {
      font-size: 0.76rem;
    }

    .landing-page .landing-trust {
      grid-template-columns: 1fr;
      margin-top: 12px;
    }

    .landing-page .landing-trust div {
      min-height: 0;
      padding: 11px 4px;
      border-right: 0;
      border-bottom: 1px solid #cfddd5;
    }

    .landing-page .landing-trust div:last-child {
      border-bottom: 0;
    }

    .landing-page .landing-hero > .landing-trust {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      padding: 8px 4px;
    }

    .landing-page .landing-hero > .landing-trust div {
      min-height: 60px;
      align-items: flex-start;
      flex-direction: column;
      gap: 3px;
      padding: 6px;
      border-right: 1px solid rgba(255, 250, 240, 0.2);
      border-bottom: 0;
    }

    .landing-page .landing-hero > .landing-trust span {
      font-size: 0.68rem;
      line-height: 1.25;
    }

    .landing-page .landing-mission {
      margin-top: 30px;
    }

    .landing-page .landing-brand-feature {
      grid-template-columns: minmax(0, 1fr);
      margin-top: 32px;
    }

    .landing-page .landing-brand-feature::before,
    .landing-page .landing-brand-feature::after {
      display: none;
    }

    .landing-page .landing-brand-feature img {
      grid-column: 1;
      justify-self: center;
    }

    .landing-page .landing-testimonials {
      margin-top: 10px;
    }

    .landing-page .landing-testimonials h2 {
      font-size: 1.65rem;
    }

    .landing-page .testimonial-grid {
      grid-template-columns: 1fr;
      gap: 10px;
      margin-top: 16px;
    }

    .landing-page .testimonial-card {
      padding: 16px;
    }

    .landing-page .landing-hours-support {
      margin-top: 32px;
    }

    .landing-page .landing-hours-heading h2 {
      font-size: 1.65rem;
    }

    .landing-page .landing-hours-cards {
      grid-template-columns: minmax(0, 1fr);
      gap: 12px;
    }

    .landing-page .landing-info-card {
      padding: 16px;
    }
  }

  /* Keep the schedule form within its dashboard panel. */
  .admin-page .admin-dashboard #teacherMatches {
    grid-column: 1 / -1;
  }

  .admin-page .admin-dashboard .teacher-student-match-controls {
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .admin-page .admin-dashboard .teacher-student-match-form {
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr));
  }

  .admin-page .admin-dashboard .teacher-student-match-form > * {
    min-width: 0;
  }

  .admin-page .admin-dashboard .teacher-student-match-end-field output {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .admin-page .admin-dashboard .teacher-student-match-list li.helper,
  .admin-page .admin-dashboard .teacher-student-match-list li.error {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    overflow-wrap: anywhere;
  }

/* Admin workspace refresh */
body.admin-page {
  color: #23352e;
  background: #f1f4f1;
}

.admin-page .app-shell {
  padding: 26px clamp(14px, 3vw, 42px) 48px;
  background-color: #f1f4f1;
  background-image:
    linear-gradient(rgba(36, 76, 57, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 76, 57, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
}

.admin-page .admin-dashboard {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  width: min(1480px, 100%);
  max-width: 1480px;
  padding: 0 0 48px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.admin-page .admin-dashboard .topbar,
.admin-page .admin-dashboard .admin-section-nav {
  grid-column: 1 / -1;
}

.admin-page .admin-dashboard .topbar {
  position: sticky;
  top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 2px;
  padding: 22px 26px;
  border: 1px solid #254d3f;
  border-radius: 8px;
  background: #183f35;
  box-shadow: 0 12px 28px rgba(27, 58, 45, 0.15);
}

.admin-page .admin-dashboard .topbar::before {
  display: none;
}

.admin-page .admin-dashboard .topbar .eyebrow {
  color: #efc46e;
  font-size: 0.7rem;
  font-weight: 700;
}

.admin-page .admin-dashboard .topbar h2 {
  margin-top: 6px;
  font-family: "DM Sans", sans-serif;
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0;
}

.admin-page .admin-dashboard-summary {
  margin-top: 7px;
  color: #d3e2d9;
  font-size: 0.86rem;
  line-height: 1.5;
}

.admin-page .admin-dashboard .topbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-page .admin-dashboard .topbar-actions .ghost-btn {
  min-height: 40px;
  padding: 9px 13px;
  border-color: rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  font-weight: 600;
}

.admin-page .admin-dashboard #adminLogoutBtn {
  border-color: #bd8a38;
  background: #f0c46d;
  color: #24392f;
}

.admin-page .admin-section-nav {
  position: sticky;
  top: 112px;
  z-index: 4;
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  margin: 0 0 3px;
  padding: 8px;
  overflow-x: auto;
  border: 1px solid #d9e1dc;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 16px rgba(34, 60, 47, 0.06);
  scrollbar-width: thin;
}

.admin-page .admin-section-nav a {
  min-height: 36px;
  padding: 9px 11px;
  border-radius: 5px;
  color: #50665a;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
}

.admin-page .admin-section-nav a:hover,
.admin-page .admin-section-nav a:focus-visible {
  background: #e8f2eb;
  color: #155b49;
  outline: none;
}

.admin-page .admin-dashboard .admin-panel {
  grid-column: span 6;
  min-width: 0;
  margin: 0;
  padding: 20px;
  border: 1px solid #dce4df;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(35, 63, 49, 0.045);
}

.admin-page .admin-dashboard #teacherEditor,
.admin-page .admin-dashboard #waitingForApproval,
.admin-page .admin-dashboard #archivedApplications,
.admin-page .admin-dashboard #teacherMessages,
.admin-page .admin-dashboard #currentProfiles {
  grid-column: 1 / -1;
}

.admin-page .admin-dashboard > .admin-panel:first-of-type,
.admin-page .admin-dashboard > .admin-panel:last-of-type {
  border-radius: 8px;
}

.admin-page .admin-dashboard .admin-panel-header {
  min-height: 48px;
  padding: 0 0 0 13px;
  border-left: 3px solid #d6a64f;
}

.admin-page .admin-dashboard .admin-panel-header h3,
.admin-page .admin-dashboard .grid-header h3 {
  color: #223b30;
  font-family: "DM Sans", sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
}

.admin-page .admin-dashboard .admin-panel-header p,
.admin-page .admin-dashboard .grid-header p {
  max-width: 78ch;
  margin-top: 5px;
  color: #68786f;
  font-size: 0.8rem;
  line-height: 1.5;
}

.admin-page .admin-dashboard .admin-disclosure {
  margin-top: 16px;
  border-top: 1px solid #edf0ed;
}

.admin-page .admin-dashboard .admin-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 8px 0 0;
  color: #176b5d;
  font-size: 0.78rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.admin-page .admin-dashboard .admin-disclosure > summary::-webkit-details-marker {
  display: none;
}

.admin-page .admin-dashboard .admin-disclosure > summary::before {
  display: none;
}

.admin-page .admin-dashboard .admin-disclosure > summary::after {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid #d8e4dc;
  border-radius: 5px;
  color: #315a49;
  content: "+";
  font-size: 1rem;
  line-height: 1;
}

.admin-page .admin-dashboard .admin-disclosure[open] > summary::after {
  content: "−";
}

.admin-page .admin-dashboard .admin-disclosure-content {
  padding-top: 10px;
}

.admin-page .admin-dashboard input:not([type="checkbox"]):not([type="radio"]),
.admin-page .admin-dashboard select,
.admin-page .admin-dashboard textarea {
  border-color: #d2ddd6;
  border-radius: 6px;
  background-color: #fbfcfb;
  color: #263b33;
}

.admin-page .admin-dashboard input:focus,
.admin-page .admin-dashboard select:focus,
.admin-page .admin-dashboard textarea:focus {
  border-color: #39836d;
  outline: 3px solid rgba(57, 131, 109, 0.14);
  outline-offset: 1px;
}

.admin-page .admin-dashboard .applications-toolbar {
  align-items: center;
  padding: 12px;
  border: 1px solid #e5ebe7;
  border-radius: 6px;
  background: #f7f9f7;
}

.admin-page .admin-dashboard button.ghost-btn {
  border-radius: 6px;
}

.admin-page .admin-dashboard button:focus-visible,
.admin-page .admin-section-nav a:focus-visible {
  outline: 3px solid #d6a64f;
  outline-offset: 2px;
}

.admin-page .admin-dashboard [id] {
  scroll-margin-top: 170px;
}

@media (max-width: 980px) {
  .admin-page .admin-dashboard {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .admin-page .admin-dashboard .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-page .admin-dashboard .topbar-actions {
    justify-content: flex-start;
  }

  .admin-page .admin-section-nav {
    top: 10px;
  }
}

@media (max-width: 640px) {
  .admin-page .app-shell {
    padding: 12px 10px 28px;
  }

  .admin-page .admin-dashboard {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding-bottom: 28px;
  }

  .admin-page .admin-dashboard .topbar,
  .admin-page .admin-dashboard .admin-section-nav,
  .admin-page .admin-dashboard .admin-panel,
  .admin-page .admin-dashboard #teacherEditor,
  .admin-page .admin-dashboard #waitingForApproval,
  .admin-page .admin-dashboard #archivedApplications,
  .admin-page .admin-dashboard #teacherMessages,
  .admin-page .admin-dashboard #currentProfiles {
    grid-column: 1;
  }

  .admin-page .admin-dashboard .topbar {
    position: relative;
    top: auto;
    gap: 16px;
    padding: 20px;
  }

  .admin-page .admin-dashboard .topbar-actions {
    width: 100%;
  }

  .admin-page .admin-dashboard .topbar-actions .ghost-btn {
    flex: 1 1 130px;
  }

  .admin-page .admin-section-nav {
    position: sticky;
    top: 6px;
  }

  .admin-page .admin-dashboard .admin-panel {
    padding: 17px 15px;
  }

  .admin-page .admin-dashboard [id] {
    scroll-margin-top: 64px;
  }
}

.admin-page .finance-month-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
}

.admin-page .finance-ledger-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
}

.admin-page .finance-ledger-disclosure > summary::-webkit-details-marker {
  display: none;
}

.admin-page .finance-ledger-disclosure > summary::after {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid #d8e4dc;
  border-radius: 5px;
  color: #315a49;
  content: "+";
  font-size: 1rem;
  line-height: 1;
}

.admin-page .finance-ledger-disclosure[open] > summary::after {
  content: "-";
}

.admin-page .finance-ledger-disclosure > summary:focus-visible {
  border-radius: 3px;
  outline: 2px solid #3c7457;
  outline-offset: 3px;
}

.admin-page .finance-ledger-disclosure > summary h3 {
  margin: 0;
}

.admin-page .finance-ledger-disclosure:not([open]) > .finance-ledger-content {
  display: none;
}

.admin-page .finance-ledger-description {
  max-width: 78ch;
  margin: 0;
  color: #68786f;
  font-size: 0.8rem;
  line-height: 1.5;
}

.admin-page .finance-month-toolbar label,
.admin-page .finance-entry-form label {
  color: #284638;
  font-size: 0.84rem;
  font-weight: 700;
}

.admin-page .finance-month-toolbar input,
.admin-page .finance-entry-form input,
.admin-page .finance-entry-form select {
  min-width: 0;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #b8c8bc;
  border-radius: 4px;
  background: #fff;
  color: #203d31;
  font: inherit;
}

.admin-page .finance-month-toolbar input {
  width: 180px;
}

.admin-page .finance-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 24px;
  padding: 16px 0;
  border-top: 1px solid #cbd8ce;
  border-bottom: 1px solid #cbd8ce;
}

.admin-page .finance-summary div {
  min-width: 0;
}

.admin-page .finance-summary dt {
  color: #52675b;
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-page .finance-summary dd {
  margin: 7px 0 0;
  color: #183f35;
  font-size: 1.02rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.admin-page .finance-entry-grid,
.admin-page .finance-records-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.admin-page .finance-entry-form {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 18px 0;
  border-top: 3px solid #3c7457;
}

.admin-page .finance-entry-form h4,
.admin-page .finance-records-grid h4 {
  margin: 0 0 8px;
  color: #203d31;
  font-size: 1rem;
}

.admin-page .finance-amount-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(90px, 0.55fr);
  gap: 12px;
}

.admin-page .finance-amount-fields > div {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.admin-page .finance-payment-calculation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  border-left: 3px solid #3c7457;
  background: #f2f6f3;
}

.admin-page .finance-payment-calculation div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-page .finance-payment-calculation span {
  color: #52675b;
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-page .finance-payment-calculation strong {
  color: #183f35;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.admin-page .finance-entry-form button {
  justify-self: start;
  margin-top: 8px;
}

.admin-page .finance-records-grid {
  margin-top: 18px;
}

.admin-page .finance-records-grid section {
  min-width: 0;
}

.admin-page .finance-records-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.admin-page .finance-records-heading h4 {
  margin: 0;
}

.admin-page .finance-record-disclosure {
  min-width: 0;
}

.admin-page .finance-record-disclosure > summary {
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.admin-page .finance-record-disclosure > summary::-webkit-details-marker {
  display: none;
}

.admin-page .finance-record-disclosure > summary::after {
  flex: 0 0 auto;
  color: #486353;
  content: "Collapse";
  font-size: 0.76rem;
  font-weight: 700;
}

.admin-page .finance-record-disclosure:not([open]) > summary::after {
  content: "Expand";
}

.admin-page .finance-record-disclosure > summary:focus-visible {
  border-radius: 3px;
  outline: 2px solid #3c7457;
  outline-offset: 3px;
}

.admin-page .finance-records-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.admin-page .finance-records-grid .lesson-table-wrap {
  max-height: 320px;
  max-width: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.admin-page .finance-records-table {
  min-width: 590px;
}

.admin-page .finance-teacher-payment-table {
  min-width: 860px;
}

.admin-page .finance-records-table td,
.admin-page .finance-records-table th {
  vertical-align: middle;
}

.admin-page .finance-records-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f2f6f3;
}

.admin-page .admin-dashboard #financeLedger {
  grid-column: 1 / -1;
}

@media (max-width: 1320px) {
  .admin-page .finance-records-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .admin-page .finance-entry-grid,
  .admin-page .finance-records-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .admin-page .finance-summary {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
}

@media (max-width: 420px) {
  .admin-page .finance-payment-calculation {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-page .finance-records-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-page .finance-month-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-page .finance-month-toolbar input {
    width: 100%;
  }

  .admin-page .finance-amount-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}

.tutor-intake-page {
  min-height: 100vh;
  background-color: #f2f1e9;
  background-image: linear-gradient(rgba(24, 53, 45, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(24, 53, 45, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  color: #18352d;
  font-size: 16px;
}

.tutor-intake-shell {
  display: flex;
  width: min(1120px, 100%);
  min-height: 100vh;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  padding: 36px 28px;
}

.tutor-intake-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #18352d;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.tutor-intake-brand > span:last-child {
  color: #527166;
}

.tutor-intake-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  min-height: 590px;
  overflow: hidden;
  border: 1px solid #d4dfd8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 54px rgba(30, 57, 50, 0.13);
  animation: riseIn 420ms ease both;
}

.tutor-intake-visual {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  background: #173d34;
  color: #fff;
}

.tutor-intake-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 39, 32, 0.16) 0%, rgba(12, 39, 32, 0.28) 34%, rgba(12, 39, 32, 0.9) 100%);
  content: "";
}

.tutor-intake-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.tutor-intake-visual-copy {
  position: absolute;
  z-index: 1;
  right: 30px;
  bottom: 30px;
  left: 30px;
}

.tutor-intake-panel .tutor-intake-visual-copy .eyebrow {
  color: #f2c56d;
  font-size: 0.75rem;
}

.tutor-intake-visual-copy > p:not(.eyebrow) {
  max-width: 350px;
  margin-top: 10px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.8rem;
  line-height: 1.2;
}

.tutor-intake-visual-copy > span {
  display: inline-block;
  margin-top: 24px;
  color: #e4eee8;
  font-size: 0.78rem;
  font-weight: 700;
}

.tutor-intake-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 42px clamp(28px, 4vw, 52px);
}

.tutor-intake-panel .eyebrow {
  color: #527166;
  font-size: 0.76rem;
}

.tutor-intake-panel h1 {
  margin-top: 9px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 2.3rem;
  font-weight: 500;
  line-height: 1.15;
}

.tutor-intake-lede {
  max-width: 440px;
  margin-top: 12px;
  color: #5e6f72;
  font-size: 0.94rem;
  line-height: 1.55;
}

.tutor-intake-login {
  margin-top: 14px;
  color: #5e6f72;
  font-size: 0.88rem;
}

.tutor-intake-login a {
  color: #0d806e;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.parent-login-prompt {
  width: fit-content;
  max-width: 100%;
  margin: -4px 8px 0;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(20, 42, 37, 0.12);
  color: #263a35;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.45;
}

.parent-login-prompt a {
  color: #087361;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.tutor-intake-progress {
  margin: 28px 0 24px;
}

.tutor-intake-progress-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.tutor-intake-progress-heading p {
  color: #35584c;
  font-size: 0.78rem;
  font-weight: 700;
}

.tutor-intake-progress-heading span {
  color: #84938b;
  font-size: 0.68rem;
  font-weight: 700;
}

.tutor-intake-progress-track {
  height: 4px;
  overflow: hidden;
  background: #e4ece7;
}

.tutor-intake-progress-track span {
  display: block;
  width: 25%;
  height: 100%;
  background: #0d806e;
  transition: width 240ms ease;
}

.tutor-intake-step {
  min-width: 0;
  padding: 0;
  border: 0;
}

.tutor-intake-step[hidden] {
  display: none;
}

.tutor-intake-step legend {
  margin-bottom: 20px;
  color: #18352d;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.55rem;
  line-height: 1.28;
}

.tutor-intake-step label {
  display: block;
  margin-bottom: 8px;
  color: #39574b;
  font-size: 0.86rem;
}

.tutor-intake-step select {
  min-height: 54px;
  border-color: #c4d2c9;
  border-radius: 4px;
  background: #fff;
  font-size: 0.96rem;
}

.tutor-intake-note {
  min-height: 36px;
  margin-top: 10px;
  color: #60736a;
  font-size: 0.82rem;
  line-height: 1.45;
}

.tutor-intake-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  border-top: 1px solid #e4ece7;
  padding-top: 16px;
}

.tutor-intake-actions button {
  min-width: 118px;
  min-height: 48px;
  margin: 0;
  border-radius: 4px;
  background: #0d806e;
  color: #fff;
}

.tutor-intake-actions button.ghost-btn {
  border: 1px solid #c4d2c9;
  background: #fff;
  color: #29473b;
}

.tutor-intake-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.tutor-intake-home {
  align-self: flex-start;
  margin-top: 18px;
  color: #37594b;
  font-size: 0.84rem;
  font-weight: 700;
  text-underline-offset: 3px;
}

.parent-dashboard-page .subject-list a.subject-pill {
  color: #0f5f53;
  text-decoration: none;
}

.parent-dashboard-page .subject-list a.subject-pill:hover,
.parent-dashboard-page .subject-list a.subject-pill:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 520px) {
  .tutor-intake-shell {
    justify-content: flex-start;
    padding: 20px 14px 28px;
  }

  .tutor-intake-panel {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .tutor-intake-visual {
    min-height: 210px;
  }

  .tutor-intake-visual-copy {
    right: 22px;
    bottom: 20px;
    left: 22px;
  }

  .tutor-intake-visual-copy > p:not(.eyebrow) {
    max-width: 280px;
    font-size: 1.45rem;
  }

  .tutor-intake-visual-copy > span {
    margin-top: 12px;
  }

  .tutor-intake-content {
    padding: 28px 22px;
  }

  .tutor-intake-panel h1 {
    font-size: 2rem;
  }

  .tutor-intake-progress {
    margin: 22px 0 20px;
  }

  .tutor-intake-step legend {
    font-size: 1.35rem;
  }

  .tutor-intake-actions button {
    min-width: 104px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tutor-intake-panel,
  .tutor-intake-progress-track span {
    animation: none;
    transition: none;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

::selection {
  background: #d3e9dd;
  color: #17352d;
}

a {
  text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(23, 111, 94, 0.34);
  outline-offset: 3px;
}

input,
select,
textarea {
  border-color: #cbd8d1;
  border-radius: 8px;
  background-color: #fff;
  color: #1d302d;
  font-family: "DM Sans", sans-serif;
}

button {
  border-radius: 8px;
  font-family: "DM Sans", sans-serif;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.hero-card,
.role-panel {
  border-radius: 10px;
  backdrop-filter: none;
}

.landing-announcement-track a {
  color: #17352d;
  font-weight: 700;
  text-decoration-color: rgba(23, 53, 45, 0.55);
}

.landing-announcement-track a:hover,
.landing-announcement-track a:focus-visible {
  color: #0b594a;
  text-decoration-color: currentColor;
}

.policy-body .view-login {
  min-height: 100vh;
  padding: 28px 20px;
}

.policy-body .policy-page {
  width: min(760px, 100%);
  max-width: none;
  padding: clamp(26px, 5vw, 52px);
  border: 1px solid #d6e0d9;
  border-top: 4px solid #edb958;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 56px rgba(24, 54, 43, 0.1);
  transform: none;
  animation: riseIn 420ms ease both;
}

.policy-body .policy-page .eyebrow {
  color: #527166;
  font-size: 0.74rem;
}

.policy-body .policy-page h1 {
  margin-top: 9px;
  color: #1d302d;
  font-family: "Fraunces", Georgia, serif;
  font-size: 2.45rem;
  font-weight: 500;
  line-height: 1.15;
}

.policy-body .policy-page h2 {
  margin-top: 26px;
  color: #29483d;
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.policy-body .policy-page p {
  color: #5b6d65;
  font-size: 0.94rem;
  line-height: 1.75;
}

.policy-body .policy-page .helper {
  margin-top: 10px;
  color: #75837c;
  font-size: 0.78rem;
}

.policy-body .policy-page a:not(.back-link) {
  color: #176f5e;
  font-weight: 700;
}

@media (max-width: 640px) {
  .policy-body .view-login {
    padding: 16px 12px;
  }

  .policy-body .policy-page h1 {
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .policy-body .policy-page {
    animation: none;
  }
}
