.profile-edit{scroll-margin-top:90px}
.profile-edit-fields{display:grid;grid-template-columns:repeat(2,minmax(0,13rem));gap:10px;margin-top:16px}
.profile-edit-fields label{display:grid;gap:6px;color:#dae4cf;font-size:13px;font-weight:600}
.profile-edit :is(input[type=number],select){min-width:0;max-width:100%;padding:8px 10px;color:#e9eddc;background:#10170c;border:1px solid #59664b;border-radius:5px;font:inherit}
.profile-edit :is(input[type=number],select):focus-visible{outline:2px solid #d9ba66;outline-offset:2px}
.profile-edit .trader-pill select{flex:0 0 auto}
.profile-edit-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.profile-edit-actions p{margin:0}

/* Keep every trader control inside its card, including narrow Safari layouts. */
.profile-edit,.profile-edit .profile-setup,.profile-edit form,.profile-edit-fields>label,.profile-trader-list,.profile-edit .trader-pill{min-width:0}
.profile-edit-fields{grid-template-columns:repeat(2,minmax(0,1fr));max-width:28rem;align-items:start}
.profile-edit-fields label{display:flex;flex-direction:column;align-items:stretch}
.profile-edit :is(input[type=number],select){box-sizing:border-box;width:100%;min-height:44px}
.profile-edit-fields .profile-level-source{font-size:12px;line-height:1.5;font-weight:400}
@media(max-width:640px){
 .profile-edit .profile-trader-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .profile-edit .trader-pill{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding:12px;align-content:start;align-items:start;font-size:14px}
 .profile-edit .trader-pill>span{min-width:0;overflow-wrap:anywhere}
 .profile-edit .trader-pill select{width:100%;max-width:100%;min-width:0;min-height:46px;font-size:16px;line-height:1.4}
 .profile-edit-fields :is(input[type=number],select){font-size:16px;min-height:48px}
 .profile-edit-actions{align-items:stretch}
 .profile-edit-actions>.btn{width:100%;min-height:48px;white-space:normal}
 .profile-edit-actions>p{flex-basis:100%;overflow-wrap:anywhere}
}
@media(max-width:359px){.profile-edit .profile-trader-list,.profile-edit-fields{grid-template-columns:minmax(0,1fr)}}
