@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Baskerville:wght@400;700&display=swap');
:root{font-family:'DM Sans',Arial,sans-serif;color:#183b35;background:#edf1f0;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button{cursor:pointer;min-height:44px;border:1px solid #cedbd6;border-radius:8px;padding:9px 15px;background:white;color:inherit;font-size:14px;font-weight:600}button:hover{background:#e6eeea}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible{outline:3px solid #e3a732;outline-offset:3px}header{height:88px;padding:0 36px;display:flex;align-items:center;gap:22px;background:#fff;border-bottom:1px solid #dce5e0}.brand{display:flex;align-items:center;gap:12px;color:inherit;text-decoration:none;font-size:24px;font-weight:700;letter-spacing:-1px}.brand-icon{display:inline-flex;background:#173c37;color:white;border-radius:10px;width:38px;height:40px;align-items:center;justify-content:center;font-family:Georgia,serif;font-style:italic;font-size:30px}.brand-icon span{color:#bbdaba;margin-left:-5px}.prototype{font-size:12px;letter-spacing:1.7px;color:#677c74}header>.primary{margin-left:auto}.primary{background:#173c37;color:white;border-color:#173c37}.primary:hover{background:#27584e}.quiet{background:transparent;border-color:transparent;color:#506b61}.eyebrow{font-size:12px;font-weight:700;letter-spacing:2px;margin:0 0 10px}.document-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:30px 0 24px}h1{font-family:'Libre Baskerville',Georgia,serif;font-size:25px;letter-spacing:-.6px;font-weight:400;margin:0;overflow-wrap:anywhere}main{max-width:1600px;margin:0 auto;padding:0 36px;display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:30px}.reader{min-width:0}.toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px;background:#fff;border:1px solid #d7e1dc;border-radius:12px 12px 0 0}.tools{display:flex;gap:4px}.tools button{border:0;color:#51665e;background:transparent}.tools button span{font-size:18px;display:inline-block;width:22px}.tools button[aria-pressed=true]{background:#e1eee5;color:#124b3b}.touch-option{display:flex;align-items:center;font-size:13px;gap:5px;margin-left:auto;min-height:44px}.touch-option input{accent-color:#173c37;width:16px;height:16px}.toolbar>.quiet{font-size:13px}.page-scroll{height:min(65vh,860px);min-height:400px;overflow:auto;background:#dfe7e3;padding:30px 34px;overscroll-behavior:contain;scrollbar-width:thin}.paper{position:relative;max-width:820px;margin:0 auto;background:white;box-shadow:0 5px 24px #1e392318;border:1px solid #e3e6dc}.paper canvas{display:block;width:100%;height:auto}.paper svg{position:absolute;inset:0;width:100%;height:100%;touch-action:none;user-select:none;-webkit-user-select:none}.paper svg.moving{touch-action:auto}.reader-footer{display:flex;gap:16px;align-items:center;justify-content:space-between;background:#fff;padding:10px 17px;border-radius:0 0 12px 12px;border:1px solid #d7e1dc;font-size:13px;color:#4d695e}#status{max-width:75%;line-height:1.5}.pagination{display:flex;gap:10px;align-items:center;white-space:nowrap}.pagination button{border:0;background:transparent;font-size:22px;padding:0;width:30px}.hint{font-size:13px;color:#66776e;margin:14px 2px 20px;line-height:1.6}aside{padding-top:30px}.selection-panel{padding:24px;background:#fff;border:1px solid #d7e1dc;border-radius:12px}.section-label{display:flex;justify-content:space-between;align-items:baseline;gap:8px}.section-label .eyebrow{font-size:11px;letter-spacing:1.5px}.step{font-size:11px;color:#668272;letter-spacing:.5px}#emptySelection{padding:20px 0 24px}.empty-symbol{font:italic 46px Georgia,serif;position:relative;display:inline-block;margin:10px 0 26px;color:#69937c}.empty-symbol span{position:absolute;font-size:65px;left:-4px;bottom:-36px;color:#c2a333}h2{font-size:19px;margin:0 0 12px;letter-spacing:-.5px}#emptySelection h2{font-family:'Libre Baskerville',Georgia,serif;font-weight:400;font-size:20px}#emptySelection p{font-size:14px;line-height:1.8;color:#63756c;margin:0}.small-note{font-size:12px;line-height:1.7;color:#64736a;padding-top:18px;border-top:1px solid #e2e8e3;margin:0}.wordbook{margin-top:24px;padding:0 2px}.wordbook-heading{display:flex;align-items:center;justify-content:space-between}.wordbook-heading h2{margin:0;font-size:20px}.wordbook-heading h2 span{margin-left:5px;font-size:13px;border:1px solid #ccdbd2;border-radius:20px;padding:3px 8px}.session-note{font-size:12px;color:#63756c;margin:6px 0 18px;line-height:1.6}.empty-book{border:1px dashed #b8cbc0;border-radius:10px;padding:24px;text-align:center;color:#6d8175}.empty-book>span{font-size:24px}.empty-book p{font-size:14px;line-height:1.7}.word-card{background:white;border:1px solid #d7e1dc;border-radius:9px;margin-bottom:10px;padding:17px}.word-card h3{font-family:'Libre Baskerville',Georgia,serif;font-size:18px;overflow-wrap:anywhere;margin:0 0 10px}.word-card p{font-size:13px;line-height:1.6;color:#5c7365;white-space:pre-wrap;overflow-wrap:anywhere}.word-card small{font-size:12px;color:#6a7e71;overflow-wrap:anywhere}.word-card button{float:right;min-height:28px;padding:0 6px;border:0;color:#718579;font-size:19px}form{padding:18px 0 22px}form label{display:block;font-size:13px;font-weight:600;margin:0 0 8px}form label span{font-weight:400;color:#7b887e}form input,textarea{width:100%;border:1px solid #c7d7cc;background:#fafcf9;border-radius:7px;padding:12px;margin-bottom:17px;color:#183b35;font-size:16px}form input{font-family:'Libre Baskerville',Georgia,serif;font-size:22px}textarea{font-size:14px;line-height:1.7;resize:vertical}.wide{width:100%}footer{display:flex;justify-content:space-between;gap:20px;max-width:1600px;margin:auto;padding:20px 36px 24px;color:#6f8076;font-size:11px;letter-spacing:1.5px}footer span{letter-spacing:0;font-size:12px}.busy .paper{opacity:.55}.busy #ink{pointer-events:none}[hidden]{display:none!important}@media(min-width:1400px){main{grid-template-columns:minmax(0,1fr) 360px;gap:40px}.selection-panel{padding:30px}}@media(max-width:1050px){header{padding:0 22px}.prototype{display:none}main{padding:0 22px;gap:20px;grid-template-columns:minmax(0,1fr) 290px}.page-scroll{padding:22px 18px}.touch-option{margin-left:0}.toolbar>.quiet{margin-left:auto}h1{font-size:22px}.selection-panel{padding:20px}.document-heading>.quiet{display:none}}@media(max-width:760px){header{height:74px;padding:0 16px}.brand{font-size:21px}header button{font-size:13px;padding:9px 12px}main{display:block;padding:0 14px}.document-heading{padding:24px 0 18px}.page-scroll{min-height:330px;height:57vh;padding:16px 10px}aside{padding-top:6px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}.wordbook{margin-top:0}.section-label .step{display:none}.selection-panel{padding:18px}.tools button{padding:8px 10px}footer{padding:22px 16px;display:block;line-height:1.6}footer span{display:block;margin-top:10px}#emptySelection h2{font-size:18px}}@media(max-width:500px){aside{display:block}.wordbook{margin-top:24px}.reader-footer{padding:8px 10px}.hint{font-size:12px}.brand-icon{width:32px;height:34px}header{gap:10px}}

.dictionary{margin:0 0 22px;padding:0 0 20px;border-bottom:1px solid #dce5dd}.meaning-heading{display:flex;align-items:center;justify-content:space-between}.meaning-heading h3{font-size:15px;margin:0}.meaning-heading button{padding:6px 8px}#meaningStatus{font-size:13px;line-height:1.6;color:#627a6b;margin:8px 0}#meaningChoices{max-height:310px;overflow:auto;margin-bottom:14px}.meaning-choice{display:flex;align-items:flex-start;gap:8px!important;padding:10px!important;margin:0 0 7px!important;border:1px solid #d9e5dd;border-radius:7px;font-weight:400!important;cursor:pointer}.meaning-choice:has(input:checked){background:#edf5eb;border-color:#65977a}.meaning-choice input{width:16px!important;height:16px;margin:4px 0 0!important;flex-shrink:0;accent-color:#173c37}.meaning-choice>span{font-size:14px;line-height:1.6}.meaning-choice small{display:block;color:#55765d;font-size:12px;margin-bottom:3px}.meaning-choice em{display:block;color:#6b7c70;margin-top:6px;font-size:13px}#koreanLink{font-size:14px;color:#246747;display:inline-block;line-height:1.8}.dictionary-credit{font-size:12px;line-height:1.6;color:#677c6c}.dictionary-credit a,.saved-source{color:#246747}.saved-source{font-size:12px}.word-card .saved-meaning{color:#234833;font-size:14px;font-weight:500}

.meaning-card{padding:16px;background:#edf5eb;border:1px solid #c4d9c6;border-radius:8px}.meaning-card small{font-size:13px;color:#55765d}.meaning-card p{font-size:16px;line-height:1.7;margin:8px 0 0;color:#234833}.meaning-card em{display:block;margin-top:10px;font-size:14px;line-height:1.6}.meaning-navigation{display:flex;justify-content:space-between;gap:10px;margin-top:12px}.meaning-navigation button{font-size:13px;padding:9px 11px}#meaningChoices{max-height:none;overflow:visible}

.zoom-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:#f7faf7;border:1px solid #d7e1dc;border-top:0;padding:8px 12px}.zoom-toolbar button{padding:8px 12px;min-width:44px}.zoom-toolbar input{width:110px;accent-color:#173c37}.zoom-toolbar output{font-size:14px;font-variant-numeric:tabular-nums;min-width:44px;text-align:center}.zoom-toolbar span{margin-left:auto;font-size:12px;color:#64786b}.page-scroll{padding:0;touch-action:none;contain:layout paint;position:relative}.document-stage{padding:24px;min-width:100%;min-height:100%;box-sizing:border-box}.paper{max-width:none;border:0;outline:1px solid #e3e6dc;flex-shrink:0}.paper svg,.paper svg.moving{touch-action:none}.paper svg.moving{cursor:grab}.page-scroll:focus-visible{outline:3px solid #85a18c;outline-offset:-3px}@media(max-width:1050px){.zoom-toolbar span{display:none}}

header>.primary{margin-left:0}.crop-dialog{width:min(880px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:24px;border:1px solid #b9cec2;border-radius:16px;background:#f8faf7;color:#183b35;overflow:auto}.crop-dialog::backdrop{background:rgba(10,28,22,.72)}.crop-header,.crop-footer{display:flex;align-items:center;justify-content:space-between;gap:16px}.crop-header h2{font-family:'Libre Baskerville',Georgia,serif;font-size:24px;margin:0}.crop-help{font-size:14px;line-height:1.6;color:#5b7565}.crop-workspace{background:#dce5df;min-height:100px;padding:18px;text-align:center;border-radius:10px;overflow:hidden}.crop-stage{display:inline-block;vertical-align:middle;max-width:100%;line-height:0}.crop-stage canvas{display:block;max-width:100%;max-height:48dvh;width:auto;height:auto;touch-action:none;cursor:crosshair}.crop-footer{margin-top:18px}.crop-footer>div{display:flex;gap:8px}.crop-privacy{font-size:12px;line-height:1.6;color:#64786b;margin:14px 0 0}.crop-adjust{margin-top:12px;font-size:14px}.crop-adjust summary{cursor:pointer;padding:10px 0}.crop-sliders{display:grid;grid-template-columns:1fr 1fr;gap:10px 20px}.crop-sliders label{display:flex;align-items:center;gap:10px;font-size:13px}.crop-sliders input{min-width:0;flex:1;accent-color:#173c37}@media(max-width:600px){.crop-dialog{padding:16px}.crop-footer{flex-wrap:wrap}.crop-footer>.primary{margin-left:auto}.crop-header h2{font-size:21px}.crop-sliders{grid-template-columns:1fr}header{flex-wrap:wrap;height:auto;min-height:74px;padding-top:12px;padding-bottom:12px;gap:8px}.brand{font-size:19px}}

.korean-toggle{border:1px solid #afcbb7;background:#edf5eb;color:#20553c;width:100%;text-align:left}.korean-panel{background:#f0f5fc;border-left:3px solid #6586a5;border-radius:6px;padding:14px 16px;margin-top:10px}.korean-panel p{font-family:Arial,sans-serif;font-size:16px;line-height:1.9;margin:0 0 8px;word-break:keep-all;overflow-wrap:anywhere}.korean-panel small{font-size:12px;color:#647386}.korean-panel button{margin-top:10px}.word-card .saved-korean{font-size:15px;line-height:1.8;color:#244761;word-break:keep-all}.saved-source{display:block;margin-top:8px}

.pronunciation{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:10px 0}.pronunciation button{min-height:44px}.pronunciation-status{font-size:12px;color:#506b61;overflow-wrap:anywhere}

.word-field{position:relative;margin:12px 0 16px}.word-field #selectedText{margin:0;padding-right:58px}.word-field .pronunciation{position:absolute;right:6px;top:50%;transform:translateY(-50%);margin:0}.word-field .pronunciation button{width:44px;height:44px;padding:0;border:0;background:transparent;font-size:20px}.word-field .pronunciation button:hover{background:#e6eeea}.word-field .pronunciation-status:not(:empty){position:absolute;right:0;top:46px;z-index:2;width:230px;padding:8px;background:#fff;border:1px solid #cedbd6;border-radius:6px}

.sentence-box{border:1px solid #cedbd6;border-radius:8px;background:#f8faf7;margin-bottom:22px;overflow:hidden}.sentence-box #context{border:0;background:transparent;margin:0;border-radius:0;display:block;min-height:95px}.sentence-box #sentenceTranslation{position:relative;padding:0 14px 12px}.sentence-toggle{display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;margin-left:auto;background:transparent;border:0}.sentence-box .korean-panel{background:transparent;border:0;border-top:1px solid #dce5dd;border-radius:0;margin:0;padding:12px 0 0}.sentence-box .korean-panel p{font-size:14px}.sentence-box [hidden]{display:none!important}

.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}.sentence-label{display:flex!important;align-items:center;color:#506b61;margin-bottom:10px!important}.sentence-box #context{min-height:0;resize:none;overflow:hidden;padding-bottom:0}.sentence-box #sentenceTranslation{padding-bottom:12px}.meaning-card .sentence-toggle{margin:4px -6px -8px auto}.meaning-card [hidden]{display:none!important}

.meaning-card{background:#f8faf7;border-color:#cedbd6}.meaning-card .sentence-toggle{margin:4px -6px 0 auto}.meaning-card .korean-panel{background:transparent;border:0;border-top:1px solid #dce5dd;border-radius:0;margin:0;padding:12px 0 0}.meaning-card .korean-panel p{font-size:15px;line-height:1.9;margin:0}

#wordCount{border-radius:50%;min-width:44px;min-height:44px;margin-left:6px;padding:4px;font-size:14px;background:transparent}#wordList{margin-top:16px}#collectionView{max-width:1100px;margin:0 auto;padding:28px 24px}.collection-heading{display:flex;justify-content:space-between;margin-bottom:28px}#collectionTitle{margin-bottom:12px}#collectionCount{font-family:Arial,sans-serif;font-size:18px;color:#667969}#collectionList{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:20px;align-items:start}.word-card{display:flow-root}.word-card .saved-sentence{padding:12px;border:1px solid #dce5dd;border-radius:7px;background:#f8faf7}.word-card .collection-translation{float:none;display:flex;align-items:center;justify-content:center;width:44px;min-height:44px;margin-left:auto}.collection-korean{border-top:1px solid #dce5dd;margin-top:8px;padding-top:8px}.collection-korean p{color:#244761;font-size:15px;line-height:1.8}

.collection-korean .saved-sentence{font-size:13px;line-height:1.6;color:#5c7365}
.dictionary-fallback{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px}.dictionary-fallback img{display:block;width:50px;height:50px}.dictionary-credit{font-size:.875rem;line-height:1.5}
.reading-options{display:flex;flex-wrap:wrap;gap:4px;flex-shrink:0}.document-heading{flex-wrap:wrap}.document-heading>div:first-child{flex:1;min-width:220px}.reading-options button{font-size:14px}
.dictionary-fallback{justify-content:flex-end;gap:12px}.dictionary-icon{width:66px;height:66px;padding:7px;display:inline-flex;align-items:center;justify-content:center;background:white}.dictionary-icon[aria-pressed="true"]{border-color:#173c37;box-shadow:0 0 0 1px #173c37;background:#edf4ef}.dictionary-icon img{width:50px;height:50px}

.dictionary-attribution{width:50px;height:50px;flex-shrink:0;object-fit:contain}
.meaning-status-row{display:flex;align-items:center;justify-content:space-between;gap:10px;position:relative;min-height:44px}.meaning-status-row #meaningStatus{flex:1}.saved-reference{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:44px;height:44px;padding:7px;background:transparent;border:0;color:#218541}.saved-reference:hover,.saved-reference[aria-expanded="true"]{background:#e6f4e7}.saved-note{position:absolute;z-index:30;right:0;top:calc(100% + 6px);width:min(360px,100%);max-height:min(520px,65vh);overflow:auto;overscroll-behavior:contain;padding:14px;background:#fff8cf;border:1px solid #e3d893;border-radius:4px 4px 14px 4px;box-shadow:0 10px 28px #193b322b}.saved-note-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#575026;font-size:14px}.saved-note-heading button{border:0;background:transparent;min-width:44px;font-size:24px;padding:0}.saved-note .word-card{background:transparent;border:0;border-radius:0;box-shadow:none;padding:12px 0;margin:0}.saved-note .word-card+.word-card{border-top:1px solid #e3d893}.saved-note .word-card h3{font-size:22px;line-height:1.4;overflow-wrap:anywhere}.saved-note .word-card p{font-size:16px;line-height:1.65;overflow-wrap:anywhere}.saved-note .word-card .saved-sentence{background:#fffdf0;border-color:#e6dfb7}.saved-note .collection-korean{border-color:#e3d893}.saved-note .word-card .collection-translation{min-width:44px}
.word-entry{display:flow-root}.word-entry+.word-entry{border-top:1px solid #dce5dd;margin-top:18px;padding-top:18px}.meaning-number{display:inline-block;font-size:16px;margin-bottom:8px;color:#506b61}.saved-note{position:fixed;display:flex;flex-direction:column;right:auto;max-height:none;max-width:none;min-width:0;overflow:hidden;box-sizing:border-box;z-index:1000;padding:12px 14px 28px}.saved-note-heading{flex-shrink:0;cursor:grab;touch-action:none;user-select:none}.saved-note-heading:active{cursor:grabbing}.saved-note-entries{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding-right:4px}.note-resize{position:absolute;bottom:0;right:0;display:flex;justify-content:flex-end;align-items:flex-end;width:44px;height:44px;padding:4px;background:transparent;border:0;cursor:nwse-resize;touch-action:none;color:#81762e}.note-resize:hover{background:#e9dfa36b}.saved-note .word-entry+.word-entry{border-color:#e3d893}
.saved-example{position:relative}.saved-example .saved-sentence{padding-right:40px}.word-card .remove-example{position:absolute;right:5px;top:5px;float:none;width:30px;min-height:30px}.saved-example:empty{display:none}.saved-example:not(:has(.saved-sentence)){min-height:36px}
.word-card .collection-korean{border:0;border-radius:8px;background:#edf3fa;margin-top:10px;padding:14px 16px}.word-card .collection-korean>p:first-child{margin-top:0}.word-card .collection-korean>p:last-child{margin-bottom:0}.word-card .collection-korean .saved-sentence{background:#f7faff;border-color:#d7e3ee;color:#244761}.saved-note .collection-korean{border:0;background:#edf3fa}
.collection-word-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}.collection-word-heading h3{min-width:0;margin:0}.collection-word-heading .pronunciation{margin:0;flex-shrink:0;position:relative}.word-card .collection-word-heading .pronunciation button{float:none;display:flex;align-items:center;justify-content:center;width:44px;min-height:44px;padding:0;background:transparent;font-size:20px}.collection-word-heading .pronunciation-status:not(:empty){position:absolute;right:0;top:46px;width:220px;z-index:2;padding:8px;background:white;border:1px solid #cedbd6;border-radius:6px}
.collection-controls{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-top:20px}.collection-controls label{display:flex;flex-direction:column;gap:7px;font-size:13px;color:#506b61}.collection-controls label:first-child{flex:1;min-width:min(240px,100%)}.collection-controls input,.collection-controls select{font:inherit;font-size:14px;color:#183b35;background:white;border:1px solid #cedbd6;border-radius:8px;min-height:44px;padding:10px 12px;max-width:100%}.collection-controls input:focus-visible,.collection-controls select:focus-visible{outline:3px solid #e3a732;outline-offset:2px}
#collectionKoreanToggle{display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0}#collectionKoreanToggle[aria-pressed=true]{background:#edf3fa}.vocabulary-korean{font-size:15px;line-height:1.8;word-break:keep-all;color:#244761;margin-bottom:14px}.collection-controls{align-items:center}.collection-controls label{margin-left:auto}
#collectionKoreanToggle{width:144px;min-height:48px;padding:8px;background:#f3e3d0;border-color:#c9b49c}#collectionKoreanToggle img{display:block;width:120px;height:auto}#collectionKoreanToggle[aria-pressed=true]{background:#e1cfb7;border:2px solid #183b35;box-shadow:0 0 0 2px #183b3515}.collection-save-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0)}.collection-controls{margin-bottom:24px}
/* Floating dictionary switch stays available throughout collection practice. */
#collectionKoreanToggle{position:fixed;right:max(18px,env(safe-area-inset-right));top:34vh;z-index:100;width:152px;min-height:58px;padding:12px 16px 12px 10px;border:1px solid #c9b49c;border-radius:12px;background:#f3e3d0;box-shadow:0 4px 16px #183b3520;transition:background .18s,border-color .18s,box-shadow .18s}
#collectionKoreanToggle img{width:120px;max-width:100%;height:auto;mix-blend-mode:multiply;opacity:.7}
#collectionKoreanToggle::after{content:'';position:absolute;right:7px;top:7px;width:7px;height:7px;border-radius:50%;background:#8b897b;box-shadow:inset 0 0 0 1px #0002}
#collectionKoreanToggle[aria-pressed=true]{background:#baffd8;border:2px solid #238b60;box-shadow:0 0 0 3px #62f6ad30,0 0 22px #40e99565,0 5px 16px #183b3520}
#collectionKoreanToggle[aria-pressed=true] img{opacity:1}
#collectionKoreanToggle[aria-pressed=true]::after{background:#087d46;box-shadow:0 0 7px #00e981}
@media(min-width:900px){#collectionView{width:calc(100% - 200px);margin-left:max(0px,calc((100% - 1300px)/2));margin-right:200px}}
@media(max-width:899px){#collectionKoreanToggle{top:auto;bottom:calc(80px + env(safe-area-inset-bottom));right:max(12px,env(safe-area-inset-right));width:140px;min-height:52px}#collectionView{padding-bottom:160px}}
@media(prefers-reduced-motion:reduce){#collectionKoreanToggle{transition:none}}
#collectionList{overflow-anchor:none}html{scrollbar-gutter:stable}
.markable-card{position:relative}.markable-card .collection-word-heading{padding-right:30px}.known-checkbox{position:absolute;right:12px;top:12px;width:22px;height:22px;margin:0;accent-color:#238b60;cursor:pointer}.known-checkbox:focus-visible{outline:3px solid #e3a732;outline-offset:3px}@media(min-width:900px){#collectionKoreanToggle{top:var(--dictionary-top,34vh)}}.collection-heading>div{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.collection-word-heading{justify-content:flex-start;align-items:center;gap:8px}.collection-word-heading h3{flex:0 1 auto}.collection-word-heading .pronunciation{flex:0 0 auto}
#collectionDock{position:fixed;right:max(18px,env(safe-area-inset-right));top:var(--dictionary-top,34vh);z-index:100;display:flex;flex-direction:column;gap:12px;width:152px}#collectionDock #collectionKoreanToggle{position:relative;top:auto;right:auto;bottom:auto;width:100%}#collectionDock #knownCrownLink{width:100%;min-height:44px;box-shadow:0 4px 16px #183b3515}@media(max-width:899px){#collectionDock{top:auto;bottom:calc(80px + env(safe-area-inset-bottom));right:max(12px,env(safe-area-inset-right));width:140px}#collectionView{padding-bottom:220px}}
.markable-card .collection-word-heading{padding-right:0}.collection-word-heading .known-checkbox{position:static;flex:0 0 22px;align-self:center;margin:0 11px 0 auto;width:22px;height:22px}
.collection-heading select{font:inherit;font-size:14px;font-weight:600;min-height:44px;padding:10px 12px;border:1px solid #cedbd6;border-radius:8px;color:#183b35;background:white}.collection-heading label{display:flex;align-items:center}.collection-controls{margin:0}#collectionDock #knownCrownLink{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;padding:10px 8px;background:linear-gradient(145deg,#fffdf5,#f5e7ba);border-color:#d8bd74;color:#705321;min-height:76px}#knownCrownLink svg{flex-shrink:0;filter:drop-shadow(0 2px 2px #9a6b1925)}#knownCrownLabel{font-size:12px}#knownCrownCount{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 5px;border-radius:20px;background:#fff7dc;border:1px solid #d8bd74;font-size:12px}#collectionDock #knownCrownLink:hover{background:#f8e5aa}#knownCrownLink[aria-current=page]{box-shadow:0 0 0 2px #d8bd7440}
.word-card .collection-word-link{float:none;font:inherit;color:inherit;text-align:left;min-height:44px;padding:0;border:0;background:transparent;border-radius:3px}.word-card .collection-word-link:hover{text-decoration:underline;text-decoration-color:#9ab8a9;text-underline-offset:5px}.dictionary-view{width:min(780px,calc(100vw - 24px));max-height:90dvh;padding:0;border:1px solid #c7d7cc;border-radius:16px;background:#fafcf9;color:#183b35;overflow:auto;overscroll-behavior:contain}.dictionary-view::backdrop{background:#102b26a6}.dictionary-view-header{position:sticky;top:0;height:auto;min-height:100px;padding:20px 24px;gap:16px;z-index:1;flex-wrap:nowrap}.dictionary-view-header h2{font:26px 'Libre Baskerville',Georgia,serif;margin:4px 0;overflow-wrap:anywhere}.dictionary-view-header>div:first-child{min-width:0}.dictionary-view-header>button{margin-left:auto;flex-shrink:0;font-size:26px;width:44px;padding:0}.dictionary-view-header .eyebrow{font-size:10px}.dictionary-view-audio .pronunciation{margin:0}.dictionary-view-body{padding:8px 24px 28px}.dictionary-view-status{font-size:14px;color:#64786b}.dictionary-view-sense{padding:20px 0;border-bottom:1px solid #d7e1dc}.dictionary-view-sense h3{font-size:15px;color:#627c6b;margin:0 0 10px}.dictionary-view-sense p{font-size:17px;line-height:1.7;margin:8px 0}.dictionary-view-sense blockquote{margin:14px 0;padding:14px 18px;background:#edf1f0;border-radius:8px;line-height:1.7}.dictionary-view-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.dictionary-view-korean{margin-top:12px;padding:16px;background:#edf3fa;color:#244761;border-radius:8px;line-height:1.8}.dictionary-view-body>h3{margin-top:30px}.dictionary-view .dictionary-phonetic{font-size:14px;color:#64786b}@media(max-width:500px){.dictionary-view-header{padding:16px;gap:8px}.dictionary-view-header h2{font-size:22px}.dictionary-view-body{padding:8px 16px 20px}}
.dictionary-view-header{align-items:center;min-height:88px}.dictionary-view-header h2{margin:0}.dictionary-view-header>button,.dictionary-view-header .pronunciation button{border:0;background:transparent;box-shadow:none;display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0}.dictionary-view-header .pronunciation{align-items:center}.dictionary-view-header .pronunciation-status:empty{display:none}.dictionary-view-actions{align-items:center;margin:0 0 8px;gap:4px}.dictionary-view-actions h3{margin:0 8px 0 0}.dictionary-view-actions button{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;padding:0;border:0;background:transparent;font-size:26px}.dictionary-view-actions button:hover,.dictionary-view-header button:hover{background:#e6eeea}.dictionary-view-actions button:focus-visible{outline:3px solid #e3a732;outline-offset:2px}
.example-credit{display:block;margin-top:12px;font-size:11px;line-height:1.5;color:#64786b}.example-credit a{color:inherit;text-underline-offset:3px}
/* Keep the word header visible while each dictionary section scrolls independently. */
.dictionary-view{height:min(800px,88dvh);width:min(780px,calc(100vw - 24px));min-width:min(340px,calc(100vw - 24px));min-height:min(420px,calc(100dvh - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);resize:both;overflow:hidden}
.dictionary-view[open]{display:flex;flex-direction:column}
.dictionary-view-header{position:relative;flex:0 0 auto;min-height:72px;padding:14px 24px}
.dictionary-view-body{flex:1;min-height:0;display:grid;grid-template-rows:minmax(0,3fr) minmax(0,2fr);padding:0}
.dictionary-meanings-pane,.dictionary-examples-pane{min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;padding:10px 24px 16px}
.dictionary-examples-pane{background:#f0f5f3;border-radius:12px 12px 0 0}
.dictionary-examples-pane>h3{font-size:16px;margin:4px 0 8px}
.dictionary-view-status{margin:0 0 4px;font-size:13px}
.dictionary-view-sense{border-bottom:0;padding:8px 0}
.dictionary-view-actions{margin:0;gap:4px}
.dictionary-view-sense p{margin:2px 0 8px}
.dictionary-view-sense blockquote{margin:4px 0 10px}
.dictionary-meanings-pane:focus-visible,.dictionary-examples-pane:focus-visible{outline:2px solid #9ab8a9;outline-offset:-3px}
@media(max-width:500px){.dictionary-view-header{padding:12px 16px}.dictionary-meanings-pane,.dictionary-examples-pane{padding:8px 16px 14px}}
.dictionary-splitter{height:16px;cursor:row-resize;touch-action:none;display:flex;align-items:center;justify-content:center;background:#e7eeeb;user-select:none}.dictionary-splitter::after{content:'';width:48px;height:4px;border-radius:4px;background:#9ab3a6}.dictionary-splitter:hover,.dictionary-splitter:focus-visible{background:#d6e4dd;outline:2px solid #789f8d;outline-offset:-2px}.example-sentence-row{display:flex;align-items:center;gap:8px;background:#edf1f0;border-radius:8px;padding:8px 12px}.dictionary-view-sense .example-sentence-row blockquote{flex:1;min-width:0;margin:0;padding:6px 4px;background:transparent;overflow-wrap:anywhere}.example-eye{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;padding:0;border:0;background:transparent}.example-eye:hover{background:#dce8e1}
.reading-options{position:relative}.readings-menu summary{cursor:pointer;list-style:none;padding:10px 16px;border:1px solid #cedbd6;border-radius:8px;background:white;font-size:14px;font-weight:600;min-height:44px}.readings-menu summary::-webkit-details-marker{display:none}.readings-panel{position:absolute;right:0;top:calc(100% + 8px);z-index:40;width:min(380px,calc(100vw - 40px));max-height:65vh;overflow:auto;padding:16px;background:#fff;border:1px solid #cedbd6;border-radius:12px;box-shadow:0 12px 30px #183b3526}.readings-panel>p{font-size:12px;color:#64786b;margin:0 0 12px}.readings-panel label{display:flex;align-items:center;gap:8px;margin-bottom:12px;font-size:14px}.readings-panel input{accent-color:#173c37}.keep-reading{width:100%;margin-bottom:12px}.reading-row{display:flex;gap:4px;margin:6px 0}.reading-row button:first-child{flex:1;min-width:0;text-align:left;border:0;background:#f3f7f4;overflow-wrap:anywhere}.reading-row button[aria-current=true]{background:#e0eee6}.reading-row button:last-child{flex:0 0 44px;border:0;font-size:22px;padding:0}.readings-message{margin-top:12px!important}.readings-menu summary:focus-visible{outline:3px solid #e3a732;outline-offset:2px}
.pagination .page-jump{display:flex;align-items:center;gap:8px;margin:0;padding:0}.pagination .page-jump input{width:64px;min-height:40px;padding:6px;margin:0;font:inherit;text-align:center;background:white;border:1px solid #c7d7cc;border-radius:6px}.pagination .page-jump button{font-size:13px;width:auto;min-height:40px;padding:6px 10px;border:1px solid #cedbd6;border-radius:6px;background:white}.pagination .page-jump input:focus-visible{outline:3px solid #e3a732;outline-offset:2px}

.base-form-link{font:inherit;color:var(--ink,#193b32);background:transparent;border:0;border-radius:3px;padding:0 2px;min-height:0;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.base-form-link:hover{color:#16815d}.base-form-link:focus-visible{outline:2px solid #16815d;outline-offset:3px}

.meaning-status-row .meaning-navigation{flex-shrink:0;gap:4px;margin:0;align-items:center}.meaning-status-row .meaning-navigation[hidden]{display:none}.meaning-status-row .meaning-navigation button{display:inline-flex;align-items:center;justify-content:center;width:36px;height:40px;padding:8px;border:0;background:transparent;color:#173c37}.meaning-status-row .meaning-navigation button:hover:not(:disabled){background:#edf5eb}.meaning-status-row .meaning-navigation button:disabled{opacity:.3;cursor:default}.meaning-status-row #meaningStatus{min-width:0}

body > header .document-heading {
  flex: 1 1 0;
  min-width: 0;
  flex-wrap: nowrap;
  padding: 0;
  margin-inline: clamp(0px, 2vw, 36px);
}
body > header .document-heading > div:first-child { min-width: 0; }
body > header .document-heading h1 {
  font-size: clamp(17px, 1.5vw, 24px);
  line-height: 1.25;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin: 0;
}
body > header .document-heading .eyebrow { margin: 0 0 2px; }
body > header .document-heading[hidden] { display: none; }
#readingView { padding-top: 14px; }
#readingView > aside { padding-top: 0; }

#readingView > .reader {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: calc(100vh - var(--reading-header-height, 88px) - 14px);
  height: calc(100dvh - var(--reading-header-height, 88px) - 14px);
  align-self: start;
}
#readingView #pageScroll { height: auto; min-height: 0; }

@media (max-width: 800px) {
  body > header { flex-wrap: wrap; height: auto; padding-block: 8px; }
  body > header .document-heading { order: 1; flex-basis: 100%; margin: 0; }
}

.reader > .zoom-toolbar { border-top: 1px solid #d7e1dc; border-radius: 12px 12px 0 0; }
.wordbook > #clear { margin-top: 14px; }

#collectionDock #collectionKoreanToggle,
#collectionDock #knownCrownLink {
  width: 100%;
  height: 58px;
  min-height: 58px;
  padding: 10px 16px;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
#collectionDock #knownCrownLabel { font: inherit; }

/* Shared dock appearance and active neon indicator. */
#collectionDock #collectionKoreanToggle,
#collectionDock #knownCrownLink {
  position: relative;
  border: 1px solid #c9b49c;
  border-radius: 12px;
  background: #f3e3d0;
  color: #183b35;
  box-shadow: 0 4px 16px #183b3520;
  transition: background .18s, border-color .18s, box-shadow .18s;
}
#collectionDock #knownCrownLink::after {
  content: '';
  position: absolute;
  right: 7px;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8b897b;
  box-shadow: inset 0 0 0 1px #0002;
}
#collectionDock #collectionKoreanToggle[aria-pressed=true],
#collectionDock #knownCrownLink[aria-current=page] {
  background: #baffd8;
  border: 2px solid #238b60;
  box-shadow: 0 0 0 3px #62f6ad30, 0 0 22px #40e99565, 0 5px 16px #183b3520;
}
#collectionDock #knownCrownLink[aria-current=page]::after {
  background: #087d46;
  box-shadow: 0 0 7px #00e981;
}
@media (prefers-reduced-motion: reduce) {
  #collectionDock #collectionKoreanToggle,
  #collectionDock #knownCrownLink { transition: none; }
}
.word-quiz{width:min(580px,92vw);max-height:85dvh;overflow:auto;border:1px solid #cedbd6;border-radius:18px;padding:28px;color:#183b35;background:#fafcf9}.word-quiz::backdrop{background:#183b3580}.quiz-top{display:flex;align-items:center;justify-content:space-between}.word-quiz p{line-height:1.6}.word-quiz h1{margin:24px 0}.quiz-choices{display:grid;gap:12px;margin:22px 0}.quiz-choices button{text-align:left;padding:16px}.word-quiz>button{margin:8px 8px 0 0}.word-quiz select{font:inherit;padding:8px}
#collectionDock #quizButton{width:100%;height:58px;min-height:58px;padding:10px 16px;border:1px solid #c9b49c;border-radius:12px;background:#f3e3d0;color:#183b35;font:600 14px/1.4 'DM Sans',Arial,sans-serif;box-shadow:0 4px 16px #183b3520}#collectionDock #quizButton:hover{background:#e8d6bf}.quiz-languages{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:24px}.quiz-languages button{min-height:64px;font-size:18px}@media(max-width:899px){#collectionDock{bottom:calc(18px + env(safe-area-inset-bottom))}}
#collectionDock #quizButton{position:relative;transition:background .18s,border-color .18s,box-shadow .18s}
#collectionDock #quizButton::after{content:'';position:absolute;right:7px;top:7px;width:7px;height:7px;border-radius:50%;background:#8b897b;box-shadow:inset 0 0 0 1px #0002}
#collectionDock #quizButton[aria-pressed=true]{background:#baffd8;border:2px solid #238b60;box-shadow:0 0 0 3px #62f6ad30,0 0 22px #40e99565,0 5px 16px #183b3520}
#collectionDock #quizButton[aria-pressed=true]::after{background:#087d46;box-shadow:0 0 7px #00e981}
@media(prefers-reduced-motion:reduce){#collectionDock #quizButton{transition:none}}
.quiz-choices button:disabled{opacity:1}.quiz-choices .quiz-correct:disabled{background:#d5f6df;border:2px solid #238b60;color:#12472e}.quiz-choices .quiz-wrong:disabled{background:#ffe7e4;border-color:#b34d42}.quiz-example{padding:12px 16px;background:#edf3f1;border-radius:10px}.quiz-example strong{font-weight:700;color:#123e33}.quiz-example a{font-size:12px;color:#567269}

.dictionary-view-body.dictionary-view-meanings-only{grid-template-rows:minmax(0,1fr)}
/* Collection navigation shares the main header with the reading navigation. */
body > header #collectionHeading{display:flex;align-items:center;justify-content:flex-start;flex:1;min-width:0;gap:12px;margin:0;flex-wrap:wrap}
body > header #collectionHeading[hidden]{display:none}
#collectionHeading #collectionTitle{margin:0 8px 0 0;font-size:22px;white-space:nowrap}
#collectionHeading > div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#collectionHeading button,#collectionHeading select{white-space:nowrap}
@media(max-width:1250px){body > header:has(#collectionHeading:not([hidden])){height:auto;min-height:88px;flex-wrap:wrap;padding-block:12px}body > header #collectionHeading{flex-basis:100%}}
#collectionHeading .collection-header-actions{margin-left:auto;display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
#collectionHeading .collection-header-actions > div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
body > header:has(#collectionHeading:not([hidden])){padding-right:max(18px,env(safe-area-inset-right))}
body > header #collectionHeading{margin-left:clamp(24px,3vw,64px)}
#collectionHeading .wordbook-search{display:flex;align-items:center;gap:8px;width:clamp(200px,22vw,340px);max-width:100%;min-height:44px;padding:0 12px;border:1px solid #cedbd6;border-radius:8px;background:#fff}
#collectionHeading .wordbook-search:focus-within{outline:2px solid #9ab8a9;outline-offset:2px}
#collectionSearch{width:100%;min-width:0;min-height:42px;padding:8px 0;border:0;outline:none;background:transparent;color:#183b35;font:400 14px 'DM Sans',Arial,sans-serif;box-shadow:none}
#collectionSearch::placeholder{color:#71857d}
#collectionHeading #collectionCount{flex-shrink:0;margin:0;font:400 13px 'DM Sans',Arial,sans-serif;color:#667969;white-space:nowrap}
@media(max-width:1250px){body > header #collectionHeading{margin-left:0}#collectionHeading .wordbook-search{flex:1;max-width:340px}}
#collectionHeading .collection-header-actions .wordbook-search{flex:0 0 180px;width:180px;max-width:100%;height:44px;min-height:44px;flex-wrap:nowrap;padding:0 12px;gap:6px;border:1px solid #cedbd6;border-radius:8px;background:#fff}
#collectionHeading #collectionSearch{height:42px;min-height:0;font-size:14px;font-weight:600;line-height:20px;padding:10px 0}
#collectionHeading .wordbook-search #collectionCount{font-size:12px;line-height:20px;white-space:nowrap}
/* Keep Wordbook navigation available without removing its layout space. */
body > header:has(#collectionHeading:not([hidden])){position:sticky;top:0;z-index:110;box-shadow:0 2px 10px #183b350a}
/* Let the word grid use the viewport, reserving a lane for its controls. */
:root{--wordbook-gutter:clamp(24px,3vw,64px)}
#collectionView{max-width:none;width:100%;margin:0;padding-left:var(--wordbook-gutter);padding-right:var(--wordbook-gutter)}
#collectionList{grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr))}
@media(min-width:900px){#collectionView{padding-right:calc(var(--wordbook-gutter) + 152px + max(18px,env(safe-area-inset-right)))}}
@media(max-width:599px){:root{--wordbook-gutter:16px}}
.word-quiz{padding:0;overflow:hidden;max-width:calc(100vw - 24px)}
.word-quiz[open]{display:grid;grid-template-columns:minmax(0,1fr)}
.word-quiz.with-word-card{width:min(960px,calc(100vw - 24px));grid-template-columns:minmax(0,340px) minmax(0,580px)}
.quiz-main{min-width:0;max-height:85dvh;overflow-y:auto;padding:28px}
.quiz-word-card{min-width:0;max-height:85dvh;overflow-y:auto;padding:16px;background:#edf1f0;border-right:1px solid #cedbd6}
.quiz-word-card[hidden]{display:none}
.quiz-card-close{display:block;margin-left:auto;margin-bottom:8px;width:36px;min-height:36px;padding:0;border:0;background:transparent;font-size:24px}
.quiz-word-card .word-card{padding:16px;border-radius:12px}
.quiz-word-heading{display:flex;align-items:center;gap:12px}
.quiz-word-heading h1{min-width:0}
.quiz-word-link{font:inherit;text-align:left;color:inherit;padding:0;border:0;background:transparent;overflow-wrap:anywhere}
.quiz-word-link:hover{text-decoration:none;background:transparent;cursor:pointer}
.quiz-word-heading .pronunciation{flex-shrink:0;margin:0}
.quiz-word-heading .pronunciation button{border:0;background:transparent;padding:0;width:44px}
.quiz-main>button{margin:8px 8px 0 0}
@media(max-width:700px){.word-quiz.with-word-card{grid-template-columns:minmax(0,1fr);overflow-y:auto}.word-quiz.with-word-card .quiz-main{max-height:none;overflow:visible}.quiz-word-card{max-height:40dvh;border-right:0;border-bottom:1px solid #cedbd6}.quiz-main{padding:20px}}
/* The quiz keeps its dimensions while its independent card floats above it. */
.word-quiz{overflow:visible}
.word-quiz .quiz-main{border-radius:18px}
.quiz-floating-card{position:fixed;z-index:1;width:340px;height:420px;max-height:none;background:#fafcf9;border:1px solid #cedbd6;border-radius:12px;box-shadow:0 12px 36px #183b3533}
.quiz-floating-card[hidden]{display:none}
.quiz-floating-card .saved-note-heading{color:#183b35;padding-bottom:8px;border-bottom:1px solid #dce5dd}
.quiz-floating-card .note-resize{color:#506b61}
.quiz-floating-card .saved-note-heading{height:16px;min-height:16px;padding:0;border:0;position:relative}
.quiz-floating-card .saved-note-heading button{position:absolute;right:-6px;top:-8px;z-index:2;width:32px;min-width:32px;min-height:32px;height:32px;font-size:22px}
.quiz-floating-card .saved-note-heading::before{content:'';width:32px;height:3px;border-radius:2px;background:#cedbd6;margin:auto}
.quiz-floating-card .collection-word-heading{padding-right:24px}
.quiz-progress{font-size:18px;font-weight:600;color:#64786b;font-variant-numeric:tabular-nums}
.quiz-answer-translation{position:relative;min-width:0}
.quiz-answer-translation>.quiz-correct{width:100%;padding-right:60px}
.quiz-choices .quiz-answer-eye{position:absolute;right:10px;top:8px;width:44px;height:44px;padding:10px;display:flex;align-items:center;justify-content:center;border:0;background:transparent;color:#183b35}
.quiz-choices .quiz-answer-eye:hover{background:#bceacb}
.quiz-answer-korean{margin:8px 0 0;padding:12px 16px;background:#edf3fa;color:#244761;border-radius:8px}

.saved-sentence .pronunciation,.spoken-sentence .pronunciation{display:inline-flex;vertical-align:middle;margin:0 0 0 6px}.saved-sentence .pronunciation button,.spoken-sentence .pronunciation button,.example-sentence-row .pronunciation button{float:none;width:44px;height:44px;padding:0;border:0;background:transparent;font-size:20px}.example-sentence-row .pronunciation{margin:0;flex:0 0 auto}.saved-sentence .pronunciation-status,.spoken-sentence .pronunciation-status{max-width:180px}

.selection-sentence-row{display:flex;align-items:flex-start;gap:4px;padding-right:8px}.sentence-box .selection-sentence-row #context{flex:1;min-width:0;width:0}.selection-sentence-row .pronunciation{flex:0 0 44px;position:relative;margin:8px 0 0}.selection-sentence-row .pronunciation button{width:44px;height:44px;padding:0;border:0;background:transparent;font-size:20px}.selection-sentence-row .pronunciation-status:not(:empty){position:absolute;right:0;top:44px;z-index:2;width:180px;padding:8px;background:#fff;border:1px solid #cedbd6;border-radius:6px}

/* Keep the reading actions together with one consistent gap. */
.reading-header-actions{display:flex;align-items:center;gap:12px;flex-shrink:0;margin-left:auto}
.reading-header-actions .primary{margin:0}
body > header .document-heading{margin-inline-end:0}
body > header:has(#readingHeading[hidden]) .header-account-actions{display:none}
@media(max-width:800px){.reading-header-actions{order:2;flex-wrap:wrap;justify-content:flex-end;max-width:100%}}

/* Fit the page to the reader with a small, consistent outer gutter. */
.progress-statistics{grid-column:1/-1;padding:24px;background:white;border:1px solid #cedbd6;border-radius:12px}.progress-statistics>p{color:#63756c;line-height:1.6}.statistics-levels{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;margin-top:24px}.statistics-levels a{display:grid;gap:14px;padding:20px;border:1px solid #cedbd6;border-radius:9px;text-decoration:none;color:#183b35;background:#f8faf7}.statistics-levels a:hover{background:#e1eee5}.statistics-levels strong{font-size:32px}.statistics-levels progress{width:100%;height:8px;accent-color:#238b60}.statistics-all,#progressBack{color:#183b35}#progressBack{display:inline-block;margin-bottom:18px}#progressBack[hidden]{display:none}
.removable-word-card{position:relative}.word-card .remove-word{position:absolute;right:3px;top:3px;float:none;display:flex;align-items:center;justify-content:center;width:24px;height:24px;min-height:24px;padding:0;background:transparent;border:0;border-radius:5px;font-size:20px;line-height:1}.word-card .remove-word:hover{background:#fbe9e6;color:#a33b31}.word-card .saved-example .saved-sentence{padding-right:12px}.word-card .example-editor{padding-right:12px}
.reading-example-editor .example-key-button{float:none;display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;min-height:34px;padding:4px;margin:0;border:1px solid #cbdcd5;border-radius:7px;background:#fff;color:#193f39}.reading-example-editor .example-key-button:hover{background:#e4efe9}.sentence-box .reading-example-editor{padding:12px;border:0;background:transparent}.sentence-box #context[readonly]{cursor:text}
.document-stage{padding:16px 8px}

.editable-example{cursor:text}.editable-example .saved-sentence:focus-visible{outline:2px solid #218541;outline-offset:2px}.example-editor{padding:12px 40px 12px 12px;border:1px solid #dce5dd;border-radius:7px;background:#f8faf7;cursor:auto}.example-editor textarea{width:100%;box-sizing:border-box;resize:vertical;font:inherit;line-height:1.5}.example-editor-actions{display:flex;justify-content:flex-end;gap:6px;margin-top:8px}.word-card .example-key-button{float:none;display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;min-height:34px;padding:4px;margin:0;border:1px solid #cbdcd5;border-radius:7px;background:#fff;color:#193f39}.word-card .example-key-button:hover{background:#e4efe9}.example-key-button:focus-visible{outline:2px solid #218541;outline-offset:2px}.example-editor p:empty{display:none}

.quiz-hint {
  margin-top: 1rem;
  border: 0;
  background: transparent;
  padding: 9px 0;
  color: #506b61;
  font-size: 12px;
  font-style: italic;
  font-weight: 400;
  font-synthesis: style;
}
.quiz-hint:hover {
  background: transparent;
  text-decoration: underline;
}
.additional-example { margin-top: 12px; padding-top: 10px; border-top: 1px solid #d7e1dc; }
.additional-example summary { cursor: pointer; font-size: 13px; color: #506b61; padding: 8px 0; }
.additional-example summary:focus-visible { outline: 3px solid #e3a732; outline-offset: 3px; }
.word-card .example-feedback, .quiz-example .example-feedback {
  display: block; float: none; border: 0; background: transparent;
  font-size: 12px; font-weight: 400; color: #506b61; padding: 8px 0; min-height: 44px;
}
.example-feedback:hover { text-decoration: underline; }
.additional-example .example-credit { display: block; font-size: 11px; }
.meaning-reports { margin: 12px 24px; padding: 10px 16px; border: 1px solid #d7e1dc; border-radius: 10px; background: #f8faf7; color: #506b61; font-size: 13px; }
.meaning-reports summary { cursor: pointer; min-height: 28px; padding: 5px 0; }
.meaning-reports.has-reports { background: #fff5df; border-color: #d9bd7d; }
.meaning-report { padding: 16px 0; border-top: 1px solid #d7e1dc; color: #183b35; }
.meaning-report p, .meaning-report blockquote { line-height: 1.6; overflow-wrap: anywhere; }
.meaning-report blockquote { margin: 12px 0; padding: 12px; background: #edf3ee; border-radius: 6px; }
.meaning-report small { display: block; margin: 10px 0; }
.meaning-report a { color: inherit; }
.example-feedback + [role=status] { display: block; font-size: 12px; line-height: 1.5; }
.admin-entry { position: fixed; left: 20px; bottom: 18px; z-index: 20; padding: 10px 4px; color: #506b61; font-size: 13px; text-decoration: none; }
.admin-entry:hover { text-decoration: underline; }
.admin-page { display: block; max-width: 1000px; margin: 32px auto; padding: 0 20px; }
.admin-page .meaning-reports { margin: 0; padding: 24px; }
.admin-page .meaning-reports h2 { font-size: 20px; }
.admin-back { margin-left: auto; color: #506b61; font-size: 14px; }

.quiz-word-link:disabled{opacity:1;cursor:default;text-decoration:none}
.quiz-word-link:enabled{text-decoration:none;background:transparent;cursor:pointer}

/* Private pilot dashboard */
body[data-admin-page] .admin-page{max-width:1260px;padding:0 24px 48px}
.admin-heading,.admin-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.admin-heading h2{font-family:Georgia,serif;font-size:34px;margin:4px 0 16px}.admin-eyebrow{font-size:11px;letter-spacing:.14em;color:#5b756a;margin:0}
.admin-note{color:#60766d;font-size:13px;line-height:1.65}.admin-note a{color:#27574a}.admin-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:24px 0}
.admin-kpis article{background:#fff;border:1px solid #d4e0d9;border-radius:14px;padding:20px;display:flex;flex-direction:column;gap:10px}.admin-kpis strong{font-size:30px;color:#183b35}.admin-kpis span{font-size:13px}.admin-kpis small{font-size:12px;color:#60766d;line-height:1.5}
.admin-section{background:#fff;padding:24px;border:1px solid #d4e0d9;border-radius:14px;margin:18px 0}.admin-section h3{font-size:20px;margin:0 0 10px}.admin-table-wrap{overflow-x:auto;margin-top:18px}.admin-table-wrap table{border-collapse:collapse;width:100%;font-size:13px;text-align:left}.admin-table-wrap th{font-weight:600;color:#60766d;white-space:nowrap}.admin-table-wrap td,.admin-table-wrap th{padding:14px 10px;border-bottom:1px solid #e4ebe7;vertical-align:top}.admin-table-wrap td small{display:block;max-width:320px;margin-top:6px;line-height:1.5;color:#60766d}.admin-tester{min-width:150px}.admin-tester input{width:155px;padding:8px;font:inherit}.admin-tester button{font-size:11px;padding:6px 8px;margin:6px 0}.admin-controls select{font:inherit;padding:10px;border:1px solid #cadbd3;border-radius:8px;background:white;color:inherit}.admin-controls button{font-size:13px}.admin-page .meaning-reports{margin-top:18px}
@media(max-width:800px){.admin-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-section{padding:18px}.admin-heading h2{font-size:28px}}
@media(max-width:420px){.admin-kpis{grid-template-columns:1fr}body[data-admin-page] .admin-page{padding:0 12px 32px}.admin-controls{align-items:stretch}}

.selection-panel:has(> #emptySelection:not([hidden])){padding:0;border:0;border-radius:0;background:transparent;overflow:hidden}
#emptySelection{padding:0}
.reading-welcome-image{display:block;width:100%;height:auto}

#pasteImage{margin-left:auto}

.account-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border:1px solid #cedbd6;border-radius:8px;background:white;color:inherit;font-size:14px;font-weight:600;text-decoration:none;white-space:nowrap;flex-shrink:0}.account-link:hover{background:#e6eeea}

.header-account-actions{display:flex;align-items:center;gap:12px;margin-left:auto;flex-shrink:0}.header-account-actions .reading-header-actions{margin-left:0}@media(max-width:800px){.header-account-actions{flex-wrap:wrap;justify-content:flex-end;max-width:100%}}

.qa-dialog{width:min(600px,calc(100% - 32px));max-height:85dvh;overflow:auto;border:1px solid #cedbd6;border-radius:16px;padding:28px;background:#f8faf7;color:#183b35}.qa-dialog::backdrop{background:#183b3566}.qa-top,.qa-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.qa-top h2{margin:0;font:26px Georgia,serif}.qa-dialog>p{font-size:14px;line-height:1.7;color:#63756c}.qa-message{background:white;border:1px solid #d7e1dc;border-radius:10px;padding:16px;margin:12px 0}.qa-message.admin{background:#e6f1ea}.qa-message p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}.qa-message small{color:#64786b}.qa-inbox{grid-column:1/-1;background:white;padding:24px;border:1px solid #cedbd6;border-radius:12px}.qa-threads{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}.qa-notice{font-size:14px}.qa-inbox textarea,.qa-dialog textarea{margin-top:12px}.qa-messages{max-height:40vh;overflow:auto}
.account-form{margin:0;display:flex}.account-form .account-link{font-family:inherit;cursor:pointer}
.reading-language-controls{grid-column:1/-1;display:flex;justify-content:flex-end;padding-top:14px;margin-bottom:-16px}
#readingLanguageToggle{position:relative;width:120px;height:44px;min-height:44px;padding:9px 15px;border:1px solid #c9b49c;border-radius:8px;background:#f3e3d0;color:#183b35;box-shadow:0 4px 16px #183b3520}
#readingLanguageToggle::after{content:'';position:absolute;right:7px;top:7px;width:7px;height:7px;border-radius:50%;background:#8b897b;box-shadow:inset 0 0 0 1px #0002}
#readingLanguageToggle[aria-pressed=true]{background:#baffd8;border:2px solid #238b60;box-shadow:0 0 0 3px #62f6ad30,0 0 22px #40e99565,0 5px 16px #183b3520}
#readingLanguageToggle[aria-pressed=true]::after{background:#087d46;box-shadow:0 0 7px #00e981}

@media(min-width:1900px){.reading-language-controls{position:fixed;right:36px;top:calc(var(--reading-header-height,88px) + 14px);padding:0;margin:0;z-index:20}}
#collectionDock{width:120px}
#collectionDock #collectionKoreanToggle,#collectionDock #quizButton,#collectionDock #knownCrownLink{height:44px;min-height:44px;padding:9px 15px;border-radius:8px}
#wordCount{border-radius:22px;min-width:92px;padding:4px 12px;white-space:nowrap}
.usage-note,.usage-summary{font-size:13px;line-height:1.6;color:#63756c}.usage-note{margin:10px 2px}.usage-summary{display:flex;flex-wrap:wrap;gap:8px 24px;margin-bottom:18px}
#wordCount{min-width:44px;border-radius:22px;padding:4px 12px}
.example-source-details{font-size:12px;color:#63756c;margin:10px 0}.example-source-details summary{cursor:pointer}.example-source-details .example-credit{display:block;margin-top:6px}

.demo-note{margin:12px 16px;color:#657d72;font-size:14px}[data-demo="true"] #savedHighlights,[data-demo="true"] #highlights{display:none}
#demoWords rect{cursor:pointer;outline:none;stroke:none}
#demoWords rect:hover,#demoWords rect:focus-visible,#demoWords rect[data-highlighted="true"]{fill:#e8c446;fill-opacity:.32}

nav.admin-entry{display:flex;gap:20px}nav.admin-entry a{color:inherit;text-decoration:none}

/* Pink Wordbook controls, with a green neon active indicator. */
#collectionDock #collectionKoreanToggle,
#collectionDock #quizButton,
#collectionDock #knownCrownLink {
  background:#fbe3ed;
  border-color:#d6a3b8;
  color:#543344;
  box-shadow:0 4px 16px #79344e20;
}
#collectionDock #collectionKoreanToggle:hover,
#collectionDock #quizButton:hover,
#collectionDock #knownCrownLink:hover { background:#f8d1e2; }
#collectionDock #collectionKoreanToggle::after,
#collectionDock #quizButton::after,
#collectionDock #knownCrownLink::after { background:#ab8193;box-shadow:inset 0 0 0 1px #0002; }
#collectionDock #collectionKoreanToggle[aria-pressed=true],
#collectionDock #quizButton[aria-pressed=true],
#collectionDock #knownCrownLink[aria-current=page] {
  background:#baffd8;
  border:2px solid #238b60;
  color:#183b35;
  box-shadow:0 0 0 3px #62f6ad30,0 0 22px #40e99565,0 5px 16px #183b3520;
}
#collectionDock #collectionKoreanToggle[aria-pressed=true]::after,
#collectionDock #quizButton[aria-pressed=true]::after,
#collectionDock #knownCrownLink[aria-current=page]::after { background:#087d46;box-shadow:0 0 7px #00e981; }

/* Match the reading language control to the Wordbook controls. */
#readingLanguageToggle {
  background:#fbe3ed;
  border-color:#d6a3b8;
  color:#543344;
  box-shadow:0 4px 16px #79344e20;
  cursor:pointer;
  transition:background .18s,border-color .18s,box-shadow .18s;
}
#readingLanguageToggle:hover { background:#f8d1e2; }
#readingLanguageToggle::after { background:#ab8193;box-shadow:inset 0 0 0 1px #0002; }
#readingLanguageToggle[aria-pressed=true] {
  background:#baffd8;
  border:2px solid #238b60;
  color:#183b35;
  box-shadow:0 0 0 3px #62f6ad30,0 0 22px #40e99565,0 5px 16px #183b3520;
}
#readingLanguageToggle[aria-pressed=true]:hover { background:#a5f7cb; }
#readingLanguageToggle[aria-pressed=true]::after { background:#087d46;box-shadow:0 0 7px #00e981; }
@media(prefers-reduced-motion:reduce){#readingLanguageToggle{transition:none}}
