/* Machined aluminium, black index collar, and the inset finger grip. */
.jog {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  flex: none;
  width: var(--jog-size, clamp(5.75rem, 9vw, 8rem));
  aspect-ratio: 1;
  box-sizing: border-box;
  border: 1px solid #07080a;
  border-radius: 50%;
  box-shadow: 0 1px 0 #aaa9b64d, inset 0 2px 4px #08080b, inset 0 -1px 1px #686975;
  background: radial-gradient(circle at 50% 45%, #414149 44%, #15161b 78%);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.jog:focus-visible { outline: 2px solid var(--signal, #eaff75); outline-offset: 4px }
.jog.is-held { cursor: grabbing }
.jog::before, .jog::after, .jog-wheel::before, .jog-wheel::after,
.jog-rotor::before, .jog-rotor::after, .jog-face::before, .jog-face::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.jog::before {
  inset: 3%;
  border-radius: inherit;
  background: repeating-conic-gradient(from -.9deg, #a5a7ad 0 1.8deg, transparent 1.8deg 9deg);
  mask: radial-gradient(circle closest-side, transparent 92%, #000 93%);
}
.jog::after {
  inset: 3%;
  border-radius: inherit;
  background: repeating-conic-gradient(from -1deg, #f4f3eb 0deg 2deg, transparent 2deg 90deg);
  mask: radial-gradient(circle closest-side, transparent 85%, #000 86%);
}
.jog-wheel {
  position: relative;
  width: 79%;
  aspect-ratio: 1;
  border: 1px solid #393a42;
  border-radius: 50%;
  background: conic-gradient(from -36deg, #a8a8a7, #e6e4dc 12%, #737681 31%, #c8c7c0 43%, #565963 62%, #a0a1a6 76%, #e4e3dc 92%, #a8a8a7);
  box-shadow: 1px 4px 5px #050509cf, inset 0 1px 1px #fff9, inset 0 -2px 1px #08090d9c;
}
.jog-wheel::before {
  inset: 5.5%;
  border-radius: inherit;
  background:
    repeating-radial-gradient(circle at center, transparent 0 1px, #35364020 1.25px 1.6px, transparent 1.85px 2.6px),
    conic-gradient(from -28deg, #96969a, #d3d2cd 10%, #9b9ba0 22%, #c0bfbf 38%, #81818a 55%, #adadb0 73%, #d5d5d1 88%, #96969a);
  box-shadow: 0 0 0 1px #55565c, 0 1px 0 1px #e7e6e3b0;
}
.jog-wheel::after {
  inset: 6.5%;
  border-radius: inherit;
  background: linear-gradient(145deg, #fff2, transparent 52%, #17182312);
}
.jog-rotor { position: absolute; inset: 1%; border-radius: 50% }
.jog-rotor::before {
  inset: 0;
  border-radius: inherit;
  background: repeating-conic-gradient(from .5deg, #0b0d15aa 0deg 1deg, #fff8 1.5deg 2.4deg, transparent 2.8deg 5deg);
  mask: radial-gradient(circle closest-side, transparent 92%, #000 93%, #000 97%, transparent 98%);
}
.jog-rotor::after {
  z-index: 1;
  top: 8.3%; left: calc(50% - 1.5px);
  width: 3px; height: 12%;
  border-radius: 2px;
  background: var(--signal, #eaff75);
  box-shadow: 0 0 0 1px #373833, 0 1px 1px #fff9;
}
.jog-face { position: absolute; inset: 8%; border-radius: 50%; }
.jog-face::before {
  width: 26%; aspect-ratio: 1; right: 13%; bottom: 15%; border-radius: 50%;
  background: radial-gradient(ellipse at 70% 74%, #b4b3b5 2%, #a6a6ac 32%, #72747c 71%, #52545e 95%);
  box-shadow: inset 0 2px 3px #32323b88, inset 0 -1px 1px #fefdf6a6, 0 1px 0 #eee9e07a;
}
.jog-face::after {
  inset: 39.5%;
  border: 1px solid #87878d80; border-radius: 50%;
  box-shadow: inset 0 1px 0 #e1e0ddad;
}
@media (prefers-reduced-motion: no-preference) {
  .jog-wheel { transition: transform 190ms cubic-bezier(.2,.82,.25,1), box-shadow 240ms ease }
  .jog.is-held .jog-wheel {
    transform: translateY(1px) scale(.987);
    box-shadow: 0 1px 2px #050509df, inset 0 1px 1px #fff9, inset 0 -1px 1px #08090da3;
  }
}
@media (forced-colors: active) {
  .jog { border-color: ButtonText }
  .jog-wheel { border: 2px solid ButtonText }
  .jog-rotor::after { background: Highlight; forced-color-adjust: none }
}
