:root{--bg:#f5f4ef;--paper:#fffefa;--ink:#161820;--muted:#777982;--line:#e5e3dc;--accent:#ffad78;--accent-strong:#6a3821;--lime:#ffad78;--coral:#ff705e;--lav:#f4dfd1;--night:#101116;--card:#fffefa;--shadow:0 14px 38px rgba(26,28,40,.07);--radius:22px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:Manrope,system-ui,sans-serif;font-size:14px;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button{cursor:pointer;color:inherit}.app-shell{display:flex;min-height:100vh}.sidebar{width:248px;flex:0 0 248px;background:var(--night);color:#f7f7f2;padding:28px 16px 18px;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;z-index:5}.brand{display:flex;align-items:center;gap:11px;padding:0 13px;text-decoration:none;color:#fff;font-size:24px;font-weight:800;letter-spacing:-1.6px}.brand-dot{color:var(--lime)}.brand-mark{width:25px;height:24px;position:relative;display:flex;align-items:center;gap:3px;transform:skew(-12deg)}.brand-mark i{display:block;width:8px;border:2px solid var(--lime);height:20px;border-radius:3px}.brand-mark i+ i{height:15px;border-color:#ffad78}.sidebar-label{margin:50px 13px 12px;color:#757783;letter-spacing:1.5px;font-size:9px;font-weight:800}.nav-list{display:grid;gap:5px}.nav-item{height:46px;width:100%;border:0;background:transparent;color:#b7b8c1;border-radius:12px;text-align:left;display:flex;align-items:center;gap:13px;padding:0 13px;font-size:13px;font-weight:650;transition:.18s}.nav-item:hover{background:#1d1e27;color:#fff}.nav-item.active{color:#fff;background:#272936}.nav-item.active .nav-icon{color:var(--lime)}.nav-icon{font-size:19px;color:#828590;width:20px;text-align:center;font-weight:400}.nav-count{margin-left:auto;color:#828590;font:10px 'DM Mono',monospace}.sidebar-bottom{margin-top:auto}.streak-card{margin:0 4px 15px;border:1px solid #292b34;background:#191a21;border-radius:16px;padding:14px}.streak-top{display:flex;justify-content:space-between;color:#92949f;font:9px 'DM Mono',monospace;letter-spacing:1px}.flame{color:var(--coral);font-size:16px}.streak-card strong{display:block;font-size:19px;margin:7px 0 11px}.week-dots{display:flex;gap:7px;margin-bottom:10px}.week-dots i{width:13px;height:13px;border-radius:50%;border:1px solid #474953}.week-dots i.done{background:var(--lime);border-color:var(--lime)}.week-dots i.today{border-color:var(--lime);box-shadow:0 0 0 3px #ffad7822}.streak-card small{font-size:10px;color:#999ba4}.settings-nav{margin-bottom:10px}.user-chip{display:flex;align-items:center;gap:10px;border-top:1px solid #292b34;padding:16px 9px 0}.avatar,.mobile-avatar{height:34px;width:34px;border-radius:50%;background:#ffad78;color:white;display:grid;place-items:center;font-weight:800}.user-chip b,.user-chip small{display:block}.user-chip b{font-size:11px}.user-chip small{font-size:9px;color:#888b96;margin-top:3px}.more{margin-left:auto;color:#92949f;font-size:19px}.main-area{margin-left:248px;width:calc(100% - 248px);min-height:100vh}.topbar{height:70px;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(24px,5vw,70px);border-bottom:1px solid var(--line);background:rgba(245,244,239,.92);position:sticky;top:0;z-index:4;backdrop-filter:blur(12px)}.crumb{display:flex;align-items:center;gap:10px;color:#777982;font:10px 'DM Mono',monospace;letter-spacing:1.1px}.live-dot{width:7px;height:7px;border-radius:50%;background:#ffad78}.top-actions{display:flex;gap:12px;align-items:center}.icon-button{height:34px;width:34px;border:1px solid var(--line);border-radius:50%;background:transparent;font-size:16px;color:var(--accent)}.goal-pill{display:flex;align-items:center;gap:8px;border:0;background:transparent;text-align:left;padding:2px}.goal-ring{width:30px;height:30px;border:2px solid #695141;border-top-color:var(--accent);border-right-color:var(--accent);border-radius:50%;display:grid;place-items:center;color:var(--accent)}.goal-pill b,.goal-pill small{display:block}.goal-pill b{font-size:10px}.goal-pill small{color:var(--muted);font-size:9px;margin-top:2px}.mobile-avatar{display:none;border:0}.view-root{max-width:1240px;margin:auto;padding:34px clamp(24px,5vw,70px) 70px}.eyebrow{font:10px 'DM Mono',monospace;letter-spacing:1.1px;color:var(--muted);text-transform:uppercase}.page-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:25px}.page-heading h1{font-size:32px;letter-spacing:-1.5px;margin:8px 0 0;line-height:1.1}.page-heading p{color:var(--muted);margin:8px 0 0;font-size:13px}.text-button{border:0;background:transparent;color:var(--accent);font-weight:750;font-size:12px}.hero{display:grid;grid-template-columns:1.22fr .78fr;gap:22px;min-height:344px;margin-bottom:31px}.hero-main{background:var(--accent);border-radius:26px;padding:32px 36px;color:#fff;position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;min-height:344px}.hero-main:after{content:"";position:absolute;width:330px;height:330px;border:1px solid #ffffff29;border-radius:50%;right:-90px;top:-86px;box-shadow:0 0 0 34px #ffffff0d,0 0 0 70px #ffffff0a}.hero-kicker{display:flex;align-items:center;gap:8px;font:10px 'DM Mono',monospace;letter-spacing:1.1px;color:#f0ddce}.hero-kicker span{background:var(--lime);color:#11131c;border-radius:30px;padding:5px 8px;font-size:9px;letter-spacing:.4px;font-weight:700}.hero-main h1{font-size:clamp(37px,4.3vw,57px);letter-spacing:-3px;line-height:.99;max-width:540px;margin:25px 0 12px;position:relative;z-index:1}.hero-main p{font-size:13px;color:#f4decf;line-height:1.6;max-width:400px;margin:0;position:relative;z-index:1}.hero-bottom{display:flex;align-items:center;gap:13px;margin-top:25px;z-index:1}.primary-btn,.secondary-btn,.ghost-btn{border:0;border-radius:100px;min-height:46px;padding:0 19px;font-weight:800;font-size:12px;display:inline-flex;align-items:center;justify-content:center;gap:9px;transition:transform .16s,background .16s}.primary-btn{background:var(--lime);color:#13151a}.primary-btn:hover,.secondary-btn:hover{transform:translateY(-2px)}.hero-meta{font:10px 'DM Mono',monospace;color:#f4decf}.hero-art{position:absolute;right:9%;top:25%;z-index:0;width:170px;height:150px;transform:rotate(8deg)}.subtitle-slab{position:absolute;width:185px;height:44px;border-radius:7px;background:#fff;color:#161820;display:flex;align-items:center;padding:0 13px;font-size:14px;font-weight:800;box-shadow:0 12px 35px #2d1b1442}.subtitle-slab.one{top:5px;left:9px;transform:rotate(-7deg)}.subtitle-slab.two{top:59px;left:0;background:var(--lime);transform:rotate(5deg)}.subtitle-slab.three{top:113px;left:20px;background:#ff775f;color:#fff;transform:rotate(-4deg);width:130px}.hero-side{background:#e8e8e1;border-radius:26px;padding:24px;display:flex;flex-direction:column;position:relative;overflow:hidden}.side-top{display:flex;justify-content:space-between;align-items:center}.side-top .eyebrow{color:#74766f}.tag{font:9px 'DM Mono',monospace;border:1px solid #cccdc5;padding:6px 9px;border-radius:50px;color:#71736c}.hero-side h3{font-size:23px;line-height:1.12;letter-spacing:-1px;margin:22px 0 7px;max-width:250px;z-index:1}.hero-side p{font-size:11px;line-height:1.5;color:#64665f;max-width:230px;margin:0;z-index:1}.side-scene{position:absolute;right:-11px;bottom:42px;width:164px;height:105px;border:1px solid #b8bbb4;border-radius:9px;transform:rotate(-8deg);background:#d6d6ce}.side-scene:before,.side-scene:after{content:"";position:absolute;background:#bec1b9;border-radius:50%}.side-scene:before{width:68px;height:68px;right:23px;top:-21px}.side-scene:after{width:120px;height:56px;right:45px;bottom:-25px;border-radius:55% 55% 0 0}.side-play{position:absolute;right:25px;bottom:22px;width:40px;height:40px;border-radius:50%;background:var(--coral);color:white;display:grid;place-items:center;z-index:1;font-size:14px}.side-foot{display:flex;align-items:center;justify-content:space-between;margin-top:auto;z-index:1;font:9px 'DM Mono',monospace;color:#72746e}.section-row{display:flex;align-items:center;justify-content:space-between;margin:0 0 13px}.section-row h2{font-size:17px;letter-spacing:-.6px;margin:0}.section-row .text-button{font-size:11px}.quick-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin-bottom:31px}.quick-card{background:var(--paper);border:1px solid var(--line);border-radius:17px;padding:16px;display:flex;gap:13px;align-items:center;min-height:92px;text-align:left;transition:.18s}.quick-card:hover,.scene-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.quick-icon{width:42px;height:42px;border-radius:13px;background:#f5dfce;color:var(--accent);display:grid;place-items:center;font-size:20px;flex:none}.quick-card:nth-child(2) .quick-icon{background:#eff8cf;color:#4a6513}.quick-card:nth-child(3) .quick-icon{background:#ffebe6;color:#e5533e}.quick-card b{display:block;font-size:12px}.quick-card small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.quick-arrow{margin-left:auto;color:#9b9ca2}.scene-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.scene-card{background:var(--paper);border:1px solid var(--line);border-radius:18px;overflow:hidden;transition:.18s;cursor:pointer}.scene-art{height:135px;padding:14px;position:relative;overflow:hidden;display:flex;align-items:end}.scene-art.purple{background:#ecd4c3}.scene-art.orange{background:#ffd8ca}.scene-art.green{background:#dce7b9}.scene-art.blue{background:#ecd5c3}.scene-art.pink{background:#f5cee5}.scene-art.yellow{background:#f3e6a7}.scene-art:before{content:"";width:135px;height:135px;border:1px solid #1b1b1b25;border-radius:50%;position:absolute;top:-55px;right:-23px;box-shadow:0 0 0 18px #00000008,0 0 0 38px #00000005}.scene-art .scene-word{position:absolute;top:24px;left:18px;font-size:23px;line-height:.95;font-weight:800;letter-spacing:-1.5px;max-width:155px}.scene-art .scene-caption{position:absolute;left:18px;bottom:16px;background:#fff;border-radius:5px;padding:7px 9px;font-size:10px;font-weight:800;transform:rotate(-2deg)}.scene-art .mini-sticker{position:absolute;right:15px;bottom:15px;width:43px;height:43px;background:var(--lime);border-radius:50%;display:grid;place-items:center;font-size:18px;transform:rotate(10deg)}.scene-info{padding:13px 15px 15px}.scene-meta{display:flex;align-items:center;gap:8px;color:var(--muted);font:9px 'DM Mono',monospace;text-transform:uppercase}.scene-meta .level{margin-left:auto;background:#f1f0ea;color:#5f6065;padding:4px 6px;border-radius:4px}.scene-info h3{font-size:14px;letter-spacing:-.3px;margin:9px 0 4px}.scene-info p{font-size:10px;color:var(--muted);margin:0;line-height:1.5}.scene-foot{display:flex;justify-content:space-between;margin-top:13px;padding-top:10px;border-top:1px solid var(--line);font:9px 'DM Mono',monospace;color:#777982}.scene-foot b{color:var(--accent);font-family:Manrope}.view-layout{display:grid;grid-template-columns:1fr 280px;gap:24px}.filter-row{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:18px}.filter-chip{padding:8px 12px;border-radius:30px;background:transparent;border:1px solid var(--line);font-size:10px;color:#686a73}.filter-chip.active{background:var(--ink);color:#fff;border-color:var(--ink)}.search-box{display:flex;align-items:center;gap:9px;background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:0 13px;height:42px;margin-bottom:15px}.search-box input{border:0;outline:0;background:none;width:100%;font-size:11px}.side-note{background:var(--night);color:white;border-radius:18px;padding:19px;height:max-content}.side-note .eyebrow{color:#a1a2aa}.side-note h3{font-size:20px;line-height:1.1;letter-spacing:-.8px;margin:17px 0 9px}.side-note p{font-size:11px;line-height:1.6;color:#b8b9c1}.side-note .note-mark{color:var(--lime);font-size:30px}.empty-state{background:var(--paper);border:1px dashed var(--line);border-radius:14px;padding:35px;text-align:center;color:var(--muted);grid-column:1/-1}.progress-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:16px}.panel{background:var(--paper);border:1px solid var(--line);border-radius:19px;padding:20px}.panel h3{font-size:14px;margin:0 0 5px;letter-spacing:-.4px}.panel .sub{font-size:10px;color:var(--muted);margin:0}.big-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:20px}.stat-box{background:#f5f4ef;border-radius:13px;padding:13px}.stat-box strong{font-size:22px;letter-spacing:-1px;display:block}.stat-box small{font-size:9px;color:var(--muted)}.bars{height:138px;display:flex;align-items:end;justify-content:space-around;gap:12px;margin:25px 4px 0;border-bottom:1px solid var(--line);background:repeating-linear-gradient(to bottom,transparent 0 33px,#eae9e3 34px,#eae9e3 35px)}.bar-col{height:100%;display:flex;flex-direction:column;justify-content:end;align-items:center;gap:7px;flex:1}.bar{width:100%;max-width:30px;background:#785640;border-radius:6px 6px 2px 2px;min-height:5px}.bar.current{background:var(--accent)}.bar-col small{font:8px 'DM Mono',monospace;color:var(--muted);position:relative;bottom:-19px}.skill-row{margin-top:17px}.skill-label{display:flex;justify-content:space-between;font-size:10px;margin-bottom:7px}.skill-label span:last-child{font:9px 'DM Mono',monospace;color:var(--muted)}.meter{height:6px;border-radius:8px;background:#efeee9;overflow:hidden}.meter i{height:100%;display:block;border-radius:8px;background:var(--accent)}.word-list{display:grid;gap:0;margin-top:12px}.word-row{display:grid;grid-template-columns:1fr auto auto;gap:9px;align-items:center;padding:11px 0;border-bottom:1px solid var(--line)}.word-row:last-child{border:0}.word-row b{font-size:12px}.word-row small{display:block;font-size:9px;color:var(--muted);margin-top:3px}.word-row .tag{font-size:8px}.audio-mini{width:28px;height:28px;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--accent)}.badge-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:15px}.badge{border:1px solid var(--line);border-radius:13px;padding:12px 7px;text-align:center}.badge span{font-size:20px;display:block}.badge b{font-size:9px;display:block;margin-top:6px}.badge small{font-size:8px;color:var(--muted)}.badge.locked{opacity:.42;filter:grayscale(1)}.secondary-btn{background:#fff;color:var(--ink)}.ghost-btn{background:transparent;color:#fff;border:1px solid #ffffff55}.lesson-modal{position:fixed;inset:0;background:#f6f5f0;z-index:15;display:flex;flex-direction:column;overflow:auto}.lesson-top{height:70px;flex:none;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 clamp(18px,6vw,80px)}.lesson-brand{font-weight:800;font-size:16px;letter-spacing:-.7px}.lesson-brand span{color:var(--accent)}.close-btn{border:1px solid var(--line);width:34px;height:34px;border-radius:50%;background:var(--paper);font-size:18px}.lesson-progress{height:3px;background:#e7e6df}.lesson-progress i{display:block;background:var(--accent);height:100%;transition:width .25s}.lesson-wrap{width:min(760px,calc(100% - 36px));margin:35px auto 70px;flex:1;display:flex;flex-direction:column}.lesson-step-label{font:10px 'DM Mono',monospace;letter-spacing:1px;color:var(--muted);text-transform:uppercase}.lesson-wrap h1{font-size:32px;letter-spacing:-1.5px;margin:10px 0 8px}.lesson-lead{font-size:12px;color:var(--muted);line-height:1.6;margin:0 0 24px}.video-placeholder{height:260px;border-radius:20px;background:#ecd4c3;position:relative;overflow:hidden;display:grid;place-items:center;margin-bottom:17px}.video-placeholder:before{content:"";position:absolute;width:240px;height:240px;border:1px solid #31313c22;border-radius:50%;right:5%;top:-75px;box-shadow:0 0 0 30px #00000009,0 0 0 65px #00000006}.video-placeholder .figure{position:absolute;bottom:-30px;width:115px;height:200px;border-radius:60px 60px 0 0;background:#aa755c;left:28%}.video-placeholder .figure.two{height:165px;background:#ff896b;left:57%;width:100px}.video-placeholder .play-button{height:54px;width:54px;border:0;border-radius:50%;background:#fff;color:var(--accent);font-size:18px;z-index:2;box-shadow:0 4px 16px #3332}.subtitle-line{position:absolute;bottom:21px;z-index:2;background:#171820;color:#fff;border-radius:5px;padding:8px 12px;font-size:13px;font-weight:800}.lesson-toolbar{display:flex;gap:9px;justify-content:center;margin-bottom:18px}.tool-button{border:1px solid var(--line);background:var(--paper);padding:8px 11px;border-radius:30px;font-size:9px;color:#696b74}.tool-button.active{border-color:var(--accent);color:var(--accent)}.question-card{border:1px solid var(--line);background:var(--paper);border-radius:17px;padding:18px}.question-card h3{font-size:14px;margin:0 0 13px}.answer-list{display:grid;gap:8px}.answer-option{background:#fff;border:1px solid var(--line);border-radius:11px;padding:12px 14px;text-align:left;font-size:11px;transition:.15s}.answer-option:hover{border-color:#da9a76}.answer-option.selected{border-color:var(--accent);background:#f9e4d6}.answer-option.correct{border-color:#6e9b19;background:#f4f8e9}.answer-option.wrong{border-color:#ff705e;background:#fff0ed}.feedback{min-height:20px;font-size:10px;color:var(--muted);margin-top:10px}.lesson-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:16px}.lesson-bottom .primary-btn{background:var(--accent);color:white}.lesson-bottom .primary-btn:disabled{opacity:.35;cursor:not-allowed;transform:none}.term-card{border-radius:17px;background:var(--night);padding:22px;color:#fff}.term-card .term{color:var(--lime);font-size:12px;font-family:'DM Mono',monospace}.term-card h2{font-size:34px;letter-spacing:-1.6px;margin:14px 0 7px}.term-card p{color:#c7c8cf;font-size:12px;line-height:1.6}.term-card .translation{border-top:1px solid #363740;padding-top:13px;margin-top:15px;color:#fff}.speak-box{border:1px dashed #c8c9d1;background:#f8f7f2;border-radius:17px;padding:22px;text-align:center}.mic-button{width:66px;height:66px;border:0;background:var(--accent);color:#fff;border-radius:50%;font-size:22px;margin:9px}.mic-button.recording{background:var(--coral);animation:pulse 1s infinite}.speak-box p{font-size:11px;color:var(--muted);line-height:1.5}.speak-result{font-size:13px;font-weight:700;min-height:20px;margin-top:9px}@keyframes pulse{50%{box-shadow:0 0 0 9px #ff705e2c}}.lesson-finish{background:var(--night);color:#fff;border-radius:22px;padding:28px;position:relative;overflow:hidden}.lesson-finish:after{content:"✦";position:absolute;right:27px;top:8px;color:var(--lime);font-size:70px;opacity:.9}.lesson-finish h2{font-size:32px;letter-spacing:-1.5px;margin:0 0 8px}.lesson-finish p{font-size:12px;color:#bfc0c9}.finish-stats{display:flex;gap:10px;margin:20px 0}.finish-stat{border:1px solid #373943;border-radius:12px;padding:12px 16px}.finish-stat b{font-size:18px;display:block}.finish-stat small{font-size:9px;color:#a1a2ab}.modal-backdrop{position:fixed;inset:0;background:#10111699;z-index:20;display:flex;align-items:center;justify-content:center;padding:18px}.ai-modal{width:min(510px,100%);background:var(--paper);border-radius:22px;padding:23px;box-shadow:0 20px 60px #0004}.ai-modal-head{display:flex;justify-content:space-between;align-items:start}.ai-modal h2{margin:0;font-size:22px;letter-spacing:-.8px}.ai-modal p{font-size:11px;line-height:1.55;color:var(--muted)}.ai-suggestions{display:flex;gap:7px;flex-wrap:wrap;margin:16px 0}.ai-suggestions button{border:1px solid var(--line);background:#fff;border-radius:30px;padding:8px 10px;font-size:9px}.ai-answer{background:#f6e2d4;border-radius:12px;padding:13px;font-size:11px;line-height:1.6;min-height:45px}.ai-input{display:flex;gap:8px;margin-top:13px}.ai-input input{min-width:0;flex:1;border:1px solid var(--line);border-radius:10px;background:#fff;padding:11px;font-size:11px;outline:0}.ai-input button{border:0;border-radius:10px;background:var(--accent);color:white;padding:0 14px;font-size:11px;font-weight:700}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.setting-line{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:13px 0}.setting-line:last-child{border-bottom:0}.setting-line b{font-size:11px}.setting-line small{display:block;color:var(--muted);font-size:9px;margin-top:4px}.switch{width:38px;height:22px;border-radius:30px;border:0;background:#d6d6d2;padding:3px}.switch i{height:16px;width:16px;border-radius:50%;background:#fff;display:block;transition:.18s}.switch.on{background:var(--accent)}.switch.on i{transform:translateX(16px)}.select-control{border:1px solid var(--line);border-radius:8px;padding:7px 9px;background:var(--paper);font-size:10px}.toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:var(--night);color:#fff;padding:12px 17px;border-radius:30px;font-size:11px;z-index:30;transition:.2s;box-shadow:0 7px 22px #0002}.toast.show{opacity:1;transform:translate(-50%,0)}.mobile-nav{display:none}.dark-mode{--bg:#111218;--paper:#1c1d24;--ink:#f3f3f0;--muted:#a1a2ab;--line:#31323b;--card:#1c1d24;--shadow:0 14px 38px #0004}.dark-mode .topbar{background:#111218eF}.dark-mode .hero-side{background:#25262e;color:#f5f5f0}.dark-mode .hero-side p,.dark-mode .side-foot{color:#b4b5bd}.dark-mode .side-scene{background:#363740;border-color:#4c4d57}.dark-mode .scene-art .scene-caption{background:#1c1d24;color:#fff}.dark-mode .quick-card,.dark-mode .scene-card,.dark-mode .panel,.dark-mode .search-box{background:var(--paper)}.dark-mode .stat-box,.dark-mode .filter-chip.active{background:#30313b}.dark-mode .meter{background:#33343d}.dark-mode .answer-option,.dark-mode .ai-input input{background:#24252d;color:var(--ink)}.dark-mode .lesson-modal{background:#181920}.dark-mode .lesson-top{background:#181920}.dark-mode .tool-button,.dark-mode .question-card{background:#202129}.dark-mode .speak-box{background:#22232b}.dark-mode .filter-chip{color:#c2c3ca}.dark-mode .filter-chip.active{color:#fff}.dark-mode .goal-ring{border-color:#5a473b;border-top-color:#ffad78;border-right-color:#ffad78}.dark-mode .setting-line .select-control{background:#22232b;color:#fff}.dark-mode .empty-state{background:var(--paper)}
@media(max-width:1050px){.sidebar{width:218px;flex-basis:218px}.main-area{margin-left:218px;width:calc(100% - 218px)}.view-root{padding-left:30px;padding-right:30px}.hero{grid-template-columns:1fr .72fr}.hero-art{right:4%;transform:scale(.8) rotate(8deg)}.scene-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.sidebar{display:none}.main-area{margin:0;width:100%;padding-bottom:72px}.topbar{height:58px;padding:0 17px}.top-actions{gap:7px}.goal-pill{display:none}.mobile-avatar{display:grid}.view-root{padding:25px 17px 40px}.page-heading h1{font-size:27px}.page-heading{align-items:start}.hero{grid-template-columns:1fr;gap:12px}.hero-main{padding:24px;min-height:328px}.hero-main h1{font-size:45px}.hero-art{right:1%;top:35%;opacity:.6;transform:scale(.74) rotate(8deg)}.hero-side{min-height:210px;padding:20px}.hero-side h3{margin-top:16px}.quick-grid{grid-template-columns:1fr;gap:8px}.quick-card{min-height:74px}.scene-grid{grid-template-columns:1fr 1fr;gap:9px}.scene-art{height:110px}.scene-art .scene-word{font-size:18px;top:17px;left:13px}.scene-art .scene-caption{left:12px;bottom:12px;font-size:8px}.scene-art .mini-sticker{width:33px;height:33px;right:10px;bottom:10px}.scene-info{padding:11px}.scene-info h3{font-size:12px}.scene-info p{font-size:9px}.scene-meta{font-size:8px}.scene-foot{font-size:8px}.view-layout{grid-template-columns:1fr}.side-note{display:none}.progress-grid{grid-template-columns:1fr}.settings-grid{grid-template-columns:1fr}.mobile-nav{position:fixed;inset:auto 0 0;background:#101116;color:#a9aab3;z-index:10;display:flex;justify-content:space-around;padding:7px 4px calc(7px + env(safe-area-inset-bottom));border-top:1px solid #282932}.mobile-nav button{border:0;background:transparent;color:inherit;display:flex;flex-direction:column;align-items:center;gap:3px;min-width:54px;font-size:8px}.mobile-nav button span{font-size:18px}.mobile-nav button.active{color:var(--lime)}.lesson-wrap{margin:22px auto 32px}.lesson-wrap h1{font-size:26px}.video-placeholder{height:210px}.hero-main:after{right:-175px}.page-heading p{font-size:11px}.big-stats{gap:6px}.stat-box{padding:10px}.stat-box strong{font-size:19px}.lesson-top{height:58px;padding:0 17px}.lesson-finish{padding:22px}.lesson-finish h2{font-size:27px}}
@media(max-width:390px){.scene-grid{grid-template-columns:1fr}.scene-art{height:125px}.hero-main h1{font-size:40px}.hero-meta{display:none}.page-heading h1{font-size:24px}}

/* The navigation floats independently of the content. */
.ui-icon{width:1em;height:1em;display:inline-block;vertical-align:-.12em;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.sidebar{inset:18px auto 18px 18px;width:230px;border-radius:26px;overflow:auto;box-shadow:0 15px 45px #10111624}
.main-area{margin-left:248px}
.topbar,.user-chip,.scene-foot,.setting-line,.term-card .translation,.mobile-nav,.lesson-top,.bars{border:0}
.streak-card,.goal-ring,.tag,.quick-card,.scene-card,.panel,.search-box,.empty-state,.filter-chip,.question-card,.answer-option,.tool-button,.close-btn,.audio-mini,.speak-box,.finish-stat,.ai-suggestions button,.ai-input input,.select-control,.badge,.icon-button,.ghost-btn,.side-scene,button[style*="border:1px"]{border:0!important}
.hero-main:after,.scene-art:before,.video-placeholder:before{border:0}
.tag,.tool-button,.close-btn,.audio-mini,.icon-button,.select-control{background:color-mix(in srgb,var(--ink) 8%,var(--paper))}
.answer-option{background:color-mix(in srgb,var(--ink) 5%,var(--paper))}
.answer-option.correct{color:#193e1c;background:#cfeacb}
.answer-option.wrong{color:#70291d;background:#ffddd6}
.answer-option.selected,.tool-button.active{color:#6a3821;background:#f9dcc9}
.finish-stat{background:#ffffff14}
.stat-box,.speak-box,.ai-answer{background:color-mix(in srgb,var(--ink) 7%,var(--paper))}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #ffad78;outline-offset:3px}
.side-play{border:0}
@media(max-width:1050px){.sidebar{width:200px}.main-area{margin-left:218px}}
@media(max-width:760px){.main-area{margin:0}.mobile-nav{inset:auto 10px max(9px,env(safe-area-inset-bottom))}.mobile-nav{border-radius:22px;padding:9px 5px;box-shadow:0 8px 28px #10111636}}
.lesson-finish:after{content:none}
.hero-main:after,.scene-art:before,.video-placeholder:before{box-shadow:none}
.week-dots i{border:0;background:#3a3b46}
.week-dots i.today{background:#af7754;box-shadow:none}

/* Film photography sets the palette across the lesson and scene library. */
:root,.dark-mode{--bg:#141310;--paper:#23211d;--ink:#fbf2e5;--muted:#c1b7a9;--line:#37332d;--accent:#ffad78;--accent-strong:#ef925c;--lime:#ffad78;--night:#201d19}
.topbar,.dark-mode .topbar{background:#141310ef}
.sidebar{background:#201d19}
.hero{grid-template-columns:minmax(0,1fr) minmax(220px,.32fr);gap:14px}
.hero-main{min-height:450px;background:#242322 var(--frame) center 40%/cover;isolation:isolate;justify-content:end;padding:clamp(23px,4vw,48px)}
.hero-main:after{inset:0;width:auto;height:auto;border-radius:0;z-index:-1;background:linear-gradient(90deg,#100d0ce8,transparent 95%),linear-gradient(0deg,#100d0cdd,transparent 80%)}
.hero-main h1{max-width:570px;text-wrap:balance}
.hero-main p,.hero-meta,.hero-kicker{color:#f3dfd4}
.hero-side,.dark-mode .hero-side{background:#29241f;color:var(--ink)}
.hero-side p,.side-foot{color:var(--muted)}
.quick-card,.scene-card,.panel,.question-card{background:var(--paper)}
.scene-art{height:clamp(145px,18vw,245px);background:#28231f var(--frame) center/cover}
.scene-art:before,.video-placeholder:before{content:none}
.scene-art .scene-caption{background:#181512e6;color:#fff;transform:none}
.scene-info h3{font-size:17px}.scene-info p,.scene-meta,.scene-foot{font-size:11px}
.quick-icon,.quick-card:nth-child(n) .quick-icon{background:#3a2f25;color:#ffad78}
.stat-box,.dark-mode .stat-box{background:#332a23}
.lesson-modal,.lesson-top,.dark-mode .lesson-modal,.dark-mode .lesson-top{background:var(--bg)}
.lesson-wrap{max-width:690px;touch-action:pan-y;translate:var(--drag,0) 0;transition:translate .12s ease}
.video-placeholder{height:clamp(220px,41vw,380px);background:#28231f var(--frame) center/cover}
.subtitle-line{max-width:90%;text-align:center}
.lesson-bottom .primary-btn,.ai-input button{color:#181512}
.answer-option{color:var(--ink)}
.frame-credit,.swipe-hint{font-size:12px;color:var(--muted)}
.frame-credit a{color:inherit}
.swipe-hint{text-align:center;margin:18px 0 0}
@media(max-width:760px){.hero{grid-template-columns:1fr}.hero-main{min-height:400px}.hero-side{min-height:170px}}
@media(prefers-reduced-motion:reduce){.lesson-wrap{transition:none;translate:none}}
.lesson-progress{display:flex;gap:5px;background:none;height:5px;padding:0 clamp(18px,6vw,80px)}
.lesson-progress i{flex:1;background:#39312a;border-radius:6px}
.lesson-progress i.filled{background:#ffad78}
.film-player{display:block;width:100%;aspect-ratio:16/9;object-fit:contain;background:#0e0c0a;border-radius:19px}
.lesson-toolbar{flex-wrap:wrap}
.lesson-toolbar .tool-button,.lesson-bottom button{min-height:44px}
.tool-button[aria-pressed=true]{background:#ffad78;color:#201d19}
@media(max-width:760px){.lesson-wrap{width:calc(100% - 28px)}.answer-option{min-height:48px;font-size:13px}.lesson-bottom{gap:10px}.film-player{border-radius:14px}}

iframe.film-player{border:0;min-height:220px}
.external-scene{display:grid;place-items:center;min-height:220px;aspect-ratio:16/9;border-radius:19px;background:linear-gradient(#110e1230,#110e12a0),#28231f var(--frame) center/cover}
.external-clip{text-decoration:none;margin:0 0 14px}
.external-scene .external-clip{margin:0}
.player-controls{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.player-controls button{min-height:44px}
.player-controls button:first-child{background:#ffad78;color:#201d19}
.player-status{min-height:18px;font-size:12px;color:var(--muted);margin:0 0 12px}

/* Keep the heading compact and the editorial controls in normal flow. */
.topbar{height:52px}
.view-root{padding-top:18px}
.page-heading{margin-bottom:17px}
.hero-main{min-height:380px}
.hero-side h3{margin-top:18px}
.hero-side .side-foot{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:8px;align-items:center;padding-top:14px}
.hero-side .side-play{position:static;inset:auto;width:40px;height:40px}
.editor-minutes{white-space:nowrap}
@media(max-width:760px){.topbar{height:47px}.view-root{padding-top:13px}.page-heading{margin-bottom:15px}.hero-main{min-height:350px}.hero-side{min-height:0}}
.catalog-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 14px;color:var(--muted);font-size:12px}
.catalog-tools select{max-width:min(100%,320px);min-height:36px;color:var(--ink)}
.catalog-tools #catalogCount{margin-left:auto}

.scene-art{position:relative;isolation:isolate}
.scene-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-1}
.scene-card:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.page-heading h1{font-weight:800;letter-spacing:-.035em;line-height:1.12}
.section-row h2,.panel h3{font-weight:800;letter-spacing:-.025em;line-height:1.2}
.nav-item,.mobile-nav button{font-weight:700}
.select-field{position:relative;display:inline-flex;min-width:0;max-width:100%}
.select-field .select-control{appearance:none;-webkit-appearance:none;padding:8px 38px 8px 12px;width:100%;font-size:12px;min-height:38px;cursor:pointer}
.select-field>.ui-icon{position:absolute;inset-inline-end:13px;top:50%;transform:translateY(-50%);width:14px;height:14px;pointer-events:none;color:var(--muted)}

:root{--on-accent:#24160f;--accent-soft:#3d2d23;--accent-border:#79533e}
.accent-text{color:var(--accent)}
.avatar,.mobile-avatar,.side-play,.mic-button,.ai-input button,.lesson-bottom .primary-btn{color:var(--on-accent)}
.nav-item.active{background:#382b23}
.ai-answer,.dark-mode .ai-answer{background:var(--accent-soft);color:var(--ink)}
.goal-ring{border-color:#654c3b;border-top-color:var(--accent);border-right-color:var(--accent)}
.express-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:16px}
.express-study,.express-practice{min-width:0;border-radius:22px;padding:clamp(19px,3vw,32px)}
.express-study{display:flex;flex-direction:column;background:#2d241e}
.express-practice{background:var(--paper)}
.express-meta{display:flex;justify-content:space-between;gap:8px 16px;flex-wrap:wrap;color:var(--muted);font-size:12px}
.express-study h2{margin:24px 0 9px;color:var(--accent);font-size:clamp(27px,4.3vw,53px);line-height:1.05;letter-spacing:-.045em;overflow-wrap:anywhere}
.express-translation,.express-practice>p{margin:0;color:var(--ink);font-size:14px;line-height:1.6}
.express-example{margin:20px 0;background:#211b17;border-radius:12px;padding:13px 15px}
.express-example span,.express-practice label{font-size:12px;color:var(--muted)}
.express-example p{margin:5px 0 0;line-height:1.5;overflow-wrap:anywhere}
.express-playback{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:auto}
.express-quiet{min-height:44px;border:0;border-radius:12px;background:var(--accent-soft);color:var(--accent);padding:0 13px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:750;font-size:12px}
.express-practice h2{margin:0 0 9px;font-size:24px;letter-spacing:-.035em}
.express-practice form{display:grid;gap:10px;margin-top:20px}
.express-practice textarea{width:100%;min-height:92px;resize:vertical;border:0;border-radius:12px;padding:12px 14px;font:inherit;font-size:16px;color:var(--ink);background:#161411}
.express-practice textarea:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.express-practice form button{justify-self:start;color:var(--on-accent)}
.express-practice .express-feedback{margin-top:13px;color:var(--accent);overflow-wrap:anywhere}
.express-footer{display:flex;justify-content:space-between;align-items:center;gap:10px 16px;flex-wrap:wrap;margin:14px 0;color:var(--muted);font-size:12px}
@media(max-width:970px){.express-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:460px){.express-playback>*{flex:1 1 100%}.express-footer .express-quiet{width:100%}.express-practice form button{justify-self:stretch}}

.review-summary{display:flex;flex-wrap:wrap;gap:8px;padding:0;margin:0 0 14px;list-style:none;color:var(--muted);font-size:13px}
.review-summary li{background:var(--paper);padding:8px 12px;border-radius:12px}
.review-summary b{color:var(--accent);margin-right:4px}
.review-empty{max-width:720px}
.review-empty .primary-btn{margin-top:18px}
.review-reveal{margin-top:18px}
.review-reveal h3{color:var(--accent);font-size:20px;margin:0}
.review-reveal p{margin:7px 0 12px;line-height:1.5}
.review-grades{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.review-grades button{min-height:55px;flex:1 1 100px;flex-direction:column;gap:2px;padding:8px}
.review-grades small{font-size:10px;font-weight:600}
.film-stage{position:relative;isolation:isolate}
.film-play{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:64px;height:64px;border:0;border-radius:50%;background:var(--accent);color:var(--on-accent);display:grid;place-items:center;box-shadow:0 4px 24px #0007;font-size:25px;transition:opacity .16s}
.film-play[data-playing=true]{inset:auto auto 12px 12px;transform:none;width:44px;height:44px;font-size:17px;background:#231912e8;color:#ffdfca}
.review-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.review-result{margin-bottom:14px;padding:13px 15px;border-radius:12px;background:var(--accent-soft)}
.review-result strong{color:var(--accent)}
.review-result p{margin:6px 0 0}
.review-next-time{color:var(--muted);font-size:12px}
.review-actions button:disabled{opacity:.55;cursor:default}

.today-heading{display:flex;align-items:end;justify-content:space-between;gap:14px;margin-bottom:16px}
.today-heading p{margin:0 0 5px;color:var(--muted);font-size:12px;text-transform:capitalize}
.today-heading h1{margin:0;font-size:clamp(28px,4.6vw,49px);letter-spacing:-.05em;line-height:1.02}
.today-feature{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,.36fr);gap:14px;margin-bottom:14px}
.today-feature-main{position:relative;isolation:isolate;overflow:hidden;min-height:clamp(285px,33vw,420px);border-radius:24px;background:#2c231d;display:grid;align-items:end}
.today-feature-main>img,.today-editor>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;color:transparent}
.today-feature-main::after,.today-editor::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,#150f0bec 0%,#150f0b88 45%,transparent 87%)}
.today-feature-copy{padding:clamp(20px,4vw,38px);color:#fff4e8}
.today-kicker{font-size:11px;font-weight:800;letter-spacing:.09em;color:#ffd7bf}
.today-feature-copy h2{margin:7px 0;font-size:clamp(29px,4.8vw,59px);line-height:1.04;letter-spacing:-.045em;text-wrap:balance}
.today-feature-copy p{margin:0 0 16px;color:#ffe4d3}
.today-resume{margin-left:10px;color:#ffe4d3;font-size:12px}
.today-side{display:grid;grid-template-rows:auto minmax(140px,1fr);gap:10px}
.today-goal,.today-editor{border-radius:20px;padding:16px;background:var(--paper)}
.today-goal>span,.today-editor span{display:block;font-size:11px;color:var(--muted)}
.today-goal b{display:block;font-size:25px;color:var(--accent);margin:3px 0 7px}
.today-goal small{font-size:13px;color:var(--muted)}
.today-goal progress{display:block;width:100%;height:6px;border:0;border-radius:8px;appearance:none;background:#44372e;color:var(--accent);overflow:hidden}
.today-goal progress::-webkit-progress-bar{background:#44372e}
.today-goal progress::-webkit-progress-value{background:var(--accent)}
.today-goal progress::-moz-progress-bar{background:var(--accent)}
.today-editor{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:end;gap:8px;color:#fff4e8}
.today-editor span,.today-editor p{color:#ffe4d3}
.today-editor h3{margin:4px 0;font-size:17px}
.today-editor p{margin:0;font-size:11px}
.today-editor-play{width:44px;height:44px;border:0;border-radius:50%;background:var(--accent);color:var(--on-accent);display:grid;place-items:center}
.today-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:25px}
.today-collection{margin-bottom:28px}
.profile-form{gap:8px;flex-wrap:wrap}
.profile-form input{min-width:0;max-width:160px;background:var(--bg);color:var(--ink);border:0;border-radius:9px;padding:9px 10px;font:inherit}
.dark-mode{--bg:#12100e;--paper:#1c1815}
.dark-mode .topbar{background:#12100eef}
@media(max-width:740px){.today-feature{grid-template-columns:minmax(0,1fr)}.today-side{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);grid-template-rows:auto}.today-feature-main{min-height:300px}}
@media(max-width:400px){.today-actions{grid-template-columns:minmax(0,1fr)}.today-side{grid-template-columns:minmax(0,1fr)}.today-editor{min-height:126px}}
.progress-link{padding:10px 0}
.progress-subheading{margin-top:18px!important}
.progress-scenes{display:grid;gap:7px;margin-top:10px}
.history-scene{display:grid;grid-template-columns:56px minmax(0,1fr) 24px;align-items:center;gap:10px;text-align:left;padding:6px;border:0;border-radius:10px;background:var(--bg);color:var(--ink)}
.history-scene img{width:56px;height:35px;object-fit:cover;border-radius:6px;background:var(--paper)}
.history-scene small{display:block;color:var(--muted);margin-top:4px}
.history-scene>.ui-icon{color:var(--accent)}
.app-loading{color:var(--muted);margin:0;padding:16px 0}

.cover-fallback{position:absolute;inset:0;display:grid;place-items:center;padding:18px 18px 42px;text-align:center;font-size:clamp(15px,2vw,23px);font-weight:800;color:#ffd3b7;background:radial-gradient(ellipse at 70% 0%,#68452f,#2d241e 78%);z-index:-2}
[data-cover-image][hidden]{display:none!important}
.history-cover{display:block;width:56px;height:35px;overflow:hidden;border-radius:6px;background:linear-gradient(135deg,#76523d,#392c24)}
.history-cover img{width:100%;height:100%;display:block;object-fit:cover}

.filter-chip,.dark-mode .filter-chip{color:var(--muted);min-height:36px;padding-inline:13px;font-size:12px}
.filter-chip.active,.dark-mode .filter-chip.active{background:var(--accent);color:var(--on-accent);font-weight:800}
.scene-art{height:auto;aspect-ratio:16/10}
.scene-meta .level{background:var(--accent-soft);color:#ffc49d}

.today-collection-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.today-collection-action{display:flex;justify-content:center;margin-top:14px}
.today-collection-action .express-quiet{min-width:158px}
@media(max-width:1120px){.today-collection-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:850px){.today-collection-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:360px){.today-collection-grid{gap:8px}.today-collection-grid .scene-caption{left:6px;right:6px;bottom:6px}}

.preferences-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
.preferences-panel{min-width:0;padding:clamp(17px,2.8vw,26px)}
.preferences-panel h2,.preferences-dialog h2{margin:0 0 13px;font-size:19px;font-weight:800;letter-spacing:-.03em}
.preferences-learning{grid-column:2;grid-row:1/span 2}
.preferences-row{display:grid;grid-template-columns:34px minmax(0,1fr) minmax(0,142px);gap:11px;align-items:center;padding:10px 0}
.preferences-row+.preferences-row{margin-top:2px}
.preferences-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--accent-soft);color:var(--accent);font-size:16px}
.preferences-copy{min-width:0}
.preferences-copy label,.preferences-copy b,.preferences-name label{display:block;font-size:13px;font-weight:750;color:var(--ink)}
.preferences-copy p,.preferences-dialog p{margin:4px 0 0;color:var(--muted);font-size:12px;line-height:1.45}
.preferences-row .select-field{min-width:0;width:100%}
.preferences-row .select-control{min-height:44px;background:#322a23;color:var(--ink);text-overflow:ellipsis}
.preferences-switch.switch{justify-self:end;width:48px;height:28px;padding:4px;background:#544338}
.preferences-switch.switch i{width:20px;height:20px;background:#f7e3d4}
.preferences-switch.switch.on{background:var(--accent)}
.preferences-switch.switch.on i{transform:translateX(20px);background:var(--on-accent)}
.preferences-switch:focus-visible,.preferences-profile input:focus-visible,.preferences-reset:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.preferences-profile{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:end;gap:10px}
.preferences-avatar{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:var(--accent);color:var(--on-accent);font-size:17px;font-weight:800}
.preferences-name{min-width:0}
.preferences-name input{width:100%;min-height:44px;margin-top:5px;background:#191613;border:0;border-radius:10px;padding:8px 10px;color:var(--ink);font:inherit}
.preferences-profile .primary-btn{min-height:44px}
.preferences-info{grid-template-columns:34px minmax(0,1fr)}
.preferences-data{grid-template-columns:34px minmax(0,1fr)}
.preferences-data .preferences-reset{grid-column:2;justify-self:start}
.preferences-reset{min-height:44px;border:0;border-radius:12px;padding:0 13px;background:#412b25;color:#ffc1ab;font-weight:750;font-size:12px}
.preferences-dialog{width:min(420px,calc(100% - 32px));padding:24px;border:0;border-radius:19px;background:var(--paper);color:var(--ink);box-shadow:0 20px 60px #0008}
.preferences-dialog::backdrop{background:#14110eb8}
.preferences-dialog form{display:flex;flex-wrap:wrap;justify-content:end;gap:8px;margin-top:18px}
@media(max-width:950px){.preferences-grid{grid-template-columns:minmax(0,1fr)}.preferences-learning{grid-column:auto;grid-row:auto}}
@media(max-width:415px){.preferences-panel{padding:15px}.preferences-row{gap:8px;grid-template-columns:30px minmax(0,1fr) minmax(0,105px)}.preferences-icon{width:30px;height:30px}.preferences-info,.preferences-data{grid-template-columns:30px minmax(0,1fr)}.preferences-profile{grid-template-columns:42px minmax(0,1fr)}.preferences-profile button{grid-column:2;justify-self:start}.preferences-row .select-field .select-control{padding-right:31px}.preferences-row .select-field>.ui-icon{inset-inline-end:10px}}
@media(min-width:951px){.preferences-learning{grid-row:auto}}
.preferences-switch::before{content:"";position:absolute;inset:-8px 0}
.preferences-switch{position:relative}
.preferences-name input{margin-top:0}

.progress-overview{align-items:start}
.progress-panel{padding:clamp(16px,2.8vw,26px);min-width:0}
.progress-panel h2{margin:0 0 12px;font-size:19px;font-weight:800;letter-spacing:-.03em}
.progress-panel-copy{margin:0 0 12px;color:var(--muted);font-size:13px;line-height:1.5}
.progress-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:0 0 16px}
.progress-stats div{background:var(--accent-soft);padding:10px;border-radius:12px;display:flex;flex-direction:column-reverse;gap:3px}
.progress-stats dt{color:var(--muted);font-size:11px;line-height:1.25}
.progress-stats dd{margin:0;color:var(--accent);font-size:24px;font-weight:800}
.week-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px}
.week-heading small{color:var(--muted);font-size:11px}
.weekly-chart{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;list-style:none;padding:0;margin:10px 0 0}
.weekly-chart li{display:grid;grid-template-rows:68px auto auto;gap:3px;justify-items:center;font-size:11px;color:var(--muted)}
.weekly-chart li.current{color:var(--accent)}
.weekly-chart-plot{width:min(30px,100%);height:100%;display:flex;align-items:end;background:#302821;border-radius:6px;overflow:hidden}
.weekly-chart-fill{height:var(--amount);width:100%;background:#a47052;border-radius:6px}
.weekly-chart li.current .weekly-chart-fill{background:var(--accent)}
.progress-check{margin-top:17px;padding-top:13px;border-top:1px solid var(--line)}
.progress-check h3{margin:0 0 6px}
.progress-count{font-size:12px;color:var(--accent);margin-inline-start:5px}
.progress-panel .audio-mini{width:44px;height:44px}
.progress-panel .word-row small{font-size:12px;overflow-wrap:anywhere}
.progress-panel .word-row b{overflow-wrap:anywhere}
.progress-panel .word-row>*{min-width:0}
@media(max-width:900px){.progress-overview{grid-template-columns:minmax(0,1fr)}}

.exam-stage{max-width:760px;margin:0 auto}
.exam-card{padding:clamp(17px,4vw,30px);border-radius:22px}
.exam-card h2{margin:0;font-size:clamp(21px,3vw,29px);line-height:1.2;letter-spacing:-.03em}
.exam-card h2:focus{outline:none}
.exam-card p{color:var(--muted);font-size:14px;line-height:1.55}
.exam-intro{display:grid;grid-template-columns:48px minmax(0,1fr);gap:16px;align-items:start}
.exam-intro-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:13px;background:var(--accent-soft);color:var(--accent);font-size:21px}
.exam-intro .exam-last{font-size:12px}
.exam-step{display:flex;justify-content:space-between;gap:12px;align-items:center;color:var(--muted);font-size:13px}
.exam-step button{min-height:38px}
.exam-segments{display:flex;gap:5px;margin:8px 0 19px}
.exam-segments i{height:5px;flex:1;border-radius:6px;background:#3b3027}
.exam-segments .current{background:#885e46}
.exam-segments .done{background:var(--accent)}
.exam-answers{display:grid;gap:8px;margin-top:15px}
.exam-option{min-height:55px;display:grid;align-items:center;grid-template-columns:28px minmax(0,1fr) auto;gap:10px;text-align:left;border:0;border-radius:13px;background:var(--bg);color:var(--ink);padding:9px 12px;line-height:1.4}
.exam-option:not([aria-disabled=true]):hover,.exam-option.is-correct{background:var(--accent-soft)}
.exam-option-letter{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#44352b;color:var(--accent);font-size:11px;font-weight:800}
.exam-option.is-correct .exam-option-letter{background:var(--accent);color:var(--on-accent)}
.exam-option.is-wrong{background:#432c26}
.exam-option-status{color:#ffb490;font-size:11px;font-weight:750}
.exam-option[aria-disabled=true]{cursor:default}
.exam-card .exam-feedback{background:#30251e;padding:11px 13px;border-radius:10px;margin:12px 0 0;color:var(--ink)}
.exam-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.exam-actions .primary-btn:disabled{opacity:.42;cursor:default;transform:none}
.exam-result-head{display:flex;align-items:center;gap:15px}
.exam-score{flex:none;background:var(--accent-soft);border-radius:12px;padding:10px 13px}
.exam-score strong,.exam-score span{display:block}
.exam-score strong{color:var(--accent);font-size:24px;letter-spacing:-.03em}
.exam-score span{font-size:11px;color:var(--muted)}
.exam-result-head p{margin:5px 0 0}
.exam-result-list{display:grid;gap:8px;margin:17px 0 0;padding:0;list-style:none}
.exam-result-list li{padding:11px 13px;border-radius:12px;background:var(--bg)}
.exam-result-row{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.exam-result-row span{flex:none;color:var(--accent);font-size:12px}
.exam-result-list p{margin:4px 0}
.exam-result-list .text-button{padding:7px 0 0}
@media(max-width:415px){.exam-intro{grid-template-columns:1fr;gap:10px}.exam-option{grid-template-columns:25px minmax(0,1fr)}.exam-option-status:not(:empty){grid-column:2}.exam-result-head{align-items:start}.exam-actions>button{flex:1 1 100%}}

.catalog-pagination{margin:20px 0 0;display:grid;justify-items:center;gap:8px}
.catalog-pagination[hidden]{display:none}
.catalog-page-list{display:flex;gap:5px;max-width:100%;flex-wrap:wrap;justify-content:center}
.catalog-page{min-width:36px;min-height:44px;border:0;border-radius:10px;background:var(--paper);color:var(--ink);font-weight:750}
.catalog-page[aria-current=page]{background:var(--accent);color:var(--on-accent)}
.catalog-page:disabled{opacity:.4;cursor:default}
.catalog-pagination p{margin:0;color:var(--muted);font-size:12px}
/* Keep app controls clear of the status bar, cutout and home indicator. */
:root{
  --safe-top:env(safe-area-inset-top,0px);
  --safe-right:env(safe-area-inset-right,0px);
  --safe-bottom:env(safe-area-inset-bottom,0px);
  --safe-left:env(safe-area-inset-left,0px);
  --topbar-height:calc(70px + var(--safe-top));
  --lesson-header-height:calc(70px + var(--safe-top));
  --header-top-padding:var(--safe-top);
}
.app-shell{padding-inline:var(--safe-left) var(--safe-right)}
.sidebar{left:var(--safe-left);top:var(--safe-top);bottom:var(--safe-bottom)}
.topbar{height:var(--topbar-height);padding-top:var(--header-top-padding)}
#catalogGrid{scroll-margin-top:calc(var(--topbar-height) + 10px)}
.lesson-modal{padding-inline:var(--safe-left) var(--safe-right)}
.lesson-top{height:var(--lesson-header-height);padding-top:var(--header-top-padding)}
.lesson-wrap{margin-bottom:calc(70px + var(--safe-bottom))}
.modal-backdrop{
  padding:calc(18px + var(--safe-top)) calc(18px + var(--safe-right))
    calc(18px + var(--safe-bottom)) calc(18px + var(--safe-left));
}
.modal-backdrop > section{max-height:100%;overflow:auto}
.lesson-wrap{touch-action:pan-y pinch-zoom}
@media(max-width:760px){
  :root{
    --topbar-height:calc(59px + var(--safe-top));
    --lesson-header-height:calc(66px + var(--safe-top));
    --header-top-padding:calc(12px + var(--safe-top));
  }
  .main-area{padding-bottom:calc(88px + var(--safe-bottom))}
  .mobile-nav{bottom:calc(8px + var(--safe-bottom));left:calc(10px + var(--safe-left));right:calc(10px + var(--safe-right));padding:4px}
  .mobile-nav button{min-height:44px;min-width:0;flex:1;justify-content:center;padding:0 2px}
  .lesson-modal{overscroll-behavior-y:contain}
  .lesson-top{position:sticky;top:0;z-index:3;gap:10px}
  .lesson-top .close-btn{min-width:44px;min-height:44px}
  .lesson-brand{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .lesson-wrap{margin-top:14px;margin-bottom:calc(14px + var(--safe-bottom))}
  .lesson-wrap .lesson-bottom{padding-bottom:8px}
  .catalog-page{min-width:34px}
}

.brand-wordmark{display:block;width:min(100%,174px);height:auto}
.mobile-brand{display:none}
@media(max-width:760px){
  .mobile-brand{display:inline-flex;align-items:center;min-height:44px}
  .mobile-brand img{display:block;width:clamp(100px,32vw,128px);height:auto}
  .topbar .crumb{display:none}
}

.ai-modal-head:has(.brand-assistant-avatar){justify-content:flex-start;align-items:center;gap:12px}
.brand-assistant-avatar{display:block;flex:none}
.ai-modal-head:has(.brand-assistant-avatar) .close-btn{flex:none;margin-left:auto}

.login-page{
  display:grid;
  min-height:100vh;
  min-height:100dvh;
  place-items:center;
  background:#151412;
  color:#f8efe5;
  padding:calc(24px + var(--safe-top)) calc(20px + var(--safe-right))
    calc(24px + var(--safe-bottom)) calc(20px + var(--safe-left));
}
.login-panel{width:min(100%,420px);background:#211d19;border-radius:28px;padding:clamp(22px,7vw,40px)}
.login-wordmark{display:block;height:auto}
.login-panel h1{font-size:clamp(25px,6vw,34px);margin:28px 0 10px}
.login-panel p{color:#c7b8aa;line-height:1.6}
.login-panel .primary-btn{width:100%;text-decoration:none;margin-top:14px}
.login-panel [hidden]{display:none}
