@import url('https://fonts.googleapis.com/css2?family=Jua&family=Nunito:wght@500;600;700;800;900&family=Noto+Sans+KR:wght@400;500;600;700;800&display=swap');
:root{font-family:'Nunito','Noto Sans KR',sans-serif;color:#403957;background:#fcfaf6;font-synthesis:none;--purple:#7957c8;--ink:#403957;--line:#e9e1f3}*{box-sizing:border-box}body{margin:0;background-image:radial-gradient(#c9b8df55 .8px,transparent .8px);background-size:20px 20px}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;transition:transform .16s,background .16s,box-shadow .16s}button:hover:not(:disabled){transform:translateY(-2px)}button:active:not(:disabled){transform:translateY(1px)}button:disabled{opacity:.55;cursor:wait}header{max-width:1080px;margin:auto;padding:23px 34px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:8px;text-decoration:none;color:#6850a4}.brand img{object-fit:contain}.brand>span{font:32px 'Jua',sans-serif;letter-spacing:-1px}.brand i{display:block;font:10px 'Noto Sans KR',sans-serif;color:#9385a8;letter-spacing:.1px;margin-top:3px}.parent-brand{font-size:10px;text-decoration:none;color:#8d829a}.parent-brand strong{color:#75618e;margin-left:4px}main{max-width:940px;margin:22px auto 0;padding:0 28px}.intro{display:flex;justify-content:space-between;align-items:center;gap:20px;min-height:300px;margin-bottom:34px}.intro-copy{position:relative;z-index:1}.eyebrow{font-size:11px;font-weight:700;letter-spacing:.4px;color:#8d70b4;display:flex;align-items:center;gap:7px}.intro .eyebrow{display:inline-flex;background:#eee6fc;border:1px solid #e1d4f5;padding:7px 12px;border-radius:30px;transform:rotate(-2deg)}.eyebrow>span{color:#9871c8;font-size:15px}.intro h1{font-family:'Jua',sans-serif;font-weight:400;font-size:44px;line-height:1.35;letter-spacing:-1px;margin:21px 0 15px}.intro em{font-style:normal;color:var(--purple);position:relative;white-space:nowrap}.intro em::after{content:'';position:absolute;bottom:2px;left:-3px;right:-3px;height:12px;background:#f9dfa1;z-index:-1;border-radius:40% 30% 45% 25%;transform:rotate(-1deg)}.intro p{font-size:13px;line-height:1.9;color:#8a7d96;margin:0}.intro p strong{color:#766287;font-weight:700}.hero-tags{display:flex;gap:7px;margin-top:18px}.hero-tags span{font-size:10px;padding:5px 9px;border:1px solid #e5dbee;border-radius:6px;color:#8c73a8;background:#fff9}.hero-tags span:nth-child(2){background:#e9f6ed;color:#63836c;border-color:#cfe6d5}.hero-tags span:nth-child(3){background:#fff3ce;color:#a68a43;border-color:#f1dfa6}.mascot-scene{position:relative;width:280px;height:285px;flex-shrink:0;display:flex;align-items:center;justify-content:center;padding-top:15px}.mascot-scene::before{content:'';position:absolute;width:225px;height:225px;border-radius:47% 53% 57% 43%;background:#efe5fa;transform:rotate(12deg);z-index:0}.hero-mascot{width:228px;height:228px;object-fit:contain;position:relative;z-index:1;transform:rotate(7deg);filter:drop-shadow(0 8px 0 #d6c5eb55);animation:bob 4s ease-in-out infinite}.speech{position:absolute;top:0;left:12px;z-index:2;border:1.5px solid #d6c4ed;border-radius:13px;background:white;padding:10px 13px;font-family:'Jua',sans-serif;font-size:14px;color:#8b69b5;transform:rotate(-6deg)}.speech::after{content:'';position:absolute;bottom:-7px;left:33px;width:11px;height:11px;border-right:1.5px solid #d6c4ed;border-bottom:1.5px solid #d6c4ed;background:white;transform:rotate(45deg)}.doodle{position:absolute;z-index:2;color:#e6bc53}.star-one{right:3px;top:44px;font-size:34px;transform:rotate(15deg)}.star-two{left:0;bottom:35px;font-size:36px;color:#98cdb0}.sticker{position:absolute;bottom:2px;right:5px;z-index:2;transform:rotate(-9deg);background:#fff0b9;border:2px solid white;outline:1px dashed #d6b96d;border-radius:7px;padding:7px 12px;font-size:10px;font-weight:900;letter-spacing:.8px;color:#9b803e;box-shadow:2px 3px 0 #e6d7ad55}.workspace{position:relative;border:1.5px solid #e3d8ef;border-radius:24px;background:white;padding:28px 32px 22px;box-shadow:0 6px 0 #ece4f2,0 14px 40px #70538c09}.workspace::before{content:'';position:absolute;left:30px;top:-9px;width:65px;height:18px;background:#dfd1f5bb;transform:rotate(-6deg);border-left:2px dotted #fdfafa;border-right:2px dotted #fdfafa}.card-heading{display:flex;align-items:center;gap:11px;margin-bottom:20px}.quest-icon{display:grid;place-items:center;background:#fff0ba;border:1px solid #f3e1aa;width:43px;height:43px;border-radius:13px;color:#a98a40;font-size:25px;transform:rotate(-5deg)}.small-label{font-size:9px;font-weight:900;letter-spacing:1.5px;color:#af9bc4}.card-heading h2{font-family:'Jua',sans-serif;font-size:21px;font-weight:400;margin:2px 0 0;color:#685185}.five-badge{margin-left:auto;background:#f0e9fb;color:#9473bc;border-radius:20px;padding:7px 10px;font-size:10px;font-weight:700}.mode-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 19px;padding-bottom:18px;border-bottom:1px dashed #e5dcef}.mode-row label{margin:0;font-size:11px;color:#94869f;font-weight:500}.mode-row select{font-size:11px;padding:9px 12px;border:1px solid #e5dcef;border-radius:10px;color:#7e649b;background:#fbf8fe;max-width:70%;outline:none}label{display:block;font-size:12px;font-weight:700;margin-bottom:10px;color:#7b658f}.input-row{display:flex;gap:10px}input{min-width:0;border:1.5px solid #e5daef;border-radius:12px;padding:15px;background:#fdfbff;color:#554167;outline:none}input:focus,select:focus-visible{border-color:#a88bce;box-shadow:0 0 0 4px #d4bdf633}.input-row input{flex:1;font-size:18px;font-weight:700;letter-spacing:.3px}input::placeholder{color:#b9abc9;font-weight:500}.input-row button,.submit{background:var(--purple);border:1px solid #6e48bb;border-radius:12px;color:white;padding:14px 20px;font-weight:800;font-size:13px;box-shadow:0 4px 0 #5e3ca0}.input-row button span{margin-left:12px;color:#e5d3ff}.suggestions{display:flex;gap:7px;align-items:center;margin-top:16px;flex-wrap:wrap}.suggestions>span{font-size:10px;color:#a193ae;margin-right:3px}.suggestions button{border:1px solid #e8dff1;background:#fff;border-radius:20px;padding:6px 11px;color:#987db6;font-size:11px;font-weight:700}.suggestions button span{margin-left:5px;color:#c1add8}.suggestions button:nth-of-type(2){background:#f0f9f3;border-color:#dceee2;color:#71947c}.suggestions button:nth-of-type(3){background:#fff9e8;border-color:#f4e8c4;color:#aa975f}#status{font-size:12px;color:#8e6c41;background:#fff8e7;border:1px solid #f4e7bf;border-radius:12px;padding:13px 15px;line-height:1.8;margin-top:22px;overflow-wrap:anywhere}#status:empty{display:none}#empty{padding-top:23px;margin-top:22px;border-top:1px dashed #e9e0f1}.empty-note{position:relative;text-align:center;background:repeating-linear-gradient(0deg,transparent,transparent 27px,#ede8f477 28px),#fbf8ff;border:1px solid #eee5f7;border-radius:16px;padding:24px 20px 18px}.note-star{display:block;color:#c9a2e5;font-size:21px;margin-bottom:6px}#empty h2{font-family:'Jua',sans-serif;font-weight:400;font-size:19px;color:#8c6eae;margin:4px 0 10px}#empty p{font-size:11px;line-height:1.9;color:#a18eb0;margin:0}.steps{display:flex;justify-content:center;gap:0;margin-top:22px}.steps>div{flex:1;max-width:170px;display:flex;align-items:center;justify-content:center;gap:7px;border-right:1px dashed #ddd0ec}.steps>div:last-child{border:0}.steps span{font:15px 'Jua',sans-serif;color:#b89ad4;background:#eee3fc;border-radius:50%;width:29px;height:29px;display:grid;place-items:center}.steps>div:nth-child(2) span{color:#a48e52;background:#fff0bc}.steps>div:nth-child(3) span{color:#7aa68c;background:#dff2e7}.steps strong{font-size:11px;font-weight:600;color:#9884ab}.empty-bottom{display:flex;align-items:center;justify-content:center;gap:12px;padding-top:19px;font-size:10px;color:#b29dc0}.empty-bottom>span:last-child{font-size:17px;color:#c5acd9}footer{display:flex;justify-content:space-between;gap:15px;margin:24px 0 34px;font-size:10px;color:#b3a2be}footer strong{font-family:'Jua',sans-serif;font-weight:400;color:#9c80b7}footer a{color:#ac98bc;text-decoration:none}.quiz-head{display:flex;justify-content:space-between;align-items:center;border-top:1px dashed #e7ddef;margin-top:27px;padding-top:26px}.quiz-head h2{font-size:34px;font-weight:900;color:#7752ad;margin:5px 0 23px;overflow-wrap:anywhere}.quiz-head>span{flex-shrink:0;font-size:11px;font-weight:700;color:#9a7cba;background:#f3ecfc;padding:8px 12px;border-radius:20px}.question{border:1.5px solid #e9e0f3;border-radius:16px;margin:0 0 21px;padding:21px;min-width:0;background:#fefcfff0}.question legend{font-size:11px;font-weight:800;color:#a181c1;background:#f4edfd;border:1px solid #e9def6;border-radius:20px;padding:6px 12px;letter-spacing:.2px}.question:nth-child(3n+2) legend{color:#9b874b;background:#fff7df;border-color:#f3e7c4}.question:nth-child(3n) legend{color:#6d9981;background:#edf8f1;border-color:#d8ecdf}.prompt{font-size:13px;line-height:1.7;margin:0 0 12px;color:#91829f}.hint{font-size:16px;line-height:1.9;margin:0 0 17px;color:#51415f;overflow-wrap:anywhere}.choice{font-size:14px;font-weight:500;display:flex;gap:10px;align-items:baseline;padding:13px 15px;border:1.5px solid #eae2f1;background:white;border-radius:11px;line-height:1.7;margin:9px 0;cursor:pointer;color:#796588;transition:background .15s,border-color .15s}.choice:has(input:checked){background:#f2e9fd;border-color:#b18bd6;color:#73509b}.choice input{accent-color:#9b77c2;flex-shrink:0}.text-answer{width:100%;font-size:15px}.submit{width:100%;margin:8px 0;display:flex;justify-content:space-between}#result{background:#f3eaff;border:1.5px solid #e4d3f5;padding:24px;border-radius:17px;margin-top:25px;line-height:1.8;font-size:13px;color:#9875b6}#result h3{font-family:'Jua',sans-serif;font-weight:400;color:#8a5db4;margin:0 0 6px;font-size:28px}#result p{margin:5px 0}.feedback{font-size:12px;line-height:1.9;margin-top:17px;padding:15px;border-radius:12px;background:#edf7ef;color:#769780;border:1px solid #dceede}.feedback strong{display:block;color:#5f8c6e;margin-bottom:5px}.feedback.wrong{background:#fff5e9;color:#b18d60;border-color:#f2e1c9}.feedback.wrong strong{color:#ae8551}.feedback>div{white-space:pre-line}.retry{border:1px dashed #d5c2e8;border-radius:10px;background:#fcf8ff;color:#a080bb;padding:12px 16px;font-size:12px;margin-top:19px}button:focus-visible,a:focus-visible{outline:3px solid #cbb0ea;outline-offset:4px}[hidden]{display:none!important}@keyframes bob{0%,100%{transform:translateY(0) rotate(7deg)}50%{transform:translateY(-7px) rotate(4deg)}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;scroll-behavior:auto!important;transition:none!important}}@media(max-width:700px){header{padding:18px 21px}.brand>span{font-size:28px}.brand img{width:43px;height:43px}.brand i{font-size:9px}.parent-brand{font-size:9px}.parent-brand strong{display:block}.intro{gap:0}.intro h1{font-size:35px}.mascot-scene{width:210px}.hero-mascot{width:190px;height:190px}.mascot-scene::before{width:185px;height:185px}.speech{font-size:11px;top:24px;padding:8px}.sticker{font-size:8px;bottom:15px}.star-one{right:0;font-size:26px}.intro p{font-size:12px}}@media(max-width:520px){header{padding:17px 20px}.parent-brand{max-width:85px;font-size:8px;text-align:right}.brand img{width:42px;height:42px}main{margin-top:10px;padding:0 18px}.intro{min-height:0;position:relative;display:block;padding:17px 0 19px;margin-bottom:20px}.intro h1{font-size:32px;margin-top:17px;letter-spacing:-.5px}.intro .eyebrow{font-size:9px;padding:6px 9px}.intro p{font-size:11px;max-width:75%;line-height:1.9}.hero-tags{margin-top:14px;gap:5px}.hero-tags span{font-size:8px;padding:4px 7px}.mascot-scene{position:absolute;width:110px;height:118px;right:-7px;bottom:14px;opacity:.95}.hero-mascot{width:108px;height:108px}.mascot-scene::before{width:100px;height:100px}.speech{display:none}.sticker{bottom:-1px;right:1px;padding:3px 5px;font-size:6px;border-width:1px}.star-one{top:0;right:-1px;font-size:20px}.star-two{left:-8px;bottom:12px;font-size:20px}.workspace{padding:24px 18px 18px;border-radius:21px}.card-heading{gap:9px}.quest-icon{width:37px;height:37px;font-size:22px}.card-heading h2{font-size:19px}.five-badge{font-size:9px;padding:6px 8px}.mode-row label{font-size:10px}.mode-row select{font-size:10px;max-width:66%;padding:9px 6px}.input-row{flex-direction:column;gap:11px}.input-row input{font-size:17px;padding:14px}.input-row button{padding:14px;font-size:13px}.suggestions{gap:5px;margin-top:17px}.suggestions>span{font-size:9px}.suggestions button{font-size:10px;padding:5px 9px}.empty-note{padding:21px 10px 17px}#empty h2{font-size:17px}#empty p{font-size:10px}.steps>div{flex-direction:column;gap:7px}.steps strong{font-size:10px}.steps span{width:25px;height:25px;font-size:13px}.empty-bottom{font-size:9px;gap:7px}footer{font-size:8px;margin-top:22px;align-items:center;gap:6px}.question{padding:17px}.hint{font-size:15px}.prompt{font-size:12px}.choice{font-size:13px;padding:12px}.feedback{font-size:11px}.quiz-head h2{font-size:31px}}
/* Keep the mobile mascot beside the copy, with room for every line. */
@media(max-width:520px){.intro p{max-width:calc(100% - 115px);font-size:12px}.hero-tags{max-width:calc(100% - 110px);flex-wrap:wrap}#empty p{font-size:12px;color:#8c769f}.mode-row label{font-size:11px}.mode-row select{font-size:11px}.suggestions>span{font-size:10px}.suggestions button{font-size:11px}.steps strong{font-size:11px}.empty-bottom{font-size:10px;color:#9781a7}}
/* Word study and photo preparation */
[hidden]{display:none!important}.study-nav{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:0 0 20px}.study-nav button,.study-nav a{border:2px solid #e5daf6;border-radius:18px;padding:14px 20px;background:#fff;color:#70518f;font:inherit;font-weight:700;text-decoration:none;cursor:pointer}.study-nav button[aria-pressed=true]{background:#7955c6;border-color:#7955c6;color:white}.study-nav a{margin-left:auto}.study-controls{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:24px 0}.study-controls select{flex:1;min-width:150px}#meaning-panel p,.prepare-main p{line-height:1.8}#meaning-panel input,#meaning-panel select,.prepare-main input,.prepare-main select{font:inherit;padding:13px;border:2px solid #e5daf6;border-radius:12px;background:#fcfaff;color:#56436c;max-width:100%;box-sizing:border-box}#meaning-panel button,.prepare-main button{font:inherit;padding:13px 18px;border:0;border-radius:12px;background:#7955c6;color:white;font-weight:700;cursor:pointer}button:disabled{opacity:.5;cursor:wait}#meaning-form{display:grid;gap:12px;max-width:540px}#meaning-form label,.prepare-main label{font-weight:700;color:#70518f}.meaning-clue{font-size:clamp(26px,5vw,42px);color:#634b87;margin:24px 0}.study-note{font-size:14px;color:#786886}.study-note a,.prepare-main a{color:#7955c6}.photo-upload{display:grid;gap:18px;padding:24px;background:#fbf7ff;border:2px dashed #e5daf6;border-radius:20px;margin:24px 0}.photo-upload img{max-width:100%;max-height:400px;object-fit:contain;border-radius:12px}.prepare-main{max-width:1050px;margin:45px auto}.entry-scroll{overflow:auto;margin:20px 0}.entry-table{border-collapse:collapse;width:100%;min-width:560px}.entry-table th{text-align:left;color:#70518f;padding:12px 6px}.entry-table td{padding:6px}.entry-table input{width:100%;min-width:140px}.entry-table td:nth-child(2){width:40%}.entry-table select{min-width:115px}.entry-table td:last-child button{background:#f8eaf0;color:#a45d78}#prepare-status,#study-status{white-space:pre-line;color:#866234}#meaning-feedback:empty{display:none}#meaning-feedback{margin:20px 0}.prepare-main .workspace>p{margin-bottom:20px}@media(max-width:600px){.study-nav{gap:7px}.study-nav button,.study-nav a{font-size:12px;padding:11px}.study-nav a{margin-left:0}.prepare-main{margin-top:25px}.photo-upload{padding:15px}#meaning-panel .card-heading h2{font-size:22px}}
.csv-upload{background:#f2fbf7;border-color:#ccebdc}.wrong-list{padding:18px 24px 18px 38px;background:#fff8e9;border-radius:18px;line-height:2}.mastery-celebration{position:fixed;inset:0;z-index:1000;background:radial-gradient(ellipse at top,#9a6cdd,#493176 75%);display:grid;place-items:center;padding:24px;overflow:hidden}.celebration-card{max-width:650px;width:100%;box-sizing:border-box;padding:50px 30px;text-align:center;background:#fff9ed;border:5px solid #ffda76;border-radius:36px;box-shadow:0 0 80px #ffdb7d80;position:relative}.celebration-card h2{font-size:clamp(27px,5vw,46px);color:#7955c6;margin:18px 0}.celebration-card p{position:relative}.trophy{font-size:100px;filter:drop-shadow(0 8px 8px #d3a84760);animation:trophy-pop .9s ease-out}.confetti{position:fixed;inset:0;pointer-events:none;overflow:hidden}.confetti i{position:absolute;left:var(--x);top:-30px;width:12px;height:20px;border-radius:3px;animation:confetti-fall 4s linear var(--delay) infinite}.celebration-card button{position:relative}#meaning-summary>button{margin:8px}#meaning-summary{padding:22px 0}#save-account{width:auto;accent-color:#7955c6}@keyframes confetti-fall{to{transform:translateY(110vh) rotate(var(--spin))}}@keyframes trophy-pop{0%{transform:scale(.2) rotate(-25deg)}70%{transform:scale(1.15) rotate(8deg)}100%{transform:scale(1)}}@media(prefers-reduced-motion:reduce){.confetti i{animation:none;top:var(--x);opacity:.5}.trophy{animation:none}}
.saved-decks{margin:25px 0 35px;padding:22px;background:#faf7ff;border:2px solid #e5daf6;border-radius:20px}.saved-decks-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.saved-decks h3{color:#70518f;margin:0}.saved-deck{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:17px 0;border-top:1px solid #e5daf6}.saved-deck h4{margin:0;color:#56436c;overflow-wrap:anywhere}.saved-deck p{margin:5px 0 0;font-size:13px;color:#786886}.saved-deck-actions{display:flex;align-items:center;gap:13px;flex-shrink:0}.prepare-main .delete-deck{background:#f9e5eb;color:#a44d69}.saved-decks-heading button{font-size:12px}#decks-status{font-size:14px;line-height:1.7}@media(max-width:520px){.saved-decks{padding:15px}.saved-deck{align-items:flex-start;flex-direction:column}.saved-deck-actions{align-self:flex-end}.saved-decks-heading{flex-wrap:wrap}}

/* Hide preparation entry points on mobile screens. */
@media(max-width:767px){.prepare-desktop-only{display:none!important}}

.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.study-launch{display:flex;flex-wrap:nowrap;gap:10px}.study-launch #deck-select{flex:1 1 0;min-width:0;width:0;max-width:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.study-launch #start-study{flex:0 0 auto;white-space:nowrap;padding:13px 20px}@media(max-width:520px){.study-launch{gap:8px}.study-launch #deck-select{padding:12px 10px;font-size:15px}.study-launch #start-study{font-size:15px;padding:13px 16px}}

/* Readable answer feedback, including compact phone screens. */
#meaning-feedback{padding:24px;border:2px solid #c9e8da;border-radius:20px;background:#f0faf5;color:#244a3a;font-size:18px;line-height:1.65}#meaning-feedback.wrong{background:#fff5e9;border-color:#edcca4;color:#663b19}#meaning-feedback>strong{display:block;font-size:20px;line-height:1.55;font-weight:800;word-break:keep-all}.answer-checks{display:flex;flex-wrap:wrap;gap:9px;margin:16px 0}.answer-checks span{display:inline-block;border-radius:9px;padding:5px 10px;font-size:16px;font-weight:800}.check-correct{background:#dff1e7;color:#20533b}.check-wrong{background:#fbe1df;color:#9a2928}.answer-word{display:flex;align-items:baseline;flex-wrap:wrap;gap:12px;margin:10px 0 5px}.answer-word strong{font-size:32px;font-weight:800;color:#3f315e;overflow-wrap:anywhere}.answer-word>span{font-size:21px;font-weight:800;color:#67507f}#meaning-feedback .answer-meaning{margin:5px 0 0;font-size:21px;font-weight:600;line-height:1.7;color:#493b32;overflow-wrap:anywhere}@media(max-width:520px){#meaning-feedback{padding:20px 17px;font-size:18px}#meaning-feedback>strong{font-size:19px}.answer-word strong{font-size:30px}#meaning-feedback .answer-meaning{font-size:20px}}
/* Reserve a separate mascot column so mobile titles never overlap the art. */
@media(max-width:520px){
 .intro-copy{width:calc(100% - 108px)}
 .intro h1{font-size:clamp(18px,5.4vw,27px);line-height:1.45;letter-spacing:-.6px;margin:16px 0 12px;word-break:keep-all;overflow-wrap:anywhere}
 .intro .eyebrow{max-width:100%;font-size:8px;line-height:1.5;padding:6px 8px;letter-spacing:0}
 .mascot-scene{width:98px;height:110px;right:0;bottom:16px}
 .hero-mascot{width:96px;height:96px}
 .mascot-scene::before{width:90px;height:90px}
 .hero-tags{max-width:100%;gap:4px;flex-wrap:wrap}
 .hero-tags span{padding:4px 6px}
}
/* A compact two-row answer form leaves room for the phone keyboard. */
@media(max-width:767px){
 body.study-active .intro{display:none}
 body.study-active main{margin-top:4px;padding:0 12px}
 body.study-active header{padding-top:10px;padding-bottom:10px}
 body.study-active .workspace{padding:16px 14px}
 body.study-active .study-nav{margin-bottom:10px}
 body.study-active #meaning-panel>.card-heading{display:none}
 body.study-active #meaning-panel>p:not(#study-status){display:none}
 body.study-active #study-status{font-size:12px;line-height:1.4;margin:6px 0}
 body.study-active .study-launch{margin:8px 0 12px}
 body.study-active #study-progress{font-size:12px;line-height:1.3;margin:0 0 6px}
 body.study-active .meaning-clue{font-size:clamp(22px,6vw,28px);line-height:1.35;margin:6px 0 12px;word-break:keep-all;overflow-wrap:anywhere}
 body.study-active #meaning-form{grid-template-columns:54px minmax(0,1fr);align-items:center;gap:8px;max-width:none}
 body.study-active #meaning-form label{font-size:13px;line-height:1.3}
 body.study-active #meaning-form input,body.study-active #meaning-form select{width:100%;min-width:0;height:44px;padding:8px 10px;font-size:16px;border-radius:10px}
 body.study-active #check-meaning{grid-column:1 / -1;min-height:42px;padding:9px 12px;font-size:16px}
 body.study-active #meaning-question{scroll-margin-top:8px}
 body.study-active #word-answer::placeholder{font-size:14px}
 body.study-active footer{display:none}
 body.study-typing header,body.study-typing .study-nav,body.study-typing .study-launch{display:none}
 body.study-typing #study-status{display:none}
 body.study-typing main{margin-top:0}
 body.study-typing .workspace{padding:12px;border-radius:16px}
 body.study-typing #meaning-question{scroll-margin-top:4px}
 body.study-active #meaning-feedback{margin:12px 0}
 body.study-active #next-meaning{min-height:42px;padding:9px 14px}
}

#meaning-feedback{scroll-margin-top:16px}#meaning-feedback:focus-visible{outline:3px solid #7955c6;outline-offset:4px}

/* Placeholders guide entry; retain labels for assistive technology. */
#meaning-form{grid-template-columns:minmax(0,1fr)}@media(max-width:767px){body.study-active #meaning-form{grid-template-columns:minmax(0,1fr)}}
.learner-account{display:flex;align-items:center;justify-content:space-between;gap:20px;border:1px solid #e0d8ec;border-radius:18px;background:#f2ecfa;padding:18px 22px;margin:12px 0 8px}.learner-type{display:inline-block;font-size:11px;font-weight:700;color:#66518a;background:#fffaf0;border-radius:20px;padding:5px 10px}.learner-account #learner-greeting{font-size:14px;line-height:1.8;margin:8px 0 0;color:#4a3e60;overflow-wrap:anywhere}.learner-account-actions{display:flex;gap:12px;flex-shrink:0;flex-wrap:wrap}.learner-account-actions a{font-size:12px;color:#66518a;text-decoration:none;font-weight:600}.learner-account [hidden]{display:none!important}@media(max-width:650px){.learner-account{align-items:flex-start;flex-direction:column;gap:12px;padding:16px}.learner-account #learner-greeting{font-size:13px}}
.install-row:has(button[hidden]):has(p[hidden]){display:none}.install-row{margin:0 0 12px}.install-row button{border:1px solid #d8c7f0;border-radius:12px;background:#eee5fb;color:#654392;font:inherit;font-weight:700;padding:10px 16px}.install-row p{font-size:14px;line-height:1.6;color:#66517b}body.study-active .install-row{display:none}

.learner-role-settings{border:1px solid #e0d8ec;border-radius:12px;padding:14px 18px;margin:12px 0;color:#66518a}.learner-role-settings[hidden]{display:none}.learner-role-settings summary{font-size:13px;font-weight:600;cursor:pointer}.learner-role-settings form{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:15px}.learner-role-settings label{font-size:12px}.learner-role-settings select,.learner-role-settings button{font:inherit;font-size:13px;padding:9px 13px;border:1px solid #d2c6e5;border-radius:8px;background:#fffaf0;color:#594374}.learner-role-settings p{width:100%;font-size:11px;line-height:1.8;margin:0}.learner-role-settings button{cursor:pointer}
.photo-previews{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:12px}.photo-previews figure{margin:0;min-width:0;padding:8px;background:#fff;border:1px solid #e5daf6;border-radius:12px}.photo-upload .photo-previews img{width:100%;height:140px;object-fit:contain}.photo-previews figcaption{font-size:12px;line-height:1.5;overflow-wrap:anywhere;margin-top:6px;color:#56436c}
@media(max-width:767px){
 #learner-role-settings{display:none!important}
 .learner-type{font-size:14px;font-weight:800}
 body.study-typing .learner-account{display:none}
 body.study-typing #meaning-panel{min-height:calc(var(--study-viewport-height,100dvh) - 12px);display:flex;flex-direction:column;justify-content:center}
 body.study-typing #meaning-question{width:100%;flex:none}
}

#meaning-panel .back-to-decks{background:#eee7f8;color:#65468d;border:1px solid #d9cbed;font-size:14px;padding:9px 13px;min-height:40px;margin:0 0 12px;align-self:flex-start}#meaning-panel .back-to-decks:focus-visible{outline:3px solid #7955c6;outline-offset:3px}
