:root{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","PingFang SC","Microsoft YaHei",sans-serif;color:#172033;background:#f6f7fb;font-size:16px;-webkit-font-smoothing:antialiased}
*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.42;cursor:not-allowed}.hidden{display:none!important}
.app-shell{max-width:1040px;margin:auto;padding:30px 24px 130px}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:46px}.brand,.top-actions{display:flex;align-items:center;gap:11px}.brand{font-size:18px;font-weight:760;letter-spacing:-.025em}.brand-mark{width:31px;height:31px;border-radius:10px;display:grid;place-items:center;background:#2368ff;color:white;font-size:22px;line-height:1}.top-actions{gap:13px}.sync-badge{color:#69778f;font-size:14px}.icon-button{width:38px;height:38px;border:0;border-radius:12px;background:#e8edf7;color:#2368ff;font-size:25px;line-height:1;display:grid;place-items:center}.icon-button:hover{background:#dce6f8}
.page{display:none}.page.active{display:block}.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:26px}.kicker{font-size:14px;font-weight:700;color:#2368ff;letter-spacing:.01em;margin:0 0 7px}.section-heading h1{font-size:clamp(30px,4.8vw,48px);line-height:1.15;letter-spacing:-.048em;margin:0 0 8px}.intro-line{color:#7c8798;margin:0;line-height:1.6}.time-pill{border:1px solid #e0e5ee;background:white;color:#69778f;border-radius:99px;padding:9px 13px;font-size:13px;white-space:nowrap}
.lesson-card,.calendar-card,.account-card{background:#fff;border:1px solid #edf0f6;border-radius:30px;box-shadow:0 15px 60px #2c41530d}.lesson-card{padding:32px;max-width:720px}.lesson-card-top{display:flex;justify-content:space-between;align-items:center}.category{background:#edf4ff;color:#2368ff;padding:7px 12px;border-radius:100px;font-size:13px;font-weight:700}.lesson-number{font-size:13px;color:#95a1b3}.lesson-card h2{font-size:27px;letter-spacing:-.035em;margin:18px 0 17px}.done-banner{background:#eaf8f1;color:#167754;padding:12px 15px;border-radius:13px;font-size:14px;margin:0 0 16px}.stepper{display:flex;gap:7px;margin:0 0 29px}.stepper span{height:5px;flex:1;border-radius:8px;background:#e7eaf1}.stepper span.active{background:#2368ff}.step-kicker{font-size:13px;font-weight:760;color:#2368ff;margin:0 0 8px}.practice-step h3{font-size:24px;letter-spacing:-.035em;margin:0 0 8px}.step-desc{color:#7c8798;line-height:1.65;margin:0 0 20px}.audio-stage{height:158px;border-radius:22px;background:linear-gradient(135deg,#e9f1ff,#f6f4ff);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#637795;font-size:14px;margin-bottom:16px}.audio-orbit{height:68px;width:68px;border-radius:50%;background:white;box-shadow:0 14px 34px #2368ff22;display:grid;place-items:center}.audio-icon{font-size:29px;color:#2368ff}.action-row{display:flex;gap:10px;flex-wrap:wrap}.button{border:0;border-radius:14px;padding:12px 18px;min-height:48px;font-weight:690;transition:transform .16s,background .16s}.button:active{transform:scale(.98)}.button.primary{color:white;background:#2368ff}.button.primary:hover{background:#1457e9}.button.soft{color:#2368ff;background:#edf4ff}.button.soft:hover{background:#dfeaff}.button.outline{background:white;border:1px solid #dfe5ef;color:#56667e}.button.outline:hover{background:#f7f9fc}.text-button{border:0;background:none;padding:11px 0;color:#2368ff;font-weight:690;margin-top:8px}.transcript{background:#f7f9fc;border-radius:17px;padding:16px 18px;margin-top:11px}.english-lines{font-size:18px;font-weight:650;line-height:1.6;white-space:pre-line;margin:0 0 7px}.chinese-lines{color:#7c8798;line-height:1.7;white-space:pre-line;margin:0}.target-phrase{background:#f7f9fc;border-radius:19px;padding:21px;margin-bottom:16px}.target-phrase p:first-child{font-size:24px;font-weight:700;line-height:1.45;letter-spacing:-.025em;margin:0 0 8px}.target-phrase p:last-child{color:#7c8798;margin:0;line-height:1.55}.status-line{font-size:14px;color:#758196;line-height:1.6;margin:13px 0 0}.result-card{border:1px solid #e3e9f2;background:#fbfcff;border-radius:18px;padding:18px;margin-top:17px}.result-head{display:flex;justify-content:space-between;align-items:center;color:#68758b}.result-head strong{font-size:25px;color:#2368ff}.heard-text{font-size:15px;line-height:1.5;color:#344359;margin:12px 0}.word-list{display:flex;flex-wrap:wrap;gap:6px}.word-list span{border-radius:8px;padding:5px 8px;font-size:15px;font-weight:650}.word-list .matched{background:#e6f7ee;color:#16835a}.word-list .missed{background:#fff0e7;color:#ba5c27}.result-note{font-size:13px;color:#8793a5;line-height:1.55;margin:14px 0 0}.dictation{border-top:1px solid #e7ebf1;margin-top:17px;padding-top:16px}.dictation label,.import-area label{display:block;color:#69778f;font-size:14px;line-height:1.5;margin-bottom:10px}.dictation .action-row{align-items:stretch}.dictation input,.import-area input{border:1px solid #dfe5ef;border-radius:12px;padding:11px 13px;min-height:48px;outline:none;background:white;color:#172033}.dictation input:focus,.import-area input:focus{border-color:#2368ff;box-shadow:0 0 0 3px #2368ff1c}.dictation input{flex:1;min-width:170px}.checkin-alert{margin-top:15px;background:#eaf8f1;color:#167754;border-radius:12px;padding:13px 15px;line-height:1.5}.step-actions{border-top:1px solid #edf0f5;display:flex;justify-content:space-between;gap:10px;padding-top:20px;margin-top:27px}.step-actions .button{min-width:110px}
.stats-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;max-width:720px;margin-bottom:18px}.stat-card{background:white;border:1px solid #edf0f6;border-radius:22px;padding:20px 23px}.stat-card span{display:block;color:#7c8798;font-size:14px}.stat-card strong{font-size:37px;letter-spacing:-.05em;line-height:1.3}.stat-card small{color:#7c8798;font-size:14px;margin-left:3px}.calendar-card{max-width:720px;padding:24px}.calendar-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:21px}.calendar-head h2{font-size:20px;margin:0}.weekday-row,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));text-align:center;gap:5px}.weekday-row{color:#96a2b1;font-size:13px;margin-bottom:9px}.calendar-grid button,.calendar-grid span{aspect-ratio:1;min-height:40px;display:grid;place-items:center;border:0;border-radius:12px;background:transparent;color:#28384e;font-size:15px}.calendar-grid button:hover{outline:2px solid #a8c1ff}.calendar-grid .completed{background:#2368ff;color:white;font-weight:700}.calendar-grid .missed-day{background:#f0f2f6;color:#8793a5}.calendar-grid .future-day{color:#bec6d1}.calendar-grid .today-day{box-shadow:inset 0 0 0 2px #2368ff}.legend{display:flex;gap:17px;flex-wrap:wrap;color:#8793a5;font-size:13px;margin-top:19px}.legend span{display:flex;align-items:center;gap:6px}.legend-dot{width:9px;height:9px;border-radius:50%;display:inline-block}.legend-dot.learned{background:#2368ff}.legend-dot.missed{background:#cbd2de}.legend-dot.future{background:#eef0f4}.selected-day{max-width:720px;color:#758196;line-height:1.6;font-size:14px;margin:16px 3px}
.daily-progress{max-width:720px;margin:0 0 17px;padding:17px 20px;background:#fff;border:1px solid #edf0f6;border-radius:22px;box-shadow:0 10px 34px #2c415309}.daily-progress>span{display:block;font-weight:730;font-size:14px;margin-bottom:12px;color:#53637b}.exercise-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.exercise-tab{height:42px;border-radius:13px;border:1px solid #e2e8f2;background:#f7f9fc;color:#728099;font-weight:750;transition:transform .18s,background .18s}.exercise-tab:hover{transform:translateY(-2px);background:#ebf2ff}.exercise-tab.selected{color:#2368ff;border-color:#8db3ff;background:#eaf1ff}.exercise-tab.done{background:#e7f7ef;color:#18855b;border-color:#c4ead4}.exercise-tab.selected.done{box-shadow:0 0 0 2px #2368ff44}
.score-table{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:17px}.score-table div{background:#f0f4fa;border-radius:12px;padding:10px 8px;text-align:center}.score-table span{display:block;color:#74839a;font-size:12px}.score-table strong{display:block;color:#25344b;font-size:16px;margin-top:4px}.score-tip{color:#2368ff;font-size:14px;line-height:1.5;margin:15px 0 0}.calendar-grid .partial-day{background:#dbe9ff;color:#2368ff;font-weight:750}
.celebration{position:fixed;inset:0;z-index:20;background:#152440bd;display:grid;place-items:center;padding:20px;overflow:hidden;backdrop-filter:blur(10px)}.celebration-card{position:relative;z-index:1;max-width:420px;width:100%;padding:35px 27px;text-align:center;border-radius:30px;background:white;box-shadow:0 25px 80px #071b3e45;animation:pop-in .6s cubic-bezier(.2,1.4,.4,1) both}.celebration-emoji{font-size:64px;animation:bounce-in 1s ease-out both}.celebration-card h2{font-size:33px;margin:9px 0;letter-spacing:-.04em}.celebration-card p:not(.kicker){color:#74839a;line-height:1.65;margin:0 0 22px}.celebration-card .button{width:100%}.confetti{position:absolute;inset:0;pointer-events:none}.confetti-piece{position:absolute;top:-10%;width:10px;height:18px;border-radius:3px;opacity:.9;animation:confetti-fall 3s linear forwards}@keyframes confetti-fall{to{transform:translate3d(70px,120vh,0) rotate(720deg);opacity:0}}@keyframes pop-in{from{transform:scale(.75);opacity:0}to{transform:scale(1);opacity:1}}@keyframes bounce-in{50%{transform:scale(1.25)}to{transform:scale(1)}}
.account-card{max-width:720px;padding:31px}.account-icon{height:50px;width:50px;border-radius:16px;background:#eaf1ff;color:#2368ff;display:grid;place-items:center;font-size:27px}.account-card h2{font-size:24px;margin:17px 0 6px}.muted,.privacy-note{color:#7c8798;line-height:1.65;margin:0}.sync-code{margin:20px 0;padding:18px;background:#f7f9fc;border-radius:14px;letter-spacing:.08em;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:18px;overflow-wrap:anywhere;user-select:all}.import-area{border-top:1px solid #e7ebf1;margin-top:19px;padding-top:17px}.import-area input{display:block;width:100%;margin-bottom:10px}.privacy-note{max-width:720px;font-size:13px;margin:19px 2px}.bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:3;display:flex;justify-content:center;gap:55px;padding:9px max(16px,env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom));background:#ffffffea;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);border-top:1px solid #e9edf3}.bottom-nav button{background:none;border:0;color:#9aa6b6;min-width:66px;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:12px;font-weight:700;padding:3px}.bottom-nav button span:first-child{font-size:24px;line-height:1.05}.bottom-nav button.active{color:#2368ff}
@media(min-width:820px){.bottom-nav{position:static;width:max-content;margin:0 auto 28px;gap:26px;border:1px solid #e9edf3;border-radius:22px;box-shadow:0 12px 30px #18274818;padding:8px 15px}.app-shell{padding-top:38px;padding-bottom:18px}}
@media(max-width:600px){.app-shell{padding:20px 16px 115px}.topbar{margin-bottom:30px}.section-heading{display:block;margin-bottom:19px}.section-heading h1{font-size:34px}.time-pill{display:none}.lesson-card{padding:22px 19px;border-radius:25px}.lesson-card h2{font-size:25px}.practice-step h3{font-size:22px}.action-row .button{flex:1;min-width:130px}.stats-grid{gap:10px}.calendar-card{padding:18px}.calendar-grid button,.calendar-grid span{min-height:38px}.bottom-nav{justify-content:space-around;gap:0}.sync-code{font-size:16px}}
@media(max-width:600px){.daily-progress{padding:14px}.exercise-tabs{gap:6px}.score-table{gap:5px}.score-table span{font-size:11px}.score-table strong{font-size:14px}}
@media(prefers-color-scheme:dark){:root{background:#10151f;color:#f1f4fa}.brand-mark{background:#6e9dff}.sync-badge,.intro-line,.step-desc,.status-line,.muted,.privacy-note,.selected-day{color:#a7b1c1}.icon-button{background:#242e3d;color:#8bb1ff}.time-pill,.lesson-card,.calendar-card,.account-card,.stat-card{background:#1a2331;border-color:#2a3547}.category{background:#223a5b;color:#9ec0ff}.done-banner,.checkin-alert{background:#173d32;color:#9be9bc}.stepper span{background:#354155}.stepper span.active{background:#75a4ff}.audio-stage{background:linear-gradient(135deg,#223a60,#2c2d52);color:#b5c5df}.audio-orbit{background:#304565}.audio-icon,.kicker,.step-kicker,.text-button{color:#86adff}.button.primary{background:#3977ed}.button.soft{background:#263e60;color:#b2cbff}.button.outline{background:#202b3b;border-color:#45536a;color:#d2d9e5}.transcript,.target-phrase,.sync-code{background:#222d3e}.target-phrase p:last-child,.chinese-lines{color:#a7b1c1}.step-actions,.dictation,.import-area{border-color:#344155}.result-card{background:#202b3b;border-color:#344155}.result-head,.heard-text{color:#c1c9d7}.result-head strong{color:#91b5ff}.word-list .matched{background:#1e4b3b;color:#b4ebcb}.word-list .missed{background:#553821;color:#f4bf9a}.dictation input,.import-area input{background:#202b3b;border-color:#44536a;color:#f1f4fa}.calendar-grid button{color:#e6ebf3}.calendar-grid .completed{background:#3977ed}.calendar-grid .missed-day{background:#2b3543;color:#9aa6b8}.calendar-grid .future-day{color:#647083}.calendar-grid .today-day{box-shadow:inset 0 0 0 2px #75a4ff}.bottom-nav{background:#1a2331ec;border-color:#2d3848}.bottom-nav button{color:#96a2b2}.bottom-nav button.active{color:#8fb5ff}}
@media(prefers-color-scheme:dark){.daily-progress,.celebration-card{background:#1a2331;border-color:#2a3547}.daily-progress>span,.score-table span{color:#a7b1c1}.exercise-tab{background:#202b3b;border-color:#39485c;color:#a7b1c1}.exercise-tab.selected{background:#263e60;color:#9ec0ff}.exercise-tab.done{background:#173d32;color:#9be9bc;border-color:#295c49}.score-table div{background:#263447}.score-table strong{color:#e8edf7}.calendar-grid .partial-day{background:#263e60;color:#9ec0ff}.celebration-card p:not(.kicker){color:#a7b1c1}}
@media(prefers-reduced-motion:reduce){.confetti-piece,.celebration-card,.celebration-emoji{animation:none}.button,.exercise-tab{transition:none}}
