.j3d-seamless__editor {
    margin-top: 24px;
}

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

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

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

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

.j3d-seamless__pot-note {
    margin: 0 0 24px;
    color: #7a8499;
    font-size: 13px;
}

.j3d-seamless__section {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid #eceef5;
}

.j3d-seamless__section h2,
.j3d-seamless__preview-wrap h2,
.j3d-seamless__instructions h2 {
    margin: 0 0 16px;
    color: #3d4a5c;
    font-size: 19px;
}

.j3d-seamless__mode-buttons,
.j3d-seamless__background-buttons,
.j3d-seamless__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.j3d-seamless__mode-buttons .btn-u,
.j3d-seamless__background-buttons .btn-u,
.j3d-seamless__actions .btn-u {
    box-sizing: border-box;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.j3d-converter .j3d-seamless__mode-buttons .is-active,
.j3d-converter .j3d-seamless__background-buttons .is-active {
    background: #424cb9;
    border-color: #424cb9;
    color: #fff;
}

.j3d-seamless__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 20px 28px;
}

.j3d-seamless__field {
    min-width: 0;
    margin-bottom: 16px;
    flex: 1 1 220px;
}

.j3d-seamless__field > label {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 7px;
    color: #4a5568;
    font-size: 13px;
    font-weight: 600;
}

.j3d-seamless__range-field output {
    color: #424cb9;
    white-space: nowrap;
}

.j3d-seamless__range-field input[type="range"] {
    display: block;
    width: 100%;
    min-height: 30px;
    accent-color: #424cb9;
}

.j3d-seamless__range-field input:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.j3d-seamless__checkbox-label {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 6px 0 0;
    color: #4a5568;
    font-weight: 600;
}

.j3d-seamless__checkbox-label input {
    width: 18px;
    height: 18px;
    accent-color: #424cb9;
}

.j3d-seamless__status,
.j3d-seamless__preview-hint {
    min-height: 22px;
    margin: 12px 0;
    color: #5a6278;
}

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

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

.j3d-seamless__error {
    min-height: 19px;
    margin: 8px 0;
    color: #c53030;
    font-size: 14px;
}

.j3d-seamless__preview-wrap {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid #eceef5;
}

.j3d-seamless__preview-wrap canvas {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 260px;
    max-height: 620px;
    margin: 0 auto;
    background: #f1f3f8;
    border: 1px solid #dfe3ed;
    border-radius: 6px;
    touch-action: none;
    cursor: grab;
}

.j3d-seamless__preview-wrap canvas.is-dragging {
    cursor: grabbing;
}

.j3d-seamless__preview-wrap canvas:focus-visible {
    outline: 3px solid rgba(66, 76, 185, .35);
    outline-offset: 2px;
}

.j3d-seamless__mode-buttons button:focus,
.j3d-seamless__background-buttons button:focus,
.j3d-seamless__actions button:focus {
    border-color: #424cb9;
    outline: 3px solid rgba(66, 76, 185, .25);
    outline-offset: 1px;
}

@media (max-width: 640px) {
    .j3d-seamless__preview-wrap canvas {
        min-height: 220px;
    }

    .j3d-seamless__editor {
        padding: 16px;
    }

    .j3d-seamless__actions,
    .j3d-seamless__actions .btn-u {
        width: 100%;
    }

    .j3d-seamless__mode-buttons .btn-u,
    .j3d-seamless__background-buttons .btn-u {
        flex: 1 1 120px;
    }
}
