/* Admin student profile v2 */
body[data-role="admin"] .admin-user-full-profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}

body[data-role="admin"] .admin-user-full-profile-main {
  min-width: 0;
  display: grid;
  gap: 18px;
}

body[data-role="admin"] .user-profile-card--student {
  padding: 26px !important;
  border: 1px solid #e1e9e3;
  border-radius: 26px !important;
  background: #fff;
  box-shadow: 0 14px 40px rgba(20,48,29,.055);
}

body[data-role="admin"] .user-profile-card--student .user-profile-hero {
  display: flex;
  align-items: center !important;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 20px !important;
  padding: 0 0 22px !important;
  border-bottom: 1px solid #e7ece8;
}

body[data-role="admin"] .aspv2-identity {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

body[data-role="admin"] .aspv2-avatar {
  width: 76px;
  height: 76px;
  min-width: 76px;
  display: grid;
  place-items: center;
  border: 1px solid #cfe2d3;
  border-radius: 50%;
  background: linear-gradient(145deg,#edf7ef,#dcefe1);
  color: #2e7d43;
  font-size: 24px;
  font-weight: 800;
}

body[data-role="admin"] .user-profile-card--student .user-profile-overline {
  margin: 0 0 5px;
  color: #758078;
  font-size: 12px;
  font-weight: 700;
}

body[data-role="admin"] .user-profile-card--student .user-profile-hero h2 {
  margin: 0;
  color: #172019;
  font-size: 34px !important;
  line-height: 1.05;
}

body[data-role="admin"] .user-profile-card--student .user-profile-hero .muted {
  margin: 8px 0 0;
  color: #68756d;
  font-size: 14px;
}

body[data-role="admin"] .user-profile-card--student .user-kpi-strip {
  display: grid !important;
  grid-template-columns: repeat(4,minmax(0,1fr)) !important;
  gap: 12px !important;
  margin: 0 0 20px !important;
}

body[data-role="admin"] .aspv2-kpi {
  min-height: 105px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 7px;
  padding: 16px 17px;
  border: 1px solid #e1e9e3;
  border-radius: 18px;
  background: linear-gradient(180deg,#fff,#fafcfb);
}

body[data-role="admin"] .aspv2-kpi-label {
  color: #66736b;
  font-size: 12px;
  font-weight: 700;
}

body[data-role="admin"] .aspv2-kpi strong {
  color: #172019;
  font-size: 26px;
  line-height: 1;
}

body[data-role="admin"] .aspv2-kpi small {
  color: #87928b;
  font-size: 11px;
}

body[data-role="admin"] .aspv2-progress {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7efe9;
}

body[data-role="admin"] .aspv2-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #2b9748;
}

body[data-role="admin"] .user-profile-card--student .user-detail-sections {
  display: grid;
  gap: 14px;
}

body[data-role="admin"] .user-profile-card--student .user-detail-section,
body[data-role="admin"] .aspv2-activity-section {
  padding: 20px;
  border: 1px solid #e2e9e4;
  border-radius: 20px;
  background: #fbfcfb;
}

body[data-role="admin"] .user-profile-card--student .user-detail-section h3,
body[data-role="admin"] .aspv2-activity-section h3 {
  margin: 0 0 14px;
  color: #1b241e;
  font-size: 19px;
}

body[data-role="admin"] .aspv2-info-grid,
body[data-role="admin"] .aspv2-activity-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
}

body[data-role="admin"] .aspv2-info-item,
body[data-role="admin"] .aspv2-activity-item {
  min-height: 73px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 13px 14px;
  border: 1px solid #e2e9e4;
  border-radius: 14px;
  background: #fff;
}

body[data-role="admin"] .aspv2-info-item span,
body[data-role="admin"] .aspv2-activity-item span {
  color: #7d8881;
  font-size: 11px;
}

body[data-role="admin"] .aspv2-info-item strong,
body[data-role="admin"] .aspv2-activity-item strong {
  color: #263029;
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

body[data-role="admin"] .admin-user-full-profile-sidebar {
  display: grid !important;
  gap: 14px !important;
}

body[data-role="admin"] .admin-user-full-profile-sidebar > .panel {
  padding: 18px !important;
  border: 1px solid #e1e9e3 !important;
  border-radius: 22px !important;
  background: #fff !important;
  box-shadow: 0 12px 32px rgba(19,47,28,.05) !important;
}

body[data-role="admin"] .admin-user-full-profile-sidebar > .panel > h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

body[data-role="admin"] .aspv2-quick-panel .quick-actions {
  display: grid;
  gap: 8px;
}

body[data-role="admin"] .aspv2-quick-panel .btn {
  min-height: 44px;
  border-radius: 13px;
}

body[data-role="admin"] .aspv2-individual-homework {
  order: -10;
  border-color: #248540 !important;
  background: linear-gradient(180deg,#36a653,#21813d) !important;
  color: #fff !important;
  font-weight: 800;
}

body[data-role="admin"] .aspv2-attention-list {
  display: grid;
  gap: 9px;
}

body[data-role="admin"] .aspv2-attention-item {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 11px 12px;
  border-radius: 13px;
  background: #fff9ed;
  border: 1px solid #f0dfb9;
}

body[data-role="admin"] .aspv2-attention-item.is-ok {
  background: #eef8f0;
  border-color: #cfe7d4;
}

body[data-role="admin"] .aspv2-attention-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: #e29a23;
}

body[data-role="admin"] .aspv2-attention-item.is-ok .aspv2-attention-dot {
  background: #2e9f4c;
}

body[data-role="admin"] .aspv2-attention-item strong {
  display: block;
  color: #4b4232;
  font-size: 13px;
}

body[data-role="admin"] .aspv2-attention-item.is-ok strong { color: #2d5637; }

body[data-role="admin"] .aspv2-attention-item small {
  display: block;
  margin-top: 2px;
  color: #8b7a5d;
}

body[data-role="admin"] .aspv2-attention-item.is-ok small { color: #66806d; }

body[data-role="admin"] .user-management-panel {
  padding: 22px !important;
  border-radius: 22px !important;
}

body[data-role="admin"] .user-management-actions {
  gap: 9px !important;
}

body[data-theme="dark"][data-role="admin"] .user-profile-card--student,
body[data-theme="dark"][data-role="admin"] .user-profile-card--student .user-detail-section,
body[data-theme="dark"][data-role="admin"] .aspv2-activity-section,
body[data-theme="dark"][data-role="admin"] .aspv2-kpi,
body[data-theme="dark"][data-role="admin"] .aspv2-info-item,
body[data-theme="dark"][data-role="admin"] .aspv2-activity-item,
body[data-theme="dark"][data-role="admin"] .admin-user-full-profile-sidebar > .panel {
  background: #131e17 !important;
  border-color: #26332a !important;
  color: #edf4ef;
  box-shadow: none !important;
}

body[data-theme="dark"][data-role="admin"] .user-profile-card--student .user-profile-hero {
  border-color: #2a382e;
}

body[data-theme="dark"][data-role="admin"] .user-profile-card--student .user-profile-hero h2,
body[data-theme="dark"][data-role="admin"] .aspv2-kpi strong,
body[data-theme="dark"][data-role="admin"] .aspv2-info-item strong,
body[data-theme="dark"][data-role="admin"] .aspv2-activity-item strong,
body[data-theme="dark"][data-role="admin"] .user-profile-card--student .user-detail-section h3,
body[data-theme="dark"][data-role="admin"] .aspv2-activity-section h3 {
  color: #edf4ef;
}

body[data-theme="dark"][data-role="admin"] .aspv2-kpi-label,
body[data-theme="dark"][data-role="admin"] .aspv2-kpi small,
body[data-theme="dark"][data-role="admin"] .aspv2-info-item span,
body[data-theme="dark"][data-role="admin"] .aspv2-activity-item span,
body[data-theme="dark"][data-role="admin"] .user-profile-card--student .user-profile-hero .muted {
  color: #9db0a4;
}

@media (max-width: 1180px) {
  body[data-role="admin"] .admin-user-full-profile-layout { grid-template-columns: 1fr; }
  body[data-role="admin"] .admin-user-full-profile-sidebar { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 820px) {
  body[data-role="admin"] .user-profile-card--student { padding: 18px !important; }
  body[data-role="admin"] .user-profile-card--student .user-profile-hero { align-items: flex-start !important; flex-direction: column; }
  body[data-role="admin"] .aspv2-avatar { width: 58px; height: 58px; min-width: 58px; font-size: 19px; }
  body[data-role="admin"] .user-profile-card--student .user-profile-hero h2 { font-size: 28px !important; }
  body[data-role="admin"] .user-profile-card--student .user-kpi-strip,
  body[data-role="admin"] .aspv2-info-grid,
  body[data-role="admin"] .aspv2-activity-grid,
  body[data-role="admin"] .admin-user-full-profile-sidebar { grid-template-columns: 1fr !important; }
}
