.header-profile {
  flex: 0 0 auto;
  overflow: hidden;
  border-color: #f2cc6582;
  border-radius: 50%;
  color: #ffda69;
  background: #ffd26416;
}
.header-profile:hover, .header-profile:focus-visible {
  border-color: #ffe398;
  color: #fff0b2;
  background: #ffd2642c;
}
.header-profile .menu-icon { font-size: 23px; }
.profile-trigger-avatar {
  border-radius: 50%;
  object-fit: cover;
}
.header-profile .profile-trigger-avatar { width: 28px; height: 28px; }
.account-identity .profile-trigger-avatar {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border: 2px solid #d4efff;
  background: #276eab;
  box-shadow: 0 0 0 1px #ffc961d4, 0 3px 9px #04172e96;
}

.member-dialog {
  width: min(480px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 20px 24px 17px;
  overflow: auto;
  border: 1px solid #5486b876;
  border-radius: 17px;
  color: #edf6ff;
  background: linear-gradient(155deg, #172f51, #0c1c33 52%, #101f36);
  box-shadow: 0 20px 60px #020b1cb3, inset 0 1px #b5defc21;
  color-scheme: dark;
}
.member-dialog::backdrop { background: #050f24b5; }
.member-dialog--avatars { width: min(530px, calc(100% - 24px)); }
.member-dialog--avatars::backdrop { background: #030c1f91; }
.member-dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}
.member-dialog-heading h2 {
  margin: 0;
  padding: 0;
  color: #ffda78;
  font-size: 23px;
}
.member-dialog-close {
  display: grid;
  flex: 0 0 32px;
  place-items: center;
  height: 32px;
  padding: 0;
  border: 1px solid #7e9dbb70;
  border-radius: 50%;
  color: #edf6ff;
  background: #abc6e412;
  font-size: 22px;
  line-height: 1;
}
.member-dialog-close:hover { background: #abc6e43a; }
.member-dialog :focus-visible { outline: 2px solid #ffde83; outline-offset: 2px; }
.member-avatar {
  position: relative;
  width: fit-content;
  margin: 3px auto 14px;
}
.member-avatar img {
  border: 2px solid #9dd3ff;
  border-radius: 50%;
  background: #1f5689;
  box-shadow: 0 4px 16px #07152e80;
}
.member-avatar-edit {
  position: absolute;
  right: -3px;
  bottom: -1px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 2px solid #badaf6;
  border-radius: 50%;
  color: #0f3863;
  background: #e8f5ff;
}
.member-avatar-edit:hover { background: #ffde83; border-color: #ffedb9; }
.member-camera {
  position: relative;
  width: 15px;
  height: 11px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}
.member-camera::before, .member-camera::after { position: absolute; content: ""; }
.member-camera::before {
  top: -4px;
  left: 3px;
  width: 6px;
  height: 4px;
  border: 1.5px solid currentColor;
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
}
.member-camera::after { inset: 1px 2.5px; border: 1px solid currentColor; border-radius: 50%; }
.member-profile-form { display: grid; gap: 11px; }
.member-recent { min-width: 0; margin-top: 4px; padding: 14px; border: 1px solid #719bc347; border-radius: 17px; background: linear-gradient(135deg,#16436a73,#102d4d66); }
.member-recent-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.member-recent-heading h3 { display: flex; align-items: center; gap: 6px; margin: 0; color: #e7f4ff; font-size: 14px; }
.member-recent-heading .menu-icon { color: #95d7ff; font-size: 18px; }
.member-recent-heading > span { flex: 0 0 auto; padding: 3px 8px; border: 1px solid #8cc4ea38; border-radius: 20px; color: #b8dbf5; background: #a5dbff0d; font-size: 12px; }
.member-recent-empty { margin: 14px 0 3px; padding: 18px 9px; border: 1px dashed #8bc4ec38; border-radius: 11px; color: #98b4cf; font-size: 13px; text-align: center; }
.member-recent-list { display: grid; gap: 8px; max-height: 280px; margin: 13px 0 0; padding: 0; overflow: auto; list-style: none; scrollbar-width: thin; }
.member-recent-list[hidden],.member-recent-empty[hidden] { display: none; }
.member-recent-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 1px solid #86badd70; border-radius: 12px; color: #d0e7f9; background: linear-gradient(150deg,#214f74,#102c4c); text-align: left; }
.member-recent-item img { flex: 0 0 64px; width: 64px; height: 64px; object-fit: contain; border: 1px solid #c0a35a; border-radius: 10px; background: linear-gradient(#edf8ff,#bfdcf1); }
.member-recent-item span { min-width: 0; }
.member-recent-item strong { display: block; color: #e9f6ff; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.member-recent-item time { display: block; margin-top: 3px; color: #9ab9d2; font-size: 12px; line-height: 1.4; }
.member-recent-item:hover { border-color: #b3e8ff; background: #23547d; }
.member-recent-item:focus-visible { outline: 2px solid #95d9ff; outline-offset: 2px; }
.member-recent-note { margin: 10px 0 0; color: #87a7c3; font-size: 11px; text-align: center; }
@media (max-width: 440px) { .member-recent { padding: 12px; } .member-recent-item img { flex-basis: 56px; width: 56px; height: 56px; } }
.member-field {
  display: grid;
  min-width: 0;
  gap: 5px;
  color: #d3e5f9;
  font-size: 13px;
  font-weight: 700;
}
.member-field-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.member-phone-status {
  padding: 1px 7px;
  border: 1px solid #d4a67a73;
  border-radius: 999px;
  color: #f3cba7;
  background: #a9663734;
  font-size: 10px;
}
.member-field input, .member-dialog .member-tier {
  width: 100%;
  min-width: 0;
  min-height: 39px;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid #829fbf5c;
  border-radius: 20px;
  color: #f1f7ff;
  background: #c4ddff0d;
  font: inherit;
  font-weight: 500;
}
.member-field input:not([readonly]) {
  border-color: #79bef1;
  background: #25548054;
}
.member-field input::placeholder { color: #a3b9d2; }
.member-copy-field { position: relative; }
.member-copy-field input { padding-inline-end: 75px; }
.member-copy-field button {
  position: absolute;
  inset: 4px 4px 4px auto;
  padding-inline: 8px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: #bfdcff;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}
.member-copy-field button:hover { border-color: #8abce97a; background: #b5d9fb19; }
.member-dialog .member-tier { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.member-tier .menu-icon { color: #f2cc75; font-size: 18px; }
.member-form-actions { display: flex; gap: 8px; margin-top: 2px; }
.member-primary, .member-secondary {
  min-height: 42px;
  padding: 6px 13px;
  border: 1px solid #ffdc70;
  border-radius: 22px;
  color: #32230b;
  background: linear-gradient(#ffebaa, #ffc94a 63%, #eeb036);
  font: inherit;
  font-weight: 750;
}
.member-primary { flex: 1 1 auto; width: 100%; }
.member-primary:hover { background: linear-gradient(#fff2c3, #ffd467 73%, #f0be4f); }
.member-secondary {
  flex: 0 0 auto;
  border-color: #7099bf;
  color: #e3effe;
  background: #b4d6fa16;
}
.member-secondary:hover { background: #b4d6fa2c; }
.member-dialog .member-status { margin: 0; color: #bdcfe7; font-size: 11px; text-align: center; }
.member-signout {
  display: block;
  min-height: 32px;
  margin: 9px auto -5px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  color: #dbebfe;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}
.member-signout:hover { background: #a7d3ff1a; }

.member-avatar-options {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
  min-width: 0;
  margin: 0 0 15px;
  padding: 8px 0;
  border: 0;
}
.member-avatar-option { position: relative; display: block; }
.member-avatar-option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.member-avatar-option img {
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  border: 2px solid #93bbdf71;
  border-radius: 50%;
  background: #113760;
  object-fit: cover;
}
.member-avatar-option input:hover + img { border-color: #bde7ff; }
.member-avatar-option input:checked + img {
  border-color: #ffde83;
  box-shadow: 0 0 0 2px #ffcf595a;
}
.member-avatar-option input:focus-visible + img { outline: 2px solid #ffde83; outline-offset: 2px; }

@media (max-width: 620px) {
  .header-actions { gap: 6px; }
  .header-profile { width: 31px; height: 31px; }
  .header-profile .profile-trigger-avatar { width: 25px; height: 25px; }
}
@media (max-width: 380px) {
  .member-dialog { padding-inline: 13px; }
  .member-dialog--avatars { width: calc(100% - 16px); padding-inline: 9px; }
  .member-avatar-options { gap: 4px; }
}
