.course-section-main--progress {
  padding: 0;
  background: #f3f4f6;
  overflow-x: hidden;
  max-width: 100%;
}

.progress-layout {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 1rem 1.5rem 2.5rem;
  box-sizing: border-box;
}

.progress-identity-hint {
  margin: 0 0 0.85rem;
  color: #666;
  font-size: 0.88rem;
  font-weight: 500;
}

.progress-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.progress-period-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 24rem;
}

.progress-period-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.45rem 0.75rem;
  border: 1px solid #c8d0da;
  border-radius: 0.15rem;
  background: #ffffff;
  color: #333;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

.progress-period-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.progress-period-toggle-label svg {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  color: #5b8dbd;
}

.progress-period-toggle-label span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-period-chevron {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s ease;
}

.progress-period-toggle[aria-expanded='true'] .progress-period-chevron {
  transform: rotate(180deg);
}

.progress-period-panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  z-index: 20;
  width: min(100%, 18.5rem);
  padding: 0.85rem;
  border: 1px solid #d8dee6;
  border-radius: 0.15rem;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.progress-period-panel[hidden] {
  display: none;
}

.progress-period-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.progress-period-calendar-title {
  color: #333;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
}

.progress-period-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 1px solid #d8dee6;
  border-radius: 0.15rem;
  background: #f8fafc;
  color: #445566;
  cursor: pointer;
}

.progress-period-nav-btn svg {
  width: 0.95rem;
  height: 0.95rem;
}

.progress-period-nav-btn:hover {
  background: #eef3f8;
}

.progress-period-weekdays,
.progress-period-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.15rem;
}

.progress-period-weekdays {
  margin-bottom: 0.35rem;
}

.progress-period-weekday {
  color: #667788;
  font-size: 0.68rem;
  font-weight: 600;
  text-align: center;
}

.progress-period-day {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #333;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.progress-period-day:hover:not(:disabled) {
  background: #eef3f8;
}

.progress-period-day--muted {
  color: #99a3ad;
}

.progress-period-day--disabled {
  color: #c5ccd3;
  cursor: not-allowed;
}

.progress-period-day--today {
  box-shadow: inset 0 0 0 1px #5b8dbd;
}

.progress-period-day--in-range {
  border-radius: 0;
  background: #e8f1fa;
}

.progress-period-day--range-start,
.progress-period-day--range-end,
.progress-period-day--anchor {
  background: #5b8dbd;
  color: #ffffff;
}

.progress-period-day--range-start {
  border-radius: 999px 0 0 999px;
}

.progress-period-day--range-end {
  border-radius: 0 999px 999px 0;
}

.progress-period-day--range-start.progress-period-day--range-end,
.progress-period-day--anchor.progress-period-day--range-end {
  border-radius: 999px;
}

.progress-period-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.progress-period-preset {
  padding: 0.3rem 0.55rem;
  border: 1px solid #c8d0da;
  border-radius: 999px;
  background: #ffffff;
  color: #445566;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.progress-period-preset:hover {
  background: #f3f6f9;
}

.progress-period-help {
  margin: 0.65rem 0 0;
  color: #667788;
  font-size: 0.72rem;
  line-height: 1.35;
}

.progress-toolbar-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #333;
  font-size: 0.88rem;
  cursor: pointer;
}

.progress-toolbar-check input {
  width: 0.95rem;
  height: 0.95rem;
  margin: 0;
}

.progress-toolbar-select-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.progress-toolbar-select-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  color: #5b8dbd;
}

.progress-toolbar-select-icon svg {
  width: 100%;
  height: 100%;
}

.progress-toolbar-select {
  min-width: 10rem;
  padding: 0.35rem 1.75rem 0.35rem 0.55rem;
  border: 1px solid #c8d0da;
  border-radius: 0.15rem;
  background: #ffffff;
  color: #333;
  font: inherit;
  font-size: 0.88rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.55rem center;
}

.progress-filter-wrap {
  margin-bottom: 0.65rem;
}

.progress-filter-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.55rem 0.85rem;
  border: 1px solid #d8dee6;
  border-radius: 0.15rem;
  background: #eef1f4;
  color: #333;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.progress-filter-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.progress-filter-toggle-label svg {
  width: 1rem;
  height: 1rem;
}

.progress-filter-chevron {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s ease;
}

.progress-filter-toggle[aria-expanded='true'] .progress-filter-chevron {
  transform: rotate(180deg);
}

.progress-filter-panel {
  padding: 1rem 1rem 0.85rem;
  border: 1px solid #d8dee6;
  border-top: none;
  background: #ffffff;
}

.progress-filter-panel[hidden] {
  display: none;
}

.progress-filter-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.progress-filter-grid {
  display: grid;
  gap: 0.85rem 1rem;
}

.progress-filter-grid--top {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.progress-filter-grid--bottom {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.progress-filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.progress-filter-field--below-time {
  grid-column: 1;
}

.progress-filter-label {
  color: #667788;
  font-size: 0.72rem;
  font-weight: 500;
}

.progress-filter-control {
  width: 100%;
  padding: 0.15rem 0 0.35rem;
  border: none;
  border-bottom: 1px solid #c8d0da;
  border-radius: 0;
  background: transparent;
  color: #333;
  font: inherit;
  font-size: 0.88rem;
}

.progress-filter-control:focus {
  outline: none;
  border-bottom-color: #5b8dbd;
}

.progress-filter-input {
  appearance: textfield;
}

.progress-filter-input::-webkit-outer-spin-button,
.progress-filter-input::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}

.progress-filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}

.progress-filter-chip {
  padding: 0.3rem 0.7rem;
  border: 1px solid #c8d0da;
  border-radius: 999px;
  background: #ffffff;
  color: #445566;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.progress-filter-chip:hover {
  background: #f3f6f9;
}

.progress-filter-chip.is-active {
  border-color: var(--section-color, #7e1168);
  background: rgba(126, 17, 104, 0.08);
  color: var(--section-color, #7e1168);
}

.progress-filter-struggling-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 0;
}

.progress-filter-struggling-caption {
  margin: 0;
  color: #667788;
  font-size: 0.78rem;
  line-height: 1.45;
}

.progress-filter-struggling-threshold {
  width: 2.75rem;
  padding: 0.1rem 0.25rem;
  border: none;
  border-bottom: 1px solid #c8d0da;
  background: transparent;
  color: #333;
  font: inherit;
  font-size: 0.82rem;
  text-align: center;
}

.progress-filter-struggling-threshold:focus {
  outline: none;
  border-bottom-color: #5b8dbd;
}

.progress-filter-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #333;
  font-size: 0.88rem;
  cursor: pointer;
  white-space: nowrap;
}

.progress-filter-check input {
  width: 0.95rem;
  height: 0.95rem;
  margin: 0;
}

.progress-filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1.25rem;
  padding-top: 0.15rem;
}

.progress-filter-action {
  padding: 0;
  border: none;
  background: transparent;
  color: #99a3ad;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.progress-filter-action:hover {
  color: #5b8dbd;
}

.progress-student-name-btn {
  max-width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: inherit;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.progress-table-row--student {
  cursor: pointer;
}

.progress-table-row--student:hover {
  background: #f7f9fc;
}

.progress-student-expand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  color: #667788;
}

.progress-table-cell--student-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}

.progress-student-expand-icon svg {
  width: 100%;
  height: 100%;
  transition: transform 0.2s ease;
}

.progress-table-row--student.is-open .progress-student-expand-icon svg {
  transform: rotate(180deg);
}

.progress-student-detail {
  border-bottom: 1px solid #e8ebef;
  background: #f7f9fc;
}

.progress-student-detail-empty {
  padding: 0.75rem 1rem 0.85rem;
  color: #667788;
  font-size: 0.82rem;
  font-style: italic;
}

.progress-table-row--module {
  background: #dceaf6;
  color: #234;
  font-weight: 600;
}

.progress-table-row--module:hover {
  background: #d2e3f2;
}

.progress-table-row--lesson {
  background: #ffffff;
  color: #333;
}

.progress-table-row--lesson:hover {
  background: #fbfcfe;
}

.progress-module-title,
.progress-lesson-title {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-lesson-title {
  padding-left: 1.15rem;
  font-weight: 500;
}

.progress-table-row--module .progress-table-time-icon,
.progress-table-row--module .progress-table-composite-icon__location,
.progress-table-row--module .progress-table-composite-icon__time,
.progress-table-row--lesson .progress-table-time-icon,
.progress-table-row--lesson .progress-table-composite-icon__location,
.progress-table-row--lesson .progress-table-composite-icon__time {
  opacity: 0.95;
}

.progress-table-row--student.is-selected {
  background: #eef4fb;
}

.progress-student-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-table-row--student.is-selected .progress-student-name {
  font-weight: 600;
}

.progress-table-row--student.is-selected:hover {
  background: #eef4fb;
}

@media (max-width: 900px) {
  .progress-filter-grid--top,
  .progress-filter-grid--bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .progress-filter-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
}

.progress-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  border: 1px solid #d8dee6;
  background: #ffffff;
}

.progress-table {
  width: 100%;
  min-width: 0;
}

.progress-table-head,
.progress-table-row {
  display: grid;
  grid-template-columns:
    minmax(0, 2.2fr)
    minmax(0, 1fr)
    minmax(0, 1fr)
    minmax(0, 1fr)
    minmax(0, 0.85fr)
    minmax(0, 0.85fr)
    minmax(2rem, 0.5fr);
  align-items: center;
  gap: clamp(0.25rem, 0.8vw, 0.5rem);
}

.progress-table-head {
  padding: 0.55rem clamp(0.45rem, 1.2vw, 0.85rem);
  border-bottom: 1px solid #d8dee6;
  background: #ffffff;
  color: #333;
  font-size: 0.82rem;
  font-weight: 600;
}

.progress-table-row {
  width: 100%;
  padding: 0.45rem clamp(0.45rem, 1.2vw, 0.85rem);
  border: none;
  border-bottom: 1px solid #e8ebef;
  background: #ffffff;
  color: #333;
  font: inherit;
  font-size: 0.84rem;
  text-align: left;
}

.progress-table-row--class {
  background: #5b8dbd;
  color: #ffffff;
}

.progress-table-row--class:hover {
  filter: brightness(1.03);
}

.progress-class-name-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  min-width: 0;
  flex-wrap: wrap;
}

.progress-class-name-input {
  min-width: 0;
  width: min(100%, 14rem);
  flex: 1 1 6rem;
  padding: 0.1rem 0.2rem;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-size: inherit;
  font-weight: 700;
}

.progress-class-name-input::placeholder {
  color: rgba(255, 255, 255, 0.75);
}

.progress-class-name-input:focus {
  outline: none;
  border-bottom-color: #ffffff;
}

.progress-class-student-count {
  font-weight: 700;
  white-space: nowrap;
}

.progress-table-cell--class-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
}

.progress-class-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: none;
  border-radius: 0.15rem;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.progress-class-add-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.progress-class-add-btn svg {
  width: 1rem;
  height: 1rem;
}

.progress-class-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: none;
  border-radius: 0.15rem;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.progress-class-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.progress-class-toggle-btn svg {
  width: 0.95rem;
  height: 0.95rem;
  transition: transform 0.2s ease;
}

.progress-table-row--class.is-open .progress-class-toggle-btn svg {
  transform: rotate(180deg);
}

.progress-class-create-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px dashed #9b7fc0;
  border-radius: 0.25rem;
  padding: 0.45rem 0.75rem;
  background: #f7f3fb;
  color: var(--purple-dark);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.progress-class-create-btn svg {
  width: 0.95rem;
  height: 0.95rem;
}

.progress-class-create-btn:hover {
  background: #efe7f7;
}

.progress-table-row--add-class {
  background: #fafbfc;
}

.progress-table-row--add-class .progress-table-cell {
  padding: 0.65rem 0.75rem;
}

.progress-table-row--add-class .progress-table-cell--name {
  grid-column: 1 / -1;
}

.progress-table-row--class .student-lesson-progress-label {
  color: #ffffff;
}

.progress-table-row--class .student-lesson-progress-track {
  stroke: rgba(255, 255, 255, 0.35);
}

.progress-table-row--class .student-lesson-progress-fill {
  stroke: #ffffff;
}

.progress-table-cell--name {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.progress-table-head .progress-table-cell--name {
  flex-wrap: wrap;
  gap: 0.25rem 0.4rem;
}

.progress-table-cell--name-search {
  align-items: stretch;
}

.progress-table-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.progress-table-search-icon {
  position: absolute;
  left: 0;
  width: 0.95rem;
  height: 0.95rem;
  color: #667788;
  pointer-events: none;
}

.progress-table-search {
  width: 100%;
  min-width: 0;
  padding: 0.1rem 0 0.1rem 1.25rem;
  border: none;
  border-bottom: 1px solid #c8d0da;
  border-radius: 0;
  background: transparent;
  color: #333;
  font: inherit;
  font-size: 0.82rem;
}

.progress-table-search:focus {
  outline: none;
  border-bottom-color: #5b8dbd;
}

.progress-table-search::placeholder {
  color: #99a3ad;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.progress-table-cell--time,
.progress-table-cell--score,
.progress-table-cell--completion,
.progress-table-cell--action {
  min-width: 0;
}

.progress-table-cell--time,
.progress-table-cell--score,
.progress-table-cell--completion {
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-table-cell--name {
  justify-content: flex-start;
}

.progress-sort-btn {
  padding: 0.15rem 0.45rem;
  border: 1px solid #c8d0da;
  border-radius: 0.15rem;
  background: #ffffff;
  color: #555;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.progress-sort-btn.is-active {
  border-color: var(--section-color, #7e1168);
  color: var(--section-color, #7e1168);
}

.progress-table-time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
}

.progress-table-time span,
.progress-table-location-time span {
  font-size: clamp(0.72rem, 0.7vw + 0.55rem, 0.84rem);
}

.progress-table-time-icon,
.progress-table-head-icon__img {
  width: clamp(0.75rem, 0.8vw + 0.55rem, 0.95rem);
  height: clamp(0.75rem, 0.8vw + 0.55rem, 0.95rem);
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

.progress-table-head-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.progress-table-head-icon .progress-table-time-icon,
.progress-table-head-icon .progress-table-head-icon__img {
  width: clamp(0.85rem, 0.85vw + 0.6rem, 1.05rem);
  height: clamp(0.85rem, 0.85vw + 0.6rem, 1.05rem);
}

.progress-table-head-icon .progress-table-composite-icon {
  width: clamp(1rem, 1vw + 0.75rem, 1.2rem);
  height: clamp(1rem, 1vw + 0.75rem, 1.2rem);
}

.progress-table-head-icon .progress-table-composite-icon__time {
  width: 0.55rem;
  height: 0.55rem;
}

.progress-table-composite-icon--school {
  width: clamp(1.1rem, 1.1vw + 0.8rem, 1.45rem);
  height: clamp(1.1rem, 1.1vw + 0.8rem, 1.45rem);
}

.progress-table-composite-icon--school .progress-table-composite-icon__time {
  width: 0.62rem;
  height: 0.62rem;
  right: -0.1rem;
  bottom: -0.06rem;
}

.progress-table-head-icon .progress-table-composite-icon--school {
  width: clamp(1.15rem, 1.15vw + 0.85rem, 1.55rem);
  height: clamp(1.15rem, 1.15vw + 0.85rem, 1.55rem);
}

.progress-table-head-icon .progress-table-composite-icon--school .progress-table-composite-icon__time {
  width: 0.68rem;
  height: 0.68rem;
}

.progress-table-composite-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(0.95rem, 0.95vw + 0.7rem, 1.15rem);
  height: clamp(0.95rem, 0.95vw + 0.7rem, 1.15rem);
  flex-shrink: 0;
}

.progress-table-composite-icon__location {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.progress-table-composite-icon__time {
  position: absolute;
  right: -0.12rem;
  bottom: -0.08rem;
  width: 0.52rem;
  height: 0.52rem;
  object-fit: contain;
  display: block;
  padding: 0.02rem;
  border-radius: 50%;
  background: #ffffff;
  box-sizing: content-box;
}

.progress-table-row--class .progress-table-time-icon,
.progress-table-row--class .progress-table-head-icon__img,
.progress-table-row--class .progress-table-composite-icon__location,
.progress-table-row--class .progress-table-composite-icon__time {
  filter: brightness(0) invert(1);
}

.progress-table-row--class .progress-table-composite-icon__time {
  background: transparent;
}

.progress-table-location-time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
}

.progress-table-cell--completion {
  font-size: clamp(0.68rem, 0.75vw + 0.55rem, 0.82rem);
}

.progress-table-cell--completion .student-lesson-progress {
  width: clamp(1.75rem, 2vw + 1.2rem, 2.15rem);
  height: clamp(1.75rem, 2vw + 1.2rem, 2.15rem);
}

.progress-table-cell--completion .student-lesson-progress-label {
  font-size: 0.52rem;
}

.progress-completion-ring-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  outline: 2px solid transparent;
  outline-offset: 2px;
  cursor: default;
}

.progress-completion-ring-wrap:hover,
.progress-completion-ring-wrap:focus-visible {
  outline-color: #666;
}

.progress-completion-tooltip {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 50%;
  z-index: 6;
  padding: 0.4rem 0.55rem;
  border-radius: 0.35rem;
  background: #1a1a1a;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.12s ease;
}

.progress-completion-tooltip::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  border: 0.35rem solid transparent;
  border-bottom-color: #1a1a1a;
  transform: translateX(-50%);
}

.progress-completion-ring-wrap:hover .progress-completion-tooltip,
.progress-completion-ring-wrap:focus-visible .progress-completion-tooltip {
  opacity: 1;
  visibility: visible;
}

.progress-table-cell--action {
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-table-cell--action svg {
  width: 0.95rem;
  height: 0.95rem;
  color: inherit;
}

.progress-student-menu-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.progress-student-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: none;
  border-radius: 0.15rem;
  background: transparent;
  color: #667788;
  cursor: pointer;
}

.progress-student-menu-btn:hover {
  background: #eef1f4;
  color: #333;
}

.progress-student-menu-btn svg {
  width: 1rem;
  height: 1rem;
}

.progress-student-menu {
  position: absolute;
  top: calc(100% + 0.2rem);
  right: 0;
  z-index: 5;
  min-width: 9rem;
  padding: 0.25rem 0;
  background: #ffffff;
  border: 1px solid #d8dee6;
  border-radius: 0.15rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.progress-student-menu-item {
  display: block;
  width: 100%;
  padding: 0.45rem 0.75rem;
  border: none;
  background: transparent;
  color: #333;
  font: inherit;
  font-size: 0.82rem;
  text-align: left;
  cursor: pointer;
}

.progress-student-menu-item:hover {
  background: #f7f9fc;
}

.progress-student-menu-item--remove {
  color: #b42318;
}

@media (max-width: 900px) {
  .progress-layout {
    padding: 0.75rem 0.75rem 2rem;
  }

  .progress-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .progress-period-wrap {
    max-width: none;
  }

  .progress-table-head,
  .progress-table-row {
    grid-template-columns:
      minmax(0, 1.8fr)
      minmax(0, 0.95fr)
      minmax(0, 0.95fr)
      minmax(0, 0.95fr)
      minmax(0, 0.75fr)
      minmax(0, 0.75fr)
      minmax(1.75rem, 0.45fr);
  }

  .progress-sort-btn {
    padding: 0.1rem 0.3rem;
    font-size: 0.62rem;
  }

  .progress-class-student-count {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .progress-layout {
    padding: 0.65rem 0.5rem 1.75rem;
  }

  .progress-table-head,
  .progress-table-row {
    gap: 0.2rem;
    grid-template-columns:
      minmax(0, 1.6fr)
      minmax(0, 0.85fr)
      minmax(0, 0.85fr)
      minmax(0, 0.85fr)
      minmax(0, 0.65fr)
      minmax(0, 0.65fr)
      minmax(1.5rem, 0.4fr);
  }

  .progress-table-head .progress-table-cell--completion {
    font-size: 0;
  }

  .progress-table-head .progress-table-cell--completion::before {
    content: '%';
    font-size: 0.68rem;
    font-weight: 700;
  }

  .progress-table-time-icon,
  .progress-table-composite-icon {
    display: none;
  }

  .progress-table-head-icon .progress-table-time-icon,
  .progress-table-head-icon .progress-table-composite-icon {
    display: inline-flex;
  }
}

body.progress-add-open {
  overflow: hidden;
}

.progress-add-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.45);
}

.progress-add-overlay[hidden] {
  display: none;
}

.progress-add-dialog {
  width: min(100%, 28rem);
  max-height: min(calc(100vh - 3rem), 40rem);
  overflow: auto;
  background: #ffffff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.progress-add-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #e8ebef;
  background: #7e1168;
  color: #ffffff;
}

.progress-add-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.progress-add-close {
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.progress-add-body {
  padding: 1rem;
}

.progress-add-section-title {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #2e4a68;
}

.progress-add-section-text {
  margin: 0 0 0.75rem;
  color: #667788;
  font-size: 0.84rem;
  line-height: 1.45;
}

.progress-add-label {
  display: block;
  margin-bottom: 0.35rem;
  color: #333;
  font-size: 0.82rem;
  font-weight: 600;
}

.progress-add-input,
.progress-add-school-input {
  width: 100%;
  box-sizing: border-box;
}

.progress-add-input {
  margin-bottom: 0.75rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid #c8d0da;
  border-radius: 0.15rem;
  font: inherit;
  font-size: 0.88rem;
}

.progress-add-input:focus,
.progress-add-input:focus-visible,
.progress-add-school-input:focus,
.progress-add-school-input:focus-visible {
  outline: none;
  box-shadow: none;
}

.progress-add-input:focus,
.progress-add-input:focus-visible {
  border-color: #c8d0da;
}

.progress-add-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.55rem 0.85rem;
  border: none;
  border-radius: 0.15rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  background: #7e1168;
  color: #ffffff;
}

.progress-add-primary-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

#progress-add-all-students {
  margin-top: 0.75rem;
}

.progress-add-restore-link {
  display: block;
  width: 100%;
  margin-top: 0.65rem;
  padding: 0;
  border: none;
  background: transparent;
  color: #2e4a68;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
}

.progress-add-restore-link:hover {
  color: var(--navy);
}

.progress-restore-overlay {
  z-index: 150;
}

.progress-restore-dialog {
  width: min(100%, 32rem);
  max-height: min(calc(100vh - 3rem), 34rem);
  display: flex;
  flex-direction: column;
}

.progress-restore-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 1rem;
}

.progress-restore-list {
  flex: 1;
  min-height: 0;
  max-height: 22rem;
  overflow-y: auto;
  border: 1px solid #e8ebef;
}

.progress-restore-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid #eef1f4;
}

.progress-restore-row:last-child {
  border-bottom: none;
}

.progress-restore-name {
  min-width: 0;
  color: #333;
  font-size: 0.88rem;
  font-weight: 600;
}

.progress-restore-btn {
  flex: 0 0 auto;
  padding: 0.35rem 0.75rem;
  border: 1px solid #d8dee6;
  border-radius: 0.15rem;
  background: #ffffff;
  color: var(--navy);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.progress-restore-btn:hover {
  border-color: var(--navy);
}

.progress-restore-empty {
  margin: 0;
  padding: 1rem 0.85rem;
  color: #666;
  font-size: 0.88rem;
}

.progress-add-divider {
  height: 1px;
  margin: 1rem 0;
  background: #e8ebef;
}

.progress-add-status {
  margin: 0.65rem 0 0;
  color: #2e4a68;
  font-size: 0.82rem;
  line-height: 1.4;
}

.progress-add-status.is-error {
  color: #b42318;
}

.progress-add-school-field {
  margin-bottom: 0.35rem;
}

.progress-add-school-field .show-school-suggestions {
  width: 100%;
}

.progress-add-school-input {
  min-width: 0;
  border-color: rgba(0, 0, 61, 0.18);
}

.progress-add-school-input:focus,
.progress-add-school-input:focus-visible {
  border-color: rgba(0, 0, 61, 0.18);
}

.progress-completion-ring-wrap--clickable {
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.progress-lesson-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 61, 0.35);
}

.progress-lesson-detail-overlay[hidden] {
  display: none;
}

.progress-lesson-detail-dialog {
  width: min(52rem, 100%);
  max-height: calc(100vh - 3rem);
  overflow: auto;
  background: #fff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.progress-lesson-detail-dialog--class-grid {
  width: min(72rem, 100%);
}

.progress-lesson-detail-main {
  padding: 0;
}

.progress-lesson-detail-main--class-grid {
  padding: 0 0 0.5rem;
}

.progress-lesson-detail-grid-wrap {
  overflow-x: auto;
}

.progress-lesson-detail-grid {
  width: 100%;
  min-width: 40rem;
  border-collapse: collapse;
  table-layout: fixed;
}

.progress-lesson-detail-grid th,
.progress-lesson-detail-grid td {
  padding: 0.45rem 0.35rem;
  border: 1px solid #d8dee6;
  text-align: center;
  font-size: 0.78rem;
}

.progress-lesson-detail-grid-corner {
  width: 9.5rem;
  min-width: 9.5rem;
  background: #fff;
}

.progress-lesson-detail-grid-section {
  background: #5b8dbd;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.progress-lesson-detail-grid-number {
  background: #5b8dbd;
  color: #fff;
  font-weight: 700;
}

.progress-lesson-detail-grid-name {
  text-align: left;
  font-weight: 600;
  color: #234;
  background: #fff;
}

.progress-lesson-detail-grid-row.is-average .progress-lesson-detail-grid-name,
.progress-lesson-detail-grid-row.is-average .progress-lesson-detail-grid-cell {
  background: #fff6cf;
  font-weight: 700;
}

.progress-lesson-detail-grid-row.is-selected .progress-lesson-detail-grid-name {
  color: #5b8dbd;
}

.progress-lesson-detail-grid-cell {
  color: #333;
  background: #fff;
}

.progress-lesson-detail-header {
  padding: 0.85rem 1.25rem;
  background: #5b8dbd;
  color: #fff;
}

.progress-lesson-detail-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.progress-lesson-detail-tabs {
  display: flex;
  gap: 1.5rem;
  padding: 0 1.25rem;
  border-bottom: 1px solid #d8dee6;
  background: #fff;
}

.progress-lesson-detail-tab {
  padding: 0.85rem 0 0.65rem;
  border: none;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #667788;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.progress-lesson-detail-tab.is-active {
  color: #5b8dbd;
  border-bottom-color: #5b8dbd;
}

.progress-lesson-detail-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.25rem;
}

.progress-lesson-detail-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: #eef4fb;
  text-align: center;
}

.progress-lesson-detail-stat-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  color: #2e4a68;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.progress-lesson-detail-stat-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px #d8dee6;
}

.progress-lesson-detail-stat-value {
  color: #234;
  font-size: 1.45rem;
  font-weight: 700;
}

.progress-lesson-detail-stat-caption {
  margin: 0.75rem 0 0;
  color: #667788;
  font-size: 0.78rem;
}

.progress-lesson-detail-completion {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0 1.25rem;
  padding: 0.65rem 1rem;
  background: #dceaf6;
  color: #234;
}

.progress-lesson-detail-completion .student-lesson-progress {
  width: 2rem;
  height: 2rem;
}

.progress-lesson-detail-completion-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.progress-lesson-detail-activities {
  padding: 1rem 1.25rem 0.5rem;
}

.progress-lesson-detail-section + .progress-lesson-detail-section {
  margin-top: 0.75rem;
}

.progress-lesson-detail-section-head,
.progress-lesson-detail-activity-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem 0.75rem;
}

.progress-lesson-detail-section-head {
  background: #5b8dbd;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.progress-lesson-detail-activity-row {
  border-bottom: 1px solid #e8ebef;
  color: #333;
  font-size: 0.84rem;
}

.progress-lesson-detail-empty {
  padding: 1.5rem 0.75rem;
  color: #667788;
  font-size: 0.88rem;
  font-style: italic;
  text-align: center;
}

.progress-lesson-detail-footer {
  display: flex;
  justify-content: flex-end;
  padding: 1rem 1.25rem 1.25rem;
}

.progress-lesson-detail-close-btn {
  padding: 0;
  border: none;
  background: transparent;
  color: #5b8dbd;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
}

@media (max-width: 720px) {
  .progress-lesson-detail-summary {
    grid-template-columns: 1fr;
  }

  .progress-lesson-detail-section-head,
  .progress-lesson-detail-activity-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.25rem;
  }

  .progress-lesson-detail-section-head span:not(:first-child),
  .progress-lesson-detail-activity-row span:not(:first-child) {
    font-size: 0.76rem;
    color: #667788;
  }
}
