.home-tools{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}.home-tools button{display:flex;align-items:center;gap:12px;border:1px solid #dce5d6;border-radius:14px;padding:14px;text-align:left;background:white}.home-tools button>svg{background:#e5efd9;border-radius:9px;padding:7px;width:36px;height:36px;color:#44714f}.home-tools button:first-child>svg{background:#f7ecd3;color:#916b32}.home-tools strong,.home-tools small{display:block}.home-tools small{font-size:.82rem;color:#596c5e}.home-tools button:hover,.secondary:hover{border-color:#87ac86}
.study-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(230px,1fr);gap:20px;align-items:start;max-width:1100px}.study-layout .box{margin:0}.deck-setup,.deck-stats,.study-card{padding:clamp(18px,3vw,36px)}.deck-setup h2{margin:6px 0}.study-layout label,.study-card form label{display:block;font-weight:650;margin:18px 0 6px}.study-layout input,.study-layout select,.study-card input,.study-card textarea{border:1px solid #bbcbbb;background:white;color:#23382e;padding:10px 12px;border-radius:9px;font:inherit;max-width:100%}.size-row{display:flex;align-items:center;gap:10px}.size-row input{width:100px}.presets,.theme-pills,.rating-bar{display:flex;gap:8px;flex-wrap:wrap}.presets{margin-top:9px}.presets .secondary,.theme-pills .secondary{font-size:.9rem;padding:7px 14px}.deck-setup select{display:block;width:min(360px,100%);margin-bottom:18px}.big-count{font-size:2.1rem;font-weight:750;color:#386947;margin:18px 0 0}.big-count span{font-size:1.05rem;font-weight:500;color:#647669}.deck-stats p{margin-top:12px}.deck-stats details{margin-top:18px}.deck-stats summary{cursor:pointer;color:#466b53}.deck-stats a{color:#296747}.round-success{background:#e6f2df;border:1px solid #d4e4ca;border-radius:14px;padding:16px 20px;margin-bottom:18px}.study-card{width:min(100%,780px);overflow-wrap:anywhere}.round-top{display:flex;justify-content:space-between;align-items:center;gap:8px}.round-top strong{font-size:.9rem}.study-card progress,.deck-stats progress{width:100%;height:8px;appearance:none;border:0;border-radius:5px;background:#e8eee5;margin:10px 0 18px}.study-card progress::-webkit-progress-bar,.deck-stats progress::-webkit-progress-bar{background:#e8eee5;border-radius:5px}.study-card progress::-webkit-progress-value,.deck-stats progress::-webkit-progress-value{background:#6d9b63;border-radius:5px}.study-card progress::-moz-progress-bar,.deck-stats progress::-moz-progress-bar{background:#6d9b63}.word-title h2{font:600 clamp(2rem,5vw,3.4rem)/1.15 Georgia,serif;margin-bottom:6px}.word-title p{display:inline-block;color:#566e5c;margin-right:8px}.listen{border:0;color:#316f4f;background:transparent;padding:8px 6px;font-size:.9rem}.listen svg{width:17px;height:17px}.definition{font-size:1.15rem;font-weight:550;padding:12px 0 20px}.usage-block{border-top:1px solid #e0e8db;padding:16px 0}.usage-block h3,.example-block h3{font-size:.95rem;margin-bottom:4px}.example-block,.prompt-panel{background:#f0f5e9;border:1px solid #e1ead8;border-radius:12px;padding:16px 18px}.example-block .muted{margin-top:5px}.example-block h3{display:flex;align-items:center;gap:5px}.prompt-panel{margin:16px 0}.prompt-panel p{font-size:1.25rem}.rating-bar{border-top:1px solid #e0e8db;padding-top:18px;margin-top:20px}.rate{flex:1;border:1px solid;border-radius:11px;padding:13px 6px;font-weight:650;min-width:65px}.rate-2{background:#2c7351;color:white;border-color:#2c7351}.rate-1{background:#faf2da;color:#71551e;border-color:#e9dbb6}.rate-0{background:#f9ede7;color:#874b39;border-color:#e4cec4}#spelling,#phrase-answer{width:100%}.study-card form .primary{margin:12px 0}.study-card form .caption{margin:6px 0}#letter-result:not(:empty){background:#fff5e6;padding:12px;border-radius:9px;margin:12px 0}#letter-result code{font-size:1.15rem;white-space:pre-wrap;overflow-wrap:anywhere}#letter-result .replace,#letter-result .missing,#letter-result .extra{background:#f7d2be;color:#812e1c;text-decoration:underline;font-weight:700}#letter-result p+p{margin-top:5px}
.theme-pills{margin-bottom:20px}.theme-pills [aria-pressed="true"]{background:#2a704d;border-color:#2a704d;color:white}.phrase-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,295px),1fr));gap:15px}.phrase-grid .box{margin:0}.idiom h3{font-size:1.35rem;margin:8px 0 3px}.reply-line{padding:10px 12px;background:#f4f7ef;border-radius:8px;margin-top:15px}.reply-line span{font-size:.81rem;color:#62755e}.study-card .caption,.idiom .caption{color:#657362}.word-note{margin-top:14px}.word-note summary{cursor:pointer;color:#426a4e}.word-note textarea{resize:vertical;width:100%}
@media(max-width:820px){.study-layout{grid-template-columns:1fr}.study-layout .deck-stats{margin:0}aside{padding:9px 14px}nav{position:fixed;inset:auto 0 0;z-index:5;background:white;border-top:1px solid #dbe4d7;padding:4px max(3px,env(safe-area-inset-right)) max(4px,env(safe-area-inset-bottom)) max(3px,env(safe-area-inset-left));margin:0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:1px}nav button{min-width:0;height:52px;flex-direction:column;gap:2px;margin:0;padding:4px 1px;border-radius:8px;font-size:12px;white-space:nowrap}nav button svg{width:19px;height:19px}main{padding-bottom:calc(83px + env(safe-area-inset-bottom))}#toast{bottom:calc(72px + env(safe-area-inset-bottom));width:max-content;max-width:90vw}.primary,.secondary,.listen,.choice,.iconbtn,.presets .secondary,.theme-pills .secondary,.lessonHead button,.turn .iconbtn{min-height:44px}.iconbtn,.turn .iconbtn,.lessonHead button{min-width:44px}.home-tools{gap:8px}.home-tools button{padding:10px;gap:6px}.home-tools small{font-size:12px}.round-top{align-items:baseline}.topicnav a{min-height:44px;display:grid;place-items:center}.courseinfo{min-width:0}.topicnav{gap:6px}dialog{max-height:calc(100dvh - 20px);padding:18px}.turn strong{overflow-wrap:anywhere}.coursehead{flex-wrap:wrap}.study-card input,.study-card textarea,.study-layout input,.study-layout select{font-size:16px}.sectionhead h2{font-size:1.2rem}.phrase-grid{grid-template-columns:1fr}.sidefoot{display:none}}
@media(max-width:380px){main{padding-inline:10px}.home-tools button>svg{display:none}.brand{padding-left:0}.study-card{padding:16px}.hero canvas{opacity:.8}.word-title h2{font-size:1.9rem}.hero h2{max-width:65%}.hero p{max-width:70%}}
.credit-line{font-size:.82rem;color:#63705f;margin-top:10px}.credit-line summary{cursor:pointer}.credit-line a{color:#386c4b}.deck-stats details{overflow-wrap:anywhere}
.round-reset{margin:16px 0;max-width:780px;color:#657565;font-size:.9rem}.round-reset summary{cursor:pointer}.round-reset p{margin:8px 0}
.level{display:inline-flex;align-items:center;position:relative;max-width:58%;padding:0}
.level i{position:absolute;left:10px;margin:0;pointer-events:none}
.level:after{content:"";position:absolute;right:12px;width:6px;height:6px;border:solid #47704f;border-width:0 1.7px 1.7px 0;transform:translateY(-2px) rotate(45deg);pointer-events:none}
.level select{appearance:none;background:transparent;border:0;border-radius:inherit;padding:7px 28px 7px 23px;font:inherit;color:#31583b;cursor:pointer;max-width:100%}
.level select:focus-visible{outline:3px solid #c38b48;outline-offset:2px}
.course-icon,.group .course-icon{width:54px;height:54px;flex:0 0 54px;display:grid;place-items:center;border-radius:13px;background:var(--tile-bg);color:var(--tile-ink)}
.course-icon svg{height:30px;width:30px}
.tint-0{--tile-bg:#e2efdc;--tile-ink:#407147}.tint-1{--tile-bg:#f7e8d4;--tile-ink:#93633a}.tint-2{--tile-bg:#e2ebf7;--tile-ink:#4b6e9a}.tint-3{--tile-bg:#f7e5e1;--tile-ink:#9c5a50}.tint-4{--tile-bg:#ebe5f4;--tile-ink:#78638e}.tint-5{--tile-bg:#dff1ed;--tile-ink:#3e766d}.tint-6{--tile-bg:#f5edd9;--tile-ink:#86703d}.tint-7{--tile-bg:#e5edf4;--tile-ink:#4a7390}
@media(max-width:520px){.course-icon,.group .course-icon{width:46px;height:46px;flex-basis:46px;border-radius:11px}.course-icon svg{width:26px;height:26px}.level select{min-height:40px}.level{font-size:14px}.course{align-items:center}}
.course-meta{display:flex;flex-wrap:wrap;gap:0 7px}.course-meta span:last-child{white-space:nowrap}.course-meta span+span:before{content:"· ";color:#8a958a}@media(max-width:520px){.course-meta{display:block}.course-meta span{display:block}.course-meta span+span:before{content:none}}
.level:has(.picker-trigger){border:0;background:none}.level:has(.picker-trigger)>i,.level:has(.picker-trigger):after,select[hidden]{display:none!important}
.picker-trigger{font:inherit;display:inline-flex;align-items:center;gap:8px;border:1px solid #c9ddc4;background:#edf5e8;color:#315e3f;padding:7px 11px;border-radius:20px;min-height:36px;white-space:nowrap;max-width:100%}
.picker-trigger>svg,.picker-option svg{width:17px;height:17px}.picker-trigger>svg:last-child{width:15px;margin-left:auto;transition:transform .14s}.picker-trigger[aria-expanded=true]>svg:last-child{transform:rotate(180deg)}
.picker-trigger:hover,.picker-trigger[aria-expanded=true]{background:#e3efdc;border-color:#89ad84}.picker-trigger:focus-visible{outline:3px solid #a7c8a0;outline-offset:2px}
.picker-field{display:flex;width:min(360px,100%);margin-bottom:18px;border-radius:11px;min-height:45px;background:white;font-size:1rem;color:#354d3c;padding:10px 13px}.picker-field>svg:first-child{color:#53835a}
.picker-menu{position:fixed;z-index:30;box-sizing:border-box;margin:0;border:1px solid #d7e3d1;border-radius:15px;padding:6px;background:#fff;box-shadow:0 8px 30px #234a3226,0 2px 5px #294d3410;overflow:auto;overscroll-behavior:contain}
.picker-heading{font-size:13px;font-weight:600;color:#677861;padding:6px 10px}.picker-option{display:flex;align-items:center;gap:10px;padding:8px 10px;min-height:45px;border-radius:9px;cursor:pointer;color:#344839;line-height:1.3}
.picker-badge{width:34px;height:34px;display:grid;place-items:center;flex:0 0 34px;border:1px solid #dce6d7;background:#f5f8f1;color:#54714d;border-radius:9px;font-size:13px;font-weight:700}
.picker-copy{flex:1;min-width:0}.picker-copy strong,.picker-copy small{display:block}.picker-copy strong{font-size:15px;font-weight:550}.picker-copy small{font-size:12px;color:#6b7968;margin-top:2px}
.picker-option[aria-selected=true]{background:#eaf3e4;color:#2c673c}.picker-option[aria-selected=true] .picker-badge{background:#d8eacd;border-color:#c5dbb9}.picker-option.is-active{box-shadow:inset 0 0 0 1px #afc6a7}
@media(hover:hover){.picker-option:not([aria-disabled=true]):hover{background:#f0f5eb}}
.picker-option[aria-disabled=true]{color:#899086;cursor:default}.picker-option[aria-disabled=true] .picker-badge{color:#929a8f;background:#f7f8f6}
@media(max-width:820px){.picker-trigger{min-height:42px}.picker-option{min-height:48px}.picker-field{min-height:46px}}
@media(prefers-reduced-motion:reduce){.picker-trigger>svg:last-child{transition:none}}
.picker-trigger,.picker-option{-webkit-tap-highlight-color:transparent}
html{scrollbar-gutter:stable}
html.overlay-open{overflow:hidden;overscroll-behavior:none}
#lesson,.picker-menu{overscroll-behavior:contain}
#lesson::backdrop{touch-action:none}
