@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Lalezar&family=Patrick+Hand&family=Vazirmatn:wght@400;500;600;700;800&display=swap');
:root{--bg:#f7f6f1;--surface:#fffefa;--ink:#243e35;--green:#254e43;--muted:#63736b;--line:#dedfd5;--sage:#e9eee4;--rust:#a94830;--sand:#efe8da;--yellow:#f3e5bf;--radius:20px;--shadow:0 10px 30px #263e3510}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:24px}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.65 'DM Sans',Arial,sans-serif}html[lang=fa] body{font-family:Vazirmatn,Tahoma,sans-serif}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;transition:background .18s,box-shadow .18s,opacity .18s}button:disabled{cursor:default}button:active:not(:disabled){opacity:.75}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid var(--rust);outline-offset:4px}h1,h2,h3,p{margin:0}h1{font-size:40px;line-height:1.3;letter-spacing:-1.3px;font-weight:600}h2{font-size:25px;line-height:1.5;letter-spacing:-.5px}h3{font-size:16px}html[lang=fa] h1{letter-spacing:-1px;line-height:1.65;font-size:37px}html[lang=fa] h2{letter-spacing:-.5px}p{color:var(--muted)}[lang=it]{font-family:'DM Sans',Arial,sans-serif}.icon{width:22px;height:22px;flex-shrink:0;vertical-align:middle}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.skip{position:fixed;top:-70px;padding:12px;background:var(--green);color:white;z-index:100}.skip:focus{top:0}.topbar{height:92px;padding:0 5%;display:flex;align-items:center;gap:30px;border-bottom:1px solid var(--line);background:var(--surface)}.brand{display:flex;align-items:center;gap:10px;font-size:32px;letter-spacing:-1.7px;font-weight:700;direction:ltr}.brand-mark{background:var(--green);color:var(--surface);border-radius:12px;font-size:32px;width:41px;height:43px;line-height:38px;text-align:center;font-family:Georgia,serif;letter-spacing:-3px}.brand-mark span{color:#e8b776}.brand-dot{color:var(--rust)}.top-tagline{font-size:13px;color:var(--muted);padding-inline-start:30px;border-inline-start:1px solid var(--line)}.language{margin-inline-start:auto;display:flex;gap:7px;align-items:center}.language .icon{width:18px}.language select{background:transparent;border:0;min-height:44px;max-width:130px;font-weight:600;font-size:14px;color:var(--ink)}.layout{display:grid;grid-template-columns:210px minmax(0,1fr);max-width:1480px;margin:auto;padding:0 4%}.sidebar{border-inline-end:1px solid var(--line);padding:42px 0; padding-inline-end:25px;display:flex;flex-direction:column}.course-tag{font:11px 'DM Sans',sans-serif;letter-spacing:1.6px;display:flex;align-items:center;gap:8px;margin:3px 0 30px}.tiny-dot{width:7px;height:7px;background:var(--rust);border-radius:50%}.sidebar nav{display:flex;flex-direction:column;gap:8px}.nav-item{border:0;background:transparent;display:flex;gap:13px;align-items:center;min-height:51px;text-align:start;border-radius:10px;padding:12px 15px;color:var(--muted);font-size:14px;position:relative}.nav-item.active{background:var(--sage);color:var(--green);font-weight:700}.nav-item:hover{background:var(--sage)}.nav-item.active i{width:5px;height:5px;background:var(--green);border-radius:50%;margin-inline-start:auto}.side-bottom{margin-top:180px;padding:20px 12px}.side-bottom>.icon{width:34px;height:34px;color:#6e8978}.side-bottom p{font-size:13px;margin:15px 0;max-width:120px}.side-bottom>span{font-size:11px;letter-spacing:.4px;color:var(--muted)}main{min-width:0;padding:29px 0 0;padding-inline-start:44px;outline:none}.breadcrumb{display:flex;align-items:center;gap:12px;margin-bottom:25px;font-size:12px;color:var(--muted)}.breadcrumb>span:first-child{font:10px 'DM Sans',sans-serif;letter-spacing:1.8px}.breadcrumb b{font-weight:500;color:var(--ink)}.edition{margin-inline-start:auto;border:1px solid var(--line);padding:3px 10px;border-radius:20px;font-size:10px}.hero{background:#e8edde;min-height:330px;position:relative;overflow:hidden;border-radius:24px;padding:37px 37px 34px}.hero-copy{position:relative;z-index:2;max-width:57%}.eyebrow{color:var(--rust);font-size:11px;font-weight:700;letter-spacing:2px;display:inline-block;margin-bottom:12px;font-family:'DM Sans',Vazirmatn,sans-serif}.hero .eyebrow{font-family:Georgia,serif;font-size:19px;letter-spacing:0;font-weight:400;font-style:italic}.hero h1{margin-bottom:14px}.hero p{font-size:14px;max-width:340px;margin-bottom:22px}.primary{border:1px solid var(--green);background:var(--green);color:#fffefa;min-height:47px;border-radius:9px;padding:11px 19px;display:inline-flex;align-items:center;justify-content:center;gap:17px;font-size:13px;font-weight:600}.primary:hover{background:#173d32;box-shadow:0 5px 16px #254e4324}.primary .icon{width:18px;height:18px}.primary:disabled{opacity:.4}.time{display:inline-flex;gap:5px;align-items:center;font-size:11px;color:var(--muted);margin-inline-start:13px}.time .icon{width:14px;height:14px}.city{position:absolute;width:48%;bottom:5px;inset-inline-end:-9px;z-index:1}.hero-stamp{position:absolute;top:24px;inset-inline-end:27px;font:9px/1.4 'DM Sans',sans-serif;letter-spacing:2px;transform:rotate(5deg);border:1px solid #9aa893;border-radius:50%;width:68px;height:68px;text-align:center;padding-top:12px;color:#607458;direction:ltr}.hero-stamp i{display:block;font-family:Georgia,serif;font-size:17px;letter-spacing:0}.stats{display:grid;grid-template-columns:1.5fr 1fr 1fr;background:var(--surface);border:1px solid var(--line);border-radius:14px;margin:20px 0 38px;padding:18px 24px;gap:22px}.stats>div{display:flex;align-items:center;gap:10px;position:relative;font-size:12px;color:var(--muted)}.stats>div+div{border-inline-start:1px solid var(--line);padding-inline-start:24px}.stats>div:first-child{flex-wrap:wrap;padding-bottom:10px;gap:8px}.stat-num{font-size:22px;color:var(--ink);line-height:1.2}.stat-num small{font-size:13px;color:var(--muted)}.stats strong{font-size:22px;color:var(--ink);font-weight:500}.stats .icon{color:#7a8d7c;width:22px}.progress{height:4px;border-radius:8px;background:#e2e6db;overflow:hidden}.progress i{height:100%;display:block;background:#678770;border-radius:8px;transition:width .3s}.stats .progress{position:absolute;bottom:0;width:100%}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:23px}.section-heading .eyebrow{font-size:9px;margin-bottom:6px}.section-heading h2{font-size:25px}.section-heading p{font-size:12px;margin-top:6px}.count-badge{border:1px solid var(--line);border-radius:20px;padding:5px 12px;font-size:12px;direction:ltr}.learning-grid{display:grid;grid-template-columns:minmax(215px,.85fr) minmax(0,1.4fr);gap:24px;align-items:start;scroll-margin-top:25px}.lesson-list{display:flex;flex-direction:column;gap:10px}.lesson-link{display:flex;align-items:center;gap:12px;background:var(--surface);border:1px solid var(--line);border-radius:12px;text-align:start;padding:16px 13px;width:100%;min-height:85px}.lesson-link.selected{border-color:#98ac96;background:#edf1e7}.lesson-link:hover{background:var(--sage)}.lesson-number{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:36px;font:17px Georgia,serif;color:#82917d}.lesson-number.completed{background:#dce8d7;color:var(--green);border-radius:50%;width:30px;height:30px}.lesson-number .icon{width:17px}.lesson-link strong{font-size:13px;font-weight:600;display:block}.lesson-link small{font-size:10px;display:block;color:var(--muted);margin-top:5px;text-align:start}.lesson-link>.icon{width:14px;color:#8d978b;margin-inline-start:auto}.lesson-detail{background:var(--surface);padding:25px;border:1px solid var(--line);border-radius:16px}.detail-top{display:flex;justify-content:space-between;align-items:center;gap:9px;margin-bottom:17px}.detail-top>span:last-child{font-size:10px;color:var(--muted)}.pill{display:inline-block;padding:4px 9px;background:var(--sage);border-radius:5px;color:var(--green);font-size:10px;font-weight:600}.lesson-detail>h2{font-size:22px;margin-bottom:13px}.lesson-body{font-size:14px;line-height:1.95;margin-bottom:23px;color:#475b50}.lesson-detail h3{font-size:12px;margin-bottom:10px}.examples{border:1px solid var(--line);border-radius:10px;overflow:hidden}.example{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px}.example+.example{border-top:1px solid var(--line)}.example p{font-size:14px;font-weight:500;color:var(--ink);line-height:1.65}.example span{font-size:11px;color:var(--muted);display:block;margin-top:6px}.icon-button{border:1px solid #d9dfd1;border-radius:50%;width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;background:var(--surface);color:var(--green)}.icon-button:hover{background:var(--sage)}.icon-button .icon{width:18px;height:18px}.icon-button.slow{font-size:11px;border-radius:9px;width:auto;padding:0 13px}.tip{display:flex;gap:11px;background:#f5efdf;border:1px solid #eee3c8;padding:16px;border-radius:10px;margin-top:17px}.tip>.icon{color:#986d31;width:18px;height:18px}.tip strong{font-size:11px}.tip p{font-size:12px;line-height:1.85;margin-top:5px;color:#6b624d}.quiz{margin-top:25px;padding-top:20px;border-top:1px dashed var(--line)}.quiz .eyebrow{letter-spacing:.5px;color:var(--muted);font-size:11px}.quiz-question{font-size:16px;color:var(--ink);margin:3px 0 15px;text-align:center}.choices{display:flex;gap:7px;flex-wrap:wrap}.choice{border:1px solid var(--line);border-radius:8px;background:transparent;font-size:12px;min-height:44px;padding:9px 13px;flex:1;display:flex;align-items:center;justify-content:center;gap:5px}.choice:hover:not(:disabled){background:var(--sage)}.choice.right{background:#e3edde;border-color:#739a6f;color:#315d2c}.choice.wrong{background:#faece5;border-color:#bb725a;color:#8f3824}.choice .icon{width:15px}.feedback{border-radius:10px;padding:14px;margin-top:15px;font-size:13px}.feedback strong{font-weight:600}.feedback p{font-size:12px;margin-top:5px;color:inherit}.feedback.success{background:#e7efe2;color:#335b2d}.feedback.error{background:#f9ede6;color:#973e29}.next-lesson{margin-top:15px;width:100%}.back{display:none}.completion-banner{background:var(--sage);display:flex;gap:20px;padding:20px;margin-top:25px;border-radius:14px}.completion-banner p{font-size:13px}footer{border-top:1px solid var(--line);margin-top:45px;padding:19px 0 25px;display:flex;justify-content:space-between;gap:20px;font-size:10px;color:var(--muted)}.mobile-nav{display:none}.page-intro{margin:35px 0 29px}.page-intro h1{font-size:35px;margin-bottom:10px}.page-intro p{font-size:14px}.page-intro .eyebrow{font-size:10px}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:27px}.segmented{display:flex;background:#eceee6;border:1px solid var(--line);padding:4px;border-radius:10px}.segmented button{border:0;background:transparent;padding:9px 15px;border-radius:7px;min-height:42px;font-size:12px}.segmented .selected{background:var(--surface);box-shadow:0 2px 5px #263e350c}.segmented span{font-size:10px;margin-inline-start:5px;background:#e2e7dc;border-radius:15px;padding:2px 5px}.text-button{border:0;background:transparent;display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:9px 3px;font-size:12px}.text-button .icon{width:16px}.study-layout{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:27px}.card-topline{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:var(--muted);margin-bottom:15px}.flashcard{background:var(--surface);border:1px solid #d6ddcc;border-radius:23px;text-align:center;position:relative;padding:45px 28px 32px;box-shadow:0 6px 0 #e8ebdf,0 7px 0 #d6ddcc;min-height:365px;display:flex;flex-direction:column;align-items:center;justify-content:center}.card-decoration{position:absolute;inset-inline-end:20px;top:18px;color:#97aa8f}.card-decoration .icon{width:24px}.flashcard>.eyebrow{font-size:11px;letter-spacing:0;color:var(--muted);margin-bottom:20px}.flashcard>h2{font:42px/1.3 Georgia,'Vazirmatn',serif;letter-spacing:-.7px;margin-bottom:15px}.flashcard>h2:not([lang]){font-family:inherit;font-size:29px}.flashcard>.icon-button{margin-bottom:10px}.card-whisper{font-size:11px;margin:17px 0}.reveal{min-width:205px}.card-answer{width:100%;margin-top:19px;padding-top:20px;border-top:1px dashed var(--line);animation:appear .25s ease}.card-answer>span{font-size:10px;color:var(--muted)}.card-answer h3{font-size:24px;margin:5px 0 17px}.answer-example{background:#f3f4ec;padding:17px;border-radius:12px}.answer-example p{font-size:12px;margin-bottom:6px}.answer-example p[lang]{font-size:16px;color:var(--ink)}.audio-row{display:flex;gap:7px;justify-content:center;margin-top:12px}.ratings{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-top:27px}.rating{min-height:69px;border:1px solid var(--line);border-radius:10px;background:var(--surface);padding:10px 5px}.rating strong{display:block;font-size:12px;font-weight:600}.rating span{font-size:10px;color:var(--muted)}.rating.good{background:var(--green);border-color:var(--green);color:white}.rating.good span{color:#d6e4d8}.rating.again{color:var(--rust)}.rating.easy{background:var(--sage)}.small-note{font-size:11px;color:var(--muted);margin:19px 0;line-height:1.9}.study-aside{border-inline-start:1px solid var(--line);padding-inline-start:26px;padding-top:33px}.study-aside .eyebrow{font-size:9px}.study-aside h3{font-size:18px;font-weight:500}.review-count{font:55px/1 Georgia,serif;margin:30px 0 23px}.review-count span{display:block;font:11px/1.6 'DM Sans',Vazirmatn,sans-serif;margin-top:13px;color:var(--muted)}.study-aside p{font-size:12px}.mini-quote{font:italic 25px/1.5 Georgia,serif;color:#829075;margin-top:35px}.empty-state{padding:65px 30px;background:var(--sage);border:1px solid var(--line);border-radius:20px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:14px;min-height:380px}.empty-state>.icon{width:45px;height:45px;color:#64815b}.empty-state .eyebrow{margin:0;font-size:10px}.empty-state p{font-size:14px;max-width:360px;margin-bottom:10px}.empty-state h2{font-size:27px}.wide{width:100%;margin-top:25px}.verb-filters{display:flex;gap:16px;align-items:end;background:var(--surface);border:1px solid var(--line);padding:20px;border-radius:14px}.verb-filters label{display:flex;flex-direction:column;gap:7px;font-size:11px;flex:1}.verb-filters select{width:100%;border:1px solid #cbd3c3;border-radius:8px;padding:10px;color:var(--ink);background:var(--bg);font-size:13px;min-height:46px}.tense-pill{border-radius:6px;padding:12px;background:var(--sage);font-size:11px;min-height:46px;align-content:center}.verb-workspace{max-width:720px;margin:35px auto 0}.verb-card{border:1px solid var(--line);background:var(--surface);border-radius:17px;padding:32px;text-align:center;margin-top:15px}.verb-card h2{font:43px Georgia,serif;margin:13px 0 5px}.verb-meaning{font-size:14px}.verb-prompt{display:flex;align-items:baseline;justify-content:center;gap:25px;font-size:27px;margin:35px 0}.blank{letter-spacing:3px;color:#9eae94}.verb-card form{text-align:start}.verb-card label{font-size:12px;margin-bottom:8px;display:block}.input-row{display:flex;gap:10px}.input-row input{min-width:0;flex:1;border:1px solid #bbc8b1;background:#fcfdf8;padding:12px 16px;border-radius:8px;font-size:17px;color:var(--ink)}.input-row input::placeholder{font-size:12px;color:var(--muted)}.input-row input:disabled{background:#f0f2ea}.reference-toggle{margin-top:22px}.conjugation{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:10px}.conjugation>div{border:1px solid var(--line);padding:13px 7px;border-radius:8px;font-family:'DM Sans',sans-serif}.conjugation span{display:block;font-size:11px;color:var(--muted)}.conjugation strong{font-size:15px;font-weight:500}.conjugation .highlight{background:var(--sage)}.next-verb{margin-top:17px}.big-score{font:70px Georgia,serif}.big-score small{font-size:30px;color:var(--muted)}.mindmap{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:35px 22px;position:relative}.map-root{background:var(--green);color:#fffdf5;padding:22px 30px;border-radius:15px;text-align:center;width:270px;margin:auto;position:relative;z-index:1}.map-root>.icon{width:23px;height:23px;margin-inline-end:7px}.map-root>span{font:10px 'DM Sans',sans-serif;letter-spacing:2px}.map-root h2{font-size:23px;margin-top:8px}.map-root p{font:italic 17px Georgia,serif;color:#cfdbc8;margin-top:6px}.map-branches{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;padding-top:40px;position:relative}.map-branches:before{content:'';position:absolute;top:20px;left:12.5%;right:12.5%;height:1px;background:#c3cbbb}.map-root:after{content:'';position:absolute;width:1px;height:20px;bottom:-20px;left:50%;background:#c3cbbb}.map-branch{position:relative}.map-branch:before{content:'';position:absolute;top:-20px;width:1px;height:20px;left:50%;background:#c3cbbb}.branch-title{border:1px solid #cbd3bd;background:#e9efde;width:100%;border-radius:9px;display:flex;align-items:center;gap:7px;padding:12px 9px;min-height:51px;font-size:11px}.branch-title .icon{width:17px;height:17px}.branch-title>span{margin-inline-start:auto;font:10px 'DM Sans',sans-serif;color:var(--muted)}.branch-1 .branch-title{background:#f4ead6;border-color:#e4d8bc}.branch-2 .branch-title{background:#e7eee9;border-color:#cbd9d0}.branch-3 .branch-title{background:#f5e6df;border-color:#e6cfc1}.branch-topics{display:flex;flex-direction:column;gap:9px;margin-top:12px}.map-node{text-align:start;padding:12px 10px;width:100%;background:var(--surface);border:1px solid var(--line);border-radius:9px;min-height:80px}.map-node span{display:block;font-size:11px;font-weight:600}.map-node small{display:block;font-size:9px;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}.map-node.selected{border-color:var(--green);box-shadow:0 0 0 1px var(--green)}.map-detail{display:grid;grid-template-columns:1fr 1fr;gap:30px;background:#efeee4;border:1px solid var(--line);border-radius:17px;padding:25px;margin-top:25px}.map-detail .eyebrow{font-size:10px;letter-spacing:.4px}.map-detail h2{font-size:22px;margin-bottom:12px}.map-detail p{font-size:13px;line-height:1.9}.map-example .example{background:var(--surface);border-radius:10px;margin-bottom:15px}.map-example .primary{width:100%}.toast{position:fixed;bottom:30px;left:50%;transform:translate(-50%,20px);max-width:90%;padding:14px 23px;background:var(--green);color:white;border-radius:12px;font-size:13px;box-shadow:var(--shadow);z-index:100;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}.toast.visible{opacity:1;transform:translate(-50%,0)}html[dir=rtl] .direction{transform:rotate(180deg)}html[dir=ltr] .back-arrow{transform:rotate(180deg)}
@keyframes appear{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1450px){.hero{min-height:370px}.hero-copy{padding-top:10px}.hero h1{font-size:44px}.city{width:48%}}
@media(max-width:1150px){.layout{grid-template-columns:170px minmax(0,1fr);padding:0 3%}.sidebar{padding-inline-end:17px}.nav-item{font-size:12px;padding:11px}.course-tag{font-size:9px}main{padding-inline-start:27px}.hero{padding:28px}.hero-copy{max-width:65%}.hero h1,html[lang=fa] .hero h1{font-size:32px}.city{width:44%;opacity:.9}.time{display:flex;margin:12px 0 0}.learning-grid{grid-template-columns:210px minmax(0,1fr);gap:15px}.lesson-detail{padding:20px}.study-layout{grid-template-columns:minmax(0,1fr) 165px;gap:20px}.study-aside{padding-inline-start:20px}.map-branches{gap:8px}.branch-title{font-size:10px;flex-wrap:wrap}.branch-title>span{display:none}.map-detail{gap:20px}.tense-pill{max-width:155px}.stats{padding:17px;gap:15px}.stats>div+div{padding-inline-start:16px}.stats>div{gap:7px}}
@media(max-width:900px){.top-tagline{display:none}.layout{grid-template-columns:1fr;padding:0 28px}.sidebar{display:none}main{padding-inline-start:0}.topbar{height:77px;padding:0 28px}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:30;background:#fffefaee;backdrop-filter:blur(15px);border-top:1px solid var(--line);padding:7px 15px calc(7px + env(safe-area-inset-bottom));justify-content:space-around}.mobile-nav .nav-item{flex:1;display:flex;flex-direction:column;gap:4px;font-size:10px;min-height:58px;padding:7px 5px;border-radius:10px}.mobile-nav .nav-item i{display:none}.mobile-nav .icon{width:22px;height:22px}.mobile-nav .nav-item.active{background:#e9eee4}.layout{padding-bottom:75px}.toast{bottom:95px}.hero-copy{max-width:58%}.city{width:49%}.hero h1,html[lang=fa] .hero h1{font-size:34px}.learning-grid{grid-template-columns:240px minmax(0,1fr)}.map-branches{gap:12px}.branch-title{font-size:12px}.study-layout{grid-template-columns:minmax(0,1fr) 200px}}
@media(max-width:759px){.learning-grid{grid-template-columns:1fr}.lesson-detail{display:none}.detail-open .lesson-list{display:none}.detail-open .lesson-detail{display:block}.back{display:inline-flex;align-items:center;gap:9px;border:0;background:transparent;font-size:12px;padding:0 0 16px;min-height:44px}.back .icon{width:17px}.hero-copy{max-width:65%}.city{width:47%}.hero h1,html[lang=fa] .hero h1{font-size:30px}.hero-stamp{width:54px;height:54px;font-size:7px;padding-top:8px;top:19px;inset-inline-end:17px}.hero-stamp i{font-size:14px}.hero p{max-width:300px}.stats{grid-template-columns:1.5fr 1fr 1fr}.stats>div{font-size:11px}.stats .icon{display:none}.section-heading{margin-bottom:18px}.lesson-link{min-height:82px;padding:15px 19px}.lesson-link strong{font-size:15px}.lesson-link small{font-size:12px}.lesson-link>.icon{width:17px}.lesson-number{width:38px;font-size:20px}.lesson-detail{padding:24px}.lesson-body{font-size:16px}.detail-top>span:last-child{font-size:11px}.example p{font-size:16px}.example span{font-size:12px}.tip strong{font-size:13px}.tip p{font-size:14px}.choices .choice{font-size:14px}.study-layout{grid-template-columns:1fr}.study-aside{display:none}.page-intro h1,html[lang=fa] .page-intro h1{font-size:30px}.verb-filters{flex-wrap:wrap}.tense-pill{max-width:none;min-height:0;padding:7px 12px}.verb-filters label{flex:1 1 40%}.mindmap{padding:25px 18px}.map-branches{grid-template-columns:1fr 1fr;gap:20px}.map-branches:before{left:25%;right:25%}.map-branch:nth-child(n+3):before{display:none}.map-detail{grid-template-columns:1fr}.map-detail p{font-size:15px}.map-node span{font-size:13px}.map-node small{font-size:11px}.branch-title{font-size:13px}footer{flex-direction:column;gap:7px}}
@media(max-width:480px){.layout{padding:0 18px 80px}.topbar{height:72px;padding:0 20px}.brand{font-size:28px}.brand-mark{width:34px;height:37px;font-size:28px;line-height:32px;border-radius:10px}.language{gap:3px}.language select{font-size:13px}.language .icon{width:17px}main{padding-top:22px}.breadcrumb{margin-bottom:20px;font-size:11px;gap:9px}.edition{font-size:9px}.hero{padding:25px 23px 160px;border-radius:19px;min-height:425px}.hero-copy{max-width:100%}.hero .eyebrow{font-size:19px}.hero h1,html[lang=fa] .hero h1{font-size:29px;margin-bottom:12px;line-height:1.45}.hero p{max-width:100%;font-size:13px;margin-bottom:19px}.hero .primary{min-height:45px;font-size:12px;padding:9px 16px}.hero .time{font-size:10px;display:inline-flex;margin-inline-start:10px}.city{width:77%;max-height:195px;bottom:-4px;inset-inline-end:-7px}.hero-stamp{display:none}.stats{padding:17px 13px;margin:17px 0 28px;gap:10px;grid-template-columns:1.5fr .9fr .9fr;border-radius:12px}.stats>div{font-size:10px;gap:5px;flex-wrap:wrap}.stats>div+div{padding-inline-start:10px;justify-content:center}.stats strong{font-size:21px}.stats>div+div>span{width:100%;text-align:center;line-height:1}.stats>div:first-child>span:last-of-type{font-size:9px}.stat-num{font-size:21px}.section-heading h2{font-size:23px}.section-heading p{font-size:11px;max-width:245px}.count-badge{padding:4px 10px;font-size:10px}.section-heading .eyebrow{font-size:9px}.lesson-link{gap:11px;padding:14px 12px}.lesson-link strong{font-size:14px}.lesson-link small{font-size:11px}.lesson-detail{padding:19px 17px;border-radius:14px}.lesson-detail>h2{font-size:22px}.lesson-body{font-size:15px}.example{padding:13px;gap:8px}.example p{font-size:15px}.example span{font-size:12px}.tip{padding:14px 12px;gap:8px}.tip p{font-size:13px}.choice{flex-basis:100%;font-size:14px;min-height:47px}.quiz-question{font-size:18px}.page-intro{margin-top:29px}.page-intro h1,html[lang=fa] .page-intro h1{font-size:28px;line-height:1.5;letter-spacing:-.7px}.page-intro p{font-size:13px}.toolbar{flex-direction:column;align-items:stretch;gap:10px;margin-bottom:20px}.segmented{display:flex}.segmented button{flex:1;font-size:12px;padding:8px}.toolbar>.text-button{align-self:flex-start;min-height:44px}.flashcard{padding:37px 20px 27px;min-height:350px}.flashcard>h2{font-size:37px}.flashcard>h2:not([lang]){font-size:26px}.card-answer h3{font-size:24px}.ratings{gap:6px}.rating strong{font-size:11px}.rating span{font-size:9px}.small-note{font-size:11px}.verb-filters{padding:15px;gap:12px}.verb-filters select{font-size:12px;padding:11px 7px}.verb-workspace{margin-top:24px}.verb-card{padding:25px 17px}.verb-prompt{font-size:23px;gap:15px;margin:30px 0}.input-row{flex-direction:column}.input-row input{min-height:51px;flex:auto}.input-row .primary{min-height:48px}.verb-card h2{font-size:38px}.conjugation{grid-template-columns:repeat(2,1fr)}.map-root{width:230px;padding:20px}.map-root h2{font-size:22px}.map-branches{grid-template-columns:1fr;gap:13px;padding-top:28px}.map-branches:before{display:none}.map-branch:before{display:none}.map-root:after{height:28px;bottom:-28px}.branch-title{padding:13px 15px;font-size:14px;min-height:54px}.branch-title>span{display:block}.branch-title .icon{width:21px;height:21px;margin-inline-end:7px}.branch-topics{display:none;position:relative;margin-inline-start:22px;padding-inline-start:14px;border-inline-start:1px solid var(--line)}.expanded .branch-topics{display:flex}.map-node{min-height:70px;padding:13px}.map-node span{font-size:13px}.map-node small{font-size:11px}.map-detail{padding:22px 18px;gap:18px}.map-detail h2{font-size:21px}.map-detail p{font-size:14px}.mobile-nav{padding-inline:12px}.mobile-nav .nav-item{font-size:10px}.empty-state{padding:45px 22px}.empty-state h2{font-size:24px}.empty-state p{font-size:13px}footer{font-size:10px;margin-top:33px;padding-bottom:22px}}
.account{display:flex;align-items:center;gap:9px}.avatar{width:32px;height:32px;border-radius:50%;background:var(--sage);color:var(--green);display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:14px;flex-shrink:0}.account-name{font-size:13px;font-weight:600;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-button{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:9px;min-height:44px;padding:8px 13px;display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:600;white-space:nowrap}.account-button:hover:not(:disabled){background:var(--sage)}.account-button:disabled{opacity:.55}.account-button .short{display:none}.account-note{font-size:11px;color:var(--muted);max-width:140px}
@media(max-width:900px){.topbar{gap:16px}.account-name{display:none}}
@media(max-width:480px){.topbar{gap:8px}.account-button{padding:6px 9px;font-size:12px;gap:5px}.account-button .long{display:none}.account-button .short{display:inline}.account-note{display:none}.avatar{width:28px;height:28px;font-size:12px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}
/* Keep the greeting unobstructed at all language directions. */
.hero-stamp{display:none}
.stat-num,.count-badge{direction:ltr;unicode-bidi:isolate}

html[lang="zh-Hans"] body{font-family:"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",sans-serif}
html[lang="zh-Hans"] h1,html[lang="zh-Hans"] h2{letter-spacing:0;line-height:1.5}
html[lang="zh-Hans"] .lesson-body{line-height:1.9}
.auth-dialog{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);color:var(--ink);padding:0;width:min(400px,calc(100vw - 32px));box-shadow:var(--shadow)}.auth-dialog::backdrop{background:#243e3566}.auth-dialog form{display:flex;flex-direction:column;gap:12px;padding:22px}.auth-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.auth-head h2{margin:0;font-size:22px}.auth-dialog label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600}.auth-dialog input{border:1px solid #bbc8b1;background:#fcfdf8;padding:12px 14px;border-radius:8px;font-size:16px;color:var(--ink);min-height:48px}.auth-dialog input:focus-visible{outline:2px solid var(--green);outline-offset:1px}.auth-dialog small{color:var(--muted);font-size:12px;margin-top:-6px}.auth-message{margin:0;min-height:1.2em;color:var(--rust);font-size:13px}.auth-message:empty{display:none}.auth-dialog .text-button{align-self:center;color:var(--green);text-decoration:underline}.auth-note{margin:0;color:var(--muted);font-size:12px;text-align:center}.auth-dialog .primary{width:100%}
.import-banner{display:flex;align-items:center;gap:16px;border:1px solid #d9c99e;background:var(--yellow);border-radius:14px;padding:14px 18px;margin:0 0 22px}.import-banner>.icon{flex-shrink:0;color:var(--green)}.import-banner p{margin:4px 0 0;font-size:13px;color:var(--ink)}.import-banner strong{font-size:14px}.import-actions{display:flex;align-items:center;gap:10px;margin-inline-start:auto;flex-shrink:0}.import-actions .primary{width:auto}
@media(max-width:760px){.import-banner{flex-wrap:wrap}.import-actions{width:100%;margin-inline-start:0}.import-actions .primary{flex:1}}
.unit-picker{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:18px 20px;margin-bottom:20px}.unit-picker-head{display:flex;justify-content:space-between;align-items:baseline;gap:15px;flex-wrap:wrap;margin-bottom:13px}.unit-picker-head h2{font-size:15px}.unit-picker-head p{font-size:12px}.unit-chips{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:9px}.unit-chip{display:flex;align-items:center;gap:11px;text-align:start;border:1px solid var(--line);background:var(--bg);border-radius:10px;padding:10px 12px;min-height:58px}.unit-chip b{flex-shrink:0;width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;font:15px Georgia,serif;background:#e2e7dc;color:#6b7c69}.unit-chip span{min-width:0}.unit-chip strong{display:block;font-size:13px;font-weight:600;overflow-wrap:anywhere}.unit-chip small{display:block;font-size:11px;color:var(--muted);margin-top:2px}.unit-chip.selected{border-color:var(--green);background:var(--sage);box-shadow:0 0 0 1px var(--green)}.unit-chip.selected b{background:var(--green);color:#fffefa}.unit-chip:hover:not(:disabled){background:var(--sage)}.unit-chip:disabled{opacity:.55}
@media(max-width:480px){.unit-picker{padding:15px 14px}.unit-chips{grid-template-columns:1fr 1fr}.unit-chip{padding:9px;gap:8px}.unit-chip b{width:26px;height:26px;font-size:13px}.unit-chip:disabled{min-height:44px;padding:6px 9px}.unit-chip:disabled b{width:22px;height:22px;font-size:12px}.unit-chip:disabled strong{font-size:12px}}
/* UX: home dashboard, floating bottom navigation, focused sessions. */
.layout,.sidebar,.mobile-nav,.breadcrumb{display:none}
main.main{max-width:1000px;margin:0 auto;padding:26px 28px 120px;outline:none}
main.main.focused{max-width:760px;padding-top:18px;padding-bottom:40px}
main.main footer{margin-top:40px}
.toast{bottom:104px}
.bottom-nav{position:fixed;bottom:14px;left:50%;transform:translateX(-50%);z-index:30;display:flex;gap:4px;width:min(580px,calc(100% - 24px));padding:6px;background:#fffefaf2;backdrop-filter:blur(14px);border:1px solid var(--line);border-radius:18px;box-shadow:0 10px 30px #263e351f}
.bottom-nav .nav-item{flex:1;flex-direction:column;justify-content:center;gap:3px;min-height:56px;padding:6px 4px;font-size:11px;border-radius:12px;text-align:center}
.bottom-nav .nav-item .icon{width:22px;height:22px}
.bottom-nav .nav-item.active{background:var(--sage);color:var(--green);font-weight:700}
.home-hello{margin:6px 0 18px}.home-hello .eyebrow{font-family:Georgia,serif;font-size:18px;letter-spacing:0;font-weight:400;font-style:italic;margin-bottom:4px}.home-hello h1{font-size:32px}
.hero-cta{position:relative;overflow:hidden;background:#e8edde;border-radius:24px;padding:34px;min-height:290px;display:flex;align-items:center}
.hero-cta .city{position:absolute;width:44%;bottom:0;inset-inline-end:-10px}
.hero-cta-copy{position:relative;z-index:1;max-width:56%}
.hero-cta .eyebrow{font-size:11px}
.hero-cta h2{font-size:30px;line-height:1.45;margin-bottom:8px}
.hero-cta p{font-size:14px;margin-bottom:22px}
.hero-cta .primary{min-height:54px;font-size:15px;padding:13px 22px;gap:12px}
.home-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:18px}
.home-card{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:start;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:18px;min-height:160px}
.home-card:hover{background:var(--sage)}
.home-card>.icon{color:var(--green);width:24px;height:24px;margin-bottom:8px}
.home-card strong{font-size:15px}
.home-stat{font:28px/1.2 Georgia,serif;color:var(--ink);direction:ltr;unicode-bidi:isolate}
.home-card small{font-size:12px;color:var(--muted)}
.home-card .progress{width:100%;margin-top:auto}
.list-progress{display:flex;align-items:center;gap:14px;font-size:12px;color:var(--muted);margin:-8px 0 20px}.list-progress span{white-space:nowrap}.list-progress .progress{flex:1}
.session-bar{display:flex;align-items:center;gap:14px;margin:0 0 22px}
.session-meta{flex:1;min-width:0}
.session-label{display:block;font-size:12px;color:var(--muted);margin-bottom:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.session-progress{height:6px;background:#e2e6db;border-radius:6px;overflow:hidden}.session-progress i{display:block;height:100%;background:var(--green);border-radius:6px;transition:width .3s}
.session-count{font-size:13px;color:var(--muted);direction:ltr;unicode-bidi:isolate;min-width:48px;text-align:end}
.focus-card{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:30px;animation:appear .25s ease}
.focus-lesson{min-height:340px}
.focus-lesson h1{font-size:28px;line-height:1.45}
.focus-sub{font-size:13px;margin:4px 0 22px}
.focus-lesson .lesson-body{font-size:17px;line-height:2}
.focus-lesson .quiz{margin-top:0;padding-top:0;border:0}
.focus-lesson .tip{margin-top:0}
.step-nav{position:sticky;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;padding:14px 0 calc(14px + env(safe-area-inset-bottom));background:linear-gradient(#f7f6f100,var(--bg) 35%)}
.step-nav .primary{min-width:170px;min-height:52px}
.step-nav .text-button:disabled{opacity:.35}
.step-note{font-size:12px;color:var(--muted);text-align:center;flex:1}
.mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}
.mode-card{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:start;border:1px solid var(--line);background:var(--surface);border-radius:20px;padding:24px;min-height:190px}
.mode-card:hover:not(:disabled){background:var(--sage)}
.mode-card>.icon{width:26px;height:26px;color:var(--green);margin-bottom:6px}
.mode-card strong{font-size:17px}
.mode-num{font:46px/1.1 Georgia,serif;direction:ltr;unicode-bidi:isolate}
.mode-card small{font-size:12px;color:var(--muted);line-height:1.8}
.mode-card.main{background:var(--green);border-color:var(--green);color:#fffefa}.mode-card.main>.icon{color:#e8b776}.mode-card.main small{color:#d6e4d8}.mode-card.main:hover:not(:disabled){background:#173d32}
.mode-card:disabled{opacity:.55}
.card-settings{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:6px 16px;margin-bottom:14px;font-size:13px}
.main.focused .flashcard{min-height:400px}
.main.focused .empty-state{min-height:0}
.verb-start{width:100%;margin-top:6px;min-height:54px;font-size:15px}
.main.focused .verb-workspace{margin-top:0}.main.focused .verb-card{margin-top:0}
.verb-card .card-topline{align-items:center}
@media(max-width:760px){.home-grid{grid-template-columns:1fr 1fr;gap:10px}.home-card{min-height:140px;padding:15px}.hero-cta{padding:24px 22px 150px;min-height:0;align-items:flex-start}.hero-cta-copy{max-width:100%}.hero-cta .city{width:68%;max-height:165px}.hero-cta h2{font-size:24px}.hero-cta .primary{width:100%}.home-hello h1{font-size:26px}}
@media(max-width:600px){main.main{padding:18px 18px 104px}main.main.focused{padding:14px 16px 24px}.bottom-nav{bottom:0;width:100%;border-radius:0;border-width:1px 0 0;padding:5px 6px calc(5px + env(safe-area-inset-bottom));box-shadow:none}.bottom-nav .nav-item{font-size:10px;min-height:54px}.toast{bottom:90px}.mode-grid{grid-template-columns:1fr;gap:10px}.mode-card{min-height:0;padding:18px}.mode-num{font-size:38px}.focus-card{padding:22px 18px}.focus-lesson h1{font-size:24px}.focus-lesson .lesson-body{font-size:16px}.step-nav .primary{min-width:0;flex:1}.main.focused .flashcard{min-height:360px}}
.card-history{font-size:12px;color:var(--muted);margin:-8px 0 14px;direction:inherit}
/* PRN: pronunciation section and mouth diagrams. */
.sounds-entry{display:flex;align-items:center;gap:14px;width:100%;text-align:start;background:var(--sage);border:1px solid #cfdac8;border-radius:14px;padding:16px;margin-bottom:16px;min-height:72px}
.sounds-entry>.icon:first-child{width:26px;height:26px;color:var(--green)}.sounds-entry strong{display:block;font-size:15px}.sounds-entry small{display:block;font-size:12px;color:var(--muted);margin-top:3px}.sounds-entry>.icon:last-child{margin-inline-start:auto;width:16px}
.sounds-link{margin-top:14px}
.review-note{display:flex;gap:9px;align-items:flex-start;background:#f5efdf;border:1px solid #eee3c8;color:#6b624d;border-radius:10px;padding:10px 13px;font-size:12px;margin:0 0 16px}.review-note .icon{width:16px;height:16px;color:#986d31}
.main.focused .review-note{margin-top:14px}
.sound-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}
.sound-tile{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:start;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:16px;min-height:110px}
.sound-tile:hover{background:var(--sage)}.sound-tile b{font:20px/1.3 Georgia,serif;color:var(--ink)}.sound-tile small{font-size:12px;color:var(--muted)}
.ipa{font:15px 'DM Sans',Arial,sans-serif;color:var(--rust);letter-spacing:.5px}
.sound-card{display:grid;grid-template-columns:minmax(0,300px) minmax(0,1fr);gap:28px;align-items:start}
.sound-figure{position:sticky;top:12px}
.mouth{width:100%;height:auto;background:#fbfaf4;border:1px solid var(--line);border-radius:16px}
.m-face{fill:none;stroke:#8b9a86;stroke-width:1.6;stroke-linecap:round}
.m-cavity{fill:#eef0e6;stroke:none}
.m-roof{fill:none;stroke:#536b5c;stroke-width:3;stroke-linecap:round}
.m-velum{fill:none;stroke:#b57a62;stroke-width:5;stroke-linecap:round}
.m-wall{fill:none;stroke:#8b9a86;stroke-width:1.6}
.m-teeth{fill:#fffefa;stroke:#8b9a86;stroke-width:1.2}
.m-tongue{fill:#e7a594;stroke:#a85b47;stroke-width:1.6}.m-ghost{opacity:.25}
.m-vowel{fill:none;stroke-width:3;stroke-linecap:round}.m-vowel-i{stroke:#254e43}.m-vowel-a{stroke:#a94830}.m-vowel-u{stroke:#986d31;stroke-dasharray:6 4}
.m-vlabel{font:700 14px 'DM Sans',sans-serif;fill:var(--ink)}.m-vlabel.m-vowel-i{fill:#254e43;stroke:none}.m-vlabel.m-vowel-a{fill:#a94830;stroke:none}.m-vlabel.m-vowel-u{fill:#986d31;stroke:none}
.m-contact{fill:#254e43;stroke:#fffefa;stroke-width:2}.m-contact-ring{fill:none;stroke:#254e43;stroke-width:2;stroke-dasharray:3 3}
.m-near{fill:none;stroke:#254e43;stroke-width:2;stroke-dasharray:3 2}
.m-air{fill:none;stroke:#3d7fa6;stroke-width:2;stroke-dasharray:5 4}.m-air-side{stroke-dasharray:2 4}.m-arrowhead{fill:#3d7fa6}
.m-trill{fill:none;stroke:#a94830;stroke-width:2}
.m-label{font:10px Vazirmatn,'DM Sans',sans-serif;fill:#5d6d64;text-anchor:middle}.m-end{text-anchor:end}.m-small{font-size:9px;fill:#3d7fa6}
html[lang="zh-Hans"] .m-label{font-family:"PingFang SC","Microsoft YaHei",sans-serif}
.sound-place{font-size:13px;color:var(--ink);font-weight:600;margin-top:10px}
.sound-text h1{font:34px/1.2 Georgia,serif}
.sound-text .ipa{margin:4px 0 14px}
.sound-text h3{font-size:13px;margin:18px 0 6px}
.sound-text>p{font-size:15px;line-height:1.95;color:#475b50}
.sound-text .example{flex-wrap:wrap}.sound-text .example p{font-size:17px}
.sound-text .audio-source{font-size:11px;line-height:1.7;color:var(--muted);margin-top:8px}
.pair{margin-top:22px;padding-top:18px;border-top:1px dashed var(--line)}.pair p{font-size:13px;margin-bottom:12px}.pair .primary{gap:10px;margin-bottom:12px}.pair .choice{font-size:17px}
@media(max-width:760px){.sound-card{grid-template-columns:1fr;gap:18px}.sound-figure{position:static;max-width:320px;margin:0 auto}.sound-grid{grid-template-columns:1fr 1fr;gap:10px}.sound-tile{padding:13px;min-height:96px}.sound-tile b{font-size:17px}}
/* PWA: install card and update bar. */
.install-card{display:flex;align-items:center;gap:14px;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:16px 18px;margin-top:20px}
.install-card img{border-radius:12px;flex-shrink:0}.install-card h3{font-size:15px}.install-card p{font-size:12px;margin-top:3px;line-height:1.8}
.install-actions{display:flex;gap:6px;align-items:center;margin-inline-start:auto;flex-shrink:0}.install-actions .primary{min-height:42px;padding:8px 16px}
.update-bar{position:fixed;inset-inline:16px;bottom:96px;z-index:60;max-width:520px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--surface);border:1px solid #cfdac8;border-radius:14px;padding:10px 12px;padding-inline-start:16px;box-shadow:0 8px 24px #263e3520;font-size:13px}
.update-bar .primary{min-height:40px;padding:8px 14px;gap:8px}.update-bar .icon{width:16px;height:16px}
.main.focused .update-bar{bottom:16px}
@media(max-width:560px){.install-card{flex-wrap:wrap}.install-actions{width:100%;justify-content:flex-end}}
/* TUT: tutor screen. */
.tutor-entry{margin-top:16px;background:#f5efdf;border-color:#eee3c8}.tutor-entry>.icon:first-child{color:#986d31}
.tutor-quota{font-size:12px;color:var(--muted);margin:-6px 0 16px}
.chat{display:flex;flex-direction:column;gap:12px;margin-bottom:18px}
.bubble{max-width:88%;border-radius:16px;padding:12px 16px;font-size:14px;line-height:1.9}
.bubble.me{align-self:flex-end;background:var(--green);color:#fffefa;border-end-end-radius:4px;white-space:pre-wrap}
.bubble.tutor{align-self:flex-start;background:var(--surface);border:1px solid var(--line);border-end-start-radius:4px}
.bubble.tutor .answer p{color:var(--ink);margin:0 0 8px}.bubble.tutor .answer p:last-child{margin-bottom:0}.bubble.tutor ul{margin:4px 0 8px;padding-inline-start:20px}
.bubble.tutor code{background:#eef0e6;border-radius:4px;padding:0 4px;font-size:13px}
.bubble.thinking{color:var(--muted);animation:pulse 1.4s ease-in-out infinite}@keyframes pulse{50%{opacity:.5}}
.bubble.error{background:#f9ede6;border-color:#eccdbf;color:#973e29}
.sources{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:10px;padding-top:10px;border-top:1px dashed var(--line)}.sources>span{font-size:11px;color:var(--muted);width:100%}
.source-chip{display:inline-flex;align-items:center;gap:6px;border:1px solid #cfdac8;background:var(--sage);border-radius:20px;padding:5px 11px;font-size:12px;min-height:34px;text-align:start}.source-chip .icon{width:14px;height:14px;color:var(--green)}
.no-source{font-size:11px;color:#986d31;margin-top:8px}
.tutor-examples{display:flex;flex-direction:column;gap:8px;margin-bottom:18px}.tutor-examples>span{font-size:12px;color:var(--muted)}.tutor-examples .choice{justify-content:flex-start;text-align:start;font-size:13px}
.tutor-form{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:12px}
.tutor-form textarea{width:100%;border:0;background:transparent;resize:vertical;min-height:72px;font:inherit;font-size:15px;color:var(--ink);outline:none}
.tutor-actions{display:flex;justify-content:space-between;align-items:center;gap:10px}.char-count{font-size:11px;color:var(--muted);direction:ltr}
.tutor-topic{display:flex;align-items:center;gap:6px;font-size:12px;margin-bottom:6px}.tutor-topic .icon{width:15px;height:15px}.tutor-topic .text-button{min-height:30px;padding:0 4px}
.tutor-signin{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;background:var(--sage);border-radius:16px;padding:28px 20px}.tutor-signin>.icon{width:30px;height:30px;color:#986d31}
/* BAK: your data page. */
.footer-link{text-decoration:underline;text-underline-offset:3px;display:inline-block;padding:6px 2px;margin:-6px 0;min-height:28px}
.data-card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:20px;margin-bottom:14px}
.data-card h2{display:flex;align-items:center;gap:10px;font-size:17px;margin-bottom:8px}.data-card h2 .icon{width:20px;height:20px;color:var(--green)}
.data-card p{font-size:13px;line-height:1.9;margin-bottom:14px}.data-card.quiet{background:var(--sage)}.data-card.quiet p:last-child{margin-bottom:0}
.data-card:first-of-type h2 .icon{transform:rotate(90deg)}
.file-button{cursor:pointer;position:relative}.file-button:focus-within{outline:3px solid var(--rust);outline-offset:4px}
.app-version{opacity:.7;font-variant-numeric:tabular-nums}
.unit-tabs{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px;margin:0 0 14px}.unit-tab{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:1px;min-height:48px;padding:7px 14px;border:1px solid var(--line);border-radius:10px;background:var(--surface);text-align:start}.unit-tab b{font-size:13px}.unit-tab small{font-size:11px;color:var(--muted)}.unit-tab.selected{border-color:var(--green);background:var(--sage);box-shadow:0 0 0 1px var(--green)}.unit-tab:hover{background:var(--sage)}
.verb-tense{display:inline-block;margin:0 0 10px;padding:3px 10px;border-radius:999px;background:var(--sage);font-size:12px}
.reminder-due{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;background:var(--yellow);border-radius:14px;padding:16px 18px;margin-bottom:18px}.reminder-due>svg{flex:0 0 auto;width:26px;height:26px}.reminder-due div{flex:1 1 180px}.reminder-due strong{display:block}.reminder-due p{margin:2px 0 0;font-size:14px}.reminder-due .primary{margin-inline-start:auto}
.rem-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:12px 0}.rem-form label{display:flex;flex-direction:column;gap:6px;font-size:12px}.rem-form input[type=time],.rem-form select{width:100%;min-width:0;border:1px solid #cbd3c3;border-radius:8px;padding:10px;background:var(--bg);color:var(--ink);font:inherit;font-size:14px;min-height:46px}
.rem-form .rem-switch{grid-column:1/-1;flex-direction:row;align-items:center;gap:10px;font-size:15px}.rem-switch input{width:22px;height:22px;accent-color:var(--green)}
.rem-next{font-size:14px;background:var(--sage);border-radius:8px;padding:8px 12px}.rem-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:4px 0 8px}

/* Radial mind map: درس in the centre, four branches clockwise. */
.branch-panel{margin-top:14px;border-top:3px solid var(--b);padding-top:14px}
.branch-panel h2{font-size:19px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.branch-panel h2 span{background:var(--b);color:#fff;border-radius:50%;width:26px;height:26px;display:inline-grid;place-items:center;font-size:13px}
.branch-panel h2 small{font-size:13px;color:var(--muted);font-weight:400}
.branch-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;margin-top:12px}
.branch-list .map-node{min-height:64px}
.branch-empty{color:var(--muted);font-size:14px}

/* Which edition this is (class / book), with a link to the other one. */
.dialogue{margin-top:18px;padding:14px;border:1px solid var(--line);border-radius:16px;background:var(--paper,transparent)}
.dialogue-head{display:flex;align-items:center;gap:8px;font-size:14px}
.dialogue-head .icon{width:16px;height:16px;color:var(--green)}
.dialogue-head span{margin-inline-start:auto;font-size:12px;color:var(--muted)}
.dialogue-who{margin:6px 0 0;font-size:13px;color:var(--muted)}
.dialogue-scene{margin:8px 0 10px;line-height:1.8}
.dialogue-ask{margin-top:10px;border-top:1px dashed var(--line);padding-top:10px}
.dialogue-ask summary{cursor:pointer;font-weight:600}
.dialogue-ask p{margin:8px 0 0;line-height:1.8}

/* Mind map: style switcher and the three styles */
.mm-styles{display:inline-flex;gap:4px;padding:4px;margin:14px 0 4px;border:1px solid var(--line);border-radius:999px;background:var(--surface)}
.mm-styles button{border:0;background:none;font:inherit;font-size:13px;color:var(--muted);padding:6px 14px;border-radius:999px;cursor:pointer}
.mm-styles button.on{background:var(--green);color:#fffdf5}
.mm-wrap{margin:10px 0 0;overflow:hidden}
.mm-svg{display:block;max-width:100%;height:auto;font-family:'DM Sans',sans-serif}
html[lang=fa] .mm-svg{font-family:Vazirmatn,sans-serif}
.mm-taper{fill:var(--b);opacity:.9}
.mm-twig{fill:none;stroke:var(--b);stroke-width:2;stroke-linecap:round;opacity:.75}
.mm-dot{fill:var(--surface);stroke:var(--b);stroke-width:2}
.mm-hub{fill:var(--b)}
.mm-center rect{fill:var(--green)}
.mm-kicker{fill:#cfdbc8;letter-spacing:1.5px}
.mm-leaf{fill:var(--ink)}
.mm-node{cursor:pointer;outline:none}
.mm-hit{fill:transparent}
.mm-node:hover .mm-hit,.mm-node:focus-visible .mm-hit{fill:color-mix(in srgb,var(--b) 12%,transparent)}
.mm-node:focus-visible .mm-hit{stroke:var(--b);stroke-width:1.5}
.mm-node.selected .mm-hit{fill:color-mix(in srgb,var(--b) 18%,transparent)}
.mm-node.selected .mm-leaf{fill:color-mix(in srgb,var(--b) 70%,#000)}
.mm-tree{padding:4px 0}
.mm-tree-root{display:inline-flex;flex-direction:column;background:var(--green);color:#fffdf5;border-radius:18px;padding:12px 20px}
.mm-tree-root small{font-size:10px;letter-spacing:1.5px;opacity:.8}
.mm-tree-root strong{font-size:20px;line-height:1.3}
.mm-tree-branches{margin-inline-start:26px;padding-top:12px}
.mm-tree-branch{position:relative;padding-inline-start:28px;padding-bottom:14px}
.mm-tree-branch::before{content:'';position:absolute;inset-inline-start:0;top:-12px;height:42px;width:22px;border-inline-start:3px solid var(--b);border-bottom:3px solid var(--b);border-end-start-radius:18px}
.mm-tree-branch::after{content:'';position:absolute;inset-inline-start:0;top:0;bottom:0;border-inline-start:3px solid #d8dccf}
.mm-tree-branch:last-child::after{display:none}
.mm-tree-hub{display:inline-flex;flex-direction:column;background:var(--b);color:#fff;border-radius:14px;padding:8px 16px;position:relative;z-index:1}
.mm-tree-hub strong{font-size:16px}
.mm-tree-hub small{font-size:12px;opacity:.85}
.mm-tree-items{position:relative;display:grid;gap:8px;margin-inline-start:22px;padding-top:8px}
.mm-tree-item{position:relative;text-align:start;font:inherit;font-size:14px;line-height:1.45;color:var(--ink);background:var(--surface);border:1.5px solid color-mix(in srgb,var(--b) 45%,transparent);border-radius:12px;padding:8px 12px;margin-inline-start:20px;cursor:pointer}
.mm-tree-item::before{content:'';position:absolute;inset-inline-start:-22px;top:-9px;height:calc(50% + 9px);width:18px;border-inline-start:2px solid color-mix(in srgb,var(--b) 55%,transparent);border-bottom:2px solid color-mix(in srgb,var(--b) 55%,transparent);border-end-start-radius:12px}
.mm-tree-item:not(:last-child)::after{content:'';position:absolute;inset-inline-start:-22px;top:50%;bottom:-9px;border-inline-start:2px solid color-mix(in srgb,var(--b) 55%,transparent)}
.mm-tree-item:hover{background:color-mix(in srgb,var(--b) 8%,var(--surface))}
.mm-tree-item.selected{background:color-mix(in srgb,var(--b) 16%,var(--surface));border-color:var(--b);font-weight:700}
@media(min-width:760px){.mm-tree-branch{display:grid;grid-template-columns:minmax(150px,200px) 1fr;gap:0 10px;align-items:start}.mm-tree-items{padding-top:0;grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}.mm-tree-item::before,.mm-tree-item::after{display:none}.mm-tree-item{margin-inline-start:0}.mm-tree-items::before{content:'';position:absolute;inset-inline-start:-12px;top:20px;width:12px;border-top:2px solid color-mix(in srgb,var(--b) 55%,transparent)}}
.mm-trunk{fill:var(--green);opacity:.85}

/* Mind map, hand-drawn notebook style: cream lined paper, folder-tab headers, checkbox lists, a cloud, doodles */
.nb-page{--ink:#2f3a34;--paper:#fbf3df;position:relative;container-type:inline-size;font-family:'Patrick Hand','DM Sans',sans-serif;color:var(--ink);background-color:var(--paper);background-image:repeating-linear-gradient(to bottom,transparent 0 29px,rgba(94,128,168,.16) 29px 30px);border-radius:18px;padding:22px 16px 26px;padding-inline-start:40px;box-shadow:0 1px 0 #eadfc3,0 14px 26px -18px rgba(90,64,20,.45);overflow:hidden}
.nb-page::before{content:'';position:absolute;top:0;bottom:0;inset-inline-start:28px;border-inline-start:1.5px solid rgba(214,110,120,.35)}
html[lang=fa] .nb-page{font-family:Vazirmatn,sans-serif}
.nb-page [lang=it]{font-family:'Patrick Hand','DM Sans',sans-serif}
.nb-decor span{position:absolute;width:20px;height:20px;opacity:.8}
.nb-ico{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;overflow:visible}
.nb-decor .nb-heart .nb-ico{fill:currentColor;fill-opacity:.35}
.nb-title{position:relative;display:flex;align-items:center;justify-content:center;gap:10px;font-size:20px;letter-spacing:4px;color:#4f8fb5;font-family:'Patrick Hand',sans-serif}
.nb-rule{width:44px;height:4px;border-radius:4px;background:#4f8fb5;opacity:.75}
.nb-grid{position:relative;display:grid;gap:30px;margin-top:6px}
.nb-center{position:relative;display:flex;flex-direction:column;align-items:center;padding-top:6px}
.nb-rays{width:150px;height:40px;margin-bottom:-14px}.nb-rays path{stroke:#e3a21a;stroke-width:5;stroke-linecap:round}
.nb-cloud{width:min(100%,290px);height:150px}
.nb-cloud path{fill:#fffdf6;stroke:var(--ink);stroke-width:2.4;stroke-linejoin:round}
.nb-cloud path.nb-cloud-shadow{fill:#a9d0ea;stroke:none}
.nb-center-text{position:absolute;top:58%;left:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;text-align:center;width:min(70%,200px)}
.nb-center-text small{font:600 10px 'DM Sans',sans-serif;letter-spacing:2px;color:#8a8270}
.nb-center-text strong{font:400 27px/1.05 'Patrick Hand',sans-serif;color:#254e43}
.nb-bulb{position:absolute;width:30px;height:30px;inset-inline-end:calc(50% - 150px);top:34px;color:#e3a21a}
.nb-sec{position:relative;padding-top:16px}
.nb-head{position:relative;display:flex;align-items:center;background:#fffdf6;border:2px solid var(--ink);border-radius:3px 10px 3px 3px;padding:6px 14px 15px;box-shadow:6px 6px 0 color-mix(in srgb,var(--b) 50%,transparent)}
.nb-head h3{margin:0;font-size:23px;font-weight:400;line-height:1.2}
html[lang=fa] .nb-head h3{font-family:Lalezar,Vazirmatn,sans-serif;font-size:21px}
.nb-tab{position:absolute;top:-14px;inset-inline-start:-2px;width:50px;height:14px;border:2px solid var(--ink);border-bottom:0;border-radius:6px 6px 0 0;background:#fffdf6;display:flex;align-items:center;gap:4px;padding-inline-start:7px}
.nb-tab i{width:4px;height:4px;border-radius:50%;background:var(--ink)}
.nb-hatch{position:absolute;left:0;right:0;bottom:0;height:7px;border-top:2px solid var(--ink);background:repeating-linear-gradient(-45deg,var(--ink) 0 1.5px,transparent 1.5px 5px)}
.nb-doodle{position:absolute;top:-30px;inset-inline-end:14px;width:32px;height:32px;background:var(--paper);border-radius:50%;padding:3px}
.nb-sub{margin:10px 6px 2px;font-size:15px;color:#8a8270}
html[lang=fa] .nb-sub{font-size:13px}
.nb-sec ul{list-style:none;margin:2px 0 0;padding:0}
.nb-item{display:flex;align-items:flex-start;gap:10px;width:100%;text-align:start;background:none;border:0;border-radius:10px;padding:5px 6px;font:inherit;color:inherit;cursor:pointer}
.nb-item:hover{background:color-mix(in srgb,var(--b) 10%,transparent)}
.nb-item:focus-visible{outline:2px dashed var(--b);outline-offset:1px}
.nb-item.selected{background:color-mix(in srgb,var(--b) 20%,transparent)}
.nb-box{flex:none;width:20px;height:20px;margin-top:3px}
.nb-box path{fill:#fffdf6;stroke:var(--ink);stroke-width:1.8;stroke-linejoin:round}
.nb-box path.nb-tick{fill:none;stroke-width:2.8;stroke-linecap:round}
.nb-text{display:flex;flex-direction:column;min-width:0}
.nb-label{font-size:19px;line-height:1.25}
html[lang=fa] .nb-label{font-size:15px;line-height:1.7;font-weight:500}
.nb-it{align-self:flex-start;font-size:15px;line-height:1.3;color:#7d7564}
.nb-item.done .nb-label{color:#6a756f}
@container (min-width:820px){.nb-grid{grid-template-columns:1fr minmax(240px,300px) 1fr;grid-template-areas:'what center why' 'how center practice';align-items:start;gap:44px 54px}.nb-center{grid-area:center;align-self:center}.nb-what{grid-area:what}.nb-why{grid-area:why}.nb-how{grid-area:how}.nb-practice{grid-area:practice}}

.nb-links{position:absolute;inset:0;pointer-events:none;overflow:visible}
.nb-link{fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.nb-link-sketch{stroke-width:1.1;opacity:.4}
.nb-decor,.nb-title,.nb-grid{position:relative;z-index:1}
.nb-decor{position:absolute;inset:0}
.my-decks{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:18px 20px;margin-bottom:20px}.my-decks .small-note{margin:0}
.deck-list{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:9px}
.deck-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border:1px solid var(--line);background:var(--bg);border-radius:10px;padding:10px 12px}
.deck-info{min-width:0;flex:1 1 180px}.deck-info strong{display:block;font-size:14px;font-weight:600;overflow-wrap:anywhere}.deck-info small{display:block;font-size:11.5px;color:var(--muted);margin-top:3px;line-height:1.5}
.deck-actions{display:flex;align-items:center;gap:6px}.deck-actions .primary{min-height:36px;padding:6px 14px;gap:6px;font-size:13px}.deck-actions .primary .icon{width:16px;height:16px}
.deck-delete{width:36px;height:36px;border-radius:50%;border:1px solid transparent;background:none;color:var(--muted);display:flex;align-items:center;justify-content:center}.deck-delete:hover{border-color:var(--line);color:var(--ink,inherit)}.deck-delete .icon{width:16px;height:16px}
.deck-builder{display:grid;gap:14px;margin-top:12px;border:1px dashed var(--green);border-radius:12px;padding:14px;background:var(--bg)}
.deck-builder fieldset{border:0;margin:0;padding:0;min-width:0}.deck-builder legend{font-size:13px;font-weight:600;margin-bottom:7px;padding:0}
.deck-field{display:grid;gap:6px;font-size:13px;font-weight:600}.deck-field input{font:inherit;font-weight:400;font-size:15px;border:1px solid var(--line);border-radius:9px;padding:9px 11px;background:var(--surface);color:inherit}
.deck-opts{display:flex;flex-wrap:wrap;gap:7px}.deck-opt{border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:7px 13px;font-size:13px;min-height:36px}.deck-opt.selected{border-color:var(--green);background:var(--sage);box-shadow:0 0 0 1px var(--green);font-weight:600}
.deck-checks{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:7px}
.deck-check{display:flex;align-items:center;gap:9px;border:1px solid var(--line);background:var(--surface);border-radius:9px;padding:9px 11px;font-size:13.5px;cursor:pointer;min-height:42px}.deck-check input{width:18px;height:18px;accent-color:var(--green);flex-shrink:0;margin:0}.deck-check:has(input:checked){border-color:var(--green);background:var(--sage)}
.deck-count{font-size:13px;font-weight:600;margin:0}.deck-builder .small-note{margin:-6px 0 0}
.deck-form-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.verb-flash .conjugation{margin-top:10px;text-align:start}.verb-flash .verb-meaning{margin:4px 0 0}
.deck-actions .primary b{font-weight:700}.deck-actions .primary span{font-weight:500}

.tables-entry{margin-top:10px}
.tbl-index{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 18px}.tbl-index a{border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:6px 13px;font-size:13px;color:inherit;text-decoration:none}.tbl-index a:hover{background:var(--sage)}
.tbl{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:16px 16px 12px;margin:0 0 18px;scroll-margin-top:16px}.focus-lesson .tbl{margin:18px 0;background:var(--bg)}
.tbl h3{display:flex;align-items:center;gap:8px;font-size:16px;margin:0 0 12px}.tbl h3 .icon{width:18px;height:18px;color:var(--green)}.tbl h4{font-size:13px;color:var(--muted);margin:14px 0 8px;font-weight:600}
.tbl-grid{direction:ltr;display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:7px}
.tbl-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-height:84px;padding:8px 4px;border:1px solid var(--line);background:var(--surface);border-radius:10px;text-align:center;cursor:pointer;color:inherit}.tbl-tile:hover{background:var(--sage);border-color:var(--green)}.tbl-tile:active{transform:scale(.97)}
.tbl-tile b{font:600 22px/1.15 Georgia,serif;color:var(--green)}.tbl-tile .tbl-it{font-size:14px;font-weight:600;line-height:1.3;overflow-wrap:anywhere}.tbl-tile small{font-size:11.5px;color:var(--muted);line-height:1.3}
.tbl-grandi .tbl-grid{grid-template-columns:repeat(auto-fill,minmax(132px,1fr))}.tbl-grandi .tbl-tile b{font-size:17px}
.tbl-note{font-size:12.5px;color:var(--muted);margin:12px 2px 0;line-height:1.7}
@media(max-width:480px){.tbl{padding:13px 11px 10px}.tbl-grid{grid-template-columns:repeat(auto-fill,minmax(76px,1fr));gap:6px}.tbl-tile{min-height:76px}.tbl-tile b{font-size:19px}.tbl-tile .tbl-it{font-size:13px}.tbl-grandi .tbl-grid{grid-template-columns:repeat(auto-fill,minmax(118px,1fr))}}
