dialog {
  width: min(700px, calc(100% - 30px));
  max-height: calc(100vh - 40px);
  overflow: auto;
}

.welcome { color: var(--brown); font-size: 14px; font-weight: 700; }

#profileIdentity {
  display: flex;
  gap: 18px;
  align-items: start;
  padding: 18px;
  background: var(--cream);
  margin-bottom: 28px;
}

.profile-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.profile-details { display: grid; gap: 12px; min-width: 0; }
.profile-details span, .profile-details strong { display: block; }
.profile-details span { color: #777; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 3px; }
.profile-details .subject { font-family: monospace; font-size: 12px; overflow-wrap: anywhere; }
.profile-details .verified { display: inline-block; background: #d7eee1; color: var(--green); padding: 2px 5px; margin-left: 5px; }
.profile-package-section { margin-top: 24px; }
.profile-package-section h3 { display: flex; justify-content: space-between; border-bottom: 2px solid var(--brown); padding-bottom: 8px; }
.profile-package-section h3 span { background: var(--gold); border-radius: 12px; padding: 2px 8px; font-size: 13px; }
.profile-package { display: flex; justify-content: space-between; gap: 15px; padding: 13px 5px; border-bottom: 1px solid #ddd; }
.profile-package small { display: block; color: #777; margin-top: 3px; }
.profile-package > span { color: var(--green); font-weight: 700; text-align: right; }
.profile-empty { color: #777; }

@media (max-width: 900px) {
  .welcome { display: none; }
  #profileIdentity { display: block; }
  .profile-photo { margin-bottom: 14px; }
}
