/* The same learning task and readable controls in every existing theme. */
:root #query::placeholder{color:color-mix(in srgb,var(--text) 80%,var(--panel-solid));opacity:1}
:root #staticQuery::placeholder{color:#4b566c;opacity:1}
:root #query{font-size:16px;line-height:1.5;caret-color:var(--accent)}
:root #query[aria-invalid="true"]{outline:2px solid var(--accent);outline-offset:3px}
:root .search-accessories #searchPhoto{background:var(--panel-solid);color:var(--text);border:1px solid var(--line);min-height:44px;font-size:14px;font-weight:550}
:root .search-accessories button,:root #searchAdvanced summary{min-height:44px;font-size:14px}
:root #searchAdvanced summary{display:flex;align-items:center;cursor:pointer;gap:8px}
:root #searchAdvanced summary::before{content:'+';font-size:20px}
:root #searchAdvanced[open] summary::before{content:'−'}
:root #searchAdvanced #semanticNote{font-size:13px}
:root #searchAssistStatus:empty{display:none}
:root #searchAssistStatus{color:var(--text);line-height:1.6}
:root .dashboard-secondary{min-height:44px;display:inline-flex;align-items:center;font-size:14px}
:root #appShell{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei","Noto Sans CJK SC",sans-serif}
:root :is(button,a,input,summary):focus-visible{outline:3px solid var(--accent);outline-offset:3px}
:root ::selection{background:var(--accent);color:var(--button-on-accent,#fff)}
html[data-route-kind="home"] #learningMain{display:flex;flex-direction:column;max-width:1120px;margin:0 auto;padding-top:0;gap:0}
html[data-route-kind="home"] .intro{order:0;padding:20px 0 12px!important}
html[data-route-kind="home"] .intro h1{max-width:900px;font-size:clamp(25px,2.5vw,34px)!important;line-height:1.25;letter-spacing:-.02em}
html[data-route-kind="home"] .intro .eyebrow{display:none!important}
html[data-route-kind="home"] .main-panel{order:1;max-width:900px;width:100%;margin:0;padding:0!important}
.home-question-help{max-width:70ch;margin:0 0 24px;color:var(--text);font-size:16px;line-height:1.75}
html[data-route-kind="home"] #searchForm{display:flex!important;flex-direction:row;gap:12px;align-items:stretch;max-width:none;background:none;box-shadow:none;padding:0;border:0}
html[data-route-kind="home"] #searchForm .search-wrap{flex:1;min-width:0;background:var(--panel-solid);border:1px solid var(--line-strong,var(--line));border-radius:12px;min-height:58px}
html[data-route-kind="home"] #searchForm>.primary{min-height:58px;border-radius:12px;white-space:nowrap;padding:12px 24px;font-size:16px}
html[data-route-kind="home"] .search-accessories{margin:10px 0 0;gap:8px}
html[data-route-kind="home"] .home-quick-chips{flex-wrap:wrap;overflow:visible;margin:12px 0 0;gap:6px 12px}
html[data-route-kind="home"] .home-quick-chips button{white-space:normal;text-align:left;min-height:44px;border-radius:8px;font-size:14px;background:transparent;border-color:transparent;color:var(--text);text-decoration:underline;text-decoration-color:var(--line-strong,var(--line));text-underline-offset:5px;padding:7px 2px}
#homeLearningFlow{order:-1;margin:0 0 20px;padding:40px 0 28px;border-bottom:1px solid var(--line)}
html[data-route-kind="home"] .workspace{order:1}
.home-flow-steps{list-style:none;display:grid;grid-template-columns:1fr 1fr 1fr;gap:28px;padding:0;margin:0}
.home-flow-steps>li{min-width:0;padding:0 0 0 22px;border-left:1px solid var(--line)}
.home-flow-steps>li:first-child{padding-left:0;border:0}
.home-flow-steps h3{font-size:20px;margin:0 0 16px;line-height:1.3}
.home-flow-steps p{font-size:15px;line-height:1.75;margin:12px 0;color:var(--text)}
html[data-route-kind="home"] .learner-dashboard{order:3;width:100%;margin:0;padding:20px 0;background:transparent;border:0;border-radius:0;box-shadow:none!important}
html[data-route-kind="home"] .learner-dashboard[data-guest="true"] #dashboardContent{display:flex;align-items:center;flex-wrap:wrap;gap:8px 24px}
html[data-route-kind="home"] .learner-dashboard[data-guest="true"] h2{font-size:18px;margin:0}
html[data-route-kind="home"] .learner-dashboard[data-guest="true"] p{flex-basis:100%;margin:0;font-size:14px;color:var(--text)}
html[data-route-kind="home"] .learner-dashboard[data-guest="true"] .dashboard-resume{display:inline-flex;background:var(--panel-solid);color:var(--text)!important;font-size:14px;font-weight:550;border:1px solid var(--line);min-height:44px;align-items:center;margin:8px 0;padding:10px 14px}
html[data-route-kind="home"] .learner-dashboard[data-guest="true"] #dashboardRewards{display:none}
html[data-route-kind="home"] .dashboard-kicker{display:none}
html[data-route-kind="home"] .home-question>.dashboard-kicker{display:block;font-size:13px;letter-spacing:0;font-weight:500;color:var(--text)}
html[data-route-kind="home"] .home-practice{order:4;margin-top:24px;padding-top:24px;gap:28px}
html[data-route-kind="home"] .home-choices{grid-template-columns:1fr}
html[data-route-kind="home"] .home-choices button{font-size:16px;line-height:1.65;min-height:48px}
html[data-route-kind="home"] #dashboardRewards .reward-pill small{font-size:13px}
.search-trial{margin-top:28px;padding-top:22px;border-top:1px solid var(--line)}
.search-trial h3{font-size:21px!important;margin:0 0 10px!important}
.search-trial p{font-size:15px;line-height:1.7}
.search-trial button:disabled{opacity:.7;cursor:wait}
:root .knowledge-explanation p{font-size:16px;line-height:1.8}
/* Explicit tablet navigation: one control row and one learning row. */
@media(min-width:681px) and (max-width:1350px){
 :root #appShell>header{display:grid!important;grid-template-columns:auto minmax(100px,1fr) auto;gap:10px 16px;padding:14px 0}
 :root #appShell>header>.header-primary-actions{grid-column:1;grid-row:1}
 :root #appShell>header>.brand{grid-column:2;grid-row:1}
 :root #appShell>header>.header-actions{grid-column:3;grid-row:1;flex-wrap:nowrap;gap:6px;margin:0}
 :root #appShell>header>.student-primary{grid-column:1/-1;grid-row:2;justify-content:flex-start}
 :root #appShell>header .student-learning-menu{display:none}
 :root #appShell>header .lang-btn{min-height:38px}
}
@media(min-width:681px) and (max-width:1000px){.home-flow-steps{grid-template-columns:1fr 1fr;gap:24px}.home-flow-steps>li:last-child{grid-column:1/-1;border:0;border-top:1px solid var(--line);padding:20px 0 0}.home-flow-heading{display:block}.home-flow-heading>p{margin-top:8px}}
@media(max-width:680px){
 :root #appShell>header{gap:8px;padding:12px 0}
 :root #appShell>header #browseModeToggle:not([hidden]){font-size:13px;min-height:44px}
 :root .mobile-tabs a{font-size:12px;min-height:52px;gap:5px;padding:5px 6px}
 :root .mobile-tabs a>span{display:flex}
 html[data-route-kind="home"] .intro{padding:24px 0 12px!important}
 html[data-route-kind="home"] .intro h1{font-size:clamp(28px,7vw,34px)!important;line-height:1.3}
 .home-question-help{font-size:15px;line-height:1.75;margin-bottom:18px}
 html[data-route-kind="home"] #searchForm{flex-direction:column;gap:10px}
 html[data-route-kind="home"] #searchForm .search-wrap{width:100%;min-height:54px}
 html[data-route-kind="home"] #searchForm>.primary{min-height:50px}
 html[data-route-kind="home"] .search-accessories{flex-wrap:wrap}
 html[data-route-kind="home"] .search-accessories details{width:auto;margin-left:0}
 #homeLearningFlow{margin-top:0;padding:24px 0}
 .home-diagnosis-intro h2{font-size:24px}.home-flow-steps{grid-template-columns:1fr;gap:22px}
 .home-flow-steps>li{border:0;border-top:1px solid var(--line);padding:22px 0 0}.home-flow-steps>li:first-child{padding:0}
 .home-flow-steps p{font-size:16px}.home-flow-steps h3{font-size:20px;margin-bottom:12px}
 html[data-route-kind="home"] .learner-dashboard[data-guest="true"] #dashboardContent{gap:8px 14px}
 html[data-route-kind="home"] .learner-dashboard[data-guest="true"] h2{flex-basis:100%}
}

/* Diagnosis is an actual entry to the existing diagnostic workspace, not a teaching demo. */
.home-diagnosis-intro{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:26px}
.home-diagnosis-intro h1{font-size:clamp(34px,4.5vw,56px);line-height:1.15;letter-spacing:-.025em;margin:0 0 18px}
.home-diagnosis-intro p{max-width:64ch;font-size:16px;line-height:1.75;margin:0}
.home-diagnosis-start.primary{display:inline-flex;align-items:center;justify-content:center;gap:18px;flex-shrink:0;min-height:80px;padding:22px 32px;border:0;border-radius:12px;color:var(--button-on-accent,#fff);background:var(--accent);font-size:22px;font-weight:700;text-decoration:none;line-height:1.35;box-sizing:border-box}
.home-diagnosis-start svg{flex-shrink:0}
.home-diagnosis-start.primary:hover{filter:brightness(.94)}
.home-diagnosis-footer{display:flex;align-items:baseline;justify-content:space-between;gap:12px 24px;flex-wrap:wrap;margin-top:22px}
.home-diagnosis-footer p{font-size:14px;line-height:1.6;margin:0}
.home-diagnosis-footer a{display:inline-flex;align-items:center;min-height:44px;color:var(--text);font-size:14px;text-underline-offset:4px}
html[data-route-kind="home"] #homeCourses,html[data-route-kind="home"] .learner-dashboard[data-guest="true"],html[data-route-kind="home"] #homeSkillGlance{display:none!important}
html[data-route-kind="home"] .home-practice{grid-template-columns:1fr}
@media(max-width:1000px){.home-diagnosis-intro{display:block}.home-diagnosis-start.primary{margin-top:22px}}
@media(max-width:680px){.home-diagnosis-start.primary{width:100%;min-height:72px;padding:18px 16px;font-size:21px}.home-diagnosis-footer{display:block}.home-diagnosis-footer a{margin-top:8px}.home-flow-steps{gap:14px}.home-flow-steps>li{padding-top:14px}.home-flow-steps h3{margin-bottom:4px}.home-flow-steps p{margin:6px 0}}
@media(max-width:680px){html[data-route-kind="home"] .student-tools{position:relative;inset:auto;align-self:flex-end;margin:12px 0 80px auto;width:max-content}}

html[data-route-kind="home"] .intro-copy>p{display:none!important}
