.sqp-app-container {
    display: flex;
    flex-direction: row;
    height: 85vh;
    min-height: 600px;
    max-height: 900px;
    background: #1e1e1e;
    border-radius: 8px;
    color: #ddd;
    padding: 0;
    overflow: hidden;
    border: 1px solid #333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media(max-width: 1024px) {
    .sqp-app-container {
        flex-direction: column;
        height: auto;
    }
    .sqp-controls {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid #111;
    }
    .sqp-preview-col {
        height: 600px;
    }
}

.sqp-controls {
    width: 350px;
    background: #252525;
    border-right: 1px solid #111;
    overflow-y: auto;
    padding: 20px;
    border-radius: 0;
    box-shadow: none;
}

.sqp-preview-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #1e1e1e;
    position: relative;
}

.sqp-viewer-wrap {
    flex: 1;
    border: none;
    border-radius: 0;
    background: transparent;
    position: relative;
    width: 100%;
}

#sqp_3d {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
}

.sqp-footer {
    background: #252525;
    border-top: 1px solid #111;
    border-radius: 0;
    padding: 15px;
    text-align: right;
}

.sqp-section { margin-bottom: 20px; }
.sqp-section label { color: #ccc; font-weight: 600; margin-bottom: 8px; font-size: 0.85em; text-transform: uppercase; letter-spacing: 0.5px; display: block; }
.sqp-input { width: 100%; background: #3a3a3a; border: 1px solid #222; color: #fff; padding: 8px 12px; border-radius: 4px; font-size: 0.9em; box-sizing: border-box; }
.sqp-input:focus { border-color: #00B060; outline: none; }
.sqp-file-upload { background: #333; border: 1px dashed #555; border-radius: 6px; padding: 20px; color: #aaa; text-align: center; cursor: pointer; transition: all 0.2s; display: block; }
.sqp-file-upload input { display: none; }
.sqp-file-upload:hover { border-color: #00B060; color: #fff; background: #3a3a3a; }

.sqp-file-list {
    margin-top: 8px;
    font-size: 0.8em;
    color: #888;
    text-align: center;
    max-height: 80px;
    overflow-y: auto;
}

.sqp-btn-cart { background: #00B060 !important; color: #fff; border-radius: 4px; padding: 12px; font-weight: bold; width: 100%; border: none; cursor: pointer; text-transform: uppercase; letter-spacing: 1px; transition: background 0.2s; }
.sqp-btn-cart:hover { background: #009955 !important; }

.bambu-card { background: #2a2a2a; border-radius: 6px; border: 1px solid #1a1a1a; margin-bottom: 15px; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.bambu-card-header { background: #333; padding: 10px 15px; font-size: 0.85em; font-weight: 600; display: flex; justify-content: space-between; border-bottom: 1px solid #1a1a1a; color: #eee; text-transform: uppercase; letter-spacing: 0.5px; }
.bambu-card-body { padding: 15px; }

.bambu-fil-item { margin-bottom: 15px; }
.bambu-fil-item:last-child { margin-bottom: 0; }
.bambu-fil-num { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 4px; font-size: 0.85em; font-weight: bold; color: white; text-shadow: 0 1px 2px rgba(0,0,0,0.5); flex-shrink: 0; }
.bambu-fil-select, .bambu-color-select { font-size: 0.85em; padding: 6px; }

.bambu-tree-plate { margin-bottom: 12px; }
.bambu-tree-plate:last-child { margin-bottom: 0; }
.bambu-tree-plate-header { display: flex; justify-content: space-between; align-items: center; background: #333; padding: 8px 12px; border-radius: 4px; font-size: 0.85em; }
.bambu-tree-plate-header strong { display: flex; align-items: center; gap: 8px; color: #ddd; }
.bambu-tree-plate-header .plate-icon { color: #00B060; }
.bambu-tree-objects { padding: 8px 0 4px 20px; border-left: 1px solid #444; margin-left: 12px; }
.bambu-tree-obj { font-size: 0.85em; color: #aaa; padding: 4px 0; display: flex; justify-content: space-between; align-items: center; }
.bambu-tree-obj-name { display: flex; align-items: center; gap: 8px; }
.bambu-tree-obj-name span.bullet { color: #555; }

.spinner { width: 40px; height: 40px; border: 4px solid #fff; border-top-color: transparent; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sqp-tech-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; font-size: 0.85em; color: #666; margin-top: 8px; background: #1a1a1a; padding: 8px; border-radius: 4px; border: 1px solid #333; }
.sqp-total-line { font-size: 1.3em; font-weight: bold; margin-bottom: 10px; }