/**
 * byteomi-systems/mechanical-systems/drone-stabilization.html
 * Hover Rig Bench — carbon + mint (fren ember / PID violet / tork magenta değil).
 */

.doc-byteomi-preset.doc-byteomi-preset--hero.doc-byteomi-preset--drone {
  max-width: 100%;
  width: 100%;
  margin-inline: 0;
  box-sizing: border-box;
}

.doc-byteomi-preset--drone .doc-byteomi-preset__tag {
  color: rgba(94, 200, 176, 0.95);
}

.doc-dr-disclaimer {
  margin: 0 0 1.35rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(94, 200, 176, 0.22);
  background: linear-gradient(120deg, rgba(94, 200, 176, 0.07), transparent 70%);
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(185, 200, 195, 0.9);
}

.doc-dr-disclaimer p {
  margin: 0;
}

.doc-math-line {
  margin: 0.85rem 0;
  padding: 0.65rem 0.9rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: rgba(210, 230, 220, 0.92);
  border-left: 2px solid rgba(94, 200, 176, 0.55);
  background: linear-gradient(90deg, rgba(94, 200, 176, 0.08), transparent 70%);
}

.doc-dr-lab__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(180px, 0.85fr);
  gap: 0.65rem;
  align-items: stretch;
}

.doc-dr-lab__stage-wrap {
  position: relative;
  min-height: min(48vh, 400px);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(120, 160, 150, 0.18);
  background:
    radial-gradient(70% 55% at 22% 28%, rgba(94, 200, 176, 0.08), transparent 55%),
    radial-gradient(55% 40% at 85% 70%, rgba(80, 120, 140, 0.06), transparent 50%),
    #07090b;
}

.doc-dr-lab__stage {
  position: absolute;
  inset: 0;
}

.doc-dr-lab__stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.doc-dr-lab__stage-hud {
  position: absolute;
  left: 0.6rem;
  bottom: 0.5rem;
  z-index: 2;
  margin: 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.56rem;
  color: rgba(180, 200, 195, 0.78);
  pointer-events: none;
}

.doc-dr-lab__plot-wrap {
  position: relative;
  min-height: min(48vh, 400px);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(120, 160, 150, 0.16);
  background: #08090b;
  display: flex;
  flex-direction: column;
}

.doc-dr-lab__plot {
  flex: 1;
  width: 100%;
  height: 100%;
  display: block;
  min-height: 220px;
}

.doc-dr-lab__plot-label {
  margin: 0;
  padding: 0.35rem 0.55rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  color: rgba(145, 160, 155, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.doc-dr-lab__hud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  align-items: baseline;
  margin: 0.75rem 0 0.35rem;
  padding: 0 0.15rem;
}

.doc-dr-lab__formula {
  margin: 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  color: rgba(94, 200, 176, 0.92);
}

.doc-dr-lab__readout {
  margin: 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  color: rgba(175, 190, 185, 0.85);
}

.doc-dr-lab__console {
  margin-top: 0.55rem;
  padding: 0.7rem 0.85rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(120, 160, 150, 0.16);
  background: linear-gradient(165deg, rgba(18, 26, 24, 0.92), rgba(10, 10, 12, 0.95));
}

.doc-dr-lab__console-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin-bottom: 0.65rem;
}

.doc-dr-lab__console-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(94, 200, 176, 0.75);
  margin-right: auto;
}

.doc-dr-lab__presets {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.15rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.doc-dr-lab__preset-btn,
.doc-dr-lab__action-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(185, 200, 195, 0.65);
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}

.doc-dr-lab__preset-btn.is-active {
  color: #0c1210;
  background: linear-gradient(145deg, #5ec8b0, #3a9880);
}

.doc-dr-lab__action-btn {
  color: #0c1210;
  background: linear-gradient(145deg, #a8c0b8, #688878);
}

.doc-dr-lab__action-btn--gust {
  color: #0c1210;
  background: linear-gradient(145deg, #e8c060, #c09030);
}

.doc-dr-lab__action-btn--gust.is-holding {
  background: linear-gradient(145deg, #f0a040, #c06020);
  box-shadow: 0 0 0 1px rgba(232, 192, 96, 0.35);
}

.doc-dr-lab__presets--gust .doc-dr-lab__preset-btn.is-active {
  color: #141018;
  background: linear-gradient(145deg, #e8c060, #c09030);
}

.doc-dr-lab__action-btn--ghost {
  color: rgba(185, 200, 195, 0.75);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.doc-dr-lab__sliders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.55rem 0.85rem;
}

.doc-dr-lab__field {
  display: grid;
  grid-template-columns: 3.2rem 1fr auto;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(210, 225, 218, 0.88);
}

.doc-dr-lab__field-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(94, 200, 176, 0.9);
}

.doc-dr-lab__field input[type="range"] {
  width: 100%;
  accent-color: #5ec8b0;
}

.doc-dr-lab__field strong {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(210, 225, 218, 0.9);
  white-space: nowrap;
  min-width: 4.5rem;
  text-align: right;
}

.doc-dr-lab__hint {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(145, 160, 155, 0.88);
}

@media (max-width: 820px) {
  .doc-dr-lab__layout {
    grid-template-columns: 1fr;
  }

  .doc-dr-lab__stage-wrap,
  .doc-dr-lab__plot-wrap {
    min-height: 280px;
  }
}
