.j3d-circle-crop__editor,
.j3d-circle-crop__result {
    margin-top: 24px;
}

.j3d-circle-crop__file-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin: 0 0 20px;
    padding: 14px 16px;
    background: #fafbfe;
    border: 1px solid #eceef5;
    border-radius: 8px;
}

.j3d-circle-crop__file-info div {
    min-width: 150px;
}

.j3d-circle-crop__file-info dt {
    font-size: 12px;
    color: #7a8499;
}

.j3d-circle-crop__file-info dd {
    margin: 3px 0 0;
    color: #2d3748;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.j3d-circle-crop__stage-wrap {
    display: flex;
    justify-content: center;
}

.j3d-circle-crop__stage {
    position: relative;
    width: min(100%, 640px);
    aspect-ratio: 1;
    overflow: hidden;
    background: #222936;
    border: 1px solid #cbd2e0;
    border-radius: 8px;
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.j3d-circle-crop__stage.is-dragging {
    cursor: grabbing;
}

.j3d-circle-crop__source {
    position: absolute;
    display: block;
    max-width: none;
    pointer-events: none;
    transform-origin: center center;
    user-select: none;
}

.j3d-circle-crop__selection {
    position: absolute;
    z-index: 2;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 9999px rgba(13, 19, 31, .58), 0 0 0 1px rgba(13, 19, 31, .8);
    pointer-events: none;
}

.j3d-circle-crop__hint {
    margin: 12px 0 18px;
    color: #5a6278;
    font-size: 13px;
}

.j3d-circle-crop__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 26px;
    align-items: flex-end;
}

.j3d-circle-crop__zoom {
    flex: 1 1 260px;
}

.j3d-circle-crop__zoom label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    color: #4a5568;
    font-weight: 600;
    font-size: 13px;
}

.j3d-circle-crop__zoom output {
    color: var(--j3d-primary, #424cb9);
}

.j3d-circle-crop__zoom input[type="range"] {
    width: 100%;
    accent-color: var(--j3d-primary, #424cb9);
}

.j3d-circle-crop__status {
    min-height: 22px;
    margin: 18px 0 12px;
    color: #4a5568;
}

.j3d-circle-crop__status.is-error {
    color: #a12622;
}

.j3d-circle-crop__status.is-success {
    color: #176b3a;
}

.j3d-circle-crop__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.j3d-circle-crop__actions [aria-disabled="true"] {
    pointer-events: none;
    opacity: .55;
}

.j3d-circle-crop__result h2 {
    margin-top: 0;
}

.j3d-circle-crop__result-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 420px);
    min-height: 180px;
    margin: 0 auto 14px;
    overflow: hidden;
    background-color: #f1f3f8;
    background-image: linear-gradient(45deg, #e5e8f0 25%, transparent 25%), linear-gradient(-45deg, #e5e8f0 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e5e8f0 75%), linear-gradient(-45deg, transparent 75%, #e5e8f0 75%);
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    background-size: 16px 16px;
    border: 1px solid #dfe3ed;
    border-radius: 8px;
}

.j3d-circle-crop__result-preview img {
    display: block;
    width: min(100%, 380px);
    height: auto;
}

.j3d-circle-crop__result-size {
    min-height: 20px;
    margin: 0 0 16px;
    text-align: center;
    color: #5a6278;
}

@media (max-width: 640px) {
    .j3d-circle-crop__editor,
    .j3d-circle-crop__result {
        padding: 16px;
    }

    .j3d-circle-crop__stage {
        width: 100%;
    }

    .j3d-circle-crop__controls .btn-u,
    .j3d-circle-crop__actions .btn-u,
    .j3d-circle-crop__actions button {
        min-height: 44px;
    }
}
