/* Shared learning shell. Content renderers have no theme-specific state or code. */
body[data-learning-shell]{--learn-paper:#faf8f4;--learn-green:#536350;--learn-ink:#292e29;--learn-line:#e0ded7;--learn-shadow:0 10px 25px #5246340c}
body[data-learning-shell].learning-shell{background:#eeebe5;color:var(--learn-ink)}
body[data-learning-shell].learning-shell main{width:100%;max-width:var(--learn-width,440px);margin:0 auto;padding:0}
[data-learning-shell].learning-shell #task{min-height:100dvh;background:linear-gradient(125deg,#f7f5f1,#efece6);padding:20px 22px 28px;overflow:hidden}
[data-learning-shell].learning-shell .study-toolbar{display:flex;align-items:center;justify-content:space-between;position:relative;z-index:4;height:34px;margin-bottom:14px}
[data-learning-shell].learning-shell #back{border:0;background:none;box-shadow:none;padding:0;min-height:34px;font-size:12px;border-radius:6px}
[data-learning-shell].learning-shell #study-appearance{margin:0;min-height:34px;display:flex;gap:0}
[data-learning-shell].learning-shell #study-appearance label{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
[data-learning-shell].learning-shell #study-theme{font-size:11px;min-height:30px;padding:4px 24px 4px 10px;background:#fff9;border:1px solid #ddd8ce;border-radius:20px;max-width:130px;margin:0}
[data-learning-shell].learning-shell #theme-status:empty{display:none}
[data-learning-shell].learning-shell #book{font-size:17px;line-height:1.4;font-weight:700;margin:0;background:none;border:0;padding:0;box-shadow:none;color:inherit}
.study-progress::-webkit-progress-bar{background:#e1dfd9}.study-progress::-webkit-progress-value{background:#536350;border-radius:8px}
[data-learning-shell].learning-shell #timer{margin:0;background:#ffffff80;border-radius:18px;padding:12px 14px;min-height:46px;font-size:12px;color:#54554f;display:flex;align-items:center;gap:10px;max-width:none}
[data-learning-shell].learning-shell #timer:before{content:'◷';font-size:24px;line-height:1;order:-2}
[data-learning-shell].learning-shell #timer .time-remaining{font-size:13px;order:-1;font-weight:650}
[data-learning-shell].learning-shell #timer progress{height:6px;border:0;border-radius:10px;overflow:hidden;appearance:none;flex:1}
[data-learning-shell].learning-shell #timer progress::-webkit-progress-bar{background:#e0ded8}
[data-learning-shell].learning-shell #timer progress::-webkit-progress-value{background:var(--learn-green);border-radius:10px}
[data-learning-shell].learning-shell #timer.time-critical{background:#fff0df;color:#9b481f}
[data-learning-shell].learning-shell #timer.time-critical progress::-webkit-progress-value{background:#9b481f}
[data-learning-shell].learning-shell .study-world-art{display:none!important}
[data-learning-shell].learning-shell #answers{padding:0;border:0;background:none;box-shadow:none;border-radius:0}
[data-learning-shell].learning-shell #answer-grid{background:#fffdfae8;border-radius:22px;padding:17px 16px 18px;margin:0;box-shadow:var(--learn-shadow)}
[data-learning-shell].learning-shell .focus-grid .question{padding:0;margin:0;border:0;background:none}
[data-learning-shell].learning-shell .selection-question legend{font-size:11px;background:#ece9e2;border-radius:20px;padding:5px 10px;width:auto;float:none;margin:0 0 6px;color:#343a34}
[data-learning-shell].learning-shell .selection-stem{margin:0 0 18px;display:flex;flex-direction:column;white-space:normal;gap:0;font-weight:400}
[data-learning-shell].learning-shell .prompt-instruction{order:2;text-align:center;font-size:13px;line-height:1.6;margin:12px 0 0;white-space:pre-wrap}
[data-learning-shell].learning-shell .prompt-context{white-space:pre-wrap}
[data-learning-shell].learning-shell .prompt-term-wrap{display:flex;flex-direction:column;align-items:center}
[data-learning-shell].learning-shell .learning-term{font-family:Georgia,'Times New Roman',serif;font-size:58px;font-weight:700;line-height:1.12;margin:14px 0 12px;letter-spacing:-1px;color:#181c17}
[data-learning-shell].learning-shell .listening-actions{margin:0;gap:8px}
[data-learning-shell].learning-shell .listen-button{width:38px;height:38px;min-height:38px;padding:0;border:0;border-radius:50%;background:#ece9e2;color:#50594c;font-size:0}
[data-learning-shell].learning-shell .listen-button:before{content:''}
[data-learning-shell].learning-shell .listen-button svg{width:21px;height:21px}
[data-learning-shell].learning-shell .selection-help{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
[data-learning-shell].learning-shell .selection-options{gap:9px;grid-template-columns:1fr}
[data-learning-shell].learning-shell .selection-options button{min-height:48px;border-radius:12px;border:1px solid var(--learn-line);padding:8px 10px;gap:9px;background:#fffdf9;color:#272e28;font-size:14px;font-weight:500;line-height:1.4;box-shadow:0 1px 2px #63554106}
[data-learning-shell].learning-shell .selection-options button[aria-pressed=true]{background:#edf0e8;border-color:#8b9d85;color:#3d5642;box-shadow:inset 0 0 0 1px #8b9d8540}
[data-learning-shell].learning-shell .option-marker{width:28px;height:28px;min-height:28px;margin:0;background:#eeece6;font-size:13px;font-weight:500}
[data-learning-shell].learning-shell .selection-options button[aria-pressed=true] .option-marker{background:#536b51}
[data-learning-shell].learning-shell .response-state{font-size:10px;margin:8px 0 0;color:#77796f}
[data-learning-shell].learning-shell #focus-navigation{padding:0;margin:18px 0 0;background:none;gap:8px;position:static}
[data-learning-shell].learning-shell #previous-question[disabled]{display:none}
[data-learning-shell].learning-shell #next-question:after{content:'›';font-size:28px;position:absolute;right:22px;top:7px}
[data-learning-shell].learning-shell #save-status{font-size:10px;text-align:center;margin:10px 0 4px;padding:0}
[data-learning-shell].learning-shell #save-status[data-level=attention]{font-size:13px;line-height:1.6;text-align:left;background:#fff1d2;color:#763a13;border:1px solid #d8ab69;padding:12px;border-radius:10px;font-weight:650}
[data-learning-shell].learning-shell #focus-panel{margin:0}
.study-details{font-size:10px;color:#777268;text-align:center}
.study-details summary{padding:6px;cursor:pointer}
.study-details #question-timer,.study-details #question-progress{font-size:10px!important;margin:3px}
.study-footer{display:none}
[data-learning-shell].learning-shell #study-voice-status:not(:empty){padding:10px;background:#fff2d7;border:1px solid #d0b583;color:#76502f;border-radius:10px;font-size:12px}
[data-learning-shell].learning-shell #recovery{margin:10px 0}
[data-learning-shell].learning-shell[data-study-theme=world] #task{padding:0 10px 26px;background:transparent;color:#4c3824}
[data-learning-shell].learning-shell[data-study-theme=world] #back{font-size:10px;min-height:24px;background:#fff5dfc9;padding:1px 8px;color:#594127}
[data-learning-shell].learning-shell[data-study-theme=world] #study-theme{min-height:24px;font-size:10px;background:#fff5dfdb;border-color:#a58e6c}
[data-learning-shell].learning-shell[data-study-theme=world] #book{font-family:var(--learn-font);font-size:16px;font-weight:700}
[data-learning-shell].learning-shell[data-study-theme=world] #answers{border:16px solid transparent;border-image:url('/study-assets/reference-paper.png') 110 fill stretch;border-image-width:20px;border-radius:26px;padding:12px 14px 18px;filter:drop-shadow(0 3px 3px #5c48223b);position:relative;margin:0;display:flow-root}
[data-learning-shell].learning-shell[data-study-theme=world] #answer-grid{padding:0;background:none;border-radius:0;box-shadow:none}
[data-learning-shell].learning-shell[data-study-theme=world] .selection-question legend{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
[data-learning-shell].learning-shell[data-study-theme=world] .selection-stem{margin:0 0 8px}
[data-learning-shell].learning-shell[data-study-theme=world] .prompt-instruction{order:0;text-align:left;font-size:15px;font-weight:500;line-height:1.7;color:#513922;margin:0 0 14px}
[data-learning-shell].learning-shell[data-study-theme=world] .prompt-instruction:before{content:'🌱';margin-right:8px}
[data-learning-shell].learning-shell[data-study-theme=world] .prompt-term-wrap{position:relative;background:radial-gradient(ellipse at 40% 25%,#fbeac7,#ecd4ad);border:1px solid #ccac7f;border-radius:24px 22px 20px 24px;padding:12px 52px 16px 10px;min-height:98px;justify-content:center;box-shadow:inset 0 0 8px #b4955930}
[data-learning-shell].learning-shell[data-study-theme=world] .learning-term{font-family:Georgia,'Times New Roman',serif;font-size:43px;font-weight:700;letter-spacing:-.5px;color:#362312;margin:8px 0}
[data-learning-shell].learning-shell[data-study-theme=world] .listening-actions{position:absolute;right:12px;top:50%;transform:translateY(-50%)}
[data-learning-shell].learning-shell[data-study-theme=world] .listen-button{width:42px;height:42px;border:1px solid #bfa47e;background:linear-gradient(#fff0d6,#e5cba4);box-shadow:0 2px 1px #a98a5866,inset 0 1px 2px #fff8dc;color:#7c6243}
[data-learning-shell].learning-shell[data-study-theme=world] .listen-button svg{width:24px;height:24px}
[data-learning-shell].learning-shell[data-study-theme=world] .selection-options{gap:10px}
[data-learning-shell].learning-shell[data-study-theme=world] .selection-options button{min-height:49px;background:linear-gradient(125deg,#fffaf0,#f5ede1);border:1px solid #d2c2a8;border-radius:17px;box-shadow:inset 0 0 0 1px #c5ad8620;padding:8px 10px;font-size:16px;font-weight:650;color:#4a3522}
[data-learning-shell].learning-shell[data-study-theme=world] .option-marker{background:#d7c9b5;color:#57422e;width:29px;height:29px;font-size:14px}
[data-learning-shell].learning-shell[data-study-theme=world] .selection-options button[aria-pressed=true]{background:linear-gradient(120deg,#f3f7ec,#e7f0df);border-color:#7f9d70;box-shadow:inset 0 0 0 1px #7f9d70;color:#354f39}
[data-learning-shell].learning-shell[data-study-theme=world] .selection-options button[aria-pressed=true] .option-marker{background:#62866a;color:white}
[data-learning-shell].learning-shell[data-study-theme=world] #focus-navigation{margin-top:14px}
[data-learning-shell].learning-shell[data-study-theme=world] .study-footer{display:block;border-top:1px solid #cfb79165;text-align:center;font-family:Georgia,'Times New Roman',serif;font-style:italic;font-size:12px;color:#827052;padding-top:12px;margin:12px 0 0}
[data-learning-shell].learning-shell[data-study-theme=world] .response-state{margin-top:8px;font-size:11px}
/* Keep auxiliary information and the finished lower edge inside the same paper. */
[data-learning-shell].learning-shell[data-study-theme=world] .study-footer{padding-top:12px;margin-top:12px}

/* Content contract: stem, term, media, input. Reused by all selection modes. */
[data-learning-shell]{--learn-font:system-ui,-apple-system,'Segoe UI','Malgun Gothic',sans-serif;--learn-width:440px;--learn-content-size:16px;--learn-term-size:clamp(32px,10vw,58px);--learn-choice-size:15px;--learn-touch:44px;--learn-gap:12px;--learn-panel-radius:22px;--learn-accent:#536350;--learn-selected:#edf0e8;--learn-error-bg:#fff1d2;--learn-error-ink:#763a13}
[data-learning-shell][data-study-theme=world]{--learn-font:'Malgun Gothic','맑은 고딕','Apple SD Gothic Neo',Arial,sans-serif;--learn-content-size:15px;--learn-choice-size:15px;--learn-accent:#4e7d67;--learn-selected:#e7f0df;--learn-panel-radius:24px}
body.learning-shell{font-family:var(--learn-font);overflow-x:clip}
.learning-shell header,.learning-shell #app-sidebar,.learning-shell #attempt-history,.learning-shell .notice{display:none}
.learning-shell .app-layout{display:block;min-height:100dvh}
.learning-shell #task{position:relative;min-width:0}
.learning-shell #task>h1,.learning-shell #task>nav{display:none}
.learning-shell #task #answer-help{display:none}
.learning-shell[data-study-content=legacy] #task #answer-help{display:block;font-size:14px;line-height:1.6}
[data-learning-shell].learning-shell .study-prompt[data-prompt=text]{font-size:var(--learn-content-size);font-weight:500;line-height:1.8;overflow-wrap:anywhere;white-space:normal;text-align:left;margin:12px 0 18px}
.study-prompt .prompt-copy{white-space:pre-wrap}
[data-learning-shell].learning-shell .study-prompt[data-prompt=text] .listening-actions{position:static;transform:none;margin-top:12px;justify-content:flex-start}
[data-learning-shell].learning-shell .study-prompt[data-prompt=text] .listen-button{width:auto;height:auto;min-height:44px;padding:8px 14px;gap:8px;font-size:13px}
[data-learning-shell].learning-shell .study-prompt[data-prompt=text] .listen-button span{font-size:13px}
[data-learning-shell].learning-shell .learning-term{max-width:100%;overflow-wrap:anywhere;white-space:normal;font-size:var(--learn-term-size)}
[data-learning-shell].learning-shell .prompt-context{font-size:15px;line-height:1.7;overflow-wrap:anywhere}
[data-learning-shell].learning-shell .selection-help{position:static;clip-path:none;width:auto;height:auto;overflow:visible;font-size:12px;line-height:1.6;color:var(--study-muted);margin:0 0 10px}
[data-learning-shell].learning-shell .selection-options button{display:flex;align-items:center;text-align:left;font-size:var(--learn-choice-size);min-width:0}
[data-learning-shell].learning-shell .option-marker{flex-shrink:0}
[data-learning-shell].learning-shell .option-content{flex:1;min-width:0;overflow-wrap:anywhere;white-space:pre-wrap}
[data-learning-shell].learning-shell .selection-question[data-selection-mode=ox] .selection-options{grid-template-columns:repeat(2,minmax(0,1fr))}
[data-learning-shell].learning-shell .selection-question[data-selection-mode=ox] .selection-options button{text-align:center;justify-content:center;font-size:20px;min-height:58px}
[data-learning-shell].learning-shell .selection-actions:empty{display:none}
[data-learning-shell].learning-shell .selection-actions button{border:1px solid var(--study-border);color:var(--study-ink);background:var(--study-panel);min-height:44px}
[data-learning-shell].learning-shell :is(#back,#study-theme,.listen-button){min-height:var(--learn-touch)}
[data-learning-shell].learning-shell .study-toolbar{height:auto;min-height:44px;gap:8px}
[data-learning-shell].learning-shell #study-appearance{margin:0;flex-wrap:wrap;max-width:55%}
[data-learning-shell].learning-shell #theme-status:not(:empty){font-size:11px;line-height:1.4;max-width:200px;color:var(--study-ink)}
[data-learning-shell].learning-shell #book{overflow-wrap:anywhere}
[data-learning-shell].learning-shell #focus-navigation{display:flex;min-width:0}
[data-learning-shell].learning-shell #save-status[data-level=attention]{background:var(--learn-error-bg);color:var(--learn-error-ink);position:sticky;bottom:8px;z-index:10;box-shadow:0 3px 14px #38220826}
[data-learning-shell].learning-shell #recovery button{min-height:44px;white-space:normal;max-width:100%}
[data-learning-shell].learning-shell #local-storage-note{font-size:13px;background:var(--learn-error-bg);color:var(--learn-error-ink);padding:12px;border-radius:10px}
[data-learning-shell].learning-shell #study-voice-status{white-space:normal;overflow-wrap:anywhere}
[data-learning-shell].learning-shell #submit{min-height:52px;border-radius:18px;background:var(--learn-accent)}
[data-learning-shell].learning-shell[data-study-content=legacy] #answer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
[data-learning-shell].learning-shell[data-study-content=legacy] .question{padding:8px;min-width:0}
[data-learning-shell].learning-shell[data-study-content=legacy] .choices{flex-wrap:wrap;gap:6px}
[data-learning-shell].learning-shell[data-study-content=legacy] .choices button{flex:1 0 40%;min-height:44px}
/* Responsive shell grows on tablet/PC; content remains in one reading column. */
@media(min-width:640px){
 [data-learning-shell]{--learn-width:760px;--learn-content-size:18px;--learn-choice-size:17px;--learn-term-size:58px}
 [data-learning-shell].learning-shell #task{padding-left:42px;padding-right:42px}
 [data-learning-shell].learning-shell[data-study-theme=world] #task{padding-left:18px;padding-right:18px}
 [data-learning-shell][data-study-theme=world]{--learn-content-size:16px;--learn-choice-size:16px}
 [data-learning-shell].learning-shell[data-study-theme=world] #answers{padding:20px 30px 22px}
 [data-learning-shell].learning-shell[data-study-theme=world] #book{font-size:18px}
 [data-learning-shell].learning-shell .selection-options button{min-height:58px;padding:12px 16px}
 [data-learning-shell].learning-shell #book{font-size:20px}
 [data-learning-shell].learning-shell #answer-grid{padding:26px}
 [data-learning-shell].learning-shell[data-study-content=legacy] #answer-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
[data-learning-shell].learning-shell[data-study-theme=world] .learning-term{font-size:clamp(30px,8vw,48px)}
[data-learning-shell].learning-shell[data-study-theme=world] .prompt-term-wrap{min-width:0;padding-left:12px;padding-right:58px}
@media(max-width:359px){
 [data-learning-shell].learning-shell #task{padding-left:12px;padding-right:12px}
 [data-learning-shell].learning-shell[data-study-theme=world] #answers{border-width:14px;padding-left:10px;padding-right:10px;border-image-width:18px}
 [data-learning-shell].learning-shell[data-study-theme=world] #book{font-size:14px}
 [data-learning-shell].learning-shell .selection-options button{padding:10px 8px}
 [data-learning-shell].learning-shell #next-question:after{right:10px}
}

[data-learning-shell].learning-shell #focus-navigation{width:100%;max-width:100%;box-sizing:border-box}
[data-learning-shell].learning-shell .selection-options button .option-content{font-weight:500}
[data-learning-shell].learning-shell .selection-options button[aria-pressed=true] .option-content{font-weight:650}

/* Long terms share one content adaptation, without another question skin. */
[data-learning-shell].learning-shell .prompt-term-wrap.long-term{padding-left:12px;padding-right:12px}
[data-learning-shell].learning-shell .prompt-term-wrap.long-term .learning-term{font-size:clamp(28px,6vw,42px);text-wrap:balance;text-align:center}
[data-learning-shell].learning-shell .prompt-term-wrap.long-term .listening-actions{position:static;transform:none;margin:4px 0 0}
/* Semantic palette available to present and future content renderers. */
[data-learning-shell]{--learn-surface:var(--study-panel);--learn-text:var(--study-ink);--learn-muted:var(--study-muted);--learn-border:var(--study-border);--learn-shadow:var(--study-shadow);--learn-media-bg:#ece9e2;--learn-word-bg:#fffdfa;--learn-focus:var(--learn-accent)}
[data-learning-shell][data-study-theme=world]{--learn-media-bg:linear-gradient(#fff0d6,#e5cba4);--learn-word-bg:radial-gradient(ellipse at 40% 25%,#fbeac7,#ecd4ad)}
[data-learning-shell].learning-shell :is(button,select):focus-visible{outline:3px solid var(--learn-focus);outline-offset:3px}
[data-learning-shell].learning-shell .listen-button{background:var(--learn-media-bg)}
[data-learning-shell].learning-shell[data-study-theme=world] .prompt-term-wrap{background:var(--learn-word-bg)}

[data-learning-shell].learning-shell .study-response :is(input,textarea,select){font:inherit;line-height:1.6;min-height:var(--learn-touch);max-width:100%;padding:12px;border:1px solid var(--learn-border);border-radius:var(--learn-panel-radius);background:var(--learn-surface);color:var(--learn-text)}
[data-learning-shell].learning-shell .selection-options button[aria-pressed=true] .option-marker{color:#fff}
[data-learning-shell].learning-shell .selection-options button:disabled{opacity:.75}
[data-learning-shell].learning-shell #timer{word-break:keep-all;overflow-wrap:normal}

/* Visual polish: one shared navigation/status system, decorative world behind it. */
[data-learning-shell]{--learn-nav-height:54px;--learn-nav-radius:18px;--learn-nav-border:1px;--learn-nav-size:17px;--learn-nav-padding:12px 26px}
[data-learning-shell][data-study-theme=world]{--learn-nav-radius:40px;--learn-nav-border:2px}
[data-learning-shell].learning-shell .study-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(110px,35%);gap:12px;align-items:start;position:relative;margin-bottom:16px}
[data-learning-shell].learning-shell .study-heading{display:flex;align-items:center;min-width:0;min-height:68px;padding:10px 0}
[data-learning-shell].learning-shell .study-title{min-width:0}
[data-learning-shell].learning-shell .study-status{min-width:0;padding:10px 12px;background:#fffdfabf;border:1px solid #e0ded7;border-radius:18px;text-align:center}
[data-learning-shell].learning-shell #question-position{display:block;background:none;padding:0;margin:0 0 7px;font-size:14px;font-weight:650;white-space:nowrap;color:inherit}
[data-learning-shell].learning-shell .study-progress{display:block;width:100%;height:4px;border:0;border-radius:8px;overflow:hidden;appearance:none;background:#e1dfd9;margin:0 0 7px}
[data-learning-shell].learning-shell #timer{background:none;padding:0;min-height:0;gap:5px;flex-wrap:wrap;justify-content:center;border:0;border-radius:0;font-variant-numeric:tabular-nums}
[data-learning-shell].learning-shell #timer:empty{display:none}
[data-learning-shell].learning-shell #timer:before{font-size:18px}
[data-learning-shell].learning-shell #timer .time-remaining{font-size:16px;font-weight:700}
[data-learning-shell].learning-shell #timer progress{flex-basis:100%;width:100%;order:1}
[data-learning-shell].learning-shell .study-status:has(#timer progress)>.study-progress{display:none}
[data-learning-shell].learning-shell .timer-label{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
[data-learning-shell].learning-shell #timer.time-critical{background:#fff0df;color:#9b481f;outline:2px solid #ba6d30;border-radius:7px}
[data-learning-shell].learning-shell #focus-navigation :is(#previous-question,#next-question){min-height:var(--learn-nav-height);height:auto;border-radius:var(--learn-nav-radius);border:var(--learn-nav-border) solid #50634e;font-size:var(--learn-nav-size);font-weight:650;line-height:1.4;letter-spacing:.5px;padding:var(--learn-nav-padding);min-width:0;position:relative}
[data-learning-shell].learning-shell #previous-question{flex:0 0 auto;background:var(--learn-surface);color:var(--learn-accent);box-shadow:none}
[data-learning-shell].learning-shell #next-question{flex:1;width:auto;margin:0;background:linear-gradient(100deg,#52634f,#5f715c);color:#fff;box-shadow:0 5px 15px #52634f15}
[data-learning-shell].learning-shell #next-question:after{right:12px;top:50%;transform:translateY(-50%)}
[data-learning-shell].learning-shell #save-status:is([data-level=saved],[data-level=empty]){display:none}
.world-sign{display:none}
/* Fixed decorative layers belong to the viewport, not to the header or answer height. */
body[data-learning-shell].learning-shell[data-study-theme=world]{background:#8d9868;isolation:isolate}
body[data-learning-shell].learning-shell[data-study-theme=world]:before,
body[data-learning-shell].learning-shell[data-study-theme=world]:after{content:'';position:fixed;top:0;bottom:0;pointer-events:none;background:url('/study-assets/world-scene-full.png') center top/cover no-repeat}
body[data-learning-shell].learning-shell[data-study-theme=world]:before{inset:0;z-index:-2;filter:blur(8px) brightness(.82)}
body[data-learning-shell].learning-shell[data-study-theme=world]:after{left:50%;width:min(100%,960px);transform:translateX(-50%);z-index:-1}
[data-learning-shell].learning-shell[data-study-theme=world] #task{background:transparent;overflow:visible}
[data-learning-shell].learning-shell[data-study-theme=world] .study-toolbar{position:relative;top:auto;left:auto;right:auto;margin:0;padding:6px 0;background:transparent}
[data-learning-shell].learning-shell[data-study-theme=world] .study-hero{background:none;margin:0 0 4px;padding:8px 4px 0;min-height:max(218px,clamp(0px,50vw,440px))}
[data-learning-shell].learning-shell[data-study-theme=world] .study-heading{padding:12px;border:4px solid #b28e5f;border-radius:20px 15px 20px 13px;background:linear-gradient(130deg,#fff7e7,#ead8b4);box-shadow:0 2px 1px #6a492d70,inset 0 0 0 2px #e6c797}
[data-learning-shell].learning-shell[data-study-theme=world] .study-status{background:linear-gradient(125deg,#fff9ec,#ecddbf);border:2px solid #c1a781;box-shadow:inset 0 0 0 2px #fff9e685,0 2px 2px #6a482832;color:#59432e}
/* A small timber location sign with a planted post; decorative text only. */
[data-learning-shell].learning-shell[data-study-theme=world] .world-sign{display:block;position:absolute;isolation:isolate;right:4%;bottom:42px;width:36%;max-width:180px;margin:0;padding:12px 10px;text-align:center;font-family:'Gungsuh','궁서',Georgia,serif;font-size:clamp(16px,2.6vw,20px);line-height:1.5;font-weight:600;letter-spacing:1px;word-break:keep-all;color:#50341c;text-shadow:0 1px #f2d4a0;background:repeating-linear-gradient(3deg,#a16d3f30 0 1px,transparent 2px 13px),linear-gradient(110deg,#cfa170,#e3bd87 48%,#c39762);border:3px solid #967046;border-radius:5px 9px 7px 4px;box-shadow:2px 3px 0 #654d33aa,inset 0 0 0 1px #e6c799;transform:rotate(3deg)}
[data-learning-shell].learning-shell[data-study-theme=world] .world-sign:before{content:'';position:absolute;inset:8px;background:radial-gradient(circle at 2px 2px,#725336 0 2px,transparent 3px),radial-gradient(circle at calc(100% - 2px) 2px,#725336 0 2px,transparent 3px);pointer-events:none}
[data-learning-shell].learning-shell[data-study-theme=world] .world-sign:after{content:'';position:absolute;top:calc(100% + 3px);left:46%;width:15px;height:42px;background:repeating-linear-gradient(87deg,#865d3938 0 1px,transparent 2px 5px),linear-gradient(90deg,#956f44,#c49b64,#946c42);border:1px solid #795839;border-radius:0 0 3px 2px;box-shadow:2px 2px 1px #60462340;z-index:-1}
[data-learning-shell].learning-shell[data-study-theme=world] #next-question{background:linear-gradient(110deg,#4e7d67,#668b69 55%,#477765);box-shadow:inset 0 2px 1px #d1e4ba66,0 3px 2px #98784a40}
@media(max-width:359px){[data-learning-shell]{--learn-nav-size:16px;--learn-nav-padding:12px 22px}[data-learning-shell].learning-shell .study-status{padding:10px 8px}}

[data-learning-shell].learning-shell .study-connection-status{background:var(--learn-error-bg);color:var(--learn-error-ink);border:1px solid #d8ab69;border-radius:10px;font-size:13px;line-height:1.6;padding:12px;margin:10px 0}

/* In-study controls: safe home navigation left, audio only right. */
[data-learning-shell].learning-shell #back{display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:8px;border:1px solid var(--learn-border);border-radius:14px;background:var(--learn-surface);color:var(--learn-accent)}
[data-learning-shell].learning-shell #back svg{width:28px;height:28px}
.study-audio{display:flex;align-items:center;gap:6px;position:relative;color:var(--learn-ink,#334333)}
.study-audio button,.study-audio summary{display:grid;place-items:center;min-width:44px;min-height:44px;margin:0;padding:8px;border:1px solid var(--learn-border,#d6d0c1);border-radius:14px;background:var(--learn-surface,#fffaf0);color:inherit;cursor:pointer;font-size:12px;list-style:none}
.study-audio summary::-webkit-details-marker{display:none}
.study-audio svg{width:24px;height:24px}.sound-off{display:none}.study-audio[data-muted=true] .sound-waves{display:none}.study-audio[data-muted=true] .sound-off{display:block}
.volume-panel{position:absolute;right:0;top:50px;width:230px;max-width:calc(100vw - 40px);padding:14px;border:1px solid var(--learn-border,#ccc);border-radius:16px;background:var(--learn-surface,#fffaf0);box-shadow:0 8px 24px #30271b30;z-index:30}
.volume-panel label{font-size:14px}.volume-panel output{float:right}.volume-panel input{width:100%;min-height:44px;padding:0;margin:8px 0;accent-color:var(--learn-accent,#536350)}.volume-panel p{font-size:12px;margin:0}
#audio-setting-status:not(:empty){position:absolute;right:0;top:52px;width:230px;max-width:calc(100vw - 40px);padding:10px;background:#fff1d2;color:#763a13;border-radius:8px;font-size:12px;z-index:31}
#student-settings{width:420px;max-width:calc(100vw - 32px);border:1px solid #d4c8b4;border-radius:20px;padding:24px;background:#fffaf2;color:#403d33}#student-settings::backdrop{background:#20251e66}#student-settings h2{font-size:20px;margin-top:0}#student-settings p{font-size:13px}#student-settings #study-appearance{display:block}#student-settings label{font-size:15px}#student-settings select{margin:8px 0 12px;width:100%;min-height:44px}#theme-status{display:block;font-size:13px;color:#8d4e1a}.student-settings-links{margin-top:24px}

/* World content typography and OX proportions share the existing stateful controls. */
[data-learning-shell].learning-shell[data-study-theme=world] :is(.selection-stem,.selection-options button,.selection-help,.study-details,#focus-navigation button){font-family:var(--learn-font)}
[data-learning-shell].learning-shell[data-study-theme=world] .study-prompt[data-prompt=text]{line-height:1.75;font-weight:400}
[data-learning-shell].learning-shell[data-study-theme=world] .selection-options button{line-height:1.65}
[data-learning-shell].learning-shell[data-study-theme=world] .selection-question[data-selection-mode=ox] .selection-options{grid-template-columns:repeat(2,minmax(0,128px));justify-content:center;gap:16px;margin:20px 0}
[data-learning-shell].learning-shell[data-study-theme=world] .selection-question[data-selection-mode=ox] .selection-options button{width:100%;aspect-ratio:1;min-height:88px;border-radius:28px;padding:12px;font-size:40px;font-weight:650;border-width:2px}
[data-learning-shell].learning-shell[data-study-theme=world] #back{border-radius:50%}

[data-learning-shell].learning-shell[data-study-theme=world] .prompt-term-wrap.long-term .learning-term{font-size:clamp(26px,5.8vw,36px)}

.selection-start-help{margin:16px 0;padding:16px 18px;border:1px solid #d9d4c7;border-radius:14px;background:#fffaf0;color:#403d33;max-width:680px}.selection-start-help h3{font-size:15px;font-weight:650;margin:0 0 8px}.selection-start-help p{font-size:14px;line-height:1.7;margin:6px 0}

/* Shared reading hierarchy: direction < passage < target term. */
[data-learning-shell]{--learn-passage-scale:1.2;--learn-passage-weight:600}
[data-learning-shell].learning-shell .study-prompt[data-prompt=text] .prompt-instruction{order:0;text-align:left;font-size:var(--learn-content-size);font-weight:400;line-height:1.7;margin:0 0 14px;white-space:pre-wrap}
[data-learning-shell].learning-shell .study-prompt[data-prompt=text] .prompt-copy{font-size:calc(var(--learn-content-size)*var(--learn-passage-scale));font-weight:var(--learn-passage-weight);line-height:1.75;overflow-wrap:anywhere;white-space:pre-wrap}
[data-learning-shell].learning-shell .study-prompt[data-prompt=text] .prompt-instruction:before{content:none}

/* Independent content, response and navigation regions; status never owns layout. */
[data-learning-shell].learning-shell .study-prompt{border:1px solid var(--learn-border,#ded8cc);border-radius:16px;padding:16px;background:var(--learn-surface,#fffaf4);min-width:0}
[data-learning-shell].learning-shell .study-response{min-width:0;isolation:isolate}
[data-learning-shell].learning-shell .selection-options button[aria-pressed=true]{font-weight:500}
[data-learning-shell].learning-shell .selection-options button{touch-action:manipulation}
[data-learning-shell].learning-shell #focus-navigation{clear:both}
[data-learning-shell].learning-shell #save-status{display:block;box-sizing:border-box;min-height:24px;line-height:24px;margin:8px 0;font-size:12px;padding:0;position:static;box-shadow:none}
[data-learning-shell].learning-shell #save-status:is([data-level=saved],[data-level=empty]){display:block;visibility:hidden}
[data-learning-shell].learning-shell #save-status[data-level=saving]{background:none;color:var(--learn-ink);border:0;text-align:center}
[data-learning-shell].learning-shell #save-status[data-level=attention]{position:static;min-height:24px;line-height:1.6;margin:8px 0;padding:12px}
/* Notices follow the action row, so even long errors cannot push the answer controls. */

/* The live solver owns these surfaces; the cave reader and the submitted report are outside this shell. */
body[data-learning-shell].learning-shell {
 --answer-accent:#ffb780;--answer-muted:#c2cbb6;--answer-dark:#20251e;--answer-line:#58614e;
 & #answer-grid:has(.selection-question){min-width:0}
 & :is(.prompt-copy,.prompt-context,.option-content,#cave-excerpt p){overflow-wrap:anywhere;word-break:normal}
 & .study-prompt[data-prompt=text] .prompt-copy{font-size:clamp(1rem,1.5vw,1.16rem);line-height:1.82;font-weight:550}
 & .selection-options{gap:10px}
 & .selection-options button{align-items:baseline;font-size:clamp(1rem,1.4vw,1.1rem);line-height:1.65}
 & .selection-options button[aria-pressed=true]{outline:2px solid #667c4f;outline-offset:-2px}
 & .response-state{font-size:.86rem;font-weight:600}
 & #focus-navigation{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:10px}
 & #focus-navigation button{width:100%;font-size:1rem;letter-spacing:0;min-height:48px}
 & #next-question{grid-column:2}
 & #next-question:after{content:none}
 & #previous-question:disabled:not([hidden]){display:block;opacity:.56;cursor:default}
 & #cave-excerpt:not([hidden]){font-size:1rem;margin-block:12px;padding:0;border-radius:12px}
 & #cave-excerpt summary{padding:12px 16px;min-height:44px}
 & #cave-excerpt>div{max-height:min(49vh,28rem);overflow:auto;scrollbar-gutter:stable;overscroll-behavior:contain;padding:0 16px 12px}
 & #cave-excerpt p{max-width:75ch;line-height:1.85;white-space:pre-wrap}
 & #save-status:not([data-level=empty]){
  display:block;visibility:visible;position:static;margin:10px 0;padding:6px 12px;min-height:32px;
  border:1px solid #616c54;border-radius:9px;background:#2a372a;color:#dcf0cd;
  text-align:start;font-size:.88rem;font-weight:600;line-height:1.5;overflow-wrap:anywhere
 }
 & #save-status[data-level=saving]{background:#403729;border-color:#927449;color:#ffdfa3}
 & #save-status[data-level=attention],& #save-status[data-level=failed]{background:#482f29;border-color:#a06c58;color:#ffd9c8}
 & #save-status[data-level=empty]{display:none}
 & #recovery button{margin:3px}
 & .study-details summary{min-height:44px;font-size:.86rem;align-content:center}
 & :is(button,summary,input):focus-visible{outline:3px solid #c58643;outline-offset:2px}
}
/* In simple mode the study paper stays light inside the shared dark frame. */
body[data-learning-shell].learning-shell[data-study-theme=simple-light]{
 background:#151813;color:#f1f0e8;
 & #task{background:var(--answer-dark);color:inherit}
 & .study-toolbar{border-bottom:1px solid var(--answer-line);padding-bottom:8px}
 & .study-hero{align-items:center}
 & .study-heading{padding:10px 0;min-height:0}
 & .study-title:before{content:'학습  /  문제풀이';display:block;margin-bottom:5px;color:var(--answer-muted);font-size:.78rem;font-weight:650;letter-spacing:.06em}
 & .study-status{background:#2b3027;border-color:var(--answer-line)}
 & #timer:not(.time-critical),& #timer:not(.time-critical) .time-remaining{color:#e1e6d5}
 & #answer-grid{background:#f7f6ed;color:#283329;border:1px solid #525b4d;padding:clamp(14px,3vw,28px)}
 & .study-prompt{background:#fffef7;border-color:#cdd4c3}
 & .selection-options button{background:#fffffb;color:#273329;border-color:#a7b09d}
 & .selection-options button[aria-pressed=true]{background:#e3edd8;color:#263e29}
 & .selection-options button[aria-pressed=true] .option-marker{background:#536949;color:#fff}
 & .study-details,& #answer-help{color:var(--answer-muted)}
 & #previous-question{background:#292e26;color:#e7ebdb;border-color:var(--answer-line)}
 & #next-question,& #submit{background:var(--answer-accent);color:#271e17;border-color:var(--answer-accent);box-shadow:none}
 & #back,& .study-audio button,& .study-audio summary{background:#ecece0;color:#354031}
}
@media(min-width:800px){
 body[data-learning-shell][data-study-theme=simple-light]{--learn-width:900px}
}

/* Compact home artwork only; the existing #back element, handler and return label stay intact. */
body[data-student-v9][data-learning-shell].learning-shell #back:has(.study-home-icon){
 display:grid;place-items:center;box-sizing:border-box;flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;
 padding:10px;margin:0;border:1px solid #434741;border-radius:8px;background:#202326;color:#e6dfcd;box-shadow:none;
}
body[data-student-v9][data-learning-shell].learning-shell #back .study-home-icon{display:block;width:22px;height:22px;pointer-events:none}
body[data-student-v9][data-learning-shell].learning-shell #back:has(.study-home-icon):hover{background:#2a2e30;border-color:#7c826e}
body[data-student-v9][data-learning-shell].learning-shell #back:has(.study-home-icon):focus-visible{outline:2px solid #c2a675;outline-offset:3px}
