.study-hud{position:sticky;top:0;z-index:28;background:#f6f4ed;padding-top:10px;padding-bottom:10px;isolation:isolate}
.study-goals-strip{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1.1fr) minmax(0,1fr) auto auto;align-items:center;border:1px solid var(--border,#d8ded5);border-radius:12px;background:#fff;min-height:62px;padding:10px 16px;gap:16px}
.study-goal{display:flex;align-items:center;gap:15px;min-width:0;padding-right:16px;border-right:1px solid #eee}
.study-goal>div{flex-shrink:0}.study-goal span{display:block;font-size:11px;color:#6e746f;margin-bottom:3px}.study-goal strong{font-size:14px;white-space:nowrap}
.study-goal progress{appearance:none;border:0;border-radius:8px;background:#e8e8e7;height:8px;min-width:28px;width:100%;overflow:hidden;accent-color:#315b43}
.study-goal progress::-webkit-progress-bar{background:#e8e8e7;border-radius:8px}.study-goal progress::-webkit-progress-value{background:#315b43;border-radius:8px;transition:width .45s linear}.study-goal progress::-moz-progress-bar{background:#315b43;border-radius:8px}
.study-minutes-goal progress{accent-color:#65a57b}.study-minutes-goal progress::-webkit-progress-value{background:#65a57b}.study-minutes-goal progress::-moz-progress-bar{background:#65a57b}
.study-streak{display:flex;gap:9px;align-items:center;white-space:nowrap;font-size:13px}.study-flame{color:#315b43;font-size:25px}.study-edit{color:#795943;font-size:11px;white-space:nowrap;padding:10px 0}
.study-state{font-size:12px;color:#555e58;margin:5px 0 0}.study-state:empty{display:none}
.study-material-heading{display:flex;align-items:center;gap:10px;margin:10px 0 8px}.study-material-heading h2{font-size:20px;letter-spacing:-.5px;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:78%}.study-material-heading>span{font-size:11px;color:#5d6369;white-space:nowrap}.study-material-heading button{margin-left:auto;border:0;background:none;color:#c14c14;font-size:11px;padding:5px;white-space:nowrap}
.study-material-strip{display:grid;grid-template-columns:1fr 1fr 1fr;border:1px solid var(--border,#d8ded5);border-radius:12px;background:#fff;padding:13px 16px;gap:16px}
.study-material-strip>div{min-width:0;position:relative}.study-material-strip>div+div{border-left:1px solid #e6e6e8;padding-left:22px}
.study-metric-label{display:block;font-size:11px;margin-bottom:4px;color:#39424a}.study-material-strip strong{display:inline-block;font-size:23px;line-height:1.15;letter-spacing:-.5px}.study-material-strip small{display:block;color:#788079;font-size:10px;margin-top:5px;line-height:1.4}.study-material-strip a{float:right;color:#8069c8;font-size:10px;padding:8px 0}
#study-first-dots{display:inline-flex;gap:4px;margin-left:12px;vertical-align:middle}#study-first-dots i{width:8px;height:8px;border-radius:50%;background:#d8ded5}#study-first-dots i.filled{background:#67a67e}
.study-hud:has(#study-material:not([hidden])){box-shadow:0 8px 14px -14px #243b2f66}
.lesson-page:has(.study-hud) .transport{top:var(--study-hud-height,0px);z-index:24}.lesson-page:has(.study-hud) .sentence-option{scroll-margin-top:calc(var(--study-hud-height,0px) + var(--transport-offset,190px))}
.study-settings{max-width:650px;padding-top:32px;padding-bottom:60px}.study-settings h1{font-size:32px;margin:0 0 10px}.study-settings>p{color:#5d6369;line-height:1.6}.study-settings form{border:1px solid var(--border);border-radius:16px;padding:26px;background:white;margin-top:24px}.study-settings label{display:block;font-weight:600;font-size:14px;margin-bottom:10px}.study-settings input[type=number]{width:120px;border:1px solid #dfe2df;border-radius:8px;padding:12px;margin-right:8px}.study-field{margin-bottom:24px}.study-settings fieldset{border:0;padding:0;margin:0 0 24px}.study-settings legend{font-weight:600;font-size:14px;margin-bottom:12px}.study-weekdays{display:flex;flex-wrap:wrap;gap:8px}.study-weekdays label{display:flex;gap:6px;align-items:center;padding:9px;border:1px solid #d8ded5;border-radius:8px;cursor:pointer;font-weight:400}.study-settings .primary{background:var(--accent);border:0;color:white;padding:13px 20px;border-radius:10px;font-weight:600}.study-settings small{display:block;color:#5d6369;margin-top:8px;line-height:1.6}.study-settings [role=status]{font-size:13px;line-height:1.6}
@media(max-width:700px){
 .study-hud{padding:7px 16px}.study-goals-strip{grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:8px 10px;gap:10px;min-height:55px}.study-goal{display:block;padding-right:8px}.study-goal span{font-size:12px}.study-goal strong{font-size:12px}.study-goal progress{display:block;margin-top:5px;height:6px}.study-streak{gap:4px;font-size:12px}.study-flame{font-size:18px}.study-edit{display:none}.study-state{font-size:12px}
 .study-words-goal,.study-minutes-goal{padding-bottom:6px;border-bottom:1px solid #eee}.study-week-goal{border-right:0}.study-streak{justify-self:start}
 .study-material-heading{gap:6px;margin:6px 0}.study-material-heading h2{font-size:15px;max-width:68%}.study-material-heading>span{font-size:12px}.study-material-heading button{font-size:12px}
 .study-material-strip{padding:9px 10px;gap:8px}.study-material-strip>div+div{padding-left:8px}.study-metric-label{font-size:12px;min-height:22px;line-height:1.2}.study-material-strip strong{font-size:19px}.study-material-strip small{font-size:9px;margin-top:3px}.study-material-strip a{float:none;display:block;font-size:12px;padding:3px 0 0}#study-first-dots{display:none}
 .study-material-strip>div:last-child small{display:none}.study-settings{padding-top:24px}.study-settings form{padding:18px}
}
@media(prefers-reduced-motion:reduce){.study-goal progress::-webkit-progress-value{transition:none}}
.study-material-strip #study-history-link{float:right;background:none;border:0;color:#8069c8;font-size:10px;padding:8px 0;cursor:pointer}
#study-history{position:absolute;right:0;top:100%;width:min(360px,85vw);background:white;border:1px solid #d8ded5;border-radius:12px;padding:16px;box-shadow:0 12px 35px #233b3022;z-index:40;max-height:240px;overflow:auto}
#study-history>strong{font-size:13px;letter-spacing:0}#study-history ol{padding-left:18px;font-size:12px;line-height:1.8}
@media(max-width:700px){.study-material-strip #study-history-link{float:none;display:block;padding:3px 0 0;font-size:12px}}
.study-words-complete .study-words-goal progress,.study-day-complete .study-minutes-goal progress{accent-color:#65a57b}.study-words-complete .study-words-goal progress::-webkit-progress-value,.study-day-complete .study-minutes-goal progress::-webkit-progress-value{background:#65a57b}.study-words-complete .study-words-goal progress::-moz-progress-bar,.study-day-complete .study-minutes-goal progress::-moz-progress-bar{background:#65a57b}.study-words-complete .study-state,.study-day-complete .study-state{color:#377747}
@media(max-width:700px){.study-material-strip small{display:none}.study-material-strip{min-height:74px}.study-metric-label{font-size:10px;min-height:24px}}
.study-unit{font-size:12px;margin-left:5px;white-space:nowrap}
@media(max-width:700px){.study-unit{font-size:11px;margin-left:3px}.study-material-strip strong{white-space:nowrap}.study-material-strip>div{overflow-wrap:normal}}
.study-review{margin:4px 0 4px 6px;padding:5px 8px;border:1px solid #dfe5df;border-radius:6px;background:white;color:#59755e;font-size:11px;cursor:pointer}
.study-hud{z-index:45}
/* The learner can open progress on a phone without keeping its metrics above the phrase. */
.mobile-progress-toggle{display:none}
@media(max-width:640px){
 .lesson-page .study-hud{position:static;padding:0 16px 4px;box-shadow:none}
 .lesson-page .mobile-progress-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:44px;padding:8px 12px;border:1px solid var(--border);border-radius:9px;background:#fff;color:#425149;font-size:12px;font-weight:600}
 .lesson-page #study-goals-content{display:none}
 .lesson-page .study-hud.mobile-progress-open #study-goals-content{display:block;padding-top:8px}
 .lesson-page:has(.study-hud) .transport{top:auto}
 .lesson-page:has(.study-hud) .sentence-option{scroll-margin-top:12px}
}
