.profile-shell {
  display: grid;
  gap: 22px;
}

.profile-hero {
  display: flex;
  gap: 24px;
  align-items: center;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-label {
  color: var(--blue);
  font-weight: 800;
  font-size: 0.85rem;
}

.profile-main h2 {
  margin: 4px 0 2px;
  font-size: 2.2rem;
}

.profile-main > p {
  color: var(--muted);
  margin-bottom: 18px;
}

.profile-contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.profile-contact-grid div {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: #f9fafb;
}

.profile-contact-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 4px;
}

.profile-contact-grid strong {
  font-size: 0.95rem;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 22px;
  align-items: start;
}

.panel-subtitle {
  color: var(--muted);
  margin-bottom: 18px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.module-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #f9fafb;
  color: var(--text);
  text-decoration: none;
  transition: 0.18s ease;
}

.module-card:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
  box-shadow: var(--shadow);
}

.module-card strong {
  font-size: 1rem;
}

.module-card span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.side-stack {
  display: grid;
  gap: 18px;
}

.person-list {
  display: grid;
  gap: 12px;
}

.person-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f9fafb;
}

.person-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--blue);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.person-card strong,
.person-card span {
  display: block;
}

.person-card span {
  color: var(--muted);
  font-size: 0.85rem;
}

.project-access-list {
  display: grid;
  gap: 10px;
}

.project-access-list span {
  padding: 10px 12px;
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .profile-contact-grid,
  .module-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 700px) {
  .profile-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-contact-grid,
  .module-grid {
    grid-template-columns: 1fr;
  }
}