@layer profile {
  .profile-banner {
    overflow: hidden;
    margin-bottom: 24px;
    padding: 0;
  }
  .profile-cover {
    height: 190px;
    position: relative;
    background:
      radial-gradient(ellipse at 75% 15%, #174180, transparent 65%),
      linear-gradient(115deg, #071425, #12223e);
  }
  .profile-cover > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .profile-cover-label {
    position: absolute;
    top: 24px;
    left: 28px;
    font-size: 10px;
    letter-spacing: 2px;
    color: #dbeafe;
    text-shadow: 0 1px 8px #000;
  }
  .profile-identity {
    padding: 0 28px 28px;
    display: flex;
    gap: 22px;
    align-items: center;
  }
  .profile-avatar {
    width: 104px;
    height: 104px;
    flex-shrink: 0;
    margin-top: -24px;
    border: 5px solid #0b1220;
    border-radius: 24px;
    background: #19355f;
    display: grid;
    place-items: center;
    overflow: hidden;
    position: relative;
    font-size: 36px;
    color: #bfdbfe;
  }
  .profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .profile-identity h2 {
    margin: 18px 0 2px;
    font-size: 24px;
    overflow-wrap: anywhere;
  }
  .profile-identity p,
  .profile-identity small {
    color: #9ca3af;
    margin: 0;
    overflow-wrap: anywhere;
  }
  .profile-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 24px;
  }
  .profile-columns > * {
    min-width: 0;
  }
  .profile-columns .form-panel {
    margin-bottom: 24px;
    max-width: none;
  }
  .profile-columns .form-panel > p {
    font-size: 13px;
    margin-bottom: 22px;
  }
  .image-upload {
    padding-top: 18px;
    border-top: 1px solid var(--line);
    margin-top: 18px;
  }
  .image-upload input[type="file"] {
    padding: 10px;
    width: 100%;
    height: auto;
    font-size: 12px;
  }
  .image-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 12px;
  }
  .profile-columns .form-footer {
    flex-wrap: wrap;
    gap: 14px;
  }
  .onboarding-panel {
    max-width: 660px;
  }
  .onboarding-center .auth-intro {
    display: none;
  }
  .onboarding-panel fieldset {
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
  }
  .onboarding-panel legend {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
  }
  .onboarding-panel .form-grid {
    gap: 0 18px;
  }
  .onboarding-panel .onboarding-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    justify-content: space-between;
  }
  .onboarding-panel textarea {
    min-height: 74px;
  }
  .onboarding-panel .invite-note {
    display: none;
  }
  .onboarding-panel .step-label {
    font-size: 11px;
    color: #93c5fd;
    letter-spacing: 1px;
    margin-bottom: 15px;
  }
  @media (max-width: 1100px) {
    .profile-columns {
      grid-template-columns: 1fr;
    }
  }
  @media (max-width: 600px) {
    .profile-cover {
      height: 130px;
    }
    .profile-identity {
      padding: 0 18px 20px;
      gap: 14px;
    }
    .profile-avatar {
      width: 76px;
      height: 76px;
      border-radius: 18px;
    }
    .profile-identity h2 {
      font-size: 20px;
    }
    .profile-identity small {
      font-size: 11px;
    }
    .profile-columns {
      gap: 0;
    }
    .onboarding-panel .form-grid {
      grid-template-columns: 1fr;
    }
  }
}

@layer profile {
  .profile-columns form > label {
    margin-bottom: 16px;
  }
}
