:root {
  font-family: "Avenir Next", "Avenir", system-ui, sans-serif;
  font-size: 16px;
  color: #202950;
  background: #f7f4ee;
  --ink: #202950;
  --muted: #51566c;
  --line: #dedbd5;
  --paper: #fffdfa;
  --dark: #2a4095;
  --warn: #843e35;
  --font-title: "Avenir Next", "Avenir", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--dark); text-underline-offset: .22em; }
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 42px; padding: .6rem .9rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 11px;
  text-decoration: none; cursor: pointer; font-weight: 600; text-align: center;
}
button:hover, .button:hover { border-color: var(--dark); }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--dark); outline-offset: 3px; }
button.primary { background: var(--dark); color: white; border-color: var(--dark); }
button.ghost { background: transparent; }
button.danger { color: #913e36; }
button:disabled { opacity: .55; cursor: default; }
.skip { position: absolute; left: .5rem; top: -7rem; z-index: 5; background: white; padding: .8rem; }
.skip:focus { top: .5rem; }
.shell { min-height: 100vh; }
.app-bar { background: var(--paper); border-bottom: 1px solid var(--line); }
.bar-inner { max-width: 1256px; margin: auto; padding: .82rem clamp(.9rem,4vw,2rem);
  display: grid; grid-template-columns: 1fr auto 1fr; gap: .8rem; align-items: center; }
.brand { width: max-content; font: 700 clamp(1.25rem,2vw,1.6rem)/1.12 var(--font-title); letter-spacing: -.045em; color: var(--ink); text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: .18rem; }
nav button { border-color: transparent; background: transparent; padding: .47rem .66rem; font-size: .89rem; }
nav button[aria-current] { color: var(--dark); background: #edf0ff; border-color: #e2e7ff; }
.lock { justify-self: end; }
.lock button { font-size: .84rem; padding: .45rem .7rem; }
main { max-width: 1256px; margin: auto; padding: 2rem clamp(.9rem,4vw,2rem) 4rem; width: 100%; }
.standalone { max-width: 780px; margin: auto; padding-top: 10vh; }
.gate-page { max-width: 990px; }
.gate { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border-radius: 24px; overflow: hidden; background: #f8e9c4; }
.gate-copy { padding: clamp(1rem,4vw,2.7rem); align-self: center; }
.gate img { display: block; width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
h1,h2,h3,p { margin: 0; }
h1,h2 { font-family: var(--font-title); font-weight: 700; letter-spacing: -.035em; }
h1 { font-size: clamp(2.1rem,5vw,3.6rem); line-height: 1.06; overflow-wrap: anywhere; }
h2 { font-size: clamp(1.22rem,2.7vw,1.66rem); line-height: 1.2; }
h3 { font-size: 1.06rem; line-height: 1.35; }
p, li, dt, dd { line-height: 1.52; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.preline { white-space: pre-line; overflow-wrap: anywhere; }
.page-head { margin: 0 0 1.6rem; }
.page-head p { margin-top: .52rem; }
.page-head .row { margin-top: 1rem; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.space { justify-content: space-between; }
.stack { display: grid; gap: 1rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit,minmax(min(100%,290px),1fr)); align-items: start; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 13px;
  padding: 1rem 1.15rem; min-width: 0;
}
.card > * + *, .section > * + * { margin-top: .62rem; }
.hero { padding: clamp(1rem,4vw,1.8rem); background: #edf0fa; }
.section { margin-top: 1.4rem; }
.flow-list { list-style: none; padding: 0; display: grid; gap: .6rem; margin: .8rem 0 0; }
.listing { border-bottom: 1px solid var(--line); padding: .65rem 0; }
.listing:last-child { border-bottom: 0; }
.matter { display: inline-flex; align-items: center; gap: .4rem; padding: .24rem .62rem;
  border-radius: 99px; background: var(--subject-tint, #edebf7); color: var(--subject-ink, #493a70);
  font-size: .79rem; font-weight: 750; line-height: 1.4; }
.matter::before { content: ""; width: .48rem; height: .48rem; border-radius: 50%; background: var(--subject-ink, #493a70); }
.maths, .subject-maths { --subject: #809ae9; --subject-tint: #e9efff; --subject-ink: #2b428c; }
.francais, .subject-francais { --subject: #dd9dbc; --subject-tint: #f7e9f1; --subject-ink: #763455; }
.histoire, .subject-histoire { --subject: #d4a045; --subject-tint: #fcefcf; --subject-ink: #6c4a17; }
.geographie, .subject-geographie { --subject: #78ae91; --subject-tint: #e4f2e9; --subject-ink: #2e584a; }
.sciences, .subject-sciences { --subject: #ad9ad7; --subject-tint: #efe9fc; --subject-ink: #5a4785; }
.anglais, .subject-anglais { --subject: #d9917f; --subject-tint: #fbeae1; --subject-ink: #753e32; }
label { display: grid; gap: .35rem; font-weight: 650; }
label.check { display: flex; flex-direction: row; align-items: center; gap: .5rem; }
input:not([type=checkbox]), select, textarea {
  border: 1px solid #a5a9ba; background: #fff; border-radius: 7px; padding: .6rem .65rem;
  font-weight: 450; width: 100%; min-width: 0; min-height: 41px;
}
select {
  appearance: none;
  padding-right: 2.35rem;
  background-image: linear-gradient(45deg,transparent 38%,var(--muted) 40% 58%,transparent 60%),
    linear-gradient(135deg,transparent 38%,var(--muted) 40% 58%,transparent 60%);
  background-position: calc(100% - 17px) center, calc(100% - 12px) center;
  background-size: 5px 6px;
  background-repeat: no-repeat;
}
textarea { resize: vertical; min-height: 5.3rem; }
form .field-grid { display: grid; gap: 1rem .9rem; grid-template-columns: repeat(auto-fit,minmax(min(100%,235px),1fr)); }
.full { grid-column: 1/-1; }
fieldset { border: 1px solid var(--line); border-radius: 10px; min-inline-size: 0; padding: .9rem; }
legend { font-weight: 650; padding: 0 .3rem; }
details { border-top: 1px solid var(--line); padding: .6rem 0; }
details > * + * { margin-top: .55rem; }
summary { display: flex; align-items: center; justify-content: space-between; gap: .8rem; cursor: pointer; font-weight: 650; padding: .48rem .45rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; width: .43rem; height: .43rem; flex: none; margin-inline-end: .26rem;
  border: solid var(--muted); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
details[open] > summary::after { transform: rotate(225deg); }
summary:focus-visible { outline: 2px solid var(--dark); outline-offset: 2px; border-radius: .4rem; }
.form-panel { padding: clamp(.85rem,2.5vw,1.5rem); }
.form-panel > .field-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.form-panel > legend { color: #5f4326; padding: .28rem .68rem; border-radius: 8px; background: #f6e7d0; font-size: 1.22rem; font-weight: 740; }
.assignment-title { font-size: 1.21rem; gap: .52rem; }
.assignment-title input { min-height: 52px; font-size: 1.16rem; }
.dates-inputs, .photo-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .85rem; align-items: start; }
.photo-grid { grid-template-columns: minmax(0,1fr) minmax(9rem,12rem) minmax(0,1fr); align-items: end; }
.photo-picker { display: grid; justify-items: start; gap: .42rem; min-width: 0; }
.photo-picker > p { font-weight: 650; }
.photo-grid select, .photo-grid button { min-height: 42px; }
.photo-read { justify-self: end; }
#photo[hidden] { display: none; }
.form-disclosure { border: 1px solid var(--line); border-radius: .8rem; padding: 0 .76rem; background: #faf8f3; }
.form-disclosure[open] { padding-bottom: .82rem; }
.form-disclosure > summary { min-height: 49px; font-size: 1.13rem; font-weight: 720; }
.form-disclosure[open] > summary { margin-bottom: .7rem; }
.preparation-options { background: var(--paper); }
.preparation-options > summary { font-size: 1.03rem; }
form .preparation-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.preparation-grid textarea { min-height: 105px; }
.preparation-grid label { align-content: start; }
.source-field p { margin-top: .38rem; }
.preparation-intro { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .85rem; align-items: start;
  border-radius: 12px; background: #e9eef9; padding: .9rem; }
.preparation-intro h2 { font-size: 1.15rem; }
.preparation-intro p { margin-top: .35rem; }
dl { margin: .65rem 0 0; }
dt { font-weight: 700; }
dd { margin: 0 0 .7rem; white-space: pre-line; }
.week-banner { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.22fr);
  align-items: stretch; overflow: hidden; border-radius: 25px; background: #f8e9c4; min-height: 270px; }
.week-banner > div { padding: clamp(1.3rem,4vw,3.3rem); align-self: center; }
.week-date { color: #685334; font-weight: 700; letter-spacing: .015em; margin-bottom: .45rem; }
.week-banner h1 { font-size: clamp(2.3rem,6.15vw,5.2rem); letter-spacing: -.063em; }
.week-banner .row { margin-top: clamp(1.65rem,3vw,2.3rem); }
.week-banner img { display: block; width: 100%; height: 100%; max-height: 310px; min-height: 240px; object-fit: cover; object-position: 49% 51%; }
.dashboard { gap: 1.65rem; margin-top: 1.6rem; }
.dashboard > section { margin: 0; }
.section-heading { gap: .65rem; }
.section-heading .row { gap: .32rem; }
.section-heading button { min-height: 35px; padding: .38rem .52rem; font-size: .81rem; }
.week-filter { display: flex; align-items: center; gap: .35rem; padding-left: .25rem; font-size: .82rem; }
.week-filter select { min-height: 35px; width: auto; padding: .25rem 2.25rem .25rem .5rem; }
.session-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,330px),1fr)); gap: 1rem; }
.session-card { border: 1px solid color-mix(in srgb,var(--subject,#c3bfd1) 43%,#e9e4df);
  border-radius: 21px; background: var(--subject-tint,var(--paper)); padding: clamp(1rem,2.5vw,1.45rem);
  display: flex; flex-direction: column; gap: .8rem; min-width: 0; }
.session-top { display: flex; justify-content: space-between; align-items: start; gap: .55rem; }
.session-top > div { min-width: 0; }
.session-identity { display: flex; align-items: center; flex-wrap: wrap; gap: .32rem .53rem; margin-bottom: .47rem; }
.session-identity .matter { background: color-mix(in srgb,white 70%,var(--subject-tint,#edebf7)); }
.session-card h3 { font: 700 clamp(1.3rem,3vw,1.86rem)/1.15 var(--font-title); letter-spacing: -.032em; overflow-wrap: anywhere; }
.name-label { color: var(--ink); font-weight: 700; }
.date-tile { align-self: start; flex: none; min-width: 3.35rem; padding: .43rem .5rem .37rem; display: grid; justify-items: center;
  background: #fffdfa; border: 1px solid color-mix(in srgb,var(--subject,#c3bfd1) 50%,white); border-radius: 12px; color: var(--subject-ink,var(--ink)); }
.date-tile strong { line-height: 1; font-size: 1.57rem; letter-spacing: -.04em; }
.date-tile span { line-height: 1.1; font-size: .75rem; }
.session-take { color: var(--ink); padding: .59rem .72rem; background: #fffdfa; border-radius: .72rem; font-size: .93rem; }
.session-take b { display: block; margin-bottom: .13rem; color: var(--subject-ink,var(--ink)); }
.session-card button { align-self: start; margin-top: auto; }
.calendar-panel { background: #fdfbf5; border: 1px solid #e6e0d3; border-radius: 21px; padding: clamp(.85rem,2vw,1.32rem); }
.calendar-panel .section-heading p { margin-top: .22rem; }
.calendar-tools { gap: .72rem !important; }
.calendar-arrows button { width: 2.35rem; font-size: 1.16rem; }
.week { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: .53rem; align-items: stretch; }
.week > * + *, .grid > * + * { margin-top: 0; }
.day { padding: .65rem; min-height: 94px; min-width: 0; border: 1px solid #e9e3d8; border-radius: 13px; background: #f8f5ed; }
.day-has { background: #fffefa; }
.day h3 { display: flex; justify-content: space-between; align-items: baseline; gap: .25rem; }
.day h3 small { color: var(--muted); font-size: .8rem; font-weight: 600; }
.day h3 span { font-size: 1.27rem; font-weight: 750; }
.day-now { border-color: #8b9bd4; }
.day-now h3 span { color: white; background: var(--dark); border-radius: 50%; min-width: 1.8rem; height: 1.8rem; line-height: 1.8rem; text-align: center; font-size: 1rem; }
.day-child { margin-top: .5rem; border: 1px solid var(--line); border-radius: .55rem; overflow: hidden; }
.day-child h4 { margin: 0; background: var(--surface); color: var(--surface-ink); padding: .32rem .44rem; font-size: .81rem; }
.day ul { list-style: none; padding: 0; margin: 0; display: grid; }
.day ul > li + li { border-top: 1px solid var(--line); }
.day a { display: block; overflow-wrap: break-word; text-wrap: pretty; padding: .4rem .43rem;
  color: var(--subject-ink,var(--ink)); font-size: .81rem; font-weight: 650; line-height: 1.32; text-decoration: none; }
.day a:hover, .day a:focus-visible { background: var(--subject-tint,#eeeaf7); }
.calendar-done { display: table; margin-top: .22rem; padding: .1rem .37rem; border-radius: .35rem; color: #375343; background: #e6eee2; font-size: .7rem; }
.weekly-materials { display: grid; gap: .9rem; background: #fdfbf5; border: 1px solid #e6e0d3; border-radius: 21px; padding: clamp(.85rem,2vw,1.32rem); }
.weekly-materials > .tile-grid { align-items: start; }
.material-heading { gap: .7rem; }
.material-week-card { border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: var(--paper); }
.material-child { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .4rem; background: var(--surface); color: var(--surface-ink); padding: .65rem .85rem; }
.material-child h3 { margin: 0; }
.material-child > span { font-size: .83rem; }
.solo-lesson-title { margin: .75rem .9rem 0; }
.material-lesson { padding: 0; }
.material-lesson > summary { padding: .72rem .9rem; }
.material-lesson > summary span { flex: 1; }
.material-lesson > summary time { white-space: nowrap; font-weight: 500; }
.material-lesson[open] > summary { background: #f8f5ed; }
.material-session { display: grid; gap: .64rem; padding: .8rem .9rem; }
.solo-lesson-title + .material-session { padding-top: .48rem; }
.material-print-action { padding: 0 .9rem .82rem; }
.material-session h4, .material-session h5 { margin: 0; }
.material-session h5 { font-size: .88rem; }
.material-session ul { margin: .24rem 0 0; padding-left: 1.12rem; font-size: .87rem; }
.printing-list { background: var(--surface); border-radius: .6rem; padding: .52rem .63rem; }
.printing-list p { margin-top: .4rem; font-size: .84rem; }
.tone-lavender { --surface: #ece9f7; --surface-ink: #554173; }
.tone-sage { --surface: #e6eee2; --surface-ink: #375343; }
.tone-blue { --surface: #e7edf8; --surface-ink: #304b80; }
.tone-peach { --surface: #f6e8e4; --surface-ink: #754554; }
.tone-cream { --surface: #f7edd8; --surface-ink: #685134; }
.feature-intro, .accent-panel, .editorial-card { background: var(--surface,var(--paper)); border: 1px solid color-mix(in srgb,var(--surface,#f6f1ea) 74%,#bfb3a8); }
.feature-intro { border-radius: 24px; margin-bottom: 1.55rem; padding: clamp(1.1rem,3.6vw,2.55rem); }
.feature-intro p { color: var(--surface-ink,var(--muted)); margin-top: .55rem; max-width: 58ch; }
.feature-layout { display: grid; grid-template-columns: minmax(0,2fr) minmax(245px,1fr); align-items: start; gap: 1.25rem; }
.intake-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); gap: 1.1rem; align-items: start; }
.intake-back { margin-bottom: .85rem; }
.intake-card { display: grid; gap: .8rem; padding: clamp(.85rem,2.8vw,1.45rem); }
.intake-card > * + * { margin-top: 0; }
.intake-card ol { display: grid; gap: .45rem; margin: 0; padding-left: 1.28rem; }
.intake-card input[type=date] { max-width: 14rem; }
#week-prompt { min-height: 8.7rem; }
.packet-date { font-weight: 650; color: var(--muted); }
.intake-warnings { background: #f7edd8; border-radius: .65rem; padding: .7rem .82rem; }
.intake-warnings ul { padding-left: 1.1rem; margin: .35rem 0 0; }
.intake-child { display: grid; gap: .55rem; }
.intake-child > h3 { background: #e7edf8; border-radius: .5rem; padding: .42rem .65rem; }
.intake-child:nth-of-type(even) > h3 { background: #f6e8e4; }
.intake-task { min-width: 0; border: 1px solid var(--line); border-radius: .65rem; padding: .55rem .7rem; }
.intake-task > p { margin: .3rem 0; }
.intake-task details { padding-block: 0; }
.intake-task dd { overflow-wrap: anywhere; }
.intake-order ul { margin: .1rem 0 .4rem; padding-left: 1.28rem; }
#week-file[hidden] { display: none; }
.aid-layout { max-width: 940px; }
.aid-layout textarea { min-height: 7rem; }
#aid-status:empty { display: none; }
.aid-result { border-top: 4px solid #809ae9; padding: clamp(.85rem,3vw,1.5rem); }
.aid-result > * + * { margin-top: 0; }
.aid-result header h2 { margin: .26rem 0 .36rem; }
.aid-diagram { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,170px),1fr)); padding: 0; margin: 0; gap: .65rem; list-style: none; }
.aid-diagram li { display: flex; align-items: center; gap: .5rem; border: 1px solid var(--line); border-radius: .7rem; padding: .62rem; color: var(--muted); overflow-wrap: anywhere; }
.aid-diagram li b { display: grid; place-items: center; min-width: 1.65rem; min-height: 1.65rem; border-radius: .44rem; background: #edf0fa; color: var(--ink); }
.aid-diagram li[aria-current] { background: #e7edf8; border-color: #9caade; color: var(--ink); font-weight: 650; }
.aid-answer { padding: .75rem .9rem; border-radius: .65rem; background: #e6eee2; }
.aid-checklist { display: grid; gap: .45rem; padding-left: 1.2rem; margin: 0; }
.aid-checklist p { margin-top: .14rem; }
.aid-map > p { background: #e7edf8; border-radius: 12px; padding: .7rem; text-align: center; font-weight: 700; }
.aid-map > div { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,175px),1fr)); gap: .65rem; margin-top: .55rem; }
.aid-branch { padding: .1rem .55rem; border: 1px solid var(--line); border-top: 3px solid #ad9ad7; border-radius: .65rem; background: #f5f2fa; }
.aid-branch[open] { padding-bottom: .55rem; }
.aid-question { display: grid; gap: .75rem; }
.quiz-options { display: flex; flex-wrap: wrap; gap: .52rem; }
.quiz-options button { overflow-wrap: anywhere; }
.quiz-options button.quiz-correct { background: #dcebd9; border-color: #5b7b60; opacity: 1; }
.quiz-options button.quiz-incorrect { background: #f6e8e4; border-color: #a86d79; opacity: 1; }
.review-run-head { display: flex; justify-content: space-between; align-items: start; gap: .6rem; flex-wrap: wrap; }
.review-run-head h1 { margin-top: .28rem; font-size: clamp(1.9rem,4.7vw,3.1rem); }
.review-run .accent-panel > p { font-size: 1.15rem; font-weight: 600; }
.accent-panel { display: grid; gap: .7rem; border-radius: 19px; padding: clamp(1rem,2.5vw,1.5rem); }
.accent-panel p, .editorial-card > p { color: var(--surface-ink,var(--muted)); }
.review-card { display: grid; gap: .82rem; border: 1px solid color-mix(in srgb,var(--subject,#c3bfd1) 36%,var(--line));
  background: color-mix(in srgb,var(--subject-tint,#ece9f7) 57%,var(--paper)); padding: clamp(.85rem,2vw,1.2rem); border-radius: 18px; }
.review-head { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: .58rem .73rem; align-items: start; }
.review-head h3 { margin-top: .06rem; font-size: 1.22rem; overflow-wrap: anywhere; }
.review-head .matter { justify-self: end; background: var(--paper); }
.review-card .date-tile { padding: .48rem .52rem; }
.review-who .status { margin-left: .18rem; }
.review-prompt { background: var(--paper); border-radius: .62rem; border-left: 3px solid var(--subject,var(--dark)); padding: .62rem .78rem; }
.review-prompt h4 { margin: 0 0 .28rem; color: var(--subject-ink,var(--ink)); font-size: .91rem; }
.review-observation { font-size: .88rem; padding-inline: .18rem; }
.review-actions { gap: .48rem; }
.parent-aid { max-width: 820px; }
.parent-aid form { margin-top: .8rem; }
.parent-aid input[type=date] { max-width: 15rem; }
.leitner-list { list-style: none; padding: 0; margin: .15rem 0; display: grid; gap: .42rem; }
.leitner-list > li { display: grid; grid-template-columns: 1.55rem auto; align-items: center; gap: .52rem; }
.leitner-list b { display: grid; place-items: center; width: 1.55rem; height: 1.55rem; background: #f9fdf7; border-radius: .45rem; color: var(--surface-ink); }
.view-section { margin-top: 1.7rem; }
.view-section > h2 { margin-bottom: .8rem; }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,245px),1fr)); gap: .9rem; }
.feature-tiles { grid-template-columns: repeat(6,minmax(0,1fr)); }
.feature-tiles > article { grid-column: span 2; }
.feature-tiles > article:nth-child(n+4) { grid-column: span 3; }
.editorial-card { min-width: 0; border-radius: 17px; padding: clamp(.85rem,2.2vw,1.3rem); display: grid; gap: .65rem; align-content: start; justify-items: start; }
.editorial-card h3 { font-size: 1.13rem; }
.editorial-card .session-identity { margin: 0; }
.tile-links { display: grid; gap: .32rem; width: 100%; padding: 0; margin: 0; list-style: none; }
.tile-links small { display: block; padding-left: .55rem; }
.tile-link { width: 100%; padding: .46rem .57rem; text-align: left; justify-content: space-between; min-height: 37px; font-weight: 650; font-size: .91rem; }
.tile-link::after { content: "→"; color: var(--surface-ink,var(--dark)); }
.issue-actions { gap: .62rem; }
.family-intro { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.5fr); align-items: stretch; padding: 0; overflow: hidden; }
.family-intro > div { padding: clamp(1.1rem,3.6vw,2.55rem); align-self: center; }
.family-intro img { display: block; width: 100%; min-height: 180px; height: 100%; max-height: 245px; object-fit: cover; object-position: center 54%; }
.family-tile h2 { font-size: 1.18rem; }
.session-support { background: var(--subject-tint,var(--paper)); }
.support-identity { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.support-identity .matter { flex: none; background: var(--paper); }
.support-disclosure[open] > summary { margin-bottom: .65rem; }
.support-documents { display: grid; list-style: none; padding: 0; margin: .3rem 0 .45rem; gap: .45rem; }
.support-documents a { display: flex; align-items: center; justify-content: space-between; gap: .64rem; padding: .68rem .8rem;
  text-decoration: none; border-radius: .68rem; background: #f8f4eb; color: var(--ink); font-weight: 650; }
.support-documents a:hover { background: #ede8da; }
.document-kind { flex: none; color: var(--muted); font-size: .75rem; font-weight: 600; }
.support-types { gap: .72rem; }
.settings-layout { display: grid; gap: 1.75rem; }
.profile-initial { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: .8rem; background: #fffefa; color: var(--surface-ink); font-size: 1.35rem; font-weight: 720; }
.profile-card > .row { column-gap: .85rem; }
#import-file[hidden] { display: none; }
.ortho-panel { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 1rem;
  padding: clamp(1rem,3vw,1.35rem); border: 1px solid #ead4df; border-radius: 16px; background: #f8eaf1; }
.ortho-panel p { margin-top: .26rem; color: #654558; }
.ortho-initial { width: 2.9rem; line-height: 2.9rem; border-radius: .8rem; background: #fff7fa; color: #763455;
  font: 750 2.25rem/2.9rem Georgia,serif; text-align: center; }
.workshop { max-width: 770px; }
.spelling-steps { margin: 0; }
.spelling-steps li { background: var(--paper); border: 1px solid var(--line); border-radius: 99px; padding: .35rem .68rem; }
.spelling-steps li[aria-current] { color: var(--dark); background: #edf0ff; border-color: #c6d0f6; text-decoration: none; }
.work-step { padding: clamp(1rem,4vw,1.8rem); }
.work-step > * + * { margin-top: .9rem; }
.spelling-model { display: block; max-width: 100%; width: min(100%,440px); height: auto; border: 1px solid #eee5e7; border-radius: 10px; }
.spelling-word { font-size: clamp(2rem,7vw,3.6rem); font-weight: 750; letter-spacing: -.045em; }
.spelling-word strong { color: #763455; background: #f8eaf1; border-radius: .16em; padding: .02em .1em; }
.sheet-view { max-width: 940px; margin-inline: auto; }
.parent-sheet { display: grid; gap: 1.05rem; padding: clamp(1rem,4vw,2.1rem); background: var(--paper);
  border: 1px solid var(--line); border-top: 5px solid var(--subject,#a49aba); border-radius: 20px; color: var(--ink); }
.sheet-head { display: grid; gap: .46rem; }
.sheet-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .63rem; font-weight: 750; }
.sheet-page { margin-left: auto; font-size: .79rem; color: var(--subject-ink,var(--ink)); }
.sheet-level, .sheet-dates { color: var(--muted); font-size: .88rem; }
.sheet-section h2, .parent-box h2 { font-size: 1.17rem; letter-spacing: -.021em; }
.supply-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .62rem 1rem;
  padding: .32rem 0 .8rem; border-bottom: 1px solid var(--line); }
.supply-grid dt { color: var(--subject-ink,var(--ink)); font-size: .87rem; }
.supply-grid dd { margin: .11rem 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.parent-box, .answer-box, .closing-box { padding: .76rem .86rem; border-radius: 10px; }
.parent-box p, .closing-box p, .answer-box p { margin-top: .27rem; }
.session-prep { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.session-prep section { padding: .85rem .95rem; border-radius: 12px; background: #f7f2e9; }
.session-prep section + section { background: var(--subject-tint,#eeebf7); }
.session-prep h2 { font-size: 1.05rem; }
.material-list { list-style: none; padding: 0; margin: .34rem 0; }
.material-list li + li { margin-top: .24rem; }
.material-list li::before { display: inline-block; content: ""; width: .34rem; height: .34rem; border-radius: 50%; background: var(--subject-ink,var(--dark)); margin-right: .48rem; vertical-align: .16rem; }
.setup-note { margin-top: .32rem; color: var(--muted); font-size: .87rem; }
.support-bridge { display: grid; grid-template-columns: 1fr auto; gap: .46rem; align-items: center; }
.support-title { margin-top: .32rem; font-size: 1.05rem; font-weight: 700; }
.support-page { font-size: .84rem; color: var(--subject-ink,var(--muted)); }
.support-mini-image, .support-mini-track { width: 100px; padding: .27rem; border-radius: .55rem; background: white; }
.support-mini-track { display: flex; gap: .2rem; padding: .55rem .36rem; align-items: center; color: #245443; }
.support-mini-track i { flex: 1; border-bottom: 1px dashed currentColor; }
.help-box { background: #eef0f8; }
.sheet-start { background: #eef3e9; }
.task-aid-link { margin-top: .56rem; }
.sheet-goal { display: flex; flex-wrap: wrap; align-items: baseline; gap: .12rem .55rem; color: var(--subject-ink,var(--ink)); font-size: 1rem;
  background: var(--subject-tint,#edf0fa); border-left: 3px solid var(--subject,var(--dark)); border-radius: .55rem; padding: .64rem .77rem; }
.sheet-goal b { color: var(--ink); font-size: 1.05em; }
.sheet-actions { gap: .46rem; }
.sheet-actions button { padding-inline: .64rem; font-size: .88rem; white-space: nowrap; }
.sheet-actions .sheet-edit { margin-left: auto; }
.task-extra form { margin-top: .9rem; }
.original-grid { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(0,1fr); gap: .68rem; }
.original-source, .original-meta { padding: .8rem .92rem; border-radius: .8rem; background: #f8f1e3; }
.original-meta { background: #eaf0f8; }
.original-grid h3 { margin-bottom: .36rem; }
.original-meta p + p { margin-top: .36rem; }
.original-meta b, .flashcard-list b, .flashcard-print b { display: block; color: var(--muted); font-size: .81rem; margin-bottom: .22rem; }
.flashcard-list { list-style: none; padding: 0; display: grid; gap: .48rem; }
.flashcard-list > li, .flashcard-print > article { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.flashcard-list > li { border: 1px solid var(--line); border-radius: .65rem; background: #f8f5ed; }
.flashcard-list p, .flashcard-print p { padding: .58rem .74rem; overflow-wrap: anywhere; }
.flashcard-list p + p { border-left: 1px solid var(--line); }
.lesson-plan ol { padding: 0; margin: .52rem 0 0; list-style: none; counter-reset: instruction; }
.lesson-plan li { counter-increment: instruction; padding: .47rem .14rem; display: flex; gap: .64rem; align-items: baseline;
  border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.lesson-plan li::before { content: counter(instruction); flex: 0 0 1.36rem; background: var(--dark); color: white;
  text-align: center; border-radius: .32rem; font-size: .8rem; font-weight: 750; line-height: 1.38rem; }
.say { font-weight: 700; }
.parent-guide .parent-script { display: grid; gap: .58rem; }
.parent-guide .parent-script li { padding: .7rem .78rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.parent-script li > div { min-width: 0; flex: 1; }
.parent-script li h3 { margin-bottom: .32rem; }
.parent-script li .say { padding-left: .46rem; border-left: 2px solid var(--subject,var(--dark)); font-weight: 600; }
.parent-script li .say b { display: block; color: var(--subject-ink,var(--ink)); margin-bottom: .14rem; }
.step-details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .68rem 1.05rem; margin-top: .78rem; padding-top: .53rem; border-top: 1px solid var(--line); }
.step-details p { font-size: .92rem; }
.step-details b { display: block; color: var(--ink); margin-bottom: .18rem; font-size: 1rem; }
.parent-script .step-check { color: var(--subject-ink,var(--ink)); }
.answer-box { margin-top: .62rem; background: var(--subject-tint,#eeebf7); color: var(--subject-ink,var(--ink)); }
.answer-box p:first-of-type { font-weight: 700; }
.closing-box { background: #f5f3ee; }
.follow-up { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.2fr); gap: .6rem; }
.follow-up > :only-child { grid-column: 1/-1; }
.child-paper .child-lead { color: var(--muted); font-size: 1.12rem; }
.child-paper .lesson-plan li { font-size: 1.13rem; }
.printable-quiz ol { display: grid; gap: .55rem; margin-top: .65rem; padding: 0; list-style-position: inside; }
.printable-quiz li { padding: .7rem .85rem; border-radius: .65rem; background: var(--subject-tint,#edf0fa); font-size: 1.08rem; }
.printable-quiz li::marker { font-weight: 700; color: var(--subject-ink,var(--ink)); }
.floor-game { background: #e3efe5; color: #245443; border-radius: .9rem; padding: 1rem 1.15rem; }
.floor-game > p:first-child { font-size: 1.05rem; font-weight: 720; }
.floor-game > p:last-child { text-align: center; }
.pitch {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .5rem;
  padding: .65rem .3rem; font-weight: 650; text-align: center;
}
.pitch strong, .pitch small { display: block; }
.pitch strong { font-size: 1.35rem; }
.book-marker { display: block; width: 2rem; height: 1.4rem; margin: 0 auto .3rem; border: 2px solid #245443; border-left: .42rem solid #245443; border-radius: 3px; background: #fcf8e9; transform: rotate(-7deg); }
.pitch > div:last-child .book-marker { transform: rotate(7deg); }
.pitch-track { border: 2px dashed currentColor; border-width: 0 0 2px; }
.word-models { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem; }
.one-word { grid-template-columns: 1fr; }
.word-model { margin: 0; padding: .45rem; border-radius: .7rem; border: 1px solid var(--line); text-align: center; break-inside: avoid; }
.word-model img { display: block; max-width: 100%; max-height: 210px; width: auto; height: auto; margin: auto; }
.word-model figcaption { font-size: 2rem; font-weight: 650; }
.word-model:not(:has(img)) { display: grid; place-items: center; min-height: 3.5rem; }
.one-word .word-model img { max-height: 310px; }
.one-word .word-model figcaption { font-size: 2.6rem; }
.one-word .word-model { width: min(100%, 145mm); margin-inline: auto; }
.source-credit { color: var(--muted); font-size: .8rem; }
.steps { display: flex; flex-wrap: wrap; list-style: none; padding: 0; gap: .65rem; color: var(--muted); }
.steps li { white-space: nowrap; }
.steps [aria-current] { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: .24em; }
.child-step { font: 500 clamp(1.6rem,4.8vw,2.6rem)/1.26 var(--font-title); overflow-wrap: anywhere; }
.child-session { max-width: 870px; padding-top: clamp(1.4rem,6vh,4.4rem); }
.child-session-head { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: .55rem 1.05rem; }
.child-session-head > div { flex: 1 1 min(55%,19rem); }
.child-session-head h1 { font-size: clamp(1.9rem,4.4vw,3.15rem); }
.child-session-head p { margin-top: .45rem; color: var(--muted); }
.child-session-head .matter { padding: .38rem .72rem; white-space: nowrap; margin-top: .15rem; }
.child-session-card { padding: clamp(1rem,4vw,2rem); text-align: center; background: var(--subject-tint,#edf0fa); }
.child-session-card > .steps { justify-content: center; margin: 0 0 1rem; }
.child-session-card .child-step { max-width: 31ch; margin-inline: auto; text-wrap: balance; }
.child-session-card > .row { justify-content: center; margin-top: 1.15rem; }
.status { color: var(--warn); font-weight: 600; }
#notice:not(:empty) { position: fixed; bottom: 1rem; right: 1rem; max-width: min(420px,calc(100vw - 2rem)); background: var(--dark); color: white; padding: .72rem 1rem; border-radius: 8px; z-index: 3; }
#print-sheet { display: none; }
#photo-preview { display: block; max-width: 100%; max-height: 260px; object-fit: contain; }
#photo-preview[hidden] { display: none; }
@media (max-width: 880px) {
  .bar-inner { grid-template-columns: 1fr auto; gap: .35rem; }
  nav { grid-column: 1/-1; grid-row: 2; }
  .week { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .feature-layout { grid-template-columns: 1fr; }
  .intake-layout { grid-template-columns: 1fr; }
  .feature-tiles { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .feature-tiles > article, .feature-tiles > article:nth-child(n+4) { grid-column: auto; }
}
@media (max-width: 550px) {
  .bar-inner { gap: .38rem; padding-block: .56rem; }
  nav button { padding: .32rem .5rem; min-height: 36px; font-size: .8rem; }
  main { padding-top: .86rem; }
  .gate { grid-template-columns: 1fr; border-radius: 17px; }
  .gate img { height: 155px; min-height: 0; }
  .week-banner { grid-template-columns: 1fr; min-height: auto; border-radius: 17px; }
  .week-banner img { height: 135px; min-height: 0; object-position: center 46%; }
  .week-banner > div { padding: 1.05rem; }
  .week-banner .row { margin-top: 1.05rem; }
  .week { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .family-intro { grid-template-columns: 1fr; }
  .family-intro img { max-height: 155px; min-height: 0; }
  .feature-tiles { grid-template-columns: 1fr; }
  .review-card { gap: .62rem; }
  .review-head { gap: .42rem; }
  .review-head h3 { font-size: 1rem; }
  .review-head .matter { font-size: .68rem; }
  .ortho-panel { grid-template-columns: auto minmax(0,1fr); gap: .72rem; }
  .ortho-panel button { grid-column: 2; justify-self: start; }
}
@media screen and (max-width: 615px) {
  .supply-grid, .session-prep, .step-details, .follow-up, .dates-inputs, .photo-grid, .preparation-intro, .original-grid { grid-template-columns: 1fr; }
  .form-panel > .field-grid, form .preparation-grid { grid-template-columns: 1fr; }
  .photo-grid select { max-width: 12rem; }
  .photo-read { justify-self: start; }
  .sheet-page { margin-left: 0; }
  .sheet-actions .sheet-edit { margin-left: 0; }
}
@media print {
  @page { size: A4; margin: 14mm 15mm; }
  :root { background: #fff; }
  body { color: var(--ink); background: #fff; font-size: 11pt; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  #app, #notice, .skip { display: none !important; }
  #print-sheet { display: block; }
  .print-title { font: 500 28pt/1.1 var(--font-title); }
  .print-role { font-size: 10.5pt; color: #51645b; margin: 0 0 5mm; }
  .print-content > * { margin-top: 5mm; break-inside: avoid; }
  .print-content .flashcard-print { break-inside: auto; }
  .flashcard-print { display: grid; gap: 3mm; }
  .flashcard-print > article { border: 1px dashed #8b8e99; min-height: 32mm; break-inside: avoid; }
  .flashcard-print p { padding: 4mm; }
  .flashcard-print p + p { border-left: 1px dashed #8b8e99; }
  .print-content dt { margin-bottom: 1mm; }
  .print-content dd { margin-bottom: 4mm; }
  .print-content li { margin: 0 0 5mm; }
  .print-list { padding-left: 6mm; }
  .print-tiles { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2.5mm; }
  .print-tiles > div { border: 1px dashed #84948a; padding: 8mm 5mm; text-align: center; font: 500 15pt var(--font-title); break-inside: avoid; }
  .print-tray { grid-template-columns: repeat(auto-fit,minmax(31mm,1fr)); }
  .print-tray > div { min-height: 28mm; border-style: solid; }
  .parent-sheet { border: 0; border-top: 2mm solid var(--subject,#a49aba); border-radius: 0; padding: 4mm 0 0; gap: 3mm; background: white; }
  .parent-sheet + .child-paper { break-before: page; }
  .weekly-print > .parent-sheet + .parent-sheet { break-before: page; }
  .parent-sheet .sheet-head { gap: 1.6mm; }
  .parent-sheet h1 { font-size: 26pt; }
  .parent-sheet h2 { font-size: 13pt; }
  .parent-sheet .session-prep, .parent-sheet .parent-box, .parent-sheet .closing-box, .parent-sheet li { break-inside: avoid; }
  .parent-guide { gap: 2.4mm; }
  .parent-guide .session-prep-optional { grid-template-columns: minmax(0,1.75fr) minmax(0,1fr); }
  .parent-guide :is(.session-prep section, .parent-box, .closing-box, .answer-box) { padding: 2.25mm 3mm; }
  .parent-guide .follow-up { break-inside: avoid; }
  .parent-guide .sheet-goal { padding: 1.5mm 2.5mm; font-size: 10.5pt; }
  .parent-sheet p, .parent-sheet dt, .parent-sheet dd, .parent-sheet li { line-height: 1.36; }
  .parent-sheet .supply-grid { padding-bottom: 2.4mm; margin-top: 1.4mm; gap: 2.2mm 4mm; }
  .parent-sheet .lesson-plan li { padding-block: 1.3mm; }
  .parent-guide .parent-script { gap: 2.2mm; }
  .parent-guide .parent-script li { padding: 2.3mm 3mm; }
  .parent-guide .parent-script .say b { display: inline; margin: 0 .35em 0 0; }
  .parent-guide .step-details { margin-top: 2.6mm; padding-top: 1.5mm; }
  .child-paper { gap: 6mm; }
  .child-paper .lesson-plan li { padding-block: 3mm; }
  .pitch { min-height: 42mm; }
}
