/* byteomi-systems/electrical-systems.html — AC Sine Oscilloscope Laboratory */

/* Flow demo ile aynı hero genişliği */
.doc-byteomi-preset.doc-byteomi-preset--hero.doc-byteomi-preset--ac-sine-lab {
  max-width: min(100%, 68rem);
  width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
}

.doc-byteomi-preset--ac-sine-lab .doc-byteomi-preset__tag {
  color: rgba(255, 180, 120, 0.95);
}

.doc-byteomi-preset--ac-sine-lab .doc-byteomi-preset__lead,
.doc-byteomi-preset--ac-sine-lab .doc-ac-lab__hud,
.doc-byteomi-preset--ac-sine-lab .doc-ac-lab__console,
.doc-byteomi-preset--ac-sine-lab .doc-ac-lab__hint {
  width: 100%;
}

.doc-ac-lab__stage {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #050a0f;
  min-height: 320px;
}

.doc-ac-lab__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.doc-ac-lab__bg canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.doc-ac-lab__scope {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  min-height: 300px;
  cursor: crosshair;
}

.doc-ac-lab__hud {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem 1rem;
  margin-top: 0.6rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(80, 130, 190, 0.2);
  background: rgba(6, 12, 24, 0.75);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: rgba(160, 190, 230, 0.9);
}

.doc-ac-lab__formula {
  margin: 0;
  color: rgba(46, 231, 242, 0.95);
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.doc-ac-lab__formula.is-updating {
  opacity: 0.38;
}

@media (prefers-reduced-motion: reduce) {
  .doc-ac-lab__formula {
    transition: none;
  }

  .doc-ac-lab__formula.is-updating {
    opacity: 1;
  }
}

.doc-ac-lab__readout {
  margin: 0;
  text-align: right;
  color: rgba(200, 215, 240, 0.88);
}

.doc-ac-lab__console {
  margin-top: 0.55rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(70, 120, 180, 0.22);
  background:
    linear-gradient(180deg, rgba(8, 14, 28, 0.9), rgba(4, 10, 22, 0.95)),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 9px,
      rgba(50, 80, 120, 0.05) 9px,
      rgba(50, 80, 120, 0.05) 10px
    );
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.doc-ac-lab__console-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(80, 130, 190, 0.18);
}

.doc-ac-lab__console-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(120, 170, 220, 0.8);
}

.doc-ac-lab__dual-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.62rem;
  color: rgba(190, 210, 240, 0.9);
  cursor: pointer;
}

.doc-ac-lab__dual-toggle input {
  accent-color: #ff9a6a;
}

.doc-ac-lab__sliders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.45rem 0.75rem;
}

.doc-ac-lab__field {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.doc-ac-lab__field-label {
  width: 2.6rem;
  flex-shrink: 0;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(130, 175, 220, 0.85);
}

.doc-ac-lab__field input[type="range"] {
  flex: 1;
  min-width: 0;
  height: 4px;
  accent-color: #2ee7f2;
}

.doc-ac-lab__field strong {
  width: 3.2rem;
  text-align: right;
  font-size: 0.58rem;
  font-weight: 600;
  color: rgba(46, 231, 242, 0.9);
}

.doc-ac-lab__field--phase-b strong {
  color: rgba(255, 154, 106, 0.95);
}

.doc-ac-lab__hint {
  margin: 0.5rem 0 0;
  font-size: 0.72rem;
  line-height: 1.5;
  color: rgba(170, 195, 230, 0.82);
  font-family: inherit;
}

@media (max-width: 640px) {
  .doc-ac-lab__hud {
    grid-template-columns: 1fr;
  }

  .doc-ac-lab__readout {
    text-align: left;
  }
}
