.parts-preview-window {
    width: min(720px, 100%);
}

.parts-preview-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.parts-preview-canvas {
    width: 100%;
    height: 260px;
    background: #111a26;
    border: 1px solid #31405a;
    border-radius: 8px;
}

.parts-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 260px;
    overflow-y: auto;
}

.parts-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border: 1px solid #31405a;
    border-radius: 8px;
    background: #16202d;
}

.parts-color-swatch {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    flex: 0 0 auto;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.parts-label {
    flex: 1 1 auto;
    min-width: 90px;
    font-size: 13px;
    color: #dce3ec;
    display: flex;
    flex-direction: column;
}

.parts-label small {
    color: #8b9bb0;
    font-size: 11px;
}

.parts-bit-size,
.parts-offset-select {
    flex: 1 1 140px;
    width: auto;
}

.parts-close-loop-label {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #dce3ec;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .parts-row {
        flex-wrap: wrap;
    }
}
