.wr-room{max-width:1040px;margin:0 auto;color:#183430;--wr-wood:#ba865e;--wr-tile:#e9b84a}
.wr-room *{box-sizing:border-box}.wr-room h1{font-size:clamp(1.7rem,3.7vw,2.25rem);letter-spacing:-.03em;margin:0 0 4px}.wr-room h2{font-size:1.55rem;line-height:1.25;margin:12px 0}.wr-room h3{font-size:1.3rem}.wr-room p{font-size:1.08rem;line-height:1.5;max-width:66ch;margin:8px 0 14px}.wr-room figure{margin:0;min-width:0}.wr-room figcaption{font-size:1.05rem;line-height:1.45;padding:4px 8px}.wr-header{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:8px 0 12px}.wr-header>div{text-align:right}.wr-header>div>span{font-size:1.1rem;color:#52675e}.wr-header>a{font-weight:700}.wr-room a,.wr-room summary,.wr-room button{min-height:46px}.wr-room a{display:inline-flex;align-items:center;padding:8px 5px}.wr-room button{font:inherit;border:2px solid #397958;border-radius:8px;background:#fffdf3;color:#183430;padding:9px 13px;line-height:1.3;cursor:pointer}.wr-room button.wr-primary{background:#183f39;color:#fffdf3;min-width:150px;font-weight:700}.wr-room button:disabled{opacity:.55;cursor:default}.wr-room button:focus-visible,.wr-room a:focus-visible,.wr-room summary:focus-visible,.wr-room [tabindex="-1"]:focus{outline:3px solid #b93e2c;outline-offset:4px}.wr-room button[aria-pressed="true"]{border-color:#183f39;box-shadow:inset 0 0 0 2px #183f39}.wr-waiting{padding-left:10px;border-left:5px solid var(--wr-tile)}.wr-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0}.wr-steps button{font-size:.98rem;padding:8px}.wr-steps [aria-current="step"]{background:#d7e9df;border-bottom:5px solid #397958}.wr-shelf{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px 10px;padding:12px;background:#eaf4ef;border-bottom:12px solid var(--wr-wood);border-radius:16px 16px 4px 4px}.wr-shelf button.wr-card{display:flex;flex-direction:column;align-items:center;padding:0 6px 8px;background:#fffdf3;border:1px solid #8eb7a3;border-bottom:5px solid #ba865e;border-radius:14px 14px 4px 4px;min-width:0}.wr-card>span{font-size:1.6rem;font-weight:700;line-height:1.15;padding:3px 0}.wr-picture{display:block;width:100%;max-height:240px}.wr-picture-small{max-height:130px}.wr-shelf .wr-picture-small{max-height:105px}.wr-card-paused{padding:12px;overflow-wrap:anywhere}.wr-scene-choices,.wr-actions,.wr-help,.wr-bottom{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.wr-scene-choices button{flex:1 1 160px}.wr-work{display:grid;grid-template-columns:.9fr 1.1fr;gap:22px;align-items:start;padding:14px;background:#eaf4ef;border:2px solid #8eb7a3;border-bottom:10px solid var(--wr-wood);border-radius:18px 18px 5px 5px}.wr-table{min-width:0}.wr-places,.wr-word-pieces{display:flex;gap:10px;justify-content:center;margin:10px 0}.wr-places>button{display:flex;flex-direction:column;align-items:center;justify-content:center;width:76px;min-height:84px;padding:3px;background:#fffdf3;border:3px solid #397958;border-bottom-width:7px}.wr-places>button>span{font-size:.8rem;color:#52675e}.wr-places>button>strong{font-size:2.3rem;font-weight:700;line-height:1.1}.wr-word-piece{display:inline-flex;align-items:center;justify-content:center;width:64px;min-height:65px;font-size:2.6rem;font-weight:700;background:#fffdf3;border-bottom:5px solid #8eb7a3;border-radius:5px}.wr-word-piece.wr-pointed{outline:4px solid #b93e2c;outline-offset:2px;background:#f8e5a9}.wr-model .wr-word-pieces{justify-content:center;gap:6px;margin:0 0 4px}.wr-model .wr-word-piece{font-size:1.35rem;min-height:28px;width:34px;border:0;background:transparent}.wr-bank{display:grid;grid-template-columns:repeat(6,minmax(44px,1fr));gap:7px;margin:12px 0}.wr-bank button{min-width:44px;min-height:48px;padding:5px;font-size:1.75rem;font-weight:700;background:var(--wr-tile);border-color:#8f7237;border-bottom-width:5px}.wr-edit{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}.wr-edit button{font-size:.9rem;flex:1 1 90px;padding:7px}.wr-table>.wr-primary{width:100%}.wr-result{margin:14px 0 4px;padding:10px 12px;background:#fffdf3;border-left:5px solid var(--wr-tile)}.wr-result h3{font-size:1.75rem;margin:3px 0 8px}.wr-result .wr-picture{max-height:100px}.wr-result .wr-actions button{flex:1 1 130px}.wr-help button{flex:1 1 150px;font-size:.95rem}.wr-room details{margin:14px 0;border-top:1px solid #8eb7a3;padding-top:4px}.wr-room summary{display:flex;align-items:center;cursor:pointer;font-weight:700;padding:10px 4px}.wr-room summary::before{content:'+';font-size:1.3rem;margin-right:10px}.wr-room details[open]>summary::before{content:'−'}.wr-comparisons>div,.wr-gallery>div{display:flex;flex-wrap:wrap;gap:8px;padding:5px 0}.wr-contrast{display:grid;grid-template-columns:1fr 1fr;gap:18px;background:#eaf4ef;border-bottom:10px solid var(--wr-wood);padding:12px}.wr-contrast .wr-picture-small{max-height:130px}.wr-contrast .wr-word-piece{font-size:2rem;width:50px;min-height:50px}.wr-reading-pictures{display:flex;justify-content:center;gap:8px;max-height:230px;overflow:hidden;background:#eaf4ef;border-bottom:8px solid var(--wr-wood);border-radius:14px 14px 4px 4px}.wr-reading-pictures .wr-picture-small{max-width:23%;max-height:180px}.wr-scene-picture{display:block;max-width:100%;width:450px;max-height:230px}.wr-room .wr-passage{font-size:clamp(1.25rem,2.3vw,1.6rem);line-height:1.8;max-width:52ch;margin:20px auto;white-space:pre-wrap}.wr-target{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:5px;font-weight:700}.wr-discuss{padding:12px;border-left:5px solid var(--wr-tile);background:#f5f4e5}.wr-ready{padding:12px 16px;background:#eaf4ef;border-left:7px solid var(--wr-tile)}.wr-dialog{max-width:min(520px,calc(100vw - 32px));border:3px solid #183f39;border-radius:12px;padding:22px;color:#183430;background:#fffdf3}.wr-dialog::backdrop{background:#183430aa}.wr-dialog h2{font-size:1.5rem}.wr-dialog .wr-actions button{flex:1 1 130px}.wr-room #wr-status:empty{margin:0;min-height:0}.wr-room #wr-status:not(:empty){padding:10px 12px;border-left:5px solid #397958;background:#eaf4ef}.wr-grownups p{font-size:1rem}.wr-bottom button{flex:1 1 160px}
@media(max-width:680px){.wr-room h1{font-size:1.65rem}.wr-room h2{font-size:1.35rem;margin:8px 0}.wr-header{margin:4px 0 8px;gap:8px}.wr-header a{font-size:.95rem}.wr-header>div>span{font-size:.95rem}.wr-room p{font-size:1rem;line-height:1.4}.wr-steps{gap:5px;margin:7px 0}.wr-steps button{font-size:.84rem;padding:6px 4px;min-height:47px}.wr-work{grid-template-columns:1fr;gap:10px;padding:9px}.wr-work>figure{display:flex;gap:9px;align-items:center}.wr-work>figure .wr-picture{max-height:100px;width:40%;flex:none}.wr-work>figure figcaption{font-size:.95rem;padding:0}.wr-places{gap:8px;margin:6px 0}.wr-places>button{width:65px;min-height:69px}.wr-places>button>strong{font-size:2rem}.wr-bank{grid-template-columns:repeat(5,minmax(44px,1fr));gap:5px;margin:9px 0}.wr-bank button{min-width:44px;min-height:46px;font-size:1.5rem}.wr-shelf{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 7px;padding:8px}.wr-shelf .wr-picture-small{max-height:75px}.wr-shelf button.wr-card{padding:0 2px 6px}.wr-card>span{font-size:1.35rem}.wr-word-piece{width:55px;min-height:54px;font-size:2rem}.wr-help{margin:7px 0}.wr-contrast{gap:12px;padding:8px}.wr-contrast .wr-word-pieces{gap:5px}.wr-contrast .wr-word-piece{width:38px;min-height:45px;font-size:1.7rem}.wr-reading-pictures{max-height:180px}.wr-scene-picture{max-height:180px}}
@media(max-width:350px){.wr-bank{grid-template-columns:repeat(4,minmax(44px,1fr))}.wr-contrast{grid-template-columns:1fr}.wr-contrast figure{display:grid;grid-template-columns:90px 1fr;align-items:center}.wr-contrast figcaption{grid-column:1/-1}.wr-contrast .wr-word-pieces{margin:0}.wr-contrast .wr-picture-small{max-height:75px}}
@media(prefers-reduced-motion:reduce){.wr-room *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

@media(min-width:681px) and (max-height:820px){.wr-header{margin:0 0 5px}.wr-room h1{font-size:1.7rem}.wr-header>div>span{font-size:1rem}.wr-room .wr-waiting{margin:4px 0}.wr-steps{margin:5px 0}.wr-room h2{font-size:1.3rem;margin:6px 0}.wr-work{padding:10px;gap:16px}.wr-work p{margin:3px 0 6px;font-size:1rem}.wr-places{margin:5px 0;gap:8px}.wr-places>button{min-height:67px}.wr-places>button>strong{font-size:2rem}.wr-bank{gap:5px;margin:7px 0}.wr-bank button{min-height:44px;font-size:1.4rem;padding:3px}.wr-model .wr-word-piece{min-height:23px;font-size:1.1rem}.wr-help,.wr-edit{margin:7px 0}.wr-work .wr-picture{max-height:190px}}

@media(max-width:680px){body:has([data-word-room-root]) .header nav{display:none}body:has([data-word-room-root]) main{padding-top:10px}.wr-header h1{font-size:1.5rem}}

@media(min-width:681px) and (max-height:820px){.wr-reading-board{display:grid;grid-template-columns:.85fr 1.15fr;gap:16px;align-items:center}.wr-room .wr-reading-copy .wr-passage{font-size:1.25rem;line-height:1.65;margin:8px 0}.wr-room .wr-reading-copy .wr-discuss{margin:8px 0 0;padding:8px;font-size:1rem}}

/* A small theater worktable: the paper label is the primary play surface. */
.wrs-room{max-width:850px}
.wrs-room .wr-header{border-bottom:3px solid var(--wr-wood);padding-bottom:9px}
.wrs-room .wr-header>div{text-align:right}
.wrs-room .wr-header h1{font-size:clamp(1.4rem,3vw,2rem)}
.wrs-cases{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:14px 0}
.wrs-cases article{padding:15px;border:2px solid #8eb7a3;border-bottom:7px solid var(--wr-wood);background:#eaf4ef}
.wrs-cases h3{margin:10px 0}
.wrs-modes{display:flex;gap:8px;flex-wrap:wrap}
.wrs-modes button{flex:1 1 130px}
.wrs-icon{display:flex;justify-content:center;gap:9px;padding:10px}
.wrs-icon>span{width:48px;min-height:48px;display:grid;place-items:center;background:#fffdf3;border:2px solid #8eb7a3;font-size:1.35rem;font-weight:700}
.wrs-room .wrs-changed{background:var(--wr-tile);outline:3px solid #183430;outline-offset:2px;border-bottom:5px solid #183430}
.wrs-pass{padding:24px;background:#eaf4ef;border-bottom:9px solid var(--wr-wood);text-align:center}
.wrs-pass p{margin:10px auto 18px}
.wrs-stage{padding:14px 20px;background:#eaf4ef;border-bottom:9px solid var(--wr-wood);max-width:650px;margin:12px auto}
.wrs-room .wrs-whole-word{font-size:3.2rem;font-weight:700;line-height:1.2;letter-spacing:.08em;text-align:center;margin:7px auto 14px}
.wrs-label{display:flex;justify-content:center;gap:12px;padding:13px 0;background:#fffdf3;border:2px dashed #8f7237}
.wrs-label button{width:82px;min-height:88px;display:flex;flex-direction:column;align-items:center;justify-content:center;border-bottom-width:6px}
.wrs-label button[aria-pressed=true]{background:#f8e5a9;outline:3px solid #183430;outline-offset:2px}
.wrs-label button>span{font-size:1rem}
.wrs-label button>strong{font-size:2.7rem;line-height:1.1}
.wrs-bank{display:grid;grid-template-columns:repeat(6,minmax(44px,1fr));gap:8px;margin:15px 0}
.wrs-bank button{min-width:44px;min-height:52px;font-size:1.65rem;font-weight:700;border-bottom-width:5px;background:var(--wr-tile)}
.wrs-stage figure{text-align:center;margin-bottom:12px}
.wrs-picture,.wrs-stage .wr-picture{display:block;max-width:100%;width:320px;max-height:185px;margin:0 auto}
.wrs-stage figure figcaption{max-width:48ch;margin:0 auto}
.wrs-primary-actions,.wrs-bottom{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin:12px 0}
.wrs-bottom{justify-content:flex-start;border-top:2px solid #8eb7a3;padding-top:10px}
.wrs-room .wrs-reminder{font-size:1rem;color:#52675e}
.wrs-pair,.wrs-comparison{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:20px 10px;background:#eaf4ef;border-bottom:8px solid var(--wr-wood)}
.wrs-pair>div{padding:10px;border:3px solid transparent}
.wrs-pair .wrs-current-side{border-color:#397958;background:#fffdf3}
.wrs-print-places{display:flex;justify-content:center;gap:8px}
.wrs-print-places>span{display:grid;place-items:center;width:58px;min-height:66px;font-size:2.7rem;font-weight:700;background:#fffdf3;border-bottom:5px solid #8eb7a3}
.wrs-room .wrs-step{padding:12px;border-left:5px solid var(--wr-tile);background:#fffdf3;min-height:70px}
.wrs-comparison>div{text-align:center;min-width:0}
.wrs-kept-letters{font-size:1.6rem;overflow-wrap:anywhere}
.wrs-keeps .wrs-kept{padding:10px;border-left:4px solid #8eb7a3;margin:10px 0;background:#fffdf3}
.wrs-message{padding:12px;background:#eaf4ef}
.wrs-message .wrs-message-picture{width:500px;max-height:270px}
.wrs-room .wr-help{display:flex;flex-wrap:wrap;gap:8px}
.wrs-room button:focus-visible,.wrs-room a:focus-visible,.wrs-room summary:focus-visible{outline:4px solid #b44e40;outline-offset:3px}
@media(max-width:680px){
 .wrs-cases{gap:9px}.wrs-cases article{padding:9px}.wrs-modes button{flex-basis:100%;padding:8px 5px}
 .wrs-pass{padding:14px}.wrs-stage{padding:10px}.wrs-bank{grid-template-columns:repeat(4,minmax(44px,1fr));gap:6px;margin:10px 0}
 .wrs-bank button{min-height:46px}.wrs-label{gap:9px;padding:10px 0}.wrs-label button{width:66px;min-height:74px;padding:5px}
 .wrs-label button>strong{font-size:2.25rem}.wrs-stage .wrs-picture,.wrs-stage .wr-picture{max-height:110px}
 .wrs-room .wrs-whole-word{font-size:2.6rem;margin:5px auto 10px}.wrs-pair{gap:7px;padding:10px 5px}
 .wrs-pair>div{padding:5px}.wrs-print-places{gap:5px}.wrs-print-places>span{width:34px;min-height:48px;font-size:1.85rem}
 .wrs-comparison{gap:8px;padding:10px}.wrs-comparison h3{font-size:1.05rem}
 .wrs-room .wrs-instruction{margin-bottom:8px}.wrs-icon{gap:6px;padding:8px 0}.wrs-icon>span{width:35px;min-height:44px}
 .wrs-message .wrs-message-picture{max-height:190px}
}

.wrs-room .wrs-kept-feedback{padding:10px 12px;border-left:5px solid #397958;background:#fffdf3;font-size:1rem;margin:8px 0 12px;scroll-margin-top:180px}.wrs-kept-feedback strong{display:inline-block;overflow-wrap:anywhere}

.wrs-icon.wrs-show-label{border:2px dashed #8f7237;border-radius:0 12px 12px 0;background:#fffdf3;padding:10px;margin-bottom:4px}

/*343: one letter encounter at a time, using the existing room's controls. */
.wrs-letter-nav{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.wrs-letter-nav button{min-width:52px;font-size:1.4rem}.wrs-letter-card{padding:12px;border:2px solid #8eb7a3;background:#eaf4ef;border-radius:16px;text-align:center;max-width:600px;margin:12px auto}.wrs-glyph{display:block;font-size:4rem;line-height:1.1}.wrs-letter-card .wrs-picture{max-height:130px}.wrs-letter-card p{max-width:48ch;margin:12px auto}.wrs-letter-card .wrs-changed{outline:3px solid #397958;background:#f9e9ba}
@media(max-width:680px){.wrs-letter-card{padding:9px}.wrs-letter-card .wrs-picture{max-height:95px}.wrs-glyph{font-size:3rem}}

.wrs-room{overflow-wrap:anywhere}

/*350: loose counters beside a manually explored letter-to-sound map. */
.wrt-room{max-width:900px}.wrt-room .wr-header{flex-wrap:wrap;border-bottom:3px solid var(--wr-wood);padding-bottom:8px}.wrt-room .wr-header>div{flex:1;text-align:left}.wrt-room .wr-header h1{font-size:clamp(1.35rem,3vw,1.9rem)}
.wrt-words,.wrt-actions,.wrt-counter-actions{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.wrt-words button{flex:1;min-width:52px;font-size:1.35rem;font-weight:700}.wrt-words button[aria-pressed=true]{background:#f9e9ba}
.wrt-work{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:18px;align-items:center;background:#eaf4ef;border-bottom:10px solid var(--wr-wood);padding:16px;border-radius:16px 16px 4px 4px}.wrt-mat{min-width:0;background:#fffdf3;padding:12px;border:2px solid #8eb7a3;border-radius:8px}.wrt-prop{text-align:center}.wrt-picture,.wrt-prop .wrs-picture{display:block;width:100%;max-width:320px;max-height:190px;margin:auto}.wrt-prop figcaption{text-align:left}
.wrt-map{display:block;width:100%;max-width:400px;margin:auto;overflow:visible}.wrt-link{fill:none;stroke:#9aafa4;stroke-width:2}.wrt-link.wrt-linked{stroke:#183430;stroke-width:4}.wrt-print{fill:#fffdf3;stroke:#8eb7a3;stroke-width:2}.wrt-sound{fill:#fffdf3;stroke:#397958;stroke-width:3}.wrt-selected{fill:#f9e9ba;stroke:#183430;stroke-width:4}.wrt-glyph{text-anchor:middle;fill:#183430;font-size:34px;font-weight:700}.wrt-number{text-anchor:middle;fill:#183430;font-size:17px}.wrt-model figcaption{font-weight:700;text-align:center}.wrt-room .wrt-prompt{padding:8px;border-left:5px solid #e9b84a;font-size:1rem}.wrt-actions button{flex:1 1 100px}
.wrt-print-only{display:flex;justify-content:center;gap:8px}.wrt-print-only span{display:grid;place-items:center;width:46px;min-height:52px;font-size:2rem;font-weight:700;border-bottom:4px solid #8eb7a3}.wrt-counters{display:flex;flex-wrap:wrap;align-content:center;justify-content:center;gap:12px;min-height:116px;padding:12px;border:2px dashed #8f7237;background:#f5f4e5}.wrt-counter{display:grid;place-items:center;flex:none;width:44px;height:44px;border:3px solid #183430;border-radius:50%;background:#e9b84a}.wrt-counter i{font-style:normal;font-weight:700}.wrt-counter-actions button{flex:1 1 120px}.wrt-mat h3{margin:0 0 8px}.wrt-room #wrt-count{font-size:1rem;margin:8px 0}.wrt-pair{display:grid;grid-template-columns:1fr 1fr;gap:14px;background:#eaf4ef;border-bottom:8px solid var(--wr-wood);padding:12px}.wrt-pair>section{min-width:0;background:#fffdf3;padding:8px}.wrt-pair h3{text-align:center;margin:4px}.wrt-room .wrt-visit{font-size:1rem;color:#52675e}.wrt-grownups p{font-size:1rem}
@media(max-width:680px){.wrt-work{grid-template-columns:1fr;gap:8px;padding:9px}.wrt-prop{display:flex;align-items:center;gap:8px}.wrt-prop .wrt-picture,.wrt-prop .wrs-picture{width:38%;max-height:100px;flex:none}.wrt-prop figcaption{font-size:1rem;padding:0}.wrt-mat{padding:8px}.wrt-map{max-width:300px}.wrt-words{gap:6px}.wrt-words button{min-width:64px;padding:7px}.wrt-pair{gap:8px;padding:8px}.wrt-pair .wrt-model figcaption{font-size:1rem}.wrt-room .wr-header>div{flex-basis:160px}}
@media(max-width:380px){.wrt-pair{grid-template-columns:1fr}.wrt-pair .wrt-map{max-width:240px}.wrt-counter-actions button{flex-basis:100px}}
.wrt-grownups>summary{font-size:1rem}

/* Final-e set uses the same work mat; crossing paths do not form a junction. */
.wrt-sets{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}.wrt-sets button{flex:1 1 calc(33.333% - 6px)}.wrt-sets button[aria-pressed=true]{background:#183430;color:#fffdf3}.wrt-crossing-gap{fill:none;stroke:#fffdf3;stroke-width:9}.wrt-note{padding:8px 12px;border:2px solid #8eb7a3;background:#fffdf3}.wrt-note p,.wrt-note>summary{font-size:1rem}.wrt-prop>.wr-picture{width:100%;max-height:190px}
@media(max-width:680px){.wrt-prop>.wr-picture{width:38%;max-height:100px;flex:none}}

/* Sentence context stays beside the current word and its reference model. */
.wrt-context{font-size:1rem;margin:6px 0 12px;padding:8px 12px;border-left:4px solid #397958;background:#fffdf3}.wrt-pair .wrt-context{padding:6px;margin:6px 0}

@media(max-width:680px){.wrt-sets button{flex-basis:calc(50% - 4px)}}
