/* Visual Sprint 3. Reuse Home Hybrid tokens; scope to learning screens only. */
body[data-learning-active=true]{background:var(--home-bg)}
.learning-hybrid{--bg:var(--home-bg);--secondary-bg:var(--home-surface);--text:var(--home-text);--muted:var(--home-muted);--accent:var(--home-accent);--brand:var(--home-brand);--brand-soft:var(--home-soft);--border:var(--home-line);--shadow:var(--home-shadow);max-width:520px;margin:auto;padding:24px 20px 28px;color:var(--text);overflow-wrap:anywhere}
.learning-hybrid h1{font-size:1.875rem;letter-spacing:-1px;line-height:1.15;margin:8px 0 12px;font-weight:650}.learning-hybrid h2{font-size:1.0625rem;letter-spacing:-.3px;margin:0 0 12px;font-weight:650}.learning-hybrid .small{font-size:.75rem}.learning-hybrid .muted{color:var(--muted)}
.learning-header{display:flex;align-items:center;justify-content:space-between;gap:16px}.learning-header>div{min-width:0}.learning-header .active-language{margin:0}.learning-eyebrow{font-size:.625rem;letter-spacing:1.15px;font-weight:650;color:var(--muted)}.learning-header-icon{display:grid;place-items:center;width:52px;height:52px;flex:none;border:1px solid var(--border);border-radius:18px;background:var(--secondary-bg);color:var(--accent)}.learning-header-icon svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.progress-parrot{object-fit:contain;flex:none}
.learning-intro{font-size:.8125rem;line-height:1.5;color:var(--muted);margin:18px 0 22px}.learning-hybrid .card{background:var(--secondary-bg);border:1px solid var(--border);border-radius:var(--home-radius);padding:20px;box-shadow:var(--shadow);margin:16px 0}.learning-hybrid .btn{min-height:48px;font-size:.875rem;border-radius:14px;margin:8px 0}.learning-hybrid .btn-primary{background:var(--brand);color:#fff}.learning-hybrid .btn-secondary{background:var(--brand-soft);border:1px solid transparent;color:var(--accent)}.learning-link{background:none;border:0;color:var(--accent);font:inherit;font-size:.75rem;min-height:44px;min-width:44px;padding:10px 0;text-align:left}.learning-kicker{display:block;color:var(--muted);font-size:.6875rem;line-height:1.5}
.progress-overview{background:var(--brand-soft)!important}.progress-level{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-bottom:18px}.progress-level strong{display:block;color:var(--text);font-size:2.25rem;font-weight:650;line-height:1.2;margin-top:4px;letter-spacing:-1px}.confidence-pill{font-size:.6875rem;color:var(--muted);border:1px solid var(--border);border-radius:12px;padding:8px 10px;max-width:54%;line-height:1.5}.progress-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;border-top:1px solid var(--border);padding-top:16px}.progress-totals strong{display:block;font-size:1.1875rem;line-height:1.4}.progress-totals span{display:block;font-size:.625rem;color:var(--muted);line-height:1.5}.progress-daily-copy{font-size:.75rem;line-height:1.5;margin:18px 0 8px}.learning-hybrid .progress-track{height:5px;background:var(--home-track);margin:0}.learning-hybrid .progress-fill{background:var(--accent)}
.progress-section-title,.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.progress-section-title{margin:22px 0 -6px}.progress-section-title h2{margin:0}.section-dot{width:7px;height:7px;flex:none;background:var(--accent);border-radius:50%}.topics-card>p{margin:0 0 12px}.strong-heading{padding-top:22px;border-top:1px solid var(--border);margin-top:16px}.strong-heading h2{margin-bottom:4px}.topic-card{border:1px solid var(--border);border-radius:16px;padding:14px;margin:10px 0;background:var(--bg)}.topic-card h3{margin:0 0 6px;font-size:.9375rem;font-weight:650;line-height:1.4}.topic-subtype{display:block;font-size:.6875rem;font-weight:400;color:var(--muted);margin-top:3px}.topic-card p{font-size:.75rem;line-height:1.5;margin:0;color:var(--muted)}.topic-card .learning-link{display:block;padding:8px 0 0;margin-top:4px;font-size:.8125rem}.topic-card.strong{border-left:3px solid var(--success)}#trend-text{line-height:1.5;margin-top:12px}
.calendar-card .cal-header{gap:6px;margin-bottom:16px}.cal-header>div{text-align:center;min-width:0}.cal-header strong{font-size:.9375rem}.cal-header .small{display:block;font-weight:400;margin-top:3px}.calendar-arrow{width:44px;height:44px;flex:none;background:var(--bg);border:1px solid var(--border);border-radius:14px;color:var(--text);font-size:1.75rem;padding:0;line-height:1}.calendar-arrow:disabled{opacity:.3}.calendar-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));color:var(--muted);font-size:.625rem;text-align:center;margin-bottom:6px}.calendar-card .cal-grid{gap:0}.calendar-card .cal-day{height:44px;position:relative;border-radius:12px;font-size:.75rem;min-height:44px}.calendar-card .cal-day.active{background:var(--brand-soft);color:var(--accent);font-weight:650}.calendar-card .cal-day.active:after{content:"";position:absolute;width:3px;height:3px;background:currentColor;border-radius:50%;bottom:5px}.calendar-card .cal-day.selected{background:var(--brand);color:#fff}.calendar-card .cal-day.today{outline:2px solid var(--accent);outline-offset:-4px}.calendar-card .cal-day:disabled{opacity:.3}.calendar-legend{display:flex;justify-content:space-between;gap:8px;color:var(--muted);font-size:.625rem;margin:14px 0}.calendar-legend i{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--accent);margin-right:4px}#day-detail{border-top:1px solid var(--border);padding-top:14px;font-size:.75rem;line-height:1.6;min-height:52px}.day-metrics{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:8px}.calendar-card .talkio-loader-head{min-height:90px}.calendar-card .sk-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.sk-calendar span{height:44px;background:var(--home-track);border-radius:10px;animation:talkio-glow 1.8s ease-in-out infinite}
.progress-fold{padding:0!important;overflow:hidden}.progress-fold summary{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 12px;min-height:64px;padding:18px 20px;cursor:pointer;font-size:.9375rem;font-weight:650;list-style:none}.progress-fold summary::-webkit-details-marker{display:none}.progress-fold summary>span{font-size:.6875rem;color:var(--muted);font-weight:400;margin-left:auto}.progress-fold summary:after{content:"+";font-size:1.125rem;color:var(--accent)}.progress-fold[open] summary:after{content:"−"}.progress-fold[open] summary{border-bottom:1px solid var(--border)}.progress-fold>div{margin:16px 20px}.progress-fold>.btn{margin:0 20px 20px;width:calc(100% - 40px)}.learning-hybrid .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.learning-hybrid .stat-grid>div{border-bottom:1px solid var(--border);padding-bottom:12px}.learning-hybrid .stat-grid .num{font-size:1.375rem}.learning-hybrid .stat-grid .muted{font-size:.6875rem;line-height:1.5}.skill-node{display:grid;grid-template-columns:8px minmax(0,1fr);gap:12px;padding:12px 0;border-bottom:1px solid var(--border)}.skill-node:last-child{border:0}.skill-node:before{content:"";width:6px;height:6px;border-radius:50%;background:var(--accent);margin-top:7px}.skill-node strong{display:block;font-size:.8125rem;font-weight:650}.skill-node p{margin:4px 0 0;color:var(--muted);font-size:.6875rem;line-height:1.5}.skill-group-title{font-size:.6875rem;color:var(--muted);margin:18px 0 4px}.achievement-row{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid var(--border);font-size:.8125rem}.achievement-row:last-child{border:0}.achievement-icon{display:grid;place-items:center;width:40px;height:40px;background:var(--brand-soft);border-radius:13px;flex:none;color:var(--accent)}.achievement-icon svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.7}.achievement-row p{margin:4px 0 0;font-size:.6875rem;color:var(--muted);line-height:1.5}.learning-hybrid .history-item{font-size:.8125rem;line-height:1.4;min-height:76px}.learning-hybrid .history-item .small{display:block;margin-top:5px;font-size:.6875rem}
.dictionary-controls .search{border:1px solid var(--border);background:var(--secondary-bg);border-radius:16px;min-height:52px;font-size:1rem;padding:14px 16px;margin-bottom:10px}.dictionary-controls .filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;overflow:visible;padding:0}.dictionary-controls .filter{white-space:normal;font-size:.6875rem;padding:8px 5px;border-radius:12px;background:var(--home-track);color:var(--muted);line-height:1.4;min-height:44px;min-width:0}.dictionary-controls .filter.active{background:var(--brand);color:#fff}.dictionary-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;margin-top:10px}.dictionary-toolbar .small{font-size:.6875rem}#screen-vocab #vocab-card{border:0;background:none;padding:0;box-shadow:none;margin-top:4px;min-height:0}#screen-vocab .vocab-item{grid-template-columns:minmax(0,1fr) 44px;gap:12px;padding:18px 16px;margin:12px 0;border:1px solid var(--border);border-radius:var(--home-radius);background:var(--secondary-bg);box-shadow:var(--shadow);align-items:start}#screen-vocab .vocab-actions{width:44px;gap:8px}#screen-vocab .vocab-actions .icon-btn{width:44px;height:44px;min-width:44px;min-height:44px;border:1px solid var(--border);background:var(--bg);border-radius:13px;font-size:1.25rem}#screen-vocab .vocab-actions .icon-btn.active{background:var(--brand-soft);color:var(--accent);border-color:var(--brand-soft)}#screen-vocab .vocab-actions .del{color:var(--muted);font-size:1rem}#screen-vocab .vocab-open{font-size:1.0625rem;line-height:1.4;letter-spacing:-.25px;min-height:44px}#screen-vocab .vocab-tr{font-size:.875rem;color:var(--text);line-height:1.5;margin-top:6px}#screen-vocab .vocab-ex{font-size:.75rem;line-height:1.6;margin:12px 0;padding-left:10px;border-left:2px solid var(--border);font-style:normal}#screen-vocab .vocab-meta{display:flex;gap:5px;flex-wrap:wrap;margin-top:12px;align-items:center;color:var(--muted);font-size:.625rem;line-height:1.5}.vocab-status{background:var(--brand-soft);color:var(--accent);padding:4px 7px;border-radius:7px}.vocab-source{display:block;width:100%;margin-top:2px}#screen-vocab #favorite-review{width:100%;text-align:left;padding:14px 16px;min-height:52px}#screen-vocab .sk-vocab-row{background:var(--secondary-bg);border:1px solid var(--border);border-radius:var(--home-radius);padding:18px 16px;margin:12px 0;min-height:180px}#screen-vocab .sk-rail .sk-icon{width:44px;height:44px;margin:0;border-radius:13px}.learning-hybrid .empty{padding:24px 12px;font-size:.8125rem;line-height:1.6}.learning-hybrid .empty .parrot{width:68px;height:68px;object-fit:contain}.learning-hybrid .empty .btn{width:auto;padding:12px 16px}.topics-card .empty{padding:16px 0}.topics-card .empty .parrot{width:48px;height:48px}.learning-hybrid.dashboard-pending>*:not(.talkio-screen-loader){visibility:hidden;pointer-events:none}.learning-hybrid .talkio-screen-loader{top:24px;left:20px;right:20px}.learning-hybrid .sk-summary{grid-template-columns:repeat(3,minmax(0,1fr));min-height:220px}
body[data-learning-active=true] nav{background:var(--home-surface);border-color:var(--home-line)}body[data-learning-active=true] nav button{color:var(--home-muted)}body[data-learning-active=true] nav button.active{color:var(--home-accent)}
body[data-learning-active=true] #learning-detail{background:var(--home-surface);color:var(--home-text);border-color:var(--home-line);border-radius:var(--home-radius)}body[data-learning-active=true] #learning-detail .muted{color:var(--home-muted)}
.learning-hybrid button:focus-visible,.learning-hybrid summary:focus-visible,.learning-hybrid input:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:365px){.learning-hybrid{padding-left:16px;padding-right:16px}.learning-hybrid .card{padding:16px}.calendar-card{padding:8px!important}.learning-hybrid .talkio-screen-loader{left:16px;right:16px}}
@media(prefers-reduced-motion:reduce){.learning-hybrid *{animation:none!important;transition:none!important}}

.calendar-card .cal-grid:has(.talkio-loader),.calendar-card .cal-grid:has(.read-error){display:block}

.progress-daily-copy strong{white-space:nowrap}
