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

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

.j3d-stl__section h2,
.j3d-stl__instructions h2 {
    margin: 0 0 16px;
    color: #3d4a5c;
    font-size: 19px;
}

.j3d-stl__button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.j3d-stl__button-group .btn-u {
    box-sizing: border-box;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.j3d-converter .j3d-stl__button-group .is-active {
    background: #424cb9;
    border-color: #424cb9;
    color: #fff;
}

.j3d-stl__button-group button:focus,
.j3d-stl__viewport-actions button:focus {
    border-color: #424cb9;
    outline: 3px solid rgba(66, 76, 185, .25);
    outline-offset: 1px;
}

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

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

.j3d-stl__status {
    min-height: 22px;
    margin: 12px 0;
    color: #5a6278;
}

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

.j3d-stl__viewport-wrap {
    margin-top: 26px;
}

.j3d-stl__canvas-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 280px;
    max-height: 640px;
    background: #eef0f3;
    border: 1px solid #dfe3ed;
    border-radius: 6px;
    overflow: hidden;
}

.j3d-stl__canvas-wrap canvas {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
    cursor: grab;
}

.j3d-stl__canvas-wrap canvas:active {
    cursor: grabbing;
}

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

.j3d-stl__viewport-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.j3d-stl__viewport-actions .btn-u {
    box-sizing: border-box;
    min-height: 44px;
}

.j3d-stl__viewport-actions .btn-u:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.j3d-stl__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-stl__file-info div {
    min-width: 150px;
}

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

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

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

@media (max-width: 640px) {
    .j3d-stl__editor {
        padding: 16px;
    }

    .j3d-stl__canvas-wrap {
        min-height: 220px;
    }

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

    .j3d-stl__button-group .btn-u {
        flex: 1 1 120px;
    }
}
