/* Learning workflow: shared light/dark tokens, mobile-first forms. */
.learning-progress{margin:0 0 28px;padding:20px 24px;background:var(--surface-soft,#f5f5f5);border:1px solid var(--line,#e5e5e5);border-radius:20px}
.learning-progress>div{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}.learning-progress p{margin:9px 0 0}.learning-progress progress{display:block;width:100%;height:8px;border:0;border-radius:20px;margin-top:14px;background:var(--line,#ddd);accent-color:var(--accent,#21f1a8)}
.learning-progress progress::-webkit-progress-bar{background:var(--line,#ddd);border-radius:20px}.learning-progress progress::-webkit-progress-value{background:var(--accent,#21f1a8);border-radius:20px}
.learning-sidebar{align-self:start}.curriculum>summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:18px;font-weight:600;margin-bottom:18px}.curriculum>summary span{font-size:13px;font-weight:400;color:var(--muted,#707070)}
.lesson-pager{display:flex;gap:16px;justify-content:space-between;align-items:start;margin:24px 0;flex-wrap:wrap}.lesson-pager a{max-width:48%;text-align:left}
.text-lesson-label{display:flex;gap:8px;align-items:center;color:var(--muted,#666);margin-bottom:20px}.text-lesson-label svg{width:18px;height:18px}.lesson-pending{min-height:180px}.lesson-pending h2{margin-top:16px}.preview-banner{border:1px solid var(--line,#ddd);background:var(--surface-soft,#f5f5f5);border-radius:16px;padding:16px;margin-bottom:24px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.attempt{border:1px solid var(--line,#ddd);border-radius:16px;margin-top:14px;overflow:hidden}.attempt>summary{display:flex;flex-wrap:wrap;align-items:center;gap:12px;cursor:pointer;padding:16px 20px;background:var(--surface-soft,#f6f6f6)}.attempt small{color:var(--muted,#666)}.attempt-body{padding:20px;overflow-wrap:anywhere}.attempt-body>p:last-child{margin-bottom:0}.hw-status{display:inline-block;padding:4px 10px;border-radius:40px;background:var(--surface-soft,#f2f2f2);font-size:13px;white-space:nowrap}.hw-status.submitted{background:#fff2ce;color:#775309}.hw-status.revision{background:#ffe7df;color:#963e28}.hw-status.accepted,.hw-status.completed{background:#d1f9e9;color:#12573e}
.homework-file{display:flex;align-items:center;gap:10px;border:1px solid var(--line,#ddd);border-radius:12px;padding:12px;margin-top:10px;overflow-wrap:anywhere}.homework-file svg{width:20px;height:20px;flex-shrink:0}.answer-link{display:block;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere;margin-bottom:14px}.review-comment{border-left:3px solid var(--accent,#21f1a8);padding:12px 16px;margin:18px 0;background:var(--surface-soft,#f5f5f5);border-radius:0 12px 12px 0}.review-comment p{margin:8px 0}.homework-row{display:flex;align-items:center;justify-content:space-between;gap:20px}.homework-row h3{margin:12px 0 4px}.homework-row p{margin-bottom:8px}.homework-row small{color:var(--muted,#666)}
.homework-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:14px;margin-bottom:25px}.homework-filters label{display:grid;gap:6px;font-size:14px}.homework-filters select,.homework-filters input{width:100%;min-width:0}
.learning-mode,.assignment-editor,.review-permissions{border:1px solid var(--line,#ddd);padding:22px;border-radius:20px;margin:25px 0;min-width:0}.learning-mode legend,.assignment-editor legend,.review-permissions legend{font-weight:600;font-size:20px;padding:0 8px}.learning-mode>label:not(.field){display:flex;align-items:flex-start;gap:14px;padding:14px;border:1px solid var(--line,#ddd);border-radius:14px;margin-bottom:12px;cursor:pointer}.learning-mode input[type=radio]{width:20px;height:20px;flex-shrink:0;accent-color:#21f1a8;margin:3px 0 0}.learning-mode small{display:block;color:var(--muted,#666);margin-top:5px;font-size:13px}.learning-mode .field{display:grid;gap:6px;margin-top:20px}.learning-mode label:has(input:checked){border-color:#18b57f;background:color-mix(in srgb,var(--accent,#21f1a8) 8%,transparent)}
.course-admin-group{border:1px solid var(--line,#ddd);border-radius:22px;margin-bottom:18px;overflow:hidden}.course-admin-group>summary{padding:22px 26px;display:flex;justify-content:space-between;align-items:center;gap:15px;cursor:pointer;background:var(--surface-soft,#f5f5f5)}.course-admin-group>summary span{font-size:13px;color:var(--muted,#666)}.course-admin-group>.panel{border:0;border-radius:0;margin:0;box-shadow:none}.course-admin-group .admin-lesson{gap:12px;flex-wrap:wrap}.course-admin-group .admin-lesson>div:first-child{flex:1;min-width:170px}.course-admin-group .admin-lesson .button{flex-shrink:0}.pair-row{border:1px solid var(--line,#ddd);border-radius:14px;padding:16px;margin-bottom:12px;display:grid;gap:10px}.pair-row label{display:grid;gap:6px;font-size:14px}.pair-editor>h4{font-size:18px;margin:20px 0 12px}.pair-editor{margin:18px 0 28px}.pair-editor .button{justify-self:start}.sticky-save{position:sticky;bottom:-28px;z-index:2;box-shadow:0 0 0 10px var(--surface,#fff)}
.student-course-progress{border-top:1px solid var(--line,#ddd);padding:14px 0}.student-course-progress>summary{cursor:pointer;font-weight:600;margin-bottom:10px}.student-course-progress h4{margin:20px 0 12px}.progress-lesson{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line,#ddd);padding:12px 0;font-size:14px}.student-course-progress .learning-progress{padding:14px;margin-bottom:14px}.account-course{padding:20px 0;border-bottom:1px solid var(--line,#ddd)}.account-course:last-child{border:0}.account-course .heading-row{margin-bottom:14px}.account-course .learning-progress{padding:16px;margin-bottom:14px}.account-course>p:last-child{margin:12px 0 0}
.course-cover{display:block}.course-cover:focus-visible{outline-offset:-4px}.course-cover .cover-title{color:white}.learning-progress .small,.attempt .small{color:var(--muted,#666)}
@media(max-width:982px){.learning-sidebar{order:-1}.lesson-layout{display:flex;flex-direction:column}.lesson-main,.learning-sidebar{width:100%;min-width:0}.learning-sidebar>.button{display:none}.curriculum{border:1px solid var(--line,#ddd);border-radius:16px;padding:18px;background:var(--surface-soft,#f5f5f5)}.curriculum>summary{margin:0}.curriculum[open]>summary{margin-bottom:15px}.learning-progress{padding:16px 18px}.lesson-pager a{max-width:100%;flex:1 1 240px}.homework-row{align-items:flex-start;flex-direction:column}.course-admin-group>summary{align-items:flex-start;flex-direction:column;padding:18px}.preview-banner{align-items:flex-start;flex-direction:column}}
@media(max-width:520px){.learning-mode,.assignment-editor,.review-permissions{padding:14px}.learning-mode legend,.assignment-editor legend{font-size:17px}.attempt>summary,.attempt-body{padding:14px}.progress-lesson{align-items:flex-start;flex-direction:column}.learning-progress>div>span{font-size:14px}.homework-filters{grid-template-columns:1fr 1fr}.homework-filters label:last-child{grid-column:1/-1}.pair-row{padding:12px}.student-course-progress .learning-progress{padding:10px}}

.progress-details-button{margin:-12px 0 24px}.order-tools{display:flex;gap:3px}.order-tools button{min-width:36px}.material-editor-list{margin:0 0 22px}.material-editor-list .admin-lesson{gap:12px}.material-editor-list span{overflow-wrap:anywhere;min-width:0}
@media(max-width:982px){.lesson-layout{gap:24px}.learning-sidebar{padding:0;background:none}.curriculum{padding:16px}.learning-progress{margin-bottom:24px}}
