.bag-modes,.bag-tools {display:flex;align-items:center;gap:.35rem;padding:.45rem 1rem;background:var(--paper,#fbf7ef);color:#432c35}
.bag-modes {border-bottom:1px solid #d7c4c4}
.bag-modes button,.bag-tools button {border:0;min-height:44px;padding:.4rem .8rem;font:600 .87rem/1.28 var(--sans,system-ui,sans-serif);background:transparent;color:#563744;cursor:pointer}
.bag-modes button[aria-pressed="true"] {color:#fff8ec;background:#6c4655}
.bag-modes button:hover,.bag-tools button:hover {box-shadow:inset 0 -2px #9b646d}
.bag-maquette {width:min(730px,calc(100vw - 30px))}
.bag-stage {height:clamp(240px,61vw,555px);max-height:calc(95dvh - 165px);min-height:145px;position:relative;touch-action:none;user-select:none;cursor:grab;overflow:hidden;background:radial-gradient(ellipse at 42% 33%,#f9e0ce 0%,#edccbd 46%,transparent 82%),linear-gradient(155deg,#e4b8ab 30%,#d2a69b)}
.bag-stage.dragging {cursor:grabbing}
.bag-stage:focus-visible {outline:2px solid #855d67;outline-offset:-3px}
.bag-stage canvas {display:block;width:100%;height:100%}
.bag-tools {justify-content:space-between;gap:.3rem 1rem;border-top:1px solid #d8b9ad;padding-block:.15rem}
.bag-tools span {font:400 .81rem/1.35 var(--sans,system-ui,sans-serif)}
.bag-tools > div {display:flex;align-items:center}
.bag-tools [data-turn] {font-size:1.18rem;padding-inline:.35rem;width:44px}
.bag-tools [data-reset] {white-space:nowrap;text-decoration:underline;text-underline-offset:.2em;padding-inline:.4rem}
.model-viewer .bag-modes[hidden],.model-viewer .bag-maquette[hidden] {display:none}
@media (max-width:580px) {
  .bag-stage {height:clamp(245px,91vw,435px)}
  .bag-modes {padding:.2rem .55rem}
  .bag-tools {padding:.28rem .6rem;gap:.3rem .5rem;flex-wrap:wrap}
}
