:root {
  color-scheme:light; --ink:#203430; --muted:#536762; --paper:#f3f6f4;
  --slide-paper:#dceaf7; --line:#d7e1dc; --green:#254a41; --accent:#dbece3; --white:#fff;
  font-family:"Aptos","Segoe UI",system-ui,sans-serif; color:var(--ink); background:var(--paper);
}
* { box-sizing:border-box }
body { margin:0; min-width:300px }
h1,h2,p { margin:0 }
button,input,select,textarea { font:inherit }
button { cursor:pointer }
button:disabled { cursor:default; opacity:.48 }
a { color:#275849; text-underline-offset:3px }
:focus-visible { outline:3px solid #a46620; outline-offset:3px }
.wrap { width:min(1220px,calc(100% - 72px)); margin-inline:auto }
.masthead { background:var(--slide-paper); color:#19364b }
.topbar { min-height:74px; display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid #19364b2e; gap:14px }
.brand { display:flex; gap:10px; align-items:center; font-size:1rem; font-weight:650 }
.brand img { width:42px; height:42px; object-fit:contain; border-radius:9px; background:white; padding:2px }
.sample { border:1px solid #789ab5; background:transparent; color:inherit; border-radius:8px; padding:8px 13px; font-size:.9rem }
.sample:hover { background:#fff8 }
.intro { padding:31px 0 39px }
.intro h1 { font-family:Georgia,serif; font-weight:500; letter-spacing:-.055em; font-size:clamp(2.65rem,5.5vw,4.5rem); line-height:1.05 }
.intro h1 span { display:inline-block }
.workspace { display:grid; grid-template-columns:minmax(0,1fr) minmax(350px,.98fr); align-items:start; gap:27px; padding-block:27px 55px }
#lesson-form { display:grid; gap:11px; min-width:0 }
.panel,.preview-panel { border:1px solid var(--line); background:var(--white); border-radius:13px; box-shadow:0 2px 4px #23403407 }
.setup { padding:20px }
h2 { font-size:1.02rem; font-weight:730; letter-spacing:-.016em }
.setup-header { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; margin-bottom:14px }
.setup-actions { display:flex; flex-wrap:wrap; gap:8px }
.workspace.is-planning { width:min(960px, calc(100% - 24px)); grid-template-columns:minmax(0, 1fr) }
.workspace.is-planning :is(label, h2, .help) { font-size:1.02rem }
.workspace.is-planning :is(textarea, select, input[type="url"], input[type="text"]) { font-size:1.06rem; line-height:1.55 }
label { display:block; font-size:.92rem; font-weight:650; color:#344943 }
select,textarea,input[type="url"],input[type="text"],input[type="search"] { width:100%; background:#fbfcfb; color:var(--ink); border:1px solid #c8d7d0; border-radius:8px; padding:9px 11px; margin-top:6px }
select { appearance:none; min-height:42px; padding-right:30px; background-image:linear-gradient(45deg,transparent 50%,#51635b 50%),linear-gradient(135deg,#51635b 50%,transparent 50%); background-size:5px 5px,5px 5px; background-position:calc(100% - 15px) 50%,calc(100% - 10px) 50%; background-repeat:no-repeat; text-overflow:ellipsis }
textarea { resize:vertical; display:block; font-weight:400; line-height:1.45 }
.fields { display:grid; grid-template-columns:1fr 1fr; gap:12px }
.fields > label { min-width:0 }
.setup-fields { margin-bottom:13px }
.sound-reference { margin-top:14px; padding-top:12px; border-top:1px solid var(--line) }
.sound-reference-controls { display:flex; flex-wrap:wrap; gap:8px; align-items:end }
.sound-reference-controls select, .sound-reference-controls button { min-height:38px }
.sound-reference .help:not(:empty) { margin-top:6px }
.jolly-panel { border:1px solid var(--line); border-radius:8px; padding:10px 12px }
.jolly-panel h3 { margin:0; font-size:.94rem }
.jolly-panel .help:not(:empty) { margin-top:6px }
.jolly-preview:not([hidden]) { display:block; width:min(100%, 24rem); height:36px; margin-top:8px }
.jolly-option { display:flex; align-items:center; gap:8px; width:fit-content; min-height:34px }
.jolly-option:first-of-type { margin-top:6px }
.jolly-option input { accent-color:var(--green); width:1rem; height:1rem; margin:0 }
.progression-panel { margin-bottom:13px }
.progression-panel summary { cursor:pointer; font-size:.92rem; font-weight:700 }
.progression-panel .help { margin-block:6px }
.progression-page { position:relative; border:1px solid var(--line); border-radius:6px; overflow:hidden; line-height:0 }
.progression-page img { display:block; width:100%; height:auto }
.progression-hotspot { position:absolute; background:transparent; border:0; padding:0 }
.progression-hotspot:hover { background:#234b7c16; box-shadow:inset 0 0 0 2px #315e80 }
.progression-hotspot[aria-pressed="true"] { box-shadow:inset 0 0 0 2px #214d71 }
.progression-hotspot:focus-visible { outline-offset:-3px }
.chart-spellings { display:flex; flex-wrap:wrap; gap:8px }
.chart-spellings button { min-width:44px; min-height:40px }
.chart-spellings button.is-new-learning { color:#246426; border-color:#82a786 }
.chart-spellings button[aria-pressed="true"] { background:var(--slide-paper); border-color:#789ab5 }
.panel > summary { display:flex; align-items:center; gap:12px; padding:13px 18px; list-style:none; cursor:pointer }
summary::-webkit-details-marker { display:none }
.panel > summary::after { content:""; width:7px; height:7px; border:solid #5b7267; border-width:0 2px 2px 0; transform:rotate(45deg); margin-left:auto; margin-right:3px; flex:none }
.panel[open] > summary::after { transform:rotate(225deg) }
.step { flex:none; display:grid; place-items:center; background:var(--accent); color:#284d42; width:29px; height:29px; border-radius:8px; font-weight:700; font-size:.87rem }
.panel-body { padding:2px 20px 17px; display:grid; gap:11px }
.help,.optional { color:var(--muted); font-size:.88rem; line-height:1.45; font-weight:400 }
.inline-row { display:flex; gap:10px; justify-content:space-between; align-items:center; flex-wrap:wrap }
.text-button { border:0; padding:0; color:#275849; background:transparent; text-decoration:underline; font-size:.88rem }
.small-link { font-size:.91rem; justify-self:start }
.preview-column { position:sticky; top:18px; min-width:0 }
@media (width > 760px) {
  .preview-column {
    max-height:calc(100dvh - 36px);
    overflow-y:auto;
    overscroll-behavior-y:contain;
    scrollbar-gutter:stable;
  }
  .preview-column :is(.saved-lessons, .notes p) { max-height:none }
}
.preview-panel { padding:17px }
.preview-header { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; margin-bottom:12px }
#slide-count { font-size:.83rem; color:var(--muted); font-variant-numeric:tabular-nums }
.slide-surface { position:relative; aspect-ratio:16/9; background:#fcfaf6; border:1px solid #e0e2dc; border-radius:8px; overflow:hidden; container-type:inline-size; padding:13% 7% 4%; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:1.15cqw; color:#27362f }
.slide-surface > img { position:absolute; top:3%; right:2.8%; width:8.5%; height:auto }
.slide-surface .slide-kicker { position:absolute; left:3%; top:5%; border-radius:6px; padding:.6cqw 1.15cqw; background:#d4e5db; font-size:2.05cqw; font-weight:680 }
.slide-surface .slide-title { font-size:4.1cqw; font-weight:710; line-height:1.14; overflow-wrap:anywhere }
.slide-surface .focus-text { font-size:15cqw; line-height:1; font-weight:700; overflow-wrap:anywhere }
.slide-surface .body-text { white-space:pre-wrap; overflow-wrap:anywhere; font-size:2.9cqw; line-height:1.33; max-width:100%; max-height:68%; overflow:auto }
.slide-surface .review-text { font-size:var(--review-size,7cqw); line-height:1.14; overflow-wrap:anywhere; width:100%; max-height:96%; overflow:hidden }
.slide-surface:has(.review-grapheme) { padding:9% 5% 5% }
.slide-surface .review-grapheme { white-space:nowrap; font-weight:700 }
.review-audio-controls { position:absolute; right:4%; bottom:4%; display:flex; gap:.5rem }
.review-audio-button { min-height:34px; padding:5px 9px; border:1px solid #789ab5; border-radius:6px; color:#19364b; background:white; font-size:clamp(.75rem, 2.45cqw, 1rem); font-weight:700 }
.review-audio-button:hover { background:#edf5fc }
.presentation-dialog .review-audio-controls { bottom:max(4%, 74px) }
.presentation-dialog .review-audio-button { min-height:44px }
.preview-nav { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:8px; margin:11px 0 8px }
.preview-nav button { border:1px solid var(--line); border-radius:7px; background:white; color:var(--ink); min-height:38px; padding:6px 8px; font-size:.84rem }
.preview-nav select { margin:0; min-height:38px; font-size:.85rem; padding-block:5px }
.preview-nav .nav-arrow { display:none }
.notes { color:var(--muted); margin:9px 0 11px; font-size:.88rem }
.notes summary { cursor:pointer; width:max-content }
.notes p { margin:7px 0 0; white-space:pre-wrap; max-height:150px; overflow:auto }
.download { margin-top:3px; width:100%; border:1px solid var(--green); background:var(--green); color:#fff; border-radius:8px; min-height:47px; padding:10px; font-weight:700 }
.download:hover:not(:disabled) { background:#173b33 }
.lesson-actions { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; margin-top:3px }
.lesson-actions .download { margin:0 }
.lesson-print-actions { grid-column:1 / -1; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px }
.lesson-print-actions button { min-height:38px; white-space:normal }
.print-templates-content h3 { margin:0; font-size:1rem }
.print-templates-content details { margin-top:16px }
.print-templates-content details summary { cursor:pointer; font-weight:650 }
#other-template-resources section { margin-top:12px }
#teacher-script { width:min(760px, calc(100% - 24px)); max-height:min(84dvh, 56rem); padding:0; border:1px solid var(--line); border-radius:12px; color:var(--ink) }
#teacher-script[open] { display:flex; flex-direction:column }
#teacher-script::backdrop { background:#10211e66 }
.script-toolbar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; padding:14px 20px; background:var(--slide-paper) }
.script-toolbar h2 { font-size:1.2rem }
#teacher-script-content { overflow:auto; padding:16px 20px; overscroll-behavior:contain }
.script-summary { color:var(--muted); margin:0 0 12px }
.script-slide { border-top:1px solid var(--line); padding:11px 0 }
.script-slide h3 { margin:0 0 6px; font-size:1.02em }
.script-slide p { margin:.35em 0 0; white-space:pre-wrap; overflow-wrap:anywhere }
.script-slide strong { margin-inline-end:.4em }
#teacher-script-print { display:none }
@media print {
  body:has(#teacher-script[open]) > :not(#teacher-script-print) { display:none !important }
  body:has(#teacher-script[open]) { color:#000; background:#fff }
  body:has(#teacher-script[open]) #teacher-script-print { display:block; font-size:11pt; line-height:1.4 }
  #teacher-script-print h1 { margin:0 0 5pt; font-size:18pt }
  #teacher-script-print .script-summary { color:inherit }
  #teacher-script-print .script-slide { padding:7pt 0; break-inside:avoid }
  #teacher-script-print .script-slide h3 { break-after:avoid }
}
.lesson-draft-bar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; margin-top:12px; padding-top:10px; border-top:1px solid var(--line) }
.lesson-draft-bar .help { flex:1; min-width:11ch; overflow-wrap:anywhere }
.saved-lesson-actions { display:flex; flex-wrap:wrap; gap:6px; margin-inline-start:auto }
.delete-lesson-button { color:#94352a }
.saved-slides-panel { margin-top:12px }
.saved-slides-panel > .help { margin-top:5px }
.saved-lessons { list-style:none; padding:0; margin:8px 0 0; max-height:14rem; overflow:auto }
.saved-lessons:empty { display:none }
.saved-lessons li { display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding:8px 2px; border-top:1px solid var(--line) }
.saved-lessons li span { flex:1 1 8rem; min-width:0; overflow-wrap:anywhere }
.save-lesson-dialog { width:min(440px,calc(100% - 32px)); border:1px solid var(--line); border-radius:13px; padding:20px; color:var(--ink) }
.save-lesson-dialog::backdrop { background:#10211e66 }
.save-lesson-dialog h2 { margin-bottom:14px }
.save-lesson-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; margin-top:14px }
.save-lesson-actions .download { width:auto; margin:0; min-height:38px; padding:7px 16px }
.status { color:var(--muted); font-size:.86rem; line-height:1.4 }
.status:not(:empty) { margin-top:9px }
.status[data-error] { color:#9d3226 }
@media (max-width:1000px) { .wrap{width:calc(100% - 38px)} .workspace{gap:17px} }
@media (max-width:760px) { .workspace{grid-template-columns:1fr} .preview-column{position:static} .intro{padding-block:24px 31px} }
@media (max-width:395px) { .wrap{width:calc(100% - 24px)} .fields{grid-template-columns:1fr} }
.slide-surface { background:var(--slide-paper); font-family:"Century Gothic","Aptos",sans-serif }
.slide-surface .slide-kicker { color:#252039; background:linear-gradient(#cfa8cc,#bb82b1) }
.slide-surface[data-kind="learning"] .slide-kicker { background:linear-gradient(#bdacd1,#a184c1) }
.slide-surface[data-kind="review"] .slide-kicker { background:linear-gradient(#ada9d7,#8d88be) }
.slide-surface.introduction-slide .slide-kicker { background:linear-gradient(#aeb8d9,#8b98c8) }
.slide-surface[data-kind="teaching"] .slide-kicker {
  display:grid; place-items:center; inset:3.12% auto auto 2.77%; width:14.33%; height:15.81%;
  border:1px solid #58727b; border-radius:1.5cqw; padding:0; background:linear-gradient(#a0c6d0,#80b0bf);
  color:#121b20; font-size:1.38cqw; font-weight:400; white-space:nowrap;
}
.slide-surface[data-kind="teaching"] > img { top:2%; right:2.1%; width:8% }
.slide-surface[data-kind="teaching-phase"] .slide-kicker { background:linear-gradient(#a0c6d0,#80b0bf) }
.slide-surface[data-kind="practice"] .slide-kicker { background:linear-gradient(#b0d9c5,#81bca3) }
.slide-surface .preview-label { width:100%; text-align:left; font-size:2.5cqw; font-weight:700 }
.slide-surface[data-kind="learning"] :is(.slide-title,.body-text) { width:100%; text-align:left }
.slide-surface[data-kind="learning"] .slide-title { font-size:3.55cqw; font-weight:500 }
.slide-surface[data-kind="learning"] .body-text { font-size:2.72cqw }

.slide-surface[data-kind="cycle"], .slide-surface[data-kind="teaching"] { padding:3% }
.slide-surface[data-kind="cycle"] .slide-title { font-size:3.7cqw }
.slide-surface .cycle-art { position:static; width:auto; height:84%; max-width:89%; object-fit:contain; mix-blend-mode:multiply }
.slide-surface .grapheme-board-launch {
  position:absolute; top:50%; left:50%; transform:translate(-50%, -50%);
  font-weight:700; line-height:1.25;
  font-size:clamp(.8rem, 3.3cqw, 3rem);
  padding:.65em 1.25em; min-height:44px;
}
.grapheme-board {
  width:min(96vw, 1440px); height:94dvh; max-width:none; max-height:none;
  margin:auto; padding:0; overflow:hidden; border:1px solid var(--line);
  border-radius:12px; background:var(--white); color:var(--ink);
}
.grapheme-board[open] { display:flex; flex-direction:column }
.grapheme-board::backdrop { background:#10211e99 }
.grapheme-board .script-toolbar { flex-wrap:wrap; gap:8px }
.grapheme-board .setup-actions { flex-wrap:wrap }
.grapheme-board a { text-decoration:none }
.grapheme-board iframe { display:block; width:100%; flex:1; min-height:0; border:0 }
.slide-surface.introduction-slide { padding-top:13%; gap:2cqw }
.slide-surface.introduction-slide .slide-title { font-size:3.8cqw }
.slide-surface { --phoneme-size:21 }
.slide-surface[data-kind="phoneme"] .focus-text { font-size:calc(var(--phoneme-size) * 1cqw) }
.articulation-model { display:grid; grid-template-columns:35% minmax(0, 1fr); align-items:center; gap:3%; width:98%; min-height:0 }
.articulation-sound { font-size:12cqw; font-weight:700; line-height:1; white-space:nowrap }
.articulation-pictures { display:flex; gap:2cqw; justify-content:center; align-items:center; min-width:0 }
.articulation-pictures img { width:calc((100% - 2cqw) / 2); height:auto }
.articulation-pictures img:only-child { width:74% }
.articulation-pictures.is-square img:only-child { width:23cqw; max-width:100% }
.articulation-credit { position:absolute; bottom:2%; inset-inline:4%; text-align:right; font-size:1.65cqw; color:#334c44 }
.articulation-cue { width:96%; font-size:3.15cqw; line-height:1.25; font-weight:550; color:#254a41 }
.slide-surface[data-kind="grapheme"] .focus-text { font-size:24cqw }
.slide-surface[data-kind="formation"] { padding-top:11% }
.formation-pictures { display:flex; justify-content:center; gap:7.4cqw; width:100% }
.formation-pictures img { width:min(16.4cqw, calc((86cqw - 7.4cqw * (var(--letter-count) - 1)) / var(--letter-count))); height:auto; max-height:31cqw; object-fit:contain }
.slide-surface[data-kind="high-frequency"] .focus-text { font-size:max(3cqw, var(--word-size, 21cqw)); max-width:100% }
.slide-surface .practice-phase { font-size:3.7cqw; font-weight:750; color:#254a41 }
.slide-surface[data-kind="teaching-phase"] .body-text { font-size:3.5cqw }
.practice-layout {
  display:grid; grid-template-columns:minmax(0, 1.35fr) minmax(0, 1fr);
  align-items:center; gap:3cqw; width:100%; max-height:100%; min-height:0;
}
.practice-copy { display:flex; flex-direction:column; gap:1.7cqw; min-height:0; max-height:100% }
.practice-copy .slide-title { font-size:3.65cqw }
.practice-copy .body-text { font-size:3.05cqw }
.practice-layout img { display:block; width:100%; height:auto; max-height:33cqw; object-fit:contain }
.slide-surface[data-kind="sound-activity"] .body-text { font-size:3.6cqw }
.slide-surface.introduction-slide:has(.jolly-action-illustration) { padding-top:9% }
.slide-surface > .jolly-action-illustration { position:static; width:25cqw; height:25cqw; object-fit:contain; flex:none }
.slide-surface.introduction-slide:has(.jolly-lyrics) { padding:8% 5% 3%; gap:1cqw }
.slide-surface > .jolly-lyrics { position:static; width:auto; max-width:98%; max-height:36.5cqw; object-fit:contain; min-height:0 }
.slide-song { width:min(82%, 36rem); height:clamp(30px, 7cqw, 54px) }
.sound-activity-link { font-size:3cqw; font-weight:700; background:white; border-radius:4px; padding:.7cqw 1.6cqw }
.suggestions { border:1px solid var(--line); padding:11px 12px; border-radius:8px }
.suggestions summary { cursor:pointer; font-size:.92rem; font-weight:680 }
#suggestion-banks { display:grid; gap:10px; margin-top:9px }
.suggestion-group, .suggestion-group section { display:grid; gap:5px }
.suggestion-group { gap:8px }
.suggestion-group + .suggestion-group { border-top:1px solid var(--line); padding-top:10px }
.suggestion-label { font-size:.86rem; font-weight:680 }
.word-chips { display:flex; flex-wrap:wrap; gap:5px }
.word-chips button { color:var(--ink); padding:5px 8px; border:1px solid var(--line); border-radius:6px; background:#f5f8f6; font-size:.86rem }
.word-chips button[aria-pressed=true] { background:var(--green); border-color:var(--green); color:white }


.preview-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px }
.presentation-button { border:1px solid var(--line); border-radius:7px; padding:7px 10px; background:white; color:var(--ink); font-size:.85rem; font-weight:650; white-space:nowrap }
.presentation-button:hover { background:var(--accent) }
.presentation-dialog {
  position:fixed; inset:0; margin:0; border:0; padding:0;
  width:100%; height:100%; max-width:none; max-height:none;
  background:var(--slide-paper); overflow:hidden;
}
.presentation-stage { position:relative; display:grid; place-items:center; width:100%; height:100%; background:var(--slide-paper) }
.presentation-dialog::backdrop { background:var(--slide-paper) }
.presentation-dialog:focus { outline:none }
body:has(.presentation-dialog[open]) { overflow:hidden }
.presentation-dialog #preview-player {
  --presentation-width:min(100vw, calc(100dvh * 16 / 9));
  width:var(--presentation-width); max-width:100%;
}
.presentation-dialog .slide-surface .review-grapheme {
  /* Scale with the slide even while the browser is resizing into native fullscreen. */
  font-size:min(calc(var(--presentation-width) * .355), calc(var(--presentation-width) * .82 / var(--review-length)));
}
.presentation-dialog .slide-surface { border:0; border-radius:0 }
.presentation-control-area {
  position:absolute; z-index:1; left:0; bottom:0;
  width:max-content; max-width:100%;
  padding:8px 12px max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}
.presentation-bar {
  max-width:100%; padding:8px 10px;
  display:grid; grid-template-columns:auto auto auto; align-items:center; gap:9px;
  background:#10211ef2; color:white; border-radius:10px;
  font-size:.85rem; font-variant-numeric:tabular-nums; transition:opacity .16s ease;
}
.presentation-bar .preview-nav { grid-template-columns:auto auto; margin:0 }
.presentation-bar #slide-picker { display:none }
.presentation-bar .nav-text { display:none }
.presentation-bar .nav-arrow { display:inline; font-size:1.45rem; line-height:1 }
.presentation-bar .preview-nav button { min-width:44px; min-height:44px }
.fullscreen-hint { grid-column:1 / -1; max-width:24rem; text-align:left }
.presentation-bar #presentation-count { white-space:nowrap }
@media (hover:hover) and (pointer:fine) {
  .presentation-control-area:not(:hover):not(:has(:focus-visible)) .presentation-bar {
    opacity:0; pointer-events:none;
  }
}
@media (max-width:350px) {
  .presentation-bar { grid-template-columns:minmax(0,1fr) auto }
  .presentation-bar .preview-nav { grid-column:1 / -1; justify-self:start }
}
@media (prefers-reduced-motion:reduce) {
  .presentation-bar { transition:none }
}

:is(#review-suggestions,#review-material) { display:grid; gap:13px; margin-top:10px }
.review-stage-filter { max-width:20rem; margin-top:10px }
:is(#review-suggestions,#review-material) section { display:grid; gap:7px }
:is(#review-suggestions,#review-material) section + section { border-top:1px solid var(--line); padding-top:10px }
.review-suggestion-list { max-height:140px; overflow:auto; padding:4px; align-content:start }
.review-suggestion-tools { display:flex; flex-wrap:wrap; align-items:center; gap:6px }
.review-suggestion-tools :is(button,select) { width:auto; margin:0; min-height:33px; font-size:.85rem }
.review-suggestion-tools button { background:#fff; color:var(--ink); border:1px solid var(--line); border-radius:7px; padding:5px 9px }
.review-suggestion-tools button:hover:not(:disabled) { background:var(--accent) }
#review-suggestion-status:not(:empty) { margin-top:8px }


.assessment-fields:not([hidden]) { display:grid; gap:11px }
.slide-surface[data-kind="assessment"] .slide-kicker { background:linear-gradient(#b8d8a9,#92bf80) }
.assessment-examples { font-size:5.7cqw; font-weight:700; white-space:pre-wrap; overflow-wrap:anywhere; max-width:100% }

#review-material { border-top:1px solid var(--line); padding-top:12px }
#review-material button { text-align:left }

.practice-library-button, #back-to-planner { display:inline-block; text-decoration:none }
.practice-library-button { justify-self:start; margin-inline:4px }
.practice-library-page { width:min(1150px,calc(100% - 36px)); margin:24px auto 48px }
.practice-library-page > .panel { padding:15px 18px 12px; margin-bottom:18px }
.practice-library-filters { grid-template-columns:minmax(0, 1.5fr) minmax(0, 1fr) }
.practice-library-filters input { width:100% }
.practice-library-list { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%, 215px),1fr)); gap:14px }
.practice-tile:not([hidden]) {
  display:grid; grid-template-rows:auto 1fr; align-content:start; gap:8px;
  padding:12px; border:1px solid var(--line); border-radius:12px;
  background:var(--white); color:var(--ink); text-align:left; box-shadow:0 2px 4px #23403407;
}
.practice-tile:hover { background:#f6fbf9; border-color:#83a99b }
.practice-tile:focus-visible { outline:2px solid var(--green); outline-offset:2px }
.practice-tile img { width:100%; aspect-ratio:2 / 1; object-fit:contain; background:#f0f7f5; border-radius:8px }
.practice-tile-copy { display:grid; gap:3px; align-content:start; padding:1px 3px 4px }
.practice-tile-copy span { color:var(--muted); font-size:.85rem }
.practice-tile-copy strong { font-size:1rem; line-height:1.25 }
.practice-dialog {
  width:min(750px, calc(100% - 24px)); max-height:85dvh; padding:0;
  border:1px solid var(--line); border-radius:12px; color:var(--ink);
}
.practice-dialog[open] { display:flex; flex-direction:column }
.practice-dialog::backdrop { background:#10211e66 }
.practice-dialog-content { overflow:auto; overscroll-behavior:contain; padding:18px 20px }
.practice-library-detail { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 2.2fr); gap:16px }
.practice-library-detail img { width:100%; max-width:230px; height:auto }
.practice-library-detail dl { margin:0 }
.practice-library-detail dt { font-weight:700 }
.practice-library-detail dd { margin:2px 0 11px; line-height:1.45 }
@media (max-width:540px) {
  .practice-library-filters, .practice-library-detail { grid-template-columns:1fr }
  .practice-library-detail img { max-width:165px }
  .practice-library-list { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px }
  .practice-tile:not([hidden]) { padding:7px }
  .practice-tile-copy { overflow-wrap:anywhere }
}
.practice-resource-links { margin:5px 0 0; padding-inline-start:19px }
.practice-resource-links li + li { margin-top:5px }

.slide-surface[data-kind="spelling-rule"]:has(.rule-poster-layout) { padding:4.5% 7% 3% }
.rule-poster-layout { display:flex; align-items:center; justify-content:center; gap:5cqw; width:100%; height:100%; min-height:0 }
.rule-poster-layout img { height:100%; width:auto; max-width:46%; object-fit:contain }
.rule-poster-layout .body-text { max-width:44% }
.rule-poster-layout .body-text { order:-1 }

.awareness-tile-description { color:var(--muted); font-size:.9rem; padding-inline:3px }
.awareness-library-detail { grid-template-columns:minmax(0,1fr) }
