#account-dialog {
  box-sizing: border-box;
  width: calc(100% - 32px);
  max-width: 440px;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 32px;
  overflow: auto;
  border: 1px solid #dedede;
  border-radius: 16px;
  background: #fff;
  color: #111;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  box-shadow: 0 24px 80px rgb(0 0 0 / 20%);
}

#account-dialog::backdrop {
  background: rgb(0 0 0 / 58%);
}

#account-dialog:not([open]) {
  display: none;
}

#account-dialog *,
#account-dialog *::before,
#account-dialog *::after {
  box-sizing: border-box;
}

#account-dialog [hidden] {
  display: none !important;
}

#account-dialog .account-dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

#account-dialog .account-eyebrow {
  min-width: 0;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.1em;
}

#account-dialog button,
#account-dialog input {
  font: inherit;
}

#account-dialog button {
  min-height: 44px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

#account-dialog .account-close {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid #dedede;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}

#account-dialog #account-title {
  margin: 0;
  font-size: clamp(26px, 7vw, 34px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

#account-dialog .account-intent {
  margin: 16px 0 28px;
  color: #575757;
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

#account-dialog #account-form {
  display: grid;
  min-width: 0;
  gap: 20px;
}

#account-dialog .account-field {
  display: grid;
  min-width: 0;
  gap: 8px;
}

#account-dialog .account-field label {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

#account-dialog .account-field input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  background: #fff;
  color: #111;
  font-size: 16px;
  line-height: 1.5;
}

#account-dialog .account-field input::placeholder {
  color: #858585;
  opacity: 1;
}

#account-dialog button:focus-visible,
#account-dialog input:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}

#account-dialog .account-primary,
#account-dialog .account-secondary {
  width: 100%;
  min-width: 0;
  padding: 14px 20px;
  border: 1px solid #111;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

#account-dialog .account-primary {
  background: #111;
  color: #fff;
}

#account-dialog .account-secondary {
  background: #fff;
  color: #111;
}

#account-dialog button:hover {
  opacity: 0.76;
}

#account-dialog button:disabled {
  cursor: default;
  opacity: 0.45;
}

#account-dialog .account-error {
  margin: 0;
  color: #a72424;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

#account-dialog .account-profile {
  display: grid;
  min-width: 0;
  gap: 8px;
}

#account-dialog .account-profile-name,
#account-dialog .account-profile-email {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

#account-dialog .account-profile-name {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.4;
}

#account-dialog .account-profile-email {
  margin-bottom: 16px;
  color: #575757;
  font-size: 14px;
  line-height: 1.6;
}

#account-dialog .account-note {
  margin: 24px 0 0;
  color: #666;
  font-size: 11px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
