/* Clear home hierarchy, compact secondary information, and consistent spacing. */
body>header{padding-block:16px;gap:20px}body>header nav{gap:22px}.site-help{white-space:nowrap;font-size:13px;padding:8px 12px}main:not(.game){padding-top:28px}button,input,select{scroll-margin-block:90px}summary:focus-visible{outline:2px solid var(--lime);outline-offset:4px}
.dashboard-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.dashboard-heading h1{font-size:clamp(28px,3.5vw,38px);margin:6px 0 8px}.dashboard-heading p{margin:0;font-size:14px}.dashboard-heading>.text-button{white-space:nowrap}
.dashboard-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--line);border-radius:10px;background:var(--panel);margin-bottom:22px}.dashboard-stats>div{padding:16px 20px;border-right:1px solid var(--line)}.dashboard-stats>div:last-child{border:0}.dashboard-stats span,.dashboard-stats small{display:block;color:var(--muted);font-size:12px}.dashboard-stats strong{display:block;font-size:28px;font-weight:500;margin:2px 0}.dashboard-stats strong small{display:inline;font-size:14px}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(310px,1fr);gap:22px;align-items:start}.dashboard-grid>*,.dashboard-grid .panel{min-width:0}.dashboard-grid .panel{padding:22px;margin:0 0 20px}.dashboard-grid .panel h2{font-size:23px}.dashboard-grid .panel p{font-size:13px;line-height:1.55}.dashboard-grid .section-head{margin-bottom:14px}.plan-count{font-size:15px;white-space:nowrap;color:var(--muted)}.plan-count strong{font-size:32px;color:var(--ink);font-weight:500}.dashboard-page .daily-plan #daily-start{min-width:230px;margin-top:2px}.goal-settings{margin-top:14px;border-bottom:1px solid var(--line)}.goal-settings summary{font-size:13px;color:var(--muted)}.goal-settings .daily-goal-form{margin:4px 0 18px}.plan-focus-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0 4px}.plan-focus-heading h3{font-size:14px;margin:0}.plan-focus-heading>span{font-size:11px;color:var(--muted)}.daily-list{list-style:none;padding:0;margin:0}.daily-list li{display:flex;justify-content:space-between;align-items:center;gap:14px;border-bottom:1px solid var(--line);padding:10px 0}.daily-list li:last-child{border:0}.daily-list strong{font-size:14px}.daily-list small{display:block;color:var(--muted);font-size:11px;margin-top:2px}.daily-list li>span{color:var(--muted);font-size:11px;text-align:right;white-space:nowrap}.daily-list b{display:block;color:var(--ink);font-weight:400}.plan-footnote{font-size:11px!important;margin-bottom:0}.assessment-compact .actions{margin-top:12px;align-items:center}.assessment-caption{font-size:12px!important;margin:8px 0}.assessment-compact .session-choice{margin:4px 0;display:flex;justify-content:space-between}.assessment-compact details{margin-top:10px;border-top:1px solid var(--line)}.training-guide summary,.mastery-settings summary{font-weight:600}.training-guide ol{padding-left:20px;margin:0}.training-guide li{font-size:13px;margin:12px 0;color:var(--muted)}.training-guide strong{color:var(--ink)}
.dashboard-page .goal-calendar{max-width:none}.dashboard-page .streak-metrics{gap:30px}.dashboard-page .streak-metrics strong{font-size:29px}.dashboard-page .streak-metrics span{font-size:12px}.dashboard-page .calendar-heading{margin:16px 0 8px}.dashboard-page .calendar-heading h2{font-size:18px}.dashboard-page .calendar-heading button{padding:6px 12px;min-height:40px}.dashboard-page .goal-calendar table{min-width:0;border-spacing:3px}.dashboard-page .calendar-day{min-height:38px;padding:3px;gap:3px;color:var(--ink);font-size:12px}.dashboard-page .calendar-day.goal-met{color:#11170a}.dashboard-page .calendar-day[aria-current=date]{outline-color:var(--ink)}.dashboard-page .goal-calendar th{font-size:10px;padding:4px 0}.dashboard-page .goal-calendar .calendar-legend,.dashboard-page .goal-calendar .calendar-detail{font-size:11px;min-height:0;margin:10px 0}.dashboard-page .goal-calendar details>summary{font-size:12px}.weak-list{list-style:none;padding:0;margin:0 0 10px}.weak-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line)}.weak-list li>.text-button{text-align:left;font-size:13px;min-height:44px}.weak-list b{font-size:15px;color:var(--lime);font-weight:500}.compact-focus>.text-button{display:block;min-height:44px;font-size:13px;text-align:left}.mastery-settings{margin:0!important;padding:12px 22px}.mastery-settings .target{margin:12px 0;gap:12px}.mastery-settings p{font-size:13px;max-width:900px}
.site-guide{width:min(680px,calc(100% - 24px));max-height:90dvh;overflow:auto;border:1px solid var(--line);border-radius:14px;background:var(--panel);color:var(--ink);padding:26px}.site-guide::backdrop{background:#000b}.guide-heading{display:flex;justify-content:space-between;align-items:start;gap:15px}.guide-heading h2{font-size:26px;margin:6px 0}.guide-heading button{min-width:44px;font-size:22px}.site-guide ol{padding-left:22px}.site-guide li{padding-left:6px;margin:18px 0}.site-guide li strong{font-size:15px}.site-guide p{font-size:13px;line-height:1.6;margin:5px 0}.site-guide details{border-top:1px solid var(--line)}.site-guide .guide-note{font-size:12px;margin-top:20px}.rating-onboarding{margin:12px auto}.rating-onboarding>p{max-width:650px}
@media(min-width:761px) and (max-width:1080px){body>header{padding-inline:24px;gap:12px}body>header nav{gap:12px}body>header .brand{font-size:17px}body>header nav button,body>header nav .admin-link{font-size:12px}.dashboard-grid{grid-template-columns:minmax(0,1.4fr) minmax(280px,1fr);gap:16px}.dashboard-grid .panel{padding:18px}.site-help{padding-inline:10px}}
@media(max-width:760px){body>header{padding:10px 16px;gap:10px}body>header .site-help{min-height:40px;padding:6px 10px}.dashboard-page{padding:20px 16px}.dashboard-heading{display:block;margin-bottom:16px}.dashboard-heading h1{font-size:29px}.dashboard-heading>.text-button{font-size:12px;min-height:36px;padding:8px 0}.dashboard-stats{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:16px}.dashboard-stats>div{padding:12px 9px}.dashboard-stats span{font-size:10px}.dashboard-stats strong{font-size:23px}.dashboard-stats strong small{font-size:10px}.dashboard-stats>div>small{font-size:10px;line-height:1.4}.dashboard-grid{display:flex;flex-direction:column;gap:0}.dashboard-primary,.dashboard-secondary{width:100%}.dashboard-grid .panel{padding:18px;margin-bottom:16px}.dashboard-page .daily-plan #daily-start{width:100%;min-width:0}.dashboard-page .daily-plan .section-head{display:flex}.dashboard-page .daily-plan .section-head h2{font-size:24px}.dashboard-page .daily-plan .section-head button{margin:0}.plan-count strong{font-size:30px}.daily-list li>div{min-width:0}.daily-list strong{font-size:13px}.plan-focus-heading>span{font-size:10px}.dashboard-page .calendar-day{min-height:44px}.dashboard-page .assessment-compact .actions{display:flex;flex-wrap:wrap}.assessment-compact .actions .secondary{width:100%}.dashboard-page .mastery-settings{padding:10px 18px}.site-guide{padding:20px}.guide-heading h2{font-size:23px}.rating-onboarding{margin:6px auto}}
/* Keep the daily count beside its heading on small screens. */
.dashboard-page .daily-plan .section-head{flex-direction:row;align-items:center}
@media(max-width:760px){.dashboard-page{display:flex;flex-direction:column}.dashboard-heading{order:0}.dashboard-grid,.dashboard-primary{display:contents}.dashboard-page .daily-plan{order:1}.dashboard-stats{order:2}.assessment-compact{order:3}.training-guide{order:4}.dashboard-secondary{order:5}.mastery-settings{order:6}}
@media(min-width:761px) and (max-width:900px){body>header{flex-wrap:wrap}body>header nav{order:3;flex-basis:100%;justify-content:center;gap:22px}body>header .site-help{margin-left:auto}}
.challenge-choice{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;margin-top:16px}.challenge-choice select{max-width:68%;min-height:44px;padding:8px;background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:6px}.challenge-explanation,.challenge-evidence{font-size:11px!important;color:var(--muted)}.game .difficulty-note{font-size:12px;color:var(--muted);margin:4px 0 12px}.game #too-easy{flex-basis:100%;font-size:13px}.game #too-easy small{display:block;font-size:11px;font-weight:400;margin-top:3px}.game #too-easy[hidden]{display:none}.game #challenge-mode{max-width:65%}@media(max-width:760px){.challenge-choice{align-items:start;flex-direction:column;gap:6px}.challenge-choice select{max-width:none;width:100%}.game .difficulty-note{font-size:11px;margin:0 0 8px}}
.guest-badge{font-size:11px;color:var(--lime);border:1px solid var(--line);border-radius:20px;padding:5px 9px;white-space:nowrap}.guest-badge[hidden]{display:none}.signin-gate #guest-required{display:block;min-width:210px;margin-top:12px}.signin-gate .guest-note{font-size:12px;margin-top:8px;max-width:420px}.account-dialog #guest-leave{margin-top:18px}.account-dialog #guest-reset-undo{display:block;margin-top:14px}.account-dialog #guest-reset-cancel{margin-left:8px}.account-dialog #account-guest{margin:12px 0}@media(max-width:760px){body>header:has(.guest-badge:not([hidden])) .brand{font-size:14px}body>header:has(.guest-badge:not([hidden])) .brand small{display:none}body>header .guest-badge{font-size:9px;padding:4px 6px}.signin-gate #guest-required{width:100%}}
body>header .guest-badge{background:transparent;min-height:44px;cursor:pointer}
