.member-nav {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 5px 13px !important;
  border: 1px solid #dcded6;
  border-radius: 99px;
  background: #f7f8f3;
  color: #343d30 !important;
  font:
    550 13px/1.5 "Inter",
    "PingFang SC",
    "Microsoft YaHei",
    system-ui,
    sans-serif;
  white-space: nowrap;
  max-width: 180px;
  text-decoration: none;
}
.member-nav > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 115px;
}
.member-nav-avatar {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #e7ebdf;
  border-radius: 50%;
  overflow: hidden;
  font-size: 12px;
}
.member-nav-avatar img {
  width: 26px;
  height: 26px;
  object-fit: cover;
}
.member-nav:focus-visible {
  outline: 2px solid #35422e;
  outline-offset: 4px;
}
.member-nav:hover {
  background: #edf0e6;
}
@media (max-width: 480px) {
  .member-nav {
    padding: 3px 9px !important;
    font-size: 12px;
    max-width: 125px;
  }
  .member-nav > span:last-child {
    max-width: 75px;
  }
}
@media (max-width: 380px) {
  .member-nav .member-nav-avatar + span {
    display: none;
  }
}
.member-dialog {
  padding: 0;
  margin: auto;
  border: 1px solid #dedfd8;
  border-radius: 24px;
  background: #fafaf7;
  color: #1c211e;
  width: min(460px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  height: fit-content;
  max-height: calc(100dvh - 24px);
  box-sizing: border-box;
  overflow: hidden;
  box-shadow:
    0 24px 80px #17211626,
    0 4px 16px #1721160d;
}
.member-dialog[open] {
  animation: member-dialog-in 0.16s ease-out;
}
.member-dialog::backdrop {
  background: #18201966;
  backdrop-filter: blur(6px);
}
.member-dialog-heading {
  height: 64px;
  box-sizing: border-box;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font:
    650 11px/1.4 "Inter",
    "PingFang SC",
    "Microsoft YaHei",
    system-ui,
    sans-serif;
  letter-spacing: 0.1em;
}
.member-dialog-heading > span {
  display: flex;
  align-items: center;
  gap: 9px;
}
.member-dialog-heading img {
  width: 20px;
  height: 20px;
}
.member-dialog-heading button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  background: #eeefe9;
  color: #757c6e;
  border-radius: 50%;
  font: 24px/1 system-ui;
  cursor: pointer;
  letter-spacing: 0;
}
.member-dialog-heading button:hover {
  background: #e4e7dc;
  color: #2b3525;
}
.member-dialog-heading button:focus-visible {
  outline: 2px solid #35422e;
  outline-offset: 3px;
}
.member-dialog iframe {
  width: 100%;
  height: min(var(--member-frame-height, 460px), calc(100dvh - 104px));
  min-height: 0;
  border: 0;
  display: block;
  background: #fafaf7;
}
.admin-profile-button {
  display: block;
  margin: 10px 0;
  padding: 12px 14px;
  border: 1px solid #dcdfd4;
  border-radius: 10px;
  background: #f6f7f1;
  color: #3d4835;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
@keyframes member-dialog-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .member-dialog[open] {
    animation: none;
  }
}
