.account-anchor { position: relative; height: 0; z-index: 20; }
.account-corner { position: absolute; top: 10px; right: 16px; width: 238px; background: none; }
.account-corner-inner { position: relative; opacity: .76; transition: opacity .15s; }
.account-corner-inner:hover, .account-corner-inner:focus-within, .account-corner-inner.is-expanded { opacity: 1; }
.account-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; align-items: center; justify-items: end; }
.account-field { display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: center; gap: 4px; grid-column: 1 / -1; width: 100%; font-size: 10px; font-weight: 400; color: #8794a7; white-space: nowrap; }
.account-field input { width: 100%; min-width: 0; height: 18px; border: 0; border-bottom: 1px solid transparent; border-radius: 0; padding: 0; background: transparent; color: #718096; font: 11px/1.5 ui-monospace, "Microsoft YaHei", monospace; }
.account-field input:hover, .account-field input:focus { color: var(--text); border-bottom-color: #cbd5e1; outline: none; }
.account-save-button, .account-more-button { border: 0; border-radius: 0; padding: 1px 0; min-height: 0; background: none; color: #7c8a9e; font-size: 10px; font-weight: 400; line-height: 1.5; white-space: nowrap; }
.account-save-button:hover, .account-more-button:hover { color: var(--brand); text-decoration: underline; }
#account-update { grid-column: 1; justify-self: end; }
#account-details-toggle { grid-column: 2; justify-self: end; }
.account-more-button[aria-expanded="true"] { color: var(--brand); }
.account-message { color: var(--muted); font-size: 10px; line-height: 1.5; margin: 4px 0 0; text-align: right; }
.account-message[data-error="true"] { color: var(--red); }
.account-signed-out { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px 8px; font-size: 10px; color: var(--muted); }
.account-details { position: absolute; top: calc(100% + 5px); right: 0; z-index: 40; width: min(420px, calc(100vw - 24px)); max-height: calc(100dvh - 150px); overflow: auto; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 15px 35px #0b132420; }
.account-details .account-save-button { padding: 8px 12px; border-radius: 7px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 600; }
.account-detail-actions { display: flex; justify-content: space-between; gap: 12px; }
.account-text-button { display: inline-block; color: var(--brand); border: 0; background: none; padding: 4px 0; font-size: 13px; }
.account-fine { color: var(--muted); font-size: 12px; line-height: 1.7; }
.account-history { padding-top: 10px; }
.account-history-head { display: flex; align-items: center; gap: 14px; }
.account-history-head h3 { font-size: 16px; flex: 1; }
.account-history > .account-fine { margin-top: 5px; }
#account-history-message { margin-top: 12px; font-size: 13px; color: var(--muted); }
#account-history-list { list-style: none; padding: 0; margin: 0; }
.account-history-item { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.account-history-copy { flex: 1; min-width: 0; }
.account-history-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: var(--ink); }
.account-history-copy p { font-size: 12px; color: var(--muted); }
.account-history-copy a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--muted); }
.account-history-actions { display: flex; flex-direction: column; gap: 3px; flex: none; }
.account-history-actions button { border: 0; background: none; color: var(--brand); font-size: 12px; padding: 2px 0; }
.account-history-actions .account-remove { color: var(--muted); }
.account-logout { margin-top: 12px; }
.account-login { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; font-size: 14px; }
.account-login summary { cursor: pointer; color: var(--brand); }
#account-member-details[hidden] + .account-login { border-top: 0; margin-top: 0; padding-top: 0; }
.account-login label { display: block; margin-top: 12px; margin-bottom: 5px; font-size: 13px; }
.account-login input { width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 7px; }
.account-login form > button { margin-top: 14px; }
@media (max-width: 999px) {
  .account-anchor + main .hero { padding-top: 72px; }
  .account-anchor + main:is(.updates-main, .community-main) { padding-top: 52px; }
}
@media (max-width: 719px) {
  .account-corner { top: 6px; right: 12px; width: min(230px, calc(100vw - 24px)); }
  .account-anchor + main .hero { padding-top: 74px; }
}
