/* A small physical brake for the existing rotor workbench. */
.rotor-image {
  transition: opacity .55s, filter .55s;
  will-change: auto;
}
.mechanical-stage[data-mode="brakes"] .mechanical-caption {
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 15px;
}
.mechanical-stage[data-mode="brakes"] .mechanical-caption > .mono { display: none; }
.rotor-console {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(50px, 1fr) 91px;
  width: 178px;
  max-width: 100%;
  min-height: 48px;
  padding: 2px;
  border: 1px solid #848889;
  border-radius: 5px;
  background: linear-gradient(135deg, #d5d7d6, #afb2b2 54%, #c5c7c6);
  box-shadow: inset 0 1px 0 #f1f2f2b3, 0 2px 3px #25272924;
}
.rotor-console[hidden] { display: none; }
.rotor-readout {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  margin: 6px 5px 6px 3px;
  border: 1px solid #8f9496;
  border-radius: 2px;
  color: #3d454a;
  background: #b5bcbc;
  box-shadow: inset 0 1px 2px #333a3f29, 0 1px 0 #edeff080;
  font-size: 8px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .07em;
}
.rotor-console[data-state="spin"] .rotor-readout { color: #093bbb; }
.rotor-console[data-state="braking"] .rotor-readout { color: #062888; background: #c1c9d0; }
.rotor-brake {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 9px;
  border: 1px solid #052b9a;
  border-radius: 3px;
  color: #edf1ff;
  background: linear-gradient(145deg, #1649ec, #0734c8);
  box-shadow: inset 0 1px 0 #7194ff, 0 1px 1px #29345077;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .08em;
  touch-action: pan-y;
  transition: background .12s, box-shadow .12s;
}
.rotor-brake svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: square;
  stroke-linejoin: miter;
}
.rotor-brake[aria-pressed="true"], .rotor-brake:active {
  background: #082991;
  box-shadow: inset 0 2px 4px #00145380, inset 0 -1px 0 #3461db;
}
.rotor-brake:focus-visible { outline: 2px solid #0638db; outline-offset: 4px; }
@media (hover: hover) {
  .rotor-brake:hover { background: #1646dc; }
  .rotor-brake[aria-pressed="true"]:hover { background: #082991; }
}
@media (max-width: 620px) {
  .mechanical-stage[data-mode="brakes"] .mechanical-caption {
    width: 35%;
    grid-template-columns: 19px minmax(0, 1fr);
    column-gap: 7px;
    row-gap: 13px;
    bottom: 28px;
  }
  .rotor-console { width: 100%; grid-template-columns: minmax(0, 1fr) 55px; }
  .rotor-readout { margin: 7px 3px 7px 1px; font-size: 6px; letter-spacing: .025em; }
  .rotor-brake { flex-direction: column; gap: 3px; padding: 4px; font-size: 6px; }
  .rotor-brake svg { width: 16px; height: 16px; }
}
@media (forced-colors: active) {
  .rotor-console, .rotor-readout { color: CanvasText; background: Canvas; border-color: CanvasText; box-shadow: none; }
  .rotor-brake { color: ButtonText; background: ButtonFace; border-color: ButtonText; box-shadow: none; }
  .rotor-brake[aria-pressed="true"] { color: HighlightText; background: Highlight; }
  .rotor-brake:focus-visible { outline-color: Highlight; }
}
