.avatar-editor-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(8, 12, 20, 0.92);
    padding: 1rem;
    box-sizing: border-box;
}

.avatar-editor-modal.hidden {
    display: none !important;
}

body.avatar-editor-open {
    overflow: hidden;
}

.avatar-editor-modal__title {
    color: #f1f5f9;
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 1rem;
    text-align: center;
}

.avatar-editor-modal__stage {
    width: min(92vw, 360px);
    aspect-ratio: 1;
    position: relative;
}

.avatar-editor-modal__canvas {
    width: 100%;
    height: 100%;
    display: block;
    touch-action: none;
    cursor: grab;
}

.avatar-editor-modal__canvas:active {
    cursor: grabbing;
}

.avatar-editor-modal__zoom {
    width: min(92vw, 360px);
    margin: 1.25rem 0 1rem;
    accent-color: var(--office-accent, #3b82f6);
}

.avatar-editor-modal__actions {
    display: flex;
    gap: 0.75rem;
    width: min(92vw, 360px);
}

.avatar-editor-modal__btn {
    flex: 1;
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.avatar-editor-modal__btn--ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

.avatar-editor-modal__btn--primary {
    background: var(--office-accent, #3b82f6);
    color: #fff;
}

.avatar-editor-modal__btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.avatar-editor-modal__hint {
    margin: 0.75rem 0 0;
    color: #94a3b8;
    font-size: 0.8rem;
    text-align: center;
    max-width: 360px;
}

.profile-avatar-edit.is-loading {
    opacity: 0.6;
    pointer-events: none;
}
