/* Show-Designer – baut auf style.css (Farben, Knöpfe, Felder) auf */
body.dz { grid-template-rows: auto 1fr; }
.dz [hidden] { display: none !important; }
.small { font-size: 12px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.btn-primary { background: var(--accent); color: #1a1205; border-color: var(--accent); font-weight: 650; }
.btn-primary:hover:not(:disabled) { filter: brightness(1.08); }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.btn-danger { color: var(--bad); }
a.btn { text-decoration: none; display: inline-flex; align-items: center; }
.icon-sq { width: 34px; height: 34px; border-radius: 7px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); cursor: pointer; }
.icon-sq:disabled { opacity: .35; cursor: default; }
input[type="text"], input[type="search"], input[type="number"] {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; min-height: 34px;
}
input:focus-visible, select:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.dz-name { width: 240px; font-weight: 600; }
.dz-dirty { color: var(--accent); font-size: 12px; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; min-height: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }

.dz-main {
  display: grid; grid-template-columns: 270px minmax(0, 1fr) 310px; gap: 10px;
  padding: 10px; min-height: 0; overflow: hidden;
}
.dz-main.no-lib { grid-template-columns: minmax(0, 1fr) 310px; }
.dz-center { display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 10px; min-height: 0; min-width: 0; }

/* ---------------------------------------------------------------- Bibliothek */
.dz-lib { display: grid; grid-template-rows: auto auto auto minmax(0, 1fr) auto; gap: 8px; padding: 12px; }
.dz-search { width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip {
  border: 1px solid var(--line); background: var(--panel-2); color: var(--muted);
  border-radius: 999px; padding: 3px 10px; min-height: 28px; cursor: pointer; font-size: 12px;
}
.chip.is-on { color: #1a1205; background: var(--accent); border-color: var(--accent); }
.lib-list { overflow: auto; display: grid; gap: 6px; align-content: start; padding-right: 2px; }
.lib-item {
  display: grid; grid-template-columns: 6px 1fr; gap: 0 9px; text-align: left; width: 100%;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px 8px 0;
  cursor: grab; color: var(--text); min-height: 48px;
}
.lib-item:hover { border-color: #3a4152; }
.lib-item .bar { grid-row: span 2; border-radius: 0 3px 3px 0; }
.lib-item .nm { font-weight: 600; display: flex; gap: 6px; align-items: center; justify-content: space-between; }
.lib-item .sub { color: var(--muted); font-size: 11.5px; }
.lib-item .tag { font-size: 10.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; font-weight: 500; white-space: nowrap; }
.lib-item .sw { display: inline-flex; gap: 2px; }
.lib-item .sw i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.lib-hint { margin: 0; }

/* ---------------------------------------------------------------- Vorschau */
.dz-stage { display: grid; grid-template-rows: minmax(150px, 30vh) auto; overflow: hidden; }
.stage-wrap { position: relative; min-height: 0; }
#stage, #viz3d { width: 100%; height: 100%; display: block; background: #050608; border-radius: var(--radius) var(--radius) 0 0; border: 0; }
.dz-stage.big { grid-template-rows: minmax(260px, 52vh) auto; }
.stage-bar { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.play { width: 44px; min-height: 36px; font-size: 15px; }
.play[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
#time { min-width: 64px; color: var(--muted); }
.palette { display: flex; gap: 6px; align-items: center; }
.palette .lbl { color: var(--muted); font-size: 12px; margin-right: 2px; }
.swatch {
  position: relative; width: 30px; height: 30px; border-radius: 7px; border: 1px solid #ffffff2a; cursor: pointer; padding: 0;
}
.swatch span { position: absolute; right: 2px; bottom: 0; font: 600 9px var(--mono); color: #000a; text-shadow: 0 0 2px #fff8; }
.swatch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }

.song-strip { display: flex; align-items: center; gap: 4px 12px; padding: 8px 12px; flex-wrap: wrap; }
.song-title { font-weight: 600; }

/* ---------------------------------------------------------------- Timeline */
.dz-timeline { display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; }
.tl-tools { display: flex; gap: 12px; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.timeline { overflow: auto; position: relative; outline: none; }
.tl-grid { position: relative; min-height: 100%; }
.tl-row { display: grid; grid-template-columns: var(--tl-kopf, 190px) auto; border-bottom: 1px solid #1c2029; min-height: 46px; }
.tl-row.group-first { border-top: 1px solid var(--line); }
.tl-head {
  position: sticky; left: 0; z-index: 3; background: var(--panel); border-right: 1px solid var(--line);
  display: flex; align-items: center; gap: 4px; padding: 0 4px 0 8px; min-width: 0;
}
.tl-head .gname { font-weight: 600; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-head .lname { color: var(--muted); font-size: 11px; }
.tl-head .txt { flex: 1; min-width: 0; display: grid; }
.tl-head .mini { width: 26px; height: 26px; border-radius: 6px; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 13px; }
.tl-head .mini:hover { background: #232733; color: var(--text); }
.tl-head .mini[aria-pressed="true"] { color: var(--bad); }
.tl-lane { position: relative; background-image: var(--grid-bg); }
.tl-lane.drop-ok { background-color: #2a2110; }
.tl-ruler { position: sticky; top: 0; z-index: 4; display: grid; grid-template-columns: var(--tl-kopf, 190px) auto; background: var(--panel); border-bottom: 1px solid var(--line); }
.tl-ruler .corner { position: sticky; left: 0; z-index: 5; background: var(--panel); border-right: 1px solid var(--line); }
.tl-ruler .marks { position: relative; height: 26px; cursor: pointer; }
.tl-ruler .bar-no { position: absolute; top: 4px; font: 11px var(--mono); color: var(--muted); padding-left: 4px; border-left: 1px solid #343a48; height: 22px; }
.tl-energy { position: absolute; left: 0; bottom: 0; height: 100%; pointer-events: none; }
.tl-ruler .marks.has-wave { height: 44px; }
.tl-ruler .marks.has-ph.has-wave { height: 66px; }
.tl-ruler .marks.has-wave .tl-sec { height: 3px; padding: 0; font-size: 0; border-radius: 0; }   /* Abschnitte als Streifen, sonst decken sie die Wellenform zu (Jon, 30.10.) */
.tl-cut { position: absolute; top: 0; bottom: 0; width: 2px; background: #ff5a5f88; pointer-events: none; z-index: 1; }
.tl-cut.drop { background: #3ddc8488; }
.tl-cut-label { position: absolute; top: 2px; font: 600 10px var(--font); color: #9fe9bf; padding: 0 4px; pointer-events: none; z-index: 1; white-space: nowrap; }
.tl-cut-label.break { color: #ffb0b2; }
.playhead { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); z-index: 6; pointer-events: none; }

.clip {
  position: absolute; top: 4px; bottom: 4px; border-radius: 7px; overflow: hidden; cursor: grab;
  border: 1px solid #ffffff22; color: #fff; font-size: 11.5px; line-height: 1.2; padding: 4px 8px 3px;
  display: grid; align-content: start; gap: 1px; user-select: none; touch-action: none;
}
.clip .t { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px #0009; }
.clip .s { opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px #0009; }
.clip .cols { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; display: flex; }
.clip .cols i { flex: 1; }
.clip.is-sel { outline: 2px solid var(--accent); outline-offset: 0; z-index: 2; }
.clip .grip { position: absolute; top: 0; bottom: 0; width: 8px; cursor: ew-resize; }
.clip .grip.l { left: 0; } .clip .grip.r { right: 0; }
.clip.cat-Helligkeit { background: #5b4310; }
.clip.cat-Tubes { background: #1d5038; }
.clip.cat-Farbe { background: #5a1d4a; }
.clip.cat-Bewegung { background: #1d3a64; }
.clip.cat-Original { background: #3a3428; border-style: dashed; border-color: #6a5a38; }
.tl-empty { padding: 24px; color: var(--muted); }

/* ---------------------------------------------------------------- Inspector */
.dz-insp { padding: 12px; overflow: auto; display: grid; gap: 14px; align-content: start; }
.insp-title { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.insp-title h3 { margin: 0; font-size: 15px; }
.insp-desc { margin: 0; color: var(--muted); }
.form-grid { display: grid; gap: 12px; }
.fld { display: grid; gap: 5px; }
.fld > .lbl { color: var(--muted); font-size: 12px; display: flex; justify-content: space-between; }
.fld .fhint { color: #6f7685; font-size: 11px; }
.fld select { max-width: none; width: 100%; min-height: 38px; }
.fld input[type="range"] { width: 100%; accent-color: var(--accent); }
.seg.wrap { flex-wrap: wrap; }
.seg.full { display: flex; width: 100%; }
.seg.full .seg-btn { flex: 1; }
.colrow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cbtn { width: 34px; height: 34px; border-radius: 7px; border: 1px solid #ffffff2a; cursor: pointer; position: relative; padding: 0; }
.cbtn.is-on { outline: 2px solid var(--accent); outline-offset: 1px; }
.cbtn.none { background: repeating-linear-gradient(45deg, #2a2e39 0 5px, #1a1d25 5px 10px); }
.cbtn small { position: absolute; right: 2px; bottom: 0; font: 600 9px var(--mono); color: #000b; }
.cbtn.custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cbtn .x { position: absolute; top: -6px; right: -6px; width: 16px; height: 16px; border-radius: 50%; background: #2a2e39; color: var(--text); font-size: 10px; line-height: 16px; border: 1px solid var(--line); }
.poslist { display: grid; gap: 4px; }
.poslist .pi { display: grid; grid-template-columns: 1fr auto auto; gap: 4px; align-items: center; }
.insp-actions { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.notes { display: grid; gap: 6px; }
.note { font-size: 12px; border-radius: 8px; padding: 7px 9px; border: 1px solid; }
.note.warn { background: #2a2110; border-color: #5a4415; color: #ffd27a; }
.note.ok { background: #10241a; border-color: #1f5a3a; color: #9fe9bf; }
.note.info { background: #121a24; border-color: #233448; color: #bcd3ee; }
.stilgrid { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; font-size: 12px; }
.stilgrid .low { color: var(--warn); }

/* ---------------------------------------------------------------- Static Look */
/* Look-Programmer (Profi-Modus bei Static Looks, lookpro.js): Tabelle Geräte × Kanäle, Thru schraffiert */
.dz-main.pro-layout.is-look { grid-template-rows: minmax(180px, 34vh) auto minmax(0, 1fr); }
.look-editor { overflow: hidden; padding: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; }
.lp-bar-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.lp-count { font-weight: 700; font-size: 13px; min-width: 160px; }
.lp-num { font-variant-numeric: tabular-nums; background: var(--accent); color: var(--accent-ink); padding: 4px 9px; border-radius: 6px; font-weight: 750; font-size: 13px; }
.lp-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.lp-tools .btn { min-height: 34px; display: inline-flex; align-items: center; gap: 6px; }
.lp-tools .btn .ic { width: 16px; height: 16px; }
.lp-tools .btn.is-off { opacity: .5; }
.lp-tools .lp-thru { background: repeating-linear-gradient(135deg, var(--thru-bg) 0 5px, #241f45 5px 10px); border-color: var(--thru-line); color: #e4deff; }
.lp-right { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lp-vl { font-size: 12.5px; color: var(--muted); font-weight: 650; }
.lp-right .seg-btn { min-height: 34px; padding: 0 10px; }
.lp-loop { min-height: 34px; max-width: 200px; }
.lp-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.lp-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.lp-scroll { overflow: auto; min-height: 0; outline: none; }
.lp-scroll:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.lp-table { border-collapse: separate; border-spacing: 0; font-size: 12.5px; min-width: 100%; }
.lp-table th, .lp-table td { border-bottom: 1px solid var(--line); padding: 0 10px; height: 42px; white-space: nowrap; text-align: left; font-variant-numeric: tabular-nums; }
.lp-table thead th { position: sticky; top: 0; z-index: 2; background: var(--panel); height: 38px; }
.lp-corner, .lp-rh { position: sticky; left: 0; z-index: 1; background: var(--panel); min-width: 150px; border-right: 1px solid var(--line); }
.lp-table thead .lp-corner { z-index: 3; }
.lp-corner { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.lp-allbtn { width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--accent-ink); font-weight: 800; padding: 0; line-height: 1; }
.lp-allbtn.on { background: var(--accent); border-color: var(--accent); }
.lp-ch { cursor: pointer; font-weight: 700; color: var(--muted); font-size: 12px; }
.lp-ch:hover { color: var(--text); }
.lp-ch.act { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.lp-ch.exp { color: #c9a35a; }
.lp-rh b { display: block; font-weight: 650; font-size: 12.5px; }
.lp-rh small { color: var(--muted); font-size: 11px; }
.lp-grow th { background: var(--panel-2); height: 30px; font-size: 12px; cursor: pointer; text-align: left; }
.lp-grow th span { font-weight: 750; margin-right: 8px; }
.lp-grow th small { color: var(--muted); }
.lp-grow:hover th { color: var(--accent); }
.lp-grow.sel th { box-shadow: inset 3px 0 0 var(--accent); }
.lp-row { cursor: pointer; }
.lp-row:hover td, .lp-row:hover th { background: #1b1f28; }
.lp-row.sel td, .lp-row.sel th { background: #2a2110; }
.lp-row.sel .lp-rh { box-shadow: inset 3px 0 0 var(--accent); }
.lp-c.thru { color: #bdb4f5; font-size: 11.5px; background: repeating-linear-gradient(135deg, rgba(110, 90, 220, .10) 0 5px, transparent 5px 10px); }
.lp-row.sel .lp-c.thru { background: repeating-linear-gradient(135deg, rgba(110, 90, 220, .26) 0 5px, #2a2110 5px 10px); }
.lp-c.na::after { content: "–"; color: #3a404c; }
.lp-c.act { box-shadow: inset 0 0 0 1px rgba(255, 176, 32, .4); }
.lp-c.dark, .lp-c.mix { color: var(--muted); }
.lp-c b { font-weight: 650; }
.lp-bar { display: inline-block; vertical-align: middle; width: 34px; height: 6px; margin-right: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) var(--v), #2b303b var(--v)); }
.lp-sw { display: inline-block; width: 28px; height: 18px; border-radius: 5px; vertical-align: middle; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.lp-cs { display: inline-flex; border-radius: 5px; overflow: hidden; vertical-align: middle; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.lp-cs i { width: 9px; height: 18px; }
.lp-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.lp-c.img img { width: 28px; height: 28px; border-radius: 50%; vertical-align: middle; background: #000; }
.lp-shape { width: 22px; height: 22px; vertical-align: middle; margin-right: 4px; }
.lp-shape path { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linejoin: round; }
.lp-c .ic { width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; }
.lp-wait { margin: 0; padding: 8px 12px; color: var(--muted); font-size: 13px; }
.lp-pop { position: fixed; z-index: 80; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px; display: grid; gap: 10px; box-shadow: 0 14px 40px rgba(0, 0, 0, .55); min-width: 300px; max-width: calc(100vw - 16px); }
.lp-pop h4 { margin: 0; font-size: 13.5px; }
.lp-pop .btn { min-height: 38px; }
.lp-pop-body { display: grid; gap: 10px; }
.lp-pop-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.lp-pop-row label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.lp-pop-row input[type=number] { width: 70px; min-height: 36px; }
.lp-pop-row input[type=color] { width: 46px; height: 36px; padding: 0; border: 0; background: none; cursor: pointer; }
.lp-kinds { flex-wrap: wrap; }
.lp-serie { border-color: var(--accent); }
.lp-serpop { width: min(420px, calc(100vw - 16px)); }
.lp-pop { max-height: calc(100vh - 16px); overflow: auto; }
.lp-pop-p { margin: 0; font-size: 13px; color: var(--muted); }
.lp-sercols { display: flex; flex-wrap: wrap; gap: 6px; }
.lp-sercol { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--muted); font-size: 12.5px; font-weight: 650; }
.lp-sercol i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.lp-sercol.on { color: var(--text); border-color: var(--accent); background: #2a2110; }
.lp-serpop .lp-pop-row input[type=text] { flex: 1; min-height: 36px; }
.lp-serpop select { min-height: 38px; }
.lp-serprev { color: var(--text); }
.lp-kinds .seg-btn { min-height: 34px; padding: 0 10px; }
.lp-empty { padding: 18px 16px; display: grid; gap: 10px; color: var(--muted); font-size: 13.5px; }
.lp-empty h3 { margin: 0; color: var(--text); font-size: 16px; }
.lp-empty .ic { width: 30px; height: 30px; color: var(--accent); }
.lp-empty p { margin: 0; }
.lp-empty ul { margin: 0; padding-left: 18px; display: grid; gap: 5px; font-size: 13px; }
.lp-pane-head { padding: 12px 12px 2px; display: grid; gap: 2px; }
.lp-pane-head b { font-size: 15px; }
.lp-pane-head small { color: var(--muted); font-size: 12px; }
#pro-gen .lk-sec { margin: 8px 10px; }
.lp-px { display: inline-flex; gap: 1px; vertical-align: middle; padding: 2px; border-radius: 5px; background: #0b0c10; }
.lp-px i { width: 6px; height: 16px; border-radius: 1px; }
.lp-px i.t { background: repeating-linear-gradient(135deg, var(--thru-bg) 0 2px, #3d3570 2px 4px); }
.lp-strips { display: grid; gap: 6px; }
.lp-strip { display: grid; grid-template-columns: 74px minmax(0, 1fr); align-items: center; gap: 8px; }
.lp-strip-l { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-cells { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; padding: 3px; border-radius: 7px; background: #0b0c10; }
.lp-cell { height: 30px; min-width: 0; padding: 0; border: 1px solid transparent; border-radius: 4px; background: #15181f; display: grid; }
.lp-cell i { border-radius: 3px; }
.lp-cell.t { background: repeating-linear-gradient(135deg, var(--thru-bg) 0 3px, #2a2450 3px 6px); }
.lp-cell.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.lp-pxsel { align-items: center; }
.lp-pxn { font-size: 12.5px; color: var(--muted); margin-right: 4px; }
.lp-h4 { margin: 4px 0 0; font-size: 13px; }
.lp-gens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.lp-gen { min-height: 40px; border-radius: var(--r-s, 9px); border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); font-weight: 650; font-size: 12.5px; padding: 4px 8px; }
.lp-gen:hover { border-color: var(--accent); }
.lp-pxopt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
#pro-gen .lp-focus { box-shadow: 0 0 0 2px var(--accent); border-radius: var(--r-s, 9px); }

/* ---------------------------------------------------------------- Dialog, Toast */
.dz-dlg { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 0; width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); }
.dz-dlg::backdrop { background: #000a; }
.dz-dlg form { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-height: calc(100vh - 50px); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.dlg-head h3 { margin: 0; font-size: 15px; }
.dlg-body { padding: 14px 16px; overflow: auto; display: grid; gap: 12px; }
.dlg-foot { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.pick-list { display: grid; gap: 6px; max-height: 50vh; overflow: auto; }
.pick { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; text-align: left; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; cursor: pointer; color: var(--text); min-height: 48px; }
.pick:hover { border-color: #3a4152; }
.pick.is-on { border-color: var(--accent); }
.pick .sub { color: var(--muted); font-size: 12px; grid-column: 1 / -1; }
.pick .badge { font-size: 11px; color: var(--muted); }
.pick .badge.bad { color: var(--warn); }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: #1d212b; border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px; z-index: 50; max-width: min(640px, calc(100vw - 32px)); white-space: pre-line; }
.toast[data-kind="bad"] { border-color: #5a2224; color: #ffb0b2; }
.toast { display: flex; align-items: flex-start; gap: 12px; top: auto; right: auto; margin: 0; color: var(--text); overflow: visible; }   /* popover setzt das sonst zurück */
.toast[hidden] { display: none; }
.toast-x { flex: none; background: none; border: 0; color: inherit; opacity: .7; font-size: 20px; line-height: 1; cursor: pointer; padding: 0 2px; min-width: 28px; min-height: 28px; }
.toast-x:hover { opacity: 1; }
.toast[data-kind="ok"] { border-color: #1f5a3a; color: #9fe9bf; }

@media (max-width: 1100px) {
  html:has(body.dz), body.dz { height: auto; overflow: auto; display: block; }
  .dz-center, .dz-main > * { min-height: auto; }
  .dz-main, .dz-main.no-lib { grid-template-columns: 1fr; overflow: visible; }
  .dz-lib { max-height: 340px; }
  .dz-center { grid-template-rows: auto auto auto; }
  .dz-stage { grid-template-rows: 240px auto; }
  .dz-timeline { height: 70vh; }
  .dz-insp { max-height: none; }
  .dz-name { width: 100%; order: 10; }
}

/* Überschreibt Panel-Regeln des Visualizers (style.css) */
.dz .panel { flex-direction: unset; }
.dz .panel-head { padding: 0 0 2px; border-bottom: 0; }
.dz-insp { overflow-x: hidden; }
.dz-insp > *, .form-grid > *, .fld > * { min-width: 0; }
.dz-insp input[type="number"] { width: 100%; min-width: 0; }
.seg.full .seg-btn { flex: 1 1 auto; padding: 6px 8px; white-space: nowrap; }
.insp-title .muted { white-space: nowrap; }
.tl-mom { position: absolute; bottom: 13px; width: 2px; height: 7px; border-radius: 1px; z-index: 2; opacity: .9; }
.tl-mom.rng { height: 4px; bottom: 13px; opacity: .75; }
.tl-mom.stopp { box-shadow: inset 0 0 0 1px #ffffffaa; }
.tl-sec { position: absolute; bottom: 0; height: 12px; border-radius: 3px 3px 0 0; font: 600 9.5px var(--font); color: #e7e9ee; padding: 0 4px; overflow: hidden; white-space: nowrap; pointer-events: none; }

/* Rig-Assistent */
.dz-dlg.wide { width: min(980px, calc(100vw - 32px)); }
.rig-wiz { display: grid; gap: 10px; }
.rig-wiz h2 { margin-top: 8px; }
.rf-start { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px dashed var(--line-2, #2c313c); border-radius: 10px; }
.rf-weg { margin: 0; color: var(--accent); font-size: 13px; font-weight: 600; }
.rf-frage { margin: 0; font-size: 20px; text-transform: none; letter-spacing: 0; color: var(--text); }
.rf-plaetze { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-top: 6px; }
.rf-platz { display: grid; gap: 3px; min-height: 84px; align-content: center; justify-items: center; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); cursor: pointer; font: inherit; text-align: center; }
.rf-platz:hover:not(:disabled) { border-color: var(--accent); }
.rf-platz small { color: var(--muted); font-size: 12px; }
.rf-platz.voll { opacity: .6; cursor: default; }
.rf-fuss { display: flex; gap: 8px; margin-top: 10px; }
.rig-card { background: var(--panel-2); border: 1px solid var(--line); border-radius: 9px; padding: 10px; display: grid; gap: 6px; }
.rig-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 36px; }
.rig-row .grow { flex: 1; min-width: 160px; }
.rig-row input[type="text"] { flex: 1; min-width: 180px; }
.rig-row select { max-width: 260px; }
.rig-units { margin: 0; padding-left: 22px; display: grid; gap: 2px; }
.rig-units li { border-bottom: 1px solid #1c2029; }
#rig { max-width: 200px; }

/* ---------------------------------------------------------------- Profi-Modus (seit 15.10.2026):
   oben 3D-Vorschau + Gruppen, darunter Zeitleiste (Master, Gruppen, einzelne Geräte) + Werkzeuge (Generator/Effekte/Eigenschaften) */
.dz-main.pro-layout { grid-template-columns: minmax(0, 1fr) 380px; grid-template-rows: minmax(200px, 42vh) auto minmax(0, 1fr);
  grid-template-areas: "stage right" "song right" "work right"; }
.pro-stage { grid-area: stage; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; }
.pro-layout #song-strip { grid-area: song; }
.pro-work { grid-area: work; display: grid; grid-template-rows: minmax(0, 1fr); min-height: 0; min-width: 0; }
.pro-right { grid-area: right; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 10px; min-height: 0; }
.pro-side { display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; overflow: hidden; }
.pro-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.pro-tab { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); min-height: 42px; cursor: pointer; font-weight: 600; font-size: 12.5px; }
.pro-tab:hover { color: var(--text); }
.pro-tab.is-on { color: var(--text); border-bottom-color: var(--accent); }
.tab-count { font: 11px var(--mono); color: var(--muted); margin-left: 3px; }
.pro-pane { min-height: 0; overflow: auto; }
.pro-pane.dz-lib { border: 0; }

/* Gruppen-Übersicht neben der 3D-Vorschau */
.pro-groups { display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; max-height: 36vh; }
.pg-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px 8px; border-bottom: 1px solid var(--line); }
.pg-head h2 { margin: 0; }
.pg-list { overflow: auto; padding: 6px; display: grid; gap: 4px; align-content: start; }
.pg-card { display: grid; grid-template-columns: 26px 1fr auto; gap: 2px 9px; align-items: center; text-align: left; width: 100%;
  padding: 5px 8px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); cursor: pointer; }
.pg-card:hover { border-color: #3a4152; }
.pg-card.is-on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.pg-card.is-master { background: linear-gradient(90deg, rgba(255, 176, 32, .12), transparent 70%), var(--panel-2); }
.pg-ico { grid-row: span 2; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: #232733; color: #c9ced8; }
.pg-ico svg { width: 19px; height: 19px; }
.pg-name { font-weight: 650; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-meta { font-size: 11px; color: var(--muted); white-space: nowrap; }
.pg-tiles { grid-column: 2 / 3; grid-row: 2; display: flex; gap: 3px; flex-wrap: wrap; align-self: center; }
.pg-tiles i { width: 12px; height: 12px; border-radius: 3px; background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.pg-tiles.is-pixel i { width: 6px; height: 14px; border-radius: 2px; }

/* Zeitleiste: Brotkrumen, Abschnitte, Platzhalter */
.tl-crumbs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 13px; }
.tl-crumbs button { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px 6px; border-radius: 6px; font: inherit; }
.tl-crumbs button:hover { color: var(--text); background: var(--panel-2); }
.tl-crumbs button.is-cur { color: var(--text); font-weight: 650; }
.tl-crumbs .sep { color: #4a5263; }
.tl-crumbs .units-tog { border: 1px solid var(--line); margin-left: 6px; }
.tl-crumbs .units-tog[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.tl-gsec { display: grid; grid-template-columns: var(--tl-kopf, 190px) auto; min-height: 28px; }
.tl-gsec .sec-head { position: sticky; left: 0; z-index: 3; display: flex; align-items: center; gap: 6px; padding: 0 8px; background: #12151b;
  border-top: 1px solid var(--line); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.tl-gsec .sec-head:hover { color: var(--text); }
.tl-gsec .sec-head b { color: var(--text); font-weight: 650; letter-spacing: .03em; }
.tl-gsec .sec-head .go { margin-left: auto; text-transform: none; letter-spacing: 0; color: var(--accent); font-size: 11.5px; }
.tl-gsec .sec-band { border-top: 1px solid var(--line); background: #12151b; }
.tl-gsec.is-master .sec-head, .tl-gsec.is-master .sec-band { background: #1c170b; }
.tl-row.is-master .tl-head { background: #1a160c; }
.tl-row.is-unit .tl-head { padding-left: 22px; background: #13161c; }
.tl-row.is-unit .tl-head .gname { color: #c9ced8; }
.tl-row.is-empty .tl-lane { background-image: repeating-linear-gradient(135deg, transparent 0 8px, rgba(255, 255, 255, .02) 8px 16px); }
.tl-row.is-empty .tl-head .lname { color: #6f7685; font-style: italic; }
.tl-empty-hint { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 11.5px; color: #6f7685; pointer-events: none; white-space: nowrap; }
.tl-lane.drop-ok { outline: 2px dashed var(--accent); outline-offset: -2px; }

/* Generator */
.gen { padding: 12px; display: grid; gap: 12px; align-content: start; }
.gen h3 { margin: 0; font-size: 15px; }
.gen .gen-sub { margin: -6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.gen-card { border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); padding: 10px; display: grid; gap: 8px; }
.gen-card > .gen-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 650; font-size: 12.5px; }
.gen-row { display: grid; grid-template-columns: 78px 1fr; gap: 8px; align-items: center; font-size: 12px; }
.gen-row > span:first-child { color: var(--muted); }
.gen-row select { width: 100%; max-width: none; }
.gen-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.gen-chip { border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 999px; padding: 3px 10px; min-height: 30px; cursor: pointer; font-size: 12px; }
.gen-chip.is-on { background: var(--accent); border-color: var(--accent); color: #1a1205; font-weight: 600; }
.gen-chip .ord { font: 10px var(--mono); opacity: .7; margin-left: 4px; }
.gen-cols { display: flex; flex-wrap: wrap; gap: 4px; }
.gen-col { width: 30px; height: 30px; border-radius: 7px; border: 2px solid transparent; cursor: pointer; position: relative; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.gen-col.is-on { border-color: #fff; }
.gen-col small { position: absolute; right: 2px; bottom: 0; font: 600 9px var(--mono); color: #000a; }
.gen-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: sticky; bottom: -12px; background: var(--panel); padding: 8px 0 4px; }
.gen-actions .btn { min-height: 44px; }
.gen-actions .btn-primary { grid-column: 1 / -1; }
.gen-live { font-size: 12px; color: #9fe9bf; display: flex; align-items: center; gap: 6px; }
.gen-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.gen-pick { display: grid; gap: 6px; }
.gen-pick button { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; text-align: left; min-height: 40px;
  padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer; font-size: 12.5px; }
.gen-pick button:hover { border-color: var(--accent); }
.gen-pick .sw { display: inline-flex; gap: 2px; }
.gen-pick .sw i { width: 13px; height: 13px; border-radius: 3px; display: inline-block; }

/* Zonen-Raster (Pixel-Gruppen): Spalten = Geräte, Zeilen = Zellen (oben = letzte Zelle) */
.zone-grid { display: flex; gap: 6px; justify-content: center; padding: 8px; background: #0c0e12; border-radius: 8px; user-select: none; touch-action: none; }
.zone-col { display: flex; flex-direction: column-reverse; gap: 2px; }
.zone-col .zc { width: 22px; height: 12px; border-radius: 3px; background: #262a33; cursor: crosshair; }
.zone-col .zh { font: 10px var(--mono); color: var(--muted); text-align: center; margin-top: 3px; order: -1; }
.zone-key { display: flex; gap: 6px; flex-wrap: wrap; }
.zone-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 8px; padding: 4px 10px; min-height: 32px; cursor: pointer; font-size: 12px; }
.zone-btn i { width: 12px; height: 12px; border-radius: 3px; }
.zone-btn.is-on { border-color: #fff; box-shadow: 0 0 0 1px #fff inset; }
.zone-fx { border-left: 4px solid var(--zc, #888); }
@media (max-width: 1100px) {
  .dz-main.pro-layout { display: block; }
  .pro-stage { height: 50vh; display: grid; margin-bottom: 10px; }
  .pro-work .dz-timeline { height: 60vh; }
  .pro-right { margin-top: 10px; }
  .pro-groups { max-height: 260px; }
  .pro-side { max-height: none; min-height: 60vh; }
}

/* ---------------------------------------------------------------- Effekt-Studio (eigenes Fenster je Gruppe) */
.fxs { position: fixed; inset: 0; z-index: 50; background: rgba(4, 5, 8, .74); backdrop-filter: blur(3px); display: grid; place-items: center; }
.fxs[hidden] { display: none; }
body[data-view="rig"] .fxs { display: none; }   /* „Ausrichtung abgleichen“: Studio wartet, bis „Geräte & Bühne“ zurückführt */
/* „Zeigen die Köpfe in echt woandershin? Ausrichtung abgleichen“ unter den Mover-Draufsichten (Effekt-Studio, Look-Werkstatt) */
.abg-link { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.abg-link button { background: none; border: 0; padding: 0; min-height: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; font: inherit; }
.abg-link button:hover { color: var(--text); }
.fxs-win { width: min(1560px, calc(100vw - 28px)); height: calc(100vh - 28px); background: var(--panel); border: 1px solid #2c313d; border-radius: 16px;
  display: grid; grid-template-rows: auto auto minmax(0, 1fr); overflow: hidden; box-shadow: 0 30px 90px rgba(0, 0, 0, .65); }
.fxs-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.fxs-ico { width: 38px; height: 38px; border-radius: 11px; background: #2a2110; color: var(--accent); display: grid; place-items: center; flex: none; }
.fxs-ico svg { width: 22px; height: 22px; }
.fxs-titles { display: grid; }
.fxs-titles h2 { margin: 0; font-size: 19px; font-weight: 700; text-transform: none; letter-spacing: -.01em; color: var(--text); }
.fxs-sub { font-size: 12px; color: var(--muted); }
.fxs-range { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; margin-left: auto; }
.fxs-from { font-size: 12.5px; color: var(--text); margin-right: 6px; font-weight: 600; }
.fxs-head .btn { min-height: 42px; padding: 0 18px; }
.fxs-head .btn-primary { min-width: 150px; }
/* Ablauf-Leiste: „Wie geht es weiter?“ – Looks, Zeitstrahl, Wechsel, Vorschläge */
.fxs-flow { display: grid; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: #12141a; }
.fxs-flowtop { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.fxs-flowlab { display: grid; gap: 1px; min-width: 220px; max-width: 360px; }
.fxs-flowlab b { font-size: 13.5px; }
.fxs-flowlab span { font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.fxs-looks { display: flex; gap: 6px; flex-wrap: wrap; }
.fxs-look { --lc: var(--accent); display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; }
.fxs-look i { width: 10px; height: 10px; border-radius: 3px; background: var(--lc); }
.fxs-look.is-on { border-color: var(--lc); box-shadow: 0 0 0 2px color-mix(in srgb, var(--lc) 35%, transparent); }
.fxs-look.is-add { color: var(--muted); border-style: dashed; }
.fxs-look.is-add:hover { color: var(--accent); border-color: #5a4415; }
.fxs-lookx { margin-left: 2px; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; color: var(--muted); font-size: 15px; }
.fxs-lookx:hover { background: #3a1b1b; color: #ff8a8a; }
.fxs-flowsug { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.fxs-flowbot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.fxs-flowbar { position: relative; flex: 1 1 320px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: #0b0c10; overflow: hidden; cursor: pointer; padding: 0; }
.fxs-flowbar.is-on { border-color: #6a7183; }
.fxs-seg { --lc: var(--accent); position: absolute; top: 3px; bottom: 3px; border-radius: 6px; margin-left: 2px; background: color-mix(in srgb, var(--lc) 26%, #0b0c10);
  border: 1px solid color-mix(in srgb, var(--lc) 55%, transparent); color: var(--text); font: 700 12px/26px -apple-system, sans-serif; text-align: center;
  box-sizing: border-box; max-width: calc(100% - 4px); transition: background .15s; }
.fxs-seg.is-cur { background: color-mix(in srgb, var(--lc) 62%, #0b0c10); color: #0b0c10; }
.fxs-ph { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; box-shadow: 0 0 8px rgba(255, 255, 255, .7); pointer-events: none; }
.fxs-flowopts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fxs-flowopts .fxs-lbl { margin: 0; }
.fxs-chips.is-tight .fxs-chip { min-height: 34px; padding: 0 10px; }
.fxs-body { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(380px, 1fr); min-height: 0; }
.fxs-stage { position: relative; background: #050608; border-right: 1px solid var(--line); min-height: 0; overflow: hidden; }
.fxs-slot { position: absolute; inset: 0; }
.fxs-cv { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; display: block; }
.fxs-tools { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.fxs-hint { position: absolute; left: 14px; bottom: 12px; font-size: 12.5px; color: rgba(231, 233, 238, .62); pointer-events: none; z-index: 2; }
.fxs-ctrl { overflow: auto; padding: 14px 16px 28px; display: grid; gap: 22px; align-content: start; }
.fxs-sec h3 { margin: 0 0 8px; font-size: 14.5px; }
.fxs-secsub { margin: -4px 0 10px; font-size: 12px; color: var(--muted); line-height: 1.45; }
.fxs-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.fxs-card { display: grid; gap: 4px; align-content: start; padding: 6px 6px 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2);
  color: var(--text); text-align: left; cursor: pointer; transition: border-color .12s, transform .12s; }
.fxs-card:hover, .fxs-card:focus-visible { border-color: #6a7183; transform: translateY(-1px); outline: none; }
.fxs-card.is-on { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(255, 176, 32, .35); }
.fxs-thumb { width: 100%; height: 66px; border-radius: 8px; display: block; background: #07080b; }
.fxs-cards.is-pix .fxs-thumb, .fxs-cards.is-split .fxs-thumb { height: 76px; }
/* Moving Heads: Draufsicht-Karten (Ziele, Bewegungen) */
.fxs-cards.is-map { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
.fxs-cards.is-map .fxs-thumb { height: 128px; }
.fxs-card { position: relative; }
.fxs-badge { position: absolute; top: 10px; left: 10px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #1a1205;
  font: 700 12px/22px -apple-system, sans-serif; text-align: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.fxs-edit { cursor: pointer; color: #cfd5e2; border-color: #3a4152; background: #1b1f28; }
.fxs-edit:hover, .fxs-edit:focus-visible { color: var(--accent); border-color: #5a4415; outline: none; }
.fxs-aimmap { margin: 0 16px; width: calc(100% - 32px); height: 230px; }
.fxs-steps { margin: 10px 0 4px; padding-left: 20px; display: grid; gap: 6px; font-size: 13px; line-height: 1.45; color: var(--text); }
.fxs-aimmsg { margin: 10px 0 0; padding: 8px 10px; border-radius: 8px; background: #1b2a1c; border: 1px solid #2f5132; color: #bfe6c2; font-size: 12.5px; }
.fxs-cardname { font-weight: 650; font-size: 12.5px; padding: 0 2px; line-height: 1.25; }
.fxs-cardsub { font-size: 11px; color: var(--muted); padding: 0 2px; line-height: 1.3; }
.fxs-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.fxs-chip { border: 1px solid var(--line); background: var(--panel-2); color: var(--text); border-radius: 999px; padding: 4px 12px; min-height: 32px; cursor: pointer; font-size: 12.5px; }
.fxs-chip:hover { border-color: #6a7183; }
.fxs-chip.is-on { background: var(--accent); border-color: var(--accent); color: #1a1205; font-weight: 650; }
.fxs-chips.is-num .fxs-chip { min-width: 34px; padding: 4px 0; text-align: center; }
.fxs-cols { display: flex; flex-wrap: wrap; gap: 6px; }
.fxs-col { width: 38px; height: 38px; border-radius: 9px; border: 2px solid transparent; cursor: pointer; position: relative; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.fxs-col.is-on { border-color: #fff; }
.fxs-col small { position: absolute; right: 3px; bottom: 1px; font: 700 10px var(--mono); color: #000b; }
.fxs-lbl { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 14px 0 6px; }
.fxs-ztabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.fxs-ztab { display: grid; grid-template-columns: 12px auto; gap: 0 8px; align-items: center; padding: 6px 14px 6px 10px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text); cursor: pointer; text-align: left; font-weight: 650; font-size: 12.5px; }
.fxs-ztab i { width: 12px; height: 12px; border-radius: 3px; background: var(--zc); grid-row: span 2; }
.fxs-ztab small { color: var(--muted); font-size: 11px; font-weight: 500; }
.fxs-ztab.is-on { border-color: var(--zc); box-shadow: 0 0 0 1px var(--zc) inset; }
/* Die 3D-Vorschau des Profi-Modus liegt während des Studios genau auf dem Platz im Fenster (ohne Neuladen) */
.pro-stage.in-studio { position: fixed; z-index: 51; border-radius: 0; border: 0; }
body:has(.fxs-pop) .pro-stage.in-studio { z-index: 49; }   /* Farbrad-Fenster liegt innerhalb von .fxs, die 3D-Bühne darf es nicht verdecken */
.pro-stage.in-studio [data-pv], .pro-stage.in-studio #bpm-field, .pro-stage.in-studio #bars-field { display: none !important; }
body.fxs-open { overflow: hidden; }
/* Einstiege ins Studio */
.pg-fx { grid-column: 3; grid-row: 2; justify-self: end; font-size: 11.5px; font-weight: 650; color: var(--accent); padding: 3px 9px; border-radius: 999px;
  border: 1px solid #5a4415; background: #2a2110; cursor: pointer; }
.pg-fx:hover { background: var(--accent); color: #1a1205; }
.tl-gsec .sec-fx { margin-left: 8px; background: #2a2110; border: 1px solid #5a4415; color: var(--accent); border-radius: 999px; font-size: 11px; padding: 2px 9px;
  cursor: pointer; text-transform: none; letter-spacing: 0; font-weight: 650; }
.tl-gsec .sec-fx:hover { background: var(--accent); color: #1a1205; }
.gen-studio { width: 100%; min-height: 50px; font-size: 14px; }
@media (max-width: 1100px) {
  .fxs-body { grid-template-columns: 1fr; grid-template-rows: 46vh auto; overflow: auto; }
  .fxs-ctrl { overflow: visible; }
}
/* Effekt-Studio: Feineinstellung, Farbrad, Säulen */
.fxs-body { position: relative; }
.fxs-gear { justify-self: start; margin-top: 2px; font-size: 11px; font-weight: 650; color: var(--accent); padding: 2px 8px; border-radius: 999px; border: 1px solid #5a4415; background: #2a2110; }
.fxs-sheet { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 42%); z-index: 3; background: var(--panel); border-left: 1px solid #3a4152;
  box-shadow: -18px 0 40px rgba(0, 0, 0, .45); display: grid; grid-template-rows: auto auto minmax(0, 1fr); animation: fxs-in .16s ease-out; }
@keyframes fxs-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.fxs-sheethead { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 14px 16px 8px; }
.fxs-sheethead h3 { margin: 0 0 2px; font-size: 16px; }
.fxs-sheethead .btn { min-height: 40px; }
.fxs-sheetthumb { margin: 0 16px; width: calc(100% - 32px); height: 90px; }
.fxs-sheetbody { overflow: auto; padding: 4px 16px 24px; }
.fxs-popslider { display: grid; grid-template-columns: 1fr 64px; gap: 10px; align-items: center; font-size: 12.5px; }
.fxs-popslider:has(> span:first-child) { grid-template-columns: 96px 1fr 44px; }
.fxs-popslider input[type="range"] { width: 100%; accent-color: var(--accent); }
.fxs-pop { position: absolute; inset: 0; z-index: 5; background: rgba(4, 5, 8, .55); display: grid; place-items: center; }
.fxs-popbox { background: var(--panel); border: 1px solid #3a4152; border-radius: 14px; padding: 16px 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); width: min(620px, calc(100% - 32px)); }
.fxs-popbox h3 { margin: 0 0 12px; font-size: 16px; }
.fxs-poptop { display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: start; }
.fxs-wheel { width: 220px; height: 220px; border-radius: 50%; cursor: crosshair; touch-action: none; }
.fxs-popside { display: grid; gap: 10px; }
.fxs-popprev { height: 54px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.fxs-popact { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.fxs-popact .btn { min-height: 42px; }
.fxs-wheelbtn { background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red) !important; }
.fxs-wheelbtn::after { content: "+"; position: absolute; inset: 0; display: grid; place-items: center; font: 700 18px var(--font); color: #fff; text-shadow: 0 1px 3px #000; }
.fxs-col.is-own { border-style: dashed; }
@media (max-width: 700px) { .fxs-poptop { grid-template-columns: 1fr; } .fxs-sheet { width: 100%; } }

/* Effekt-Studio: Pixel-Karte „Geräte & Lage“ */
.fxs-lagen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.fxs-lage { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; min-height: 76px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel, #171a21); color: inherit; font: inherit; cursor: pointer; }
.fxs-lage i { width: 5px; height: 26px; margin: 2px 0 6px; border-radius: 3px; background: linear-gradient(0deg, #ffb020 0 22%, #4a5060 22%); }
.fxs-lage b { font-size: 12.5px; font-weight: 600; }
.fxs-lage small { font-size: 11px; color: var(--muted); }
.fxs-lage:hover, .fxs-lage:focus-visible { border-color: #6a7183; outline: none; }
.fxs-lage.is-on { border-color: #ffb020; background: rgba(255, 176, 32, .1); }
.fxs-numrow { display: flex; gap: 10px; margin-top: 10px; }
.fxs-num { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.fxs-num input { width: 84px; min-height: 36px; padding: 0 8px; border-radius: 9px; border: 1px solid var(--line); background: #0e1016; color: inherit; font: inherit; }
.fxs-rot { display: grid; grid-template-columns: auto 1fr 44px; gap: 10px; align-items: center; margin-bottom: 8px; font-size: 12.5px; }
.fxs-rot input { width: 100%; accent-color: #ffb020; }
.fxs-reset { margin-top: 10px; }
.fxs-cv.is-karte { cursor: grab; }

/* Show auf den zweiten Song-Eintrag übertragen („X..wav“) */
.song-twin { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 8px 12px; margin: 4px 0 8px; border-radius: 10px; background: var(--panel-2); color: var(--text); font-size: 13px; }
.song-twin .btn { min-height: 44px; }

/* Neue Geräte in Autoloops */
.spur { display: grid; gap: 12px; }
.spur-rows { display: grid; gap: 12px; }
.spur-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.spur-hin { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 12px; }
.spur-lauf { margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; }
.spur-lauf[hidden] { display: none; }
