/* Student redesign — Pass 2 learning flow only. */
body.edu-role-student .student-flow,
body.edu-role-student .student-help-page {
  display: grid;
  gap: 28px;
  color: var(--edu-text-primary);
}

body.edu-role-student .student-flow-header h1 {
  margin: 0;
  font: 680 clamp(26px, 3vw, 32px)/1.2 var(--font);
  letter-spacing: -.025em;
}

body.edu-role-student .student-flow-header p {
  max-width: 68ch;
  margin: 7px 0 0;
  color: var(--edu-text-secondary);
  font-size: 15px;
}

body.edu-role-student .student-flow-eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--edu-text-secondary);
  font-size: 12px;
  font-weight: 600;
}

body.edu-role-student .student-home-primary {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr);
  gap: 20px;
  align-items: stretch;
}

body.edu-role-student .student-work-card,
body.edu-role-student .student-progress-panel,
body.edu-role-student .student-practice-card,
body.edu-role-student .student-course-card,
body.edu-role-student .student-help-section,
body.edu-role-student .student-help-contact {
  background: var(--edu-surface);
  border: 1px solid var(--edu-border);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

body.edu-role-student .student-work-card {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
}

body.edu-role-student .student-work-card.is-featured {
  min-height: 260px;
  padding: 28px;
  border-left: 4px solid var(--edu-blue);
}

body.edu-role-student .student-work-card__body { min-width: 0; flex: 1; }
body.edu-role-student .student-work-card__heading { display: flex; gap: 18px; justify-content: space-between; align-items: flex-start; }
body.edu-role-student .student-work-card h2 { margin: 5px 0 0; font-size: 20px; line-height: 1.3; }
body.edu-role-student .student-work-context { margin: 5px 0 0; color: var(--edu-text-secondary); font-size: 13px; }
body.edu-role-student .student-work-objective { max-width: 72ch; margin: 16px 0 0; color: var(--edu-text-secondary); line-height: 1.55; }
body.edu-role-student .student-flow-label { color: var(--edu-blue-hover); font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }

body.edu-role-student .student-state {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid var(--edu-border);
  border-radius: 999px;
  color: var(--edu-text-secondary);
  background: var(--edu-surface-subtle);
  font-size: 11px;
  font-weight: 600;
}
body.edu-role-student .student-state--success { border-color: #abefc6; background: #ecfdf3; color: #067647; }
body.edu-role-student .student-state--info { border-color: #b2ddff; background: #eff8ff; color: #175cd3; }

body.edu-role-student .student-work-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; }
body.edu-role-student .student-work-meta > span { display: inline-flex; gap: 6px; align-items: center; color: var(--edu-text-secondary); font-size: 12px; }
body.edu-role-student .student-work-action { flex: 0 0 auto; min-height: 40px; }

body.edu-role-student .student-inline-feedback {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid #abefc6;
  border-radius: 8px;
  background: #ecfdf3;
  color: #067647;
}
body.edu-role-student .student-inline-feedback p { margin: 3px 0 0; color: #496657; font-size: 13px; }

body.edu-role-student .student-progress-panel { display: grid; gap: 20px; padding: 24px; }
body.edu-role-student .student-progress-panel h2 { margin: 5px 0 0; font-size: 18px; }
body.edu-role-student .student-progress-track { height: 8px; overflow: hidden; border-radius: 999px; background: #eaecf0; }
body.edu-role-student .student-progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--edu-blue); }
body.edu-role-student .student-progress-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; }
body.edu-role-student .student-progress-facts div { display: grid; gap: 4px; text-align: center; }
body.edu-role-student .student-progress-facts div + div { border-left: 1px solid var(--edu-border); }
body.edu-role-student .student-progress-facts dt { color: var(--edu-text-secondary); font-size: 11px; }
body.edu-role-student .student-progress-facts dd { order: -1; margin: 0; font-size: 19px; font-weight: 650; }
body.edu-role-student .student-progress-panel > a,
body.edu-role-student .student-section-link { display: inline-flex; gap: 6px; align-items: center; width: fit-content; color: var(--edu-blue-hover); font-size: 13px; font-weight: 600; }

body.edu-role-student .student-feedback-panel {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid #abefc6;
  border-radius: 10px;
  background: #ecfdf3;
}
body.edu-role-student .student-feedback-panel h2 { margin: 3px 0 0; font-size: 15px; }
body.edu-role-student .student-feedback-panel p { margin: 4px 0 0; color: #496657; font-size: 13px; }

body.edu-role-student .student-work-section,
body.edu-role-student .student-compact-section { display: grid; gap: 14px; }
body.edu-role-student .student-section-header { display: flex; gap: 20px; align-items: flex-end; justify-content: space-between; }
body.edu-role-student .student-section-header h2 { margin: 0; font-size: 20px; }
body.edu-role-student .student-section-header p { margin: 4px 0 0; color: var(--edu-text-secondary); font-size: 13px; }
body.edu-role-student .student-section-header > span { display: grid; place-items: center; min-width: 28px; height: 28px; border-radius: 6px; background: var(--edu-blue-subtle); color: var(--edu-blue-hover); font-size: 12px; font-weight: 700; }
body.edu-role-student .student-work-list { display: grid; gap: 10px; }

body.edu-role-student .student-compact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
body.edu-role-student .student-compact-list > a { display: grid; grid-template-columns: 36px minmax(0, 1fr) 18px; gap: 10px; align-items: center; padding: 14px; color: inherit; border: 1px solid var(--edu-border); border-radius: 10px; background: var(--edu-surface); }
body.edu-role-student .student-compact-list strong,
body.edu-role-student .student-compact-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.edu-role-student .student-compact-list small { margin-top: 3px; color: var(--edu-text-secondary); font-size: 12px; }

body.edu-role-student .student-practice-section { padding-top: 8px; border-top: 1px solid var(--edu-border); }
body.edu-role-student .student-practice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
body.edu-role-student .student-practice-card { display: flex; min-width: 0; flex-direction: column; gap: 14px; padding: 18px; }
body.edu-role-student .student-practice-card h3 { margin: 5px 0 0; font-size: 16px; }
body.edu-role-student .student-practice-card p { margin: 8px 0 0; color: var(--edu-text-secondary); font-size: 13px; line-height: 1.5; }
body.edu-role-student .student-practice-card .btn { align-self: flex-start; margin-top: auto; }

body.edu-role-student .student-flow-empty { display: flex; gap: 12px; align-items: flex-start; min-height: 96px; padding: 20px; border: 1px dashed var(--edu-border); border-radius: 10px; background: var(--edu-surface); color: var(--edu-text-secondary); }
body.edu-role-student .student-flow-empty strong { color: var(--edu-text-primary); }
body.edu-role-student .student-flow-empty p { margin: 4px 0 0; font-size: 13px; }

body.edu-role-student .student-course-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
body.edu-role-student .student-course-section { display: grid; gap: 14px; }
body.edu-role-student .student-course-catalog { padding-top: 24px; border-top: 1px solid var(--edu-border); }
body.edu-role-student .student-course-card { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; padding: 22px; }
body.edu-role-student .student-course-card__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 9px; background: var(--edu-blue-subtle); color: var(--edu-blue-hover); }
body.edu-role-student .student-course-card h2 { margin: 5px 0 0; font-size: 18px; }
body.edu-role-student .student-course-card__body > p { margin: 8px 0 0; color: var(--edu-text-secondary); font-size: 13px; }
body.edu-role-student .student-course-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 0; }
body.edu-role-student .student-course-facts div { display: grid; gap: 3px; }
body.edu-role-student .student-course-facts dt { color: var(--edu-text-secondary); font-size: 11px; }
body.edu-role-student .student-course-facts dd { order: -1; margin: 0; font-weight: 650; }
body.edu-role-student .student-course-card > .btn { grid-column: 2; justify-self: start; }
body.edu-role-student .student-catalog-card__labels { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
body.edu-role-student .student-catalog-label { padding: 3px 7px; border-radius: 999px; background: var(--edu-surface-subtle); color: var(--edu-text-secondary); font-size: 10px; font-weight: 650; }
body.edu-role-student .student-catalog-card { border-top: 3px solid var(--edu-blue); }

body.edu-role-student .student-course-detail__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  padding: 24px;
  border: 1px solid var(--edu-border);
  border-radius: 12px;
  background: var(--edu-surface);
}
body.edu-role-student .student-course-back { grid-column: 1 / -1; display: inline-flex; gap: 7px; align-items: center; width: fit-content; color: var(--edu-text-secondary); font-size: 13px; font-weight: 600; }
body.edu-role-student .student-course-detail__title { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; align-items: start; }
body.edu-role-student .student-course-detail__title h1 { margin: 5px 0 0; font-size: 26px; line-height: 1.25; }
body.edu-role-student .student-course-detail__title p { max-width: 70ch; margin: 7px 0 0; color: var(--edu-text-secondary); font-size: 14px; }
body.edu-role-student .student-course-detail__facts { grid-column: 1; display: grid; grid-template-columns: repeat(4, minmax(90px, 1fr)); gap: 0; max-width: 620px; margin: 2px 0 0 56px; }
body.edu-role-student .student-course-detail__facts div { display: grid; gap: 3px; padding-right: 18px; }
body.edu-role-student .student-course-detail__facts div + div { padding-left: 18px; border-left: 1px solid var(--edu-border); }
body.edu-role-student .student-course-detail__facts dt { color: var(--edu-text-secondary); font-size: 11px; }
body.edu-role-student .student-course-detail__facts dd { order: -1; margin: 0; font-size: 18px; font-weight: 680; }
body.edu-role-student .student-course-detail__header > .btn { grid-column: 2; grid-row: 2 / span 2; align-self: end; }
body.edu-role-student .student-course-assignments { display: grid; gap: 14px; }
body.edu-role-student .student-course-assignment-list { display: grid; gap: 10px; }
body.edu-role-student .student-course-assignment { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 20px; border: 1px solid var(--edu-border); border-radius: 10px; background: var(--edu-surface); }
body.edu-role-student .student-course-assignment.is-focused { border-color: #84adff; box-shadow: 0 0 0 3px var(--edu-blue-subtle); }
body.edu-role-student .student-course-assignment__index { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: var(--edu-surface-subtle); color: var(--edu-text-secondary); font-size: 12px; font-weight: 700; }
body.edu-role-student .student-course-assignment__body { min-width: 0; }
body.edu-role-student .student-course-assignment__heading { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
body.edu-role-student .student-course-assignment__heading h3 { margin: 0; font-size: 17px; }
body.edu-role-student .student-course-assignment__heading p { margin: 5px 0 0; color: var(--edu-text-secondary); font-size: 13px; line-height: 1.5; }
body.edu-role-student .student-course-result { display: grid; gap: 7px; margin-top: 14px; padding: 13px 14px; border: 1px solid #abefc6; border-radius: 8px; background: #ecfdf3; }
body.edu-role-student .student-course-result > div { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
body.edu-role-student .student-course-result strong { color: #067647; font-size: 13px; }
body.edu-role-student .student-course-result p { margin: 0; color: #496657; font-size: 13px; }

body.edu-role-student .student-help-index { display: flex; flex-wrap: wrap; gap: 8px; }
body.edu-role-student .student-help-index button { display: inline-flex; gap: 7px; align-items: center; min-height: 38px; padding: 8px 12px; border: 1px solid var(--edu-border); border-radius: 8px; background: var(--edu-surface); color: var(--edu-text-secondary); font-size: 13px; }
body.edu-role-student .student-help-index button:hover { border-color: #b7ccff; color: var(--edu-blue-hover); }
body.edu-role-student .student-help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
body.edu-role-student .student-help-section { scroll-margin-top: 86px; }
body.edu-role-student .student-help-section summary { display: grid; grid-template-columns: 38px minmax(0, 1fr) 18px; gap: 11px; align-items: center; padding: 17px; cursor: pointer; list-style: none; }
body.edu-role-student .student-help-section summary::-webkit-details-marker { display: none; }
body.edu-role-student .student-help-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: var(--edu-blue-subtle); color: var(--edu-blue-hover); }
body.edu-role-student .student-help-section summary small { display: block; margin-top: 3px; color: var(--edu-text-secondary); font-size: 12px; font-weight: 400; }
body.edu-role-student .student-help-section[open] summary > .student-inline-icon:last-child { transform: rotate(90deg); }
body.edu-role-student .student-help-section ol { margin: 0; padding: 0 24px 20px 64px; color: var(--edu-text-secondary); font-size: 13px; }
body.edu-role-student .student-help-section li + li { margin-top: 8px; }
body.edu-role-student .student-help-contact { display: flex; gap: 12px; padding: 18px 20px; }
body.edu-role-student .student-help-contact p { margin: 4px 0 0; color: var(--edu-text-secondary); font-size: 13px; }

@media (max-width: 1100px) {
  body.edu-role-student .student-practice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  body.edu-role-student .student-home-primary,
  body.edu-role-student .student-course-grid,
  body.edu-role-student .student-help-grid,
  body.edu-role-student .student-compact-list { grid-template-columns: 1fr; }
  body.edu-role-student .student-course-detail__header { grid-template-columns: 1fr; }
  body.edu-role-student .student-course-detail__header > .btn { grid-column: 1; grid-row: auto; justify-self: start; }
  body.edu-role-student .student-course-detail__facts { margin-left: 0; }
  body.edu-role-student .student-course-assignment { grid-template-columns: 38px minmax(0, 1fr); align-items: start; }
  body.edu-role-student .student-course-assignment > .btn { grid-column: 2; justify-self: start; }
  body.edu-role-student .student-work-card { align-items: stretch; flex-direction: column; }
  body.edu-role-student .student-work-action { align-self: flex-start; }
}

@media (max-width: 620px) {
  body.edu-role-student .student-practice-grid { grid-template-columns: 1fr; }
  body.edu-role-student .student-work-card__heading { align-items: flex-start; flex-direction: column; }
  body.edu-role-student .student-feedback-panel { grid-template-columns: 30px minmax(0, 1fr); }
  body.edu-role-student .student-feedback-panel > a { grid-column: 2; }
  body.edu-role-student .student-course-card { grid-template-columns: 38px minmax(0, 1fr); padding: 18px; }
  body.edu-role-student .student-course-detail__facts { grid-template-columns: repeat(2, 1fr); row-gap: 16px; }
  body.edu-role-student .student-course-detail__facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  body.edu-role-student .student-course-assignment__heading { flex-direction: column; }
}
