:root{--paper:#f8f7f2;--white:#fffefa;--ink:#24382e;--muted:#66736b;--green:#526657;--deep:#344e3e;--lime:#e6ebda;--lav:#ece8f3;--purple:#746387;--sand:#efe4d6;--line:#dfe3d9;--red:#9c4539;--shadow:0 8px 26px #27392d08;font-family:Inter,Segoe UI,Arial,sans-serif;font-size:16px;color:var(--ink);background:var(--paper)}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,textarea,select{ -webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #8c66b0;outline-offset:4px}button{border:0}p{line-height:1.65}h1,h2,h3,p{margin-top:0}h1,h2,.serif{font-family:Georgia,'Times New Roman',serif;font-weight:400;letter-spacing:-.035em}h1{font-size:clamp(2.2rem,5vw,3.8rem);line-height:1.08;margin-bottom:20px}h2{font-size:2rem;margin-bottom:15px}h3{font-size:1.1rem;line-height:1.4}small,.small{font-size:.85rem;line-height:1.5}.muted{color:var(--muted)}.eyebrow{text-transform:uppercase;font-size:.68rem;letter-spacing:.18em;font-weight:750;margin-bottom:14px;color:var(--green)}.layout{display:grid;grid-template-columns:238px 1fr;min-height:100vh}.sidebar{position:fixed;width:238px;inset:0 auto 0 0;border-right:1px solid var(--line);background:#f0f2e9;padding:34px 22px;display:flex;flex-direction:column;z-index:30}.brand{display:flex;align-items:center;gap:12px;margin-bottom:45px}.brand img{width:41px;height:41px}.brand strong{font-family:Georgia,serif;font-size:1.17rem;font-weight:400;display:block;line-height:1.25}.brand small{font-size:.61rem;letter-spacing:.06em}.nav{display:grid;gap:7px}.nav a{display:flex;align-items:center;gap:13px;padding:13px 16px;border-radius:10px;font-size:.88rem;color:#59675d;font-weight:550;min-height:48px}.nav a.active{background:var(--green);color:white}.nav a:hover:not(.active){background:#e4e9dc}.nav svg{width:20px;height:20px}.side-bottom{margin-top:auto;padding-top:36px}.side-note{padding:17px 14px;border-top:1px solid var(--line);margin-top:20px;font-family:Georgia,serif;font-style:italic;font-size:1rem;line-height:1.5;color:var(--green)}.side-note small{font-family:Segoe UI,Arial,sans-serif;font-style:normal;display:block;font-size:.68rem;margin-top:7px}.shell{grid-column:2;max-width:1600px;width:100%;padding:0 48px 60px}.topbar{height:86px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);margin-bottom:38px;gap:18px}.breadcrumb{font-size:.8rem;color:var(--muted)}.top-right{display:flex;align-items:center;gap:18px}.saved{font-size:.7rem;color:var(--green)}.saved.error{color:var(--red)}.avatar{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#ded9e7;font-family:Georgia,serif;font-size:1.2rem}.content{max-width:1100px;margin:auto}.page-head{display:flex;align-items:start;justify-content:space-between;gap:20px;margin-bottom:26px}.page-head p{max-width:650px}.btn,.quiet,.chip{display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:8px;min-height:46px;padding:12px 19px;font-size:.87rem;font-weight:600;line-height:1.3}.btn{background:var(--green);color:white;border:1px solid var(--green)}.btn:hover{background:var(--deep)}.btn.secondary{background:var(--white);color:var(--ink);border:1px solid #cfd7cc}.btn.secondary:hover{background:var(--lime)}.btn.lav{background:var(--lav);border-color:var(--lav);color:#55466b}.quiet{background:transparent;color:var(--green);padding:8px 12px}.quiet:hover{background:var(--lime)}.chip{background:var(--lime);font-size:.73rem;min-height:30px;padding:6px 10px;border-radius:30px;font-weight:500}.chip.lav{background:var(--lav);color:#685179}.hero{display:grid;grid-template-columns:1.3fr .8fr;background:#ebece1;border:1px solid #e0e4d4;border-radius:18px;min-height:282px;overflow:hidden;margin-bottom:28px}.hero-copy{padding:32px 35px;position:relative;z-index:1}.hero-copy h1{font-size:clamp(2.4rem,4vw,3.4rem);margin-bottom:15px}.hero-copy p{max-width:425px;font-size:.9rem;color:#536156;margin-bottom:24px}.journey-art{position:relative;min-height:260px;align-self:stretch;display:flex;align-items:end;justify-content:center;background:radial-gradient(ellipse at 50% 70%,#d2dbbc00 40%,#e8eadf 80%)}.journey-art svg{width:100%;height:100%;max-height:290px}.grid{display:grid;gap:22px}.two{grid-template-columns:1.45fr 1fr}.three{grid-template-columns:repeat(3,1fr)}.card{background:var(--white);border:1px solid var(--line);border-radius:14px;padding:25px;box-shadow:var(--shadow)}.card.green{background:#edf0e6}.card.lav{background:#f0edf5}.card.sand{background:#f4ede4}.card h3{margin-bottom:9px}.card p{font-size:.9rem}.card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:19px;gap:12px}.card-head h2,.card-head h3{margin-bottom:0}.card-head h2{font-family:inherit;font-size:1rem;letter-spacing:0;font-weight:650}.lesson-feature{display:flex;gap:18px;align-items:flex-start;margin-bottom:24px}.tile-icon{width:53px;height:58px;border-radius:12px;background:#e9e4f0;display:grid;place-items:center;color:#78618a;flex-shrink:0}.tile-icon svg{width:29px;height:29px}.lesson-feature h3{font-family:Georgia,serif;font-size:1.5rem;letter-spacing:-.025em;font-weight:400;margin:6px 0}.lesson-feature p{margin-bottom:0;font-size:.8rem}.flex{display:flex;align-items:center;gap:12px}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.stats{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line);padding-top:20px;margin-top:23px;gap:10px}.stat strong{display:block;font-family:Georgia,serif;font-weight:400;font-size:1.7rem}.stat span{font-size:.68rem;color:var(--muted)}.progress-track{height:6px;background:#e6e8e0;border-radius:20px;overflow:hidden;margin:15px 0 10px}.progress-track span{display:block;height:100%;background:#829376;transition:width .2s}.section-title{margin:32px 0 18px;display:flex;align-items:center;justify-content:space-between}.section-title h2{font-size:1.65rem;margin:0}.week-row{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.week-card{padding:18px;border-radius:12px;border:1px solid var(--line);background:var(--white)}.week-card.current{border-color:#a1af95;background:#edf0e6}.week-card .number{font-family:Georgia,serif;font-size:1.5rem;color:#85917d;display:block;margin-bottom:13px}.week-card h3{font-size:.85rem;margin-bottom:8px}.week-card p{font-size:.73rem;margin-bottom:10px;color:var(--muted)}.quote{font-family:Georgia,serif;font-size:1.45rem;line-height:1.35;margin:18px 0 5px}.stack{display:grid;gap:15px}.lesson-list{display:grid;gap:10px}.lesson-row{display:flex;align-items:center;gap:17px;background:var(--white);border:1px solid var(--line);border-radius:11px;padding:17px 20px;min-height:78px}.lesson-row:hover{border-color:#9ba994}.day-number{font-family:Georgia,serif;font-size:1.5rem;color:#7c8c73;min-width:27px}.lesson-row h3{font-size:.95rem;margin:0 0 5px}.lesson-row p{font-size:.75rem;margin:0;color:var(--muted)}.lesson-row .status{margin-left:auto;font-size:.75rem;white-space:nowrap;color:var(--green)}.week-tabs{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:24px}.week-tabs button[aria-selected=true]{background:var(--green);color:white}.roadmap{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.roadmap div{padding:17px;border:1px dashed #cbd1c5;border-radius:10px}.roadmap p{font-size:.8rem;margin:8px 0 0}.lesson-top{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:18px}.lesson-top .quiet{padding-left:0}.step-dots{display:flex;gap:7px;align-items:center}.step-dots button{height:32px;width:32px;border-radius:50%;background:#e5e9de;color:var(--green);font-size:.7rem}.step-dots button.active{background:var(--green);color:white}.lesson-layout{max-width:820px;margin:auto}.lesson-title{font-size:2.4rem;margin-bottom:12px}.lesson-title+.muted{font-size:.9rem}.lesson-panel{padding:30px 35px;margin-top:24px}.lesson-panel h2{font-size:1.9rem}.step-label{font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;color:#6d7a66;margin:0 0 12px}.word-card{padding:17px 0;border-bottom:1px solid var(--line)}.word-card:last-child{border-bottom:0}.word-header{display:flex;justify-content:space-between;gap:15px;align-items:center}.french{font-size:1.15rem;font-weight:600;line-height:1.6}.word-card p{margin:5px 0;font-size:.85rem}.audio-controls{display:inline-flex;gap:5px;align-items:center;flex-wrap:wrap}.audio-btn{min-height:39px;border-radius:7px;padding:7px 10px;background:#edf0e6;color:var(--green);font-size:.75rem;display:inline-flex;align-items:center;gap:5px}.audio-btn:hover{background:#dfe7d7}.audio-btn svg{width:15px;height:15px}.id-help{margin-top:10px;background:#f1eef6;border-radius:8px;padding:12px 14px;font-size:.85rem;color:#665475}.must{display:inline-block;font-size:.62rem;letter-spacing:.07em;text-transform:uppercase;color:#5f6e44;background:#ebeedc;border-radius:4px;padding:3px 6px;margin-bottom:6px}.dialogue{margin:20px 0}.dialogue-line{padding:15px 0;border-bottom:1px solid var(--line)}.speaker{font-size:.7rem;letter-spacing:.04em;color:var(--muted);display:block;margin-bottom:7px}.dialogue-line p{margin:5px 0}.tip{border-left:3px solid #b8c2a0;padding:17px 21px;background:#f0f2e9;border-radius:0 9px 9px 0;margin:21px 0}.tip.purple{border-color:#c7b6d8;background:#f3eff7}.tip p{font-size:.9rem;margin-bottom:9px}.tip p:last-child{margin-bottom:0}.lesson-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:24px}.exercise{min-height:270px}.exercise h2{font-family:inherit;font-size:1.2rem;font-weight:600;letter-spacing:-.01em;line-height:1.6}.exercise-options{display:grid;gap:10px;margin-top:24px}.option{display:flex;align-items:center;text-align:left;background:var(--white);border:1px solid #cfd7cc;border-radius:9px;padding:14px 17px;min-height:51px;gap:14px;color:var(--ink)}.option::before{content:'';width:15px;height:15px;border:1px solid #a7b29f;border-radius:50%;flex-shrink:0}.option:hover{background:#eef2e6;border-color:#889d7a}.feedback{padding:18px 20px;border-radius:10px;margin-top:20px;background:#edf3e7;border:1px solid #c6d5b7}.feedback.wrong{background:#faf0e9;border-color:#e5c8b7}.feedback p{font-size:.9rem;margin:7px 0}.feedback strong{font-size:.95rem}.feedback .small{font-size:.8rem}.form-input,textarea,select{border:1px solid #bdc9b7;border-radius:8px;background:white;color:var(--ink);padding:13px 14px;min-height:48px;width:100%;line-height:1.5}textarea{resize:vertical;min-height:90px}label{font-size:.85rem;display:block;margin-bottom:8px;font-weight:600}.field{margin:18px 0}.form-inline{display:flex;gap:10px;margin-top:23px;align-items:center}.token-bank,.sentence-tray{display:flex;flex-wrap:wrap;gap:8px;padding:15px;border:1px solid var(--line);border-radius:9px;min-height:62px;margin:15px 0}.sentence-tray{background:#edf0e6;border-style:dashed}.token{border:1px solid #c6d0bc;background:white;border-radius:6px;padding:10px 13px;min-height:42px;color:var(--ink)}.self-buttons{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.self-buttons button.selected{background:var(--green);color:white}.flashcard{text-align:center;padding:42px 25px;min-height:230px;border-radius:13px;background:#f1eef5;margin:20px 0}.flashcard h2{margin:20px 0}.review-empty{text-align:center;padding:45px 25px}.big-number{font-family:Georgia,serif;font-size:3rem;font-weight:400}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:24px}.metric{padding:20px;background:var(--white);border:1px solid var(--line);border-radius:12px}.metric strong{font-family:Georgia,serif;font-size:2.1rem;font-weight:400;display:block;margin-bottom:5px}.metric span{font-size:.75rem;color:var(--muted)}.performance-bars{display:flex;gap:18px;align-items:flex-end;height:140px;border-bottom:1px solid var(--line);margin:35px 0 20px;padding:0 12px}.bar-col{flex:1;text-align:center;height:100%;display:flex;flex-direction:column;justify-content:end;font-size:.75rem}.bar{background:#a6b294;border-radius:5px 5px 0 0;min-height:3px;position:relative}.bar-col small{padding:6px 0}.can-list{list-style:none;padding:0;margin:0}.can-list li{padding:13px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:15px;font-size:.85rem;line-height:1.6}.pill-note{font-size:.68rem;white-space:nowrap;color:var(--purple)}.settings-list{max-width:770px}.settings-list .card{margin:18px 0}.radio-group{display:flex;gap:10px;margin:15px 0;flex-wrap:wrap}.radio-group button.selected{background:var(--green);color:white}.search{margin-bottom:22px;max-width:580px}.filter-count{font-size:.8rem;color:var(--muted);margin-bottom:20px}.phrase-result{border-bottom:1px solid var(--line);padding:16px 0}.phrase-result .flex{justify-content:space-between}.phrase-result p{margin:5px 0;font-size:.85rem}.pronunciation-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.pronunciation-grid .card p{font-size:.88rem}.recording{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:15px 0}.recording audio{max-width:100%;height:42px}.danger{color:var(--red)!important}.offline{background:#fff0d9;color:#795a25;padding:12px 20px;border-radius:8px;font-size:.83rem;margin-bottom:22px}.loading{padding:50px;color:var(--green)}.skip{position:fixed;top:-100px;left:15px;z-index:100;background:white;padding:12px}.skip:focus{top:10px}.audio-bar{position:fixed;bottom:20px;left:calc(238px + (100vw - 238px)/2);transform:translateX(-50%);background:#263f30;color:white;box-shadow:0 6px 25px #18332125;border-radius:12px;padding:8px 10px 8px 20px;display:flex;gap:20px;align-items:center;max-width:90vw;z-index:80;font-size:.8rem}.audio-bar[hidden]{display:none}.audio-bar .quiet{color:white;background:#3f5948;white-space:nowrap;min-height:36px;font-size:.75rem}#toast{position:fixed;bottom:25px;right:25px;background:var(--deep);color:white;border-radius:10px;padding:14px 20px;z-index:90;max-width:350px;box-shadow:0 5px 20px #0002;font-size:.84rem}#toast:empty{display:none}dialog{border:1px solid var(--line);border-radius:16px;max-width:510px;width:calc(100% - 32px);background:var(--white);color:var(--ink);padding:30px;box-shadow:0 15px 90px #182f2340}dialog::backdrop{background:#1f352866}dialog h2{font-size:1.8rem}.modal-buttons{display:flex;gap:10px;justify-content:end;margin-top:25px}.hidden{display:none!important}.mobile-brand{display:none}details summary{cursor:pointer;color:var(--green);font-size:.85rem;padding:12px 0;min-height:44px}details p{font-size:.85rem}.end-mark{font-size:.7rem;text-align:center;color:#8a9586;margin:35px 0 0}.badge-icon{width:36px;height:36px;border-radius:50%;background:#e2e8d6;display:grid;place-items:center}.badge-icon svg{width:20px;height:20px}
@media(min-width:1450px){.shell{padding-left:70px;padding-right:70px}.hero-copy{padding:42px}}@media(max-width:1100px){.layout{grid-template-columns:205px 1fr}.sidebar{width:205px;padding:28px 16px}.shell{padding:0 28px 50px}.two{grid-template-columns:1.15fr 1fr}.hero{grid-template-columns:1.4fr .8fr}.hero-copy{padding:27px}.hero-copy h1{font-size:2.8rem}.week-row{gap:10px}.week-card{padding:14px}.audio-bar{left:calc(205px + (100vw - 205px)/2)}}
@media(max-width:850px){.two{grid-template-columns:1fr}.hero{grid-template-columns:1.4fr .8fr}.hero-copy h1{font-size:2.4rem}.hero-copy p{font-size:.85rem}.week-row{grid-template-columns:repeat(2,1fr)}.metrics{grid-template-columns:repeat(2,1fr)}.top-right{gap:10px}.saved{max-width:120px;text-align:right}.three{grid-template-columns:1fr}}
@media(max-width:650px){.layout{display:block}.sidebar{width:100%;height:70px;top:auto;bottom:0;padding:5px 8px;display:block;background:#f6f7efee;backdrop-filter:blur(14px);border-right:0;border-top:1px solid var(--line)}.brand,.side-bottom{display:none}.nav{display:flex;gap:3px;justify-content:space-around}.nav a{display:flex;flex-direction:column;gap:5px;padding:7px 9px;font-size:.61rem;min-height:55px;justify-content:center;flex:1;border-radius:9px}.nav svg{width:19px;height:19px}.shell{padding:0 19px 100px}.topbar{height:74px;margin-bottom:26px;gap:8px}.breadcrumb{display:none}.mobile-brand{display:flex;gap:9px;align-items:center;font-family:Georgia,serif;font-size:.95rem;line-height:1.2}.mobile-brand img{width:31px;height:31px}.top-right{gap:8px}.avatar{display:none}.saved{font-size:.6rem;max-width:100px}.top-right .quiet{font-size:.7rem;padding:6px;min-height:36px}.hero{grid-template-columns:1fr;position:relative;min-height:330px}.hero-copy{padding:27px 24px 28px}.hero-copy h1{font-size:2.8rem;max-width:230px}.hero-copy p{max-width:245px}.journey-art{position:absolute;right:-40px;bottom:0;opacity:.52;width:200px;height:210px;min-height:0;pointer-events:none}.hero-copy .btn{position:relative;z-index:2}.hero-copy p{position:relative;z-index:2}.card{padding:22px}.week-card{padding:17px}.week-card h3{font-size:.82rem}.lesson-feature{gap:13px}.lesson-feature h3{font-size:1.35rem}.section-title h2{font-size:1.5rem}.section-title .quiet{font-size:.75rem}.page-head{display:block}.page-head h1{font-size:2.5rem}.page-head p{font-size:.9rem}.lesson-title{font-size:2rem}.lesson-panel{padding:23px 20px}.lesson-top{flex-wrap:wrap}.step-dots{gap:4px}.step-dots button{width:28px;height:28px}.word-header{align-items:start}.word-header .french{font-size:1.02rem}.audio-controls{justify-content:start}.audio-btn{font-size:.7rem;padding:7px 8px;min-height:38px}.word-header .audio-controls{flex-shrink:0}.word-header{flex-wrap:wrap;gap:7px}.lesson-footer .btn{padding:12px 14px}.lesson-footer .muted{font-size:.7rem}.form-inline{flex-wrap:wrap}.form-inline .form-input{flex:1;min-width:150px}.roadmap,.pronunciation-grid{grid-template-columns:1fr}.audio-bar{left:50%;bottom:83px;gap:8px;padding-left:12px;width:calc(100% - 30px);font-size:.73rem;justify-content:space-between}#toast{bottom:85px;left:20px;right:20px;max-width:none}.can-list li{flex-direction:column;gap:3px}.lesson-row{gap:13px;padding:16px}.lesson-row .status{font-size:.65rem}.modal-buttons{flex-wrap:wrap}.recording .btn{font-size:.77rem}.metrics{gap:10px}.metric{padding:17px}.metric strong{font-size:1.8rem}.stat strong{font-size:1.5rem}.lesson-list{gap:9px}.performance-bars{gap:10px}.topbar .mobile-settings{display:inline-flex}.lesson-top .quiet{font-size:.75rem}}
.btn svg,.quiet svg{width:18px;height:18px;flex-shrink:0}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
/* Optional phone and offline controls: thumb targets and safe-area spacing. */
.performance-bars{overflow-x:auto}.bar-col{min-width:48px}
.account-card{margin:20px 0}.account-card form{max-width:420px}.cloud-status{padding:12px 15px;background:var(--lime);border-radius:8px;line-height:1.6}.account-link{white-space:nowrap;font-size:.72rem}
@media(max-width:650px){.top-right .account-link{font-size:.65rem;padding:6px;min-width:44px}.top-right .quiet[href="#phrasebook"]{display:none}.account-card{padding:22px 20px}.account-card h2{font-size:1.8rem}.account-card form .btn{width:100%}}
@media(max-width:650px){.week-tabs{flex-wrap:nowrap;overflow-x:auto;padding:4px 2px 12px;scrollbar-width:thin}.week-tabs .btn{flex:0 0 auto;min-width:84px}.step-dots{flex-wrap:wrap}.step-dots button{min-width:44px!important;width:44px!important;min-height:44px}}
@media(max-width:380px){.topbar{gap:5px}.mobile-brand{font-size:.85rem}.top-right{gap:4px}.top-right .quiet[href="#phrasebook"]{font-size:0;min-width:40px}.top-right .quiet[href="#phrasebook"]::before{content:'⌕';font-size:20px}.saved{max-width:76px}}
.mobile-options h2{font-size:1.7rem}.mobile-options hr{border:0;border-top:1px solid var(--line);margin:24px 0}.mobile-actions{align-items:stretch}.mobile-actions button{min-height:46px}.mobile-options [role=status]{min-height:1.5em}.mobile-options #mobile-download-progress:not(:empty){padding:13px;background:var(--lime);border-radius:8px;line-height:1.7}
@media(pointer:coarse){button,.audio-btn,.token,.step-dots button,.chip[role=button]{min-height:44px}.step-dots{flex-wrap:wrap}.step-dots button{min-width:44px}.audio-btn{padding:10px 12px}.top-right .quiet{min-height:44px;min-width:44px}.self-buttons button{min-height:46px}}
@media(max-width:650px){body{padding-top:env(safe-area-inset-top);padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}.sidebar{height:calc(70px + env(safe-area-inset-bottom));padding-bottom:calc(5px + env(safe-area-inset-bottom));padding-left:max(8px,env(safe-area-inset-left));padding-right:max(8px,env(safe-area-inset-right))}.shell{padding-bottom:calc(104px + env(safe-area-inset-bottom))}.audio-bar{bottom:calc(83px + env(safe-area-inset-bottom))}#toast{bottom:calc(85px + env(safe-area-inset-bottom))}.mobile-actions{gap:10px;flex-direction:column}.mobile-actions button{width:100%}.mobile-options h2{font-size:1.6rem}.lesson-top .step-dots{max-width:100%}.step-dots button{min-width:36px;min-height:44px;width:36px}.audio-controls .audio-btn{min-height:44px}.token{min-height:44px}}
