:root{font-family:system-ui,-apple-system,'Malgun Gothic','Apple SD Gothic Neo',sans-serif;font-size:20px;color:#263d30;background:#f5f3e9;line-height:1.65;--green:#285a42;--line:#dce2d5}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit;color:inherit}button{cursor:pointer;border:1px solid var(--line);background:#fffdf7;border-radius:12px;padding:12px 20px;min-height:48px}button:hover{filter:brightness(.96)}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #b18434;outline-offset:3px}input,select{width:100%;min-width:0;border:1px solid #becbbb;border-radius:12px;padding:12px;background:#fffef9;min-height:54px}input::placeholder{color:#767e71}label{display:block;font-size:.8rem;font-weight:650;margin:20px 0 9px}h1,h2,p{margin:0 0 16px}h1{font-size:1.8rem;line-height:1.45;letter-spacing:-.04em}h2{font-size:1.2rem;line-height:1.5}p{word-break:keep-all;overflow-wrap:anywhere}small,.small{font-size:.72rem;color:#6c7669}small{display:block}.muted{color:#6b766a;font-size:.9rem}header{max-width:1380px;margin:auto;padding:22px 36px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:12px;background:none;border:0;padding:0;text-align:left}.brand-mark{display:grid;place-items:center;width:52px;height:52px;background:var(--green);color:#fff8d9;border-radius:16px;font-size:1.7rem;font-weight:750}.brand small{font-size:.62rem;letter-spacing:.12em;line-height:1.2}.brand strong{font-size:1.3rem;display:block;line-height:1.4}#profile{background:#e7eedf;font-size:.8rem;max-width:260px;overflow-wrap:anywhere}.layout{display:flex;max-width:1380px;margin:auto;min-height:76vh}nav{width:200px;flex-shrink:0;border-right:1px solid var(--line);padding:35px 16px}nav button{display:block;width:100%;text-align:left;background:none;border:0;font-size:.8rem;margin:6px 0;padding:14px}nav button.active{background:var(--green);color:white}main{flex:1;padding:35px 42px 50px;min-width:0;outline:none}main.narrow{max-width:860px;margin:auto;width:100%}.eyebrow{display:block;font-size:.65rem;letter-spacing:.15em;color:#806038;font-weight:700;margin:5px 0 12px}.paper{background:#fffef9;border:1px solid var(--line);border-radius:22px;padding:28px}.summary{display:flex;gap:38px;align-items:center;margin:24px 0;background:#e7eedf;border-radius:22px;padding:20px 28px}.summary strong{display:block;font-size:1.7rem;line-height:1.3}.summary small{display:inline;font-size:.75rem}.summary span{font-size:.72rem;color:#52684b}.summary p{font-size:.8rem;color:#52684b;margin:0 0 0 auto}.columns{display:grid;grid-template-columns:1.5fr 1fr;gap:22px}.subjects{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}.subjects button{text-align:left;padding:18px}.subjects button[aria-pressed=true],.hints button[aria-pressed=true]{background:#e6eedf;border-color:var(--green);box-shadow:inset 0 0 0 1px var(--green)}.subjects strong{font-size:1.15rem}.two{display:grid;grid-template-columns:1fr 1fr;gap:16px}.three{display:grid;grid-template-columns:1fr 1fr 1fr;gap:16px}.actions{display:flex;gap:12px;flex-wrap:wrap;margin:24px 0 15px}.primary{background:var(--green);color:white;border-color:var(--green);font-weight:700}.secondary{background:#e7eedf;color:var(--green);font-weight:650}.full{width:100%}.spaced{margin-top:24px}.word-note{margin-top:22px;padding:28px;border-radius:22px;background:#f0e2c9}.word-note h2{font-size:2.2rem;color:#795635;margin:15px 0}.word-note p{font-size:.95rem;color:#795635}.row{display:flex;gap:12px}.row input{flex:1}.row button{white-space:nowrap}.profile-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.profile-tile{text-align:left;overflow-wrap:anywhere}.profile-tile strong,.profile-tile span{display:block}.profile-tile span{font-size:.75rem;color:#6c7669}.resume{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:22px;border:1px solid #adc59e;background:#edf3e6;padding:18px 22px;border-radius:15px}.resume p{font-size:.75rem;margin:4px 0 0}.resume strong{font-size:.9rem}.resume button{white-space:nowrap}.learn-head{display:flex;justify-content:space-between;align-items:center;gap:14px;font-size:.8rem}.learn-head button{font-size:.75rem;background:transparent;border:0}progress{display:block;width:100%;height:7px;margin-top:18px;accent-color:var(--green);border-radius:8px}.tag{display:inline-block;background:#e7eedf;color:var(--green);border-radius:8px;padding:5px 12px;font-size:.75rem}.definition{font-size:1.3rem;line-height:1.85;margin:28px 0;word-break:keep-all}.term{display:block;font-size:2.3rem;line-height:1.5;margin:20px 0;color:var(--green);letter-spacing:-.03em}.hints{display:flex;gap:8px;margin:20px 0 10px;flex-wrap:wrap}.hints button{font-size:.75rem}.hint-text{font-size:1.4rem;color:#855c31;letter-spacing:.12em;min-height:44px}.feedback{padding:23px;background:#edf1e5;border-radius:16px;margin-top:24px}.feedback h2{font-size:1rem}.example{padding-top:16px;border-top:1px solid #cdd9c5;color:#657658;font-size:.9rem}.card-face{min-height:285px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:25px 0}.card-face .definition{margin:12px 0}.list-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 0;border-bottom:1px solid var(--line)}.list-row:last-child{border-bottom:0}.list-row>span{font-size:.75rem}.list-row small{font-size:.7rem}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:24px 0}.metrics span{font-size:.75rem}.metrics strong{display:block;font-size:1.6rem;color:var(--green);margin-top:12px}.check{display:flex;align-items:center;gap:12px;font-weight:400}.check input{width:24px;min-height:24px;accent-color:var(--green)}.centered{text-align:center}.result-list{text-align:left}footer{max-width:1380px;margin:auto;padding:22px 36px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px;color:#73806c;font-size:.65rem}footer button{background:none;border:0;font-size:.7rem}#warning{padding:16px;background:#ffe3b9;font-size:.8rem}#warning button{font-size:.75rem}#status{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);max-width:90vw;background:#244b35;color:white;padding:12px 20px;border-radius:12px;font-size:.8rem;z-index:100}#status:empty{display:none}dialog{max-width:580px;width:calc(100% - 32px);max-height:90vh;overflow:auto;border:1px solid var(--line);background:#fffef9;border-radius:22px;padding:28px;color:#263d30}dialog::backdrop{background:#1e39275e}dialog p{font-size:.9rem}dialog .actions{justify-content:flex-end}#profile-error,#answer-error{color:#97552d;font-size:.8rem}.file-note{max-width:860px;margin:18px auto;padding:16px 22px;color:#6b766a;font-size:.75rem}noscript{display:block;background:#ffedce;padding:20px}.boot-note{font-size:.85rem;color:#687462}
@media(max-width:1050px){main{padding:28px 24px}.columns{grid-template-columns:1fr}.columns>div{display:grid;grid-template-columns:1fr 1fr;gap:18px}.word-note{margin-top:0}nav{width:175px}.three{grid-template-columns:1fr}.metrics{grid-template-columns:repeat(2,1fr)}}@media(max-width:700px){header{padding:18px}.layout{display:block}nav{width:100%;border-right:0;border-bottom:1px solid var(--line);display:flex;overflow:auto;padding:8px;gap:4px}nav button{min-width:max-content;text-align:center;padding:10px 12px;font-size:.7rem}main{padding:25px 18px}h1{font-size:1.45rem}.paper{padding:22px}.columns>div{display:block}.word-note{margin-top:20px}.summary{gap:25px;padding:20px}.summary p{display:none}.row{flex-direction:column}.profile-grid{grid-template-columns:1fr 1fr}.two{gap:10px}.three{grid-template-columns:1fr}.actions button{flex:1}.definition{font-size:1.15rem}.learn-head{gap:6px;font-size:.7rem}.learn-head button{padding:8px}.metrics{gap:10px}.metrics .paper{padding:18px}.metrics strong{font-size:1.2rem}.resume{align-items:flex-start;padding:16px}.resume button{font-size:.75rem;padding:10px}.list-row{gap:10px;flex-wrap:wrap}footer{padding:20px 18px;flex-wrap:wrap}.term{font-size:2rem}.brand strong{font-size:1.1rem}.brand-mark{width:46px;height:46px}#profile{max-width:160px;font-size:.7rem;padding:8px 10px}.card-face{min-height:230px}.file-note{padding:12px 18px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
/* Reference UI: quiet ivory surfaces and a compact green navigation rail. */
:root{font-size:20px;background:#f6f4eb;color:#293d2e;--green:#28573d;--line:#e1e3d9}body{min-height:100vh;display:flex;flex-direction:column}header{max-width:none;width:100%;height:94px;padding:20px 36px;flex-shrink:0}.brand-mark{width:45px;height:45px;border-radius:14px;font-size:28px}.brand{gap:12px;min-height:0}.brand small{font-size:10px;letter-spacing:.22em}.brand strong{font-size:24px;line-height:1.35}.brand-dot{color:#bd9146}.header-tools{display:flex;align-items:center;gap:18px}.header-tools>span{font-size:12px;color:#7c8277}#profile{font-size:13px;min-height:34px;padding:6px 16px;border:0;background:#e8eddf;border-radius:10px}.layout{width:100%;max-width:1380px;min-height:0;flex:1}nav{width:186px;padding:37px 18px 30px 25px;display:flex;flex-direction:column}nav[hidden]{display:none}.nav-label{font-size:10px;letter-spacing:.18em;color:#96998c;padding:4px 12px 18px}nav button{display:flex;align-items:center;gap:12px;padding:10px 12px;min-height:44px;margin:5px 0;font-size:15px;border-radius:12px;white-space:nowrap}nav button svg{width:18px;height:18px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.nav-divider{border-top:1px solid var(--line);margin:25px 10px 14px}.nav-note{font-size:11px;line-height:1.85;color:#8b9284;padding:32px 12px 0;margin:0}main{padding:34px 40px 42px}.intro{display:flex;align-items:flex-end;justify-content:space-between;gap:15px;margin-bottom:26px}.intro h1{font-size:30px;line-height:1.5;letter-spacing:-.045em;margin:0 0 9px}.intro .muted{margin:0;font-size:15px}.eyebrow{font-size:10px;letter-spacing:.2em;margin:2px 0 10px;color:#9c8154}.grade{font-size:11px;color:#8c9183;white-space:nowrap;margin-bottom:1px}.paper{background:#fffef9;border-color:#e3e4da;border-radius:20px;padding:22px}h2{font-size:19px}button{font-size:15px;min-height:44px;padding:10px 20px}label{font-size:12px;margin:18px 0 8px}select,input{font-size:15px;min-height:45px;padding:10px 14px;border-color:#d9ddcf;background:#fffef9}.small,small{font-size:12px;color:#8a9182}.three{gap:15px;grid-template-columns:repeat(3,minmax(0,1fr))}.review-settings{padding:24px 22px 18px}.review-settings label:not(.check){margin-top:18px}.review-settings .check{font-size:13px;gap:9px;margin:14px 0 22px}.check input{width:17px;height:17px;min-height:17px;padding:0;margin:0}.review-settings .small{font-size:11px;margin:0;line-height:1.8}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:19px}.panel-head h2{margin:0;font-size:18px}.panel-head button{font-size:14px;min-height:44px;padding:10px 20px}.review-list{margin-top:21px;padding:21px 22px 13px}.review-list .list-row{padding:17px 0;min-height:77px}.review-list .list-row strong{font-size:17px;display:block}.review-list .list-row small{font-size:11px;margin-top:3px}.result-chip{background:#f2e8d6;color:#987944;padding:4px 9px;border-radius:7px;font-size:10px!important;white-space:nowrap}body[data-view=profiles] main{max-width:812px;margin:0 auto;padding:54px 40px 60px}body[data-view=profiles] .intro{display:block;text-align:center;margin-bottom:30px}body[data-view=profiles] .intro .eyebrow{margin-bottom:10px}body[data-view=profiles] .intro h1{font-size:30px;margin-bottom:12px}body[data-view=profiles] .intro .muted{font-size:15px}.profile-form{padding:27px}.profile-form label{margin:0 0 10px;font-size:13px}.profile-form input,.profile-form .primary{height:52px}.profile-form .row{gap:12px}.profile-form .primary{padding:12px 23px}.profile-form .small{font-size:11px;margin:0;line-height:1.7}.profile-form #profile-error{min-height:22px;margin:7px 0 12px}.profile-actions{justify-content:space-between;margin-top:21px}.profile-actions button{border:0;background:none;font-size:12px;color:#8a9182;padding:10px 0}.profile-grid .paper{padding:20px}footer{width:100%;max-width:none;min-height:64px;padding:12px 36px;font-size:10px}footer strong{font-size:11px;letter-spacing:.08em;font-weight:500}footer button{font-size:10px;min-height:30px;padding:5px 0}.summary{margin-top:0}.list-row small{display:block}
@media(max-width:1050px){nav{width:175px;padding-left:18px}main{padding:30px 26px}.intro{flex-wrap:wrap}.grade{margin-left:auto}.intro h1{font-size:28px}}
@media(max-width:700px){header{height:80px;padding:16px 20px}.header-tools>span{display:none}.layout{display:block}nav{width:100%;padding:8px 12px;flex-direction:row;overflow:auto;border-right:0;border-bottom:1px solid var(--line)}.nav-label,.nav-divider,.nav-note,nav button[data-a=backup],nav button[data-a=restore]{display:none}nav button{gap:6px;font-size:12px;min-height:40px;padding:9px 10px;margin:0}nav button svg{width:15px;height:15px}main{padding:28px 18px}.intro h1{font-size:25px}.intro .muted{font-size:13px}.intro{margin-bottom:22px}.grade{font-size:10px}.three{grid-template-columns:1fr}.review-settings label:not(.check){margin-top:10px}.review-settings .small{font-size:11px}.panel-head h2{font-size:16px}.panel-head button{padding:10px 14px;white-space:nowrap}body[data-view=profiles] main{padding:40px 20px}body[data-view=profiles] .intro h1{font-size:25px}.profile-form{padding:22px}.profile-form .row{flex-direction:column}.profile-form .small{font-size:11px}.profile-actions{gap:12px}.profile-actions button{flex:none}.paper{border-radius:18px}footer{padding:14px 20px;gap:12px}footer>span{display:none}}
/* Shared main-panel selection UI, matching the supplied reference. */
.learning-settings{padding:24px 22px 20px}.learning-settings .three label{margin-top:14px}.learning-options{gap:15px;margin-top:5px}.learning-options label{margin-top:16px}.settings-note{font-size:11px;line-height:1.8;margin:20px 0 0}.learning-list .word-list{max-height:310px;overflow:auto;scrollbar-width:thin;scrollbar-color:#c7cdbd transparent;outline-offset:5px;padding-right:2px}.learning-list .list-row:last-child{border-bottom:0}.learning-list .panel-head{margin-bottom:14px}.review-list .list-row{flex-wrap:nowrap}.completed-chip{color:#57754e;background:#e9efdf}.empty-note{font-size:14px;color:#87907e;padding:18px 0}.resume.spaced{margin-bottom:0}.panel-head button{font-size:16px;min-height:51px;padding:11px 21px}.learning-list .panel-head h2,.review-list .panel-head h2{font-size:19px}.review-list .list-row strong{font-size:18px}.result-chip{font-size:11px!important}.check input{width:21px;height:21px;min-height:21px}nav button{margin:2px 0}.nav-label{padding-bottom:20px}.nav-divider{margin-top:30px}.intro h1{font-weight:750}select:focus-visible{outline:3px solid #b18434;outline-offset:2px}button:disabled{cursor:default;opacity:.5}
@media(max-width:700px){.learning-settings{padding:16px 20px 20px}.learning-options{grid-template-columns:1fr 1fr}.learning-list .panel-head h2,.review-list .panel-head h2{font-size:16px}.panel-head button{font-size:14px;min-height:44px;padding:10px 14px}.learning-list .word-list{max-height:330px}.settings-note{margin-top:16px}nav button{margin:0}.review-list .list-row{gap:10px}.intro h1{font-size:24px}}

.learning-advanced{margin-top:17px}.learning-advanced summary{cursor:pointer;font-size:13px;color:#52634d;padding:2px 0;min-height:26px}.learning-advanced summary span{font-size:12px;color:#8a9182;margin-left:12px}.learning-advanced summary:focus-visible{outline:3px solid #b18434;outline-offset:4px;border-radius:3px}.learning-advanced[open] summary{margin-bottom:3px}.learning-advanced .learning-options{margin:0 0 3px}.learning-settings .settings-note{margin-top:19px}.learning-advanced summary::marker{color:#7d896f}

.answer-scroll{max-width:100%;overflow-x:auto;padding:6px 2px 12px;margin-top:12px}
.answer-box-wrap{position:relative;width:max-content;min-width:52px;margin-inline:auto}
#answer-boxes{display:flex;gap:8px;pointer-events:none}
.answer-cell{display:grid;place-items:center;flex:0 0 52px;width:52px;height:52px;border:2px solid #a8b5a0;border-radius:3px;background:#fffef9;font-size:27px;font-weight:650;line-height:1;color:#244b35}
.answer-cell.current{border-color:var(--green);background:#edf3e6;box-shadow:0 0 0 2px #244b3520}
.answer-box-wrap #answer{position:absolute;inset:0;width:100%;height:100%;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;color:transparent;-webkit-text-fill-color:transparent;caret-color:transparent;outline:none;box-shadow:none;font-size:27px}
.answer-box-wrap:focus-within{outline:2px solid #244b3530;outline-offset:4px}
@media(max-width:480px){.answer-cell{flex-basis:42px;width:42px;height:42px;font-size:24px}#answer-boxes{gap:6px}}
.book-heading{display:flex;justify-content:space-between;gap:12px;margin:25px 0 12px;font-size:15px}.book-heading span{font-size:12px;color:#76806f}.book-buttons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.book-button{position:relative;text-align:left;padding:18px 15px;border:1px solid #d8dece;background:#fffef9;border-radius:14px;min-height:122px}.book-button strong{display:block;font-size:24px;margin-bottom:5px}.book-button small{font-size:12px}.book-button[aria-pressed=true]{background:#eaf1e0;border:2px solid #28573d;padding:17px 14px}.book-check{position:absolute;top:12px;right:12px;font-size:14px;color:#28573d}.book-tools{display:flex;align-items:center;gap:10px;margin-top:12px}.book-tools button{font-size:12px;padding:6px 12px;min-height:34px}.book-tools>span{margin-left:auto;font-size:12px;color:#6c7963}.word-number{display:inline-block;min-width:30px;margin-right:12px;font-size:12px;font-weight:400;color:#849078}.compact{margin:12px 0}.compact button{font-size:12px}.panel-head .small{margin:6px 0 0}.learning-list progress{margin-bottom:15px}.learning-list .word-list{max-height:350px}.settings-note{font-size:12px!important}.book-button[aria-pressed=true] .book-check{font-weight:800}.book-button:focus-visible{outline-offset:4px}@media(max-width:700px){.book-buttons{grid-template-columns:repeat(2,minmax(0,1fr))}.book-heading{display:block}.book-heading span{display:block;margin-top:4px}.book-tools{gap:5px}.book-tools button{padding:6px 9px}.book-button{min-height:116px}.panel-head{align-items:flex-start}.panel-head button{white-space:normal}.word-number{min-width:20px;margin-right:8px}}
[data-a="self"]:focus,[data-a="self"]:focus-visible{outline:none;box-shadow:none;}
.brand strong,.brand-slogan strong{color:#293d2e}.brand-slogan strong{font-size:1.2em;font-weight:800;}

.flash-stage{perspective:1400px;margin:22px 0}
.flash-inner{display:grid;transform-style:preserve-3d;transition:transform .46s cubic-bezier(.2,.7,.2,1)}
.flash-inner.is-flipped{transform:rotateY(180deg)}
.flash-side{grid-area:1/1;min-height:310px;padding:32px 28px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border:1px solid #d9e1d2;border-radius:20px;background:#fffef9;backface-visibility:hidden;-webkit-backface-visibility:hidden;box-shadow:0 6px 18px #263d3008;overflow-wrap:anywhere}
.flash-back{transform:rotateY(180deg);background:#edf3e7;border-color:#c9d8bf}
.flash-label{font-size:11px;letter-spacing:.08em;color:#7a896e;margin-bottom:24px}
.flash-word{font-size:clamp(26px,4vw,40px);line-height:1.5;color:var(--green);margin:0}
.flash-prompt{font-size:clamp(18px,2.4vw,24px);line-height:1.8;margin:0;word-break:keep-all}
.flash-context{font-size:16px;line-height:1.8;color:#617459;margin:20px 0 0}
.flash-term-label{font-size:15px;color:#617459;margin-bottom:18px}
.flash-note{font-size:12px;color:#8a9182;margin:25px 0 0}
.flash-review{display:grid;grid-template-columns:1fr 1fr;margin:0;gap:12px}
.flash-return{display:block;margin:10px auto 0;border:0;background:none;font-size:12px;color:#7a896e}
#flash-controls{min-height:92px}
@media(max-width:700px){.flash-side{padding:24px 20px;min-height:285px}}
@media(prefers-reduced-motion:reduce){.flash-inner{transition:none}}
.start-learning{margin:18px 0 12px}.learning-settings .settings-note{margin:0 0 16px}#modal-body h3{font-size:16px;margin-bottom:14px}@media(max-width:700px){nav button[data-a="restore"]{display:flex}}
.quiz-clue{margin:24px 0 22px;padding:22px 24px;background:#f1f5eb;border:1px solid #e0e8d7;border-radius:18px}.quiz-clue .eyebrow{font-size:12px;letter-spacing:.04em;margin:0 0 12px;color:#648054}.quiz-clue .definition{font-size:22px;line-height:1.9;margin:0;font-weight:550}.flash-prompt{font-weight:500}.flash-context{word-break:keep-all}@media(max-width:700px){.quiz-clue{padding:18px}.quiz-clue .definition{font-size:19px;line-height:1.85}}
