:root {
  --bg: #0e1014;
  --bg-2: #161a21;
  --bg-3: #1e232c;
  --panel: #12151b;
  --line: #2a313c;
  --text: #e6e9ef;
  --text-dim: #9aa4b2;
  --accent: #5b8cff;
  --accent-2: #7c5cff;
  --green: #37d13a;
  --red: #ff3b30;
  --yellow: #ffd60a;
  --ok: #33d17a;
  --warn: #ffb020;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

/* Muss über den Layout-Regeln stehen: sonst überschreibt z. B. .calib-bar{display:flex}
   das hidden-Attribut und leere Leisten bleiben sichtbar. */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  height: 100%;
  background: radial-gradient(1200px 600px at 20% -10%, #1a2030 0%, var(--bg) 60%);
  color: var(--text);
  overflow: hidden;
}

body {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* ---------- Topbar ---------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 20px;
  background: rgba(18, 21, 27, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo { font-size: 28px; }
.brand h1 { margin: 0; font-size: 18px; letter-spacing: 0.3px; }
.brand .tagline { color: var(--text-dim); font-size: 12px; }

.conn { display: flex; align-items: center; gap: 10px; }

.status {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  white-space: nowrap;
}
.status--off { color: var(--text-dim); }
.status--on { color: var(--ok); border-color: rgba(51, 209, 122, 0.4); background: rgba(51, 209, 122, 0.08); }
.status--err { color: var(--red); border-color: rgba(255, 59, 48, 0.4); background: rgba(255, 59, 48, 0.08); }

.ports { display: flex; gap: 16px; margin-left: auto; }
.ports label, .master {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  color: var(--text-dim);
  gap: 4px;
}

select, input[type="text"], input[type="number"] {
  background: var(--bg-3);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 13px;
  outline: none;
}
select:focus, input:focus { border-color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  background: var(--bg-3);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
  white-space: nowrap;
}
.btn:hover { background: #232a35; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: #4a7bf0; }
.btn--ghost { background: transparent; }
.btn--mini { padding: 4px 8px; font-size: 12px; }
.btn--toggle.is-active { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---------- Toolbar ---------- */
.toolbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 20px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.tool-group { display: flex; align-items: center; gap: 8px; }
.tool-group--right { margin-left: auto; }
.tg-label { color: var(--text-dim); font-size: 12px; }
.master { flex-direction: row; align-items: center; gap: 8px; }
.master input[type="range"] { width: 120px; }

/* Kopfzeile der Hüllkurven-Spur im Sample-Editor */
.we-lane-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin: 10px 0 4px;
  font-size: 12px;
  color: var(--text);
}
#we-env { cursor: crosshair; }

/* Lobby: Status neben dem Button */
.lobby-pill {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-dim);
  white-space: nowrap;
}
.lobby-pill.is-host { color: var(--green); border-color: rgba(55, 209, 58, 0.4); }
.lobby-pill.is-guest { color: var(--accent); border-color: rgba(91, 140, 255, 0.4); }
/* Als Gast gibt es nichts zu bearbeiten — der Inspector bliebe nur verwirrend. */
body.is-guest .inspector { display: none; }
body.is-guest .board { cursor: pointer; }

/* Master-EQ: drei Bänder direkt neben dem Master-Regler */
.master-eq { display: flex; align-items: center; gap: 10px; }
.eq-band {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  color: var(--text-dim);
  gap: 2px;
}
.eq-band input[type="range"] { width: 84px; }
.eq-band b { color: var(--text); font-weight: 600; }
.eq-band.is-boost b { color: var(--green); }
.eq-band.is-cut b { color: var(--warn); }

/* ---------- Workspace ---------- */
.workspace {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 340px;
  min-height: 0;
}

.board-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 24px;
}
.board-scroll {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  min-height: 0;
}

.board {
  position: relative;
  background: linear-gradient(180deg, #20252f 0%, #171b22 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: var(--board-pad, 18px);
}

.edit-hint {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
}

/* ---------- Controls on the board ---------- */
.ctrl {
  position: absolute;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #0c0f14;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 10px;
  user-select: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.04s, box-shadow 0.1s;
}
.ctrl small { pointer-events: none; text-align: center; line-height: 1.1; padding: 2px; }

.ctrl--pad { border-radius: 6px; }
.ctrl--button { border-radius: 50%; background: #14181f; }
.ctrl--fader {
  background: #0a0d12;
  align-items: flex-end;
  border-radius: 6px;
}

/* LED colors driven by data-disp / data-blink attributes */
.ctrl[data-disp="green"] { background: #123d13; box-shadow: inset 0 0 12px rgba(55, 209, 58, 0.55); border-color: rgba(55,209,58,0.55); }
.ctrl[data-disp="red"] { background: #3d1210; box-shadow: inset 0 0 12px rgba(255, 59, 48, 0.55); border-color: rgba(255,59,48,0.55); }
.ctrl[data-disp="yellow"] { background: #3d3510; box-shadow: inset 0 0 12px rgba(255, 214, 10, 0.55); border-color: rgba(255,214,10,0.55); }
.ctrl[data-disp="white"] { background: #33383f; box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.4); border-color: rgba(255,255,255,0.4); }
.ctrl[data-blink="1"] { animation: blink 0.6s steps(1) infinite; }
@keyframes blink { 50% { filter: brightness(0.3); } }

.ctrl.is-pressed {
  transform: scale(0.93);
  box-shadow: 0 0 0 2px var(--accent), 0 0 18px rgba(91, 140, 255, 0.6);
  z-index: 5;
}
.ctrl.is-selected { outline: 2px solid var(--accent); outline-offset: 1px; z-index: 6; }
.ctrl.is-learn { animation: pulse 0.9s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 1px var(--accent-2); } 50% { box-shadow: 0 0 0 3px var(--accent-2), 0 0 16px rgba(124,92,255,0.7); } }

.ctrl.has-sound::after {
  content: "♪";
  position: absolute;
  top: 2px; right: 4px;
  font-size: 9px;
  color: var(--accent);
  opacity: 0.85;
}

/* fader fill */
.fader-fill {
  width: 100%;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  border-radius: 0 0 5px 5px;
  pointer-events: none;
  transition: height 0.05s linear;
}
.fader-cap {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 130%;
  height: 8px;
  background: #cbd3e1;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.6);
  pointer-events: none;
}

.ctrl-label {
  position: absolute;
  bottom: 2px;
  left: 0; right: 0;
  text-align: center;
  font-size: 9px;
  color: var(--text-dim);
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
}

/* Restlaufzeit: oben auf der Taste, nur solange etwas läuft */
.ctrl-time {
  position: absolute;
  top: 2px;
  left: 0; right: 0;
  text-align: center;
  font-size: 9px;
  font-variant-numeric: tabular-nums; /* springt beim Runterzählen nicht */
  font-weight: 600;
  color: var(--text);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  display: none;
}
.ctrl.has-time .ctrl-time { display: block; }
/* Beim Fader sitzt die Beschriftung schon oben — Restzeit darunter. */
.ctrl--fader .ctrl-time { top: 14px; }
/* Fader-Beschriftung nach oben, damit der Fader-Knopf sie nicht verdeckt */
.ctrl--fader .ctrl-label {
  bottom: auto;
  top: 2px;
  background: rgba(10, 13, 18, 0.7);
  border-radius: 3px;
}

.board.is-edit .ctrl { cursor: grab; }
.board.is-edit .ctrl:active { cursor: grabbing; }

/* Einstellungen per Alt+Ziehen kopieren */
.board.is-copying .ctrl { cursor: copy; }
.ctrl.is-copy-src { outline: 2px dashed var(--accent-2); outline-offset: 2px; z-index: 7; }
.ctrl.is-copy-target { outline: 3px solid var(--green); outline-offset: 2px; box-shadow: 0 0 14px rgba(55, 209, 58, 0.7); z-index: 8; }
.grp-ex { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-dim); white-space: nowrap; }

/* ---------- Inspector ---------- */
.inspector {
  background: var(--panel);
  border-left: 1px solid var(--line);
  padding: 18px;
  overflow-y: auto;
}
.inspector-empty { color: var(--text-dim); font-size: 13px; line-height: 1.6; }

.insp-title { font-size: 15px; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.insp-sub { color: var(--text-dim); font-size: 12px; margin-bottom: 16px; }

.field { margin-bottom: 16px; }
.field > label { display: block; font-size: 12px; color: var(--text-dim); margin-bottom: 6px; }
.field input[type="text"], .field input[type="number"], .field select { width: 100%; }

.row { display: flex; gap: 8px; }
.row > * { flex: 1; }

.midi-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  font-family: ui-monospace, monospace;
}

.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch {
  width: 34px; height: 34px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
}
.swatch.is-active { border-color: #fff; }
.swatch[data-c="off"] { background: #23272f; }
.swatch[data-c="green"] { background: var(--green); }
.swatch[data-c="green-blink"] { background: repeating-linear-gradient(45deg, var(--green), var(--green) 6px, #0a3a0b 6px, #0a3a0b 12px); }
.swatch[data-c="red"] { background: var(--red); }
.swatch[data-c="red-blink"] { background: repeating-linear-gradient(45deg, var(--red), var(--red) 6px, #3a0b09 6px, #3a0b09 12px); }
.swatch[data-c="yellow"] { background: var(--yellow); }
.swatch[data-c="yellow-blink"] { background: repeating-linear-gradient(45deg, var(--yellow), var(--yellow) 6px, #3a3309 6px, #3a3309 12px); }
.swatch[data-c="on"] { background: var(--red); }
.swatch[data-c="blink"] { background: repeating-linear-gradient(45deg, var(--red), var(--red) 6px, #3a0b09 6px, #3a0b09 12px); }

.sound-box {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}
.sound-name { font-size: 12px; color: var(--text); word-break: break-all; margin-bottom: 8px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { background: transparent; border: none; color: var(--text-dim); padding: 6px 12px; cursor: pointer; font-size: 12px; }
.seg button.is-active { background: var(--accent); color: #fff; }

.hr { height: 1px; background: var(--line); margin: 16px 0; border: none; }

/* ---------- Logbar ---------- */
.logbar {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 20px;
  font-size: 12px;
  color: var(--text-dim);
}
.log-head label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.log {
  margin: 0;
  padding: 8px 20px 12px;
  max-height: 140px;
  overflow-y: auto;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 11px;
  color: var(--text-dim);
  background: #0a0c10;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-size: 13px;
  z-index: 100;
}
.toast--err { border-color: var(--red); }
.toast--ok { border-color: var(--ok); }

/* ---------- Aktions-UI im Inspector ---------- */
.action-cfg { margin-top: 8px; }
.file-list { display: flex; flex-direction: column; gap: 6px; }
.file-row { display: flex; align-items: center; gap: 8px; background: var(--bg-3); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; font-size: 12px; }
.file-row .fn { flex: 1; word-break: break-all; }
.mini-note { font-size: 11px; color: var(--text-dim); margin-top: 4px; }
.bm-pill { display: flex; align-items: center; gap: 8px; background: var(--bg-3); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.bm-pill .bm-name { flex: 1; font-size: 13px; }
.bm-pill.is-playing { border-color: var(--green); box-shadow: inset 0 0 10px rgba(55,209,58,0.25); }

/* ---------- Modal / Beatmap-Editor ---------- */
.modal-root { position: fixed; inset: 0; z-index: 200; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(2px); }
.modal {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(1040px, 94vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.be-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.be-header h3 { margin: 0; font-size: 16px; }
.be-toolbar { display: flex; align-items: flex-end; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; background: var(--bg-3); }
.be-toolbar label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--text-dim); }
.be-toolbar input[type="number"] { width: 70px; }
.be-toolbar input[type="text"] { width: 150px; }
.be-transport { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.be-body { padding: 16px 18px; overflow: auto; }
.be-footer { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-top: 1px solid var(--line); }
.be-hint { color: var(--text-dim); font-size: 12px; }

/* Sequencer-Grid */
.seq-grid { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.seq-row { display: flex; align-items: center; gap: 10px; }
.seq-head { display: flex; align-items: center; gap: 4px; width: 372px; flex-shrink: 0; }
.seq-head .tr-vol { width: 64px; flex-shrink: 0; }
.seq-head .tr-name { width: 70px; padding: 4px 6px; font-size: 12px; }
.seq-head .tr-sound { width: 92px; padding: 4px; font-size: 11px; }
.seq-head .tr-note { width: 52px; padding: 4px; }
.seq-head .tr-file { font-size: 11px; color: var(--accent); width: 66px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seq-cells { display: flex; gap: 3px; }
.cell {
  width: 26px; height: 30px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: #0c0f14;
  cursor: pointer;
  padding: 0;
  transition: background 0.08s, transform 0.05s;
}
.cell.beat { border-color: #3a4350; }
.cell:hover { background: #1b222c; }
.cell.on { background: linear-gradient(180deg, var(--accent), var(--accent-2)); border-color: var(--accent); }
.cell.playing { box-shadow: 0 0 0 2px var(--yellow); }
.cell.on.playing { box-shadow: 0 0 0 2px #fff; }

/* Looper / Song */
.ev { max-width: 620px; }
.ev-song { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ev-songname { font-size: 12px; color: var(--text-dim); }
.ev-stat { display: flex; gap: 24px; align-items: center; font-size: 13px; margin-bottom: 12px; }
.ev-stat b { color: var(--text); font-size: 16px; }
.ev-rec-ind { color: var(--red); font-weight: 600; animation: blink 0.8s steps(1) infinite; }
.ev-info { color: var(--text-dim); font-size: 12px; line-height: 1.6; }
.btn.is-active { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- Dauerleuchten aktiver Funktionen ---------- */
.ctrl.is-running { animation: running-glow 1.4s ease-in-out infinite; }
@keyframes running-glow {
  0%, 100% { box-shadow: 0 0 6px 1px rgba(255,255,255,0.15), inset 0 0 10px rgba(255,255,255,0.15); }
  50% { box-shadow: 0 0 16px 4px rgba(255,255,255,0.45), inset 0 0 16px rgba(255,255,255,0.3); }
}

/* ---------- Page-Leiste ---------- */
.page-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.page-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-3);
  cursor: pointer; font-size: 13px; color: var(--text);
}
.page-tab .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pt, #888); }
.page-tab.is-active { border-color: var(--accent); background: #232a35; box-shadow: 0 0 0 1px var(--accent); }
.page-tab .pg-mode { font-size: 11px; opacity: 0.8; }
.page-tab .pg-x { opacity: 0.5; margin-left: 2px; }
.swatch.pg-swatch { border: 2px solid var(--line); }
.swatch.pg-swatch.is-active { border-color: #fff; }
.page-tab .pg-x:hover { opacity: 1; color: var(--red); }
.page-add { padding: 6px 10px; border-radius: 999px; border: 1px dashed var(--line); background: transparent; color: var(--text-dim); cursor: pointer; font-size: 13px; }
/* Seiten-Hintergrundtönung */
.board-panel { transition: background 0.35s; background: var(--page-tint, transparent); }

/* ---------- Wave-Editor ---------- */
.modal.we { width: min(1040px, 96vw); }
.we-wrap { width: 100%; overflow-x: auto; border-radius: 8px; }
#we-canvas { width: 100%; height: 200px; display: block; border: 1px solid var(--line); border-radius: 8px; }
.we-row { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.we-row label { font-size: 13px; color: var(--text-dim); min-width: 210px; }
.we-row input[type="range"] { flex: 1; }
.we-row b { color: var(--text); }
.we-actions { display: flex; gap: 10px; margin-top: 16px; }

/* ---------- Games ---------- */
.modal.game { width: min(560px, 94vw); }
.game-status { font-size: 16px; margin-bottom: 14px; padding: 8px 12px; border-radius: 8px; background: var(--bg-3); text-align: center; }
.game-status.win { background: rgba(255, 214, 10, 0.15); border: 1px solid var(--yellow); font-weight: 600; }
.game-grid { display: grid; gap: 8px; justify-content: center; margin: 0 auto; }
.game-grid.ttt { grid-template-columns: repeat(3, 90px); }
.game-grid.c4 { grid-template-columns: repeat(7, 60px); background: #16233d; padding: 10px; border-radius: 10px; }
.game-grid.snake { grid-template-columns: repeat(8, 44px); gap: 4px; background: #0a0d12; padding: 10px; border-radius: 10px; }
.game-grid.snake .gcell { cursor: default; }
.game-grid .gcell.sn-body { background: var(--green); }
.game-grid .gcell.sn-head { background: radial-gradient(circle at 35% 30%, #ff9a90, var(--red)); box-shadow: 0 0 8px rgba(255,59,48,0.6); }
.game-grid .gcell.sn-food { background: radial-gradient(circle at 35% 30%, #ffe97a, var(--yellow)); border-radius: 50%; }
.snake-ctrl { display: flex; gap: 8px; justify-content: center; margin: 14px 0 4px; }
.gcell { border: 1px solid var(--line); background: #0c0f14; border-radius: 10px; cursor: pointer; aspect-ratio: 1; transition: transform 0.05s; }
.game-grid.c4 .gcell { border-radius: 50%; background: #0a0d12; }
.gcell:hover { transform: scale(0.96); }
.game-grid .gcell.p1 { background: radial-gradient(circle at 35% 30%, #ff7a6e, var(--red)); }
.game-grid .gcell.p2 { background: radial-gradient(circle at 35% 30%, #7ff08a, var(--green)); }
.game-grid .gcell.win { box-shadow: 0 0 0 3px var(--yellow); }

/* ---------- Kalibrier-Leiste ---------- */
.calib-bar {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 16px;
  background: var(--accent-2); color: #fff;
  padding: 12px 20px; border-radius: 12px; box-shadow: var(--shadow); z-index: 150; font-size: 14px;
}
.calib-bar .btn { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.3); color: #fff; }
.calib-bar--seq { background: #1f6f4a; }
.shift-hint { font-size: 11px; color: var(--accent-2); margin-bottom: 8px; }

.glob-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); margin-bottom: 10px; cursor: pointer; }
.glob-row input { width: 16px; height: 16px; }

/* Volume-Slider im Inspector */
.vol-row { display: flex; align-items: center; gap: 10px; }
.vol-row input[type="range"] { flex: 1; }
.seg-actions { display: flex; gap: 6px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .workspace { grid-template-columns: 1fr; }
  .inspector { border-left: none; border-top: 1px solid var(--line); max-height: 45vh; }
}
