/* A navigation row and a compact progress strip never share a grid cell. */
body.header-progress .topbar{height:auto;min-height:0;padding-block:4px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body.header-progress .topbar>.wrap{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"brand search account" "progress progress progress";align-items:center;column-gap:8px;row-gap:4px;min-width:0}
body.header-progress .topbar #logoHome{grid-area:brand;justify-self:start;min-width:0;margin:0;font-size:16px;line-height:1.2;letter-spacing:-.7px;white-space:nowrap}
body.header-progress .topbar #searchForm{grid-area:search;justify-self:end;width:min(100%,190px);max-width:190px;min-width:0;gap:3px}
body.header-progress .topbar #searchForm input{font-size:16px;min-height:30px;padding:3px 6px;line-height:22px}
body.header-progress .topbar #searchForm button{min-height:30px;padding:4px 7px;font-size:12px;line-height:20px}
body.header-progress .topbar>.wrap>.top-actions{grid-area:account;justify-self:end;margin:0;gap:4px;min-width:0}
body.header-progress .topbar #topProgress.compact-header-progress:not([hidden]){grid-area:progress;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;max-width:360px;min-width:0;justify-self:start;gap:4px;white-space:normal}
#topProgress .top-progress-card{display:flex;flex-direction:column;gap:2px;min-width:0;min-height:0;margin:0;padding:3px 5px;border:1px solid var(--line);border-radius:5px;background:#f3f7ef;color:var(--ink);text-align:left;line-height:1.2}
#topProgress .top-progress-card span{background:none;padding:0;border-radius:0;color:inherit;font-size:inherit}
#topProgress .top-progress-card .top-progress-primary{display:flex;align-items:baseline;justify-content:space-between;gap:3px;min-width:0;font-size:12px;line-height:15px}
#topProgress .top-progress-card .top-progress-name{font-size:12px;font-weight:750;white-space:nowrap}
#topProgress .top-progress-card strong{font-size:12px;font-weight:750;font-variant-numeric:tabular-nums;white-space:nowrap}
#topProgress .top-progress-card .top-progress-secondary{display:flex;align-items:baseline;justify-content:space-between;gap:5px;min-width:0;font-size:11px;line-height:14px}
#topProgress .top-progress-card .top-progress-metric{display:flex;align-items:baseline;gap:3px;min-width:0;white-space:nowrap}
#topProgress .top-progress-card .top-progress-metric>span{color:var(--muted)}
#topProgress .top-progress-card .top-progress-secondary strong{font-size:11px;font-weight:600}
body.header-progress .sidebar{top:calc(var(--theory-header-height,82px) + 10px)}
.progress-detail-metrics{display:grid;gap:3px;margin:12px 0}.progress-detail-metrics p{margin:0;font-size:16px}
.question-bottom-actions{border-top:1px solid var(--line);padding-top:12px;margin-top:18px;justify-content:flex-end}.question-bottom-actions button{min-height:44px;font-size:16px}
.explanation-references{margin:16px 0 0;font-size:14px}.explanation-references summary{cursor:pointer;font-weight:700}.explanation-references ul{padding-left:20px;line-height:1.7}.explanation-references a{color:var(--brand);overflow-wrap:anywhere}
@media(min-width:1000px){
 body.header-progress .topbar>.wrap{grid-template-columns:auto minmax(0,400px) minmax(0,1fr) auto;grid-template-areas:"brand progress search account";column-gap:12px}
 body.header-progress .topbar{min-height:48px}
}
@media(max-width:700px){
 body.header-progress .topbar>.wrap{width:calc(100% - 16px);column-gap:6px;row-gap:3px}
 body.header-progress .topbar #topProgress.compact-header-progress:not([hidden]){max-width:none}
 body.header-progress .topbar #searchForm{width:min(100%,160px);max-width:160px}
 body.header-progress .account-menu-trigger{width:34px;min-height:34px;padding:3px;justify-content:center}
 body.header-progress .account-avatar{width:26px;height:26px;font-size:14px}
 body.header-progress .account-username{display:none}
 #topProgress .top-progress-card{padding:3px;gap:1px}
 #topProgress .top-progress-card .top-progress-secondary,#topProgress .top-progress-card .top-progress-secondary strong{font-size:10.5px;letter-spacing:-.15px}
 #topProgress .top-progress-card .top-progress-secondary{gap:2px;line-height:13px}
 #topProgress .top-progress-card .top-progress-metric{gap:2px}
}
@media(max-width:350px){
 body.header-progress .topbar #logoHome{font-size:15px}
 body.header-progress .topbar #searchForm{max-width:140px}
 #topProgress .top-progress-card .top-progress-secondary{flex-direction:column;gap:0}
 #topProgress .top-progress-card .top-progress-metric{justify-content:space-between;width:100%}
}

.home-title-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.saved-set-resume{width:100%;height:100%;box-sizing:border-box}.resume-card>.saved-set-resume .recent-subject,.resume-card>.saved-set-resume .recent-progress{font-size:14px;line-height:1.5}.resume-card>.saved-set-resume strong{font-size:14px;line-height:1.5}
.home-title-row h1{margin:0}.continuous-open{font-size:14px;min-height:32px;padding:5px 9px;border-radius:7px;white-space:nowrap}
.wrong-review-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.wrong-review-heading h1{margin-bottom:6px}.wrong-review-heading p{margin-bottom:0}
.combined-exam-progress{display:block!important}.wrong-set-form>label{display:grid;gap:7px;font-size:14px}.wrong-set-form>[hidden]{display:none!important}.wrong-set-form .result-muted{font-size:14px;line-height:1.6}
.wrong-set-ranges{display:grid;gap:10px;min-width:0;border:0;padding:0;margin:0 0 16px}.wrong-set-ranges legend{font-size:14px;font-weight:600;padding:0;margin-bottom:10px}.wrong-set-ranges label{display:flex;align-items:center;gap:8px;font-size:14px;line-height:1.5}.wrong-set-ranges input[type=checkbox]{margin:0;padding:0}
#wrongSetDialog .dialog-title h2,#continuousPractice .dialog-title h2{font-size:18px;min-width:0}
#wrongSetDialog .dialog-title button,#continuousPractice .dialog-title button{flex-shrink:0;min-height:34px;min-width:0;padding:5px 9px;font-size:14px}
.wrong-review-subjects{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:12px}
.wrong-review-card{display:flex;flex-direction:column;gap:10px;padding:16px!important;margin:0!important}
.wrong-card-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.wrong-card-heading h2{margin:0;font-size:17px}
.wrong-card-count{color:var(--muted);font-size:14px;white-space:nowrap}.wrong-card-summary{margin:0!important;font-size:14px}
.wrong-review-card .wrong-card-progress{width:100%;height:7px;margin:0;accent-color:var(--brand)}
.wrong-review-card>.action-btn{align-self:flex-start;margin-top:2px;min-height:36px;padding:6px 12px;font-size:14px}
.solo-study-panel{margin:0 0 20px!important;padding:20px!important;scroll-margin-top:110px;background:#fff!important;border:1px solid var(--line);border-radius:14px!important}
.solo-study-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.solo-study-heading h2{margin:0;font-size:20px}.solo-study-heading button{font-size:14px;min-height:34px;padding:5px 10px}
.solo-metric-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.solo-metric-grid[hidden]{display:none}
.solo-metric-grid section{min-width:0}.solo-metric-grid h3{font-size:14px;font-weight:500;color:var(--muted);margin:0 0 6px}.solo-metric-grid strong{font-size:30px;letter-spacing:-1px;font-variant-numeric:tabular-nums}.solo-metric-grid p{font-size:14px;margin:4px 0 10px;color:var(--muted)}
.solo-metric-grid progress,.continuous-set progress{display:block;width:100%;height:7px;accent-color:var(--brand);border:0}.solo-balance{display:inline-block;font-size:14px!important;margin:18px 0 0!important;color:var(--brand);background:#edf5e9;padding:6px 10px;border-radius:7px}.solo-balance[data-status="behind"]{background:#f6f1e8;color:#80602a}
.solo-study-form{display:grid;gap:16px}.solo-study-form label,.continuous-new>label{display:grid;gap:7px;font-size:14px}.solo-study-form input,.continuous-new select{font:inherit;width:100%;min-height:40px;padding:8px;border:1px solid var(--line);border-radius:7px}.solo-study-form button{justify-self:start}
.continuous-new{margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}.continuous-new h3{font-size:16px;margin:0 0 12px}.continuous-new select{margin-bottom:10px}.continuous-filter{display:flex!important;align-items:center;gap:7px!important;line-height:1.5;font-size:14px}
.continuous-set{padding:14px 0 18px;border-bottom:1px solid var(--line)}.continuous-set-heading{position:relative;padding-right:32px;min-height:26px}.continuous-set-heading .resume-dismiss{top:-6px;right:-5px}.continuous-set .result-muted{font-size:14px;margin:4px 0 10px}.continuous-set>button{margin-top:14px}
#continuousPractice,#wrongSetDialog,#soloSettingsDialog,#resumeRemovalDialog{width:min(440px,calc(100% - 24px));max-height:85dvh}#resumeRemovalDialog p{line-height:1.7;font-size:15px}#resumeRemovalLabel{display:block;margin:12px 0;overflow-wrap:anywhere}
@media(max-width:420px){.solo-study-panel{padding:16px!important}.solo-metric-grid{gap:14px}.solo-metric-grid strong{font-size:26px}.home-title-row{gap:7px}}

#subjectWrongOrder{width:min(420px,calc(100% - 24px))}.wrong-order-field{display:grid;gap:8px;font-size:14px}#subjectWrongOrder .dialog-title button{font-size:14px;min-height:34px;padding:5px 9px}

.question-table{font-size:14px;line-height:1.6}.question-table th,.question-table td{white-space:pre-line;vertical-align:top}.lab-list{font-variant-numeric:tabular-nums}
.national-source-form{white-space:pre-wrap;line-height:1.7;margin:16px 0;padding:14px;border:1px solid var(--line);border-radius:10px}.national-source-form>div{min-height:1.7em}

#dailyLearningTitle{font-size:16px;margin:0 0 12px}.personal-day-metrics{display:grid;grid-template-columns:1fr 1fr;gap:16px;list-style:none}.personal-day-metrics>div{display:grid;gap:6px}.personal-day-metrics span{font-size:14px;color:var(--muted,#53605a)}.personal-day-metrics strong{font-size:22px;line-height:1.3;color:var(--ink,#17211a)}
