.hud-fuel-dock {
  --flight-vario-fuel-width: 218px;
  align-items: flex-start;
  flex-direction: column;
  gap: 5px;
}

.hud-fuel-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.flight-vario-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 188px;
  height: 34px;
  margin-inline-start: calc((var(--flight-vario-fuel-width) - 188px) / 2);
  padding: 4px 5px 4px 12px;
  overflow: hidden;
  border: 1px solid rgba(52, 78, 58, 0.34);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 253, 231, 0.96), rgba(215, 234, 207, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 3px 10px rgba(25, 50, 32, 0.16);
  backdrop-filter: blur(7px);
  color: #354c3b;
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: filter 160ms ease, opacity 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.flight-vario-panel.hidden {
  display: none;
}

.flight-vario-panel.is-on {
  border-color: rgba(63, 129, 75, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 3px 11px rgba(32, 91, 46, 0.19);
}

.flight-vario-panel.is-off {
  border-color: rgba(74, 79, 73, 0.28);
  filter: grayscale(0.48) saturate(0.64);
  opacity: 0.72;
}

.flight-vario-label {
  flex: 0 0 auto;
  margin-right: 7px;
  color: rgba(41, 70, 51, 0.72);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.025em;
  line-height: 1;
  white-space: nowrap;
}

.flight-vario-readouts {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding-right: 6px;
}

.flight-vario-readouts > span {
  display: flex;
  align-items: center;
  min-width: 0;
}

.flight-vario-readouts strong {
  color: #294633;
  font-size: 12px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-shadow: 0 1px rgba(255, 255, 255, 0.36);
  white-space: nowrap;
}

.flight-vario-readouts strong.climbing {
  color: #23723f;
}

.flight-vario-readouts strong.sinking {
  color: #855743;
}

.flight-vario-separator {
  color: rgba(52, 72, 56, 0.42);
  font-size: 11px;
  font-style: normal;
  line-height: 1;
}

.flight-vario-power {
  display: grid;
  flex: 0 0 auto;
  width: 32px;
  height: 18px;
  min-height: 0;
  padding: 1px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.flight-vario-power:hover {
  filter: brightness(1.05);
}

.flight-vario-power:focus-visible {
  outline: 2px solid rgba(64, 123, 69, 0.46);
  outline-offset: 1px;
}

.flight-vario-power-icon {
  position: relative;
  display: block;
  width: 30px;
  height: 16px;
  border: 1px solid rgba(68, 83, 70, 0.36);
  border-radius: 999px;
  background: rgba(111, 122, 111, 0.28);
  box-shadow: inset 0 1px 2px rgba(35, 47, 38, 0.2);
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.flight-vario-power-icon::before {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f7f7e8;
  box-shadow: 0 1px 2px rgba(34, 47, 37, 0.28);
  content: "";
  transition: transform 150ms ease, background 150ms ease;
}

.flight-vario-power.active .flight-vario-power-icon {
  border-color: rgba(45, 121, 62, 0.5);
  background: #86bd70;
  box-shadow: inset 0 1px 2px rgba(34, 86, 42, 0.18), 0 0 5px rgba(78, 157, 74, 0.2);
}

.flight-vario-power.active .flight-vario-power-icon::before {
  background: #fffdf0;
  transform: translateX(14px);
}

.flight-vario-debug-control output {
  min-width: 112px;
}

@media (max-width: 620px), (max-height: 520px) {
  .hud-fuel-dock {
    --flight-vario-fuel-width: 186px;
  }

  .flight-vario-panel {
    width: 174px;
    height: 32px;
    margin-inline-start: calc((var(--flight-vario-fuel-width) - 174px) / 2);
    padding-inline-start: 10px;
  }

  .flight-vario-label {
    margin-right: 5px;
    font-size: 8px;
  }

  .flight-vario-readouts {
    padding-right: 4px;
  }

  .flight-vario-readouts strong {
    font-size: 10.5px;
  }
}