/* byteomi-systems/electrical-systems.html — RC Transient Chamber */

.doc-byteomi-preset.doc-byteomi-preset--hero.doc-byteomi-preset--rc-transient {
  max-width: min(100%, 68rem);
  width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
}

.doc-byteomi-preset--rc-transient .doc-byteomi-preset__tag {
  color: rgba(181, 108, 255, 0.95);
}

.doc-rc-lab__layout {
  display: grid;
  grid-template-columns: minmax(200px, 0.95fr) minmax(0, 1.35fr);
  gap: 0.65rem;
  align-items: stretch;
}

.doc-rc-lab__chamber-wrap {
  position: relative;
  min-height: 300px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(181, 108, 255, 0.18);
  background: radial-gradient(120% 100% at 50% 100%, rgba(40, 20, 60, 0.35), #050810);
}

.doc-rc-lab__chamber-mount {
  position: absolute;
  inset: 0;
}

.doc-rc-lab__chamber-mount canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.doc-rc-lab__chamber-hud {
  position: absolute;
  left: 0.55rem;
  bottom: 0.5rem;
  z-index: 2;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.58rem;
  color: rgba(200, 180, 240, 0.85);
  pointer-events: none;
}

.doc-rc-lab__fill-bar {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 55%;
  border-radius: 4px;
  background: rgba(20, 30, 50, 0.8);
  border: 1px solid rgba(120, 100, 180, 0.25);
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}

.doc-rc-lab__fill-bar span {
  display: block;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, #b56cff, #5ec8ff);
  box-shadow: 0 0 10px rgba(181, 108, 255, 0.45);
  transition: height 0.12s ease-out;
}

.doc-rc-lab__plots-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #050a0f;
  min-height: 300px;
}

.doc-rc-lab__plots {
  display: block;
  width: 100%;
  height: auto;
  min-height: 300px;
}

.doc-rc-lab__hud {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.55rem;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(100, 140, 200, 0.2);
  background: rgba(6, 12, 24, 0.75);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  color: rgba(170, 195, 230, 0.9);
}

.doc-rc-lab__formula {
  margin: 0;
  color: rgba(181, 108, 255, 0.95);
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.doc-rc-lab__formula.is-updating {
  opacity: 0.38;
}

.doc-rc-lab__readout {
  margin: 0;
  color: rgba(150, 185, 220, 0.88);
}

.doc-rc-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.92), rgba(4, 10, 22, 0.95));
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.doc-rc-lab__console-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(80, 130, 190, 0.18);
}

.doc-rc-lab__console-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(120, 170, 220, 0.8);
}

.doc-rc-lab__mode {
  display: flex;
  gap: 0.35rem;
}

.doc-rc-lab__mode-btn {
  padding: 0.32rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(120, 140, 200, 0.25);
  background: rgba(10, 18, 32, 0.8);
  color: rgba(190, 210, 240, 0.88);
  font-family: inherit;
  font-size: 0.58rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.doc-rc-lab__mode-btn.is-active {
  border-color: rgba(181, 108, 255, 0.55);
  background: rgba(40, 24, 60, 0.75);
  color: rgba(230, 220, 255, 0.98);
}

.doc-rc-lab__sliders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.45rem 0.7rem;
}

.doc-rc-lab__field {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.doc-rc-lab__field-label {
  width: 2.2rem;
  font-size: 0.58rem;
  font-weight: 700;
  color: rgba(130, 175, 220, 0.85);
}

.doc-rc-lab__field input[type="range"] {
  flex: 1;
  min-width: 0;
  accent-color: #b56cff;
}

.doc-rc-lab__field strong {
  width: 3.5rem;
  text-align: right;
  font-size: 0.58rem;
  color: rgba(181, 108, 255, 0.95);
}

.doc-rc-lab__hint {
  margin: 0.5rem 0 0;
  font-size: 0.72rem;
  line-height: 1.5;
  color: rgba(170, 195, 230, 0.82);
}

@media (max-width: 820px) {
  .doc-rc-lab__layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .doc-rc-lab__mode {
    width: 100%;
  }

  .doc-rc-lab__mode-btn {
    flex: 1;
  }
}
