.profile-editor{width:min(620px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:0;border:1px solid #ffffff19;border-radius:24px;background:#111218;color:#ececf4;overflow:auto;box-shadow:0 28px 100px #0007;font-family:var(--sans,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif)}
.profile-editor::backdrop{background:#030409b3;backdrop-filter:blur(6px)}
.profile-editor-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:28px 28px 20px}
.profile-editor-eyebrow{margin:0 0 8px;color:#9397a7;font-size:10px;letter-spacing:.14em}
.profile-editor-heading h2{margin:0;font-size:25px;line-height:1.2;letter-spacing:-.03em;font-weight:550}
.profile-editor-close{width:36px;height:36px;flex:none;border:1px solid #ffffff1c;border-radius:50%;background:transparent;color:#d1d1df;font:25px/1 var(--sans,system-ui,sans-serif);cursor:pointer}
.profile-editor-tabs{display:flex;gap:6px;padding:0 28px 22px}
.profile-editor-tabs>button{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 8px;border:1px solid transparent;border-radius:12px;background:transparent;color:#999dad;font:500 13px/1.3 var(--sans,system-ui,sans-serif);cursor:pointer}
.profile-editor-tabs>button[aria-selected=true]{background:#aaa5f315;border-color:#aaa5f34a;color:#cac6ff}
.profile-tab-state{width:5px;height:5px;border-radius:50%;background:#565967}
[data-status=ready]>.profile-tab-state{background:#83bc9a}[data-status=error]>.profile-tab-state{background:#e6a48d}.has-edits>.profile-tab-state{background:#aaa5f3}
.profile-editor-form{padding:0 28px 24px}.profile-editor-avatar-row{display:flex;align-items:center;gap:18px;margin-bottom:24px;min-height:74px}
.profile-editor-avatar{width:74px;height:74px;flex:none;border-radius:50%;object-fit:cover;background:#1c1e28;border:1px solid #ffffff19}
.profile-editor-avatar-row p{margin:8px 0 0;color:#858b9a;font-size:11px}
.profile-avatar-button{padding:9px 14px;min-height:36px;border:1px solid #ffffff22;border-radius:9px;background:transparent;color:#dedde9;font:500 12px/1.3 var(--sans,system-ui,sans-serif);cursor:pointer}
.profile-editor-field{display:grid;gap:9px;margin-bottom:18px}.profile-field-label{font-size:12px;color:#aeb3c3}
.profile-editor-field input,.profile-editor-field textarea{width:100%;min-height:46px;box-sizing:border-box;padding:12px 14px;border:1px solid #ffffff20;border-radius:10px;background:#0c0d12;color:#ececf4;font:14px/1.5 var(--sans,system-ui,sans-serif);resize:vertical;box-shadow:none}
.profile-editor-field textarea{min-height:116px}.profile-bio-counter{justify-self:end;color:#858b9a;font-size:10px;font-variant-numeric:tabular-nums}
.profile-editor-network-note{font-size:11px;line-height:1.6;color:#9299ac;min-height:18px;margin:0 0 20px}
.profile-editor-tools{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;border-top:1px solid #ffffff0d;padding-top:16px}
.profile-editor-tools button,.profile-reset{border:0;padding:4px 0;background:none;color:#b9b5f4;min-height:36px;font:12px/1.4 var(--sans,system-ui,sans-serif);cursor:pointer}
.profile-editor-message{font-size:12px;line-height:1.5;color:#a6c6b3;overflow-wrap:anywhere;margin:16px 0 0}.profile-editor-message:empty{display:none}.profile-editor-message.error{color:#e6a5ac}
.profile-editor-footer{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-top:24px}.profile-save{min-height:44px;min-width:180px;padding:12px 20px;border:0;border-radius:999px;background:#aaa5f3;color:#15132b;font:550 13px/1.4 var(--sans,system-ui,sans-serif);cursor:pointer}.profile-reset{color:#9096a6}
.profile-editor button:disabled{opacity:.4;cursor:default}.profile-editor input:disabled,.profile-editor textarea:disabled{color:#747989;background:#0f1016}
.profile-editor button:focus-visible,.profile-editor input:focus-visible,.profile-editor textarea:focus-visible{outline:2px solid #aaa5f3;outline-offset:3px}
#model-detail .model-actions .model-profile-edit{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:0 0 auto;width:auto;max-width:100%;min-height:44px;height:auto;margin:0;padding:10px 15px;border:1px solid #aaa5f330;border-radius:12px;background:#aaa5f30a;color:#bcb6f5;font:500 12px/1.3 var(--sans,system-ui,sans-serif);white-space:nowrap;text-transform:none;letter-spacing:0;cursor:pointer}
#model-detail .model-actions .model-profile-edit:hover{background:#aaa5f318;border-color:#aaa5f34a}
#model-detail .model-actions .model-profile-edit:focus-visible{outline:2px solid #aaa5f3;outline-offset:3px}

@media(max-width:600px){.profile-editor{border-radius:20px;max-height:calc(100dvh - 24px)}.profile-editor-heading{padding:22px 20px 18px}.profile-editor-tabs{padding:0 20px 20px}.profile-editor-form{padding:0 20px 20px}.profile-editor-field input,.profile-editor-field textarea{font-size:16px}.profile-editor-heading h2{font-size:23px}.profile-editor-footer{gap:12px}.profile-save{min-width:0;flex:1}.profile-editor-tabs>button{font-size:12px}}
@media(prefers-reduced-motion:reduce){.profile-editor *{scroll-behavior:auto}}

.profile-editor[open]{display:flex;flex-direction:column;height:min(810px,calc(100dvh - 40px));overflow:hidden}
.profile-editor-heading,.profile-editor-tabs{flex-shrink:0}
.profile-editor-form{display:flex;flex-direction:column;flex:1;min-height:0}
#profile-editor-panel{flex:1;min-height:0;overflow:auto;padding-right:4px;scrollbar-width:thin;scrollbar-color:#ffffff25 transparent}
.profile-editor-tools,.profile-editor-message,.profile-editor-footer{flex-shrink:0}
.profile-editor-close{width:44px;height:44px}.profile-avatar-button,.profile-editor-tools button,.profile-reset{min-height:44px}
.profile-editor-heading h2{overflow-wrap:anywhere}
@media(max-width:600px){.profile-editor[open]{height:calc(100dvh - 24px)}.profile-editor-tools{gap:0}.profile-editor-footer{margin-top:16px}.profile-editor-network-note{margin-bottom:12px}}
