/* Das virtuelle Pult: Bühne (Ansicht oben) und die Kanalzüge unten. */
.console { display: flex; flex-direction: column; gap: 10px; min-height: 0; min-width: 0; padding: 12px; }

.stage {
  flex: 1 1 auto; min-height: 250px; display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; overflow: hidden;
}
.view { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 8px; }

.strips {
  flex: 0 0 auto;
  display: flex; justify-content: center; align-items: stretch; gap: 8px;
  background: #17181a; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px;
}
.strip-gap { width: 22px; flex: none; }

.strip {
  width: 112px; flex: none; display: flex; flex-direction: column; gap: 6px; min-height: 0;
  background: linear-gradient(#2e2f33, #26272a); border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px 6px;
}
.strip-master { width: 124px; background: linear-gradient(#34353a, #2a2b2f); }

.strip-gain { height: 58px; flex: none; display: flex; flex-direction: column; justify-content: space-between; align-items: stretch; }
.gain-head { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .06em; color: var(--fg-3); }
.gain-head b { color: #fff; font-family: var(--font-mono); font-size: 13px; }
.gain-range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 26px; margin: 0; background: transparent; touch-action: pan-y;
}
.gain-range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: #0d0e0f; border: 1px solid #4a4c52; }
.gain-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; margin-top: -11px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #b5b8bf); border: 2px solid #5d6068;
}
.gain-range::-moz-range-track { height: 6px; border-radius: 3px; background: #0d0e0f; border: 1px solid #4a4c52; }
.gain-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #d9dbe0; border: 2px solid #5d6068; }
.over-led { align-self: center; font-size: 10px; font-weight: 800; letter-spacing: .1em; padding: 0 8px; border-radius: 4px; background: #331a1a; color: #7d4545; }
.over-led.on { background: var(--red); color: #fff; box-shadow: 0 0 12px var(--red); }
.no-gain .strip-gain { display: none; }
.no-cue .btn-cue, .no-cue .cue-empty { display: none; }

.btn-on {
  position: relative; height: 38px; flex: none; border-radius: 8px; border: 1px solid var(--line-2);
  background: #303236; font-weight: 800; font-size: 14px; letter-spacing: .06em; color: var(--fg-3);
}
.btn-on::before { content: ""; position: absolute; left: 6px; top: 7px; bottom: 7px; width: 4px; border-radius: 2px; background: #4b4d52; }
.btn-on.lit { color: #fff; background: #3a3c41; }
.btn-on.lit::before { background: var(--orange); box-shadow: 0 0 8px rgba(247, 134, 31, .8); }

.db-read {
  flex: none; text-align: center; font: 700 14px/22px var(--font-mono); height: 24px; border-radius: 6px; background: #101113; color: #fff;
  font-variant-numeric: tabular-nums;
}
.db-read.off { color: var(--fg-3); }

.fader-wrap { flex: none; height: clamp(120px, 17vh, 190px); display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); }
.f-scale { position: relative; }
.tick { position: absolute; right: 4px; transform: translateY(-50%); font-size: 10px; color: var(--fg-3); line-height: 1; font-variant-numeric: tabular-nums; }
.tick.zero { color: #fff; font-weight: 800; }
.meter {
  position: relative; margin: 6px 0 6px 6px; width: 12px; justify-self: start; border-radius: 3px; overflow: hidden;
  background: linear-gradient(to top, #2fbf4a 0 72%, #e8c21a 72% 92%, #e53935 92% 100%);
}
.meter-mask { position: absolute; inset: 0 0 auto 0; height: 100%; background: #0f1011; }
.meter-peak { position: absolute; left: 0; right: 0; height: 2px; background: #fff; }
.meter-peak.hot { background: var(--red); }
.fader { position: relative; touch-action: none; cursor: ns-resize; width: 44px; }
.fader:focus-visible { outline-offset: -2px; }
.groove { position: absolute; left: 50%; top: 18px; bottom: 18px; width: 7px; transform: translateX(-50%); background: #0b0c0d; border: 1px solid #4a4c52; border-radius: 4px; }
.cap {
  position: absolute; left: 1px; right: 1px; height: 36px; border-radius: 7px;
  background: linear-gradient(#f1f2f4, #b4b7be 55%, #a3a6ad); box-shadow: 0 3px 8px rgba(0, 0, 0, .65), inset 0 1px 0 #fff;
}
.cap i { position: absolute; left: 7px; right: 7px; top: 50%; height: 3px; transform: translateY(-50%); background: #202225; border-radius: 2px; }

.btn-cue {
  flex: none; height: 34px; border-radius: 6px; border: 1px solid var(--line-2); background: #2d2f33;
  font-weight: 800; font-size: 12px; letter-spacing: .08em; color: var(--fg-2);
}
.btn-cue.lit { background: var(--yellow); border-color: var(--yellow); color: #231b00; }
.cue-empty { flex: none; height: 34px; }

.btn-name {
  position: relative; flex: none; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 4px 11px;
  border-radius: 7px; background: #1c1d20; border: 2px solid transparent; color: var(--fg);
}
.btn-name.sel { border-color: #fff; }
.btn-name .nm { font-weight: 800; font-size: 14px; }
.btn-name .lb { font-size: 11px; color: var(--fg-3); letter-spacing: .05em; }
.btn-name .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; border-radius: 0 0 5px 5px; }
.strip-master .btn-name { cursor: default; }
