.stool-rotation-controller{display:flex;align-items:center;gap:16px;margin:12px 0}
#stool-rotation-dial{display:block;flex:0 0 146px;width:146px;height:146px;touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none;outline-offset:4px}
#stool-rotation-dial:active{cursor:grabbing}
#stool-rotation-dial *{pointer-events:none}
#stool-rotation-dial.rotation-invalid .rotation-degrees{fill:#8c493c}
#stool-rotation-status{font-size:12px;line-height:1.7;min-width:0;flex:1;margin:0}
#muji-rotate-panel .muji-rotation-buttons{display:flex;align-items:center;justify-content:space-between;gap:8px}
#muji-rotate-panel .muji-rotation-buttons button{min-height:44px}
#stool-rotation-precision{margin:4px 0 10px}
#stool-rotation-precision>summary{min-height:44px;display:flex;align-items:center;font-size:12px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
body.stool-rotation-open:not(.stool-edit-open) #design-root #dp-stage{bottom:calc(var(--nav) + var(--stool-rotation-height,320px))!important;right:0!important}
@media(min-width:900px){body.stool-rotation-open:not(.stool-edit-open) #design-root #dp-stage{right:420px!important;bottom:var(--nav)!important}}
@media(min-width:650px) and (max-height:500px){body.stool-rotation-open #design-root #dp-selection{left:auto;right:12px;top:74px;bottom:calc(var(--nav) + 8px);width:300px;max-height:none!important}body.stool-rotation-open:not(.stool-edit-open) #design-root #dp-stage{right:324px!important;bottom:var(--nav)!important}}

/* D-1 (Issue #197): in the bottom sheet the rotation panel overflowed under the tab bar. */
@media(max-width:899px){body.stool-rotation-open:not(.stool-edit-open) #design-root #dp-selection #stool-height-row,body.stool-rotation-open:not(.stool-edit-open) #design-root #dp-selection #stool-on-top-open{display:none!important}body.stool-rotation-open #muji-rotate-panel .stool-rotation-controller{margin:6px 0}body.stool-rotation-open #stool-rotation-dial{flex-basis:118px;width:118px;height:118px}}
