/* Native web approximation of liquid glass. Surface transforms independently of form text. */
html { scrollbar-gutter: stable; }
.account-trigger { flex-shrink: 0; }
.account-trigger:active { transform: scale(.93); }
.account-trigger.is-expanded { opacity: 0; pointer-events: none; }
.account-dialog[open] { display: block; animation: none; }
.account-dialog {
  position: fixed; margin: 0; padding: 0; max-width: none; max-height: none;
  background: transparent; border: 0; overflow: visible; isolation: isolate;
}
.account-dialog::backdrop { background: rgb(20 25 36 / .12); backdrop-filter: none; }
.account-surface {
  clip-path: inset(0 round 28px);
  position: absolute; inset: 0; border-radius: 28px; transform-origin: 0 0;
  background: linear-gradient(135deg, #ffffff48, #ffffff08 48%, #ffffff26), rgb(246 249 252 / .76);
  border: 1px solid rgb(255 255 255 / .9);
  box-shadow: inset 0 1px 2px #fff, inset 0 -1px 1px #ffffff60, 0 24px 70px #24304529, 0 4px 12px #2430450c;
  backdrop-filter: blur(28px) saturate(160%); -webkit-backdrop-filter: blur(28px) saturate(160%);
  pointer-events: none;
}
.account-scroll { position: relative; height: 100%; overflow: auto; overscroll-behavior: contain; border-radius: 28px; scrollbar-width: thin; }
.account-content { padding: 28px; }
.account-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.account-emblem { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--glass-border); background: #ffffff4d; }
.account-emblem .icon { width: 22px; height: 22px; }
.account-close { width: 36px; height: 36px; color: var(--muted); }
.account-content h2 { font-size: 27px; letter-spacing: -.7px; margin: 0 0 8px; font-weight: 650; outline: none; }
.account-description { font-size: 13px; line-height: 1.65; color: var(--muted); margin: 0 0 24px; }
.account-form { display: grid; gap: 17px; }
.account-label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.account-input-wrap { position: relative; }
/* Edge 自带显示密码按钮会与本站按钮重复；仅隐藏这个原生按钮。 */
.account-form input[data-password]::-ms-reveal { display: none; }
.account-form input {
  display: block; width: 100%; height: 47px; border: 1px solid rgb(110 120 140 / .2); border-radius: 13px;
  padding: 0 14px; font-size: 15px; color: var(--ink); background: rgb(255 255 255 / .46);
  box-shadow: inset 0 1px 2px #28364a04; transition: border-color .2s, box-shadow .2s;
}
.account-form input::placeholder { color: #777d88; font-size: 13px; }
.account-form input:focus { border-color: var(--accent); outline: 2px solid color-mix(in srgb, var(--accent) 14%, transparent); outline-offset: 2px; }
.account-form input[type="password"], .account-form input[data-password] { padding-right: 64px; }
.account-password-toggle { position: absolute; right: 5px; top: 2px; height: 43px; min-width: 50px; font-size: 12px; color: var(--muted); border-radius: 9px; }
.account-code { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.account-code button { padding: 0 13px; border: 1px solid var(--line); background: #ffffff50; border-radius: 13px; font-size: 12px; font-weight: 550; }
.account-submit { width: 100%; min-height: 47px; border-radius: 14px; font-size: 14px; margin-top: 4px; }
.account-links { display: flex; gap: 8px; justify-content: space-between; align-items: center; margin-top: 20px; font-size: 12px; }
.account-links span { color: var(--muted); }
.account-text-button { min-height: 36px; color: var(--accent); font-size: 12px; border-radius: 6px; }
.account-message { font-size: 12px; line-height: 1.7; color: var(--ink); background: var(--selected); padding: 10px 12px; border-radius: 10px; margin: 16px 0 0; }
.account-message:empty { display: none; }
.account-preview-note { font-size: 10px; line-height: 1.6; color: var(--muted); margin: 18px 0 0; text-align: center; }
:root[data-appearance="dark"] .account-surface { background: linear-gradient(135deg, #ffffff0d, #ffffff02 60%), rgb(30 34 44 / .84); border-color: #ffffff30; box-shadow: inset 0 1px 1px #ffffff30, 0 24px 70px #0006; }
:root[data-appearance="dark"] .account-emblem,
:root[data-appearance="dark"] .account-code button { background: #ffffff0a; }
:root[data-appearance="dark"] .account-form input { background: #11151c50; border-color: #ffffff28; }
:root[data-appearance="dark"] .account-form input::placeholder { color: #a2a6b3; }
@media (max-width: 560px) {
  .top-actions { gap: 7px; }
  .top-actions .search { flex: 1; min-width: 0; }
  .top-actions > .icon-button { flex: 0 0 36px; }
  .account-content { padding: 23px; }
  .account-form input { font-size: 16px; } /* Avoid iOS zoom when typing. */
  .account-description { margin-bottom: 21px; }
}
@supports not (backdrop-filter: blur(1px)) { .account-surface { background: var(--surface); } }
@media (prefers-reduced-transparency: reduce) { .account-surface { background: var(--surface) !important; backdrop-filter: none; -webkit-backdrop-filter: none; } }
@media (prefers-reduced-motion: reduce) { :root:not([data-motion="force"]) .account-trigger:active { transform: none; } }

.account-password-toggle { display: grid; place-items: center; }
.account-password-toggle .icon { width: 20px; height: 20px; }

.account-captcha-row { display:grid; grid-template-columns:minmax(0,1fr) 140px; gap:10px; align-items:center; }
.account-captcha-row img { display:block; width:140px; height:42px; border-radius:8px; }
.account-help { font-size:11px; color:var(--muted); margin:7px 0 0; }
.account-trap { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.account-form button:disabled { opacity:.55; cursor:wait; }
.account-profile-email { overflow-wrap:anywhere; }
@media(max-width:360px){.account-captcha-row{grid-template-columns:minmax(0,1fr) 110px}.account-captcha-row img{width:110px;height:33px}}

#account-email-status:not(:empty){font-size:13px;line-height:1.6;font-weight:600;color:#a51d3c;background:rgba(222,38,77,.09);border-left:3px solid #df244c;padding:9px 12px;margin:9px 0 0;border-radius:4px 10px 10px 4px}#account-email-status:empty{display:none}

#account-email-status[data-available=true]{color:#246548;background:rgba(36,101,72,.09);border-left-color:#39845f}

.account-notice{box-sizing:border-box;width:min(340px,calc(100vw - 40px));max-height:calc(100dvh - 40px);padding:24px;border:1px solid #ffffffaa;border-radius:22px;background:#f7f8fa;color:#24272d;box-shadow:0 16px 60px #0002}.account-notice::backdrop{background:#13172255}.account-notice h3{margin:0 0 12px;font-size:18px}.account-notice p{margin:0 0 22px;line-height:1.7;white-space:pre-wrap}.account-notice button{display:block;margin-left:auto;border:0;border-radius:24px;padding:10px 22px;background:#df244c;color:white;font:inherit;font-weight:600;cursor:pointer}
