/* One workspace, six destinations; long text scrolls without moving actions away. */
.workspace-v2{--workspace-nav:58px}.workspace-v2 .topbar{padding:12px 24px;min-height:0;max-width:1480px;margin:auto}.workspace-v2 .brand-mark{width:34px;height:34px;font-size:20px}.workspace-v2 .brand small{font-size:11px}.workspace-v2 .utility-bar{margin:0 auto 10px;padding:8px 16px;max-width:1432px;font-size:12px}.workspace-v2 .utility-copy{font-size:12px}.workspace-v2 .utility-actions button{padding:7px 12px;font-size:12px}.workspace-v2 .nav{max-width:1432px;margin:0 auto 10px;padding:6px;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;position:sticky;top:0;z-index:20;background:#fff;min-height:var(--workspace-nav)}.workspace-v2 .nav button{padding:10px 5px;font-size:15px;white-space:nowrap}.workspace-v2 main{max-width:1480px;padding:0 24px 28px;min-height:60vh}.workspace-v2 footer{max-width:1432px}.workspace-subnav,.card-mode-tabs{display:flex;align-items:center;gap:6px;padding:0 0 10px;min-height:44px}.workspace-subnav button,.card-mode-tabs button,.deck-tabs button{border:0;border-radius:8px;padding:9px 14px;background:transparent;color:#506c71;font:inherit;font-size:14px;cursor:pointer}.workspace-subnav .selected,.card-mode-tabs .selected,.deck-tabs .selected{background:#deede5;color:#194f48;font-weight:700}.workspace-subnav>span,.card-mode-tabs>span{margin-left:auto;font-size:12px;color:#73857f}.workspace-v2 button:focus-visible,.workspace-v2 select:focus-visible{outline:3px solid #ac7a2e;outline-offset:2px}.workspace-v2 button:disabled{opacity:.45;cursor:not-allowed}.workspace-v2 .expansion-banner,.workspace-v2 .daily-strip{display:none}
.deck-selector{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:0 0 12px}.deck-selector label{display:flex;gap:9px;align-items:center;font-size:12px;min-width:0;color:#647b73}.deck-selector select{min-width:0;flex:1;padding:9px 10px;border:1px solid #c6d7ce;background:#fff;border-radius:8px;font:inherit;font-size:13px;color:#254b45}.deck-workspace{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(330px,1fr);gap:16px;height:clamp(420px,calc(100dvh - 310px),740px)}.deck-picture{min-height:0;overflow:auto;border:1px solid #d8e0d4;background:#fffdf6;border-radius:16px;padding:18px 22px;display:flex;flex-direction:column;gap:10px}.deck-heading>span,.workspace-eyebrow{color:#7c866c;font-size:12px;letter-spacing:1px}.deck-heading h1{font-size:clamp(21px,2vw,30px);line-height:1.4;margin:4px 0}.deck-mnemonic{display:flex;gap:12px;align-items:center;padding:9px 13px;border-radius:9px;background:#fff0cc}.deck-mnemonic>span{font-size:12px;color:#7a6334;white-space:nowrap}.deck-mnemonic>strong{font-size:clamp(17px,1.5vw,24px);color:#715122}.deck-picture figure{margin:0;min-height:180px;flex:1;display:flex;flex-direction:column}.deck-picture figure>svg{width:100%;height:100%;min-height:200px;max-height:420px;flex:1;object-fit:contain}.deck-picture figcaption{font-size:11px;color:#74877c;text-align:center;margin-top:5px}.deck-boundary,.deck-recall-note{font-size:12px;line-height:1.65;color:#795e33;margin:0}.deck-side{min-width:0;min-height:0;border:1px solid #d1e0d8;border-radius:16px;background:#fff;display:flex;flex-direction:column;overflow:hidden}.deck-tabs{display:flex;gap:4px;padding:8px;border-bottom:1px solid #dbe6e0;background:#f5f8f5;flex-shrink:0}.deck-tabs button{flex:1;padding:9px 4px;font-size:13px;white-space:nowrap}.deck-panel{min-height:0;overflow:auto;padding:20px;line-height:1.8;overflow-wrap:anywhere;scrollbar-gutter:stable}.deck-panel h2{font-size:21px;line-height:1.5;margin:8px 0 14px}.deck-panel h3{font-size:16px}.association-story{font-size:17px;line-height:1.9;color:#2f554d;margin:10px 0 18px}.association-case{border-left:3px solid #77a596;background:#f1f6f1;padding:12px 15px;margin:16px 0}.association-case h3{margin:0}.association-case summary{cursor:pointer;color:#346f64}.association-caution{font-size:14px;background:#fff2d8;padding:12px;border-radius:9px}.deck-panel .muted{font-size:12px;line-height:1.8}.deck-panel>.primary{width:100%;font-size:14px;padding:12px}.deck-panel .card-comments{border:0;padding:0;margin:0;background:transparent}.deck-panel .comment-heading h3{font-size:17px}.deck-panel .comment-heading button{font-size:12px}.deck-panel .comment-intro{font-size:12px;margin:9px 0}.deck-panel .comment-editor{gap:8px}.deck-panel .comment-editor textarea{min-height:115px;font-size:15px;padding:10px}.deck-panel .comment-editor>label:first-child{display:flex;justify-content:space-between;align-items:center}.deck-panel .comment-local-note,.deck-panel .comment-empty{font-size:12px}.deck-panel .comment-status{font-size:12px}.deck-panel .comment-text{font-size:14px}.deck-panel .comment-list{margin-top:12px}.deck-panel .comment-entry{padding:11px}.workspace-dock{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:10px 14px;background:#fff;border:1px solid #d1dfd5;border-radius:12px;margin:10px 0;position:sticky;bottom:10px;z-index:12;box-shadow:0 6px 20px #234a4210}.workspace-dock>span{font-size:12px;color:#677e74;margin-right:auto}.workspace-dock>button{margin:0;padding:10px 16px;font-size:14px}.workspace-dock>button:first-child{margin-right:auto}.study-deck.lesson-recall figure svg text{visibility:hidden}.study-deck.lesson-recall .deck-panel .association-story,.study-deck.lesson-recall .deck-panel .association-case{filter:blur(7px);user-select:none}.workspace-v2 .lesson-present .study-deck{display:block}
.continuous-reader{margin-top:12px}.reader-toolbar{display:flex;align-items:center;gap:14px;margin-bottom:12px}.reader-toolbar>div{flex:1;min-width:0}.reader-toolbar h1{font-size:19px;line-height:1.5;margin:0;overflow-wrap:anywhere}.reader-toolbar small,.reader-toolbar label{font-size:12px;color:#738779}.reader-toolbar label{display:grid;gap:5px}.reader-toolbar select{max-width:220px;padding:8px;border:1px solid #c9d8cd;border-radius:8px;background:white}.reader-flow{position:relative;overflow:auto;height:calc(100dvh - 300px);min-height:400px;max-height:1100px;background:#eaf0eb;border:1px solid #d6e1d7;border-radius:14px;scrollbar-gutter:stable;padding:16px 24px;overscroll-behavior:contain}.reader-note{font-size:12px;color:#637967;line-height:1.8;max-width:1000px;margin:0 auto 15px}.reader-flow .course-sheet{max-width:1000px;margin:0 auto 16px;padding:24px;background:#fff}.reader-flow .course-text{font-size:18px;line-height:2}.reader-flow .course-sheet h2{font-size:22px}.reader-flow .course-sheet img{max-width:100%;height:auto}.reader-status{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:#58735f;padding:8px 0}.reader-end{text-align:center;padding:24px;color:#365b43}.reader-end button{margin-left:16px}.news-command{display:flex;justify-content:space-between;align-items:center;position:sticky;top:var(--workspace-nav);z-index:10;background:#f4f7f8;padding:12px 0;gap:16px}.news-command h1{font-size:25px;margin:0}.news-command p,.news-help{font-size:13px;color:#677d73;line-height:1.8}.news-command .primary{flex-shrink:0}.workspace-v2 .news-workspace .section-head{display:none}
.compact-battle{margin-top:6px}.battle-toolbar{display:flex;gap:15px;align-items:center;justify-content:space-between;padding:6px 0 12px;font-size:14px}.battle-workspace{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);gap:16px;height:clamp(370px,calc(100dvh - 290px),800px)}.battle-question,.battle-explain{overflow:auto;min-height:0;border:1px solid #d3dfd4;border-radius:15px;background:#fff;padding:22px}.battle-question h1{font-size:clamp(19px,1.8vw,25px);line-height:1.6;margin:8px 0 18px}.battle-question small{font-size:12px;color:#6e8270}.battle-question .battle-options{display:grid;gap:9px}.battle-question .battle-option{padding:12px;gap:12px;min-height:48px}.battle-question .battle-option b{font-size:16px;line-height:1.55}.battle-question .battle-option>span{width:30px;height:30px;min-width:30px;font-size:14px}.battle-explain{background:#f1f6ee;font-size:16px;line-height:1.8}.battle-explain h2{font-size:24px;margin:8px 0}.battle-explain details{font-size:12px}.compact-museum .museum{padding:0}.compact-museum .museum-toolbar{padding:0 0 8px}.compact-museum .museum-steps{margin:4px 0 10px}.compact-museum .museum-steps li{padding:8px;font-size:12px}.compact-museum .monster-dialog{margin:6px auto 12px;max-width:none;gap:12px}.compact-museum .monster-dialog svg{width:60px;height:50px;flex:0 0 60px}.compact-museum .monster-dialog p{padding:10px 14px;font-size:13px;line-height:1.6}.compact-museum .memory-recall,.compact-museum .museum-test{padding:20px;margin:0;max-width:none;height:clamp(280px,calc(100dvh - 430px),630px);overflow:auto}.compact-museum .memory-recall h2,.compact-museum .museum-test h2{font-size:22px;margin:4px 0 14px;line-height:1.6}.compact-museum .memory-recall input{padding:12px;font-size:16px}.compact-museum .memory-recall p{font-size:14px;line-height:1.7}.compact-museum .museum-test .museum-primary,.compact-museum .museum-stage>.museum-primary,.compact-museum .museum-stage>.text-button{display:none}.compact-museum .museum-options{gap:8px}.compact-museum .museum-options button{padding:12px;font-size:16px}.compact-museum .museum-explanation{padding:12px;font-size:14px;margin-top:10px}.compact-museum .museum-stage{max-height:calc(100dvh - 370px);min-height:320px;overflow:auto;padding-right:8px}.compact-museum .set-picture{display:none}.compact-museum .memory-set{display:block}.compact-museum .memory-slots{display:grid;grid-template-columns:1fr 1fr;gap:8px}.compact-museum .memory-slot{padding:10px;min-height:65px}.compact-museum .memory-slot b,.compact-museum .memory-slot span{font-size:13px}.compact-museum .word-bank{padding:14px;margin-top:12px}.compact-museum .word-bank h3{margin:0;font-size:16px}.compact-museum .word-bank>p{font-size:12px;margin:4px 0}.compact-museum .bank-current{padding:8px;font-size:13px}.compact-museum .word-bank button{padding:9px 12px;font-size:14px}.compact-museum .museum-result{padding:20px;max-height:calc(100dvh - 330px);overflow:auto}.compact-museum .museum-result .memory-monster{width:75px;height:65px}.compact-museum .museum-result h2{font-size:24px}.compact-museum .museum-answer-sheet{margin-top:15px}.workspace-v2 .game-result{padding:24px}.workspace-v2 .result-stars{font-size:34px;margin:10px}.workspace-v2 .game-result h1{font-size:28px;margin:12px}.workspace-v2 .result-numbers{margin:16px 0;gap:24px}.workspace-v2 .result-numbers strong{font-size:30px}.workspace-v2 .game-result>p{margin:10px}.workspace-v2 .challenge-hero{padding:24px}.workspace-v2 .challenge-hero h1{font-size:35px}.workspace-v2 .trophy-art{max-width:200px}.workspace-v2 .museum-hero{padding:24px}.workspace-v2 .museum-hero h1{font-size:32px}.workspace-v2 .museum-hero-art{max-width:160px}.workspace-v2 .mind-header{margin-top:12px}.workspace-v2 .mind-header h1{font-size:26px}.workspace-v2 .mind-sidebar{padding:16px}.workspace-v2 .mind-canvas{max-height:65vh}
@media(min-width:900px) and (max-height:800px){.workspace-v2 .utility-bar{display:none}.workspace-v2 .topbar{padding:7px 24px}.deck-workspace{height:calc(100dvh - 234px);min-height:340px}.deck-picture{padding:14px}.deck-picture figure>svg{min-height:150px}.deck-boundary{font-size:11px}.deck-picture figcaption{display:none}.deck-panel{padding:14px}.association-story{font-size:15px}.deck-panel .comment-intro{margin:6px 0}.deck-panel .comment-editor textarea{min-height:86px}.deck-panel .comment-editor{gap:5px}.deck-panel .comment-local-note{margin:6px 0}.battle-workspace{height:calc(100dvh - 225px);min-height:330px}.reader-flow{height:calc(100dvh - 222px);min-height:320px}.compact-museum .memory-recall,.compact-museum .museum-test{height:calc(100dvh - 337px);min-height:260px}.compact-museum .museum-stage{max-height:calc(100dvh - 340px)} }
@media(max-width:850px){.workspace-v2 .topbar{padding:10px 14px}.workspace-v2 .utility-bar{display:none}.workspace-v2 main{padding:0 12px 20px}.workspace-v2 .nav{border-radius:12px;margin:0 10px 10px}.workspace-v2 .nav button{font-size:12px;padding:9px 1px}.workspace-subnav>span,.card-mode-tabs>span{display:none}.deck-selector{gap:8px}.deck-selector label{display:block}.deck-selector select{width:100%;margin-top:4px}.deck-workspace{height:auto;grid-template-columns:1fr;gap:12px}.deck-picture{padding:15px}.deck-picture figure>svg{height:300px;min-height:0;flex:none}.deck-side{height:380px}.deck-panel{padding:15px}.workspace-dock{position:sticky;bottom:6px;flex-wrap:wrap;padding:8px;gap:6px}.workspace-dock>button{padding:9px 11px;font-size:12px}.workspace-dock>span{font-size:11px}.reader-toolbar{flex-wrap:wrap}.reader-toolbar h1{font-size:16px}.reader-toolbar>div{flex-basis:65%}.reader-toolbar label{display:flex;align-items:center;width:100%}.reader-toolbar select{max-width:none;flex:1}.reader-flow{height:65dvh;min-height:300px;padding:10px}.reader-flow .course-sheet{padding:15px}.reader-flow .course-text{font-size:16px}.reader-status{flex-wrap:wrap;gap:6px}.reader-status>span:nth-child(2){display:none}.battle-workspace{height:auto;grid-template-columns:1fr}.battle-question{padding:17px}.battle-explain{padding:16px;max-height:250px}.battle-toolbar{font-size:12px;gap:6px}.battle-toolbar button{font-size:12px;padding:8px}.compact-museum .memory-slots{grid-template-columns:1fr}.compact-museum .memory-recall,.compact-museum .museum-test{height:48dvh;min-height:300px}.compact-museum .memory-recall h2,.compact-museum .museum-test h2{font-size:19px}.compact-museum .monster-dialog{gap:4px}.compact-museum .museum-steps li{font-size:11px}.news-command{top:58px}.news-command h1{font-size:22px}.news-command p{font-size:11px}.news-command button{font-size:13px}.workspace-v2 .offline-badge{font-size:10px}.workspace-v2 .site-registration{padding-bottom:30px}}
.memory-tile-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;flex:1;min-height:0;background:#eaf2e9;border-radius:12px;padding:10px}.memory-tile{position:relative;border-radius:10px;background:#fff;padding:14px 16px;display:flex;flex-direction:column;justify-content:center;min-height:60px}.memory-tile>svg{position:absolute;right:12px;top:12px;width:30px;height:30px}.memory-tile>strong{font-size:24px;line-height:1.25;padding-right:33px;color:#28564e}.memory-tile>p{font-size:16px;line-height:1.5;margin:7px 0 0;color:#294f48}.lesson-recall .memory-tile p{visibility:hidden}.deck-workspace{height:clamp(390px,calc(100dvh - 350px),740px)}.deck-panel .comment-intro,.deck-panel .comment-local-note{display:none}.deck-panel .comment-heading{margin-bottom:10px}.deck-panel .comment-editor>label[for]{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.deck-panel .comment-editor textarea{min-height:90px}.deck-panel .comment-count{font-size:11px}.deck-panel .comment-status{font-size:11px;line-height:1.5}.compact-museum .museum-stage{display:grid;grid-template-columns:1fr 1fr;gap:14px;height:calc(100dvh - 400px);min-height:270px;max-height:650px;overflow:visible}.compact-museum .memory-set,.compact-museum .word-bank{min-height:0;overflow:auto;margin:0}.compact-museum .memory-slots{grid-template-columns:1fr}.compact-museum .museum-stage>.museum-hint{grid-column:1/-1;font-size:13px}.compact-museum .memory-recall,.compact-museum .museum-test{height:clamp(260px,calc(100dvh - 420px),620px)}
@media(min-width:900px) and (max-height:800px){.deck-workspace{height:calc(100dvh - 328px);min-height:325px}.memory-tile{padding:9px 12px;min-height:50px}.memory-tile>strong{font-size:22px}.memory-tile>p{font-size:15px;margin:5px 0}.memory-tile>svg{width:25px;height:25px;right:9px;top:9px}.deck-picture{gap:7px}.deck-picture figure{min-height:100px}.compact-museum .memory-recall,.compact-museum .museum-test{height:calc(100dvh - 420px);min-height:250px}.compact-museum .museum-stage{height:calc(100dvh - 400px);max-height:none;min-height:250px}}
@media(max-width:850px){.deck-workspace{height:auto;min-height:0}.memory-tile-grid{min-height:240px}.compact-museum .museum-stage{height:55dvh;grid-template-columns:1fr 1fr;gap:8px}.compact-museum .word-bank{padding:10px}.compact-museum .memory-slot{padding:7px}.compact-museum .memory-slot .slot-number{display:none}.compact-museum .word-bank button{font-size:13px;padding:9px}.compact-museum .bank-current{font-size:11px}.compact-museum .memory-recall,.compact-museum .museum-test{height:48dvh}}

@media(min-width:900px) and (max-height:800px){.reader-flow{height:calc(100dvh - 260px);min-height:300px}}
