@import url('../recorded-audio.css');
:root{--paper:#f5f2e9;--card:#fffdf7;--ink:#223b31;--muted:#687569;--green:#305442;--line:#dedfd2;--accent:#c18457;--sage:#e9eddf;--danger:#9c4134;--radius:24px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,"PingFang SC",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}a{color:inherit;text-underline-offset:4px}button,a{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #b97942;outline-offset:4px}button{border:0}h1,h2,h3,p{margin-top:0}h1,h2{letter-spacing:-.045em;font-weight:500}h1{font-size:clamp(2.6rem,5.8vw,5rem);line-height:1.08;margin-bottom:24px}h2{font-size:clamp(1.8rem,3.4vw,2.8rem);line-height:1.15}h3{font-size:1.12rem;line-height:1.45}p{line-height:1.75}small,.muted{color:var(--muted)}small{line-height:1.6}img{max-width:100%;display:block}input,textarea,select{color:var(--ink);background:var(--card);border:1px solid #c9cdbf;border-radius:12px;padding:13px;width:100%}textarea{min-height:110px;resize:vertical}label{display:block;line-height:1.6;margin-bottom:8px}label input[type=checkbox]{width:auto;margin-right:8px}hr{border:0;border-top:1px solid var(--line);margin:26px 0}#header{display:flex;align-items:center;justify-content:space-between;gap:20px;max-width:1240px;margin:auto;padding:24px 32px}.brand{text-decoration:none;display:flex;align-items:center;gap:10px}.seal{display:grid;place-items:center;width:43px;height:43px;background:var(--green);color:#fbf4df;border-radius:13px;font-family:serif;font-size:28px}.brand strong{font-size:22px;letter-spacing:-1px}.brand small{font-size:9px;letter-spacing:2px;display:block}.nav{display:flex;gap:5px;padding:5px;background:#e9eade;border-radius:40px}.nav a{padding:10px 18px;text-decoration:none;font-size:14px;border-radius:25px;color:#596558}.nav a.active{background:var(--card);color:var(--green);box-shadow:0 2px 8px #3047350b}.header-tools{display:flex;align-items:center;gap:14px}.language{width:83px;border:0;background:transparent;padding:6px}.text-link,.text-button{background:none;border:0;padding:0;color:var(--green);font-size:14px;text-decoration:underline;text-underline-offset:4px}.skip{position:absolute;top:-100px;background:var(--card);padding:12px;z-index:100}.skip:focus{top:10px}#environment{max-width:1176px;margin:0 auto}.environment{padding:9px 16px;background:#eee6d3;border:1px solid #e3d5b8;border-radius:10px;font-size:12px;line-height:1.5;display:flex;justify-content:space-between;gap:15px}.environment span{max-width:900px}#main{max-width:1176px;margin:0 auto;padding:48px 0 80px;min-height:70vh}#main:focus{outline:none}.eyebrow{font-size:11px;font-weight:650;text-transform:uppercase;letter-spacing:2.6px;color:#667758;margin-bottom:20px}.hero{display:grid;grid-template-columns:1.08fr 1fr;gap:48px;align-items:center;padding:20px 0 70px}.hero-copy .lead{max-width:500px;color:var(--muted);font-size:17px;margin-bottom:28px}.hero h1 em{font-family:Georgia,serif;font-weight:400;color:#7b8c64}.hero-visual{position:relative;padding-bottom:42px}.hero-visual>img{width:100%;height:490px;object-fit:cover;border-radius:160px 160px 24px 24px}.scene-caption{position:absolute;left:-28px;bottom:12px;background:var(--card);border:1px solid var(--line);border-radius:18px;padding:20px 25px;box-shadow:0 14px 36px #263c2210;min-width:270px}.scene-caption .hanzi{font-family:"Songti SC",Georgia,serif;font-size:29px;margin-bottom:5px}.scene-stamp{position:absolute;top:30px;right:25px;writing-mode:vertical-rl;letter-spacing:6px;color:#fff9e8;font-family:serif;font-size:20px;text-shadow:0 2px 10px #0006}.button{display:inline-flex;align-items:center;justify-content:center;gap:12px;background:var(--green);color:#fffdf5;padding:15px 23px;border-radius:30px;text-decoration:none;font-size:14px;font-weight:550;border:1px solid transparent;min-height:47px}.button:hover{background:#1c3f2c}.button.secondary{background:transparent;color:var(--green);border-color:#bec7b6}.button.secondary:hover{background:var(--sage)}.button.light{background:var(--card);color:var(--green)}.button.small{padding:10px 17px;min-height:40px;font-size:13px}.actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.under-cta{font-size:12px;color:var(--muted);margin:15px 0 0}.promise-strip{display:flex;justify-content:space-between;gap:24px;padding:24px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:13px;color:var(--muted)}.promise-strip strong{display:block;color:var(--ink);font-size:18px;font-weight:500;margin-bottom:3px}.section{margin-top:70px}.section-top{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:28px}.section-top h2{margin-bottom:8px}.section-top p{margin-bottom:0;max-width:480px;color:var(--muted);font-size:14px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.chapter-card{border:1px solid var(--line);border-radius:var(--radius);background:var(--card);overflow:hidden}.chapter-card .image{height:174px;overflow:hidden;position:relative}.chapter-card .image img{width:100%;height:100%;object-fit:cover;transition:transform .4s}.chapter-card:hover img{transform:scale(1.025)}.chapter-card .image .chapter-number{position:absolute;left:16px;top:16px;padding:7px 10px;background:#fffaf0e8;border-radius:20px;font-size:10px;letter-spacing:1px}.chapter-card .inside{padding:22px}.chapter-card h3{margin:0 0 8px;font-weight:550}.chapter-card p{font-size:13px;color:var(--muted);margin-bottom:18px}.card-bottom{display:flex;justify-content:space-between;align-items:center;font-size:12px}.tag{display:inline-block;background:var(--sage);border-radius:7px;padding:5px 9px;font-size:11px;color:#526844}.tag.draft{background:#f2e9d7;color:#856439}.tag.neutral{background:#eee;color:#646464}.steps-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:28px}.step-card{border-top:1px solid #c7cebc;padding-top:20px}.step-card .number{font-family:Georgia,serif;color:#a2ae93;font-size:34px}.step-card h3{margin:14px 0 8px}.step-card p{font-size:14px;color:var(--muted)}.split{display:grid;grid-template-columns:1fr 1fr;gap:55px;align-items:center}.feedback-demo,.panel{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:30px}.feedback-demo .quote{font-size:22px;border-bottom:1px solid var(--line);padding:16px 0}.feedback-demo .good{color:#42774d;font-size:14px}.feedback-demo .better{background:var(--sage);padding:15px;border-radius:12px;font-size:14px}.pricing{background:var(--green);color:#f9f5e9;padding:44px;border-radius:30px;display:grid;grid-template-columns:1fr 1fr;gap:60px}.pricing .eyebrow,.pricing .muted,.pricing small{color:#d5dec8}.price{font-size:55px;font-weight:450;letter-spacing:-2px}.price small{font-size:14px;letter-spacing:0}.pricing ul{padding-left:20px;line-height:2.1;font-size:14px}.pricing .offer{border-left:1px solid #66806e;padding-left:50px}.faq{max-width:850px}.faq details{border-bottom:1px solid var(--line);padding:19px 0}.faq summary{cursor:pointer;font-size:16px}.faq p{font-size:14px;color:var(--muted);margin:15px 0 0}.page-heading{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:32px}.page-heading h1{font-size:44px;margin:0 0 10px}.page-heading p{color:var(--muted);margin:0}.today-card{display:grid;grid-template-columns:1.1fr 1fr;border-radius:30px;overflow:hidden;background:var(--green);color:#fffaf0}.today-card .inside{padding:44px}.today-card h2{font-size:36px}.today-card p{color:#d9e2d1}.today-card img{height:100%;min-height:330px;width:100%;object-fit:cover}.today-card .eyebrow{color:#d0d9c5}.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:25px}.stat{padding:25px;background:var(--card);border:1px solid var(--line);border-radius:20px}.stat strong{font-size:30px;font-weight:500;display:block;margin-bottom:5px}.stat small{display:block}.notice{border:1px solid #d9c8a5;background:#f7f0df;color:#715b34;padding:16px 20px;border-radius:14px;font-size:13px;line-height:1.7}.notice.info{background:#eaf0e4;border-color:#cdd9c2;color:#4b6545}.course-heading{display:flex;align-items:center;gap:20px;margin:40px 0 18px}.glyph{display:grid;place-items:center;width:60px;height:60px;border-radius:16px;background:#e4e9d9;font-family:serif;font-size:32px;flex-shrink:0}.course-heading h2{font-size:26px;margin:0 0 6px}.course-heading p{font-size:13px;margin:0;color:var(--muted)}.lesson-list{display:grid;gap:10px}.lesson-row{display:flex;gap:20px;align-items:center;justify-content:space-between;text-decoration:none;padding:18px 22px;background:var(--card);border:1px solid var(--line);border-radius:16px}.lesson-row:hover{border-color:#91a580}.lesson-row .day{width:43px;color:#748168;font-size:12px;flex-shrink:0}.lesson-row .lesson-name{flex:1}.lesson-row strong{font-size:15px;font-weight:550}.lesson-row small{display:block;font-size:12px;margin-top:5px}.lesson-row.review{background:#e9edde}.lesson-status{color:var(--muted);font-size:12px}.lesson-layout{max-width:860px;margin:auto}.lesson-top{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.lesson-top small{font-size:12px}.stepper{display:flex;gap:7px;margin:20px 0 32px}.stepper span{height:4px;flex:1;background:#dce0d2;border-radius:5px}.stepper span.active{background:var(--green)}.lesson-panel{padding:36px;background:var(--card);border:1px solid var(--line);border-radius:25px}.lesson-panel h1{font-size:32px;line-height:1.25}.lesson-panel .scene-image{height:260px;width:100%;object-fit:cover;border-radius:16px;margin-bottom:25px}.lesson-panel h2{font-size:26px;letter-spacing:-.02em}.lesson-panel .big-hanzi{font-family:"Songti SC",serif;font-size:34px;line-height:1.7;margin:20px 0 10px}.pinyin{color:#7a805e;font-size:15px;letter-spacing:.5px}.vocab-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:20px 0}.vocab{padding:18px;border:1px solid var(--line);border-radius:14px}.vocab strong{display:block;font-family:serif;font-size:25px;font-weight:500;margin-bottom:8px}.vocab small{display:block}.help{margin:15px 0;color:var(--muted);font-size:13px}.help summary{cursor:pointer}.help p{margin:12px 0}.lesson-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--line);padding-top:25px;margin-top:30px}.audio-list{display:flex;gap:12px;flex-wrap:wrap;margin:25px 0}.audio-button{background:#e8efde;color:var(--green);border:1px solid #ccdac0;border-radius:50px;padding:16px 24px;display:inline-flex;gap:12px;align-items:center}.audio-button[aria-pressed=true]{background:var(--green);color:white}.options{display:grid;gap:10px;margin:24px 0}.option{text-align:left;background:#f8f8f0;border:1px solid #dce0d2;border-radius:14px;padding:18px;display:flex;gap:16px;font-size:18px}.option:hover{border-color:var(--green)}.option.selected{background:#edf2e2;border-color:var(--green)}.option .letter{font-family:inherit;font-size:12px;width:24px;height:24px;border:1px solid #c4cdbc;border-radius:50%;display:grid;place-items:center}.result{padding:18px;border-radius:14px;background:#e9f0e0;line-height:1.7;font-size:14px}.result.incorrect{background:#f9ecde}.material{padding:24px;background:var(--sage);border-radius:15px;font-size:23px;line-height:1.9}.criteria{padding-left:20px;line-height:2;font-size:14px}.record-box{padding:24px;text-align:center;background:#f1f2e8;border-radius:18px;margin:24px 0}.record-button{background:var(--green);color:white;border:0;border-radius:50%;height:72px;width:72px;font-size:26px;margin-bottom:12px}.record-button.recording{background:#9e4e41;animation:pulse 1.2s infinite}.record-box audio{max-width:100%;margin:12px 0}.record-box p{margin:5px 0;font-size:13px}.transcript{margin:20px 0}.feedback{margin:22px 0;padding:24px;background:#eaf0e2;border-radius:18px}.feedback h3{margin-bottom:14px}.feedback ul{padding-left:20px;line-height:1.9;font-size:14px}.feedback .alternative{padding:14px;background:#fffdf6;border-radius:12px;font-size:21px;line-height:1.7}.chat{display:flex;flex-direction:column;gap:16px;margin:24px 0}.bubble{padding:18px 22px;border-radius:18px;max-width:85%;line-height:1.7;background:#eef1e4;align-self:flex-start}.bubble.user{align-self:flex-end;background:var(--green);color:white}.bubble small{display:block;color:inherit;opacity:.75;font-size:12px}.chat-form{display:flex;gap:12px}.chat-form input{flex:1;min-width:0}.progress-track{height:7px;background:#e6e9dc;border-radius:5px;overflow:hidden;margin:16px 0}.progress-track span{display:block;height:100%;background:var(--green)}.ability{padding:25px}.ability h3{margin-bottom:8px}.ability .evidence{font-size:12px;color:var(--muted);line-height:1.9}.narrow{max-width:700px;margin:auto}.account-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.form-stack{display:grid;gap:15px}.form-stack label{font-size:14px}.empty{padding:40px;text-align:center;border:1px dashed #bdc7b1;border-radius:20px}.error{color:var(--danger);font-size:13px;line-height:1.6}.spinner{width:18px;height:18px;border:2px solid #bccab0;border-top-color:var(--green);border-radius:50%;animation:spin .8s linear infinite;display:inline-block}.loading{padding:80px;text-align:center}.loading p{font-size:14px;margin-top:15px}#footer{max-width:1176px;margin:auto;padding:28px 0 35px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:20px;color:var(--muted);font-size:12px;line-height:1.8}.footer-links{display:flex;gap:20px;flex-wrap:wrap}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#203b2f;color:white;padding:15px 24px;border-radius:14px;z-index:30;box-shadow:0 5px 25px #0003;max-width:calc(100% - 30px);width:max-content;line-height:1.5;font-size:14px}dialog{border:1px solid var(--line);border-radius:24px;background:var(--card);color:var(--ink);padding:36px;width:min(560px,calc(100% - 30px));max-height:85vh}dialog::backdrop{background:#193c2c55;backdrop-filter:blur(3px)}.close{position:absolute;top:12px;right:15px;background:transparent;color:var(--green);font-size:26px;width:32px;height:32px}dialog h2{font-size:26px}dialog p{font-size:14px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:13px}th,td{padding:13px 10px;text-align:left;border-bottom:1px solid var(--line)}.admin-review{display:grid;grid-template-columns:1fr auto;gap:15px;border-bottom:1px solid var(--line);padding:15px 0}.admin-review small{display:block}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{box-shadow:0 0 0 10px #9e4e4115}}@media(max-width:1220px){#main,#environment,#footer{margin-left:28px;margin-right:28px}#header{padding-left:28px;padding-right:28px}.hero{gap:35px}.scene-caption{left:-10px}}@media(max-width:800px){.hero{grid-template-columns:1fr 1fr;gap:25px}.hero-visual>img{height:380px}.scene-caption{min-width:210px;padding:15px;left:-8px}.scene-caption .hanzi{font-size:23px}.cards{grid-template-columns:repeat(2,1fr)}.steps-grid{grid-template-columns:repeat(2,1fr)}.split{gap:25px}.pricing{padding:30px;gap:30px}.pricing .offer{padding-left:25px}.nav a{padding:9px 12px}.header-tools{gap:7px}.brand small{display:none}.today-card .inside{padding:28px}.today-card h2{font-size:29px}.account-grid{grid-template-columns:1fr}}
@media(max-width:600px){#header{padding:17px 20px 76px;position:relative;gap:12px}.brand strong{font-size:21px}.seal{width:37px;height:37px;font-size:25px}.nav{position:absolute;left:20px;right:20px;bottom:15px;justify-content:space-between}.nav a{flex:1;text-align:center;padding:10px 6px;font-size:13px}.header-tools{margin-left:auto;gap:12px}.language{width:72px;font-size:13px}.header-tools>a{font-size:12px}#main,#environment,#footer{margin-left:20px;margin-right:20px}#main{padding-top:30px;padding-bottom:50px}.environment{font-size:11px;display:block}.environment a{display:inline-block;margin-top:3px}.hero{grid-template-columns:1fr;padding:8px 0 35px;gap:32px}.hero h1{font-size:44px;max-width:380px}.hero-copy .lead{font-size:15px}.hero-visual{padding-bottom:28px}.hero-visual>img{height:335px;border-radius:100px 100px 20px 20px}.scene-caption{bottom:0;left:12px;min-width:240px}.scene-caption .hanzi{font-size:27px}.promise-strip{gap:12px;padding:20px 0;font-size:11px}.promise-strip strong{font-size:16px}.section{margin-top:45px}.section-top{align-items:start;flex-direction:column;gap:12px}.section-top h2{font-size:29px}.cards{gap:14px}.chapter-card .image{height:125px}.chapter-card .inside{padding:16px}.chapter-card h3{font-size:15px}.chapter-card p{font-size:12px}.chapter-card .tag{font-size:10px}.card-bottom{font-size:11px;gap:5px}.steps-grid{gap:24px}.split{grid-template-columns:1fr;gap:25px}.panel,.feedback-demo{padding:24px}.pricing{grid-template-columns:1fr;padding:27px;gap:10px}.pricing .offer{border-left:0;border-top:1px solid #66806e;padding:25px 0 0}.page-heading{align-items:start;flex-direction:column}.page-heading h1{font-size:36px}.today-card{grid-template-columns:1fr}.today-card img{height:180px;min-height:0;grid-row:1}.today-card .inside{padding:26px}.stat-grid{gap:10px}.stat{padding:18px 12px}.stat strong{font-size:25px}.stat small{font-size:11px}.lesson-row{padding:16px 14px;gap:10px}.lesson-row .day{width:30px;font-size:10px}.lesson-row strong{font-size:14px}.lesson-status{font-size:11px;text-align:right;max-width:60px}.lesson-panel{padding:24px 19px}.lesson-panel h1{font-size:28px}.lesson-panel .scene-image{height:190px}.lesson-panel .big-hanzi{font-size:27px}.vocab-grid{gap:8px}.vocab{padding:14px 9px}.vocab strong{font-size:23px}.vocab small{font-size:11px}.lesson-actions{gap:10px}.lesson-actions .button{padding:13px 17px}.lesson-top{gap:10px}.lesson-top small{max-width:140px;text-align:right}.material{font-size:20px;padding:18px}.option{padding:15px;font-size:17px}.record-box{padding:20px 14px}.chat-form{flex-wrap:wrap}.chat-form input{flex-basis:100%}.bubble{max-width:92%;padding:15px 18px}.ability{padding:20px}.ability h3{font-size:15px}#footer{flex-direction:column}.footer-links{gap:14px}.admin-review{grid-template-columns:1fr}.button{font-size:13px}.notice{padding:14px;font-size:12px}.lesson-panel .actions{gap:10px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* R36: clear beta offer, compact mode controls and readable narrow layouts. */
.pricing .help,.pricing .muted,.pricing small{color:#e0e8dd}
.pricing .offer .button{background:#f5f2e9;color:#223b31;border:1px solid #f5f2e9}
.pricing .offer .button:hover{background:#fffdf7}
.record-box audio,.lesson-panel audio{max-width:100%;display:block;margin:16px auto}
.record-box label{display:block;font-size:14px;line-height:1.6}
.lesson-panel .actions{flex-wrap:wrap;gap:10px}
.lesson-panel label{line-height:1.6}
.lesson-panel input[type=checkbox]{margin-right:8px;width:18px;height:18px;vertical-align:middle}
@media(max-width:600px){.lesson-panel .actions .button{white-space:normal;min-height:44px}.lesson-panel .big-hanzi{overflow-wrap:anywhere}.lesson-row .lesson-name{min-width:0}.pricing .offer{min-width:0}.pricing .help{font-size:13px}}

/* R37 pilot operations */
.quota{margin:16px 0}.quota p{margin:8px 0}.practice-focus{border-left:4px solid var(--accent,#9a4e30);padding:16px 20px;background:#f7f1e8;margin:20px 0;border-radius:8px}.support-ticket{padding:20px 0;border-top:1px solid #ddd;margin-top:20px;overflow-wrap:anywhere}.support-ticket p{white-space:pre-wrap}.admin-review{overflow-wrap:anywhere}input[readonly]{font-family:monospace;width:100%}.bad{color:#a52c2c}

/* Arabic interface flows right to left; Chinese examples keep reading order. */
html[dir="rtl"] .hero-copy,html[dir="rtl"] .panel,html[dir="rtl"] .page-heading,html[dir="rtl"] .faq{text-align:right}
html[dir="rtl"] .big-hanzi,html[dir="rtl"] .hanzi,html[dir="rtl"] .pinyin,html[dir="rtl"] .quote,html[dir="rtl"] .alternative{direction:ltr;text-align:start}
#language{max-width:145px}input[type="email"],#pilot-code,#code{direction:ltr}

/* R38 declutter: one clear action per step, beginner-first lesson layout. */
.stat-grid.two{grid-template-columns:repeat(2,1fr)}
.lesson-row.next{border-color:var(--green);box-shadow:0 0 0 1px var(--green) inset}
.lesson-row.next .lesson-status{color:var(--green);font-weight:600}
.lesson-row.done .lesson-status{color:#4f7a52}
a.panel.ability{display:block;text-decoration:none}a.panel.ability:hover{border-color:#91a580}
.ability-foot{display:flex;justify-content:space-between;font-size:13px;color:var(--muted)}
.history{margin-top:50px}.history summary{font-size:14px}.history .lesson-list{margin-top:16px}
.lesson-top small{color:var(--muted)}
.lesson-panel .material.task{font-size:17px;line-height:1.7;margin:18px 0}
.phrase-card{padding:24px;background:var(--sage);border-radius:18px;margin:20px 0}
.phrase-card .big-hanzi{margin:0 0 4px}.phrase-card .pinyin{margin:0 0 4px;font-size:17px}.phrase-card p{margin:0 0 6px}
.phrase-card .audio-button{margin-top:12px}
.tones{border-top:1px solid var(--line);padding-top:14px}.tone-list{list-style:none;padding:0;display:grid;gap:6px;margin:10px 0 0}.tone-list b{display:inline-block;min-width:44px;font-size:17px;color:var(--ink);font-weight:500}
.segmented{display:inline-flex;gap:4px;padding:4px;background:#e9eade;border-radius:30px;margin-bottom:6px}
.segmented .button{min-height:38px;padding:8px 16px;font-size:13px}.segmented .button.secondary{border-color:transparent;color:#596558}
.chip{display:inline-block;padding:3px 10px;margin:2px 2px;border-radius:20px;background:#eef1e4;color:var(--ink);font-size:13px}
.question-tabs{display:flex;gap:8px;margin-bottom:6px}
.question-tab{background:transparent;border:1px solid var(--line);border-radius:20px;padding:6px 14px;font-size:12px;color:var(--muted)}
.question-tab[aria-pressed=true]{border-color:var(--green);color:var(--green);font-weight:600}.question-tab.done::after{content:" ✓";color:#4f7a52}
.actions.center{justify-content:center}
.skip-line{text-align:center;margin-top:22px}
.checklist{list-style:none;padding:0;margin:20px 0;display:grid;gap:8px;font-size:15px}.checklist li{color:var(--muted)}.checklist li.ok{color:var(--ink)}.checklist li span{display:inline-block;width:22px;color:#4f7a52}
@media(max-width:600px){.stat-grid.two{grid-template-columns:1fr 1fr;gap:12px}.lesson-panel{padding:24px 20px}.lesson-panel h1{font-size:27px}.vocab-grid{grid-template-columns:repeat(2,1fr)}.lesson-top{flex-wrap:wrap;gap:8px}.lesson-actions .button{flex:1}}
.transcript .button{margin-top:14px}.transcript .help{margin-top:8px}
/* R39 paid release: free vs full plan, paywall and allowance line. */
.plan-free{margin:22px 0;padding:18px 20px;border:1px solid #66806e;border-radius:16px}.plan-free ul{margin:8px 0 0}
.paywall .button{min-width:220px}
.allowance{font-size:13px;color:var(--muted)}.allowance a{color:var(--green)}

/* R40 AI feedback follows the recording; pinyin beside Chinese. */
.heard{margin:12px 0 0}.heard small{display:block;margin-bottom:4px}.heard-text{font-family:"Songti SC",serif;font-size:21px;line-height:1.6}
.record-box .button{margin:6px 0}.record-box .text-button{display:block;margin:8px auto 0}.record-box .help{margin:8px 0}
.model-answer .big-hanzi{font-size:26px;margin:12px 0 4px}.model-answer .pinyin{margin:0 0 4px}
.alternative .pinyin{display:block;margin-top:4px}
.zh-py{display:block;font-size:13px;color:#7a805e;font-weight:400;line-height:1.5;letter-spacing:.3px;margin-top:2px}
.material .zh-py{font-size:14px;margin-top:4px}.button .zh-py{color:inherit;opacity:.8}.bubble small[lang]{margin-top:4px}
html[dir="rtl"] .zh-py,html[dir="rtl"] .heard-text{direction:ltr;text-align:start}

/* R41 meanings, tips and answers for beginners. */
.zh-mean{display:block;font-size:14px;color:var(--ink);opacity:.82;font-weight:400;line-height:1.5;margin-top:2px;font-family:inherit}
.material .zh-mean{font-size:15px;margin-top:6px}.reveal{margin:8px 0 0;font-family:inherit}.reveal p{margin:6px 0 0;font-size:15px;color:var(--ink)}
.option{align-items:flex-start;text-align:start}.option-text{display:block;line-height:1.35}
.answer-source{margin:10px 0 4px;font-size:18px;line-height:1.5}
.tip{background:#f6f1e4;border-radius:14px;padding:14px 18px;margin:18px 0}.tip strong{font-size:13px;color:#7a6a3f}.tip p{margin:4px 0 0;font-size:14px;line-height:1.7}
.button .zh-mean{color:inherit}.bubble small{margin-top:2px}

.zh-line{display:block}html[dir="rtl"] .zh-line{text-align:left}html[dir="rtl"] .zh-mean{text-align:right}
html[dir="rtl"] .material,html[dir="rtl"] .big-hanzi{unicode-bidi:plaintext}

/* R42 Chinese visual theme: xuan paper, ink, cinnabar seal, gold; six hanging scrolls on the first screen. */
:root{--paper:#f3ead8;--card:#fdf8ec;--ink:#241c17;--muted:#75675a;--green:#9c2f20;--line:#e2d4b8;--accent:#b98a3e;--sage:#efe3ca;--zh-brush:"STKaiti","Kaiti SC","KaiTi","BiauKai","Songti SC","SimSun",serif}
body{background-color:var(--paper);background-image:radial-gradient(#8b6f4a12 1px,transparent 1px),linear-gradient(#fff8e626,#fff8e626);background-size:5px 5px,100% 100%}
h1,h2{font-family:Georgia,"Songti SC",serif;letter-spacing:-.02em;font-weight:500}
.seal{background:var(--green);border-radius:6px;color:#fff3dc;font-family:var(--zh-brush)}.brand strong{font-family:var(--zh-brush);letter-spacing:0;font-weight:500}
.nav{background:#e9dcc1}.nav a{color:#65574a}.nav a.active{color:var(--green)}
.eyebrow{color:#8c6a2f}.button:hover{background:#7d2417}.button.secondary{border-color:#c9b48d}.button.secondary:hover{background:#efe3ca}
.hero h1 em,.hero-head h1 em{font-style:normal;color:var(--green)}
.today-card,.pricing{background:#2a211b;background-image:repeating-linear-gradient(0deg,#ffffff06 0 1px,transparent 1px 22px),repeating-linear-gradient(90deg,#ffffff06 0 1px,transparent 1px 22px)}.today-card .eyebrow,.pricing .eyebrow{color:#d8b878}.today-card .button.light{color:var(--green)}.today-card p{color:#ddd0bb}.pricing .offer{border-color:#6b5a48}.pricing .button:hover,.pricing .offer .button:hover{background:#fff}.plan-free{border-color:#6b5a48}
.pricing .offer .button{background:#b98a3e;border-color:#b98a3e;color:#201710}
.tag{background:#efe3ca;color:#7c5c25}.notice.info{background:#f4ead4;border-color:#e0ceaa;color:#6a5535}.material,.phrase-card{background:#f1e6cf}.record-box{background:#f5ecd9}.feedback,.result{background:#f1e7d0}.result.incorrect{background:#f8e3d6}.option{background:#fcf6e8;border-color:#e2d4b8}.option.selected{background:#f4e8cf}.audio-button{background:#f4e8cf;border-color:#dcc9a3}.stepper span{background:#e4d7bc}.segmented{background:#e9dcc1}.segmented .button.secondary{color:#65574a}.glyph{background:#f0e3c9;font-family:var(--zh-brush);color:var(--green)}.chip{background:#f1e6cf}.tip{background:#f6edd8}.zh-py,.pinyin{color:#8a6d3b}.progress-track{background:#e8dcc3}.lesson-row:hover,a.panel.ability:hover{border-color:#b98a3e}.big-hanzi,.hanzi,.heard-text{font-family:var(--zh-brush)}.vocab strong{font-family:var(--zh-brush)}.lesson-row .day{font-family:Georgia,serif;font-size:15px;color:#8c6a2f}
.scroll-hero{padding:8px 0 34px}.hero-head{position:relative;max-width:760px;margin:0 auto 34px;text-align:center}.hero-head h1{font-size:clamp(2.3rem,5vw,4rem);margin-bottom:16px}.hero-head .lead{margin:0 auto 22px;max-width:620px;color:var(--muted);font-size:16px}.hero-head .actions{justify-content:center}.hero-seal{display:inline-grid;place-items:center;width:62px;height:62px;margin-bottom:14px;background:var(--green);color:#fff3dc;border-radius:7px;font-family:var(--zh-brush);font-size:25px;line-height:1;writing-mode:vertical-rl;box-shadow:0 0 0 3px #f3ead8,0 0 0 4px var(--green)}
.scene-scrolls{display:grid;grid-template-columns:repeat(6,1fr);gap:12px}
.scene-scroll{position:relative;display:block;height:430px;overflow:hidden;color:#fff8e8;text-decoration:none;border-top:7px solid #3a2a1c;border-bottom:7px solid #3a2a1c;border-radius:3px;background:#2a211b;box-shadow:0 12px 26px #3a2a1c33;transition:transform .3s}
.scene-scroll:hover{transform:translateY(-6px)}.scene-scroll img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .5s}.scene-scroll:hover img{transform:scale(1.05)}
.scene-scroll::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#1c120b99 0,#1c120b1a 38%,#1c120b00 55%,#1c120bd9 100%)}
.scroll-number{position:absolute;z-index:1;top:12px;left:12px;display:grid;place-items:center;width:30px;height:30px;background:var(--green);border-radius:4px;font-family:var(--zh-brush);font-size:18px;color:#fff3dc}
.scroll-zh{position:absolute;z-index:1;top:12px;right:10px;writing-mode:vertical-rl;font-family:var(--zh-brush);font-size:27px;letter-spacing:5px;text-shadow:0 2px 8px #000a}
.scroll-title{position:absolute;z-index:1;left:12px;right:12px;bottom:14px;font-size:14px;font-weight:600;line-height:1.35}
html[dir="rtl"] .hero-head,html[dir="rtl"] .scroll-title{text-align:center}
@media(max-width:900px){.scene-scrolls{grid-template-columns:repeat(3,1fr)}.scene-scroll{height:300px}}
@media(max-width:600px){.scroll-hero{padding-top:0}.hero-seal{width:50px;height:50px;font-size:20px}.hero-head{margin-bottom:22px}.hero-head .lead{font-size:15px}.scene-scrolls{gap:8px}.scene-scroll{height:196px}.scroll-zh{font-size:19px;letter-spacing:2px;right:6px;top:8px}.scroll-number{width:24px;height:24px;font-size:14px;top:8px;left:8px}.scroll-title{font-size:11px;left:7px;right:7px;bottom:8px}}

.hero-head{margin-bottom:20px}.hero-head h1{font-size:clamp(1.9rem,3.6vw,3rem);margin:0}.hero-head h1 br{display:none}.hero-foot{max-width:720px;margin:24px auto 0;text-align:center}.hero-foot .eyebrow{margin-bottom:10px}.hero-foot .lead{margin:0 auto 18px;color:var(--muted);font-size:16px}.hero-foot .actions{justify-content:center}
.scene-scroll{height:min(46vh,400px);min-height:280px}
@media(max-width:900px){.scene-scroll{height:260px;min-height:0}}
@media(max-width:600px){.hero-head{margin-bottom:12px}.hero-head h1{font-size:25px;line-height:1.2}.scene-scroll{height:172px}.hero-foot{margin-top:16px}.hero-foot .lead{font-size:15px}}

.chapter-tools{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 12px}.tool-card{display:block;padding:14px 18px;background:#2a211b;color:#f7ecd6;border-radius:12px;text-decoration:none}.tool-card:hover{background:#3a2c22}.tool-card strong{display:block;font-size:15px;font-weight:600}.tool-card small{display:block;color:#d8b878;font-size:12px;margin-top:3px}
.picture-image{height:auto!important;max-height:420px;object-fit:contain!important;background:#efe3ca}

.chapter-tools{grid-template-columns:1fr}.lesson-actions .actions{gap:10px;justify-content:flex-end}

.today-card.compact{display:block;margin-top:16px;background:var(--card);background-image:none;border:1px solid var(--line);color:var(--ink)}.today-card.compact img{display:none}.today-card.compact .inside{padding:20px 24px}.today-card.compact h2{font-size:22px;margin-bottom:6px}.today-card.compact p{color:var(--muted);margin-bottom:12px}.today-card.compact .eyebrow{color:#8c6a2f;margin-bottom:8px}.today-card.compact .button.light{background:transparent;border-color:#c9b48d}
.scroll-title small{color:#f3d9a0;font-size:12px;font-weight:400}
@media(max-width:600px){.nav a{padding:10px 2px;font-size:12px}}

.account-grid{grid-template-columns:minmax(0,560px);justify-content:center}.account-settings{max-width:560px;margin-inline:auto}.account-settings>summary{cursor:pointer;font-size:14px;color:var(--muted)}.account-settings .panel{margin-top:14px}.account-more{margin-top:18px}
@media(max-width:600px){.nav a{font-size:13px}}

#day-bar{position:sticky;top:0;z-index:20;background:#2a211b;color:#f7ecd6}.day-bar-inner{display:flex;align-items:center;gap:14px;max-width:1176px;margin:auto;padding:9px 20px;text-decoration:none;color:inherit;font-size:13px}.day-bar-inner strong{white-space:nowrap;font-weight:600}.day-bar-inner small{white-space:nowrap;color:#d8b878;font-size:12px}.day-track{flex:1;height:7px;background:#ffffff26;border-radius:5px;overflow:hidden}.day-track span{display:block;height:100%;background:#d9a441;transition:width .35s}
@media(max-width:600px){.day-bar-inner{gap:8px;padding:8px 14px}.day-bar-inner strong,.day-bar-inner small{font-size:11px}}

.write-task{margin-top:16px;padding:20px 24px;background:var(--card);border:1px solid var(--line);border-radius:20px}.write-task h3{margin:0}.write-chars{display:flex;gap:12px;margin:12px 0}.write-char{position:relative;display:grid;place-items:center;width:84px;height:84px;background:#fffdf6 linear-gradient(#d9a44155,#d9a44155) center/100% 1px no-repeat;border:2px solid #9c2f20;border-radius:6px;text-decoration:none;font-family:var(--zh-brush);font-size:44px;color:var(--ink)}.write-char.done{border-color:#4f7a52;background:#eef3e4}.write-char small{position:absolute;top:2px;right:6px;font-size:14px;color:#4f7a52}
.road-map{margin-top:24px}.road-map .section-top{margin-bottom:12px;align-items:center}.road-map h2{margin:0;font-size:24px}.road-days{display:grid;grid-template-columns:repeat(14,1fr);gap:6px}.road-day{display:grid;place-items:center;aspect-ratio:1;border-radius:50%;font-size:12px;text-decoration:none;background:#e9dcc1;color:#65574a}.road-day.done{background:#4f7a52;color:#fff}.road-day.current{background:var(--green);color:#fff;font-weight:700;box-shadow:0 0 0 3px #f3ead8,0 0 0 5px var(--green)}.road-day.locked{font-size:10px;opacity:.75}
.reward-image{width:100%;max-height:260px;object-fit:cover;border-radius:6px;margin-bottom:14px}.reward-zh{font-family:var(--zh-brush);font-size:30px;margin:0}
@media(max-width:600px){.road-days{grid-template-columns:repeat(7,1fr)}}

.guide-image{width:100%;height:190px;object-fit:cover;border-radius:6px;margin-bottom:14px}.guide h2{font-size:26px;margin-bottom:10px}.guide p{font-size:15px;line-height:1.7}.guide-dots{display:flex;gap:6px;justify-content:center;margin:14px 0 0}.guide-dots span{width:7px;height:7px;border-radius:50%;background:#e2d4b8}.guide-dots span.on{background:var(--green)}.guide .lesson-actions{margin-top:14px;padding-top:14px}.footer-links .text-button{font-size:12px;color:inherit}
.sub-step{margin:0 0 14px;font-size:13px;font-weight:600;color:var(--muted)}
.guide-row{display:flex;align-items:center;gap:10px}.guide-row .option{flex:1;min-width:0}.meaning-toggle{flex:none;min-height:40px;padding:6px 12px;border:1px solid var(--line);border-radius:8px;background:transparent;color:#7c5c25;font-size:13px;white-space:nowrap;cursor:pointer}.meaning-toggle[aria-expanded=true]{background:#efe3ca}
.component-clue{margin:0 0 12px}.component-clue>.guide-row>span{font-size:13px;color:var(--muted)}.component-clue .zh-line{font-size:22px;margin-inline-end:auto}
.meaning-panel{margin:6px 0 10px;padding:12px 14px;border-radius:8px;background:#f1e6cf;line-height:1.5}.meaning-panel p{margin:6px 0 0}.meaning-panel .help{margin-top:6px}
.quiz-built{min-height:56px;font-size:22px}.quiz-chips{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.chip-button{min-height:44px;padding:8px 14px;font-size:20px;border:1px solid var(--line);border-radius:8px;background:#fffaf0;color:var(--ink);cursor:pointer}.chip-button:disabled{opacity:.35}
button.text-link{background:none;border:0;padding:0;font:inherit;cursor:pointer}
.lock{display:inline-block}.lock-shake{animation:lock-shake .45s ease-in-out}
@keyframes lock-shake{0%,100%{transform:rotate(0)}20%{transform:rotate(-16deg)}40%{transform:rotate(14deg)}60%{transform:rotate(-9deg)}80%{transform:rotate(6deg)}}
@media(prefers-reduced-motion:reduce){.lock-shake{animation-duration:.01s}}
.title-row{display:flex;align-items:center;gap:6px}.title-row>span:last-child:not(:first-child){flex:none}
.word-marks{list-style:none;display:flex;flex-wrap:wrap;gap:8px;padding:0;margin:10px 0}.word-marks li{display:flex;flex-direction:column;align-items:center;min-width:56px;padding:8px 10px;border-radius:8px;background:#fffaf0;border:1px solid #d9e3cf}.word-marks li.work{border-color:#9c2f20;background:#f9e8df}.word-marks b{font-size:22px;font-weight:500}.word-marks span,.word-marks small{font-size:12px;color:var(--muted)}
.level-meter{height:8px;width:min(260px,70%);margin:10px auto 0;border-radius:4px;background:#e4d9c3;overflow:hidden}.level-meter span{display:block;height:100%;width:0;background:#9c2f20}
h1,h2,h3{overflow-wrap:break-word}
.chat-turn{margin:20px 0 4px}.chat-help{margin-top:12px}.chat-help .model-answer{margin:10px 0}
