.profile-modal-overlay{z-index:50;background:color-mix(in srgb, var(--color-surface-canvas) 74%, transparent);place-items:center;padding:16px;display:grid;position:fixed;inset:0;overflow-y:auto}.profile-modal{box-sizing:border-box;width:min(var(--modal-width,560px), 100%);border:1px solid var(--color-border-subtle);background:var(--color-surface-elevated);color:var(--foreground);box-shadow:var(--effect-card-float);border-radius:22px;padding:22px 24px 24px;transition:width .18s;position:relative}.profile-modal:focus,.profile-modal__step:focus{outline:none}.profile-modal__step,.profile-modal__step>form{flex-direction:column;gap:16px;display:flex}.profile-modal__close{border:1px solid var(--color-border-default);width:44px;height:44px;color:var(--foreground);cursor:pointer;background:0 0;border-radius:12px;place-items:center;padding:0;display:grid;position:absolute;top:20px;right:20px}.profile-modal__close svg{width:18px;height:18px}.profile-modal__close:enabled:hover{background:var(--surface-search)}.profile-modal__close:disabled{opacity:.45;cursor:not-allowed}.profile-modal__close:focus-visible,.profile-modal__text-action:focus-visible{outline:2px solid var(--focus-control);outline-offset:2px}.profile-modal__heading{flex-direction:column;gap:4px;padding-right:56px;display:flex}.profile-modal__title{color:var(--color-text-primary);letter-spacing:-.22px;margin:0;font-size:22px;font-weight:800;line-height:28px}.profile-modal__description{color:var(--color-text-secondary);margin:0;font-size:14px;line-height:21px}.profile-modal__actions{flex-wrap:wrap;justify-content:flex-end;gap:10px;display:flex}.profile-modal__actions .button{min-height:44px;padding:10px 16px;font-size:15px}.profile-modal__text-action{min-height:44px;color:var(--color-position-label);font:inherit;cursor:pointer;white-space:nowrap;background:0 0;border:0;align-items:center;gap:8px;padding:4px 0;font-size:13px;font-weight:500;line-height:18px;display:inline-flex}.profile-modal__text-action:enabled:hover{text-decoration:underline}.profile-modal__text-action:disabled{opacity:.45;cursor:not-allowed}.profile-modal__feedback{color:var(--text-secondary);overflow-wrap:anywhere;font-size:14px;line-height:20px}.profile-modal__feedback:empty{display:none}.profile-modal__feedback:focus{outline:none}.profile-modal__feedback[role=alert]{color:var(--color-status-error)}.profile-modal__feedback p{margin:0 0 8px}.profile-modal__feedback p:last-child{margin-bottom:0}.profile-modal__feedback .button{margin-top:8px}.profile-modal__feedback a{color:var(--foreground)}.profile-modal__error{color:var(--color-status-error);margin:0;font-size:14px;line-height:20px}.profile-modal__note{color:var(--text-secondary);margin:0;font-size:13px;line-height:18px}.profile-modal__panel{background:var(--color-surface-search);border-radius:12px;flex-direction:column;align-items:flex-start;gap:12px;padding:14px 16px;font-size:14px;line-height:20px;display:flex}.profile-modal__panel p{color:var(--text-secondary);margin:0}.profile-modal--username,.profile-modal--username-confirm,.profile-modal--username-cooldown{--modal-width:508px}.username-current{color:var(--color-text-secondary);margin:-6px 0 -4px;font-size:13px;line-height:18px}.username-current strong{color:var(--color-text-primary)}.username-field{flex-direction:column;gap:8px;display:flex}.username-field__heading{justify-content:space-between;align-items:center;gap:8px;display:flex}.username-field__label{color:var(--color-text-primary);font-size:13px;font-weight:700;line-height:18px}.username-field__count{color:var(--color-text-secondary);font-variant-numeric:tabular-nums;font-size:12px;line-height:16px}.username-input{border:1px solid var(--color-border-default);background:var(--color-surface-search);border-radius:10px;align-items:stretch;height:42px;display:flex}.username-input>span{border-right:1px solid var(--color-border-default);width:38px;color:var(--color-text-secondary);flex:none;place-items:center;font-size:14px;display:grid}.username-input input{min-width:0;color:var(--foreground);font:inherit;background:0 0;border:0;border-radius:0 10px 10px 0;outline:0;flex:1;padding:0 12px;font-size:15px;line-height:20px}.username-input:focus-within{border-color:var(--color-focus-input);box-shadow:inset 0 0 0 1px var(--color-focus-input)}.username-input[data-tone=success]{border-color:var(--color-status-positive);box-shadow:inset 0 0 0 1px var(--color-status-positive)}.username-input[data-tone=error]{border-color:var(--color-status-error);box-shadow:inset 0 0 0 1px var(--color-status-error)}.username-status{min-height:16px;color:var(--color-text-secondary);align-items:center;gap:4px;margin:-10px 0 -12px;font-size:12px;line-height:16px;display:flex}.username-status--success{color:var(--color-status-positive)}.username-status--error{color:var(--color-status-error)}.username-status svg{flex:none}.username-status a{color:inherit;text-underline-offset:2px;text-decoration:underline}.username-guidance{color:var(--color-text-secondary);margin:0;font-size:11px;line-height:16px}.username-policy{background:var(--color-surface-search);color:var(--color-text-body);border-radius:10px;align-items:flex-start;gap:10px;padding:12px 14px;font-size:13px;line-height:19px;display:flex}.username-policy>svg{color:var(--color-text-secondary);flex:none;margin-top:2px}.username-policy p{margin:0}.username-comparison{background:var(--color-surface-search);border-radius:12px;justify-content:center;align-items:center;gap:16px;margin:0;padding:18px;display:flex}.username-comparison del{color:var(--color-text-secondary);font-size:16px;font-weight:700;line-height:22px}.username-comparison strong{color:var(--color-text-primary);overflow-wrap:anywhere;font-size:22px;font-weight:800;line-height:28px}.username-consequences{color:var(--color-text-body);flex-direction:column;gap:6px;margin:0;padding-left:18px;font-size:13px;line-height:19px;display:flex}.username-consequences strong{color:var(--color-text-primary)}.username-cooldown{background:var(--color-surface-search);border-radius:12px;align-items:flex-start;gap:12px;padding:16px;display:flex}.username-cooldown__icon{background:var(--color-tint-primary-14);width:34px;height:34px;color:var(--color-position-label);border-radius:10px;flex:none;place-items:center;display:grid}.username-cooldown__date{color:var(--color-text-primary);margin:0 0 4px;font-size:14px;font-weight:700;line-height:20px}.username-cooldown__note{color:var(--color-text-secondary);margin:0;font-size:13px;line-height:19px}.profile-modal--choose-avatar,.profile-modal--choose-banner,.profile-modal--remove-avatar,.profile-modal--remove-banner{--modal-width:508px}.profile-modal--adjust-avatar,.profile-modal--adjust-banner{--modal-width:714px}.profile-media-drop{border:1.5px dashed var(--color-border-default);background:var(--color-surface-search);text-align:center;border-radius:14px;flex-direction:column;align-items:center;gap:8px;padding:28px 20px;display:flex}.profile-media-drop[data-dragging]{border-color:var(--color-action-primary);background:var(--color-tint-primary-08)}.profile-media-drop--error{border-color:color-mix(in srgb, var(--color-status-error) 55%, transparent);background:color-mix(in srgb, var(--color-status-error) 5%, var(--color-surface-search))}.profile-media-drop__icon{background:var(--color-tint-primary-16);width:48px;height:48px;color:var(--color-position-label);border-radius:24px;place-items:center;display:grid}.profile-media-drop--error .profile-media-drop__icon{background:color-mix(in srgb, var(--color-status-error) 14%, transparent);color:var(--color-status-error)}.profile-media-drop__title{color:var(--color-text-primary);margin:4px 0 0;font-size:14px;font-weight:700;line-height:20px}.profile-media-drop__hint{color:var(--color-text-secondary);margin:0;font-size:13px;line-height:18px}.profile-media-drop--error .profile-media-drop__hint{color:var(--color-status-error)}.profile-media-drop__action.button{min-height:40px;margin-top:6px}.profile-media-drop__formats{color:var(--color-text-secondary);margin:2px 0 0;font-size:11px;line-height:16px}.profile-media-compare{background:var(--color-surface-search);color:var(--color-text-secondary);border-radius:12px;align-items:center;gap:20px;padding:16px 18px;display:flex}.profile-media-compare__current.avatar{width:64px;height:64px}.profile-media-compare__default{border:1.5px dashed var(--border-hover);border-radius:32px;place-items:center;width:64px;height:64px;display:grid}.profile-media-compare__default img{width:54px;height:54px}.profile-media-compare__banner{background:var(--color-surface-elevated);border-radius:8px;flex:none;width:150px;height:56px;display:block;position:relative;overflow:hidden}.profile-media-compare__banner img{object-fit:cover;width:100%;height:100%}.profile-media-compare__banner--default{background:radial-gradient(50% 50% at 50% 50%, #2a1752, var(--color-position-background) 60%, var(--color-surface-search))}.profile-media-compare__banner--default img{object-fit:contain;width:auto;height:110%;position:absolute;bottom:0;right:4%}.profile-media-compare__label{color:var(--color-text-body);font-size:13px;line-height:18px}.profile-media-progress{background:var(--color-position-divider);border-radius:2px;height:4px;display:block;position:relative;overflow:hidden}.profile-media-progress:after{background:var(--color-brand-primary);content:"";border-radius:2px;width:40%;animation:1.2s ease-in-out infinite profile-media-progress;position:absolute;inset:0 auto 0 0}@keyframes profile-media-progress{0%{transform:translate(-100%)}to{transform:translate(250%)}}.profile-crop-preview__header{padding-bottom:18px;display:block;position:relative}.profile-crop-preview__avatar{border:2px solid var(--color-surface-search);background:var(--color-surface-elevated);border-radius:50%;width:36px;height:36px;position:absolute;bottom:0;left:10px;overflow:hidden}.profile-crop-preview__avatar img{object-fit:cover;width:100%;height:100%}@media (max-width:640px){.profile-modal-overlay{place-items:start center}.profile-modal{padding:18px 16px 20px}.profile-modal__close{top:14px;right:14px}.profile-modal__title{font-size:20px;line-height:26px}.profile-modal__actions .button{flex:120px}.username-comparison{flex-wrap:wrap}}@media (prefers-reduced-motion:reduce){.profile-modal{transition:none}.profile-media-progress:after{opacity:.6;width:100%;animation:none}}
