.toranj-logo-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 1px solid var(--ar-border-color, #e3e7ec);
    border-radius: var(--ar-border-radius);
}

.toranj-logo-preview {
    width: 120px;
    height: 120px;
    flex: 0 0 120px;
    display: grid;
    place-items: center;
    border: 1px solid #dfe4e8;
    border-radius: 12px;
    overflow: hidden;
    color: #7c8793;
}

    .toranj-logo-preview img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.toranj-logo-preview, .toranj-logo-canvas {
    background-color: #fff;
    background-image: conic-gradient(#edf0f2 25%, transparent 0 50%, #edf0f2 0 75%, transparent 0);
    background-size: 16px 16px;
}

.toranj-logo-tools {
    min-width: 0;
}

.toranj-logo-modal .modal-dialog {
    max-width: 440px;
    padding: 12px;
    margin-inline: auto;
}

.toranj-logo-modal .modal-content {
    border: 0;
    border-radius: 24px;
    overflow: hidden;
}

.toranj-logo-modal .modal-header, .toranj-logo-modal .modal-footer {
    border: 0;
}

.toranj-logo-modal .btn-close {
    margin: 0;
    margin-inline-start: auto;
}

.toranj-logo-modal .modal-body {
    padding: 8px 24px 20px;
}

.toranj-logo-modal .modal-footer {
    gap: 8px;
    padding: 16px 24px;
}

.toranj-logo-canvas {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    height: auto;
    border: 1px solid #dfe4e8;
    border-radius: 12px;
    touch-action: none;
    cursor: grab;
}

    .toranj-logo-canvas:active {
        cursor: grabbing;
    }

    .toranj-logo-canvas:focus-visible {
        outline: 2px solid var(--ar-primary, #448c74);
        outline-offset: 3px;
    }

@media (max-width: 480px) {
    .toranj-logo-card {
        flex-direction: column;
        align-items: start;
    }
}
