/* 账户设置 (Figma 1356:21768)。左右 gutter 与个人中心同源，内容区封顶 1664。 */
.hg-settings {
  box-sizing: border-box;
  max-width: calc(1664px + 2 * var(--hg-page-gutter));
  margin: 0 auto;
  padding: 20px var(--hg-page-gutter) 48px;
}
.hg-settings__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}
.hg-settings__titles h1 {
  margin: 0;
  color: #fff;
  font-size: 26px;
  font-weight: 600;
  line-height: 39px;
  letter-spacing: -.04px;
}
.hg-settings__titles p {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, .6);
  font-size: 14px;
  line-height: 20px;
}
.hg-settings__card {
  display: flex;
  align-items: center;
  gap: 20px;
  box-sizing: border-box;
  min-height: 90px;
  margin-top: 20px;
  padding: 17px 25px;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 14px;
  background: #161616;
}
.hg-settings__head + .hg-settings__card {
  margin-top: 30px;
}
.hg-settings__card[hidden] {
  display: none !important;
}
.hg-settings__card--edit {
  display: block;
  min-height: 110px;
  padding: 20px 36px 20px 23px;
  border-color: rgba(255, 255, 255, .1);
  border-radius: 16px;
}
.hg-settings__left {
  display: flex;
  align-items: center;
  gap: 48px;
  min-width: 0;
  flex: 1;
}
.hg-settings__label {
  flex-shrink: 0;
  width: 56px;
  color: rgba(255, 255, 255, .65);
  font-size: 14px;
  line-height: 21px;
  letter-spacing: -.15px;
  text-align: left;
}
.hg-settings__avatar {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 25px;
  overflow: hidden;
  background: #fff;
}
.hg-settings__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hg-settings__avatar .hg-avatar {
  width: 100%;
  height: 100%;
  font-size: 20px;
}
.hg-settings__name {
  min-width: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -.3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hg-settings__nick-row {
  display: flex;
  align-items: center;
  width: 100%;
}
.hg-settings__nick-row .hg-settings__label {
  margin-right: 48px;
}
.hg-settings__input {
  box-sizing: border-box;
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #ffd21c;
  border-radius: 6px;
  background: #1a1a1b;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  outline: none;
}
.hg-settings__hint {
  margin: 8px 240px 0 104px;
  color: #5c5c5e;
  font-size: 12px;
  line-height: 17px;
}
.hg-settings__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
  margin-left: 20px;
}
.hg-settings__ghost, .hg-settings__save {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 46px;
  padding: 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  line-height: 19.5px;
  letter-spacing: -.08px;
  white-space: nowrap;
  cursor: pointer;
}
.hg-settings__card--edit .hg-settings__ghost, .hg-settings__save {
  font-size: 14px;
}
button.hg-settings__ghost {
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(0, 0, 0, .5);
  background-color: rgba(0, 0, 0, .5);
  background-image: none;
  color: rgba(255, 255, 255, .8);
}
button.hg-settings__save {
  border: 0;
  background: #ffd21c;
  background-color: #ffd21c;
  background-image: none;
  color: #000;
}
button.hg-settings__ghost:disabled, button.hg-settings__save:disabled {
  opacity: .55;
  cursor: default;
}
.hg-settings__toast {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 80;
  transform: translate(-50%, -50%);
  max-width: min(420px, calc(100vw - 32px));
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(0, 0, 0, .82);
  color: #fff;
  font-size: 13px;
  line-height: 18px;
  pointer-events: none;
}
.hg-avatar-pick {
  position: fixed;
  inset: 0;
  z-index: 12020;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.hg-avatar-pick[hidden] {
  display: none !important;
}
.hg-avatar-pick__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .75);
}
.hg-avatar-pick__box {
  position: relative;
  z-index: 1;
  width: 440px;
  max-width: 100%;
  padding: 24px;
  border-radius: 16px;
  background: #181818;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .6);
  box-sizing: border-box;
}
.hg-avatar-pick__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.hg-avatar-pick__head h2 {
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}
.hg-avatar-pick__head p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, .6);
  font-size: 13px;
  line-height: 18px;
}
.hg-avatar-pick__x {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.hg-avatar-pick__preview {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #222;
}
.hg-avatar-pick__preview-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 25px;
  overflow: hidden;
  flex-shrink: 0;
}
.hg-avatar-pick__preview-tip {
  margin: 0;
  color: rgba(255, 255, 255, .7);
  font-size: 13px;
  line-height: 18px;
}
.hg-avatar-pick__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.hg-avatar-pick__swatch {
  width: 100%;
  aspect-ratio: 1;
  border: 2px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  box-sizing: border-box;
}
.hg-avatar-pick__swatch.is-active, .hg-avatar-pick__swatch[aria-selected="true"] {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .4);
}
