.account-main {
  width: min(460px, 100%);
  margin: 0 auto;
  padding: 28px 20px 40px;
}
.account-main h1 {
  font-size: 24px;
  letter-spacing: -1px;
  margin: 10px 0;
}
.account-intro,
.account-help {
  color: #a8b7ca;
  line-height: 1.8;
}
.account-home {
  color: #ffb36b;
  text-decoration: none;
}
.account-card {
  margin-top: 16px;
  padding: 20px;
  background: #152033;
  border: 1px solid #304058;
  border-radius: 14px;
}
.account-card h2 {
  font-size: 20px;
  margin: 0 0 18px;
}
.account-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.account-card label {
  display: block;
  margin: 16px 0 8px;
  font-size: 14px;
  color: #d8e0ec;
}
.account-card input:not([type="checkbox"]),
.account-card select {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #516076;
  border-radius: 10px;
  background: #0e1726;
  color: #f1f5f9;
  padding: 13px;
  font: inherit;
}
.account-card input:focus-visible,
.account-card select:focus-visible {
  outline: 2px solid #ffb36b;
  outline-offset: 3px;
}
.account-card button,
.account-link {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  border-radius: 10px;
  padding: 11px 16px;
  cursor: pointer;
  background: #ffad5e;
  color: #101827;
  border: 1px solid transparent;
  text-decoration: none;
}
.account-card button {
  margin-top: 18px;
}
.account-card button.secondary,
.account-link.secondary {
  background: transparent;
  border-color: #50617a;
  color: #dbe4f0;
}
.account-card button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.account-card .google-signin {
  width: 100%;
  margin: 0;
  background: #f2f2f2;
  color: #1f1f1f;
  border: 0;
  font-weight: 500;
  font-size: 14px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 12px 2px 2px;
}
.google-signin img {
  flex: 0 0 40px;
}
.embed .board-account-actions {
  display: none !important;
}
.account-divider {
  text-align: center;
  font-size: 12px;
  margin: 18px 0 0;
}
.account-settings #googleManage {
  font-size: 12px;
  padding: 10px 9px;
}
.account-status {
  color: #ffd09f;
  line-height: 1.7;
  white-space: pre-line;
}
.account-status:empty {
  display: none;
}
.account-main [hidden] {
  display: none !important;
}
.account-consent {
  display: flex !important;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.7;
}
.account-consent input {
  margin-top: 6px;
}
.account-consent a,
.account-help a {
  color: #ffb36b;
}
.account-progress {
  width: 100%;
  height: 8px;
  accent-color: #ffad5e;
}
.account-level {
  font-size: 17px;
  color: #ffb36b;
  letter-spacing: -1px;
}
.account-history {
  list-style: none;
  padding: 0;
}
.account-history li {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid #304058;
  padding: 14px 0;
  line-height: 1.5;
  font-size: 14px;
}
.account-history time {
  display: block;
  color: #a8b7ca;
  font-size: 12px;
}
.account-history strong {
  white-space: nowrap;
  color: #ffb36b;
}
.member-level {
  font-size: 0.86em;
  font-weight: 600;
  color: #ffbc7b;
  white-space: nowrap;
}
.member-badge {
  font-size: 11px;
  color: #cfdded;
  background: #27374c;
  border-radius: 5px;
  padding: 2px 6px;
  margin-left: 7px;
  white-space: nowrap;
}
.member-role,
.account-level.is-operator {
  color: #70dfd5;
  font-size: 0.86em;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}
.account-card .danger {
  border-color: #ed9b9b;
  color: #ffb7b7;
  background: transparent;
}
.account-card details {
  line-height: 1.8;
}
.account-card summary {
  cursor: pointer;
}
.account-password {
  margin-top: 20px;
}
.account-events {
  display: grid;
  gap: 12px;
}
.account-event {
  padding: 14px;
  border: 1px solid #3a4a60;
  border-radius: 10px;
}
.account-event p {
  margin: 0;
}
.account-event button {
  margin-top: 8px;
}
.account-compact {
  margin: 0;
  padding: 0;
}
.account-compact .account-card {
  background: transparent;
}
.account-compact .account-history {
  max-height: 320px;
  overflow: auto;
}
@media (max-width: 540px) {
  .account-main {
    padding: 24px 16px 40px;
  }
  .account-card {
    padding: 20px;
  }
  .account-main h1 {
    font-size: 27px;
  }
  .account-stats {
    gap: 20px;
  }
  .account-card input:not([type="checkbox"]) {
    font-size: 16px;
  }
}
.account-main {
  color: #f1f5f9;
}
body.account-callback {
  background: #0e1726;
  margin: 0;
  font-family: 'Pretendard', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
}
[data-account-link][hidden] {
  display: none !important;
}

.account-profile-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.account-profile-heading h2 {
  margin: 0;
  font-size: 19px;
  overflow-wrap: anywhere;
}
.account-level {
  white-space: nowrap;
  font-weight: 600;
}
.account-progress-label {
  margin: 8px 0 18px;
  font-size: 12px;
}
.account-joined {
  margin: 0;
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #a8b7ca;
}
.account-settings {
  margin-top: 0;
  border-top: 0;
  border-radius: 0 0 14px 14px;
  padding-top: 0;
}
.account-profile:has(~ .account-settings:not([hidden])) {
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
}
.account-settings .account-row {
  border-top: 1px solid #304058;
  gap: 0;
  padding: 8px 0;
}
.account-settings .account-row button {
  margin: 0;
  padding: 10px 9px;
  border: 0;
  font-size: 12px;
}
.account-settings details {
  margin-top: 4px;
  font-size: 12px;
  color: #a8b7ca;
}
.account-settings details[open] {
  padding-top: 12px;
  border-top: 1px solid #304058;
}
.account-settings details input {
  font-size: 16px;
}

/* The same account controls live in a small dialog on the current page. */
.account-dialog {
  position: fixed;
  margin: 0;
  padding: 0;
  width: min(380px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border: 1px solid #344154;
  border-radius: 14px;
  background: #141e2e;
  color: #edf1f7;
  box-shadow: 0 20px 70px #0006;
  font-family: 'Pretendard', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -.02em;
  -webkit-font-smoothing: antialiased;
}
.account-dialog::backdrop { background: #02071366; }
.account-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 20px 0;
}
.account-panel-heading h2 { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -.035em; }
.account-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #9eacbf;
  cursor: pointer;
}
.account-close:hover { background: #ffffff0a; color: #f3f5f8; }
.account-dialog .account-main { width: auto; padding: 8px 22px 18px; margin: 0; }
.account-dialog .account-card { margin: 12px 0 0; padding: 0; border: 0; background: transparent; border-radius: 0; }
.account-dialog .account-card h2 { font-size: 17px; font-weight: 650; margin-bottom: 10px; }
.account-dialog .account-help { font-size: 12px; line-height: 1.6; margin: 12px 0; }
.account-dialog .account-help:empty { display: none; }
.account-dialog .account-card label { font-size: 13px; margin: 12px 0 6px; }
.account-dialog .account-card input:not([type="checkbox"]) { font-size: 16px; padding: 10px 12px; border-color: #3d4c61; border-radius: 8px; }
.account-dialog .account-card button { font-size: 14px; border-radius: 8px; padding: 10px 14px; margin-top: 14px; }
.account-dialog .account-card .google-signin { margin: 0; padding: 2px 12px 2px 2px; font-weight: 500; }
.account-dialog .account-divider { display: flex; gap: 12px; align-items: center; color: #8392a8; font-size: 11px; margin: 16px 0 2px; }
.account-divider::before, .account-divider::after { content: ''; flex: 1; height: 1px; background: #2b3749; }
.account-dialog #authSubmit { width: 100%; font-weight: 650; }
.account-dialog .account-reset { text-align: right; margin: 8px 0 0; }
.account-dialog .account-reset button { background: transparent; border: 0; color: #a4b1c2; font-size: 12px; margin: 0; padding: 4px 0; font-weight: 400; }
.account-dialog .account-consent { font-size: 12px !important; line-height: 1.6; gap: 8px; }
.account-dialog .account-consent input { margin: 3px 0 0; flex: 0 0 auto; accent-color: #ffad5e; }
.account-dialog .account-status { font-size: 12px; margin: 10px 0; }
.account-dialog .account-profile-heading { margin: 6px 0 16px; }
.account-dialog .account-profile-heading h2 { margin: 0; font-size: 18px; }
.account-dialog .account-level { font-size: 13px; letter-spacing: 0; }
.account-dialog .account-progress-label { margin: 7px 0 14px; font-size: 11px; }
.account-dialog .account-settings { margin-top: 16px; }
.account-dialog #nicknameChangeHelp { font-size: 11px; margin: 0 0 8px; word-break: keep-all; }
.account-dialog #editProfile:disabled { cursor: default; }
.account-dialog #emailCode { text-align: center; letter-spacing: .35em; font-size: 24px; font-variant-numeric: tabular-nums; }
.account-dialog #verifyEmail { overflow-wrap: anywhere; }
.account-dialog .account-help { word-break: keep-all; overflow-wrap: anywhere; }
.account-dialog #verifyExpiry { font-size: 12px; font-variant-numeric: tabular-nums; }
.account-dialog #verifySubmit { width: 100%; }
.account-dialog .account-verify-actions { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 10px; }
.account-dialog .account-verify-actions button { border: 0; padding: 6px 0; margin: 0; font-size: 12px; }
.account-dialog .account-settings .account-row button { margin: 0; padding: 9px 8px; font-size: 12px; }
.account-dialog .account-settings details { font-size: 12px; }
.account-dialog .account-main > .account-help:last-child { margin: 17px 0 0; font-size: 11px; }
.account-dialog .account-main > .account-help:last-child a { color: #8e9bb0; text-decoration: none; }
.account-dialog .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.account-dialog button:focus-visible, .account-dialog a:focus-visible { outline: 2px solid #ffb36b; outline-offset: 3px; }
.account-signup-link { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 44px; font: inherit; font-size: 13px; font-weight: 500; border: 0; border-radius: 8px; background: transparent; color: #b8c8d9; cursor: pointer; padding: 8px; text-decoration: none; white-space: nowrap; }
.account-signup-link:hover { background: #ffffff08; color: #edf1f7; }
.account-signup-link:focus-visible, .account-entry-button:focus-visible { outline: 2px solid #69dfcf; outline-offset: 3px; }
.board-account-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-bottom: 16px; }
.account-entry-button { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 44px; padding: 8px 12px; border: 1px solid #33575e; border-radius: 8px; background: #153038; color: #9ae8dd; font-size: 13px; font-weight: 600; text-decoration: none; }
.account-entry-button:hover { background: #1b3d44; border-color: #69dfcf; }
.account-dialog #authSubmit, .account-dialog #verifySubmit { background: #69dfcf; color: #0b1a25; }
.account-dialog .account-card input:focus-visible, .account-dialog button:focus-visible, .account-dialog a:focus-visible { outline-color: #69dfcf; }
.account-dialog .account-consent input { accent-color: #69dfcf; }
.account-dialog .account-consent a { color: #9ae8dd; }
.account-signup-link[hidden] { display: none; }
.account-load-error { position: fixed; z-index: 1000; bottom: 24px; right: 24px; max-width: calc(100vw - 48px); background: #243249; padding: 14px; border-radius: 8px; font: 13px/1.5 'Pretendard', sans-serif; }
.account-return-status { margin: 40px auto; width: fit-content; color: #aab5c5; font-size: 14px; }
