/* Persönliche Bedienfelder im Studio (js/designer/bedienfeld.js, Paket 2 vom 18.10.2026). Baut auf studio.css auf. */

/* ---------------------------------------------------------------- Spalten + Splitter */
.st-grid.bf-cols { grid-template-columns: minmax(0, var(--bf-c1, 1.25fr)) 20px minmax(340px, 1fr); column-gap: 0; }
.bf-split { align-self: stretch; position: relative; cursor: col-resize; touch-action: none; min-height: 200px; }
.bf-split::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 50%; width: 2px; transform: translateX(-50%); border-radius: 2px; background: transparent; transition: background .15s; }
.bf-split::after { content: ""; position: absolute; top: 120px; left: 50%; width: 8px; height: 46px; transform: translateX(-50%); border-radius: 6px; background: var(--line-2); opacity: 0; transition: opacity .15s, background .15s; }
.bf-split:hover::before, .bf-edit .bf-split::before { background: var(--line-2); }
.bf-split:hover::after, .bf-edit .bf-split::after, .bf-split.drag::after, .bf-split:focus-visible::after { opacity: 1; }
.bf-split:hover::after, .bf-split.drag::before, .bf-split.drag::after { background: var(--accent); }
.bf-split:focus-visible { outline: none; }

/* Bühne: eigene Höhe (nicht in der Momente-Werkstatt, die hat ihre eigene) */
.st-grid.bf-stage-fix:not(.mw-open) .st-stage { aspect-ratio: auto; height: var(--bf-stage-h); }
.bf-stage-grip { position: absolute; left: 0; right: 0; bottom: 0; height: 12px; z-index: 3; cursor: ns-resize; touch-action: none; }
.bf-stage-grip::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 56px; height: 4px; margin-left: -28px; border-radius: 4px; background: #ffffff55; opacity: 0; transition: opacity .15s, background .15s; }
.st-stage:hover .bf-stage-grip::after, .bf-edit .bf-stage-grip::after { opacity: 1; }
.bf-stage-grip:hover::after, .bf-stage-grip.drag::after { background: var(--accent); opacity: 1; }
.st-grid.mw-open .bf-stage-grip { display: none; }

/* ---------------------------------------------------------------- Boxen */
.bfb { position: relative; min-width: 0; }
.bfb.bf-aus { display: none; }
.bfb-in { min-width: 0; }
.bfb-in > * { zoom: var(--bf-z, 1); }
.bfb.has-h > .bfb-in { height: var(--bf-h); overflow: auto; overscroll-behavior: contain; }
.bfb.zu > .bfb-in { display: none; }
.bfb-zu { display: none; }
.bfb.zu > .bfb-zu { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px dashed var(--line-2); background: none; color: var(--muted); font: 600 14px var(--font); text-align: left; cursor: pointer; }
.bfb.zu > .bfb-zu:hover { color: var(--text); border-color: #4a5263; }
.bfb-zu .ic { width: 18px; height: 18px; }
.bfb.hl { outline: 2px solid var(--accent) !important; outline-offset: 6px; border-radius: 12px; }
/* Momente-Werkstatt offen: Songteile-Leiste wie bisher ausblenden (momwerk.css meint den Abschnitt direkt unter #st-under) */
.st-grid.mw-open .bfb[data-bf="songteile"] .bfb-in > div:has(> .sections) > .sec-t,
.st-grid.mw-open .bfb[data-bf="songteile"] .bfb-in > div:has(> .sections) > .sections,
.st-grid.mw-open .bfb[data-bf="songteile"] .bfb-in > div:has(> .sections) > .sec-tools { display: none; }

/* Höhe ziehen (auch ohne Bearbeiten-Modus) */
.bfb-grip { position: absolute; left: 0; right: 0; bottom: -10px; height: 14px; cursor: ns-resize; z-index: 4; touch-action: none; }
.bfb-grip::after { content: ""; position: absolute; left: 50%; top: 5px; width: 48px; height: 4px; margin-left: -24px; border-radius: 4px; background: var(--line-2); opacity: 0; transition: opacity .15s, background .15s; }
.bfb:hover > .bfb-grip::after, .bf-edit .bfb-grip::after { opacity: 1; }
.bfb-grip:hover::after, .bfb-grip.drag::after { background: var(--accent); opacity: 1; }
.bfb.zu > .bfb-grip { display: none; }

/* Schnellmenü „⋯“ */
.bfb-more { position: absolute; top: -12px; right: -6px; z-index: 6; width: 32px; height: 26px; display: grid; place-items: center; padding: 0; border-radius: 8px; border: 1px solid var(--line-2); background: #1d212b; color: var(--muted); font: 700 16px/1 var(--font); opacity: 0; transition: opacity .15s; cursor: pointer; }
.bfb:hover > .bfb-more, .bfb-more:focus-visible { opacity: 1; }
.bfb-more:hover { color: var(--text); border-color: #4a5263; }
.bf-edit .bfb-more { display: none; }
@media (hover: none) { .bfb-more { opacity: .55; } }

/* ---------------------------------------------------------------- Bearbeiten-Modus */
/* stärker als „.app .btn:hover:not(:disabled)“ (studio.css), sonst wird „Fertig“ beim Darüberfahren dunkel auf dunkel */
.app .bf-edit-btn.on, .app .bf-edit-btn.on:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.app .bf-edit-btn.on:hover:not(:disabled) { filter: brightness(1.07); }
.bfb-bar { display: none; }
.bf-edit .bfb-bar { display: flex; align-items: center; gap: 2px; margin: 0 0 8px; padding: 3px; border-radius: 9px; background: #2a2110; border: 1px solid #5a4415; color: #ffd27a; font: 600 13px var(--font); user-select: none; }
.bfb-bar .hdl { display: inline-flex; align-items: center; gap: 6px; flex: 1; min-width: 0; min-height: 36px; padding: 0 8px; border-radius: 7px; cursor: grab; touch-action: none; }
.bfb-bar .hdl:active { cursor: grabbing; }
.bfb-bar .hdl .dots { font-size: 15px; letter-spacing: -2px; color: #c99a3a; }
.bfb-bar .hdl span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bfb-bar .hdl:hover { background: #3a2c10; }
.bfb-bar button { min-width: 36px; height: 36px; display: inline-grid; place-items: center; padding: 0 6px; border-radius: 7px; border: 0; background: none; color: inherit; font: 700 13px var(--font); cursor: pointer; }
.bfb-bar button:hover:not(:disabled) { background: #3a2c10; }
.bfb-bar button:disabled { opacity: .35; cursor: default; }
.bfb-bar .ic { width: 18px; height: 18px; }
.bfb-bar .ic.rot { transform: rotate(90deg); }
.bf-edit .bfb { outline: 1.5px dashed #4a5263; outline-offset: 6px; border-radius: 12px; }
.bf-edit .bfb:hover { outline-color: #8a6a1c; }
.bf-edit .bfb.zu > .bfb-zu { display: none; }
.bf-edit .bfb.zu > .bfb-bar { margin: 0; opacity: .75; }
.bf-edit .st-under, .bf-edit .st-right { min-height: 120px; align-content: start; }
.bf-zone-over { border-radius: 14px; background: #ffb0200c; outline: 2px dashed #ffb02066; outline-offset: -2px; }
.bf-edit #st-save { visibility: hidden; }

/* Ziehen */
.bf-ghost { position: fixed; z-index: 200; pointer-events: none; opacity: .9; border-radius: 12px; box-shadow: 0 24px 50px -16px #000; outline: 2px solid var(--accent); background: var(--panel); overflow: hidden; transform: rotate(1.2deg); }
.bf-ph { border: 2px dashed var(--accent); border-radius: 12px; background: #ffb02012; min-height: 56px; }
.bf-dragging, .bf-dragging * { cursor: grabbing !important; user-select: none !important; }

/* Leiste unten */
.bf-dock { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; width: max-content; max-width: calc(100vw - 24px); padding: 10px 10px 10px 16px; border-radius: 16px; background: #1d212bf2; backdrop-filter: blur(8px); border: 1px solid #5a4415; box-shadow: 0 22px 50px -14px #000; }
.bf-dock .t { display: grid; line-height: 1.25; margin-right: 6px; }
.bf-dock .t b { color: #ffd27a; font-size: 14px; }
.bf-dock .t small { color: var(--muted); font-size: 12px; }
.bf-dock .btn { min-height: 44px; }
.bf-dock .sep { width: 1px; align-self: stretch; background: var(--line-2); margin: 2px; }
.bf-tray { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; max-width: 520px; }
.bf-tray .lbl { color: var(--muted); font-size: 12.5px; }
.bf-tray .chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px dashed var(--line-2); background: none; color: var(--muted); font: 600 12.5px var(--font); cursor: pointer; }
.bf-tray .chip .ic { width: 16px; height: 16px; }
.bf-tray .chip:hover { color: var(--accent); border-color: var(--accent); }
.bf-tray .none { color: var(--dim); font-size: 12.5px; }

/* ---------------------------------------------------------------- Menü (Popover) */
.bf-menu { position: fixed; z-index: 300; min-width: 250px; max-width: min(360px, calc(100vw - 20px)); max-height: calc(100vh - 20px); overflow: auto; padding: 6px; border-radius: 12px; background: #1d212b; border: 1px solid var(--line-2); box-shadow: 0 18px 40px -12px #000; display: grid; gap: 1px; }
.bf-menu button { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 8px; border: 0; background: none; color: var(--text); text-align: left; font: 500 14px var(--font); cursor: pointer; }
.bf-menu button:hover:not(:disabled), .bf-menu button:focus-visible { background: var(--panel-3); }
.bf-menu button:disabled { opacity: .4; cursor: default; }
.bf-menu button .ic { width: 18px; height: 18px; color: var(--muted); }
.bf-menu button.on { color: var(--accent); font-weight: 650; }
.bf-menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 2px; }
.bf-menu .mh { padding: 8px 12px 4px; color: var(--dim); font: 700 11.5px var(--font); text-transform: uppercase; letter-spacing: .04em; }

/* ---------------------------------------------------------------- schmal */
@media (max-width: 980px) {
  .st-grid.bf-cols { grid-template-columns: minmax(0, 1fr); }
  .bf-split { display: none; }
  .bf-dock { bottom: 8px; padding: 8px; }
  .bf-dock .t small { display: none; }
}

/* ---------------------------------------------------------------- Layout-Umschalter (Paket 3) */
.bf-lay { gap: 8px; max-width: 320px; }
.bf-lay small { color: var(--muted); font-weight: 500; }
.bf-lay b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bf-lay .chev { width: 16px; height: 16px; transform: rotate(90deg); color: var(--muted); }
.bf-lay .auto { flex: none; color: var(--info); font-size: 11.5px; font-weight: 600; border: 1px solid #23476e; border-radius: 6px; padding: 1px 6px; }
.bf-menu button.on::after { content: "✓"; margin-left: auto; padding-left: 12px; }
.bf-menu .bf-sel { display: grid; gap: 6px; padding: 8px 12px; color: var(--muted); font-size: 13px; }
.bf-menu .bf-sel select { min-height: 44px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); padding: 0 10px; font: 500 14px var(--font); }
.bf-menu .bf-hint { margin: 2px 12px 8px; color: var(--dim); font-size: 12.5px; line-height: 1.4; }
.bf-name { min-height: 48px; width: 100%; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); font: 500 16px var(--font); }
.bf-name:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.bf-neu { display: grid; gap: 8px; min-width: min(460px, 80vw); }
.bf-neu .bf-lbl { margin-top: 6px; color: var(--muted); font-size: 13px; font-weight: 650; }
.bf-neu .bf-start { display: flex; flex-wrap: wrap; }
.bf-neu .bf-start .seg-btn { min-height: 44px; padding: 0 16px; font-weight: 650; }
.bf-neu .dlg-text { font-size: 13.5px; }
/* Handy: Knopf darf fast die ganze Zeile nehmen (die Kopfzeile bricht um), der Name bleibt lesbar */
@media (max-width: 560px) { .bf-lay { max-width: calc(100vw - 96px); } .bf-lay b { min-width: 5em; } }

/* ---------------------------------------------------------------- Profi-Modus (Paket 5) */
/* Größen nur im breiten Fenster – darunter stapelt designer.css alles (display:block) und die Griffe sind aus */
@media (min-width: 1101px) {
  .dz-main.pro-layout.bf-pw { grid-template-columns: minmax(0, 1fr) var(--bf-pw); }
  .dz-main.pro-layout.bf-links { grid-template-columns: var(--bf-pw, 380px) minmax(0, 1fr); grid-template-areas: "right stage" "right song" "right work"; }
  .dz-main.pro-layout.bf-pbh { grid-template-rows: var(--bf-pbh) auto minmax(0, 1fr); }
  #pro-groups.bf-gh { max-height: none; height: var(--bf-gh); }
}
.pro-right, .pro-stage, #pro-groups { position: relative; }
.pro-tabs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.bf-psplit { position: absolute; top: 0; bottom: 0; left: -11px; width: 12px; z-index: 6; cursor: col-resize; touch-action: none; }
.bf-links .bf-psplit { left: auto; right: -11px; }
.bf-psplit::before { content: ""; position: absolute; top: 6px; bottom: 6px; left: 50%; width: 2px; transform: translateX(-50%); border-radius: 2px; background: transparent; transition: background .15s; }
.bf-psplit::after { content: ""; position: absolute; top: 50%; left: 50%; width: 8px; height: 46px; transform: translate(-50%, -50%); border-radius: 6px; background: var(--line-2); opacity: 0; transition: opacity .15s, background .15s; }
.bf-psplit:hover::before, .bf-edit .bf-psplit::before { background: var(--line-2); }
.bf-psplit:hover::after, .bf-edit .bf-psplit::after, .bf-psplit.drag::after { opacity: 1; }
.bf-psplit:hover::after, .bf-psplit.drag::before, .bf-psplit.drag::after { background: var(--accent); }
.pro-stage:hover .bf-pstage-grip::after, #pro-groups:hover .bf-pgrp-grip::after { opacity: 1; }
.pro-stage.in-studio .bf-pstage-grip { display: none; }
.pro-tab.bf-raus { display: none !important; }
.bf-tabaus { display: none; }
.bf-edit .pro-tab { cursor: grab; outline: 1.5px dashed #4a5263; outline-offset: -4px; border-radius: 8px; }
.bf-edit .pro-tab:hover { outline-color: #8a6a1c; }
.pro-tab { position: relative; }
.bf-edit .bf-tabaus { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: #2a2110; color: #ffd27a; cursor: pointer; }
.bf-edit .pro-tab { padding-right: 32px; }
.bf-edit .bf-tabaus:hover { background: #3a2c10; }
.bf-edit .bf-tabaus .ic { width: 15px; height: 15px; }
.pro-head .bf-lay, .pro-head .bf-edit-btn { min-height: 40px; }
@media (max-width: 1100px) { .bf-psplit, .bf-pstage-grip, .bf-pgrp-grip { display: none; } }

/* ---------------------------------------------------------------- Effekt-Studio + Chase-Generator (Paket 6) */
@media (min-width: 1101px) {
  .fxs-body.bf-fxc { grid-template-columns: minmax(0, 1fr) min(var(--bf-fxc), calc(100% - 300px)); }
  .cg-body.bf-cgc { grid-template-columns: minmax(0, 1fr) min(var(--bf-cgc), calc(100% - 300px)); }
  .cg-body.bf-cgs { grid-template-rows: minmax(0, 1fr) var(--bf-cgs); }
  .cg-score.bf-cgw { grid-template-columns: min(var(--bf-cgw), calc(100% - 220px)) minmax(0, 1fr); }
}
.cg-body, .cg-score { position: relative; }
/* Griffe liegen auf der Seite der Einstellungen (links davon liegt die fixierte 3D-Vorschau darüber) */
.bf-wgriff { position: absolute; z-index: 4; touch-action: none; }
.bf-wgriff.bf-wsplit { top: 0; bottom: 0; width: 12px; cursor: col-resize; }
.bf-wgriff.bf-wgrip { left: 0; right: 0; height: 12px; cursor: ns-resize; }
.bf-wgriff::before { content: ""; position: absolute; border-radius: 2px; background: transparent; transition: background .15s; }
.bf-wsplit::before { top: 6px; bottom: 6px; left: 3px; width: 2px; }
.bf-wgrip::before { left: 6px; right: 6px; top: 3px; height: 2px; }
.bf-wgriff::after { content: ""; position: absolute; border-radius: 6px; background: var(--line-2); opacity: 0; transition: opacity .15s, background .15s; }
.bf-wsplit::after { left: 0; top: 50%; width: 8px; height: 46px; transform: translateY(-50%); }
.bf-wgrip::after { top: 0; left: 50%; width: 56px; height: 8px; transform: translateX(-50%); }
.bf-wgriff:hover::before, .bf-wgriff:focus-visible::before { background: var(--line-2); }
.bf-wgriff:hover::after, .bf-wgriff:focus-visible::after, .bf-wgriff.drag::after { opacity: 1; }
.bf-wgriff:hover::after, .bf-wgriff.drag::before, .bf-wgriff.drag::after { background: var(--accent); }
.bf-wgriff:focus-visible { outline: none; }
@media (max-width: 1100px) { .bf-wgriff { display: none; } }

/* ---------------------------------------------------------------- Song-Studio (Fläche „song“, songstudio.js) */
.st-grid[data-bf-flaeche="song"] { position: relative; }
.st-grid[data-bf-flaeche="song"] .st-stage > .bf-stage-grip { display: none; }   /* Studio-Bühnengriff gilt nicht für Songs */
[data-bf-zone] > .bf-aus:not(.bfb) { display: none !important; }
.bf-sgriff { z-index: 6; }
.bf-sgriff.bf-wgrip { right: auto; }
.bf-sgriff.bf-wsplit { bottom: auto; }
.bf-sgriff.bf-wgrip::before { top: auto; bottom: 5px; }
.bf-sgriff.bf-wgrip::after { top: auto; bottom: 2px; }
@media (min-width: 981px) and (max-width: 1100px) { .bf-sgriff { display: block; } }
@media (max-width: 980px) { .bf-sgriff { display: none; } }
.bf-sgriff[hidden] { display: none !important; }
.bf-teilaus { display: none; }
.bf-edit [data-bf-zone="werkzeuge"] > [data-bf]:not(.bfb), .bf-edit [data-bf-zone="spuren"] > [data-bf]:not(.bfb) { position: relative; cursor: grab; outline: 1.5px dashed #4a5263; outline-offset: -3px; }
.bf-edit [data-bf-zone="werkzeuge"] > [data-bf]:not(.bfb):hover, .bf-edit [data-bf-zone="spuren"] > [data-bf]:not(.bfb):hover { outline-color: #8a6a1c; }
.bf-edit .bf-teilaus { position: absolute; top: 4px; right: 4px; z-index: 3; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #2a2110; color: #ffd27a; cursor: pointer; }
.bf-edit .bf-teilaus:hover { background: #3a2c10; }
.bf-edit .bf-teilaus .ic { width: 14px; height: 14px; }

/* ---------------------------------------------------------------- Schnellleiste (Paket 7, bedienfeld-leiste.js) */
/* nimmt den freien Platz der Kopfzeile (Grundbreite 140 px: mehr Inhalt bricht die Kopfzeile nicht um, sondern scrollt seitlich); ersetzt dort den Abstandhalter. contain: die Knöpfe dürfen die Kopfzeile nicht breiter machen (body ist ein Raster mit auto-Spalte) */
.bf-leiste { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1 1 140px; contain: inline-size; overflow-x: auto; padding: 4px 2px; margin-left: 4px; scrollbar-width: none; }
.bf-leiste:not([hidden]):not(.nur-merken) + .spacer { display: none; }
.bf-leiste.nur-merken { flex: 0 0 auto; contain: none; }   /* noch keine Knöpfe: nur „Hier merken“, keine eigene Zeile auf dem Handy */
.bf-leiste::-webkit-scrollbar { display: none; }
.bf-leiste[hidden] { display: none; }
.bf-tile { position: relative; display: inline-flex; align-items: center; gap: 7px; flex: none; min-height: 40px; max-width: 240px; padding: 0 12px 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: 600 13px var(--font); white-space: nowrap; cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.bf-tile .n { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.bf-tile .ic { width: 18px; height: 18px; flex: none; color: var(--accent); }
.bf-tile .go { color: var(--muted); font-size: 12px; margin-left: -2px; }
.bf-tile:hover { border-color: #4a5263; background: var(--panel-3, #222632); }
.bf-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bf-tile.bf-merken { border-style: dashed; color: var(--muted); }
.bf-tile.bf-merken .ic { color: var(--muted); }
.bf-tile.bf-merken:hover { color: var(--accent); border-color: var(--accent); }
.bf-tile.bf-merken:hover .ic { color: var(--accent); }
.bf-tile .x { display: none; position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--bg); background: #4a5263; color: #fff; font: 700 13px/1 var(--font); place-items: center; z-index: 2; }
.bf-leiste.is-edit { overflow: visible; padding-top: 8px; }
.bf-leiste.is-edit .bf-tile[data-kid] { cursor: grab; outline: 1.5px dashed #4a5263; outline-offset: 2px; touch-action: none; }
.bf-leiste.is-edit .bf-tile .x { display: grid; }
.bf-leiste.is-edit .bf-tile .x:hover { background: #c0392b; }
.bf-tile.flash { animation: bfTileFlash .8s ease-out; }
@keyframes bfTileFlash { 0% { box-shadow: 0 0 0 0 rgba(255, 176, 32, .75); border-color: var(--accent); } 100% { box-shadow: 0 0 0 10px rgba(255, 176, 32, 0); } }
@media (max-width: 760px) { .bf-tile { max-width: 160px; } .bf-tile.bf-merken span { display: none; } .bf-tile.bf-merken { padding: 0 10px; } }
@media (max-width: 560px) { .bf-tile .go { display: none; } }

/* Kacheln und Tasten (Pakete 8 + 9) */
.bf-kacheln { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 7px 20px; border-bottom: 1px solid var(--line); background: var(--panel); }
.bf-kacheln[hidden] { display: none; }
.bf-k { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: 600 13px var(--font); cursor: pointer; white-space: nowrap; }
.bf-k:hover { border-color: var(--accent); }
.bf-k kbd, .bf-keys kbd { padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font: 600 11px var(--font); }
.bf-k-r { cursor: default; }
.bf-k-r input { width: 110px; accent-color: var(--accent); }
.bf-k-neu { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 9px; border: 1px dashed var(--line); background: none; color: var(--accent); cursor: pointer; }
.bf-k-neu .ic { width: 16px; height: 16px; }
.bf-k-hint { color: var(--accent); font: 600 13px var(--font); }
.bf-k-fertig { margin-left: auto; }
.bf-kacheln.pin { background: #2a2110; }
body.bf-pin #view-studio button:not(.bf-k-fertig):not(.bf-k):not(.bf-k-neu):hover, body.bf-pin #view-studio input[type=range]:hover { outline: 2px solid var(--accent); outline-offset: 2px; cursor: copy; }
.bf-keys { display: grid; gap: 6px; max-height: 62vh; overflow-y: auto; }
.bf-key-g { margin: 10px 0 2px; color: var(--muted); font: 700 12px var(--font); }
.bf-key-row { display: flex; align-items: center; gap: 8px; min-height: 42px; }
.bf-key-row > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bf-key-leer { color: var(--dim); }
.bf-fest { margin-top: 10px; color: var(--muted); font-size: 12.5px; line-height: 1.9; }
@media (max-width: 640px) { .bf-kacheln { flex-wrap: nowrap; overflow-x: auto; padding: 6px 16px; } .bf-k-hint { white-space: nowrap; } }
#view-studio:has(> .bf-kacheln:not([hidden])) { grid-template-rows: auto auto minmax(0, 1fr) auto; }
