/* 官网登入 — 对齐 client pmAuthOverlay + user-center-auth + userAuthModal */

.mj-auth-overlay,
.pm-auth-overlay {
  position: fixed;
  top: var(--mj-nav-h, 64px);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #e4ddd4;
  border: none;
  box-shadow: inset 0 12px 32px rgba(0, 0, 0, 0.06);
}

.mj-auth-overlay[hidden],
.pm-auth-overlay[hidden] {
  display: none !important;
}

.mj-auth-overlay__host,
.pm-auth-overlay__host {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.mj-auth-overlay__close,
.pm-auth-overlay__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 10;
  border: 1px solid #c4b5a0;
  border-radius: 8px;
  background: #faf6ee;
  color: #6d5e4c;
  width: 2.15rem;
  height: 2.15rem;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(40, 28, 16, 0.12);
}

.mj-auth-overlay__close:hover,
.pm-auth-overlay__close:hover {
  color: #2c2416;
  background: #faf6ee;
}

.user-center-auth-scene {
  position: relative;
  flex: 1;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.user-center-auth-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #e4ddd4;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(160, 130, 100, 0.14) 0%, transparent 38%),
    radial-gradient(circle at 80% 70%, rgba(120, 90, 60, 0.1) 0%, transparent 42%);
}

.user-center-auth-bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.55;
}

.user-center-auth-bg__orb--1 {
  width: min(42vw, 320px);
  height: min(42vw, 320px);
  top: -8%;
  left: -6%;
  background: radial-gradient(circle, rgba(226, 184, 122, 0.45) 0%, transparent 70%);
}

.user-center-auth-bg__orb--2 {
  width: min(36vw, 280px);
  height: min(36vw, 280px);
  bottom: 10%;
  right: -4%;
  background: radial-gradient(circle, rgba(180, 140, 95, 0.38) 0%, transparent 72%);
}

.user-center-auth-bg__orb--3 {
  width: min(28vw, 200px);
  height: min(28vw, 200px);
  top: 38%;
  left: 52%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 248, 235, 0.5) 0%, transparent 68%);
  opacity: 0.35;
}

.user-center-auth-bg__grid {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image:
    linear-gradient(rgba(60, 42, 27, 0.9) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60, 42, 27, 0.9) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, #000 20%, transparent 100%);
}

.user-center-auth-bg__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 85% at 50% 45%, transparent 35%, rgba(45, 35, 25, 0.14) 100%);
}

.user-center-auth-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1.75rem, 6vh, 3.5rem) clamp(1rem, 4vw, 1.75rem);
  overflow-y: auto;
}

.user-center-auth-stack {
  width: min(100%, 540px);
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.25rem, 3vh, 1.75rem);
}

.user-center-auth-brand {
  position: relative;
  width: 100%;
  max-width: 540px;
  text-align: center;
  padding: 0.15rem 0.25rem 0;
}

.user-center-auth-brand::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(100%, 480px);
  height: 120%;
  transform: translate(-50%, -48%);
  background: radial-gradient(ellipse 100% 80% at 50% 50%, rgba(255, 250, 240, 0.42) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.user-center-auth-eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.user-center-auth-eyebrow-line {
  flex: 0 1 2.4rem;
  max-width: 3.2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(160, 128, 88, 0.55));
}

.user-center-auth-eyebrow-row .user-center-auth-eyebrow-line:last-child {
  background: linear-gradient(90deg, rgba(160, 128, 88, 0.55), transparent);
}

.user-center-auth-eyebrow {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #9a7848;
}

.user-center-auth-tagline {
  margin: 0.85rem 0 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(1.32rem, 2.6vw, 1.88rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.06em;
  color: #2a2018;
  white-space: nowrap;
  text-shadow:
    0 1px 0 rgba(255, 252, 246, 0.95),
    0 8px 28px rgba(201, 166, 110, 0.18);
}

@media (max-width: 420px) {
  .user-center-auth-tagline {
    white-space: normal;
    letter-spacing: 0.04em;
    font-size: clamp(1.22rem, 5.2vw, 1.48rem);
  }
}

.user-center-auth-brand__accent {
  display: block;
  width: min(5rem, 24vw);
  height: 3px;
  margin: 1rem auto 0;
  border-radius: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(201, 166, 110, 0.25) 15%,
    rgba(201, 166, 110, 0.85) 50%,
    rgba(201, 166, 110, 0.25) 85%,
    transparent 100%
  );
  box-shadow: 0 0 18px rgba(201, 166, 110, 0.28);
}

.user-center-auth-form-stage {
  position: relative;
  display: flex;
  justify-content: center;
  width: min(100%, 400px);
  padding: 0.35rem 0 0.15rem;
}

.user-center-auth-form-stage::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 108%;
  height: 115%;
  transform: translate(-50%, -50%);
  border-radius: 22px;
  background: radial-gradient(ellipse 90% 75% at 50% 45%, rgba(255, 248, 235, 0.55) 0%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.user-center-auth-form-stage::after {
  content: "";
  position: absolute;
  bottom: -0.35rem;
  left: 12%;
  right: 12%;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(ellipse 100% 100% at 50% 0%, rgba(45, 35, 25, 0.12) 0%, transparent 72%);
  pointer-events: none;
  z-index: 0;
  filter: blur(4px);
}

.user-center-auth-form-host {
  position: relative;
  z-index: 1;
  flex: none;
  display: flex;
  justify-content: center;
  width: 100%;
}

.user-center-auth-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  width: min(100%, 480px);
}

.user-center-auth-foot__mark {
  font-size: 0.42rem;
  line-height: 1;
  color: rgba(201, 166, 110, 0.72);
  text-shadow: 0 0 10px rgba(201, 166, 110, 0.35);
}

.user-center-auth-sub {
  margin: 0;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.55;
  color: #7d6650;
  letter-spacing: 0.02em;
}

.user-auth-modal.user-auth-modal--embedded {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  background: transparent;
  overflow: visible;
}

.user-auth-modal.user-auth-modal--embedded .user-auth-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0;
  padding: 1.4rem 1.55rem 1.25rem;
  border: 1px solid rgba(154, 138, 118, 0.4);
  border-radius: 16px;
  box-shadow:
    0 1px 0 rgba(255, 252, 246, 0.95) inset,
    0 -1px 0 rgba(154, 138, 118, 0.08) inset,
    0 0 0 1px rgba(255, 248, 235, 0.35),
    0 22px 52px rgba(45, 35, 25, 0.12),
    0 8px 20px rgba(40, 28, 16, 0.08);
  background: linear-gradient(
    168deg,
    rgba(255, 252, 246, 0.99) 0%,
    rgba(251, 244, 233, 0.98) 38%,
    rgba(244, 235, 221, 0.99) 100%
  );
  overflow: visible;
  color: #2c2416;
}

.user-center-auth-form-host .user-auth-modal--embedded .user-auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  border-radius: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.92), transparent);
  pointer-events: none;
}

.user-center-auth-form-host .user-auth-modal--embedded .user-auth-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 15px;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 252, 246, 0.65);
}

.user-center-auth-form-host .user-auth-modal--embedded .user-auth-screen-title {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  margin-top: 0.1rem;
}

.user-center-auth-form-host .user-auth-modal--embedded .modal-card-desc {
  margin-bottom: 0.8rem;
}

.user-center-auth-form-host .user-auth-modal--embedded .user-auth-back {
  top: 0.7rem;
  left: 0.7rem;
}

.user-center-auth-form-host .user-auth-modal--embedded .user-auth-footer {
  margin-top: 0.8rem;
  padding-top: 0.65rem;
}

.user-auth-card {
  position: relative;
  width: min(90vw, 400px);
  max-width: 400px;
  margin: 0 auto;
  background: linear-gradient(180deg, #faf6ee 0%, #ede4d6 100%);
  border: 1px solid #c4b5a0;
  border-radius: 14px;
  padding: 1.25rem 1.35rem 1.15rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 22px 48px rgba(24, 16, 8, 0.18);
  color: #2c2416;
}

.user-auth-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  border: none;
  background: transparent;
  color: #7a6550;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.25rem;
}

.user-auth-back {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  border: none;
  background: transparent;
  color: #7a6550;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.25rem;
  line-height: 1;
}

.user-auth-back:hover {
  color: #2c2416;
}

.user-auth-card--sub .user-auth-screen-title,
.user-auth-card--sub .modal-card-desc {
  padding-left: 1.75rem;
}

.user-auth-field-hint {
  margin: -0.15rem 0 0.35rem;
  font-size: 0.68rem;
  line-height: 1.45;
  color: rgba(44, 36, 22, 0.48);
}

.modal-label-optional {
  font-weight: 500;
  color: rgba(44, 36, 22, 0.42);
}

.user-auth-footer--register {
  justify-content: flex-end;
}

.user-auth-footer--register .btn-primary,
.user-auth-register-submit {
  min-width: 6.5rem;
}

.user-auth-code-row .btn-secondary {
  flex-shrink: 0;
  align-self: stretch;
}

.user-auth-screen-title {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.user-auth-card .modal-card-desc {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(44, 36, 22, 0.62);
}

.user-auth-credential-block {
  margin-top: 0.35rem;
}

.user-auth-mode-slider {
  display: flex;
  gap: 0.2rem;
  padding: 0.2rem;
  margin-bottom: 0.55rem;
  border-radius: 9px;
  background: rgba(154, 138, 118, 0.18);
  border: 1px solid rgba(154, 138, 118, 0.32);
}

.user-auth-mode-opt {
  flex: 1;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: #6d5e4c;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.38rem 0.5rem;
  cursor: pointer;
  font-family: inherit;
}

.user-auth-mode-opt.active {
  background: linear-gradient(180deg, #f0e4d2 0%, #e6d4bc 100%);
  color: #2c2416;
  box-shadow: 0 1px 3px rgba(60, 42, 27, 0.12);
}

.modal-label {
  display: block;
  margin: 0.55rem 0 0.28rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(44, 36, 22, 0.62);
}

.modal-input {
  width: 100%;
  box-sizing: border-box;
  margin: 0.38rem 0;
  padding: 0.48rem 0.62rem;
  border: 1px solid #c4b5a0;
  border-radius: 9px;
  background: #fffef9;
  color: #2c2416;
  font-size: 0.84rem;
  font-family: inherit;
}

.modal-input:focus {
  outline: none;
  border-color: rgba(74, 111, 160, 0.65);
  box-shadow: 0 0 0 3px rgba(74, 111, 160, 0.18);
}

.user-auth-code-row {
  display: flex;
  gap: 0.45rem;
  align-items: stretch;
}

.user-auth-code-row .modal-input {
  flex: 1;
  margin: 0;
}

.user-auth-remember-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  margin: 0.5rem 0 0;
}

.user-auth-remember-opt {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-size: 0.82rem;
  color: rgba(44, 36, 22, 0.62);
  cursor: pointer;
}

.user-auth-legal-agree {
  margin-top: 4px;
}

.legal-agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0 4px;
  font-size: 12px;
  line-height: 1.55;
  color: #6b5f4d;
  cursor: pointer;
}

.legal-agree__input {
  margin-top: 3px;
  flex-shrink: 0;
}

.legal-link {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  color: #9a6b2e;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.legal-link:hover {
  color: #8a6424;
}

.user-auth-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.85rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(154, 138, 118, 0.28);
}

.user-auth-go-register {
  padding: 0.5rem 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #a86b2a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.user-auth-status {
  font-size: 0.72rem;
  min-height: 1.2em;
  margin: 0.35rem 0 0.15rem;
  color: #6d5e4c;
}

.user-auth-status.is-error {
  color: #9b3b3b;
}

.btn-primary,
.btn-secondary,
.btn-ghost {
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(180deg, #4a6fa0 0%, #4a6fa0 100%);
  color: #fff;
  border: 1px solid #4a6fa0;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.78rem;
}

.btn-primary:hover {
  background: linear-gradient(180deg, #5d86b8 0%, #456897 100%);
}

.btn-secondary {
  background: linear-gradient(180deg, #e8e0d4 0%, #d4caba 100%);
  color: #2c2416;
  border: 1px solid #a89882;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.78rem;
  white-space: nowrap;
}

.btn-secondary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-ghost {
  border: none;
  background: transparent;
  cursor: pointer;
}

.user-auth-footer .btn-primary {
  min-width: 5.5rem;
}

.user-auth-pane-code[hidden],
.user-auth-register-form[hidden] {
  display: none !important;
}

/* ── 顶栏账号（对齐 client pm-user-session + pm-user-popover）── */
.mj-nav-user-corner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  min-width: 0;
}

.mj-auth-login--corner {
  padding: 0.55rem 1.05rem;
  font-size: 0.92rem;
  white-space: nowrap;
}

.mj-nav .btn-auth {
  margin-right: 0;
}

.pm-user-session {
  position: relative;
  flex-shrink: 0;
  z-index: 1;
}

.pm-user-session.pm-user-session--open {
  z-index: 320;
}

.pm-user-session__btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.9rem 0.45rem 0.5rem;
  border: 1px solid var(--mj-border);
  border-radius: 999px;
  background: #faf6ee;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  max-width: 300px;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.pm-user-session__btn:hover {
  background: #fffef9;
  border-color: rgba(120, 95, 70, 0.5);
  box-shadow: 0 2px 8px rgba(36, 29, 20, 0.08);
}

.pm-user-session__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #f5e6c8 0%, #c9a66e 100%);
  color: #4a3828;
  font-size: 1rem;
  font-weight: 700;
  overflow: hidden;
}

.pm-user-session__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pm-user-session__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
  gap: 0.06rem;
}

.pm-user-session__tier {
  font-size: 0.62rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mj-tier-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.38rem;
  border-radius: 4px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.mj-tier-badge--free {
  color: #8a8a8a;
  background: rgba(130, 130, 130, 0.12);
  border: 1px solid rgba(130, 130, 130, 0.22);
}

.mj-tier-badge--vip {
  color: #f0c040;
  background: linear-gradient(135deg, rgba(255, 236, 176, 0.42) 0%, rgba(212, 160, 23, 0.28) 100%);
  border: 1px solid rgba(232, 184, 74, 0.55);
  box-shadow: 0 0 10px rgba(232, 184, 74, 0.22);
  text-shadow: 0 1px 0 rgba(120, 80, 10, 0.18);
}

.pm-user-session__nickname {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--mj-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-user-session__account {
  font-size: 0.78rem;
  color: rgba(36, 29, 20, 0.58);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-user-session.pm-user-session--header-corner {
  --pm-user-header-card-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 42%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 28px),
    linear-gradient(165deg, #3a342e 0%, #2a2520 48%, #1f1b17 100%);
  --pm-user-header-card-shadow: 0 2px 10px rgba(20, 14, 8, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --pm-user-header-card-dim: transparent;
}

.pm-user-session.pm-user-session--header-corner .pm-user-session__btn {
  position: relative;
  isolation: isolate;
  height: 4.75rem;
  min-width: 10.25rem;
  max-width: 13.5rem;
  padding: 0.42rem 0.62rem 0.42rem 0.42rem;
  gap: 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--pm-user-header-card-bg);
  box-shadow: var(--pm-user-header-card-shadow);
  color: #f5f0e8;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.pm-user-session.pm-user-session--header-corner .pm-user-session__btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--pm-user-header-card-dim);
  pointer-events: none;
  transition: background 0.15s ease;
  z-index: 0;
}

.pm-user-session.pm-user-session--header-corner .pm-user-session__btn > * {
  position: relative;
  z-index: 1;
}

.pm-user-session.pm-user-session--header-corner .pm-user-session__btn:hover {
  --pm-user-header-card-dim: rgba(0, 0, 0, 0.1);
  background: var(--pm-user-header-card-bg);
  border-color: rgba(255, 255, 255, 0.07);
  box-shadow: 0 2px 8px rgba(20, 14, 8, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  color: rgba(245, 240, 232, 0.92);
}

.pm-user-session.pm-user-session--header-corner.pm-user-session--open,
.pm-user-session.pm-user-session--header-corner:has(.pm-user-session__btn[aria-expanded="true"]) {
  --pm-user-header-card-dim: rgba(0, 0, 0, 0.16);
}

.pm-user-session.pm-user-session--header-corner.pm-user-session--open .pm-user-session__btn,
.pm-user-session.pm-user-session--header-corner .pm-user-session__btn[aria-expanded="true"] {
  background: var(--pm-user-header-card-bg);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 1px 6px rgba(20, 14, 8, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.02);
  color: rgba(245, 240, 232, 0.88);
}

.pm-user-session.pm-user-session--header-corner .pm-user-session__avatar {
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 6px;
}

.pm-user-session.pm-user-session--header-corner .pm-user-session__nickname {
  font-size: 0.82rem;
  font-weight: 600;
  color: #f5f0e8;
}

.pm-user-session.pm-user-session--header-corner .pm-user-session__tier {
  font-size: 0.62rem;
  font-weight: 500;
  color: rgba(245, 240, 232, 0.42);
  line-height: 1.2;
}

.pm-user-session.pm-user-session--header-corner .pm-user-session__account {
  font-size: 0.68rem;
  color: rgba(245, 240, 232, 0.58);
}

/* 官网顶栏高度 64px，卡片略缩小以贴合导航 */
.mj-nav .pm-user-session.pm-user-session--header-corner .pm-user-session__btn {
  height: 3.35rem;
  min-width: 8.75rem;
  max-width: 12rem;
}

.mj-nav .pm-user-session.pm-user-session--header-corner .pm-user-session__avatar {
  width: 2.75rem;
  height: 2.75rem;
}

.pm-user-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  z-index: 320;
  min-width: 240px;
  max-width: 300px;
  padding: 0.85rem 1rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--mj-border);
  background: #faf6ee;
  box-shadow: 0 10px 32px rgba(40, 28, 16, 0.16);
}

.pm-user-popover.pm-user-popover--fixed {
  position: fixed;
}

.pm-user-popover[hidden] {
  display: none !important;
}

.pm-user-popover__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(154, 138, 118, 0.25);
}

.pm-user-popover__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #f5e6c8 0%, #c9a66e 100%);
  color: #4a3828;
  font-size: 1rem;
  font-weight: 700;
  overflow: hidden;
}

.pm-user-popover__avatar .pm-user-session__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pm-user-popover__nickname {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--mj-text);
  line-height: 1.3;
}

.pm-user-popover__account {
  font-size: 0.72rem;
  color: rgba(36, 29, 20, 0.58);
  margin-top: 0.1rem;
  word-break: break-all;
}

.pm-user-popover__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  margin-top: 0.35rem;
}

.pm-user-popover__tier {
  font-size: 0.72rem;
  font-weight: 700;
}

.pm-user-popover__points {
  font-size: 0.72rem;
  color: rgba(36, 29, 20, 0.58);
}

.pm-user-popover__dl {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.35rem 0.5rem;
  margin: 0 0 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(154, 138, 118, 0.25);
  font-size: 0.78rem;
}

.pm-user-popover__dl dt {
  color: rgba(36, 29, 20, 0.58);
  margin: 0;
}

.pm-user-popover__dl dd {
  margin: 0;
  color: var(--mj-text);
  word-break: break-all;
}

.pm-user-popover__user-center {
  display: flex;
  width: 100%;
  justify-content: center;
  font-size: 0.82rem;
  padding: 0.45rem 0.75rem;
  margin-bottom: 0.5rem;
  text-decoration: none;
  text-align: center;
}

.pm-user-popover__logout {
  width: 100%;
  justify-content: center;
}

@media (max-width: 720px) {
  .pm-user-session.pm-user-session--header-corner .pm-user-session__btn {
    min-width: 3.35rem;
    max-width: 3.35rem;
    width: 3.35rem;
    height: 3.35rem;
    padding: 0;
    justify-content: center;
  }

  .pm-user-session.pm-user-session--header-corner .pm-user-session__meta {
    display: none;
  }

  .pm-user-session.pm-user-session--header-corner .pm-user-session__avatar {
    width: 2.75rem;
    height: 2.75rem;
  }

  .mj-auth-login--corner {
    padding: 0.45rem 0.75rem;
    font-size: 0.82rem;
  }
}
