*{box-sizing:border-box}body{margin:0;background:#f4f5ef;color:#243b34;font-family:system-ui,-apple-system,sans-serif;line-height:1.7}header{max-width:880px;margin:auto;padding:22px;display:flex;justify-content:space-between;gap:12px}a{color:#286557}header a{text-decoration:none;font-size:14px;font-weight:700}main{max-width:760px;padding:18px 22px;margin:auto}.eyebrow{font-size:11px;letter-spacing:.18em;color:#687b6f}h1{font-size:32px;margin:8px 0}h2{font-size:21px;line-height:1.5}h3{font-size:20px}.lead{color:#617568;margin-bottom:28px}button{font:inherit;cursor:pointer;border:1px solid #d6dfd5;border-radius:12px;min-height:48px;padding:12px 16px;background:#fff;color:#243b34}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #c38b28;outline-offset:3px}button:disabled{cursor:default}.level-card{display:block;width:100%;text-align:left;padding:22px;margin:12px 0;border-radius:18px}.level-card strong{display:block;font-size:19px}.level-card small{display:block;margin-top:8px;color:#607568}.card{background:white;border:1px solid #dce4d9;border-radius:22px;padding:26px}.row{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px;color:#607568}.quiet{border:0;background:#f1f4ee;font-size:13px}.prompt{font-size:14px;color:#617568}#sentence{font-size:26px;line-height:1.7;font-weight:600;margin:22px 0 30px;overflow-wrap:anywhere}#choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#choices button{text-align:left;font-weight:600}#choices button.correct{border:2px solid #286557;background:#edf7f0}#choices button.incorrect{border:2px solid #a14d39;background:#fff0eb}#feedback{border-top:1px solid #e0e5dc;margin-top:26px;padding-top:8px}#analysis{display:flex;flex-wrap:wrap;gap:12px 8px;margin-top:24px}.part{display:inline-flex;flex-direction:column;align-items:center;font-size:21px;padding:3px 8px;border-bottom:3px solid var(--color);background:var(--bg);border-radius:7px;max-width:100%;overflow-wrap:anywhere}.part b{font-size:12px;color:var(--color)}.S{--color:#245c99;--bg:#eff6ff}.V{--color:#a33e34;--bg:#fff2ef}.O,.O1,.O2{--color:#76551b;--bg:#fff8e7}.C{--color:#673e9c;--bg:#f5efff}.M{--color:#5f6a60;--bg:#f1f4ef}.legend{font-size:12px;color:#617568;margin:18px 0}.primary{background:#286557;color:white;border-color:#286557;width:100%;font-weight:700}#next{margin-top:14px}.actions{display:grid;gap:12px}details{margin:28px 0;color:#536759;font-size:14px}summary{cursor:pointer;font-weight:600}footer{text-align:center;padding:28px;font-size:12px;color:#738577}#storageNote{font-size:12px;color:#8a4f33}[hidden]{display:none!important}@media(max-width:480px){main{padding:12px 16px}.card{padding:20px 16px}h1{font-size:28px}#sentence{font-size:23px}.part{font-size:19px}#choices{grid-template-columns:1fr}header{padding:18px 16px}}
/* Compact question view: keep the sentence and all five choices together. */
body[data-view=exercise] header{max-width:760px;padding-top:10px;padding-bottom:10px}
body[data-view=exercise] main{padding-top:0}
body[data-view=exercise] .eyebrow,body[data-view=exercise] h1,body[data-view=exercise] .lead{display:none}
body[data-view=exercise] .card{padding:20px 24px}
body[data-view=exercise] .row{line-height:1.4}
body[data-view=exercise] .quiet{min-height:44px;padding:8px 12px}
#levelTitle{font-size:18px;margin:8px 0 4px}
.prompt{margin:4px 0;font-size:13px}
#sentence{font-size:24px;line-height:1.5;margin:14px 0 20px;word-break:normal;overflow-wrap:break-word}
#choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#choices button{min-height:48px;padding:10px 12px;font-size:16px;line-height:1.4}
#choices button:last-child{grid-column:1/-1}
#feedback{margin-top:12px;padding-top:4px}
#feedback h3{margin:10px 0;font-size:18px}
#translation{margin:8px 0;font-size:15px}
#analysis{margin-top:16px;gap:8px 6px}
.part{font-size:20px;line-height:1.5;overflow-wrap:break-word;word-break:normal;min-width:0}
.part>span{max-width:100%}
#explanation{font-size:14px;line-height:1.7;margin:12px 0}
.legend{margin:12px 0;font-size:12px}
@media(max-width:480px){
 body[data-view=exercise] main{padding-left:12px;padding-right:12px}
 body[data-view=exercise] header{padding:8px 14px}
 body[data-view=exercise] .card{padding:14px;border-radius:18px}
 #levelTitle{font-size:16px;margin:6px 0 4px}
 #sentence{font-size:22px;line-height:1.45;margin:12px 0 16px}
 #choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #choices button{font-size:15px;padding:10px 8px;min-height:48px}
 .part{font-size:19px}
 body[data-view=exercise] details{margin:18px 0}
}
@media(max-width:350px){#choices button{font-size:14px}#sentence{font-size:21px}}
.sentence-audio{display:flex;gap:8px;margin:8px 0 10px}.sentence-audio button{min-height:44px;padding:8px 14px;font-size:14px}.sentence-audio button:first-child{background:#edf4ee;color:#245c4c;font-weight:700}#sentenceAudioStatus{font-size:12px;color:#617568;line-height:1.5;margin:0 0 8px}#sentenceAudioStatus:empty{display:none}
/* A calm learning round: visible progress and one nearby next action. */
.quick-start{background:#e8f0e7;border:1px solid #ccdbcc;border-radius:22px;padding:22px;margin:20px 0}.quick-start h2{margin:5px 0;font-size:22px}.quick-start p{margin:8px 0 14px}.quick-start .primary{max-width:440px}
body:not([data-view=levelList]) #quickStart{display:none}
.journey{display:flex;gap:5px;margin:14px 0 6px}.journey span{flex:1;text-align:center;background:#eff2ec;color:#6a7b6e;border-radius:7px;font-size:12px;font-weight:700;line-height:26px}.journey .done{background:#286557;color:white}.journey .current{background:#f3df9f;color:#4a411e;box-shadow:inset 0 0 0 2px #d5af49}
.session-encouragement{font-size:12px;margin:3px 0 8px;color:#617568}
body[data-view=exercise] #patternGuide,body[data-view=exercise] footer{display:none}
.next-dock{position:sticky;bottom:0;background:rgba(255,255,255,.97);padding:8px 0 max(8px,env(safe-area-inset-bottom));z-index:2}.next-dock #next{margin:0;min-height:48px}
body[data-view=exercise] #feedback{border-top:0;margin-top:6px}body[data-view=exercise] #analysis{margin-top:10px}body[data-view=exercise] .legend{margin:8px 0}
#choices button:active{background:#e8f0e7;transform:translateY(1px)}
@media(max-width:480px){.journey{gap:3px;margin-top:10px}.journey span{font-size:11px;line-height:22px}.quick-start{padding:18px}.quick-start h2{font-size:20px}#sentenceAudioStatus{min-height:18px;font-size:11px}body[data-view=exercise] #sentence{margin:10px 0 12px}body[data-view=exercise] #levelTitle{display:none}}
@media(prefers-reduced-motion:reduce){#choices button:active{transform:none}}

.mode-nav{display:flex;gap:8px;margin:18px 0}.mode-nav button{flex:1;font-weight:700}.mode-nav .active{background:#286557;color:white}.mode-nav~#modeIntro{font-size:14px;color:#536759}#basicCards details{border-top:1px solid #dce4d9;margin:0;padding:16px 0}#basicCards p[lang=en]{font-size:22px;color:#243b34}body:not([data-view=levelList]) #modeNav,body:not([data-view=levelList]) #basicLessons,body:not([data-view=levelList]) #modeIntro{display:none}

/* Quick acknowledgement, not a forced wait or competitive streak. */
#feedback[data-outcome=correct] #result{color:#246749}#feedback[data-outcome=retry] #result{color:#715d35}#feedback:not([hidden]) #result{animation:acknowledge .16s ease-out}.round-complete{color:#286557}body[data-view=summary] .card{border-top:5px solid #a8c9a9}#toggleEffects{font-size:12px;white-space:nowrap}#exercise .row{flex-wrap:wrap}.journey .current.done{background:#286557;color:white;box-shadow:none}@keyframes acknowledge{from{opacity:.55}to{opacity:1}}@media(prefers-reduced-motion:reduce){#feedback:not([hidden]) #result{animation:none}}

#exercise{scroll-margin-top:12px}
