@font-face{font-family:Noto;src:url('fonts/NotoSansKR-subset.woff2') format('woff2');font-display:swap}@font-face{font-family:NotoSC;src:url('fonts/NotoSansSC-subset.woff2') format('woff2');font-display:swap}@font-face{font-family:HDEEXT;src:url('book/fonts/HDE-EXT.ttf') format('truetype');font-display:swap;unicode-range:U+20000-3FFFF}@font-face{font-family:HDEEXT;src:url('fonts/HDE-APPEXT.woff2') format('woff2');font-display:swap;unicode-range:U+20000-3FFFF}:root{--ink:#263f3b;--green:#244f40;--muted:#5c685e;--line:#dbe3d8;--paper:#fafbf7;--pale:#e5f0df;--rust:#a74b30}
html{--fs-fluid:clamp(0.9375rem,0.875rem + 0.26vw,1.1875rem);--fs-mult:1;--fs-2xs:0.7143rem;--fs-xs:0.7857rem;--fs-sm:0.8571rem;--fs-md:0.9286rem;--fs:1rem;--fs-lg:1.1429rem;--fs-xl:1.2857rem;--fs-h3:1.1429rem;--fs-h2:1.5rem;--fs-h1:2.2143rem;--fs-display:4.2857rem;--han-lg:clamp(3.25rem,calc((6vw + 7vh)*var(--fs-mult)),6rem);--han-quiz:clamp(3.5rem,calc((7vw + 6vh)*var(--fs-mult)),6.5rem);font-size:calc(var(--fs-fluid)*var(--fs-mult))}
html[data-type-scale=sm]{--fs-mult:0.9}
html[data-type-scale=md]{--fs-mult:1}
html[data-type-scale=lg]{--fs-mult:1.15}
html[data-type-scale=xl]{--fs-mult:1.3}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:1rem Noto,NotoSC,HDEEXT,system-ui,sans-serif}button,input,select{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:8px;padding:10px 16px}button:hover{background:#edf4e8}button:disabled{opacity:.5;cursor:default}a{color:var(--green)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #b8794f;outline-offset:3px}.app{max-width:1600px;margin:auto;display:grid;grid-template-columns:230px 1fr;min-height:100vh}.rail{padding:32px 22px;background:#f0f4eb;border-right:1px solid var(--line);position:sticky;top:0;height:100vh;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font:600 1.1429rem system-ui;letter-spacing:1px}.brandmark{font-family:serif;font-size:2.1429rem;background:var(--green);color:#eef5e4;border-radius:9px;padding:5px 10px}.brand small{display:block;font:0.7143rem Noto;letter-spacing:.3px;margin-top:8px;color:var(--muted)}nav{display:flex;flex-direction:column;gap:8px;margin-top:44px}nav button{text-align:left;background:transparent;border:0;padding:13px 14px;color:#4f5d4d}nav button.active{background:#dce9d5;color:var(--green);font-weight:600}nav button span{float:right;font-size:0.7857rem;background:white;padding:2px 7px;border-radius:20px}.railfoot{margin-top:auto;line-height:1.8;color:#56654f}.railfoot p{font-size:1.2857rem}.railfoot small{font-size:0.7143rem}main{padding:0 45px;min-width:0}header{height:86px;display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);font-size:0.8571rem;color:var(--muted)}header .badge{margin-left:auto}.badge{font-size:0.7857rem;padding:5px 10px;border:1px solid var(--line);border-radius:20px;white-space:nowrap}.subtle{font-size:0.7857rem;padding:6px 12px;background:none}#toast{font-size:0.8571rem;color:var(--rust);line-height:1.7;padding-top:10px;min-height:26px}h1{font-size:2.2143rem;font-weight:500;letter-spacing:-1.2px;line-height:1.45;margin:0 0 16px}h2{font-size:1.5rem;font-weight:500;letter-spacing:-.5px;margin:0}h3{font-size:1.1429rem;font-weight:500;margin:0}.eyebrow{font:0.7143rem system-ui;letter-spacing:2px;color:#5d6b55;margin:0 0 13px}.muted{color:var(--muted);font-size:0.8571rem;line-height:1.8}.hero{display:grid;grid-template-columns:1fr auto;gap:30px;padding:27px 0}.hero p{margin:8px 0}.hero aside{align-self:center;text-align:right;color:#8fa683}.goalNumber{font:4.2857rem system-ui;color:var(--green);letter-spacing:-3px}.goalNumber small{font-size:1.7857rem;color:#66735f;letter-spacing:0}.goalbar{background:#e0e8da;height:5px;border-radius:8px;margin-top:14px;width:200px}.goalbar i{display:block;height:100%;background:#4f7d4c;border-radius:8px}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:18px 0 30px}.metric{padding:21px 23px;background:white;border:1px solid var(--line);border-radius:12px}.metric strong{display:block;font:2.2857rem system-ui;margin:9px 0 4px}.metric span{font-size:0.8571rem;color:var(--muted)}.sectionhead{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:28px 0 17px}.resume{background:var(--pale);padding:25px;border-radius:14px;display:flex;justify-content:space-between;align-items:center;gap:18px}.resume p{margin:7px 0 0}.primary{background:var(--green);border-color:var(--green);color:white}.primary:hover{background:#376649}.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.actions button{font-size:0.8571rem}.books{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.booktile{border:1px solid var(--line);border-radius:12px;padding:22px;background:white;text-align:left}.booktile .vol{font:2.4286rem system-ui;color:#557950}.booktile b{display:block;margin:15px 0 6px;font-weight:500}.booktile p{font-size:0.7857rem;color:var(--muted);line-height:1.7}.toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:22px 0}.toolbar input{flex:1;min-width:190px}input[type=search],select{background:white;padding:11px 13px;color:var(--ink);border:1px solid var(--line);border-radius:8px}select{max-width:100%}.segmented{display:flex;gap:5px}.segmented button{padding:9px 17px}.segmented [aria-pressed=true]{background:var(--green);color:white}.lessonlist{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.lessonrow{padding:19px 21px;border:1px solid var(--line);border-radius:10px;background:white;display:flex;justify-content:space-between;gap:12px;text-align:left}.lessonrow small{display:block;margin-top:7px;color:var(--muted);font-size:0.7857rem}.lessonrow .done{color:#4f6a45;font-size:0.8571rem}.studyhead{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:22px 0}.studyhead h1{font-size:1.6429rem;margin:0}.studyhead .todayStudy{letter-spacing:0;font-weight:400;color:var(--muted);text-transform:none}.studygrid{display:grid;grid-template-columns:minmax(0,1fr) 185px;gap:22px}.flashcard{background:white;border:1px solid var(--line);border-radius:16px;padding:26px}.flashhero{display:flex;gap:25px;align-items:center;margin-bottom:24px}.hanbox{background:var(--pale);border-radius:10px;min-width:135px;text-align:center;padding:12px 20px}.bigHan{font:5.4286rem 'Microsoft YaHei','Noto Sans CJK SC',sans-serif;line-height:1.3}.py{color:var(--rust);font-size:1.4286rem;margin-top:5px}.heroMeaning{font-size:1.3571rem;line-height:1.6}.heroMeaning small{font-size:0.8571rem;display:block;color:var(--muted);margin-top:8px}.hidepanel{border:1px dashed #cbd8c3;background:#f6f9f2;min-width:100px;padding:8px 13px;color:#6d8061;font-size:0.8571rem}.details{display:grid;grid-template-columns:35px 1fr;gap:14px 13px;border-top:1px solid var(--line);padding-top:21px;line-height:1.9;font-size:1rem}.details dt{color:var(--rust);font-size:0.8571rem}.details dd{margin:0}.examples{margin-top:24px}.example{padding:13px 0;border-top:1px solid #e9eee4;display:flex;gap:12px;align-items:center}.example button{font-size:1.5rem;border:0;background:#eff5e9;padding:7px 12px;min-width:64px}.example .py{font-size:1rem}.example .meaning{font-size:0.8571rem;margin-top:5px}.sidepanel{background:#eef3e8;border-radius:12px;padding:18px;height:fit-content}.sidepanel h3{font-size:0.9286rem;margin-bottom:14px}.miniGrid{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.miniGrid button{font:1.2857rem 'Microsoft YaHei',sans-serif;padding:7px 3px;border:1px solid #d6e1ce;border-radius:5px}.miniGrid button.current{background:var(--green);color:white}.miniGrid button.seen{border-bottom:3px solid #7c9c64}.miniGrid button[aria-current=true]{outline:2px solid #b58c57}.rating{margin-top:18px;display:flex;gap:8px;flex-wrap:wrap}.rating button{flex:1;font-size:0.8571rem;min-width:110px}.pager{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:18px}.pager span{font-size:0.8571rem;color:var(--muted)}.speakStatus{font-size:0.7857rem;color:var(--muted);line-height:1.7;margin:14px 0 0}.listcards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.smallcard{background:white;border:1px solid var(--line);border-radius:10px;padding:18px;text-align:left}.smallcard .char{font:2.4286rem 'Microsoft YaHei',sans-serif;margin-right:10px}.smallcard .py{font-size:1.1429rem}.smallcard p{font-size:0.8571rem;margin:10px 0;color:#66745e;line-height:1.7}.empty{padding:55px 20px;text-align:center;background:#f0f5e9;border:1px dashed #cedcc1;border-radius:13px;color:#75836a}.settingspanel{background:white;border:1px solid var(--line);border-radius:12px;padding:24px;margin:18px 0}.settingspanel h2{font-size:1.2857rem;margin-bottom:10px}.settingspanel p{font-size:0.8571rem;color:var(--muted);line-height:1.9}dialog{width:min(620px,94vw);border:1px solid var(--line);border-radius:16px;padding:26px;background:var(--paper);color:var(--ink);max-height:90vh;overflow:auto}dialog::backdrop{background:#1d362b77}.dialoghead{display:flex;justify-content:space-between;align-items:center;font-size:0.8571rem;color:var(--muted)}.quizchar{font:6.2857rem 'Microsoft YaHei',sans-serif;text-align:center;margin:25px 0}.quizPrompt{text-align:center;font-size:0.9286rem;color:var(--muted)}.options{display:grid;gap:10px;margin:20px 0}.options button{text-align:left;line-height:1.7}.options button.correct{background:#e1efda;border-color:#759563;opacity:1}.options button.wrong{background:#fae9df;border-color:#b57856;opacity:1}.feedback{padding:15px;background:#eaf1e3;border-radius:8px;margin:15px 0;font-size:0.9286rem;line-height:1.9}.quizresult{text-align:center;padding:30px 0}.quizresult strong{display:block;font:3.4286rem system-ui;color:var(--green);margin-bottom:15px}footer{border-top:1px solid var(--line);margin:35px 0 0;padding:22px 0;font-size:0.7143rem;line-height:1.8;color:var(--muted)}[hidden]{display:none!important}@media(max-width:1050px){main{padding:0 25px}.app{grid-template-columns:200px 1fr}.rail{padding:25px 15px}.studygrid{grid-template-columns:1fr}.sidepanel{order:-1}.miniGrid{grid-template-columns:repeat(10,1fr)}.sidepanel h3{display:none}.listcards{grid-template-columns:repeat(2,1fr)}.heroMeaning{font-size:1.1429rem}.flashhero{gap:16px}.books{gap:10px}.booktile{padding:17px}}@media(max-width:720px){.app{display:block}.rail{height:auto;position:static;padding:16px}.railfoot{display:none}.brand{font-size:1.2143rem}.brand small{display:none}.brandmark{font-size:1.6429rem}nav{margin-top:18px;display:flex;flex-direction:row;overflow-x:auto;gap:5px}nav button{font-size:0.7857rem;white-space:nowrap;padding:9px 10px}nav button span{margin-left:6px}.hero{padding-top:15px;gap:12px}h1{font-size:1.7857rem}.goalNumber{font-size:2.8571rem}.goalbar{width:110px}.metrics{gap:8px}.metric{padding:14px 12px}.metric strong{font-size:1.7857rem}.metric span{font-size:0.7143rem}.resume{padding:19px;flex-wrap:wrap}.books{grid-template-columns:1fr}.booktile{display:block}.booktile .vol{float:right}.booktile b{margin:0}.lessonlist{grid-template-columns:1fr}.studyhead{align-items:flex-start;flex-direction:column;gap:9px}.studyhead h1{font-size:1.4286rem}.flashcard{padding:19px}.hanbox{min-width:110px;padding:12px}.bigHan{font-size:4.2857rem}.heroMeaning{font-size:1.0714rem}.details{font-size:0.9286rem;gap:12px 8px}.miniGrid{grid-template-columns:repeat(10,1fr)}.miniGrid button{font-size:1.1429rem}.rating{gap:5px}.rating button{min-width:90px;padding:10px 6px}.listcards{grid-template-columns:repeat(2,1fr)}main{padding:0 18px}header{height:58px}.toolbar select{width:100%}}
/* v1.1 — one-screen desktop learning workspace */
.app{display:block;max-width:1920px}.rail{height:66px;position:relative;display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:10px 28px;border-right:0;border-bottom:1px solid var(--line)}.railfoot{display:none}.brandmark{font-size:1.7857rem;padding:3px 9px}.brand small{font-size:0.7143rem;margin-top:4px}nav{margin:0;flex-direction:row;gap:6px}nav button{padding:10px 14px;white-space:nowrap;font-size:0.9286rem}nav button span{margin-left:8px}main{padding:0 28px;max-width:1600px;margin:auto}header{height:43px}#toast{min-height:22px;padding:3px 0;font-size:0.7857rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}body[data-view=study] .app{height:100dvh;min-height:0}body[data-view=study] main{height:calc(100dvh - 66px);max-width:none;display:flex;flex-direction:column;min-height:0}body[data-view=study] main>footer{display:none}body[data-view=study] header{height:35px;flex:0 0 35px}body[data-view=study] #toast{height:22px;flex:0 0 22px}body[data-view=study] #content{display:flex;flex-direction:column;min-height:0;flex:1}.studyhead{margin:6px 0 12px;min-height:47px;flex:0 0 auto}.studyhead .eyebrow{margin-bottom:5px}.studyhead h1{font-size:1.5rem}.studyhead .actions button{padding:8px 14px}.studygrid{display:grid;grid-template-columns:195px 300px minmax(0,1fr);gap:16px;min-height:0;flex:1}.studygrid>.sidepanel{order:0;height:100%;min-height:0;overflow:auto;padding:16px;border:1px solid #dbe5d3}.study-selectors{display:grid;gap:6px;margin-bottom:17px}.study-selectors label{font-size:0.7857rem;color:var(--muted)}.study-selectors select{width:100%;font-size:0.8571rem;padding:8px 6px;min-width:0}.study-selectors label:not(:first-child){margin-top:5px}.studygrid .sidepanel h3{display:block;font-size:0.8571rem;margin:0 0 10px}.studygrid .miniGrid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.studygrid .miniGrid button{font-size:1.4286rem;padding:9px 2px}.studygrid .sidepanel .muted{font-size:0.7143rem;margin:11px 0}.next-review{display:block;font-size:0.7857rem;color:#64745c;line-height:1.7;border-top:1px solid #d2deca;padding-top:10px}.end-actions{display:grid;gap:6px}.end-actions button{font-size:0.7857rem;padding:7px 5px}.character-panel,.explanation-panel{background:#fff;border:1px solid var(--line);border-radius:13px;padding:20px;min-width:0;min-height:0}.character-panel{display:flex;flex-direction:column;align-items:stretch;overflow:auto}.character-panel>.actions:first-child{gap:6px;margin-bottom:12px!important}.character-panel>.actions:first-child .muted{font-size:0.7143rem}.character-panel #favorite{font-size:0.7143rem;padding:7px 9px}.character-panel .flashhero{display:flex;flex-direction:column;gap:16px;margin:0 0 14px;flex:1;justify-content:center;text-align:center}.character-panel .hanbox{width:160px;min-width:0;padding:12px 20px}.character-panel .bigHan{font-size:6rem}.character-panel .py{font-size:1.6429rem}.character-panel .heroMeaning{font-size:1.2857rem;line-height:1.55}.character-panel .heroMeaning small{font-size:0.8571rem;margin-top:5px}.character-panel .heroMeaning .actions{justify-content:center;margin-top:12px!important}.character-panel>.actions{justify-content:center}.character-panel .speakStatus{font-size:0.7857rem;line-height:1.7;margin:12px 0 0;min-height:36px}.explanation-panel{overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.explanation-panel>h2{font-size:1.0714rem;margin-bottom:18px;color:#526d48}.explanation-panel .details{margin:0;border-top:0;padding-top:0;grid-template-columns:33px 1fr;gap:17px 12px;font-size:1rem;line-height:1.9}.explanation-panel .details dt{font-size:0.8571rem}.explanation-panel .examples{margin-top:21px}.explanation-panel .example{padding:13px 0;gap:14px}.explanation-panel .example button{font-size:1.5714rem}.explanation-panel .example .py{font-size:1.0714rem}.explanation-panel .example .meaning{font-size:0.9286rem}.study-dock{display:grid;grid-template-columns:110px minmax(0,520px) 110px;justify-content:center;align-items:center;gap:18px;flex:0 0 72px;border-top:1px solid var(--line);margin-top:12px;background:var(--paper)}.study-dock .rating{margin:0;flex-wrap:nowrap;gap:9px}.study-dock button{min-height:40px;font-size:0.9286rem}.study-dock .rating button{min-width:0}.study-dock>#prev,.study-dock>#next{white-space:nowrap}#quiz[open]{display:flex;flex-direction:column;max-height:calc(100dvh - 32px);padding:20px}#quiz .dialoghead{flex-shrink:0}#quizBody{min-height:0;overflow-y:auto}#quiz .quizchar{font-size:4.7143rem;margin:12px 0}#quiz .options{margin:14px 0;gap:8px}#quiz .options button{padding:9px 14px}#quiz .feedback{max-height:130px;overflow:auto;margin:10px 0;padding:11px}#quiz .feedback p{margin:7px 0 0}
@media(min-width:1000px) and (max-height:740px){.studyhead{margin:3px 0 8px;min-height:42px}.character-panel,.explanation-panel{padding:16px}.character-panel .hanbox{width:145px;padding:7px 16px}.character-panel .bigHan{font-size:5.4286rem}.character-panel .flashhero{gap:10px;margin-bottom:10px}.character-panel .speakStatus{margin-top:8px;min-height:30px}.studygrid .sidepanel{padding:12px}.study-selectors{margin-bottom:12px}.studygrid .miniGrid button{padding:7px 2px}.study-dock{flex-basis:63px;margin-top:9px}}
@media(max-width:1100px) and (min-width:901px){.studygrid{grid-template-columns:170px 260px minmax(0,1fr);gap:12px}.character-panel,.explanation-panel{padding:15px}main{padding:0 18px}.rail{padding:10px 18px}nav button{padding:10px;font-size:0.8571rem}.brand small{display:none}}
@media(max-width:900px){.rail{height:auto;min-height:62px;flex-wrap:wrap;gap:10px;padding:12px 16px}nav{overflow-x:auto;width:100%;gap:4px}nav button{font-size:0.8571rem;padding:8px 10px}.brand small{display:none}main{padding:0 16px}body[data-view=study] .app{height:auto;min-height:100dvh}body[data-view=study] main{height:auto;display:block}body[data-view=study] #content{display:block}.studyhead{flex-direction:row;align-items:center;min-height:60px}.studyhead h1{font-size:1.2857rem}.studyhead .eyebrow{font-size:0.6429rem}.studyhead .actions{gap:5px}.studyhead .actions button{padding:7px 9px;font-size:0.7857rem}.studygrid{grid-template-columns:1fr;gap:12px}.studygrid>.sidepanel{height:auto;max-height:none;overflow:visible;padding:12px}.study-selectors{grid-template-columns:70px 1fr 70px 2fr;align-items:center;margin-bottom:12px}.study-selectors label:not(:first-child){margin-top:0}.studygrid .miniGrid{grid-template-columns:repeat(10,minmax(0,1fr))}.studygrid .miniGrid button{font-size:1.3571rem;padding:6px 2px}.studygrid .sidepanel h3{display:none}.studygrid .sidepanel .muted{margin-bottom:0}.next-review{border:0;padding-top:3px}.character-panel{overflow:visible}.character-panel .flashhero{flex-direction:row;justify-content:space-evenly;gap:20px}.character-panel .hanbox{width:140px}.character-panel .bigHan{font-size:4.8571rem}.character-panel .speakStatus{min-height:0}.explanation-panel{max-height:55dvh}.study-dock{position:sticky;bottom:0;z-index:5;padding:10px 0;grid-template-columns:75px 1fr 75px;gap:7px;box-shadow:0 -5px 14px #244f4008;margin-top:12px}.study-dock button{font-size:0.7857rem;padding:9px 5px}.study-dock .rating{gap:5px}.end-actions{grid-template-columns:1fr 1fr}}
@media(max-width:540px){.study-selectors{grid-template-columns:60px 1fr}.studygrid .miniGrid{grid-template-columns:repeat(5,minmax(0,1fr))}.study-dock{grid-template-columns:1fr 1fr;gap:7px}.study-dock .rating{grid-row:1;grid-column:1/-1}.study-dock>#prev{grid-row:2}.study-dock>#next{grid-row:2}.studyhead{flex-wrap:wrap;padding-bottom:6px}.character-panel .flashhero{gap:12px}.character-panel .heroMeaning{font-size:1.1429rem}.character-panel .hanbox{width:115px}.character-panel .bigHan{font-size:4.4286rem}}

@media(min-width:901px){.studygrid>.sidepanel{padding:12px}.study-selectors{gap:4px;margin-bottom:12px}.study-selectors select{padding:6px}.studygrid .miniGrid{gap:5px}.studygrid .miniGrid button{padding:6px 2px}.studygrid .sidepanel .muted{margin:8px 0}.next-review{padding-top:7px}.end-actions{margin-top:5px}}

/* v1.2: examples beside the character, explanations below. */
.studygrid{grid-template-columns:195px minmax(440px,1.1fr) minmax(280px,1fr);grid-template-rows:minmax(300px,1.4fr) minmax(150px,1fr);gap:12px 16px}
.studygrid>.sidepanel{grid-row:1/3}.character-panel{grid-column:2;grid-row:1;padding:16px}.examples-panel{grid-column:3;grid-row:1;background:white;border:1px solid var(--line);border-radius:13px;padding:20px;min-height:0;overflow:auto}.explanation-panel{grid-column:2/4;grid-row:2;padding:16px 20px}.character-panel .flashhero{flex-direction:row;gap:20px;margin-bottom:10px;justify-content:flex-start}.character-panel .hanbox{flex:0 0 150px;width:150px}.character-panel .heroMeaning{text-align:left}.character-panel .heroMeaning .actions{justify-content:flex-start}.character-panel .speakStatus{min-height:0;margin-top:8px}.character-panel>.actions:first-child{margin-bottom:8px!important}.examples-panel h2,.explanation-panel>h2{font-size:1.0714rem;color:#526d48;margin:0 0 12px}.examples-panel .examples{margin:0}.examples-panel .example{padding:14px 0;gap:16px}.examples-panel .example:first-child{border-top:0}.examples-panel .example button{font-size:1.7857rem}.examples-panel .example .py{font-size:1.1429rem}.examples-panel .example .meaning{font-size:1rem}.explanation-panel .details{gap:10px 12px}
@media(min-width:901px) and (max-width:1100px){.studygrid{grid-template-columns:165px minmax(350px,1.1fr) minmax(220px,1fr);gap:12px}.character-panel .hanbox{flex-basis:120px;width:120px}.character-panel .bigHan{font-size:5.1429rem}.character-panel .flashhero{gap:12px}.examples-panel{padding:15px}.examples-panel .example{flex-wrap:wrap;gap:8px}}
@media(max-width:900px){.studygrid{grid-template-columns:1fr;grid-template-rows:auto;gap:12px}.studygrid>.sidepanel,.character-panel,.examples-panel,.explanation-panel{grid-column:1;grid-row:auto}.character-panel .flashhero{justify-content:space-evenly}.examples-panel{overflow:visible}.examples-panel .examples{display:grid;grid-template-columns:1fr 1fr;gap:18px}.examples-panel .example{border-top:0;flex-wrap:wrap}.explanation-panel{max-height:none}.character-panel .hanbox{flex-basis:140px}}
@media(max-width:540px){.examples-panel .examples{grid-template-columns:1fr}.character-panel .hanbox{flex-basis:115px}.character-panel .flashhero{gap:12px}}

/* v1.3: compact start dashboard, with readable text and visible actions. */
body[data-view=home] .hero{padding:12px 0;gap:22px;align-items:center}body[data-view=home] .hero h1{font-size:2rem;margin:0 0 8px}body[data-view=home] .hero .eyebrow{margin-bottom:8px}body[data-view=home] .goalNumber{font-size:3rem}body[data-view=home] .goalbar{margin-top:8px;width:165px}body[data-view=home] .metrics{margin:8px 0 16px;gap:14px}body[data-view=home] .metric{padding:14px 20px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:5px 14px}body[data-view=home] .metric strong{grid-column:2;grid-row:1/3;margin:0;font-size:2.1429rem}body[data-view=home] .resume{padding:18px 22px}body[data-view=home] .resume h2{font-size:1.5rem}body[data-view=home] .resume .eyebrow{margin:0 0 7px}body[data-view=home] .sectionhead{margin:18px 0 10px}body[data-view=home] .sectionhead h2{font-size:1.3571rem}body[data-view=home] .booktile{padding:15px 20px}body[data-view=home] .booktile .vol{float:right;font-size:2.1429rem}body[data-view=home] .booktile b{margin:0 0 6px;font-size:1.0714rem}body[data-view=home] .booktile p{font-size:0.8571rem;margin:0;line-height:1.8}.home-guide{font-size:0.8571rem;line-height:1.8;color:#64745c;margin:13px 0 0}.home-guide b{color:var(--green);margin-right:12px}body[data-view=home] footer{margin-top:12px;padding:12px 0}
@media(max-width:900px){body[data-view=home] .hero h1{font-size:1.7143rem}body[data-view=home] .metrics{grid-template-columns:1fr}body[data-view=home] .books{grid-template-columns:1fr}body[data-view=home] .resume{flex-wrap:wrap}body[data-view=home] .hero{align-items:flex-start}body[data-view=home] .goalbar{width:100px}}

/* v1.4: viewport-aware dashboard, accessible overflow for tiny/zoomed windows. */
body[data-view=home] .app{min-height:100dvh}body[data-view=home] main{min-height:calc(100dvh - 66px);display:flex;flex-direction:column}body[data-view=home] #content{flex:1;display:grid;align-content:center;gap:clamp(8px,1.4vh,16px);padding:8px 0}body[data-view=home] #content>*{margin:0}body[data-view=home] .hero{padding:0}body[data-view=home] .metrics{margin:0}body[data-view=home] .sectionhead{margin:0}body[data-view=home] footer{flex:none;margin:0;padding:10px 0}.session-summary{padding:22px 0}.session-summary>.actions{margin:20px 0}.session-summary .listcards{margin-top:20px}
@media(max-height:740px) and (min-width:901px){body[data-view=home] header{height:32px}body[data-view=home] .hero .eyebrow,body[data-view=home] .hero>div>.muted,body[data-view=home] .resume .eyebrow{display:none}body[data-view=home] .hero h1{font-size:1.7143rem}body[data-view=home] .goalNumber{font-size:2.4286rem}body[data-view=home] .hero aside p{margin:3px 0}body[data-view=home] .goalbar{margin-top:4px}body[data-view=home] .metric{padding:10px 16px}body[data-view=home] .resume{padding:13px 18px}body[data-view=home] .booktile{padding:12px 16px}body[data-view=home] .home-guide{font-size:0.7857rem}}
@media(max-width:900px){body[data-view=home] .rail{gap:7px}body[data-view=home] main{min-height:0}body[data-view=home] #content{align-content:start;gap:12px}body[data-view=home] .resume{grid-row:1}body[data-view=home] .hero{grid-row:2}body[data-view=home] .hero .eyebrow,body[data-view=home] .hero>div>.muted,body[data-view=home] .resume .eyebrow{display:none}body[data-view=home] .hero h1{font-size:1.5rem}body[data-view=home] .metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}body[data-view=home] .metric{padding:12px;display:block}body[data-view=home] .metric strong{font-size:1.8571rem;margin-top:6px}body[data-view=home] .metric span:last-child{display:none}body[data-view=home] .books{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}body[data-view=home] .booktile{padding:12px}body[data-view=home] .booktile .vol{display:none}body[data-view=home] .booktile p{font-size:0.7857rem}body[data-view=home] .resume h2{font-size:1.3571rem}body[data-view=home] .goalNumber{font-size:2.1429rem}body[data-view=home] .goalbar{display:none}}
@media(max-height:560px) and (min-width:721px){body[data-view=home] .hero,body[data-view=home] .home-guide,body[data-view=home] .booktile p,body[data-view=home] .resume .eyebrow{display:none}body[data-view=home] #content{gap:8px;align-content:start}body[data-view=home] .resume{grid-row:1}body[data-view=home] .metric{padding:8px 12px}body[data-view=home] .metric strong{font-size:1.7143rem}body[data-view=home] .metric span:last-child{display:none}body[data-view=home] .resume{padding:12px}body[data-view=home] .booktile{padding:10px 14px}body[data-view=home] .booktile .vol{font-size:1.4286rem}body[data-view=home] header{height:30px}body[data-view=home] #toast:empty{min-height:0;height:0;padding:0}}
@media(max-width:480px){body[data-view=home] .hero h1{font-size:1.2857rem}body[data-view=home] .hero{gap:10px}body[data-view=home] .goalNumber{font-size:1.8571rem}body[data-view=home] .hero aside{min-width:80px}body[data-view=home] .goalNumber small{font-size:1.2143rem}body[data-view=home] .resume .actions{width:100%}body[data-view=home] .resume .actions button{flex:1}body[data-view=home] .sectionhead .muted{display:none}body[data-view=home] .home-guide{font-size:0.7857rem}body[data-view=home] .metric span{font-size:0.7857rem}}
@media(min-width:721px) and (max-width:900px) and (max-height:740px){body[data-view=home] .hero,body[data-view=home] .home-guide,body[data-view=home] .booktile p{display:none}body[data-view=home] #content{gap:8px}body[data-view=home] .resume{padding:12px}body[data-view=home] .metric{padding:10px 12px}body[data-view=home] .booktile{padding:12px}body[data-view=home] #toast:empty{min-height:0;height:0;padding:0}}

/* v1.5: character first, navigation on the right; no scroll inside character. */
.studygrid{grid-template-columns:minmax(440px,1.1fr) minmax(280px,1fr) 195px}.studygrid>.character-panel{grid-column:1;grid-row:1;overflow:visible}.studygrid>.examples-panel{grid-column:2;grid-row:1}.studygrid>.explanation-panel{grid-column:1/3;grid-row:2}.studygrid>.sidepanel{grid-column:3;grid-row:1/3;background:#f3f5ef}.character-panel .flashhero{margin-bottom:0;min-height:min-content}.character-panel .heroMeaning{min-width:0;overflow-wrap:anywhere}.character-panel .hanbox{flex-shrink:0}.examples-panel .speakStatus{border-top:1px solid var(--line);padding-top:10px;margin-top:8px;line-height:1.8}
@media(min-width:901px) and (max-width:1100px){.studygrid{grid-template-columns:minmax(350px,1.1fr) minmax(220px,1fr) 165px}}
@media(max-width:900px){.studygrid{grid-template-columns:1fr;grid-template-rows:auto}.studygrid>.character-panel,.studygrid>.examples-panel,.studygrid>.explanation-panel,.studygrid>.sidepanel{grid-column:1;grid-row:auto}.studygrid>.sidepanel{order:0}.character-panel{min-height:230px}}
@media(min-width:901px) and (max-height:650px){body[data-view=study] .app{height:auto;min-height:100dvh}body[data-view=study] main{height:auto;min-height:calc(100dvh - 66px)}.studygrid{flex:none;grid-template-rows:minmax(270px,auto) minmax(150px,auto)}.study-dock{position:sticky;bottom:0;z-index:5;min-height:63px}}

/* v1.6 — fixes from the 2026-11-02 review (F06, F07, F09, F15, F16, F17). */
.eyebrow{letter-spacing:.6px;font-size:0.7857rem}
.retryTag{color:var(--rust);font-weight:600}
/* F09: explanation and example text at least 16px */
.explanation-panel .details,.details{font-size:1.1429rem;line-height:1.85}
.explanation-panel .details dt,.details dt{font-size:1rem;font-weight:600}
.explanation-panel .details{grid-template-columns:40px 1fr}
.examples-panel .example .meaning,.example .meaning{font-size:1.1429rem}
.examples-panel .example .py{font-size:1.2143rem}
.character-panel .heroMeaning small{font-size:1rem}
.muted{font-size:0.9286rem}
.speakStatus,.character-panel .speakStatus,.examples-panel .speakStatus{font-size:0.9286rem;line-height:1.7}
.home-guide{font-size:0.9286rem}
.settingspanel p{font-size:1rem}
.feedback{font-size:1.0714rem}
#quiz .options button{font-size:1.0714rem}
/* F07: notes are separate from the speech status line */
.speakBox{border-top:1px solid var(--line);padding-top:10px;margin-top:8px}
.examples-panel .speakBox .speakStatus{border:0;padding:0;margin:4px 0 0}
.cardNote{font-size:0.9643rem;line-height:1.7;margin:0 0 6px;padding:7px 10px;border-radius:8px;background:#fbf3e9;color:#6b4a2e;border-left:3px solid #c9865a}
.cardNote b{margin-right:6px;color:var(--rust)}
/* F06: two-line rating buttons */
.rating button{display:flex;flex-direction:column;align-items:center;gap:2px;line-height:1.3}
.rating button small{font-size:0.8214rem;opacity:.85}
.study-dock button{font-size:1rem}
.study-dock .rating button{min-height:48px;padding:6px 10px}
kbd{font:0.7857rem system-ui;border:1px solid currentColor;border-radius:4px;padding:0 4px;opacity:.7;margin-left:3px}
.miniGrid button.again{outline:2px dashed var(--rust);outline-offset:-3px}
.keyhint{font-size:0.8214rem;color:var(--muted);line-height:1.9;margin:8px 0 0;border-top:1px solid #d2deca;padding-top:8px}
/* F10: meaning → character quiz */
.quizmeaning{font-size:1.8571rem;text-align:center;margin:28px 10px 10px;line-height:1.5}
.charOptions{grid-template-columns:repeat(4,1fr)}
.charOptions button{text-align:center!important;padding:12px 4px!important}
.optHan{display:block;font:3.1429rem 'Microsoft YaHei','Noto Sans CJK SC',sans-serif;line-height:1.2}
.dialoghead .actions{gap:6px}
/* F17: streak, guide, voice banner */
.streak{font-size:0.9286rem;color:var(--green);margin:8px 0 0!important}
.voiceBanner{font-size:0.9286rem;background:#fbf3e9;border:1px solid #ecd5bd;color:#6b4a2e;border-radius:10px;padding:9px 14px;margin:0}
.linkish{background:none;border:0;padding:0 4px;color:var(--green);text-decoration:underline;font-size:inherit}
#guideDialog{width:min(520px,94vw)}
#guideDialog h2{margin:4px 0 12px}
.guideText{font-size:1.0714rem;line-height:1.9}
.guideDots{display:flex;gap:6px;margin:14px 0}
.guideDots i{width:8px;height:8px;border-radius:50%;background:#cfdcc6}
.guideDots i.on{background:var(--green)}
#guideDialog .actions{justify-content:flex-end}
/* F15: short desktop windows (e.g. 1024×640) stay on one screen; only panels scroll */
@media(min-width:901px) and (max-height:700px){
 body[data-view=study] .rail{height:50px;padding-top:5px;padding-bottom:5px}
 body[data-view=study] .brand small{display:none}
 body[data-view=study] .brandmark{font-size:1.5rem;padding:2px 8px}
 body[data-view=study] nav button{padding:8px 12px}
 body[data-view=study] .app{height:100dvh;min-height:0}
 body[data-view=study] main{height:calc(100dvh - 50px);min-height:0;display:flex;flex-direction:column}
 body[data-view=study] header{height:26px;flex:0 0 26px}
 body[data-view=study] #toast{height:20px;flex:0 0 20px;padding:1px 0}
 .studyhead{margin:0 0 6px;min-height:0}
 .studyhead .eyebrow{margin:0 0 2px;font-size:0.7143rem}
 .studyhead h1{font-size:1.2857rem}
 .studyhead .actions button{padding:5px 12px}
 .studygrid{flex:1;min-height:0;grid-template-rows:minmax(0,1.15fr) minmax(0,1fr);gap:10px 12px}
 .studygrid>.character-panel{overflow:auto;padding:12px 14px}
 .character-panel>.actions:first-child{margin-bottom:4px!important}
 .character-panel .hanbox{flex-basis:126px;width:126px;padding:4px 12px}
 .character-panel .bigHan{font-size:4.5714rem}
 .character-panel .py{font-size:1.4286rem;margin-top:0}
 .character-panel .heroMeaning{font-size:1.2143rem}
 .character-panel .heroMeaning .actions{margin-top:8px!important}
 .examples-panel,.explanation-panel{padding:12px 16px}
 .examples-panel h2,.explanation-panel>h2{margin-bottom:6px}
 .examples-panel .example{padding:8px 0}
 .explanation-panel .details{gap:6px 12px;line-height:1.7}
 .study-dock{position:static;flex:0 0 56px;min-height:0;margin-top:6px}
 .study-dock .rating button{min-height:44px;padding:4px 10px}
 .keyhint{display:none}
}

/* ---- v1.7 ---- */
:lang(zh),:lang(zh-CN){font-family:NotoSC,HDEEXT,Noto,system-ui,sans-serif}
.brandmark{font-family:NotoSC,serif}
.skiplink{position:absolute;left:-9999px;top:8px;z-index:100;background:var(--green);color:#fff;padding:10px 16px;border-radius:8px}
.skiplink:focus{left:8px}
#content:focus,h1:focus{outline:none}
h1:focus-visible{outline:3px solid #b8794f;outline-offset:4px;border-radius:4px}
#offlineStatus[data-state=offline]{background:#fbf3e9;border-color:#ecd5bd;color:#6b4a2e}
.loadError{text-align:left;max-width:560px}
.loadError p{margin:0 0 10px}
.linkish{background:none;border:0;padding:0 2px;color:var(--green);text-decoration:underline;font-size:inherit}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
@media(max-width:900px){.study-dock{padding-bottom:calc(10px + env(safe-area-inset-bottom))}}
@media(max-width:540px){
 nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));overflow:visible;gap:3px}
 nav button{white-space:normal;text-align:center;padding:7px 2px;font-size:0.7857rem;line-height:1.3;word-break:keep-all;min-height:44px}
 nav button span{float:none;display:inline-block;margin:2px 0 0 2px;padding:0 5px}
 header{height:auto;min-height:44px;flex-wrap:wrap;padding:6px 0}
 .rating button,.study-dock button{min-height:44px}
}
@media(pointer:coarse){.miniGrid button,.segmented button,.options button{min-height:44px}}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:900px) and (pointer:coarse){nav button{min-height:44px}}
.keyhint kbd{opacity:1}
.toneOptions{grid-template-columns:repeat(4,minmax(0,1fr))}.optTone{font-size:1.7143rem}@media(max-width:540px){.toneOptions{grid-template-columns:1fr 1fr}}

/* ---- v1.8 단어 속 글자 풀이 ---- */
.examples-panel .example .gloss,.example .gloss{flex-basis:100%;list-style:none;margin:2px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.example .gloss li{margin:0}
.examples-panel .example .g,.example .g{display:inline-grid;grid-template-columns:auto auto;column-gap:7px;align-items:center;min-width:0;min-height:44px;padding:4px 9px 4px 7px;border:1px solid var(--line);border-radius:9px;background:#fff;font-size:0.8571rem;line-height:1.25;text-align:left;color:var(--ink)}
.examples-panel .example button.g:hover{background:#edf4e8}
.example .g .gh{grid-row:1/span 3;font-size:1.5714rem;line-height:1;font-family:NotoSC,HDEEXT,Noto,sans-serif}
.example .g .gp{grid-column:2;color:#9a3f25;font-size:0.8571rem}
.example .g .gk{grid-column:2;font-size:0.9286rem;color:var(--ink)}
.example .g .gl{grid-column:2;font-size:0.7857rem;color:#56654f}
.example .g.g-target{background:#244f40;border-color:#244f40;color:#fff}
.example .g.g-target .gp,.example .g.g-target .gk{color:#eef5e4}
.example .g.g-none{background:#f6f7f3;border-style:dashed}
.example .g.g-none .gk{color:#5c685e}
@media(max-width:540px){.example .gloss{gap:5px}.examples-panel .example .g{padding:3px 7px 3px 6px}.example .g .gh{font-size:1.4286rem}}
.examples-panel .example{flex-wrap:wrap}
.examples-panel .example>button[data-speak]{white-space:nowrap}
.settingspanel h3{margin:14px 0 6px;font-size:1.0714rem}
/* v1.9: 교재 밖 글자(보충 훈음) — 이동 없는 칩 */
.example .g.g-out{background:#fbfaf5}
.example .g.g-out .gl{color:#5c685e}
.whyNote{font-size:1rem;color:#4f5b52}
/* ===== v1.10 (박사님 요청 2026-11-03): 왼쪽 글자 칸 ~70%, 단어로 익히기 ~130%, 글자 풀이를 단어와 같은 줄에, 스크롤 막대 숨김 ===== */
@media(min-width:901px){
 .studygrid{grid-template-columns:minmax(300px,.59fr) minmax(0,1fr) 195px}
 .character-panel .flashhero{gap:14px}
 .character-panel .heroMeaning{min-width:0}
}
@media(min-width:901px) and (max-width:1100px){
 .studygrid{grid-template-columns:minmax(270px,.59fr) minmax(0,1fr) 165px}
 .character-panel .hanbox{flex-basis:112px;width:112px}
 .character-panel .bigHan{font-size:4.7143rem}
}
/* 단어 한 줄: [단어 ▶] [병음·뜻] [글자 풀이 칸들]. 칸이 많으면 풀이 칸 안에서 줄을 바꿈 */
@media(min-width:768px){
 .examples-panel .example{display:grid;grid-template-columns:auto minmax(64px,max-content) minmax(0,1fr);align-items:center;column-gap:14px;row-gap:6px}
 .examples-panel .example>div:not(.gloss){max-width:11em;min-width:0}
 .examples-panel .example .gloss{flex-basis:auto;margin:0;min-width:0;align-self:center}
}
@media(min-width:768px) and (max-width:900px){.examples-panel .examples{grid-template-columns:1fr}}
/* 스크롤 막대는 숨기고 휠·터치·키보드 스크롤은 그대로 */
.examples-panel,.explanation-panel,.studygrid>.sidepanel,.studygrid>.character-panel{scrollbar-width:none;-ms-overflow-style:none}
.explanation-panel{scrollbar-gutter:auto}
.examples-panel::-webkit-scrollbar,.explanation-panel::-webkit-scrollbar,.studygrid>.sidepanel::-webkit-scrollbar,.studygrid>.character-panel::-webkit-scrollbar{display:none;width:0;height:0}
/* 아래에 내용이 더 있을 때만 바닥에 옅은 흐림 + '아래에 더 있어요' */
.examples-panel,.explanation-panel{--fadebg:#fff}
.studygrid>.sidepanel{--fadebg:#f3f5ef}
.examples-panel::after,.explanation-panel::after,.studygrid>.sidepanel::after{content:"";display:block;position:sticky;bottom:-1px;height:0;opacity:0;pointer-events:none;transition:opacity .2s}
.more-below.examples-panel::after,.more-below.explanation-panel::after,.studygrid>.sidepanel.more-below::after{content:"▾ 아래에 더 있어요" / "";height:40px;margin-top:-40px;opacity:1;display:flex;align-items:flex-end;justify-content:center;padding-bottom:2px;font-size:0.8571rem;color:#4f5b52;background:linear-gradient(to bottom,rgba(255,255,255,0),var(--fadebg) 70%)}
.studygrid>.sidepanel.more-below::after{grid-column:1/-1}
@media(min-width:901px){.examples-panel .example{padding:9px 0}.examples-panel h2{margin-bottom:6px}}
.more-below.examples-panel::after,.more-below.explanation-panel::after,.studygrid>.sidepanel.more-below::after{background:linear-gradient(to bottom,rgba(255,255,255,0),var(--fadebg) 55%,var(--fadebg))}
@media(min-width:901px){.studygrid>.sidepanel .keyhint{font-size:0.7857rem;line-height:1.55;margin-top:6px}.studygrid>.sidepanel .keyhint kbd{padding:0 3px}.studygrid>.sidepanel .study-selectors{margin-bottom:8px}.studygrid>.sidepanel h3{margin-bottom:7px}}
/* v1.10 보정: 단어 줄은 flex로. 풀이 칸에 250px 이상 남으면 같은 줄, 아니면 단어 아래 줄로 통째로 내려감 */
@media(min-width:768px){
 .examples-panel .example{display:flex;flex-wrap:wrap;align-items:center;column-gap:14px;row-gap:6px}
 .examples-panel .example>button[data-speak]{flex:none}
 .examples-panel .example>div:not(.gloss){flex:0 1 auto;max-width:11em}
 .examples-panel .example .gloss{flex:1 1 250px}
}
/* 좁은 데스크톱(901~1100px): 70% 폭의 글자 칸 안에 뜻·영어·발음 버튼이 다 들어가도록 */
@media(min-width:901px) and (max-width:1100px){
 .character-panel .hanbox{flex-basis:96px;width:96px;padding:6px 8px}
 .character-panel .bigHan{font-size:4.1429rem}
 .character-panel .py{font-size:1.2857rem}
 .character-panel .heroMeaning{font-size:1.0714rem;line-height:1.4}
 .character-panel .heroMeaning small{font-size:0.8929rem;margin-top:3px}
 .character-panel .heroMeaning .actions{margin-top:8px!important;gap:6px}
 .character-panel .heroMeaning .actions button{padding:8px 10px;min-height:44px}
}
.studygrid>.character-panel{--fadebg:#fff}
@media(min-width:901px){.studygrid>.character-panel{overflow-y:auto}}
.studygrid>.character-panel::after{content:"";display:block;position:sticky;bottom:-1px;height:0;opacity:0;pointer-events:none}
.studygrid>.character-panel.more-below::after{content:"▾ 아래에 더 있어요" / "";height:34px;margin-top:-34px;opacity:1;display:flex;align-items:flex-end;justify-content:center;font-size:0.8571rem;color:#4f5b52;background:linear-gradient(to bottom,rgba(255,255,255,0),#fff 55%,#fff)}
/* 풀이 칸이 한 줄에 다 들어갈 때만 단어 옆에, 아니면 단어 아래 한 줄 전체로(칸 수 --n 기준) */
@media(min-width:768px){.examples-panel .example .gloss{flex:1 1 calc(var(--n,2) * 124px)}}
.examples-panel:focus-visible,.explanation-panel:focus-visible,.studygrid>.sidepanel:focus-visible,.studygrid>.character-panel:focus-visible{outline:3px solid #b8794f;outline-offset:2px}
/* ===== v1.11: 글자 미리 보기 창 · 돌아가기 막대 · 이동 경로 ===== */
.example .g.g-out{cursor:pointer}
.examples-panel .example button.g.g-out:hover{background:#f3f1e6}
.peek{position:fixed;margin:0;inset:auto;left:50%;top:50%;transform:translate(-50%,-50%);width:min(360px,calc(100vw - 16px));max-height:min(86vh,560px);overflow:auto;padding:16px 16px 14px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--ink);box-shadow:0 12px 36px #1d362b33}
.peek.peek-pop{transform:none}
.peek::backdrop{background:#1d362b33}
.peek-head{display:flex;gap:12px;align-items:flex-start}
.peek-char{font:3.8571rem/1.1 NotoSC,HDEEXT,Noto,sans-serif;background:var(--pale);border-radius:10px;padding:6px 12px;color:var(--ink)}
.peek-main{flex:1;min-width:0}
.peek h2{font-size:1.2857rem;margin:2px 0 4px;letter-spacing:0}
.peek-py{color:#9a3f25;font-size:1.2143rem;margin-left:4px}
.peek-hun{font-size:1.1429rem;margin:0 0 4px}
.peek-hun small{font-size:0.8571rem;color:var(--muted)}
.peek-tags{margin:0;display:flex;gap:5px;flex-wrap:wrap}
.peek .tag{font-size:0.8214rem;padding:2px 8px;border-radius:20px;background:#eef3e8;color:#3d4d43;border:1px solid var(--line)}
.peek .tag-sup{background:#fff4e0;border-color:#e6cf9f;color:#6b4a12}
.peek-x{min-width:44px;min-height:44px;padding:0;font-size:1.5714rem;line-height:1;border-radius:10px}
.peek-dl{display:grid;grid-template-columns:auto 1fr;gap:6px 12px;margin:12px 0 4px;font-size:1rem;line-height:1.6}
.peek-dl dt{color:var(--rust);font-size:0.9286rem;font-weight:600}
.peek-dl dd{margin:0}
.peek-note{font-size:0.9286rem;color:var(--muted);line-height:1.6;margin:12px 0 4px}
.peek-status{font-size:0.8571rem;color:var(--muted);min-height:0;margin:4px 0}
.peek-status:empty{display:none}
.peek-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.peek-actions button{min-height:44px;font-size:1rem}
.peek-actions .peek-go{flex:1}
@media(max-width:600px){.peek,.peek.peek-pop{left:0;right:0;bottom:0;top:auto;transform:none;width:100%;max-width:100%;border-radius:16px 16px 0 0;padding:16px 16px calc(16px + env(safe-area-inset-bottom))}}
.returnbar{position:sticky;top:0;z-index:20;display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;padding:6px 8px;margin:10px 0 0;background:#fff6e5;border:1px solid #e3c999;border-radius:12px;box-shadow:0 2px 8px #6b4a1214}
.returnbar .rb-back{min-height:44px;font-size:1rem;padding:8px 14px}
.returnbar .rb-back small{font-size:0.8571rem;opacity:.9}
.returnbar .trail{display:flex;flex-wrap:wrap;align-items:center;gap:2px;list-style:none;margin:0;padding:0;flex:1;min-width:0}
.returnbar .trail li{display:flex;align-items:center}
.returnbar .tr-item,.returnbar .tr-more{min-width:44px;min-height:44px;padding:4px 8px;font:1.4286rem NotoSC,HDEEXT,Noto,sans-serif;background:#fff;border:1px solid #e3c999}
.returnbar .tr-more{font:1.1429rem Noto,sans-serif}
.returnbar .tr-cur{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;font:1.4286rem NotoSC,HDEEXT,Noto,sans-serif;border-radius:8px;background:var(--green);color:#fff;padding:4px 8px}
.returnbar .tr-sep{color:#6b4a12;font-size:1.1429rem;padding:0 2px}
.returnbar .rb-close{margin-left:auto;min-width:44px;min-height:44px;padding:0;font-size:1.5714rem;line-height:1;background:transparent;border-color:transparent}
@media(min-width:901px){body[data-view=study] .returnbar{margin:8px 0 0}}
@media(max-width:540px){.returnbar .rb-back{flex:1;font-size:0.9286rem;padding:8px 10px}.returnbar .trail{order:3;flex-basis:100%}}

/* v1.13-dev: 기억 칸 라벨 칩과 근거 보기 */
.memChip{display:inline-block;font-size:0.7857rem;line-height:1.5;padding:1px 8px;border-radius:20px;border:1px solid;vertical-align:2px;margin-right:2px;white-space:nowrap;font-weight:600}
.memChip-e{background:#e2efda;border-color:#7da36a;color:#234a1f}.memChip-ea{background:#fff2cc;border-color:#c9a43a;color:#5a4300}.memChip-a{background:#fce4d6;border-color:#c98a64;color:#6b2f12}
.memSrc{margin-top:6px;font-size:0.8571rem;line-height:1.7}.memSrc summary{cursor:pointer;color:var(--green);width:fit-content;min-height:24px;padding:2px 0}.memSrc summary:focus-visible{outline:3px solid #b8794f;outline-offset:2px}
.memSrc ul{margin:6px 0 2px;padding-left:18px}.memSrc li{margin:3px 0;overflow-wrap:anywhere}.memSrc a{overflow-wrap:anywhere}.memConf{margin:6px 0 0;color:var(--muted)}
.memAgree{display:inline-block;font-size:0.7143rem;padding:0 6px;border-radius:10px;margin-right:3px}.memAgree-y{background:#e2efda;color:#234a1f}.memAgree-n{background:#eee;color:#444}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#quiz .feedback .memory{margin:7px 0 0}
.memNote{margin:6px 0 0;padding:4px 10px;border-left:3px solid var(--line);overflow-wrap:anywhere}

/* v1.17: 사용자(프로필), 잠긴 권(무료판), 이용권 */
.profileBtn{white-space:nowrap;max-width:11em;overflow:hidden;text-overflow:ellipsis;min-height:32px}
.profileList{list-style:none;padding:0;margin:14px 0;display:grid;gap:8px}
.profileList button{width:100%;text-align:left;min-height:44px}
.profileForm{display:grid;gap:8px;margin:10px 0}
.profileForm input,.licForm input{font:inherit;padding:10px;border:1px solid var(--line);border-radius:8px;min-height:44px}
.checkline{display:flex;gap:8px;align-items:center}
.profileDel{list-style:none;padding:0;display:grid;gap:8px}
.profileDel li{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
button.danger{border-color:#a74b30;color:#8a3a22}
.booktile.locked{background:#f6f7f2}
.lockTag{font-size:0.7857rem;color:#5c685e;border:1px solid var(--line);border-radius:999px;padding:1px 8px;margin-left:4px}
.lessonrow.locked{background:#f6f7f2}
.lessonrow.locked .done{color:#5c685e}
.g-locked{background:#f6f7f2;cursor:pointer}
.g-locked .gl{color:#5c685e}
.buyerMark{font-size:0.7857rem;color:#5c685e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:22em}
.licForm{display:grid;gap:8px;margin:10px 0}
.licDevices{list-style:none;padding:0;display:grid;gap:8px}
.licDevices li{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;border:1px solid var(--line);border-radius:8px;padding:8px 12px}
.licMsg{min-height:1.4em}
@media (max-width:600px){.buyerMark{display:none}.profileBtn{max-width:7em}}


/* v1.20 책 보기 — 앱(초록)과 구분되는 종이책 톤. 쪽 안 내용은 PDF와 동일. */
body[data-view=reader]{
  --book-paper:#ebe3d4;
  --book-ink:#4a3728;
  --book-accent:#6b4f3a;
  --book-line:#d4c4b0;
  --book-rail:#f3ebe0;
  --book-soft:#f7f1e8;
}
body[data-view=reader] .rail{background:var(--book-rail);border-bottom-color:var(--book-line)}
body[data-view=reader] nav button.active{background:#e6d7c4;color:var(--book-ink)}
body[data-view=reader] main{display:flex;flex-direction:column;min-height:calc(100dvh - 66px);background:var(--book-soft)}
body[data-view=reader] #content{flex:1;min-height:0;display:flex;flex-direction:column;padding:0}
body[data-view=reader] main>footer{display:none}
body[data-view=reader] header{height:40px;flex:0 0 40px;border-bottom-color:var(--book-line);color:var(--book-accent)}
.bookView{display:flex;flex-direction:column;flex:1;min-height:0}
.bookToolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;padding:8px 12px 10px;border-bottom:1px solid var(--book-line);flex:0 0 auto;background:var(--book-rail)}
.bookToolbar .actions{gap:6px}
.bookToolbar button{padding:8px 12px;font-size:0.8571rem;border-color:var(--book-line);color:var(--book-ink);background:#fffaf3}
.bookToolbar button:hover{background:#f0e6d8}
.bookToolbar button[aria-pressed=true]{background:var(--book-accent);color:#fff;border-color:var(--book-accent)}
.bookJumpWrap{display:inline-flex;align-items:center;gap:6px}
.bookJumpWrap input{width:72px;padding:8px;text-align:center;border-color:var(--book-line);background:#fffaf3;color:var(--book-ink)}
.bookBody{display:flex;flex:1;min-height:0;gap:0}
.bookToc{width:min(280px,40vw);overflow:auto;border-right:1px solid var(--book-line);padding:10px 8px;background:var(--book-rail);flex:0 0 auto}
.bookToc a{display:flex;justify-content:space-between;gap:8px;padding:6px 8px;border-radius:6px;text-decoration:none;color:var(--book-ink);font-size:0.8571rem;line-height:1.5}
.bookToc a:hover,.bookToc a.on{background:#e6d7c4}
.bookToc a.tocL2{padding-left:16px;font-size:0.8214rem}
.bookToc a.tocL3{padding-left:28px;font-size:0.7857rem;color:#7a6554}
.bookToc a small{color:#7a6554;font-size:0.7143rem}
.bookStage{position:relative;flex:1;min-width:0;min-height:0;overflow:auto;background:var(--book-paper);display:flex;align-items:flex-start;justify-content:center;padding:16px;outline:none}
.bookSpread{transform-origin:top left;display:flex;gap:8px;box-shadow:0 10px 32px #4a372828,0 0 0 1px #cbb89a;border-radius:2px}
.bookSlot{position:relative;background:#fff;overflow:hidden;flex:0 0 auto;box-shadow:inset 0 0 0 1px #e4d8c6}
.bookSlot.blank{background:#f3ebe0;box-shadow:inset 0 0 0 1px #d9cbb8}
.bookSlot .pg{position:relative;width:935px;height:1332px;overflow:hidden;background:#fff}
.bookSlot.locked{display:flex;align-items:center;justify-content:center;background:#f7f1e8}
.bookLockOverlay{flex:1;align-self:stretch;width:100%;min-height:240px;background:#e8dfd0;border-radius:12px;box-shadow:inset 0 0 0 1px #d4c4b0}
.bookLock{text-align:center;padding:28px 32px;max-width:min(320px,calc(100% - 32px));background:#fffaf3;border:1px solid var(--book-line);border-radius:14px;box-shadow:0 8px 28px #4a372822}
.bookLock p{margin:0 0 14px;line-height:1.7;color:#7a6554;font-size:1rem}
.bookLock b{color:var(--book-ink);font-size:1.2857rem}
.bookLock button.primary{min-height:44px;padding:12px 22px;font-size:1rem;background:var(--book-accent);border-color:var(--book-accent)}
.bookLock button.primary:hover{background:#5a3f2e}
/* Edge tap zones + subtle chevrons (desktop hover / brief after turn). Hidden clutter on phones by default. */
/* v2.0.3: 넘김 구역은 보이기만 하고 클릭은 받지 않음(찾아보기 탭·링크가 먼저). 가장자리 클릭은 bookStage onclick이 처리 */
.bookEdge{position:absolute;top:0;bottom:0;width:18%;max-width:160px;min-width:48px;z-index:4;pointer-events:none;border:0;background:transparent;padding:0;cursor:pointer;display:flex;align-items:center;color:var(--book-accent);opacity:0;transition:opacity .2s}
.bookEdgeL{left:0;justify-content:flex-start;padding-left:8px}
.bookEdgeR{right:0;justify-content:flex-end;padding-right:8px}
.bookChevron{font-size:3rem;line-height:1;font-weight:300;text-shadow:0 1px 0 #fff8;pointer-events:none;user-select:none}
@media(hover:hover) and (pointer:fine){
  .bookStage:hover .bookEdge,.bookStage.showChevrons .bookEdge{opacity:.55}
  .bookEdge:hover{opacity:.9;background:linear-gradient(90deg,#4a372814,transparent)}
  .bookEdgeR:hover{background:linear-gradient(270deg,#4a372814,transparent)}
}
.bookStage.showChevrons .bookEdge{opacity:.5}
@media(hover:none),(pointer:coarse){
  .bookEdge{opacity:0}
  .bookStage.showChevrons .bookEdge{opacity:.35}
}
.bookTip{position:absolute;left:50%;bottom:18px;transform:translateX(-50%);z-index:5;display:flex;align-items:center;gap:12px;max-width:min(420px,92%);padding:12px 14px;background:#fffaf3ee;border:1px solid var(--book-line);border-radius:12px;box-shadow:0 8px 24px #4a372833;color:var(--book-ink);font-size:0.9286rem;line-height:1.5}
.bookTip p{margin:0}
.bookTipDismiss{flex:0 0 auto;padding:8px 14px;font-size:0.8571rem;background:var(--book-accent);color:#fff;border-color:var(--book-accent)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:720px){.bookToc{position:absolute;z-index:6;height:calc(100% - 50px);box-shadow:4px 0 16px #0002}.bookTip{font-size:0.8571rem;bottom:12px;padding:10px 12px}}

/* v1.22 버전 표시 */
.versionList{list-style:none;display:flex;flex-wrap:wrap;gap:8px;margin:8px 0;padding:0}.versionList li{border:1px solid var(--line,#d8e3df);border-radius:999px;padding:4px 12px;font-weight:600;font-size:1rem}
.bookTocVer{margin:12px 8px 4px;padding-top:8px;border-top:1px solid var(--book-line);font-size:0.7857rem;color:#7a6554}
.bookToc nav{display:block;margin:0;overflow:visible;flex-direction:column}


/* v1.23 학습 현황 */
.statsPanel{background:#f7faf4}
.statsHead{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;margin-bottom:12px}
.statsHead h2{margin-bottom:6px}
.statsHead p{margin:0;max-width:52ch}
.statsControls{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.statsGoal{display:flex;align-items:center;gap:6px;font-size:0.9286rem;color:var(--muted)}
.statsGoal input{width:72px;padding:8px 10px;text-align:center}
.statsEmpty{background:#eef5e9;border:1px dashed #c5d6bb;border-radius:10px;padding:16px 18px;margin:12px 0 16px;color:#4f5d4d}
.statsEmpty p{margin:0 0 6px;color:#4f5d4d}
.statsEmpty p:last-child{margin:0}
.statsTop{display:grid;grid-template-columns:minmax(200px,auto) 1fr;gap:22px;align-items:center;margin:8px 0 18px}
.statsRingWrap{display:flex;align-items:center;gap:16px}
.statsRings{flex:0 0 auto;display:block}
.statsTotal{display:flex;flex-direction:column;gap:4px;margin:0}
.statsTotal strong{font-size:1.2857rem;color:var(--green);font-weight:600}
.statsTotal span{font-size:0.9286rem;color:var(--muted);line-height:1.6}
.statsVols{display:flex;flex-direction:column;gap:10px}
.statsVol{display:grid;grid-template-columns:36px 1fr auto;gap:10px;align-items:center;font-size:0.9286rem}
.statsVolTrack{display:block;height:8px;background:#e0e8da;border-radius:8px;overflow:hidden}
.statsVolTrack i{display:block;height:100%;background:#4f7d4c;border-radius:8px}
.statsLock{margin-left:6px;font-size:0.7857rem;color:#6b7466}
.statsCharts{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:8px 0 10px}
.statsCharts figure{margin:0;background:#fff;border:1px solid var(--line);border-radius:10px;padding:12px 12px 8px}
.statsCharts figcaption{font-size:0.9286rem;color:var(--ink);margin:0 0 6px}
.statsCharts figcaption small{display:block;margin-top:3px;color:var(--muted);font-size:0.8571rem}
.statsChart{width:100%;height:auto;display:block}
.statsProj{margin:4px 2px 2px;font-size:0.9286rem;color:var(--green);line-height:1.6}
.statsHelp{margin:10px 0 14px}
.statsDetails{border-top:1px solid var(--line);padding-top:10px}
.statsDetails summary{cursor:pointer;font-weight:600;color:var(--green);padding:6px 0}
.statsLegend,.ringLegend{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:8px 0 0;padding:0;list-style:none;font-size:0.8571rem;color:var(--muted)}
.statsLegend{margin:10px 0 14px}
.statsLegend .statsCell,.ringLegend .statsCell{width:22px;height:22px;font-size:0.7857rem;pointer-events:none;position:relative}
.ringLegend li,.statsLegend li{display:flex;align-items:center;gap:6px}
.statsVolBlock{margin:16px 0 20px}
.statsVolBlock h3{margin:0 0 10px}
.statsLesson{margin:0 0 12px}
.statsLessonTitle{margin:0 0 6px;font-size:0.8571rem;color:var(--muted)}
.statsLessonGrid{display:flex;flex-wrap:wrap;gap:3px}
.statsCell{width:28px;height:28px;padding:0;border-radius:5px;border:1px solid var(--line);background:#f3f6f0;font-family:NotoSC,HDEEXT,Noto,sans-serif;font-size:1rem;line-height:1;display:inline-flex;align-items:center;justify-content:center;color:var(--ink);position:relative}
button.statsCell:hover{filter:brightness(.97)}
.statsCell.pass1,.miniGrid button.pass1,.smallcard.pass1{background:#d5e8ce;border-color:#a8c89a;color:#1e3d30}
.statsCell.pass2,.miniGrid button.pass2,.smallcard.pass2{background:#cdddf0;border-color:#8eadd4;color:#1c3b66}
.statsCell.pass3,.miniGrid button.pass3,.smallcard.pass3{background:#efd27a;border-color:#d4b04a;color:#4a3408}
.statsCell.viewed,.miniGrid button.viewed{background:#fff;border:1px dashed #7aa66a;color:var(--ink)}
.statsCell.locked{background:#eceee9;color:#9aa394;border-color:#dde1d8}
.passMark{position:absolute;pointer-events:none;line-height:1}
.passDot{right:2px;bottom:2px;width:5px;height:5px;border-radius:50%;background:#1c3b66}
.passStar{right:0;bottom:-1px;font-size:0.5714rem;color:#4a3408}
.statsCell .passDot,.ringLegend .passDot,.statsLegend .passDot{right:1px;bottom:1px;width:4px;height:4px}
.statsCell .passStar,.ringLegend .passStar,.statsLegend .passStar{font-size:0.5rem;right:-1px;bottom:-2px}
.miniGrid button{position:relative}
.miniGrid button.current{outline:2px solid #244f40;outline-offset:1px}
.miniGrid button.current.pass2{background:#cdddf0;color:#1c3b66}
.miniGrid button.current.pass3{background:#efd27a;color:#4a3408}
.miniGrid button.current.viewed{background:#fff}
.smallcard{position:relative}
.smallcard.pass1{box-shadow:inset 3px 0 0 #5f9a52}
.smallcard.pass2{box-shadow:inset 3px 0 0 #3d6ea8}
.smallcard.pass3{box-shadow:inset 3px 0 0 #c4921f}
.smallcard .passMark{left:auto;right:8px;top:10px;bottom:auto}
.smallcard .passDot{width:7px;height:7px}
.smallcard .passStar{font-size:0.8571rem;color:#4a3408}
.lessonPassBar{display:flex;height:6px;background:#e8eee4;border-radius:6px;overflow:hidden;margin-top:8px;width:min(220px,100%)}
.lessonPassBar i{display:block;height:100%;padding:0;border:0;border-radius:0}
.lessonPassBar i.pass1{background:#5f9a52}
.lessonPassBar i.pass2{background:#3d6ea8}
.lessonPassBar i.pass3{background:#c4921f}
.lessonPassCounts{display:flex;align-items:center;gap:2px;flex-shrink:0;font-size:0.8571rem;color:#4f6a45;white-space:nowrap}
.lessonPassCounts .pc.pass1{color:#3d6b38;font-weight:600}
.lessonPassCounts .pc.pass2{color:#3d6ea8;font-weight:600}
.lessonPassCounts .pc.pass3{color:#8a6910;font-weight:600}
@media(max-width:900px){
 .statsTop{grid-template-columns:1fr}
 .statsCharts{grid-template-columns:1fr}
 .statsRingWrap{justify-content:flex-start}
}
@media(max-width:720px){
 .statsHead{flex-direction:column}
 .statsCell{width:26px;height:26px;font-size:0.9286rem}
 .statsRingWrap{flex-wrap:wrap}
}

/* v1.24 독별 색: 1독 #d5e8ce/#1e3d30 고리 #5f9a52 · 2독 #cdddf0/#1c3b66 고리 #3d6ea8 · 3독 #efd27a/#4a3408 고리 #c4921f */

/* v1.25 fluid type: rem tokens follow html clamp × 글자 크기. Book pages keep their own px + transform:scale. */
body{font-size:var(--fs)}
h1{font-size:var(--fs-h1)}
h2{font-size:var(--fs-h2)}
h3{font-size:var(--fs-h3)}
.eyebrow{font-size:var(--fs-2xs)}
.muted{font-size:var(--fs-sm)}
nav button{font-size:1em}
.brand{font-size:var(--fs-lg)}
.brandmark{font-size:2.1429rem}
.brand small,.railfoot small,footer{font-size:var(--fs-2xs)}
.badge,.subtle,header{font-size:var(--fs-xs)}
#toast{font-size:var(--fs-sm)}
.actions button,.rating button,.pager span{font-size:var(--fs-sm)}
.miniGrid button{font-size:var(--fs-xl);font-family:'Microsoft YaHei',sans-serif}
.smallcard .char{font-size:2.4286rem}
.smallcard .py{font-size:var(--fs-lg)}
.smallcard p,.settingspanel p{font-size:var(--fs-sm)}
.settingspanel h2{font-size:var(--fs-xl)}
.goalNumber{font:var(--fs-display) system-ui;letter-spacing:-0.05em}
.goalNumber small{font-size:0.42em}
.metric strong{font-size:2.2857rem}
.metric span,.booktile p,.lessonrow small{font-size:var(--fs-xs)}
.booktile .vol{font-size:2.4286rem}
.studyhead h1{font-size:1.6429rem}
.heroMeaning{font-size:1.3571rem}
.py{font-size:1.4286rem}
.details{font-size:1rem}
.details dt{font-size:var(--fs-sm)}
.example button{font-size:1.5rem}
.sidepanel h3{font-size:var(--fs-md)}
.statsCharts figcaption{font-size:var(--fs-md)}
.statsCharts figcaption small,.statsLegend,.ringLegend{font-size:var(--fs-sm)}
.statsRings{width:9.375rem;height:9.375rem}
.statsChart text{font-size:0.625rem}
.statsCell{width:2rem;height:2rem;font-size:1rem}
.statsLegend .statsCell,.ringLegend .statsCell{width:1.5714rem;height:1.5714rem;font-size:var(--fs-xs)}
.bigHan,.character-panel .bigHan{font-size:var(--han-lg);line-height:1.2;font-family:'Microsoft YaHei','Noto Sans CJK SC',sans-serif}
.quizchar,#quiz .quizchar{font-size:var(--han-quiz);font-family:'Microsoft YaHei',sans-serif}
.optHan{font-size:clamp(2rem,calc((4vw + 3vh)*var(--fs-mult)),3.2rem)}
.peek-char{font-size:clamp(2.4rem,calc((5vw + 4vh)*var(--fs-mult)),4rem)}
.bookToolbar button,.bookToc a{font-size:var(--fs-sm)}
.bookToc a.tocL2{font-size:0.8214rem}
.bookToc a.tocL3,.bookToc a small{font-size:var(--fs-xs)}
.bookLock p,.bookLock button.primary{font-size:1rem}
.bookLock b{font-size:var(--fs-xl)}
.bookChevron{font-size:3rem}
.bookSlot .pg{font-size:16px}
.segmented{flex-wrap:wrap}
.lessonrow{min-width:0}
.lessonPassBar{width:min(15.7143rem,100%);max-width:100%}
body[data-view=home] .hero h1{font-size:var(--fs-h1)}
body[data-view=home] .sectionhead h2{font-size:1.3571rem}
body[data-view=home] .resume h2{font-size:var(--fs-h2)}
@media(max-width:900px){
 h1,body[data-view=home] .hero h1{font-size:var(--fs-h1)}
 .studyhead h1{font-size:1.2857rem}
 .character-panel .bigHan,.bigHan{font-size:var(--han-lg)}
 .goalNumber{font-size:var(--fs-display)}
 nav button{font-size:1em}
}
@media(max-width:720px){
 h1{font-size:var(--fs-h1)}
 .goalNumber{font-size:var(--fs-display)}
 .metric strong{font-size:1.7857rem}
 nav button{font-size:1em}
 .brand{font-size:1.2143rem}
 .brandmark{font-size:1.6429rem}
 .bigHan{font-size:var(--han-lg)}
}

/* v1.26 책 보기: 학습 화면의 max-width(app 1920·main 1600)를 풀고 창 너비를 쓴다.
   펼침면은 보이는 칸에 맞추고, transform:scale 레이아웃 상자는 .bookSpreadFrame이 맡는다.
   글자 크기(v1.25 fluid rem)는 쪽 배율에 쓰지 않는다. */
body[data-view=reader] .app{
  max-width:none;
  width:100%;
  height:100dvh;
  max-height:100dvh;
  min-height:0;
  margin:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
body[data-view=reader] .rail{flex:0 0 auto;width:100%}
body[data-view=reader] main{
  max-width:none;
  width:100%;
  margin:0;
  padding:0;
  flex:1 1 auto;
  min-height:0;
  height:auto;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  background:var(--book-soft);
}
body[data-view=reader] header{flex:0 0 auto}
body[data-view=reader] #content{flex:1;min-height:0;display:flex;flex-direction:column;padding:0}
body[data-view=reader] main>footer{display:none}
.bookSpreadFrame{flex:0 0 auto;overflow:hidden;position:relative;line-height:0}
.bookSpread{transform-origin:top left}
.bookStage.fit-page{overflow:hidden;align-items:center;justify-content:center}
.bookStage.fit-width{overflow-x:hidden;overflow-y:auto;align-items:flex-start;justify-content:center;scrollbar-gutter:stable}

/* v1.26 글자 배경칸: 칸 크기를 글자(em / --han-lg)에 맞춰, 글자 크기 설정과 함께 늘어나게 한다.
   책 보기 쪽 배율은 그대로 둔다. */
body[data-view=study] .character-panel .hanbox,
body[data-view=study] .hanbox{
  font-size:var(--han-lg);
  width:fit-content;
  max-width:100%;
  min-width:0;
  flex:0 0 auto;
  flex-basis:auto;
  box-sizing:border-box;
  padding:0.18em 0.22em 0.2em;
  text-align:center;
  background:var(--pale);
  border-radius:0.12em;
  overflow:visible;
}
body[data-view=study] .character-panel .hanbox .bigHan,
body[data-view=study] .hanbox .bigHan,
body[data-view=study] .character-panel .bigHan,
body[data-view=study] .bigHan{
  font-size:1em;
  line-height:1.15;
  display:block;
  width:max-content;
  max-width:100%;
  margin:0 auto;
  font-family:'Microsoft YaHei','Noto Sans CJK SC',sans-serif;
}
body[data-view=study] .character-panel .hanbox .py,
body[data-view=study] .hanbox .py{
  font-size:0.28em;
  margin-top:0.06em;
  line-height:1.2;
}
.peek-char{
  font-size:clamp(2.4rem,calc((5vw + 4vh)*var(--fs-mult)),4rem);
  padding:0.15em 0.22em;
  line-height:1.1;
  display:inline-block;
  border-radius:0.12em;
}
body[data-view=study] .examples-panel .example>button[data-speak],
body[data-view=study] .example>button[data-speak]{
  font-size:1.5rem;
  padding:0.22em 0.4em;
  min-width:0;
  line-height:1.2;
}
body[data-view=study] .example .g{
  font-size:1.5714rem;
  padding:0.18em 0.28em 0.18em 0.22em;
  column-gap:0.28em;
  min-height:44px;
  min-width:0;
}
body[data-view=study] .example .g .gh{font-size:1em;line-height:1}
body[data-view=study] .example .g .gp{font-size:0.55em}
body[data-view=study] .example .g .gk{font-size:0.59em}
body[data-view=study] .example .g .gl{font-size:0.5em}
body[data-view=study] .miniGrid button{
  font-size:var(--fs-xl);
  padding:0.25em 0.08em;
  min-height:44px;
  min-width:0;
}
#quiz .charOptions button{padding:0.35em 0.15em}
#quiz .optHan{line-height:1.2;display:block}

/* v1.26 학습 칸 높이: 글자·병음·뜻·버튼이 잘리거나 '아래에 더 있어요'에 가리지 않게
   내용만큼 칸을 키운다. 창이 짧으면 페이지가 세로로 스크롤된다. 책 보기는 그대로. */
@media(min-width:901px){
  body[data-view=study] .app{height:auto;min-height:100dvh;overflow:visible}
  body[data-view=study] main{height:auto;min-height:calc(100dvh - 66px);overflow:visible}
  body[data-view=study] #content{flex:1 0 auto;min-height:0;overflow:visible}
  body[data-view=study] .studygrid{flex:none;grid-template-rows:auto auto;min-height:0;align-items:start}
  body[data-view=study] .studygrid>.character-panel,
  body[data-view=study] .studygrid>.examples-panel,
  body[data-view=study] .studygrid>.explanation-panel,
  body[data-view=study] .studygrid>.sidepanel{
    overflow:visible;
    height:auto;
    max-height:none;
    min-height:min-content;
  }
  body[data-view=study] .study-dock{position:sticky;bottom:0;z-index:5;background:var(--paper)}
}
@media(min-width:901px) and (max-height:700px){
  body[data-view=study] .app{height:auto;min-height:100dvh}
  body[data-view=study] main{height:auto;min-height:calc(100dvh - 50px)}
  body[data-view=study] .studygrid{flex:none;grid-template-rows:auto auto}
  body[data-view=study] .studygrid>.character-panel{overflow:visible}
}
body[data-view=study] .studygrid>.character-panel.more-below::after{
  content:none;
  display:none;
  height:0;
  opacity:0;
  margin:0;
}
body[data-view=study] .explanation-panel .details,
body[data-view=study] .details{
  grid-template-columns:max-content 1fr;
}
body[data-view=study] .explanation-panel .details dt,
body[data-view=study] .details dt{
  white-space:nowrap;
}
@media(min-width:901px){
  body[data-view=study] .studygrid>.sidepanel{padding-bottom:calc(4.75rem + env(safe-area-inset-bottom,0px))}
}
@media(max-width:900px){
  body[data-view=study] .studygrid>.character-panel,
  body[data-view=study] .studygrid>.examples-panel{
    overflow:visible;
    max-height:none;
  }
  body[data-view=study] .explanation-panel{max-height:none;overflow:visible}
  body[data-view=study] .studyhead{margin:6px 0 8px}
  body[data-view=study] .character-panel .heroMeaning .actions{flex-wrap:wrap;gap:6px}
  body[data-view=study] .character-panel .heroMeaning .actions button{padding:7px 10px}
  body[data-view=study] #content{padding-bottom:calc(5.5rem + env(safe-area-inset-bottom,0px))}
}
@media(max-width:540px){
  /* 아주 크게에서도 메뉴 글이 세로로 쪼개지지 않게, 한 줄 가로 스크롤로 둔다.
     아래 연습 막대가 글자·병음·버튼을 가리지 않을 자리를 확보한다. */
  body[data-view=study] nav{
    display:flex;
    flex-direction:row;
    flex-wrap:nowrap;
    overflow-x:auto;
    width:100%;
    gap:4px;
  }
  body[data-view=study] nav button{
    white-space:nowrap;
    flex:0 0 auto;
    text-align:center;
    min-height:36px;
    padding:6px 10px;
    word-break:normal;
  }
}


/* v1.27: 내려받기 안내가 머리글에 가리지 않게, 찾아보기 바로 가기 */
header{height:auto;min-height:43px;overflow:visible}
#toast{white-space:normal;overflow:visible;text-overflow:unset;height:auto;min-height:0;max-height:none;flex:0 0 auto;flex-shrink:0;padding:6px 0;line-height:1.6}
body[data-view=study] #toast{height:auto;min-height:0;flex:0 0 auto;flex-shrink:0;padding:4px 0;white-space:normal;overflow:visible}
body[data-view=reader] #toast,
body[data-view=reader] #paidNotice{flex:0 0 auto;flex-shrink:0}
.paidNotice{display:flex;align-items:flex-start;gap:12px;margin:8px 0 10px;padding:8px 12px;background:#f8eee4;border:1px solid #e4d0c0;border-radius:10px;color:var(--rust);line-height:1.65;font-size:var(--fs-sm,0.8571rem)}
.paidNotice[hidden]{display:none!important}
.paidNoticeText{flex:1;min-width:0;margin:0;white-space:normal;overflow-wrap:anywhere;word-break:keep-all}
.paidNoticeClose{flex:0 0 auto;padding:4px 10px;font-size:0.7857rem;line-height:1.4;white-space:nowrap;background:#fff;border:1px solid var(--line);border-radius:8px;color:var(--ink)}
.paidNoticeClose:hover{background:#f0e6d8}
.bookIndexBtns{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap}
.bookIndexDrop{display:none;position:relative}
.bookIndexMenu{position:absolute;top:calc(100% + 4px);left:0;z-index:30;min-width:12em;display:flex;flex-direction:column;gap:4px;padding:6px;background:#fffaf3;border:1px solid var(--book-line,var(--line));border-radius:8px;box-shadow:0 8px 20px #0002}
.bookIndexMenu[hidden]{display:none!important}
.bookIndexMenu button{display:block;width:100%;text-align:left;white-space:nowrap}
#bookIndexBack{white-space:nowrap}
@media(max-width:720px){
  .bookIndexBtns{display:none}
  .bookIndexDrop{display:inline-flex;align-items:center}
}


/* v1.29: 과의 끝에서 다음·이전 과 버튼, 찾아보기에서 온 글자 표시 */
.study-dock.has-lesson-nav{grid-template-columns:minmax(148px,260px) minmax(0,520px) minmax(148px,260px)}
.study-dock>#prev.lessonNav,.study-dock>#next.lessonNav{
  white-space:normal;line-height:1.3;text-align:center;font-size:0.8214rem;font-weight:600;
  background:#f6efe0;border:1.5px solid #c4921f;color:#4a3408;padding:6px 10px;
  word-break:keep-all;overflow-wrap:break-word;
}
.study-dock>#prev.lessonNav:hover,.study-dock>#next.lessonNav:hover{background:#f0e2c4}
.study-dock>#prev.lessonNav:focus-visible,.study-dock>#next.lessonNav:focus-visible{outline-color:#c4921f}
/* v1.30: 1.6초 깜빡인 뒤 얇은 주황 테두리를 유지. 깜빡임을 계속하지 않음.
   종이색(--book-paper #ebe3d4)과 어두운 배경 모두에서 주황(#e08a2c)이 드러나게 둠. */
@keyframes bookCharPulse{
  0%,100%{opacity:1;border-width:3px;box-shadow:0 0 0 2px rgba(224,138,44,.45)}
  50%{opacity:.55;border-width:3px;box-shadow:0 0 0 7px rgba(224,138,44,.25)}
}
.bookCharHi{
  position:absolute;box-sizing:border-box;pointer-events:none;z-index:4;
  border:2px solid #e08a2c;border-radius:12px;background:rgba(224,138,44,.10);
  box-shadow:0 0 0 1px rgba(224,138,44,.35);
  animation:bookCharPulse .8s ease-in-out 2;
}
.bookCharHiHeld{animation:none}
@media (prefers-reduced-motion: reduce){
  .bookCharHi{animation:none}
}
@media(max-width:900px){
  .study-dock.has-lesson-nav{
    grid-template-columns:1fr 1fr;
    grid-template-areas:"rating rating" "prev next";
    grid-template-rows:auto auto;
    flex:0 0 auto;height:auto;min-height:0;gap:6px;
  }
  .study-dock.has-lesson-nav .rating{grid-area:rating}
  .study-dock.has-lesson-nav>#prev{grid-area:prev}
  .study-dock.has-lesson-nav>#next{grid-area:next}
  .study-dock>#prev.lessonNav,.study-dock>#next.lessonNav{font-size:.75rem;padding:6px 8px;min-height:44px}
}
/* v2.0: 외우는 방식 — '연상' 칩과 근거 보기 안의 어원 풀이 */
.memChip-y{background:#e6eefb;border-color:#6f8fc7;color:#1d3563}
.memSrc .memEty{margin:4px 0 6px;font-size:0.9286rem;line-height:1.6}
.memEtyLabel{display:inline-block;font-size:0.7857rem;padding:0 6px;border-radius:10px;border:1px solid #c9b88a;color:#5a4a1a;background:#faf4e2;margin-right:4px;font-weight:600}
.memEtyOnly>summary{font-size:0.8571rem}
/* v2.0: 설정 › 외우는 방식(옵션마다 한 줄 설명), 책 링크로 연 카드의 '어원 풀이로 보는 중' 표시 */
.memModeOpts{display:grid;gap:8px;margin-top:6px}
.memModeOpts button{display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-align:left;padding:12px 16px;line-height:1.5}
.memModeOpts .memModeName{font-weight:600}
.memModeOpts .memModeDesc{font-size:0.8571rem;color:var(--muted)}
.memModeOpts [aria-pressed=true]{background:#e5f0df;border-color:var(--green);box-shadow:inset 3px 0 0 var(--green)}
.memoOverride{margin:0 0 6px;padding:5px 10px;border-radius:8px;background:#faf4e2;border:1px solid #e3d3a4;font-size:0.8571rem;line-height:1.7;color:#5a4a1a;display:flex;flex-wrap:wrap;align-items:center;gap:2px 6px}
.memoOverride .memoSwitch{background:none;border:0;padding:0 2px;color:var(--green);text-decoration:underline;font-size:inherit;min-height:0}
.memoOverride .memoKeep{color:#7a6a3a;font-size:0.7857rem;margin-left:auto}
@media(pointer:coarse){.memoOverride .memoSwitch{min-height:32px}}

/* v2.0.10: 새 버전 알림은 토스트가 아니라 따로 남는 막대(학습 토스트에 덮이지 않음) */
.updateBar{margin:6px 0;padding:8px 12px;border:1px solid #e3c999;background:#fff8e6;border-radius:8px;font-size:var(--fs-sm);line-height:1.6}.updateBar[hidden]{display:none}.updateBar button{margin-left:6px}

/* v2.0.11: 홈 '최근 7일' 막대 도표 (학습 = 진한 초록, 복습 = 옅은 초록). 책 색·글꼴, 장식 없음 */
.weekchart{background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px 20px 12px}
.wkHead{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:6px}
.weekchart h2{font-size:1rem;font-weight:500;letter-spacing:0;color:var(--ink)}
.wkLegend{font-size:0.7857rem;color:var(--muted);display:flex;align-items:center;gap:5px}
.wkLegend i{display:inline-block;width:10px;height:10px;border-radius:2px;margin-left:8px}
.wkNew{background:var(--green)}.wkRev{background:#a9c2a0}
.wkPlot{position:relative;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:clamp(6px,1.6vw,18px);height:118px;padding-top:16px;border-bottom:1px solid var(--line);margin-bottom:38px}
.wkCol{position:relative;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;height:100%;min-width:0}
.wkBar{width:min(34px,72%);display:flex;flex-direction:column;border-radius:3px 3px 0 0;overflow:hidden;min-height:0}
.wkBar i{display:block;min-height:0}
.wkCol.zero .wkBar{height:2px!important;background:#e6ece2}
.wkNum{font:0.7857rem system-ui;color:var(--muted);margin-bottom:3px;font-variant-numeric:tabular-nums;min-height:1em}
.wkCol.today .wkNum{color:var(--green);font-weight:600}
.wkDay{position:absolute;top:100%;margin-top:4px;font-size:0.7857rem;color:var(--muted);white-space:nowrap;text-align:center;line-height:1.25}
.wkDay small{display:block;font-size:0.6429rem;color:#8a9583}
.wkCol.today .wkDay{color:var(--green);font-weight:600}
.wkGoal{position:absolute;left:0;right:0;border-top:1px dashed #c9d5c2;pointer-events:none}
.wkLegend i.wkGoalKey{width:14px;height:0;border-top:1px dashed #9fb29a;border-radius:0}
.wkSum{margin:0;font-size:0.8571rem;color:var(--muted);line-height:1.6}
@media(max-width:720px){.weekchart{padding:12px 14px 10px}.wkPlot{height:92px;gap:6px}.wkDay small{display:none}.wkPlot{margin-bottom:24px}}
@media(max-height:740px) and (min-width:901px){.wkPlot{height:80px}.weekchart{padding:10px 16px 8px}}
@media(max-height:560px) and (min-width:721px){.weekchart{display:none}}


/* ===== v2.0.21: 이해하고 활용하기를 위 칸 바로 아래로 (study-main wrapper) ===== */
.cardNotes:empty{display:none}
@media(min-width:901px){
  body[data-view=study] .studygrid{
    display:grid;
    grid-template-columns:minmax(0,1fr) 195px;
    grid-template-rows:auto;
    align-items:start;
    gap:10px 12px;
    flex:none;
    min-height:0;
  }
  body[data-view=study] .study-main{
    display:grid;
    grid-template-columns:minmax(300px,.59fr) minmax(0,1fr);
    grid-template-rows:auto auto;
    gap:10px 12px;
    min-width:0;
    align-items:start;
  }
  body[data-view=study] .study-main>.character-panel{grid-column:1;grid-row:1}
  body[data-view=study] .study-main>.examples-panel{grid-column:2;grid-row:1}
  body[data-view=study] .study-main>.explanation-panel{grid-column:1/3;grid-row:2}
  body[data-view=study] .studygrid>.sidepanel{
    grid-column:2;
    grid-row:1;
    height:auto;
    max-height:none;
    overflow:visible;
    min-height:min-content;
  }
  body[data-view=study] .study-main>.character-panel,
  body[data-view=study] .study-main>.examples-panel,
  body[data-view=study] .study-main>.explanation-panel{
    overflow:visible;
    height:auto;
    max-height:none;
    min-height:min-content;
  }
}
@media(min-width:901px) and (max-width:1100px){
  body[data-view=study] .studygrid{grid-template-columns:minmax(0,1fr) 165px}
  body[data-view=study] .study-main{grid-template-columns:minmax(270px,.59fr) minmax(0,1fr)}
}
@media(max-width:900px){
  body[data-view=study] .studygrid{
    display:grid;
    grid-template-columns:1fr;
    grid-template-rows:auto;
    gap:12px;
  }
  body[data-view=study] .study-main{
    display:flex;
    flex-direction:column;
    gap:12px;
    min-width:0;
  }
  body[data-view=study] .study-main>.character-panel,
  body[data-view=study] .study-main>.examples-panel,
  body[data-view=study] .study-main>.explanation-panel{
    overflow:visible;
    max-height:none;
  }
}

/* v2.0.21: 다음자 라벨·상자 없음. 병음 첫 음(대표음)은 진하고 조금 더 짙게, 나머지는 옅게. */
body[data-view=study] .hanbox .py .pyRep{
  font-weight:700;
  color:#7a2e18;
}
body[data-view=study] .hanbox .py .pySep,
body[data-view=study] .hanbox .py .pyAlt{
  font-weight:400;
  color:#c48972;
}

/* v2.0.23 iPhone 제안: 노치·홈 표시 여백, 입력 16px(확대 방지), 주요 버튼 44px. 배포 전 확인. */
.rail{
  padding-top:calc(10px + env(safe-area-inset-top,0px));
  padding-left:calc(28px + env(safe-area-inset-left,0px));
  padding-right:calc(28px + env(safe-area-inset-right,0px));
}
@media(max-width:900px){
  .rail{
    padding-top:calc(12px + env(safe-area-inset-top,0px));
    padding-left:calc(16px + env(safe-area-inset-left,0px));
    padding-right:calc(16px + env(safe-area-inset-right,0px));
  }
  main{padding-left:calc(16px + env(safe-area-inset-left,0px));padding-right:calc(16px + env(safe-area-inset-right,0px))}
}
.study-dock{
  padding-left:env(safe-area-inset-left,0px);
  padding-right:env(safe-area-inset-right,0px);
}
input:not([type=checkbox]):not([type=radio]),select,textarea,
#bookJump,#studyVolume,#studyLesson{font-size:max(16px,1rem)}
body[data-view=study] nav button{min-height:44px}
#profileBtn,.profileBtn{min-height:44px}
#speakChar,#slowChar,#openInBook,#lessonQuiz,#toBook,#favorite{min-height:44px}
#resume,#dueStart,#showGuide{min-height:44px}
#bookPrev,#bookNext,#bookTocBtn,#bookIndexMenuBtn,#bookSpread,#bookFit{min-height:44px;min-width:44px}
#bookJump{min-height:44px}
@media(pointer:coarse){
  nav button{min-height:44px}
}


/* v2.0.23: 아이폰 가로(짧은 높이) 학습·책 보기. 세로·데스크톱(min-width:901px)은 그대로. */
@media (orientation: landscape) and (max-height: 500px) and (max-width: 900px){
  /* ---- 학습: 한 화면에 글자·병음·발음·채점 버튼이 보이게 ---- */
  body[data-view=study] .app{
    height:100dvh;max-height:100dvh;min-height:0;
    display:flex;flex-direction:column;overflow:hidden;
  }
  body[data-view=study] .rail{
    flex:0 0 auto;flex-wrap:nowrap;align-items:center;
    height:auto;min-height:0;gap:6px;
    padding-top:max(4px, env(safe-area-inset-top,0px));
    padding-bottom:4px;
    padding-left:calc(8px + env(safe-area-inset-left,0px));
    padding-right:calc(8px + env(safe-area-inset-right,0px));
  }
  body[data-view=study] .brand small{display:none}
  body[data-view=study] .brandmark{font-size:1.25rem;padding:1px 6px}
  body[data-view=study] nav{
    display:flex;flex-direction:row;flex-wrap:nowrap;
    overflow-x:auto;width:auto;flex:1 1 auto;min-width:0;gap:2px;
  }
  body[data-view=study] nav button{
    white-space:nowrap;flex:0 0 auto;min-height:36px;padding:4px 8px;font-size:0.8rem;
  }
  body[data-view=study] main{
    flex:1 1 auto;min-height:0;height:auto;
    display:flex;flex-direction:column;overflow:hidden;
    padding-left:calc(10px + env(safe-area-inset-left,0px));
    padding-right:calc(10px + env(safe-area-inset-right,0px));
    padding-bottom:0;
  }
  body[data-view=study] header{
    flex:0 0 auto;height:auto;min-height:0;padding:0;gap:6px;
  }
  body[data-view=study] #offlineStatus,
  body[data-view=study] #buyerMark{display:none}
  body[data-view=study] #profileBtn,body[data-view=study] .profileBtn{min-height:36px;padding:4px 8px}
  body[data-view=study] #toast,
  body[data-view=study] #updateBar{flex:0 0 auto;padding:0;min-height:0}
  body[data-view=study] main>footer{display:none}
  body[data-view=study] #content{
    flex:1 1 auto;min-height:0;overflow:hidden;
    display:flex;flex-direction:column;gap:4px;
    padding-bottom:0!important;
  }
  body[data-view=study] .returnbar{display:none}
  body[data-view=study] .studyhead{
    flex:0 0 auto;flex-direction:row;align-items:center;gap:8px;
    min-height:0;margin:0;padding:0;
  }
  body[data-view=study] .studyhead .eyebrow,
  body[data-view=study] .studyhead .todayStudy{display:none}
  body[data-view=study] .studyhead h1{font-size:1rem;margin:0;line-height:1.2}
  body[data-view=study] .studyhead .actions{gap:4px;flex:0 0 auto}
  body[data-view=study] .studyhead .actions button{padding:4px 8px;font-size:0.75rem;min-height:36px}
  body[data-view=study] .studygrid{
    flex:1 1 auto;min-height:0;display:flex;flex-direction:column;
    grid-template-columns:unset;grid-template-rows:unset;gap:6px;overflow:hidden;
  }
  body[data-view=study] .studygrid>.sidepanel{display:none}
  body[data-view=study] .study-main{
    flex:1 1 auto;min-height:0;display:grid;
    grid-template-columns:minmax(200px,.9fr) minmax(220px,1.1fr);
    grid-template-rows:minmax(0,1fr);
    gap:8px;overflow:hidden;
  }
  body[data-view=study] .study-main>.character-panel{
    grid-column:1;grid-row:1;
    min-height:0;overflow:auto;
    padding:8px 10px;display:flex;flex-direction:column;justify-content:center;
  }
  body[data-view=study] .study-main>.examples-panel,
  body[data-view=study] .study-main>.explanation-panel{
    min-height:0;overflow:auto;padding:8px 10px;
  }
  body[data-view=study] .study-main>.examples-panel{grid-column:2;grid-row:1}
  body[data-view=study] .study-main>.explanation-panel{
    grid-column:2;grid-row:1;margin-top:auto;
    /* stack under examples in the same column via a nested flow: */
    display:none; /* 가로의 짧은 높이에서는 오른쪽을 단어로, 구성은 스크롤 때. 아래 규칙에서 둘 다 보이게 함 */
  }
  /* 오른쪽 칸에 단어·구성이 이어지게: 두 패널을 한 열에 세로로 */
  body[data-view=study] .study-main{
    grid-template-columns:minmax(200px,.85fr) minmax(220px,1.15fr);
    grid-template-rows:minmax(0,1fr) minmax(0,1fr);
  }
  body[data-view=study] .study-main>.character-panel{grid-column:1;grid-row:1/3}
  body[data-view=study] .study-main>.examples-panel{grid-column:2;grid-row:1;display:block}
  body[data-view=study] .study-main>.explanation-panel{grid-column:2;grid-row:2;display:block;margin-top:0}
  body[data-view=study] .character-panel>.actions:first-child{margin-bottom:4px!important}
  body[data-view=study] .character-panel .flashhero{gap:10px;align-items:center}
  body[data-view=study] .character-panel .hanbox,
  body[data-view=study] .hanbox{font-size:clamp(2.2rem, 22vh, 3.4rem)}
  body[data-view=study] .character-panel .heroMeaning{font-size:1.05rem}
  body[data-view=study] .character-panel .heroMeaning .actions{margin-top:8px!important;flex-wrap:nowrap;gap:6px}
  body[data-view=study] #speakChar,
  body[data-view=study] #slowChar,
  body[data-view=study] #favorite,
  body[data-view=study] #openInBook,
  body[data-view=study] #lessonQuiz,
  body[data-view=study] #toBook{min-height:36px}
  body[data-view=study] .study-dock{
    position:static;flex:0 0 auto;margin-top:0;min-height:0;
    padding:4px 0 calc(4px + env(safe-area-inset-bottom,0px));
    padding-left:env(safe-area-inset-left,0px);
    padding-right:env(safe-area-inset-right,0px);
    box-shadow:0 -4px 12px #244f400a;
    background:var(--paper);
    grid-template-columns:70px 1fr 70px;
    gap:6px;
  }
  body[data-view=study] .study-dock.has-lesson-nav{
    grid-template-columns:70px 1fr 70px;
    grid-template-areas:none;grid-template-rows:auto;
  }
  body[data-view=study] .study-dock.has-lesson-nav .rating,
  body[data-view=study] .study-dock.has-lesson-nav>#prev,
  body[data-view=study] .study-dock.has-lesson-nav>#next{grid-area:auto}
  body[data-view=study] .study-dock .rating button{min-height:44px;padding:4px 8px}
  body[data-view=study] .keyhint{display:none}
  body[data-view=study] .examples-panel::after,
  body[data-view=study] .explanation-panel::after,
  body[data-view=study] .character-panel::after,
  body[data-view=study] .more-below.examples-panel::after,
  body[data-view=study] .more-below.explanation-panel::after,
  body[data-view=study] .studygrid>.character-panel.more-below::after,
  body[data-view=study] .study-main>.character-panel.more-below::after{
    content:none!important;height:0!important;opacity:0!important;display:none!important;margin:0!important;
  }
  body[data-view=study] .examples-panel h2,
  body[data-view=study] .explanation-panel>h2{margin:0 0 4px;font-size:0.95rem}
  body[data-view=study] .examples-panel .example>button[data-speak]{font-size:1.15rem;padding:0.15em 0.3em}
  body[data-view=study] .explanation-panel .details,
  body[data-view=study] .details{font-size:0.95rem;line-height:1.45;gap:4px 8px}


  /* ---- 책 보기: 도구 줄을 한 줄로 줄여 쪽 면을 더 보여 줌 ---- */
  body[data-view=reader] .rail{
    flex-wrap:nowrap;min-height:0;height:auto;gap:6px;
    padding-top:max(4px, env(safe-area-inset-top,0px));
    padding-bottom:4px;
    padding-left:calc(8px + env(safe-area-inset-left,0px));
    padding-right:calc(8px + env(safe-area-inset-right,0px));
  }
  body[data-view=reader] .brand small{display:none}
  body[data-view=reader] .brandmark{font-size:1.25rem;padding:1px 6px}
  body[data-view=reader] nav{
    display:flex;flex-wrap:nowrap;overflow-x:auto;width:auto;flex:1 1 auto;min-width:0;gap:2px;
  }
  body[data-view=reader] nav button{white-space:nowrap;flex:0 0 auto;min-height:36px;padding:4px 8px;font-size:0.8rem}
  body[data-view=reader] header{flex:0 0 auto;height:auto;min-height:28px;padding:0 8px}
  body[data-view=reader] #offlineStatus,
  body[data-view=reader] #buyerMark{display:none}
  body[data-view=reader] #profileBtn,body[data-view=reader] .profileBtn{min-height:36px;padding:4px 8px}
  body[data-view=reader] main{
    padding:0;
  }
  body[data-view=reader] .bookToolbar{
    flex-wrap:nowrap;gap:6px;overflow-x:auto;
    padding:4px 8px 4px calc(8px + env(safe-area-inset-left,0px));
    padding-right:calc(8px + env(safe-area-inset-right,0px));
  }
  body[data-view=reader] .bookToolbar button,
  body[data-view=reader] #bookPrev,
  body[data-view=reader] #bookNext,
  body[data-view=reader] #bookTocBtn,
  body[data-view=reader] #bookIndexMenuBtn,
  body[data-view=reader] #bookSpread,
  body[data-view=reader] #bookFit{min-height:36px;min-width:36px;padding:4px 8px}
  body[data-view=reader] #bookJump{min-height:36px;font-size:16px}
  body[data-view=reader] .bookStage{
    padding:6px calc(8px + env(safe-area-inset-right,0px)) calc(6px + env(safe-area-inset-bottom,0px)) calc(8px + env(safe-area-inset-left,0px));
  }
}

/* 더 짧은 가로(Safari 도구 막대를 뺀 약 330px): 머리글을 더 줄임 */
@media (orientation: landscape) and (max-height: 360px) and (max-width: 900px){
  body[data-view=study] header{display:none}
  body[data-view=study] .studyhead .actions button{min-height:32px;padding:3px 7px}
  body[data-view=reader] header{display:none}
}
/* v2.0.24 구성 줄 부품 그림(책 ‘부품 그림 익히기’ 29개). 누르는 곳은 44px, 줄 높이는 그대로 */
.bjChip{display:inline-flex;align-items:center;vertical-align:baseline;min-height:44px;min-width:44px;margin:-11px 0;padding:0 1px;border:0;border-radius:0;background:transparent;font:inherit;line-height:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;box-shadow:none}
.bjChip .bjIn{display:inline-block;padding:0 6px;border:1.5px solid #5f9a52;border-radius:8px;background:#e8f2e2;color:#1e3d30;font-weight:600;line-height:1.45;white-space:nowrap}
.bjChip:hover .bjIn{background:#d5e8ce}
.bjChip:focus{outline:none}.bjChip:focus-visible .bjIn{outline:3px solid #2f6f52;outline-offset:2px}
.bjHint{font-size:0.75rem;color:var(--muted);margin:0 4px;white-space:nowrap}
.bujum .bj-top{display:flex;justify-content:space-between;align-items:center;margin:-4px 0 6px}
.bujum .bj-kicker{margin:0;font-weight:700;font-size:0.9286rem}
.bujum .bj-hun{font-size:1.1429rem;font-weight:600}
.bujum .bj-pic{margin:2px 0 4px;font-size:1rem;line-height:1.5}.bujum .bj-pic b{color:#234f40;font-size:0.9286rem;margin-right:6px}
.bujum .bj-h{font-size:0.9286rem;margin:12px 0 4px;color:var(--rust)}.bujum .bj-h small{font-weight:400;color:var(--muted);margin-left:4px}
.bujum .bj-src{margin:0;font-size:0.9643rem;line-height:1.65;word-break:keep-all;overflow-wrap:anywhere}
.bujum .bj-list{list-style:none;margin:4px 0;padding:0;display:flex;flex-wrap:wrap;gap:4px}
.bujum .bj-list button{min-width:44px;min-height:44px;padding:0 6px;font:1.25rem/1 NotoSC,HDEEXT,Noto,sans-serif;border-radius:8px}
.bujum .bj-list button.cur{background:var(--pale);border-color:#5f9a52;font-weight:700}
.bujum .bj-more{min-height:44px;margin-top:2px}
.bujum .bj-locked,.bujum .bj-note{font-size:0.8571rem;color:var(--muted);margin:6px 0 0;line-height:1.55}
@media(min-width:601px){.peek.bujum{width:min(430px,calc(100vw - 16px));max-height:min(88vh,640px)}}
@media(max-width:600px){.peek.bujum{max-height:88vh;padding-left:calc(16px + env(safe-area-inset-left));padding-right:calc(16px + env(safe-area-inset-right))}}
@media (orientation:landscape) and (max-height:500px){.peek.bujum{max-height:calc(100vh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}}

/* v2.0.25 → v2.0.26: 큰 글자 칸 안, 병음 바로 아래에 훈음(B안). v2.0.26부터 모든 화면(컴퓨터·태블릿·가로)에서 보임(박사님: 윈도우에서도).
   글자 칸(.hanbox)은 em 단위라 훈음도 em으로 맞추고, 글이 길어도 칸 너비를 늘리지 않게 width:0;min-width:100%(칸 안에서 줄바꿈). */
body[data-view=study] .hanbox .heroHun{display:block;width:0;min-width:100%;margin:0.05em 0 0;font-size:max(0.95rem,0.2em);font-weight:700;line-height:1.25;color:var(--ink);text-align:center;word-break:keep-all;overflow-wrap:anywhere}
body[data-view=study] .hanbox .heroHun small{display:inline;font-weight:400;font-size:.8em;color:#6b6b6b;margin-left:3px;font-family:NotoSC,'Noto Sans CJK SC',sans-serif;white-space:nowrap}
@media (max-width:500px) and (orientation:portrait){
 body[data-view=study] .flashcard>.actions:first-child{margin-bottom:8px!important}
 body[data-view=study] .heroMeaning .actions{margin-top:8px!important}
 body[data-view=study] .hanbox .heroHun{margin:2px 0 0;font-size:1.0714rem;line-height:1.2}
}
/* v2.0.26: 390px 등 좁은 화면 — 맨 위 줄의 ‘무료판 · 1권 · 오프라인 사용 가능’ 때문에 프로필 단추가 다음 줄로 밀려
   ‘제1권 · 교재 N쪽’ 글자 위에 겹치던 것(v2.0.22부터 있던 문제). 좁은 화면에서는 꾸밈 글(breadcrumb)을 숨겨 한 줄에 두고,
   그래도 넘치면 머리 줄이 늘어나도록(height:auto) 함. */
@media (max-width:500px){
 #breadcrumb{display:none}
 header,body[data-view=study] header,body[data-view=home] header{height:auto;min-height:44px;flex:0 0 auto;flex-wrap:wrap;row-gap:4px;padding:0}
 body[data-view=study] .studyhead{margin-top:2px}
 header .badge{margin-left:0;max-width:calc(100% - 8.5em);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 header #profileBtn{margin-left:auto}
}
