/* Home only: intrinsic heights allow larger text to scroll rather than clip. */
body.studio-enabled #studioHome.overview-v216 .shortcut[data-studio-go]{display:grid!important;grid-template-columns:28px minmax(0,1fr);align-content:start;gap:5px 8px;padding:12px;position:relative;min-height:92px}
.overview-v216 .shortcut :is(strong,small){grid-column:2;font-size:13px!important;line-height:1.35!important;margin:0!important}
.overview-v216 .shortcut small{font-size:12px!important;color:var(--muted)}
.overview-v216 .shortcut .shortcut-icon{grid-row:1/3;width:28px!important;height:28px!important}
.overview-v216 .shortcut-arrow{display:none}
.overview-due{position:absolute;top:6px;right:6px;min-width:18px;padding:2px 4px;border-radius:var(--radius-btn);background:var(--accent-light);color:var(--accent-dark);font-size:11px;font-weight:750;text-align:center}
.overview-time{display:grid;gap:7px;font-size:13px;margin:10px 0}
.overview-time progress{width:100%;height:8px;accent-color:var(--palette-white);border:0;border-radius:var(--radius-btn);overflow:hidden}
.overview-time progress::-webkit-progress-bar{background:var(--accent-dark)}
.overview-time progress::-webkit-progress-value{background:var(--palette-white);border-radius:var(--radius-btn)}
.overview-v216 .overview-lesson{font-size:13px!important;line-height:1.4!important;margin:10px 0 14px!important;color:inherit!important}
html body.studio-enabled .overview-v216 .mobile-today-hero .mobile-hero-cta{min-height:52px;box-shadow:var(--shadow-home-cta);transition:transform 100ms ease,box-shadow 100ms ease}
.overview-v216 .mobile-today-hero .mobile-hero-cta:active{transform:translateY(3px);box-shadow:var(--shadow-home-cta-pressed)}
html body.studio-enabled #studioHome.overview-v216 .mobile-hero-cta:not(:disabled){background:var(--palette-white)!important;color:var(--palette-violet-deep)!important}
html body.studio-enabled #studioHome.overview-v216 .mobile-hero-cta:is(:active,:focus-visible):not(:disabled){background:var(--palette-violet)!important;color:var(--palette-white)!important}
.overview-v216 .mobile-today-hero>p:not(.overview-lesson){display:none!important}
.overview-tasks,.overview-extras{margin-top:10px;color:inherit}
.overview-tasks>summary,.overview-extras>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-size:13px;gap:6px}
.overview-tasks>summary::after,.overview-extras>summary::after{content:'⌄';margin-left:auto}
.overview-tasks[open]>summary::after,.overview-extras[open]>summary::after{content:'⌃'}
.overview-tasks #planToday{background:var(--surface)!important;color:var(--ink);padding:12px!important;border-radius:var(--radius-btn);margin:0!important}
.overview-search{border:1px solid var(--line);border-radius:var(--radius-btn);background:var(--surface);margin:12px 0}
.overview-search>summary{cursor:pointer;min-height:44px;box-sizing:border-box;padding:12px;font-weight:600;font-size:13px;color:var(--ink)}
body.studio-enabled .overview-search .clean-home-search{margin:0;border:0;padding:0 12px 12px}
.overview-word{padding:12px;border:1px solid var(--line);border-radius:var(--radius-card);background:var(--surface);color:var(--ink);margin-top:12px}
.overview-word-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.overview-word-head h3{font-size:14px;margin:0}
.overview-word-head button{min-height:44px;padding:6px;font-size:12px;flex-shrink:0}
.overview-word-row{display:flex;align-items:flex-start;gap:6px}
.overview-word-row details{min-width:0;flex:1}
.overview-word-row summary{cursor:pointer;display:grid;grid-template-columns:auto minmax(0,1fr);gap:2px 10px;min-height:44px;align-content:center;list-style:none;box-sizing:border-box;padding:8px 12px}
.overview-word-row summary::-webkit-details-marker{display:none}
.overview-word-row summary strong{grid-row:1/3;align-self:center;font-size:24px;overflow-wrap:anywhere;max-width:5em}
.overview-word-row summary span{font-size:12px;overflow-wrap:anywhere;color:var(--muted)}
.overview-word-row summary span:last-child{color:var(--ink);font-size:13px}
.overview-word-sound button{width:44px;min-height:44px;border:0;background:var(--palette-clear);padding:8px}
.overview-word-body{border-top:1px solid var(--line);margin-top:10px;padding-top:6px;font-size:14px;line-height:1.5}
.overview-word-row details:not([open]) > :not(summary){display:none!important}
.overview-word-body button{min-height:44px;padding:8px;margin:4px 4px 0 0}
#homeStreak{display:none}
.overview-v216 .overview-tasks[hidden],.overview-v216 .overview-extras[hidden],.overview-v216 .overview-time[hidden]{display:none!important}
.overview-v216 #updateNotice{position:static;inset:auto;transform:none;width:auto;max-width:none;box-sizing:border-box;margin:0 0 10px;padding:8px 10px;border-radius:var(--radius-btn);box-shadow:none;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.overview-v216 #updateNotice[hidden]{display:none!important}
.overview-v216 #updateNotice>strong{display:none}
.overview-v216 #updateNoticeText{flex:1 1 120px;margin:0;font-size:12px;line-height:1.4}
.overview-v216 #updateNotice .update-notice-actions{display:flex;gap:4px;margin:0}
.overview-v216 #updateNotice button{min-height:44px;padding:6px;font-size:12px}
@media(max-width:720px),(orientation:landscape) and (max-height:500px) and (pointer:coarse){
 body.mobile-ux #studioHome.overview-v216 .mobile-today-hero{padding:16px;margin-bottom:12px;background:linear-gradient(130deg,var(--palette-violet),var(--palette-violet-deep))}
 body.mobile-ux #studioHome.overview-v216 #homeDueReview:not([hidden]){display:block!important;width:100%;min-height:44px;margin-top:8px}
 body.mobile-ux #studioHome.overview-v216 .mobile-today-hero :is(.overview-time,.overview-lesson,.overview-tasks>summary,.overview-extras>summary){color:var(--palette-white)!important}
 body.mobile-ux #studioHome.overview-v216 .mobile-hero-top h2{font-size:19px;line-height:1.25}
 body.mobile-ux #studioHome.overview-v216 .mobile-hero-top button{min-height:40px;max-width:none;padding:0 12px;font-size:12.5px;white-space:nowrap;flex:none}
 body.mobile-ux #studioHome.overview-v216 .dashboard-grid{margin:0}
 body.mobile-ux #studioHome.overview-v216 .section-row{margin:0 0 8px}
 body.mobile-ux #studioHome.overview-v216 .section-row h3{font-size:15px;margin:0}
 body.mobile-ux #studioHome.overview-v216 .shortcut-grid{gap:8px}
 html body:not(#_rd).mobile-ux #studioHome.overview-v216 .overview-search{margin:0 0 12px!important}
 body.mobile-ux[data-studio-hub=home] #homeStreak{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;padding:6px;font-size:13px;white-space:nowrap;border:0;background:var(--accent-light);color:var(--ink);border-radius:var(--radius-btn)}
 body.mobile-ux .topbar-actions{gap:5px}
 body.mobile-ux #studioHeader .topbar-title{min-width:0;flex:1}
 body.mobile-ux #studioHeader #activeTitle{font-size:17px;overflow-wrap:anywhere}
 body.mobile-ux #studioHeader .topbar-inner{gap:8px}
 body.mobile-ux #studioHeader .level-pill{min-width:0;max-width:100px;font-size:12px;padding:6px}
 body.mobile-ux #studioHeader #headerInfo{width:44px;height:44px;flex:none}
 body.mobile-ux[data-studio-hub=home] #studioHeader #menuBtn{display:inline-flex!important;width:44px;height:44px;min-width:44px;padding:10px;align-items:center;justify-content:center}
 body.mobile-ux[data-studio-hub=home] #studioHeader{padding-inline:0;height:auto;flex-basis:auto}
 body.mobile-ux[data-studio-hub=home] #studioHeader .topbar-inner{width:calc(100% - 34px);max-width:none;box-sizing:border-box;padding-block:8px;gap:6px;min-height:64px;height:auto;flex-wrap:wrap}
 body.mobile-ux[data-studio-hub=home] #studioHeader #activeTitle{font-size:15px;white-space:normal}
 body.mobile-ux[data-studio-hub=home] .overview-tasks>summary{min-height:40px}
 body.mobile-ux #studioHome.overview-v216 .shortcut[data-studio-go]{min-height:86px}
}
@media(max-width:359px){body.mobile-ux[data-studio-hub=home] #studioHeader .topbar-title{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}body.mobile-ux[data-studio-hub=home] #studioHeader .topbar-actions{margin-left:auto}}
@media(prefers-reduced-motion:reduce){.overview-v216 .mobile-today-hero .mobile-hero-cta{transition:none}}

/* Planner actions share a clear content inset and equal touch targets on phones. */
@media(max-width:720px){
 html body.studio-enabled #studioHome #planToday{padding:16px!important;box-sizing:border-box!important;}
 html body.studio-enabled #studioHome #planToday>.section-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;align-items:stretch!important;justify-content:stretch!important;margin:0!important;}
 html body.studio-enabled #studioHome #planToday>.section-row>h3{grid-column:1/-1!important;margin:0!important;}
 html body.studio-enabled #studioHome #planToday>.section-row>button{box-sizing:border-box!important;width:100%!important;min-width:0!important;min-height:44px!important;margin:0!important;padding:10px 12px!important;line-height:1.4!important;white-space:normal!important;text-align:center!important;align-self:stretch!important;}
 html body.studio-enabled #studioHome #planTasks .plan-task{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px!important;padding:16px!important;box-sizing:border-box!important;}
 html body.studio-enabled #studioHome #planTasks .plan-task>button{box-sizing:border-box!important;width:100%!important;min-height:44px!important;margin:0!important;padding:10px 16px!important;text-align:center!important;align-self:stretch!important;}
 html body.studio-enabled :is(.plan-actions,.mobile-card-actions,.notebook-actions){gap:12px;align-items:center;flex-wrap:wrap;}
 html body.studio-enabled :is(.plan-actions,.mobile-card-actions,.notebook-actions)>button{min-height:44px;box-sizing:border-box;}
}

/* Desktop planner actions follow the same inset and alignment as card content. */
@media(min-width:721px){
 html body.studio-enabled #studioHome #planToday{padding:24px!important;box-sizing:border-box!important;}
 html body.studio-enabled #studioHome #planToday>.section-row{display:flex!important;align-items:center!important;justify-content:flex-end!important;flex-wrap:wrap!important;gap:12px!important;margin:0!important;}
 html body.studio-enabled #studioHome #planToday>.section-row>h3{flex:1 1 160px!important;margin:0!important;}
 html body.studio-enabled #studioHome #planToday>.section-row>button{display:inline-flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;flex:0 0 auto!important;min-width:128px!important;min-height:40px!important;padding:10px 18px!important;margin:0!important;line-height:1.4!important;text-align:center!important;}
 html body.studio-enabled #studioHome #planTasks .plan-task{align-items:center!important;gap:20px!important;padding:18px 0!important;}
 html body.studio-enabled #studioHome #planTasks .plan-task>button{display:inline-flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;flex:0 0 128px!important;min-height:40px!important;padding:10px 18px!important;margin:0!important;line-height:1.4!important;text-align:center!important;}
}

/* Desktop alignment: one shared 24px card inset. */
@media(min-width:721px){
 html body.studio-enabled #studioHome.overview-v216 #placementEntry{display:flex;align-items:center;flex-wrap:wrap;gap:12px!important;padding:24px!important;box-sizing:border-box;}
 html body.studio-enabled #studioHome.overview-v216 #placementEntry>h3{margin:0;flex:0 1 auto;}
 html body.studio-enabled #studioHome.overview-v216 #placementEntry>p{flex:1 1 180px;margin:0;}
 html body.studio-enabled #studioHome.overview-v216 #placementEntry>button{margin:0!important;min-height:40px!important;flex:0 0 auto;}
 html body.studio-enabled #studioHome #planToday>.section-row>.plan-heading{flex:1 1 180px;align-self:center;}
 html body.studio-enabled #studioHome #planToday .plan-heading h3{font-size:14px;font-weight:700;line-height:1.4;margin:0;}
 html body.studio-enabled #studioHome #planToday #planTodayMeta{margin:6px 0 0;line-height:1.4;}
 html body.studio-enabled #studioHome #planTasks{margin-top:20px;}
 html body.studio-enabled #studioHome #planTasks .plan-task:last-child{padding-bottom:0!important;}
 html body.studio-enabled #studioHome #homeDailyWord{margin:0 0 16px;}
}
@media(max-width:720px){
 html body.studio-enabled #studioHome #planToday>.section-row>.plan-heading{grid-column:1/-1;}
 html body.studio-enabled #studioHome #planToday .plan-heading h3{margin:0;}
 html body.studio-enabled #studioHome #planToday .plan-heading p{margin:6px 0 0;}
}
/* Keep the sheen/floating character; remove only the heavy animated outer glow. */
html body.studio-enabled #studioHome .feature-hero{box-shadow:var(--shadow-home-hero)!important;}

@media(min-width:721px){html body.studio-enabled #studioHome.overview-v216 #placementEntry>p+button{margin-left:auto!important;}}

@media(prefers-reduced-motion:no-preference){html body.studio-enabled #studioHome .feature-hero{animation-name:rd-sheen!important;}}

/* Desktop keeps the current study action beside supporting information. */
@media(min-width:721px){
 body.studio-enabled:not(.mobile-ux) #studioHome.overview-v216 .dashboard-grid{
  display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr)!important;gap:16px;align-items:start;margin:0;
 }
 body.studio-enabled:not(.mobile-ux) #studioHome.overview-v216 :is(.dashboard-primary,.dashboard-side){min-width:0}
 body.studio-enabled:not(.mobile-ux) #studioHome.overview-v216 .dashboard-side{
  display:flex!important;flex-direction:column;gap:12px;
 }
 html body:not(#_rd).studio-enabled:not(.mobile-ux) #studioHome #homeDailyWord .overview-word-row summary{
  grid-template-columns:auto minmax(0,1fr)!important;column-gap:10px!important;
 }
 html body:not(#_rd).studio-enabled:not(.mobile-ux) #studioHome #homeDailyWord .overview-word-row summary strong{grid-row:1/3}
 html body:not(#_rd).studio-enabled:not(.mobile-ux) #studioHome #homeDailyWord .overview-word-row summary span{font-size:14px!important}
 html body:not(#_rd).studio-enabled:not(.mobile-ux) #studioHome.overview-v216 #homeDailyWord{margin:0!important}
 html body.studio-enabled:not(.mobile-ux) #studioHome #planToday .plan-heading h3{font-size:20px}
 html body:not(#_rd).studio-enabled:not(.mobile-ux) #studioHome #planSettingsLink{
  background:var(--surface)!important;border-color:var(--line)!important;color:var(--ink)!important;
 }
 html body.studio-enabled:not(.mobile-ux) #studioHome #planContinue{
  background:var(--accent)!important;border-color:var(--accent)!important;color:var(--palette-white)!important;
 }
}
@media(min-width:721px) and (max-width:1023px){
 body.studio-enabled:not(.mobile-ux) #studioHome.overview-v216 .dashboard-grid{grid-template-columns:minmax(0,1fr)!important}
}

#studioHome .overview-progress-card{padding:16px;border:1px solid var(--line);border-radius:var(--radius-card);background:var(--surface)}
#studioHome .overview-progress-card h3{margin:0 0 8px;font-size:15px}
#studioHome .overview-progress-card p{margin:4px 0;color:var(--sub);font-size:13px;text-wrap:pretty}
#studioHome .overview-progress-card button{margin-top:8px;min-height:40px}

@media(min-width:721px){
 html body.studio-enabled:not(.mobile-ux) #studioHome #planTodayTitle{display:inline;vertical-align:middle}
 html body.studio-enabled:not(.mobile-ux) #studioHome #planTasks[hidden]{display:none!important}
 html body.studio-enabled #studioHome .overview-plan-toggle{
  display:inline-grid;place-items:center;vertical-align:middle;width:28px;min-width:28px;height:28px;min-height:28px;
  padding:0;margin:0 0 0 6px;background:var(--palette-clear);border:0;box-shadow:none;color:var(--sub);
 }
 #studioHome .overview-plan-toggle .overview-plan-chevron{
  width:7px;height:7px;border-right:1.5px solid var(--sub);border-bottom:1.5px solid var(--sub);
  transform:translateY(-2px) rotate(45deg);
 }
 #studioHome .overview-plan-toggle[aria-expanded="true"] .overview-plan-chevron{transform:translateY(2px) rotate(225deg)}
 html body:not(#_rd).studio-enabled:not(.mobile-ux) #studioHome .dashboard-side .overview-search{margin:0!important}
 html body:not(#_rd).studio-enabled:not(.mobile-ux) #studioHome .dashboard-side .overview-search #homeQuery{width:100%!important;min-width:0}
 #studioHome .dashboard-side .overview-search form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
}


/* Group the goal, AI setting, and pace controls in the existing settings panel. */
body.studio-enabled #homePlanSettings .plan-overview-group{
 display:grid;gap:8px;padding:14px 0;border-top:1px solid var(--line);
}
body.studio-enabled #homePlanSettings .plan-overview-group:first-child{padding-top:0;border-top:0}
body.studio-enabled #homePlanSettings #planOverview :is(h4,p){margin:0}
body.studio-enabled #homePlanSettings #planOverview h4{font-size:14px}
body.studio-enabled #homePlanSettings #planOverview p:empty{display:none}
body.studio-enabled #homePlanSettings #planSlow{margin:0 0 12px}
body.studio-enabled #homePlanSettings .plan-adjust-options{
 display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:12px;margin-top:12px;
}
body.studio-enabled #homePlanSettings .plan-adjust-options article{
 display:flex;flex-direction:column;align-items:flex-start;gap:6px;
 margin:0;padding:12px;border:1px solid var(--line);border-radius:var(--radius-btn);background:var(--surface);
}
body.studio-enabled #homePlanSettings .plan-adjust-options button{margin-top:auto}

/* Progress is opt-in on desktop and separate from the goal form. */
#homePlanSettings #planSetup[open] + .desktop-plan-progress,
#homePlanSettings .desktop-plan-progress:has(> #planOverview[hidden]){
 display:none;
}

/* The desktop progress disclosure reads from outcome to action to preferences. */
#planVocabularyMeter{display:none}
#homePlanSettings .desktop-plan-progress #planOverview:not([hidden]){
 display:grid;gap:16px;padding:0 16px 16px;
}
#homePlanSettings .desktop-plan-progress .plan-overview-group{
 border:0;padding:0;gap:8px;
}
#homePlanSettings .desktop-plan-progress #planOverview > .plan-overview-group:first-child{
 padding:20px;border-radius:var(--radius-card);background:var(--accent-light);
}
#homePlanSettings .desktop-plan-progress #planOverview #planTitle{font-size:21px;color:var(--ink)}
#homePlanSettings .desktop-plan-progress #planProgress{font-weight:650;color:var(--ink)}
#homePlanSettings .desktop-plan-progress #planVocabularyMeter{
 display:block;width:100%;height:8px;accent-color:var(--accent);
}
#homePlanSettings .desktop-plan-progress #planAssessment{font-weight:650;color:var(--ink)}
#homePlanSettings .desktop-plan-progress .plan-actions{margin-top:4px}
#homePlanSettings .desktop-plan-progress #planSlow{
 margin:0;padding:14px;border-color:var(--line);background:var(--surface);
}
#homePlanSettings .desktop-plan-progress .plan-adjust-options article{background:var(--accent-light)}
#homePlanSettings .desktop-plan-progress .plan-adjust-options button{align-self:flex-start}
#homePlanSettings .desktop-plan-progress .plan-overview-group:last-child{
 border-top:1px solid var(--line);padding-top:12px;
}
