.account-dialog{width:min(420px,calc(100vw - 24px));max-height:90dvh;padding:0;border:1px solid #d2c9b7;border-radius:16px;background:#faf6ee;color:#2b2620;box-shadow:0 18px 70px #0007;word-break:keep-all}
.account-dialog::backdrop{background:#181612a8}
.account-dialog header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #ddd4c6}
.account-dialog h2{margin:0;font-size:20px;white-space:nowrap}
.account-dialog header button{border:0;background:none;font-size:18px}
.account-body{padding:18px 20px 22px;overflow-y:auto;max-height:calc(90dvh - 58px)}
#account-canonical{margin:0 0 8px;line-height:1.6}#account-canonical a{color:#205b64;font-weight:700;text-underline-offset:3px}
#account-tabs{display:flex;gap:8px;margin-bottom:18px}
.account-dialog button{white-space:nowrap}
#account-tabs button{flex:1;border:1px solid #c8bcaa;border-radius:8px;background:#fff;padding:10px}
#account-tabs button[aria-current=page]{background:#77522d;color:white}
#account-form{display:grid;gap:8px}
#account-form label{font-weight:600;font-size:13px;white-space:nowrap}
#account-form input{width:100%;min-width:0;min-height:42px;padding:9px 11px;border:1px solid #bcae9a;border-radius:8px;font:inherit}
#account-hint{margin:5px 0 2px;color:#5f594f;font-size:12px;line-height:1.6}
#account-status{margin:0;color:#9a301d;font-size:13px}
#account-submit,#account-logout{min-height:42px;border:0;border-radius:8px;background:#77522d;color:#fff;padding:9px 16px;margin-top:8px}
#account-submit:disabled,#account-logout:disabled{opacity:.55;cursor:wait}
#account-member p{overflow-wrap:anywhere}
.account-dialog :focus-visible{outline:3px solid #2c65ad;outline-offset:2px}
