.student-portal-shell .profile-page-v3 {
  --profile-primary: #1677FF;
  --profile-primary-hover: #0958D9;
  --profile-primary-soft: #E6F4FF;
  --profile-ink: #172033;
  --profile-muted: #667085;
  --profile-weak: #98A2B3;
  --profile-canvas: #F5F7FA;
  --profile-line: #E5EAF0;
  --profile-card: #FFFFFF;
  min-height: 100vh;
  background: var(--profile-canvas);
  color: var(--profile-ink);
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

.app-shell.student-portal-shell:not(.teacher-app-shell) .main-content.profile-page-v3 {
  width: 100% !important;
  margin-left: 0 !important;
  padding: 76px 0 0 !important;
  background: var(--profile-canvas) !important;
}

.student-portal-shell .profile-page-v3 *,
.student-portal-shell .profile-page-v3 *::before,
.student-portal-shell .profile-page-v3 *::after {
  box-sizing: border-box;
}

.student-portal-shell .profile-body-v3 {
  width: min(1620px, calc(100% - 64px));
  margin: 0 auto;
  padding: 24px 0 112px;
  gap: 16px;
}

.student-portal-shell .profile-action-notice {
  position: fixed;
  top: 92px;
  left: 50%;
  z-index: 220;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #B7E3C8;
  border-radius: 8px;
  background: #F0FFF6;
  color: #137A42;
  box-shadow: 0 10px 26px rgba(23, 32, 51, 0.12);
  transform: translateX(-50%);
}

.student-portal-shell .profile-action-notice.error {
  border-color: #F4C7C7;
  background: #FFF5F5;
  color: #C62828;
}

.student-portal-shell .profile-summary-v4 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 176px;
  padding: 28px 32px;
  border: 1px solid var(--profile-line);
  border-radius: 8px;
  background: var(--profile-card);
  box-shadow: 0 6px 20px rgba(23, 32, 51, 0.05);
}

.student-portal-shell .profile-summary-main-v4,
.student-portal-shell .profile-summary-actions-v4,
.student-portal-shell .profile-name-row-v3,
.student-portal-shell .profile-tags-v3 {
  display: flex;
  align-items: center;
}

.student-portal-shell .profile-summary-main-v4 {
  min-width: 0;
  gap: 24px;
}

.student-portal-shell .profile-summary-actions-v4 {
  flex: 0 0 auto;
  gap: 12px;
}

.student-portal-shell .profile-avatar-v3 {
  width: 92px;
  height: 92px;
  border: 3px solid #FFFFFF;
  border-radius: 50%;
  background: #EDF2F7;
  box-shadow: 0 0 0 1px var(--profile-line), 0 6px 18px rgba(23, 32, 51, 0.1);
}

.student-portal-shell .profile-info-v3 {
  min-width: 0;
  color: var(--profile-ink);
}

.student-portal-shell .profile-name-row-v3 {
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.student-portal-shell .profile-name-v3 {
  margin: 0;
  color: var(--profile-ink);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0;
}

.student-portal-shell .profile-level-v3 {
  min-height: 26px;
  padding: 3px 10px;
  border: 1px solid #BADEFF;
  border-radius: 999px;
  background: var(--profile-primary-soft);
  color: var(--profile-primary-hover);
  box-shadow: none;
  font-size: 12px;
  font-weight: 700;
}

.student-portal-shell .profile-major-v3,
.student-portal-shell .profile-school-v3 {
  margin: 0 0 5px;
  color: var(--profile-muted);
  font-size: 14px;
}

.student-portal-shell .profile-tags-v3 {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.student-portal-shell .profile-tag-v3 {
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid #D8E4F0;
  border-radius: 999px;
  background: #F8FAFC;
  color: #475467;
  font-size: 12px;
  backdrop-filter: none;
}

.student-portal-shell .profile-tag-v3 i {
  color: var(--profile-primary);
}

.student-portal-shell .profile-edit-v3,
.student-portal-shell .profile-name-edit-v3 {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 7px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: color 180ms ease-out, border-color 180ms ease-out, background 180ms ease-out, box-shadow 180ms ease-out;
}

.student-portal-shell .profile-name-edit-v3 {
  border: 1px solid var(--profile-line);
  background: #FFFFFF;
  color: #475467;
  backdrop-filter: none;
}

.student-portal-shell .profile-edit-v3 {
  border: 1px solid var(--profile-primary);
  background: var(--profile-primary);
  color: #FFFFFF;
  box-shadow: none;
}

.student-portal-shell .profile-name-edit-v3:hover {
  border-color: #A8CFFF;
  background: #F5FAFF;
  color: var(--profile-primary-hover);
  transform: none;
}

.student-portal-shell .profile-edit-v3:hover {
  border-color: var(--profile-primary-hover);
  background: var(--profile-primary-hover);
  color: #FFFFFF;
  box-shadow: 0 5px 14px rgba(22, 119, 255, 0.18);
  transform: none;
}

.student-portal-shell .profile-stats-v3 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--profile-line);
  border-radius: 8px;
  background: var(--profile-card);
  box-shadow: 0 4px 16px rgba(23, 32, 51, 0.035);
}

.student-portal-shell .stat-card-v3 {
  min-width: 0;
  min-height: 104px;
  gap: 13px;
  padding: 18px 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: background 180ms ease-out;
}

.student-portal-shell .stat-card-v3 + .stat-card-v3 {
  border-left: 1px solid var(--profile-line);
}

.student-portal-shell .stat-card-v3:hover {
  background: #F7FBFF;
  box-shadow: none;
  transform: none;
}

.student-portal-shell .stat-icon-v3 {
  width: 42px;
  height: 42px;
  padding: 7px;
  border-radius: 8px;
  background: #F2F5F8;
  filter: grayscale(1);
  opacity: 0.72;
}

.student-portal-shell .stat-label-v3 {
  margin-bottom: 3px;
  color: var(--profile-muted);
  font-size: 13px;
}

.student-portal-shell .stat-value-v3 {
  margin-bottom: 2px;
  color: var(--profile-ink);
  font-size: 23px;
  font-weight: 700;
}

.student-portal-shell .stat-trend-v3,
.student-portal-shell .stat-arrow-v3 {
  color: var(--profile-weak);
}

.student-portal-shell .profile-main-v3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.student-portal-shell .profile-col-v3 {
  gap: 16px;
  min-width: 0;
}

.student-portal-shell .card-v3 {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--profile-line);
  border-radius: 8px;
  background: var(--profile-card);
  box-shadow: 0 4px 16px rgba(23, 32, 51, 0.035);
}

.student-portal-shell .card-header-v3 {
  min-height: 32px;
  margin-bottom: 18px;
  gap: 12px;
}

.student-portal-shell .card-title-v3 {
  gap: 9px;
  color: var(--profile-ink);
  font-size: 16px;
  font-weight: 700;
}

.student-portal-shell .card-title-v3 > i {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: var(--profile-primary-soft);
  color: var(--profile-primary);
  font-size: 17px;
}

.student-portal-shell .header-help-v3,
.student-portal-shell .badge-progress-v3,
.student-portal-shell .tasks-progress-v3 {
  color: var(--profile-weak);
}

.student-portal-shell .more-link-v3 {
  min-height: 32px;
  padding: 0 4px;
  color: var(--profile-primary);
  font-weight: 600;
}

.student-portal-shell .more-link-v3:hover {
  color: var(--profile-primary-hover);
}

.student-portal-shell .more-link-v3:disabled {
  color: var(--profile-weak);
  cursor: not-allowed;
}

.student-portal-shell .month-select-v3 {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--profile-line);
  border-radius: 7px;
  background: #FFFFFF;
  color: #475467;
}

.student-portal-shell .month-select-v3:focus-within {
  border-color: var(--profile-primary);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.14);
}

.student-portal-shell .radar-body-v3 {
  height: 292px;
}

.student-portal-shell .radar-empty-v3,
.student-portal-shell .tasks-empty-v3,
.student-portal-shell .activity-empty-v3,
.student-portal-shell .profile-inline-empty,
.student-portal-shell .profile-dialog-empty {
  color: var(--profile-weak);
}

.student-portal-shell .radar-empty-v3 > i,
.student-portal-shell .tasks-empty-v3 > i,
.student-portal-shell .activity-empty-v3 > i,
.student-portal-shell .profile-inline-empty > i {
  color: #A8CFFF;
}

.student-portal-shell .radar-empty-v3 .oc-btn,
.student-portal-shell .profile-inline-empty button {
  border-color: var(--profile-primary);
  background: var(--profile-primary);
  color: #FFFFFF;
}

.student-portal-shell .badges-body-v3 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.student-portal-shell .badge-img-wrap-v3 {
  width: 58px;
  height: 58px;
  border: 1px solid var(--profile-line);
  background: #F8FAFC;
}

.student-portal-shell .badge-name-v3,
.student-portal-shell .recommend-item-title-v3,
.student-portal-shell .task-title-v3,
.student-portal-shell .activity-title-v3,
.student-portal-shell .partners-title-v3 {
  color: var(--profile-ink);
}

.student-portal-shell .badge-level-v3,
.student-portal-shell .recommend-item-desc-v3,
.student-portal-shell .task-meta-v3,
.student-portal-shell .activity-desc-v3,
.student-portal-shell .activity-time-v3,
.student-portal-shell .partners-desc-v3 {
  color: var(--profile-weak);
}

.student-portal-shell .heatmap-card-v3 {
  overflow: hidden;
}

.student-portal-shell .heatmap-body-v3 {
  min-width: 410px;
}

.student-portal-shell .heatmap-card-v3 > .heatmap-body-v3 {
  overflow: visible;
}

.student-portal-shell .heatmap-months-v3,
.student-portal-shell .heatmap-weekdays-v3,
.student-portal-shell .heatmap-footer-v3,
.student-portal-shell .heatmap-legend-v3 {
  color: var(--profile-weak);
}

.student-portal-shell .heatmap-day-v3 {
  background: #F0F2F5;
}

.student-portal-shell .heatmap-day-v3.l1,
.student-portal-shell .hm-dot-v3.l1 {
  background: #D9EBFF;
}

.student-portal-shell .heatmap-day-v3.l2,
.student-portal-shell .hm-dot-v3.l2 {
  background: #91CAFF;
}

.student-portal-shell .heatmap-day-v3.l3,
.student-portal-shell .hm-dot-v3.l3 {
  background: #4096FF;
}

.student-portal-shell .heatmap-day-v3.l4,
.student-portal-shell .hm-dot-v3.l4 {
  background: var(--profile-primary);
}

.student-portal-shell .heatmap-day-v3:hover {
  outline: 2px solid #FFFFFF;
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.28);
  transform: scale(1.18);
}

.student-portal-shell .heatmap-footer-v3 {
  border-top-color: var(--profile-line);
}

.student-portal-shell .tag-item-v3,
.student-portal-shell .profile-tag-editor-v3 > span {
  border: 1px solid #BADEFF;
  background: var(--profile-primary-soft);
  color: var(--profile-primary-hover);
}

.student-portal-shell .tag-item-v3:hover {
  background: #D9EBFF;
  transform: none;
}

.student-portal-shell .tag-add-v3 {
  min-height: 36px;
  border-color: #B9C4D0;
  border-radius: 7px;
  color: var(--profile-muted);
}

.student-portal-shell .tag-add-v3:hover {
  border-color: var(--profile-primary);
  background: #F7FBFF;
  color: var(--profile-primary);
}

.student-portal-shell .task-item-v3 {
  min-height: 54px;
  padding: 8px;
  border-radius: 7px;
}

.student-portal-shell .task-item-v3:hover {
  background: #F7FBFF;
}

.student-portal-shell .task-item-v3:hover .task-title-v3 {
  color: var(--profile-primary-hover);
}

.student-portal-shell .task-item-v3.in_progress .task-check-v3,
.student-portal-shell .task-status-v3.in_progress {
  color: var(--profile-primary);
}

.student-portal-shell .task-item-v3.completed .task-check-v3,
.student-portal-shell .task-status-v3.completed {
  color: #16A34A;
}

.student-portal-shell .task-item-v3.pending .task-check-v3,
.student-portal-shell .task-status-v3.pending {
  color: var(--profile-weak);
}

.student-portal-shell .task-add-v3 {
  min-height: 44px;
  border: 1px dashed #AFC5DC;
  border-radius: 7px;
  background: #FFFFFF;
  color: var(--profile-primary);
}

.student-portal-shell .task-add-v3:hover {
  border-color: var(--profile-primary);
  background: #F7FBFF;
}

.student-portal-shell .activity-item-v3 {
  min-width: 0;
  padding: 6px 0;
}

.student-portal-shell .activity-icon-v3,
.student-portal-shell .profile-activity-list-v3 .activity-icon-v3 {
  width: 36px;
  height: 36px;
  border: 1px solid #CFE5FF;
  border-radius: 8px;
  background: var(--profile-primary-soft) !important;
  color: var(--profile-primary) !important;
}

.student-portal-shell .partners-card-v3 {
  padding: 20px 22px;
  border: 1px solid var(--profile-line);
  background: #FFFFFF;
}

.student-portal-shell .partners-icon-v3 {
  width: 44px;
  height: 44px;
  border: 1px solid #CFE5FF;
  border-radius: 8px;
  background: var(--profile-primary-soft);
  color: var(--profile-primary);
  box-shadow: none;
}

.student-portal-shell .partners-avatars-v3 img {
  background: #D9EBFF;
}

.student-portal-shell .partners-all-v3 {
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #A8CFFF;
  border-radius: 7px;
  background: #FFFFFF;
  color: var(--profile-primary);
}

.student-portal-shell .partners-all-v3:hover {
  border-color: var(--profile-primary);
  background: var(--profile-primary-soft);
  color: var(--profile-primary-hover);
}

.student-portal-shell .recommend-body-v3 {
  gap: 8px;
}

.student-portal-shell .recommend-item-v3 {
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #F8FAFC;
}

.student-portal-shell .recommend-item-v3:hover {
  border-color: #D5E8FF;
  background: #F4F9FF;
  transform: none;
}

.student-portal-shell .recommend-icon-v3 {
  border-radius: 7px;
}

.student-portal-shell .profile-assistant-v3 {
  position: fixed;
  left: auto;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  width: min(310px, calc(100vw - 48px));
  width: 62px;
  height: 62px;
  min-height: 62px;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #D5E8FF;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 12px 34px rgba(23, 32, 51, 0.14);
  transition: border-color 180ms ease-out, box-shadow 180ms ease-out;
}

.student-portal-shell .profile-assistant-v3:hover {
  border-color: #A8CFFF;
  box-shadow: 0 14px 38px rgba(23, 32, 51, 0.17);
  transform: none;
}

.student-portal-shell .assistant-img-v3 {
  width: 50px;
  height: 50px;
}

.student-portal-shell .assistant-info-v3,
.student-portal-shell .assistant-btn-v3 {
  display: none;
}

.student-portal-shell .assistant-name-v3 {
  color: var(--profile-ink);
}

.student-portal-shell .assistant-desc-v3 {
  color: var(--profile-muted);
}

.student-portal-shell .assistant-btn-v3 {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--profile-primary);
  border-radius: 7px;
  background: var(--profile-primary);
  color: #FFFFFF;
}

.student-portal-shell .assistant-btn-v3:hover {
  border-color: var(--profile-primary-hover);
  background: var(--profile-primary-hover);
}

.student-portal-shell .partners-dialog-overlay,
.student-portal-shell .profile-dialog-backdrop-v3 {
  background: rgba(23, 32, 51, 0.45);
  backdrop-filter: blur(3px);
}

.student-portal-shell .partners-dialog-v3,
.student-portal-shell .profile-modal-v3 {
  overflow: hidden;
  border: 1px solid var(--profile-line);
  border-radius: 8px;
  background: #FFFFFF;
  box-shadow: 0 20px 54px rgba(23, 32, 51, 0.2);
}

.student-portal-shell .partners-dialog-header-v3,
.student-portal-shell .profile-modal-head-v3 {
  border-bottom: 1px solid var(--profile-line);
  background: #FFFFFF;
}

.student-portal-shell .partners-dialog-header-v3 h3,
.student-portal-shell .profile-modal-head-v3 h3 {
  color: var(--profile-ink);
}

.student-portal-shell .partners-dialog-close-v3,
.student-portal-shell .profile-modal-head-v3 button {
  width: 40px;
  height: 40px;
  border-radius: 7px;
  color: var(--profile-muted);
}

.student-portal-shell .partners-dialog-close-v3:hover,
.student-portal-shell .profile-modal-head-v3 button:hover {
  background: #F2F4F7;
  color: var(--profile-ink);
}

.student-portal-shell .partner-row-v3,
.student-portal-shell .profile-badge-detail-v3 {
  border-color: var(--profile-line);
  background: #FFFFFF;
}

.student-portal-shell .partner-row-btn-v3,
.student-portal-shell .profile-tag-input-v3 button,
.student-portal-shell .profile-inline-empty button {
  border-color: var(--profile-primary);
  border-radius: 7px;
  background: var(--profile-primary);
  color: #FFFFFF;
}

.student-portal-shell .partner-row-btn-v3.following {
  border-color: var(--profile-line);
  background: #F2F4F7;
  color: var(--profile-muted);
}

.student-portal-shell .profile-modal-body-v3 input,
.student-portal-shell .profile-modal-body-v3 select,
.student-portal-shell .profile-tag-input-v3 input {
  min-height: 44px;
  border-color: #C9D3DF;
  border-radius: 7px;
  color: var(--profile-ink);
}

.student-portal-shell .profile-modal-body-v3 input:focus,
.student-portal-shell .profile-modal-body-v3 select:focus,
.student-portal-shell .profile-tag-input-v3 input:focus {
  border-color: var(--profile-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.14);
}

.student-portal-shell .profile-modal-hint {
  color: var(--profile-muted);
}

.student-portal-shell .profile-modal-footer-v3 {
  border-top-color: var(--profile-line);
  background: #FAFBFC;
}

.student-portal-shell .profile-modal-footer-v3 button {
  min-height: 42px;
  border-radius: 7px;
}

.student-portal-shell .profile-modal-footer-v3 button.primary {
  border-color: var(--profile-primary);
  background: var(--profile-primary);
  color: #FFFFFF;
}

.student-portal-shell .profile-modal-footer-v3 button.primary:hover {
  border-color: var(--profile-primary-hover);
  background: var(--profile-primary-hover);
}

.student-portal-shell .profile-page-v3 button:focus-visible,
.student-portal-shell .profile-page-v3 a:focus-visible,
.student-portal-shell .profile-page-v3 select:focus-visible,
.student-portal-shell .profile-page-v3 input:focus-visible {
  outline: 3px solid rgba(22, 119, 255, 0.22);
  outline-offset: 2px;
}

.student-portal-shell .profile-page-v3 button:active,
.student-portal-shell .profile-page-v3 a:active {
  filter: brightness(0.96);
}

.student-portal-shell .profile-page-v3 button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 1199px) {
  .student-portal-shell .profile-main-v3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .student-portal-shell .profile-col-right-v3 {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .student-portal-shell .profile-stats-v3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .student-portal-shell .stat-card-v3:nth-child(4) {
    border-left: 0;
  }

  .student-portal-shell .stat-card-v3:nth-child(n + 4) {
    border-top: 1px solid var(--profile-line);
  }
}

@media (max-width: 767px) {
  .app-shell.student-portal-shell:not(.teacher-app-shell) .main-content.profile-page-v3 {
    padding-top: 66px !important;
  }

  .student-portal-shell .profile-body-v3 {
    width: min(100% - 24px, 1620px);
    padding-top: 12px;
    padding-bottom: 32px;
  }

  .student-portal-shell .profile-summary-v4 {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px;
  }

  .student-portal-shell .profile-summary-main-v4 {
    align-items: flex-start;
  }

  .student-portal-shell .profile-summary-actions-v4 {
    width: 100%;
  }

  .student-portal-shell .profile-summary-actions-v4 > * {
    flex: 1 1 0;
  }

  .student-portal-shell .profile-avatar-v3 {
    width: 76px;
    height: 76px;
  }

  .student-portal-shell .profile-name-v3 {
    font-size: 22px;
  }

  .student-portal-shell .profile-stats-v3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .student-portal-shell .stat-card-v3,
  .student-portal-shell .stat-card-v3:nth-child(4) {
    border-left: 0;
    border-top: 1px solid var(--profile-line);
  }

  .student-portal-shell .stat-card-v3:nth-child(-n + 2) {
    border-top: 0;
  }

  .student-portal-shell .stat-card-v3:nth-child(even) {
    border-left: 1px solid var(--profile-line);
  }

  .student-portal-shell .profile-main-v3 {
    grid-template-columns: 1fr;
  }

  .student-portal-shell .profile-col-right-v3 {
    grid-column: auto;
    display: flex;
  }

  .student-portal-shell .card-v3 {
    padding: 18px;
  }

  .student-portal-shell .heatmap-card-v3 > .heatmap-body-v3 {
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .student-portal-shell .heatmap-footer-v3 {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .student-portal-shell .partners-card-v3,
  .student-portal-shell .partners-right-v3 {
    align-items: flex-start;
    flex-direction: column;
  }

  .student-portal-shell .profile-assistant-v3 {
    position: static;
    width: 100%;
    height: auto;
    min-height: 78px;
    padding: 10px 12px;
    justify-content: flex-start;
    border-radius: 8px;
    margin-top: 0;
  }

  .student-portal-shell .profile-assistant-v3 .assistant-info-v3,
  .student-portal-shell .profile-assistant-v3 .assistant-btn-v3 {
    display: block;
  }

  .student-portal-shell .profile-modal-v3,
  .student-portal-shell .partners-dialog-v3 {
    width: min(100% - 24px, 640px);
    max-height: calc(100vh - 32px);
  }
}

@media (max-width: 420px) {
  .student-portal-shell .profile-summary-main-v4 {
    flex-direction: column;
  }

  .student-portal-shell .profile-summary-actions-v4 {
    flex-direction: column;
  }

  .student-portal-shell .profile-summary-actions-v4 > * {
    width: 100%;
    flex: none;
  }

  .student-portal-shell .profile-stats-v3 {
    grid-template-columns: 1fr;
  }

  .student-portal-shell .stat-card-v3,
  .student-portal-shell .stat-card-v3:nth-child(even) {
    border-left: 0;
  }

  .student-portal-shell .stat-card-v3:nth-child(n + 2) {
    border-top: 1px solid var(--profile-line);
  }

  .student-portal-shell .badges-body-v3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .student-portal-shell .profile-page-v3 *,
  .student-portal-shell .profile-page-v3 *::before,
  .student-portal-shell .profile-page-v3 *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
