.rotation-enabled .bottle-wrap{bottom:135px;height:460px;width:260px;cursor:grab;touch-action:pan-y;user-select:none;-webkit-user-select:none}
.rotation-enabled .bottle-wrap.is-turning{cursor:grabbing}
.rotation-enabled .bottle-wrap:focus-visible{outline:2px solid #a76d7e;outline-offset:6px;border-radius:30%}
.rotation-enabled .bottle-wrap svg{pointer-events:none}
.rotation-enabled .pedestal{bottom:100px}
.rotation-enabled .preview-bottom{bottom:99px}
.rotation-toolbar{position:absolute;z-index:5;bottom:10px;left:25px;right:25px;max-width:390px;margin:auto;color:#806554}
.rotation-buttons{display:flex;justify-content:center;gap:8px}
.rotation-buttons button{border:1px solid #cbb09d;background:#fff9efc9;border-radius:5px;min-height:33px;padding:6px 14px;font:9px var(--sans);color:#805768}
.rotation-buttons button:hover{background:#fffaf3}
.rotation-buttons button span{font-size:17px;vertical-align:middle;line-height:1;margin:0 3px}
.rotation-buttons #rotate-front{background:#813c4e;color:#fff7ec;border-color:#813c4e;font-size:8px}
.rotation-range-row{display:flex;align-items:center;gap:10px;margin:10px auto 0;max-width:300px;font-size:8px}
.rotation-range-row input{flex:1;min-width:20px;height:3px;margin:0;accent-color:#813c4e}
.rotation-range-row output{width:34px;text-align:right;font-variant-numeric:tabular-nums}
.rotation-hint{text-align:center;font-size:7px;letter-spacing:.2px;line-height:1.5;margin:6px 0 0;color:#977d68}
.preview-stage.expanded.rotation-enabled .bottle-wrap{bottom:135px;height:min(65vh,580px);width:330px}
.preview-stage.expanded.rotation-enabled .pedestal{bottom:100px}
@media(min-width:1550px){.rotation-enabled .bottle-wrap{height:490px;width:280px}}
@media(max-width:1100px){.rotation-enabled .bottle-wrap{height:440px;width:250px}.rotation-toolbar{left:16px;right:16px}.rotation-buttons{gap:6px}.rotation-buttons button{padding:6px 10px;font-size:8px}}
@media(max-width:760px){.rotation-enabled .bottle-wrap{height:320px;width:185px;bottom:130px}.rotation-enabled .pedestal{bottom:100px}.rotation-enabled .preview-bottom{bottom:98px}.rotation-toolbar{bottom:8px;left:18px;right:18px}.rotation-buttons button{font-size:9px;padding:6px 13px;min-height:34px}.rotation-buttons #rotate-front{font-size:9px}.rotation-range-row{font-size:8px}.rotation-hint{font-size:7px}.preview-stage.expanded.rotation-enabled .bottle-wrap{height:min(64vh,520px);width:290px;bottom:135px}}
@media(prefers-reduced-motion:reduce){.rotation-enabled .bottle-wrap{transition:none}}

/* Three view axes plus an explicit upright pose. */
.preview-stage.rotation-enabled{height:720px}
.rotation-enabled .bottle-wrap{bottom:215px;transform:translateX(-50%) perspective(1000px) rotateX(var(--bottle-pitch,0deg)) rotateZ(var(--bottle-roll,-7deg));transform-origin:50% 50%;touch-action:none;transition:transform .18s ease}
.rotation-enabled .bottle-wrap.is-turning{transition:none}
.rotation-enabled .pedestal{bottom:180px}
.rotation-enabled .preview-bottom{bottom:174px}
.rotation-toolbar{bottom:8px;max-width:390px}
.rotation-buttons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.rotation-buttons button{min-width:0;min-height:30px;padding:5px 4px;font-size:8px}
.rotation-pose-buttons{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:6px}
.rotation-buttons #rotate-upright{background:#813c4e;border-color:#813c4e;color:#fff7ec}
.rotation-buttons #rotate-360[aria-pressed="true"]{background:#ecd4ce;border-color:#ab7281;color:#813c4e}
.rotation-buttons button:disabled{cursor:default;opacity:.55}
.rotation-range-row{max-width:none;margin-top:7px;gap:8px;font-size:7px}
.rotation-range-row label{width:94px;flex-shrink:0}
.rotation-range-row output{width:31px}
.rotation-hint{margin-top:6px;font-size:6px}
.preview-stage.expanded.rotation-enabled{height:calc(100dvh - 60px)}
.preview-stage.expanded.rotation-enabled .bottle-wrap{bottom:215px;height:min(56vh,calc(100dvh - 310px),580px)}
.preview-stage.expanded.rotation-enabled .pedestal{bottom:180px}
@media(max-width:1100px){.rotation-buttons button{padding:5px 2px;font-size:7px}.rotation-range-row label{width:87px}}
@media(max-width:760px){.preview-stage.rotation-enabled{height:560px}.rotation-enabled .bottle-wrap{bottom:210px}.rotation-enabled .pedestal{bottom:175px}.rotation-enabled .preview-bottom{bottom:174px}.rotation-buttons button,.rotation-buttons #rotate-front{font-size:8px;min-height:30px;padding:5px 3px}.rotation-range-row{font-size:8px}.rotation-range-row label{width:102px}.rotation-hint{font-size:7px}.preview-stage.expanded.rotation-enabled{height:calc(100dvh - 24px)}.preview-stage.expanded.rotation-enabled .bottle-wrap{bottom:210px;height:min(56vh,calc(100dvh - 290px),520px)}.preview-stage.expanded.rotation-enabled .pedestal{bottom:175px}}
@media(prefers-reduced-motion:reduce){.rotation-enabled .bottle-wrap{transition:none}}
