/* Both learning tracks use the current theme's own surfaces and colours. */
html[data-route-kind="home"] #learningMain{display:grid;grid-template-columns:minmax(0,3fr) minmax(290px,2fr);grid-template-rows:min-content 1fr auto;column-gap:40px;align-items:start}
html[data-route-kind="home"] .intro{grid-column:1;grid-row:1;text-align:left;padding:50px 0 20px!important}
html[data-route-kind="home"] .intro h1{max-width:660px;font-size:clamp(32px,3.6vw,50px)!important;line-height:1.16}
html[data-route-kind="home"] .workspace{display:contents!important}
html[data-route-kind="home"] .main-panel{grid-column:1;grid-row:2;max-width:none;margin:0;padding:0!important;min-width:0}
html[data-route-kind="home"] .intro-copy>p{display:none}
.learner-dashboard{grid-column:2;grid-row:1/span 2;margin-top:40px;padding:28px;background:var(--panel-solid,#fff);border:1px solid var(--line);border-radius:24px;box-shadow:0 12px 30px #171c3010;color:var(--text);min-width:0}
.learner-dashboard[hidden],.home-practice[hidden]{display:none!important}
.dashboard-kicker{font-size:11px;letter-spacing:.1em;font-weight:750;color:var(--accent-dark)}
.learner-dashboard h2,.home-practice h2{font-size:25px;line-height:1.3;margin:14px 0}
.learner-dashboard p,.home-practice>aside>p,.home-practice>div>p{font-size:14px;color:var(--muted);line-height:1.65}
.dashboard-resume{display:flex;flex-direction:column;gap:8px;background:var(--accent);color:#fff!important;border-radius:12px;padding:17px 20px;margin:22px 0 12px;text-decoration:none;font-weight:750}
.dashboard-resume small{font-size:12px;font-weight:500;line-height:1.5}.dashboard-secondary{display:inline-block;font-size:13px;color:var(--accent-dark);margin-top:12px;text-decoration:none}
.dashboard-progress{display:flex;gap:18px;align-items:center;margin:22px 0}.dashboard-progress h2{font-size:21px}.dashboard-progress p{font-size:12px}.dashboard-ring{width:100px;height:100px;flex:none;border-radius:50%;background:conic-gradient(var(--accent) var(--progress),var(--line) 0);display:grid;place-items:center;position:relative}.dashboard-ring::before{content:"";position:absolute;inset:8px;border-radius:50%;background:var(--panel-solid,#fff)}.dashboard-ring strong{position:relative;font-size:23px}
.dashboard-tasks{margin:20px 0 0;font-size:13px;line-height:1.8}.dashboard-tasks summary{cursor:pointer;font-weight:650}.dashboard-tasks ol{padding-left:20px}.dashboard-tasks a{color:var(--accent-dark)}
#dashboardRewards #learningRewardBar{display:flex!important;margin:22px 0 0;padding:18px 0 0;border-top:1px solid var(--line);gap:10px;background:none;box-shadow:none;justify-content:flex-start}
#dashboardRewards .reward-pill{font-size:12px;padding:8px 10px;flex-wrap:wrap;border:1px solid var(--line);background:var(--panel-solid,#fff)}#dashboardRewards .reward-pill small{display:block;margin:0;width:100%;font-size:10px}#dashboardRewards .reward-coin{width:24px;height:24px}#dashboardRewards .reward-flame{width:20px;height:26px}
.home-practice{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,3fr) minmax(290px,2fr);gap:40px;margin-top:65px;padding-top:35px;border-top:1px solid var(--line);min-width:0}
.home-practice>div,.home-practice>aside{min-width:0}.home-practice-cards{display:flex;overflow-x:auto;gap:16px;scroll-snap-type:x mandatory;padding:5px 2px 14px;align-items:flex-start}.home-question{flex:0 0 100%;box-sizing:border-box;padding:24px;border:1px solid var(--line);border-radius:18px;background:var(--panel-solid,#fff);scroll-snap-align:start;min-width:0}.home-question h3{font-size:19px;line-height:1.6;margin:16px 0}.home-question p{font-size:14px;line-height:1.8}.home-question>a{display:inline-block;margin-top:18px;font-size:12px;color:var(--accent-dark)}.home-question small{display:block;margin-top:16px;color:var(--muted)}
.home-choices{display:grid;grid-template-columns:1fr 1fr;gap:10px}.home-choices button{cursor:pointer;min-height:48px;padding:12px;text-align:left;border:1px solid var(--line);border-radius:10px;background:var(--panel-solid,#fff);color:var(--text);font:inherit;font-size:14px;overflow-wrap:anywhere}.home-choices button:hover:not(:disabled){border-color:var(--accent)}.home-choices button.correct{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 12%,var(--panel-solid,#fff))}.home-choices button:disabled{cursor:default;opacity:.7}
.skill-glance{list-style:none;padding:0;margin:24px 0}.skill-glance li{position:relative;padding-bottom:25px}.skill-glance li:not(:last-child)::before{content:"";position:absolute;left:23px;top:44px;height:27px;border-left:2px dashed var(--line)}.skill-glance a{display:flex;gap:15px;align-items:center;color:var(--text);text-decoration:none}.skill-glance strong{font-size:14px}.skill-glance small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.skill-orb{display:grid;place-items:center;width:46px;height:46px;flex:none;border:2px solid var(--line);border-radius:50%;background:var(--panel-solid,#fff);color:var(--accent-dark);font-size:23px}
[data-skill-state="verified"] .skill-orb,[data-skill-state="verified"] .tree-leaf-dot{background:var(--accent);border-color:var(--accent);color:white;box-shadow:0 0 15px color-mix(in srgb,var(--accent) 40%,transparent)}[data-skill-state="initial"] .skill-orb,[data-skill-state="practice"] .skill-orb,[data-skill-state="practice"] .tree-leaf-dot{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 15%,var(--panel-solid,#fff))}[data-skill-state="locked"]{opacity:.6}.dashboard-milestone{padding:12px;border-radius:10px;background:color-mix(in srgb,var(--accent) 10%,transparent);color:var(--accent-dark)!important}.mobile-tabs{display:none}
.tree-zoom{display:flex;gap:10px;align-items:center;margin:16px 0;font-size:12px;color:var(--muted)}.tree-zoom button{background:var(--panel-solid,#fff);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:9px;cursor:pointer}.tree-branches{transform-origin:top left}
@media(max-width:900px){html[data-route-kind="home"] #learningMain{column-gap:22px;grid-template-columns:minmax(0,1.2fr) minmax(260px,1fr)}.home-practice{gap:22px;grid-template-columns:minmax(0,1.2fr) minmax(260px,1fr)}.learner-dashboard{padding:22px}.home-choices{grid-template-columns:1fr}}
@media(max-width:680px){html[data-route-kind="home"] #learningMain{display:block}html[data-route-kind="home"] .intro{padding:20px 0 15px!important}html[data-route-kind="home"] .intro h1{font-size:29px!important}html[data-route-kind="home"] .main-panel{width:100%}.learner-dashboard{margin:24px 0 0;padding:18px;border-radius:16px}.dashboard-ring{display:grid;width:76px;height:76px}.dashboard-ring strong{font-size:19px}.dashboard-progress{margin:0}.dashboard-progress h2{font-size:17px;margin:4px 0}.dashboard-progress p{margin:5px 0}.dashboard-resume{margin:12px 0 0;padding:12px 14px;font-size:14px}.dashboard-resume small{font-size:11px}.dashboard-kicker{font-size:10px}.learner-dashboard h2{font-size:19px}.learner-dashboard p{font-size:12px}.dashboard-tasks{margin-top:12px}#dashboardRewards #learningRewardBar{margin-top:14px;padding-top:12px;gap:8px}.home-practice{display:block;margin-top:32px;padding-top:20px}.home-practice>aside{margin-top:28px}.home-practice h2{font-size:22px}.home-question{padding:18px}.home-question h3{font-size:17px}.home-choices{grid-template-columns:1fr 1fr}.home-practice-cards>.home-question:not(:only-child){flex-basis:92%}.student-primary{display:none!important}.mobile-tabs{display:flex;position:fixed;z-index:85;bottom:0;left:0;right:0;background:var(--panel-solid,#fff);border-top:1px solid var(--line);padding:7px 8px calc(7px + env(safe-area-inset-bottom));box-shadow:0 -5px 20px #171c3010;justify-content:space-around}.mobile-tabs a{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:60px;color:var(--muted);text-decoration:none;font-size:11px;padding:5px 9px;border-radius:10px}.mobile-tabs a>span{font-size:21px;line-height:1}.mobile-tabs a[aria-current]{color:var(--accent-dark);background:color-mix(in srgb,var(--accent) 12%,transparent);font-weight:750}#appShell{padding-bottom:90px!important}.student-tools{bottom:85px}.search-accessories #searchPhoto{background:var(--accent);color:white;border:0;min-height:46px;padding:12px 18px;font-weight:700}.search-zero-examples{display:flex;flex-wrap:nowrap;overflow-x:auto}.search-zero-examples button{white-space:nowrap;flex:none}.home-practice-cards{overscroll-behavior-x:contain}.knowledge-drawer{padding-bottom:100px}}

html[data-route-kind="home"] .main-panel{min-height:0!important} .home-quick-chips{display:flex;gap:8px;overflow-x:auto;margin:16px 0;padding-bottom:6px}.home-quick-chips button{white-space:nowrap;flex:none;border:1px solid var(--line);border-radius:100px;padding:8px 12px;background:var(--panel-solid,#fff);color:var(--accent-dark);font:inherit;font-size:12px;cursor:pointer}html:not([data-route-kind="home"]) .home-quick-chips{display:none}

/* The search task leads; supporting learning and practice stay in distinct groups. */
html[data-route-kind="home"] #learningMain{padding-top:16px}
html[data-route-kind="home"] .intro{display:block;justify-self:stretch;width:100%!important;max-width:none;min-width:0;padding:28px 0 16px!important}
html[data-route-kind="home"] .intro-copy{max-width:none;padding:0}
html[data-route-kind="home"] .intro h1{margin:0;text-align:left;text-wrap:balance;letter-spacing:-.03em}
html[data-route-kind="home"] .main-panel{margin:0;min-width:0}
html[data-route-kind="home"] .search-accessories{justify-content:flex-start;margin:12px 0 0}
html[data-route-kind="home"] .search-accessories details{margin-left:0}
html[data-route-kind="home"] .home-quick-chips{margin:12px 0 0;gap:8px}
html[data-route-kind="home"] .home-quick-chips button{min-height:40px}
html[data-route-kind="home"] .learner-dashboard{margin-top:28px;border-radius:16px;box-shadow:none}
html[data-route-kind="home"] .home-practice{margin-top:48px;padding-top:32px}
/* An empty skill preview only repeats the course-map link already nearby. */
html[data-route-kind="home"] #homeSkillGlance:has(.skill-glance:empty){display:none}
html[data-route-kind="home"] .home-practice:has(#homeSkillGlance .skill-glance:empty){grid-template-columns:minmax(0,3fr) minmax(290px,2fr)}
@media(max-width:900px){html[data-route-kind="home"] .home-practice:has(#homeSkillGlance .skill-glance:empty){grid-template-columns:minmax(0,1.2fr) minmax(260px,1fr)}}
@media(min-width:681px) and (max-width:900px){
  html[data-route-kind="home"] #searchForm{display:flex;flex-direction:column;align-items:stretch}
  html[data-route-kind="home"] #searchForm .search-wrap{width:100%}
  html[data-route-kind="home"] #searchForm button[type="submit"]{min-height:48px}
}
@media(max-width:680px){
  html[data-route-kind="home"] #learningMain{padding-top:8px}
  html[data-route-kind="home"] .intro{padding:16px 0 14px!important}
  html[data-route-kind="home"] .intro h1{font-size:clamp(26px,7vw,30px)!important;line-height:1.2}
  html[data-route-kind="home"] .learner-dashboard{margin-top:24px}
  html[data-route-kind="home"] .home-practice{margin-top:28px;padding-top:24px}
  html[data-route-kind="home"] .student-tools{bottom:calc(88px + env(safe-area-inset-bottom))}
}
