:root{--ai:#5b4bdb;--ai-dark:#30258e;--mint:#dff8ef;--ink:#17233f;--danger:#b42318}
.question-box{height:auto!important;max-height:none!important;overflow:visible!important}.question-box #mathQuestion,.word-problem{display:block!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere;line-height:1.55;height:auto!important;max-height:none!important}.question-box #changeMathSet{display:block;width:max-content;margin:0 0 1.25rem}.question-box #mathAnswer{display:block;margin-top:1.25rem}
.ai-launch{position:fixed;right:1rem;bottom:1rem;z-index:45;border:0;border-radius:999px;background:linear-gradient(135deg,var(--ai),#1887ca);color:white;padding:.8rem 1rem;font-weight:800;box-shadow:0 12px 35px #27317045;cursor:pointer}.ai-panel{position:fixed;right:1rem;bottom:4.8rem;z-index:44;width:min(390px,calc(100vw - 2rem));max-height:min(650px,calc(100vh - 10rem));display:flex;flex-direction:column;background:#fff;border:1px solid #d8dcef;border-radius:22px;box-shadow:0 22px 60px #15234d38;overflow:hidden}.ai-panel[hidden]{display:none}.ai-head{padding:1rem 1.1rem;background:linear-gradient(135deg,var(--ai-dark),#17689f);color:white;display:flex;justify-content:space-between;gap:1rem;align-items:center}.ai-head small{display:block;opacity:.8}.ai-head button{background:#ffffff20;border:1px solid #ffffff50;color:white;border-radius:10px;padding:.4rem .6rem}.ai-rule{margin:0;padding:.65rem 1rem;background:#f1efff;color:#392f92;font-size:.82rem;font-weight:800}.ai-messages{padding:1rem;overflow:auto;min-height:120px;display:flex;flex-direction:column;gap:.7rem}.ai-msg{padding:.75rem .85rem;border-radius:14px;background:#f4f6fb;line-height:1.45}.ai-msg.user{background:#e9f3ff;align-self:flex-end}.ai-actions{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;padding:.8rem;border-top:1px solid #e3e6ef}.ai-actions button,.voice-toggle button,.mini-actions button{border:1px solid #ccd3e2;background:white;color:var(--ink);border-radius:11px;padding:.65rem;font-weight:700;cursor:pointer}.ai-actions button:hover,.voice-toggle button.active{background:#eceaff;border-color:var(--ai);color:var(--ai-dark)}.voice-toggle{display:flex;gap:.35rem;padding:0 .8rem .8rem}.voice-toggle span{margin-right:auto;font-size:.82rem;align-self:center;color:#667085}.voice-toggle button{padding:.4rem .65rem}
.extra-tools{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem;margin-top:1.2rem}.tool-card,.adaptive-card,.exam-report{background:#fff;border:1px solid #dfe3ec;border-radius:18px;padding:1rem}.tool-card h3{margin:.1rem 0 .45rem}.parent-locked{filter:blur(4px);pointer-events:none;user-select:none}.pin-wall{position:fixed;inset:0;background:#15203c99;z-index:70;display:grid;place-items:center;padding:1rem}.pin-wall[hidden]{display:none}.pin-card{background:white;width:min(420px,100%);border-radius:22px;padding:1.4rem;box-shadow:0 20px 60px #0004}.pin-card input{width:100%;font-size:1.15rem;text-align:center;padding:.8rem;border:1px solid #cbd2df;border-radius:12px;margin:.7rem 0}.pin-card .primary{width:100%}.pin-name-row{display:block;font-size:.9rem;color:#4c5a72;margin-top:.6rem}.pin-card #pinName{font-size:1rem;text-align:left;margin:.3rem 0 0}
.parent-detail-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important}.metric-list{display:grid;gap:.55rem;margin-top:.7rem}.metric-row{display:flex;justify-content:space-between;gap:1rem;border-bottom:1px solid #edf0f5;padding-bottom:.45rem}.metric-row span{color:#667085}.level-event{padding:.65rem;border-left:4px solid var(--ai);background:#f5f3ff;border-radius:8px;font-size:.9rem}.more-practice{margin-top:1rem}.more-practice button{width:100%}
.guided-card{margin-top:.7rem;padding:.9rem;background:#fff6df;border:1px solid #f5c451;border-radius:14px}.guided-card strong{display:block;margin-bottom:.35rem}.hint-level{font-size:.75rem;font-weight:800;color:#785900}.reading-quiz{margin-top:1.2rem;padding-top:1rem;border-top:1px solid #e2e6ee}.reading-quiz button{display:block;width:100%;text-align:left;margin:.45rem 0}.exam-banner{background:#2d246f;color:white;border-radius:16px;padding:1rem;margin-bottom:1rem}.exam-option{display:block;width:100%;margin:.45rem 0}.writing-stage{display:grid;grid-template-columns:minmax(260px,420px) 1fr;gap:1.2rem;align-items:start}.writing-canvas-wrap{position:relative;aspect-ratio:1;border:2px solid #d3d8e3;border-radius:16px;background:linear-gradient(90deg,transparent 49.7%,#e3e6ed 50%,transparent 50.3%),linear-gradient(transparent 49.7%,#e3e6ed 50%,transparent 50.3%),#fff}.writing-canvas-wrap canvas{width:100%;height:100%;touch-action:none}.stroke-status{padding:.8rem;background:#f5f7fb;border-radius:12px}.rep-dots{display:flex;gap:.35rem;flex-wrap:wrap;margin:.7rem 0}.rep-dots span{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#e7eaf1;font-size:.75rem}.rep-dots span.done{background:#2da87c;color:white}.rep-dots span.now{outline:3px solid #8d83f1}.exam-switch-note{font-size:.85rem;color:#667085}.typing-blocked{color:var(--danger);font-weight:800}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:760px){.writing-stage{grid-template-columns:1fr}.ai-panel{right:.5rem;bottom:4.4rem;width:calc(100vw - 1rem);max-height:min(650px,calc(100vh - 9.5rem))}.ai-launch{right:.65rem;bottom:.65rem}.ai-actions{grid-template-columns:1fr}.question-box{padding:1rem!important}.question-box #mathQuestion{font-size:1.15rem!important}.topbar nav{overflow-x:auto}.coding-layout{display:block!important}.course-map{margin-bottom:1rem}}
@media(min-width:1000px){.coding-layout{grid-template-columns:minmax(280px,34%) minmax(0,66%)!important}.lesson-workspace{min-width:0}}
.code-example{display:none!important}

/* --- Accessibility and family-sync additions ------------------------------------- */
/* Off-screen text used for screen-reader-only status announcements. */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
/* The default --blue (#2f6df6) and --muted (#6b7890) only reach about 4.2:1 on the page
   background, which fails WCAG AA for text at these sizes. Darker text-only variants
   keep the palette while reaching 4.5:1 or better. Backgrounds are left untouched. */
.eyebrow{color:#1f52c4}
.muted{color:#5b6880}
.feedback.good{color:#1c7f5c}
.feedback.bad{color:#c02b34}
.sync-status{color:#5b6880}
.family-sync-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:24px;margin:18px 0 22px;box-shadow:var(--shadow)}
.family-sync-card h2{font-size:1.35rem;margin:0 0 8px}
.family-sync-card>p{margin-bottom:16px}
.sync-code-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:#f4f8fd;border:1px dashed #a9c4ea;border-radius:14px;padding:14px 16px}
.sync-code-row code{font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace;font-size:1.5rem;font-weight:800;letter-spacing:.12em;color:#173b70;user-select:all}
.sync-switch{margin-top:18px;border-top:1px solid var(--line);padding-top:16px}
.sync-switch summary{cursor:pointer;font-weight:800;color:#1f52c4}
.sync-switch label{display:block;margin:14px 0 6px;font-weight:700}
.sync-switch input{width:100%;max-width:280px;border:2px solid var(--line);border-radius:12px;padding:12px 14px;background:#fbfdff;outline:none;font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace;font-size:1.15rem;letter-spacing:.1em;text-transform:uppercase}
.sync-switch input:focus{border-color:#2f6df6;box-shadow:0 0 0 4px #e6efff}
.sync-switch .primary{width:auto;display:block;margin-top:14px}
.noscript-notice{max-width:640px;margin:60px auto;padding:28px;background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow)}
.noscript-notice h2{margin-top:0}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
  .task:hover,.subject-card:hover{transform:none}
}
/* The PIN is a convenience lock rather than a security boundary, but a 4px blur is not
   even that: the numbers stay legible to a child. Hiding the subtree outright keeps the
   layout stable (unlike display:none, which would reflow the page behind the modal) while
   making the progress figures unreadable until the PIN is entered. */
.parent-locked{visibility:hidden!important;pointer-events:none;user-select:none}
.live-controls{display:flex;flex-wrap:wrap;gap:.7rem;align-items:center;margin-top:1rem}.live-controls p{width:100%;margin:.1rem 0;color:#263b5b}.teacher-settings{display:grid;gap:.75rem;margin-top:1.5rem}.teacher-settings label{display:flex;align-items:center;gap:.7rem;font-size:1rem}.teacher-settings input[type=number]{width:5rem;font:inherit;padding:.3rem}.teacher-settings input[type=checkbox]{width:1.2rem;height:1.2rem}
.ai-panel .live-controls{margin:0;padding:1rem;border-bottom:1px solid #e3e6ef;flex:none}.ai-panel .live-controls button{width:100%;min-height:3.2rem;font-size:1.05rem}.ai-panel .ai-messages{min-height:4.5rem;flex:1 1 auto}.ai-panel .ai-extra-toggle{margin:.3rem 1rem;align-self:flex-start}.ai-panel .ai-actions[hidden]{display:none}.ai-panel .voice-toggle{flex:none;padding:.5rem 1rem 1rem}.ai-panel .ai-rule{flex:none}
@media(max-width:760px){.ai-panel{max-height:min(44dvh,380px);overflow:hidden}.ai-panel .ai-head{padding:.55rem .8rem}.ai-panel .ai-head small{font-size:.7rem}.ai-panel .ai-rule{display:none}.ai-panel .live-controls{padding:.5rem .75rem;gap:.2rem}.ai-panel .live-controls button{min-height:2.6rem;font-size:.95rem}.ai-panel .live-controls p{font-size:.8rem;line-height:1.25}.ai-panel .ai-messages{min-height:0;max-height:none;flex:1 1 auto;padding:.5rem .75rem;gap:.35rem}.ai-panel .ai-msg{padding:.45rem .6rem;font-size:.88rem}.ai-panel .ai-extra-toggle{margin:.25rem .75rem;font-size:.8rem;padding:.35rem .55rem}.ai-panel .voice-toggle{padding:.25rem .75rem .5rem}.ai-panel .voice-toggle button{padding:.3rem .45rem}.ai-panel.live-active .ai-extra-toggle,.ai-panel.live-active .voice-toggle{display:none}}
.ai-panel .voice-toggle{display:none}.ai-panel.show-extra:not(.live-active) .voice-toggle{display:flex}
/* English handwriting: the copybook module fills the page, so the station's own
   handwriting check sits underneath the frame rather than inside it. */
.handwriting-check-bar{margin-top:1rem;display:grid;gap:.5rem}.handwriting-check-bar button{width:max-content}.handwriting-check-bar .muted{margin:0;max-width:62ch;font-size:.9rem}@media(max-width:760px){.handwriting-check-bar button{width:100%}}
.block-workspace{background:#f7faff;border:1px solid #d4e2f3;border-radius:16px;padding:.9rem;margin:1rem 0}.block-workspace[hidden]{display:none}.block-heading{display:flex;justify-content:space-between;gap:.8rem;align-items:center}.block-heading strong{display:block}.block-heading small{display:block;color:#53647a;margin-top:.2rem}.block-heading button{border:0;border-radius:11px;background:#2d7c5d;color:white;font-weight:800;padding:.65rem .75rem;white-space:nowrap}.block-editor{display:grid;grid-template-columns:minmax(150px,42%) 1fr;gap:.7rem;margin-top:.8rem}.block-palette,.block-stage{background:white;border:1px solid #dce6f0;border-radius:13px;padding:.7rem;min-width:0}.block-categories{display:flex;flex-wrap:wrap;gap:.25rem}.block-categories button{border:1px solid #dae2ef;border-radius:8px;background:#fff;padding:.3rem .45rem;font-size:.8rem}.block-categories button.active{background:#e5ebff;border-color:#6a76dc}.block-options,.block-stack{display:flex;flex-direction:column;align-items:flex-start;gap:.35rem;margin-top:.6rem;min-height:5rem}.block{display:inline-block;border:0;border-radius:8px;padding:.4rem .55rem;color:white;font-size:.85rem;text-align:left;max-width:100%;overflow-wrap:anywhere}.block-events{background:#b68b25}.block-looks{background:#9260bb}.block-motion{background:#3977ca}.block-control{background:#ce9b29}.block-variables{background:#b37735}.block-sound{background:#a355aa}.block-sensing{background:#4197a0}.block-messages{background:#d17a2e}.block-item{display:flex;align-items:center;gap:.25rem}.block-item button{border:0;background:#eef1f6;border-radius:8px;font-size:1.2rem;line-height:1.2}.block-scene{margin-top:.6rem;border:1px solid #cbd5e5;border-radius:10px;min-height:5rem;display:flex;align-items:center;justify-content:center;gap:.5rem;flex-wrap:wrap;background:#fff}.block-scene span:first-child{font-size:2rem}.block-boundary{font-size:.8rem;color:#50627d;margin:.7rem 0 0}.block-stage #blockNotice{font-size:.85rem;color:#295b4a;min-height:1rem;margin:.5rem 0 0}@media(max-width:760px){.block-editor{grid-template-columns:1fr}.block-options{flex-direction:row;flex-wrap:wrap}.block-heading{align-items:flex-start}.block-heading button{font-size:.85rem}}

/* Accounts card in the parent view: who is registered, what they have been doing, and the two
   registration settings. The roster is a real table inside .table-wrap (history.css), so a narrow
   screen scrolls it sideways instead of folding nine columns into unreadable slivers. */
.accounts-list{display:grid;gap:.5rem;margin:.9rem 0 1rem}
/* The card sets `hidden` on these, and an author `display:grid`/`display:flex` beats the browser's
   own [hidden] rule: without these lines a learner would still see the empty list box and the
   owner's Refresh control on a host that has no statistics. */
.accounts-list[hidden],.accounts-tools[hidden],#accountsStatsNote[hidden]{display:none}
.accounts-table{width:100%;min-width:960px;border-collapse:collapse}
.accounts-table th,.accounts-table td{text-align:left;padding:.45rem .6rem;border-bottom:1px solid #edf0f5;vertical-align:top}
.accounts-table thead th{font-size:.78rem;text-transform:uppercase;letter-spacing:.03em;color:#5b6880;white-space:nowrap;border-bottom:2px solid #e4e9f2}
.accounts-row strong{font-size:1rem}
.accounts-badge{color:#667085;font-size:.85rem}
.accounts-module{color:#667085;font-size:.85rem}
.accounts-instant,.accounts-duration,.accounts-number{white-space:nowrap}
.accounts-tools{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;margin:.6rem 0 0}
.accounts-tools button,.accounts-history-open,.accounts-history-more{font:inherit;font-weight:700;border:1px solid #ccd3e2;background:#fff;color:#1f52c4;border-radius:10px;cursor:pointer;padding:.4rem .7rem}
.accounts-history-open{font-size:.85rem;padding:.35rem .55rem;white-space:nowrap}
.accounts-tools button:hover,.accounts-history-open:hover,.accounts-history-more:hover{background:#eceaff;border-color:var(--ai)}
.accounts-tools .muted{font-size:.85rem;margin:0}
.accounts-history-cell{white-space:nowrap}
/* The panel is a full-width row under its account's row, so the list wraps and scrolls on a phone
   (about 360px wide) instead of being squeezed into the width of the last column. */
.accounts-history-row>td{padding:0 0 .7rem;border-bottom:1px solid #edf0f5}
.accounts-history{border:1px solid var(--line);border-radius:12px;padding:.5rem .75rem;background:#f9fbff}
.accounts-history>summary{cursor:pointer;font-weight:800;color:#1f52c4}
.accounts-history-panel{display:grid;gap:.3rem;margin-top:.5rem;max-height:18rem;overflow:auto}
.accounts-history-event{display:flex;flex-wrap:wrap;gap:.2rem .75rem;justify-content:space-between;border-bottom:1px solid #eef1f6;padding-bottom:.25rem;font-size:.9rem;overflow-wrap:anywhere}
.accounts-history-when{font-variant-numeric:tabular-nums}
.accounts-history-method{color:#667085}
.accounts-history-note{font-size:.85rem;margin:.35rem 0 0}
.accounts-history-more{width:max-content}
@media(max-width:520px){.accounts-history-panel{max-height:14rem}.accounts-table th,.accounts-table td{padding:.4rem .5rem}}
.accounts-check{display:flex;align-items:center;gap:.5rem;font-weight:700;margin:.4rem 0 .8rem}
.accounts-check input{width:20px;height:20px}
#accountsCard .sync-switch input{margin-bottom:.5rem}
#accountsCard #accountsName,#accountsCard #accountsPin{margin-bottom:.6rem}
/* Both of these fields are credentials now, and both take ordinary text: the uppercase,
   wide-tracked monospace styling belongs to a sync code, not to a username or a password. */
#accountsCard #accountsName,#accountsCard #accountsPin{font-family:inherit;font-size:1rem;letter-spacing:normal;text-transform:none}
