.prek-page { background: #f8fcfc; font-size: 15px; }
.prek-page * { letter-spacing: 0; }
.prek-page .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.prek-header { background: #fff; border-bottom: 1px solid #dbe7e2; }
.prek-header > .wrap { min-height: 80px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.prek-header nav { display: flex; gap: 25px; align-items: center; }
.prek-home { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.grownup-button { background: #edf5f2; color: var(--green-dark); }
.prek-page button:disabled { cursor: default; }
#prek-main { padding-block: 30px 50px; min-height: 75vh; outline: none; }
.room-heading { display: flex; justify-content: space-between; align-items: center; gap: 25px; margin-bottom: 25px; }
.room-heading .eyebrow { color: var(--green); }
.room-heading h1 { font: 600 38px/1.15 var(--display); margin: 7px 0 10px; }
.room-heading p { margin: 0; color: #60706c; font-size: 14px; }
.room-progress { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.room-progress > svg { width: 36px; height: 36px; color: #a06a14; }
.room-progress strong { display: block; font-size: 15px; }
.room-progress small { color: #667b73; }
.room-progress progress { display: block; width: 170px; height: 7px; margin-top: 8px; accent-color: var(--green); }
.continue-band { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 20px; padding: 22px 26px; border-block: 1px solid #c8dfd7; background-color: #eaf5f0; background-image: linear-gradient(90deg, transparent 98%, #d4e8df 98%); background-size: 28px 28px; margin-bottom: 27px; }
.continue-band .lesson-art { width: 64px; height: 64px; background: #fff; }
.continue-band small { color: #4c6c5e; font-weight: 600; font-size: 10px; }
.continue-band h2 { font: 500 24px/1.3 var(--display); margin: 3px 0; }
.continue-band p { margin: 0; color: #5b7468; font-size: 12px; }
.subject-filters { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 24px; }
.subject-filters a { display: flex; align-items: center; gap: 7px; padding: 10px 13px; min-height: 44px; font-size: 13px; border-radius: 5px; color: #586c64; }
.subject-filters a[aria-current] { color: #fff; background: var(--green); }
.subject-filters a:hover { box-shadow: inset 0 0 0 1px var(--green); }
.subject-filters svg { width: 17px; height: 17px; }
.unit { margin-top: 28px; }
.unit-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; }
.unit-heading > svg { color: var(--unit-color); width: 24px; height: 24px; }
.unit-heading h2 { font: 500 24px/1.2 var(--display); margin: 0; }
.unit-heading span { color: #6a7c74; font-size: 12px; margin-left: auto; }
.lesson-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.lesson-card { display: flex; flex-direction: column; min-width: 0; padding: 20px; border: 1px solid #dbe4df; border-bottom: 3px solid var(--unit-color); background: white; border-radius: 8px; transition: border-color .2s, transform .2s; }
.lesson-card:hover { border-color: var(--unit-color); transform: translateY(-2px); }
.lesson-card-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.lesson-art { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 8px; background: var(--unit-soft,#eaf5f0); color: var(--unit-color,var(--green)); flex-shrink: 0; }
.lesson-art svg { width: 31px; height: 31px; }
.lesson-card small { font-size: 11px; color: #66756e; }
.lesson-card h4 { font: 500 22px/1.25 var(--display); margin: 16px 0 9px; }
.subject-section { margin-top: 35px; }
.subject-section + .subject-section { border-top: 1px solid var(--line); padding-top: 28px; }
.unit-subheading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.unit-subheading h3 { font: 500 19px/1.3 var(--display); margin: 0; color: #516a5d; }
.unit-subheading span, .catalog-status { font-size: 12px; color: #627469; }
.subject-filters small { font: inherit; font-size: 10px; opacity: .8; }
.catalog-filters { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; }
.catalog-filters > div { min-width: 0; }
.catalog-filters label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.lesson-search-field { position: relative; }
.lesson-search-field > svg { position: absolute; left: 12px; top: 13px; color: #678075; }
.catalog-filters input, .catalog-filters select { width: 100%; min-width: 0; min-height: 46px; border: 1px solid #bdcec4; border-radius: 5px; color: var(--ink); background: white; font-size: 16px; padding: 10px 12px; }
.catalog-filters input { padding-left: 42px; }
.catalog-status { margin: 12px 0 0; overflow-wrap: anywhere; }
.lesson-card p { font-size: 13px; line-height: 1.7; color: #63736b; margin-bottom: 20px; }
.lesson-card-bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--unit-color); font-weight: 600; }
.lesson-card-bottom span { display: inline-flex; align-items: center; gap: 6px; }
.lesson-card-bottom svg { width: 16px; height: 16px; }
.together-note { display: flex; gap: 15px; border-top: 1px solid var(--line); padding-top: 25px; margin-top: 35px; color: #526c60; }
.together-note > svg { flex-shrink: 0; color: var(--green); }
.together-note h2 { font: 500 20px var(--display); margin-bottom: 8px; }
.together-note p { font-size: 13px; max-width: 750px; margin: 0; }
.lesson-breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 12px; color: #61736a; margin-bottom: 22px; }
.lesson-breadcrumb a { display: inline-flex; gap: 7px; align-items: center; color: var(--green); min-height: 40px; }
.lesson-breadcrumb svg { width: 16px; height: 16px; }
.player-layout { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 40px; align-items: start; }
.lesson-sidebar { padding-right: 23px; border-right: 1px solid var(--line); }
.lesson-sidebar h2 { font: 500 24px var(--display); margin: 12px 0 6px; }
.lesson-sidebar > p { font-size: 12px; color: #61736a; }
.lesson-sidebar ol { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 10px; }
.lesson-sidebar a { display: flex; align-items: center; gap: 10px; padding: 12px 8px; font-size: 13px; border-radius: 5px; }
.lesson-sidebar a[aria-current] { background: var(--unit-soft); color: var(--unit-color); font-weight: 600; }
.lesson-sidebar .step-number { width: 26px; height: 26px; font: 600 12px var(--font); background: #edf2ee; color: #536c5e; }
.lesson-sidebar .step-number svg { width: 15px; height: 15px; }
.lesson-player { min-width: 0; max-width: 830px; }
.lesson-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.lesson-topline .eyebrow { color: var(--unit-color); }
.audio-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid #c5d9d0; border-radius: 5px; color: var(--green-dark); font-size: 12px; background: white; }
.audio-button[aria-pressed="true"] { background: var(--mint); }
.lesson-player h1 { font: 500 32px/1.25 var(--display); margin: 0 0 15px; outline: none; }
.lesson-goal { font-size: 14px; color: #62756a; margin-bottom: 20px; }
.lesson-stages { display: flex; gap: 5px; padding: 0; list-style: none; margin: 0 0 24px; }
.lesson-stages li { height: 5px; background: #e1e8e4; flex: 1; border-radius: 3px; }
.lesson-stages li.finished { background: var(--green); }
.lesson-stages li.current { background: #dda53c; }
.learn-text { font-size: 19px; line-height: 1.85; max-width: 720px; margin-bottom: 23px; }
.example-stage, .question-stage { background-color: #f0f6f9; background-image: radial-gradient(#b7ced73b 1px,transparent 1px); background-size: 18px 18px; padding: 26px 20px; border-block: 1px solid #d5e5ed; margin-bottom: 20px; text-align: center; }
.object-row { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 16px; min-height: 96px; }
.object-art { display: grid; place-items: center; width: 82px; height: 82px; font: 600 38px/1 var(--display); color: #315f74; }
.object-art svg { width: 74px; height: 74px; stroke-width: 1.7; }
.object-art.word-art { width: auto; min-width: 65px; max-width: 190px; padding: 5px; font-size: 31px; }
.example-stage figcaption { margin-top: 15px; color: #4d6c79; font-size: 14px; }
.example-stage { margin-inline: 0; }
.count-object { position: relative; display: grid; place-items: center; padding: 5px; min-width: 92px; height: 105px; border: 2px solid transparent; border-radius: 8px; }
.count-object:hover { background: #fff9; }
.count-object[aria-pressed="true"] { border-color: var(--green); background: #e3f1ea; }
.count-object .count-label { position: absolute; right: 1px; bottom: -6px; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; font-size: 15px; line-height: 28px; }
.count-status { margin: 14px 0 0; font-size: 14px; color: #426c63; min-height: 23px; }
.choices { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.choices.two-choices { grid-template-columns: repeat(2,minmax(0,1fr)); }
.choice { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; padding: 18px 14px; min-height: 140px; border: 2px solid #cbdad4; border-radius: 8px; background: white; font: 500 19px/1.4 var(--display); position: relative; overflow-wrap: anywhere; }
.choice:hover:not(:disabled) { border-color: var(--green); background: #f2f8f4; }
.choice.correct { border-color: var(--green); background: #e9f6ef; }
.choice.retry { border-color: #bd8530; background: #fff6df; }
.choice .choice-check { position: absolute; top: 6px; right: 6px; color: var(--green); }
.choice .object-art { width: 64px; height: 64px; }
.choice .object-art svg { width: 59px; height: 59px; }
.choice .word-art { font-size: 34px; }
.lesson-feedback { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; background: #fff4d9; color: #705316; border-left: 3px solid #c3983f; margin-top: 20px; min-height: 70px; }
.lesson-feedback.is-correct { background: #e9f5ee; color: #285e45; border-color: #509b74; }
.lesson-feedback strong { display: block; margin-bottom: 4px; }
.lesson-feedback p { margin: 0; font-size: 14px; }
.lesson-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.lesson-actions .button { min-height: 48px; }
.lesson-actions .text-button { display: flex; align-items: center; gap: 7px; min-height: 44px; }
.lesson-actions .button-green { margin-left: auto; }
.lesson-actions button:disabled { opacity: .5; }
.lesson-notes { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 16px; color: #5d7065; font-size: 13px; }
.lesson-notes summary { cursor: pointer; min-height: 44px; padding: 10px 0; font-weight: 600; }
.lesson-notes p { line-height: 1.8; }
.lesson-notes summary:focus-visible { outline: 3px solid #efb73c; outline-offset: 3px; }
.completion-symbol { display: grid; place-items: center; width: 70px; height: 70px; background: #ffedb7; color: #97661b; border-radius: 50%; margin-bottom: 20px; }
.completion-symbol svg { width: 36px; height: 36px; }
.real-world { padding: 23px 0; border-block: 1px solid #d7e6da; margin: 25px 0; }
.real-world .eyebrow { color: #956013; }
.real-world h2 { font: 500 25px/1.3 var(--display); margin: 7px 0 12px; }
.real-world p { font-size: 17px; line-height: 1.8; }
.outside-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: #50705f; }
.outside-check input { width: 20px; height: 20px; accent-color: var(--green); flex-shrink: 0; margin: 1px 0 0; }
.room-finished { color: var(--green-dark); }
.prek-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding-block: 23px; border-top: 1px solid var(--line); background: transparent; color: #60746a; font-size: 11px; }
.prek-footer a { margin-left: auto; text-decoration: underline; }
.prek-notice { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); width: 480px; background: #fff4d9; color: #654918; border: 1px solid #d8ba70; padding: 14px 18px; border-radius: 6px; z-index: 30; box-shadow: 0 4px 20px #283e471a; font-size: 13px; }
#grownup-dialog { width: min(720px,calc(100% - 32px)); }
#grownup-dialog h2 { color: var(--green-dark); }
#grownup-dialog h3 { margin-top: 24px; font: 500 22px var(--display); }
#grownup-dialog p, #grownup-dialog li { color: #52675b; font-size: 14px; line-height: 1.8; }
.adult-report { width: 100%; border-collapse: collapse; font-size: 12px; }
.adult-report th, .adult-report td { text-align: left; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.adult-report th { color: var(--green-dark); }
.adult-tools { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 23px; }
.adult-tools .button { border: 1px solid var(--line); }
.reset-confirm { padding-top: 18px; margin-top: 20px; border-top: 1px solid var(--line); }
.empty-room { padding: 40px 0; }
@media (max-width: 1000px) {
  .player-layout { grid-template-columns: 170px minmax(0,1fr); gap: 24px; }
  .lesson-sidebar { padding-right: 15px; }
  .lesson-card { padding: 16px; }
  .lesson-card h4 { font-size: 20px; }
}
@media (max-width: 760px) {
  .prek-header > .wrap { min-height: 74px; }
  .prek-header nav { gap: 8px; }
  .prek-home { font-size: 11px; }
  .grownup-button { font-size: 11px; padding: 9px; gap: 6px; }
  .room-heading { align-items: flex-start; }
  .room-heading h1 { font-size: 30px; }
  .room-progress { flex-shrink: 1; gap: 8px; }
  .room-progress > svg { display: none; }
  .room-progress progress { width: 120px; }
  .continue-band { grid-template-columns: 48px 1fr; padding: 20px 16px; gap: 15px; }
  .continue-band .lesson-art { width: 48px; height: 48px; }
  .continue-band > .button { grid-column: 1 / -1; }
  .lesson-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .player-layout { display: block; }
  .lesson-sidebar { display: none; }
  .lesson-player { max-width: none; }
  .lesson-player h1 { font-size: 28px; }
  .learn-text { font-size: 18px; }
  .object-row { gap: 8px; }
  .object-art { width: 64px; height: 64px; }
  .object-art svg { width: 60px; height: 60px; }
  .count-object { min-width: 73px; height: 85px; }
  .choices { gap: 9px; }
  .choice { min-height: 128px; padding: 16px 9px; font-size: 16px; }
}
@media (max-width: 480px) {
  .prek-header > .wrap { flex-wrap: wrap; padding-block: 15px; gap: 14px; }
  .prek-header nav { justify-content: space-between; width: 100%; }
  .room-heading { flex-direction: column; gap: 15px; }
  .room-progress { width: 100%; }
  .room-progress > div { width: 100%; }
  .room-progress strong, .room-progress small { display: inline; font-size: 12px; }
  .room-progress small { margin-left: 8px; }
  .room-progress progress { width: 100%; }
  .lesson-grid { grid-template-columns: 1fr; gap: 12px; }
  .lesson-card h4 { font-size: 23px; }
  .catalog-filters { grid-template-columns: 1fr; gap: 12px; }
  .lesson-card-top .lesson-art { width: 46px; height: 46px; }
  .lesson-card p { margin-bottom: 14px; }
  .subject-filters { gap: 4px; }
  .subject-filters a { font-size: 12px; padding: 8px 10px; }
  .lesson-topline { align-items: center; }
  .example-stage, .question-stage { padding: 22px 9px; }
  .choice .object-art { width: 52px; height: 52px; }
  .choice .object-art svg { width: 48px; height: 48px; }
  .choice { font-size: 15px; }
  .object-art.word-art { font-size: 27px; }
  .lesson-actions .button-green { width: 100%; }
  .unit-heading h2 { font-size: 23px; }
  .unit-heading span { font-size: 10px; }
  .prek-footer span:last-child { width: 100%; }
}
@media print {
  .prek-header, #prek-main, .prek-footer, .prek-notice { display: none !important; }
  #grownup-dialog[open] { position: static; display: block; width: 100%; max-height: none; border: 0; padding: 0; box-shadow: none; overflow: visible; }
  #grownup-dialog::backdrop { background: none; }
  #grownup-dialog button, .adult-tools, .reset-confirm { display: none !important; }
  .adult-report tr { break-inside: avoid; }
}