/* Show-Designer: Oberfläche mit Projekt-Übersicht (Bänke als Pads), Studio und Profi-Modus.
   Baut auf style.css (Farben) und designer.css (Profi-Modus) auf. */
:root {
  --panel-3: #1e222b; --line-2: #313744; --dim: #6f7685; --muted: #9aa1ae;
  --accent-ink: #1a1205; --info: #6fb3ff;
  --loop: #ffb020; --look: #ff5fa8; --song: #3cc8ff;
  --r: 12px; --r-s: 9px;
}
body.app { display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100vh; overflow: hidden; font-size: 15px; line-height: 1.45; }
.app ::selection { background: #ffb02055; color: #fff; }
.app * { scrollbar-width: thin; scrollbar-color: #343a48 transparent; }
.app ::-webkit-scrollbar { width: 10px; height: 10px; }
.app ::-webkit-scrollbar-thumb { background: #2d323d; border-radius: 10px; border: 2px solid var(--bg); }
.app .brand-mark { box-shadow: none; }
.app :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ic { width: 22px; height: 22px; flex: none; }
.show-xs { display: none; }

/* ---------------------------------------------------------------- Kopfzeile */
.app-top { gap: 14px; padding: 8px 16px; min-height: 64px; }
.app-top .brand { color: var(--text); text-decoration: none; font-size: 16px; }
.app-top .opt-btn { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; flex: none; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); color: var(--muted); cursor: pointer; }
.app-top .opt-btn:hover { color: var(--text); border-color: #4a5263; }
.proj-btn { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 4px 12px 4px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); text-align: left; max-width: 300px; }
.proj-btn:hover { border-color: #4a5263; }
.venue-wahl { flex: 0 1 180px; min-width: 0; min-height: 46px; border-radius: 10px; }
.proj-btn .ic { width: 20px; height: 20px; color: var(--muted); }
.proj-btn b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proj-btn small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; }
.rig-strip { display: flex; gap: 6px; flex-wrap: wrap; min-width: 0; }
.rig-it { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px 0 8px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); font-size: 13px; }
.rig-it:hover { border-color: #4a5263; }
.rig-it .ic { width: 20px; height: 20px; color: var(--accent); }
.rig-it b { font-variant-numeric: tabular-nums; }
.rig-it span { color: var(--muted); white-space: nowrap; }
.pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 0 14px; border: 1px solid; background: none; font-weight: 650; font-size: 13.5px; min-height: 42px; white-space: nowrap; }
.pill .ic { width: 18px; height: 18px; }
.pill.ok { color: #9fe9bf; border-color: #1f5a3a; background: #10241a; }
.pill.warn { color: #ffd27a; border-color: #5a4415; background: #2a2110; }
.pill.bad { color: #ffb0b2; border-color: #5a2224; background: #2a1012; }

/* ---------------------------------------------------------------- Knöpfe */
.app .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); font-weight: 600; white-space: nowrap; text-decoration: none; }
.app .btn:hover:not(:disabled) { border-color: #4a5263; background: var(--panel-3); }
.app .btn .ic { width: 20px; height: 20px; }
.app .btn.primary, .app .btn.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.app .btn.primary:hover:not(:disabled), .app .btn.btn-primary:hover:not(:disabled) { filter: brightness(1.07); background: var(--accent); }
.app .btn.big { min-height: 56px; font-size: 16.5px; padding: 0 24px; border-radius: 12px; }
.app .btn:disabled { opacity: .5; cursor: not-allowed; }
.app .btn.ghost { background: none; border-color: transparent; color: var(--muted); }
.app .btn.ghost:hover { color: var(--text); background: var(--panel-2); }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 9px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--panel-2); color: var(--text); }

/* ---------------------------------------------------------------- Ansichten */
#app-main { min-height: 0; position: relative; }
.view { height: 100%; min-height: 0; }
.view.start, .view.checks { overflow: auto; }

/* ---------------------------------------------------------------- Start */
.start-in { max-width: 1180px; margin: 0 auto; padding: 36px 24px 60px; display: grid; gap: 28px; }
.start-in > .btn { justify-self: start; }
.start-in h1 { margin: 0; font-size: 30px; letter-spacing: -.01em; }
.start-in .lead { margin: 6px 0 0; color: var(--muted); max-width: 68ch; font-size: 16px; }
.drop { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 22px 24px; border-radius: 16px; border: 2px dashed #3a4152; background: var(--panel); }
.drop.over { border-color: var(--accent); background: #2a2110; }
.drop > .ic { width: 44px; height: 44px; color: var(--accent); }
.drop b { font-size: 18px; } .drop p { margin: 4px 0 0; color: var(--muted); }
.drop-btns { display: grid; gap: 8px; }
.pcard-wrap { position: relative; display: grid; }
.pcard-wrap .pcard { padding-right: 52px; }
.pcard-x { position: absolute; top: 8px; right: 8px; }
.pcard-x .ic { width: 18px; height: 18px; }
.proj-group h2 { margin: 0 0 12px; font-size: 14px; letter-spacing: .02em; color: var(--muted); text-transform: none; font-weight: 700; }
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.pcard { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; text-align: left; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); min-height: 96px; align-content: start; }
.pcard:hover { border-color: var(--accent); }
.pcard > .ic { grid-row: span 3; width: 32px; height: 32px; color: var(--accent); }
.pcard b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; }
.pcard .meta { color: var(--muted); font-size: 13px; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-size: 12px; font-weight: 650; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.badges { min-width: 0; }
.badge.copy { color: #9fe9bf; border-color: #1f5a3a; }
.badge.live { color: #ffd27a; border-color: #5a4415; }

/* ---------------------------------------------------------------- Übersicht */
.home { display: grid; grid-template-columns: 240px minmax(0, 1fr); }
.rail { background: var(--panel); border-right: 1px solid var(--line); padding: 14px; display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-rows: max-content; gap: 20px; align-content: start; overflow: hidden auto; }   /* max-content: ist die Leiste höher als das Fenster, zählt bei auto nur min-height und Inhalt ragt heraus */
.kinds { display: grid; gap: 8px; }
.kbtn { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; min-height: 60px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel-2); font-weight: 700; font-size: 15.5px; text-align: left; }
.kbtn .ic { width: 26px; height: 26px; }
.kbtn small { color: var(--dim); font-weight: 600; font-variant-numeric: tabular-nums; }
.kbtn.loop .ic { color: var(--loop); } .kbtn.look .ic { color: var(--look); } .kbtn.song .ic { color: var(--song); }
.kbtn:hover { border-color: #4a5263; }
.kbtn.on.loop { border-color: var(--loop); background: #2a2110; }
.kbtn.on.look { border-color: var(--look); background: #2a1020; }
.kbtn.on.song { border-color: var(--song); background: #0f2230; }
.rail h3 { margin: 0 0 6px; font-size: 13px; color: var(--muted); font-weight: 700; }
.blist { display: grid; gap: 3px; }
.bitem { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 9px; border: 0; background: none; color: var(--muted); font-weight: 600; text-align: left; }
.bitem:hover:not(:disabled) { color: var(--text); background: var(--panel-2); }
.bitem.on { background: var(--panel-3); color: var(--text); }
.bitem .bname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bitem { position: relative; overflow: hidden; }
.bitem::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) var(--fill, 0%), #2a2e39 var(--fill, 0%)); opacity: .55; }
.bitem.on::after { opacity: 1; }
.lights { display: grid; gap: 4px; border-top: 1px solid var(--line); padding-top: 16px; }
.lights h3 small { color: var(--dim); font-weight: 600; margin-left: 4px; }
.lights summary { display: flex; align-items: center; justify-content: space-between; min-height: 36px; cursor: pointer; list-style: none; }
.lights summary::-webkit-details-marker { display: none; }
.lights summary h3 { margin: 0; }
.lights .chev { width: 18px; height: 18px; color: var(--muted); transition: transform .2s; }
.lights[open] .chev { transform: rotate(90deg); }
.lights[open] > .lights-list { margin-top: 4px; }
.lights-list { display: grid; gap: 2px; }
.light { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; min-height: 40px; padding: 0 10px; border: 0; border-radius: 9px; background: none; color: var(--text); text-align: left; font-size: 14px; }
.light:hover { background: var(--panel-2); }
.light .ic { width: 20px; height: 20px; color: var(--accent); }
.light span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.light b { color: var(--muted); font-variant-numeric: tabular-nums; }
.app .btn.small-btn { min-height: 40px; justify-self: start; padding: 0 10px; }
/* in <details> wirkt das Raster von .lights nicht: ohne das stehen die Knöpfe nebeneinander und schieben die Leiste über ihren Rand */
.app .lights > .btn.small-btn { display: flex; width: 100%; justify-content: flex-start; padding: 6px 10px; text-align: left; white-space: normal; }
.bitem span { font-variant-numeric: tabular-nums; color: var(--dim); font-size: 13px; }
.bitem:disabled { opacity: .55; cursor: not-allowed; }
.rail-hint { margin: 0; color: var(--dim); font-size: 12.5px; }
/* Linke Spalte: oben „Was baust du?“, unten „Dein Rig“. Bei vielen Geräten rollt die Rig-Liste, sonst verdrängt sie Autoloops, Looks und Songs */
.rail-bau { display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-rows: max-content; gap: 8px; align-content: start; }
.rail-bau .blist { margin-bottom: 6px; }
@media (min-width: 981px) {
  .rail { display: flex; flex-direction: column; gap: 12px; padding: 12px 14px; overflow: hidden; }
  .rail-bau { flex: 0 0 auto; max-height: 62%; overflow: hidden auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
  .rail-rig { flex: 0 1 auto; min-height: 0; margin-top: auto; overflow: hidden auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding-top: 12px; border-top: 1px solid var(--line); }
  .rail-rig h3 { margin-bottom: 2px; }
  .rail-rig .lights { border-top: 0; padding-top: 0; }
  .rail-rig .lights summary { min-height: 32px; }
  .rail-rig .lights summary h3 { font-size: 12.5px; font-weight: 600; }
  .app .rail-rig > .btn.small-btn { display: flex; width: 100%; min-height: 36px; justify-content: flex-start; padding: 4px 10px; text-align: left; white-space: normal; border-color: transparent; background: none; }
  .app .rail-rig > .btn.small-btn:hover { background: var(--panel-2); }
  .kbtn { min-height: 48px; }
  .kinds { gap: 6px; }
}
@media (max-width: 980px) { .rail-bau > h3:first-child { display: none; } }

.work { padding: 20px 24px 40px; overflow: auto; display: grid; gap: 16px; align-content: start; min-width: 0; }
.work-head { display: flex; align-items: end; gap: 16px; flex-wrap: wrap; }
.work-head h1 { margin: 0; font-size: 24px; letter-spacing: -.01em; }
.work-head p { margin: 2px 0 0; color: var(--muted); }
.work-head .spacer { flex: 1; }
.pads { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.pad { position: relative; aspect-ratio: 1 / .78; border-radius: 14px; border: 1px solid var(--line); background: var(--panel-2); display: grid; align-content: end; padding: 10px; text-align: left; overflow: hidden; color: var(--text); transition: transform .18s cubic-bezier(.2, .8, .2, 1), border-color .18s; }
.pad .glow { position: absolute; inset: 0; opacity: .6; transition: opacity .25s; }
.pad .lbl { position: relative; display: grid; gap: 2px; text-shadow: 0 1px 2px #000; margin: 0 -10px -10px; padding: 18px 10px 9px; background: linear-gradient(transparent, #000000c4 55%); border-radius: 0 0 13px 13px; }
.pad .lbl b { font-size: 13.5px; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pad .lbl small { color: #d9dde5; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.pad .mark { position: absolute; top: 8px; right: 8px; display: inline-flex; padding: 3px; border-radius: 7px; background: #000a; color: var(--accent); }
.pad .mark .ic { width: 14px; height: 14px; }
.pad:hover { border-color: #6a7283; transform: translateY(-2px); }
.pad:hover .glow { opacity: .8; }
.pad.empty { border-style: dashed; background: none; color: var(--dim); place-items: center; align-content: center; justify-items: center; gap: 4px; }
.pad.empty .ic { width: 26px; height: 26px; }
.pad.empty small { font-size: 11.5px; }
.pad.empty.next { color: var(--accent); border-color: #6a5320; }
.pad.empty:hover { color: var(--accent); border-color: var(--accent); }
.pad.loading .glow { background: linear-gradient(100deg, var(--panel-2) 30%, #2a2f3a 50%, var(--panel-2) 70%) !important; background-size: 300% 100% !important; animation: shimmer 1.4s ease-in-out infinite; opacity: 1; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.pad.recent { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 1px; }
.full-note { color: var(--muted); margin: 0; }

.songs-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.search { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); min-width: min(360px, 100%); }
.search input { flex: 1; border: 0; background: none; outline: none; min-height: 40px; color: var(--text); }
.search .ic { color: var(--muted); width: 20px; height: 20px; }
.songs { display: grid; gap: 6px; max-width: 980px; }
.songr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; min-height: 60px; padding: 0 16px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--panel-2); text-align: left; color: var(--text); }
.songr:hover { border-color: #4a5263; }
.songr > .ic { color: var(--song); }
.songr b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.songr span { color: var(--muted); font-size: 13px; }
.st-chip { font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--dim); white-space: nowrap; }
.st-chip.has { color: #9fe9bf; border-color: #1f5a3a; }
.st-chip.miss { color: #ffd27a; border-color: #5a4415; }
.empty-box { display: grid; gap: 12px; justify-items: start; padding: 22px; border-radius: var(--r); border: 1px dashed var(--line-2); max-width: 760px; }
.empty-box b { font-size: 17px; }
.empty-box p { margin: 0; color: var(--muted); }
.steps-list { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.steps-list li::marker { color: var(--accent); font-weight: 800; }

/* Hinweise */
.checks { display: grid; gap: 8px; max-width: 980px; }
.chk { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--panel-2); }
.chk > .ic { color: var(--info); width: 24px; height: 24px; }
.chk.warn > .ic, .chk.todo > .ic { color: var(--accent); }
.chk.block > .ic { color: var(--bad); }
.chk b { font-size: 15px; }
.chk p { margin: 3px 0 0; color: var(--muted); font-size: 13.5px; max-width: 80ch; }
.chk .devs { margin-top: 6px; color: var(--dim); font-size: 12.5px; }
.chk.done { opacity: .6; }
.chk-btns { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 640px) { .chk { grid-template-columns: auto minmax(0, 1fr); } .chk > .btn, .chk-btns { grid-column: 1 / -1; } .chk-btns { flex-direction: row; flex-wrap: wrap; } }

/* ---------------------------------------------------------------- Studio */
.studio { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); }
.st-head { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-bottom: 1px solid var(--line); background: var(--panel); flex-wrap: wrap; }
.st-name { flex: 1; min-width: 200px; font-size: 21px; font-weight: 700; background: none; border: 1px solid transparent; border-radius: 9px; padding: 6px 10px; color: var(--text); }
.st-name:hover { border-color: var(--line); }
.st-name:focus { border-color: var(--accent); outline: none; background: var(--panel-2); }
.kind-chip { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 14px; padding: 0 12px; min-height: 36px; border-radius: 999px; border: 1px solid; }
.kind-chip .ic { width: 18px; height: 18px; }
.kind-chip.loop { color: var(--loop); border-color: #5a4415; } .kind-chip.look { color: var(--look); border-color: #5a2240; } .kind-chip.song { color: var(--song); border-color: #1d4a63; }
.st-dirty { color: var(--accent); font-size: 13px; font-weight: 600; }
.st-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, 1fr); gap: 16px 20px; padding: 14px 20px; overflow: auto; align-items: start; min-height: 0; }
.st-left, .st-right { display: grid; gap: 14px; min-width: 0; }
.st-view { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--panel); }
.st-stage { position: relative; aspect-ratio: 16 / 9; background: #050608; overflow: hidden; }
.st-playbar { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--line); }
.st-playbar .spacer { flex: 1; }
.st-stage canvas, .st-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border: 0; }
.st-pv .seg-btn { min-height: 40px; padding: 0 14px; font-weight: 650; white-space: nowrap; }
.st-pv { flex: none; }
@media (max-width: 1280px) { .hide-s { display: none; } }
.playb { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.playb .ic { width: 22px; height: 22px; }
.st-time { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 14px var(--font); color: var(--muted); font-variant-numeric: tabular-nums; }
.st-playbar .spacer { display: none; }
.st-busy { position: absolute; inset: 0; display: flex; gap: 10px; align-items: center; justify-content: center; background: #050608b8; color: var(--muted); font-size: 14px; }
.st-busy span { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #3a4152; border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.st-under { display: grid; gap: 12px; }
.sec-t { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.sec-t small { font-weight: 500; color: var(--dim); }
.note-orig { margin: 0; padding: 12px 14px; border-radius: var(--r-s); background: #121a24; border: 1px solid #233448; color: #bcd3ee; font-size: 13.5px; }
.note-warn { margin: 0; padding: 12px 14px; border-radius: var(--r-s); background: #2a2110; border: 1px solid #5a4415; color: #ffd27a; font-size: 13.5px; }
.music-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.faders { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px 18px; }
.fader input { min-width: 0; }
.fader { display: grid; gap: 6px; }
.fader .lb { display: flex; justify-content: space-between; font-size: 14px; font-weight: 650; }
.fader .lb span { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.fader input { width: 100%; height: 36px; accent-color: var(--accent); }
.fader .ends { display: flex; justify-content: space-between; color: var(--dim); font-size: 12px; margin-top: -6px; }
.row-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row-tools .seg { flex-wrap: wrap; }
.seg.lens .seg-btn { min-height: 40px; padding: 0 14px; font-weight: 650; }
.variant { display: flex; align-items: center; gap: 8px; }
.variant .v-prev { width: 44px; padding: 0; }
.variant .v-num { min-width: 84px; text-align: center; font-weight: 650; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tweaks { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.tweaks .tw-l { font-size: 14px; font-weight: 650; color: var(--muted); }
.opt:disabled { opacity: .45; cursor: not-allowed; border-color: var(--line-2); }

/* „Sag es einfach“ (KI) – oben in der rechten Spalte des Studios */
.say { display: grid; gap: 10px; padding: 14px; border-radius: var(--r); border: 1px solid #4a3d18; background: linear-gradient(180deg, #211c10, var(--panel-2) 70%); }
.say .sec-t { margin: 0; flex-wrap: wrap; }
.say .sec-t .ic { width: 18px; height: 18px; color: var(--accent); }
.say-row { display: flex; gap: 8px; align-items: stretch; }
.say textarea { flex: 1; min-width: 0; min-height: 56px; resize: vertical; padding: 10px 12px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--panel); color: var(--text); font: 15px/1.4 var(--font); }
.say textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.say textarea:disabled { opacity: .6; }
.say-row .btn { min-height: 56px; min-width: 76px; padding: 0 18px; font-weight: 700; justify-content: center; }
.say-spin { display: inline-block; width: 14px; height: 14px; margin-right: 6px; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; animation: spin .8s linear infinite; }
.say-res { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--r-s); background: #10241a; border: 1px solid #1f5a3a; color: #cfeedd; font-size: 13.5px; }
.say-res > .ic { width: 18px; height: 18px; color: #6fdc9f; flex: none; align-self: flex-start; margin-top: 1px; }
.say-res > div { flex: 1; min-width: 0; }
.say-res p { margin: 0; }
.say-res .say-unclear { margin-top: 4px; color: #ffd27a; }
.say-res .btn { flex: none; }
.say-err { margin: 0; color: var(--bad); font-size: 13.5px; }
.say-meta { margin: 0; color: var(--dim); font-size: 12px; }
.say-quota { display: grid; gap: 4px; justify-items: start; }
.say-more { min-height: 32px; padding: 0; border: 0; background: none; color: var(--accent); font: 600 12.5px var(--font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.say-more:hover { color: var(--text); }
.say-more:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
/* Regeln je Gerätegruppe/Zeitpunkt (kiregeln.js): gelten zusätzlich zur Stimmung, × entfernt */
.say-hint { color: #d9c690; }
.say-rules { display: grid; gap: 6px; justify-items: start; padding: 10px 12px; border-radius: var(--r-s); border: 1px solid #4a3d18; background: #1a160c; }
.say-rules .sr-h { display: flex; align-items: center; gap: 6px; margin: 0; color: #e8d7a4; font: 600 12.5px var(--font); }
.say-rules .sr-h .ic { width: 15px; height: 15px; color: var(--accent); }
.sr-list { display: grid; gap: 4px; width: 100%; margin: 0; padding: 0; list-style: none; }
.sr-list li { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 2px 2px 2px 8px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); }
.sr-dots { display: flex; flex: none; min-width: 12px; }
.sr-dots i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid #0006; margin-right: -3px; }
.sr-t { display: grid; flex: 1; min-width: 0; line-height: 1.25; }
.sr-t b { font: 600 13.5px var(--font); color: var(--text); overflow-wrap: anywhere; }
.sr-t small { color: var(--dim); font-size: 12px; }
.sr-x { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 8px; background: none; color: var(--dim); cursor: pointer; }
.sr-x:hover { background: #ffffff12; color: var(--text); }
.sr-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.sr-x .ic { width: 16px; height: 16px; }
.say-rules .say-unclear { margin: 0; color: #ffd27a; font-size: 12.5px; }

/* Daumen an KI-Ergebnissen (kivote.js): im grünen Kasten von „Sag es einfach“ und unten im Konzept-Fenster */
.say-res:has(> .kiv) { flex-wrap: wrap; }
.say-res .kiv { flex-basis: 100%; padding-top: 8px; border-top: 1px solid #1f5a3a; }
.say-res .kiv .btn { margin-left: 0; }
.kiv { display: grid; gap: 10px; }
.kiv-row { display: flex; align-items: center; gap: 6px; }
.kiv-q { flex: 1; min-width: 0; font-size: 13px; }
.kiv-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-s); border: 1px solid var(--line-2); background: var(--panel); color: var(--text); cursor: pointer; }
.kiv-btn .ic { width: 20px; height: 20px; }
.kiv-btn:hover { border-color: #4a5263; }
.kiv-btn.up.on { background: #6fdc9f; border-color: #6fdc9f; color: #08140e; }
.kiv-btn.down.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.kiv-btn:disabled { opacity: .6; cursor: progress; }
.kiv-btn:focus-visible, .kiv-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.kiv-why { display: grid; gap: 10px; padding: 12px; border-radius: var(--r-s); background: var(--panel); border: 1px solid var(--line-2); color: var(--text); }
.kiv-why b { font-size: 14px; }
.kiv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.kiv-chip { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); font: 13px var(--font); cursor: pointer; }
.kiv-chip:hover { border-color: #4a5263; }
.kiv-chip.on { border-color: var(--accent); background: #2a2110; color: #ffd27a; }
.kiv-why textarea { width: 100%; min-height: 48px; resize: vertical; padding: 8px 10px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: 14px/1.4 var(--font); box-sizing: border-box; }
.kiv-why textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.kiv-show { font-size: 12.5px; color: var(--muted); }
.kiv-show summary { cursor: pointer; color: var(--accent); padding: 4px 0; }
.kiv-show pre { white-space: pre-wrap; margin: 6px 0 0; padding: 8px 10px; border-radius: var(--r-s); background: var(--bg); border: 1px solid var(--line); font: 12px/1.45 ui-monospace, Menlo, monospace; color: #c7ccd6; }
.kiv-acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.kiv-acts .btn { min-height: 44px; }
.kz-vote { padding: 0 22px 12px; }
.kz-vote:empty { display: none; }

/* „Vorschau teilen“ (designer/vorschau.js): Knopf in der Studio-Kopfzeile, Dialog mit Mappen und Link */
.st-share { flex: none; }
.vz { display: grid; gap: 10px; }
.vz-lead { margin: 0; color: var(--muted); font-size: 14px; }
.vz-wait { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: 14px; }
.vz-opt { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel-2); color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.vz-opt b { display: block; font-size: 15px; }
.vz-opt small { display: block; color: var(--muted); font-size: 12.5px; }
.vz-opt:hover:not(:disabled) { border-color: #4a5263; }
.vz-opt.on { border-color: var(--accent); background: #2a2110; }
.vz-opt:disabled { opacity: .5; cursor: not-allowed; }
.vz-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vz-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); }
.vz-opt.on .vz-dot { border: 5px solid var(--accent); }
.vz-form { display: grid; gap: 10px; padding: 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); }
.vz-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vz-f { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.vz-f input, .vz-f textarea, .vz-reply textarea, .vz-link input { width: 100%; box-sizing: border-box; min-height: 44px; padding: 10px 12px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: 15px/1.4 var(--font); }
.vz-f textarea, .vz-reply textarea { resize: vertical; }
.vz-f input:focus-visible, .vz-f textarea:focus-visible, .vz-reply textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.vz-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.35; cursor: pointer; }
.vz-check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--accent); }
.vz-ok { display: flex; gap: 10px; align-items: center; margin: 0; padding: 10px 12px; border-radius: var(--r-s); background: #10241a; border: 1px solid #1f5a3a; color: #cfeedd; font-size: 14px; }
.vz-ok .ic { width: 18px; height: 18px; color: #6fdc9f; flex: none; }
.vz-link { display: flex; gap: 8px; flex-wrap: wrap; }
.vz-link input { flex: 1 1 260px; font: 13px ui-monospace, Menlo, monospace; }
.vz-link .btn { min-height: 44px; text-decoration: none; }
.vz-row { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.vz-more { margin-left: auto; color: var(--accent); font-size: 13.5px; }
.vz-cmts { display: grid; gap: 6px; max-height: 260px; overflow: auto; }
.vz-cmt { display: grid; gap: 2px; padding: 8px 10px; border-radius: var(--r-s); background: var(--panel-2); font-size: 13.5px; justify-items: start; }
.vz-cmt p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.vz-cmt.dj { border-left: 3px solid var(--accent); }
.vz-reply { display: flex; gap: 8px; align-items: stretch; }
.vz-reply textarea { flex: 1; }
@media (max-width: 640px) {
  .vz-two { grid-template-columns: 1fr; }
  .st-share span { display: none; }
  .vz-reply { flex-direction: column; }
}

/* „Aus Foto“ (fotofarben.js): Knopf unter den Farben, Foto auf „Farben“ ziehen, Vorschau im Dialog */
.foto-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.foto-btn { min-height: 48px; }
.foto-hint { color: var(--dim); font-size: 12.5px; }
.colors-sec { border-radius: var(--r); outline: 2px dashed transparent; outline-offset: 6px; transition: outline-color .15s; }
.colors-sec.foto-over { outline-color: var(--accent); background: #2a211022; }
.foto-dlg { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 18px; align-items: start; }
.foto-thumb { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.foto-cols { display: grid; gap: 14px; }
.foto-pal { display: grid; gap: 6px; }
.foto-pal span { color: var(--muted); font-size: 13px; font-weight: 650; }
.foto-pal div { display: flex; height: 44px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.foto-pal i { flex: 1; }
.foto-note { font-size: 13.5px; }
@media (max-width: 700px) { .foto-dlg { grid-template-columns: 1fr; } }

/* „Konzept vorschlagen“ (Song-Show, konzept.js): Karte rechts + großes Fenster (Variante B, Markus 16.10.2026) */
.kz-card { display: grid; gap: 10px; padding: 14px; border-radius: var(--r); border: 1px solid #4a3d18; background: linear-gradient(180deg, #211c10, var(--panel-2) 70%); }
.kz-card .sec-t { margin: 0; flex-wrap: wrap; }
.kz-card .sec-t .ic { width: 18px; height: 18px; color: var(--accent); }
.kz-lead { margin: 0; color: var(--muted); font-size: 13.5px; }
.kz-row { display: flex; gap: 8px; flex-wrap: wrap; }
.kz-row .btn { min-height: 48px; }
.kz-idea-s { margin-top: 4px !important; color: #a9d8bd; font-size: 12.5px; }
.kz-dlg { background: var(--panel); color: var(--text); border: 1px solid var(--line-2); border-radius: 18px; padding: 0; width: min(1240px, calc(100vw - 32px)); max-height: calc(100vh - 40px); box-shadow: 0 30px 80px -20px #000; }
.kz-dlg::backdrop { background: #000b; }
.kz-win { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; max-height: calc(100vh - 42px); }
.kz-x { position: absolute; right: 10px; top: 10px; }
.kz-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; padding: 18px 64px 16px 22px; border-bottom: 1px solid var(--line); align-items: start; }
.kz-h1 { display: grid; gap: 6px; min-width: 0; }
.kz-h2 { display: grid; gap: 6px; justify-items: end; max-width: 300px; }
.kz-h2 .kz-pal { width: 260px; height: 30px; }
.kz-meta { margin: 0; color: var(--dim); font-size: 12.5px; }
.kz-name { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.kz-idea { margin: 0; color: #d7dbe3; max-width: 72ch; }
.kz-pal { display: flex; height: 16px; border-radius: 6px; overflow: hidden; }
.kz-pal i { flex: 1; }
.kz-wait { display: grid; justify-items: center; gap: 14px; padding: 70px 22px; color: var(--muted); }
.kz-wait .say-spin { width: 28px; height: 28px; border-width: 3px; color: var(--accent); }
.kz-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; padding: 18px 22px; overflow: auto; min-height: 0; }
.kz-main { display: grid; gap: 10px; align-content: start; min-width: 0; }
.kz-main .sec-t { margin: 0; }
.kz-tl { display: flex; gap: 4px; min-width: 0; overflow-x: auto; padding-bottom: 6px; }
.kz-col { flex: 1; min-width: 108px; display: grid; grid-template-rows: auto; align-content: start; gap: 7px; padding: 12px 7px 10px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); box-shadow: inset 0 5px 0 var(--mc, var(--line-2)); color: var(--text); font: 12px/1.35 var(--font); text-align: left; cursor: pointer; }
.kz-col:hover, .kz-col.on { border-color: var(--accent); }
.kz-col:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.kz-col b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kz-bars { display: block; color: var(--dim); font-size: 11px; }
.kz-none { color: var(--muted); }
.kz-dim { color: var(--dim); }
.kz-mood { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px; border-radius: 6px; background: var(--panel-3); font-weight: 650; white-space: nowrap; overflow: hidden; }
.kz-mood .ic { width: 14px; height: 14px; color: var(--accent); flex: none; }
.kz-meter { display: grid; gap: 2px; }
.kz-meter label { font-size: 10.5px; color: var(--dim); }
.kz-meter i { display: block; height: 5px; border-radius: 3px; background: #2a2f3a; position: relative; overflow: hidden; }
.kz-meter i::after { content: ""; position: absolute; inset: 0; width: var(--v); background: var(--c, var(--accent)); }
.kz-gobo { display: flex; align-items: flex-start; gap: 5px; color: #cfd3dc; }
.kz-gobo .ic { width: 15px; height: 15px; color: var(--song); flex: none; margin-top: 1px; }
.kz-gobo span span { color: var(--dim); }
.kz-gobo.off { color: var(--dim); }
.kz-gobo.off .ic { color: var(--dim); }
.kz-fx { display: grid; gap: 3px; }
.kz-fx span { padding: 2px 6px; border-radius: 6px; background: #2a2110; color: #ffd27a; font-size: 11px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kz-detail { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); color: #d7dbe3; font-size: 13.5px; }
.kz-aside { display: grid; gap: 16px; align-content: start; }
.kz-box { display: grid; gap: 8px; }
.kz-box .sec-t { margin: 0; }
.kz-checks { display: flex; flex-wrap: wrap; gap: 6px; }
.kz-vc { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 650; border: 1px solid #1f5a3a; color: #9fe9bf; background: #10241a; }
.kz-vc .ic { width: 14px; height: 14px; }
.kz-vc.warn { border-color: #5a4415; color: #ffd27a; background: #2a2110; }
.kz-others { display: grid; gap: 8px; }
.kz-rules { display: grid; gap: 6px; margin: 0 0 6px; padding: 0; list-style: none; }   /* Regeln für einzelne Lichter (kiregeln.js) */
.kz-rules li { display: grid; gap: 1px; padding: 6px 8px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); font-size: 12.5px; }
.kz-rules b { font-weight: 600; overflow-wrap: anywhere; }
.kz-rules span { color: var(--dim); font-size: 12px; }
.kz-other { display: grid; grid-template-columns: minmax(0, 1fr) 90px; gap: 8px; align-items: center; font-size: 12.5px; }
.kz-other b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kz-other span { color: var(--muted); }
.kz-other .kz-pal { height: 14px; border-radius: 4px; }
.kz-diff { margin: 0; color: var(--muted); font-size: 13px; }
.kz-foot { display: flex; gap: 10px; padding: 14px 22px 6px; border-top: 1px solid var(--line); align-items: stretch; flex-wrap: wrap; }
.kz-foot textarea { flex: 1; min-width: 240px; min-height: 48px; resize: vertical; padding: 12px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: 14px/1.4 var(--font); }
.kz-foot textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.kz-foot .btn { min-height: 48px; }
.kz-foot .kz-ok { min-width: 160px; font-size: 16px; }
.kz-q { padding: 0 22px 14px; }
@media (max-width: 900px) {
  .kz-dlg { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; }
  .kz-win { max-height: 100vh; height: 100%; }
  .kz-head { grid-template-columns: 1fr; padding: 16px 56px 14px 16px; }
  .kz-h2 { justify-items: start; } .kz-h2 .kz-pal { width: 100%; }
  .kz-body { grid-template-columns: 1fr; padding: 14px 16px; }
  .kz-foot { padding: 12px 16px 6px; } .kz-q { padding: 0 16px 12px; }
  .kz-foot textarea { min-width: 100%; }
}
@media (max-width: 560px) {
  .say-row { flex-direction: column; }
  .say-row .btn { min-height: 48px; }
  .say-res { flex-wrap: wrap; }
  .say-res > div { flex-basis: calc(100% - 28px); }
  .say-res .btn { margin-left: 28px; }
}

.moods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mood { position: relative; overflow: hidden; display: grid; justify-items: start; align-content: start; gap: 6px; text-align: left; padding: 12px 12px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel-2); min-height: 88px; color: var(--text); }
.mood .band { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; opacity: .85; }
.mood .ic { width: 28px; height: 28px; color: var(--accent); }
.mood b { font-size: 14.5px; }
.mood small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.mood:hover:not(:disabled) { border-color: #4a5263; }
.mood.on { border-color: var(--accent); background: #2a2110; }
.mood:disabled { opacity: .45; cursor: not-allowed; }
.worlds { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.world { display: grid; padding: 0; overflow: hidden; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--panel-2); text-align: left; color: var(--text); }
.world .sw { display: flex; height: 44px; }
.world .sw i { flex: 1; }
.world span { padding: 6px 8px; font-size: 12.5px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.world:hover { border-color: #4a5263; }
.world.on { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: -2px; }
.own-pal { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.own-pal label { position: relative; width: 36px; height: 36px; border-radius: 8px; border: 1px solid #ffffff2a; cursor: pointer; }
.own-pal input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.sections { display: flex; gap: 3px; height: 54px; border-radius: 10px; overflow: hidden; }
.sections button { min-width: 0; border: 0; padding: 4px 6px; color: #fff; font: 650 11.5px var(--font); text-align: left; display: grid; align-content: space-between; text-shadow: 0 1px 2px #000a; }
.sections .s-ruhig { background: #24476b; } .sections .s-groove { background: #2f6b4a; } .sections .s-build { background: #8a6a1c; }
.sections .s-drop { background: #9c2f52; } .sections .s-breakdown { background: #4a3a78; }
.sections button.on { outline: 2px solid var(--accent); outline-offset: -2px; }
.sections button > span:first-child { display: flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; white-space: nowrap; }
.sections .lk { width: 13px; height: 13px; flex: none; }
.sections button.locked { background-image: repeating-linear-gradient(135deg, #ffffff14 0 6px, transparent 6px 12px); }
.sec-tools { display: grid; gap: 10px; margin-top: 10px; padding: 12px 14px; border-radius: var(--r-s); border: 1px solid var(--line-2); background: var(--panel-2); }
.sec-tools-h { display: flex; align-items: baseline; gap: 10px; font-size: 14px; }
.sec-tools-h span { color: var(--muted); font-size: 13px; }
.sec-tools .opt .ic { width: 16px; height: 16px; }
.sec-moods { align-items: center; }
.safe-row { display: flex; align-items: center; gap: 12px; }
.app .btn.test-btn { width: 100%; justify-content: flex-start; gap: 12px; margin-top: 8px; min-height: 56px; padding: 8px 14px; text-align: left; white-space: normal; }
.test-btn .ic { color: var(--accent); width: 22px; height: 22px; flex: none; }
.test-btn span { display: grid; gap: 2px; }
.test-btn small { color: var(--muted); font-weight: 500; font-size: 12px; }
.app .btn.test-btn.on { border-color: var(--accent); background: #2a2110; }
.safe-row div { display: grid; gap: 2px; min-width: 0; }
.safe-row b { font-size: 14px; }
.safe-row small { color: var(--muted); font-size: 12.5px; }
.sec-legend { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; }
.sec-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

.lgroups { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.lg { display: grid; gap: 10px; padding: 12px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--panel-2); }
.lg.off { opacity: .6; }
.lg-top { display: flex; align-items: center; gap: 10px; }
.lg-top .ic { color: var(--accent); }
.lg-top b { flex: 1; font-size: 14px; }
.lg-fx { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: #121a24; border: 1px solid #233448; color: #bcd3ee; font-size: 11.5px; font-weight: 650; white-space: nowrap; }
.lg-fx .ic { width: 13px; height: 13px; color: inherit; }
.switch { position: relative; width: 50px; height: 30px; border-radius: 999px; border: 1px solid var(--line-2); background: #2a2e39; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #c7ccd6; transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.switch[aria-checked="true"] { background: var(--accent); border-color: var(--accent); }
.switch[aria-checked="true"]::after { transform: translateX(20px); background: var(--accent-ink); }
.dots { display: flex; gap: 6px; flex-wrap: wrap; }
.dot { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #ffffff22; padding: 0; }
.dot.on { border-color: #fff; outline: 2px solid var(--accent); outline-offset: 2px; }
.lg select { min-height: 38px; max-width: none; width: 100%; }

.st-save { padding: 10px 20px; background: var(--panel); border-top: 1px solid var(--line); }
.st-save-row { display: flex; gap: 12px; }
.st-save-row .st-save-btn { flex: 1; min-width: 0; }
.st-save-btn .sb { display: grid; min-width: 0; text-align: left; line-height: 1.2; }
.st-save-btn .sb small { font-size: 12.5px; font-weight: 600; opacity: .75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-save-btn .sb > span { overflow: hidden; text-overflow: ellipsis; }

/* ---------------------------------------------------------------- Profi-Modus */
.pro { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.pro-head { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-bottom: 1px solid var(--line); background: var(--panel); flex-wrap: wrap; }
.pro .dz-main { height: 100%; }

/* ---------------------------------------------------------------- Dialog, Meldung */
.app-dlg { background: var(--panel); color: var(--text); border: 1px solid var(--line-2); border-radius: 14px; padding: 0; width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-shadow: 0 30px 60px -20px #000; }
.app-dlg.wide { width: min(900px, calc(100vw - 32px)); }
.app-dlg::backdrop { background: #000b; }
.app-dlg .dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.app-dlg .dlg-head h2 { margin: 0; font-size: 18px; color: var(--text); text-transform: none; letter-spacing: 0; }
.app-dlg .dlg-body { padding: 18px; display: grid; gap: 14px; overflow: auto; max-height: calc(100vh - 220px); }
.app-dlg .dlg-foot { padding: 14px 18px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.dlg-text { margin: 0; color: var(--muted); font-size: 15px; }
/* „Geräteprofil finden“: ChatGPT-Weg als schnellster Weg (geraet/assistent.js) */
.dlg-fast { display: grid; gap: 4px; text-align: left; width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid #5a4415; background: linear-gradient(135deg, #2a2110, var(--panel-2) 75%); color: var(--text); font: inherit; cursor: pointer; }
.dlg-fast:hover { border-color: var(--accent); }
.dlg-fast:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dlg-fast b { font-size: 17px; } .dlg-fast small { color: var(--muted); font-size: 14px; }
.dlg-fast-tag { justify-self: start; display: inline-flex; gap: 6px; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink, #1a1205); font-size: 12.5px; font-weight: 700; }
.dlg-fast-tag .ic { width: 15px; height: 15px; }
.app .toast { font-size: 14px; padding: 12px 18px; box-shadow: 0 14px 30px -12px #000; }

/* ---------------------------------------------------------------- schmal (Tablet, Handy) */
@media (max-width: 1200px) {
  .pads { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .moods { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .worlds { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  body.app { height: auto; min-height: 100vh; overflow: auto; }
  .view { height: auto; }
  .home { grid-template-columns: 1fr; }
  .rail { border-right: 0; border-bottom: 1px solid var(--line); }
  .kinds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .blist { display: flex; flex-wrap: wrap; gap: 6px; }
  .bitem { border: 1px solid var(--line); border-radius: 999px; min-height: 40px; }
  .bitem::after { bottom: 3px; }
  .lights-list { display: flex; flex-wrap: wrap; gap: 6px; }
  .light { border: 1px solid var(--line); border-radius: 999px; min-height: 38px; }
  .pads { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .st-grid { grid-template-columns: minmax(0, 1fr); overflow: visible; }
  .st-view, .st-right, .st-under { min-width: 0; }
  .st-left { display: contents; }
  .st-view { order: 1; } .st-right { order: 2; } .st-under { order: 3; }
  .st-save { position: sticky; bottom: 0; z-index: 5; }
  .rig-strip { order: 10; width: 100%; }
}
@media (max-width: 560px) {
  .app-top { padding: 8px 12px; }
  .rig-it span { display: none; }
  .kbtn { grid-template-columns: 1fr; justify-items: center; min-height: 68px; font-size: 13px; text-align: center; gap: 2px; }
  .kbtn small { display: none; }
  .pads { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .work { padding: 16px; }
  .moods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .worlds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faders { grid-template-columns: 1fr; }
  .hide-s, .hide-xs { display: none; }
  .show-xs { display: inline; }
  .st-save-btn .sb small { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .app .btn.pro-btn { padding: 0 14px; }
  .st-save { padding: 10px 16px; }
  .st-name { min-width: 0; font-size: 18px; }
  .st-head { gap: 10px; padding: 10px 16px; }
  .drop { grid-template-columns: 1fr; }
}

/* Überschriften der neuen Oberfläche ohne die Versalien des Visualizers */
.app .sec-t, .app .proj-group h2, .app .rail h3 { text-transform: none; letter-spacing: 0; }

/* ---------------------------------------------------------------- Geräte & Bühne */
.rigview { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.rv-head { display: flex; align-items: center; gap: 14px; padding: 10px 18px; border-bottom: 1px solid var(--line); background: var(--panel); flex-wrap: wrap; }
.rv-t { display: grid; gap: 2px; min-width: 0; }
.rv-t b { font-size: 17px; }
.rv-t span { color: var(--muted); font-size: 13px; }
.rv-frame { width: 100%; height: 100%; border: 0; display: block; background: #050608; }
@media (max-width: 980px) { .rigview { min-height: calc(100vh - 64px); } .rv-frame { min-height: 70vh; } }

/* ---------------------------------------------------------------- Einzelne Geräte (Auswahl) */
.devsel { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); padding: 0 12px; }
.devsel > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; cursor: pointer; list-style: none; }
.devsel > summary::-webkit-details-marker { display: none; }
.devsel > summary .sec-t .ic { width: 18px; height: 18px; color: var(--accent); }
.devsel .chev { width: 18px; height: 18px; color: var(--muted); transition: transform .2s; }
.devsel[open] .chev { transform: rotate(90deg); }
.devsel[open] { padding-bottom: 10px; }
.ds-row { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr); gap: 10px; align-items: center; padding: 5px 0; border-top: 1px solid #1c2029; }
.ds-group { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); text-align: left; font-size: 13.5px; font-weight: 600; min-width: 0; }
.ds-group span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-group .ic { width: 18px; height: 18px; color: var(--accent); }
.ds-group.on { border-color: var(--accent); background: #2a2110; }
.ds-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.ds-chip { min-width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }
.ds-chip:hover { border-color: #4a5263; }
.ds-chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.selhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--r); border: 1px solid #5a4415; background: #2a2110; }
.selhead p { margin: 2px 0 0; color: #ffd27a; font-size: 13px; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); font-weight: 600; font-size: 13.5px; }
.opt:hover { border-color: var(--accent); }
.opt.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.opt.set { border-color: #1f5a3a; color: #9fe9bf; background: #10241a; }
.opt.set .ic { width: 14px; height: 14px; }
.kopf-body { display: grid; gap: 12px; }
.kopf-model { display: grid; gap: 8px; padding: 12px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--panel-2); }
.kopf-model b small { color: var(--muted); font-weight: 600; }
.kopf-l { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.kopf-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.kopf-row .seg-btn { min-height: 36px; }
.gobos { display: flex; flex-wrap: wrap; gap: 6px; }
.gobo { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--line-2); background: #050608; padding: 0; overflow: hidden; display: grid; place-items: center; color: var(--muted); font-size: 10.5px; }
.gobo img { width: 100%; height: 100%; object-fit: cover; filter: invert(0); }
.gobo.on { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 2px; }
.app .btn.move-btn { min-height: 40px; padding: 0 12px; font-size: 13.5px; flex: none; }
.app .btn.move-btn.is-on { background: #2a2110; border-color: var(--accent); color: #ffd27a; }
@media (max-width: 560px) { .ds-row { grid-template-columns: 1fr; } .move-btn span { display: none; } }

/* ---------------------------------------------------------------- Knopf „Live“ in der Kopfzeile (Live-Modus: live.css) */
.live-btn { display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 16px 0 13px; border-radius: 999px; border: 1px solid #5a2224; background: #2a1012; color: #ffd0d1; font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.live-btn:hover { border-color: #ff5a5f; color: #fff; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff5a5f; box-shadow: 0 0 0 0 #ff5a5f88; animation: livePulse 1.8s ease-out infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 #ff5a5f99; } 70% { box-shadow: 0 0 0 9px #ff5a5f00; } 100% { box-shadow: 0 0 0 0 #ff5a5f00; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* ---------------------------------------------------------------- Community (js/designer/community.js) */
.app-top .com-top { position: relative; text-decoration: none; }
.app-top .com-top .n { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #1a1205; font-size: 12px; font-weight: 800; display: grid; place-items: center; font-variant-numeric: tabular-nums; border: 2px solid var(--panel); }
.com-share { display: grid; gap: 14px; }
.com-share .cs-f { display: grid; gap: 6px; font-size: 14px; font-weight: 700; color: var(--muted); }
.com-share .cs-f small { font-weight: 500; color: var(--dim, #6f7685); }
.com-share input[type="text"], .com-share input[type="search"], .com-share textarea { width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2, #313744); background: var(--panel-2); color: var(--text); font: inherit; font-size: 15px; font-weight: 400; }
.com-share textarea { min-height: 84px; resize: vertical; }
.com-share .cs-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.com-share .cs-chip { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2, #313744); background: var(--panel-2); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.com-share .cs-chip small { color: var(--muted); font-weight: 500; margin-left: 4px; }
.com-share .cs-chip.on { border-color: var(--accent); background: #2a2110; }
.com-share .cs-rig { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); color: var(--muted); font-size: 14px; }
.com-share .cs-rig .ic { width: 20px; height: 20px; color: var(--accent); flex: none; }
.com-share .cs-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--text); cursor: pointer; }
.com-share .cs-check input { width: 20px; height: 20px; accent-color: var(--accent); margin-top: 1px; flex: none; }
.com-share .cs-err { margin: 0; color: #ffb0b2; font-size: 14px; }
.com-share .cs-ok { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: 10px; background: #10241a; border: 1px solid #1f5a3a; color: #9fe9bf; }
.com-share .cs-ok .ic { flex: none; }
.com-share .cs-songs { display: grid; gap: 4px; max-height: 300px; overflow: auto; }
.com-share .cs-song { display: flex; gap: 10px; align-items: center; text-align: left; min-height: 48px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: inherit; cursor: pointer; }
.com-share .cs-song .ic { color: #3cc8ff; flex: none; }
.com-share .cs-song span { display: grid; }
.com-share .cs-song small { color: var(--muted); font-size: 12.5px; }
.com-share .cs-song.on { border-color: var(--accent); background: #2a2110; }
.dlg-fast:disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 760px) { .app-top .com-top span { display: none; } }

/* ---------------------------------------------------------------- Look-Werkstatt (js/designer/lookstudio.js) */
:root { --thru: #a99bff; --thru-bg: #17142a; --thru-line: #3d3570; }
.lk-thru { display: grid; gap: 10px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--thru-line); background: repeating-linear-gradient(135deg, var(--thru-bg) 0 10px, #1b1832 10px 20px); color: #d9d3ff; font-size: 14px; }
.lk-thru.ok { background: var(--panel); border-color: var(--line); color: var(--muted); }
.lk-thru p { margin: 4px 0 0; }
.lk-thru b { color: #fff; }
.lk-thru-h { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #fff; }
.lk-thru-h .ic { width: 20px; height: 20px; color: var(--thru); flex: none; }
.lk-thru.ok .lk-thru-h { color: var(--muted); font-weight: 600; } .lk-thru.ok .lk-thru-h .ic { color: #6fdc9b; }
.lk-view { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.lk-view-l { font-weight: 650; font-size: 13.5px; }
.lk-view .seg-btn { min-height: 40px; padding: 0 14px; font-weight: 650; }
.lk-loop { min-height: 40px; max-width: 260px; }
.lk-thru-note { font-size: 13px; color: #bdb4f5; }
.lk-list { display: grid; gap: 6px; }
.lk-row { display: grid; grid-template-columns: auto minmax(110px, 1fr) minmax(0, 2fr) auto auto; gap: 12px; align-items: center; min-height: 56px; padding: 6px 12px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--panel-2); color: var(--text); text-align: left; }
.lk-row:hover { border-color: #4a5263; }
.lk-row.sel { border-color: var(--look); background: #2a1020; }
.lk-row > .ic { width: 22px; height: 22px; color: var(--accent); }
.lk-row.thru > .ic { color: var(--thru); }
.lk-row .chev { width: 18px; height: 18px; color: var(--muted); transition: transform .2s; }
.lk-row.sel .chev { transform: rotate(90deg); color: var(--look); }
.lk-name { display: grid; min-width: 0; }
.lk-name b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-name small { color: var(--dim); font-size: 12px; }
.lk-chips { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; }
.lk-chip { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 0 9px; border-radius: 999px; background: var(--panel-3); border: 1px solid var(--line-2); color: var(--muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.lk-chip.dots-mini i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid #ffffff30; }
.lk-chip.dots-mini { gap: 3px; padding: 0 7px; }
.lk-chip.gobo-mini img { width: 18px; height: 18px; border-radius: 50%; background: #000; }
.lk-chip .ic { width: 14px; height: 14px; }
.lk-state { font-size: 12.5px; font-weight: 750; padding: 4px 10px; border-radius: 999px; white-space: nowrap; border: 1px solid; }
.lk-state.on { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.lk-state.dark { color: var(--muted); background: #0b0c10; border-color: var(--line-2); }
.lk-state.thru, .lk-state.part { color: #e4deff; border-color: var(--thru-line); background: repeating-linear-gradient(135deg, var(--thru-bg) 0 5px, #241f45 5px 10px); }
.lk-head { display: grid; gap: 10px; padding: 14px; border-radius: var(--r); border: 1px solid #5a2240; background: linear-gradient(180deg, #2a1020, var(--panel-2) 80%); }
.lk-head-top { display: flex; align-items: center; gap: 12px; }
.lk-head-top > .ic { width: 28px; height: 28px; color: var(--look); flex: none; }
.lk-head-top > div { flex: 1; min-width: 0; }
.lk-head h2 { margin: 0; font-size: 19px; }
.lk-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.app .btn.lk-close { min-height: 40px; color: var(--text); border-color: var(--line-2); background: var(--panel-2); }
.lk-units .ds-chip.thru:not(.on) { background: repeating-linear-gradient(135deg, var(--thru-bg) 0 4px, #241f45 4px 8px); border-color: var(--thru-line); color: #cfc7ff; }
.lk-units .lk-all { padding: 0 12px; }
.lk-sub { margin: 0; color: var(--dim); font-size: 12.5px; }
.lk-hint { margin: 0; padding: 12px 14px; border-radius: var(--r-s); border: 1px dashed var(--thru-line); color: #d9d3ff; font-size: 13.5px; }
.lk-sec { display: grid; gap: 10px; padding: 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); }
.lk-sh { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lk-sh h3 { margin: 0; font-size: 15px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.lk-sh h3 small { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.lk-thru-btn { min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px dashed var(--thru-line); background: none; color: #bdb4f5; font-weight: 700; font-size: 12.5px; letter-spacing: .02em; flex: none; }
.lk-thru-btn:hover { border-style: solid; color: #fff; }
.lk-thru-btn.on { border-style: solid; color: #fff; background: repeating-linear-gradient(135deg, #2b2453 0 5px, #3a3170 5px 10px); border-color: var(--thru); }
.lk-state-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.lk-st { display: grid; gap: 2px; align-content: center; min-height: 64px; padding: 8px 10px; border-radius: var(--r-s); border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); text-align: left; }
.lk-st b { font-size: 15px; } .lk-st small { color: var(--dim); font-size: 12px; line-height: 1.3; }
.lk-st:hover { border-color: #4a5263; }
.lk-st.thru.on { border-color: var(--thru); background: repeating-linear-gradient(135deg, var(--thru-bg) 0 8px, #221d40 8px 16px); }
.lk-st.thru.on small { color: #cfc7ff; }
.lk-st.dark.on { border-color: #8a91a0; background: #050608; }
.lk-st.on.on:not(.thru):not(.dark) { border-color: var(--accent); background: #2a2110; }
.lk-st.on:not(.thru):not(.dark) small { color: #ffd27a; }
.lk-note { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; padding: 10px 12px; border-radius: var(--r-s); background: var(--thru-bg); border: 1px solid var(--thru-line); color: #d9d3ff; font-size: 13px; }
.lk-note .ic { width: 18px; height: 18px; color: var(--thru); flex: none; }
.lk-note span { flex: 1 1 200px; }
.fader.is-thru input { opacity: .45; }
.fader.is-thru .lb span, .fader.is-thru .lk-dmx { color: #bdb4f5; }
.lk-quick .opt { min-height: 36px; padding: 0 12px; }
.lk-swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.lk-sw { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px 0 6px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); font-size: 13px; font-weight: 600; }
.lk-sw i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #ffffff22; }
.lk-sw.on { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 1px; }
.dot.lk-own { position: relative; display: grid; place-items: center; overflow: hidden; cursor: pointer; background-image: conic-gradient(#ff3b3b, #ffd23b, #3bff6a, #3bd8ff, #6a3bff, #ff3bd8, #ff3b3b) !important; }
.dot.lk-own input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.lk-ext { display: grid; gap: 8px; padding-top: 4px; }
.lk-check { display: flex; align-items: center; gap: 10px; font-size: 13.5px; cursor: pointer; min-height: 36px; }
.lk-check input { width: 20px; height: 20px; accent-color: var(--accent); }
.lk-pos { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; }
.lk-pos-b { min-height: 48px; padding: 6px 10px; border-radius: var(--r-s); border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); text-align: left; font-size: 13.5px; }
.lk-pos-b:hover { border-color: #4a5263; }
.lk-pos-b.on { border-color: var(--accent); background: #2a2110; }
.lk-attrs { gap: 14px; }
.lk-ctl { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid #1c2029; }
.lk-attrs > .lk-ctl:first-of-type, .lk-attrs > .lk-note + .lk-ctl { border-top: 0; padding-top: 0; }
.lk-ch { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 700; font-size: 14px; }
.lk-ch small { color: var(--muted); font-weight: 600; font-size: 12.5px; margin-left: 4px; }
.lk-gobos { gap: 8px; }
.lk-gobos .gobo { width: 60px; height: 60px; }
.lk-gobos .gobo.open span { font-size: 11px; color: var(--text); }
.lk-gobos .gobo img { filter: none; }
.lk-gobos .gobo.tint img { mix-blend-mode: multiply; }
.lk-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid #ffffff40; }
.lk-dmx { color: var(--muted); font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.fader .lb .lk-span { color: var(--muted); font-size: 12px; font-weight: 500; opacity: .85; font-variant-numeric: tabular-nums; }
.lk-fine > summary, .lk-expert > summary { cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 650; min-height: 32px; display: flex; align-items: center; gap: 8px; list-style: none; }
.lk-fine > summary::-webkit-details-marker, .lk-expert > summary::-webkit-details-marker { display: none; }
.lk-fine[open] > summary, .lk-expert[open] > summary { color: var(--text); }
.lk-expert { display: grid; gap: 10px; padding: 10px 12px; border-radius: var(--r-s); border: 1px solid var(--line-2); background: var(--panel-2); }
.lk-expert > summary .ic { width: 18px; height: 18px; } .lk-expert > summary span { flex: 1; } .lk-expert > summary small { color: var(--dim); }
.lk-expert .chev { transition: transform .2s; } .lk-expert[open] .chev { transform: rotate(90deg); }
@media (max-width: 720px) {
  .lk-row { grid-template-columns: auto minmax(0, 1fr) auto auto; }
  .lk-row .lk-chips { grid-column: 2 / -1; grid-row: 2; }
  .lk-state-seg { grid-template-columns: 1fr; }
  .lk-st { min-height: 52px; }
}
.lk-head h2 { text-transform: none; letter-spacing: 0; }
.lk-val { color: var(--text); font-weight: 650; }
/* Look-Werkstatt offen: Vorschau + Lichterliste bleiben stehen, rechts wird eingestellt */
@media (min-width: 981px) {
  .st-grid.lk-open .st-left { position: sticky; top: 0; max-height: calc(var(--st-h, 80vh) - 28px); overflow: auto; scrollbar-gutter: stable; }
}
@media (max-width: 980px) { .st-grid.lk-open .st-view { position: sticky; top: 0; z-index: 4; box-shadow: 0 8px 18px #0008; } }
.lk-pos.maps { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.lk-pos-b.map { display: grid; gap: 4px; padding: 6px 6px 8px; align-content: start; }
.lk-pos-b.map canvas { width: 100%; height: auto; aspect-ratio: 168 / 104; border-radius: 6px; background: #07080b; }
.lk-pos-b.map b { font-size: 13px; padding: 0 4px; }
.lk-pos-b.map small { color: var(--muted); font-size: 12px; line-height: 1.3; padding: 0 4px; }
.app .btn.lk-map-btn { justify-self: start; min-height: 40px; }
.pad .pad-thru { position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 750; letter-spacing: .02em; color: #e4deff; border: 1px solid var(--thru-line); background: repeating-linear-gradient(135deg, #17142ae6 0 5px, #241f45e6 5px 10px); }
/* Handy/Tablet: im Studio darf body kein Scroll-Container sein, sonst klebt die Vorschau der Look-Werkstatt nicht */
@media (max-width: 980px) { body.app[data-view="studio"] { overflow-y: visible; overflow-x: clip; } }
.lk-shapes { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.lk-shape { display: grid; justify-items: center; gap: 4px; padding: 8px 4px 6px; border-radius: var(--r-s); border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); font-size: 11.5px; font-weight: 600; line-height: 1.2; text-align: center; }
.lk-shape:hover { border-color: #4a5263; }
.lk-shape.on { border-color: var(--accent); background: #2a2110; }
.lk-shape svg { width: 46px; height: 46px; }
.lk-shape svg path { fill: none; stroke: #4a5263; stroke-width: 1.6; stroke-linejoin: round; }
.lk-shape.on svg path { stroke: #8a6a20; }
.lk-shape svg circle { fill: #c9ced8; }
.lk-shape.on svg circle { fill: var(--accent); }
@media (prefers-reduced-motion: reduce) { .lk-shape svg circle { display: none; } }
.lk-dir .seg-btn span { font-size: 16px; line-height: 1; }
/* Phase der Look-Bewegung (Welle / gegenläufig): Auswahl + Mini-Vorschau aller Köpfe auf einer Zeitachse */
.lk-phase { display: grid; gap: 8px; margin-top: 2px; }
.lk-phase .seg-btn span { font-size: 15px; line-height: 1; }
.lk-phase .seg-btn:disabled { opacity: .45; cursor: not-allowed; }
.lk-phase-strip { padding: 2px 0 0; }
.lk-phase-strip svg { display: block; height: 64px; max-width: 100%; }
.lk-phase-strip path { fill: none; stroke: #4a5263; stroke-width: 1.6; stroke-linejoin: round; }
.lk-phase-strip circle { fill: var(--accent); }
.lk-phase-strip text { fill: var(--dim); font-size: 7.5px; text-anchor: middle; }
.lk-fade-col { display: grid; gap: 6px; }
/* Pfeil in der Lichterliste: style.css dreht [aria-expanded="false"] > .chev – hier zeigt er nach rechts, offen nach unten */
.lk-row[aria-expanded] > .chev { transform: none; }
.lk-row.sel[aria-expanded] > .chev { transform: rotate(90deg); }
.lk-head h2 { color: var(--text); }

/* ---------------------------------------------------------------- Füll-Assistent: Einstiege (fuellen.css lädt erst beim Öffnen) */
.work-head .fill-btn .ic { width: 20px; height: 20px; color: var(--accent); }
.work-head > div:first-child { flex: 1 1 260px; min-width: 0; }
.fill-empty { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px dashed #5a4415; background: #1a1508; }
.fill-empty > .ic { width: 30px; height: 30px; color: var(--accent); }
.fill-empty b { font-size: 16px; }
.fill-empty p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.app .btn.vrow-btn { width: 100%; justify-content: flex-start; gap: 12px; margin-top: 8px; min-height: 56px; padding: 8px 14px; text-align: left; white-space: normal; }
.vrow-btn .ic { color: var(--accent); width: 22px; height: 22px; flex: none; }
.vrow-btn span { display: grid; gap: 2px; }
.vrow-btn small { color: var(--muted); font-weight: 500; font-size: 12px; }
@media (max-width: 560px) { .fill-empty { grid-template-columns: minmax(0, 1fr); } .fill-empty > .ic { display: none; } .work-head .fill-btn { margin-left: 0; } }

/* Besondere Momente (ssmomente): Markierungen unter der Songteil-Leiste, Einstellungen darunter */
.sec-moments { position: relative; height: 22px; margin-top: 4px; border-radius: 6px; background: var(--panel-2); }
.sec-moments.off { opacity: .45; }
.sec-moments button { position: absolute; top: 0; height: 22px; min-width: 12px; padding: 0; border: 0; background: none; transform: translateX(-50%); cursor: pointer; }
.sec-moments button.rng { transform: none; }
.sec-moments button i { position: absolute; left: 50%; top: 4px; width: 3px; height: 14px; border-radius: 2px; transform: translateX(-50%); background: var(--m, #fff); }
.sec-moments button.rng i { left: 0; width: 100%; transform: none; opacity: .85; }
.sec-moments button:hover i, .sec-moments button:focus-visible i { box-shadow: 0 0 0 2px var(--accent); }
.m-akzent { --m: #ffffff; } .m-einsatz { --m: #ffb000; } .m-serie { --m: #ff3d9a; } .m-trommeln { --m: #ff4a2a; }
.m-stopp { --m: #0b0b10; } .m-fill { --m: #00c8ff; } .m-riff { --m: #8f7bff; } .m-steigerung { --m: linear-gradient(90deg, #8a6a1c00, #ffd000); } .m-schluss { --m: #c7c7d1; } .m-rueckung { --m: #3dffb0; }
.sec-moments .m-stopp i { box-shadow: inset 0 0 0 1px #ffffffaa; }
.sec-moments .m-steigerung i { background: linear-gradient(90deg, #ffd00010, #ffd000); }
.mom-box { display: grid; gap: 10px; }
.mom-old { display: grid; gap: 10px; border-color: #5a4415; background: #2a2110; color: #ffd27a; }
.mom-old p { margin: 0; }
.mom-old .btn { justify-self: start; min-height: 48px; }
.mom-box .seg { justify-self: start; }
.mom-box .seg-btn { min-height: 48px; min-width: 96px; }
.mom-found { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; font-size: 13px; color: var(--muted); }
.mom-k { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.mom-k i { width: 10px; height: 10px; border-radius: 3px; background: var(--m, #fff); }
.mom-k.m-stopp i { box-shadow: inset 0 0 0 1px #ffffffaa; }
.mom-k.m-steigerung i { background: linear-gradient(90deg, #ffd00030, #ffd000); }
