@font-face {
  font-family: 'ZCOOL KuaiLe';
  src: url('./assets/fonts/ZCOOLKuaiLe-Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #25354c;
  --ink-soft: #596b82;
  --muted: #687b90;
  --sky: #dff4ff;
  --sky-strong: #60bfe8;
  --blue-ink: #236d99;
  --coral: #ff907f;
  --coral-dark: #df685b;
  --yellow: #ffd76e;
  --yellow-soft: #fff3c7;
  --mint: #bcefe0;
  --mint-dark: #3f9b83;
  --lavender: #e8e2ff;
  --purple: #7d70c7;
  --cream: #fffaf2;
  --white: #ffffff;
  --line: #e7edf2;
  --shadow: 0 18px 50px rgba(56, 99, 126, 0.12);
  --shadow-small: 0 8px 22px rgba(56, 99, 126, 0.1);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 17px;
  --display: 'ZCOOL KuaiLe', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
  --body: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
}

* { box-sizing: border-box; }

html { min-width: 320px; scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  background-color: var(--cream);
  background-image: radial-gradient(circle at 1px 1px, rgba(99, 142, 170, 0.1) 1px, transparent 0);
  background-size: 28px 28px;
}

button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(83, 178, 222, .55); outline-offset: 3px; }
a { color: inherit; text-decoration: none; }

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 48px));
  height: 86px;
  margin: 0 auto;
  background: rgba(255, 250, 242, .84);
  backdrop-filter: blur(14px);
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 14px; background: var(--yellow); transform: rotate(-5deg); box-shadow: 4px 5px 0 rgba(229, 180, 67, .22); }
.brand-mark svg { width: 34px; height: 34px; overflow: visible; }
.mark-sun { fill: #ffb638; }
.mark-face { fill: #fff5d2; }
.mark-eye { fill: var(--ink); }
.mark-smile { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-width: 1.6; }
.brand-copy { display: grid; gap: 1px; line-height: 1.1; }
.brand-copy strong { font-size: 24px; font-weight: 900; letter-spacing: .02em; }
.brand-copy span { color: var(--muted); font-size: 14px; font-weight: 700; letter-spacing: .14em; }

.header-tools { display: flex; align-items: center; gap: 18px; }
.header-date { color: var(--muted); font-size: 16px; font-weight: 700; }
.child-button { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 99px; padding: 10px 14px; color: var(--ink); background: var(--white); box-shadow: var(--shadow-small); font-size: 16px; font-weight: 800; transition: transform .2s, box-shadow .2s; }
.child-button:hover { transform: translateY(-2px); box-shadow: 0 11px 28px rgba(56, 99, 126, .16); }
.child-button-icon { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 8px; color: var(--coral-dark); background: #ffebe6; font-size: 18px; }
.count-badge { display: grid; min-width: 20px; height: 20px; padding: 0 5px; place-items: center; border-radius: 99px; color: var(--white); background: var(--coral); font-size: 14px; line-height: 1; }

.main-content { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 34px 0 82px; }
.view[hidden] { display: none; }

.hero-card { position: relative; display: grid; grid-template-columns: 1.03fr .97fr; min-height: 355px; overflow: hidden; border-radius: var(--radius-xl); background: linear-gradient(120deg, #e6f7ff 0%, #e1f5ff 54%, #eaf8f1 100%); box-shadow: var(--shadow); isolation: isolate; }
.hero-card::before { position: absolute; z-index: -1; top: -130px; left: 48%; width: 380px; height: 380px; border: 1px solid rgba(255,255,255,.72); border-radius: 50%; content: ''; box-shadow: 0 0 0 30px rgba(255,255,255,.16), 0 0 0 62px rgba(255,255,255,.1); }
.hero-card::after { position: absolute; z-index: -1; right: -50px; bottom: -74px; width: 230px; height: 150px; border-radius: 50%; background: rgba(255, 255, 255, .3); content: ''; transform: rotate(-17deg); }
.hero-copy { position: relative; z-index: 1; padding: 52px 36px 42px 56px; }
.eyebrow, .section-kicker { margin: 0; color: var(--blue-ink); font-size: 14px; font-weight: 900; letter-spacing: .17em; }
.eyebrow { display: flex; align-items: center; gap: 8px; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 5px rgba(255, 144, 127, .18); }
.hero-copy h1 { max-width: 520px; margin: 22px 0 12px; color: var(--ink); font-family: var(--display); font-size: clamp(40px, 5vw, 62px); font-weight: 400; line-height: 1.08; letter-spacing: .02em; }
.hero-copy h1 em { position: relative; color: var(--coral-dark); font-style: normal; white-space: nowrap; }
.hero-copy h1 em::after { position: absolute; right: 3px; bottom: -5px; left: 3px; height: 8px; border-radius: 50%; background: rgba(255, 215, 110, .75); content: ''; transform: rotate(-2deg); z-index: -1; }
.hero-description { max-width: 355px; margin: 0; color: var(--ink-soft); font-size: 16px; font-weight: 600; line-height: 1.75; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 25px; }
.week-pill, .date-pill { display: inline-flex; align-items: center; min-height: 31px; border-radius: 99px; padding: 6px 12px; font-size: 14px; font-weight: 900; }
.week-pill { color: #397b99; background: rgba(255, 255, 255, .75); }
.date-pill { color: #9a6d1c; background: rgba(255, 229, 145, .76); }

.hero-illustration { position: relative; min-height: 355px; }
.hero-mascot { position: absolute; right: 7%; bottom: 1px; width: min(83%, 310px); overflow: visible; filter: drop-shadow(0 11px 0 rgba(70, 129, 157, .1)); }
.mascot-shadow { fill: rgba(71, 129, 158, .16); }
.mascot-body { fill: #62bddb; stroke: #3587aa; stroke-width: 3; }
.mascot-ear { fill: #53accb; stroke: #3587aa; stroke-linecap: round; stroke-width: 7; }
.mascot-face { fill: #fff3dd; stroke: #3587aa; stroke-width: 3; }
.mascot-bib { fill: var(--yellow); stroke: #e7af3d; stroke-width: 2; }
.mascot-eye { fill: var(--ink); }
.mascot-cheek { fill: none; stroke: #f39b84; stroke-linecap: round; stroke-width: 4; }
.mascot-mouth, .mascot-strap { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-width: 3; }
.mascot-star { fill: var(--yellow); stroke: #e7af3d; stroke-width: 2; }
.mascot-dot { fill: #ffad9c; }
.speech-bubble { position: absolute; top: 42px; right: 13%; z-index: 2; border-radius: 13px 13px 13px 4px; padding: 9px 13px; color: var(--blue-ink); background: var(--white); box-shadow: 5px 6px 0 rgba(62, 138, 170, .13); font-size: 16px; font-weight: 900; transform: rotate(4deg); }
.speech-bubble span { position: absolute; bottom: -6px; left: 8px; width: 10px; height: 10px; background: var(--white); clip-path: polygon(0 0, 100% 0, 0 100%); }
.hero-scribble { position: absolute; border: 3px solid rgba(255, 215, 110, .7); border-radius: 50%; }
.hero-scribble-one { top: 98px; left: 12%; width: 21px; height: 21px; }
.hero-scribble-two { right: 6%; bottom: 70px; width: 9px; height: 9px; border-color: rgba(255, 144, 127, .7); }

.home-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 54px 0 19px; }
.section-kicker { color: var(--muted); font-size: 13px; letter-spacing: .18em; }
.home-section-heading h2 { margin: 5px 0 0; font-size: 26px; font-weight: 900; letter-spacing: -.03em; }
.text-link { border: 0; padding: 4px 0; color: var(--blue-ink); background: none; font-size: 16px; font-weight: 900; }
.text-link span, .card-action span { display: inline-block; margin-left: 5px; transition: transform .2s; }
.text-link:hover span, .card-action:hover span { transform: translateX(4px); }

.home-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.info-card { min-height: 310px; border: 1px solid rgba(221, 232, 237, .85); border-radius: var(--radius-lg); padding: 24px; background: var(--white); box-shadow: var(--shadow-small); }
.course-summary-card { background: linear-gradient(140deg, #ffffff 0%, #f9fdff 100%); }
.duty-summary-card { background: linear-gradient(140deg, #ffffff 0%, #fffaf6 100%); }
.card-topline { display: flex; align-items: center; gap: 11px; }
.card-icon { display: grid; width: 39px; height: 39px; flex: 0 0 39px; place-items: center; border-radius: 13px; font-size: 22px; }
.card-icon-blue { color: #2c8bb8; background: var(--sky); }
.card-icon-coral { color: var(--coral-dark); background: #ffebe5; }
.card-label { margin: 0 0 2px; color: var(--muted); font-size: 14px; font-weight: 800; }
.card-topline h3 { margin: 0; font-size: 22px; font-weight: 900; }
.card-arrow { align-self: start; margin-left: auto; color: #b8c5cf; font-size: 20px; }
.compact-course-list, .compact-duty-list { display: grid; gap: 7px; margin-top: 21px; }
.compact-course-item, .compact-duty-item { display: flex; align-items: center; min-height: 35px; gap: 10px; border-radius: 11px; padding: 6px 10px; background: #f6fafc; }
.compact-course-item .time { width: 69px; flex: 0 0 69px; color: var(--ink-soft); font-size: 14px; font-weight: 700; }
.compact-course-item .subject { color: var(--ink); font-size: 18px; font-weight: 800; }
.subject-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--sky-strong); }
.subject-dot.subject-math { background: #f2ba54; }
.subject-dot.subject-language { background: var(--coral); }
.subject-dot.subject-sport { background: #5dc7b0; }
.subject-dot.subject-art { background: #e492d1; }
.subject-dot.subject-music { background: #9a8ce3; }
.subject-dot.subject-science { background: #88c970; }
.subject-dot.subject-moral { background: #efa676; }
.subject-dot.subject-special { background: var(--yellow); }
.compact-duty-item { justify-content: space-between; background: #fff8f4; }
.compact-duty-item .duty-task { overflow: hidden; color: var(--ink-soft); font-size: 16px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.compact-duty-item .duty-person { color: #b64738; font-size: 18px; font-weight: 800; white-space: nowrap; }
.compact-duty-item.is-mine { border: 1.5px solid #ffae99; background: #fff0eb; box-shadow: 0 4px 0 rgba(255, 144, 127, .12); }
.compact-duty-item.is-mine .duty-person::before { margin-right: 3px; content: '★'; font-size: 13px; }
.empty-card-message { padding: 18px 8px; color: var(--muted); font-size: 16px; font-weight: 700; line-height: 1.6; }
.card-action { display: inline-flex; align-items: center; margin-top: 18px; border: 0; padding: 0; color: var(--blue-ink); background: transparent; font-size: 14px; font-weight: 900; }

.child-callout { display: flex; align-items: center; gap: 13px; margin-top: 21px; border: 1px dashed #f3c4b5; border-radius: var(--radius-md); padding: 15px 17px; background: rgba(255, 248, 241, .73); }
.callout-icon { display: grid; width: 37px; height: 37px; flex: 0 0 37px; place-items: center; border-radius: 12px; color: var(--coral-dark); background: #ffdfd5; font-size: 20px; }
.callout-copy { display: grid; gap: 3px; min-width: 0; }
.callout-copy strong { font-size: 16px; font-weight: 900; }
.callout-copy span { color: var(--muted); font-size: 14px; font-weight: 700; }
.outline-button, .primary-button { border-radius: 99px; font-size: 14px; font-weight: 900; transition: transform .2s, box-shadow .2s; }
.outline-button { margin-left: auto; border: 1px solid #efaa96; padding: 9px 14px; color: var(--coral-dark); background: var(--white); white-space: nowrap; }
.outline-button:hover, .primary-button:hover { transform: translateY(-2px); box-shadow: 0 7px 15px rgba(255, 144, 127, .2); }

.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin: 15px 0 24px; }
.page-heading h1 { margin: 7px 0 5px; font-family: var(--display); font-size: 48px; font-weight: 400; letter-spacing: .02em; }
.page-heading p:not(.section-kicker) { margin: 0; color: var(--ink-soft); font-size: 16px; font-weight: 600; }
.week-controls { display: inline-flex; gap: 5px; padding: 4px; border-radius: 99px; background: #edf4f8; }
.week-control { border: 0; border-radius: 99px; padding: 9px 15px; color: var(--muted); background: transparent; font-size: 14px; font-weight: 900; transition: background .2s, color .2s, box-shadow .2s; }
.week-control.is-active { color: var(--blue-ink); background: var(--white); box-shadow: 0 3px 10px rgba(61, 120, 146, .11); }
.schedule-context { display: flex; align-items: center; justify-content: space-between; min-height: 53px; margin-bottom: 17px; border-radius: var(--radius-md); padding: 13px 17px; color: var(--blue-ink); background: var(--sky); font-size: 16px; font-weight: 800; }
.schedule-context strong { color: var(--ink); }
.context-legend { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.context-legend .legend-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }

.schedule-course { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; border-radius: 9px; padding: 6px 8px; color: var(--ink); background: #f6fafc; font-size: 14px; font-weight: 900; line-height: 1.35; white-space: pre-line; }
.schedule-course.subject-math { background: #fff5d7; }
.schedule-course.subject-language { background: #ffeae4; }
.schedule-course.subject-sport { background: #e2f8f2; }
.schedule-course.subject-art { background: #fbe8f7; }
.schedule-course.subject-music { background: #eeeaff; }
.schedule-course.subject-science { background: #ebf7e4; }
.schedule-course.subject-moral { background: #fff0e2; }
.schedule-course.subject-special { color: #8c6b27; background: #fff8dd; }
.schedule-course.is-empty { width: 19px; min-height: 5px; padding: 0; background: #f7f9fa; }

.duty-spotlight { min-height: 65px; margin-bottom: 18px; border: 1px solid #f4d1c6; border-radius: var(--radius-md); padding: 14px 18px; background: linear-gradient(105deg, #fff0eb, #fff9e5); }
.spotlight-empty { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 16px; font-weight: 700; }
.spotlight-empty strong { color: var(--coral-dark); }
.spotlight-empty .spotlight-icon { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border-radius: 10px; color: var(--coral-dark); background: #ffd8cd; font-size: 18px; }
.spotlight-active { display: flex; align-items: center; gap: 12px; }
.spotlight-active .spotlight-icon { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 12px; color: #9f6820; background: var(--yellow); font-size: 22px; }
.spotlight-active p { margin: 0; color: var(--ink-soft); font-size: 14px; font-weight: 700; }
.spotlight-active strong { color: var(--coral-dark); font-size: 18px; font-weight: 900; }
.privacy-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 24px 0 0; color: var(--muted); font-size: 14px; font-weight: 700; }

.bottom-nav { display: flex; justify-content: center; gap: 8px; width: max-content; margin: 0 auto; padding: 6px; border: 1px solid rgba(224, 234, 239, .9); border-radius: 99px; background: rgba(255, 255, 255, .9); box-shadow: var(--shadow-small); }
.nav-item { display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 99px; padding: 10px 18px; color: var(--muted); background: transparent; font-size: 14px; font-weight: 900; transition: color .2s, background .2s; }
.nav-item.is-active { color: var(--blue-ink); background: var(--sky); }
.nav-icon { font-size: 18px; line-height: 1; }
.site-footer { display: flex; justify-content: space-between; width: min(1180px, calc(100% - 48px)); margin: 28px auto 0; padding: 20px 0 30px; border-top: 1px solid rgba(218, 228, 234, .9); color: var(--muted); font-size: 14px; font-weight: 700; }

.modal-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 22px; background: rgba(35, 53, 76, .3); backdrop-filter: blur(5px); }
.modal-backdrop[hidden] { display: none; }
.child-modal { position: relative; width: min(100%, 465px); max-height: min(700px, calc(100vh - 44px)); overflow: auto; border-radius: 28px; padding: 29px; background: var(--white); box-shadow: 0 28px 80px rgba(35, 53, 76, .2); animation: modal-in .24s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-close { position: absolute; top: 16px; right: 18px; display: grid; width: 31px; height: 31px; place-items: center; border: 0; border-radius: 50%; color: var(--muted); background: #f5f8fa; font-size: 24px; line-height: 1; }
.modal-heading { display: flex; align-items: center; gap: 12px; }
.modal-spark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 14px; color: var(--coral-dark); background: #ffebe4; font-size: 24px; }
.modal-heading h2 { margin: 4px 0 0; font-size: 26px; font-weight: 900; }
.modal-description { margin: 18px 0 21px; color: var(--ink-soft); font-size: 16px; font-weight: 600; line-height: 1.65; }
.child-form label { display: block; margin-bottom: 7px; color: var(--ink); font-size: 14px; font-weight: 900; }
.input-row { display: flex; gap: 8px; }
.input-row input { min-width: 0; flex: 1; border: 1px solid #dce7ec; border-radius: 12px; padding: 11px 13px; color: var(--ink); background: #fbfdfe; font-size: 16px; font-weight: 700; }
.input-row input::placeholder { color: #b4c0ca; }
.primary-button { border: 0; padding: 11px 18px; color: var(--white); background: var(--coral); }
.input-hint { min-height: 17px; margin: 7px 0 19px; color: var(--muted); font-size: 14px; font-weight: 700; }
.input-hint.is-error { color: var(--coral-dark); }
.saved-children-heading { display: flex; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 900; }
.saved-children-heading span:last-child { color: var(--muted); font-size: 14px; }
.saved-children { display: flex; flex-wrap: wrap; gap: 8px; min-height: 38px; margin-top: 13px; }
.child-chip { display: inline-flex; align-items: center; gap: 7px; border-radius: 99px; padding: 8px 10px 8px 12px; color: var(--blue-ink); background: var(--sky); font-size: 14px; font-weight: 900; }
.chip-remove { display: grid; width: 19px; height: 19px; place-items: center; border: 0; border-radius: 50%; color: var(--blue-ink); background: rgba(255, 255, 255, .65); font-size: 16px; line-height: 1; }
.children-empty { width: 100%; padding: 8px 0 2px; color: var(--muted); font-size: 14px; font-weight: 700; }
.modal-footnote { display: flex; align-items: center; gap: 6px; margin-top: 23px; color: var(--muted); font-size: 13px; font-weight: 700; }
.toast { position: fixed; z-index: 200; right: 20px; bottom: 22px; max-width: calc(100vw - 40px); border-radius: 99px; padding: 11px 16px; color: var(--white); background: var(--ink); box-shadow: var(--shadow); font-size: 14px; font-weight: 800; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .site-header, .main-content, .site-footer { width: min(100% - 34px, 720px); }
  .site-header { height: 76px; }
  .header-date { display: none; }
  .hero-card { grid-template-columns: 1fr .9fr; }
  .hero-copy { padding-left: 34px; }
  .hero-mascot { right: -8%; width: 110%; }
  .speech-bubble { right: 12%; }
}

@media (max-width: 620px) {
  body { background-size: 23px 23px; }
  .site-header, .main-content, .site-footer { width: calc(100% - 28px); }
  .site-header { height: 68px; }
  .brand-mark { width: 37px; height: 37px; border-radius: 12px; }
  .brand-mark svg { width: 29px; height: 29px; }
  .brand-copy strong { font-size: 20px; }
  .brand-copy span { font-size: 13px; }
  .child-button { padding: 8px 10px; font-size: 14px; }
  .child-button-icon { width: 21px; height: 21px; font-size: 16px; }
  .count-badge { min-width: 18px; height: 18px; font-size: 13px; }
  .main-content { padding-top: 18px; padding-bottom: 24px; }
  .hero-card { display: block; min-height: 501px; border-radius: 26px; }
  .hero-copy { padding: 31px 23px 0; }
  .eyebrow { max-width: 240px; font-size: 12px; line-height: 1.5; }
  .hero-copy h1 { margin-top: 19px; font-size: 44px; }
  .hero-description { max-width: 270px; font-size: 14px; line-height: 1.65; }
  .hero-meta { margin-top: 17px; }
  .hero-illustration { height: 230px; min-height: 0; }
  .hero-mascot { right: 5%; bottom: -7px; width: 80%; }
  .speech-bubble { top: 18px; right: 9%; padding: 7px 10px; font-size: 14px; }
  .hero-scribble-one { top: 68px; left: 12%; }
  .home-section-heading { align-items: start; margin: 35px 0 16px; }
  .home-section-heading h2 { font-size: 24px; }
  .text-link { align-self: end; font-size: 14px; }
  .home-cards { grid-template-columns: 1fr; gap: 13px; }
  .info-card { min-height: 0; padding: 19px; border-radius: 21px; }
  .compact-course-list, .compact-duty-list { margin-top: 15px; }
  .compact-course-item, .compact-duty-item { min-height: 33px; }
  .child-callout { align-items: flex-start; padding: 14px; }
  .callout-copy span { line-height: 1.45; }
  .outline-button { align-self: center; }
  .bottom-nav { position: sticky; z-index: 15; bottom: 12px; width: calc(100% - 36px); justify-content: space-around; margin-top: 10px; }
  .nav-item { flex: 1; justify-content: center; padding: 9px 6px; font-size: 14px; }
  .nav-item .nav-icon { font-size: 18px; }
  .site-footer { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: normal; justify-items: center; gap: 5px; padding-bottom: 15px; font-size: 13px; text-align: center; }
  .page-heading { align-items: start; margin-top: 5px; }
  .page-heading h1 { font-size: 41px; }
  .page-heading p:not(.section-kicker) { max-width: 190px; font-size: 14px; line-height: 1.5; }
  .week-controls { flex: 0 0 auto; }
  .week-control { padding: 8px 10px; font-size: 14px; }
  .schedule-context { align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 12px; padding: 12px 14px; font-size: 14px; }
  .duty-spotlight { margin-bottom: 12px; padding: 12px 14px; }
  .spotlight-empty { font-size: 14px; line-height: 1.5; }
  .spotlight-active strong { font-size: 16px; }
  .spotlight-active p { font-size: 13px; }
  .modal-backdrop { align-items: end; padding: 0; }
  .child-modal { width: 100%; max-height: calc(100vh - 16px); border-radius: 27px 27px 0 0; padding: 25px 20px 27px; }
  .toast { right: 14px; bottom: 87px; left: 14px; max-width: none; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Local type, clear duty details, and persistent navigation. */
.brand-copy strong, .home-section-heading h2, .speech-bubble { font-family: var(--display); font-weight: 400; }
body.modal-open { overflow: hidden; }
.bottom-nav { position: fixed; z-index: 25; top: 14px; bottom: auto; left: 50%; transform: translateX(-50%); }
.mine-label { display: inline-block; margin-left: 4px; padding: 2px 4px; border-radius: 5px; background: #ffdfd5; color: #9b402f; font-size: 12px; white-space: nowrap; }
.child-callout.has-duty { border: 2px solid var(--coral); background: #fff0db; }
.child-callout.has-duty .callout-copy strong { color: #a7402c; }
.callout-copy span { line-height: 1.7; }
.empty-illustration { display: block; margin-bottom: 12px; color: #60a9c1; font-size: 42px; }
.empty-card-message { text-align: center; }
.today-column { background: #e6f5fd; }
.schedule-course.no-class, .mobile-course-subject.no-class { background: transparent; color: #8895a0; font-weight: 500; font-size: 14px; }
.compact-course-item .time { width: 90px; flex-basis: 90px; }
.compact-course-item .subject { white-space: pre-line; line-height: 1.6; }
.spotlight-active p { margin-top: 5px; line-height: 1.8; }
.hero-description { line-height: 1.8; }
@media (max-width: 1000px) {
  .header-date { display: none; }
}
@media (max-width: 620px) {
  .bottom-nav { top: auto; bottom: max(12px, env(safe-area-inset-bottom)); left: 50%; backdrop-filter: blur(16px); }
  .site-footer { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .hero-card { min-height: 320px; }
  .hero-copy { padding: 27px 20px 24px; }
  .hero-copy h1 { font-size: 39px; max-width: 240px; }
  .hero-description { max-width: 185px; font-size: 14px; }
  .hero-meta { max-width: 190px; }
  .hero-illustration { position: absolute; width: 170px; height: 180px; bottom: 6px; right: -10px; pointer-events: none; }
  .hero-mascot { width: 100%; right: 0; bottom: 0; }
  .speech-bubble { top: 4px; right: 35px; }
  .hero-scribble { display: none; }
  .child-callout { flex-wrap: wrap; gap: 9px; }
  .callout-copy { flex: 1; }
  .callout-copy strong { line-height: 1.6; }
  .callout-copy span { font-size: 14px; }
  .input-row input { font-size: 18px; }
  .modal-close { width: 44px; height: 44px; top: 10px; right: 10px; }
  .chip-remove { width: 32px; height: 32px; }
  .child-chip { padding: 5px 6px 5px 12px; }
}

/* The printed workbook's merged grid, on both desktop and phone. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.table-wrap { overflow: hidden; border: 1px solid #dce8ed; border-radius: 22px; background: white; box-shadow: var(--shadow-small); }
.weekly-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 16px; }
.weekly-table th, .weekly-table td { padding: 13px 9px; border-right: 1px solid #e2ebef; border-bottom: 1px solid #e2ebef; text-align: center; vertical-align: middle; overflow-wrap: anywhere; }
.weekly-table tr > :last-child { border-right: 0; }
.weekly-table tbody tr:last-child > * { border-bottom: 0; }
.weekly-table thead th { height: 55px; background: #eff9fd; color: var(--blue-ink); font-weight: 700; }
.weekly-table small { display: block; margin-top: 5px; color: var(--ink-soft); font-size: 14px; font-weight: 500; }
.weekly-table .today-column { background: #eef9ff; }
.weekly-table thead .today-column { background: #d9effb; }
.course-grid .group-col { width: 55px; }
.course-grid .time-col { width: 125px; }
.course-grid .period-group { background: #f6fafc; color: var(--ink-soft); font-weight: 500; }
.course-grid tbody tr { height: 66px; }
.course-grid .period-time { background: #fbfdfe; font-size: 14px; font-weight: 600; }
.course-grid .shared-activity { background: #fbfcf6; color: #79753c; font-size: 14px; letter-spacing: .15em; }
.course-grid .rest-row > * { background: #fff8e5; color: #9b772e; font-weight: 600; }
.course-grid .care-row th { background: #f5fafc; font-size: 14px; }
.course-grid .schedule-course { min-height: 0; font-weight: 600; }
.duty-grid .task-col { width: 30%; }
.duty-grid tbody th { text-align: left; padding: 17px 20px; background: #fafcfd; }
.duty-grid tbody th > strong { display: block; font-size: 16px; color: var(--ink); font-weight: 600; }
.task-desktop-detail { display: block; margin-top: 5px; color: var(--ink-soft); font-weight: 400; font-size: 14px; line-height: 1.8; }
.duty-name { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 3px; padding: 7px 8px; font-size: 16px; font-weight: 600; border-radius: 10px; }
.duty-name.is-mine { color: #a74732; background: #ffede6; outline: 1px solid #f3baa9; }
.duty-name .mine-label { flex-basis: 100%; margin-left: 0; margin-top: 2px; background: none; color: #a74732; font-weight: 500; }
.mine-star { font-size: 13px; }
.duty-instructions { display: none; }
@media (max-width: 900px) {
  .duty-grid .task-col { width: 30%; }
  .duty-grid tbody th { padding: 12px; }
  .duty-name { padding: 6px 4px; font-size: 16px; }
  .course-grid .time-col { width: 100px; }
}
@media (max-width: 620px) {
  .table-wrap { border-radius: 16px; }
  .weekly-table { font-size: 14px; }
  .weekly-table th, .weekly-table td { padding: 9px 3px; }
  .weekly-table thead th { height: 44px; font-size: 14px; }
  .weekly-table small { margin-top: 4px; font-size: 12px; }
  .course-grid .group-col { width: 23px; }
  .course-grid .time-col { width: 54px; }
  .course-grid .period-group { writing-mode: vertical-rl; letter-spacing: .4em; }
  .course-grid tbody tr { height: 65px; }
  .course-grid .period-time { padding-left: 1px; padding-right: 1px; font-size: 13px; }
  .course-grid .period-time small { white-space: normal; line-height: 1.5; font-size: 12px; }
  .course-grid .schedule-course { padding: 5px 2px; border-radius: 6px; font-size: 13px; line-height: 1.6; }
  .course-grid .shared-activity { font-size: 14px; letter-spacing: .2em; }
  .course-grid .care-row th { font-size: 13px; }
  .course-grid .schedule-course.no-class { font-size: 13px; }
  .duty-grid .task-col { width: 23%; }
  .duty-grid tbody th { padding: 12px 7px; }
  .duty-grid tbody th > strong { font-size: 13px; line-height: 1.8; }
  .duty-grid tbody tr { height: 66px; }
  .task-desktop-detail { display: none; }
  .duty-name { padding: 5px 2px; font-size: 14px; gap: 1px; }
  .duty-name .mine-label { font-size: 12px; padding: 0; }
  .mine-star { display: none; }
  .duty-instructions { display: block; margin-top: 13px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 15px; background: white; }
  .duty-instructions summary { font-size: 14px; color: var(--blue-ink); cursor: pointer; }
  .duty-instructions dl { margin-bottom: 0; }
  .duty-instructions dl > div { padding: 9px 0; border-top: 1px solid var(--line); }
  .duty-instructions dt { font-size: 14px; color: var(--ink); }
  .duty-instructions dd { margin: 5px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.8; }
}

/* Home: lead with the date and daily arrangements, with a small mascot. */
.view-home .hero-card { display: block; min-height: 0; border-radius: 22px; box-shadow: var(--shadow-small); }
.view-home .hero-copy { padding: 20px 135px 20px 26px; }
.view-home .hero-copy h1 { max-width: none; margin: 10px 0 0; font-size: 33px; line-height: 1.2; }
.view-home .hero-meta { margin-top: 12px; max-width: none; gap: 8px; align-items: center; }
.view-home .hero-illustration { position: absolute; inset: auto 17px 5px auto; width: 115px; height: 112px; min-height: 0; pointer-events: none; }
.view-home .hero-mascot { width: 100%; right: 0; bottom: 0; filter: none; }
.view-home .hero-scribble { display: none; }
.view-home .hero-card::before { width: 180px; height: 180px; top: -100px; left: auto; right: 50px; }
.day-status { padding: 5px 9px; border-radius: 8px; color: #99412c; background: #ffead8; font-size: 14px; font-weight: 700; }
.day-status[hidden] { display: none; }
.view-home .home-section-heading { margin: 22px 0 13px; align-items: center; }
.view-home .home-section-heading h2 { margin: 0; font-size: 24px; }
.view-home .child-callout { margin-top: 13px; padding: 12px 15px; }
.view-home .callout-copy span { color: var(--ink-soft); }
@media (max-width: 620px) {
  .view-home .hero-copy { padding: 14px 72px 14px 15px; }
  .view-home .eyebrow { font-size: 12px; max-width: none; letter-spacing: .02em; gap: 6px; }
  .view-home .hero-copy h1 { font-size: 28px; margin-top: 9px; }
  .view-home .hero-meta { margin-top: 9px; gap: 5px; }
  .view-home .week-pill { min-height: 25px; padding: 4px 7px; font-size: 13px; }
  .view-home .day-status { padding: 4px 6px; font-size: 13px; }
  .view-home .hero-illustration { width: 82px; height: 82px; right: -5px; bottom: 10px; }
  .view-home .home-section-heading { margin: 17px 0 11px; }
  .view-home .home-section-heading h2 { font-size: 20px; }
  .view-home .child-callout { padding: 10px 12px; gap: 8px; }
  .view-home .callout-icon { width: 29px; height: 29px; flex-basis: 29px; font-size: 18px; }
  .view-home .callout-copy strong { font-size: 14px; }
  .view-home .callout-copy span { font-size: 13px; }
  .view-home .outline-button { padding: 7px 10px; font-size: 14px; }
  .view-home .info-card { padding: 15px; border-radius: 18px; }
  .view-home .card-topline { gap: 8px; }
  .view-home .card-icon { width: 32px; height: 32px; flex-basis: 32px; font-size: 18px; }
  .view-home .card-label { font-size: 14px; }
  .view-home .card-topline h3 { font-size: 20px; }
  .view-home .compact-course-list { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; gap: 6px; }
  .view-home .compact-course-item { display: grid; grid-template-columns: 6px 1fr; align-content: start; gap: 5px 5px; padding: 9px 8px; }
  .view-home .compact-course-item .time { grid-column: 1 / -1; width: auto; font-size: 14px; }
  .view-home .compact-course-item .subject-dot { width: 6px; height: 6px; }
  .view-home .compact-course-item .subject { font-size: 18px; line-height: 1.55; overflow-wrap: anywhere; }
  .view-home .compact-duty-list { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 12px; gap: 4px; }
  .view-home .compact-duty-item { flex-direction: column; justify-content: flex-start; gap: 6px; padding: 8px 2px; text-align: center; }
  .view-home .compact-duty-item .duty-task { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 31px; overflow: visible; white-space: normal; font-size: 14px; line-height: 1.4; font-weight: 600; }
  .view-home .compact-duty-item .duty-person { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 18px; }
  .view-home .compact-duty-item.is-mine .duty-person::before { content: none; }
  .view-home .compact-duty-item .mine-label { margin: 0; font-size: 13px; padding: 2px; }
  .view-home .card-action { margin-top: 12px; font-size: 14px; }
  .view-home .empty-card-message { grid-column: 1 / -1; padding: 10px 4px; font-size: 14px; }
  .view-home .empty-illustration { display: none; }
}
@media (max-width: 350px) {
  .view-home .hero-copy { padding-right: 63px; }
  .view-home .hero-copy h1 { font-size: 24px; }
  .view-home .eyebrow { font-size: 12px; }
  .view-home .hero-illustration { width: 72px; }
}
@media (max-width: 620px) {
  .view-home .duty-summary-card { order: -1; }
}
/* The mascot speaks the encouragement without displacing the daily information. */
.view-home .hero-copy { padding-right: 340px; }
.view-home .hero-illustration { width: 300px; height: 125px; right: 20px; bottom: 6px; }
.view-home .hero-mascot { width: 110px; right: 0; bottom: 0; }
.home-quote { position: absolute; top: 12px; left: 0; width: 193px; margin: 0; padding: 12px 14px; border: 1.5px solid #b9dae5; border-radius: 17px 17px 5px 17px; background: #fffef7; color: #285773; box-shadow: 3px 4px 0 #cce7ec; font-family: var(--display); font-size: 22px; font-weight: 400; line-height: 1.5; }
.home-quote::after { position: absolute; right: -9px; bottom: 9px; width: 13px; height: 13px; border-top: 1.5px solid #b9dae5; border-right: 1.5px solid #b9dae5; background: #fffef7; content: ''; transform: rotate(45deg); }
@media (max-width: 900px) {
  .view-home .hero-copy { padding-right: 250px; }
  .view-home .hero-illustration { width: 225px; right: 10px; }
  .view-home .hero-mascot { width: 87px; }
  .home-quote { width: 151px; font-size: 18px; }
}
@media (max-width: 620px) {
  .view-home .hero-copy { padding-right: 125px; }
  .view-home .hero-copy h1 { font-size: 26px; }
  .view-home .hero-illustration { width: 112px; height: 118px; right: 8px; bottom: 0; }
  .view-home .hero-mascot { width: 69px; right: 14px; bottom: -3px; }
  .home-quote { top: 7px; width: 112px; padding: 7px 8px; border-radius: 12px; font-size: 16px; line-height: 1.4; box-shadow: 2px 3px 0 #cce7ec; }
  .home-quote::after { right: 25px; bottom: -6px; width: 9px; height: 9px; border-top: 0; border-bottom: 1.5px solid #b9dae5; }
}
@media (max-width: 350px) {
  .view-home .hero-copy { padding-right: 109px; }
  .view-home .hero-copy h1 { font-size: 22px; }
  .view-home .hero-illustration { width: 99px; right: 6px; }
  .home-quote { width: 99px; font-size: 16px; padding: 7px; }
}

.course-period-heading { display: none; }
@media (max-width: 620px) {
  .course-period-heading { display: flex; grid-column: 1 / -1; align-items: center; gap: 10px; margin: 9px 0 2px; padding: 6px 9px; border-left: 3px solid #60bfe8; border-radius: 3px 8px 8px 3px; background: #eff9fd; color: #236d99; font-size: 16px; font-weight: 700; line-height: 1.5; }
  .course-period-heading:first-child { margin-top: 0; }
  .course-period-heading.is-afternoon { border-left-color: #e8bb4c; background: #fff8e5; color: #886424; }
  .course-period-heading.is-care { border-left-color: #82c9b8; background: #edf8f4; color: #357565; }
}

@media (max-width: 374px) {
  .view-home .compact-duty-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Shared reading scale and readable controls. */
:root { --text-caption: 13px; --text-small: 14px; --text-body: 16px; --text-emphasis: 18px; }
.site-header { gap: 16px; }
.brand-copy { line-height: 1.25; }
.child-button, .week-control, .nav-item, .primary-button, .outline-button { min-height: 44px; }
.header-date { font-size: var(--text-small); }
.section-kicker { font-size: var(--text-caption); letter-spacing: .06em; }
.modal-description, .children-empty { font-size: var(--text-body); }
.input-row input { font-size: var(--text-body); }
.modal-footnote, .input-hint, .site-footer, .privacy-note { font-size: var(--text-caption); line-height: 1.7; }
.modal-footnote { align-items: flex-start; }
.modal-heading { padding-right: 26px; }
.saved-children-heading { gap: 10px; }
.primary-button { background: #bb4c3d; }
.weekly-table { font-size: var(--text-body); }
.course-grid .schedule-course { font-size: var(--text-body); line-height: 1.6; }
.course-grid .period-time, .course-grid .care-row th { font-size: var(--text-small); }
.weekly-table small { font-size: var(--text-caption); }
.duty-name { font-size: var(--text-emphasis); white-space: nowrap; }
.duty-name .mine-label { white-space: normal; font-size: 12px; }
.duty-grid tbody th > strong { font-size: var(--text-body); }
.task-desktop-detail { font-size: var(--text-small); }
.compact-course-item .time { width: 106px; flex-basis: 106px; }
.view-home .home-section-heading { gap: 10px; flex-wrap: wrap; }
.view-home .text-link, .view-home .card-action { font-size: var(--text-small); }
.view-home .outline-button { font-size: var(--text-small); }
.view-home .callout-copy strong { font-size: var(--text-body); }
.view-home .callout-copy span { font-size: var(--text-small); }
.view-home .hero-copy h1 { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.week-badge { display: inline-flex; align-items: center; flex: 0 0 auto; padding: 5px 13px; border: 1.5px solid #8ccce7; border-radius: 11px; color: #165d87; background: #f4fcff; box-shadow: 0 3px 0 #b7ddec; font-family: var(--body); font-size: 18px; font-weight: 800; line-height: 1.3; letter-spacing: .08em; white-space: nowrap; }
.week-badge.is-odd { border-color: #e9b577; color: #975420; background: #fff5df; box-shadow: 0 3px 0 #eed3a7; }
.term-week { color: var(--blue-ink); font-size: var(--text-small); font-weight: 700; }
@media (max-width: 1100px) {
  .header-date { display: none; }
}
@media (min-width: 621px) and (max-width: 760px) {
  .bottom-nav { top: 17px; gap: 2px; padding: 4px; }
  .nav-item { padding: 7px 9px; font-size: 14px; gap: 4px; }
  .brand { gap: 7px; }
  .brand-copy strong { font-size: 21px; }
  .child-button { font-size: 13px; gap: 5px; padding: 8px; }
}
@media (max-width: 620px) {
  .site-header { gap: 8px; height: 76px; }
  .brand { gap: 7px; }
  .brand-copy strong { font-size: 23px; }
  .brand-copy span { font-size: 13px; }
  .child-button { font-size: 14px; gap: 5px; padding: 8px 10px; }
  .nav-item { font-size: 15px; padding: 9px 6px; gap: 6px; }
  .nav-item .nav-icon { font-size: 19px; }
  .site-footer { row-gap: 8px; }
  .page-heading { flex-wrap: wrap; gap: 14px; }
  .page-heading p:not(.section-kicker) { font-size: 16px; max-width: none; }
  .page-heading h1 { font-size: 38px; }
  .week-control { font-size: 16px; padding: 8px 17px; }
  .schedule-context { font-size: 15px; }
  .context-legend { font-size: 14px; }
  .table-wrap { overflow-x: auto; }
  .weekly-table { min-width: 350px; font-size: 14px; }
  .weekly-table th, .weekly-table td { padding: 10px 3px; }
  .weekly-table thead th { font-size: 14px; }
  .weekly-table small { font-size: 12px; }
  .course-grid .group-col { width: 26px; }
  .course-grid .time-col { width: 59px; }
  .course-grid .period-time, .course-grid .care-row th { font-size: 13px; }
  .course-grid .period-time small { font-size: 12px; }
  .course-grid .schedule-course { font-size: 14px; padding: 5px 2px; }
  .course-grid .shared-activity, .course-grid .schedule-course.no-class { font-size: 14px; }
  .duty-grid tbody th { padding: 12px 5px; }
  .duty-grid tbody th > strong { font-size: 13px; }
  .duty-name { font-size: 15px; padding: 5px 0; }
  .duty-name .mine-label { font-size: 12px; letter-spacing: -.5px; }
  .duty-instructions summary, .duty-instructions dt { font-size: 16px; }
  .duty-instructions dd { font-size: 15px; }
  .spotlight-active strong { font-size: 16px; }
  .spotlight-active p { font-size: 14px; }
  .view-home .card-topline h3 { font-size: 21px; }
  .view-home .compact-course-item .subject { font-size: 18px; }
  .view-home .compact-course-item .time { width: auto; font-size: 14px; }
  .course-period-heading { font-size: 16px; }
  .view-home .compact-duty-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .view-home .compact-duty-item .duty-task { min-height: 0; font-size: 13px; }
  .view-home .compact-duty-item .duty-person { font-size: 18px; }
  .view-home .compact-duty-item .mine-label { font-size: 12px; }
  .view-home .hero-card { padding: 14px 15px 12px; }
  .view-home .hero-copy { padding: 0; }
  .view-home .eyebrow { font-size: 12px; max-width: none; line-height: 1.5; }
  .view-home .hero-copy h1 { margin-top: 9px; font-size: 25px; flex-wrap: nowrap; gap: 8px; }
  .week-badge { font-size: 16px; padding: 5px 10px; border-radius: 10px; }
  .view-home .hero-meta { flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; margin-top: 12px; min-height: 88px; max-width: 90px; }
  .view-home .day-status { font-size: 12px; padding: 4px 6px; }
  .view-home .hero-illustration { width: calc(100% - 126px); height: 88px; right: 11px; bottom: 11px; }
  .view-home .hero-mascot { width: 65px; right: -8px; bottom: -5px; }
  .home-quote { top: 0; width: calc(100% - 49px); padding: 7px 9px; font-size: 16px; line-height: 1.4; }
  .home-quote::after { right: -6px; bottom: 10px; border-top: 1.5px solid #b9dae5; border-bottom: 0; }
}
@media (max-width: 350px) {
  .brand-mark { width: 31px; height: 31px; }
  .brand-copy strong { font-size: 21px; }
  .child-button { padding: 8px; font-size: 13px; }
  .view-home .hero-copy h1 { font-size: 22px; gap: 6px; }
  .week-badge { font-size: 15px; padding: 5px 8px; }
  .view-home .hero-meta { max-width: 76px; }
  .view-home .hero-illustration { width: calc(100% - 109px); }
  .home-quote { font-size: 15px; padding: 6px; }
  .view-home .compact-course-item .time { font-size: 13px; }
}
