/* Progress Clean v1: only course progress, three KPIs and course modules. */
body[data-role="student"][data-active="progress"] .zgp-page {
  width: 100%;
  max-width: 100%;
  display: grid;
  gap: 18px;
  min-width: 0;
}

body[data-role="student"][data-active="progress"] .zgp-page .progress-course-tabs {
  margin: 0;
}

body[data-role="student"][data-active="progress"] .zgp-hero {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 156px minmax(330px, 1.25fr);
  align-items: center;
  gap: 28px;
  min-height: 214px;
  padding: 28px 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 18%, rgba(72, 160, 91, .10), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f7fbf8 100%);
  border-color: #dbe8de;
}

body[data-role="student"][data-active="progress"] .zgp-hero-course,
body[data-role="student"][data-active="progress"] .zgp-hero-action {
  min-width: 0;
}

body[data-role="student"][data-active="progress"] .zgp-hero-course h2 {
  margin: 0;
  max-width: 440px;
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.08;
  letter-spacing: -.025em;
}

body[data-role="student"][data-active="progress"] .zgp-hero-course > p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 18px;
  color: var(--muted);
  font-weight: 750;
}

body[data-role="student"][data-active="progress"] .zgp-level-path {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(39, 130, 61, .08);
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

body[data-role="student"][data-active="progress"] .zgp-level-path b {
  padding: 4px 9px;
  border-radius: 999px;
  background: #e8f5ea;
  color: var(--green);
  font-size: 14px;
}

body[data-role="student"][data-active="progress"] .zgp-hero-ring {
  display: grid;
  place-items: center;
  align-self: stretch;
  padding: 8px 18px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

body[data-role="student"][data-active="progress"] .zgp-hero-ring .ring {
  --size: 128px;
  margin: 0;
}

body[data-role="student"][data-active="progress"] .zgp-hero-ring .ring strong {
  top: 45%;
  font-size: 31px;
}

body[data-role="student"][data-active="progress"] .zgp-hero-ring .ring span {
  top: 64%;
  font-size: 10px;
}

body[data-role="student"][data-active="progress"] .zgp-hero-action {
  display: grid;
  align-content: center;
  justify-items: start;
}

body[data-role="student"][data-active="progress"] .zgp-hero-action > span,
body[data-role="student"][data-active="progress"] .zgp-hero-action > small {
  color: var(--muted);
  font-weight: 750;
}

body[data-role="student"][data-active="progress"] .zgp-hero-action > small {
  margin-top: 5px;
  color: var(--ink);
}

body[data-role="student"][data-active="progress"] .zgp-hero-action h3 {
  margin: 4px 0 14px;
  font-size: clamp(22px, 1.7vw, 29px);
  line-height: 1.1;
}

body[data-role="student"][data-active="progress"] .zgp-primary-action {
  min-width: 235px;
  min-height: 48px;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(24, 121, 48, .16);
}

body[data-role="student"][data-active="progress"] .zgp-hero-action > p {
  display: grid;
  gap: 3px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

body[data-role="student"][data-active="progress"] .zgp-hero-action > p b {
  color: var(--green);
}

body[data-role="student"][data-active="progress"] .zgp-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body[data-role="student"][data-active="progress"] .zgp-stat-card {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 112px;
  padding: 20px 22px;
}

body[data-role="student"][data-active="progress"] .zgp-stat-icon {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #e9f6ec;
  color: var(--green);
  font-size: 24px;
  font-weight: 900;
}

body[data-role="student"][data-active="progress"] .zgp-stat-icon.is-homework {
  background: #fff3e5;
  color: #e88418;
}

body[data-role="student"][data-active="progress"] .zgp-stat-icon.is-status {
  background: #edf3ff;
  color: #3176d7;
}

body[data-role="student"][data-active="progress"] .zgp-stat-card > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

body[data-role="student"][data-active="progress"] .zgp-stat-card small,
body[data-role="student"][data-active="progress"] .zgp-stat-card em {
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

body[data-role="student"][data-active="progress"] .zgp-stat-card strong {
  color: var(--ink);
  font-size: 23px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

body[data-role="student"][data-active="progress"] .zgp-modules {
  padding: 18px;
}

body[data-role="student"][data-active="progress"] .zgp-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 2px 14px;
}

body[data-role="student"][data-active="progress"] .zgp-section-head h2 {
  margin: 0;
}

body[data-role="student"][data-active="progress"] .zgp-section-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

body[data-role="student"][data-active="progress"] .zgp-module-list {
  display: grid;
  gap: 10px;
}

body[data-role="student"][data-active="progress"] .zgp-module {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel);
  overflow: hidden;
}

body[data-role="student"][data-active="progress"] .zgp-module.is-expanded {
  border-color: rgba(34, 135, 57, .34);
  box-shadow: 0 8px 25px rgba(19, 77, 37, .06);
}

body[data-role="student"][data-active="progress"] .zgp-module-head {
  display: grid;
  grid-template-columns: 42px minmax(190px, 1fr) minmax(180px, .8fr) 58px minmax(150px, auto);
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 13px 16px;
}

body[data-role="student"][data-active="progress"] .zgp-module-number {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #eaf5ec;
  color: var(--green);
  font-weight: 900;
}

body[data-role="student"][data-active="progress"] .zgp-module.is-locked .zgp-module-number {
  background: #f0f2f3;
  color: #7c8580;
}

body[data-role="student"][data-active="progress"] .zgp-module-title {
  display: grid;
  gap: 3px;
  min-width: 0;
}

body[data-role="student"][data-active="progress"] .zgp-module-title strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

body[data-role="student"][data-active="progress"] .zgp-module-title small {
  color: var(--muted);
  font-weight: 700;
}

body[data-role="student"][data-active="progress"] .zgp-module-progress {
  display: grid;
  gap: 6px;
  min-width: 0;
}

body[data-role="student"][data-active="progress"] .zgp-module-progress > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

body[data-role="student"][data-active="progress"] .zgp-module-progress .progress {
  margin: 0;
}

body[data-role="student"][data-active="progress"] .zgp-module-percent {
  color: var(--green);
  text-align: right;
}

body[data-role="student"][data-active="progress"] .zgp-module-action {
  min-width: 118px;
  justify-content: center;
}

body[data-role="student"][data-active="progress"] .zgp-module-lock {
  justify-self: end;
  max-width: 260px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.3;
  text-align: right;
}

body[data-role="student"][data-active="progress"] .zgp-module-lessons {
  display: grid;
  padding: 0 12px 12px;
}

body[data-role="student"][data-active="progress"] .zgp-lesson-row {
  width: 100%;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 12px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  box-shadow: none;
}

body[data-role="student"][data-active="progress"] button.zgp-lesson-row:hover {
  transform: none;
  background: #f6faf7;
}

body[data-role="student"][data-active="progress"] .zgp-lesson-row.is-current {
  margin-top: 4px;
  border: 1px solid rgba(38, 139, 61, .18);
  border-radius: 11px;
  background: #f4faf5;
}

body[data-role="student"][data-active="progress"] .zgp-lesson-row.is-locked {
  opacity: .62;
}

body[data-role="student"][data-active="progress"] .zgp-lesson-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef2ef;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

body[data-role="student"][data-active="progress"] .zgp-lesson-row.is-done .zgp-lesson-icon,
body[data-role="student"][data-active="progress"] .zgp-lesson-row.is-current .zgp-lesson-icon {
  background: #e7f5e9;
  color: var(--green);
}

body[data-role="student"][data-active="progress"] .zgp-lesson-row strong {
  overflow-wrap: anywhere;
}

body[data-role="student"][data-active="progress"] .zgp-lesson-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

body[data-role="student"][data-active="progress"] .zgp-lesson-row.is-current em {
  color: var(--green);
}

body[data-role="student"][data-active="progress"] .zgp-module-empty {
  margin: 8px 4px 2px;
}

body[data-theme="dark"][data-role="student"][data-active="progress"] .zgp-hero {
  background:
    radial-gradient(circle at 8% 18%, rgba(83, 178, 105, .13), transparent 36%),
    linear-gradient(135deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  border-color: rgba(255,255,255,.10);
}

body[data-theme="dark"][data-role="student"][data-active="progress"] .zgp-level-path,
body[data-theme="dark"][data-role="student"][data-active="progress"] .zgp-level-path b,
body[data-theme="dark"][data-role="student"][data-active="progress"] .zgp-module-number,
body[data-theme="dark"][data-role="student"][data-active="progress"] .zgp-stat-icon,
body[data-theme="dark"][data-role="student"][data-active="progress"] .zgp-lesson-icon {
  background: rgba(87, 161, 106, .14);
  color: #a7e3b4;
}

body[data-theme="dark"][data-role="student"][data-active="progress"] .zgp-stat-icon.is-homework {
  background: rgba(225, 144, 47, .14);
  color: #f6c37c;
}

body[data-theme="dark"][data-role="student"][data-active="progress"] .zgp-stat-icon.is-status {
  background: rgba(76, 129, 222, .15);
  color: #9bbcf6;
}

body[data-theme="dark"][data-role="student"][data-active="progress"] .zgp-module,
body[data-theme="dark"][data-role="student"][data-active="progress"] .zgp-lesson-row.is-current {
  background: rgba(255,255,255,.025);
  border-color: rgba(255,255,255,.09);
}

body[data-theme="dark"][data-role="student"][data-active="progress"] button.zgp-lesson-row:hover {
  background: rgba(255,255,255,.045);
}

@media (max-width: 1240px) {
  body[data-role="student"][data-active="progress"] .zgp-hero {
    grid-template-columns: minmax(240px, 1fr) 130px minmax(260px, 1fr);
    gap: 20px;
    padding: 24px;
  }
  body[data-role="student"][data-active="progress"] .zgp-module-head {
    grid-template-columns: 42px minmax(180px, 1fr) minmax(160px, .7fr) 52px;
  }
  body[data-role="student"][data-active="progress"] .zgp-module-action,
  body[data-role="student"][data-active="progress"] .zgp-module-lock {
    grid-column: 2 / -1;
    justify-self: stretch;
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 900px) {
  body[data-role="student"][data-active="progress"] .zgp-hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  body[data-role="student"][data-active="progress"] .zgp-hero-ring {
    justify-content: start;
    border: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
  }
  body[data-role="student"][data-active="progress"] .zgp-stat-grid {
    grid-template-columns: 1fr;
  }
  body[data-role="student"][data-active="progress"] .zgp-module-head {
    grid-template-columns: 42px minmax(0, 1fr) 52px;
  }
  body[data-role="student"][data-active="progress"] .zgp-module-progress {
    grid-column: 2 / -1;
  }
  body[data-role="student"][data-active="progress"] .zgp-module-action,
  body[data-role="student"][data-active="progress"] .zgp-module-lock {
    grid-column: 2 / -1;
  }
}

@media (max-width: 560px) {
  body[data-role="student"][data-active="progress"] .zgp-hero,
  body[data-role="student"][data-active="progress"] .zgp-modules {
    padding: 16px;
  }
  body[data-role="student"][data-active="progress"] .zgp-primary-action {
    width: 100%;
    min-width: 0;
  }
  body[data-role="student"][data-active="progress"] .zgp-module-head {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }
  body[data-role="student"][data-active="progress"] .zgp-module-number {
    width: 32px;
    height: 32px;
  }
  body[data-role="student"][data-active="progress"] .zgp-module-percent,
  body[data-role="student"][data-active="progress"] .zgp-module-progress,
  body[data-role="student"][data-active="progress"] .zgp-module-action,
  body[data-role="student"][data-active="progress"] .zgp-module-lock {
    grid-column: 2;
    justify-self: stretch;
    text-align: left;
  }
  body[data-role="student"][data-active="progress"] .zgp-lesson-row {
    grid-template-columns: 26px minmax(0, 1fr);
  }
  body[data-role="student"][data-active="progress"] .zgp-lesson-row em {
    grid-column: 2;
  }
}
