/* Talkio design system 2026 (redesign). Loaded last: one palette for dark/light feeds both legacy token
   families (foundation --bg… and --home-*), then shared components and per-screen composition.
   Visual only: no logic, no data. Keep selectors here instead of adding new per-screen overrides elsewhere. */

/* ---------- 1. Tokens ---------- */
:root:root{
 --ds-bg:#ffffff;--ds-surface:#f4f6f9;--ds-raised:#ffffff;--ds-sunken:#eceff4;--ds-line:#e5e8ee;--ds-line-strong:#d7dbe3;
 --ds-text:#1f2937;--ds-muted:#636b78;--ds-faint:#646c79;
 --ds-accent:#ff4d6d;--ds-accent-strong:#e02a49;--ds-accent-text:#d2223f;--ds-accent-soft:#ffecef;--ds-accent-line:#ffc6d0;
 --ds-grad:linear-gradient(135deg,#ef4862 0%,#e02a49 55%,#d42341 100%);
 --ds-on-accent:#ffffff;--ds-success:#12a26b;--ds-success-soft:#e3f6ee;--ds-warning:#d98a08;--ds-warning-soft:#fdf2dc;
 --ds-info:#3b82f6;--ds-info-soft:#e7effe;--ds-violet:#8b5cf6;--ds-violet-soft:#efe8fe;--ds-teal:#14b8a6;--ds-teal-soft:#e0f6f3;
 --ds-shadow-sm:0 1px 2px rgba(17,24,39,.04),0 2px 8px rgba(17,24,39,.04);--ds-shadow:0 6px 24px rgba(17,24,39,.07);
 --ds-shadow-accent:0 10px 26px rgba(255,77,109,.28);
 --ds-r-xs:10px;--ds-r-sm:14px;--ds-r:18px;--ds-r-lg:22px;--ds-r-pill:999px;
 --ds-gap:12px;--ds-pad:16px;--ds-inset:18px;
 --ds-font:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji";
 --ds-card-bg:var(--ds-surface);--ds-card-shadow:var(--ds-shadow-sm);
 --ds-fs-caption:.75rem;--ds-fs-small:.8125rem;--ds-fs-body:.9375rem;
 --ds-ease:cubic-bezier(.2,.8,.2,1);--ds-fast:140ms;--ds-normal:220ms;
 --bg:var(--ds-bg);--secondary-bg:var(--ds-raised);--text:var(--ds-text);--muted:var(--ds-muted);--hint:var(--ds-muted);
 --accent:var(--ds-accent-text);--brand:var(--ds-accent);--brand-soft:var(--ds-accent-soft);--success:var(--ds-success);
 --warning:var(--ds-warning);--danger:var(--ds-accent-strong);--border:var(--ds-line);--control-border:var(--ds-line-strong);
 --subtle:var(--ds-surface);--shadow:var(--ds-shadow-sm);--radius-card:var(--ds-r);--radius-control:var(--ds-r-sm);
 --nav-height:66px;color-scheme:light;
}
:root:root[data-talkio-theme=dark]{
 --ds-bg:#0c121c;--ds-surface:#19212f;--ds-raised:#1d2636;--ds-sunken:#131a26;--ds-line:rgba(160,174,198,.15);--ds-line-strong:rgba(160,174,198,.28);
 --ds-text:#f5f7fb;--ds-muted:#a7b0c1;--ds-faint:#7c879a;
 --ds-card-bg:linear-gradient(180deg,rgba(255,255,255,.04) 0%,rgba(255,255,255,0) 55%),#19212f;
 --ds-card-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 10px 26px -14px rgba(0,0,0,.6);
 --ds-accent:#ff5566;--ds-accent-strong:#e02a49;--ds-accent-text:#ff7a88;--ds-accent-soft:rgba(255,85,102,.14);--ds-accent-line:rgba(255,85,102,.5);
 --ds-grad:linear-gradient(135deg,#f24e64 0%,#e2304c 55%,#d62a45 100%);
 --ds-success:#4ade9b;--ds-success-soft:rgba(74,222,155,.13);--ds-warning:#fbbf24;--ds-warning-soft:rgba(251,191,36,.13);
 --ds-info:#60a5fa;--ds-info-soft:rgba(96,165,250,.14);--ds-violet:#a78bfa;--ds-violet-soft:rgba(167,139,250,.16);--ds-teal:#2dd4bf;--ds-teal-soft:rgba(45,212,191,.14);
 --ds-shadow-sm:none;--ds-shadow:0 10px 30px rgba(0,0,0,.28);--ds-shadow-accent:0 10px 28px rgba(255,85,102,.3);
 color-scheme:dark;
}
@media(prefers-color-scheme:dark){:root:root:not([data-talkio-theme]){--bg:#0e1520;--secondary-bg:#1a2230;--text:#f5f7fb;--muted:#98a2b3}}
/* Legacy Hybrid tokens follow the system on every screen that declares them. */
:root:root:root body,:root:root:root .home-hybrid,:root:root:root .learning-hybrid,:root:root:root .profile-hybrid{
 --home-bg:var(--ds-bg);--home-surface:var(--ds-surface);--home-text:var(--ds-text);--home-muted:var(--ds-muted);
 --home-brand:var(--ds-accent);--home-accent:var(--ds-accent-text);--home-soft:var(--ds-accent-soft);--home-line:var(--ds-line);
 --home-track:var(--ds-sunken);--home-shadow:var(--ds-shadow-sm);--home-radius:var(--ds-r);--home-inset:var(--ds-inset);--home-gap:var(--ds-gap);
}

/* ---------- 2. Base ---------- */
:root body{background:var(--ds-bg);color:var(--ds-text);font-family:var(--ds-font);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
:root body .screen{max-width:520px;margin:0 auto;padding:12px var(--ds-inset) 24px}
:root body h1{font-size:1.75rem;line-height:1.15;letter-spacing:-.8px;font-weight:750}
:root body h2{font-size:1.0625rem;letter-spacing:-.2px;font-weight:700}
:root body h3{font-weight:650}
:root body .muted,:root body .home-muted{color:var(--ds-muted)}
:root body a{color:var(--ds-accent-text)}
:root body ::selection{background:var(--ds-accent-soft)}
:root body .home-eyebrow,:root body .learning-eyebrow,:root body .learning-kicker,:root body .home-kicker{color:var(--ds-muted);letter-spacing:.9px;font-weight:650}

/* ---------- 3. Shared components ---------- */
/* Cards */
:root body .card,:root body .home-card,:root body .profile-block.card{background:var(--ds-card-bg);border:1px solid var(--ds-line);border-radius:var(--ds-r);box-shadow:var(--ds-card-shadow);padding:var(--ds-pad)}
:root[data-talkio-theme=light] body .card{background:var(--ds-card-bg)}
/* Buttons */
:root body .btn{min-height:48px;border-radius:var(--ds-r-sm);font-weight:650;letter-spacing:-.1px;border:1px solid transparent;transition:transform var(--ds-fast) var(--ds-ease),background-color var(--ds-fast),box-shadow var(--ds-fast),opacity var(--ds-fast)}
:root body .btn-primary,:root body .learning-hybrid .btn-primary{background:var(--ds-grad);color:var(--ds-on-accent);border-color:transparent;box-shadow:var(--ds-shadow-accent)}
:root body .btn-secondary{background:var(--ds-raised);color:var(--ds-text);border-color:var(--ds-line-strong);box-shadow:none}
:root[data-talkio-theme=dark] body .btn-secondary{background:rgba(255,255,255,.04)}
:root body .btn:active,:root body .home-primary:active,:root body .home-secondary:active,:root body .filter:active,:root body .profile-menu-row:active,:root body nav button:active{transform:scale(.97)}
:root body .btn:disabled{opacity:.55;box-shadow:none}
:root body .learning-link,:root body .profile-link,:root body .home-text-action,:root body .rp-all{color:var(--ds-accent-text);font-weight:600}
:root body .icon-btn{width:36px;height:36px;min-width:36px;min-height:36px;border-radius:12px;border:1px solid var(--ds-line);background:transparent;color:var(--ds-muted);display:grid;place-items:center;font-size:17px;transition:transform var(--ds-fast),color var(--ds-fast),background-color var(--ds-fast)}
:root body .icon-btn.active{color:#f5b301;border-color:transparent;background:transparent}
:root body .icon-btn.del:hover{color:var(--ds-accent-text)}
/* Inputs */
:root body input[type=search],:root body input[type=text],:root body input[type=time],:root body .search,:root body select,:root body textarea{background:var(--ds-raised);color:var(--ds-text);border:1px solid var(--ds-line-strong);border-radius:var(--ds-r-sm);min-height:46px;padding:10px 14px;font-size:16px;outline:none;transition:border-color var(--ds-fast),box-shadow var(--ds-fast)}
:root[data-talkio-theme=dark] body input,:root[data-talkio-theme=dark] body select,:root[data-talkio-theme=dark] body textarea,:root[data-talkio-theme=dark] body .search{background:var(--ds-card-bg)}
:root body input:focus,:root body select:focus,:root body textarea:focus{border-color:var(--ds-accent);box-shadow:0 0 0 3px var(--ds-accent-soft);outline:none}
:root body button:focus-visible,:root body a:focus-visible,:root body summary:focus-visible{outline:2px solid var(--ds-accent);outline-offset:2px}
:root body select{appearance:none;-webkit-appearance:none;padding-right:34px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2398a2b3' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;background-size:18px;max-width:58%}
:root body .search{width:100%;padding-left:42px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2398a2b3' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:14px center;background-size:18px}
/* Switch */
:root body .switch{position:relative;width:50px;height:30px;flex:none}
:root body .switch .slider{position:absolute;inset:0;border-radius:var(--ds-r-pill);background:var(--ds-line-strong);transition:background-color var(--ds-normal) var(--ds-ease)}
:root body .switch .slider:before{content:"";position:absolute;width:24px;height:24px;left:3px;top:3px;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(0,0,0,.18);transition:transform var(--ds-normal) var(--ds-ease)}
:root body .switch input:checked+.slider{background:var(--ds-accent)}
:root body .switch input:checked+.slider:before{transform:translateX(20px)}
:root body .switch input:disabled+.slider{opacity:.5}
/* Chips, filters, pills */
:root body .filters{display:flex;flex-wrap:wrap;gap:8px}
:root body .filter,:root body .rp-filter{min-height:36px;padding:7px 14px;border-radius:var(--ds-r-pill);background:var(--ds-card-bg);border:1px solid var(--ds-line);color:var(--ds-text);font-size:.8125rem;font-weight:550}
:root body .filter.active,:root body .rp-filter.active,:root body .rp-filter[aria-pressed=true],:root body .filter[aria-pressed=true]{background:var(--ds-accent);border-color:var(--ds-accent);color:#fff}
:root body .pill,:root body .confidence-pill,:root body .vocab-status,:root body .vocab-meta>span{display:inline-flex;align-items:center;min-height:22px;padding:2px 9px;border-radius:var(--ds-r-pill);font-size:var(--ds-fs-caption);font-weight:600;background:var(--ds-sunken);color:var(--ds-muted);border:0}
:root body .vocab-status{background:var(--ds-accent-soft);color:var(--ds-accent-text)}
/* Rows inside settings cards */
:root body .card .row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:6px 0;border-bottom:1px solid var(--ds-line)}
:root body .card .row:last-of-type{border-bottom:0}
:root body .card h2{margin:2px 0 10px}
/* Bottom navigation */
:root body nav{background:color-mix(in srgb,var(--ds-bg) 88%,transparent);backdrop-filter:saturate(1.4) blur(18px);-webkit-backdrop-filter:saturate(1.4) blur(18px);border-top:1px solid var(--ds-line);box-shadow:none;padding-top:6px}
:root body nav button,:root body[data-home-active=true] nav button,:root body[data-learning-active=true] nav button,:root body[data-profile-active=true] nav button{color:var(--ds-faint);font-size:var(--ds-fs-caption);font-weight:600;gap:3px;background:none}
:root body nav button.active,:root body[data-home-active=true] nav button.active,:root body[data-learning-active=true] nav button.active,:root body[data-profile-active=true] nav button.active{color:var(--ds-accent)}
:root body nav button .icon svg{width:24px;height:24px;stroke-width:1.8}
:root body nav button.active .icon svg{stroke-width:2.1}
/* Dialogs / sheets */
:root body dialog{background:var(--ds-raised);color:var(--ds-text);border:1px solid var(--ds-line);border-radius:24px;box-shadow:var(--ds-shadow);padding:22px 18px;max-width:min(520px,calc(100vw - 24px))}
:root[data-talkio-theme=dark] body dialog{background:#182030}
:root body dialog::backdrop{background:rgba(8,12,20,.56);backdrop-filter:blur(3px)}
:root body dialog[open]{animation:ds-sheet var(--ds-normal) var(--ds-ease)}
/* Progress bars */
:root body .progress-track{height:8px;border-radius:var(--ds-r-pill);background:var(--ds-sunken);overflow:hidden}
:root body .progress-fill{border-radius:inherit;background:var(--ds-grad);transition:width 600ms var(--ds-ease)}

/* ---------- 4. Today ---------- */
:root body #screen-today{padding:8px var(--ds-inset) 24px}
:root body .home-top{min-height:52px}
:root body .home-wordmark{font-size:1.875rem;font-weight:800;letter-spacing:-1.6px;color:var(--ds-text)}
:root body .home-wordmark>span{color:var(--ds-accent)}
:root body .home-language.active-language{color:var(--ds-text);font-weight:550;font-size:.8125rem}
:root body .home-avatar{width:38px;height:38px;background:var(--ds-accent-soft);color:var(--ds-accent-text);box-shadow:0 0 0 2px var(--ds-bg),0 0 0 3.5px var(--ds-accent-line)}
:root body .home-greeting{padding:18px 0 14px;grid-template-columns:minmax(0,1fr) 96px}
:root body .home-greeting h1{font-size:2rem;line-height:1.08;letter-spacing:-1px;font-weight:800;margin:6px 0 8px}
:root body .home-mascot,:root body .home-mascot img{width:96px;height:96px}
:root body .home-mascot img{filter:drop-shadow(0 8px 18px rgba(255,77,109,.28))}
:root body .home-daily{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:14px;align-items:center;background:var(--ds-card-bg);border:1px solid var(--ds-line);border-radius:var(--ds-r);padding:14px 16px;margin:4px 0 6px}
:root body .home-daily .home-streak{display:flex;gap:10px;align-items:center;border:0;padding:0}
:root body .home-daily .home-symbol{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:var(--ds-accent-soft);color:var(--ds-accent)}
:root body .home-daily .home-symbol svg{width:22px;height:22px;fill:var(--ds-accent);stroke:var(--ds-accent)}
:root body .home-daily strong{font-size:1.0625rem;font-weight:750}
:root body .home-goal{border:0;padding:0}
:root body .home-goal>div:first-child{display:flex;justify-content:space-between;font-size:.8125rem;color:var(--ds-muted);margin-bottom:8px}
:root body .home-goal strong{color:var(--ds-text);font-size:.875rem}
:root body .home-goal-copy{color:var(--ds-muted);font-size:.8125rem;margin:8px 2px 14px;border:0}
:root body .home-next{border-radius:var(--ds-r-lg);padding:20px 18px 18px;background:var(--ds-grad);box-shadow:var(--ds-shadow-accent);color:#fff}
:root body .home-next:after{border-color:rgba(255,255,255,.18);box-shadow:0 0 0 26px rgba(255,255,255,.05),0 0 0 52px rgba(255,255,255,.04);top:-40px;right:-90px}
:root body .home-next-meta{color:rgba(255,255,255,.9);font-size:.8125rem;font-weight:600;align-items:center}
:root body .home-next-meta>span:first-child{display:inline-flex;align-items:center;gap:8px}
:root body .home-next-meta>span:first-child:before{content:"";width:26px;height:26px;border-radius:50%;flex:none;background:rgba(255,255,255,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Ccircle cx='12' cy='12' r='3.5'/%3E%3C/svg%3E") center/16px no-repeat}
:root body .home-next h2{font-size:1.75rem;margin:14px 0 8px;letter-spacing:-.8px;font-weight:800}
:root body .home-next>p{color:rgba(255,255,255,.88)}
:root body .home-primary{min-height:54px;border-radius:16px;background:#fff;color:var(--ds-accent-strong);font-weight:750;justify-content:center;gap:10px;margin-top:18px;box-shadow:0 6px 18px rgba(120,10,30,.18)}
:root[data-talkio-theme=dark] body .home-next{background:radial-gradient(120% 90% at 100% 0%,rgba(255,85,102,.30),transparent 60%),linear-gradient(165deg,rgba(255,85,102,.20),rgba(255,85,102,.05) 70%),#1b2231;border:1.5px solid rgba(255,85,102,.55);box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 22px 44px -18px rgba(255,85,102,.45)}
:root[data-talkio-theme=dark] body .home-next-meta,:root[data-talkio-theme=dark] body .home-next>p{color:var(--ds-muted)}
:root[data-talkio-theme=dark] body .home-next-meta>span:first-child{color:var(--ds-text)}
:root[data-talkio-theme=dark] body .home-next-meta>span:first-child:before{background-color:var(--ds-accent-soft);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff5566' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Ccircle cx='12' cy='12' r='3.5'/%3E%3C/svg%3E")}
:root[data-talkio-theme=dark] body .home-next h2{color:var(--ds-text)}
:root[data-talkio-theme=dark] body .home-primary{background:var(--ds-grad);color:#fff;box-shadow:var(--ds-shadow-accent)}
:root body .home-next .home-text-action{color:#fff;opacity:.92}
:root[data-talkio-theme=dark] body .home-next .home-text-action{color:var(--ds-accent-text);opacity:1}
:root body .home-course-card{background:var(--ds-card-bg);border:1px solid var(--ds-line);border-radius:var(--ds-r);padding:16px;margin-top:14px;box-shadow:var(--ds-card-shadow)}
:root body .home-course-card h2{font-size:1.125rem;margin:6px 0 2px}
:root body .home-course-card h3{font-size:.9375rem;color:var(--ds-muted);font-weight:550;margin:0 0 6px}
:root body .home-secondary{border-radius:var(--ds-r-sm);background:var(--ds-accent-soft);color:var(--ds-accent-text);border:0;font-weight:650;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 18px}
/* Practice: compact tiles; the primary action covers the tile, secondary stays a small link */
:root body #home-practice{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:10px;margin-top:22px}
:root body #home-practice>h2{grid-column:1/-1;margin:0 0 2px;font-size:1.0625rem}
:root body #home-practice .home-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:14px 12px 12px;margin:0;min-height:128px;border-radius:var(--ds-r);transition:transform var(--ds-fast) var(--ds-ease),border-color var(--ds-fast)}
:root body #home-practice .home-card:active{transform:scale(.97)}
:root body #home-practice .home-card:has(:focus-visible){outline:3px solid var(--ds-accent);outline-offset:2px}
:root body #home-practice .home-card>div:not(.home-card-actions){display:flex;flex-direction:column;gap:2px;min-width:0;width:100%;overflow-wrap:normal;word-break:normal}
:root body #home-practice .home-card .home-kicker{order:0;font-size:.9375rem;letter-spacing:-.1px;text-transform:none;color:var(--ds-text);font-weight:700}
:root body #home-practice .home-card h3{font-size:var(--ds-fs-small);font-weight:500;color:var(--ds-muted);margin:0;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
:root body #home-practice .home-card>div>p{display:none}
:root body #home-practice .home-card-icon{width:40px;height:40px;border-radius:14px;margin:0 0 2px}
:root body #home-practice #due-card .home-card-icon{background:var(--ds-teal-soft);color:var(--ds-teal)}
:root body #home-practice #weak-card .home-card-icon{background:var(--ds-accent-soft);color:var(--ds-accent)}
:root body #home-practice #roleplay-card .home-card-icon{background:var(--ds-violet-soft);color:var(--ds-violet)}
:root body #home-practice .home-card-actions{margin-top:auto;display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:100%}
:root body #home-practice .home-card-actions .home-secondary:not(.home-tertiary){position:absolute;inset:0;width:100%;height:100%;opacity:0;z-index:1;margin:0;border-radius:inherit}
:root body #home-practice .home-card-actions .home-tertiary{position:relative;z-index:2;min-height:28px;padding:0;background:none;color:var(--ds-accent-text);font-size:var(--ds-fs-caption);font-weight:650;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
:root body #home-practice .home-card-actions .home-tertiary svg{display:none}
:root body #home-practice .home-card-actions .home-tertiary svg{width:14px;height:14px}

/* ---------- 5. Dictionary ---------- */
:root body .learning-header{align-items:flex-start;margin-top:6px}
:root body .learning-header h1{margin:4px 0 2px}
:root body .learning-header-icon{width:44px;height:44px;border-radius:14px;background:var(--ds-accent-soft);color:var(--ds-accent);border:0}
:root body .learning-intro{color:var(--ds-muted);font-size:.875rem;margin:4px 0 14px}
:root body .dictionary-controls{display:flex;flex-direction:column;gap:12px;margin-bottom:12px}
:root body #screen-vocab .filters{display:flex;flex-wrap:wrap;gap:8px}
:root body #screen-vocab .filter{flex:0 0 auto;min-height:34px}
:root body .dictionary-toolbar{margin:4px 2px 10px}
:root body #vocab-card.card{background:transparent;border:0;box-shadow:none;padding:0}
:root body #screen-vocab .vocab-item{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:12px;background:var(--ds-card-bg);border:1px solid var(--ds-line);border-radius:var(--ds-r);padding:12px 10px 12px 12px;margin:0 0 8px;box-shadow:var(--ds-card-shadow);animation:ds-rise var(--ds-normal) var(--ds-ease) both}
:root body .vocab-icon{width:40px;height:40px;border-radius:50%;background:var(--ds-accent-soft);display:grid;place-items:center}
:root body .vocab-icon:before{content:"";width:20px;height:20px;background:var(--ds-accent);-webkit-mask:var(--ds-ico-word) center/contain no-repeat;mask:var(--ds-ico-word) center/contain no-repeat}
:root body .vocab-item[data-type=phrase] .vocab-icon:before,:root body .vocab-item[data-type=collocation] .vocab-icon:before{-webkit-mask-image:var(--ds-ico-phrase);mask-image:var(--ds-ico-phrase)}
:root body .vocab-item[data-type=phrasal_verb] .vocab-icon{background:var(--ds-violet-soft)}
:root body .vocab-item[data-type=phrasal_verb] .vocab-icon:before{background:var(--ds-violet);-webkit-mask-image:var(--ds-ico-verb);mask-image:var(--ds-ico-verb)}
:root body .vocab-item[data-type=word] .vocab-icon{background:var(--ds-info-soft)}
:root body .vocab-item[data-type=word] .vocab-icon:before{background:var(--ds-info)}
:root body .vocab-item:has([data-status=mastered]) .vocab-icon{background:var(--ds-success-soft)}
:root body .vocab-item:has([data-status=mastered]) .vocab-icon:before{background:var(--ds-success);-webkit-mask-image:var(--ds-ico-check);mask-image:var(--ds-ico-check)}
:root body #screen-vocab .vocab-content{min-width:0}
:root body #screen-vocab .vocab-word{font-size:1rem;font-weight:700;color:var(--ds-text);padding:0;min-height:0;text-align:left;background:none;border:0}
:root body #screen-vocab .vocab-tr{font-size:.875rem;color:var(--ds-muted);margin:1px 0 0}
:root body #screen-vocab .vocab-ex{font-size:var(--ds-fs-small);color:var(--ds-faint);border:0;padding:0;margin:3px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-style:italic}
:root body #screen-vocab .vocab-meta{display:flex;flex-wrap:nowrap;gap:5px;margin-top:6px;align-items:center;overflow:hidden;-webkit-mask-image:linear-gradient(90deg,#000 88%,transparent);mask-image:linear-gradient(90deg,#000 88%,transparent)}
:root body #screen-vocab .vocab-meta>span{flex:none}
:root body .vocab-status[data-status=mastered]{background:var(--ds-success-soft);color:var(--ds-success)}
:root body .vocab-status[data-status=due]{background:var(--ds-warning-soft);color:var(--ds-warning)}
:root body #screen-vocab .vocab-meta .vocab-source{display:none}
:root body #screen-vocab .vocab-actions{display:flex;flex-direction:column;gap:2px;align-self:center}
:root body #screen-vocab .vocab-actions .icon-btn{border:0;width:34px;height:34px;min-width:34px;min-height:34px}
:root body #screen-vocab .vocab-actions .del{font-size:13px;color:var(--ds-faint)}
:root body{--ds-ico-word:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
 --ds-ico-phrase:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H2v6h4l5 4V5Z'/%3E%3Cpath d='M15.5 8.5a5 5 0 0 1 0 7M19 5a10 10 0 0 1 0 14'/%3E%3C/svg%3E");
 --ds-ico-verb:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h10m-4-5 5 5-5 5'/%3E%3Cpath d='M20 5v14'/%3E%3C/svg%3E");
 --ds-ico-check:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E")}

/* ---------- 6. Progress ---------- */
:root body .progress-parrot{width:72px;height:72px;filter:drop-shadow(0 6px 14px rgba(255,77,109,.25))}
:root body .progress-overview.card{background:none!important;border:0;box-shadow:none;padding:0}
:root body .progress-level{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--ds-card-bg);border:1px solid var(--ds-line);border-radius:var(--ds-r);padding:14px 16px;margin-bottom:10px}
:root body .progress-level>div{display:flex;flex-direction:column;padding-left:48px;position:relative;min-height:40px;justify-content:center}
:root body .progress-level>div:before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);width:38px;height:38px;border-radius:12px;background:var(--ds-warning-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f59e0b' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 19v-5M12 19V9M18 19V5'/%3E%3C/svg%3E") center/22px no-repeat}
:root body #progress-level{font-size:1.25rem;font-weight:800;letter-spacing:-.3px}
:root body .confidence-pill{background:var(--ds-accent-soft);color:var(--ds-accent-text);min-height:30px;padding:4px 12px;font-size:.75rem}
:root body .progress-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 10px}
:root body .progress-totals>div{background:var(--ds-card-bg);border:1px solid var(--ds-line);border-radius:var(--ds-r);padding:12px 8px 12px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:2px}
:root body .progress-totals>div:before{content:"";width:28px;height:28px;margin-bottom:4px;background:var(--ds-warning);-webkit-mask:var(--ds-ico-bolt) center/contain no-repeat;mask:var(--ds-ico-bolt) center/contain no-repeat}
:root body .progress-totals>div:nth-child(2):before{background:var(--ds-accent);-webkit-mask-image:var(--ds-ico-flame);mask-image:var(--ds-ico-flame)}
:root body .progress-totals>div:nth-child(3):before{background:var(--ds-accent);-webkit-mask-image:var(--ds-ico-target);mask-image:var(--ds-ico-target)}
:root body .progress-totals strong{font-size:1.375rem;font-weight:800;line-height:1.1}
:root body .progress-totals span{font-size:var(--ds-fs-caption);color:var(--ds-muted);line-height:1.3}
:root body #progress-daily{background:var(--ds-card-bg);border:1px solid var(--ds-line);border-radius:var(--ds-r);padding:12px 14px}
:root body .progress-section-title{display:flex;justify-content:space-between;align-items:center;margin:22px 2px 10px}
:root body .progress-section-title h2{margin:0}
:root body .calendar-card .cal-day{border-radius:50%;aspect-ratio:1;min-height:0;font-weight:600;font-size:.8125rem;color:var(--ds-text);background:transparent}
:root body .calendar-card .cal-day.active{background:var(--ds-accent-strong);color:#fff}
:root body .calendar-card .cal-day.active:after{display:none}
:root body .calendar-card .cal-day.today{box-shadow:inset 0 0 0 2px var(--ds-accent);color:var(--ds-accent-text)}
:root body .calendar-card .cal-day.active.today{color:#fff;box-shadow:0 0 0 3px var(--ds-accent-soft)}
:root body .calendar-card .cal-day.selected{outline:2px solid var(--ds-text);outline-offset:1px}
:root body .calendar-card .cal-day.muted,:root body .calendar-card .cal-day[aria-disabled=true]{color:var(--ds-faint)}
:root body .calendar-arrow{width:36px;height:36px;border-radius:12px;background:var(--ds-raised);border:1px solid var(--ds-line);color:var(--ds-text)}
:root[data-talkio-theme=dark] body .calendar-arrow{background:rgba(255,255,255,.04)}
:root body .calendar-weekdays span{color:var(--ds-faint);font-size:var(--ds-fs-caption);font-weight:600}
:root body .calendar-legend i{background:var(--ds-accent)}
:root body .topic-card{background:var(--ds-raised);border:1px solid var(--ds-line);border-radius:var(--ds-r-sm);padding:12px 14px;margin-bottom:8px}
:root[data-talkio-theme=dark] body .topic-card{background:var(--ds-sunken)}
:root body .section-dot{background:var(--ds-accent)}
:root body .progress-fold>summary{min-height:56px;display:flex;align-items:center;justify-content:space-between;font-weight:700;cursor:pointer;list-style:none}
:root body .progress-fold>summary::-webkit-details-marker{display:none}
:root body .progress-fold>summary span{color:var(--ds-muted);font-weight:500;font-size:.8125rem}
:root body .stat-grid>div,:root body .stat-grid .stat{background:var(--ds-raised);border:1px solid var(--ds-line);border-radius:var(--ds-r-sm)}
:root[data-talkio-theme=dark] body .stat-grid>div{background:var(--ds-sunken)}
:root body .achievement-icon,:root body .badge-symbol{border-radius:14px;background:var(--ds-warning-soft);color:var(--ds-warning)}
:root body .history-item{border-bottom:1px solid var(--ds-line)}
:root body .skill-node{background:var(--ds-raised);border:1px solid var(--ds-line);border-radius:var(--ds-r-sm)}
:root[data-talkio-theme=dark] body .skill-node{background:var(--ds-sunken)}
:root body{--ds-ico-bolt:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 2 4 14h7l-1 8 9-12h-7l1-8Z'/%3E%3C/svg%3E");
 --ds-ico-flame:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 2c1 5-4 5.5-3 10-2-1-3-3-3-3s-3 3-3 6.5A8 8 0 0 0 20 15.5C20 9 15 6 13 2Z'/%3E%3C/svg%3E");
 --ds-ico-target:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Ccircle cx='12' cy='12' r='1.5' fill='black'/%3E%3C/svg%3E")}

/* ---------- 7. Profile & settings ---------- */
:root body .profile-top{min-height:48px}
:root body .profile-gear,:root body #settings-back{width:42px;height:42px;border-radius:14px;background:var(--ds-card-bg);border:1px solid var(--ds-line);color:var(--ds-text)}
:root body .profile-identity{background:var(--ds-card-bg);border:1px solid var(--ds-line);border-radius:var(--ds-r);padding:14px;gap:14px;align-items:center;margin:10px 0}
:root body .profile-identity h1{font-size:1.25rem;margin:0 0 2px;letter-spacing:-.3px}
:root body .profile-avatar{width:56px;height:56px;border-radius:50%;background:var(--ds-accent-soft);color:var(--ds-accent-text);font-size:1.25rem;box-shadow:0 0 0 2px var(--ds-bg),0 0 0 3.5px var(--ds-accent-line);overflow:hidden}
:root body .profile-level-summary{padding:0 4px;color:var(--ds-muted)}
:root body .profile-plan-card{position:relative;background:linear-gradient(135deg,var(--ds-accent-soft),transparent 120%),var(--ds-surface);border:1.5px solid var(--ds-accent-line);border-radius:var(--ds-r);padding:16px 16px 16px 66px;margin:12px 0 18px;box-shadow:none}
:root body .profile-plan-card:before{content:"";position:absolute;left:16px;top:18px;width:38px;height:38px;border-radius:12px;background:var(--ds-warning-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f59e0b'%3E%3Cpath d='M3 8l4.5 4L12 5l4.5 7L21 8l-2 11H5L3 8Z'/%3E%3C/svg%3E") center/22px no-repeat}
:root body .profile-plan-card h2{font-size:1.5rem;font-weight:800;margin:2px 0}
:root body .profile-statistics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
:root body .profile-stat{display:flex;align-items:center;gap:10px;background:var(--ds-card-bg);border:1px solid var(--ds-line);border-radius:var(--ds-r-sm);padding:12px;text-align:left;box-shadow:none;min-width:0}
:root body .profile-stat b{display:block;font-size:1.375rem;font-weight:800;flex:none;min-width:1.4em;color:var(--ds-text)}
:root body .profile-stat span{font-size:var(--ds-fs-small);color:var(--ds-muted);line-height:1.3;overflow-wrap:normal;word-break:normal;min-width:0}
:root body .profile-block{margin:18px 0}
:root body .language-row{background:var(--ds-card-bg);border:1px solid var(--ds-line);border-radius:var(--ds-r-sm);padding:12px 14px;margin-bottom:8px;color:var(--ds-text)}
:root body .language-row.active{border-color:var(--ds-accent-line);background:linear-gradient(90deg,var(--ds-accent-soft),transparent),var(--ds-surface)}
:root body .profile-menu-row{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:12px;align-items:center;width:100%;min-height:62px;background:var(--ds-card-bg);border:1px solid var(--ds-line);border-radius:var(--ds-r-sm);padding:10px 14px 10px 12px;margin-bottom:8px;color:var(--ds-text);text-align:left;transition:transform var(--ds-fast) var(--ds-ease)}
:root body .profile-menu-row b{font-weight:650}
:root body .profile-menu-row small{display:block;color:var(--ds-muted);font-size:var(--ds-fs-small);margin-top:2px}
:root body .profile-menu-row>span:last-child{color:var(--ds-faint);font-size:1.25rem}
:root body .profile-menu-row:not(:has(.profile-menu-icon)){grid-template-columns:minmax(0,1fr) auto}
:root body .card .profile-menu-row{background:var(--ds-raised)}
:root[data-talkio-theme=dark] body .card .profile-menu-row{background:var(--ds-sunken)}
:root body .profile-menu-icon{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:var(--ds-accent-soft);color:var(--ds-accent)}
:root body .profile-menu-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
:root body .profile-menu-icon:is([data-tone=teal],[data-menu=account]){background:var(--ds-teal-soft);color:var(--ds-teal)}
:root body .profile-menu-icon:is([data-tone=violet],[data-menu=talkio]){background:var(--ds-violet-soft);color:var(--ds-violet)}
:root body .profile-menu-icon:is([data-tone=info],[data-menu=gear],[data-menu=interface]){background:var(--ds-info-soft);color:var(--ds-info)}
:root body .profile-menu-icon:is([data-tone=warning],[data-menu=reminders],[data-menu=gift]){background:var(--ds-warning-soft);color:var(--ds-warning)}
:root body .profile-menu-icon:is([data-tone=success],[data-menu=invite]){background:var(--ds-success-soft);color:var(--ds-success)}
:root body .settings-top{display:flex;align-items:center;gap:12px;margin-bottom:12px}
:root body .settings-top h1{margin:2px 0 0;font-size:1.5rem}
:root body .settings-group .card{margin-bottom:12px}
:root body .settings-group h3{font-size:.9375rem;margin:14px 0 4px}
:root body .interest-option,:root body .profile-hybrid .interest-option{position:relative;display:inline-flex;border-radius:var(--ds-r-pill);background:var(--ds-card-bg);border:1px solid var(--ds-line);color:var(--ds-text);min-height:38px;padding:7px 14px;font-size:.8125rem;font-weight:550;cursor:pointer}
:root body .interest-option input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
:root body .interest-option:has(input:checked):before{content:"✓";font-weight:800;margin-right:2px}
:root body .interest-option:has(input:focus-visible){outline:2px solid var(--ds-accent);outline-offset:2px}
:root body .interest-option.active,:root body .interest-option[aria-pressed=true],:root body .interest-option:has(input:checked),:root body .profile-hybrid .interest-option:has(input:checked){background:var(--ds-accent-soft);border-color:var(--ds-accent-line);color:var(--ds-accent-text)}
:root body .settings-status{color:var(--ds-success)}
:root body .privacy-delete{color:var(--ds-accent-strong)!important;border-color:var(--ds-accent-line)!important;background:transparent!important}
:root body .account-legal a{color:var(--ds-muted)}
:root body .profile-achievement{background:var(--ds-card-bg);border:1px solid var(--ds-line);border-radius:var(--ds-r-sm)}
:root body .profile-achievement.locked{opacity:.55}

/* ---------- 8. Plans / paywall (data from /api/tiers; prices and features are never hard-coded here) ---------- */
:root body #settings-talkio>.card:first-child{background:transparent;border:0;box-shadow:none;padding:0}
:root body #pricing-wrap .paywall-heading{grid-template-columns:minmax(0,1fr) 96px;align-items:center}
:root body #pricing-wrap .paywall-heading img{grid-column:2;grid-row:1;width:96px;height:96px;filter:drop-shadow(0 8px 18px rgba(255,77,109,.3))}
:root body #pricing-wrap .paywall-heading>div{grid-column:1;grid-row:1}
:root body #pricing-wrap h3{font-size:1.5rem;font-weight:800;letter-spacing:-.6px;line-height:1.15}
:root body #pricing-wrap .paywall-copy{color:var(--ds-muted);margin:6px 0 16px}
:root body #pricing-wrap .pw2-results>div,:root body #pricing-wrap .pw2-skill{background:var(--ds-card-bg);border:1px solid var(--ds-line)}
:root body #pricing-wrap .paywall-methods button,:root body #pricing-wrap .paywall-tabs button{background:var(--ds-card-bg);border:1px solid var(--ds-line);color:var(--ds-text);border-radius:var(--ds-r-pill);min-height:42px}
:root body #pricing-wrap .pw2-methods{background:var(--ds-card-bg);border:1px solid var(--ds-line);border-radius:var(--ds-r-pill);padding:4px;gap:4px}
:root body #pricing-wrap .pw2-methods button{border:0;background:transparent;min-height:38px}
:root body #pricing-wrap button[aria-pressed=true]{background:var(--ds-grad);color:#fff;border-color:transparent}
:root body #pricing-wrap .pw2-methods button[aria-pressed=true] b{color:#fff}
:root body #pricing-wrap .pw2-plan{background:var(--ds-card-bg);border:1px solid var(--ds-line);border-radius:var(--ds-r-lg);padding:20px 16px 16px}
:root body #pricing-wrap .pw2-pro{border:1.5px solid var(--ds-accent-line);background:linear-gradient(160deg,var(--ds-accent-soft),transparent 70%),var(--ds-surface);box-shadow:0 12px 30px rgba(255,77,109,.12)}
:root body #pricing-wrap .pw2-badge{background:var(--ds-grad);left:auto;right:14px;top:-11px;padding:3px 11px}
:root body #pricing-wrap .pw2-plan h4{font-size:1.1875rem;font-weight:750}
:root body #pricing-wrap .pw2-price{font-size:1.5rem;font-weight:800;letter-spacing:-.4px}
:root body #pricing-wrap li>span{color:var(--ds-accent)}
:root body #pricing-wrap .paywall-primary{background:var(--ds-grad);color:#fff;border-radius:var(--ds-r-sm);box-shadow:var(--ds-shadow-accent);font-weight:750}
:root body #pricing-wrap .pw2-secondary{border-color:var(--ds-line-strong);color:var(--ds-text);background:transparent;font-weight:700}
:root body #pricing-wrap .paywall-later{color:var(--ds-accent-text);font-weight:650}
:root body #pricing-wrap .paywall-current{background:var(--ds-card-bg);border:1px solid var(--ds-line)}

/* ---------- 9. Grammar, Roleplay catalog ---------- */
:root body .rp-header{display:flex;align-items:center;gap:12px}
:root body .rp-back{width:42px;height:42px;border-radius:14px;background:var(--ds-card-bg);border:1px solid var(--ds-line);color:var(--ds-text)}
:root body .rp-categories{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
:root body .rp-scenario,:root body .grammar-step,:root body .grammar-course,:root body .grammar-practice,:root body .grammar-blocked{background:var(--ds-card-bg);border:1px solid var(--ds-line);border-radius:var(--ds-r);box-shadow:var(--ds-card-shadow)}
:root body .rp-icon{border-radius:14px;background:var(--ds-violet-soft)}
:root body .rp-level{border-radius:var(--ds-r-pill);background:var(--ds-accent-soft);color:var(--ds-accent-text)}
:root body .rp-scenario.rp-recommended,:root body .rp-recommended{border-radius:var(--ds-r-lg);border:1.5px solid var(--ds-accent-line);background:linear-gradient(160deg,var(--ds-accent-soft),transparent 75%),var(--ds-surface);box-shadow:0 10px 26px rgba(255,77,109,.12)}
:root body .rp-header h1{font-size:1.5rem;margin:0;line-height:1.15}
:root body .grammar-note{background:var(--ds-accent-soft);border-radius:var(--ds-r-sm);border:0}

/* ---------- 10. System states ---------- */
:root body .empty,:root body .rp-empty{color:var(--ds-muted);text-align:center;padding:28px 16px}
:root body .read-error,:root body #vocab-error,:root body .rp-error,:root body .home-error{background:var(--ds-accent-soft);border:1px solid var(--ds-accent-line);border-radius:var(--ds-r);color:var(--ds-text);padding:14px}
:root body .talkio-skeleton,:root body .sk-line,:root body .sk-icon,:root body .sk-number,:root body .sk-button{background:linear-gradient(90deg,var(--ds-sunken) 0%,var(--ds-surface) 50%,var(--ds-sunken) 100%);background-size:200% 100%;animation:ds-shimmer 1.3s linear infinite;border-radius:10px}
:root body .talkio-loader-label{color:var(--ds-muted)}
:root body .dashboard-pending{opacity:.7}

/* ---------- 11. Motion ---------- */
@keyframes ds-rise{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes ds-sheet{from{opacity:0;transform:translateY(16px) scale(.98)}to{opacity:1;transform:none}}
@keyframes ds-shimmer{from{background-position:200% 0}to{background-position:-200% 0}}
:root body .screen.active>*{animation:ds-rise var(--ds-normal) var(--ds-ease) both}
:root body .screen.active>*:nth-child(2){animation-delay:30ms}:root body .screen.active>*:nth-child(3){animation-delay:60ms}:root body .screen.active>*:nth-child(n+4){animation-delay:80ms}
@media(prefers-reduced-motion:reduce){:root body *,:root body *:before,:root body *:after{animation:none!important;transition:none!important}}
/* Narrow phones */
@media(max-width:350px){:root body .home-greeting h1{font-size:1.625rem}:root body .home-greeting{grid-template-columns:minmax(0,1fr) 72px}:root body .home-mascot,:root body .home-mascot img{width:72px;height:72px}
 :root body .home-daily{grid-template-columns:1fr}:root body .progress-totals strong{font-size:1.125rem}:root body select{max-width:50%}}
:root body #interests-options{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
:root body .progress-overview .progress-level,:root body .progress-overview .progress-totals{border-top:1px solid var(--ds-line);border-bottom:1px solid var(--ds-line)}:root body .progress-overview .progress-totals{border:0;padding:0}:root body .progress-overview .progress-level{border:1px solid var(--ds-line)}

/* ---------- 12. Readability (legacy captions were 10–11px) ---------- */
:root body .home-eyebrow,:root body .learning-eyebrow,:root body .learning-kicker{font-size:var(--ds-fs-caption);letter-spacing:.8px}
:root body .muted.small,:root body .small,:root body .settings-status,:root body .profile-block>p,:root body .home-goal-copy{font-size:var(--ds-fs-small)}
:root body .home-streak .home-muted,:root body .home-next-meta,:root body .topic-subtype,:root body .calendar-legend,:root body .progress-fold summary>span,
:root body .learning-hybrid .stat-grid .muted,:root body .skill-node p,:root body .skill-group-title,:root body .achievement-row p,:root body .learning-hybrid .history-item .small,
:root body .profile-achievement small,:root body .dictionary-toolbar .small,:root body .progress-totals span{font-size:var(--ds-fs-small);line-height:1.35}
:root body .calendar-weekdays span{font-size:var(--ds-fs-caption)}
:root body .card .row,:root body .card .row label,:root body .card .row>span{font-size:var(--ds-fs-body)}
:root body #pricing-wrap li{font-size:.9rem;line-height:1.5}
:root body #pricing-wrap .pw2-tagline,:root body #pricing-wrap .paywall-copy,:root body #pricing-wrap .pw2-free{font-size:.875rem}
:root body #pricing-wrap .paywall-footnote{font-size:var(--ds-fs-small);line-height:1.55}
:root body #pricing-wrap .pw2-price small,:root body #pricing-wrap button small,:root body #pricing-wrap .paywall-methods span{font-size:var(--ds-fs-caption)}
:root body #pricing-wrap .pw2-results span{font-size:var(--ds-fs-small)}
:root body dialog p{font-size:.9375rem;line-height:1.55}
/* Larger captions: keep compact cards on one line */
:root body .home-daily{grid-template-columns:auto minmax(0,1fr)}
:root body .home-daily .home-streak .home-muted{white-space:nowrap}
:root body .profile-plan-card{display:block}
:root body .profile-plan-card .profile-link{display:inline-flex;align-items:center;gap:6px;margin-top:10px;min-height:36px;padding:0}

/* 2026-11-13: hidden practice cards no longer hold empty grid cells (one card looked unfinished), and menu rows end in a
   quiet chevron instead of a ↗ that phones draw as an emoji. */
:root body #home-practice .home-card[hidden]{display:none}
:root body #home-practice{display:flex;flex-wrap:wrap}:root body #home-practice>h2{flex:0 0 100%}:root body #home-practice .home-card{flex:1 1 100px}
:root body .profile-menu-row .menu-chevron{margin-left:auto;color:var(--ds-muted);opacity:.7}
