/* 3D studio controls + Sides list icons (A3). */
.flat-zoom-controls .studio-button{display:inline-flex!important;align-items:center;gap:6px;padding:0 12px!important}
.flat-zoom-controls .studio-button svg{width:15px!important;height:15px!important;fill:none!important;stroke:currentColor!important}
.flat-zoom-controls .studio-button[aria-expanded=true]{background:var(--accent-soft,#f0efff)!important;color:var(--accent,#5e67e6)!important;border-color:#c9c4fb!important}

.studio-pop{position:fixed;z-index:1000;width:236px;padding:14px;border-radius:14px;background:#fff;border:1px solid #e7e5ee;box-shadow:0 12px 32px #1d1b3014,0 2px 6px #1d1b300d;font:13px/1.3 var(--font-ui,Inter,system-ui,sans-serif);color:#24242c}
.studio-pop .studio-label{margin:0 0 8px;font-size:12px;font-weight:500;color:#777}
.studio-pop .studio-label+*{margin-bottom:14px}
.studio-swatches{display:grid;grid-template-columns:repeat(6,28px);justify-content:space-between}
.studio-swatches button,.studio-custom{width:28px;height:28px;padding:0;border-radius:50%;border:1px solid #0000001f;background:var(--sw);cursor:pointer;position:relative;display:grid;place-items:center}
.studio-swatches [aria-pressed=true]{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--accent,#5e67e6)}
.studio-custom{border:1px dashed #b8b6c2;color:#777;font-size:16px;overflow:hidden}
.studio-custom[aria-pressed=true]{border-style:solid;color:transparent}
.studio-custom input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;border:0;padding:0}
.studio-seg{display:grid;grid-template-columns:1fr 1fr;padding:3px;border-radius:9px;background:#f2f1f4}
.studio-seg button{height:30px;border:0;border-radius:7px;background:transparent;font:500 12.5px var(--font-ui,Inter,sans-serif);color:#666;cursor:pointer}
.studio-seg button[aria-pressed=true]{background:#fff;color:#24242c;box-shadow:0 1px 2px #0000001a}
.studio-reset{display:block;margin:0 auto;padding:4px 8px;border:0;background:none;font:500 12px var(--font-ui,Inter,sans-serif);color:#777;cursor:pointer}
.studio-reset:hover{color:#24242c}

/* Dark backgrounds: keep the stage chrome readable. */
.preview-model-stage.studio-dark .panel-view-chips button{background:#ffffff14!important;color:#e8e8ee!important;border-color:#ffffff24!important}
.preview-model-stage.studio-dark .panel-view-chips button[aria-pressed=true]{background:#ffffff2e!important;color:#fff!important;border-color:#ffffff55!important}
.preview-model-stage.studio-dark .stage-hint{color:#a9a9b6!important}
.preview-model-stage.studio-dark .rotation-symbol{color:#c9c9d4!important}
.preview-model-stage{transition:background-color .25s ease}

/* Sides list: draw outline icons, not filled black shapes; Background row shows the side's real colour. */
.pro-inspector .sp-tool svg,.pro-inspector .sp-group svg{fill:none!important;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.pro-inspector .sp-layer-type.sp-bg-swatch{border-radius:4px;background:var(--sw);box-shadow:inset 0 0 0 1px #00000026}
.pro-inspector .sp-layer-type.sp-bg-swatch svg{display:none}

/* Editor: "Give feedback" lives at the foot of the left icon rail, clear of the 3D controls. */
body.pro-editor .give-feedback{left:8px!important;right:auto!important;bottom:14px!important;width:64px;padding:8px 4px!important;border-radius:10px!important;text-align:center;line-height:1.25;white-space:normal;font-size:11px!important;box-shadow:none!important;border:1px solid #e7e5ee!important;background:#fff!important;color:#555!important}
body.pro-editor .give-feedback:hover{color:#24242c!important;background:#f6f5f9!important}
.studio-swatches{align-items:center}
.studio-pop label.studio-custom{margin:0!important}
.flat-zoom-controls>button{display:inline-flex!important;align-items:center!important;justify-content:center!important;line-height:1!important}
/* Studio panel header: title, drag handle (desktop), close */
.studio-pop .studio-head{display:flex;align-items:center;justify-content:space-between;margin:-4px -4px 10px 0;cursor:grab;user-select:none;touch-action:none}
.studio-pop.dragging{box-shadow:0 18px 44px #1d1b302e,0 2px 6px #1d1b3014;cursor:grabbing}
.studio-pop.dragging .studio-head{cursor:grabbing}
.studio-pop .studio-head b{font-size:13px;font-weight:600}
.studio-pop .studio-close{width:28px;height:28px;padding:0;border:0;border-radius:50%;background:var(--field,#f4f4f4);color:#3a3a44;display:grid;place-items:center;cursor:pointer}
.studio-pop .studio-close:hover{background:#e9e8ef}
.studio-pop .studio-close svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
@media (max-width:760px){.studio-pop .studio-head{cursor:default;margin-bottom:8px}.studio-pop .studio-close{width:32px;height:32px}}
