/* Keep view controls outside the garment canvas, at every viewport width. */
#stage{--controls-width:100px}
#stage canvas{right:auto!important;width:calc(100% - var(--controls-width))!important}
#stage .stage-actions{position:absolute;top:14px;right:10px;bottom:14px;width:80px;display:flex;flex-direction:column;gap:8px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;z-index:5}
#stage .stage-actions>div{position:static!important;inset:auto!important;transform:none!important;display:flex!important;flex-direction:column;align-items:stretch;width:100%!important;max-width:none!important;margin:0!important;padding:3px!important;gap:3px!important;background:#faf9f4ed;border:1px solid #ffffffc9;border-radius:7px;box-shadow:0 3px 12px #2d27100a}
#stage .stage-actions button{width:100%;min-height:34px;padding:8px 4px!important;font-size:11px!important;line-height:1.35;white-space:normal;border:0;box-shadow:none;word-break:keep-all;border-radius:4px}
#stage .stage-actions button.active,#stage .stage-actions button[aria-pressed=true]{background:#59472d;color:#fff}
#stage .stage-actions .live,#stage .view-tools>span,#stage .stage-bottom{display:none!important}
#stage .model-loading{position:absolute;inset:0 var(--controls-width) 0 0;z-index:7;display:grid;place-items:center;background:#e5e2dc91;backdrop-filter:blur(2px);pointer-events:auto}
#stage .model-loading[hidden]{display:none!important}
#stage .model-loading-card{width:min(280px,calc(100% - 24px));padding:28px 20px 22px;display:flex;flex-direction:column;align-items:center;background:#fcfaf6f5;border:1px solid #fff;border-radius:12px;box-shadow:0 14px 40px #312a1b1a;text-align:center;color:#443d31}
#stage .loading-brand{font:12px Georgia,serif;letter-spacing:2.4px;color:#78664b}
#stage .loading-spinner{width:36px;height:36px;margin:24px 0 18px;border:2px solid #e6dfd1;border-top-color:#8a6a3e;border-radius:50%;animation:model-spin .9s linear infinite}
#stage .model-loading strong{font-size:14px;font-weight:600}
#stage .model-loading #status{position:static!important;inset:auto!important;transform:none!important;display:block!important;opacity:1!important;visibility:visible!important;margin:12px 0 0!important;padding:0!important;max-width:100%!important;background:none!important;box-shadow:none!important;border:0!important;color:#7d7567;font-size:11px;line-height:1.6;min-height:18px}
#stage .loading-track{width:100%;height:3px;margin-top:18px;background:#e8e1d5;overflow:hidden;border-radius:4px}
#stage .loading-track span{display:block;height:100%;background:#957446;transition:width .15s}
#stage .loading-track.indeterminate span{width:35%!important;animation:model-progress 1.3s ease-in-out infinite}
#stage .has-error .loading-spinner,#stage .has-error .loading-track{display:none}
#stage .has-error strong{margin-top:20px}#stage .model-loading button{margin-top:15px;background:#59472d;color:white;border:0;font-size:12px}
@keyframes model-spin{to{transform:rotate(360deg)}}@keyframes model-progress{from{transform:translateX(-100%)}to{transform:translateX(400%)}}
@media(max-width:760px){#stage{--controls-width:78px}#stage .stage-actions{top:8px;right:6px;bottom:8px;width:66px;gap:5px}#stage .stage-actions button{min-height:28px;padding:6px 2px!important;font-size:10px!important}#stage .stage-actions>div{padding:2px!important;gap:1px!important}#stage .model-loading-card{padding:20px 14px}#stage .loading-brand{font-size:10px}#stage .loading-spinner{width:28px;height:28px;margin:18px 0 14px}#stage .model-loading strong{font-size:12px}}
@media(prefers-reduced-motion:reduce){#stage .loading-spinner,#stage .loading-track span{animation:none;transition:none}}

#stage .stage-actions .collar-view-button{display:flex;flex-direction:column;align-items:center;gap:1px;padding:6px 4px!important}#stage .collar-view-button svg{display:block;width:54px;height:40px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}#stage .collar-view-button span{font-size:10px;letter-spacing:.2px}#stage .collar-view-button[aria-pressed=true]{background:#59472d;color:#fff}
@media(max-width:760px){#stage .stage-actions .collar-view-button{padding:3px 2px!important}#stage .collar-view-button svg{width:40px;height:28px}#stage .collar-view-button span{font-size:9px}}
