.pitch-wheel{display:flex;align-items:center;justify-content:space-around;flex-direction:column;gap:5px;padding:7px;background:#10283f;color:#e1f4ff;font:9px/1.2 monospace;min-height:96px;user-select:none}
.pitch-wheel__label{white-space:nowrap}.pitch-wheel__track{position:relative;flex:1;min-height:45px;width:38px;background:repeating-linear-gradient(#203b4d 0 4px,#102332 4px 7px);border:2px solid #54e6dc;border-radius:9px;touch-action:none;cursor:ns-resize}
.pitch-wheel__track:before{content:'';position:absolute;left:0;right:0;top:50%;border-top:1px solid #ffb548}.pitch-wheel__track:focus-visible{outline:3px solid #ffb548;outline-offset:3px}
.pitch-wheel__knob{position:absolute;left:3px;right:3px;height:8px;transform:translateY(-50%);border:1px solid #ffb548;background:#ffb548;border-radius:3px;pointer-events:none}.pitch-wheel__track[aria-disabled=true]{opacity:.4}
/* Desktop wheel sits at the low-note end; mobile keeps its rotated rail. */
.keyboard-rail{display:contents}
@media(pointer:coarse) and (max-width:1400px){.mobile-player .keyboard-rail{display:grid;grid-column:2;grid-row:1;grid-template-rows:minmax(0,1fr) 104px;min-height:0;overflow:hidden}.mobile-player .keyboard-rail #keys{grid-column:1;grid-row:1}.mobile-player .keyboard-rail .pitch-wheel{grid-row:2;width:100%;height:104px}}

.pitch-wheel__knob{top:var(--wheel-position,50%)}
@media(pointer:coarse) and (max-width:1400px){.mobile-player .pitch-wheel__track{flex:none;width:calc(100% - 12px);height:34px;min-height:34px;cursor:ew-resize}.mobile-player .pitch-wheel__track:before{top:0;bottom:0;left:50%;right:auto;border-top:0;border-left:1px solid #ffb548}.mobile-player .pitch-wheel__knob{left:var(--wheel-position,50%);right:auto;top:3px;bottom:3px;height:auto;width:8px;transform:translateX(-50%)}}

body:not(.mobile-player):not(.mobile-embedded) .keyboard-rail{display:grid;grid-template-columns:82px minmax(0,1fr);gap:10px;align-items:stretch;margin:18px 0 12px}
body:not(.mobile-player):not(.mobile-embedded) .keyboard-rail #keys{grid-column:2;grid-row:1;min-width:0;margin:0}
body:not(.mobile-player):not(.mobile-embedded) .keyboard-rail>.pitch-wheel{grid-column:1;grid-row:1;min-width:0;min-height:0;height:125px}
body.mobile-embedded .keyboard-rail{display:none}
@media(max-width:440px){body:not(.mobile-player):not(.mobile-embedded) .keyboard-rail{grid-template-columns:72px minmax(0,1fr);gap:7px}body:not(.mobile-player):not(.mobile-embedded) .keyboard-rail>.pitch-wheel{height:110px}}
