:root{--ink:#183f3d;--muted:#597977;--teal:#486d78;--action:#d7f5f2;--action-ink:#2e5660;--line:#dcebe7;--error:#b33e38;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}*{box-sizing:border-box}body{color:var(--ink);-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%;background:radial-gradient(at 0 10%,#c8f0e8 0,#0000 50%),linear-gradient(125deg,#e4f8f3,#eef9f7 60%,#fff);min-height:100vh;margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Noto Sans CJK SC,Arial,sans-serif;font-size:15px;line-height:1.65}button,input,textarea,select{font:inherit}button,a,input,label{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.65}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,fieldset:focus-visible{outline-offset:4px;outline:3px solid #22a392}a{color:var(--teal)}.shell{grid-template-columns:300px minmax(0,1fr);align-items:start;gap:48px;max-width:1080px;margin:auto;padding:48px 28px 40px;display:grid}.intro{padding-top:4px;position:sticky;top:36px}.brand{object-fit:contain;width:210px;height:auto;display:block}.intro-body{margin-top:56px}.eyebrow{color:var(--teal);letter-spacing:.08em;align-items:center;gap:8px;font-size:12px;font-weight:700;display:inline-flex}.small-dot{background:#139381;border-radius:50%;width:6px;height:6px}.intro h1{letter-spacing:0;margin:18px 0;font-size:37px;font-weight:700;line-height:1.45}.slogan-line{white-space:nowrap;display:block}.title-dot{color:#d8a93c}.lead{color:var(--muted);margin:0;font-size:15px;line-height:1.9}.intro-meta{gap:8px;margin-top:22px;display:flex}.intro-meta span{background:#ffffff80;border:1px solid #bfded5;border-radius:6px;padding:3px 10px;font-size:12px}.intro-note{border-top:1px solid #c2ded4;gap:12px;margin-top:45px;padding-top:23px;display:flex}.intro-note strong{font-size:13px;font-weight:600}.intro-note p{color:var(--muted);margin:6px 0;font-size:12px;line-height:1.9}.leaf-icon{color:#139381;font-size:23px;line-height:1.5}.intro-bottom{color:var(--muted);margin-top:66px;font-size:11px}.intro-bottom span{color:var(--teal);margin-right:6px}.form-panel{background:#fff;border:1px solid #d9ece6;border-radius:24px;min-width:0;padding:32px 36px 24px;scroll-margin-top:16px;box-shadow:0 12px 45px #23665308}.stepper{border-bottom:1px solid var(--line);gap:12px;padding-bottom:23px;display:flex}.step{color:#718780;white-space:nowrap;flex:1;align-items:center;gap:8px;font-size:12px;display:flex}.step b{font-weight:500}.step>span{background:#f7faf8;border:1px solid #e0ebe6;border-radius:50%;place-items:center;width:26px;height:26px;font-size:10px;display:grid}.step.current{color:var(--teal)}.step.current b{font-weight:700}.step.current>span{color:var(--action-ink);background:var(--action);border-color:#9bcfcf}.step.done{color:var(--teal)}.step.done>span{background:#e0f4ed;border-color:#cce9dc}.form-heading{justify-content:space-between;align-items:center;gap:12px;margin:26px 0;display:flex}.section-kicker{letter-spacing:.06em;color:var(--muted);font-size:11px}h2{letter-spacing:0;margin:6px 0 0;font-size:23px;line-height:1.45}.required-note{white-space:nowrap;color:var(--muted);font-size:11px}#step-title:focus{outline:none}.field{border:0;min-width:0;margin:0 0 27px;padding:0}.field legend{margin-bottom:10px;padding:0;font-size:15px;font-weight:700}.required{color:#b2694b;margin-left:5px;font-size:12px}.optional{color:#6a827c;margin-left:8px;font-size:11px;font-weight:400}.hint{color:var(--muted);margin:-4px 0 11px;font-size:12px;line-height:1.7}.choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;display:grid}.grades{grid-template-columns:repeat(4,minmax(0,1fr))}.choice{border:1px solid var(--line);cursor:pointer;background:#fcfefd;border-radius:10px;align-items:center;gap:9px;min-height:47px;padding:10px 13px;font-size:13px;line-height:1.45;transition:border-color .15s,background .15s;display:flex;position:relative}.choice:hover{background:#f4fbf8;border-color:#8ebfb2}.choice.selected{color:#0a6b5a;background:#ecf8f3;border-color:#47a893}.choice input{opacity:0;width:1px;height:1px;margin:0;position:absolute}.choice:has(input:focus-visible){outline-offset:2px;outline:3px solid #22a392}.choice-indicator{color:#0000;border:1.2px solid #bdcfc8;border-radius:50%;flex-shrink:0;place-items:center;width:16px;height:16px;font-size:10px;line-height:1;display:grid}.choice-indicator.square{border-radius:4px}.selected .choice-indicator{background:var(--action);color:var(--action-ink);border-color:#80bdbb}.grades .choice{justify-content:center;padding:10px 6px}.grades .choice-indicator{display:none}.text-input,textarea{border:1px solid var(--line);width:100%;color:var(--ink);background:#fcfefd;border-radius:10px;outline:none;min-height:48px;padding:12px 14px;font-size:14px;line-height:1.6}textarea{resize:vertical;min-height:92px}input::placeholder,textarea::placeholder{color:#71877f;font-size:13px}.text-input:focus,textarea:focus{border-color:#47a893;box-shadow:0 0 0 3px #46a88b10}.name-row{grid-template-columns:1fr 100px;gap:16px;display:grid}.field-error{color:var(--error);margin:7px 0 0;font-size:12px}.has-error .text-input,.has-error textarea{border-color:#c97a71}.consent{background:#f3f9f6;border-radius:12px;margin:6px 0 24px;padding:17px 18px}.consent label{cursor:pointer;align-items:flex-start;gap:9px;font-size:12px;line-height:1.8;display:flex}.consent input{accent-color:#93cfc9;flex-shrink:0;width:17px;height:17px;margin:3px 0 0}.consent p{color:var(--muted);margin:8px 0 0 26px;font-size:11px;line-height:1.8}.consent .field-error{color:var(--error)}.form-actions{gap:12px;margin-top:6px;display:flex}.button{border:0;border-radius:11px;justify-content:center;align-items:center;gap:20px;min-height:50px;padding:13px 19px;font-size:15px;font-weight:600;display:flex}.primary{color:var(--action-ink);background:linear-gradient(110deg,#d7f5f2,#eef9f7);border:1px solid #9bcfcf;flex:1;box-shadow:0 4px 12px #527a8110}.primary:hover{background:linear-gradient(110deg,#c9eeeb,#e2f6f2);border-color:#83bdbc}.primary:active{background:#c9eeeb}.primary>span{font-size:20px}.back{border:1px solid var(--line);color:var(--muted);background:#f2f7f4;flex:0 0 105px}.bottom-hint{color:var(--muted);text-align:center;margin:12px 0 0;font-size:11px}.submit-error{color:var(--error);background:#fff4f2;border-radius:10px;margin-bottom:16px;padding:12px 16px;font-size:13px}.honey{width:1px;height:1px;position:absolute;left:-99999px;overflow:hidden}.mobile-footer{display:none}.success{text-align:center;flex-direction:column;align-items:center;min-height:530px;padding-top:72px;padding-bottom:60px;display:flex}.success-mark{color:var(--teal);background:#e1f5ec;border-radius:50%;place-items:center;width:72px;height:72px;margin-bottom:26px;font-size:32px;display:grid}.success h2{margin-top:13px}.success>p{color:var(--muted);margin-top:18px;font-size:14px;line-height:2}.receipt{background:#f8fcf9;border:1px dashed #bdded1;border-radius:12px;justify-content:space-between;align-items:center;width:100%;max-width:280px;margin:20px 0 18px;padding:15px;font-size:12px;display:flex}.receipt strong{letter-spacing:.06em;font-family:ui-monospace,monospace}.success-tip{color:var(--muted);font-size:12px}.admin-shell{max-width:1040px;margin:auto;padding:36px 24px}.admin-head{justify-content:space-between;align-items:center;gap:18px;margin-bottom:25px;display:flex}.admin-head .brand{width:160px}.admin-head h1{margin:15px 0 0;font-size:25px}.admin-tools{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.admin-tools .text-input{width:280px}.admin-tools .button{font-size:13px;text-decoration:none}.admin-info{color:var(--muted);margin:18px 0;font-size:13px}.record{border:1px solid var(--line);background:#fff;border-radius:14px;margin-bottom:12px;padding:0 21px}.record summary{cursor:pointer;align-items:center;gap:14px;padding:19px 0;list-style:none;display:flex}.record summary:after{content:"⌄";margin-left:auto}.record summary strong{font-size:17px}.record summary time{color:var(--muted);margin-left:auto;font-size:12px}.record[open] summary{border-bottom:1px solid var(--line)}.record dl{word-break:break-word;grid-template-columns:140px 1fr;gap:10px 14px;font-size:13px;display:grid}.record dt{color:var(--muted)}.record dd{white-space:pre-wrap;margin:0}.record-footer{justify-content:flex-end;padding-bottom:18px;display:flex}.delete-button{color:#9a5a4f;background:0 0;border:0;padding:9px;font-size:12px}.empty{text-align:center;color:var(--muted);background:#fff;border:1px dashed #bdded1;border-radius:14px;padding:50px 20px}.pagination{justify-content:center;align-items:center;gap:15px;margin:22px 0;display:flex}.auth-card{border:1px solid var(--line);background:#fff;border-radius:20px;max-width:480px;margin:80px auto;padding:40px}.auth-card p{color:var(--muted);font-size:14px}.auth-card .button{margin-top:24px;text-decoration:none}@media (width<=900px){.shell{grid-template-columns:250px minmax(0,1fr);gap:26px;padding:32px 24px}.intro h1{font-size:31px}.form-panel{padding:28px 25px 22px}.stepper{gap:8px}.step{gap:6px;font-size:11px}.step>span{width:23px;height:23px}.grades{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width<=680px){body{background:linear-gradient(165deg,#d7f5f2 0%,#eef9f7 40%,#f7fbf9 100%)}.shell{max-width:520px;padding:24px 16px;display:block}.intro{padding:0 8px;position:static}.brand{width:162px}.intro-body{margin-top:20px}.intro h1{letter-spacing:0;margin:8px 0 10px;font-size:27px;line-height:1.4}.intro h1 br{display:none}.lead{max-width:330px;font-size:13px;line-height:1.8}.desktop-break{display:none}.eyebrow{font-size:10px}.intro-meta{gap:7px;margin-top:13px}.intro-meta span{padding:2px 9px;font-size:10px}.intro-note,.intro-bottom{display:none}.form-panel{border-radius:19px;margin-top:25px;padding:22px 20px 20px;scroll-margin-top:12px}.stepper{gap:8px;padding-bottom:18px}.step{gap:6px;font-size:11px}.step>span{width:24px;height:24px;font-size:10px}.step b{font-weight:500}.form-heading{gap:8px;margin:21px 0 24px}h2{font-size:20px}.section-kicker,.required-note{font-size:10px}.field{margin-bottom:24px}.field legend{margin-bottom:10px;font-size:14px}.choices{gap:8px}.choice{gap:8px;min-height:48px;padding:10px;font-size:12px}.choice-indicator{width:15px;height:15px}.grades{grid-template-columns:repeat(3,minmax(0,1fr))}.text-input,textarea{padding:11px 12px;font-size:16px}.text-input::placeholder,textarea::placeholder{font-size:12px}.hint{font-size:11px}.optional{font-size:10px}.name-row{grid-template-columns:1fr 83px;gap:12px}.name-row legend{font-size:13px}.name-row .optional{margin-left:4px}.consent{padding:15px 13px}.bottom-hint{font-size:10px}.mobile-footer{text-align:center;color:#678a80;margin:22px 0 0;font-size:10px;display:block}.success{min-height:480px;padding:52px 20px}.success>p{font-size:13px}.admin-shell{padding:25px 16px}.admin-head{align-items:start}.admin-head h1{font-size:22px}.admin-head>a{font-size:12px}.admin-tools{gap:9px}.admin-tools .text-input{width:100%}.record{padding:0 15px}.record summary{flex-wrap:wrap;gap:7px}.record summary time{font-size:10px}.record dl{grid-template-columns:105px 1fr;gap:10px;font-size:12px}.auth-card{margin:40px 16px;padding:28px}.intro .brand{height:auto}}@media (width<=360px){.intro h1 br{display:block}.form-actions .back{flex-basis:82px;padding:12px 10px}.form-actions .primary{white-space:nowrap;gap:8px;padding:12px 10px}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}.other-detail{background:#f3f9f6;border:1px solid #dcebe7;border-radius:10px;margin-top:12px;padding:14px}.other-detail label{margin-bottom:8px;font-size:13px;font-weight:500;display:block}.other-detail textarea{background:#fff;min-height:80px;display:block}.other-detail textarea[aria-invalid=true]{border-color:#c97a71}.parent-row{grid-template-columns:minmax(0,1fr) 106px;gap:12px;display:grid}.parent-row select{padding-right:8px}.zone-answer{border:1px solid var(--line);background:#f3f9f6;border-radius:10px;margin-top:12px;padding:14px}.zone-label{margin-bottom:7px;font-size:13px;font-weight:500;display:block}.zone-answer .text-input{background:#fff;min-width:0;max-width:100%}.zone-city,.zone-correction{margin-top:12px}.zone-result{justify-content:space-between;align-items:center;gap:10px;margin-top:10px;font-size:14px;font-weight:600;display:flex}.zone-edit{min-height:44px;color:var(--teal);text-underline-offset:3px;background:0 0;border:0;flex-shrink:0;padding:8px 4px;font-size:13px;font-weight:500;text-decoration:underline}.zone-note{color:var(--muted);margin:0;font-size:11px;line-height:1.6}.zone-answer [aria-invalid=true]{border-color:#c97a71}@media (width<=360px){.zone-answer{padding:10px}.zone-result{gap:6px;font-size:13px}}.intro>a{display:inline-block}.login-label{color:var(--ink);margin:18px 0;font-size:14px;display:block}.login-label input{margin-top:7px;display:block}.auth-card form>.primary{width:100%}

.success-home{flex:none;width:100%;max-width:280px;margin:0 0 18px;text-decoration:none}

.form-navigation{display:flex;justify-content:flex-end;background:#fff;padding:0 0 16px;margin-bottom:4px}
.form-home{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 16px;border:1px solid #bfded5;border-radius:10px;background:#f4fbf8;color:var(--action-ink);font-size:13px;font-weight:600;text-decoration:none}
.form-home:hover{background:#e6f6ef;border-color:#8ebfb2}
.form-home:active{background:#d7f5f2}

/* Contact section and dialog for the parent growth profile. */
:root {
  --teacher-green: #329d66;
  --teacher-ink: #28764f;
  --teacher-line: rgba(60, 132, 103, 0.19);
}

.intro-meta,
.intro-note {
  display: none;
}

.intro .lead {
  max-width: 290px;
}

.intro-bottom {
  margin-top: 38px;
}

.teacher-contact {
  margin-top: 30px;
  padding-top: 17px;
  border-top: 1px solid var(--teacher-line);
}

.teacher-contact__title {
  display: block;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--teacher-green);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
  text-wrap: pretty;
}

.teacher-contact__title:hover {
  color: var(--teacher-ink);
}

.teacher-contact__qr {
  display: block;
  width: 155px;
  height: 155px;
  margin: 12px 0 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  line-height: 0;
}

.teacher-contact__qr img {
  display: block;
  width: 155px;
  height: 155px;
  max-width: 100%;
  object-fit: contain;
}

.form-meta-inline {
  display: inline-block;
  margin-left: 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0;
  vertical-align: baseline;
}

.form-actions {
  align-items: stretch;
}

.teacher-dialog {
  width: min(420px, calc(100vw - 40px));
  max-width: none;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.teacher-dialog::backdrop {
  background: rgba(17, 55, 47, 0.32);
}

.teacher-dialog__panel {
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  padding: 26px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #bfe1d4;
  border-radius: 24px;
  background: linear-gradient(145deg, #daf3e9, #edf9f3);
  box-shadow: 0 20px 65px rgba(25, 77, 60, 0.16);
}

.teacher-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.teacher-dialog__header h2 {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: var(--teacher-ink);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  text-wrap: balance;
}

.teacher-dialog__close {
  display: inline-flex;
  flex: 0 0 52px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 52px;
  min-width: 52px;
  min-height: 44px;
  margin: -5px -8px -5px 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #476f60;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.teacher-dialog__close:hover {
  background: rgba(72, 133, 101, 0.09);
}

.teacher-dialog__qr {
  display: block;
  width: 220px;
  height: 220px;
  max-width: 100%;
  margin: 26px auto;
  object-fit: contain;
  -webkit-touch-callout: default;
  user-select: auto;
}

.teacher-dialog__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.teacher-dialog__save,
.teacher-dialog__continue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #a9d3bf;
  border-radius: 10px;
  color: var(--teacher-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}

.teacher-dialog__save {
  background: #d3eddf;
}

.teacher-dialog__continue {
  background: transparent;
}

.teacher-dialog__save:hover,
.teacher-dialog__continue:hover {
  border-color: #78b394;
  background: #cce8d9;
}

.teacher-contact__title:focus-visible,
.teacher-contact__qr:focus-visible,
.teacher-dialog__close:focus-visible,
.teacher-dialog__save:focus-visible,
.teacher-dialog__continue:focus-visible {
  outline: 3px solid #24845b;
  outline-offset: 4px;
}

@media (max-width: 900px) and (min-width: 681px) {
  .teacher-contact__title {
    font-size: 18px;
  }

  .form-meta-inline {
    display: block;
    margin: 3px 0 0;
  }

}

@media (max-width: 680px) {
  html {
    scroll-padding-bottom: calc(94px + env(safe-area-inset-bottom, 0px));
  }

  .intro .lead {
    max-width: 330px;
  }

  .teacher-contact {
    margin-top: 14px;
    padding-top: 8px;
  }

  .teacher-contact__title {
    min-height: 44px;
    font-size: 15px;
  }

  .teacher-contact__qr {
    display: none;
  }

  .form-meta-inline {
    margin-left: 9px;
    font-size: 10px;
  }

  .form-panel .field,
  .form-panel .consent,
  .form-panel input,
  .form-panel textarea,
  .form-panel select {
    scroll-margin-bottom: calc(108px + env(safe-area-inset-bottom, 0px));
  }

  .form-actions {
    position: sticky;
    z-index: 5;
    bottom: 0;
    gap: 6px;
    margin: 8px -20px 0;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #e0ece6;
    background: #fff;
    box-shadow: 0 -8px 16px rgba(39, 91, 72, 0.035);
  }

  .form-actions .button {
    min-height: 44px;
    border-radius: 9px;
    line-height: 1.4;
  }

  .form-actions .back {
    flex: 0 0 52px;
    min-width: 0;
    padding: 8px 4px;
    font-size: 12px;
  }

  .form-actions .primary {
    flex: 1 1 0;
    min-width: 0;
    gap: 4px;
    padding: 8px 9px;
    font-size: 13px;
    white-space: nowrap;
  }

  .form-actions .primary > span {
    display: none;
  }

  .bottom-hint {
    margin-top: 10px;
  }

  .teacher-dialog {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    margin: 0;
  }

  .teacher-dialog__panel {
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    padding: 22px 22px calc(22px + env(safe-area-inset-bottom, 0px));
    border-bottom: 0;
    border-radius: 22px 22px 0 0;
  }

  .teacher-dialog__header h2 {
    font-size: 18px;
  }

  .teacher-dialog__qr {
    width: 210px;
    height: 210px;
    margin: 22px auto;
  }
}

@media (max-width: 360px) {
  .form-meta-inline {
    display: block;
    margin: 3px 0 0;
  }

  .teacher-dialog__header h2 {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .teacher-dialog,
  .teacher-dialog *,
  .teacher-contact * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
