/* Taste desktop refinement. The yellow body and dotted .app backdrop are pinned.
   Keep this layer last; all changes are scoped to the requested desktop workspace. */
@font-face{font-family:'Be Vietnam Pro';src:url('assets/fonts/be-vietnam-pro-400.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:'Be Vietnam Pro';src:url('assets/fonts/be-vietnam-pro-500.ttf') format('truetype');font-style:normal;font-weight:500;font-display:swap}
@font-face{font-family:'Be Vietnam Pro';src:url('assets/fonts/be-vietnam-pro-600.ttf') format('truetype');font-style:normal;font-weight:600;font-display:swap}
@font-face{font-family:'Be Vietnam Pro';src:url('assets/fonts/be-vietnam-pro-700.ttf') format('truetype');font-style:normal;font-weight:700;font-display:swap}
@media(min-width:1100px){
:root{--ink:#213b32;--muted:#58665d;--line:#d9dfd4;--surface:#fcfdf8;--focus:#17634b;--radius:24px;--glass-shadow:0 3px 10px #23392b08;--glass-edge:1px solid #dde2d6;--accent-soft:#f8edb6;--card-selected:#fff0b8;--card-ivory:#fcfdf8;--card-spark:#edf2e8;--card-gloss:none}
body{font-family:'Be Vietnam Pro',sans-serif;font-size:15px;line-height:1.55}
button,input,select,textarea{font-family:inherit}
.app{width:min(1360px,calc(100% - 64px));border-radius:28px;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;margin-bottom:24px}
.header{min-height:76px;height:auto;padding:16px 28px;gap:20px;background:#fcfdf8eb;border-bottom:1px solid var(--line);backdrop-filter:none;flex-wrap:nowrap}
.header>.lesson-heading{border:0;padding-left:0;min-width:0}.header>.brand+.lesson-heading{border-left:1px solid var(--line);padding-left:20px}
.brand{font-size:23px;letter-spacing:-1px}.brand>span{color:#ac7b00}.lesson-heading{gap:18px}.lesson-name{font-size:14px}.lesson-meta{font-size:12px}
.journey{gap:10px;font-size:13px}.journey .dash{width:16px}.journey .circle{width:25px;height:25px;border-color:#adb8a8}.journey [aria-current],.journey .active{color:#234e3b}.journey [aria-current] .circle,.journey .active .circle{background:#f4d966;border-color:#dfc147}
.wallet{padding:7px 12px;box-shadow:none;background:#f8edb6;border:0;border-radius:12px;font-size:13px}.wallet small,.wallet-label{font-size:12px}
.reviewbar{font-size:12px;padding:8px 28px;min-height:42px;gap:12px}.reviewbar>span:has(label){display:flex;align-items:center;gap:12px;flex-wrap:wrap}.reviewbar label{gap:6px}.reviewbar select{max-width:170px}.reviewbar .reset-session-button{border-color:#a5b29f;border-radius:10px;background:#fcfdf8;min-height:32px;padding:5px 12px}
main,.practice-main,.while-main{max-width:1304px;padding:26px 28px 22px}
h1,.practice-title h1,.while-heading h1{font-size:28px;letter-spacing:-.8px;line-height:1.25;font-weight:600}h2{font-weight:600;letter-spacing:-.4px}h3{font-weight:600}
.page-heading,.practice-title,.while-heading{margin-bottom:18px}.page-heading p,.practice-title p,.intro{font-size:14px}.eyebrow,.word-label,.spark-label,.micro,.muted,.lesson-state{color:var(--muted)}.micro{font-size:12px}.footnote{margin:16px 0 0}
.card,.context-card,.learning,.media-panel,.question-card,.results-panel,.source-card,.writing-card,.shadow-workspace,.conversation-card,.feedback-card,.unit-list,.dialog,.studio-stage,.transcript-panel,.source-panel,.scene-caption{background:#fcfdf8;background-image:none;border:1px solid #dce2d5;border-radius:24px;box-shadow:0 3px 10px #23392b06;backdrop-filter:none;-webkit-backdrop-filter:none}
.button,.audio-button{min-height:44px;padding:10px 18px;border-radius:12px;background:#fcfdf8;border-color:#809574;font-size:14px;font-weight:600;box-shadow:none;transition:background .16s ease,border-color .16s ease}
.button.primary,.primary{background:#254e3b;color:#fffef4;border:1px solid #254e3b;box-shadow:none}.button.primary:hover:not(:disabled),.primary:hover:not(:disabled){background:#183f2d;border-color:#183f2d;box-shadow:none}.button.secondary:hover:not(:disabled),.audio-button:hover{background:#edf2e8}.button:disabled{opacity:.48}.text-button,.back-link{font-size:13px;color:#35583e}.button.danger{background:#803e29;border-color:#803e29;color:white}
.field input,.field select,textarea,.answer-input{background:#fcfdf8;border-color:#809574;border-radius:10px;min-height:44px}.field{font-size:12px;gap:6px}input::placeholder,textarea::placeholder{color:#65715f}
.notice,.demo-note,.support-box,.voice-state,.vocab-hint,.feedback-evidence{border-radius:12px;background:#edf2e8;color:var(--muted)}.notice{background:#fbf4d8;border-color:#d8ca92}
body [data-spark-slot],body .spark-welcome [data-spark-slot]{min-height:0;background:#edf2e8;border:1px solid #dbe2d3;box-shadow:none;border-radius:18px;padding:10px 16px;gap:14px;margin:0 0 18px;backdrop-filter:none;-webkit-backdrop-filter:none}
.spark-portrait,.spark-welcome .spark-portrait,.studio-home .spark-portrait{flex:0 0 64px;width:64px}.spark-portrait img,.spark-welcome .spark-portrait img,.studio-home .spark-portrait img{height:64px;filter:none}.spark-portrait:before{display:none}.spark-message{min-width:0}.spark-message p{font-size:13px;margin:2px 0 4px;line-height:1.45}.spark-label{font-size:12px;letter-spacing:0}.spark-tools{gap:14px}.spark-tools button{font-size:12px;min-height:24px;padding:0}.spark-wave{display:none!important}
.spark-welcome{display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:center;margin:0 0 22px}.spark-welcome .page-heading{margin:0}.spark-welcome h1{font-size:30px}.spark-welcome [data-spark-slot]{margin:0}.spark-welcome .eyebrow{margin-bottom:6px}
.filters{grid-template-columns:minmax(220px,1fr) 200px 150px 150px;gap:16px;margin:0 0 12px;padding:16px 18px;border-radius:18px;background:#edf2e8;border:1px solid #dbe2d3;box-shadow:none;background-image:none}.results-heading{font-size:13px;margin-bottom:12px}.lesson-grid{gap:20px}.lesson-card{padding:0;box-shadow:none}.lesson-art{height:166px}.lesson-art img{padding:8px;filter:none}.lesson-art[data-topic]{background:#edf2e8!important}.lesson-art[data-topic="Daily life"]{background:#f3eedf!important}.lesson-art[data-topic="Sport"]{background:#e9eeec!important}.lesson-body{padding:20px}.lesson-body .lesson-meta{min-height:36px;line-height:1.5}.lesson-body h2{font-size:22px;line-height:1.25;margin:12px 0 8px}.lesson-body p{font-size:14px;line-height:1.5;margin:0 0 18px;min-height:42px}.plan-tag{font-size:12px;background:#f7edb6;color:#5f511e;border-radius:6px;margin-top:0;padding:3px 7px}.lesson-body .plan-tag{order:-1;position:absolute;top:14px;left:14px}.lesson-card{position:relative}.lesson-state{font-size:12px;margin-bottom:12px}.resume{padding:16px 20px;background:#e8efdf;border:1px solid #cfdcc4;margin-bottom:18px}.resume h2{font-size:19px;margin:2px 0}.resume p{font-size:13px}.resume .eyebrow{margin:0}
body[data-spark-page='pre'] main{max-width:1120px;padding-top:20px}body[data-spark-page='pre'] section[data-panel]{min-height:0}.preparation-location{margin-bottom:16px}#prep-map>summary{border-radius:10px;background:#edf2e8;border-color:#dce2d5;padding:7px 12px}.prep-popover{background:#fcfdf8;border-color:#dce2d5;border-radius:16px}.panel-heading .intro{margin-bottom:18px}.context-card{grid-template-columns:1fr 240px;min-height:180px}.context-copy{padding:24px}.context-copy h2{font-size:25px}.context-copy p{font-size:14px;max-width:600px}.context-card .illustration{min-height:180px;background-color:#edf2e8}.prediction{margin-top:20px}.prediction legend{font-size:15px}.option{border-radius:12px;min-height:48px;padding:11px 16px;background:#fcfdf8;border-color:#aab59f}.options{gap:8px}.learning{grid-template-columns:270px 1fr;min-height:0}.word-side{padding:26px;background:#edf2e8}.word-side h2{font-size:30px;margin-top:16px}.sentence-side{padding:26px;background:#fcfdf8;background-image:none}.sentence{font-size:23px}.translation,.explain{font-size:13px}.learn-bottom{margin-top:12px}.track{margin:12px 0 22px}#quiz-title{font-size:26px;margin-bottom:20px}.actions{margin-top:20px;padding:16px 0 0;min-height:60px}.finish-heading{min-height:150px}.review-row{border-radius:12px;background:#fcfdf8}.review-row p{font-size:13px}
.while-main{padding-top:20px}.while-heading{margin-bottom:14px}.while-heading h1{font-size:26px;margin-top:3px}.while-main>[data-spark-slot]{padding:6px 14px;margin-bottom:16px}.while-main .spark-portrait{flex-basis:48px;width:48px}.while-main .spark-portrait img{height:48px}.while-main .spark-message{display:grid;grid-template-columns:auto 1fr;align-items:baseline;column-gap:16px}.while-main .spark-message p{margin:0}.while-main .spark-tools{grid-column:1/-1}.while-grid{grid-template-columns:minmax(300px,.78fr) minmax(580px,1.65fr);gap:24px}.source-art,body .source-art{height:192px;min-height:192px;border-radius:20px;background-color:#edf2e8}.source-player{border-radius:24px}.source-controls{padding:16px 18px}.source-label{font-size:12px}.source-disclosure{font-size:12px;line-height:1.5}.question-section-heading{margin-bottom:10px}.question-section-heading h2{font-size:15px}.question-card{padding:10px 14px!important;border-radius:16px!important;margin-bottom:8px;box-shadow:none}.q-meta{margin-bottom:4px;gap:8px}.q-index{width:20px;height:20px;font-size:12px}.question-card h3{font-size:14px;line-height:1.35;margin-bottom:7px}.answer-set{gap:6px;grid-template-columns:1fr 1fr}body .while-answer{padding:6px 8px;min-height:34px;font-size:13px;line-height:1.4;border-radius:8px;border-color:#a7b19c;background:#fcfdf8}.while-answer input{margin-top:2px;accent-color:#325a40;width:14px;height:14px}.while-actions{margin-top:8px;padding-top:12px;min-height:0}.while-actions .button{font-size:14px;min-height:42px}.while-actions>.muted{font-size:13px}.action-reason{margin:4px 0 0;min-height:0}.transcript-panel{border-radius:20px}.transcript-scroll{max-height:310px}.explanation-copy,.answer-line,.evidence-quote{font-size:13px}.explanation summary{font-size:13px}body.review-mode .question-column{max-height:550px}.result-summary>strong{font-size:28px}.tips>summary{background:#fcfdf8;border-color:#a7b19c;border-radius:10px}
.activity-grid{margin-top:20px;gap:20px}.activity{min-height:300px;padding:24px;border-top:1px solid #dce2d5!important}.activity-icon{width:auto;height:30px;display:block;margin-bottom:14px;background:none;box-shadow:none;color:#48614e;font-size:24px;border-radius:0;line-height:30px}.activity h2{font-size:23px;margin:14px 0 10px}.activity>p{font-size:14px;line-height:1.6}.activity-state{font-size:13px}.activity .status{font-size:12px;align-self:flex-start}.post-end{margin-top:22px;padding-top:18px}.activity:not(:first-child){padding-top:24px}.activity{display:grid;grid-template-rows:30px 28px auto 1fr auto auto;row-gap:10px}.activity-icon{grid-row:1;margin:0}.activity .status{grid-row:2}.activity h2{grid-row:3;margin:0}.activity>p{grid-row:4;margin:0}.activity-state{grid-row:5}.activity>.button{grid-row:6}
.dictation-grid{grid-template-columns:240px minmax(360px,1fr) 220px;gap:20px}.dictation-grid.list-hidden{grid-template-columns:240px minmax(360px,1fr)}.source-card,.writing-card,.shadow-workspace{padding:22px}.source-card h2{font-size:18px}.practice-main .source-art{height:135px;min-height:135px;border-radius:16px}.source-sentence{font-size:20px;margin:22px 0 16px}.writing-card textarea{font-family:inherit;font-size:17px;min-height:130px;border-radius:12px;background:#fffef9;border-color:#809574}.writing-card>label{font-size:13px}.writing-card h2{font-size:20px}.mode-switch{background:#edf2e8;border-color:#d7dfcd;border-radius:12px;padding:4px}.mode-switch button{border-radius:8px;font-size:13px;min-height:36px;color:#52664f}.mode-switch button[aria-pressed=true]{background:#fff0b8;border-color:#bba65c;color:#4d451f;box-shadow:none}.practice-actions .button{font-size:14px;padding:10px 16px}.unit-list{padding:20px 16px}.unit-list h2{font-size:16px}.unit-list button{font-family:inherit;border-radius:10px}.media-tools{font-size:13px}.media-tools select{border-radius:8px;padding:6px}.shadow-grid{grid-template-columns:270px minmax(400px,1fr);gap:24px}.spoken-text{font-size:28px;line-height:1.6;min-height:90px;margin:24px 0 18px}.voice-workspace{background:#edf2e8;border:1px solid #ccd9c1;border-radius:16px;padding:20px;margin-top:20px}.voice-state{font-size:16px;background:none}.voice-workspace .button{min-width:180px}.shadow-display{font-size:13px}.shadow-nav{margin-top:20px}.conversation-grid{grid-template-columns:minmax(450px,1fr) 300px;gap:24px}.task-card h2{font-size:25px;line-height:1.35;margin:14px 0 24px}.task-card dl>div{font-size:14px;gap:20px}.task-card dt{font-size:13px}.conversation-support .card{padding:20px}.conversation-support p{font-size:13px;line-height:1.65}.conversation-support h3{font-size:13px}.chat-message{border-radius:16px;background:#edf2e8;border-color:#dce2d5}.chat-message.user{background:#fbf1c5}.chat-messages{max-height:300px}.feedback-card{border-radius:18px;background:#edf4e8}.practice-completion{background:#edf4e8}.practice-completion p{font-size:14px}.quick-lookup{border-radius:12px}
.studio-home main{padding:28px}.studio-hero{min-height:0;grid-template-columns:1.2fr 1fr;gap:28px;align-items:stretch}.studio-greeting{padding:12px 0}.studio-greeting h1{font-size:32px;line-height:1.18;letter-spacing:-1px;margin:12px 0}.studio-greeting>p{font-size:15px;line-height:1.6;max-width:540px}.studio-greeting h1 span{color:#35583e}.hero-actions{margin:20px 0 14px;gap:20px}.hero-note{font-size:12px}.studio-scene{min-height:240px;max-height:260px;border-radius:24px;background:#e9efdf;border:1px solid #dce2d5;overflow:hidden}.studio-planet{width:210px;height:210px;filter:none;align-self:start}.scene-orbit{display:none}.scene-label{top:16px;right:18px;font-size:12px;letter-spacing:0}.scene-caption{bottom:14px;left:14px;right:14px;border-radius:14px;padding:10px 14px;box-shadow:none;backdrop-filter:none}.caption-play{background:#f4d966;color:#514518;width:32px;height:32px}.scene-caption strong{font-size:14px}.scene-caption small{font-size:12px}.studio-journey{margin:26px 0 22px}.section-heading{margin-bottom:16px}.section-heading h2{font-size:24px}.section-heading>span{font-size:13px}.stage-grid{gap:18px}.studio-stage{padding:20px;gap:14px;box-shadow:none}.stage-number{border:0;background:#edf2e8;border-radius:8px;color:#53674d}.studio-stage h3{font-size:18px}.studio-stage p{font-size:13px}.studio-home [data-spark-slot]{margin:0 0 20px}.studio-review{border-color:#d9dfd4;font-size:13px;padding:14px 0}.studio-disclosure{font-size:12px;margin-top:4px}.review-links{padding-top:12px}.studio-tag{background:none;border:0;padding:0;font-size:13px}
body[data-glass-motion='true'] :is(.lesson-card,.studio-stage,.activity):hover{transform:translateY(-2px);box-shadow:0 4px 14px #23392b0b}
body.review-mode .source-art{height:126px;min-height:126px}
body :focus-visible{outline-color:var(--focus)!important}
body dialog,body dialog.dialog{background:#fcfdf8!important;border:1px solid #809574!important;border-radius:24px;box-shadow:0 8px 24px #213b321a}
body dialog::backdrop{background:#213b3266}
body .practice-main .demo-note{color:var(--muted)}
}

/* User-directed ivory glass finish: keep the paper backdrop and desktop geometry.
   Broad colour washes live at the edges; the reading area stays nearly white. */
@media(min-width:1100px){
:root{
 --ink:#3e4038;--muted:#62665b;--focus:#21637a;
 --pearl-fill:radial-gradient(ellipse at 0 0,#ffffffb3,transparent 65%),linear-gradient(125deg,#fffffe,#fffef9);
 --pearl-shadow:inset 0 2px 0 #fff,0 2px 4px #806c4020,0 10px 24px #806c4024;
 --mist-fill:radial-gradient(ellipse at 12% 0,#ffffffb3,transparent 60%),linear-gradient(115deg,#fffffe,#fffdf6);
}
body :is(.card,.context-card,.learning,.media-panel,.question-card,.results-panel,.source-card,.writing-card,.shadow-workspace,.conversation-card,.feedback-card,.unit-list,.studio-stage,.transcript-panel,.source-panel,.scene-caption){
 background-color:#fffefa;background-image:var(--pearl-fill);border-color:#ddd6c7;box-shadow:var(--pearl-shadow);
 backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
}
body [data-spark-slot],body .spark-welcome [data-spark-slot],body :is(.filters,.resume,.voice-workspace){
 background-color:#fffefa;background-image:var(--mist-fill);border-color:#ded5c3;
 box-shadow:inset 0 2px 0 #fff,0 2px 4px #806c4017,0 8px 20px #806c401f;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
}
body :is(.word-side,.studio-scene){background-color:#fffefa;background-image:var(--mist-fill)}
body .source-art{background-color:#fffefa;background-image:url('assets/planet-3d.png'),var(--mist-fill);background-size:contain,auto,auto,auto;background-position:center;background-repeat:no-repeat}
body .lesson-art[data-topic]{background:var(--mist-fill)!important}
body .sentence-side{background:linear-gradient(135deg,#ffffff,#fffef9)}
body :is(.button,.audio-button){background:linear-gradient(165deg,#fff 5%,#f5f1e8);border-color:#999782;color:#4f574e;box-shadow:inset 0 1px 0 #fff,0 2px 4px #7667440d}
body .button.primary,body .primary{color:#493912;background:linear-gradient(145deg,#ffdf7b,#ffd052);border-color:#ffe8a7;box-shadow:0 5px 14px #bb8b1d18,inset 0 1px 0 #fff9}
body .button.primary:hover:not(:disabled),body .primary:hover:not(:disabled){background:#efb223;border-color:#ffe8a7;box-shadow:0 6px 20px #bb8b1d28}
body .button.secondary:hover:not(:disabled),body .audio-button:hover{background:linear-gradient(165deg,#fff,#eee8d9)}
body :is(.text-button,.back-link){color:#325d74}
body .while-answer{background:linear-gradient(125deg,#ffffffeb,#faf7efe6);border-color:#9e9b87;box-shadow:inset 0 1px 0 #fff}
body .while-answer:has(input:checked){background:linear-gradient(130deg,#fff9df,#f8ebaf);border-color:#9d7b28}
body .while-answer input{accent-color:#2c6078}
body :is(.field input,.field select,textarea,.answer-input){background:#ffffffd9;border-color:#969581;box-shadow:inset 0 2px 4px #7667440a}
body dialog,body dialog.dialog{background-color:#fffefa!important;background-image:var(--pearl-fill)!important;border-color:#d4c8b0!important;box-shadow:inset 0 1px 0 #fff,0 16px 48px #5b503533}
body[data-glass-motion='true'] :is(.lesson-card,.studio-stage,.activity):hover{box-shadow:inset 0 2px 0 #fff,0 3px 6px #806c4024,0 14px 30px #806c402e}
}

/* White rims on desktop cards; keep control outlines and feedback states legible. */
@media(min-width:1100px){
body :is(.card,.context-card,.learning,.media-panel,.question-card,.results-panel,.source-card,.writing-card,.shadow-workspace,.conversation-card,.feedback-card,.unit-list,.studio-stage,.transcript-panel,.source-panel,.scene-caption){border-color:rgba(255,255,255,.93)}
body .activity{border-top-color:rgba(255,255,255,.93)!important}
body [data-spark-slot],body .spark-welcome [data-spark-slot],body :is(.filters,.resume,.voice-workspace,.studio-scene){border-color:rgba(255,255,255,.93)}
body dialog,body dialog.dialog{border-color:rgba(255,255,255,.93)!important}
body .question-card.active-question{border-color:#ba9b49}
}
