/* Shared interactions; skins supply only colours, shape and typography. */
/* Tempo and swing share the same grip, relative drag and touch feedback. */
:is(#tempo-range,#swing-range){touch-action:pan-y;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
:is(#tempo-range,#swing-range).is-adjusting{outline:none}
@media (max-width:619px), (any-pointer:coarse){
  :is(#tempo-range,#swing-range){height:44px}
  :is(#tempo-range,#swing-range)::-webkit-slider-runnable-track{height:6px}
  :is(#tempo-range,#swing-range)::-moz-range-track,:is(#tempo-range,#swing-range)::-moz-range-progress{height:6px}
  :is(#tempo-range,#swing-range)::-webkit-slider-thumb{width:23px;height:23px;margin-top:-8.5px;transition:transform 90ms,box-shadow 90ms}
  :is(#tempo-range,#swing-range)::-moz-range-thumb{box-sizing:border-box;width:23px;height:23px;transition:transform 90ms,box-shadow 90ms}
  :is(#tempo-range,#swing-range).is-adjusting::-webkit-slider-thumb{transform:scale(1.25);box-shadow:0 0 0 4px var(--surface),0 0 0 6px var(--text)}
  :is(#tempo-range,#swing-range).is-adjusting::-moz-range-thumb{transform:scale(1.25);box-shadow:0 0 0 4px var(--surface),0 0 0 6px var(--text)}
  .swing-range-wrap{height:44px}
  .swing-center{top:14.5px}
}
@media (prefers-reduced-motion:reduce){
  :is(#tempo-range,#swing-range)::-webkit-slider-thumb{transition:none}
  :is(#tempo-range,#swing-range)::-moz-range-thumb{transition:none}
}
#play, #tap {
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
  min-width: 0;
  min-height: 52px;
  padding: 10px 8px;
  transition: background-color 80ms, color 80ms;
}
#play svg { flex: 0 0 17px; }
/* An inset highlight never changes button dimensions or moves its hit area. */
#play:active, #tap:active, #tap.tapped {
  box-shadow: inset 0 0 0 2px currentColor;
  transition: none;
}
@media (hover: hover) and (pointer: fine) {
  #play:hover, #tap:hover { box-shadow: inset 0 0 0 1px currentColor; }
  #play:active, #tap:active, #tap.tapped { box-shadow: inset 0 0 0 2px currentColor; }
}
/* Keep actions beside the tempo on phones, including landscape and installed
   mode. A fixed dock nested in a skin's isolated/clipped panel is fragile in
   mobile WebKit; normal flow avoids compositing and viewport dependencies. */
@media (max-width: 619px), (hover: none) and (pointer: coarse) {
  html body { padding-bottom: env(safe-area-inset-bottom, 0px); }
  html .transport, html[data-skin] .transport {
    position: static;
    inset: auto;
    transform: none;
    width: 100%;
    max-width: 490px;
    margin: 12px auto 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    z-index: auto;
  }
}
