#profile-dialog{width:min(620px,calc(100vw - 28px));padding:26px;max-height:calc(var(--visible-height,100dvh) - 30px)}.profile-heading h2{margin:0 30px 7px 0}.profile-heading p{margin:0 0 20px;color:var(--accent)!important;font-size:14px}.profile-tabs{display:flex;gap:5px;padding:5px;background:var(--field);border:1px solid var(--line);border-radius:12px;margin:0 0 20px;overflow:auto}.profile-tabs button{flex:1;min-width:max-content;border:0;background:transparent;color:var(--muted);padding:10px;border-radius:8px;font-size:12px}.profile-tabs button[aria-selected=true]{background:var(--tint);color:var(--ink)}#profile-dialog [role=tabpanel]{min-height:180px}#profile-page-profile #profile-email{font-size:12px;overflow-wrap:anywhere}#profile-page-profile #profile-avatar-preview{margin-top:20px}.profile-help{font-size:11px;color:var(--muted);line-height:1.6}.profile-footer{border-top:1px solid var(--line);padding-top:14px;margin-top:18px}.profile-account-actions{display:grid;gap:20px}.profile-danger-zone{padding:16px;border:1px solid #bc597d;border-radius:12px}.profile-danger-zone h4{margin:0 0 8px}.profile-danger-zone p{font-size:12px;line-height:1.6}.profile-danger-zone button{margin:5px 6px 0 0}#profile-statistics{padding:18px;border:1px solid var(--line);border-radius:12px;line-height:1.8;background:var(--field)}#profile-dialog .profile-security-settings h3{font-size:16px;font-weight:650;margin:0 0 14px}.reauth-dialog{width:min(440px,calc(100vw - 28px))}.reauth-dialog label{display:block;font-size:13px;margin:14px 0 7px}.reauth-dialog select{width:100%;padding:10px}.admin-users-table .admin-delete-user{font-size:11px;padding:6px 10px}.admin-delete-report{margin-left:8px}.admin-withdraw-question{font-size:12px}#admin-delete-user-dialog{max-width:520px}.profile-tabs button:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
@media(max-width:500px){#profile-dialog{padding:20px 16px}.profile-tabs{gap:2px}.profile-tabs button{font-size:11px;padding:10px 7px}.profile-heading p{margin-bottom:15px}}

/* Account settings use the same cards and clear controls as the community pages. */
#profile-dialog{width:min(760px,calc(100vw - 28px))}#profile-dialog .profile-heading .eyebrow{display:block;font-size:10px;color:var(--good);letter-spacing:.1em;margin-bottom:9px}#profile-dialog .profile-heading h2{font-size:27px;letter-spacing:-.025em}#profile-dialog .profile-tabs{gap:6px;background:transparent;padding:0;border:0}#profile-dialog .profile-tabs button{min-height:44px;border:1px solid var(--line);background:var(--surface-2);border-radius:9px;padding:10px 12px}#profile-dialog .profile-tabs button[aria-selected=true]{border-color:var(--accent);color:var(--accent);background:var(--tint)}
.profile-card{padding:20px;border:1px solid var(--line);border-radius:13px;background:var(--surface-2);margin:0 0 16px;min-width:0;box-sizing:border-box}.profile-card h3,.profile-card h4{font-size:16px;margin:0 0 8px}.profile-card .profile-help{margin:0 0 14px;font-size:12px}.profile-card label{display:block;font-size:13px;margin:14px 0 7px}.profile-card input:not([type=file]),.profile-card select{width:100%;box-sizing:border-box;min-height:44px;background:var(--field);border:1px solid var(--line);border-radius:9px;color:var(--ink)}.profile-card>small{display:block;color:var(--muted);font-size:11px;line-height:1.7;margin-top:9px}#profile-dialog #profile-email{padding:10px 12px;background:var(--field);border:1px solid var(--line);border-radius:8px;margin:12px 0;color:var(--muted)}#profile-dialog #profile-avatar-preview{margin:14px 0;width:64px;height:64px}.profile-appearance #profile-avatar-grid{margin:14px 0;gap:9px}.profile-card #profile-photo{font-size:12px;max-width:100%}.profile-card #remove-profile-photo{font-size:12px;min-height:40px}#profile-dialog .profile-security-settings{display:grid;gap:0}#profile-dialog .profile-security-settings button{margin:10px 6px 0 0}#profile-dialog .profile-security-settings #totp-code{width:auto}#profile-dialog .profile-account-actions{gap:0}.profile-danger-zone{border-color:#bc597d80;background:var(--surface-2)}.profile-danger-zone button{min-height:42px}
#profile-dialog #profile-statistics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:0;background:transparent;border:0}.profile-stat-card{display:flex;flex-direction:column;gap:8px;padding:20px 12px;background:var(--surface-2);border:1px solid var(--line);border-radius:12px;text-align:center;min-width:0}.profile-stat-card strong{font-size:23px;color:var(--ink)}.profile-stat-card>span{font-size:12px;color:var(--muted)}#profile-badges{padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);font-size:13px;line-height:1.8}#profile-save-state{font-size:11px;line-height:1.6;color:var(--muted);margin-right:auto;max-width:65%}#profile-save-state[data-dirty=true]{color:var(--accent)}
@media(max-width:500px){#profile-dialog .profile-tabs{display:grid;grid-template-columns:1fr 1fr;overflow:visible}#profile-dialog .profile-tabs button{min-width:0;padding:9px 6px;font-size:12px}.profile-card{padding:16px}#profile-dialog #profile-statistics{gap:7px}.profile-stat-card{padding:15px 7px}.profile-stat-card strong{font-size:19px}.profile-stat-card>span{font-size:10px}#profile-save-state{font-size:10px;max-width:58%}}
#info-dialog,#report-dialog{width:min(740px,calc(100vw - 28px));max-height:calc(var(--visible-height,100dvh) - 32px);overflow:auto;padding:28px 32px;scrollbar-gutter:stable}#info-dialog h2,#report-dialog h2{margin:0 32px 18px 0;font-size:25px}.info-content,.report-guide{font-size:14px;line-height:1.8;overflow-wrap:anywhere}.info-content .info-intro,#report-dialog .info-intro{font-size:15px;line-height:1.8;color:var(--ink);margin:0 0 24px}.info-content section+section{border-top:1px solid var(--line);padding-top:19px;margin-top:22px}.info-content h3,.report-guide h3{font-size:16px;line-height:1.5;margin:0 0 10px;color:var(--ink)}.info-content p,.info-content ul,.report-guide ul{margin:0}.info-content ul,.report-guide ul{padding-left:21px}.info-content li+li,.report-guide li+li{margin-top:9px}#info-dialog .info-note,#report-dialog .info-note{padding:14px 16px;background:var(--field);border:1px solid var(--line);border-radius:10px;font-size:12px;line-height:1.8;margin:22px 0 0;color:var(--muted)}.report-guide{padding:16px;background:var(--field);border:1px solid var(--line);border-radius:12px;margin:0 0 22px}#report-dialog label{display:block;font-weight:600;font-size:14px;margin-bottom:9px}#report-dialog label small{font-weight:400;color:var(--muted);margin-left:9px}#report-dialog textarea{width:100%;min-height:160px;max-height:320px;resize:vertical;padding:12px 14px;font:inherit;font-size:13px;line-height:1.7}#report-dialog>p:not(.info-intro){font-size:12px;line-height:1.8}#report-dialog #send-report{margin-top:6px}
@media(max-width:500px){#info-dialog,#report-dialog{padding:23px 19px;max-height:calc(var(--visible-height,100dvh) - 24px)}#info-dialog h2,#report-dialog h2{font-size:22px}.info-content,.report-guide{font-size:13px}.info-content .info-intro,#report-dialog .info-intro{font-size:14px}}

#profile-dialog[open]{display:flex;flex-direction:column;height:min(840px,calc(var(--visible-height,100dvh) - 28px));overflow:hidden;box-sizing:border-box}#profile-dialog .profile-heading,#profile-dialog .profile-tabs,#profile-dialog .profile-footer,#profile-dialog>#profile-message{flex-shrink:0}#profile-dialog [role=tabpanel]{overflow:auto;min-height:0;flex:1;padding:2px 4px 22px}#profile-dialog .profile-footer{display:flex;flex-direction:row-reverse;align-items:center;gap:12px;justify-content:space-between;background:var(--surface);padding:14px 0 max(4px,env(safe-area-inset-bottom));margin-top:8px}#profile-dialog #profile-message{font-size:12px;max-height:65px;overflow:auto;margin:8px 0}.profile-unsaved{max-width:min(520px,calc(100vw - 24px))}.profile-unsaved .modal-actions{flex-wrap:wrap}#profile-dialog #save-profile{min-height:44px;margin:0}@media(max-width:500px){#profile-dialog[open]{height:calc(var(--visible-height,100dvh) - 16px);max-height:calc(var(--visible-height,100dvh) - 16px)}#profile-dialog .profile-heading p{margin-bottom:8px}#profile-dialog .profile-tabs{margin-bottom:10px}}


#profile-dialog #save-profile{flex:0 0 auto;white-space:nowrap;padding-left:14px;padding-right:14px}#profile-dialog #profile-save-state{flex:1;min-width:0;max-width:none}
