/* Free tier: the same restrained cream, green and gold as the main app. */
body:not(.ux-modern) header{position:relative;background:var(--free-cream);padding:calc(12px + env(safe-area-inset-top,0px)) 16px 12px;border-bottom:1px solid var(--free-border)}
body:not(.ux-modern) header .hc{display:grid;grid-template-columns:48px 1fr;gap:2px 12px;text-align:left;padding:0 0 12px;min-height:70px}
body:not(.ux-modern) header .hc .free-brand-logo{grid-row:1/4;width:48px;height:48px;margin:0;border-radius:12px;object-fit:cover}
body:not(.ux-modern) header .hc h1{color:var(--free-ink)!important;font-size:21px!important;padding-right:96px;margin:0}
body:not(.ux-modern) header .hc h1 span{color:var(--free-ink)}
body:not(.ux-modern) header .hc p{color:var(--free-muted);font-size:12px;max-width:260px;line-height:1.4}
body:not(.ux-modern) .free-account-link{position:absolute!important;top:calc(14px + env(safe-area-inset-top,0px))!important;right:16px!important}
body:not(.ux-modern) .free-account-link a{background:var(--free-surface)!important;color:var(--free-ink)!important;border:1px solid var(--free-border)!important;padding:9px 12px!important;font-size:12px!important}
.free-tour-link{grid-column:2;color:var(--free-muted);font-size:12px;text-underline-offset:3px}
body:not(.ux-modern) header .island-bar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;background:#eaf1e9;padding:4px;border-radius:15px;max-width:720px}
body:not(.ux-modern) header .island-bar .isle-btn{display:flex;flex-direction:row;justify-content:center;align-items:center;min-height:44px;padding:7px 3px;border:0;border-radius:11px;font-size:12px;color:#203f39;aspect-ratio:auto;gap:5px}
body:not(.ux-modern) header .island-bar .isle-flag{font-size:15px}
body:not(.ux-modern) header .island-bar .isle-btn[class*=active-]{background:#fff;box-shadow:0 2px 0 #d7b46d}
body:not(.ux-modern) header .isle-indicator,body:not(.ux-modern) header .free-banner{display:none}
body:not(.ux-modern) .free-daily{background:var(--free-surface);border:1px solid var(--free-border);box-shadow:0 4px 18px #203f3906;padding:22px;border-radius:22px;color:var(--free-ink)}
body:not(.ux-modern) .free-daily h2{font-family:inherit;font-size:24px;letter-spacing:-.5px;color:var(--free-ink)}
body:not(.ux-modern) .free-start .free-daily p{color:var(--free-muted);font-size:14px}
body:not(.ux-modern) .free-primary{background:#f5c97b;color:#203f39}
body:not(.ux-modern) .free-progress{margin:14px 2px 22px}
.free-progress progress::-webkit-progress-bar{background:#e5ebe5;border-radius:8px}.free-progress progress::-webkit-progress-value{background:#39765a;border-radius:8px}
body:not(.ux-modern) .free-listening{padding:20px;background:var(--free-surface);border:1px solid var(--free-border);border-radius:22px}
.free-audio-chip{background:#edf3ed;border:0}
.free-premium-features{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}
.free-premium-features>div{border:1px solid #ffffff26;border-radius:14px;padding:14px;background:#ffffff08}
.free-premium-features dt{font-size:15px;font-weight:750;color:#f5c97b;line-height:1.4}
.free-premium-features dd{margin:7px 0 0;font-size:13px;line-height:1.6;color:#e0eae4}
@media(max-width:540px){.free-premium-features{grid-template-columns:1fr}}
@media(max-width:380px){body:not(.ux-modern) header .hc h1{font-size:18px!important;padding-right:82px}body:not(.ux-modern) .free-account-link a{font-size:11px!important;padding:8px!important}body:not(.ux-modern) header .island-bar .isle-btn{font-size:11px}}
/* Shared warm identity for the free journey and its learning screens. */
:root{--free-night:#193f36;--free-gold:#f3c975;--free-cream:#fff8eb;--free-ink:#193f36;--free-muted:#526b60}
:root[data-theme=dark]{--free-cream:#10231e;--free-ink:#edf4ee;--free-muted:#b6cbc0}
body:not(.ux-modern) .free-daily{background:linear-gradient(120deg,color-mix(in srgb,#8faf95 22%,var(--free-surface)),var(--free-surface));border-left:4px solid #8faf95}
body:not(.ux-modern) .free-primary{background:var(--free-night);color:#fff8eb}
body:not(.ux-modern) .free-listening{background:color-mix(in srgb,#72b7b0 12%,var(--free-surface));border-top:3px solid #72b7b0}
.free-journey>button,.free-journey>article{border-top:3px solid #8faf95!important;box-shadow:0 4px 16px #193f3609;transition:transform .16s}
.free-journey>:nth-child(2){border-top-color:#e47e65!important;background:color-mix(in srgb,#e47e65 9%,var(--free-surface))}
.free-journey>:nth-child(3){border-top-color:#72b7b0!important;background:color-mix(in srgb,#72b7b0 10%,var(--free-surface))}
.free-audio-chip{min-height:44px;background:var(--free-surface);border:1px solid var(--free-border);box-shadow:0 3px 10px #193f3607}
.free-journey>button:active,.free-audio-chip:active{transform:scale(.98)}
body:not(.ux-modern) :is(.fc-btn,.qo,.niv-btn,.cat-btn){min-height:44px;border-radius:14px}
body:not(.ux-modern) .card{border-color:var(--free-border);box-shadow:0 4px 16px #193f3608}
body:not(.ux-modern) .free-bottom-nav{background:var(--free-night)}
body:not(.ux-modern) .free-progress progress{accent-color:var(--free-night);height:8px}
@media(prefers-reduced-motion:reduce){.free-journey>button,.free-audio-chip{transition:none}}
body>nav.free-bottom-nav{padding:6px 5px;min-height:64px}
.free-bottom-nav .nb{min-height:50px;gap:2px}
.free-nav-icon{width:36px;height:27px}
.free-nav-icon svg{width:20px;height:20px}
.free-quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.free-quick-grid button{display:flex;flex-direction:column;align-items:flex-start;gap:7px;padding:16px;border:1px solid #dbe4dc;border-radius:20px;background:#edf3ec;color:#193f36;text-align:left;font:inherit;min-height:130px}.free-quick-grid button:nth-child(even){background:#faf0dc}.free-quick-grid svg{width:48px;height:48px}.free-quick-grid small{line-height:1.5}.free-quick-access{margin:24px 0}.free-alphabet{display:flex;flex-wrap:wrap;gap:7px;margin:20px 0}.free-alphabet button{min-width:44px;min-height:44px;border:1px solid #dbe4dc;border-radius:12px;background:#fff;color:#193f36;font:inherit}.free-alphabet button[aria-pressed=true]{background:#193f36;color:white}#freeVocabulary label{display:block;margin:14px 0}#freeVocabulary input,#freeVocabulary select{box-sizing:border-box;width:100%;min-height:48px;padding:12px;border:1px solid #dbe4dc;border-radius:12px;font:inherit}.free-vocabulary-results article,.free-vocabulary-upgrade{padding:16px;margin:12px 0;border:1px solid #dbe4dc;border-radius:18px;background:#fff}.free-vocabulary-results h3{margin:0}.free-vocabulary-results p{margin:8px 0 0}.free-vocabulary-upgrade{background:#faf0dc}
/* Match the compact Premium shortcuts with the same shared pictograms. */
.free-quick-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.free-quick-grid button{align-items:center;text-align:center;min-height:116px;padding:12px 6px;gap:6px;border-radius:14px;font-size:12px;box-shadow:none}
.free-quick-grid svg{width:29px;height:29px;filter:none;padding:5px;border-radius:50%;background:#dfe9dd;box-sizing:content-box}
.free-quick-grid small{font-size:11px;line-height:1.35}
@media(max-width:350px){.free-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Compact vocabulary browser, with comfortable touch targets. */
#freeVocabulary{box-sizing:border-box;padding:18px 16px 110px;border:0;background:#fff8eb;border-radius:22px}
#freeVocabulary [data-back]{width:auto;min-height:44px;padding:8px 14px;background:#edf3eb;color:#193f36;border:1px solid #dbe4dc}
#freeVocabulary h2{font-family:Georgia,serif;font-size:30px;margin:22px 0 6px;color:#193f36}
#freeVocabulary>p{font-size:15px;color:#52685e;margin:0 0 20px}
#freeVocabulary label{font-size:14px;font-weight:600;color:#193f36}
#freeVocabulary input,#freeVocabulary select{background:#fff;font-size:16px;margin-top:7px}
#freeVocabulary .free-alphabet{position:static;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;background:transparent;box-shadow:none;border:0;padding:0;margin:20px 0}
#freeVocabulary .free-alphabet button{min-width:0;min-height:44px;padding:4px 0;font-size:14px;border-radius:10px}
#freeVocabulary .free-vocabulary-results article{background:#fff;padding:16px 18px;border-color:#e2e5dc;box-shadow:0 3px 12px #193f3605}
#freeVocabulary .free-vocabulary-results h3{font-size:21px;color:#193f36}
#freeVocabulary .free-vocabulary-results p{font-size:16px;color:#52685e}
#freeVocabulary .free-vocabulary-upgrade{background:#edf3eb;padding:18px}
#freeVocabulary .free-vocabulary-upgrade h3{font-size:20px;margin:0 0 8px}
#freeVocabulary .free-vocabulary-upgrade p{font-size:14px;line-height:1.5}
/* Concise offer: one surface, clear benefits, readable purchase details. */
#premium .lock-card{background:#193f36!important;border-radius:24px;padding:24px 20px!important;box-shadow:none;text-align:left}
#premium .lock-icon{display:none}
#premium .lock-title{font-size:28px;line-height:1.2;color:#f3c975}
#premium .lock-desc{font-size:14px;line-height:1.6;color:#edf3eb}
#premium #pwPrice{display:block;font-size:24px;color:#fff;margin:14px 0 0}
#premium .premium-promise{font-size:18px;line-height:1.5;color:#fff;margin:18px 0}
#premium .lock-list{padding:0;margin:18px 0;list-style:none;display:grid;gap:14px}
#premium .lock-list li{font-size:14px;line-height:1.5;color:#e3ece7;margin:0;padding:0}
#premium .lock-list li strong{font-size:16px;color:#fff}
#premium .premium-note{font-size:13px;line-height:1.5;color:#d7e5dc}
#premium .lock-btn{width:100%;min-height:48px;font-size:16px;border-radius:16px}
#premium #pwRestoreBtn{font-size:14px!important;min-height:44px;color:#edf3eb!important}
/* Premium uses the warm paper surface; green is reserved for actions. */
#premium .lock-card,.free-premium-preview{background:#faf4e7!important;color:#193f36!important;border:1px solid #e6dcc8;box-shadow:0 5px 20px #193f3605}
#premium .lock-title{color:#193f36!important;font-size:27px}
#premium :is(.lock-desc,.premium-note,.lock-list li),.free-start .free-premium-preview p,.free-premium-preview small{color:#52685e!important}
#premium :is(#pwPrice,.premium-promise,.lock-list li strong),body:not(.ux-modern) .free-premium-preview h2{color:#193f36!important}
#premium .lock-btn,.free-premium-preview .free-secondary{background:#193f36!important;background-image:none!important;color:#fff8eb!important;border:0;border-radius:14px;min-height:48px}
#premium .lock-card a,#premium #pwRestoreBtn{color:#365c4d!important}
#premium .lock-card>div:last-child{color:#52685e!important;font-size:12px!important}
.free-premium-features{gap:10px;margin:16px 0}.free-premium-features>div{background:#fffdf7;border:1px solid #e7e1d3;padding:14px;border-radius:14px}
.free-premium-features dt{color:#193f36;font-size:16px}.free-premium-features dd{color:#52685e;font-size:14px;line-height:1.5}
#pwRestoreBtn[hidden],#pwWebHint[hidden]{display:none!important}
:root[data-theme=dark] #premium .lock-card,:root[data-theme=dark] .free-premium-preview{background:#e9e2d3!important}
#freeVocabulary .free-alphabet .premium-letter{background:#f4f1e8;color:#697367;border-color:#e3e1d7}
#freeVocabulary .free-alphabet .premium-letter[aria-pressed=true]{background:#e4e9dd;color:#193f36;border-color:#9cac9a}
#freeVocabulary .alphabet-access-note{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px;margin:-8px 0 18px;font-size:12px;color:#52685e}
#freeVocabulary .alphabet-access-note span{color:#796638}
.audio-written-preview{margin:22px 0 0;padding:20px;background:#faf4e7;border:1px solid #e6dcc8;border-radius:20px;color:#193f36}
.audio-written-preview h3{font:700 24px/1.25 Georgia,serif;margin:0 0 10px}.audio-written-preview p{font-size:14px;line-height:1.55;color:#52685e}
.audio-written-preview dl{margin:16px 0}.audio-written-preview dl>div{padding:12px 0;border-bottom:1px solid #e5dece}.audio-written-preview dt{font-weight:700;font-size:17px}.audio-written-preview dd{margin:5px 0 0;font-size:14px;color:#52685e}
.audio-written-preview .free-secondary{background:#193f36;color:#fff8eb;font-size:15px}.audio-written-preview .audio-preview-note{font-size:12px}
.premium-content-counts{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 8px}.premium-content-counts>div{flex:1 1 120px;padding:14px;background:#fffdf7;border:1px solid #e7e1d3;border-radius:15px}.premium-content-counts strong{display:block;color:#193f36;font-size:26px;line-height:1.2}.premium-content-counts span{display:block;margin-top:6px;color:#52685e;font-size:12px;line-height:1.5}.audio-written-preview .premium-content-scope{font-size:13px;line-height:1.8;color:#796638}
/* Discovery cards: calm typography, clear controls and restrained feedback. */
#flashcards{background:transparent;border:0;padding:8px 0 110px;box-shadow:none}
#flashcards .niv-wrap{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 18px;padding:0;background:transparent}
#flashcards .niv-btn{min-height:44px;padding:10px 13px;border:1px solid #e5dfd0;border-radius:22px;background:#faf5e9;color:#52685e;font-size:13px;font-weight:600}
#flashcards .niv-btn.active{background:#193f36;color:#fff8eb;border-color:#193f36}
#flashcards #freeLocked{flex-basis:100%;background:transparent;border:0;text-align:left;padding:4px 2px;color:#796638;min-height:44px}
#flashcards #mainCard{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;box-sizing:border-box;min-height:255px;height:auto;padding:28px 20px;border:1px solid #e5dfd0;border-radius:24px;background:#fffdf7!important;box-shadow:0 5px 18px #193f3606;overflow:hidden}
#flashcards #mainCard::before,#flashcards #mainCard::after{display:none}
#flashcards .fc-isle{color:#617468;font-size:11px;letter-spacing:.08em;margin:0;text-transform:uppercase}
#flashcards .fc-cr{color:#193f36;font:700 clamp(28px,8vw,38px)/1.25 Georgia,serif;margin:0;overflow-wrap:anywhere}
#flashcards .fc-ph{font-size:14px;line-height:1.4;color:#718075;margin:0}
#flashcards .fc-fr{background:#eef3e9;color:#193f36;font-size:18px;line-height:1.4;padding:10px 18px;border-radius:14px;margin:0}
#flashcards .fc-note{background:transparent;color:#617468;font-size:13px;line-height:1.5;padding:0;margin:0}
#flashcards .fc-ctrl{display:grid;grid-template-columns:44px 1fr 1fr;gap:8px;margin:14px 0 10px}
#flashcards .fc-btn{min-height:48px;border-radius:14px;font-size:14px;padding:10px;border:1px solid #dce4d8;line-height:1.3}
#flashcards .fc-btn.prev{background:#fffdf7;color:#193f36}
#flashcards .fc-btn.knew{background:#edf3e9;color:#193f36}
#flashcards .fc-btn.next{background:#193f36;color:#fff8eb}
#flashcards .fc-count{font-size:12px;color:#617468;margin:10px 0}
#flashcards .fc-prog{height:5px;background:#e4e9df;margin:0 0 20px;border-radius:8px}
#flashcards .fc-prog-fill{background:#719381!important}
#flashcards .free-lesson-end{padding:18px;border:1px solid #e5dfd0;background:#faf5e9;border-radius:20px;box-shadow:none}
#flashcards .free-lesson-end p{font-size:14px;line-height:1.5;color:#52685e}
#flashcards button:focus-visible{outline:3px solid #bc913e;outline-offset:3px}
@media(prefers-reduced-motion:no-preference){#flashcards .fc-btn{transition:transform .15s,background .15s}#flashcards .fc-btn:active{transform:scale(.97)}#flashcards #mainCard{animation:discovery-card-in .2s ease-out}@keyframes discovery-card-in{from{opacity:.6;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}}
:root[data-theme=dark] #flashcards #mainCard{background:#263d32!important;border-color:#455c4e}:root[data-theme=dark] #flashcards .fc-cr{color:#fff8eb}:root[data-theme=dark] #flashcards :is(.fc-ph,.fc-note,.fc-isle){color:#c5d5cb}
