.profile-shell {
  width: 100%;
}

.modern-profile {
  max-width: 1220px;
  margin: 0 auto;
}

.notice {
  margin: 0 0 16px;
  padding: 13px 16px;
  color: #6c4a08;
  background: #fff8df;
  border: 1px solid #ead394;
  border-radius: 16px;
  font-weight: 700;
}

/* HERO */

.modern-profile-hero {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2ebe3;
  border-radius: 28px;
  box-shadow: 0 18px 45px rgba(20, 48, 32, 0.08);
}

.modern-cover {
  position: relative;
  height: 270px;
  overflow: hidden;
  background: #dfeee4;
}

.modern-cover-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modern-cover-pattern {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(29, 107, 72, 0.92), rgba(57, 115, 133, 0.78)),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.24), transparent 28%),
    radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.18), transparent 30%);
}

.modern-profile-main {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  padding: 0 30px 24px;
}

.modern-avatar-wrap {
  position: relative;
  margin-top: -80px;
}

.modern-avatar {
  display: grid;
  place-items: center;
  width: 170px;
  height: 170px;
  color: #ffffff;
  background: linear-gradient(135deg, #1f8f5f, #0f5f3b);
  border: 7px solid #ffffff;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 20px 38px rgba(18, 38, 28, 0.18);
  font-size: 38px;
  font-weight: 900;
}

.avatar-camera {
  position: absolute;
  right: 10px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #ffffff;
  background: #eef8f1;
  border: 4px solid #ffffff;
  border-radius: 999px;
  font-size: 14px;
  box-shadow: 0 12px 22px rgba(18, 38, 28, 0.18);
}

.modern-profile-intro {
  padding-bottom: 0px;
}

.modern-profile-intro h1 {
  margin: 0;
  color: #102018;
  font-size: 32px;
  line-height: 1;
}

.modern-username {
  color: #0f7a4c;
  font-size: 14px;
  font-weight: 400;
}

.modern-short-bio {
  max-width: 620px;
  margin: 10px 0 0;
  color: #52645a;
  font-size: 15px;
  line-height: 1.55;

  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modern-edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  color: #ffffff;
  background: #1f8f5f;
  border-radius: 15px;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(31, 143, 95, 0.22);
  border: 0;
  cursor: pointer;
}

.modern-edit-btn:hover {
  background: #0f5f3b;
}

.public-profile-label {
  display: block;
  margin-bottom: 7px;
  color: #0f7a4c;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.public-profile-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 8px;
}

.public-profile-meta .modern-username {
  margin: 0;
}

.modern-profile-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 2px;
}

.modern-profile-actions form {
  margin: 0;
}

.modern-profile-actions .button,
.modern-profile-actions form .modern-edit-btn {
  min-height: 44px;
  white-space: nowrap;
}

.public-relationship-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid #cfe7d6;
  border-radius: 13px;
}

.public-relationship-status.is-friend {
  color: #0b6840;
  background: #eef8f1;
}

/* STATS */

.modern-stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 30px 30px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2ebe3;
  border-radius: 22px;
}

.modern-stat-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 82px;
  padding: 16px 22px;
  border-right: 1px solid #e2ebe3;
}

.modern-stat-item:last-child {
  border-right: 0;
}

.modern-stat-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #0f7a4c;
  background: #eef8f1;
  border: 1px solid #cfe7d6;
  border-radius: 16px;
  font-size: 18px;
}

.modern-stat-item strong {
  display: block;
  color: #102018;
  font-size: 19px;
  line-height: 1.15;
}

.modern-stat-item small {
  display: block;
  margin-top: 4px;
  color: #7b8b82;
  font-size: 13px;
  font-weight: 800;
}

/* MAIN GRID */

.modern-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.1fr) minmax(330px, 1.35fr);
  gap: 20px;
  margin-top: 22px;
  align-items: stretch;
}

.modern-card {
  display: grid;
  align-content: start;
  gap: 16px;
  height: 100%;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #e2ebe3;
  border-radius: 26px;
  box-shadow: 0 14px 34px rgba(20, 48, 32, 0.06);
}

.profile-left-column {
  display: grid;
  gap: 20px;
  height: 100%;
  align-content: stretch;
}
.modern-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modern-card-title.between {
  justify-content: space-between;
}

.modern-card-title.between > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modern-card-title h3 {
  margin: 0;
  color: #102018;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.modern-card-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  color: #0f7a4c;
  background: #eef8f1;
  border: 1px solid #cfe7d6;
  border-radius: 999px;
  font-size: 15px;
}

.modern-card-text {
  margin: 0;
  color: #24362b;
  font-size: 15px;
  line-height: 1.75;
  white-space: pre-line;
}

.modern-muted {
  margin: -6px 0 0;
  color: #7b8b82;
  font-size: 14px;
}

/* ABOUT + SOCIALS */

.about-card {
  min-height: 0;
}

.about-text-box {
  display: grid;
  gap: 6px;
}

.about-toggle {
  display: none;
}

.about-text {
  display: -webkit-box;
  margin: 0;
  max-height: none;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.about-toggle:checked ~ .about-text {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.read-more-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 2px;
  color: #0f7a4c;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.read-more-link:hover {
  text-decoration: underline;
}

.read-more-close {
  display: none;
}

.about-toggle:checked ~ .read-more-link .read-more-open {
  display: none;
}

.about-toggle:checked ~ .read-more-link .read-more-close {
  display: inline;
}

.socials-card {
  min-height: 0;
  padding-bottom: 20px;
}

.socials-card .modern-card-title {
  margin-bottom: -4px;
}

.socials-card .modern-muted {
  margin: -8px 0 2px;
  color: #7b8b82;
}

.modern-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 2px;
}
.modern-social-icon.inactive {
  color: #e3e5e3;
  background: #f1f4f1;
  border: 1px solid #dce4dc;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.55;
}

.modern-social-icon.inactive:hover {
  transform: none;
  box-shadow: none;
}

.modern-social-icon.inactive i {
  color: #9aa59d;
}

/* BASIC INFO */

.modern-info-list {
  display: grid;
  gap: 0;
}

.modern-info-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #e8eee9;
}

.modern-info-row:last-child {
  border-bottom: 0;
}

.modern-info-row > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #0f7a4c;
  background: #f3faf5;
  border-radius: 12px;
  font-size: 16px;
}

.modern-info-row small {
  display: block;
  color: #7b8b82;
  font-size: 13px;
  font-weight: 900;
}

.modern-info-row strong {
  display: block;
  margin-top: 4px;
  color: #15251b;
  font-size: 15px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

/* FRIENDS */

.friend-requests-card {
  height: auto;
  margin-top: 22px;
}

.friend-request-count,
.friend-total {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 4px 10px;
  color: #0f6a43;
  background: #edf8f1;
  border: 1px solid #cfe7d6;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.friend-request-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.friend-request-section {
  min-width: 0;
  padding: 18px;
  background: #f8fbf9;
  border: 1px solid #e2ebe3;
  border-radius: 16px;
}

.friend-request-section h4 {
  margin: 0 0 14px;
  color: #24362b;
  font-size: 15px;
  font-weight: 600;
}

.friend-request-list {
  display: grid;
  gap: 10px;
}

.friend-request-item {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid #dce8df;
  border-radius: 12px;
}

.friend-request-person {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.friend-request-person:hover strong {
  color: #0f7a4c;
}

.friend-request-person img,
.friend-request-avatar {
  width: 54px;
  height: 54px;
  object-fit: cover;
  background: #edf8f1;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(18, 38, 28, 0.1);
}

.friend-request-avatar {
  display: grid;
  place-items: center;
  color: #0f6a43;
  font-weight: 600;
}

.friend-request-copy {
  display: grid;
  justify-items: start;
  gap: 3px;
  min-width: 0;
}

.friend-request-copy strong,
.friend-request-copy small,
.friend-request-bio {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.friend-request-copy strong {
  color: #15251b;
  font-size: 15px;
  white-space: nowrap;
}

.friend-request-copy small {
  color: #64756b;
  white-space: nowrap;
}

.friend-request-copy .people-role-badge,
.friend-request-copy .relationship-status {
  min-height: 24px;
  padding: 2px 8px;
  font-size: 11px;
}

.friend-request-bio {
  display: -webkit-box;
  margin-top: 3px;
  color: #64756b;
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.friend-request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.friend-request-actions form {
  margin: 0;
}

.friend-request-actions .button {
  min-height: 36px;
  padding: 7px 11px;
  font-size: 12px;
}

.friend-request-empty {
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 74px;
  padding: 14px;
  color: #64756b;
  background: #fff;
  border: 1px dashed #d5e4d9;
  border-radius: 12px;
  font-size: 14px;
}

.friend-request-empty i {
  color: #0f7a4c;
}

.friends-card {
  grid-row: span 1;
}

.modern-small-link {
  color: #0f7a4c;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.friend-count {
  margin: -8px 0 2px 50px;
  color: #7b8b82;
  font-size: 14px;
  font-weight: 800;
}

.friend-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 14px;
  padding-top: 4px;
  margin-top: 30px;
}

.friend-item {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  color: inherit;
  text-align: center;
  text-decoration: none;
}

.friend-item img,
.friend-avatar-fallback,
.more-friends div {
  width: 62px;
  height: 62px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: 0 10px 20px rgba(18, 38, 28, 0.14);
}

.friend-avatar-fallback {
  display: grid;
  place-items: center;
  color: #0f6a43;
  background: #edf8f1;
  font-weight: 600;
}

.friend-item span {
  max-width: 76px;
  overflow: hidden;
  color: #34443a;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.friend-item small {
  max-width: 86px;
  margin-top: -5px;
  overflow: hidden;
  color: #7b8b82;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.friend-item:hover > span:not(.friend-avatar-fallback) {
  color: #0f7a4c;
}

.friends-empty-state {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 8px 0 2px;
}

.friends-empty-state strong {
  color: #15251b;
}

.friends-empty-state p {
  margin: 0 0 4px;
  color: #64756b;
  line-height: 1.55;
}

.more-friends div {
  display: grid;
  place-items: center;
  color: #34443a;
  background: #f4f7f5;
  border: 1px solid #e2ebe3;
  font-weight: 900;
}

/* SOCIALS */



.modern-social-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #ffffff;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 22px rgba(18, 38, 28, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.modern-social-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(18, 38, 28, 0.18);
}

.modern-social-icon i {
  line-height: 1;
}

.modern-social-icon.website.active {
  background: #16834f;
}

.modern-social-icon.facebook.active {
  background: #1877f2;
}

.modern-social-icon.instagram.active {
  background: radial-gradient(circle at 30% 110%, #feda75 0%, #fa7e1e 28%, #d62976 55%, #962fbf 78%, #4f5bd5 100%);
  font-size: 20px;
}

.modern-social-icon.linkedin.active {
  background: #0a66c2;
}

.modern-social-icon.youtube.active {
  background: #ff0033;
  font-size: 17px;
}

.modern-social-icon.tiktok.active {
  background: #111111;
  font-size: 18px;
}

.modern-social-icon.inactive {
  color: #9aa59d;
  background: #f1f4f1;
  border: 1px solid #dce4dc;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.9;
}

.modern-social-icon.inactive:hover {
  transform: none;
  box-shadow: none;
}

.modern-social-icon.inactive i {
  color: #9aa59d;
}

/* LEARNING */

.learning-card {
  grid-column: 1 / -1;
  gap: 18px;
}

.instructor-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
  gap: 18px;
  min-width: 0;
}

.instructor-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
}

.instructor-info-grid > div {
  min-width: 0;
  padding: 15px;
  background: #f7faf8;
  border: 1px solid #e2ebe3;
  border-radius: 16px;
}

.instructor-info-grid dt {
  color: #7b8b82;
  font-size: 12px;
  font-weight: 700;
}

.instructor-info-grid dd {
  margin: 7px 0 0;
  color: #15251b;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.intro-video-card {
  overflow: hidden;
  min-height: 220px;
  background: #eef8f1;
  border: 1px solid #cfe7d6;
  border-radius: 18px;
}

.intro-video-card iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  border: 0;
}

.learning-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.72fr 0.72fr 1fr;
  gap: 16px;
}

.learning-goal-box > span,
.learning-mini-card > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #0f7a4c;
  background: #eef8f1;
  border: 1px solid #cfe7d6;
  border-radius: 14px;
  font-size: 18px;
}

.learning-goal-box {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
}

.learning-goal-box > span,
.learning-mini-card > span {
  color: #0f7a4c;
  font-size: 26px;
}

.learning-goal-box small,
.learning-mini-card small {
  display: block;
  color: #7b8b82;
  font-size: 13px;
  font-weight: 900;
}

.learning-goal-box p {
  margin: 6px 0 0;
  color: #25372c;
  font-size: 15px;
  line-height: 1.55;
}

.learning-mini-card {
  display: grid;
  align-content: start;
  gap: 8px;
}

.learning-mini-card strong {
  color: #102018;
  font-size: 19px;
  line-height: 1.2;
}

.language-icon {
  font-size: 18px !important;
}

.level-progress {
  display: flex;
  gap: 5px;
  margin-top: 6px;
}

.level-progress span {
  width: 23px;
  height: 7px;
  background: #e1e7e1;
  border-radius: 999px;
}

.level-progress span.filled {
  background: #1f8f5f;
}

.progress-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 4px 13px;
}

.progress-card .trophy-icon {
  grid-row: span 3;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  background: #eef8f1;
  border: 1px solid #cfe7d6;
  border-radius: 999px;
  font-size: 25px;
}

.progress-card p {
  margin: 0;
  color: #7b8b82;
  font-size: 13px;
  line-height: 1.42;
}

/* BOTTOM STATS */

.learning-bottom-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #e2ebe3;
  border-radius: 22px;
}

.learning-bottom-stats div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 4px 12px;
  padding: 17px;
  border-right: 1px solid #e2ebe3;
}

.learning-bottom-stats div:last-child {
  border-right: 0;
}

.learning-bottom-stats span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #0f7a4c;
  background: #eef8f1;
  border: 1px solid #cfe7d6;
  border-radius: 12px;
  font-size: 15px;
}

.learning-bottom-stats small {
  color: #7b8b82;
  font-size: 13px;
  font-weight: 900;
}

.learning-bottom-stats strong {
  color: #102018;
  font-size: 14px;
  overflow-wrap: anywhere;
}

/* RESPONSIVE */

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

  .friends-card {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .learning-layout {
    grid-template-columns: 1fr 1fr;
  }

  .learning-bottom-stats {
    grid-template-columns: 1fr 1fr;
  }

  .learning-bottom-stats div:nth-child(2) {
    border-right: 0;
  }

  .learning-bottom-stats div:nth-child(1),
  .learning-bottom-stats div:nth-child(2) {
    border-bottom: 1px solid #e2ebe3;
  }
}

@media (max-width: 820px) {
  .friend-request-columns {
    grid-template-columns: 1fr;
  }

  .modern-profile-main {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12px;
    padding: 0 22px 22px;
  }
  .modern-avatar-wrap {
    margin-top: -90px;
  }



  .modern-profile-intro h1 {
    font-size: 34px;
  }

  .modern-edit-btn {
    width: 100%;
  }

  .modern-profile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .modern-profile-actions > .modern-edit-btn,
  .modern-profile-actions > .public-relationship-status {
    grid-column: 1 / -1;
  }

  .modern-profile-actions form,
  .modern-profile-actions .button,
  .modern-profile-actions form .modern-edit-btn {
    width: 100%;
  }

  .instructor-detail-layout {
    grid-template-columns: 1fr;
  }

  .modern-stats-row {
    grid-template-columns: 1fr 1fr;
    margin: 0 22px 24px;
  }

  .modern-stat-item:nth-child(2) {
    border-right: 0;
  }

  .modern-stat-item:nth-child(1),
  .modern-stat-item:nth-child(2) {
    border-bottom: 1px solid #e2ebe3;
  }

  .modern-profile-grid,
  .learning-layout,
  .learning-bottom-stats {
    grid-template-columns: 1fr;
  }

  .learning-bottom-stats div,
  .learning-bottom-stats div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid #e2ebe3;
  }

  .learning-bottom-stats div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .modern-cover {
    height: 160px;
  }

  .modern-avatar {
    width: 112px;
    height: 112px;
    font-size: 30px;
  }

  .modern-profile-main {
    padding: 0 18px 20px;
  }

  .modern-stats-row {
    grid-template-columns: 1fr;
    margin: 0 18px 20px;
  }

  .modern-stat-item {
    border-right: 0;
    border-bottom: 1px solid #e2ebe3;
  }

  .modern-stat-item:last-child {
    border-bottom: 0;
  }

  .modern-card {
    padding: 19px;
    border-radius: 22px;
  }

  .friend-requests-card .modern-card-title.between {
    align-items: flex-start;
  }

  .friend-request-section {
    padding: 14px;
  }

  .friend-request-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .friend-request-actions .button,
  .friend-request-actions form {
    width: 100%;
  }

  .friend-request-item:not(.is-outgoing) .friend-request-actions form:last-child {
    grid-column: 1 / -1;
  }

  .friend-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .public-profile-meta {
    align-items: flex-start;
  }

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

  .modern-profile-actions > *,
  .modern-profile-actions > .modern-edit-btn,
  .modern-profile-actions > .public-relationship-status {
    grid-column: 1;
  }

  .instructor-info-grid {
    grid-template-columns: 1fr;
  }
}

.profile-social-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0; }
.profile-people-search { display: grid; grid-template-columns: auto minmax(180px, 360px) 38px; align-items: center; gap: 10px; flex: 1; max-width: 520px; min-height: 48px; padding: 4px 5px 4px 16px; background: #fff; border: 1px solid #dce8df; border-radius: 8px; box-shadow: 0 8px 24px rgba(22, 66, 43, 0.05); color: #197348; }
.profile-people-search input, .profile-people-search button { border: 0; background: transparent; }
.profile-people-search input { min-width: 0; padding: 8px 0; color: #183126; outline: 0; }
.profile-people-search button { width: 38px; height: 38px; border-radius: 6px; color: #fff; background: #168a55; cursor: pointer; }
.profile-social-action-button, .friends-more-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 16px; border: 1px solid #cfe3d6; border-radius: 8px; background: #fff; color: #176f46; font: inherit; font-weight: 500; cursor: pointer; }
.profile-social-action-button:hover, .friends-more-button:hover { background: #f2f9f5; border-color: #a9d2b9; }
.profile-notification-badge, .sidebar-notification-badge, .mobile-nav-notification-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #d92d20; color: #fff; font-size: 12px; font-weight: 700; line-height: 1; }
.friends-card-actions { display: flex; align-items: center; gap: 9px; }
.friends-more-button { min-height: 34px; padding: 0 12px; font-size: 13px; }
.profile-dialog { width: min(680px, calc(100vw - 32px)); max-width: none; max-height: min(760px, calc(100vh - 48px)); padding: 0; overflow: hidden; border: 1px solid #d8e6dc; border-radius: 8px; background: #fff; color: #183126; box-shadow: 0 26px 70px rgba(14, 44, 28, 0.2); }
.profile-dialog-wide { width: min(980px, calc(100vw - 32px)); }
.profile-dialog::backdrop { background: rgba(13, 35, 24, 0.46); backdrop-filter: blur(5px); }
body.profile-dialog-open { overflow: hidden; }
.profile-dialog-panel { display: flex; flex-direction: column; max-height: min(760px, calc(100vh - 48px)); }
.profile-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px 16px; border-bottom: 1px solid #e3ece6; }
.profile-dialog-header h2, .profile-dialog-header .eyebrow { margin: 0; }
.profile-dialog-header h2 { margin-top: 3px; font-size: 22px; }
.profile-dialog-close { flex: 0 0 38px; width: 38px; height: 38px; border: 1px solid #dce7df; border-radius: 50%; background: #f8fbf9; color: #294d3b; cursor: pointer; }
.profile-dialog-search { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; margin: 18px 22px 4px; padding-left: 14px; border: 1px solid #d9e6de; border-radius: 8px; color: #197348; }
.profile-dialog-search input { min-width: 0; padding: 13px 0; border: 0; outline: 0; }
.profile-dialog-search .button { min-height: 42px; margin: 4px; }
.profile-dialog-error { margin: 10px 22px 0; color: #b42318; }
.profile-dialog-scroll { min-height: 0; padding: 18px 22px 22px; overflow-y: auto; }
.profile-dialog-scroll.friend-request-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.profile-dialog-empty { display: grid; justify-items: center; gap: 8px; padding: 42px 20px; text-align: center; color: #64746b; }
.profile-dialog-empty.compact { padding: 26px 12px; }
.profile-dialog-empty > i { color: #238c5a; font-size: 28px; }
.profile-dialog-empty p { margin: 0; }
.profile-person-list { display: grid; gap: 10px; }
.profile-person-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px; border: 1px solid #e0e9e3; border-radius: 8px; background: #fbfdfb; }
.profile-person-main { display: flex; align-items: center; gap: 12px; min-width: 0; color: inherit; text-decoration: none; }
.profile-person-main > img, .profile-person-avatar { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%; object-fit: cover; }
.profile-person-avatar { display: grid; place-items: center; background: #e8f5ed; color: #167247; font-weight: 700; }
.profile-person-main > span:last-child { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 7px; min-width: 0; }
.profile-person-main strong, .profile-person-main small { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-person-main small { color: #6c7d73; }
.profile-person-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.profile-person-actions form { margin: 0; }

@media (max-width: 720px) {
  .profile-social-actions { align-items: stretch; flex-direction: column; }
  .profile-people-search, .profile-social-action-button { width: 100%; max-width: none; }
  .profile-dialog, .profile-dialog-wide { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
  .profile-dialog-panel { max-height: calc(100dvh - 20px); }
  .profile-dialog-header, .profile-dialog-scroll { padding-left: 16px; padding-right: 16px; }
  .profile-dialog-search { margin-left: 16px; margin-right: 16px; }
  .profile-dialog-scroll.friend-request-columns { grid-template-columns: 1fr; }
  .profile-person-row { align-items: stretch; flex-direction: column; }
  .profile-person-actions, .profile-person-actions .button, .profile-person-actions form, .profile-person-actions form .button { width: 100%; }
}
