/* 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}}
