.accountProfile {display:flex;align-items:center;gap:16px;margin:5px 0 12px;color:var(--muted)}
#accountDialog {width:min(430px,92vw);max-height:88vh;max-height:88dvh;overflow:auto;padding:clamp(16px,4vw,24px);background:var(--panel,#211d2c);color:var(--white);border:1px solid var(--stroke);border-radius:12px}
#accountDialog::backdrop {background:rgba(13,10,21,.78)}
#accountDialog header {display:flex;align-items:center;justify-content:space-between}
#accountDialog h2 {font-size:25px;line-height:1.2}
#accountClose {font-size:26px;line-height:1;padding:6px}
#accountDialog p {line-height:1.45;color:var(--muted);margin:12px 0}
#accountDialog form {display:grid;gap:13px;margin-block:15px;justify-items:start}
#accountDialog form h3,#accountDialog form p {margin:0}
.accountActions {display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px}
#accountEmailTools #accountEmailStatus {font-size:14px;color:var(--lav)}
#accountEmailStatus:empty {display:none}
#accountDialog label {display:grid;gap:5px;width:100%;color:var(--muted);font-size:14px}
#accountDialog input:not([type=file]) {width:100%;min-width:0;padding:9px 11px;border:1px solid var(--stroke);border-radius:7px;background:var(--bg);color:var(--white)}
.accountTabs {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin:16px 0;padding:4px;background:var(--bg);border:1px solid var(--stroke);border-radius:9px}
.accountTabs button {min-height:38px;padding:6px;border:1px solid transparent;border-radius:6px;color:var(--muted);font-weight:600}
.accountTabs button[aria-pressed=true] {color:var(--white);border-color:var(--stroke);background:var(--panel,#302b3d)}
#accountAuthPanel,.accountFormOptions {display:grid;grid-template-columns:minmax(0,1fr)}
#accountAuthPanel > *,.accountFormOptions > * {grid-area:1/1}
/* Inactive fields set the size of the shared row, even when the hint wraps. */
#accountAuthPanel [inert] {visibility:hidden}
#accountDialog #accountCredentials {justify-items:stretch;margin:0}
.accountFormOptions:not(:has(> :not([hidden]))) {display:none}
#accountSignupEmailField {display:grid;gap:5px}
.accountEmailHeading {display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:2px 8px}
#accountDialog .accountEmailHeading label {width:auto}
#accountSignupHint {font-size:12px;color:var(--muted)}
#accountForgot {place-self:center start}
#accountSignupState {align-self:center}
#accountSubmit,#accountGoogle {width:100%}
#accountGoogle {margin-top:10px;text-decoration:none}
#accountTransfer {border-top:1px solid var(--stroke);padding-top:13px;margin:16px 0}
#accountTransfer summary {cursor:pointer}
#accountTransfer .textbtn {display:block;margin:7px 0}
#accountDialog [hidden],#accountTransfer [hidden] {display:none}
#accountDialog #accountStatus {color:var(--lav);font-size:14px}
#accountStatus:empty {display:none}
@media(max-width:520px){#library .titleRow>.textbtn#accountLibrary {font-size:12px;padding-inline:0;align-self:center}}
