.profile-modal{max-height:calc(100dvh - 40px);overflow-y:auto}
.profile-branding{padding-top:18px;margin-top:14px;border-top:1px solid #292929}
.profile-branding h3{margin:0 0 7px;font-size:14px;color:#f5f5f5}
.profile-branding>p,.profile-brand-status{color:#999;font-size:12px;line-height:1.5}
.profile-branding>p{margin:0 0 14px}
.profile-brand-row{display:flex;gap:14px;align-items:center}
.profile-brand-logo{display:grid;place-items:center;flex:none;width:80px;height:80px;border:1px solid #363636;border-radius:10px;overflow:hidden;background:#202020}
.profile-brand-logo img{width:100%;height:100%;object-fit:contain}
.profile-brand-logo span{padding:8px;text-align:center;color:#888;font-size:11px}
.profile-brand-fields{flex:1;min-width:0}
.profile-brand-fields label{display:block;color:#aaa;font-size:11px;margin-bottom:5px}
.profile-brand-fields input{box-sizing:border-box;width:100%;height:34px;padding:6px 9px;border:1px solid #363636;border-radius:6px;background:#171717;color:#fff;font:inherit;font-size:12px}
.profile-brand-buttons{display:flex;flex-wrap:wrap;gap:9px;margin-top:8px}
.profile-branding button{padding:7px 9px;border:1px solid #353535;border-radius:6px;background:#1b1b1b;color:#ddd;font:inherit;font-size:11px;cursor:pointer}
.profile-branding button:disabled{opacity:.45;cursor:default}
.profile-branding #profileBrandApply{border-color:var(--brand-orange);background:var(--brand-orange);color:#fff}
.profile-brand-status{margin:9px 0 0;min-height:18px}
.profile-brand-crop{padding:14px 0 0}
.profile-brand-crop canvas{display:block;width:min(256px,100%);height:auto;aspect-ratio:1;margin:0 auto;border:1px solid #555;border-radius:4px;touch-action:none;cursor:move;background:repeating-conic-gradient(#303030 0% 25%,#222 0% 50%) 50% / 16px 16px}
.profile-brand-crop label{display:flex;align-items:center;gap:12px;margin:12px auto;width:min(256px,100%);color:#aaa;font-size:12px}
.profile-brand-crop input[type=range]{width:100%;accent-color:var(--brand-orange)}
.profile-brand-crop .profile-brand-buttons{justify-content:center}
.profile-branding [hidden]{display:none!important}
.profile-design{border:0;padding:18px 0 0;margin:0;min-width:0}
.profile-design legend{font-size:12px;font-weight:600;padding-top:18px;color:#ddd}
.profile-design-colors,.profile-design-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0}
.profile-design label{display:flex;flex-direction:column;gap:6px;font-size:11px;color:#aaa}
.profile-design input[type=color]{width:100%;height:38px;padding:3px;border:1px solid #444;background:#171717;border-radius:6px;cursor:pointer}
.profile-design select{min-width:0;width:100%;height:36px;background:#171717;color:#fff;border:1px solid #444;padding:5px;border-radius:6px;font:inherit}
.profile-design-preview{background:var(--preview-bg);color:var(--preview-ink);border:1px solid var(--preview-line);border-radius:var(--preview-radius);font-family:var(--preview-fontFamily);padding:20px;margin:16px 0 8px}
.profile-design-preview strong{font-size:18px;line-height:1.4}
.profile-design-preview p{font-size:12px;color:var(--preview-muted);margin:8px 0 16px}
.profile-design-preview span{display:inline-block;background:var(--preview-accent);color:var(--preview-onAccent);padding:8px 12px;border-radius:var(--preview-radius);font-size:11px}
.profile-design-help{font-size:11px;line-height:1.5;color:#aaa}
@media(max-width:440px){.profile-design-options{grid-template-columns:1fr}}
