/* 账号相关的界面：顶栏登录入口与菜单、登录注册页签、弹窗里的错误提示和删除按钮。风格跟随终端主题。 */
#account { position: relative; display: flex; align-items: center; }
.account-login, .account-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; }
.account-login { background: #2a2c33; }
.account-login:hover, .account-btn:hover, .account-btn[aria-expanded="true"] { background: #2a2c33; color: var(--y); }
.account-btn .avatar { width: 28px; height: 28px; font-size: 15px; }
.account-name { max-width: 8em; overflow: hidden; text-overflow: ellipsis; }
.account-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; min-width: 200px; padding: 6px; background: var(--paper); color: var(--ink);
  box-shadow: 0 18px 40px #0000003d; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); }
.account-head { padding: 10px 12px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.account-head b { display: block; font-size: 14px; }
.account-head small { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.account-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; text-align: left; }
.account-item:hover, .account-item:focus-visible { background: var(--ink); color: var(--y); }
.post-flag { font-size: 11.5px; font-weight: 800; padding: 1px 7px; background: var(--y); color: var(--ink); white-space: nowrap; }
.post-flag.muted { background: #e1e3e8; color: var(--muted); }

.auth-tabs { display: flex; gap: 2px; margin: -6px 0 20px; }
.auth-tabs button { flex: 1; padding: 9px 0; font-weight: 800; background: #eceef2; color: var(--muted); border-bottom: 3px solid transparent; }
.auth-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-bottom-color: var(--y); }
#sheet .sheet-error { margin: 0; padding: 10px 12px; background: #fdecef; color: #a3162c; font-size: 13.5px; font-weight: 600; border-left: 3px solid var(--hot); }
#sheet .sheet-error[hidden] { display: none; }
#sheet .sheet-danger { margin-left: auto; color: #a3162c; }
#sheet .sheet-danger:hover { background: #fdecef; border-color: #f1b6c0; }
#sheet .sheet-comment-del { margin-left: auto; font-size: 12px; color: var(--muted); background: none; border: 0; padding: 0 2px; }
#sheet .sheet-comment-del:hover { color: #a3162c; text-decoration: underline; }
#sheet .sheet-badge { font-style: normal; font-size: 11px; padding: 0 5px; background: var(--y); color: var(--ink); margin-left: 4px; }
#sheet .sheet-reply-guest { justify-content: space-between; font-size: 14px; color: var(--muted); }
#sheet .avatar-choice span { min-width: 44px; font-size: 20px; padding: 4px 8px; }
#sheet .tone-choice span { padding: 0; border: 0; min-height: 0; }
#sheet .tone-choice .avatar { width: 32px; height: 32px; }
#sheet .tone-choice input:checked + span { outline: 3px solid var(--ink); outline-offset: 2px; background: inherit; }

@media (max-width: 620px) {
  .account-name, .account-login span { display: none; }
  .account-login, .account-btn { padding: 0 8px; height: 36px; }
}

/* 邮箱验证码 */
#sheet .code-row { display: flex; gap: 8px; }
#sheet .code-row input { flex: 1; min-width: 0; font-family: var(--mono); letter-spacing: .2em; }
#sheet .code-btn { flex: none; min-width: 116px; padding: 0 14px; background: var(--ink); color: var(--y); font-weight: 800; font-size: 13px; border: 0; }
#sheet .code-btn:disabled { background: #e1e3e8; color: var(--muted); cursor: default; }
#sheet .auth-link { justify-self: start; padding: 0; border: 0; background: none; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
#sheet .auth-link:hover { color: var(--ink); }
#sheet .sheet-form input[type="email"], #sheet .sheet-form input[type="password"] {
  display: block; width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 0; background: #fff;
  color: var(--ink); padding: 10px 12px; line-height: 1.55; font-size: 15px;
}
@media (max-width: 560px) { #sheet .sheet-form input[type="email"], #sheet .sheet-form input[type="password"] { font-size: 16px; } }
