
/* Compact account dialogs; scoped to account/profile only. */
#accountDialog,.rt-profile-dialog{box-sizing:border-box;width:calc(100% - 24px)!important;max-width:480px!important;max-height:calc(100dvh - 40px)!important;padding:20px!important;border:1px solid #734153!important;border-radius:20px!important;background:linear-gradient(140deg,#26151f,#151419 62%)!important;overflow:auto}
#accountDialog .dialog-head,.rt-profile-dialog .rt-profile-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 18px}
#accountDialog h2,.rt-profile-dialog h2{font-size:21px!important;line-height:1.25;margin:0!important}
#accountDialog .dialog-head>button,.rt-profile-dialog .rt-profile-head>button{width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important;padding:0!important;margin:0!important;font-size:20px!important;border-radius:10px}
#loggedContent .rt-account-identity{display:flex;gap:12px;align-items:center;padding:0 0 16px;margin:0 0 16px;border-bottom:1px solid #49303c}
#loggedContent .rt-account-identity .profile-avatar{width:48px!important;height:48px!important;min-width:48px!important;flex-basis:48px!important;font-size:20px!important}
#loggedContent .rt-account-identity strong{display:block;font-size:17px;line-height:1.3;overflow-wrap:anywhere}
#loggedContent .rt-account-identity small{display:block;font-size:12px;color:#ceacbb;margin-top:4px}
#loggedContent #accountName{display:none!important}
#loggedContent .account-links{display:contents}
#loggedContent .rt-account-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#loggedContent .rt-account-actions button{width:100%!important;min-height:44px!important;margin:0!important;padding:10px!important;font-size:13px!important;font-weight:600!important;border-radius:11px!important;text-align:left}
#loggedContent #accountVotingAccess{border:0!important;border-top:1px solid #49303c!important;border-radius:0!important;padding:12px 0 0!important;margin:16px 0 0!important;background:none!important;font-size:12px}
#loggedContent #accountVotingAccess p{margin:0!important;font-size:12px}
#accountDialog #accountError:empty{display:none}
.rt-profile-dialog #profileForm{display:grid!important;gap:14px!important;margin:0!important}
.rt-profile-dialog #profileForm>label{font-size:12px!important;line-height:1.4;margin:0!important;display:grid;gap:6px;color:#d2b7c3}
.rt-profile-dialog #profileForm input:not([type=file]),.rt-profile-dialog #profileForm select{box-sizing:border-box;width:100%;min-width:0;min-height:44px!important;height:44px!important;padding:8px 11px!important;margin:0!important;font-size:16px!important;border-radius:10px!important}
.rt-profile-dialog #profileForm .profile-picture-editor{display:grid;grid-template-columns:56px minmax(0,1fr);align-items:center;gap:8px 12px;padding:14px 0!important;margin:0!important;border:0!important;border-top:1px solid #49303c!important;border-bottom:1px solid #49303c!important;border-radius:0!important;background:none!important}
.rt-profile-dialog .profile-picture-editor h3{grid-column:2;grid-row:1;font-size:14px!important;margin:0!important}
.rt-profile-dialog #profileAvatarPreview{grid-column:1;grid-row:1/3}
.rt-profile-dialog #profileAvatarPreview .profile-avatar{width:56px!important;height:56px!important;min-width:56px!important;flex-basis:56px!important;font-size:24px!important}
.rt-profile-dialog .profile-picture-editor>p{grid-column:2;grid-row:2;font-size:11px!important;line-height:1.45;margin:0!important}
.rt-profile-dialog .profile-picture-editor>label{grid-column:1/-1;font-size:12px!important;margin:4px 0 0!important}
.rt-profile-dialog input[type=file]{box-sizing:border-box;width:100%;font-size:12px!important;padding:8px!important;min-height:44px!important;margin:6px 0!important;border-radius:10px!important}
.rt-profile-dialog input::file-selector-button{font-size:12px!important;padding:7px!important}
.rt-profile-dialog .profile-picture-editor small{font-size:10px!important;line-height:1.4;display:block;color:#bda6b2}
.rt-profile-dialog #removeAvatarBtn{grid-column:1/-1;justify-self:start;font-size:12px!important;padding:6px 9px!important;min-height:32px!important}
.rt-profile-dialog #saveProfileBtn{font-size:14px!important;padding:10px 16px!important;min-height:44px!important;margin:0!important}
.rt-profile-dialog #profileStatus,.rt-profile-dialog #profileError{font-size:12px;margin:0}
.rt-profile-dialog #profileStatus:empty,.rt-profile-dialog #profileError:empty{display:none}
.rt-profile-dialog .admin-badge{font-size:10px!important}
.rt-profile-dialog [hidden],#accountDialog [hidden]{display:none!important}
