/* Shared hardware finish: the cross-axis lighting rotates with the rail. */
:is(.collage .work-strip, .mixer-channel input[type="range"]) {
  --rail-angle: 180deg;
  --rail-edge: #756d62;
  --rail-groove: linear-gradient(var(--rail-angle), #736c63, #9f968b 22%, #b0a89e 75%, #e0dad0);
  --thumb-edge: #544d43;
  --thumb-light: #fffdf7;
  --thumb-shade: #746c61;
  --thumb-grain: repeating-linear-gradient(0deg, #ffffff1c 0 1px, transparent 1px 3px);
  --thumb-metal: linear-gradient(var(--rail-angle), #958e84, #f0ece3 23%, #d7d1c6 67%, #9d9589);
  --thumb-highlight: linear-gradient(var(--rail-angle), #aaa294, #fffdf6 23%, #e5dfd3 67%, #a69e91);
}
@media (forced-colors: none) {
  .mixer-channel input[type="range"] {
    --track: linear-gradient(to right, #39342c5e 0 var(--level, 0%), transparent var(--level, 0%)), var(--rail-groove);
    --thumb: var(--thumb-grain), var(--thumb-metal);
  }
  .mixer-channel input[type="range"]:is(:hover, :focus-visible) {
    --thumb: var(--thumb-grain), var(--thumb-highlight);
  }
  .mixer-channel input[type="range"]::-webkit-slider-runnable-track {
    border-color: var(--rail-edge);
    box-shadow: inset 0 1px 3px #38332c70;
  }
  .mixer-channel input[type="range"]::-moz-range-track {
    border-color: var(--rail-edge);
    box-shadow: inset 0 1px 3px #38332c70;
  }
  .mixer-channel input[type="range"]::-webkit-slider-thumb {
    border-color: var(--thumb-edge);
    box-shadow: inset 0 1px var(--thumb-light), inset 0 -1px var(--thumb-shade);
  }
  .mixer-channel input[type="range"]::-moz-range-thumb {
    border-color: var(--thumb-edge);
    box-shadow: inset 0 1px var(--thumb-light), inset 0 -1px var(--thumb-shade);
  }
}
@media (hover: hover) and (pointer: fine) and (forced-colors: none) {
  .collage .work-strip { --rail-angle: 90deg; }
  @supports selector(::-webkit-scrollbar) {
    .collage .work-strip::-webkit-scrollbar { width: 16px; }
    .collage .work-strip::-webkit-scrollbar-track {
      background: var(--rail-groove);
      border: 1px solid var(--rail-edge);
      box-shadow: inset 1px 0 3px #38332c70;
    }
    .collage .work-strip::-webkit-scrollbar-thumb {
      background: var(--thumb-grain), var(--thumb-metal);
      border: 1px solid var(--thumb-edge);
      min-height: 36px;
      box-shadow: inset 1px 0 var(--thumb-light), inset -1px 0 var(--thumb-shade);
    }
    .collage .work-strip::-webkit-scrollbar-thumb:hover {
      background: var(--thumb-grain), var(--thumb-highlight);
    }
  }
  @supports not selector(::-webkit-scrollbar) {
    .collage .work-strip { scrollbar-color: #e5ded3 #6f665c; }
  }
}
