
.user-page {
  min-height: 60vh;
}

.user-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.user-title-row h1 {
  margin: 0 0 7px;
  font-family: Roboto, sans-serif;
  font-weight: 700;
}

.user-title-row p {
  margin: 0;
}

.user-profile-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 26px 28px;
  margin-bottom: 24px;
  background: #fff;
  border: 1px solid #e3e6e8;
  border-top: 3px solid #28a745;
}

.user-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  color: #fff;
  background: #2d3438;
  font: 700 28px/1 Roboto, sans-serif;
  letter-spacing: .03em;
}

.user-profile-kicker {
  display: block;
  margin-bottom: 5px;
  color: #28a745;
  font: 700 12px/1.4 Roboto, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.user-profile-identity h2 {
  margin: 0 0 8px;
  color: #222;
  font: 700 28px/1.25 Roboto, sans-serif;
}

.user-profile-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  color: #777;
  font: 400 14px/1.5 Roboto, sans-serif;
}

.user-profile-meta a {
  color: #555;
}

.user-profile-meta a:hover {
  color: #28a745;
}

.user-username {
  color: #777;
}

.user-profile-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.user-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid #d6dadd;
  border-radius: 2px;
  color: #343a40;
  background: #fff;
  font: 500 14px/1.2 Roboto, sans-serif;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.user-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.user-button:hover,
.user-button:focus {
  color: #218838;
  border-color: #28a745;
}

.user-button-primary {
  color: #fff;
  background: #28a745;
  border-color: #28a745;
}

.user-button-primary:hover,
.user-button-primary:focus {
  color: #fff;
  background: #218838;
  border-color: #218838;
}

.user-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.user-card {
  min-width: 0;
  background: #fff;
  border: 1px solid #e3e6e8;
}

.user-card-account {
  grid-column: 1 / -1;
}

.user-card-heading {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 20px 22px 17px;
  border-bottom: 1px solid #eceeef;
}

.user-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #218838;
  background: #eef8f0;
}

.user-card-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.user-card-heading h2 {
  margin: 0 0 4px;
  color: #272b2e;
  font: 700 19px/1.3 Roboto, sans-serif;
}

.user-card-heading p {
  margin: 0;
  color: #777;
  font: 400 13px/1.55 Roboto, sans-serif;
}

.user-data-list {
  margin: 0;
  padding: 0 22px;
}

.user-data-row {
  display: grid;
  grid-template-columns: minmax(150px, .75fr) minmax(0, 1.5fr);
  align-items: center;
  gap: 18px;
  min-height: 56px;
  padding: 12px 0;
  border-bottom: 1px solid #eef0f1;
}

.user-data-row:last-child {
  border-bottom: 0;
}

.user-data-row dt,
.user-data-row dd {
  margin: 0;
}

.user-data-row dt {
  color: #707579;
  font: 500 13px/1.4 Roboto, sans-serif;
}

.user-data-row dd {
  min-width: 0;
  color: #272b2e;
  font: 500 14px/1.5 Roboto, sans-serif;
  overflow-wrap: anywhere;
}

.user-data-row dd a {
  color: #272b2e;
}

.user-data-row dd a:hover {
  color: #28a745;
}

.user-data-row-subtle dt,
.user-data-row-subtle dd {
  color: #92979a;
  font-size: 12px;
}

.user-empty {
  color: #a0a4a7 !important;
  font-style: italic !important;
  font-weight: 400 !important;
}

.user-password-dots {
  margin-right: 14px;
  color: #858a8e;
  letter-spacing: .12em;
}

.user-inline-action {
  color: #218838 !important;
  font-size: 13px;
}

.user-profile-footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  padding: 20px 22px;
  margin-top: 20px;
  background: #f7f8f8;
  border: 1px solid #e3e6e8;
}

.user-profile-footer-actions p {
  margin: 0 auto 0 0;
  color: #676d70;
  font: 400 14px/1.5 Roboto, sans-serif;
}

@media (max-width: 991px) {
  .user-profile-hero {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .user-profile-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-left: 104px;
  }
}

@media (max-width: 767px) {
  .user-title-row {
    margin-bottom: 18px;
  }

  .user-profile-hero {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 22px 20px;
    text-align: center;
  }

  .user-avatar {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    font-size: 24px;
  }

  .user-profile-identity h2 {
    font-size: 24px;
  }

  .user-profile-meta {
    justify-content: center;
  }

  .user-profile-actions {
    grid-column: auto;
    justify-content: center;
    padding-left: 0;
  }

  .user-profile-grid {
    grid-template-columns: 1fr;
  }

  .user-card-account {
    grid-column: auto;
  }

  .user-data-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 0;
  }

  .user-profile-footer-actions {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
  }

  .user-profile-footer-actions p {
    margin: 0;
  }
}

@media (max-width: 480px) {
  .user-profile-actions,
  .user-button {
    width: 100%;
  }

  .user-card-heading,
  .user-data-list {
    padding-left: 17px;
    padding-right: 17px;
  }
}
