:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;color:#20242d;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;--ink:#20242d;--muted:#6d716f;--subtle:#656a66;--paper:#fffefa;--paper-strong:#fff;--canvas:#f4f3ef;--line:#dddcd5;--line-strong:#c8c7bf;--blue:#3157d8;--blue-deep:#2446ba;--blue-soft:#eef2ff;--green:#1f7a4d;--green-soft:#eaf6ef;--amber:#93621c;--amber-soft:#fff6e5;--danger:#a33b35;--shadow:0 18px 50px #272b3212;background:#f4f3ef;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html{background:var(--canvas);min-width:320px}body{background:radial-gradient(circle at 84% 2%, #3157d814, transparent 28rem), var(--canvas);min-width:320px;min-height:100vh;margin:0}button,select,textarea,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed}button,select,textarea,input{-webkit-tap-highlight-color:transparent}button:focus-visible,select:focus-visible,textarea:focus-visible,input:focus-visible{outline-offset:2px;outline:3px solid #3157d847}.app-shell{width:min(100%,1460px);min-height:100vh;margin:0 auto;padding:20px 30px 40px;animation:.42s ease-out both app-enter}@keyframes app-enter{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.topbar{justify-content:space-between;align-items:center;min-height:54px;margin-bottom:16px;display:flex}.brand-lockup{align-items:center;gap:12px;display:flex}.brand-lockup>div:last-child{gap:1px;display:grid}.brand-lockup strong{color:var(--ink);letter-spacing:-.02em;font-family:Georgia,Times New Roman,serif;font-size:24px;line-height:1}.brand-lockup span{color:var(--muted);font-size:12px;font-weight:600}.brand-mark,.empty-mark{background:var(--blue);color:#fff;border-radius:13px;place-items:center;width:40px;height:40px;display:grid;box-shadow:0 8px 20px #3157d833}.study-stats{color:var(--muted);align-items:center;gap:22px;font-size:12px;font-weight:650;display:flex}.study-stats span{align-items:baseline;gap:5px;display:flex}.study-stats strong{color:var(--ink);font-size:16px}.language-bar{border:1px solid var(--line);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:#fffefad1;border-radius:18px;grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr);align-items:end;gap:12px;margin-bottom:16px;padding:12px 16px 14px;display:grid}.language-select{gap:5px;display:grid}.field-label,.source-input-label{color:var(--muted);letter-spacing:.06em;text-transform:uppercase;font-size:11px;font-weight:750}.select-control{min-width:0;height:38px;color:var(--blue-deep);align-items:center;gap:9px;display:flex;position:relative}.select-control select{appearance:none;min-width:0;color:var(--ink);background:0 0;border:0;flex:1;font-size:17px;font-weight:720}.select-control svg:last-child{color:var(--subtle)}.swap-button,.icon-button{border:1px solid var(--line);background:var(--paper-strong);color:#515763;place-items:center;transition:transform .15s,border-color .15s,color .15s,background .15s;display:grid}.swap-button{border-radius:13px;width:42px;height:42px}.icon-button{border-radius:10px;flex:none;width:34px;height:34px}.swap-button:hover:not(:disabled),.icon-button:hover:not(:disabled){background:var(--blue-soft);color:var(--blue-deep);border-color:#bfc6df;transform:translateY(-1px)}.workspace{grid-template-columns:minmax(315px,395px) minmax(0,1fr);align-items:start;gap:18px;display:grid}.study-rail{gap:14px;min-width:0;display:grid}.composer,.progress-panel,.lesson-panel{border:1px solid var(--line);background:var(--paper)}.composer,.progress-panel{border-radius:18px}.composer{box-shadow:var(--shadow);padding:21px}.section-heading{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.section-heading h2,.lesson-toolbar h2,.feedback-heading h3{color:var(--ink);letter-spacing:-.015em;margin:2px 0 0;font-size:18px;line-height:1.2}.eyebrow{color:var(--blue-deep);letter-spacing:.11em;text-transform:uppercase;font-size:10px;font-weight:800}.mode-switch{border:0;margin:19px 0 17px;padding:0}.mode-switch legend{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.mode-switch>div{background:#efeee9;border-radius:11px;grid-template-columns:repeat(3,1fr);gap:3px;padding:3px;display:grid}.mode-switch button{min-height:34px;color:var(--muted);background:0 0;border:0;border-radius:8px;font-size:12px;font-weight:720}.mode-switch button.is-active{background:var(--paper-strong);color:var(--ink);box-shadow:0 2px 8px #2d313914}.source-input-label{margin-bottom:8px;display:block}#source-input{resize:vertical;border:1px solid var(--line);background:var(--paper-strong);width:100%;min-height:122px;max-height:230px;color:var(--ink);border-radius:13px;outline:none;padding:15px 16px;font-size:24px;line-height:1.35;transition:border-color .15s,box-shadow .15s;display:block}#source-input:focus{border-color:var(--blue);box-shadow:0 0 0 4px #3157d81a}#source-input::placeholder{color:#6d716f}.composer-meta{color:var(--subtle);justify-content:space-between;margin:7px 2px 15px;font-size:10px;font-weight:650;display:flex}.button{border:1px solid var(--line);background:var(--paper-strong);color:#424853;border-radius:11px;justify-content:center;align-items:center;gap:8px;min-height:40px;padding:0 14px;font-size:13px;font-weight:740;transition:transform .14s,border-color .14s,background .14s,color .14s,box-shadow .14s;display:inline-flex}.button:hover:not(:disabled){background:#f8f9ff;border-color:#bcc4dc;transform:translateY(-1px)}.button:disabled{opacity:.48}.button-primary{border-color:var(--blue);background:var(--blue);color:#fff;width:100%;min-height:52px;box-shadow:0 9px 20px #3157d82e}.button-primary:hover:not(:disabled),.button-primary-compact:hover:not(:disabled){border-color:var(--blue-deep);background:var(--blue-deep)}.button-primary-compact{border-color:var(--blue);background:var(--blue);color:#fff;min-height:44px}.button-outline{border-color:var(--blue);min-width:104px;color:var(--blue-deep)}.button-text{min-height:34px;color:var(--blue-deep);background:0 0;border-color:#0000;padding:0 4px}.spinner{border:2px solid;border-right-color:#0000;border-radius:50%;width:17px;height:17px;animation:.7s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.progress-panel{padding:19px 20px 18px}.progress-panel .section-heading>svg{color:var(--subtle)}.due-callout{background:var(--blue-soft);width:100%;min-height:58px;color:var(--blue-deep);text-align:left;border:0;border-radius:12px;justify-content:space-between;align-items:center;margin-top:15px;padding:10px 13px;display:flex}.due-callout>span{gap:1px;display:grid}.due-callout strong{font-size:13px}.due-callout small{color:#4f5d86;font-size:11px}.quiet-state{color:var(--muted);margin:13px 0 0;font-size:12px;line-height:1.55}.recent-list{border-top:1px solid var(--line);gap:1px;margin-top:15px;padding-top:12px;display:grid}.recent-label{color:var(--muted);letter-spacing:.06em;text-transform:uppercase;align-items:center;gap:6px;margin-bottom:4px;font-size:10px;font-weight:780;display:flex}.recent-list>button{width:100%;min-height:42px;color:var(--ink);text-align:left;background:0 0;border:0;border-radius:9px;justify-content:space-between;align-items:center;gap:10px;padding:5px 7px;display:flex}.recent-list>button:hover:not(:disabled){background:#f1f0eb}.recent-word{text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:680;overflow:hidden}.recent-meta{color:var(--subtle);justify-items:end;gap:3px;display:grid}.recent-meta small{font-size:9px}.mastery-dots{gap:2px;display:inline-flex}.mastery-dots>span{background:#d1d0ca;border-radius:50%;width:5px;height:5px}.mastery-dots>span.is-filled{background:var(--green)}.lesson-panel{min-width:0;min-height:558px;box-shadow:var(--shadow);border-radius:20px;overflow:hidden}.empty-lesson{background:linear-gradient(135deg, #eef2ffcc, #fffefa00 45%), var(--paper);flex-direction:column;justify-content:center;align-items:flex-start;padding:clamp(38px,7vw,92px);display:flex}.empty-lesson .empty-mark{margin-bottom:24px}.empty-lesson h1{max-width:600px;color:var(--ink);letter-spacing:-.045em;margin:8px 0 12px;font-family:Georgia,Times New Roman,serif;font-size:clamp(38px,5vw,66px);font-weight:500;line-height:.98}.empty-lesson>p{max-width:560px;color:var(--muted);margin:0;font-size:16px;line-height:1.6}.learning-steps{color:#515762;flex-wrap:wrap;gap:10px 22px;margin:28px 0 26px;font-size:12px;font-weight:680;display:flex}.learning-steps span{align-items:center;gap:7px;display:flex}.learning-steps strong{background:var(--blue-soft);width:21px;height:21px;color:var(--blue-deep);border-radius:50%;place-items:center;font-size:10px;display:grid}.lesson-toolbar{border-bottom:1px solid var(--line);background:#ffffffa3;justify-content:space-between;align-items:center;gap:20px;min-height:80px;padding:17px 24px;display:flex}.lesson-actions{gap:8px;display:flex}.hint-body{padding:24px 28px 8px;animation:.34s ease-out both lesson-reveal}@keyframes lesson-reveal{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.hint-lead-line,.final-question{color:#343a46;margin:0;font-size:16px;font-weight:720;line-height:1.5}.examples{border-top:1px solid var(--line);gap:0;margin:16px 0 20px;padding:0;list-style:none;display:grid}.examples>li{border-bottom:1px solid var(--line);grid-template-columns:30px minmax(0,1fr);gap:11px;padding:12px 0;display:grid}.example-number{background:var(--blue-soft);width:25px;height:25px;color:var(--blue-deep);border-radius:8px;place-items:center;margin-top:1px;font-size:11px;font-weight:800;display:grid}.example-content{min-width:0}.example-line{color:var(--ink);justify-content:space-between;align-items:center;gap:12px;font-size:17px;line-height:1.5;display:flex}.example-line .icon-button{width:31px;height:31px}.gloss-row{flex-wrap:wrap;align-items:baseline;gap:8px;margin-top:5px;display:flex}.gloss-row button{color:var(--blue-deep);background:0 0;border:0;padding:0;font-size:10px;font-weight:760}.gloss-row span{color:var(--muted);font-size:11px}.guidance-list{gap:8px;margin:0 0 17px;padding:0;list-style:none;display:grid}.guidance-list li{color:#535965;padding-left:16px;font-size:14px;line-height:1.45;position:relative}.guidance-list li:before{content:"";background:var(--blue);border-radius:50%;width:5px;height:5px;position:absolute;top:.65em;left:1px}.image-stage{background:#efeee9;border-radius:14px;margin:20px 0 6px;overflow:hidden}.image-stage img{object-fit:contain;width:100%;max-height:420px;display:block}.image-stage figcaption{background:var(--blue-soft);color:var(--ink);text-align:left;border-top:1px solid #dfe4f5;gap:8px;padding:16px 18px 18px;animation:.3s ease-out both image-clue-reveal;display:grid}.image-stage figcaption.image-clue-label{justify-content:flex-end;padding:8px 12px;display:flex}.image-clue-label{color:var(--blue-deep);letter-spacing:.08em;text-transform:uppercase;align-items:center;gap:7px;font-size:10px;font-weight:780;display:inline-flex}.image-stage figcaption p{max-width:74ch;margin:0;font-size:14px;font-weight:700;line-height:1.5}.image-stage figcaption ul{color:#4f5665;gap:5px;margin:0;padding:0;font-size:13px;line-height:1.45;list-style:none;display:grid}.image-stage figcaption li{padding-left:14px;position:relative}.image-stage figcaption li:before{content:"";background:var(--blue);border-radius:50%;width:4px;height:4px;position:absolute;top:.65em;left:1px}@keyframes image-clue-reveal{0%{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:translateY(0)}}.answer-area{padding:19px 28px 22px}.answer-area>label{color:var(--ink);margin-bottom:8px;font-size:13px;font-weight:760;display:block}.answer-area>label span{color:var(--muted);font-size:11px;font-weight:600}.answer-row{grid-template-columns:minmax(0,1fr) auto;gap:9px;display:grid}.answer-row input{border:1px solid var(--line-strong);background:var(--paper-strong);width:100%;min-width:0;height:48px;color:var(--ink);border-radius:11px;outline:none;padding:0 14px;font-size:15px}.answer-row input:focus{border-color:var(--blue);box-shadow:0 0 0 4px #3157d81a}.feedback-card{background:var(--amber-soft);border:1px solid #edd7b5;border-radius:15px;margin:0 28px 22px;padding:18px;animation:.28s ease-out both feedback-enter}@keyframes feedback-enter{0%{opacity:0;transform:scale(.985)}to{opacity:1;transform:scale(1)}}.feedback-card.is-correct{background:var(--green-soft);border-color:#c9e3d3}.feedback-card.is-revealed{background:var(--blue-soft);border-color:#d9ddef}.feedback-heading{align-items:center;gap:11px;display:flex}.feedback-icon{width:34px;height:34px;color:var(--amber);background:#fffc;border-radius:11px;place-items:center;display:grid}.is-correct .feedback-icon{color:var(--green)}.is-revealed .feedback-icon{color:var(--blue-deep)}.feedback-card>p{color:#50555e;margin:12px 0 0;font-size:13px;line-height:1.55}.accepted-alternatives strong{color:var(--ink)}.word-notes{border-top:1px solid #565c6624;border-bottom:1px solid #565c6624;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px;margin:16px 0;padding:14px 0;display:grid}.word-notes>div{gap:2px;display:grid}.word-notes dt{color:var(--muted);letter-spacing:.08em;text-transform:uppercase;font-size:9px;font-weight:800}.word-notes dd{color:var(--ink);margin:0;font-size:12px;font-weight:670}.reinforcement{background:#ffffffb8;border-radius:11px;justify-content:space-between;align-items:center;gap:12px;margin:14px 0;padding:11px 12px;display:flex}.reinforcement>div{gap:2px;display:grid}.reinforcement span{color:var(--ink);font-size:13px;font-weight:680}.reinforcement small{color:var(--muted);font-size:11px}.usage-note{border-left:2px solid #3157d847;padding-left:12px;color:#4f5560!important;margin:10px 0 14px!important}.reveal-row{border-top:1px solid var(--line);min-height:54px;color:var(--muted);justify-content:flex-end;align-items:center;gap:8px;padding:10px 28px;font-size:11px;display:flex}.error-toast{z-index:10;max-width:min(440px,100vw - 32px);color:var(--danger);background:#fff4f3;border:1px solid #e6c3c0;border-radius:13px;padding:12px 15px;font-size:12px;font-weight:680;position:fixed;bottom:24px;right:24px;box-shadow:0 16px 50px #4b201e24}.sr-status{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}@media (width<=980px){.app-shell{padding:16px 18px 34px}.workspace{grid-template-columns:1fr}.study-rail{grid-template-columns:minmax(0,1fr) minmax(260px,.75fr)}.lesson-panel{min-height:500px}}@media (width<=720px){body{background:var(--canvas)}.app-shell{padding:14px 14px 28px}.topbar{align-items:flex-start;gap:12px}.brand-lockup span{display:none}.study-stats{gap:11px}.study-stats span{text-align:center;gap:0;display:grid}.study-stats strong{font-size:14px}.language-bar{grid-template-columns:minmax(0,1fr) 40px;padding:11px 13px 13px}.language-select:last-child{grid-column:1/-1}.swap-button{width:38px;height:38px}.study-rail{grid-template-columns:1fr}.progress-panel{order:2}.lesson-panel{min-height:auto}.empty-lesson{min-height:480px;padding:38px 26px}.empty-lesson h1{font-size:43px}.lesson-toolbar{flex-direction:column;align-items:flex-start;padding:17px 18px}.lesson-actions{grid-template-columns:1fr 1fr;width:100%;display:grid}.hint-body,.answer-area{padding-left:19px;padding-right:19px}.feedback-card{margin-left:19px;margin-right:19px}.answer-row{grid-template-columns:1fr}.button-outline{width:100%}.reveal-row{flex-direction:column;align-items:flex-end}}@media (width<=430px){.brand-mark{width:36px;height:36px}.brand-lockup strong{font-size:21px}.study-stats span:last-child{display:none}.composer{padding:18px}#source-input{min-height:110px;font-size:22px}.learning-steps{display:grid}.lesson-actions,.word-notes{grid-template-columns:1fr}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
