.hardware-icon {
  display: inline-block;
  width: var(--hardware-icon-width, 44px);
  height: auto;
  aspect-ratio: 54 / 40;
  flex: none;
  vertical-align: middle;
  pointer-events: none;
}
.hw-fan { transform-box: fill-box; transform-origin: center; }
@keyframes hw-spin { to { transform: rotate(360deg); } }
@keyframes hw-current { to { stroke-dashoffset: -25; } }
@keyframes hw-packet { 0%, 22%, 82%, 100% { opacity: .32; } 38%, 62% { opacity: 1; } }
@keyframes hw-activity { 0%, 18%, 48%, 100% { fill: #fff2da; } 27%, 37% { fill: #fc844d; } }
@media (prefers-reduced-motion: no-preference) {
  .hardware-icon :is(.hw-fan, .hw-trace, .hw-bit, .hw-status) {
    animation-play-state: var(--hardware-motion, paused);
    animation-iteration-count: infinite;
  }
  .hw-fan { animation-name: hw-spin; animation-duration: 5.4s; animation-timing-function: linear; }
  .hw-trace { animation-name: hw-current; animation-duration: 2.1s; animation-timing-function: linear; }
  .hw-bit { animation-name: hw-packet; animation-duration: 2.3s; }
  .hw-bit-b { animation-delay: .16s; }
  .hw-bit-c { animation-delay: .32s; }
  .hw-bit-d { animation-delay: .48s; }
  .hw-status { animation-name: hw-activity; animation-duration: 3s; }
  .hardware-icon--rack g:first-child > .hw-status { animation-delay: .8s; }
  :where([aria-selected="true"], button:focus-visible, a:focus-visible, .hardware-icon.is-active) {
    --hardware-motion: running;
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  :where(button, a, [role="tab"]):hover { --hardware-motion: running; }
}
