:root{--ink:#142023;--muted:#687374;--line:#e5e9e5;--cream:#f6f7f1;--green:#b9ee71;--dark:#182b2b;--blue:#dbeaf0;--white:#fff;--shadow:0 16px 55px rgba(26,48,45,.07)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--ink);font:16px/1.5 'DM Sans',system-ui,sans-serif}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.42}.hidden{display:none!important}.shell{width:min(1120px,calc(100% - 40px));margin:auto}.topbar{height:88px;display:flex;justify-content:space-between;align-items:center}.brand{display:flex;align-items:center;gap:12px;font-family:Outfit,sans-serif;font-weight:800;letter-spacing:.1em;font-size:14px}.brand-mark{height:38px;width:38px;display:grid;place-items:center;background:var(--dark);color:var(--green);border-radius:10px;font-size:17px;letter-spacing:-.1em}.brand-mark span{font-size:11px;align-self:start;margin-top:3px}.top-note{font-size:12px;color:#73807c;letter-spacing:.08em;text-transform:uppercase}.panel{background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow)}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:Outfit,system-ui,sans-serif;letter-spacing:-.035em}h1{font-size:clamp(42px,6vw,76px);line-height:1.03}h2{font-size:30px;line-height:1.12}h3{font-size:29px}.eyebrow{color:#50715b;letter-spacing:.16em;font-size:11px;font-weight:800;text-transform:uppercase}.eyebrow.light{color:var(--green)}.intro{max-width:600px;margin:8vh auto;padding:clamp(28px,5vw,52px)}.intro h1{font-size:clamp(38px,5vw,58px);margin:16px 0}.intro p{color:var(--muted);font-size:16px}.form-stack{display:grid;gap:18px;margin-top:30px}.form-stack label{display:grid;gap:7px;font-size:13px;font-weight:700}.form-stack input,.quiz-card input{width:100%;border:1px solid #dbe1db;background:#f8faf6;border-radius:13px;outline:none;padding:14px 16px;color:var(--ink)}.form-stack input:focus,.quiz-card input:focus{border-color:#73a64a;box-shadow:0 0 0 3px rgba(185,238,113,.22)}.primary,.secondary{border:0;border-radius:13px;padding:14px 18px;font-weight:800;display:inline-flex;align-items:center;justify-content:space-between;gap:18px;min-height:50px}.primary{background:var(--green);color:#1c3220}.primary:hover{background:#a6e65a}.secondary{background:#edf2ed;color:#253732}.secondary:hover{background:#e1eae0}.text-button{border:0;background:transparent;color:#315a3d;font-size:13px;font-weight:800}.error{color:#a13228!important;min-height:20px}.hero{position:relative;overflow:hidden;background:var(--dark);color:#fff;border-radius:28px;min-height:326px;display:flex;align-items:center;justify-content:space-between;padding:50px 60px}.hero:before{content:"";position:absolute;width:500px;height:500px;border-radius:50%;background:#284440;right:-100px;top:-270px}.hero>div{position:relative;z-index:1}.hero h1{margin:15px 0 18px}.hero h1 em{font-style:normal;color:var(--green)}.hero p{color:#d2dfd7;max-width:430px;margin:0}.hero-art{width:230px;height:230px;border-radius:50%;border:1px solid rgba(185,238,113,.35);display:flex;align-items:center;justify-content:center;flex-direction:column;flex:none;transform:rotate(-8deg)}.hero-art span{font:800 97px/1 Outfit,sans-serif;color:var(--green);letter-spacing:-.09em}.hero-art small{font-size:12px;color:#d7e6db;letter-spacing:.08em;text-transform:uppercase}.orbit{position:absolute;border:1px solid rgba(185,238,113,.2);border-radius:50%}.orbit-one{width:280px;height:280px}.orbit-two{width:330px;height:330px}.score-grid{display:grid;grid-template-columns:1fr 58px 1fr;align-items:center;gap:0;margin:22px 0}.score-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:23px 28px;min-height:155px;box-shadow:var(--shadow)}.score-label{display:block;color:#82918b;font-size:10px;letter-spacing:.14em;font-weight:800}.score-card strong{display:block;font-family:Outfit,sans-serif;font-size:24px;line-height:1.1;margin-top:9px}.score-value{display:flex;align-items:baseline;gap:8px;margin-top:12px}.score-value span{font:800 44px/1 Outfit,sans-serif;letter-spacing:-.05em}.score-value small,.score-meta{font-size:12px;color:var(--muted)}.score-meta{margin-top:8px}.versus{text-align:center;color:#759075;font-family:Outfit,sans-serif;font-size:13px;font-weight:800;letter-spacing:.1em}.workspace{padding:38px 44px 46px}.section-heading{display:flex;justify-content:space-between;align-items:end}.section-heading h2{margin:7px 0 0}.day-list{display:grid;grid-template-columns:repeat(7,1fr);gap:10px;margin:24px 0 43px}.day-pill{border:1px solid var(--line);background:#f9faf7;color:#58705d;border-radius:14px;min-height:66px;display:flex;align-items:center;justify-content:center;gap:7px}.day-pill span{font:800 22px Outfit,sans-serif}.day-pill small{font-size:11px;font-weight:800}.day-pill.selected{background:var(--dark);color:var(--green);border-color:var(--dark)}.day-pill.locked{color:#aab3ad}.deck-heading{display:flex;align-items:end;justify-content:space-between;gap:20px}.deck-heading h2{margin:7px 0 5px;font-size:38px}.deck-heading p{color:var(--muted);margin:0}.deck-progress{text-align:right;display:flex;flex-direction:column;white-space:nowrap}.deck-progress strong{font:800 28px Outfit,sans-serif}.deck-progress span{font-size:12px;color:var(--muted)}.progress-track{height:7px;border-radius:10px;background:#edf0e9;overflow:hidden;margin:22px 0 32px}.progress-track>div{height:100%;width:0;background:#8bc75f;border-radius:10px;transition:width .25s}.mode-tabs{display:flex;gap:7px;border-bottom:1px solid var(--line);margin-bottom:29px;overflow-x:auto}.mode-tab{border:0;background:transparent;padding:0 20px 15px;color:#88948e;font-size:13px;font-weight:800;white-space:nowrap;border-bottom:3px solid transparent}.mode-tab:first-child{padding-left:0}.mode-tab.active{color:var(--ink);border-color:#86bb60}.lesson-topline{display:flex;justify-content:space-between;gap:20px;color:#82918a;font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;margin-bottom:16px}.flashcard,.quiz-card{width:100%;min-height:282px;border:1px solid #dce9da;background:linear-gradient(135deg,#f3f9ec,#e9f5dd);border-radius:22px;padding:34px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:var(--ink)}.flashcard:hover{border-color:#a7d289}.flashcard strong,.quiz-card>strong{font:800 clamp(42px,6vw,66px)/1.1 Outfit,sans-serif;letter-spacing:-.04em;margin:18px 0}.card-label{font-size:11px;letter-spacing:.17em;font-weight:800;color:#648366}.card-translation{font-size:16px;color:#63776a;min-height:25px}.flashcard.flipped{background:linear-gradient(135deg,#eaf2f5,#dcebee)}.lesson-actions{display:flex;gap:10px;justify-content:space-between;margin-top:18px}.lesson-actions .primary{margin-left:auto}.quiz-card{align-items:stretch;background:#f8faf5;padding:32px clamp(18px,5vw,64px)}.quiz-card>strong{font-size:clamp(29px,5vw,48px);margin:15px 0 25px}.quiz-card form{display:flex;gap:10px;width:min(530px,100%);margin:auto}.quiz-card input{background:#fff;min-width:0;font-size:17px}.quiz-card form button{flex:none}.answer-feedback{width:min(530px,100%);margin:16px auto 0;padding:11px 15px;border-radius:10px;font-size:14px;font-weight:700}.answer-feedback.correct{background:#e3f5d2;color:#326625}.answer-feedback.incorrect{background:#faebe4;color:#9c4e2c}.continue{margin:14px auto 0}.lesson-hint{text-align:center;color:#809089;font-size:12px;margin:18px 0 0}.complete-card{text-align:center;padding:55px 20px;background:#f3f9ec;border-radius:22px}.complete-icon{width:64px;height:64px;display:grid;place-items:center;border-radius:50%;background:var(--green);font-size:30px;font-weight:800;margin:0 auto 19px}.complete-card h3{margin:0 0 10px}.complete-card p{color:var(--muted);margin:auto;max-width:410px}.rule-strip{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:22px 0}.rule-strip>div{padding:20px 22px}.rule-icon{display:inline-grid;place-items:center;width:27px;height:27px;background:#ddefce;border-radius:8px;color:#416d32;font-weight:800;margin-right:10px}.rule-strip strong{font:700 17px Outfit,sans-serif}.rule-strip p{color:var(--muted);font-size:13px;margin:8px 0 0 37px;max-width:410px}footer{font-size:11px;color:#9aa8a0;text-align:center;padding:12px 0 35px}dialog{border:0;border-radius:22px;padding:0;max-width:440px;width:calc(100% - 32px);box-shadow:0 30px 100px #10241c55}dialog::backdrop{background:#0e211db9}.dialog-content{position:relative;padding:36px}.dialog-content h2{margin:10px 0 13px}.dialog-content p{color:var(--muted);font-size:14px}.dialog-close{position:absolute;right:20px;top:18px;border:0;background:#eef1ec;border-radius:50%;height:30px;width:30px;font-size:23px;line-height:1}.invite-box{background:#f2f6ef;border:1px solid #dfe9d9;border-radius:13px;padding:14px 17px;margin:20px 0;overflow-wrap:anywhere}.invite-box span{font-size:13px;color:#5b6c5b;display:block}.invite-box strong{font:800 24px Outfit,sans-serif;letter-spacing:.13em;display:block;margin-top:6px}.dialog-content .primary{width:100%;justify-content:center}.dialog-content small{display:block;color:#88958b;margin-top:16px;font-size:11px}
@media(max-width:720px){.shell{width:min(100% - 28px,580px)}.topbar{height:72px}.top-note{display:none}.hero{padding:34px 29px;min-height:282px}.hero h1{font-size:43px}.hero-art{display:none}.score-grid{grid-template-columns:1fr 1fr;gap:9px;margin:12px 0}.score-card{min-height:130px;padding:16px}.score-card strong{font-size:19px}.score-value span{font-size:36px}.versus{display:none}.workspace{padding:25px 18px 30px}.section-heading h2{font-size:26px}.day-list{gap:5px;margin:20px 0 30px}.day-pill{min-height:52px;flex-direction:column;gap:0;border-radius:9px}.day-pill span{font-size:17px}.day-pill small{font-size:9px}.deck-heading h2{font-size:30px}.deck-progress strong{font-size:23px}.mode-tab{font-size:12px;padding:0 11px 13px}.lesson-topline{font-size:9px}.lesson-topline span:last-child{display:none}.flashcard,.quiz-card{min-height:270px;padding:24px 15px}.lesson-actions{flex-wrap:wrap}.lesson-actions button{font-size:13px;padding:10px 12px}.lesson-actions .primary{width:100%;margin-left:0}.quiz-card form{flex-direction:column}.quiz-card form button{width:100%;justify-content:center}.rule-strip{grid-template-columns:1fr;gap:0;margin:12px 0}.rule-strip>div{padding:16px 12px}.rule-strip p{margin-left:37px}}
@media(max-width:400px){.intro{padding:28px 22px}.intro h1{font-size:29px;overflow-wrap:anywhere}.hero{padding:30px 22px}.hero h1{font-size:35px;overflow-wrap:anywhere}.day-list{grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}.day-pill{min-width:0}.day-pill span{font-size:15px}.day-pill small{font-size:8px}.score-card{min-width:0;padding:13px}.score-card strong{overflow-wrap:anywhere}.section-heading{align-items:start}.section-heading .text-button{max-width:100px}}

/* Translation, recording, notebook, and partner review */
.practice,.reviews{padding:38px 44px 44px;margin-top:22px}.practice .section-heading,.reviews .section-heading{align-items:center}.practice .section-heading h2,.reviews .section-heading h2{margin:7px 0 0}.practice-bonus,.review-count{font-size:12px;font-weight:800;color:#46733d;background:#e9f5de;padding:8px 12px;border-radius:999px;text-align:center}.practice-intro{color:var(--muted);font-size:14px;margin:12px 0 8px}.task-card{border-top:1px solid var(--line);padding:28px 0}.task-card:last-child{padding-bottom:0}.task-heading{display:flex;align-items:center;gap:16px}.task-number{display:grid;place-items:center;background:#e6f1dc;color:#527a43;border-radius:10px;font:800 15px Outfit,sans-serif;width:38px;height:38px;flex:none}.task-heading h3{font-size:22px;margin:0 0 1px}.task-heading div>span{font-size:12px;color:var(--muted)}.text-prompt{background:#f5f8f0;border:1px solid #e2eadd;border-radius:16px;padding:20px 22px;margin:22px 0}.text-prompt p{font:600 19px/1.5 Outfit,system-ui,sans-serif;margin:9px 0 11px}.text-prompt small{color:#67806a;font-size:12px}.field-label{display:block;font-size:12px;font-weight:800;margin:18px 0 7px}.task-card textarea,.review-card textarea{width:100%;resize:vertical;border:1px solid #dbe1db;background:#f9fbf7;color:var(--ink);border-radius:12px;padding:13px 15px;outline:none}.task-card textarea:focus,.review-card textarea:focus{border-color:#73a64a;box-shadow:0 0 0 3px rgba(185,238,113,.22)}.task-card form .primary,.task-card>.primary{margin-top:14px}.task-status{border-radius:11px;padding:10px 13px;margin:16px 0 0;font-size:13px}.task-status.pending{background:#fff5df;color:#8c6521}.task-status.approved{background:#e5f5d9;color:#3e6c2c}.task-status.changes{background:#fae9e0;color:#9d5232}.task-status p{margin:5px 0 0}.task-description{color:var(--muted);font-size:14px;margin:18px 0 15px;max-width:750px}.task-locked{opacity:.72}.lock-message{font-size:13px;font-weight:700;color:#819084;margin:0}.submitted-text{white-space:pre-wrap;background:#f7faf5;border-radius:12px;padding:15px;color:#3b4d3f;font-size:14px;margin:16px 0 0}.voice-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:16px 0}.voice-controls span{font-size:12px;color:#75867a}.file-label{display:inline-flex;align-items:center;gap:12px;flex-wrap:wrap;border:1px dashed #9db69d;background:#f7faf5;border-radius:11px;padding:12px 15px;font-size:13px;font-weight:800;cursor:pointer;max-width:100%;overflow-wrap:anywhere}.file-label input{max-width:240px;font-size:12px}.selected-file{font-size:12px;color:var(--muted);margin:9px 0}.audio-preview{display:block;width:min(480px,100%);margin:15px 0}.form-error{font-size:12px;color:#aa392e;margin:8px 0;min-height:16px}.reviews .section-heading{margin-bottom:20px}.empty-reviews{border:1px dashed #d8e3d6;border-radius:14px;padding:28px;color:#87998b;font-size:14px;text-align:center}.review-card{border:1px solid var(--line);border-radius:17px;padding:23px;margin:15px 0;background:#fcfdfa}.review-heading h3{margin:5px 0 15px;font-size:23px}.review-prompt{color:#687874;font-size:13px;margin:12px 0}.review-submission{white-space:pre-wrap;background:#eff6e9;border-radius:12px;padding:16px;font-size:15px;color:#253b2b}.model-answer{margin:13px 0;color:#506b54;font-size:13px}.model-answer summary{cursor:pointer;font-weight:800}.model-answer p{margin:8px 0}.model-answer small{color:#849188}.review-word-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 15px;margin:11px 0}.review-word-list span{font-size:12px}.review-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:11px}.media-slot{margin-top:12px}.media-slot audio{width:min(460px,100%)}.media-slot img{display:block;max-width:100%;max-height:640px;border-radius:10px;border:1px solid #dbe2da}.media-button{margin:8px 0}
@media(max-width:720px){.practice,.reviews{padding:26px 18px 28px;margin-top:12px}.practice .section-heading,.reviews .section-heading{align-items:start;gap:10px}.practice .section-heading h2,.reviews .section-heading h2{font-size:25px}.practice-bonus,.review-count{font-size:10px;max-width:105px}.task-card{padding:23px 0}.task-heading{gap:10px}.task-heading h3{font-size:19px}.text-prompt{padding:16px;margin:17px 0}.text-prompt p{font-size:17px}.file-label{display:flex;align-items:start;flex-direction:column}.file-label input{max-width:100%}.review-card{padding:16px}.review-word-list{grid-template-columns:1fr}.review-actions{flex-direction:column}.review-actions button{width:100%;justify-content:center}}
.text-prompt p,.review-prompt,.model-answer p{white-space:pre-line}
.grammar-lesson{background:#f5f8f0;border:1px solid #e2eadd;border-radius:16px;padding:20px 22px;margin:22px 0}
.grammar-lesson>p{font-size:15px;line-height:1.6;margin:12px 0}
.grammar-examples{display:grid;gap:10px}
.grammar-examples>div{display:grid;gap:3px;background:#fff;border-radius:10px;padding:10px 13px;font-size:13px}
.grammar-examples span{color:var(--muted)}
.grammar-exercises{line-height:1.6;font-size:14px}
.grammar-exercises ol,.review-exercises,.model-answer ol{padding-left:23px}
.grammar-exercises li,.review-exercises li,.model-answer li{margin:5px 0}
.review-exercises{font-size:14px;color:#405847}
@media(max-width:720px){.grammar-lesson{padding:16px;margin:17px 0}}
.pronunciation-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:15px 0}
.pronunciation-row button{white-space:nowrap}
.pronunciation-row span{color:var(--muted);font-size:12px;line-height:1.4}

#invite-key{display:block;margin-top:10px;font-size:12px;line-height:1.5;overflow-wrap:anywhere;user-select:all}

.game-nav{position:sticky;top:0;z-index:10;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:7px;background:rgba(246,247,241,.96);border:1px solid var(--line);border-radius:16px;backdrop-filter:blur(10px);box-shadow:var(--shadow)}
.game-nav-link{min-width:0;border:0;border-radius:11px;background:transparent;color:#52665a;padding:12px 8px;font-size:14px;font-weight:800}
.game-nav-link.active{background:var(--dark);color:var(--green)}
.game-nav-link:focus-visible{outline:3px solid #86bb60;outline-offset:2px}
.day-selector{padding:27px 44px 12px;margin:22px 0}
.day-selector .day-list{margin:20px 0 16px}
.game-view>.hero{margin-bottom:22px}
.game-view>.practice,.game-view>.reviews{margin-top:0}
@media(max-width:720px){.game-nav{gap:2px;padding:5px;border-radius:12px}.game-nav-link{font-size:12px;padding:11px 3px}.day-selector{padding:22px 18px 10px;margin:12px 0}.day-selector .day-list{margin:17px 0 12px}.game-view>.hero{margin-bottom:12px}}
@media(max-width:380px){.game-nav-link{font-size:11px}}

/* A quiet dark workspace: content and progress take priority over decoration. */
:root{color-scheme:dark;--ink:#edf0ea;--muted:#9baaa7;--line:#354044;--cream:#111619;--green:#c7d9a6;--dark:#1c2528;--blue:#263338;--white:#1c2528;--shadow:none}
body{background:#111619;color:var(--ink);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
h1,h2,h3,h4,.brand,.score-card strong,.score-value span,.day-pill span,.rule-strip strong,.flashcard strong,.quiz-card>strong,.text-prompt p{font-family:inherit;letter-spacing:-.025em}
.shell{width:min(1040px,calc(100% - 32px))}
.topbar{height:70px;border-bottom:1px solid var(--line);margin-bottom:18px}
.brand{display:flex;align-items:baseline;gap:12px;letter-spacing:0;font-size:20px;font-weight:750}
.brand small{font-size:12px;font-weight:500;letter-spacing:0;color:var(--muted)}
.top-note{color:var(--muted);letter-spacing:0;text-transform:none}
.panel,.score-card{background:#1b2326;border:1px solid var(--line);border-radius:14px;box-shadow:none}
.eyebrow,.eyebrow.light{color:#a9c28d;letter-spacing:.08em;font-size:11px}
.intro{margin:6vh auto}
.intro h1{font-size:clamp(30px,5vw,46px)}
.intro p,.deck-heading p,.complete-card p,.score-meta,.score-value small,.task-description,.selected-file,.voice-controls span,.pronunciation-row span{color:var(--muted)}
.primary,.secondary{border-radius:9px;min-height:44px;padding:10px 15px}
.primary{background:#c7d9a6;color:#15201a}
.primary:hover{background:#d7e7bb}
.secondary{background:#293438;color:#e7ede7;border:1px solid #3b494b}
.secondary:hover{background:#334044}
.text-button{color:#c7d9a6}
.form-stack input,.quiz-card input,.task-card textarea,.review-card textarea{background:#141b1e;border:1px solid #3b494b;color:var(--ink);border-radius:9px}
.form-stack input::placeholder,.quiz-card input::placeholder,.task-card textarea::placeholder,.review-card textarea::placeholder{color:#81918e}
.form-stack input:focus,.quiz-card input:focus,.task-card textarea:focus,.review-card textarea:focus{border-color:#a9c28d;box-shadow:0 0 0 2px #a9c28d33}
.game-nav{background:#182023;border-color:#354044;border-radius:11px;backdrop-filter:none;box-shadow:none}
.game-nav-link{color:#aab8b3;border-radius:7px}
.game-nav-link.active{background:#c7d9a6;color:#15201a}
.game-nav-link:focus-visible{outline-color:#c7d9a6}
.score-grid{margin:14px 0;grid-template-columns:1fr 42px 1fr}
.score-card{min-height:125px;padding:19px 22px}
.score-label{color:#9baaa7;letter-spacing:.08em}
.score-card strong{font-size:21px;margin-top:7px}
.score-value{margin-top:8px}
.score-value span{font-size:39px}
.versus{color:#71847c}
.day-selector{margin:14px 0;padding:23px 28px 9px}
.day-selector .day-list{margin:17px 0 12px}
.day-pill{min-height:56px;background:#151d1f;border-color:#374347;color:#d5ded6;border-radius:8px}
.day-pill.selected{background:#c7d9a6;color:#15201a;border-color:#c7d9a6}
.day-pill.locked{color:#687673}
.hero{min-height:0;padding:22px 28px;background:#1b2326;border:1px solid var(--line);border-radius:14px}
.hero:before,.hero-art,.orbit{display:none}
.hero h1{font-size:clamp(27px,4vw,37px);margin:8px 0}
.hero p{color:var(--muted);max-width:720px;font-size:14px}
.workspace,.practice,.reviews{padding:28px;margin-top:14px}
.deck-heading h2{font-size:29px}
.progress-track{background:#34403d;margin:18px 0 26px}
.progress-track>div{background:#a9c28d}
.mode-tabs{border-color:var(--line)}
.mode-tab{color:#96a5a0}
.mode-tab.active{color:#d8e6c8;border-color:#a9c28d}
.flashcard,.quiz-card,.complete-card{background:#202c2d;border:1px solid #405049;border-radius:12px;color:var(--ink)}
.flashcard.flipped{background:#26352f}
.flashcard:hover{border-color:#a9c28d}
.card-label,.card-translation{color:#a9c28d}
.lesson-topline{color:#9baaa7}
.answer-feedback.correct,.task-status.approved{background:#26392a;color:#bfdfa8}
.answer-feedback.incorrect,.task-status.changes{background:#3b2c29;color:#f0baa9}
.task-status.pending{background:#3a3526;color:#e7d4a0}
.practice-bonus,.review-count{background:#26352f;color:#c7d9a6}
.task-card{border-color:var(--line)}
.task-number{background:#293c32;color:#c7d9a6;border-radius:7px}
.task-heading div>span,.text-prompt small,.practice-intro{color:var(--muted)}
.text-prompt,.grammar-support,.grammar-unit,.support-details{background:#171f21;border:1px solid #354044;border-radius:11px;padding:19px 20px;margin:18px 0}
.text-prompt p{font-size:17px;line-height:1.65;color:var(--ink)}
.text-prompt small{line-height:1.5}
.grammar-support>strong,.grammar-exercises>strong{display:block;color:#dce6d7;font-size:15px;margin-bottom:8px}
.grammar-unit h4{font-size:20px;margin:7px 0 10px}
.grammar-unit p,.grammar-exercises p{color:var(--muted);line-height:1.65;font-size:14px}
.grammar-examples{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:13px}
.grammar-examples>div{background:#202b2c;border:1px solid #344044;border-radius:8px;padding:11px 13px}
.grammar-examples strong{color:#dce6d7}
.grammar-examples span{color:var(--muted)}
.grammar-exercises{border-top:1px solid var(--line);padding-top:20px;margin-top:22px}
.grammar-exercises ol{padding-left:26px;margin:10px 0 20px}
.grammar-exercises li{padding-left:6px;margin:9px 0;line-height:1.55}
.support-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 18px;color:var(--muted);font-size:13px;margin-top:10px}
.support-list b{color:#d6e6c5;font-weight:700}
.support-details summary,.scoring-note summary,.model-answer summary{cursor:pointer;color:#c7d9a6;font-weight:700}
.support-details{padding:14px 18px}
.content-update{background:#302f25;border-left:3px solid #d2b879;color:#e9d7ad;padding:11px 14px;border-radius:5px;font-size:13px;margin:16px 0}
.file-label{background:#1b2827;border-color:#526a5d;color:#dce6d7;border-radius:8px}
.submitted-text{background:#202b2b;color:#d9e2da}
.lock-message{color:#a7b7aa}
.empty-reviews{border-color:#45534a;color:var(--muted)}
.review-card{background:#182124;border-color:var(--line);border-radius:11px}
.review-submission{background:#223029;color:#e1ece0}
.review-prompt,.model-answer,.review-exercises{color:#b3c2b5}
.media-slot img{border-color:var(--line)}
.scoring-note{margin:16px 0 24px;padding:13px 17px;background:#1b2326;border:1px solid var(--line);border-radius:10px;color:var(--muted);font-size:13px}
.scoring-note p{margin:9px 0 0;max-width:760px}
footer{color:#7f9089}
dialog{background:#1b2326;color:var(--ink);border:1px solid var(--line);border-radius:13px}
dialog::backdrop{background:#060a0bcc}
.dialog-content p,.dialog-content small{color:var(--muted)}
.dialog-close{background:#2c383a;color:var(--ink)}
.invite-box{background:#141c1e;border-color:var(--line)}
.invite-box span{color:var(--muted)}
.invite-box strong{font-family:inherit}
.complete-icon{background:#c7d9a6;color:#15201a}
@media(max-width:720px){
  .shell{width:calc(100% - 20px)}
  .topbar{height:62px;margin-bottom:10px}
  .brand{font-size:18px;gap:8px}
  .brand small{font-size:10px}
  .score-grid{grid-template-columns:1fr 1fr;gap:8px}
  .score-card{min-height:108px;padding:14px}
  .score-card strong{font-size:17px}
  .score-value span{font-size:32px}
  .day-selector{padding:19px 15px 8px;margin:10px 0}
  .day-selector .day-list{margin:14px 0 10px}
  .hero{padding:19px}
  .hero h1{font-size:28px}
  .workspace,.practice,.reviews{padding:20px 16px;margin-top:10px}
  .deck-heading h2{font-size:25px}
  .grammar-examples,.support-list{grid-template-columns:1fr}
  .grammar-unit,.grammar-support,.text-prompt{padding:16px}
  .game-nav-link{font-size:12px}
}

/* Keep the lesson itself at the centre of the screen. */
.score-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.score-card{min-width:0}
.score-label,.eyebrow,.lesson-topline{letter-spacing:.025em;text-transform:none}
.score-label{font-size:12px;font-weight:650}
.eyebrow{font-size:12px;font-weight:650}
.versus{display:none}
.workspace{margin-top:14px}
.workspace .deck-heading h2{margin-top:5px}
.card-label{letter-spacing:.04em}
@media(max-width:720px){
  .score-grid{gap:8px}
  .score-label{font-size:11px}
  .section-heading .text-button{max-width:none;white-space:nowrap;font-size:12px;padding:0}
  .mode-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;overflow:visible}
  .mode-tab,.mode-tab:first-child{min-width:0;padding:8px 2px 10px;font-size:11px;white-space:normal}
}

/* The source stays next to the editor when the phone keyboard is open. */
#view-tasks .support-details{margin:15px 0 8px}
#view-tasks .text-prompt{margin:8px 0 8px}
#view-tasks .text-prompt:focus-visible{outline:2px solid #a9c28d;outline-offset:2px}
#written-form .field-label{margin:8px 0 7px}
@media(max-width:720px){
  #view-tasks .text-prompt{max-height:180px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
  #view-tasks .text-prompt p{font-size:16px;line-height:1.5}
  #written-input{height:150px;min-height:120px}
}
