/* 账户设置 — 暗色卡片行 + 头像色板弹窗 */
.hg-profile-settings-page{padding-bottom:64px;min-height:60vh}

.hg-profile-settings-page .hg-breadcrumb,
.hg-profile-settings-page .hg-breadcrumb a,
.hg-profile-settings-page .hg-breadcrumb__sep{
  color:rgba(255,255,255,.45);
}
.hg-profile-settings-page .hg-breadcrumb a:hover{color:rgba(255,255,255,.75)}
.hg-profile-settings-page .hg-breadcrumb__current{
  color:var(--color-primary,#ffd21c);
}

.hg-profile-settings__head{margin:4px 0 28px}
.hg-profile-settings__head h1{
  margin:0;color:#fff;font-size:28px;font-weight:700;line-height:1.25;
}
.hg-profile-settings__subtitle{
  margin:8px 0 0;color:rgba(255,255,255,.45);font-size:14px;line-height:1.5;
}

.hg-profile-settings__rows{
  display:flex;flex-direction:column;gap:14px;width:100%;
}
.hg-profile-settings__row{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  min-height:88px;padding:18px 20px;border-radius:12px;
  background:#1c1c1c;border:1px solid rgba(255,255,255,.07);
}

.hg-profile-settings__avatar{
  position:relative;flex:none;width:56px;height:56px;border-radius:50%;
  background:#6EC9CB;overflow:hidden;display:flex;align-items:center;justify-content:center;
}
.hg-profile-settings__avatar-letter{
  color:#fff;font-size:26px;font-weight:700;line-height:1;text-transform:uppercase;user-select:none;
}

.hg-profile-settings__nick{min-width:0;display:flex;flex-direction:column;gap:6px}
.hg-profile-settings__nick-label{color:rgba(255,255,255,.45);font-size:13px;line-height:1.2}
.hg-profile-settings__nick-value{
  color:#fff;font-size:16px;font-weight:700;line-height:1.3;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:min(420px,60vw);
}

.hg-profile-settings__btn{
  flex:none;display:inline-flex;align-items:center;justify-content:center;
  height:36px;padding:0 16px;border:1px solid rgba(255,255,255,.28);border-radius:999px;
  color:rgba(255,255,255,.85);font-size:13px;background:transparent;cursor:pointer;
  white-space:nowrap;transition:border-color .15s,color .15s,opacity .15s;
}
.hg-profile-settings__btn:hover{border-color:var(--color-primary,#ffd21c);color:#fff}
.hg-profile-settings__btn:disabled{opacity:.5;cursor:not-allowed}

/* —— 头像选择弹窗（对齐截图） —— */
.hg-avatar-pick{
  position:fixed;inset:0;z-index:1300;display:flex;align-items:center;justify-content:center;
  padding:16px;
}
.hg-avatar-pick[hidden]{display:none!important}
.hg-avatar-pick__mask{position:absolute;inset:0;background:rgba(0,0,0,.62)}
.hg-avatar-pick__panel{
  position:relative;z-index:1;width:100%;max-width:520px;
  padding:22px 22px 18px;border-radius:16px;
  background:#1a1a1a;border:1px solid rgba(255,255,255,.08);
  box-shadow:0 20px 56px rgba(0,0,0,.5);
}
.hg-avatar-pick__head{
  display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:18px;
}
.hg-avatar-pick__title{
  margin:0;color:#fff;font-size:20px;font-weight:700;line-height:1.3;
}
.hg-avatar-pick__subtitle{
  margin:6px 0 0;color:rgba(255,255,255,.45);font-size:13px;line-height:1.4;
}
.hg-avatar-pick__close{
  flex:none;width:32px;height:32px;border-radius:50%;
  border:1px solid rgba(255,255,255,.18);background:transparent;
  color:rgba(255,255,255,.7);display:inline-flex;align-items:center;justify-content:center;
  cursor:pointer;padding:0;
}
.hg-avatar-pick__close:hover{color:#fff;border-color:rgba(255,255,255,.4)}

.hg-avatar-pick__preview-row{
  display:flex;align-items:center;gap:16px;margin-bottom:20px;
}
.hg-avatar-pick__preview{
  flex:none;width:72px;height:72px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-size:32px;font-weight:700;line-height:1;text-transform:uppercase;
  user-select:none;
}
.hg-avatar-pick__desc{
  margin:0;min-width:0;color:rgba(255,255,255,.5);font-size:13px;line-height:1.55;
}

.hg-avatar-pick__grid{
  display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:10px;
  margin-bottom:22px;
}
.hg-avatar-pick__swatch{
  aspect-ratio:1/1;width:100%;border-radius:50%;border:2px solid transparent;
  padding:0;cursor:pointer;box-sizing:border-box;
  outline:none;transition:box-shadow .12s,border-color .12s,transform .12s;
}
.hg-avatar-pick__swatch:hover{transform:scale(1.06)}
.hg-avatar-pick__swatch.is-selected{
  box-shadow:0 0 0 2px var(--color-primary,#ffd21c);
  border-color:rgba(0,0,0,.35);
}

.hg-avatar-pick__actions{
  display:flex;justify-content:flex-end;gap:12px;
}
.hg-avatar-pick__cancel,
.hg-avatar-pick__ok{
  -webkit-appearance:none;appearance:none;
  height:40px;padding:0 22px;border-radius:999px;font-size:14px;cursor:pointer;
  line-height:40px;
}
button.hg-avatar-pick__cancel.hg-avatar-pick__cancel{
  border:1px solid rgba(255,255,255,.2);
  background-color:#222;
  background-image:none;
  color:rgba(255,255,255,.7);
}
/* 压过 common.css button:not(.hg-btn){background-color:unset} */
button.hg-avatar-pick__ok.hg-avatar-pick__ok{
  border:0;
  background-color:#ffd21c;
  background-image:none;
  color:#111;
  font-weight:700;
}
button.hg-avatar-pick__ok.hg-avatar-pick__ok:hover{
  filter:brightness(1.05);
}
button.hg-avatar-pick__ok.hg-avatar-pick__ok:disabled{opacity:.55;cursor:not-allowed;filter:none}

/* 昵称弹层（沿用） */
.hg-profile-settings-modal{
  position:fixed;inset:0;z-index:1200;display:flex;align-items:center;justify-content:center;
  padding:16px;
}
.hg-profile-settings-modal[hidden]{display:none!important}
.hg-profile-settings-modal__mask{
  position:absolute;inset:0;background:rgba(0,0,0,.62);
}
.hg-profile-settings-modal__panel{
  position:relative;z-index:1;width:100%;max-width:360px;
  padding:22px 20px 18px;border-radius:14px;
  background:#1c1c1c;border:1px solid rgba(255,255,255,.1);
  box-shadow:0 16px 48px rgba(0,0,0,.45);
}
.hg-profile-settings-modal__title{
  margin:0 0 14px;color:#fff;font-size:17px;font-weight:700;
}
.hg-profile-settings-modal__input{
  display:block;width:100%;height:42px;padding:0 12px;box-sizing:border-box;
  border-radius:10px;border:1px solid rgba(255,255,255,.14);
  background:#121212;color:#fff;font-size:15px;outline:none;
}
.hg-profile-settings-modal__input:focus{border-color:var(--color-primary,#ffd21c)}
.hg-profile-settings-modal__hint{
  margin:8px 0 0;color:rgba(255,255,255,.4);font-size:12px;
}
.hg-profile-settings-modal__actions{
  display:flex;justify-content:flex-end;gap:10px;margin-top:18px;
}
.hg-profile-settings-modal__cancel,
.hg-profile-settings-modal__ok{
  -webkit-appearance:none;appearance:none;
  height:36px;padding:0 16px;border-radius:999px;font-size:13px;cursor:pointer;line-height:36px;
}
button.hg-profile-settings-modal__cancel.hg-profile-settings-modal__cancel{
  border:1px solid rgba(255,255,255,.22);background-color:transparent;background-image:none;color:rgba(255,255,255,.75);
}
button.hg-profile-settings-modal__ok.hg-profile-settings-modal__ok{
  border:0;background-color:#ffd21c;background-image:none;color:#111;font-weight:700;
}
button.hg-profile-settings-modal__ok.hg-profile-settings-modal__ok:disabled{opacity:.55;cursor:not-allowed}

@media (max-width:960px){
  .hg-profile-settings__head h1{font-size:24px}
  .hg-avatar-pick__grid{gap:8px}
}
@media (max-width:640px){
  .hg-profile-settings-page{padding-bottom:40px;min-height:50vh}
  .hg-profile-settings__head{margin-bottom:20px}
  .hg-profile-settings__head h1{font-size:22px}
  .hg-profile-settings__subtitle{font-size:13px;margin-top:6px}
  .hg-profile-settings__row{min-height:76px;padding:14px 14px;gap:12px}
  .hg-profile-settings__avatar{width:48px;height:48px}
  .hg-profile-settings__avatar-letter{font-size:22px}
  .hg-profile-settings__nick-value{font-size:15px;max-width:48vw}
  .hg-profile-settings__btn{height:32px;padding:0 12px;font-size:12px}
  .hg-avatar-pick__panel{padding:18px 14px 14px;max-width:100%}
  .hg-avatar-pick__title{font-size:18px}
  .hg-avatar-pick__preview{width:60px;height:60px;font-size:26px}
  .hg-avatar-pick__grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
  .hg-avatar-pick__actions{gap:10px}
  .hg-avatar-pick__cancel,.hg-avatar-pick__ok{flex:1;height:42px}
}


/* 轻提示：不依赖 HgAi */
.hg-profile-toast{
  position:fixed;left:50%;bottom:72px;transform:translateX(-50%) translateY(12px);
  z-index:2147483647;max-width:86vw;padding:10px 16px;border-radius:10px;
  background:rgba(20,20,20,.92);color:#fff;font-size:14px;line-height:1.4;
  opacity:0;pointer-events:none;transition:opacity .2s ease,transform .2s ease;
  box-shadow:0 8px 24px rgba(0,0,0,.35);
}
.hg-profile-toast.is-show{opacity:1;transform:translateX(-50%) translateY(0)}
