.hero .shell{display:block;min-height:0;padding-block:24px 58px}
.hero h1{margin:0 0 10px;font-size:clamp(1.9rem,5vw,3.3rem);line-height:1.15}
#site-notice{max-width:960px;margin:16px auto;padding:12px;background:#fff1da;color:#624113}
.studying>.stats,.studying>.plan-panel,body:has(.studying):has(#home-view:not([hidden])) #home-hero{display:none}
#after-answer{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:16px}
#dictation-feedback,#dictation-hint{line-height:1.6}
#dictation-feedback .pos{margin-right:8px}
.study-card{scroll-margin-block-start:12px}
button:focus-visible,summary:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #167e8c;outline-offset:3px}
@media(max-width:660px){.stat{min-width:0}.stat .mastery-hint{font-size:.78rem}.plan-buttons>button{min-height:44px}.study-top .secondary{flex-shrink:0}}

.plan-panel{margin-top:26px;padding:clamp(20px,4vw,36px);background:linear-gradient(110deg,#fff,#e9f8f5)}
.plan-panel h2,.study-card h2{margin:0 0 12px;font-size:clamp(23px,3vw,30px)}
.plan-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:center}
.goal-line,.plan-buttons,.study-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.goal-line input,#spelling{padding:10px 12px;border:1px solid #a7b9c8;border-radius:10px;background:white;color:#172b46}
.goal-line input{width:82px}
.mode-picker{margin:16px 0}
.mode-picker button[aria-pressed="true"]{background:#174b52;color:#fff;border-color:#174b52}
#mode-plan{border-top:1px solid #d4e6e6;padding-top:20px;margin-top:20px}
.plan-lists{display:grid;gap:8px;margin-top:20px}
.plan-lists>details{background:#fff;border:1px solid #dce7ef;border-radius:12px;padding:12px 14px}
.plan-lists summary{cursor:pointer}
.plan-lists p{overflow-wrap:anywhere}
.plan-panel progress{width:100%;height:12px;accent-color:#188674}
.plan-panel p{margin:9px 0;color:#405772}
.study-btn,.study-primary{padding:13px 18px;border:0;border-radius:12px;background:#174b52;color:white;font-weight:700}
button:disabled{opacity:.55;cursor:default}
.study-card{margin-top:22px;padding:clamp(20px,5vw,52px);min-height:440px;scroll-margin-top:18px}
.study-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.study-top small{display:block;font-size:15px;color:#546a7d;margin-top:6px}
.card-progress{margin:8px 0 0;color:#405772;font-size:.95rem}
.study-content{max-width:720px;margin:30px auto 0;text-align:center}
.study-word{font:700 clamp(42px,9vw,86px)/1.12 Georgia,serif;overflow-wrap:anywhere}
.study-phonetic{margin:12px 0 18px;color:#546a7d;font-size:20px}
#study-meaning{font-size:clamp(18px,3vw,23px);line-height:1.55}
.study-actions{margin-top:32px;justify-content:center}
[data-step="favorite"][aria-pressed="true"]{background:#fff0d8;color:#704700}
#dictation-form{max-width:440px;margin:22px auto;display:grid;gap:12px}
.stat[data-show]{text-align:left;cursor:pointer;color:inherit;font:inherit}
.stat[data-show]:hover{border-color:#268e7e}
.mastery-hint{display:block;margin-top:6px}
.mastery-modes{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.mastery-mode{padding:3px 7px;border-radius:6px;background:#ecf1f6;color:#465c71;font-size:.8125rem}
.mastery-mode.passed{background:#e3f5ee;color:#176550}
#answer-mastery:not(:empty){margin:12px 0}
.main-nav{display:flex;gap:8px;flex-wrap:wrap}
.main-nav a{color:#e6f3fb;padding:9px 13px;border-radius:10px;text-decoration:none;font-weight:700;font-size:14px}
.main-nav a[aria-current],.main-nav a:hover{background:#e8f8f3;color:#174b52}
#words-view{padding:28px 0 48px}
#words-title{font-size:clamp(28px,4vw,42px);margin:0 0 8px}
.home-history{margin-top:24px}
.practice-panel{background:white}
.practice-heading{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:18px}
#practice-size{font:inherit;margin-left:6px;padding:7px;border:1px solid #a7b9c8;border-radius:8px;background:#fff;color:#172b46}
.practice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.practice-mode{border:1px solid #dce7ef;border-radius:14px;padding:16px;min-width:0}
.practice-mode h3{margin:0 0 12px}
.practice-mode h4{margin:16px 0 6px;color:#405772}
.practice-mode summary{cursor:pointer;flex-wrap:wrap}
.record-words{overflow-wrap:anywhere;font-size:14px}
.sense{display:block;line-height:1.55}
.sense+.sense{margin-top:4px}
.choice-feedback{min-height:1.5em}
.answer-label,.answer-word{display:block}
.answer-label{font-size:.85rem;margin-bottom:3px;font-weight:700}
.answer-word{font-size:1.35rem;margin-bottom:6px}
.translation-prompt .pos{vertical-align:middle}
@media(max-width:760px){.practice-grid{grid-template-columns:1fr}}
.translation-prompt{font-size:clamp(24px,4vw,37px);font-weight:700;line-height:1.5}
.translation-options{margin:24px auto 0;max-width:640px;grid-template-columns:repeat(2,minmax(0,1fr))}
.translation-options .option{min-height:56px}
.translation-options .option:disabled{opacity:1}
#choice-feedback{min-height:1.5em}
@media(max-width:660px){.brand>span:last-child{display:none}.main-nav a{padding:8px}.translation-options{grid-template-columns:1fr}}
[hidden]{display:none!important}
@media(max-width:660px){.plan-grid{grid-template-columns:1fr}.study-card{min-height:390px}.study-content{margin-top:25px}}
