body.profile-page .main-content {
  max-width: 1100px;
  padding: 12px 20px 36px !important;
}

.profile-shell {
  width: 100%;
  max-width: 1040px;
  display: grid;
  gap: 16px;
}

.profile-panel {
  min-width: 0;
  border: 1px solid #dbe3ec;
  border-radius: 14px;
  background: #fff;
  box-sizing: border-box;
}

.profile-intro {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 50%;
  background: #173c32;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 900;
}

.profile-identity {
  min-width: 0;
}

.profile-name {
  margin: 0;
  overflow-wrap: anywhere;
  color: #172033;
  font-size: clamp(27px, 3.5vw, 34px);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.2;
}

.profile-caption {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.profile-badge {
  min-height: 25px;
  padding: 0 8px;
  border: 1px solid #dbe3ec;
  border-radius: 999px;
  background: #fff;
  color: #526173;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
}

.profile-badge.verified {
  border-color: #a7d9c5;
  color: #047857;
}

.profile-activity {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  overflow: hidden;
}

.profile-activity-item {
  min-width: 0;
  padding: 16px 18px;
}

.profile-activity-item + .profile-activity-item {
  border-left: 1px solid #e2e8f0;
}

.profile-activity dt {
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.profile-activity dd {
  margin: 5px 0 0;
  color: #172033;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.1;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start;
}

.profile-reviews,
.profile-sidebar {
  padding: 20px;
}

.profile-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}

.profile-section-title {
  margin: 0;
  color: #172033;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -.45px;
}

.profile-count {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.profile-review-list {
  display: grid;
  gap: 10px;
}

.profile-review {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 13px;
  padding: 13px;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  background: #fff;
  transition: border-color .15s ease, background .15s ease;
}

.profile-review:hover {
  border-color: #9bcfba;
  background: #fbfefc;
}

.profile-review-art {
  position: relative;
  width: 58px;
  height: 74px;
  overflow: hidden;
  border-radius: 8px;
  background-color: #eef2f7;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.profile-review-art img {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 94%;
  height: 94%;
  object-fit: contain;
  transform: translateX(-50%);
}

.profile-review-body {
  min-width: 0;
}

.profile-review-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.profile-review-title {
  min-width: 0;
  color: #172033;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.4;
  text-decoration: none;
}

.profile-review-title:hover {
  color: #047857;
  text-decoration: none;
}

.profile-review-score {
  flex: 0 0 auto;
  color: #b86d08;
  font-size: 13px;
  font-weight: 900;
}

.profile-review-meta {
  margin-top: 4px;
  overflow: hidden;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-review-text {
  margin: 7px 0 0;
  overflow: hidden;
  color: #526173;
  font-size: 13px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.profile-empty {
  padding: 34px 16px;
  border: 1px dashed #cbd5e1;
  border-radius: 11px;
  color: #64748b;
  text-align: center;
  font-size: 13px;
  line-height: 1.65;
}

.profile-empty a {
  display: inline-block;
  margin-top: 8px;
  color: #047857;
  font-weight: 850;
}

.profile-side-section + .profile-side-section {
  margin-top: 19px;
  padding-top: 19px;
  border-top: 1px solid #e2e8f0;
}

.profile-side-title {
  margin: 0 0 12px;
  color: #172033;
  font-size: 16px;
  font-weight: 900;
}

.profile-point-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  border-bottom: 1px solid #eef2f7;
  color: #64748b;
  font-size: 13px;
  font-weight: 750;
}

.profile-point-row:last-child {
  border-bottom: 0;
}

.profile-point-row strong {
  color: #b45309;
  font-size: 16px;
  font-weight: 900;
}

.profile-form {
  display: grid;
  gap: 8px;
}

.profile-label {
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.profile-form .form-control {
  min-height: 42px;
}

.profile-account-meta {
  margin-top: 11px;
  overflow-wrap: anywhere;
  color: #64748b;
  font-size: 12px;
  line-height: 1.55;
}

.profile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.profile-actions .btn-primary,
.profile-actions .btn-secondary {
  min-height: 40px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.profile-delete {
  display: inline-flex;
  margin-top: 12px;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.profile-delete:hover {
  color: #991b1b;
  text-decoration: underline;
}

@media (max-width: 860px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body.profile-page .main-content {
    padding: 4px 4px 28px !important;
  }
  .profile-shell {
    gap: 12px;
  }
  .profile-intro {
    gap: 13px;
    padding: 17px 16px;
  }
  .profile-avatar {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    font-size: 20px;
  }
  .profile-name {
    font-size: 25px;
  }
  .profile-caption {
    font-size: 12px;
  }
  .profile-activity {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .profile-activity-item {
    padding: 13px 15px;
  }
  .profile-activity-item:nth-child(3) {
    border-left: 0;
  }
  .profile-activity-item:nth-child(n+3) {
    border-top: 1px solid #e2e8f0;
  }
  .profile-activity dd {
    font-size: 19px;
  }
  .profile-reviews,
  .profile-sidebar {
    padding: 16px;
  }
  .profile-review {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }
  .profile-review-art {
    width: 48px;
    height: 63px;
  }
  .profile-review-head {
    display: block;
  }
  .profile-review-score {
    display: inline-block;
    margin-top: 3px;
  }
}
