#account-profile-root{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
#account-profile-root>.panel{min-width:0;margin:0;padding:20px}
#account-profile-root h2{margin:0 0 16px;font-size:18px}
#account-profile-root .form-grid{gap:12px}
#account-profile-root label{font-size:13px}
#account-profile-root input{min-width:0;width:100%;font-size:14px}
#account-profile-root input[readonly]{color:var(--muted);background:var(--panel2)}
#account-profile-root .muted{font-size:12px;line-height:1.6}
#account-profile-root button{justify-self:start}
#account-profile-root [hidden]{display:none!important}
.account-photo-row{display:flex;gap:16px;align-items:flex-start}
.account-photo-preview{display:flex;align-items:center;justify-content:center;flex:0 0 72px;width:72px;height:72px;overflow:hidden;border-radius:50%;background:linear-gradient(135deg,#6853ad,#c96db0);color:#fff;font-size:28px}
.account-photo-preview img{width:100%;height:100%;object-fit:cover}
.account-photo-row form{display:grid;gap:8px;min-width:0;flex:1}
.account-profile-actions{display:flex;flex-wrap:wrap;gap:8px}
.account-social-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}
.account-social-row:last-child{border-bottom:0}
.account-social-row>div{display:grid;gap:3px;min-width:0;font-size:14px}
.account-social-row small{font-size:12px;overflow-wrap:anywhere}
.account-social-row button{flex-shrink:0}
.account-profile-edit{margin:10px 0 4px}
@media(max-width:900px){#account-profile-root{grid-template-columns:minmax(0,1fr);gap:10px}#account-profile-root>.panel{padding:16px}#account-profile-root h2{font-size:17px;margin-bottom:12px}.account-photo-row{gap:12px}.account-photo-preview{width:60px;height:60px;flex-basis:60px}.account-social-row{padding:12px 0}}

#account-profile-root>.profile-access-gate{grid-column:1/-1;width:100%;max-width:480px}
.account-password-dialog{width:min(480px,calc(100vw - 24px));max-height:calc(100dvh - 24px);margin:auto;padding:0;overflow:auto;border:1px solid var(--line);border-radius:20px;background:var(--panel);color:var(--text);box-shadow:0 20px 70px rgba(0,0,0,.35)}
.account-password-dialog::backdrop{background:rgba(0,0,0,.55);backdrop-filter:blur(6px)}
.account-password-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;border-bottom:1px solid var(--line)}
#account-profile-root .account-password-dialog h2{margin:0;font-size:18px}
.account-password-dialog .modal-close-button{display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:5px;border:0;background:transparent;color:inherit;cursor:pointer}
.account-password-dialog .modal-close-button svg{width:22px;height:22px}
.account-password-body{padding:20px}
@media(max-width:900px){.account-password-dialog>header,.account-password-body{padding:16px}}

#account-profile-root>.account-withdrawal{grid-column:1/-1}
.account-withdrawal>p{margin:0 0 14px}
.account-password-dialog>header{position:sticky;top:0;z-index:2;background:var(--panel)}
.account-password-body.form-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;margin:0;max-width:none}
.account-password-body.form-grid>p{margin:0}
.account-password-body.form-grid>label{margin:0}
#account-profile-root .account-withdraw-check{display:flex;align-items:flex-start;gap:9px;line-height:1.6}
#account-profile-root .account-withdraw-check>input{width:16px;height:16px;flex:0 0 16px;margin:2px 0 0;padding:0;accent-color:var(--accent)}
.account-withdraw-submit{background:#a82e43;border-color:#a82e43;color:#fff}
body:has(.account-password-dialog[open]){overflow:hidden}

