/* First-screen selection only. The existing learning surfaces keep their layout. */
.startup-guide{max-width:900px;margin:0 auto 20px;padding:20px;border:1px solid #c4d4df;border-radius:14px;background:#fff;color:#183747}
.startup-guide h1{margin:0 0 10px;font-size:26px;line-height:1.4}
.startup-guide p{margin:10px 0;font-size:16px;line-height:1.7;overflow-wrap:anywhere}
.startup-guide nav{display:flex;flex-wrap:wrap;gap:8px 16px}
.startup-guide a{display:inline-flex;align-items:center;min-height:44px;padding:8px 0;font-size:16px;line-height:1.5;color:#183747;text-underline-offset:3px}
.startup-guide a:focus-visible{outline:3px solid #a83d29;outline-offset:3px;border-radius:3px}
body[data-study-mode]:not([data-study-mode=home]) .startup-guide{display:none}
body[data-study-mode=home] .header.is-idle{opacity:1}
body[data-study-mode=home] .header-actions{flex:0 0 auto;margin-left:auto}
body[data-study-mode=home] #nav-more{min-height:44px;padding:8px 14px;border:1px solid #b9cbd5;border-radius:8px;background:white;color:#183747;font-size:14px;font-weight:650;white-space:nowrap}
.study-home{max-width:900px;margin-inline:auto}
body[data-study-mode=home] main{padding-top:24px}
.study-home>.eyebrow{margin-top:0}
.study-home>h1{font-size:32px;line-height:1.35;margin:4px 0}
.study-home>.muted{font-size:14px;line-height:1.6;margin-bottom:14px}
.home-step{font-size:15px;font-weight:750;color:#405766;margin:18px 0 10px}
.study-home .subject-grid{gap:10px;margin:0 0 16px}
.study-home .subject-grid button{display:grid;grid-template-columns:auto 1fr;text-align:left;align-items:center;gap:3px 10px;padding:14px 12px;min-height:84px;border-radius:12px}
.study-home .subject-grid .hanja{font-size:32px;grid-row:1/3}
.study-home .subject-grid strong{font-size:16px}
.study-home .subject-grid small{font-size:12px;line-height:1.5}
.study-home .hub-selection{padding:16px;margin:0;gap:8px}
.study-home #hub-title{font-size:20px;margin:0}
.study-home #hub-grade-options{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px}
.study-home #hub-grade-options #grade{width:120px;max-width:100%}
.study-home #hub-grade-options .check{margin:0}
.study-home #hub-grade-options .grade-shortcuts{flex-basis:100%;margin:0;gap:8px}
.grade-shortcuts button{min-height:44px}
.study-home #hub-count{margin:0}
.study-home #hub-note{margin:0;font-size:14px;line-height:1.6}
.home-study-setup{display:grid;gap:12px;align-items:start}
.home-launch{border:1px solid #c4d4df;border-radius:14px;background:#fff;padding:16px}
.home-launch fieldset{border:0;padding:0;margin:0 0 12px;min-width:0}
.home-launch legend{font-size:18px;font-weight:750;padding:0;margin-bottom:10px;color:#183747}
.home-methods{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.home-methods label{display:flex;align-items:center;justify-content:center;gap:6px;min-height:48px;padding:8px;border:1px solid #cbd8e0;border-radius:8px;color:#183747;font-weight:650;cursor:pointer}
.home-methods label:has(input:checked){background:#e7f0f5;border-color:#56788d;box-shadow:inset 0 0 0 1px #56788d}
.home-methods input{accent-color:#183747;width:16px;height:16px;flex:0 0 auto;margin:0}
.home-methods label:has(input:focus-visible){outline:3px solid #a83d29;outline-offset:3px}
.home-launch #hub-start{width:100%;min-height:52px;font-size:18px}
.home-launch>p{margin:10px 0 0;font-size:13px;color:#526777;line-height:1.6}
#home-account-actions,#home-learning-actions{display:flex;flex-wrap:wrap;gap:8px}
#home-account-actions>button,#home-learning-actions>button{min-height:44px;flex:1 1 130px;padding:10px;border:1px solid #cbd8e0;border-radius:8px;background:white;color:#183747;font-size:15px}
#home-storage-notes{margin-top:16px;border-top:1px solid #dae2e7;padding-top:6px}
#home-storage-notes summary{min-height:44px;padding:10px 0;font-weight:650;cursor:pointer}
#home-storage-notes p{font-size:14px;line-height:1.7}
.hub-empty-note{margin:0;font-size:13px;line-height:1.6;color:#526777}
.home-due-review{display:grid;gap:8px;margin:0 0 14px;padding:14px 16px;border:1px solid #a9bfcc;border-radius:12px;background:#fff}
.home-due-review h2{margin:0;font-size:18px;line-height:1.4;color:#183747}
.home-due-review p{margin:0;font-size:13px;line-height:1.6;color:#526777}
.home-due-review button{min-height:44px;width:100%}
/* Resume is a compact alternative; the original storage note stays visible. */
.study-home #study-resume{grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;align-items:center;margin-bottom:16px;padding:12px 16px}
#study-resume-title{font-size:17px;line-height:1.5;grid-column:1}
#study-resume-summary{font-size:14px;line-height:1.5;grid-column:1;overflow-wrap:anywhere}
#study-resume .knowledge-actions{grid-column:2;grid-row:1/3;margin:0}
#study-resume-button{min-height:44px;white-space:nowrap}
#study-resume .source-note{grid-column:1/-1;margin:4px 0 0;font-size:12px;line-height:1.6}
@media(min-width:900px){
 .home-study-setup{grid-template-columns:minmax(0,1.35fr) minmax(310px,1fr);gap:16px}
 .home-study-setup>section,.home-study-setup>div{min-width:0}
}
@media(max-width:650px){
 body[data-study-mode=home] main{padding-top:12px}
 .study-home>.eyebrow{display:none}
 .study-home>h1{font-size:27px}
 .home-study-setup{gap:14px;padding:14px;border:1px solid #c4d4df;border-radius:14px;background:#fff}
 .study-home .home-study-setup>.home-range,.home-study-setup>.home-launch{border:0;border-radius:0;padding:0}
 .study-home #hub-grade-options .check{min-height:44px}
 .study-home #study-resume{padding:12px;gap:4px 10px;margin-bottom:12px}
 #study-resume-button{font-size:13px;padding:10px}
 #study-resume .knowledge-actions{grid-row:1}
 #study-resume-summary{grid-column:1/-1}

 .study-home>.home-step{margin-top:18px}.study-home .subject-grid{gap:8px;margin-bottom:12px}
 .study-home .subject-grid button{padding:12px 10px;gap:3px 8px;min-height:78px}
 .study-home .subject-grid strong{font-size:14px}.study-home .subject-grid small{font-size:11px}.study-home .subject-grid .hanja{font-size:28px}
 .study-home .hub-selection{padding:14px}.home-launch{padding:14px}.home-methods{gap:6px}.home-methods label{font-size:14px;padding:8px 4px}
 .hub-empty-note{grid-column:2;grid-row:1/3;max-width:150px;text-align:right}
}
/* Keep each start action beside its scope; a closed disclosure has no floating CTA. */
.study-home :is(button,input,select,a[href],summary){scroll-margin-block:12px}

/* Optional five-character trial and progressive disclosure of settings. */
.starter-card{display:grid;gap:12px;padding:16px;margin:0 0 20px;border:1px solid #c4d4df;border-radius:14px;background:#f3f7f8}
.starter-card h2{font-size:20px;line-height:1.4;margin:0 0 6px}
.starter-card p{font-size:14px;line-height:1.65;margin:0;color:#405766}
.starter-start-action button{width:100%;min-height:52px;font-size:18px;font-weight:700}
.starter-card summary,.advanced-study-settings>summary{cursor:pointer;min-height:44px;padding:10px 0;font-weight:650;line-height:1.6}
.starter-card details{font-size:14px;line-height:1.7;border-top:1px solid #d7e2e7}
.starter-card ol{padding-left:22px;margin:4px 0 10px}.starter-card li+li{margin-top:6px}
.advanced-study-settings{margin-top:16px;border-top:1px solid #d7e2e7;padding-top:4px}
.advanced-study-settings>section{margin-top:20px}
@media(min-width:650px){.starter-card{grid-template-columns:minmax(0,1fr) auto;align-items:center}.starter-card details{grid-column:1/-1}}

/* Home-only readability: preserve the writing surface and existing study controls. */
.study-home>.muted,.starter-card p,.starter-card details,.home-due-review p,#study-resume-summary{font-size:16px;line-height:1.65}
.study-home #study-resume .source-note{font-size:14px;line-height:1.6}
.study-home #study-resume-button,.home-due-review button{font-size:18px;min-height:48px;white-space:normal}
.study-home .starter-start-action button{min-height:52px}
.study-home .subject-grid strong{font-size:16px}
.study-home .subject-grid small,.study-home #hub-note,.home-launch>p{font-size:14px;line-height:1.65}
.study-home .home-methods label,.study-home #grade,.study-home #hub-grade-options .check{font-size:16px}
.home-study-options{margin:20px 0;border:1px solid #c4d4df;border-radius:12px;background:#fff}
.home-study-options>summary{padding:14px 16px;min-height:52px;font-size:18px;font-weight:700;line-height:1.5;cursor:pointer;color:#183747;overflow-wrap:anywhere}
.home-study-options>summary:focus-visible{outline:3px solid #a83d29;outline-offset:3px;border-radius:10px}
.home-study-options-body{padding:0 12px 16px;min-width:0}
.home-study-options-body>.home-step{margin-top:8px}
@media(max-width:650px){
 .study-home #study-resume{grid-template-columns:minmax(0,1fr)}
 #study-resume .knowledge-actions{grid-column:1;grid-row:auto}
 #study-resume-button{width:100%}
 .home-study-options .home-study-setup{padding:0;border:0;border-radius:0}
 .home-study-options .subject-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .home-study-options .subject-grid button{min-width:0;overflow-wrap:anywhere}
}
@media(max-width:360px){.study-home .home-methods{grid-template-columns:1fr}.study-home .home-methods label{justify-content:flex-start;padding-inline:12px}}

.home-reading-guides{margin-top:20px;border-top:1px solid #d7e2e7}
.home-reading-guides>summary{cursor:pointer;min-height:44px;padding:12px 0;font-weight:650}
.study-link-preview{max-width:900px;margin:0 auto 20px;padding:16px;border:1px solid #a9bfcc;border-radius:12px;background:#f3f7f8}
.study-link-preview h2{font-size:20px;margin:0 0 8px}
.study-link-preview p{font-size:14px;line-height:1.65;margin:0}
.study-link-preview button{min-height:44px}

/* The same original controls form one menu in every learning surface. */
.common-header-navigation{display:flex;gap:4px;align-items:center;flex:none}
.header .common-header-navigation>button{min-width:44px;min-height:44px;padding:6px 8px;font-size:14px;line-height:1.3;white-space:normal;border:1px solid #b9cbd5;border-radius:8px;background:#fff;color:#183747}
.header .header-actions:empty{display:none}
.header{height:auto;min-height:60px;gap:12px;flex-wrap:wrap;padding-block:6px}
.header .brand{flex-basis:auto;margin-left:auto}.header .brand-sub{display:none}
#common-navigation>section{margin:16px 0}
#common-navigation h3{font-size:16px;margin:0 0 8px}
#common-navigation #nav-home{width:100%;min-height:44px}
#common-navigation #study-navigation{position:static;display:block;margin:0 0 8px;padding:0;border:0;box-shadow:none;background:transparent}
#common-navigation .study-navigation-methods,#common-navigation .navigation-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%}
#common-navigation :is(button,a){min-width:0;min-height:44px;white-space:normal;overflow-wrap:anywhere}
#common-menu-actions>a{display:flex;align-items:center;justify-content:center;text-align:center;text-decoration:none}
.home-study-setup{grid-template-columns:minmax(0,1fr)}
.study-home>.home-launch{margin:12px 0 20px}
.study-home>.home-launch>#hub-count{font-size:17px;font-weight:650;margin:0 0 12px}
@media(max-width:400px){.header .brand-mark{display:none}.header{padding-inline:8px;gap:6px}}

/* Preserve the existing one-action shortcuts outside the compact writing frame. */
.study-shortcuts{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 16px}
.study-shortcuts button{flex:1 1 100px;min-height:44px;white-space:normal}
.study-shortcuts button[aria-current=page]{background:#e7f0f5;border-color:#56788d;font-weight:700}
body.has-study-frame #study-shortcuts{display:none}

/* Home hierarchy: trial, chosen scope and its start action, then review and guides.
   All learning controls keep their original DOM order and event handlers. */
body[data-study-mode=home]{background:#f7f7f3}
body[data-study-mode=home] main{padding-top:32px}
body[data-study-mode=home] .footer{flex-wrap:wrap;gap:8px 20px}
body[data-study-mode=home] .footer>*{min-width:0;max-width:100%;overflow-wrap:anywhere}
body[data-study-mode=home] .footer a{display:inline-flex;align-items:center;min-height:44px;font-size:14px}
.study-home{max-width:1040px;overflow-wrap:anywhere}
.study-home>.eyebrow{color:#9b3b28;letter-spacing:.04em;margin-bottom:8px}
.study-home>h1{font-size:clamp(28px,3.5vw,42px);line-height:1.3;letter-spacing:-.045em;margin:0 0 12px}
.study-home>.muted{max-width:66ch;color:#52616b;margin:0 0 28px;line-height:1.75}
.study-home :is(button,select,a,summary){overflow-wrap:anywhere}
.study-home :is(button,select,summary,a):focus-visible{outline:3px solid #a83d29;outline-offset:4px}
.study-home :is(.home-study-options,.home-launch,.starter-card,.hub-today){border-color:#d6ddd9;border-radius:18px}

.study-home .starter-card{padding:24px;gap:16px 28px;margin:0 0 24px;background:#edf1ef;grid-template-columns:minmax(0,1fr) 230px;align-items:center}
.starter-copy{grid-column:1;grid-row:1/3;min-width:0}
.study-home .starter-card h2{font-size:24px;letter-spacing:-.03em;margin-bottom:10px}
.study-home .starter-card p{color:#405766}
.starter-preview{grid-column:2;grid-row:1;display:flex;gap:7px;justify-content:center;user-select:none}
.starter-preview span{display:grid;place-items:center;flex:1;aspect-ratio:1;border:1px solid #bdccc6;border-radius:6px;font-size:27px;line-height:1;color:#183747}
.starter-start-action{grid-column:2;grid-row:2;min-width:0}
.study-home .starter-start-action button{font-size:16px;border-radius:10px;white-space:normal;padding:12px}
.study-home .starter-card details{grid-column:1/-1;border-color:#cdd8d2;padding-top:4px}
.study-home .starter-card summary{padding:8px 0;font-size:14px;min-height:44px}
.study-home[data-primary-entry=trial] .starter-card{background:#173b45;border-color:#173b45;color:#fff}
.study-home[data-primary-entry=trial] .starter-card p{color:#e0e9e7}
.study-home[data-primary-entry=trial] .starter-card details{border-color:#49636b}
.study-home[data-primary-entry=trial] .starter-preview span{color:#f6f4eb;border-color:#688186;background:#244750}
.study-home[data-primary-entry=trial] .starter-card :is(button,summary,a):focus-visible{outline-color:#ffce8c}
.study-home[data-primary-entry=trial] #starter-start{background:#bf462e;color:#fff;border-color:#bf462e}
.study-home[data-primary-entry=trial] #starter-start:hover:not(:disabled){background:#a63824;border-color:#a63824}

.study-home .home-study-options{margin:0 0 16px;background:#fff}
.study-home .home-study-options>summary{padding:20px 22px;font-size:19px}
.study-home .home-study-options[open]>summary{border-bottom:1px solid #e4e8e3}
.study-home .home-study-options-body{padding:18px 22px 22px}
.study-home .home-step{font-size:14px;margin:0 0 12px;color:#52616b}
.study-home .subject-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 14px}
.study-home .subject-grid button{min-width:0;min-height:92px;padding:14px 12px;gap:4px 12px;border-radius:12px;border-color:#d6ddd9;box-shadow:none}
.study-home .subject-grid .hanja{font-size:32px}
.study-home .subject-grid small{font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.study-home .subject-grid button:hover:not([aria-pressed=true]){background:#f4f6f3;border-color:#82978d}
.study-home .subject-grid [aria-pressed=true]{background:#183747;border-color:#183747;color:white}
.study-home .subject-grid [aria-pressed=true] small{color:#e1e9ed}
.study-home .home-study-options-body>nav{font-size:13px;line-height:1.8;margin:0 0 16px}
.study-home .home-study-options-body>nav a{display:inline-block;padding-block:4px;text-underline-offset:3px}
.study-home .home-study-setup{padding:0;border:0;background:none;gap:0}
.study-home .home-study-setup>.home-range{background:#f6f7f4;border:0;padding:18px;border-radius:12px;gap:12px;grid-template-columns:minmax(0,1fr);min-width:0}
.study-home #hub-title{font-size:18px}
.study-home #hub-grade-options{gap:8px 14px}
.study-home #hub-grade-options #grade{width:auto;min-width:min(120px,100%);max-width:100%}
.study-home #hub-grade-options .check{white-space:normal;line-height:1.5}
.study-home #hub-grade-options .check input{flex-shrink:0}
.study-home #hub-grade-options .grade-shortcuts{gap:8px}
.study-home #hub-grade-options .grade-shortcuts>span{flex-basis:100%;font-size:13px}
.study-home #hub-subject-options label{flex-wrap:wrap;min-width:0}
.study-home #hub-subject-options select{min-width:0;width:100%}

.study-home>.home-launch{margin:0 0 24px;padding:24px;background:#fff;border-top:4px solid #183747}
.study-home>.home-launch>#hub-count{font-size:15px;line-height:1.7;margin:0 0 20px;padding-bottom:18px;border-bottom:1px solid #e4e8e3;color:#405766;overflow-wrap:anywhere}
.study-home .home-launch legend{font-size:20px;margin-bottom:14px}
.study-home .home-methods{gap:8px}
.study-home .home-methods label{border-color:#c5d0ca;border-radius:10px;min-width:0;min-height:48px;line-height:1.5;white-space:normal}
.study-home .home-methods label:hover{background:#f4f6f3}
.study-home .home-methods label:has(input:checked){background:#eaf0ec;border-color:#476757;box-shadow:inset 0 0 0 1px #476757;color:#183747}
.study-home .home-launch #hub-start{margin-top:4px;border-radius:10px;font-size:18px;white-space:normal;line-height:1.5;padding:12px 16px}
.study-home .home-launch>p{font-size:14px;line-height:1.7}
.study-home #study-setup-link{display:inline-flex;align-items:center;min-height:44px;text-underline-offset:4px}

.study-home .home-due-review,.study-home #study-resume{border-left:4px solid #476757;background:#fff;border-radius:12px;padding:18px 20px;margin-bottom:18px}
.study-home #study-exit-home-status{padding:12px 16px;background:#eef3e9;border-left:3px solid #587648;border-radius:6px;margin-bottom:16px;font-size:14px;line-height:1.7}
.study-home .hub-today{margin:8px 0 0;padding:24px;background:#edf1ed}
.study-home .hub-today-heading{flex-wrap:wrap}
.study-home .hub-today-heading h2{font-size:21px;letter-spacing:-.02em;min-width:0}
.study-home .hub-today-heading button{min-height:44px;color:#183747;text-decoration:underline;text-underline-offset:4px}
.study-home .hub-today-actions>div{background:#fff;border-color:#d6ddd9;border-radius:12px;min-width:0}
.study-home .hub-today-actions strong{font-size:26px;letter-spacing:-.03em}
.study-home .hub-today-actions :is(button,.hub-empty-note){overflow-wrap:anywhere;white-space:normal}
.study-home .home-guide-nav{margin-top:28px;padding-top:24px;border-color:#d6ddd9}
.study-home .guide-route-links a{border-color:#d6ddd9;border-radius:12px;min-width:0;padding:20px}
.study-home .guide-route-links a:hover{background:#edf1ed;border-color:#82978d}
.study-home .guide-route-links span{font-size:14px;line-height:1.65}
.study-home>.source-note{padding:12px 0 20px;line-height:1.8}
.study-home>.source-note a{display:inline-block;min-height:44px;padding-block:10px;text-underline-offset:3px}

@media(min-width:960px){
 .study-home{display:grid;grid-template-columns:minmax(0,1fr) 310px;column-gap:20px;align-items:start}
 .study-home>*{grid-column:1/-1;min-width:0}
 .study-home>.home-study-options{grid-column:1;margin-bottom:24px}
 .study-home>.home-launch{grid-column:2}
 .study-home .home-launch .home-methods{grid-template-columns:1fr}
 .study-home .home-launch .home-methods label{justify-content:flex-start;padding-inline:14px}
}
@media(max-width:650px){
 body[data-study-mode=home] main{padding-top:20px}
 .study-home>.muted{margin-bottom:20px;font-size:15px;line-height:1.75}
 .study-home>h1{font-size:28px;letter-spacing:-.04em;margin-bottom:8px}
 .study-home .starter-card{grid-template-columns:minmax(0,1fr);padding:20px;gap:14px;margin-bottom:20px}
 .starter-copy,.starter-start-action{grid-column:1;grid-row:auto}
 .starter-preview{display:none}
 .study-home .starter-card h2{font-size:21px;margin-bottom:8px}
 .study-home .starter-card p{font-size:15px;line-height:1.7}
 .study-home .starter-start-action button{font-size:17px}
 .study-home .home-study-options>summary{padding:18px 16px;font-size:18px}
 .study-home .home-study-options-body{padding:16px}
 .study-home .subject-grid{gap:8px}
 .study-home .subject-grid button{padding:12px 10px;grid-template-columns:1fr;gap:4px;align-content:start}
 .study-home .subject-grid .hanja{grid-row:auto;font-size:28px}
 .study-home .subject-grid strong{font-size:15px}
 .study-home .home-study-setup>.home-range{padding:14px}
 .study-home>.home-launch{padding:20px;margin-bottom:16px}
 .study-home .hub-today{padding:18px}
 .study-home .home-due-review,.study-home #study-resume{padding:16px}
}


/* Mobile study flow: jump to the original controls without creating a second
   start action or changing the saved study scope. */
.home-section-navigation{display:flex;gap:8px;margin:0 0 16px;padding:6px;border:1px solid #d6ddd9;border-radius:14px;background:#edf1ed}
.home-section-navigation>button{display:flex;align-items:center;gap:10px;flex:1;min-width:0;min-height:52px;padding:10px 12px;border:0;border-radius:9px;background:transparent;color:#183747;text-align:left;font-size:14px;font-weight:650;line-height:1.5}
.home-section-navigation>button:hover{background:#fff}
.home-section-navigation>button:active{background:#e0e8e2}
.home-section-number{display:grid;place-items:center;flex:none;width:28px;height:28px;border:1px solid #c5d0ca;border-radius:50%;font-size:11px;font-weight:750;color:#476757;background:#fff;font-variant-numeric:tabular-nums}
.home-scope-preview{display:block;margin:6px 0 0 18px;color:#52616b;font-size:14px;font-weight:400;line-height:1.6;overflow-wrap:anywhere}
.home-study-options[open] .home-scope-preview{display:none}
.study-home :is(.home-study-options,.home-launch,.hub-today){scroll-margin-top:84px}
.study-home #hub-today-title:focus{outline:3px solid #a83d29;outline-offset:4px;border-radius:3px}
@media(max-width:650px){
 .home-section-navigation{gap:4px;padding:4px;margin-bottom:12px}
 .home-section-navigation>button{flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:6px;padding:8px;font-size:13px;min-height:72px}
 .home-section-number{width:24px;height:24px;font-size:10px}
 .study-home .subject-grid button{grid-template-columns:auto minmax(0,1fr);align-items:center;align-content:center;gap:3px 8px;min-height:86px;padding:12px 10px}
 .study-home .subject-grid .hanja{grid-row:1/3;font-size:28px}
 .study-home .subject-grid strong{font-size:15px;line-height:1.45}
 .study-home .subject-grid small{font-size:12px;line-height:1.5}
 .study-home .home-study-options-body{padding:14px}
 .study-home #hub-grade-options .grade-shortcuts{align-items:center;gap:6px;margin-top:2px}
 .study-home #hub-grade-options .grade-shortcuts>span{flex-basis:auto;margin-right:4px}
 .study-home #hub-grade-options .grade-shortcuts>button{flex:1;padding-inline:8px}
 .study-home>.home-launch{padding:18px;border-top-width:3px}
 .study-home>.home-launch>#hub-count{padding-bottom:12px;margin-bottom:14px;font-weight:700}
 .study-home .home-launch .home-methods{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 .study-home .home-launch .home-methods label{flex-wrap:wrap;align-content:center;gap:6px;padding:10px 6px;min-height:52px;justify-content:center}
 .study-home .home-launch #hub-start{min-height:56px}
}
@media(prefers-reduced-motion:reduce){.study-home{scroll-behavior:auto}}

/* Home shortcuts reuse the existing grade writing/card settings. */
#home-practice-settings{min-width:0;margin:14px 0;padding:14px 0;border-block:1px solid #e4e8e3}
#home-practice-settings h3{font-size:15px;line-height:1.5;margin:0 0 10px}
#home-practice-settings .home-practice-count-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 12px;font-size:14px}
#home-practice-count{min-width:0;max-width:100%;flex:0 1 160px}
#home-practice-settings .home-practice-exclude{display:flex;align-items:center;gap:8px;min-height:44px;font-size:14px;line-height:1.5;margin:6px 0;cursor:pointer}
#home-practice-settings input{width:18px;height:18px;flex:none;accent-color:#183747}
#home-practice-settings p{font-size:12px;line-height:1.6;color:#526777;margin:6px 0 0;overflow-wrap:anywhere}
#home-practice-settings #home-practice-note{color:#405766}
