.profile-wrap {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 20px 18px 48px;
}

.profile-tabs {
  display: flex;
  gap: 8px;
  padding: 5px;
  margin: 0 auto 14px;
  background: var(--lfl-surface, #0b0b0b);
  border: 1px solid var(--lfl-border, rgba(255,255,255,.10));
  border-radius: 14px;
}

.profile-tab {
  flex: 1 1 0;
  min-width: 0;
  padding: 11px 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--lfl-muted, #aaa);
  font: inherit;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}

.profile-tab:hover {
  color: var(--lfl-text, #fff);
  background: var(--lfl-wash, rgba(255,255,255,.05));
}

.profile-tab.active {
  color: var(--lfl-text, #fff);
  background: var(--lfl-surface-soft, #1f1f1f);
  box-shadow: inset 0 0 0 1px var(--lfl-shadow-soft, rgba(255,255,255,.08));
}

.profile-panel[hidden] {
  display: none !important;
}

.cardish {
  background: var(--lfl-surface, #0f0f0f);
  border: 1px solid var(--lfl-border, rgba(255,255,255,.10));
  border-radius: 16px;
  padding: 18px;
  margin: 14px 0;
}

.profile-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at top right, var(--lfl-blue-wash, rgba(10,132,255,.16)), transparent 36%),
    var(--lfl-surface, #0f0f0f);
}

.profile-banner {
  display: block;
  width: calc(100% + 36px);
  height: auto;
  aspect-ratio: 3 / 1;
  margin: -18px -18px 16px;
  object-fit: cover;
  object-position: center;
  background: var(--lfl-wash, rgba(255,255,255,.04));
}

.profile-banner[hidden] {
  display: none !important;
}

.profile-nostr-details {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.profile-nostr-details[hidden] {
  display: none !important;
}

.profile-about {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.5;
}

.profile-nostr-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  font-size: .92rem;
}

.profile-nostr-links a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.profile-hero-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.profile-avatar-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.profile-avatar-shell,
.profile-avatar,
.profile-avatar-fallback {
  width: 92px;
  height: 92px;
  flex: 0 0 92px;
  border-radius: 50%;
}

.profile-avatar-shell {
  position: relative;
  overflow: hidden;
  border: 3px solid var(--lfl-border, rgba(255,255,255,.86));
  background: var(--lfl-surface-soft, #252525);
  box-shadow: 0 5px 20px var(--lfl-shadow, rgba(0,0,0,.32));
}

.profile-avatar {
  display: block;
  object-fit: cover;
}

.profile-avatar[hidden],
.profile-avatar-fallback[hidden] {
  display: none !important;
}

.profile-avatar-fallback {
  display: grid;
  place-items: center;
  color: var(--lfl-text, #ddd);
  font-size: 34px;
  font-weight: 900;
}

.profile-title-line {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.profile-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  object-fit: contain;
  image-rendering: auto;
}

.profile-icon[hidden] {
  display: none !important;
}

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

#pName {
  margin: 0;
  font-size: clamp(21px, 3.6vw, 30px);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.profile-meta-actions {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.profile-location-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
  color: var(--lfl-text, #ddd);
  font-size: 14px;
}

.profile-meta-value {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
}

.profile-nip05-meta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.profile-nip05-meta[hidden] {
  display: none !important;
}

.profile-nostr-address-badge {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: var(--lfl-purple-solid, #8d35d1);
  color: var(--lfl-on-accent, #fff);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  box-shadow:
    inset 0 0 0 1px var(--lfl-shadow-soft, rgba(255,255,255,.18)),
    0 0 8px rgba(141,53,209,.25);
}

.profile-lightning-inline {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--lfl-text, #eee);
}

.profile-dot {
  opacity: .45;
}

.profile-zap {
  color: var(--lfl-amber-text, #ffd65a);
}

.profile-hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.profile-voice-status {
  display: inline-flex;
  align-items: center;
  min-height: 35px;
  padding: 7px 10px;
  border: 1px solid var(--lfl-border, rgba(255,255,255,.12));
  border-radius: 999px;
  background: var(--lfl-wash, rgba(255,255,255,.045));
  color: var(--lfl-muted, #aaa);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

#pVoice {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.profile-voice-icon {
  line-height: 1;
}

.profile-voice-on {
  border-color: var(--lfl-green-border, rgba(52,199,89,.35));
  background: var(--lfl-green-wash, rgba(52,199,89,.10));
  color: var(--lfl-green-text, #9be6ad);
}

.profile-voice-off {
  color: var(--lfl-muted, #888);
}

.profile-client-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.profile-presence-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  margin-top: 10px;
}

.profile-presence-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
  color: var(--lfl-muted, #aaa);
  font-size: 13px;
}

.profile-presence-line strong {
  color: var(--lfl-text, #eee);
  font-weight: 700;
}

.profile-detail {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--lfl-border, rgba(255,255,255,.08));
  border-radius: 12px;
  background: var(--lfl-wash, rgba(255,255,255,.035));
}

.profile-detail-label {
  display: block;
  margin-bottom: 5px;
  color: var(--lfl-muted, #888);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.profile-detail code,
.identity-details code {
  display: block;
  max-width: 100%;
  color: var(--lfl-text, #eee);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.profile-gender-value {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--lfl-text, #eee);
  font-size: 13px;
}

.profile-gender-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #393838;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}

.profile-gender-male { background: #4da3ff; }
.profile-gender-female { background: #ff2a8d; }
.profile-gender-trans_male,
.profile-gender-trans_female { background: #9e00ad; }
.profile-gender-other { background: #9e0404; }
.profile-gender-prefer_not_to_say { background: #8b5a2b; }
.profile-gender-not_set { background: #393838; }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--lfl-border, rgba(255,255,255,.15));
  border-radius: 999px;
  background: var(--lfl-wash, rgba(255,255,255,.06));
  color: var(--lfl-text, #fff);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.pill:hover {
  opacity: 1;
  background: var(--lfl-wash, rgba(255,255,255,.11));
}

.pill-primary {
  border-color: var(--lfl-blue-border, rgba(10,132,255,.65));
  background: var(--lfl-blue-wash, rgba(10,132,255,.22));
}

.pill-primary:hover {
  background: var(--lfl-blue-wash, rgba(10,132,255,.34));
}

.profile-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.profile-network-card {
  padding: 14px 16px 12px;
}

.profile-media-card {
  padding: 10px;
}

.profile-picture-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: 6px;
}

.profile-picture-bubble {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--lfl-border, rgba(255,255,255,.14));
  border-radius: 14px;
  background:
    radial-gradient(circle at 36% 30%, var(--lfl-wash, rgba(255,255,255,.09)), transparent 46%),
    var(--lfl-surface, #171717);
  color: var(--lfl-muted, #666);
  font-size: 20px;
  font-weight: 900;
  text-decoration: none;
  cursor: default;
  user-select: none;
}

.profile-picture-bubble.is-linked {
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.profile-picture-bubble.is-linked:hover,
.profile-picture-bubble.is-linked:focus-visible {
  z-index: 1;
  border-color: var(--lfl-border, rgba(255,255,255,.42));
  box-shadow: 0 6px 18px var(--lfl-shadow, rgba(0,0,0,.30));
  transform: translateY(-2px);
  outline: none;
}

.profile-picture-bubble img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  pointer-events: none;
}

.profile-picture-bubble img[hidden] {
  display: none !important;
}

.profile-picture-bubble > span {
  grid-area: 1 / 1;
}

.profile-picture-bubble > span[hidden] {
  display: none !important;
}

.profile-media-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 9px;
}

.profile-media-footer .pill {
  min-width: 130px;
}

.profile-network-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.profile-network-stat {
  background: var(--lfl-wash, rgba(255,255,255,.025));
}

.profile-network-footer {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 9px;
}

.profile-stat {
  min-width: 0;
  padding: 14px 10px;
  text-align: center;
  border: 1px solid var(--lfl-border, rgba(255,255,255,.09));
  border-radius: 14px;
  background: var(--lfl-surface, #101010);
}

.profile-stat strong {
  display: block;
  margin-bottom: 5px;
  font-size: 22px;
  line-height: 1;
}

.profile-stat > span {
  color: var(--lfl-muted, #aaa);
  font-size: 12px;
  white-space: nowrap;
}

.profile-quote-icon {
  display: inline-grid;
  place-items: center;
  width: 1.2em;
  height: 1.2em;
  border: 1px solid var(--lfl-blue-border, rgba(77, 163, 255, .72));
  border-radius: 4px;
  background: var(--lfl-blue-wash, rgba(33, 150, 243, .42));
  color: var(--lfl-text, #eef8ff);
  font-size: .9em;
  font-weight: 800;
  line-height: 1;
  vertical-align: -.08em;
}

.profile-zap-stats {
  margin: 0 0 14px;
}

.profile-stat-grid-zaps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.profile-stat-zap strong {
  font-size: 20px;
}

.profile-stat-zap .sats-symbol {
  color: var(--lfl-amber-text, #f7931a);
  font-weight: 800;
  margin-right: 2px;
}

.profile-zap-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.profile-zap-footer .pill {
  min-width: 150px;
  justify-content: center;
  margin-left: auto;
}

.profile-stats-note {
  margin: 0 2px;
  color: var(--lfl-muted, #777);
  font-size: 11px;
  text-align: left;
}

.section-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.section-heading-row h2 {
  margin: 0;
  text-align: left;
  font-size: 20px;
}

.section-heading-row p {
  margin: 6px 0 0;
  color: var(--lfl-muted, #999);
  font-size: 13px;
  line-height: 1.4;
}

.heading-count {
  color: var(--lfl-muted, #999);
  font-size: .72em;
  font-weight: 700;
}

.profile-status {
  padding: 16px 0 4px;
  color: var(--lfl-muted, #999);
  font-size: 13px;
}

.guest-notes-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.guest-note-item {
  padding: 13px;
  border: 1px solid var(--lfl-border, rgba(255,255,255,.09));
  border-radius: 13px;
  background: var(--lfl-wash, rgba(255,255,255,.035));
}

.guest-note-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}

.guest-note-avatar,
.guest-note-avatar-fallback {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  border: 1px solid var(--lfl-border, rgba(255,255,255,.14));
  background: var(--lfl-surface-soft, #222);
}

.guest-note-avatar {
  object-fit: cover;
}

.guest-note-avatar-fallback {
  display: grid;
  place-items: center;
  line-height: 1;
  color: var(--lfl-text, #ddd);
  font-weight: 900;
}

.guest-note-author-block {
  min-width: 0;
  flex: 1;
}

.guest-note-author {
  display: inline-block;
  max-width: 100%;
  color: var(--lfl-text, #fff);
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}

a.guest-note-author:hover {
  text-decoration: underline;
}

.guest-note-time {
  margin-top: 2px;
  color: var(--lfl-muted, #888);
  font-size: 12px;
}

.guest-note-body {
  color: var(--lfl-text, #eee);
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.guest-note-empty {
  padding: 20px 14px;
  text-align: center;
  color: var(--lfl-muted, #aaa);
  border: 1px dashed var(--lfl-border, rgba(255,255,255,.14));
  border-radius: 13px;
}

.guest-note-actions {
  justify-content: flex-end;
  margin-top: 14px;
}

.instance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.instance-item {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--lfl-border, rgba(255,255,255,.08));
  border-radius: 12px;
  background: var(--lfl-wash, rgba(255,255,255,.03));
}

.instance-item span,
.identity-details span {
  display: block;
  margin-bottom: 5px;
  color: var(--lfl-muted, #858585);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.instance-item strong {
  display: block;
  color: var(--lfl-text, #eee);
  font-size: 14px;
  overflow-wrap: anywhere;
}


.cron-health-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--lfl-border, rgba(255,255,255,.08));
}

.cron-health-heading h3 {
  margin: 0;
  font-size: 17px;
}

.cron-health-heading p {
  margin: 5px 0 0;
  color: var(--lfl-muted, #8f8f8f);
  font-size: 12px;
  line-height: 1.45;
}

.cron-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.cron-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--lfl-border, rgba(255,255,255,.09));
  border-radius: 13px;
  background: var(--lfl-wash, rgba(255,255,255,.03));
}

.cron-card.cron-good {
  border-color: var(--lfl-green-border, rgba(50,205,90,.30));
  background: var(--lfl-green-wash, rgba(50,205,90,.055));
}

.cron-card.cron-warning {
  border-color: var(--lfl-amber-border, rgba(255,193,7,.30));
  background: var(--lfl-amber-wash, rgba(255,193,7,.05));
}

.cron-card.cron-bad {
  border-color: var(--lfl-red-border, rgba(255,75,75,.30));
  background: var(--lfl-red-wash, rgba(255,75,75,.05));
}

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

.cron-card-head > strong {
  font-size: 14px;
  line-height: 1.3;
}

.cron-card p {
  min-height: 34px;
  margin: 8px 0;
  color: var(--lfl-muted, #999);
  font-size: 12px;
  line-height: 1.4;
}

.cron-last {
  color: var(--lfl-muted, #888);
  font-size: 12px;
}

.cron-last strong {
  color: var(--lfl-text, #ccc);
  font-weight: 700;
}

.identity-details {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--lfl-border, rgba(255,255,255,.08));
}

.health-pill {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--lfl-border, rgba(255,255,255,.12));
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.health-good {
  color: var(--lfl-green-text, #8ff0a4);
  border-color: var(--lfl-green-border, rgba(50,205,90,.4));
  background: var(--lfl-green-wash, rgba(50,205,90,.1));
}

.health-warning {
  color: var(--lfl-amber-text, #ffd166);
  border-color: var(--lfl-amber-border, rgba(255,193,7,.4));
  background: var(--lfl-amber-wash, rgba(255,193,7,.1));
}

.health-bad {
  color: var(--lfl-red-text, #ff8f8f);
  border-color: var(--lfl-red-border, rgba(255,75,75,.4));
  background: var(--lfl-red-wash, rgba(255,75,75,.1));
}

.health-unknown {
  color: var(--lfl-muted, #aaa);
  background: var(--lfl-wash, rgba(255,255,255,.05));
}

.technical-heading {
  align-items: center;
}

.technical-details {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--lfl-border, rgba(255,255,255,.08));
}

.technical-details[hidden] {
  display: none !important;
}

.kv {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 10px 14px;
}

.k {
  color: var(--lfl-muted, #999);
}

.v,
.v code {
  min-width: 0;
  overflow-wrap: anywhere;
}

.kv-meta {
  margin-left: 8px;
  color: var(--lfl-muted, #888);
  font-size: 13px;
}

.technical-subheading {
  margin-top: 18px;
  color: var(--lfl-muted, #bbb);
  font-size: 13px;
  font-weight: 800;
}

.kind-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 9px;
  margin-top: 9px;
}

.kind-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--lfl-border, rgba(255,255,255,.09));
  border-radius: 11px;
  background: var(--lfl-wash, rgba(255,255,255,.035));
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
}

.db-scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.db-scope-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--lfl-border, rgba(255,255,255,.1));
  border-radius: 13px;
  background: var(--lfl-wash, rgba(255,255,255,.025));
}

.db-scope-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.db-scope-card > p {
  min-height: 38px;
  margin: 0 0 12px;
  color: var(--lfl-muted, #999);
  font-size: 12px;
  line-height: 1.45;
}

.db-scope-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--lfl-blue-wash, rgba(10,132,255,.09));
}

.db-scope-total strong {
  color: var(--lfl-text, #fff);
  font-size: 18px;
}

.db-scope-total span {
  color: var(--lfl-blue-text, #9bcaff);
  font-size: 12px;
}

.db-scope-split {
  display: grid;
  gap: 5px;
  margin: 0 0 9px;
  color: var(--lfl-muted, #bbb);
  font-size: 12px;
}

.db-scope-split span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.db-scope-split strong {
  color: var(--lfl-text, #fff);
}

.db-scope-kind-title {
  margin-top: 13px;
  color: var(--lfl-muted, #aaa);
  font-size: 12px;
  font-weight: 800;
}

.db-scope-card .kind-grid {
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
}

.small {
  color: var(--lfl-muted, #999);
  font-size: 13px;
}

.technical-note {
  margin: 14px 0 0;
  line-height: 1.45;
}


@media (max-width: 760px) {
  .profile-hero-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
  }

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

  .profile-hero-actions {
    width: auto;
    min-width: 0;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .profile-zap {
    min-width: 35px;
    padding-left: 8px;
    padding-right: 8px;
    justify-content: center;
  }

  .profile-zap-label {
    display: none;
  }
}
@media (max-width: 760px) {
  .db-scope-grid {
    grid-template-columns: 1fr;
  }

  .profile-network-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-network-stat > span {
    white-space: normal;
    overflow-wrap: anywhere;
  }

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

  .profile-stat-grid-zaps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .instance-grid,
  .cron-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .profile-wrap {
    padding: 14px 10px 38px;
  }

  .profile-tab {
    padding: 10px 8px;
    font-size: 12.5px;
  }

  .cardish {
    padding: 14px;
    border-radius: 14px;
  }

  .profile-banner {
    width: calc(100% + 28px);
    margin: -14px -14px 14px;
  }

  .profile-hero-main {
    align-items: center;
    gap: 8px;
  }

  .profile-avatar-identity {
    gap: 11px;
  }

  .profile-avatar-shell,
  .profile-avatar,
  .profile-avatar-fallback {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
  }

  .profile-avatar-shell {
    border-width: 2px;
  }

  .profile-avatar-fallback {
    font-size: 27px;
  }

  .profile-icon {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }

  .profile-identity {
    width: auto;
    flex: 1 1 auto;
  }

  #pName {
    overflow: hidden;
    overflow-wrap: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .profile-meta-actions {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 9px 12px;
  }

  .profile-hero-actions {
    width: auto;
    flex: 0 0 auto;
    justify-content: flex-end;
  }

  .profile-voice-status {
    min-width: 35px;
    padding: 7px 8px;
    justify-content: center;
  }

  .profile-voice-label {
    display: none;
  }

  .profile-location-line .profile-dot {
    display: none;
  }

  .profile-client-actions {
    justify-content: flex-end;
  }

  .profile-presence-actions {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .profile-presence-line {
    flex: 1 1 100%;
  }

  .profile-client-actions {
    width: 100%;
  }

  .guest-note-actions {
    justify-content: stretch;
  }

  .guest-note-actions .pill {
    flex: 1 1 100%;
  }

  .profile-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-picture-grid {
    gap: 4px;
  }

  .profile-picture-bubble {
    width: 100%;
    border-width: 1px;
    border-radius: 9px;
    font-size: 15px;
  }

  .profile-picture-bubble img {
    border-radius: 8px;
  }

  .section-heading-row {
    flex-direction: column;
  }

  .guest-note-leave-top {
    width: 100%;
  }

  .health-pill {
    align-self: flex-start;
  }

  .technical-heading {
    align-items: stretch;
  }

  .technical-heading .pill {
    width: 100%;
  }

  .kv {
    grid-template-columns: 1fr;
    gap: 3px 0;
  }

  .kv .v {
    margin-bottom: 9px;
  }

  .kv-meta {
    display: block;
    margin: 3px 0 0;
  }
}

.profile-relays { grid-column: 1 / -1; }
.profile-relays h3 { margin: 0; font-size: 16px; }
.profile-relays p { margin: 8px 0; color: var(--lfl-muted, #aaa); font-size: 13px; }
#profileRelayGroups { display: grid; gap: 8px; margin: 14px 0; }
.profile-relays-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.profile-relay-group { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px; padding: 10px; border-radius: 10px; background: var(--lfl-wash, rgba(255,255,255,.03)); border: 1px solid var(--lfl-border, rgba(255,255,255,.08)); }
.profile-relay-group summary { cursor: pointer; padding: 7px 0; font-weight: 600; font-size: 14px; color: var(--lfl-text, #eee); overflow-wrap: anywhere; }
.profile-relay-group ul { list-style: none; padding: 0; margin: 8px 0 0; }
.profile-relay-group li { font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; user-select: text; }
.profile-relay-copy { padding: 7px 11px; border-radius: 8px; border: 1px solid var(--lfl-blue-border, #317cc7); background: var(--lfl-blue-soft, rgba(33,150,243,.14)); color: var(--lfl-blue-text, #75baff); font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.profile-relay-copy:disabled { opacity: .5; cursor: default; }
.profile-relay-copy:focus-visible, .profile-relay-group summary:focus-visible { outline: 2px solid var(--lfl-blue-solid, #168cff); outline-offset: 3px; }
:root[data-lfl-theme="light"] .profile-relay-copy { background: var(--lfl-action-bg, #e5effc); color: var(--lfl-action-ink, #22588c); border-color: transparent; }
#profileRelayCopyStatus:empty { display: none; }
