/* v121 · Engineer identity card and enterprise-ready contribution profile */

html:not(.react-student-embedded) body[data-active-panel="my"] .engineer-identity-card {
  min-width: 0 !important;
}

html:not(.react-student-embedded) body[data-active-panel="my"] .engineer-identity-shell {
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(320px, 0.82fr) minmax(560px, 1.45fr) !important;
  gap: 16px !important;
}

html:not(.react-student-embedded) body[data-active-panel="my"] :is(.engineer-identity-profile, .engineer-identity-contribution) {
  min-width: 0 !important;
  border: 1px solid #dfe5ef !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  box-shadow: 0 16px 40px rgba(25, 38, 70, 0.065) !important;
}

html:not(.react-student-embedded) body[data-active-panel="my"] .engineer-identity-profile {
  display: flex !important;
  flex-direction: column !important;
  padding: 22px !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(79, 110, 247, 0.12), transparent 34%),
    linear-gradient(150deg, #ffffff, #f8faff) !important;
}

html:not(.react-student-embedded) body[data-active-panel="my"] .engineer-identity-profile > header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

html:not(.react-student-embedded) body[data-active-panel="my"] .engineer-identity-badge {
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
}

html:not(.react-student-embedded) body[data-active-panel="my"] .engineer-identity-badge > i {
  width: 30px !important;
  height: 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  border-radius: 9px !important;
  background: linear-gradient(135deg, #4f6ef7, #7455e7) !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-style: normal !important;
  font-weight: 950 !important;
  box-shadow: 0 8px 18px rgba(79, 110, 247, 0.22) !important;
}

html:not(.react-student-embedded) body[data-active-panel="my"] .engineer-identity-badge > span {
  min-width: 0 !important;
  display: grid !important;
  gap: 2px !important;
}

html:not(.react-student-embedded) body[data-active-panel="my"] .engineer-identity-badge strong {
  color: #1b2537 !important;
  font-size: 14px !important;
  line-height: 1.25 !important;
  font-weight: 950 !important;
}

html:not(.react-student-embedded) body[data-active-panel="my"] .engineer-identity-badge small {
  color: #76839a !important;
  font-size: 8px !important;
  line-height: 1.2 !important;
  font-weight: 850 !important;
  letter-spacing: 0.1em !important;
}

html:not(.react-student-embedded) body[data-active-panel="my"] .engineer-identity-profile > header > em {
  min-height: 26px !important;
  display: inline-flex !important;
  align-items: center !important;
  padding: 0 9px !important;
  border: 1px solid #cfe9dc !important;
  border-radius: 999px !important;
  background: #effaf4 !important;
  color: #24845d !important;
  font-size: 9px !important;
  line-height: 1 !important;
  font-style: normal !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

html:not(.react-student-embedded) body[data-active-panel="my"] .engineer-identity-person {
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin-top: 22px !important;
  padding-bottom: 18px !important;
  border-bottom: 1px solid #e7ebf2 !important;
}

html:not(.react-student-embedded) body[data-active-panel="my"] .engineer-identity-avatar {
  width: 68px !important;
  height: 68px !important;
  display: block !important;
  flex: 0 0 68px !important;
  border: 3px solid rgba(255, 255, 255, 0.95) !important;
  border-radius: 19px !important;
  background-position: center 16% !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  box-shadow: 0 10px 24px rgba(36, 54, 98, 0.14) !important;
}

html:not(.react-student-embedded) body[data-active-panel="my"] .engineer-identity-person > div {
  min-width: 0 !important;
}

html:not(.react-student-embedded) body[data-active-panel="my"] .engineer-identity-person h2 {
  margin: 0 !important;
  color: #111a2b !important;
  font-size: 25px !important;
  line-height: 1.2 !important;
  font-weight: 950 !important;
  letter-spacing: -0.035em !important;
}

html:not(.react-student-embedded) body[data-active-panel="my"] .engineer-identity-person p {
  margin: 4px 0 0 !important;
  color: #44516a !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  font-weight: 850 !important;
}

html:not(.react-student-embedded) body[data-active-panel="my"] .engineer-identity-person > div > span {
  display: block !important;
  margin-top: 5px !important;
  color: #7c879a !important;
  font-size: 10px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
}

html:not(.react-student-embedded) body[data-active-panel="my"] .engineer-identity-abilities {
  display: grid !important;
  gap: 10px !important;
  margin-top: 18px !important;
}

html:not(.react-student-embedded) body[data-active-panel="my"] .engineer-identity-abilities article {
  min-width: 0 !important;
  display: grid !important;
  gap: 6px !important;
}

html:not(.react-student-embedded) body[data-active-panel="my"] .engineer-identity-abilities article > div {
  min-width: 0 !important;
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

html:not(.react-student-embedded) body[data-active-panel="my"] .engineer-identity-abilities span {
  color: #526078 !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
}

html:not(.react-student-embedded) body[data-active-panel="my"] .engineer-identity-abilities strong {
  color: #293750 !important;
  font-size: 15px !important;
  line-height: 1 !important;
  font-weight: 950 !important;
}

html:not(.react-student-embedded) body[data-active-panel="my"] .engineer-identity-abilities article > i {
  width: 100% !important;
  height: 6px !important;
  display: block !important;
  overflow: hidden !important;
  border-radius: 999px !important;
  background: #e8ecf3 !important;
}

html:not(.react-student-embedded) body[data-active-panel="my"] .engineer-identity-abilities article > i > b {
  height: 100% !important;
  display: block !important;
  border-radius: inherit !important;
  background: linear-gradient(90deg, #4f6ef7, #7654e7) !important;
}

html:not(.react-student-embedded) body[data-active-panel="my"] .engineer-identity-profile > footer {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  gap: 3px 9px !important;
  margin-top: auto !important;
  padding-top: 18px !important;
}

html:not(.react-student-embedded) body[data-active-panel="my"] .engineer-identity-profile > footer span,
html:not(.react-student-embedded) body[data-active-panel="my"] .engineer-identity-profile > footer em {
  color: #8994a6 !important;
  font-size: 9px !important;
  line-height: 1.35 !important;
  font-style: normal !important;
  font-weight: 700 !important;
}

html:not(.react-student-embedded) body[data-active-panel="my"] .engineer-identity-profile > footer strong {
  color: #43516a !important;
  font-size: 10px !important;
  line-height: 1.35 !important;
  font-weight: 900 !important;
  letter-spacing: 0.06em !important;
}

html:not(.react-student-embedded) body[data-active-panel="my"] .engineer-identity-profile > footer em {
  grid-column: 1 / -1 !important;
}

html:not(.react-student-embedded) body[data-active-panel="my"] .engineer-identity-contribution {
  padding: 22px !important;
}

html:not(.react-student-embedded) body[data-active-panel="my"] .engineer-identity-contribution > header {
  min-width: 0 !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 18px !important;
}

html:not(.react-student-embedded) body[data-active-panel="my"] .engineer-identity-contribution > header > div {
  min-width: 0 !important;
}

html:not(.react-student-embedded) body[data-active-panel="my"] .engineer-identity-contribution > header span {
  color: #4f6ef7 !important;
  font-size: 9px !important;
  line-height: 1.2 !important;
  font-weight: 950 !important;
  letter-spacing: 0.12em !important;
}

html:not(.react-student-embedded) body[data-active-panel="my"] .engineer-identity-contribution > header h3 {
  margin: 4px 0 0 !important;
  color: #172033 !important;
  font-size: 20px !important;
  line-height: 1.3 !important;
  font-weight: 950 !important;
}

html:not(.react-student-embedded) body[data-active-panel="my"] .engineer-identity-contribution > header p {
  margin: 5px 0 0 !important;
  color: #768297 !important;
  font-size: 11px !important;
  line-height: 1.45 !important;
  font-weight: 650 !important;
}

html:not(.react-student-embedded) body[data-active-panel="my"] .engineer-identity-contribution > header > em {
  min-height: 29px !important;
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  padding: 0 10px !important;
  border: 1px solid #dce4f6 !important;
  border-radius: 9px !important;
  background: #f5f7ff !important;
  color: #566cb8 !important;
  font-size: 10px !important;
  line-height: 1 !important;
  font-style: normal !important;
  font-weight: 850 !important;
}

html:not(.react-student-embedded) body[data-active-panel="my"] .engineer-contribution-calendar {
  width: 100% !important;
  min-height: 136px !important;
  display: grid !important;
  grid-template-rows: repeat(7, 13px) !important;
  grid-auto-flow: column !important;
  grid-auto-columns: minmax(13px, 1fr) !important;
  align-content: center !important;
  gap: 5px !important;
  margin-top: 17px !important;
  padding: 16px !important;
  border: 1px solid #e3e8f0 !important;
  border-radius: 13px !important;
  background: #fafbfe !important;
}

html:not(.react-student-embedded) body[data-active-panel="my"] :is(.engineer-contribution-calendar, .engineer-contribution-legend) i {
  --contribution-color: #e6eaf1;
  display: block !important;
  border: 1px solid rgba(102, 119, 150, 0.08) !important;
  border-radius: 3px !important;
  background: var(--contribution-color) !important;
}

html:not(.react-student-embedded) body[data-active-panel="my"] :is(.engineer-contribution-calendar, .engineer-contribution-legend) i[data-level="1"] {
  --contribution-color: #dbe4ff;
}

html:not(.react-student-embedded) body[data-active-panel="my"] :is(.engineer-contribution-calendar, .engineer-contribution-legend) i[data-level="2"] {
  --contribution-color: #aabdf7;
}

html:not(.react-student-embedded) body[data-active-panel="my"] :is(.engineer-contribution-calendar, .engineer-contribution-legend) i[data-level="3"] {
  --contribution-color: #708bed;
}

html:not(.react-student-embedded) body[data-active-panel="my"] :is(.engineer-contribution-calendar, .engineer-contribution-legend) i[data-level="4"] {
  --contribution-color: #4c63d9;
}

html:not(.react-student-embedded) body[data-active-panel="my"] .engineer-contribution-legend {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 5px !important;
  margin-top: 7px !important;
}

html:not(.react-student-embedded) body[data-active-panel="my"] .engineer-contribution-legend span {
  color: #8a95a7 !important;
  font-size: 8px !important;
  font-weight: 700 !important;
}

html:not(.react-student-embedded) body[data-active-panel="my"] .engineer-contribution-legend i {
  width: 10px !important;
  height: 10px !important;
}

html:not(.react-student-embedded) body[data-active-panel="my"] .engineer-identity-completions {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin-top: 15px !important;
}

html:not(.react-student-embedded) body[data-active-panel="my"] .engineer-identity-completions article {
  min-width: 0 !important;
  display: grid !important;
  align-content: center !important;
  gap: 4px !important;
  min-height: 84px !important;
  padding: 11px !important;
  border: 1px solid #e3e8f0 !important;
  border-radius: 11px !important;
  background: #fbfcfe !important;
}

html:not(.react-student-embedded) body[data-active-panel="my"] .engineer-identity-completions article > span {
  overflow: hidden !important;
  color: #788498 !important;
  font-size: 9px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html:not(.react-student-embedded) body[data-active-panel="my"] .engineer-identity-completions strong {
  color: #1d2940 !important;
  font-size: 24px !important;
  line-height: 1 !important;
  font-weight: 950 !important;
}

html:not(.react-student-embedded) body[data-active-panel="my"] .engineer-identity-completions strong small {
  margin-left: 2px !important;
  color: #69768c !important;
  font-size: 9px !important;
}

html:not(.react-student-embedded) body[data-active-panel="my"] .engineer-identity-completions p {
  overflow: hidden !important;
  margin: 0 !important;
  color: #8a95a7 !important;
  font-size: 8px !important;
  line-height: 1.3 !important;
  font-weight: 650 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html:not(.react-student-embedded) body[data-active-panel="my"] .engineer-identity-contribution > footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin-top: 17px !important;
  padding-top: 16px !important;
  border-top: 1px solid #e7ebf2 !important;
}

html:not(.react-student-embedded) body[data-active-panel="my"] .engineer-identity-contribution > footer > div {
  min-width: 0 !important;
}

html:not(.react-student-embedded) body[data-active-panel="my"] .engineer-identity-contribution > footer strong {
  color: #2e3a50 !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
  font-weight: 900 !important;
}

html:not(.react-student-embedded) body[data-active-panel="my"] .engineer-identity-contribution > footer p {
  margin: 4px 0 0 !important;
  color: #818da0 !important;
  font-size: 9px !important;
  line-height: 1.4 !important;
  font-weight: 650 !important;
}

html:not(.react-student-embedded) body[data-active-panel="my"] [data-engineer-identity-proof] {
  min-height: 42px !important;
  flex: 0 0 auto !important;
  gap: 9px !important;
  padding: 0 17px !important;
  border-radius: 10px !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  box-shadow: 0 9px 21px rgba(79, 110, 247, 0.21) !important;
}

html[data-theme="dark"]:not(.react-student-embedded) body[data-active-panel="my"] :is(.engineer-identity-profile, .engineer-identity-contribution) {
  border-color: #2c3950 !important;
  background: #101a2b !important;
}

html[data-theme="dark"]:not(.react-student-embedded) body[data-active-panel="my"] :is(.engineer-identity-badge strong, .engineer-identity-person h2, .engineer-identity-contribution > header h3, .engineer-identity-completions strong) {
  color: #edf3ff !important;
}

@media (max-width: 1180px) {
  html:not(.react-student-embedded) body[data-active-panel="my"] .engineer-identity-shell {
    grid-template-columns: 1fr !important;
  }

  html:not(.react-student-embedded) body[data-active-panel="my"] .engineer-identity-profile > footer {
    margin-top: 18px !important;
  }
}

@media (max-width: 720px) {
  html:not(.react-student-embedded) body[data-active-panel="my"] :is(.engineer-identity-profile, .engineer-identity-contribution) {
    padding: 17px !important;
    border-radius: 15px !important;
  }

  html:not(.react-student-embedded) body[data-active-panel="my"] .engineer-identity-completions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html:not(.react-student-embedded) body[data-active-panel="my"] .engineer-identity-contribution > footer {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  html:not(.react-student-embedded) body[data-active-panel="my"] [data-engineer-identity-proof] {
    width: 100% !important;
  }
}
