/* A spring-return throttle stays within thumb reach above the driving dock. */
.easy-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 93px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px;
  gap: 10px;
  width: min(430px, calc(100% - 36px));
  padding: 14px;
  border: 1px solid var(--blue);
  background: #fff;
  color: var(--blue);
  font-family: var(--mono);
  box-shadow: 0 4px 18px #14233512;
}
.easy-controls[hidden] { display: none; }
.easy-controls-heading {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 10px;
}
.easy-controls-heading > span { display: flex; align-items: baseline; gap: 10px; }
.easy-controls-heading small { color: #6e778e; font-size: 9px; font-weight: 400; }
.easy-controls-heading output { font-size: 10px; min-width: 50px; text-align: right; }
.easy-controls-row { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) 80px; gap: 10px; }
.easy-throttle {
  --throttle: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 58px;
  overflow: hidden;
  border: 1px solid var(--blue);
  background: #f4f5ff;
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.easy-throttle-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--throttle) * 100%);
  background: #dce1ff;
  pointer-events: none;
}
.easy-throttle-handle {
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: calc(6px + var(--throttle) * (100% - 20px));
  width: 8px;
  border: 1px solid var(--blue);
  background: #fff;
  pointer-events: none;
}
.easy-throttle > span { position: relative; font-size: 10px; pointer-events: none; }
.easy-throttle.is-held { background: #eef0ff; }
.easy-throttle.is-held .easy-throttle-handle { background: var(--blue); }
.easy-throttle:focus-visible, .easy-brake:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.easy-brake {
  min-height: 58px;
  padding: 8px;
  border: 1px solid var(--blue);
  border-radius: 0;
  background: #fff;
  color: var(--blue);
  font: inherit;
  font-size: 10px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.easy-brake:hover { background: #f4f5ff; }
.easy-brake.is-held { background: var(--blue); color: #fff; }
.easy-throttle[aria-disabled="true"], .easy-brake:disabled { opacity: .5; cursor: default; }
.easy-help { grid-column: 1 / -1; margin: 0; font-size: 9px; line-height: 1.6; color: #5b647b; }
@media (max-height: 700px) {
  .pause-overlay > div { max-height: calc(100% - 24px); overflow: auto; }
}
@media (max-width: 650px) {
  .easy-controls { bottom: 76px; width: min(430px, calc(100% - 24px)); padding: 11px; gap: 9px; grid-template-columns: minmax(0, 1fr) 72px; }
  .easy-controls-row { grid-template-columns: minmax(0, 1fr) 72px; gap: 9px; }
  .easy-drive-active .track-tag { bottom: 224px; }
  .easy-drive-active .speed-display { bottom: 222px; }
  .easy-controls-heading > span { gap: 8px; }
  .easy-help { font-size: 8px; }
}
@media (max-height: 500px) and (min-width: 651px) {
  .easy-controls { bottom: 67px; padding: 9px 11px; gap: 7px; width: 380px; }
  .easy-throttle, .easy-brake { min-height: 44px; height: 44px; }
  .easy-help { font-size: 8px; }
}
