/* Werkzeug-Leiste für Autoloop und Static Look (js/designer/studioleiste.js): Leiste | Bühne | ein Werkzeug zur Zeit.
   Gilt nur, wenn .st-grid die Klasse sl-on trägt. Knöpfe der Leiste kommen aus songstudio.css (.ss-rail, .ss-tool). */
.st-grid.sl-on, .st-grid.sl-on.bf-cols {
  grid-template-columns: 86px minmax(0, 1fr) minmax(320px, 26%);
  grid-template-rows: minmax(0, 1fr);
  gap: 10px; padding: 10px 14px 12px; overflow: hidden; align-items: stretch; height: 100%;
}
.st-grid.sl-on > .bf-split { display: none; }
.st-grid.sl-on > .sl-rail { grid-column: 1; grid-row: 1; }
.st-grid.sl-on > .st-left, .st-grid.sl-on.lk-open > .st-left {
  grid-column: 2; grid-row: 1; display: flex; flex-direction: column; min-height: 0; overflow: hidden; position: static; max-height: none; }
.st-grid.sl-on .st-view { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.st-grid.sl-on .st-stage, .st-grid.sl-on.bf-stage-fix:not(.mw-open) .st-stage { flex: 1 1 auto; aspect-ratio: auto; height: auto; min-height: 0; }
.st-grid.sl-on .st-playbar { padding: 8px 12px; }
.st-grid.sl-on .bf-stage-grip { display: none; }

.sl-tafel { grid-column: 3; grid-row: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start; min-height: 0; padding: 12px;
  overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); scrollbar-gutter: stable; }
.sl-tafel > .st-under, .sl-tafel > .st-right { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start; min-width: 0; }
.sl-tafel > .st-under:not(:has(> :not(.sl-weg))), .sl-tafel > .st-right:not(:has(> :not(.sl-weg))) { display: none; }
.sl-weg { display: none !important; }
.sl-hinweis { margin: 0; color: var(--muted); font-size: 13.5px; }
.sl-hinweis[hidden] { display: none; }

/* schmale Tafel: Kacheln in zwei Spalten statt vier */
.sl-tafel .moods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sl-tafel .worlds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sl-tafel .faders { grid-template-columns: minmax(0, 1fr); }

/* Look: Geräteliste zuerst, „Beim Drücken“ und Blenden darunter; Zeilen zweizeilig, sonst überlappen Zustand und Chips */
.sl-tafel .lk-press { order: 1; }
.sl-tafel .bfb[data-bf="uebergang"] { order: 2; }
.sl-tafel .lk-row { grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 4px 10px; }
.sl-tafel .lk-row .lk-chips { grid-column: 2 / -1; grid-row: 2; }
.sl-tafel .lk-list .sec-t small { display: block; margin: 2px 0 0; font-weight: 500; }

.sl-rail[data-ss-new]::before { display: none; }   /* Abzeichen gehört zu den Werkzeugen des Song-Studios */

/* offene Lichtgruppe: Liste nur noch zum Wechseln, die Einstellungen rücken nach oben */
.sl-tafel:has(.lk-head) .lk-list .sec-t, .sl-tafel:has(.lk-head) .lk-row .lk-chips, .sl-tafel:has(.lk-head) .lk-row small { display: none; }
.sl-tafel:has(.lk-head) .lk-list { gap: 4px; }
.sl-tafel:has(.lk-head) .lk-row { min-height: 40px; padding: 2px 10px; }
.sl-tafel .lk-list .sec-t { display: block; }

/* Schalter „Geführt“ (js/designer/gefuehrt.js): Knopf im Show-Kopf, Leiste unten in der rechten Spalte */
.st-gf { flex: none; min-height: 36px; padding: 0 10px; font-size: 13.5px; }
.st-gf .ic { width: 17px; height: 17px; }
.st-gf.on { background: #2a2110; border-color: var(--accent); color: var(--accent); }
@media (max-width: 1499px) { body.einzeile .st-gf span { display: none; } body.einzeile .st-gf { padding: 0 8px; } }
.gf-bar { position: sticky; bottom: 0; z-index: 4; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--accent); background: #1b1405; }
.sl-tafel .gf-bar { margin: 0 -12px -12px; }
.gf-text { flex: 1 1 0; min-width: 0; display: grid; gap: 1px; }
.gf-text small { color: var(--accent); font: 600 12px var(--font); }
.gf-text b { font: 650 14px/1.25 var(--font); color: var(--text); }
.gf-tasten { display: flex; gap: 6px; flex: none; }
.gf-tasten .btn { min-height: 36px; padding: 0 12px; }
.gf-an .ss-tool.gf-neben { opacity: .42; }

/* Bühne als Vollbild (Taste F) */
.st-view:fullscreen { display: flex; flex-direction: column; width: 100vw; height: 100vh; max-height: none; background: #000; }
.st-view:fullscreen .st-stage { flex: 1 1 auto; aspect-ratio: auto; height: auto; min-height: 0; border-radius: 0; }
.st-view:fullscreen .st-playbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; background: #0b0d12e6; opacity: 0; transition: opacity .2s; }
.st-view:fullscreen .st-playbar:hover, .st-view:fullscreen .st-playbar:focus-within { opacity: 1; }
