/* ==== static/css/00-grundlagen.css ==== */
/* Symbolzeichen (Pfeile, Dreiecke, Sterne, Noten): tools/build_symbols.py, aus DejaVu Sans */
@font-face { font-family: 'CL Symbols'; src: url('/static/fonts/symbols.ttf?v=1') format('truetype'); font-display: block; unicode-range: U+2190-2BFF, U+2212; }
/* Schriften selbst ausgeliefert (SIL OFL 1.1, static/fonts/LICENSE-ofl.txt) – kein Abruf bei Google */
@font-face { font-family: 'Big Shoulders Display'; font-style: normal; font-weight: 700; font-display: swap; src: url('/static/fonts/BigShouldersDisplay-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Big Shoulders Display'; font-style: normal; font-weight: 700; font-display: swap; src: url('/static/fonts/BigShouldersDisplay-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Big Shoulders Display'; font-style: normal; font-weight: 900; font-display: swap; src: url('/static/fonts/BigShouldersDisplay-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Big Shoulders Display'; font-style: normal; font-weight: 900; font-display: swap; src: url('/static/fonts/BigShouldersDisplay-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/static/fonts/IBMPlexSans-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/static/fonts/IBMPlexSans-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/static/fonts/IBMPlexSans-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/static/fonts/IBMPlexSans-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/static/fonts/IBMPlexSans-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/static/fonts/IBMPlexSans-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/static/fonts/JetBrainsMono-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/static/fonts/JetBrainsMono-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('/static/fonts/JetBrainsMono-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('/static/fonts/JetBrainsMono-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url('/static/fonts/JetBrainsMono-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url('/static/fonts/JetBrainsMono-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* ChugLab – Layout: feste Transportleiste, Song-Band, Editor (Papier-Tab) + Werkzeugspalte, Anleitung */
:root {
  /* Grundfarben (Text auf Farbflächen, Schatten) */
  --weiss: #fff;
  /* Flächen (wiederkehrende Hintergründe und Rahmen) */
  --flaeche: #232023;
  --flaeche-tief: #1B1719;
  --flaeche-hell: #F4EFE6;
  --rand-dunkel: #575450;
  /* Benannte Farben nach Verwendung */
  --ton-aus: #564f48;
  --beschriftung: #6b6357;
  --regler-strich: #0A090A;
  --bund-kante: #e8dcc3;
  --rahmen-hell: #bfb8ad;
  --metall-dunkel: #7d7975;
  --metall-glanz: #a8a4a0;
  --metall-hell: #cfcbc6;
  --schwarz: #000;
  --bg: #141214;
  --panel: #1e191c;
  --panel-2: #292226;
  --line: #3d3338;
  --fg: #ede5da;
  --muted: #a69a92;
  --accent: #d63c4a;
  --accent-soft: rgba(214, 60, 74, .16);
  --brass: #d4a95f;
  --steel: #84a8c4;
  /* Papier-Tab: helles, warmes Grau (passt zum dunklen Rest, gut lesbar) */
  --paper: #d5d0c7;
  --ink: #1b1719;
  --rule: #746c63;
  --ring: #9c9384;  /* Wert, der bisher wirksam war (überschrieb den alten in 15) */
  --cursor: #2c6ad1;
  --now: rgba(214, 60, 74, .13);
  --pc-ink: #a8222f;
  /* Song-Teil-Farben */
  --t-intro: #84a8c4;
  --t-verse: #c9bfb2;
  --t-pre: #d4a95f;
  --t-chorus: #d63c4a;
  --t-bridge: #a58bd0;
  --t-breakdown: #8e3b46;
  --t-solo: #6fb38a;
  --t-outro: #7d8a99;
  /* Spur-Farben (überall gleich: Song-Karte, Editor, Griffbrett, Mischpult) */
  --tr-lead: #6aa6d6;
  --tr-riff: #e0a458;
  --tr-bass: #6fbf8e;
  --tr-drums: #b59ad6;
  --display: 'Big Shoulders Display', 'CL Symbols', 'Arial Narrow', Impact, sans-serif;
  --body: 'IBM Plex Sans', 'CL Symbols', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'CL Symbols', ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
  /* Farbpalette: Werte, die bisher als Literal in den Regeln standen (Familie und Helligkeit) */
  --schrift-blau-hell: #7fb2d6;
  --farbe-blau-hell: #5fc2c0;
  --farbe-blau-hell-2: #8f8ad8;
  --schrift-blau-hell-2: #7d9fd6;
  --schrift-blau-mittel: #2c5d8a;
  --schatten-braun-dunkel: #3a322c;
  --farbe-braun-dunkel: #1e120c;
  --schrift-braun-dunkel: #4f4943;
  --schrift-braun-dunkel-2: #1a1714;
  --symbol-braun-dunkel: #241913;
  --schrift-braun-dunkel-3: #241d10;
  --schrift-braun-dunkel-4: #2b2522;
  --schatten-braun-dunkel-2: #3a352d;
  --flaeche-braun-dunkel: #6d4a2b;
  --schrift-braun-dunkel-5: #1a1612;
  --flaeche-braun-dunkel-2: #2b1b14;
  --farbe-braun-dunkel-2: #3a251b;
  --farbe-braun-dunkel-3: #24160f;
  --farbe-braun-dunkel-4: #2f1d15;
  --rahmen-braun-hell: #b9ad9e;
  --schatten-braun-hell: #c69c6d;
  --flaeche-braun-hell: #ddd0b8;
  --farbe-braun-hell: #a99a80;
  --rahmen-braun-mittel: #6a5d55;
  --rahmen-braun-mittel-2: #7a6a5c;
  --schrift-braun-mittel: #7d756b;
  --flaeche-braun-mittel: #8f8b86;
  --farbe-braun-mittel: #67635f;
  --schrift-braun-mittel-2: #5d5750;
  --schrift-braun-mittel-3: #6d665e;
  --schatten-braun-mittel: #8a7c70;
  --flaeche-braun-mittel-2: #6d6259;
  --schrift-braun-mittel-4: #8a8172;
  --schatten-braun-mittel-2: #6b5a3c;
  --schatten-braun-mittel-3: #77716a;
  --farbe-braun-mittel-2: #6f6a62;
  --flaeche-braun-weiss: #e4ded4;
  --flaeche-braun-weiss-2: #e9e0d2;
  --rahmen-braun-weiss: #ebe5da;
  --schatten-braun-weiss: #ddd5c7;
  --schrift-braun-weiss: #efe6d8;
  --rahmen-braun-weiss-2: #e3d8c6;
  --schrift-braun-weiss-2: #ece6dc;
  --flaeche-gold-hell: #c9b78f;
  --flaeche-gold-hell-2: #c6b48c;
  --farbe-gold-hell: #e3c15a;
  --symbol-gold-hell: #f2d48a;
  --flaeche-gold-hell-3: #ffd77d;
  --farbe-gold-hell-2: #f2d14b;
  --flaeche-gold-mittel: #a8946a;
  --farbe-gold-mittel: #8b7a56;
  --schrift-gold-weiss: #e9dfc9;
  --schrift-gold-weiss-2: #f1e6cd;
  --flaeche-gold-weiss: #f6efdf;
  --flaeche-gold-weiss-2: #f2eee6;
  --flaeche-gold-weiss-3: #fbf6ea;
  --flaeche-gold-weiss-4: #efe8da;
  --schrift-gold-weiss-3: #f6e7c4;
  --flaeche-grau-dunkel: #1c191c;
  --rahmen-grau-dunkel: #333333;
  --rahmen-grau-dunkel-2: #444444;
  --farbe-grau-dunkel: #3a383b;
  --farbe-grau-dunkel-2: #242225;
  --flaeche-grau-dunkel-2: #323033;
  --flaeche-grau-dunkel-3: #1f1d20;
  --farbe-grau-dunkel-3: #474441;
  --schatten-grau-dunkel: #39363a;
  --flaeche-grau-dunkel-4: #4a464a;
  --flaeche-grau-dunkel-5: #2c2a2d;
  --schatten-grau-dunkel-2: #3a3236;
  --schatten-grau-dunkel-3: #343134;
  --schatten-grau-dunkel-4: #2f2c2f;
  --flaeche-grau-dunkel-6: #4a4a4a;
  --flaeche-grau-dunkel-7: #151515;
  --schatten-grau-dunkel-5: #2b2b2b;
  --flaeche-grau-dunkel-8: #2a2624;
  --flaeche-grau-dunkel-9: #171514;
  --schatten-grau-dunkel-6: #2c2628;
  --schrift-grau-dunkel: #222222;
  --flaeche-grau-hell: #9a9a9a;
  --farbe-grau-hell: #999999;
  --schrift-grau-hell: #b7afb3;
  --flaeche-grau-hell-2: #9b9397;
  --schrift-grau-hell-2: #cfc7cb;
  --rahmen-grau-mittel: #8b8b8b;
  --farbe-grau-mittel: #5a5a5a;
  --flaeche-grau-mittel: #555555;
  --schrift-grau-mittel: #8d8589;
  --flaeche-grau-mittel-2: #5b565a;
  --rahmen-grau-mittel-2: #777777;
  --schrift-grau-schwarz: #111111;
  --flaeche-grau-schwarz: #0f0e0e;
  --flaeche-grau-schwarz-2: #121011;
  --flaeche-grau-schwarz-3: #050405;
  --flaeche-grau-weiss: #f4f4f4;
  --schrift-grau-weiss: #eeeeee;
  --farbe-gruen-hell: #9fc96a;
  --farbe-gruen-hell-2: #6db38a;
  --schrift-gruen-hell: #7df0a4;
  --flaeche-gruen-mittel: #5fae6d;
  --flaeche-gruen-mittel-2: #2bd16b;
  --flaeche-gruen-schwarz: #061008;
  --farbe-lila-hell: #e58fb6;
  --farbe-lila-hell-2: #b99be6;
  --farbe-lila-hell-3: #c97fd0;
  --flaeche-lila-weiss: #eee3e8;
  --flaeche-lila-weiss-2: #e8e3ef;
  --flaeche-lila-weiss-3: #d9d3e3;
  --flaeche-orange-dunkel: #4a3019;
  --schrift-orange-dunkel: #8a5a00;
  --symbol-orange-dunkel: #4a2e1c;
  --schrift-orange-hell: #c9a46a;
  --schrift-orange-hell-2: #e0a24a;
  --farbe-orange-hell: #e0b35a;
  --rahmen-orange-hell: #ee8855;
  --flaeche-orange-mittel: #8a6a2c;
  --flaeche-orange-mittel-2: #d9a33c;
  --symbol-orange-schwarz: #1e120a;
  --symbol-orange-schwarz-2: #140c07;
  --schatten-orange-weiss: #f6f1e7;
  --schrift-rosa-weiss: #f3b3ac;
  --schrift-rosa-weiss-2: #ffb3aa;
  --flaeche-rot-dunkel: #4a1414;
  --flaeche-rot-hell: #ff3b3b;
  --flaeche-rot-hell-2: #ff5d6a;
  --farbe-rot-hell: #ff4b4b;
  --flaeche-rot-mittel: #c8323f;
  --schrift-rot-mittel: #b0302b;
  --flaeche-rot-mittel-2: #c23040;
  --flaeche-rot-mittel-3: #c22c3a;
  --flaeche-rot-mittel-4: #cc3333;
  --rahmen-sand-hell: #b9b2a6;
  --flaeche-sand-hell: #a39c92;
  --flaeche-sand-hell-2: #b9b5b0;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 15px; line-height: 1.5; }

h1, h2, h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: .02em; line-height: 1; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(30px, 4.4vw, 44px); }
h3 { font-size: 23px; letter-spacing: .03em; }
p { margin: 0; }
a { color: var(--brass); }
button, select, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hint { font-size: 13px; color: var(--muted); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row.tight { gap: 6px; }
.sp { flex: 1 1 auto; }
.stack { display: grid; gap: 8px; }
label.f { display: grid; gap: 2px; font-size: 10px; font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
label.chk { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--fg); cursor: pointer; }
label.chk input { accent-color: var(--accent); width: 16px; height: 16px; }
select, input[type=number], input[type=text], textarea { background: var(--panel-2); border: 1px solid var(--line); border-radius: 4px; padding: 5px 8px; font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--fg); }
input[type=number] { width: 64px; }
input[type=range] { accent-color: var(--accent); width: 110px; }
.btn { background: var(--panel-2); border: 1px solid var(--line); border-radius: 4px; padding: 7px 12px; font-size: 14px; font-weight: 500; }
@media (hover: hover) { .btn:hover{ border-color: var(--muted); } }
.btn.small { padding: 4px 9px; font-size: 13px; }

@media (hover: hover) { .btn.danger:hover{ border-color: var(--accent); color: var(--accent); } }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.seg button { background: transparent; border: 0; border-right: 1px solid var(--line); padding: 6px 11px; font-size: 13px; }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.tog { background: transparent; border: 1px solid var(--line); border-radius: 4px; padding: 6px 11px; font-size: 13px; }
.tog[aria-pressed="true"].pc { background: var(--accent); }
.tog[aria-pressed="true"].pm { background: var(--steel); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; display: grid; min-width: 0; align-content: start; }
.toast { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--fg); color: var(--bg); padding: 8px 14px; border-radius: 4px; font-size: 13px; font-weight: 500; z-index: 30; max-width: calc(100vw - 32px); }
.toast:empty { display: none; }

/* Transport */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--panel); }
.transport { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--panel); border-bottom: 1px solid var(--line); }

.brand { font-family: var(--display); font-weight: 900; font-size: 30px; text-transform: uppercase; color: var(--fg); text-decoration: none; letter-spacing: .02em; line-height: 1; align-self: center; margin-right: 6px; }
.brand span { color: var(--accent); }

header.top { display: grid; gap: 12px; }
header.top .lead { max-width: 80ch; color: var(--muted); }

/* Song */
.title-in { font-family: var(--display); font-size: 28px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; background: transparent; border: 1px solid transparent; padding: 2px 6px; min-width: 0; flex: 1 1 260px; }
 .title-in:focus{ border-color: var(--line); } @media (hover: hover) { .title-in:hover{ border-color: var(--line); } }

.parts, .arr { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { --c: var(--t-verse); display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border-radius: 4px; background: var(--panel-2); border: 1px solid var(--line); border-left: 4px solid var(--c); font-size: 13px; }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); border-left-color: var(--c); }
.block { --c: var(--t-verse); display: flex; flex-direction: column; gap: 3px; min-width: 92px; padding: 6px 8px; border-radius: 4px; background: color-mix(in srgb, var(--c) 18%, var(--panel-2)); border: 1px solid color-mix(in srgb, var(--c) 55%, var(--line)); cursor: grab; position: relative; }
.block.sel { outline: 2px solid var(--fg); outline-offset: 1px; }
.block.now { background: color-mix(in srgb, var(--c) 45%, var(--panel-2)); }
.block.drag { opacity: .4; }
.block.over { box-shadow: -4px 0 0 var(--brass); }

.block .bc { display: flex; gap: 2px; align-items: center; }
.block .bc button { background: transparent; border: 1px solid var(--line); border-radius: 3px; font-size: 11px; padding: 0 5px; line-height: 18px; color: var(--fg); }
.block .bc .reps { font-family: var(--mono); font-size: 12px; min-width: 24px; text-align: center; }
.block .prog { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--c); width: 0; }
[data-t="intro"] { --c: var(--t-intro); } [data-t="verse"] { --c: var(--t-verse); } [data-t="pre"] { --c: var(--t-pre); }
[data-t="chorus"] { --c: var(--t-chorus); } [data-t="bridge"] { --c: var(--t-bridge); } [data-t="breakdown"] { --c: var(--t-breakdown); }
[data-t="solo"] { --c: var(--t-solo); } [data-t="outro"] { --c: var(--t-outro); }

/* Main split */
.main { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
@media (max-width: 1100px) { .main { grid-template-columns: minmax(0, 1fr); } }
.part-in { font-family: var(--display); font-size: 24px; font-weight: 700; text-transform: uppercase; background: transparent; border: 1px solid transparent; padding: 2px 6px; width: 220px; max-width: 100%; }
 .part-in:focus{ border-color: var(--line); } @media (hover: hover) { .part-in:hover{ border-color: var(--line); } }
.brushinfo { font-family: var(--mono); font-size: 12px; color: var(--brass); }
.ivinfo { font-size: 14px; min-height: 21px; }
.ivinfo b { color: var(--brass); font-weight: 600; }

/* Griffbrett */
.fb { display: grid; grid-template-columns: 26px minmax(26px, 1.2fr) repeat(15, minmax(0, 1fr)); }
.fb .sl { font-family: var(--mono); font-size: 11px; color: var(--muted); display: flex; align-items: center; }
.fb button.fr { position: relative; height: 27px; border: 0; background: transparent; border-right: 2px solid var(--rahmen-braun-mittel); padding: 0; min-width: 0; }

.fb button.fr::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: var(--sw, 1px); transform: translateY(-50%); }
.fb button.fr .dot { display: inline-grid; place-items: center; min-width: 22px; max-width: 100%; height: 19px; padding: 0 3px; border-radius: 10px; font-family: var(--mono); font-size: 10px; font-weight: 600; border: 1px solid var(--line); }
.fb button.fr.out .dot { opacity: 0; }
@media (hover: hover) { .fb button.fr.out:hover .dot{ opacity: .55; } }
.fb button.fr.root .dot { background: var(--accent); border-color: var(--accent); color: var(--weiss); }
.fb button.fr.sel .dot { opacity: 1; outline: 2px solid var(--brass); outline-offset: 1px; }
.fb button.fr.hit .dot { opacity: 1; transform: scale(1.12); }
.fb button.fr.hitl .dot { opacity: 1; transform: scale(1.12); }
.fb .num { font-family: var(--mono); font-size: 10px; color: var(--muted); text-align: center; padding-top: 2px; }
.fb .num.inlay { color: var(--brass); }
.toolbar { padding-top: 2px; }

/* Papier-Tab */
.paper { background: var(--paper); color: var(--ink); border-radius: 4px; padding: 14px 14px 10px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr)); gap: 18px 22px; outline: none; user-select: none; -webkit-user-select: none; box-shadow: inset 0 0 0 1px var(--rahmen-hell); }
.paper:focus-visible { box-shadow: inset 0 0 0 2px var(--cursor); }
.system { display: grid; gap: 2px; min-width: 0; }

.staff { display: grid; position: relative; }
.staff.inactive { opacity: .42; }
@media (hover: hover) { .staff.inactive:hover{ opacity: .7; } }
.staff .clef { display: grid; grid-template-rows: 16px repeat(6, 19px) 16px; font-family: var(--mono); font-size: 10px; color: var(--ton-aus); }
.staff .clef span { display: flex; align-items: center; }
.staff .clef .tl { font-weight: 700; color: var(--ink); font-size: 9px; letter-spacing: .04em; }
.tcol { display: grid; grid-template-rows: 16px repeat(6, 19px) 16px; position: relative; min-width: 0; }
.tcol.bar0::before, .staff::after { content: ""; position: absolute; top: 25px; height: 96px; width: 1.5px; background: var(--ink); }
.tcol.bar0::before { left: 0; }
.staff::after { right: 0; }
.tcol.beat::after { content: ""; position: absolute; left: 0; top: 25px; height: 96px; width: 1px; background: var(--flaeche-braun-weiss); }
.tcol.now { background: var(--now); }
.tcol .cnt { font-family: var(--mono); display: flex; align-items: center; justify-content: center; }
#paper .tcol > .cnt { cursor: pointer; }
@media (hover: hover) { #paper .tcol > .cnt:hover{ color: var(--accent); } }
.tcol.beat .cnt, .tcol.bar0 .cnt { color: var(--ink); font-weight: 700; font-size: 10px; }
.ts { position: relative; display: flex; align-items: center; justify-content: center; cursor: pointer; min-width: 0; }
.ts::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--rule); }
.ts.ring::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); background: var(--ring); }
@media (hover: hover) { .ts:hover{ background: rgba(44, 106, 209, .08); } }
.ts.cur { box-shadow: inset 0 0 0 1.5px var(--cursor); border-radius: 2px; }
.ts > b { position: relative; z-index: 1; background: var(--paper); padding: 0 1px; font-family: var(--mono); font-weight: 700; font-size: 13.5px; line-height: 14px; color: var(--ink); }
.ts.pc > b { color: var(--pc-ink); }
.ts.pmn > b { font-weight: 600; }
.ts.dead > b { color: var(--ton-aus); }
.ts.stop > b { width: 7px; height: 7px; padding: 0; background: var(--ink); border-radius: 1px; }
.ann { position: relative; font-family: var(--mono); font-size: 9px; color: var(--ink); display: flex; align-items: center; min-width: 0; }
.ann.pm::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed var(--ink); }
.ann.pms::before { left: 22px; }
.ann.pms > i { position: relative; font-style: normal; font-weight: 700; background: var(--paper); padding-right: 2px; }
.ann.pme::after { content: ""; position: absolute; right: 2px; top: 50%; height: 5px; border-right: 1px solid var(--ink); }
.ann.pms.pme::before { display: none; }
.legend-paper { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px; font-size: 11px; color: var(--schrift-braun-mittel-2); font-family: var(--mono); border-top: 1px solid var(--rahmen-hell); padding-top: 8px; }
.legend-paper b { color: var(--pc-ink); }

details.keys, details.txt { font-size: 13px; }
details summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.keygrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 6px 18px; padding-top: 8px; color: var(--fg); }
kbd { font-family: var(--mono); font-size: 11px; background: var(--panel-2); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 3px; padding: 0 5px; }

/* Seitenleiste */
.side { display: grid; gap: 14px; }
.presets { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding: 8px 10px; background: var(--panel-2); border-radius: 4px; }
.presets .eyebrow { flex-basis: 100%; }
.styles { display: grid; gap: 6px; }
.stylebtn { text-align: left; background: var(--panel-2); border: 1px solid var(--line); border-radius: 5px; padding: 8px 11px; display: grid; gap: 1px; }
@media (hover: hover) { .stylebtn:hover{ border-color: var(--accent); } }
.stylebtn strong { font-family: var(--display); font-size: 19px; text-transform: uppercase; letter-spacing: .03em; font-weight: 700; }
.stylebtn span { font-size: 12px; color: var(--muted); }
.stylebtn.active { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }

.tools3 { display: flex; flex-wrap: wrap; gap: 6px; }
.tools3 .btn { font-size: 12px; padding: 4px 8px; border-left: 3px solid var(--c); }

.saves { display: grid; gap: 6px; max-height: 280px; overflow-y: auto; }
.save { display: flex; gap: 6px; align-items: center; background: var(--panel-2); border-radius: 4px; padding: 6px 8px; font-size: 13px; }
.save .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.save .n small { color: var(--muted); font-family: var(--mono); font-size: 11px; }
textarea#code { width: 100%; min-height: 60px; resize: vertical; font-family: var(--mono); font-size: 11px; margin-top: 6px; }

/* Anleitung */
.guide { display: grid; gap: 18px; }
.sechead { display: grid; gap: 8px; max-width: 75ch; }
.sechead p { color: var(--muted); }
.recipe { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; counter-reset: st; }
.recipe div { border-top: 3px solid var(--accent); background: var(--panel); padding: 12px 14px; border-radius: 0 0 5px 5px; display: grid; gap: 4px; }
.recipe b { font-family: var(--display); font-size: 20px; text-transform: uppercase; letter-spacing: .03em; }
.recipe b::before { counter-increment: st; content: counter(st) " · "; color: var(--accent); }
.recipe p { font-size: 14px; color: var(--muted); }
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.role { background: var(--panel); border-radius: 5px; padding: 12px 14px; border-left: 4px solid var(--c); display: grid; gap: 4px; }
.role b { font-family: var(--display); font-size: 20px; text-transform: uppercase; }
.role p { font-size: 14px; color: var(--muted); }
.lessons { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.lesson { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 16px; display: grid; gap: 10px; align-content: start; }
.lesson .meta { font-family: var(--mono); font-size: 11px; color: var(--brass); letter-spacing: .05em; }
.lesson p { font-size: 14px; }
.lesson .try { background: var(--panel-2); border-radius: 4px; padding: 8px 10px; font-size: 13px; }
.lesson .try b { color: var(--brass); font-weight: 600; }
.bands { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.band { border: 1px solid var(--line); border-radius: 6px; padding: 16px; display: grid; gap: 10px; align-content: start; background: var(--panel); }
.band h3 { font-size: 27px; }
.band ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; }
.band .listen { font-size: 13px; color: var(--muted); }
.plan { display: grid; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.plan > div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--panel); }
.plan > div:last-child { border-bottom: 0; }
.plan .t { font-family: var(--mono); font-size: 13px; color: var(--brass); }
.plan p { font-size: 14px; }
.tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.tips div { padding: 12px 14px; border-left: 3px solid var(--steel); background: var(--panel); border-radius: 0 5px 5px 0; font-size: 14px; display: grid; gap: 4px; }
.tips b { font-weight: 600; }
footer { font-size: 12px; color: var(--muted); max-width: 75ch; }
@media (max-width: 560px) {

  .brand { font-size: 24px; flex-basis: 100%; }

}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
html { scroll-behavior: smooth; }

@media (max-width: 700px) { .transport { position: static; } html { scroll-padding-top: 0; } }

/* ==== static/css/01-songkarte-dragdrop.css ==== */
/* ================= Song-Karte ================= */

.lib { flex-wrap: wrap; }
.card { --c: var(--t-verse); position: relative; display: grid; gap: 5px; width: 170px; padding: 8px 9px 8px; border-radius: 5px; background: var(--panel-2); border: 1px solid var(--line); border-top: 3px solid var(--c); text-align: left; cursor: pointer; }
@media (hover: hover) { .card:hover{ border-color: var(--muted); border-top-color: var(--c); } }
.card.sel { outline: 2px solid var(--fg); outline-offset: 1px; }
.card .cn { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 4px; }
.card .ct { font-family: var(--mono); font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.card .add { justify-self: start; font-size: 12px; padding: 2px 8px; }
.lanes { display: grid; gap: 2px; }
.lane { display: grid; grid-template-columns: 14px minmax(0, 1fr); align-items: center; gap: 4px; border-radius: 2px; cursor: pointer; padding: 1px 2px; }
@media (hover: hover) { .lane:hover{ background: rgba(255, 255, 255, .06); } }
.lane.act { background: rgba(255, 255, 255, .1); }
.lane b { font-family: var(--mono); font-size: 9px; font-weight: 700; color: var(--tc); }
.lane canvas { width: 100%; height: 9px; display: block; }
.lane .dl { font-family: var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lane[data-k="lead"] { --tc: var(--tr-lead); } .lane[data-k="riff"] { --tc: var(--tr-riff); } .lane[data-k="bass"] { --tc: var(--tr-bass); } .lane[data-k="drums"] { --tc: var(--tr-drums); }
.arr { display: flex; flex-wrap: wrap; align-items: stretch; counter-reset: blk; }
.arr .card { counter-increment: blk; cursor: grab; }
.arr .card .cn::before { content: counter(blk) ". "; font-family: var(--mono); font-size: 12px; }
.arr .card.now { background: color-mix(in srgb, var(--c) 22%, var(--panel-2)); }
.arr .card.drag { opacity: .4; }
.arr .card.over { box-shadow: -5px 0 0 var(--brass); }
.arr .card .prog { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--c); width: 0; border-radius: 0 0 0 4px; }
.bc { display: flex; gap: 3px; align-items: center; }
.bc button { background: transparent; border: 1px solid var(--line); border-radius: 3px; font-size: 11px; padding: 0 6px; line-height: 19px; color: var(--fg); }
@media (hover: hover) { .bc button:hover{ border-color: var(--muted); } }
.bc .reps { font-family: var(--mono); font-size: 12px; min-width: 26px; text-align: center; }
.arr .empty { font-size: 13px; color: var(--muted); padding: 10px 0; }

.mixer { display: grid; gap: 8px 18px; padding-top: 8px; }
.mixer label { display: grid; gap: 8px; align-items: center; font-size: 13px; }
.mixer label span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--tc); margin-right: 6px; }
.mixer input[type=range] { width: 100%; accent-color: var(--tc); }
.mixer [data-k="lead"] { --tc: var(--tr-lead); } .mixer [data-k="riff"] { --tc: var(--tr-riff); } .mixer [data-k="bass"] { --tc: var(--tr-bass); } .mixer [data-k="drums"] { --tc: var(--tr-drums); }

/* Mini-Mischpult in der Transportleiste */

.mm { --tc: var(--fg); display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; font-size: 12px; }
.mm > span { padding: 3px 7px; border-left: 3px solid var(--tc); white-space: nowrap; }
.mm button { background: transparent; border: 0; border-left: 1px solid var(--line); padding: 3px 7px; font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--muted); }
.mm button[aria-pressed="true"].m { background: var(--accent); color: var(--weiss); }
.mm button[aria-pressed="true"].s { background: var(--brass); color: var(--bg); }
.mm.muted > span { opacity: .45; text-decoration: line-through; }
.mm[data-k="lead"] { --tc: var(--tr-lead); } .mm[data-k="riff"] { --tc: var(--tr-riff); } .mm[data-k="bass"] { --tc: var(--tr-bass); } .mm[data-k="drums"] { --tc: var(--tr-drums); }

/* Spurwahl im Editor */

.trackhelp { flex: 1 1 260px; }
.bassrow { padding: 6px 10px; background: color-mix(in srgb, var(--tr-bass) 12%, var(--panel-2)); border-radius: 4px; }

/* Papier: Spurfarbe als Leiste links neben jedem System */
.staff[data-tr="lead"] { --tc: var(--tr-lead); } .staff[data-tr="riff"] { --tc: var(--tr-riff); } .staff[data-tr="bass"] { --tc: var(--tr-bass); }
.staff .clef { border-left: 4px solid var(--tc); padding-left: 3px; }
.staff .clef .tl { color: color-mix(in srgb, var(--tc) 55%, var(--ink)); }
.staff.bass4 .clef, .staff.bass4 .tcol { grid-template-rows: 16px repeat(4, 19px) 16px; }
.staff.bass4 .tcol.bar0::before, .staff.bass4::after, .staff.bass4 .tcol.beat::after { height: 58px; }
.staff.auto .ts > b { color: var(--schrift-braun-mittel-3); font-weight: 600; }
.staff + .staff { margin-top: 2px; }
.fb button.fr.hit .dot { background: var(--tr-riff); border-color: var(--tr-riff); color: var(--bg); }
.fb button.fr.hitl .dot { background: var(--tr-lead); border-color: var(--tr-lead); color: var(--bg); }
.fb button.fr.hitb .dot { opacity: 1; background: var(--tr-bass); border-color: var(--tr-bass); color: var(--bg); transform: scale(1.12); }

/* Export-Tabelle */
#importText { width: 100%; resize: vertical; font-family: var(--mono); font-size: 11px; line-height: 1.3; }
.filebtn { cursor: pointer; display: inline-block; }

/* Gelernte Stile */
.stylebtn .sum { font-family: var(--mono); font-size: 10.5px; color: var(--muted); line-height: 1.45; }
.learned-item { position: relative; }
.learned-item .del { position: absolute; top: 6px; right: 6px; background: transparent; border: 1px solid var(--line); border-radius: 3px; font-size: 11px; padding: 0 6px; color: var(--muted); }
@media (hover: hover) { .learned-item .del:hover{ color: var(--accent); border-color: var(--accent); } }

#learnText { width: 100%; resize: vertical; font-family: var(--mono); font-size: 11px; }

/* ================= Drag & Drop ================= */
[draggable="true"] { cursor: grab; }
[draggable="true"]:active { cursor: grabbing; }

.pchip { --c: var(--t-verse); display: inline-flex; align-items: center; gap: 6px; border-radius: 4px; background: var(--panel-2); border: 1px dashed color-mix(in srgb, var(--c) 70%, var(--line)); border-left: 4px solid var(--c); font-weight: 500; }
@media (hover: hover) { .pchip:hover{ background: color-mix(in srgb, var(--c) 18%, var(--panel-2)); } }
.arrwrap { display: grid; gap: 8px; }
.arr { padding: 6px; margin: -6px; border-radius: 6px; border: 2px dashed transparent; transition: border-color .15s; }
body[data-drag="part"] .arr, body[data-drag="newpart"] .arr, body[data-drag="style"] .arr, body[data-drag="derive"] .arr, body[data-drag="block"] .arr { border-color: color-mix(in srgb, var(--brass) 60%, transparent); background: rgba(212, 169, 95, .05); }
.arr .card.ins-before { box-shadow: -6px 0 0 var(--brass); }
.arr .card.ins-after { box-shadow: 6px 0 0 var(--brass); }
.arr.ins-end { box-shadow: inset -4px 0 0 var(--brass); }
.trash { display: none; padding: 10px; border: 2px dashed var(--accent); border-radius: 6px; text-align: center; font-size: 13px; color: var(--accent); }
body[data-drag="block"] .trash { display: block; }
.trash.hot { background: var(--accent-soft); }
body[data-drag="style"] #lib .card { outline: 2px dashed color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; }
#lib .card.droptarget { outline: 2px solid var(--accent); background: var(--accent-soft); }
body[data-drag="style"] .paper, body[data-drag="rhythm"] .paper, body[data-drag="note"] .paper { box-shadow: inset 0 0 0 2px var(--brass); }

.stamps { display: flex; flex-wrap: wrap; }
.stamp { display: inline-grid; justify-items: center; border-radius: 4px; background: var(--panel-2); border: 1px solid var(--line); color: var(--fg); }
.stamp.on { border-color: var(--brass); box-shadow: inset 0 0 0 1px var(--brass); }
.stamp i { display: flex; gap: 2px; }
.stamp i b { border-radius: 1px; background: rgba(255, 255, 255, .1); }
.stamp i b.x { background: var(--tr-riff); }
.stamp i b.s { background: var(--muted); height: 5px; margin-top: 3px; }
.ts.dropt { box-shadow: inset 0 0 0 2px var(--brass); background: rgba(212, 169, 95, .2); }
.tcol.beatdrop { background: rgba(212, 169, 95, .18); }
.ts.dragsrc > b { opacity: .35; }
.filedrop { display: none; position: fixed; inset: 0; z-index: 40; place-items: center; background: rgba(21, 18, 20, .82); color: var(--fg); font-size: 22px; font-family: var(--display); text-transform: uppercase; letter-spacing: .03em; border: 4px dashed var(--brass); }
body[data-drag="file"] .filedrop { display: grid; }
.fb button.fr[draggable="true"] { cursor: grab; }

.ts.has { touch-action: none; }

/* ==== static/css/02-app-layout.css ==== */
/* =====================================================================
   App-Layout (v10): Topbar · Symbol-Seitenleiste · Werkstatt in 3 Spalten
   ===================================================================== */
:root { --tr-voc: var(--farbe-lila-hell); --rail: 76px; --top: 50px; }
body { overflow-x: hidden; }
svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

/* Topbar */
.topbar { top: env(safe-area-inset-top, 0px); z-index: 20; display: flex; flex-wrap: wrap; align-items: center; padding: 8px max(14px, env(safe-area-inset-right, 0px)) 8px max(14px, env(safe-area-inset-left, 0px)); background: var(--panel); border-bottom: 1px solid var(--line); min-height: var(--top); }
.topbar .brand { font-size: 26px; width: calc(var(--rail) - 22px); text-align: center; margin: 0; }
.tgroup { display: flex; align-items: center; gap: 8px; padding-left: 14px; border-left: 1px solid var(--line); }
.tgroup:first-of-type { border-left: 0; padding-left: 0; }
.topbar label.f { display: grid; gap: 1px; }
.topbar input[type=range] { width: 90px; }
.topbar select, .topbar input[type=number] { padding: 4px 6px; font-size: 13px; }
.ibt { display: inline-grid; place-items: center; width: 34px; height: 32px; border: 1px solid var(--line); border-radius: 5px; cursor: pointer; color: var(--muted); }
.ibt input { position: absolute; opacity: 0; pointer-events: none; }
.ibt:has(input:checked) { color: var(--bg); background: var(--brass); border-color: var(--brass); }
.ibt:focus-within { outline: 2px solid var(--brass); outline-offset: 2px; }

.mm[data-k="voc"] { --tc: var(--tr-voc); }

/* Symbol-Knöpfe */
.ib { display: inline-flex; align-items: center; gap: 6px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 5px; padding: 6px 10px; font-size: 13px; font-weight: 500; color: var(--fg); cursor: pointer; white-space: nowrap; }
@media (hover: hover) { .ib:hover{ border-color: var(--muted); } }
.ib.sm { padding: 5px 7px; font-size: 12px; }
.ib.accent { background: var(--accent); border-color: var(--accent); color: var(--weiss); }
@media (hover: hover) { .ib.danger:hover{ color: var(--accent); border-color: var(--accent); } }
.ib.play { background: var(--accent); border-color: var(--accent); color: var(--weiss); padding: 7px 12px; }
.ib.play.alt { background: transparent; color: var(--fg); }
.ib.play.playing { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.ib.filebtn { cursor: pointer; }

/* Seitenleiste + Bereiche */
.app { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: calc(100vh - var(--top)); }
.rail { position: sticky; top: calc(var(--top) + env(safe-area-inset-top, 0px)); align-self: start; display: grid; padding: 12px 8px; padding-left: max(8px, env(safe-area-inset-left, 0px)); }
.rb { display: grid; justify-items: center; gap: 4px; padding: 10px 4px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--muted); font-size: 11px; }
.rb svg { width: 22px; height: 22px; }
@media (hover: hover) { .rb:hover{ color: var(--fg); background: var(--panel); } }
.rb[aria-pressed="true"] { color: var(--fg); background: var(--panel); border-color: var(--line); box-shadow: inset 3px 0 0 var(--accent); }
main { min-width: 0; padding: 12px max(14px, env(safe-area-inset-right, 0px)) 40px 4px; }
.view { min-width: 0; }

/* Werkstatt: Ablauf oben, darunter Songteile | Editor | Werkzeuge */
.view.work { display: grid; align-items: start; }
.songbar { grid-area: song; }
.libcol { grid-area: lib; top: calc(var(--top) + 10px); max-height: calc(100vh - var(--top) - 24px); overflow-y: auto; }
.editor { grid-area: edit; }

@media (max-width: 1380px) { .view.work { grid-template-columns: 210px minmax(0, 1fr); grid-template-areas: "song song" "lib edit" "tools tools"; }  }
@media (max-width: 900px) {  .libcol { position: static; max-height: none; } }
@media (max-width: 700px) { .app { grid-template-columns: minmax(0, 1fr); } .rail { position: sticky; top: 0; z-index: 15; display: flex; justify-content: space-around; background: var(--bg); border-bottom: 1px solid var(--line); padding: 4px; } .rb { padding: 6px 10px; } main { padding: 10px 14px 40px; } .topbar { position: static; }  }

.sb-head { display: flex; align-items: center; }

.palette { display: flex; flex-wrap: wrap; gap: 4px; }
.pchip { padding: 4px 9px 4px 7px; font-size: 12px; }

.col-head { display: flex; align-items: center; gap: 6px; }
.lib { display: grid; gap: 6px; }
.lib .card { width: auto; }
.lib .card .add { display: none; }

.ed-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ed-head .part-in { width: 180px; font-size: 22px; }
.ibsel { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.ibsel select { max-width: 210px; }

.trackhelp { margin-top: -4px; }
.ctxrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 5px; }
.ctxrow .chk svg { color: var(--tr-bass); }
.vocrow { background: color-mix(in srgb, var(--tr-voc) 12%, var(--panel-2)); }
.vochow { flex-basis: 100%; font-size: 13px; color: var(--fg); margin: 0; }
.fbwrap { display: grid; gap: 6px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.toolbar .seg button { display: inline-grid; place-items: center; padding: 6px 9px; }
.toolbar .tog { padding: 5px 9px; font-weight: 700; font-family: var(--mono); font-size: 12px; }
.toolbar .tog:disabled { opacity: .35; cursor: not-allowed; }
.divider { width: 1px; align-self: stretch; background: var(--line); margin: 0 4px; }
.stamps { gap: 4px; }
.stamp { padding: 4px 6px; font-size: 0; gap: 0; }
.stamp i b { width: 7px; height: 12px; }
.keys summary { display: inline-flex; align-items: center; gap: 6px; }

/* Werkzeug-Reiter */

.tools3 .btn { cursor: grab; }
.bases { display: flex; flex-wrap: wrap; gap: 5px; }
.basechip { --c: var(--t-verse); display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px 4px 7px; border-radius: 12px; border: 1px solid var(--line); background: transparent; font-size: 12px; color: var(--muted); }
.basechip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); opacity: .5; }
.basechip[aria-pressed="true"] { color: var(--fg); border-color: var(--c); background: color-mix(in srgb, var(--c) 22%, var(--panel-2)); }
.basechip[aria-pressed="true"]::before { opacity: 1; }
.pkg { display: grid; gap: 6px; padding: 10px; border-radius: 5px; background: var(--panel-2); }
.pkg .kinds { display: flex; flex-wrap: wrap; gap: 4px; }

.f.wide { display: grid; gap: 3px; }
.mixer { grid-template-columns: minmax(0, 1fr); }
.mixer label { grid-template-columns: 90px minmax(0, 1fr); }
.mixer [data-k="voc"] { --tc: var(--tr-voc); }

/* Gesang im Papier-Tab */
.staff.vocal { --tc: var(--tr-voc); }
.staff.vocal .clef { font-size: 8.5px; }
.staff.vocal .clef .vr.root { color: var(--pc-ink); font-weight: 700; }
.ts.vs::before { background: var(--flaeche-lila-weiss); }
.ts.vs > b { background: var(--tr-voc); color: var(--ink); border-radius: 6px; padding: 0 3px; font-size: 10px; line-height: 12px; min-width: 18px; text-align: center; }
.ts.vs.ring::after { background: color-mix(in srgb, var(--tr-voc) 45%, var(--weiss)); height: 4px; }
.staff.vocal .tcol.bar0::before, .staff.vocal::after, .staff.vocal .tcol.beat::after { display: none; }
.lane[data-k="voc"] { --tc: var(--tr-voc); }

/* Bereiche Stile / Dateien / Lernen */
.twocol { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 14px; }
.view h2 { font-size: 28px; }
#learnText, #importText { min-height: 180px; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; }
.subtabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.subtabs button { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 6px 14px; font-size: 13px; color: var(--muted); }
.subtabs button[aria-pressed="true"] { color: var(--bg); background: var(--fg); border-color: var(--fg); }

.vstyles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 10px; }
.vstyle { background: var(--panel); border-radius: 5px; padding: 12px 14px; border-left: 4px solid var(--tr-voc); display: grid; gap: 6px; }
.vstyle b { font-family: var(--display); font-size: 20px; text-transform: uppercase; }
.vstyle p { font-size: 14px; color: var(--muted); }
.vstyle .ib { justify-self: start; }
.toast { bottom: max(18px, env(safe-area-inset-bottom, 0px)); }

/* Songteile-Spalte: Song / Bibliothek */
.libtabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.libtabs button { display: inline-flex; justify-content: center; align-items: center; gap: 6px; padding: 7px 4px; background: transparent; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-size: 12px; }
.libtabs button[aria-selected="true"] { color: var(--fg); background: var(--panel-2); border-color: var(--muted); }
.ltpane { display: grid; gap: 8px; }
.newbox { display: grid; gap: 6px; padding: 8px; border-radius: 5px; border: 1px dashed var(--line); }
.newbox .palette { gap: 4px; }
.newbox .pchip { font-size: 11.5px; padding: 3px 8px 3px 6px; }
#libSearch { width: 100%; }
.libitem { --c: var(--t-verse); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 6px; align-items: center; border-radius: 5px; background: var(--panel-2); border: 1px solid var(--line); border-top: 3px solid var(--c); cursor: grab; }
.libitem .cn { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.libitem .ct { grid-column: 1 / -1; font-family: var(--mono); font-size: 10px; color: var(--muted); }
.libitem .lanes { grid-column: 1 / -1; }
.libitem .acts { display: flex; gap: 3px; }

body[data-drag="libitem"] .arr { border-color: color-mix(in srgb, var(--brass) 60%, transparent); background: rgba(212, 169, 95, .05); }

/* Mehrfachauswahl */
.card.msel { outline: 2px dashed var(--brass); outline-offset: 2px; background: color-mix(in srgb, var(--brass) 12%, var(--panel-2)); }
.card.msel::after { content: "✓"; position: absolute; top: 4px; right: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--brass); color: var(--bg); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.selbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 6px; background: color-mix(in srgb, var(--brass) 18%, var(--panel-2)); border: 1px solid var(--brass); }
.selbar b { font-size: 13px; }

/* Band-Besetzung */

.genwhat { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; padding: 8px 10px; border-radius: 5px; background: var(--panel-2); }
.genwhat .eyebrow { flex-basis: 100%; }
.genwhat svg { width: 15px; height: 15px; }

/* ==== static/css/03-app-rahmen.css ==== */
/* =====================================================================
   App-Rahmen ohne Seiten-Scrollbalken: Fenster gefüllt, jede Box scrollt selbst
   ===================================================================== */
@media (min-width: 901px) {
  html, body { height: 100%; overflow: hidden; }
  body { display: flex; flex-direction: column; }
  .topbar { position: relative; flex: none; }
  .app { flex: 1 1 auto; min-height: 0; height: auto; }
  .rail { position: static; overflow-y: auto; max-height: 100%; }
  main { height: 100%; min-height: 0; overflow: hidden; padding-bottom: 10px; }
  .view { height: 100%; min-height: 0; }
  .view:not(.work) { overflow-y: auto; padding-right: 8px; }
  .view.work { align-items: stretch; }
  .songbar { max-height: 34vh; overflow-y: auto; }
  .libcol, .editor { position: static; top: auto; height: 100%; max-height: none; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
  .songbar, .libcol, .editor { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
}
@media (min-width: 901px) and (max-width: 1380px) {
  .view.work { grid-template-rows: auto minmax(0, 1fr) minmax(0, 30vh); }
}

/* Songteile-Spalte ganz links über die volle Höhe, neben Songtitel und Ablauf */

@media (max-width: 1380px) and (min-width: 901px) {
  .view.work { grid-template-columns: 210px minmax(0, 1fr); grid-template-areas: "lib song" "lib edit" "lib tools"; }
}
@media (max-width: 1380px) and (min-width: 1101px) {
  
  .songbar { max-height: 28vh; }
}
@media (max-width: 1100px) and (min-width: 901px) {
  
  .songbar { max-height: 24vh; }
}

/* Werkzeuge rechts ebenfalls über die volle Höhe */

/* Kompakte Songteile in der linken Spalte: Name + Typ in einer Zeile, dünne Spur-Streifen */

.libcol .lib .card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 2px 6px; padding: 4px 7px 5px; border-top-width: 2px; border-left: 3px solid var(--c); border-top-color: var(--line); }
.libcol .lib .card .cn { font-size: 12.5px; padding-right: 0; }
.libcol .lib .card .ct { letter-spacing: .05em; }
.libcol .lib .card .lanes { grid-column: 1 / -1; gap: 1px; }
.libcol .lib .card .lane { grid-template-columns: minmax(0, 1fr); padding: 0; }
.libcol .lib .card .lane b { display: none; }
.libcol .lib .card .lane canvas { height: 4px; }
.libcol .lib .card.msel::after { top: 3px; right: 3px; width: 13px; height: 13px; font-size: 9px; }
.libcol .newbox { padding: 6px; gap: 4px; }
.libcol .newbox .hint { font-size: 11px; }
.libitem { padding: 5px 7px; }
.libitem .lane b { display: none; }
.libitem .lane { grid-template-columns: minmax(0, 1fr); padding: 0; }
.libitem .lane canvas { height: 4px; }

/* Box, in der Entf gerade wirkt */
.view.work .panel.areafocus { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brass) 55%, transparent); }  /* Werkstatt: wo „Entf“ wirkt (zuletzt angeklickter Bereich); anderswo ohne Bedeutung */

/* Tab-Ansicht wählen + Griffbrett folgt */

.follow select { font-size: 12px; padding: 3px 6px; }
.fb button.fr.hitv .dot { opacity: 1; background: var(--tr-voc); border-color: var(--tr-voc); color: var(--bg); transform: scale(1.12); }
.fb button.fr.nexthit .dot { opacity: 1; outline: 2px dashed var(--brass); outline-offset: 2px; }
.fbwrap.following { box-shadow: inset 0 0 0 1px var(--brass); border-radius: 5px; padding: 6px; }

/* Erzeugen: Stil -> Spuren -> Ziel */
.step { display: flex; align-items: center; gap: 7px; margin-top: 4px; }

.stylegrid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.stylegrid:empty { display: none; }
.stylegrid .stylebtn { padding: 6px 8px; border-radius: 5px; }
.stylegrid .stylebtn strong { font-size: 15px; line-height: 1.1; }
.stylegrid .stylebtn > span:not(.favstar), .stylegrid .stylebtn .sum { display: none; }
.stylegrid .stylebtn.active { background: color-mix(in srgb, var(--accent) 22%, var(--panel-2)); }
.stylegrid .learned-item .stylebtn strong::before { content: "✦ "; color: var(--brass); }
.stylegrid .learned-item .del { top: 3px; right: 3px; padding: 0 4px; font-size: 10px; }
#learned .hint { grid-column: 1 / -1; }
.styledesc { font-size: 12.5px; color: var(--muted); min-height: 2.6em; margin: 0; }
.styledesc b { color: var(--fg); }
.targets { display: grid; gap: 6px; }
.ib.wide { justify-content: center; padding: 9px 10px; font-size: 13.5px; }
.ib:disabled { opacity: .45; cursor: not-allowed; }

.trackrow { padding: 4px 0; gap: 5px; }
.leadtools { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; }
/* Lade-Anzeige */
body.busy { cursor: progress; }

@keyframes busybar { from { left: -40%; } to { left: 100%; } }

/* Meldung mit Rückgängig-Knopf */
.toast { display: flex; align-items: center; gap: 10px; }
.toast button { background: var(--bg); color: var(--fg); border: 0; border-radius: 4px; padding: 4px 9px; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }

.vshift { display: inline-flex; gap: 3px; align-items: center; }
.vpass[hidden] { display: none; }
.vpass .ib[aria-pressed="true"] { background: var(--accent); color: var(--weiss); }

/* Spurwahl als Reiter direkt am Tab ("Tab im Tab") */
.tracktabs { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 3px; margin-bottom: -10px; position: relative; z-index: 1; padding-left: 6px; }
.tracktabs button { --tc: var(--fg); display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-bottom: 0; border-radius: 7px 7px 0 0; background: var(--panel); color: var(--muted); font-size: 13px; box-shadow: inset 0 3px 0 transparent; }
.tracktabs button svg { color: var(--tc); }
@media (hover: hover) { .tracktabs button:hover{ color: var(--fg); } }
.tracktabs button[aria-pressed="true"] { background: var(--panel-2); color: var(--fg); box-shadow: inset 0 3px 0 var(--tc); padding-bottom: 10px; }
.tracktabs [data-track="voc"] { --tc: var(--tr-voc); } .tracktabs [data-track="lead"] { --tc: var(--tr-lead); } .tracktabs [data-track="riff"] { --tc: var(--tr-riff); } .tracktabs [data-track="bass"] { --tc: var(--tr-bass); }
.tracktabs .eye { display: inline-grid; place-items: center; width: 22px; height: 20px; margin-left: 2px; border-radius: 4px; color: var(--fg); cursor: pointer; }
.tracktabs .eye svg { width: 14px; height: 14px; color: currentColor; }
@media (hover: hover) { .tracktabs .eye:hover{ background: rgba(255, 255, 255, .1); } }
.tracktabs .eye.off { color: var(--muted); opacity: .55; }
.tracktabs .eye.off svg { stroke-dasharray: 2 2; }
.tracktabs .eye.lock { cursor: default; opacity: .5; }
.trackpane { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 0 6px 6px 6px; background: var(--panel-2); }
.trackpane .trackhelp { margin: 0; }

@media (max-width: 700px) { .tracktabs button span:not(.eye) { display: none; } }

/* Einfügelinie beim Umsortieren senkrechter Listen */
.card.ins-above, .libitem.ins-above { box-shadow: 0 -4px 0 var(--brass); }
.card.ins-below, .libitem.ins-below { box-shadow: 0 4px 0 var(--brass); }
body[data-drag="part"] #lib, body[data-drag="libitem"] #library { outline: 1px dashed color-mix(in srgb, var(--brass) 50%, transparent); outline-offset: 3px; border-radius: 4px; }

/* ==== static/css/04-layout-editor-breit.css ==== */
/* =====================================================================
   v30: ohne rechte Spalte – Editor bekommt die Breite; Assistent als Dialog; Mischpult oben rechts
   ===================================================================== */
.view.work { grid-template-columns: 196px minmax(0, 1fr); grid-template-areas: "lib song" "lib edit"; }
@media (min-width: 1101px) { .view.work { grid-template-areas: "lib song" "lib edit"; } }
@media (max-width: 1380px) and (min-width: 1101px) { .view.work { grid-template-columns: 210px minmax(0, 1fr); grid-template-areas: "lib song" "lib edit"; grid-template-rows: auto minmax(0, 1fr); } }
@media (max-width: 1100px) and (min-width: 901px) { .view.work { grid-template-columns: 190px minmax(0, 1fr); grid-template-areas: "lib song" "lib edit"; grid-template-rows: auto minmax(0, 1fr); } }
@media (max-width: 900px) { .view.work { grid-template-columns: minmax(0, 1fr); grid-template-areas: "song" "edit" "lib"; } }

/* Mischpult oben rechts */
.mixwrap { position: relative; margin-left: auto; display: flex; align-items: center; gap: 6px; }

#mixBtn[aria-expanded="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.mixpop { z-index: 30; width: 300px; display: grid; gap: 10px; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 30px rgba(0, 0, 0, .45); }
.mixpop .mixer { grid-template-columns: minmax(0, 1fr); padding-top: 0; }
@media (max-width: 700px) { .mixwrap { margin-left: 0; } .mixpop { right: auto; left: 0; } }

/* Lade-Anzeige jetzt unter der Kopfzeile */
body.busy .topbar::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 40%; background: var(--brass); animation: busybar 1s linear infinite; }
.topbar { position: relative; }

/* Assistent */
dialog.wizard { width: min(960px, 96vw); padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--fg); box-shadow: 0 20px 60px rgba(0, 0, 0, .55); overflow: hidden; }
dialog.wizard[open] { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; }
dialog.wizard::backdrop { background: rgba(10, 8, 9, .62); }
.wiz-head { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.wiz-head h2 { font-size: 22px; }
.wiz-step { overflow-y: auto; padding: 16px 18px; display: grid; gap: 12px; align-content: start; }
.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.path { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; align-items: start; text-align: left; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2); color: var(--fg); }
.path svg { grid-row: span 2; width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.path b { font-size: 14.5px; }
.path span { font-size: 12.5px; color: var(--muted); }
@media (hover: hover) { .path:hover:not(:disabled){ border-color: var(--accent); } }
.path[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--panel-2)); }
.path:disabled { opacity: .45; cursor: not-allowed; }
.wizard .stylegrid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.wizard .styledesc { min-height: 1.5em; }
.wiz-block { display: grid; gap: 8px; padding: 12px; border-radius: 6px; background: var(--panel-2); }
.wiz-block .kinds { display: flex; flex-wrap: wrap; gap: 5px; }
.wiz-block .tools3 .btn[aria-pressed="true"] { background: color-mix(in srgb, var(--c) 30%, var(--panel-2)); border-color: var(--c); }
.wiz-foot { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); }
.wiz-foot .hint { max-width: 60%; }
#wizNext { padding: 8px 16px; }

/* Kontextmenü */
.ctxmenu { position: fixed; z-index: 50; min-width: 220px; padding: 5px; display: grid; gap: 1px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 14px 34px rgba(0, 0, 0, .5); }
.ctxmenu button { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border: 0; border-radius: 5px; background: transparent; color: var(--fg); font-size: 13px; text-align: left; }
.ctxmenu button svg { width: 16px; height: 16px; color: var(--muted); }
 .ctxmenu button:focus-visible{ background: var(--panel-2); outline: none; } @media (hover: hover) { .ctxmenu button:hover{ background: var(--panel-2); outline: none; } }
@media (hover: hover) { .ctxmenu button.danger:hover{ color: var(--accent); } }
.ctxmenu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 2px; }

/* Mischpult als Overlay: Band, Kanäle (M/S/Lautstärke), Gitarrenklang */

.mixrow { display: grid; grid-template-columns: 80px 16px minmax(0, 1fr) 58px; align-items: center; gap: 6px; font-size: 13px; }
.mixrow .mxdb { font: 12px var(--mono); color: var(--muted); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mxsolo { font: 700 10px var(--mono); color: var(--bg); background: var(--brass); border-radius: 3px; text-align: center; line-height: 16px; }
.mixrow .mn { display: inline-flex; align-items: center; gap: 6px; }
.mixrow .mn::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--tc); flex: none; }
.mixrow.muted .mn { opacity: .45; text-decoration: line-through; }
.mixrow input[type=range] { width: 100%; accent-color: var(--tc); }
.mixrow[data-k="voc"] { --tc: var(--tr-voc); } .mixrow[data-k="lead"] { --tc: var(--tr-lead); } .mixrow[data-k="riff"] { --tc: var(--tr-riff); } .mixrow[data-k="bass"] { --tc: var(--tr-bass); } .mixrow[data-k="drums"] { --tc: var(--tr-drums); }
.mixpop .mixer { display: grid; gap: 6px; }
#mixBtn { position: relative; }
.mixbadge { position: absolute; top: -6px; right: -6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: var(--weiss); font-size: 10px; font-family: var(--mono); display: grid; place-items: center; }

/* Grafischer Song-Plan im Assistenten */
.planpal { display: flex; flex-wrap: wrap; gap: 5px; }
.planpal .basechip { cursor: grab; color: var(--fg); }
.planpal .basechip::before { opacity: 1; }
.planbar { display: flex; flex-wrap: wrap; gap: 4px; min-height: 52px; padding: 6px; border-radius: 6px; background: var(--bg); border: 1px dashed var(--line); align-content: flex-start; }
.planblk { position: relative; flex: 1 1 0; max-width: 220px; display: flex; align-items: center; gap: 2px; padding: 6px 4px 6px 8px; border-radius: 5px; cursor: grab;
  background: color-mix(in srgb, var(--c) 28%, var(--panel-2)); border: 1px solid var(--c); font-size: 12px; color: var(--fg); }
.planblk .pn { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.planblk .pr { border: 0; background: color-mix(in srgb, var(--c) 45%, transparent); color: var(--fg); border-radius: 9px; padding: 1px 6px; font-family: var(--mono); font-size: 11px; cursor: pointer; }
.planblk .px { border: 0; background: transparent; color: var(--muted); padding: 0; width: 18px; height: 18px; display: grid; place-items: center; cursor: pointer; }
.planblk .px svg { width: 12px; height: 12px; }
@media (hover: hover) { .planblk .px:hover{ color: var(--accent); } }
.planblk.dragging { opacity: .4; }
.planblk.ins-before { box-shadow: -4px 0 0 var(--brass); }
.planblk.ins-after { box-shadow: 4px 0 0 var(--brass); }
.planempty { color: var(--muted); font-size: 12.5px; align-self: center; margin: auto; }
.planinfo { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-family: var(--mono); }
.planinfo span { flex: 1; }
.planinfo .ib { padding: 4px 6px; }
.planinfo .ib svg { width: 15px; height: 15px; }
.planinfo .ib:disabled { opacity: .4; cursor: default; }

/* Hervorhebung nur farblich: gleiche Schriftstärke wie normal, damit nichts umbricht */
.seg button[aria-pressed="true"], .chip[aria-pressed="true"],
.basechip[aria-pressed="true"], .subtabs button[aria-pressed="true"], .libtabs button[aria-selected="true"],
.tracktabs button[aria-pressed="true"], .wiz-steps li.active, .wiz-block .tools3 .btn[aria-pressed="true"],
button[aria-pressed="true"], button[aria-selected="true"]{ font-weight: 500; }

/* Ein-/Ausklappen von Boxen */
.fold { flex: none; display: inline-grid; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--muted); cursor: pointer; }
@media (hover: hover) { .fold:hover{ color: var(--fg); border-color: var(--line); } }
.fold svg { width: 14px; height: 14px; transition: transform .15s; }
.foldhead { display: flex; align-items: center; gap: 4px; }
.songbar.folded .arrwrap { display: none; }
.newbox.folded > :not(.foldhead) { display: none; }
.fbwrap.folded > :not(.row) { display: none; }
.fbwrap.folded .row > :not(.fold):not(#fbTitle):not(.fbauto) { display: none; }
.fbwrap.folded #fbLegend { display: none; }
.fbwrap.nolegend .fblegend, .fbwrap.nolegend .ivinfo { display: none; }

/* Klapp-Knöpfe dezent am rechten Ende der Kopfzeilen */
.fold { margin-left: auto; opacity: .55; width: 22px; height: 22px; }
 .folded .fold{ opacity: 1; } @media (hover: hover) { .fold:hover{ opacity: 1; } }
.fold svg { transform: rotate(180deg); }          /* offen: Pfeil nach oben = zuklappen */
.folded .fold svg, .folded > * .fold svg { transform: rotate(0deg); }
.fbwrap .row { display: flex; align-items: center; gap: 8px; }
/* Songteile-Spalte: schmaler Griff am rechten Rand */
.libcol { position: relative; }
.foldedge { position: absolute; top: 50%; right: -1px; transform: translateY(-50%); width: 14px; height: 56px; padding: 0; display: grid; place-items: center;
  border: 1px solid var(--line); border-right: 0; border-radius: 6px 0 0 6px; background: var(--panel-2); color: var(--muted); cursor: pointer; opacity: 0; transition: opacity .15s; z-index: 2; }
 .foldedge:focus-visible{ opacity: 1; } @media (hover: hover) { .libcol:hover .foldedge{ opacity: 1; } }
@media (hover: hover) { .foldedge:hover{ color: var(--fg); } }
.foldedge svg { width: 12px; height: 12px; transform: rotate(90deg); }
.foldedge span { display: none; }
@media (min-width: 901px) {
  .libcol.folded { padding: 0; }
  .libcol.folded > :not(.foldedge) { display: none !important; }
  .libcol.folded .foldedge { position: static; transform: none; opacity: 1; width: 100%; height: 100%; border: 0; border-radius: inherit; background: transparent;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px; padding-top: 12px; }
  @media (hover: hover) { .libcol.folded .foldedge:hover{ background: var(--panel-2); } }
  .libcol.folded .foldedge span { display: block; writing-mode: vertical-rl; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
}
@media (max-width: 900px) { .foldedge { display: none; } }

/* ==== static/css/05-stile-ueben-griffbrett-editorleiste.css ==== */
/* =====================================================================
   Stil-Baukasten (Bereich „Stile“)
   ===================================================================== */
.view.stylesview { display: flex; flex-direction: column; }
.kittabs { flex: none; display: flex; gap: 6px; }
.kittabs button { display: inline-flex; align-items: center; gap: 6px; }
.kittabs svg { width: 15px; height: 15px; }
.kit { display: grid; grid-template-columns: 250px minmax(0, 1fr) 400px; gap: 12px; align-items: stretch; }
@media (min-width: 901px) {
  .view.stylesview { overflow: hidden !important; padding-right: 0; }
  .kit { flex: 1 1 auto; min-height: 0; }
  .stylesview [data-ktp="learn"], .stylesview [data-ktp="briefs"] { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 10px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
}
@media (max-width: 1250px) and (min-width: 901px) { .kit { grid-template-columns: 210px minmax(0, 1fr) 340px; } }
@media (max-width: 900px) { .kit { grid-template-columns: minmax(0, 1fr); } }

.kitmine { display: grid; gap: 6px; }
.kititem { display: grid; gap: 4px; align-items: stretch; }
.kitload { display: grid; gap: 2px; text-align: left; padding: 7px 9px; border-radius: 6px; border: 1px solid var(--line); border-left: 4px solid var(--brass); background: var(--panel-2); color: var(--fg); cursor: pointer; min-width: 0; }
.kitload strong { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kitload span, .kitload small { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.kititem.active .kitload { border-color: var(--brass); background: color-mix(in srgb, var(--brass) 14%, var(--panel-2)); }
.kititem .del { border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 6px; padding: 0 8px; cursor: pointer; font-size: 12px; }
@media (hover: hover) { .kititem .del:hover{ color: var(--accent); border-color: var(--accent); } }

.kit-search { position: sticky; top: 0; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--panel); padding-bottom: 6px; }
.kit-search input { flex: 1 1 200px; min-width: 0; }
.kitingr { display: grid; gap: 12px; }
.inggroup { display: grid; gap: 5px; }
.ingchips { display: flex; flex-wrap: wrap; gap: 5px; }
.ingchip { --c: var(--accent); padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2); color: var(--fg); font-size: 12.5px; font-weight: 500; cursor: pointer; line-height: 1.25; }
.ingchip.band { --c: var(--brass); border-style: dashed; }
@media (hover: hover) { .ingchip:hover{ border-color: var(--c); } }
.ingchip.on { background: color-mix(in srgb, var(--c) 28%, var(--panel-2)); border-color: var(--c); border-style: solid; box-shadow: inset 0 0 0 1px var(--c); }

.kitrecipe { display: flex; flex-wrap: wrap; gap: 5px; min-height: 30px; }
.kitrecipe[hidden] { display: none; }
.recchip { display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: color-mix(in srgb, var(--accent) 28%, var(--panel-2)); font-size: 12.5px; overflow: hidden; }
.recchip button { border: 0; background: transparent; color: var(--fg); cursor: pointer; font-size: 12.5px; font-weight: 500; line-height: 1.25; padding: 5px 10px; }
.recchip button[data-w] { font-family: var(--mono); font-size: 11px; padding: 5px 9px 5px 7px; border-left: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); }
@media (hover: hover) { .recchip button:hover{ background: color-mix(in srgb, var(--accent) 30%, transparent); } }
.recchip.off { border: 1px dashed var(--line); box-shadow: none; background: transparent; }
.recchip.off button { color: var(--muted); text-decoration: line-through; }
.bandup { font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 0 4px; }
.kitsel { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 10px; margin-bottom: 10px; }
.kitsel .f { display: grid; gap: 2px; font-size: 11.5px; color: var(--muted); }
.kitsel select { width: 100%; }
.kitsel .chk { align-self: end; font-size: 12.5px; }
.kitnum { display: grid; gap: 4px; margin-bottom: 10px; }
.rng { display: grid; grid-template-columns: 110px minmax(0, 1fr) 82px; gap: 8px; align-items: center; font-size: 12.5px; }
.rng output { font-family: var(--mono); font-size: 11.5px; color: var(--muted); text-align: right; }
.rng input { width: 100%; accent-color: var(--brass); }

/* eigene Stile im Assistenten */
#customStyles:empty { display: none; }
.stylebtn.custom { border-left: 4px solid var(--brass); }
.stylebtn.kitadd { border-style: dashed; background: transparent; }

/* Assistent: Besetzung für den Song */
.songband { display: flex; flex-wrap: wrap; gap: 6px; }
.songband button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 6px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; }
.songband button[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 22%, var(--panel-2)); text-decoration: none; }
.songband svg { width: 15px; height: 15px; }
.songvoc { display: flex; flex-wrap: wrap; gap: 10px; }
.songvoc .f { display: grid; gap: 2px; font-size: 12px; color: var(--muted); flex: 1 1 180px; }

/* Werkstatt ohne Hilfetexte (Tooltips bleiben) */
.view.work .hint:not(#songLen), .view.work .legend-paper, .view.work .vochow { display: none !important; }
/* Stimmung + Tonvorrat: dezent in der Song-Leiste */
.songkey { display: inline-flex; gap: 4px; align-items: center; }
.songkey select { font-size: 12px; padding: 3px 4px; max-width: 150px; background: transparent; border: 1px solid transparent; color: var(--muted); border-radius: 4px; cursor: pointer; }
 .songkey select:focus{ border-color: var(--line); color: var(--fg); background: var(--panel-2); } @media (hover: hover) { .songkey select:hover{ border-color: var(--line); color: var(--fg); background: var(--panel-2); } }

/* Baukasten: Bands mit Alben */
.bandrows { display: grid; gap: 4px; }
.bandrow { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 3px 0; border-bottom: 1px dashed color-mix(in srgb, var(--line) 60%, transparent); }
.bandrow:last-child { border-bottom: 0; }
.bandrow .ingchip.band { font-weight: 600; }
.ingchip.album { --c: var(--brass); font-size: 11.5px; padding: 3px 8px; background: transparent; }
.ingchip.album small { color: var(--muted); font-family: var(--mono); font-size: 10px; }
/* Favoriten */
.favhead { display: flex; align-items: baseline; gap: 10px; }
.favstar { position: absolute; top: 4px; right: 6px; font-size: 16px; line-height: 1; color: var(--muted); cursor: pointer; padding: 2px; border-radius: 4px; z-index: 1; }
@media (hover: hover) { .favstar:hover{ color: var(--brass); background: var(--panel); } }
.favstar.on { color: var(--brass); }
body.phone .favstar { pointer-events: none; cursor: default; background: none; }  /* Handy: Favoriten nur anzeigen */
body.phone .favstar:not(.on) { display: none; }
.stylebtn, .kitload { position: relative; }
.stylebtn strong, .kitload strong { padding-right: 18px; }
.allstyles > summary { cursor: pointer; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.allstyles .stylegrid + .stylegrid { margin-top: 8px; }
.songhard { flex-wrap: wrap; }
.inggroup .eyebrow i { font-style: normal; opacity: .6; }
.kitsum { font-size: 12.5px; color: var(--muted); margin: 0; } .kitsum b { color: var(--fg); font-weight: 500; }

/* =====================================================================
   Üben: Tonleitern und Pattern
   ===================================================================== */
.view.practice { flex-direction: column; }
.prbar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: end; }
.prbar .f { display: grid; gap: 2px; color: var(--muted); }
.prbar select { max-width: 220px; }
.prbar .prbpm input[type="number"] { width: 64px; }
.prbar .ib.play { margin-left: auto; }
.prboard { display: grid; gap: 8px; }
.prfb { min-height: 0; }  /* Höhe nur über --frh (Griff unter dem Griffbrett) */
.prfb button.fr { height: var(--frh, 32px); min-height: 0 !important; }
.prfb button.fr .dot { height: min(21px, calc(var(--frh, 32px) - 6px)); min-width: min(22px, calc(var(--frh, 32px) - 4px)); font-size: min(11px, calc(var(--frh, 32px) * .38)); }
.prfb button.fr.root .dot { background: var(--accent); border-color: var(--accent); color: var(--weiss); }
.prfb button.fr.hit .dot { opacity: 1; background: var(--tr-lead, var(--fg)); border-color: var(--tr-lead, var(--fg)); color: var(--bg); transform: scale(1.18); }
.prinfo { margin: 0; font-size: 13.5px; color: var(--muted); }
.prinfo b { color: var(--fg); }
.prtabwrap { overflow: auto; }
.prtab { margin: 0; zoom: var(--tabz, 1); border-radius: 4px; }  /* gleiche Tabulatur wie im Songbook (.pvpaper) */
.kitmine .eyebrow { margin-top: 4px; }

/* =====================================================================
   Griffbrett wie ein echtes: Leersaiten-Bereich vor dem Sattel hell, dicker Sattel, Bundpunkte
   ===================================================================== */
.fb button.fr.nut { background: var(--flaeche-braun-weiss-2); border-right: 7px solid var(--flaeche-hell); box-shadow: inset -2px 0 0 var(--schatten-braun-mittel), 2px 0 0 var(--schatten-braun-dunkel); border-radius: 0; }
.fb button.fr.nut::before { background: var(--flaeche-braun-mittel-2); }
.fb button.fr.nut .dot { background: var(--weiss); color: var(--schrift-braun-dunkel-4); border-color: var(--rahmen-braun-hell); }
.fb button.fr.nut.out .dot { opacity: 0; }
@media (hover: hover) { .fb button.fr.nut.out:hover .dot{ opacity: .6; } }
.fb button.fr.nut.root .dot { background: var(--accent); border-color: var(--accent); color: var(--weiss); }
.fb > button.fr.nut:first-of-type { border-top-left-radius: 4px; }
.fb button.fr.inl::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 11px; height: 11px; border-radius: 50%;
  transform: translate(-50%, 50%); z-index: 0; pointer-events: none; }
.fb .num.inlay { font-weight: 700; }

/* =====================================================================
   Editor: Songteil-Leiste als Titelleiste des Fensters
   ===================================================================== */
.editor > .ed-head { z-index: 6; background: color-mix(in srgb, var(--fg) 7%, var(--panel)); border-bottom: 1px solid var(--line); border-radius: 6px 6px 0 0; }
.editor > .ed-head .part-in { font-size: 20px; padding: 1px 6px; }
.editor > .ed-head select, .editor > .ed-head .ibsel { font-size: 13px; }

/* Bundpunkte deutlicher (Perlmutt-Optik) */
.fb button.fr.inl::after { width: clamp(6px, calc(var(--frh, 30px) * .5), 15px); height: clamp(6px, calc(var(--frh, 30px) * .5), 15px); opacity: .95;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), 0 1px 3px rgba(0, 0, 0, .5); }


/* Assistent: gewählten Katalog-Stil aufklappen (Bands eines Genres, Alben einer Band) */
.catmix { display: grid; gap: 6px; max-height: 210px; overflow: auto; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); }
.catmix .ingchip { padding: 3px 9px; font-size: 12px; }
.catmix .ingchip small { color: var(--muted); font-family: var(--mono); font-size: 10px; }
/* ==== static/css/06-songteil-klang-tabulatur.css ==== */
/* =====================================================================
   Klang je Songteil: Titelleiste, Assistent, Eigenschaften
   ===================================================================== */
.tonebar { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }

select.t-acoustic { color: var(--schrift-orange-hell); } select.t-clean { color: var(--schrift-blau-hell); } select.t-crunch { color: var(--schrift-orange-hell-2); } select.t-dist { color: var(--accent); }
.tonepre { display: flex; flex-wrap: wrap; gap: 5px; }
.tonepre button { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 12.5px; cursor: pointer; }
.tonepre button[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 22%, var(--panel-2)); }
.tonegrid { display: grid; gap: 4px 8px; align-items: center; }
.tonegrid b { display: inline-flex; gap: 5px; align-items: center; font-size: 12px; font-weight: 500; color: var(--muted); }
.tonegrid b svg { width: 14px; height: 14px; }
.tonegrid .tk { font-size: 12.5px; border-left: 4px solid var(--c, var(--line)); padding-left: 6px; }
.tonegrid .tk.fxrow { border-left-color: var(--brass); color: var(--muted); }
.tonegrid select { font-size: 12.5px; width: 100%; }
/* Song-Eigenschaften */
dialog.props { width: min(1200px, calc(100vw - 32px)); max-height: calc(100vh - 40px); padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--fg); display: none; }
dialog.props[open] { display: flex; flex-direction: column; }
dialog.props::backdrop { background: rgba(0, 0, 0, .55); }
.props-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--fg) 7%, var(--panel)); }
.props-head h2 { font-size: 22px; }
.props-song { display: flex; flex-wrap: wrap; gap: 10px 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); align-items: end; }
.props-song .f { display: grid; gap: 3px; font-size: 11.5px; color: var(--muted); }
.props-song .f.wide { flex: 1 1 220px; }
.props-song .f.wide input { width: 100%; }
.props-tablewrap { overflow: auto; padding: 4px 16px 16px; }
.props-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.props-table th { position: sticky; top: 0; background: var(--panel); text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 8px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.props-table th svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; }
.props-table td { padding: 4px 6px; border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent); vertical-align: middle; }
.props-table tbody tr { cursor: pointer; }
.props-table tbody tr td:first-child { border-left: 4px solid var(--c, var(--line)); }
.props-table tbody tr.cur { background: color-mix(in srgb, var(--brass) 10%, transparent); }
.props-table input[type="text"] { width: 100%; }
.props-table select { font-size: 12.5px; }

.props-table td.snd select + select { margin-left: 4px; }
.props-table td.num { text-align: center; font-family: var(--mono); color: var(--muted); }
.props-table td.nrg { white-space: nowrap; }
.props-table td.nrg input { width: 84px; vertical-align: middle; accent-color: var(--brass); }
.props-table td.nrg input.auto { accent-color: var(--muted); }  /* nicht gesetzt: Standard des Songteil-Typs */
.props-table td.nrg output { display: inline-block; width: 2.4em; text-align: right; font-family: var(--mono); color: var(--muted); font-size: 12px; }
.props-table tfoot td { padding-top: 10px; border-bottom: 0; }

/* Editor im Vollbild: nur die Transportleiste oben bleibt */
body.edmax .rail, body.edmax .view.work > :not(.editor) { display: none !important; }
body.edmax .app { grid-template-columns: minmax(0, 1fr); }
body.edmax main { padding-left: max(14px, env(safe-area-inset-left, 0px)); }
body.edmax .view.work { grid-template-columns: minmax(0, 1fr) !important; grid-template-areas: "edit" !important; grid-template-rows: minmax(0, 1fr) !important; }
.editor .ed-head { position: relative; }
#edMax { top: 0; right: 0; }
.planinfo .planlen button { padding: 3px 7px; font-size: 11.5px; }

/* Zeitleiste (Ablauf + Song-Plan): Abschnitte maßstabsgetreu, Minuten-Marken, Abspielposition */
.tlrow { display: flex; align-items: center; }
.tl { position: relative; flex: 1; height: 18px; border-radius: 4px; background: var(--bg); overflow: visible; cursor: pointer; margin-bottom: 10px; }
.tl[hidden] { display: none; }
.tlseg { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--c) 55%, var(--panel-2)); border-right: 1px solid var(--bg); }
.tlseg:first-child { border-radius: 4px 0 0 4px; } .tlseg:nth-last-child(1 of .tlseg) { border-radius: 0 4px 4px 0; border-right: 0; }
.tltick { position: absolute; top: 12px; bottom: -4px; width: 1px; background: color-mix(in srgb, var(--fg) 35%, transparent); pointer-events: none; }
.tltick.min { top: 0; background: color-mix(in srgb, var(--fg) 60%, transparent); }
.tltick.min::after { content: attr(data-l); }
.tltick { font-size: 9px; font-family: var(--mono); color: var(--muted); }
.tltick.min { text-indent: 3px; line-height: 44px; white-space: nowrap; }
.tlhead { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--brass); box-shadow: 0 0 0 1px var(--bg); pointer-events: none; }
.tlhead::before { content: ""; position: absolute; top: -4px; left: -4px; border: 5px solid transparent; border-top-color: var(--brass); }
.tltime { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; min-width: 92px; text-align: right; }
.tltime b { color: var(--brass); font-weight: 400; }
#planTl { cursor: default; height: 12px; margin: 0 0 12px; }
.planlen { display: flex; align-items: center; gap: 6px; }
.planlen .plv { border: 1px solid var(--line); background: var(--panel-2); color: var(--muted); border-radius: 4px; padding: 3px 7px; font-size: 11.5px; }
.planlen .plv[aria-pressed="true"] { background: color-mix(in srgb, var(--brass) 20%, var(--panel-2)); }
.planlen input[type=range] { width: 130px; accent-color: var(--muted); }
.planlen input[type=range].set { accent-color: var(--brass); }
.planlen output { font-family: var(--mono); font-size: 11.5px; color: var(--brass); min-width: 72px; }

/* Variante B der Rhythmus-Gitarre */
.varbar { display: inline-flex; align-items: center; gap: 6px; }
.varab button { min-width: 28px; font-family: var(--mono); }
.varab button[data-v="b"][aria-pressed="true"] { background: var(--brass); border-color: var(--brass); color: var(--bg); }
#varEvery { font-size: 12px; padding: 3px 5px; }
.paper.bmode { box-shadow: 0 0 0 3px var(--brass); }
/* „Variante B“ zeigt schon der gedrückte B-Knopf – keine zusätzliche Zeile, die Tabulatur springt nicht */
.bbadge { margin-left: 6px; padding: 0 3px; border-radius: 3px; font: 600 9px var(--mono); color: var(--brass); background: transparent; border: 1px solid color-mix(in srgb, var(--brass) 55%, transparent); vertical-align: 1px; }

/* Assistent: Schritt-Leiste anklickbar, Zusammenfassung auf der letzten Seite */
/* Assistent-Reiter: Leiste auf dunklem Grund, aktiver Reiter verschmilzt mit dem Fenster; alle Reiter gleich groß */
.wiz-tabs { padding: 6px 14px 0; background: var(--bg); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
.wiz-tabs::-webkit-scrollbar { display: none; }
.wiz-tabs > button { flex: none; white-space: nowrap; font-size: 12.5px; padding: 4px 11px !important; margin-bottom: -1px !important; background: var(--panel-2); }
.wiz-tabs > button[aria-pressed="true"] { background: var(--panel); color: var(--fg); }
.wiz-tabs > button.done:not([aria-pressed="true"]) { color: var(--fg); }
.gtrrows, .wboard { display: grid; gap: 8px; }
.gtrrow { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; align-items: center; }
.gtrrow[hidden] { display: none; }
.gl { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.gl svg { width: 15px; height: 15px; }
.gtrrow .seg { flex-wrap: wrap; }
.gtrrow .seg button { height: 30px; width: 88px; padding: 0; text-align: center; }
.wbrow { display: grid; grid-template-columns: 110px 130px minmax(0, 1fr) 70px 28px; gap: 8px; align-items: center; }
.wbped { display: flex; flex-wrap: wrap; gap: 4px; }
.wbped .mped { min-width: 44px; height: 26px; padding: 0 8px; border-radius: 5px; border: 1px solid var(--pc); background: transparent; color: var(--muted); font-size: 12px; }
.wbped .mped.on { background: color-mix(in srgb, var(--pc) 40%, var(--panel-2)); color: var(--fg); }
.wizsum { margin: 0 0 10px; padding: 8px 12px; border-radius: 6px; background: color-mix(in srgb, var(--brass) 12%, var(--panel-2)); font-size: 13px; color: var(--fg); }
.wizsum b { color: var(--brass); font-weight: 600; }
.wiz-step[data-st="plan"] .wiz-block, .wiz-step[data-st="band"] .wiz-block, .wiz-step[data-st="sound"] .wiz-block { margin-bottom: 10px; }

/* Editor: Titelleiste und Spur-Reiter stehen fest, nur die Tab-Seite (.trackpane) scrollt */
@media (min-width: 901px) {
  .editor { display: flex; flex-direction: column; gap: 10px; }
  .editor > .ed-head, .editor > .tracktabs { flex: none; }
  .editor > .trackpane { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; align-content: start;
    scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
}
/* Klang/Effekt der gewählten Spur sitzt rechts in der Spur-Werkzeugzeile */
.trackrow .tonebar { margin-left: auto; }

/* Schlagzeug-Reiter */
.trackpane.drums-mode > :not(#drumpane):not(.trackhelp) { display: none !important; }
.drumpane { display: grid; gap: 10px; }
.drumpane[hidden] { display: none; }
.drumpane .ctxrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dopts { display: inline-flex; gap: 6px; }
/* gleich große Knöpfe: feste Breite, Hervorhebung nur farblich */
.dopt { width: 132px; height: 28px; padding: 0 8px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); color: var(--muted); font-size: 12.5px; text-align: center; white-space: nowrap; }
.dopt[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 22%, var(--panel)); }
.dcym button, .dview button { width: 72px; height: 28px; padding: 0; text-align: center; font-size: 12.5px; }
.dgroove select { min-width: 210px; }
.dgrid { display: grid; border-radius: 6px; padding: 8px 10px; color: var(--schatten-braun-dunkel-2); }
.dgrid .dl { font: 600 10.5px var(--mono); color: var(--beschriftung); align-self: center; padding-right: 6px; white-space: nowrap; }
.dgrid .dn { font: 600 10px var(--mono); color: var(--schrift-braun-mittel-4); text-align: left; padding-left: 2px; height: 16px; }
.dgrid .dc { height: 24px; display: grid; place-items: center; border-top: 1px solid var(--rahmen-braun-weiss); }
.dgrid .dc.beat { box-shadow: inset 1px 0 0 var(--schatten-braun-weiss); }
.dgrid .dc.bar { box-shadow: inset 2px 0 0 var(--schatten-braun-dunkel-2); }
.dgrid .dc i { width: 62%; max-width: 14px; aspect-ratio: 1; border-radius: 50%; background: var(--flaeche-rot-mittel); }
.dgrid .now { background: var(--now); }

/* Übersicht: Auswahl der angezeigten Instrumente (gleich große Schalter, Hervorhebung nur farblich) */
.ovrow[hidden], .fbwrap .follow[hidden], .ovdrums[hidden] { display: none !important; }
.ovsel { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.ovsel button { width: 118px; height: 28px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 8px;
  border: 1px solid var(--line); border-radius: 5px; background: var(--panel); color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.ovsel button svg { width: 15px; height: 15px; }
.ovsel button[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 22%, var(--panel)); }
.ovsel button.lock { border-style: dashed; }
.ovsel button[hidden] { display: none; }
.ovdrums { margin-top: 2px; }
.ovsel button.empty { opacity: .55; }

/* Tabulatur: beide Takte direkt hintereinander in einer Zeile (wie Tab-Papier), Schlüssel nur einmal */
.paper { grid-template-columns: minmax(0, 1fr); }

.system .bnums { display: grid; grid-template-columns: 30px 1fr 1fr; font-family: var(--mono); font-size: 10px; color: var(--ton-aus); letter-spacing: .08em; text-transform: uppercase; }
.system .bnums span + span { padding-left: 3px; }
.system + .system { margin-top: 0; }

/* Editor-Titelleiste: feste Leiste, nichts wird abgeschnitten, alle Elemente gleich hoch und mittig */
@media (min-width: 901px) { .editor { overflow: clip; } }  /* clip statt hidden: kann auch per Fokus/Script nicht verrutschen */
.editor > .ed-head { position: static; top: auto; flex-wrap: nowrap; align-items: center; gap: 8px; }
.editor .ed-head { padding-right: 12px; }
.editor > .ed-head .part-in { height: 32px; flex: 0 1 220px; min-width: 90px; }
.editor > .ed-head #partType { height: 32px; }
.editor > .ed-head #appendPart, #edMax { height: 32px; }
#edMax { position: static; width: 32px; padding: 0; justify-content: center; flex: none; }
/* Übersicht: Drum-Raster exakt unter den Tab-Spalten (gleiche Ränder, 30-px-Kopfspalte wie der Tab-Schlüssel) */
.dgrid.ovdrums { padding: 8px 14px; border-radius: 4px; }
.dgrid.ovdrums .dl { font-size: 9px; padding-right: 2px; }

/* Knöpfe bleiben gleich groß: einheitliche Schriftstärke in jedem Zustand, feste Breite bei wechselndem Text */
button[aria-pressed], [role="tab"], .stylebtn, .path { font-weight: 500 !important; }
.ib.play { font-weight: 600 !important; }
#playBtn { width: 104px; justify-content: center; }
#loopBtn { width: 92px; justify-content: center; }
#loopBtn[aria-pressed="true"] { background: color-mix(in srgb, var(--brass) 22%, transparent); }
#kitPreview, #prPlay { min-width: 132px; justify-content: center; }
#wizNext { min-width: 200px; justify-content: center; }
.confirm { background: var(--accent) !important; border-color: var(--accent) !important; color: var(--weiss) !important; }

/* Akkorde im Papier-Tab */
.tcol .cnt.chn { justify-content: flex-start; overflow: visible; white-space: nowrap; font: 700 11px var(--mono); color: var(--ink); z-index: 1; }
.ts.chd > b { color: var(--schrift-blau-mittel); }
.ann .strum { font-style: normal; font-size: 11px; color: var(--ton-aus); display: block; text-align: center; line-height: 14px; }

/* Akkordfolgen-Baukasten (Rhythmus-Reiter) – feste Knopfgrößen, Hervorhebung nur farblich */
.chordpane { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.chordpane[hidden], #chordTog[hidden] { display: none; }
.chordpane .ctxrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
#chordTog { width: 104px; justify-content: center; }
#chordTog[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 22%, var(--panel-2)); }
.cpmode button, .cppower button, .cpper button { width: 78px; height: 28px; padding: 0; text-align: center; font-size: 12.5px; }
#cpKey { width: 64px; } #cpPreset { width: 210px; } #cpPat { width: 210px; } #cpCustom { width: 96px; }
.cppm { width: 64px; }
.cppal { display: inline-flex; flex-wrap: wrap; gap: 5px; }
.cpchip { width: 62px; height: 40px; display: grid; place-items: center; gap: 0; padding: 2px 0; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-2); color: var(--fg); cursor: grab; }
.cpchip b { font: 700 13px var(--mono); line-height: 1.1; }
.cpchip small { font-size: 9.5px; color: var(--muted); line-height: 1; }
.cpchip.sel { border-color: var(--brass); background: color-mix(in srgb, var(--brass) 25%, var(--panel-2)); }
.cpslots { display: grid; gap: 4px; }
.cpslot { height: 34px; border: 1px dashed var(--line); border-radius: 5px; background: var(--bg); color: var(--fg); font: 700 13px var(--mono); }
.cpslot.barstart { border-left: 3px solid var(--muted); }
@media (hover: hover) { .cpslot:hover{ border-color: var(--brass); } }
.cpstrum { display: grid; grid-template-columns: repeat(32, minmax(0, 1fr)); font: 600 12px var(--mono); color: var(--muted); text-align: center; }
.cpstrum span { border-left: 1px solid transparent; line-height: 18px; }
.cpstrum span.beat { border-left-color: var(--line); } .cpstrum span.bar { border-left: 2px solid var(--muted); }

/* Üben → Akkorde */
.view.practice.chords-mode .scaleonly, .view.practice.chords-mode .prboard, .view.practice.chords-mode .prtabwrap { display: none !important; }
.prchords[hidden] { display: none; }
.prchords { display: grid; gap: 14px; min-height: 0; overflow: hidden; }
.pcmain { display: grid; gap: 12px; align-content: start; overflow-y: auto; min-height: 0; }
.pchead b { font-size: 16px; } .pchead p { margin: 4px 0 0; }
#pcPat { width: 230px; } #pcPm { width: 64px; }
.pcdiag { display: flex; flex-wrap: wrap; gap: 10px; }
.pcch { width: 112px; padding: 6px; border-radius: 8px; background: var(--paper); border: 2px solid transparent; }
.pcch.now { border-color: var(--accent); }
.cdg { width: 100%; height: auto; display: block; }
.cdg .cdn { font: 700 12px var(--mono); fill: var(--ink); text-anchor: middle; }
.cdg .cdf { font: 600 9px var(--mono); fill: var(--ton-aus); }
.cdg .cdx { font: 700 9px var(--mono); fill: var(--ton-aus); text-anchor: middle; }
.cdg .cdo { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.cdg .fret, .cdg .str { stroke: var(--schrift-braun-mittel-4); stroke-width: 1; }
.cdg .nut { stroke: var(--ink); stroke-width: 3.5; }
.cdg .cdd, .cdg .cdb { fill: var(--flaeche-rot-mittel); }
.pcstrum { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); background: var(--paper); border-radius: 6px; padding: 8px; color: var(--ink); }
.pcs { display: grid; justify-items: center; gap: 2px; padding: 4px 0; border-left: 1px solid transparent; }
.pcs.beat { border-left-color: var(--schatten-braun-weiss); }
.pcs b { font-size: 22px; line-height: 26px; height: 26px; color: var(--flaeche-rot-mittel); }
.pcs small { font: 600 10px var(--mono); color: var(--schrift-braun-mittel-4); }
.pcs.now { background: var(--now); border-radius: 4px; }
.view.practice .prchords { flex: 1 1 auto; }
.cdg text, .cdg .cdd, .cdg .cdb { stroke: none; }
.cdg .cdn { font-size: 13px; }

/* Assistent: Song aus Akkorden */
.scmode button, .scpower button { width: 78px; height: 28px; padding: 0; text-align: center; }
#scKey { width: 64px; } #scPm { width: 110px; }
.scgrid { display: grid; gap: 6px 8px; align-items: center; }
.scgrid .tk { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.scgrid .tk::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.scgrid select { width: 100%; min-width: 0; font-size: 12.5px; }
.scseq { font: 600 12px var(--mono); color: var(--brass); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Stil je Songteil (Titelleiste) und je Teil (Assistent) */
.editor > .ed-head #partStyle { height: 32px; width: 200px; flex: none; }
#partStyle.own { border-color: var(--brass); color: var(--brass); }
.partstyles summary { cursor: pointer; display: flex; gap: 10px; align-items: baseline; }
.partstyles[open] summary { margin-bottom: 8px; }
.psgrid .tk { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.psgrid .tk::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.scgrid { grid-template-columns: minmax(84px, auto) 132px minmax(0, 1.3fr) 88px minmax(0, 1.2fr) minmax(0, 1fr); }
.scuse button { width: 66px; height: 28px; padding: 0; text-align: center; font-size: 12px; }
.scgrid select:disabled { opacity: .4; }
.scseq.off { color: var(--muted); font-weight: 400; }

/* Rig: Pedalboard, Verstärker, Box */
.view.rigview { display: flex; flex-direction: column; }

 #rigPopTr button{ display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 10px; }

#rigPopTr button { width: 40px; }
 #rigPopTr svg{ width: 16px; height: 16px; }
.rigtitle { margin: 0 0 0 6px; font-size: 15px; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
 .rigpop .sp{ flex: 1 1 auto; }

.rigstage { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.rigchain { position: relative; display: flex; align-items: flex-end;
  border-radius: 10px; background: repeating-linear-gradient(90deg, var(--flaeche) 0 3px, var(--flaeche-grau-dunkel) 3px 7px); border: 1px solid var(--line); }
.rigchain > * { position: relative; }
.rigchain > *:not(:last-child)::after { content: ""; position: absolute; top: 50%; height: 3px; background: var(--regler-strich); border-radius: 2px; box-shadow: 0 1px 0 var(--schatten-grau-dunkel-2); }
.rigchain .droph { align-self: center; }
.jack { align-self: center; display: inline-flex; align-items: center; background: var(--panel-2); border: 1px solid var(--line); font-size: 12px; color: var(--muted); }

/* Pedal: Gehäuse in Pedalfarbe, Regler oben, Name, Fußschalter mit LED */
.pedal { width: 118px; min-height: 178px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 8px 10px; border-radius: 9px;
  background: linear-gradient(170deg, color-mix(in srgb, var(--pc) 92%, var(--weiss)) 0%, var(--pc) 45%, color-mix(in srgb, var(--pc) 70%, var(--schwarz)) 100%);
  color: color-mix(in srgb, var(--pc) 10%, var(--schrift-grau-schwarz)); box-shadow: 0 4px 0 var(--regler-strich), 0 6px 14px rgba(0, 0, 0, .45); cursor: grab; user-select: none; }
.pedal.dragging { opacity: .4; }
.pedal.dropbefore { outline: 2px dashed var(--brass); outline-offset: 4px; }
.pedal .px { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; padding: 0; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .25); color: var(--weiss); opacity: 0; display: grid; place-items: center; }
.pedal .px svg { width: 12px; height: 12px; }
 .pedal .px.confirm{ opacity: 1; } @media (hover: hover) { .pedal:hover .px{ opacity: 1; } }
.pedal .px.confirm { background: var(--accent); }
.pedal.gone { width: 40px; padding: 10px 4px; background: transparent; border: 1px dashed color-mix(in srgb, var(--pc) 70%, var(--line)); box-shadow: none; justify-content: space-between; }
.pedal.gone .pname { writing-mode: vertical-rl; transform: rotate(180deg); color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; }
.pedal.gone .px { position: static; opacity: 1; background: var(--panel-2); color: var(--fg); }
@media (hover: hover) { .pedal.gone .px:hover{ background: var(--accent); } }
.rigpal.dropdel { outline: 2px dashed var(--accent); outline-offset: -2px; }
.pedal .knobs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; min-height: 52px; }
.pedal .pname { font-size: 12px; font-weight: 700; text-align: center; line-height: 1.15; margin-top: auto; }
.pedal .pname small { display: block; font-size: 10px; font-weight: 500; opacity: .8; }
.foot { width: 40px; height: 40px; border-radius: 50%; padding: 0; border: 2px solid var(--rahmen-grau-mittel); background: radial-gradient(circle at 40% 35%, var(--flaeche-grau-weiss), var(--flaeche-grau-hell) 60%, var(--farbe-grau-mittel)); position: relative; cursor: pointer; flex: none; }
.foot .led, .mped .led, .palped .led, .amp .led { width: 8px; height: 8px; border-radius: 50%; background: var(--flaeche-rot-dunkel); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .4); display: inline-block; flex: none; }
.foot .led { position: absolute; left: 50%; margin-left: -4px; }
.pedal.on .foot .led, .mped.on .led, .amp .led.on { background: var(--flaeche-rot-hell); box-shadow: 0 0 8px 2px rgba(255, 60, 60, .7); }
.pedal:not(.on) { filter: saturate(.55) brightness(.82); }
.pedal.ovr, .amp.ovr, .cab.ovr { outline: 2px solid var(--brass); outline-offset: 3px; }
/* Drehregler: 0–10 entspricht -135° … +135° */
.knob { display: grid; justify-items: center; gap: 2px; width: 46px; cursor: ns-resize; touch-action: none; }
.knob i { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, var(--flaeche-grau-dunkel-6), var(--flaeche-grau-dunkel-7) 70%); box-shadow: 0 2px 3px rgba(0, 0, 0, .5), inset 0 0 0 2px var(--schatten-grau-dunkel-5);
  transform: rotate(calc(-135deg + var(--v) * 27deg)); position: relative; }
.knob i::after { content: ""; position: absolute; left: 50%; top: 3px; width: 2px; height: 10px; margin-left: -1px; background: var(--flaeche-grau-weiss); border-radius: 1px; }
.knob b { font-size: 10px; font-weight: 600; line-height: 1; white-space: nowrap; }
.knob.ovr i { box-shadow: 0 0 0 2px var(--brass), 0 2px 3px rgba(0, 0, 0, .5); }

/* Vollbild: die Tabulatur bekommt alles, das Griffbrett bleibt unten in seiner natürlichen Höhe */
body.edmax .editor.tabfixed > .trackpane { flex: 1 1 auto; min-height: 0; }
body.edmax .editor.tabfixed > .trackpane > .tabdock { flex: 1 1 auto; min-height: 0; }
body.edmax .editor.tabfixed > .trackpane > .tabdock > .tabscroll { flex: 1 1 auto; min-height: 0; height: auto !important; }
body.edmax .editor.tabfixed > .fbwrap:not(.folded):not([hidden]) { flex: none; }

/* Titelleiste des Songteils einklappen (wie das Griffbrett): nur der Name und der Auf-/Zu-Knopf bleiben */
.ed-head.folded > :not(#partName):not(.edfold):not(#edMax) { display: none !important; }
.ed-head.folded { padding-top: 3px !important; padding-bottom: 3px !important; min-height: 0 !important; }
.ed-head.folded > #partName { padding-top: 0 !important; padding-bottom: 0 !important; box-sizing: border-box; }
.ed-head.folded > #partName, .ed-head.folded > .edfold, .ed-head.folded > #edMax { height: 24px !important; min-height: 0; }
.ed-head .edfold svg { transition: transform .15s; }
.ed-head.folded .edfold svg { transform: rotate(180deg); }

/* Spielen: die Titelleiste des Songteils entfällt (Bearbeiten gibt es nur beim Komponieren) */
body.wplay:not(.phone) .editor > .ed-head { display: none !important; }
/* Vollbild auch im Spielen-Modus: nur der Editor, die Zeilen füllen die ganze Höhe */
body.edmax.wplay:not(.phone) .view.work { grid-template-columns: minmax(0, 1fr) !important; grid-template-areas: "edit" !important; grid-template-rows: minmax(0, 1fr) !important; }
/* ==== static/css/07-rig-amp-setup.css ==== */
/* Verstärker-Topteil und Box */
.amp { width: 300px; min-height: 120px; display: flex; flex-direction: column; gap: 10px; padding: 10px 12px 12px; border-radius: 8px;
  background: linear-gradient(var(--flaeche-grau-dunkel-8), var(--flaeche-grau-dunkel-9)); border: 3px solid var(--regler-strich); box-shadow: inset 0 0 0 2px var(--schatten-braun-mittel-2), 0 6px 14px rgba(0, 0, 0, .5); color: var(--schrift-gold-weiss); }
.amp.aco { background: linear-gradient(var(--flaeche-braun-dunkel), var(--flaeche-orange-dunkel)); box-shadow: inset 0 0 0 2px var(--schatten-braun-hell), 0 6px 14px rgba(0, 0, 0, .5); }
.amprow { display: flex; align-items: center; gap: 8px; }
.ampic { width: 18px; height: 18px; color: var(--brass); flex: none; }
.gearsel { flex: 1 1 auto; min-width: 0; height: 28px; font-size: 12.5px; background: var(--flaeche-grau-schwarz); color: var(--schrift-gold-weiss-2); border: 1px solid var(--schatten-braun-mittel-2); }
.amp .knobs { display: flex; justify-content: space-between; padding: 8px 6px 2px; background: linear-gradient(var(--flaeche-gold-hell), var(--flaeche-gold-mittel)); border-radius: 4px; color: var(--schrift-braun-dunkel-5); }
.amp .knob i { background: radial-gradient(circle at 40% 35%, var(--flaeche-gold-weiss), var(--flaeche-gold-hell-2) 65%, var(--farbe-gold-mittel)); box-shadow: 0 2px 2px rgba(0, 0, 0, .45), inset 0 0 0 1px var(--schatten-braun-mittel-2); }
.amp .knob i::after { background: var(--schrift-braun-dunkel-5); }
.cab { width: 168px; min-height: 178px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px; border-radius: 6px;
  background: var(--flaeche-grau-schwarz-2); border: 3px solid var(--regler-strich); box-shadow: inset 0 0 0 2px var(--schatten-grau-dunkel-6), 0 6px 14px rgba(0, 0, 0, .5); color: var(--schrift-gold-weiss); }
.cab .gearsel { width: 100%; flex: none; }
.cab .grille { width: 100%; flex: 1 1 auto; min-height: 70px; border-radius: 3px; background: repeating-linear-gradient(45deg, var(--schatten-grau-dunkel-6) 0 2px, var(--flaeche-tief) 2px 5px), var(--flaeche-tief); box-shadow: inset 0 0 0 1px var(--schatten-grau-dunkel-2); }
.cab .knob i { width: 24px; height: 24px; }
/* Palette */

.rigpal { display: flex; flex-wrap: wrap; gap: 8px; }
.palped, .mped { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px; width: 86px; padding: 0 8px; border-radius: 6px; border: 1px solid color-mix(in srgb, var(--pc) 60%, var(--schwarz));
  background: color-mix(in srgb, var(--pc) 28%, var(--panel)); color: var(--fg); font-size: 12px; font-weight: 500; cursor: grab; }
.palped .led { background: var(--pc); box-shadow: none; }
/* Mini-Board in der Spur-Leiste des Editors */
.tonebar { align-items: center; }
.mped { width: 70px; height: 28px; cursor: pointer; padding: 0 6px; font-size: 11.5px; }
.mped:not(.on) { background: var(--panel-2); border-color: var(--line); color: var(--muted); }
.mped.ovr, .ampmini.ovr, #rigOpen.ovr { border-color: var(--brass); }
.ampmini { width: 92px; height: 28px; font-size: 12px; }
/* Dialog: Board eines Songteils */
dialog.rigpop { width: min(1240px, calc(100vw - 32px)); max-height: calc(100vh - 40px); padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--fg); display: none; }
dialog.rigpop[open] { display: flex; flex-direction: column; }
dialog.rigpop::backdrop { background: rgba(0, 0, 0, .55); }
dialog.rigpop .rigchain { margin: 14px; overflow-y: auto; }
dialog.rigpop .pedal { cursor: default; }
#rigPopReset, #rigPopBoard { width: 128px; justify-content: center; }
/* Rig: Titel als eigene Zeile über dem Board, schmale Buchsen (kein Umbruch nur für „Mischpult“), LED mit Abstand zum Namen */
.rigstage .rigtitle { margin: 0; flex: none; }
.jack { writing-mode: vertical-rl; height: auto; padding: 10px 0; width: 26px; justify-content: center; border-radius: 13px; }

.rigchain > *:not(:last-child)::after { right: -17px; width: 16px; }
.pedal .pname { margin-bottom: 10px; }
.foot .led { top: -12px; }
/* Rig: Songteile mit Abweichungen */
.rigparts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rigparts .eyebrow { width: 100%; }
.rigpart { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px 0 10px; border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 6px; background: var(--panel-2); color: var(--fg); cursor: pointer; }
@media (hover: hover) { .rigpart:hover{ border-color: var(--brass); border-left-color: var(--c); } }
.rpname { font-size: 13px; max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rpamp { font: 600 11px var(--mono); color: var(--muted); padding: 2px 6px; border: 1px solid var(--line); border-radius: 4px; }
.rpamp.ovr { color: var(--brass); border-color: var(--brass); }
.rpped { display: inline-flex; gap: 4px; }
.rpped .mped { width: auto; height: 24px; padding: 0 6px; font-size: 11px; cursor: pointer; }
.rpgo { width: 14px; height: 14px; color: var(--muted); }
.trackrow.voconly > :not(#toneBar) { display: none !important; }
.trackrow.voconly #toneBar .divider { display: none; }
/* Rig in drei Reihen: Eingang, Amp & Box, FX-Loop */
.rigchain { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; padding: 6px 14px; min-height: 0; }
.rigchain > *::after { display: none; }
.rigrow { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px 16px; position: relative; min-height: 96px; }
.rigrow + .rigrow { border-top: 1px dashed var(--schatten-grau-dunkel-2); }
.rigrow > *:not(:last-child):not(.rowlab)::after { content: ""; position: absolute; right: -17px; top: 50%; width: 16px; height: 3px; background: var(--regler-strich); border-radius: 2px; box-shadow: 0 1px 0 var(--schatten-grau-dunkel-2); }
.rigrow > * { position: relative; }
.rowlab { position: absolute !important; left: 0; top: 50%; transform: translateY(-50%); width: 80px; font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--brass); }

.rigrow .droph { padding: 0 6px; }
.rigrow .jack { height: auto; }
.rigrow.dropzone { background: color-mix(in srgb, var(--brass) 8%, transparent); }
/* IR-Bibliothek */
.irlib { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.irlib.dropzone { outline: 2px dashed var(--brass); outline-offset: -4px; }
.irlist { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 auto; min-width: 0; }
.irit { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-2); color: var(--fg); font-size: 12.5px; cursor: pointer; }
.irit svg { width: 14px; height: 14px; color: var(--brass); }
.irit small { color: var(--muted); font-size: 10.5px; }
.irit.cur { border-color: var(--brass); background: color-mix(in srgb, var(--brass) 18%, var(--panel-2)); }
.irit .irn { max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.irsrc { font-size: 10.5px; color: var(--steel); }
.irx { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; }
.irx svg { width: 11px; height: 11px; color: var(--muted); }
.irx.confirm { background: var(--accent); } .irx.confirm svg { color: var(--weiss); }
.irimp { height: 32px; width: 150px; justify-content: center; cursor: pointer; }
/* Ablauf: Titelleiste jedes Abschnitts in derselben Farbe wie sein Balken in der Zeitleiste */
.arr .card { border-top: 1px solid var(--line); padding-top: 0; overflow: hidden; }
.arr .card .cn { margin: 0 -7px; background: color-mix(in srgb, var(--c) 55%, var(--panel-2)); color: var(--weiss); text-shadow: 0 1px 1px rgba(0, 0, 0, .35); }
.arr .card .cn::before { color: rgba(255, 255, 255, .75); }
.arr .card.sel .cn { box-shadow: inset 0 -2px 0 var(--brass); }
/* Teil-Farbe muss die Grundfarbe von .card schlagen (gleiche Spezifität, .card stand später) */
.card[data-t="intro"], .libitem[data-t="intro"] { --c: var(--t-intro); } .card[data-t="verse"], .libitem[data-t="verse"] { --c: var(--t-verse); }
.card[data-t="pre"], .libitem[data-t="pre"] { --c: var(--t-pre); } .card[data-t="chorus"], .libitem[data-t="chorus"] { --c: var(--t-chorus); }
.card[data-t="bridge"], .libitem[data-t="bridge"] { --c: var(--t-bridge); } .card[data-t="breakdown"], .libitem[data-t="breakdown"] { --c: var(--t-breakdown); }
.card[data-t="solo"], .libitem[data-t="solo"] { --c: var(--t-solo); } .card[data-t="outro"], .libitem[data-t="outro"] { --c: var(--t-outro); }
/* Hall-Pedal: Raumwahl */
.pedal .roomsel { width: 100%; height: 22px; font-size: 10.5px; padding: 0 2px; background: rgba(0, 0, 0, .35); color: var(--weiss); border: 1px solid rgba(0, 0, 0, .4); border-radius: 3px; }
.pedal .roomsel.ovr { border-color: var(--brass); }
/* Rig: Reihen nie zusammendrücken (Box scrollt stattdessen), Amp + Box in der Mitte */
.rigstage > * { flex: none; }
.rigchain, .rigrow { flex: none; }
.rigrow[data-row="amp"] { min-height: 150px; }
.rigrow .cab { min-height: 150px; }
.rigrow .cab .grille { min-height: 60px; }
.rigparts { padding-top: 4px; }
/* Setup: Board links über die volle Höhe, Pedale und IRs rechts in einer Spalte (Breite nutzen statt stapeln) */
@media (min-width: 1000px) {

  .rigview .rigstage { min-height: 0; }
  .rigview #rigPalBox { grid-area: pal; flex-direction: column; align-items: stretch; }
  .rigview #irLib { grid-area: ir; flex-direction: column; align-items: stretch; flex-wrap: nowrap; min-height: 0; overflow-y: auto; }
  .rigview #irLib[hidden] { display: none; }
  .rigview .rigpal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .rigview .palped { width: auto; }
  .rigview .irlist { flex-direction: column; flex-wrap: nowrap; }
  .rigview .irit { width: 100%; }
  .rigview .irit .irn { flex: 1 1 auto; text-align: left; max-width: none; }
  .rigview .irimp { width: 100%; }
}
.rigrow { padding: 10px 0 10px 92px; }
.rigstage .rigtitle { font-size: 17px; line-height: 1.2; }
/* Setup: Board links, angedockter Einstellungs-Streifen rechts (einklappbar) */
@media (min-width: 1000px) {
  .view.rigview:not([hidden]) { display: grid; grid-template-rows: minmax(0, 1fr); gap: 12px; }
  .rigview .rigstage { grid-area: stage; }
  .rigview .rigdock { grid-area: dock; }
}
.rigdock { display: flex; flex-direction: column; min-height: 0; padding: 0; }
.rigdock .dockbody { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 40px 12px 12px; }
.docksec { display: flex; flex-direction: column; gap: 6px; }
.docksec[hidden] { display: none; }
.docksec .seg { display: grid; grid-template-columns: 1fr 1fr; }
.docksec .seg button { width: auto !important; height: 30px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 6px; border-bottom: 1px solid var(--line); }
.docksec .seg button svg { width: 15px; height: 15px; }
.dockrow { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dockrow .ib { width: auto !important; height: 30px; justify-content: center; }

.zoomval { font: 600 12px var(--mono); text-align: center; color: var(--muted); }
.rigdock .palped { width: auto; }
.rigdock .irlist { display: flex; flex-direction: column; gap: 6px; }

.rigdock .irimp { width: 100%; justify-content: center; height: 30px; }
.rigview .rigstage { overflow: auto; }
/* Zoom-Bedienung (Ablauf) */
.zoombox { display: inline-flex; align-items: center; gap: 2px; }
.zoombox .ib { width: 26px; height: 26px; padding: 0; justify-content: center; }
.zoombox .ib span { font-size: 15px; line-height: 1; }
.zoombox .ib svg { width: 13px; height: 13px; }
.zoombox .zoomval { width: 44px; }
.songbar.folded .zoombox { display: none; }
/* Vollbild-Editor: Mini-Zeitleiste oben rechts in der Titelleiste */
.ed-head .edtl { display: none; }
body.edmax .ed-head .edtl { display: inline-flex; align-items: center; gap: 8px; width: min(520px, 38vw); flex: none; }
.ed-head .edtl .tl { height: 14px; margin: 0; flex: 1 1 auto; }
.ed-head .edtl .tltick { display: none; }
.ed-head .edtl .tltime { min-width: 84px; font-size: 11px; }

/* ==== static/css/08-griffbrett-holz-songansicht-techniken.css ==== */
/* =====================================================================
   Griffbrett als dunkles Palisander-Holz: Maserung, Neusilber-Bundstäbchen, glänzende Saiten,
   helles Binding oben und unten (gilt für Editor- und Üben-Griffbrett)
   ===================================================================== */
.fb button.fr:not(.nut) {
  background-color: var(--flaeche-braun-dunkel-2);
  background-image:
    repeating-linear-gradient(180deg, rgba(255, 220, 190, .035) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(178deg, rgba(0, 0, 0, .18) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, var(--farbe-braun-dunkel-2) 0%, var(--farbe-braun-dunkel-3) 35%, var(--farbe-braun-dunkel-4) 60%, var(--farbe-braun-dunkel) 100%);
  background-attachment: fixed;  /* Maserung läuft über alle Felder durch */
  border-right: 3px solid var(--rahmen-sand-hell); box-shadow: inset -1px 0 0 var(--schatten-braun-mittel-3), inset 1px 0 0 rgba(0, 0, 0, .35);
}
.fb button.fr::before { background: linear-gradient(180deg, var(--flaeche-gold-weiss-2), var(--flaeche-sand-hell) 60%, var(--farbe-braun-mittel-2)); box-shadow: 0 1px 1px rgba(0, 0, 0, .65); }
.fb button.fr.nut::before { box-shadow: none; }
/* Binding: helle Kante oben (hohe Saite) und unten (tiefe Saite) */
.fb button.fr.top { border-top: 3px solid var(--bund-kante); box-shadow: inset -1px 0 0 var(--schatten-braun-mittel-3), inset 0 1px 0 rgba(0, 0, 0, .4); }
.fb button.fr.bot { border-bottom: 3px solid var(--bund-kante); box-shadow: inset -1px 0 0 var(--schatten-braun-mittel-3), inset 0 -1px 0 rgba(0, 0, 0, .4); }
.fb button.fr.nut.top { border-top: 3px solid var(--bund-kante); } .fb button.fr.nut.bot { border-bottom: 3px solid var(--bund-kante); }
.fb button.fr.top, .fb button.fr.bot { height: 30px; }
.fb > button.fr.top:last-of-type, .fb button.fr.top[data-f="15"] { border-top-right-radius: 3px; }
.fb button.fr[data-f="15"].bot { border-bottom-right-radius: 3px; }
/* Töne auf dunklem Holz gut lesbar */
.fb button.fr .dot { background: rgba(24, 17, 14, .88); border-color: var(--rahmen-braun-mittel-2); color: var(--schrift-braun-weiss); }  /* niedrige Spezifität: Sattel, Grundton, Treffer gewinnen */
.fb button.fr.inl::after { background: radial-gradient(circle at 35% 35%, var(--flaeche-gold-weiss-3), var(--flaeche-braun-hell) 55%, var(--farbe-braun-hell)); }

/* Usability-Runde: Speicher-Anzeige, Tastenkürzel-Dialog, Fokus im Kontextmenü, Transport-Undo */

#undo, #redo { width: 34px; height: 34px; padding: 0; justify-content: center; }
dialog.keysdlg { width: min(860px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--fg); }
dialog.keysdlg::backdrop { background: rgba(0, 0, 0, .55); }
.keysdlg .keygrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 22px; padding: 16px 18px 20px; font-size: 13px; }
.keysdlg .keygrid b { grid-column: 1 / -1; margin-top: 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--brass); font-weight: 600; }
.keysdlg kbd { font: 600 11px var(--mono); padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; background: var(--panel-2); }
.ctxmenu button:focus-visible { outline: 2px solid var(--brass); outline-offset: -2px; }
/* Eigenschaften: Name-Spalte bleibt beim Querscrollen stehen */
.props-table th:first-child, .props-table td:first-child { position: sticky; left: 0; z-index: 1; background: var(--panel); box-shadow: 1px 0 0 var(--line); }
.props-table thead th:first-child { z-index: 2; }
.props-table tr.cur td:first-child { background: color-mix(in srgb, var(--brass) 10%, var(--panel)); }
/* Assistent: feste Höhe, damit „Weiter“ beim Blättern an derselben Stelle bleibt */

#scPm:disabled { opacity: .4; }
body.practicing #playBtn, body.practicing #loopBtn, body.practicing #transport .f { opacity: .35; pointer-events: none; }
#rigPopPlay { width: 120px; justify-content: center; }
#rigPopPlay.playing { background: var(--fg); color: var(--bg); }

.mixpop .mixreset { justify-self: end; }

/* Song-Plan: schmale Blöcke zeigen Kurznamen statt abgeschnittener Wörter */
.planblk { container-type: inline-size; }
@container (max-width: 112px) { .planblk .pn { font-size: 0; } .planblk .pn::before { content: attr(data-short); font-size: 12.5px; } }
/* Stil-Baukasten: Bands je Subgenre einklappbar, Alben auf Klick */
.bandgrp > summary { cursor: pointer; list-style: none; }
.bandgrp > summary::-webkit-details-marker { display: none; }
.bandgrp > summary .eyebrow::before { content: "▸ "; } .bandgrp[open] > summary .eyebrow::before { content: "▾ "; }
.ingmore { border: 1px dashed var(--line); background: transparent; color: var(--muted); font-size: 11px; padding: 2px 8px; border-radius: 10px; }
@media (hover: hover) { .ingmore:hover{ color: var(--fg); border-color: var(--brass); } }

/* Grafik-EQ: breiteres Pedal, Bänderwahl, senkrechte Schieberegler (−12 … +12 dB, Mitte = 0) */
.pedal.geq { width: calc(70px + var(--nb, 7) * 22px); }
.geqhead { display: flex; align-items: center; gap: 4px; width: 100%; }
.geqn { display: inline-flex; border: 1px solid rgba(0, 0, 0, .35); border-radius: 4px; overflow: hidden; flex: none; }
.geqn button { width: 22px; height: 20px; padding: 0; border: 0; background: rgba(0, 0, 0, .12); color: var(--schrift-grau-dunkel); font: 600 10px var(--mono); }
.geqn button[aria-pressed="true"] { background: var(--schrift-grau-dunkel); color: var(--schrift-grau-weiss); }
.geqpre { flex: 1 1 auto; min-width: 0; height: 20px; font-size: 10px; padding: 0 2px; background: rgba(0, 0, 0, .12); border: 1px solid rgba(0, 0, 0, .3); color: var(--schrift-grau-dunkel); }
.geqbands { display: flex; justify-content: space-between; gap: 2px; width: 100%; padding: 4px 2px 0; background: repeating-linear-gradient(180deg, transparent 0 13px, rgba(0, 0, 0, .12) 13px 14px); }
.knob.fader { width: 20px; gap: 3px; }
.knob.fader i { width: 6px; height: 74px; border-radius: 3px; background: var(--schatten-grau-dunkel-5); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6); transform: none; position: relative; }
.knob.fader i::after { left: -6px; width: 18px; height: 8px; margin: 0; border-radius: 2px; background: linear-gradient(var(--flaeche-grau-weiss), var(--flaeche-grau-hell)); box-shadow: 0 1px 2px rgba(0, 0, 0, .6);
  top: calc((10 - var(--v)) / 10 * 66px); }
.knob.fader b { font-size: 8.5px; color: var(--rahmen-grau-dunkel); }
.knob.fader.ovr i { box-shadow: 0 0 0 2px var(--brass); }
.pedal.geq .knobs { min-height: 0; }
/* Setup: Instrument-/Kit-Wahl (echte Samples) */
.riginst { display: flex; flex-direction: column; flex: none; }
.instopts { display: flex; flex-wrap: wrap; gap: 8px; }
.instopts button { width: 270px; min-height: 56px; display: grid; align-content: center; justify-items: start; gap: 2px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); color: var(--fg); text-align: left; }
.instopts button b { font-size: 13.5px; font-weight: 500; }
.instopts button small { font-size: 11px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }  /* lange Beschreibung: höchstens 2 Zeilen, Rest im Tooltip */
.instopts button[aria-pressed="true"] { background: color-mix(in srgb, var(--brass) 16%, var(--panel-2)); }

.drummix { display: flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); width: max-content; max-width: 100%; }
.drummix .knob { width: 54px; }
.drummix .knob b { color: var(--muted); }
.drummix .knob[data-k="room"] { margin-left: 10px; padding-left: 14px; border-left: 1px solid var(--line); width: 68px; }
/* Setup: Einstellungs-Streifen links, Board rechts; Zoom im Board-Kopf wie im Ablauf */
@media (min-width: 1000px) {
  .view.rigview:not([hidden]) { grid-template-columns: 286px minmax(0, 1fr); grid-template-areas: "dock stage"; }
}
.righead { display: flex; align-items: center; gap: 10px; flex: none; }
.righead .rigtitle { min-width: 0; }
/* Schlagzeug-Mischung: senkrechte Schieberegler mit Zahlenwert */
.drummix { align-items: flex-end; gap: 4px 18px; padding: 12px 16px 10px; }
  /* 0-dB-Marke */
/* Stile umsortieren */
#kitMine .kititem { cursor: grab; }
#kitMine .kititem.dragging { opacity: .4; }
#kitMine .kititem.dropbefore { box-shadow: 0 -3px 0 var(--brass); }
#kitMine .kitgrp.dropzone { color: var(--brass); outline: 1px dashed var(--brass); outline-offset: 3px; }

/* Setup: Einstellungs-Spalte klappt wie die Songteile-Spalte der Werkstatt (Griff am rechten Rand) */
.rigdock { position: relative; overflow: visible; }
.rigdock .dockbody { padding-top: 12px; }
@media (hover: hover) { .rigdock:hover .foldedge{ opacity: 1; } }
@media (min-width: 1000px) {
  .view.rigview.dock-folded:not([hidden]) { grid-template-columns: 30px minmax(0, 1fr); }
  .rigdock.folded { padding: 0; }
  .rigdock.folded > :not(.foldedge) { display: none !important; }
  .rigdock.folded .foldedge { position: static; transform: none; opacity: 1; width: 100%; height: 100%; border: 0; border-radius: inherit; background: transparent;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px; padding-top: 12px; }
  @media (hover: hover) { .rigdock.folded .foldedge:hover{ background: var(--panel-2); } }
  .rigdock.folded .foldedge svg { transform: rotate(-90deg); }
  .rigdock.folded .foldedge span { display: block; writing-mode: vertical-rl; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
}
/* Spaltenbreite ziehen (Songteile / Setup-Einstellungen) */
.view.work, .view.rigview { position: relative; }
.colgrip { position: absolute; width: 8px; cursor: col-resize; z-index: 5; border-radius: 4px; }
.colgrip[hidden] { display: none; }
body.colresizing, body.colresizing * { cursor: col-resize !important; user-select: none; }
 .colgrip.dragging{ background: color-mix(in srgb, var(--brass) 35%, transparent); } @media (hover: hover) { .colgrip:hover{ background: color-mix(in srgb, var(--brass) 35%, transparent); } }
@media (min-width: 1000px) {
  .view.rigview.custom-rigdock:not([hidden]):not(.dock-folded) { grid-template-columns: var(--dockw) minmax(0, 1fr); }
}
@media (max-width: 900px) { .colgrip { display: none; } }
/* Zeitleiste im Ablauf skaliert mit dem Zoom (nur kleiner) */
.tlrow #songTl { height: calc(18px * var(--tlz, 1)); }
.tlrow #songTl .tltick.min { line-height: calc(44px * var(--tlz, 1)); font-size: calc(9px * max(var(--tlz, 1), .8)); }
.tlrow .tltime { font-size: calc(12px * max(var(--tlz, 1), .8)); }

/* =====================================================================
   Song-Ansicht: ganzer Ablauf als durchgehende Tabulatur
   ===================================================================== */
.sblk { border-left: 4px solid var(--c, var(--line)); padding: 4px 0 6px 10px; margin-bottom: 14px; border-radius: 0 6px 6px 0; transition: background .2s; }
.sblk > header { display: flex; align-items: baseline; gap: 10px; padding: 2px 0 6px; font-size: 13px; color: var(--muted); }
.sblk > header b { font-family: var(--display); font-size: 17px; text-transform: uppercase; letter-spacing: .02em; color: var(--fg); font-weight: 700; }
.sblk > header .sv-reps { font-family: var(--mono); color: var(--brass); }
.sblk > header .sv-pos { font-family: var(--mono); font-size: 11.5px; }
.sblk > header i { font-style: normal; font-size: 11.5px; opacity: .75; }
.sblk.cur > header b { color: var(--brass); }
.sblk.sel { background: color-mix(in srgb, var(--brass) 6%, transparent); }
.sblk .system + .system { margin-top: 6px; }
.sblk .system.ro { opacity: .62; }
.sblk .system.ro .ts { cursor: default; }
.sv-empty { padding: 20px; }

/* =====================================================================
   Spieltechniken: Leiste im Editor und Zeichen im Tab
   ===================================================================== */
.techbar { display: inline-flex; gap: 2px; }
.techbar button { min-width: 28px; height: 28px; padding: 0 6px; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: var(--muted);
  font-family: var(--mono); font-size: 12px; font-weight: 600; cursor: pointer; }
@media (hover: hover) { .techbar button:hover{ color: var(--fg); border-color: var(--muted); } }
.techbar button[aria-pressed="true"] { background: color-mix(in srgb, var(--brass) 30%, var(--panel-2)); }
.techbar button.brush { border-style: dashed; }
.ts b .tqx { font-style: normal; font-size: .72em; font-weight: 700; color: var(--schrift-orange-dunkel); letter-spacing: -.02em; }
.ts.tq b { padding: 0 1px; }

/* Taktarten: Spaltenzahl je Songteil (2 Takte × Schritte je Takt) */
.staff { grid-template-columns: 30px repeat(var(--cols, 32), minmax(0, 1fr)); }
.dgrid { grid-template-columns: 72px repeat(var(--cols, 32), minmax(0, 1fr)); }
.dgrid.ovdrums { grid-template-columns: 30px repeat(var(--cols, 32), minmax(0, 1fr)); }
/* Tempo und Taktart je Abschnitt im Ablauf */
.arr .card .bc .bpmb { font-family: var(--mono); font-size: 10.5px; padding: 0 4px; color: var(--muted); }
.arr .card .bc .bpmb.own { color: var(--brass); font-weight: 700; }
.arr .card .bc .mtrb { font-family: var(--mono); font-size: 10.5px; color: var(--brass); padding: 0 3px; }
.arr .card .bc .bpmin { width: 52px; font-size: 11px; padding: 1px 3px; }
#partBars, #partMeter, #partFeel { font-size: 13px; }

/* Erfinden im Editor: Takt wählen + Aktionen */
.inventbar { display: inline-flex; align-items: center; gap: 3px; }
.inventbar button { display: inline-flex; align-items: center; gap: 4px; height: 28px; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: var(--fg); font-size: 12px; cursor: pointer; }
.inventbar button svg { width: 13px; height: 13px; }
.inventbar button[data-bar] { min-width: 26px; justify-content: center; font-family: var(--mono); }
.inventbar button[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 25%, var(--panel-2)); border-color: var(--accent); }
.inventbar button:disabled { opacity: .4; cursor: default; }
.system .bnums .bnb { all: unset; cursor: pointer; padding-left: 3px; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; }
@media (hover: hover) { .system .bnums .bnb:hover{ color: var(--schwarz); text-decoration: underline; } }
.system .bnums .bnb.sel { color: var(--schrift-rot-mittel); font-weight: 700; }
.tcol.insel { background-color: rgba(214, 60, 74, .08); }

/* Songform lernen */
.formlearn .row input[type="text"] { flex: 1 1 200px; min-width: 0; }
.fblocks { display: flex; gap: 2px; width: 100%; min-height: 34px; }
.fblk { display: flex; flex-direction: column; justify-content: center; min-width: 0; overflow: hidden; padding: 2px 4px; border-radius: 3px;
  background: color-mix(in srgb, var(--c, var(--line)) 35%, var(--panel-2)); border-top: 3px solid var(--c, var(--line)); font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.fblk small { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.formfiles { margin: 4px 0 0; padding-left: 18px; font-size: 12px; color: var(--muted); }
.formitem { position: relative; display: grid; gap: 4px; padding: 8px 34px 8px 10px; border: 1px solid var(--line); border-radius: 6px; margin-top: 6px; }
.formitem .del { position: absolute; top: 6px; right: 6px; border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 5px; cursor: pointer; font-size: 12px; padding: 2px 6px; }

/* Tasten (Klavier, Orgel, Synth, Streicher) */
:root { --tr-keys: var(--farbe-lila-hell-2); }
 .mm[data-k="keys"], .mixer [data-k="keys"], .lane[data-k="keys"]{ --tc: var(--tr-keys); }
.keysrow { background: color-mix(in srgb, var(--tr-keys) 12%, var(--panel-2)); }
.staff.keys { --tc: var(--tr-keys); }
.staff.keys .clef { font-size: 8.5px; }
.staff.keys .clef .vr.root { color: var(--pc-ink); font-weight: 700; }
.staff.keys .clef .vr.c { color: var(--ink); }
.ts.ks::before { background: var(--flaeche-lila-weiss-2); }
.ts.ks.blk::before { background: var(--flaeche-lila-weiss-3); }
.ts.ks > b { background: var(--tr-keys); border-radius: 3px; width: 100%; height: 9px; display: block; }
.ts.ks.ring::after { background: color-mix(in srgb, var(--tr-keys) 45%, var(--weiss)); height: 4px; }
.staff.keys .tcol.bar0::before, .staff.keys::after, .staff.keys .tcol.beat::after { display: none; }
#kChord[aria-pressed="true"] { background: color-mix(in srgb, var(--tr-keys) 35%, var(--panel)); }

/* DJ (Scratches) */
:root { --tr-dj: var(--farbe-orange-hell); }
 .mm[data-k="dj"], .mixer [data-k="dj"], .lane[data-k="dj"]{ --tc: var(--tr-dj); }
.djrow { background: color-mix(in srgb, var(--tr-dj) 12%, var(--panel-2)); }
.staff.djs { --tc: var(--tr-dj); }
.staff.djs .clef { font-size: 8.5px; }
.ts.jss::before { background: var(--flaeche-gold-weiss-4); }
.ts.jss > b { background: var(--tr-dj); color: var(--ink); border-radius: 4px; font-size: 9px; line-height: 11px; min-width: 14px; text-align: center; }
.ts.jss.ring::after { background: color-mix(in srgb, var(--tr-dj) 45%, var(--weiss)); height: 4px; }
.staff.djs .tcol.bar0::before, .staff.djs::after, .staff.djs .tcol.beat::after { display: none; }

/* Anspruch (Schwierigkeit) */
.lvseg button { min-width: 0; }
.planblk .plvl { border: 0; background: transparent; color: var(--muted); border-radius: 9px; padding: 1px 5px; font-family: var(--mono); font-size: 11px; cursor: pointer; }
.planblk .plvl.set { background: color-mix(in srgb, var(--brass) 40%, transparent); color: var(--fg); }

/* Sprache und „Über“-Fenster */
dialog.aboutdlg { width: min(920px, calc(100vw - 32px)); }
.aboutbody { padding: 14px 20px 22px; font-size: 13px; line-height: 1.5; max-height: calc(100vh - 140px); overflow: auto; }
.aboutbody h3 { margin: 16px 0 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--brass); }
.aboutbody ul { margin: 0; padding-left: 18px; }
.aboutbody li { margin: 3px 0; }
.aboutbody a { color: var(--fg); }
.aboutbody .lic { font: 600 11px var(--mono); color: var(--muted); white-space: nowrap; }
.aboutbody .lead { font-size: 14px; color: var(--fg); margin: 0 0 6px; }
#setFemStat[aria-pressed="true"] { background: color-mix(in srgb, var(--brass) 30%, var(--panel-2)); }
#setFem:disabled { opacity: .4; }


/* ----- Spieltechniken beim Abspielen (static/js/10-griffbrett.js fbFx): Bewegung über translate/rotate, damit die Vergrößerung
   des getroffenen Punkts (transform: scale) bleibt. Beschriftung als kleines Zeichen oben rechts am Punkt. ----- */
.fb button.fr[data-tq] .dot { position: relative; }
.fb button.fr[data-tq] .dot::after { position: absolute; top: -9px; right: -9px; font: 700 9px/1 var(--mono); color: var(--fg); background: var(--panel, var(--schrift-grau-dunkel));
  border: 1px solid var(--line); border-radius: 6px; padding: 1px 2px; pointer-events: none; z-index: 3; }
.fb button.fr[data-tq="b"] .dot { animation: fbBend .16s ease-out .05s both; }
.fb button.fr[data-tq="b"] .dot::after { content: "↑"; }
.fb button.fr[data-tq="r"] .dot { animation: fbBendRel .5s ease-in-out .05s both; }
.fb button.fr[data-tq="r"] .dot::after { content: "↑↓"; }
.fb button.fr[data-tq="v"] .dot, .fb button.fr.vbalso .dot { animation: fbVib .18s ease-in-out .1s infinite alternate; }
.fb button.fr[data-tq="s"] .dot { z-index: 4; }  /* nur der gleitende Punkt liegt vorn (das ganze Bundfeld vorn überdeckte die Umrandung der Übungsform) */
.fb button.fr[data-tq="s"] .dot { animation: fbSlide .22s cubic-bezier(.45, 0, .25, 1) both; box-shadow: 0 0 8px 2px color-mix(in srgb, var(--fg) 35%, transparent); }
.fb button.fr[data-tq="s"] .dot::after { content: "/"; }
.fb button.fr[data-tq="h"] .dot, .fb button.fr[data-tq="o"] .dot { box-shadow: 0 0 0 3px color-mix(in srgb, var(--fg) 30%, transparent); }
.fb button.fr[data-tq="h"] .dot::after { content: "h"; }
.fb button.fr[data-tq="o"] .dot::after { content: "p"; }
.fb button.fr[data-tq="q"] .dot { box-shadow: 0 0 0 3px var(--accent); animation: fbTap .14s ease-out both; }
.fb button.fr[data-tq="q"] .dot::after { content: "T"; color: var(--accent); }
.fb button.fr[data-tq="l"] .dot::after { content: "tr"; }
.fb button.fr.trillto .dot { opacity: 1; animation: fbTrill .133s steps(1) infinite; border-color: var(--fg); }
.fb button.fr[data-tq="n"] .dot { border-radius: 3px; rotate: 45deg; }
.fb button.fr[data-tq="n"] .dot > * { rotate: -45deg; }
.fb button.fr[data-tq="p"] .dot { animation: fbPinch .3s ease-out both; }
.fb button.fr[data-tq="p"] .dot::after { content: "PH"; }
@keyframes fbBend { from { translate: 0 0; } to { translate: 0 -7px; } }
@keyframes fbBendRel { 0% { translate: 0 0; } 35%, 60% { translate: 0 -7px; } 100% { translate: 0 0; } }
@keyframes fbVib { from { translate: 0 -2px; } to { translate: 0 2px; } }
@keyframes fbSlide { from { translate: var(--dx, 0) 0; } to { translate: 0 0; } }
@keyframes fbTap { from { scale: 1.5; } to { scale: 1; } }
@keyframes fbTrill { 0% { background: var(--tr-lead); } 50% { background: transparent; } }
@keyframes fbPinch { 0% { box-shadow: 0 0 0 0 var(--weiss); } 40% { box-shadow: 0 0 10px 4px #fff8; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .fb button.fr[data-tq] .dot, .fb button.fr.trillto .dot { animation: none !important; } }
/* ==== static/css/09-mischpult-tablet.css ==== */
/* ---- Usability-Runde: Mischpult im Fenster, größerer Assistent, breitere Eigenschaften ---- */
.mixpop { position: fixed; top: calc(var(--top, 58px) + 4px); right: 12px; width: min(480px, calc(100vw - 24px)); max-height: calc(100vh - 90px); overflow: auto; }
dialog.wizard { width: min(1120px, 94vw); height: min(780px, 90vh); max-height: 90vh; }
dialog.props { width: min(1480px, 96vw); }
.planblk { min-width: 120px; }
.planblk .pn { text-overflow: clip; }
.lane b { display: grid; place-items: center; }
.lane b svg { width: 10px; height: 10px; fill: none; stroke: var(--tc); stroke-width: 2.4; }
.lane[data-k="drums"] b svg { stroke: var(--muted); }
.emptytrack { display: flex; justify-content: center; padding: 18px 0 6px; }
.emptytrack .ib { font-size: 14px; padding: 8px 16px; }
/* Ablauf in einer Zeile: waagerecht scrollen statt umbrechen, damit der Editor Platz behält */
#arr.arr { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
#arr.arr > * { flex: 0 0 auto; }
.lanes:has(.lane:nth-child(7)) .lane canvas { height: 6px; }
.lanes:has(.lane:nth-child(7)) .lane { min-height: 0; }
.arrstart { display: flex; align-items: center; gap: 14px; padding: 14px 6px; color: var(--muted); }
.arrstart .ib { font-size: 14px; padding: 8px 14px; }
.addinst { border: 1px dashed var(--line); background: transparent; color: var(--muted); border-radius: 6px; width: 32px; display: grid; place-items: center; cursor: pointer; align-self: center; height: 28px; }
@media (hover: hover) { .addinst:hover{ color: var(--fg); border-color: var(--muted); } }
.addinst svg { width: 14px; height: 14px; }
 #ovDrums .dc{ cursor: default; }
/* Schlagzeug-Raster bearbeitbar: eigene Schläge farbig, abgeschaltete als Umriss */
.dgrid.edit .dc { cursor: pointer; }
@media (hover: hover) { .dgrid.edit .dc:hover{ background: color-mix(in srgb, var(--brass) 18%, transparent); } }
.dgrid .dc.own i { background: var(--accent) !important; opacity: 1 !important; }
.dgrid .dc.off::after { content: ""; position: absolute; inset: 30% 25%; border: 1.5px dashed var(--muted); border-radius: 3px; }
.dgrid .dc { position: relative; }
#rigFor { width: 100%; }
.rigdock .dockrow { flex-wrap: wrap; }
.learnact { margin-top: 8px; }
.learnrow { margin: 6px 0 12px; gap: 8px; }
@keyframes clflash { 0%, 100% { box-shadow: none; } 50% { box-shadow: 0 0 0 3px var(--brass); } }
.flash { animation: clflash .8s ease-in-out 2; }
.fbauto { margin-left: auto; height: 20px; padding: 0 7px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--muted); font: 600 10px var(--mono); letter-spacing: .04em; cursor: pointer; }
.fbauto[aria-pressed="true"] { background: color-mix(in srgb, var(--brass) 25%, transparent); }
.fbauto + .fold { margin-left: 4px; }

/* Zweite Stimme */
:root { --tr-voc2: var(--farbe-lila-hell-3); }
 .mm[data-k="voc2"], .mixer [data-k="voc2"], .lane[data-k="voc2"]{ --tc: var(--tr-voc2); }
.voc2row { background: color-mix(in srgb, var(--tr-voc2) 12%, var(--panel-2)); }
.staff.vocal.voc2 { --tc: var(--tr-voc2); }
.staff.vocal.voc2 .ts.vs > b { background: var(--tr-voc2); }
/* Percussion-Reihen im Schlagzeug-Raster und Spielart-Auswahl */
.dgrid .dl.perc { color: var(--brass, var(--farbe-orange-hell)); }
.percsel { display: inline-flex; align-items: center; gap: 4px; }
.percsel svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
/* 3. Gitarre */
:root { --tr-gtr3: var(--farbe-blau-hell); }
 .mm[data-k="gtr3"], .mixer [data-k="gtr3"], .lane[data-k="gtr3"], .staff[data-tr="gtr3"]{ --tc: var(--tr-gtr3); }
.g3row { background: color-mix(in srgb, var(--tr-gtr3) 12%, var(--panel-2)); }
/* Bläser und Folk */
:root { --tr-horns: var(--farbe-gold-hell); --tr-folk: var(--farbe-gruen-hell); --tr-folk2: var(--farbe-gruen-hell-2); --tr-keys2: var(--farbe-blau-hell-2); }
 .mm[data-k="horns"], .mixer [data-k="horns"], .lane[data-k="horns"], .staff[data-tr="horns"]{ --tc: var(--tr-horns); }
 .mm[data-k="folk"], .mixer [data-k="folk"], .lane[data-k="folk"], .staff[data-tr="folk"]{ --tc: var(--tr-folk); }
 .mm[data-k="folk2"], .mixer [data-k="folk2"], .lane[data-k="folk2"], .staff[data-tr="folk2"]{ --tc: var(--tr-folk2); }
 .mm[data-k="keys2"], .mixer [data-k="keys2"], .lane[data-k="keys2"], .staff[data-tr="keys2"]{ --tc: var(--tr-keys2); }
.windrow { background: color-mix(in srgb, var(--tr-horns) 10%, var(--panel-2)); }

/* ===================== Tablet: schmaler Bildschirm oder Touch ===================== */
@media (max-width: 1180px) {
  .editor { grid-template-columns: minmax(0, 1fr); min-width: 0; }
  .editor > *, .trackpane > * { min-width: 0; }
  .trackpane { grid-template-columns: minmax(0, 1fr); }
  .editor > .ed-head { flex-wrap: wrap; row-gap: 6px; }
  .editor > .ed-head #partStyle { width: auto; flex: 1 1 160px; min-width: 0; }
  .varbar, .techbar, .tonebar, .toolbar, .ctxrow { flex-wrap: wrap; }
  .tracktabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tracktabs::-webkit-scrollbar { display: none; }
}
@media (max-width: 900px) { .topbar { flex-wrap: wrap; row-gap: 6px; } }
/* Finger statt Maus: größere Ziele, kein Hover-Zwang */
@media (pointer: coarse) {
  .ib, .btn, .rb, .seg > button, select, input[type="number"], input[type="text"] { min-height: 40px; }
  .ib.sm, .btn.small, .dopt { min-height: 36px; min-width: 36px; }
  input[type="range"] { min-height: 32px; }
  .ibt { min-width: 40px; min-height: 40px; }
  .fb button.fr { min-height: 30px; }
  .card .acts button, .libitem .acts button { min-width: 34px; min-height: 34px; }
  .libitem .acts, .card .acts { opacity: 1 !important; }  /* sonst nur bei Hover sichtbar */
}

/* ==== static/css/10-smartphone.css ==== */
/* ===================== Smartphone: nur üben (Songs, Übungen, Lernen) ===================== */
.phoneonly { display: none !important; }
body.phone .phoneonly { display: grid !important; }
body.phone .rb[data-goto="work"], body.phone .rb[data-goto="rig"], body.phone .rb[data-goto="styles"], body.phone .rb[data-goto="files"] { display: none; }
body.phone #undo,
body.phone #redo,
body.phone #bpmR,
body.phone label:has(#follow),
body.phone label:has(#lband),  /* Laufband: am Handy nur in den Einstellungen */
body.phone .topbar .brand { display: none; }
body.phone .topbar { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 10px; align-items: center; }
body.phone .topbar .tgroup { gap: 6px; }
body.phone .topbar > * { flex-shrink: 0; }  /* lieber umbrechen als überlappen */
body.phone .topbar .f > span:first-child { display: none; }
body.phone .topbar #bpm { width: 64px; }
body.phone .app { grid-template-columns: minmax(0, 1fr); }
body.phone .rail { position: fixed; left: 0; right: 0; bottom: 0; top: auto; height: auto; max-height: none; align-self: auto; flex-direction: row; z-index: 25; display: flex; justify-content: space-around; padding: 4px 6px calc(4px + env(safe-area-inset-bottom, 0px)); background: var(--bg); border-top: 1px solid var(--line); border-bottom: 0; }
body.phone .rb { flex: 1; padding: 6px 4px; }
body.phone .rb[aria-pressed="true"] { box-shadow: inset 0 3px 0 var(--accent); }
body.phone main { padding: 10px 10px 84px; }
body.phone .mixpop { position: fixed; left: 8px; right: 8px; top: 60px; max-height: calc(100vh - 150px); overflow: auto; }
.playview { display: grid; gap: 10px; }
.playview[hidden] { display: none; }
.pvhead { display: grid; gap: 6px; padding: 10px; }
.pvpick { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel-2); color: var(--fg); text-align: left; min-height: 48px; }
.pvpick svg { width: 20px; height: 20px; flex: none; }
.pvtitle { flex: 1; font-size: 20px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pvlist { display: grid; gap: 6px; max-height: 55vh; overflow-y: auto; }
.pvmeta { margin: 0; }
.pvarr { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.pvarr::-webkit-scrollbar { display: none; }
.pvsec { flex: none; display: grid; justify-items: start; padding: 8px 12px; min-height: 48px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel); color: var(--fg); font-weight: 600; }
.pvsec small { color: var(--muted); font-weight: 400; }
.pvsec.cur { border-color: var(--accent); box-shadow: inset 0 -3px 0 var(--accent); }
.pvsec.now { background: color-mix(in srgb, var(--accent) 22%, var(--panel)); }
.pvtracks { display: flex; flex-wrap: wrap; gap: 4px; }
.pvtracks button { min-height: 40px; padding: 0 12px; }
.pvtab { padding: 6px; }
.pvpaper { display: grid; gap: 10px; padding: 10px 6px; }
.pvpaper * { pointer-events: none; }
.pvbar { display: grid; gap: 2px; }
.pvbarno { font: 600 10px var(--mono); color: var(--beschriftung); letter-spacing: .06em; text-transform: uppercase; }
.pvinfo { margin: 0 4px; }
body.phone .topbar .tgroup:has(#bpm) label:has(#bpm) { display: none; }
body.phone .topbar .ib.play, body.phone .topbar .loopbtn { min-height: 44px; padding: 0 14px; }
body.phone .topbar .tgroup { border: 0; padding: 0; margin: 0; }
body.phone .topbar .tgroup::before, body.phone .topbar .tgroup::after { display: none; }
body:not(.phone) #aboutBtn { display: none; }  /* Rechner/Tablet: „Über“ unten in der Leiste; Handy: Knopf oben rechts */
body.phone #aboutBtn { margin-left: auto; }
body.phone #spendeBtn { display: none; }  /* Handy: „Unterstützen“ steht in der unteren Leiste */
/* schmale Handys: Kopfzeile in eine Zeile – Knöpfe etwas schmaler, Abstände kleiner */
@media (max-width: 420px) { body.phone .topbar, body.phone .topbar .tgroup, body.phone .topbar .tbtempo { gap: 4px; } body.phone .topbar { padding: 6px 6px; }
  body.phone .topbar .ib:not(.play):not(.loopbtn) { width: 36px; min-width: 36px; padding-left: 0; padding-right: 0; } }
body.phone .rbabout, body.phone .rbhelp { display: none; }
.pvpaper .cur { outline: none !important; box-shadow: none !important; }
.pvpaper .tcol.now { background: color-mix(in srgb, var(--accent) 18%, transparent); }
/* Üben auf Tablet hochkant und Smartphone: Übungsliste über dem Übungsbereich */
@media (max-width: 820px) {
  .prchords { grid-template-columns: minmax(0, 1fr); overflow: visible; }
  .pcmain { overflow: visible; }
}
body.phone.practicing .topbar { display: none; }  /* Üben hat eigenes Abspielen und Tempo */
body.phone .view.practice, body.phone .view.learn { min-height: 0; height: auto; overflow: visible; }

@media (pointer: coarse) { }  /* Tastenkürzel braucht man am Touch-Gerät nicht */
/* Tablet quer: wenig Höhe – Kopfzeile und Werkzeugzeilen dichter, damit das Tab-Papier sichtbar bleibt */
@media (max-width: 1180px) and (min-width: 901px) {
  .topbar { flex-wrap: nowrap; gap: 6px; }
  .topbar .tgroup { gap: 4px; }
  .topbar #bpmR { width: 70px; }
  .topbar #mixBtn > span { display: none; }  /* Assistent behält seine Beschriftung (wichtigster Einstieg) */
  .topbar #bpmR { display: none; }
}
@media (max-width: 1180px) and (max-height: 820px) {
  .trackpane { gap: 6px; padding: 8px; }
  .ctxrow, .toolbar, .varbar, .tonebar, .techbar { row-gap: 4px; }
  .editor > .ed-head { min-height: 40px; padding-top: 4px; padding-bottom: 4px; }
}
/* Handy quer: wenig Höhe */
@media (max-height: 500px) {
  body.phone .rail { padding-top: 2px; padding-bottom: calc(2px + env(safe-area-inset-bottom, 0px)); }
  body.phone .rb { padding: 4px; min-height: 40px; }
  body.phone .rb span { display: none; }
  body.phone main { padding-bottom: 56px; }
  body.phone .topbar { position: static; }
  .pvhead { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 6px 8px; }
  .pvhead .pvlist { grid-column: 1 / -1; }
  .pvpick { min-height: 40px; padding: 4px 8px; }
  .pvtitle { font-size: 16px; }
  .pvsec { min-height: 40px; padding: 4px 10px; display: flex; gap: 6px; align-items: baseline; }
  .playview { gap: 6px; }
  .pvpaper { padding: 6px 4px; }
}
@media (max-height: 500px) {
  body.phone .playview { grid-template-columns: minmax(0, 1fr) auto; }
  body.phone .pvhead, body.phone .pvtab, body.phone .pvinfo { grid-column: 1 / -1; }
  body.phone .pvtracks { flex-wrap: nowrap; }
  body.phone .pvtracks button { min-height: 40px; padding: 0 10px; }
  body.phone .pvmeta { font-size: 12px; }
}
/* Ziehen mit dem Finger (static/touchdrag.js) */
@media (pointer: coarse) { [draggable="true"] { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; } }
.tdrag-hold { outline: 2px solid var(--accent); outline-offset: 2px; }
.tdrag-src { opacity: .45; }
.tdrag-ghost { box-shadow: 0 8px 24px rgba(0, 0, 0, .45); border-radius: 6px; }
/* Tablet quer / wenig Höhe: Ablauf nicht abschneiden – Karten ohne Spur-Streifen, Songleiste nach Inhalt */
@media (min-width: 901px) and (max-width: 1180px) and (max-height: 820px) {
  .songbar { max-height: none; overflow: visible; }
  .arr .card .lanes { display: none; }
  .arr .card { grid-template-rows: auto auto auto; }
}
/* Üben – Kopf: auf großen Bildschirmen wie bisher, auf dem Handy aufgeräumt */
.prstep, .prmore { display: none; }
body.phone .prbar { display: grid; gap: 8px; align-items: center; padding: 10px; }
body.phone .prbar > * { order: 10; }
body.phone .prbar #prPlay { order: 1; margin: 0; min-height: 48px; justify-content: center; }
body.phone .prbar .prbpm > span:first-child, body.phone .prbar #prBpmR { display: none; }
body.phone .prbar .prbpm .row { display: flex; gap: 4px; align-items: center; }
body.phone .prbar .prstep { display: inline-grid; place-items: center; min-width: 40px; min-height: 44px; font-size: 20px; }
body.phone .prbar #prBpm { width: 100%; min-width: 0; text-align: center; min-height: 44px; }
body.phone .prbar .prmore { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 6px 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel-2); color: var(--muted); text-align: left; font-size: 13px; }
body.phone .prbar .prmore span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.phone .prbar .prmore svg { width: 18px; height: 18px; flex: none; }
body.phone .prbar.open .prmore .pvchev { transform: rotate(180deg); }
/* Einstellungen: eingeklappt verborgen, aufgeklappt zweispaltig */
body.phone .prbar:not(.open) > .f:not(.prbpm), body.phone .prbar:not(.open) > #prLabel, body.phone .prbar:not(.open) > .ibt { display: none !important; }
body.phone .prbar.open > .f:not(.prbpm) { min-width: 0; }
body.phone .prbar.open > .f:not(.prbpm) select { max-width: none; width: 100%; }
body.phone .prbar.open > #prLabel { grid-column: 1 / -1; display: flex; }
body.phone .prbar.open > #prLabel button { flex: 1; }
body.phone .prbar.open > .ibt { justify-self: start; }
body.phone .prbar.open > .f.scaleonly[hidden], body.phone .prbar > [hidden] { display: none !important; }
body.phone .prbar .prbpm { display: block; min-width: 0; }
body.phone .prbar .prbpm .row { flex-wrap: nowrap; width: 100%; }
body.phone .prbar .prbpm #prBpm { flex: 1 1 auto; width: auto; }
body.phone .prbar { grid-template-columns: repeat(6, minmax(0, 1fr)); }
body.phone .prbar #prPlay, body.phone .prbar .prbpm, body.phone .prbar.open > .f:not(.prbpm) { grid-column: span 3; }
body.phone .prbar.open > .ibt { grid-column: span 2; justify-self: stretch; display: grid; place-items: center; }
body.phone .prbar.open > .ibt { width: 100%; min-height: 44px; }
@media (max-height: 500px) {
  body.phone .prbar #prPlay, body.phone .prbar .prbpm { grid-column: span 2; }
  body.phone .prbar #prPlay, body.phone .prbar .prstep, body.phone .prbar #prBpm { min-height: 40px; }
}
/* Bundpunkte wieder rund: Punkt-Feld über die Nachbarfelder (deren Holz-Hintergrund verdeckte die untere Hälfte),
   Ton-Kreise und Auswahl bleiben trotzdem obenauf */
.fb button.fr.inl { z-index: 1; }
.fb button.fr .dot { position: relative; z-index: 2; }
.pvtracks button.empty { opacity: .55; }
/* Eigenschaften: ohne waagerechtes Scrollen bei Desktop-Breite */
.props-table input[type="text"] { min-width: 90px; }
.props-table td.snd { white-space: nowrap; }
.instpop { position: fixed; z-index: 60; display: grid; gap: 2px; min-width: 180px; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.instpop[hidden] { display: none; }
.instpop .eyebrow { padding: 2px 6px 4px; }
.instpop button { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px; background: transparent; border: 0; border-radius: 4px; color: var(--fg); text-align: left; }
 .instpop button:focus-visible{ background: var(--panel-2); } @media (hover: hover) { .instpop button:hover{ background: var(--panel-2); } }
.instpop svg { width: 16px; height: 16px; }
/* Assistent: Suche über Genres, Bands und Alben */
.catsearch { position: relative; margin: 8px 0 6px; }
.catsearch svg { position: absolute; left: 9px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2; pointer-events: none; }
.catsearch input { width: 100%; height: 32px; padding: 0 10px 0 30px; }
.cathits:empty { display: none; }
.cathits { margin-bottom: 8px; }
/* Setup: weitere Instrumente */
.moreinst { max-width: 560px; }
/* Einstellungen, die für den ganzen Song gelten (in Spur-Leisten): einheitliches Abzeichen */
.songwide { position: relative; }
.songwide::before { content: 'Song'; align-self: center; margin-right: 4px; padding: 0 4px; border-radius: 3px; font: 600 9.5px/15px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--bg); background: var(--muted); }
/* Ein Zustandsschema für An/Aus-Schalter: an = Akzent-Rahmen + leichte Akzentfläche, aus = gedämpft (nie durchgestrichen).
   Auswahl aus mehreren (.seg) bleibt invertiert. */
.songband button { text-decoration: none; }
.songband button:not([aria-pressed="true"]) { opacity: .62; }
.songband button[aria-pressed="true"],
.dopt[aria-pressed="true"],
.ovsel button[aria-pressed="true"],
.tonepre button[aria-pressed="true"] {
  color: var(--fg); opacity: 1; border-color: var(--accent); background: color-mix(in srgb, var(--accent) 20%, var(--panel-2)); }
/* Editor-Leisten: eine Knopfhöhe (28 px) für alles in einer Zeile */
:root { --ctl-h: 28px; }
.editor .toolbar button, .editor .ctxrow button, .editor .toolbar select, .editor .ctxrow select, .editor .ctxrow input[type="text"] { height: var(--ctl-h); box-sizing: border-box; }
.editor .toolbar .ib.sm, .editor .ctxrow .ib.sm { padding-top: 0; padding-bottom: 0; }
body:not(.edmore-on) .editor .edextra { display: none !important; }
.edmore { width: 150px; justify-content: center; }
/* Lesbarkeit: Beschriftungen nicht unter 10 px */
.libcol .lib .card .ct, .lane .dl, .topbar label.f > span:first-child, .bbadge { font-size: 10px; }
/* Smartphone: Mischpult nur mit Lautstärken (Besetzung ändert man am Rechner) */
/* Ablauf platzsparend: Kopf in einer Zeile, Länge neben der Zeitleiste, flache Karten (Knöpfe erst beim Überfahren/Auswählen) */
.songbar { gap: 6px; padding: 8px 10px; }
.sb-head { flex-wrap: nowrap; gap: 6px; min-width: 0; }
.sb-head .title-in { flex: 1 1 200px; max-width: 340px; min-width: 120px; font-size: 20px; padding-top: 0; padding-bottom: 0; }
.sb-head .songkey select { max-width: 120px; }
.tlrow { gap: 8px; }
.tlrow #songTl { margin-bottom: calc(6px * var(--tlz, 1)); }
.tlrow .songlen { white-space: nowrap; font-size: 11px; }
.arr { min-height: 48px; gap: 5px; }
.arr .card { width: 138px; padding: 0 6px 3px; gap: 2px; }
.arr .card .cn { padding: 2px 6px; font-size: 12.5px; }
.arr .card .bc { min-height: 19px; }
.arr .card .bc button { padding: 0 4px; line-height: 17px; }
.arr .card:not(:hover):not(.sel):not(:focus-within) .bc button:not(.bpmb.own) { visibility: hidden; }
@media (pointer: coarse) { .arr .card .bc button { visibility: visible !important; } }

/* ==== static/css/11-editorfenster-kompakt.css ==== */
/* ================= Editor-Fenster: Gestaltung (Werkzeugstreifen, Papier, Griffbrett) =================
   Fläche dunkel, Werkzeuge in abgesetzten Streifen, Papier als „Blatt“ mit Tiefe, Griffbrett als eigener Block. */
.editor > .trackpane { background: var(--panel); }
/* Werkzeugstreifen: Spur-Leiste, Kontextzeilen (Gesang, Tasten …), Werkzeuge */
.trackpane > .ctxrow:not([hidden]), .trackpane > .toolbar {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 7px; padding: 5px 8px; gap: 6px; row-gap: 5px; }
.trackrow > .eyebrow:first-child { display: none; }  /* „Spur“ sagt schon der Reiter */
.trackpane .divider { align-self: stretch; width: 1px; margin: 3px 2px; background: var(--line); }
.trackpane .ib.sm { background: transparent; border-color: transparent; }
@media (hover: hover) { .trackpane .ib.sm:hover{ background: var(--panel); border-color: var(--line); } }
.trackpane .ib.sm.accent { background: var(--accent); border-color: var(--accent); }
@media (hover: hover) { .trackpane .ib.sm.danger:hover{ color: var(--accent); } }
.trackpane .ib.sm[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 20%, var(--panel)); border-color: var(--accent); }
.trackpane select { background-color: var(--panel); }
/* Klang-Chips rechts: kompakter, damit die Spur-Leiste in eine Zeile passt */
.trackrow .tonebar { gap: 4px; }
.trackrow .tonebar > .divider:first-child { display: none; }
.trackrow .mped { width: auto; min-width: 54px; padding: 0 7px; font-size: 11px; gap: 5px; border-radius: 5px; }
.trackrow .ampmini { width: 86px; }

/* Werkzeugzeile: rechte Gruppe (Takt kopieren, transponieren, leeren) bleibt zusammen */

.toolbar .edmore { width: auto; padding: 0 8px; }
.inventbar button { padding: 0 6px; }
.trackpane .eyebrow { font-size: 10px; letter-spacing: .08em; color: var(--muted); }
/* Papier: Blatt mit Tiefe, etwas Luft */
.trackpane .paper { border-radius: 6px; box-shadow: 0 1px 0 rgba(255, 255, 255, .04), 0 6px 18px rgba(0, 0, 0, .35), inset 0 0 0 1px var(--rahmen-hell); }
/* Griffbrett: eigener Block mit Kopfzeile wie die Streifen */
.editor .fbwrap { background: var(--panel-2); border: 1px solid var(--line); border-radius: 7px; }
.editor .fbwrap.folded { padding-bottom: 6px; }
.toolbar > .sp { width: auto !important; flex: 1 1 0; min-width: 0 !important; }
.trackpane > .toolbar { gap: 5px; }
.varbar #varEvery { max-width: 175px; }
.trackrow.voconly { display: none !important; }  /* Spuren ohne Gitarren-Werkzeuge: Klang sitzt in ihrer eigenen Leiste */
#vocrow .tonebar { margin-left: auto; }

/* ================= Kompakte Darstellung (alle Bereiche) =================
   Weniger Innenabstand, flachere Kopfzeilen, Spur-Streifen der Ablauf-Karten wie in der Songteile-Liste. */
.topbar { padding-top: 5px; padding-bottom: 5px; gap: 6px 12px; }
main { padding-top: 8px; }
.panel { padding: 10px 12px; gap: 10px; }
.view.work { gap: 8px; }
.view.rigview, .view.practice, .view.stylesview { gap: 8px; }
.view.learn .guide { gap: 10px; }
.guide > .guidebody { display: grid; gap: inherit; }  /* Einträge unter dem Kopf (am Handy scrollt nur dieser Teil) */
.rail { padding-top: 8px; gap: 4px; }
/* Songteile-Spalte */
.libcol { padding: 8px; gap: 6px; }
.libcol .lib { gap: 3px; }
/* Ablauf-Karten: Spuren als dünne Farbstreifen (ohne Symbole), Drums-Zeile nur in der Songteile-Liste/Eigenschaften */
.arr .card .lanes { gap: 1px; margin: 2px 0 1px; }
.arr .card .lane { grid-template-columns: minmax(0, 1fr); min-height: 0; }
.arr .card .lane b { display: none; }

.arr .card .lane[data-k="drums"] { display: none; }
/* Editor */
.editor { padding: 8px 10px; gap: 6px; }
.editor > .ed-head { margin: -8px -10px 0; padding: 5px 10px; min-height: 40px; }
.tracktabs button { padding: 5px 9px 6px 10px; }
.editor > .trackpane { padding: 8px 10px 10px; gap: 6px; }
.trackpane .paper { padding: 9px 12px 8px; gap: 12px 18px; }
.editor .fbwrap { padding: 4px 8px 6px; }
/* Setup-Streifen: Knöpfe teilen sich die Breite, IR-Liste ohne waagerechtes Scrollen */
.rigdock .dockrow { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.rigdock .dockrow .ib { min-width: 0; justify-content: center; padding-left: 4px; padding-right: 4px; }
.rigdock .dockrow .ib span { overflow: hidden; text-overflow: ellipsis; }
.rigdock .irlist, .rigdock #irLib { overflow-x: hidden; }
.rigdock .irit { width: 100%; min-width: 0; }
.rigdock .irit .irn { flex: 1 1 auto; min-width: 0; max-width: none; text-align: left; }
/* Kompakt: Spur-Streifen der Ablauf-Karten optisch 4 px (nur Anzeige, Klick wählt den Abschnitt); Touch großzügiger */
.arr .card .lane { border-radius: 2px; }
@media (pointer: coarse) {
  
  .editor > .ed-head { min-height: 44px; }
  .tracktabs button { padding: 8px 12px; }
  .panel { padding: 12px 14px; }
}
/* Ein Schema für alle An/Aus-Schalter: an = Akzent-Rahmen + leichte Akzentfläche, Text hell; Messing nur für „Abweichung“ (Variante B, Solo, Song-Abweichungen) */
.tog[aria-pressed="true"].pc,
.tog[aria-pressed="true"].pm,
#edMax[aria-pressed="true"],
#loopBtn[aria-pressed="true"],
#chordTog[aria-pressed="true"],
.techbar button[aria-pressed="true"],
.fbauto[aria-pressed="true"],
.instopts button[aria-pressed="true"],
.planlen .plv[aria-pressed="true"],
.edmore[aria-pressed="true"] {
  color: var(--fg); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 20%, var(--panel-2)); }
.instopts button[aria-pressed="true"] b { color: var(--fg); }
/* aus: gedämpft, aber gut lesbar */
#chordTog:not([aria-pressed="true"]), .edmore:not([aria-pressed="true"]), .tog:not([aria-pressed="true"]) { color: var(--muted); }
/* Ablauf-Karten: Spur-Streifen etwas kräftiger, Groove als Kurztext, ✕ abgesetzt; Touch: große Knöpfe */
.arr .card .lane { padding: 2px 0; }
.arr .card .lane canvas { height: 5px !important; }
.arr .card .bc .dgr { font: 10px var(--mono); color: var(--muted); padding: 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 64px; }
.arr .card .bc button[data-a="del"] { margin-left: 6px; }
@media (pointer: coarse) {
  .arr .card .bc button { min-width: 30px; min-height: 30px; }
  .arr .card .lane { padding: 6px 0; }
  .bnb, .fbauto, .fold, .foldedge { min-width: 32px; min-height: 32px; }
  #countIn { width: 22px; height: 22px; }
}
/* Bass „automatisch“ als An/Aus-Knopf im einheitlichen Stil (Checkbox bleibt für Tastatur/Screenreader) */
.bassrow label.chk { position: relative; display: inline-flex; align-items: center; gap: 6px; height: var(--ctl-h); padding: 0 10px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); cursor: pointer; }
.bassrow label.chk input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bassrow label.chk:has(input:checked) { color: var(--fg); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 20%, var(--panel-2)); }
.bassrow label.chk:has(input:focus-visible) { outline: 2px solid var(--cursor); outline-offset: 1px; }
.bassrow label.chk svg { width: 14px; height: 14px; }
#bmode:disabled { opacity: .5; }
.tbright { display: inline-flex; gap: 4px; flex-wrap: nowrap; }
/* Tablet: Erfinden nur mit Symbolen (Tooltip bleibt), Titel nicht abgeschnitten */
@media (max-width: 1180px) {
  .inventbar button[data-inv]:not([data-inv="fill"]) { font-size: 0; gap: 0; padding: 0 7px; }
  .inventbar button[data-inv] svg { width: 15px; height: 15px; }
  .sb-head .title-in { min-width: 200px; }
  .toolbar .edmore span { display: none; }
}
/* Gruppen klarer: Erfinden mit Trenner, Zählzeiten im Tab lesbarer */
.tcol .cnt { font-size: 10px; color: var(--schrift-braun-dunkel); }
.docksec.inert { opacity: .45; pointer-events: none; }
.righead .zoombox[hidden] { display: none; }
.cathits .catkind { display: block; font: 10.5px var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ==== static/css/12-assistent-steckbriefe-pedale.css ==== */
/* ================= Assistent: Übersicht und Bedienbarkeit ================= */
.wiz-steps button { height: 28px; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; border-radius: 5px; }
@media (hover: hover) { .wiz-steps button:hover:not(:disabled){ background: var(--panel-2); } }
.wiz-steps button:disabled { cursor: default; }
dialog.wizard.running .wiz-steps, dialog.wizard.running #wizClose, dialog.wizard.running .wiz-step { pointer-events: none; opacity: .6; }
.paths .path.main { border-color: var(--accent); }
.paths .path:disabled { opacity: .45; cursor: not-allowed; }
/* Song-Plan: größere Ziele, einheitliche Namen, Anspruchs-Abzeichen nur bei Bedarf */
.planblk .plvl, .planblk .pr, .planblk .px { min-height: 24px; min-width: 24px; }
.planblk .plvl:not(.set) { opacity: 0; }
 .planblk .plvl:focus-visible{ opacity: 1; } @media (hover: hover) { .planblk:hover .plvl{ opacity: 1; } }
.planbar.short .pn { font-size: 0; }
.planbar.short .pn::after { content: attr(data-short); font-size: 12px; }
#planTargetR { width: 240px; height: 24px; }
/* Stil-Kacheln: Untertitel einzeilig sichtbar, Stern gut treffbar */
.stylegrid .stylebtn > span:not(.favstar) { display: block; font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stylegrid .favstar { min-width: 24px; min-height: 24px; display: grid; place-items: center; }
/* Besetzung: gleich große Kacheln im Raster, Reihenfolge wie im Editor; Stil-Vorschlag markiert */
#songBand { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 6px; }
#songBand button { height: 34px; justify-content: flex-start; position: relative; }
#songBand button.sug::after { content: 'Stil'; position: absolute; top: 2px; right: 4px; font: 600 9.5px var(--mono); color: var(--brass); }
/* Stil je Teil kompakt in zwei Spalten */
.psgrid { display: grid; grid-template-columns: repeat(2, auto minmax(140px, 240px)); justify-content: start; gap: 4px 12px; align-items: center; }
.pshead { display: flex; gap: 8px; align-items: baseline; margin-bottom: 4px; }
.scgrid .scseq { white-space: normal; }
/* Assistent: Basis-Songteile (worauf aufbauen) optisch von Ziel-/Typ-Wahl abgesetzt */
#bases .basechip { border-style: dashed; }
#bases .basechip[aria-pressed="true"] { border-style: solid; }
#prBeat { min-width: 44px; justify-content: center; }  /* Wechselschalter Aus/Metronom/Schlagzeug: nur Symbol (Aus = durchgestrichenes Metronom), Zustand im Tooltip */
#prBeatLab { display: none; }
#prBeat[aria-pressed="true"], #prMetroVis[aria-pressed="true"] { color: var(--brass); border-color: var(--brass); }
/* Songteile-Spalte: schlanke Liste statt zweiter Karten-Ansicht (Spur-Streifen nur im Ablauf) */
.libcol .lib .card.libitem2 { display: grid; grid-template-columns: minmax(0, 1fr) auto 26px 26px; align-items: center; gap: 6px; min-height: 30px; padding: 2px 4px 2px 8px; border-top: 1px solid var(--line); border-left: 4px solid var(--c); }
.libcol .lib .card.libitem2 .cn { font-size: 13px; padding: 0; margin: 0; background: none; color: var(--fg); text-shadow: none; }
.libcol .lib .card.libitem2 .ct { font: 11px var(--mono); color: var(--muted); letter-spacing: 0; text-transform: none; }
.libcol .lib .card.libitem2.unused .cn { color: var(--muted); font-style: italic; }
.libcol .lib .card.libitem2 .add, .libcol .lib .card.libitem2 .hoer { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--muted); opacity: 0; }
 .libcol .lib .card.libitem2:focus-within .add, .libcol .lib .card.libitem2.sel .add, .libcol .lib .card.libitem2:focus-within .hoer, .libcol .lib .card.libitem2.sel .hoer, .libcol .lib .card.libitem2 .hoer.pvon
{ opacity: 1; } @media (hover: hover) { .libcol .lib .card.libitem2:hover .add,.libcol .lib .card.libitem2:hover .hoer{ opacity: 1; } }
.libcol .lib .card.libitem2 .hoer.pvon { color: var(--accent); }
@media (hover: hover) { .libcol .lib .card.libitem2 .add:hover, .libcol .lib .card.libitem2 .hoer:hover{ color: var(--fg); border-color: var(--line); } }
.libcol .lib .card.libitem2 .add svg, .libcol .lib .card.libitem2 .hoer svg { width: 14px; height: 14px; }
@media (pointer: coarse) { .libcol .lib .card.libitem2 .add, .libcol .lib .card.libitem2 .hoer { opacity: 1; } }
.lessgroup { grid-column: 1 / -1; margin: 10px 0 2px; }
.lessgroup h3 { margin: 0; font-family: var(--display); font-size: 18px; text-transform: uppercase; letter-spacing: .02em; }
.lessgroup .hint { margin: 2px 0 0; }
.lesson.fav { border-left: 3px solid var(--brass); }
.briefhead { margin: 12px 0 4px; font-family: var(--display); font-size: 18px; text-transform: uppercase; letter-spacing: .02em; display: inline; }
.band.brief { position: relative; }
.band.brief .favstar { position: absolute; top: 8px; right: 10px; }
#briefPick:not(:empty) { margin-bottom: 8px; }
.plansel { flex-wrap: wrap; margin-bottom: 6px; }
.plansel button { height: 30px; padding: 0 10px; }
.plansel small { opacity: .7; font-size: 10.5px; margin-left: 4px; }
#planSteps > div { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
#planSteps > div .ib { min-width: 64px; justify-content: center; }
/* Handy „Songs üben“: Begleitung als ein Umschalt-Knopf (Band → Ohne mich → Schlagzeug → Metronom → Anzählen) */
.pvmetarow { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pvmetarow .pvmeta { flex: 1; min-width: 0; }
.pvbeat { flex: none; width: 118px; min-height: 40px; display: flex; align-items: center; gap: 6px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel-2); color: var(--fg); font-size: 13px; white-space: nowrap; }
.pvbeat svg { width: 16px; height: 16px; flex: none; }
.pvbeat.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--panel-2)); }
@media (max-height: 500px) { .pvhead .pvmetarow { grid-column: 2; } .pvbeat { min-height: 36px; } }
body.phone .topbar label:has(#countIn) { display: none; }  /* Handy: Anzählen gehört zur Begleitung (#pvBeat) */
body.phone .topbar #mixBtn > span { display: none; }  /* Handy: Kopfzeile in einer Zeile */
body.phone .topbar #playBtn.ib { width: 86px; min-width: 0; padding: 0 8px; } body.phone .topbar #loopBtn { width: 80px; min-width: 0; padding: 0 8px; }
/* Steckbriefe: Stöbern + ausführliche Tipps */
.briefnav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0 6px; }
.briefnav .catsearch { flex: 1 1 260px; margin: 0; }
.catsearch.combo input { padding-right: 34px; }
.catsearch.combo input::-webkit-search-cancel-button { margin-right: 2px; }
.combo .cbtog { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 30px; height: 28px; padding: 0; display: grid; place-items: center; background: transparent; border: 0; color: var(--muted); }
.combo .cbtog svg { position: static; transform: none; width: 15px; height: 15px; transition: transform .15s; }
.combo:has(input[aria-expanded="true"]) .cbtog svg { transform: rotate(180deg); }
.cbpop { position: absolute; left: 0; right: 0; max-width: 520px; top: calc(100% + 4px); z-index: 60; max-height: min(62vh, 460px); overflow: auto; overscroll-behavior: contain;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 32px rgba(0, 0, 0, .45); padding: 4px; }
.cbpop .cbg { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 8px 10px 3px; position: sticky; top: -4px; background: var(--panel); }
.cbpop .cbi, .cbpop .cbback { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 34px; padding: 4px 10px; border: 0; border-radius: 6px; background: transparent; color: var(--fg); text-align: left; font-size: 13.5px; }
.cbpop .cbi span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cbpop .cbi small { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.cbpop .cbi svg, .cbpop .cbback svg { position: static; transform: none; width: 14px; height: 14px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; }
 .cbpop .cbi.act{ background: color-mix(in srgb, var(--accent) 18%, transparent); } @media (hover: hover) { .cbpop .cbi:hover,.cbpop .cbback:hover{ background: color-mix(in srgb, var(--accent) 18%, transparent); } }
.cbpop .cbback { color: var(--muted); border-bottom: 1px solid var(--line); border-radius: 6px 6px 0 0; margin-bottom: 2px; }
.cbpop .cbnone { margin: 8px 10px; color: var(--muted); font-size: 13px; }
body.phone .cbpop .cbi, body.phone .cbpop .cbback { min-height: 42px; font-size: 15px; }
.brieftips > summary { cursor: pointer; color: var(--accent); font-size: 13px; }
.brieftips h4 { margin: 8px 0 4px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.brieftips p { margin: 6px 0 0; font-size: 13px; }
.brieflinks { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.chipbtn { min-height: 26px; padding: 0 8px; border-radius: 13px; border: 1px solid var(--line); background: var(--panel-2); color: var(--fg); font-size: 12px; }
.chipbtn small { color: var(--muted); }
@media (hover: hover) { .chipbtn:hover{ border-color: var(--accent); } }
@media (pointer: coarse) { .chipbtn { min-height: 34px; } }
.brieftips .wrow { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 4px; font-size: 13px; }
.brieftips .wtag { padding: 1px 7px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 14%, var(--panel-2)); font-size: 12px; }
.brieftips a { color: var(--accent); }
/* Handy „Songs üben“: Song wählen + Speichern in einer Zeile */
.pvpickrow { display: flex; gap: 6px; align-items: stretch; min-width: 0; }
.pvpickrow .pvpick { flex: 1; min-width: 0; }
.pvsave { flex: none; width: 48px; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--line); background: var(--panel-2); color: var(--fg); }
.pvsave svg { width: 20px; height: 20px; }
.pvsave.dirty { border-color: var(--brass); color: var(--brass); background: color-mix(in srgb, var(--brass) 14%, var(--panel-2)); }
@media (max-height: 500px) { .pvsave { width: 40px; } }
/* Pedal-Beschriftung (Doppelklick auf den Namen) */
.pedal .pname[data-pname] { cursor: text; }
.pedal .pnamein { width: 100%; min-width: 0; height: 22px; padding: 0 4px; font: inherit; font-size: 11px; text-align: center; border-radius: 3px; border: 1px solid var(--accent); background: var(--panel); color: var(--fg); }
/* NAM-Bibliothek im Setup-Streifen */
.namlist { display: grid; gap: 4px; }
.namit { display: flex; align-items: baseline; gap: 8px; padding: 4px 6px; border-radius: 4px; cursor: default; user-select: none; }
 .namit:focus-visible{ background: var(--panel); outline: none; } @media (hover: hover) { .namit:hover{ background: var(--panel); outline: none; } }
.namit .namt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.namit .namk { flex: none; font-size: 10.5px; color: var(--muted); }
.namdlg { width: min(440px, 94vw); }
.namdlg .f { display: grid; grid-template-columns: 90px minmax(0, 1fr); align-items: center; gap: 8px; margin: 6px 0; }
.namdlg .f input, .namdlg .f select { height: 30px; }
.namdlg .row { margin-top: 12px; }
.namit input, .namit select { min-width: 0; height: 26px; font-size: 12px; padding: 0 5px; }
/* Pedal-Palette nach Klassen (Dynamik, Zerre, Tonhöhe, Filter, Modulation, Zeit) – NAM-Captures in ihrer Klasse */
.rigdock .rigpal, .rigview .rigpal { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.palgrp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.palgrp .palh { grid-column: 1 / -1; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.palped.cap { font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; justify-content: flex-start; }
/* ⋯-Menü je Gerät (Zurücksetzen, Presets) */
.pedal .gmenu, .amp .gmenu, .cab .gmenu { position: absolute; top: 3px; left: 3px; width: 22px; height: 20px; padding: 0; border: 0; border-radius: 4px; background: rgba(0, 0, 0, .25); color: var(--weiss); font-size: 14px; line-height: 1; opacity: 0; cursor: pointer; }
.amp, .cab { position: relative; }
 .gmenu:focus-visible{ opacity: 1; } @media (hover: hover) { .pedal:hover .gmenu,.amp:hover .gmenu,.cab:hover .gmenu{ opacity: 1; } }
@media (pointer: coarse) { .pedal .gmenu, .amp .gmenu, .cab .gmenu { opacity: .8; width: 28px; height: 26px; } }
.amp .amprow .gmenu { position: static; opacity: .7; margin-right: 2px; }
.gearpop { position: fixed; z-index: 60; width: 250px; padding: 8px; display: grid; gap: 6px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.gearpop .gph { font-weight: 600; font-size: 13px; }
.gearpop > button { text-align: left; min-height: 28px; padding: 0 8px; border-radius: 5px; border: 1px solid var(--line); background: var(--panel-2); color: var(--fg); }
.gearpop .gpsave { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px; }
.gearpop .gpsave input { height: 28px; min-width: 0; padding: 0 6px; }
.gearpop .gpsave button { height: 28px; padding: 0 8px; }
.gearpop .gpl { display: grid; gap: 3px; max-height: 200px; overflow-y: auto; }
.gearpop .gpi { display: grid; grid-template-columns: minmax(0, 1fr) 26px; gap: 3px; }
.gearpop .gpi button { min-height: 26px; text-align: left; padding: 0 6px; border-radius: 4px; border: 1px solid var(--line); background: var(--panel-2); color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gearpop .gpx { text-align: center !important; color: var(--muted) !important; }
.gearpop .gpx.confirm { color: var(--weiss) !important; background: var(--accent) !important; }
/* Handy „Songs üben“: ganzer Song / Abschnitt + Zeitleiste mit Abspielmarke */
.pvplay { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.pvplay .pvmode button { min-height: 36px; padding: 0 10px; font-size: 12px; white-space: nowrap; }
.pvplay .pvtl { margin: 0; height: 22px; }
.pvplay .pvtl .tltick { display: none; }
.pvplay .pvtime { font-size: 12px; white-space: nowrap; }
@media (max-width: 420px) { .pvplay { grid-template-columns: minmax(0, 1fr) auto; } .pvplay .pvmode { grid-column: 1 / -1; display: flex; } .pvplay .pvmode button { flex: 1; } }
@media (max-height: 500px) { body.phone .pvplay { grid-column: 1 / -1; } }
/* Üben: Einheiten links (Lernweg), rechts Kopf mit Ziel + Einstellungen + Griffbrett/Akkorde + Tab */
.view.practice { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 10px; min-height: 0; }
.view.practice > .prunits { grid-row: 1; min-height: 0; overflow: hidden; display: grid; grid-template-rows: auto minmax(0, 1fr); padding: 8px; }
.view.practice > .prmain { display: flex; flex-direction: column; gap: 8px; min-height: 0; overflow-y: auto; }
.prunitbtn { display: none; }
.prunitlist { overflow-y: auto; min-height: 0; display: grid; gap: 10px; align-content: start; padding-right: 2px; scrollbar-width: thin; }
.prgrp { display: grid; gap: 3px; }
.prgh { font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding: 2px 4px; }
.pru { display: grid; grid-template-columns: minmax(0, 1fr) 34px; gap: 6px; align-items: center; text-align: left; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-2); color: var(--fg); }
.pru[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, var(--panel-2)); }
.pru .prut { display: grid; min-width: 0; }
.pru .prut b { font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pru .prut small { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prub { display: block; height: 5px; border-radius: 3px; background: var(--bg); overflow: hidden; }
.prub i { display: block; height: 100%; background: var(--brass); }
.pru.done .prub i { background: var(--flaeche-gruen-mittel); }
.prhead { display: grid; gap: 4px; padding: 8px 12px; }
.prhead .prht { display: flex; gap: 8px; align-items: baseline; }
.prhead .prht b { font-size: 15px; }
.prhead p { margin: 0; }
.prgoal { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 12px; }
.prgoal .prub.big { width: 140px; height: 7px; }
.prchords { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1180px) { .view.practice { grid-template-columns: 220px minmax(0, 1fr); } }
@media (max-width: 820px) {
  .view.practice { grid-template-columns: minmax(0, 1fr); }
  .view.practice > .prunits { grid-row: auto; display: block; }
  .prunitbtn { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 6px 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel-2); color: var(--fg); text-align: left; }
  .prunitbtn span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .prunitbtn svg { width: 18px; height: 18px; flex: none; }
  .prunits:not(.open) .prunitlist { display: none; }
  .prunits.open .prunitlist { margin-top: 8px; max-height: 60vh; }
  .prunits.open .prunitbtn .pvchev { transform: rotate(180deg); }
  .view.practice > .prmain { overflow: visible; }
}
/* Handy, Üben: oben „was“ (Einstellungen), darunter Tempo + Begleitung in einer Zeile; Play/Stopp sitzt im Reiter „Üben“ unten */
body.phone .prbar #prPlay { display: none !important; }
body.phone .prbar .prmore { order: 1; }
body.phone .prbar.open > .f:not(.prbpm) { order: 2; }
body.phone .prbar.open > #prLabel { order: 3; }
body.phone .prbar.open > .ibt { order: 4; }
body.phone .prbar .prbpm { order: 5; grid-column: span 3; }
body.phone .prbar #prBeat { order: 6; grid-column: span 1; justify-content: center; min-height: 44px; }
body.phone .prbar #prMetroVis { display: none; }  /* Handy: optisches Metronom sitzt oben in der Kopfleiste */
/* Live: eigene Gitarre über ein Audio-Interface */
.livepop { width: 300px; display: grid; gap: 8px; }
.livepop .f { display: grid; gap: 2px; font-size: 11.5px; color: var(--muted); }
.livepop select { width: 100%; }
.livepop .liverow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.livemeter { height: 6px; border-radius: 3px; background: var(--bg); overflow: hidden; }
.livemeter i { display: block; height: 100%; width: 0; background: var(--flaeche-gruen-mittel); transition: width .1s; }
.livemeter i.hot { background: var(--accent); }
#liveBtn.on { border-color: var(--accent); color: var(--accent); }
body.phone #liveBtn > span { display: none; }
/* Griffbrett: eine klare Rangfolge (Editor und Üben gleich)
   gespielt (gefüllt, Spurfarbe) > als Nächstes (Messing-Ring) > verwendete Töne (deutlich) > übrige Töne der Tonart (klein, blass)
   > nicht in der Tonart (unsichtbar, beim Überfahren). Grundton rot: gefüllt wenn verwendet, sonst roter Ring. Pinsel = heller Ring. */
.fb button.fr.ghost .dot { opacity: .34; transform: scale(.78); border-color: transparent; }
.fb button.fr.used .dot { opacity: 1; transform: none; border-color: var(--rahmen-braun-weiss-2); }
.fb button.fr.root.used .dot { background: var(--accent); border-color: var(--accent); color: var(--weiss); }
.fb button.fr.root.ghost .dot { background: rgba(24, 17, 14, .88); border: 1.5px solid var(--accent); color: var(--schrift-rosa-weiss); opacity: .6; }
.fb button.fr.fr.sel .dot { opacity: 1; transform: none; outline: none; box-shadow: 0 0 0 2px var(--schatten-orange-weiss), 0 0 0 4px rgba(0, 0, 0, .55); }
.fb button.fr.fr.nexthit .dot { opacity: 1; transform: none; outline: 2.5px solid var(--brass); outline-offset: 2px; }
.fb button.fr.fr.hit .dot, .fb button.fr.fr.hitl .dot, .fb button.fr.fr.hitb .dot, .fb button.fr.fr.hitv .dot { opacity: 1; transform: scale(1.18); outline: none; box-shadow: 0 0 0 2px rgba(0, 0, 0, .45); }
.prfb button.fr.fr.hit .dot { background: var(--tr-lead, var(--fg)); border-color: var(--tr-lead, var(--fg)); color: var(--bg); }
.fblegend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 11px; color: var(--muted); padding: 2px 4px; }
.fblegend span { display: inline-flex; align-items: center; gap: 5px; }
.fblegend .lg { display: inline-block; width: 13px; height: 13px; border-radius: 50%; background: rgba(24, 17, 14, .88); border: 1px solid var(--rahmen-braun-weiss-2); }
.fblegend .lg.now { background: var(--tr-riff); border-color: var(--tr-riff); }
.fblegend .lg.next { background: transparent; border: 2.5px solid var(--brass); }
.fblegend .lg.ghost { opacity: .4; transform: scale(.78); border-color: transparent; }
.fblegend .lg.root { border-color: var(--accent); }
.fblegend .lg.sel { box-shadow: 0 0 0 2px var(--schatten-orange-weiss); border-color: transparent; }
.prboard .fblegend .lg.now { background: var(--tr-lead, var(--fg)); border-color: var(--tr-lead, var(--fg)); }

/* Üben-Griffbrett: Umriss der Form + wandernder Rahmen um die laufende Pattern-Gruppe (Wiedererkennung) */
.prfb { position: relative; }
.prsvg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: visible; }
.prsvg .prshape { fill: rgba(246, 241, 231, .1); stroke: rgba(246, 241, 231, .55); stroke-width: 1.5; }
.prsvg .prgroup { fill: color-mix(in srgb, var(--tr-lead, var(--weiss)) 16%, transparent); stroke: var(--tr-lead, var(--fg)); stroke-width: 2; transition: d .12s ease-out; }
.prsvg .prgroup.jump { transition: none; }
.prfb button.fr .dot { position: relative; z-index: 2; }
.fblegend .lg.shape { border-radius: 3px; width: 18px; background: rgba(246, 241, 231, .1); border: 1.5px solid rgba(246, 241, 231, .55); }
.fblegend .lg.group { border-radius: 3px; width: 18px; background: color-mix(in srgb, var(--tr-lead, var(--weiss)) 16%, transparent); border: 2px solid var(--tr-lead, var(--fg)); }

/* Assistent: eine Karteikarte je Einstellung */
.wiz-steps { flex-wrap: wrap; row-gap: 4px; }
.wiz-steps li { padding-right: 4px; }
.wiz-steps button { padding: 0 6px; }
.stabs { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.allstyles { margin-top: 8px; }
.tunegrid { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 10px; align-items: end; max-width: 560px; }
.tunegrid > label:nth-child(-n+2) { grid-column: 1 / -1; }
.tunegrid select, .tunegrid input { width: 100%; }
#wizGo { min-width: 150px; justify-content: center; }
#wizGo[hidden] { display: none; }
#scBox[hidden] { display: none; }

/* Griffbrett, klarere Rangfolge: Grundton = roter Ring (nie gefüllt), gespielt = immer in Spurfarbe gefüllt – auch Grundton
   und Leersaite –, Palm Mute = Anschlag am Steg (Leiste rechts), kein Griff */
.fb button.fr.fr.root.used .dot { background: rgba(24, 17, 14, .88); border: 2.5px solid var(--accent); color: var(--schrift-rosa-weiss-2); }
.fb button.fr.fr.fr.hit .dot { background: var(--tr-riff); border-color: var(--tr-riff); color: var(--bg); }
.fb button.fr.fr.fr.hitl .dot { background: var(--tr-lead); border-color: var(--tr-lead); color: var(--bg); }
.fb button.fr.fr.fr.hitb .dot { background: var(--tr-bass); border-color: var(--tr-bass); color: var(--bg); }
.fb button.fr.fr.fr.hitv .dot { background: var(--tr-voc); border-color: var(--tr-voc); color: var(--bg); }
.prfb button.fr.fr.fr.hit .dot { background: var(--tr-lead, var(--fg)); border-color: var(--tr-lead, var(--fg)); }
.fb button.fr.fr.fr.root:is(.hit, .hitl, .hitb, .hitv) .dot { box-shadow: 0 0 0 2.5px var(--accent), 0 0 0 4.5px rgba(0, 0, 0, .5); }
.fblegend .lg.root { background: rgba(24, 17, 14, .88); border: 2.5px solid var(--accent); }
#fb { position: relative; padding-right: 44px; }
.fbpm { position: absolute; right: 0; width: 38px; pointer-events: none; z-index: 3; display: grid; place-items: center;
  border-radius: 5px; border: 1.5px solid var(--brass); color: var(--schrift-gold-weiss-3); font: 600 10px/1 var(--mono); letter-spacing: .02em;
  background: repeating-linear-gradient(-45deg, rgba(201, 162, 39, .38) 0 4px, rgba(201, 162, 39, .14) 4px 8px); }
.fbpm[hidden] { display: none; }
.fblegend .lg.pm { border-radius: 3px; width: 20px; border: 1.5px solid var(--brass); background: repeating-linear-gradient(-45deg, rgba(201, 162, 39, .38) 0 3px, rgba(201, 162, 39, .14) 3px 6px); }
/* Dead Note: kein Griff, nur abdämpfen – ✕ in Spurfarbe auf den gedämpften Saiten */
.fb button.fr.fr.fr.dead .dot { opacity: 1; background: rgba(24, 17, 14, .9); color: transparent; transform: none; box-shadow: none; position: relative; }
.fb button.fr.fr.fr.dead .dot::after { content: ""; position: absolute; inset: 22%; color: var(--tr-riff);
  background: linear-gradient(45deg, transparent 41%, currentColor 41% 59%, transparent 59%), linear-gradient(-45deg, transparent 41%, currentColor 41% 59%, transparent 59%); }  /* gezeichnetes ✕: genau mittig, unabhängig von der Schrift */
.fb button.fr.fr.fr.dead.hitl .dot::after { color: var(--tr-lead); }
.fb button.fr.fr.fr.dead.hitb .dot::after { color: var(--tr-bass); }
.fb button.fr.fr.fr.dead.hit .dot { border: 2px solid var(--tr-riff); }
.fb button.fr.fr.fr.dead.hitl .dot { border-color: var(--tr-lead); }
.fb button.fr.fr.fr.dead.hitb .dot { border-color: var(--tr-bass); }
.fblegend .lg.dead { display: inline-grid; place-items: center; background: rgba(24, 17, 14, .9); border: 1px solid var(--tr-riff); color: var(--tr-riff); font-size: 9px; font-weight: 700; font-style: normal; }
/* Schalter „als Nächstes“ in der Griffbrett-Legende (Benutzer-Einstellung): aus = keine Ringe um den nächsten Ton */
.fblegend .lgtog { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: 12px; font: inherit; font-weight: 500; color: var(--muted); cursor: pointer;
  border: 1px solid var(--line); background: transparent; }
.fblegend .lgtog[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--fg); }
.fblegend .lgtog[aria-pressed="false"] .lg { opacity: .35; }
body.nonext .fb button.fr.fr.fr.nexthit .dot, body.nonext .fb button.fr.fr.nexthit .dot { outline: none; }

/* Assistent auf dem Handy: Vollbild, Schritt-Leiste als eine wischbare Zeile (nur der aktuelle Schritt mit Namen),
   Inhalt scrollt senkrecht, Knöpfe unten über die volle Breite, kein Hinweistext in der Fußzeile */
body.phone dialog.wizard { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
body.phone dialog.wizard[open] { grid-template-columns: minmax(0, 1fr); }
body.phone .wiz-head { gap: 8px; padding: 8px 10px; }
body.phone .wiz-head h2 { display: none; }
body.phone .wiz-steps { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0; gap: 4px; }
body.phone .wiz-steps::-webkit-scrollbar { display: none; }
body.phone .wiz-steps li { flex: none; padding: 2px 4px 2px 2px; }
body.phone .wiz-steps li:not(.active) button { width: 0; padding: 0; overflow: hidden; }
body.phone .wiz-head .sp { display: none; }
body.phone .wiz-step { padding: 10px; overflow-x: hidden; }
body.phone .wiz-step > *, body.phone .wiz-block { min-width: 0; max-width: 100%; }
body.phone .wiz-foot { padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 6px; }
body.phone .wiz-foot > .hint, body.phone .wiz-foot > .sp { display: none; }
body.phone #wizBack { flex: none; min-width: 0; padding: 0 10px; }
body.phone #wizBack span { display: none; }
body.phone #wizGo, body.phone #wizNext { flex: 1 1 0; min-width: 0; padding: 0 8px; }
body.phone .tunegrid { grid-template-columns: 1fr; display: grid; }
body.phone .tunegrid > label:nth-child(-n+2) { grid-column: auto; }
body.phone .planinfo { flex-wrap: wrap; }
body.phone .seg { flex-wrap: wrap; height: auto; }
body.phone .paths { grid-template-columns: 1fr; }
body.phone .wiz-block { grid-template-columns: minmax(0, 1fr); }
body.phone #planTl { overflow: hidden; max-width: 100%; }
body.phone .psgrid { grid-template-columns: auto minmax(0, 1fr); }
body.phone .psgrid select { min-width: 0; width: 100%; }
body.phone .planlen { flex: 1 1 100%; min-width: 0; }
body.phone .planlen input[type="range"] { flex: 1 1 auto; min-width: 0; width: auto; }
body.phone #planTargetV { width: auto; min-width: 40px; }
body.phone .wiz-steps { position: relative; scroll-behavior: smooth; }
/* Handy: Steckbriefe als eigener Reiter „Stile“ unten (body.briefsview = Lernen-Bereich nur mit den Steckbriefen) */
body.briefsview #subtabs { display: none; }
body.phone #subtabs button[data-sec="stile"] { display: none; }
/* Song-Plan: „−“ zum Kürzen nur auf Touch-Geräten (Maus: Rechtsklick/Umschalt-Klick auf die Taktzahl) */
.planblk .prm { display: none; }
@media (pointer: coarse) {
  .planblk .prm { display: inline-grid; place-items: center; border: 0; border-radius: 9px; padding: 0; width: 28px; min-height: 28px;
    background: color-mix(in srgb, var(--c) 30%, transparent); color: var(--fg); font-size: 15px; line-height: 1; }
  .planblk .prm:disabled { opacity: .35; }
  .planblk .pr { min-height: 28px; }
}
.planblk .pr { white-space: nowrap; }

/* Ton-Menü (Doppelklick auf einen Ton im Tab) */
.notepop { width: 300px; gap: 4px; padding: 8px 10px 10px; }
.notepop header { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.notepop header button { width: 28px; height: 28px; justify-content: center; padding: 0; font-size: 18px; }
.notepop .eyebrow { padding: 6px 0 2px; }
.notepop .nmgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.notepop .nmgrid button, .notepop .nmdel { height: 30px; white-space: nowrap; justify-content: space-between; background: var(--panel-2); font-size: 12.5px; }
.notepop button[aria-pressed="true"] { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.notepop button:disabled { opacity: .4; }
.notepop kbd { font: 10.5px/1 ui-monospace, monospace; padding: 2px 4px; border: 1px solid var(--line); border-radius: 3px; opacity: .75; }
.notepop .nmfret { display: grid; grid-template-columns: 1fr 34px 34px 34px; align-items: center; gap: 3px; }
.notepop .nmfret .eyebrow { padding: 0; }
.notepop .nmfret button { justify-content: center; background: var(--panel-2); font-size: 16px; }
.notepop .nmfret b { text-align: center; font-size: 15px; }
.notepop .nmdel { margin-top: 6px; }
.notepop .hint { margin: 4px 0 0; font-size: 11px; opacity: .7; }


/* ----- Ohrwurm neben der Kreativität ----- */
.crrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.crrow > .lvseg { flex: 1 1 auto; }
.crrow .seg button svg { width: 15px; height: 15px; }
#library [data-hoerlib].pvon { color: var(--accent); border-color: var(--accent); }

/* ----- Geradebügeln (mod/angleichen.js) ----- */
.glattpop { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; min-width: 280px; }
.glattpop .glattrow { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.glattpop .glattrow input { margin: 0; accent-color: var(--accent); }
.glattpop .glattrow span { color: var(--muted); font-size: 12px; }
.glattpop .glattrow.leer { opacity: .55; cursor: default; }
.glattpop [data-glatt] { align-self: flex-end; margin-top: 4px; }
.glattpop[hidden] { display: none; }
/* ==== static/css/13-songbook-spuren-fenster-stile.css ==== */
/* Songbook */
/* „Über“ unten in der Leiste angeheftet (Leiste so hoch wie das Fenster) */
@media (min-width: 701px) {
  .rail { display: flex; flex-direction: column; gap: 6px; }
  .rail .rbhelp { margin-top: auto; }  /* Hilfe + Über unten angeheftet */
}
@media (min-width: 901px) { .rail { align-self: stretch; height: 100%; min-height: 0; } }
@media (min-width: 701px) and (max-width: 900px) { .rail { top: 0; height: var(--railh, calc(100vh - var(--top))); } }  /* --railh: Rest des Fensters ab der Leiste (app.js) */
.saves .save { min-width: 0; cursor: default; user-select: none; }
.saves { overflow-x: hidden; }
.save .btn.del.confirm { background: var(--accent); color: var(--weiss); }
.sbhint { margin: -4px 0 8px; }
.songdlg { width: min(520px, 94vw); }
.songdlg h3 { font-size: 13px; margin: 14px 0 6px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.songdlg .sdex { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.songdlg .sdex .ib { justify-content: flex-start; }
.songdlg .sddel { margin-top: 16px; justify-content: flex-end; }
.songdlg .ib.danger { color: var(--accent); }

/* Songbook: Songs 3/4, Import 1/4; Songliste nutzt die Breite (mehrere Spalten) */
@media (min-width: 901px) {
  .sbcols { grid-template-columns: minmax(0, 3fr) minmax(240px, 1fr); }
  .sbcols .saves { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 6px; max-height: calc(100vh - var(--top) - 170px); align-content: start; }
}

.keysdlg .helplinks { flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }

/* Griffbrett unten im Editor angedockt (unterhalb der scrollenden Tab-Seite, eigene Leiste ohne Scrollbalken), ein-/ausklappbar */
.editor > .fbwrap:not([hidden]) { flex: none; margin: -4px 0 0; padding: 8px 12px 10px; background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 7px; box-shadow: 0 -8px 14px -8px rgba(0, 0, 0, .35); overflow: hidden; }
.editor > .fbwrap.following { box-shadow: 0 -8px 14px -8px rgba(0, 0, 0, .35), inset 0 0 0 1px var(--brass); }
.editor > .fbwrap.folded { padding-top: 5px; padding-bottom: 5px; }
.editor:has(.trackpane.drums-mode) > .fbwrap { display: none !important; }
@media (max-width: 900px) { .editor > .fbwrap:not([hidden]) { position: sticky; bottom: 0; z-index: 6; } }  /* Tablet: Seite scrollt, Griffbrett am Fensterrand */
@media (min-width: 901px) { .editor > .trackpane { overflow-x: hidden; } }

/* Spur-Bereich: Werkzeugzeilen stehen fest, nur die Tabulatur (bzw. das Schlagzeug-Raster) scrollt */
.tabscroll { display: grid; gap: 8px; min-width: 0; }
@media (min-width: 901px) {
  .editor > .trackpane { display: flex; flex-direction: column; overflow: hidden; }
  .editor > .trackpane > * { flex: none; }
  .editor > .trackpane > .tabdock > .tabscroll, .editor > .trackpane > .drumpane { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden;
    overscroll-behavior: contain; align-content: start; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
  .editor > .trackpane > .tabdock > .tabscroll { margin-right: -6px; padding-right: 6px; }
}

/* Werkzeuge über der Tabulatur platzsparend: flachere Knöpfe, engere Zeilen, ausgeschaltete Pedale nur als Punkt (Name im Tooltip) */
@media (min-width: 901px) {
  .editor { --ctl-h: 25px; }
  .editor > .trackpane { gap: 5px; padding: 6px 10px 8px; }
  .trackpane > .ctxrow:not([hidden]), .trackpane > .toolbar { padding: 2px 6px; gap: 4px; row-gap: 3px; border-radius: 6px; }
  .trackpane .ib.sm { padding-left: 6px; padding-right: 6px; }
  .trackpane .ib.sm svg { width: 15px; height: 15px; }
  .trackpane .eyebrow { font-size: 10px; }
  .trackrow { padding: 0; }
  .trackrow .mped { height: 22px; min-width: 0; font-size: 10.5px; padding: 0 6px; }
  .trackrow .mped:not(.on) { padding: 0; justify-content: center; font-size: 0; gap: 0; }
  .trackrow .ampmini { height: 22px; width: 80px; font-size: 11px; }
  .trackrow .tonebar { gap: 3px; }
  .trackrow .mped:not(.on) { width: 15px; }
  .trackrow #varEvery { max-width: 150px; text-overflow: ellipsis; }
  .trackrow { column-gap: 4px; }
  .editor > .tracktabs button, .editor > .tracktabs [role="tab"] { padding-top: 4px; padding-bottom: 4px; }
}

/* Setup-Spalte: NAM-Bereich darf nicht breiter werden als die Spalte (sonst waagerechter Scrollbalken) */
.dockbody > .docksec { min-width: 0; }
.namlib .eyebrow, .namlib .namhint { white-space: normal; overflow-wrap: anywhere; }
.namlib .namhint { margin: 0 0 4px; font-size: 11px; }
.namlib .namlist { grid-template-columns: minmax(0, 1fr); min-width: 0; } .namlib .namit { min-width: 0; }

/* Ansicht anpassen: Ziehgriffe (Ablauf-Höhe, Tabulatur ↔ Griffbrett), Zeilen der Tabulatur, Griffbrett skaliert mit */
.rowgrip { display: none; }
@media (min-width: 901px) {
  .rowgrip { display: block; flex: none; cursor: row-resize; position: relative; z-index: 7; }
  .rowgrip::after { margin-left: -21px; }
  .editor > .rowgrip[hidden] { display: none; }
  .songbar { position: relative; }
  .view.work.custom-song .songbar { height: var(--songh); max-height: none; }
  .editor.tabfixed > .trackpane { flex: none; }
  .editor.tabfixed > .trackpane > .tabdock { flex: none; }
  .editor.tabfixed > .trackpane > .tabdock > .tabscroll { flex: 1 1 auto; }  /* Höhe fest (layoutEditor), Breite füllt den Platz neben den Akkorden */
  .editor.tabfixed > .fbwrap:not(.folded):not([hidden]) { flex: 1 1 auto; min-height: 0; align-content: start; }  /* Titelzeile/Legende bleiben fest, nur die Bundreihen wachsen */
  .editor > .fbwrap { align-content: start; }
  #fbwrap .fb button.fr { height: var(--frh, 27px); }
  #fbwrap .fb button.fr.top, #fbwrap .fb button.fr.bot { height: calc(var(--frh, 27px) + 3px); }
  #fbwrap .fb button.fr .dot { height: min(19px, calc(var(--frh, 27px) - 5px)); font-size: min(11px, calc(var(--frh, 27px) * .42)); }
  .tabrows { max-width: 84px; font-size: 11px; padding-left: 4px; padding-right: 2px; }
}
body.rowresizing, body.rowresizing * { cursor: row-resize !important; user-select: none !important; }

/* Kleine Fenster (Song, NAM-Capture): Inhalt mit Abstand zum Rand */
dialog.keysdlg.namdlg, dialog.keysdlg.songdlg { padding: 0; }
.namdlg > :not(.props-head), .songdlg > :not(.props-head) { margin-left: 18px; margin-right: 18px; }
.namdlg > .props-head + *, .songdlg > .props-head + * { margin-top: 14px; }
.namdlg > :last-child, .songdlg > :last-child { margin-bottom: 16px; }

/* Palette: Verstärker und Boxen als Liste (volle Namen), aufgenommene Pedale über die ganze Breite */
.palgrp.palgear { grid-template-columns: minmax(0, 1fr); gap: 2px; }
.rigdock .palped.gearb { height: 23px; width: auto; min-width: 0; padding: 0 6px; font-size: 10.5px; gap: 5px; justify-content: flex-start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; }
.rigdock .palped.gearb:not(.cap) { font-style: normal; }
.palped.gearb .led { width: 6px; height: 6px; background: var(--flaeche-orange-mittel); }
.palped.gearb.on { border-color: var(--brass); box-shadow: inset 0 0 0 1px var(--brass); }
.palh i { font-style: normal; text-transform: none; letter-spacing: 0; opacity: .8; }
.rigdock .palgrp .palped.cap:not(.gearb) { grid-column: 1 / -1; height: 23px; font-size: 10.5px; }
.amp.dropzone, .cab.dropzone { outline: 2px dashed var(--brass); outline-offset: 2px; }

/* Stile › Stile entdecken (Rechner): Steckbriefe wie auf dem Handy, gut lesbar */
.briefsdesk { max-width: none; }
.briefsdesk .guide { display: grid; gap: 12px; max-width: none; }
.briefsdesk .sechead p { max-width: 900px; }
.briefsdesk .briefnav { max-width: none; }
.briefsdesk .bands { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; align-items: stretch; }
.briefsdesk .bands .brief { height: 100%; box-sizing: border-box; grid-template-rows: auto auto auto auto auto 1fr auto; }
.briefsdesk .bands .brief > .row:last-child { align-self: end; }
.briefsdesk #briefPick { grid-template-columns: minmax(0, 1fr); }
.briefsdesk .stylegrid.cathits { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); align-items: stretch; }
.briefsdesk .stylegrid.cathits > * { height: 100%; box-sizing: border-box; }
.briefsdesk .brief h3 { margin: 2px 0 4px; }

/* Setup-Palette: jedes Gerät eine Zeile (Name abgeschnitten statt umgebrochen), Gruppen auf-/zuklappbar */
.rigdock .palgrp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; min-width: 0; }
.rigdock .palgrp .palbody { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; min-width: 0; }
.rigdock .palgrp.shut .palbody { display: none; }
.rigdock .palh { display: flex; align-items: center; gap: 5px; width: 100%; padding: 3px 2px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; text-align: left; }
@media (hover: hover) { .rigdock .palh:hover{ color: var(--fg); } }
.rigdock .palh svg { width: 11px; height: 11px; flex: none; transition: transform .15s; }
.rigdock .palgrp.shut .palh svg { transform: rotate(-90deg); }
.rigdock .palh span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rigdock .palh small { flex: none; font-size: 10px; opacity: .7; letter-spacing: 0; }
.rigdock .palbody .palped { display: flex; width: auto; min-width: 0; height: 23px; padding: 0 6px; gap: 6px; font-size: 11px; justify-content: flex-start;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rigdock .palbody .palped .led { width: 6px; height: 6px; flex: none; }

/* Eigenen Stil bauen: Seite = Meine Stile als Kacheln; Bauen/Ändern im Fenster mit drei Schritten */
.kit.kitpage { display: block; }
.kitminepanel { display: grid; gap: 8px; }
.kitminepanel .kitmine { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; align-items: stretch; max-height: none; }
.kitminepanel .kitmine > .kitgrp { grid-column: 1 / -1; margin-top: 6px; }
.kitminepanel .kititem { height: 100%; box-sizing: border-box; }
.kitminehint { margin: 0; }
dialog.keysdlg.kitdlg { width: min(1100px, 96vw); height: min(88vh, 900px); padding: 0; display: none; }
dialog.keysdlg.kitdlg[open] { display: flex; flex-direction: column; }
.kitdlg .props-head { flex: none; flex-wrap: wrap; }
.kitdlg .kitsteps button { padding: 4px 10px; }
.kitdlg .kittitle { flex: 1 1 260px; min-width: 0; font-family: var(--display); font-size: 22px; font-weight: 900; text-transform: uppercase; letter-spacing: .02em;
  color: var(--fg); background: transparent; border: 1px solid transparent; border-radius: 6px; padding: 2px 8px; margin-left: -8px; }
@media (hover: hover) { .kitdlg .kittitle:hover{ border-color: var(--line); } }
.kitdlg .kittitle:focus { border-color: var(--accent); outline: none; background: var(--panel-2); }
.kitdlg .kittitle::placeholder { color: var(--muted); }
.kitdlgfoot #kitBack, .kitdlgfoot #kitNext { min-width: 96px; justify-content: center; }  /* Weiter/Speichern gleich breit: nichts springt */
.kitstep #kitDesc { width: 100%; box-sizing: border-box; }
.kitdlgbody { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-gutter: stable; padding: 14px 18px; }
.kitstep { display: grid; gap: 10px; align-content: start; }
.kitstep[hidden] { display: none; }
.kitstep .kitingrbox { max-height: none; }
.kitstep .kitingr { max-height: 48vh; overflow-y: auto; }
.kitdlgfoot { flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-top: 1px solid var(--line); }
.kitdlgfoot [hidden] { display: none; }
.kitstep .kitnum, .kitstep .kitsel { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 16px; }
.irlib .eyebrow, .irlib .namhint { white-space: normal; overflow-wrap: anywhere; } .irlib .namhint { margin: 0 0 4px; font-size: 11px; }

/* Ablauf größer gezogen: Zeitleiste und Abschnitts-Karten wachsen mit (Spur-Streifen höher), statt Leerraum */
@media (min-width: 901px) {
  .view.work.custom-song .songbar { display: flex; flex-direction: column; }
  .view.work.custom-song .songbar > .sb-head, .view.work.custom-song .songbar > .tlrow { flex: none; }
  .view.work.custom-song .songbar > .arrwrap { flex: 1 1 auto; min-height: 0; grid-template-rows: minmax(0, 1fr); }
  .view.work.custom-song .arr { height: 100%; box-sizing: border-box; align-content: stretch; }
  .view.work.custom-song .arr .card { grid-template-rows: auto minmax(0, 1fr) auto; }
  .view.work.custom-song .arr .card .lanes { grid-auto-rows: minmax(0, 1fr); }
  .view.work.custom-song .arr .card .lane { align-items: stretch; }
  .view.work.custom-song .arr .card .lane b { align-self: center; }
  .view.work.custom-song .arr .card .lane { min-height: 0; }
  .view.work.custom-song .arr .card .lane canvas { height: var(--laneh, 9px) !important; align-self: center; }
}

/* Setup-Spalte: oben (Gilt für, Instrument, Hören) und unten (Import) fest, nur die Geräteliste scrollt */
@media (min-width: 901px) {
  .rigdock .dockbody { overflow: hidden; }
  .rigdock .dockbody > .docksec { flex: none; }
  .rigdock .dockbody > #rigPalBox { flex: 1 1 auto; min-height: 120px; overflow-y: auto; overflow-x: hidden; margin: 0 -12px; padding: 0 12px;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
  .rigdock .dockbody > #rigPalBox > .eyebrow { position: sticky; top: 0; z-index: 2; display: block; padding: 6px 0 4px; background: var(--panel); }
  .rigdock .dockbody > .irlib .namhint { font-size: 10.5px; }
}
@media (min-width: 901px) {
  .rigdock .dockbody > .irlib #namCount, .rigdock .dockbody > .irlib #irCount { display: none; }  /* steht im Tooltip des Abschnitts */
  .rigdock .dockbody > .irlib { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
  .rigdock .dockbody > .irlib > .eyebrow { flex: 1 1 100%; }
}

/* Setup-Spalte kompakt: oben Instrument als Symbolreihe, Hinweise als Tooltip; unten beide Importe in einer Zeile */
@media (min-width: 901px) {
  .rigdock .dockbody { gap: 7px; padding-top: 10px; }  /* Einklappen sitzt mittig am Rand, oben kein Platz nötig */
  .rigdock .dockbody > .docksec { gap: 4px; }
  .rigdock .dockbody > .docksec > .eyebrow { font-size: 10px; margin: 0; }
  .rigdock #rigModeInfo { display: none; }
  .rigdock #rigForSec .dockrow .ib { height: 24px; font-size: 11px; padding: 0 6px; }
  .rigdock .rigtr { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; }
  .rigdock .rigtr button { height: 28px; padding: 0; justify-content: center; }
  .rigdock .rigtr button span { display: none; }
  .rigdock .rigtr button svg { width: 16px; height: 16px; }
  .rigdock .dockrow .rigplay, .rigdock #rigUndo { height: 25px; font-size: 11.5px; }
  .rigdock .dockfoot { flex: none; display: flex; flex-wrap: wrap; gap: 6px; }
  .rigdock .dockfoot > .irlib { flex: 1 1 0; }
  .rigdock .dockfoot .irimp { display: flex; box-sizing: border-box; text-overflow: ellipsis; }
  .rigdock .dockfoot > .irlib { display: block; min-width: 0; }
  .rigdock .dockfoot > .irlib > .eyebrow, .rigdock .dockfoot #namCount, .rigdock .dockfoot #irCount { display: none; }
  .rigdock .dockfoot .irimp { width: 100%; height: 26px; font-size: 11px; justify-content: center; padding: 0 4px; white-space: nowrap; overflow: hidden; }
  .rigdock .dockfoot #namOff { font-size: 10.5px; margin: 0 0 4px; }
}

.rigdock .palbody .palped { cursor: grab; }

/* Fenster „Erfinden“ */
dialog.keysdlg.invdlg { width: min(560px, 94vw); padding: 0; }
.invdlg .invbody { display: grid; gap: 8px; padding: 14px 18px; max-height: 70vh; overflow-y: auto; }
.invdlg .invbars { display: flex; flex-wrap: wrap; gap: 4px; }
.invdlg .invbars button { height: 26px; padding: 0 9px; border-radius: 5px; border: 1px solid var(--line); background: var(--panel-2); color: var(--fg); font-size: 12px; }
.invdlg .invbars button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); }
.invdlg .invitems { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; }
.invdlg .invitems .chk { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.invdlg .invitems .chk.off { opacity: .45; }
.invdlg .invitems small { color: var(--muted); }
.invdlg .eyebrow { margin-top: 4px; }

/* Einheitliche Ziehgriffe (Spaltenbreite und Höhe): schmaler Streifen mit Griffmarke, beim Überfahren/Ziehen messingfarben */
@media (min-width: 901px) {
  .rowgrip, .colgrip { border-radius: 4px; }
  .rowgrip { height: 8px; margin: -4px 0 -4px; }
  .songgrip { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; margin: 0; }  /* im Rahmen bleiben, sonst bekommt der Ablauf eine Scrollleiste */
  .rowgrip::after { content: ""; position: absolute; left: 50%; top: 50%; width: 40px; height: 3px; margin: -1.5px 0 0 -20px; border-radius: 2px; background: var(--line); }
  .colgrip::after { content: ""; position: absolute; top: 50%; left: 50%; width: 3px; height: 40px; margin: -20px 0 0 -1.5px; border-radius: 2px; background: var(--line); }
   .rowgrip.dragging, .colgrip.dragging{ background: color-mix(in srgb, var(--brass) 35%, transparent); } @media (hover: hover) { .rowgrip:hover,.colgrip:hover{ background: color-mix(in srgb, var(--brass) 35%, transparent); } }
   .rowgrip.dragging::after, .colgrip.dragging::after{ background: var(--brass); } @media (hover: hover) { .rowgrip:hover::after,.colgrip:hover::after{ background: var(--brass); } }
}

/* Einheitliches Lösch-Kreuz: unauffällig, beim Überfahren sichtbar, erster Klick rot (zweiter löscht) */
.xdel { display: inline-grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .25); color: var(--fg); opacity: .0; cursor: pointer; flex: none; transition: opacity .12s; }
.xdel svg { width: 11px; height: 11px; }
@media (hover: hover) { .xdel:hover{ background: color-mix(in srgb, var(--accent) 55%, transparent); color: var(--weiss); } }
.xdel.confirm { background: var(--accent); color: var(--weiss); opacity: 1; }
 .xdel:focus-visible, .save .xdel, .kititem .xdel{ opacity: .85; } @media (hover: hover) { :hover > .xdel{ opacity: .85; } }
.arr .card > .xdel, .lib .card > .xdel { position: absolute; top: 4px; right: 4px; z-index: 2; }
.arr .card .cn, .lib .card .cn { padding-right: 22px; }
#trash { display: none !important; }  /* entfernen per ✕ statt Papierkorb-Leiste */
@media (pointer: coarse) { .xdel { opacity: .85; } }

/* Stimmung und Tonvorrat stellt man in den Song-Eigenschaften ein (Knopf daneben) – im Kopf des Ablaufs nicht doppelt */
.songbar .sb-head .songkey { display: none !important; }

/* Song suchen (Lupe neben dem Titel) */
.finddlg { width: min(520px, calc(100vw - 32px)); }
.finddlg .findin { display: flex; align-items: center; gap: 8px; padding: 6px 10px; margin: 8px 0; border: 1px solid var(--line, var(--rahmen-grau-dunkel-2)); border-radius: 8px; background: var(--bg2, rgba(255,255,255,.04)); }
.finddlg .findin svg { width: 16px; height: 16px; flex: none; opacity: .7; fill: none; stroke: currentColor; stroke-width: 2; }
.finddlg .findin input { flex: 1; border: 0; background: transparent; color: inherit; font: inherit; outline: none; padding: 2px 0; min-width: 0; }
.finddlg .findlist { max-height: min(50vh, 420px); height: min(50vh, 420px); overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.finddlg .findsong { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; padding: 6px 10px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.finddlg .findsong small { opacity: .65; }
@media (hover: hover) { .finddlg .findsong:hover{ background: var(--bg2, rgba(255,255,255,.05)); } }
.finddlg .findsong.on { border-color: var(--accent, var(--rahmen-orange-hell)); background: var(--bg2, rgba(255,255,255,.06)); }
.finddlg .findsong.cur b::after { content: ' · offen'; font-weight: 400; opacity: .6; }
.finddlg .findhint { margin: 8px 0 0; font-size: 12px; }

/* Akkord-Fenster: rechts neben der Tabulatur angedockt, gleiche Höhe, scrollt selbst (Handy: über der Tabulatur) */
.tabdock { display: grid; gap: 8px; min-width: 0; }
.tabdock > .chordpane { order: -1; }
.chordpane .cphead { display: flex; align-items: center; gap: 6px; }
.chordpane .cphead b { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 901px) {
  .editor > .trackpane > .tabdock { display: flex; flex: 1 1 auto; min-height: 0; gap: 0; align-items: stretch; }
  .tabdock > .tabscroll { flex: 1 1 auto; min-width: 0; }
  .tabdock > .chordpane { order: 0; flex: 0 0 var(--cpw, 300px); contain: size; min-height: 0; overflow-y: auto; overflow-x: hidden; align-content: start;
    padding: 8px 10px; gap: 7px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
  .tabdock > .chordpane .ctxrow > .eyebrow { margin-top: 2px; }
  .tabdock > .chordpane select { max-width: 100%; }
  .tabdock > .chordpane .cpslot { padding: 0; }
  .tabdock > .chordpane .cpstrum { grid-template-columns: repeat(16, minmax(0, 1fr)); row-gap: 2px; }
  .tabdock > .chordpane #cpApply { width: 100%; justify-content: center; }
  .tabdock > .chordpane #cpHint { font-size: 11px; }
}

/* Tabulatur-Papier füllt den Bereich bis unten, auch wenn nur eine Zeile da ist */
@media (min-width: 901px) {
  .editor > .trackpane > .tabdock > .tabscroll { display: flex; flex-direction: column; gap: 8px; }
  .tabdock > .tabscroll > .paper { flex: 1 0 auto; align-content: start; }
  .tabdock > .tabscroll > * { flex-shrink: 0; }
}

/* Takte anhängen: rechts unten an der Tabulatur */
/* Auswahlfelder in den Werkzeugzeilen: Text nicht abschneiden */
.trackpane .ctxrow select, .trackpane .toolbar select { font-size: 12px; padding-top: 1px; padding-bottom: 1px; }

/* Ziehleiste zwischen Tabulatur und Akkord-Fenster (gleicher Stil wie die übrigen Spaltengriffe) */
.tabdock > .cpgrip { display: none; }
@media (min-width: 901px) {
  .tabdock > .cpgrip { display: block; position: relative; flex: 0 0 10px; width: 10px; margin: 0 2px; align-self: stretch; }
  .tabdock > .cpgrip:has(+ .chordpane[hidden]) { display: none; }
}

/* ✕ an jedem Takt: diesen Takt entfernen (zweimal klicken); letzte Zeile eines ungeraden Songteils = ein Takt (halbe Breite) */
.system .bnums .bcell { display: flex; align-items: center; gap: 2px; min-width: 0; }
.system .bnums .xdel { width: 16px; height: 16px; padding: 0; color: var(--schrift-braun-mittel); background: rgba(0, 0, 0, .08); opacity: 0; transition: opacity .12s; }
 .system .bnums .xdel:focus-visible, .system .bnums .xdel.confirm{ opacity: 1; } @media (hover: hover) { .system .bnums .bcell:hover .xdel{ opacity: 1; } }
.system .bnums .xdel svg { width: 10px; height: 10px; }
@media (hover: none) { .system .bnums .xdel { opacity: .8; } }
.system.half > .staff, .system.half > .dgrid { width: calc(50% + 15px); }

/* Akkord-Fenster: Titelleiste oben und Knopfleiste unten fest, nur der Inhalt dazwischen scrollt */
.chordpane .cpbody { display: grid; gap: 8px; align-content: start; min-height: 0; }
@media (min-width: 901px) {
  .tabdock > .chordpane:not([hidden]) { display: flex; flex-direction: column; overflow: hidden; padding: 0; gap: 0; }
  .tabdock > .chordpane > .cphead { flex: none; border-bottom: 1px solid var(--line); }
  .tabdock > .chordpane > .cpbody { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
  .tabdock > .chordpane > .cpfoot { flex: none; border-top: 1px solid var(--line); }
}

/* Fenster: Titelleiste und Knopfleiste fest, nur der Inhalt scrollt (siehe dlgFrame in app.js) */
dialog.keysdlg.framed[open] { display: flex; flex-direction: column; max-height: calc(100vh - 40px); overflow: hidden; }
dialog.keysdlg.framed > .props-head, dialog.keysdlg.framed > .dlgfoot { flex: none; }
dialog.keysdlg.framed > .dlgbody { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
dialog.keysdlg.framed > .aboutbody { max-height: none; }
dialog.keysdlg.framed > .dlgfoot:not(.kitdlgfoot) { margin: 0; padding: 10px 18px 14px; border-top: 1px solid var(--line); }
dialog.keysdlg.namdlg.framed > .dlgbody, dialog.keysdlg.songdlg.framed > .dlgbody { margin: 0; padding: 14px 18px 14px; }

/* Song suchen: Abstand zum Fensterrand wie in den übrigen Fenstern */
dialog.keysdlg.finddlg[open] { display: flex; flex-direction: column; max-height: calc(100vh - 40px); overflow: hidden; }
.finddlg > .props-head { flex: none; }
.finddlg > .findin { flex: none; margin: 14px 18px 8px; }
.finddlg > .findlist { flex: 1 1 auto; min-height: 0; max-height: none; margin: 0 10px; padding: 0 8px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.finddlg > .findlist > .hint { margin: 6px 2px; }
.finddlg > .findhint { flex: none; margin: 0; padding: 10px 18px 14px; border-top: 1px solid var(--line); margin-top: 10px; }
dialog.keysdlg.finddlg { width: min(560px, calc(100vw - 32px)); }

/* Stil-Kacheln: ✕ oben rechts in der Ecke der Kachel, Stern links daneben */
.kititem { position: relative; grid-template-columns: minmax(0, 1fr); }
.kititem > .xdel.del { position: absolute; top: 5px; right: 5px; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; z-index: 2; }
.kititem.own .kitload .favstar { right: 28px; }
.kititem.own .kitload strong { padding-right: 44px; }

/* Stile entdecken: Steckbriefe ziehen (Reihenfolge), ✕ bei eigenen Stilen oben rechts, Knopf „Neuen Stil bauen“ */
.briefsdesk .brief { position: relative; }
.briefsdesk .brief[draggable="true"] { cursor: grab; }
.briefsdesk .brief.dragging { opacity: .4; }
.briefsdesk .brief.dropbefore { box-shadow: -4px 0 0 var(--brass); }
.briefsdesk .briefhead.dropzone { color: var(--brass); text-decoration: underline; }
.briefsdesk .brief > .xdel { position: absolute; top: 8px; right: 8px; z-index: 2; }
.briefsdesk .brief.own > .favstar { right: 34px; }
.kittabs .kitnewtab { color: var(--fg); }

/* Beim Abspielen: die gerade gespielte Variante wird gezeigt (nur Anzeige), ihr Knopf leuchtet */
.paper.showother .staff { pointer-events: none; }
.paper.showother { box-shadow: inset 0 0 0 2px var(--brass); }
.varab button.heard { box-shadow: 0 0 0 2px var(--brass); }

.cpchip b sup, .cpslot sup { font-size: .72em; color: var(--muted); margin-left: 1px; }
#cpVarRow select { min-width: 0; flex: 1 1 120px; }
/* Palette: nur Pedale auf dem Board des gewählten Instruments farbig hinterlegt, die übrigen neutral (Farbe nur an der LED) */
.rigdock .palbody .palped:not(.gearb) { background: var(--panel-2); border-color: color-mix(in srgb, var(--pc) 30%, var(--panel-2)); }
.rigdock .palbody .palped:not(.gearb):not(.on) { color: color-mix(in srgb, var(--fg) 65%, transparent); }
.rigdock .palbody .palped.on:not(.gearb) { background: color-mix(in srgb, var(--pc) 32%, var(--panel)); border-color: var(--brass); box-shadow: inset 0 0 0 1px var(--brass); }

/* Sehr niedriger Ablauf: Spurstreifen nur noch als Farbstreifen (2–8 px), ohne Beschriftung und Innenabstand */
.view.work.custom-song .arr.lanetiny .card .lane { grid-template-columns: minmax(0, 1fr); padding: 0; gap: 0; }
.view.work.custom-song .arr.lanetiny .card .lane b, .view.work.custom-song .arr.lanetiny .card .lane .dl { display: none; }
.view.work.custom-song .arr.lanetiny .card .lanes { gap: 1px; margin: 0; }
.view.work.custom-song .arr.lanetiny .card > .bc { display: none; }  /* kleiner Ablauf: Titel bleibt, Fußzeile (×2 …) weg */

/* Ablauf gezogen: Karte und Spuren füllen den Bereich; Titel und Fußzeile behalten ihre Höhe */
.view.work.custom-song .arrwrap > .arr { height: calc(100% + 12px); }  /* .arr hat margin -6 px: Höhe ausgleichen */
.view.work.custom-song .arr .card { height: 100%; box-sizing: border-box; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.view.work.custom-song .arr.lanetiny .card > .bc { display: none; }
.view.work.custom-song .arr.lanetiny .card .lane { grid-template-columns: minmax(0, 1fr); padding: 0; gap: 0; }
.view.work.custom-song .arr.lanetiny .card .lane b, .view.work.custom-song .arr.lanetiny .card .lane .dl { display: none; }
/* ==== static/css/14-instrumentenseiten-werkstatt-bandsetup.css ==== */
/* ================= Instrumentenseiten: Reiter (rechts: mitspielen, Songteil|Song) · eine feste Instrumentenzeile · Werkzeuge */
.tracktabs .ttright { margin-left: auto; align-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 0 4px 10px; }
.tracktabs .viewscope button { padding: 2px 9px; font-size: 12px; }
/* Erfinden steckt in „Neu komponieren“ – nicht noch einmal in den Instrumentenzeilen */
#vocSuggest, #v2Suggest, #kSuggest, #wSuggest, #g3Suggest, #djSuggest, #bassRiff, #bassBreak, #leadtools, #djrow > .hint { display: none !important; }
.instbar > .ctxrow:not([hidden]) { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.instwrap { display: grid; gap: 6px; }
.instbar { display: grid; gap: 6px; }
.instmore[hidden] { display: none; }
@media (min-width: 901px) {
  .editor > .trackpane > .instwrap { flex: none; position: relative; display: block; height: calc(var(--ctl-h, 25px) + 8px); }
  .instbar { position: absolute; inset: 0 0 auto 0; display: flex; flex-wrap: nowrap; align-items: center; gap: 4px; min-height: 100%; box-sizing: border-box;
    padding: 2px 34px 2px 6px; overflow: hidden; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; }
  .instbar > .ctxrow:not([hidden]) { display: contents; }
  .instbar > .ctxrow > *, .instbar .tonebar > * { flex: none; }
  .instbar .tonebar { order: 50; margin-left: auto; display: inline-flex; align-items: center; gap: 4px; flex: none; }
  .instbar .divider { align-self: stretch; width: 1px; margin: 3px 2px; background: var(--line); flex: none; }
  .instwrap.open .instbar { flex-wrap: wrap; overflow: visible; z-index: 40; row-gap: 4px; box-shadow: 0 10px 28px rgba(0, 0, 0, .5); border-color: var(--brass); }
  .instmore { position: absolute; right: 3px; top: 3px; z-index: 41; height: calc(var(--ctl-h, 25px)); min-width: 26px; padding: 0 6px; border: 1px solid var(--line); border-radius: 5px;
    background: var(--panel); color: var(--fg); cursor: pointer; font-weight: 700; line-height: 1; }
   .instwrap.open .instmore{ border-color: var(--brass); color: var(--brass); } @media (hover: hover) { .instmore:hover{ border-color: var(--brass); color: var(--brass); } }
  /* Effekte: Name bleibt sichtbar (auch ausgeschaltet), gekürzt; Details in der Vorschau */
  .instbar .mped, .instbar .mped:not(.on) { width: auto; max-width: 78px; min-width: 0; height: 22px; padding: 0 6px; gap: 4px; font-size: 10.5px; justify-content: flex-start; }
  .instbar .mped .mn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .instbar .ampmini { max-width: 110px; }
}
/* Vorschau eines Pedals / Verstärkers beim Darüberfahren */
.pedtip { position: fixed; z-index: 200; pointer-events: none; background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .55); }
.pedtip[hidden] { display: none; }
.pedtip .pthead { font-weight: 600; margin-bottom: 6px; }
.pedtip .pthead small { color: var(--muted); font-weight: 400; margin-left: 4px; }
.pedtip .ptbody { display: flex; gap: 8px; margin: 0; padding: 0; overflow: visible; }
.pedtip .ptbody .gmenu, .pedtip .ptbody .px { display: none; }

/* ================= Werkstatt: Songteile rechts neben dem Ablauf, Editor (Tabulatur + Griffbrett) über die volle Breite */
.libtabs .newtog { display: none; }
@media (min-width: 901px) {
  .view.work, .view.work.custom-lib:not(.lib-folded) { grid-template-columns: minmax(0, 1fr) var(--libw, 300px) !important; grid-template-areas: "song lib" "edit edit" !important; grid-template-rows: auto minmax(0, 1fr) !important; }
  .view.work.lib-folded { grid-template-columns: minmax(0, 1fr) 30px !important; }
  .view.work > .libcol { grid-area: lib; align-self: stretch; contain: size; position: relative; top: auto; height: auto; max-height: none; min-height: 0;
    display: flex; flex-direction: column; gap: 6px; padding: 8px; overflow: visible; }
  .libcol .libtabs { flex: none; display: flex; gap: 4px; }
  .libcol .libtabs button { flex: 1 1 0; padding: 4px 6px; font-size: 11.5px; min-width: 0; }
  .libcol .libtabs .newtog { display: inline-flex; flex: none; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 5px; border: 1px solid var(--accent);
    background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--fg); font-size: 11.5px; font-weight: 600; cursor: pointer; }
  .libcol .libtabs .newtog svg { width: 13px; height: 13px; }
  .libcol .libtabs .newtog[aria-expanded="true"] { background: var(--accent); }
  .libcol .libtabs svg { width: 13px; height: 13px; }
  .libcol > .ltpane:not([hidden]) { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 4px; }
  .libcol .ltpane > .col-head { flex: none; display: none; }
  .libcol .ltpane > .lib, .libcol .ltpane > #library { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); align-content: start; gap: 3px; }
  .libcol .ltpane > #libSearch { flex: none; }
  .libcol .lib .card.libitem2 { min-height: 26px; }
  /* Neuer Songteil: Aufklapper unter „+ Neu“ */
  .libcol .newbox { display: none; position: absolute; z-index: 40; top: 40px; right: 8px; width: min(300px, calc(100% - 16px)); background: var(--panel); border: 1px solid var(--brass);
    border-style: solid; border-radius: 7px; padding: 8px; box-shadow: 0 12px 30px rgba(0, 0, 0, .55); }
  .libcol.newopen .newbox { display: grid; }
  .libcol .newbox > .foldhead .fold { display: none; }
  .libcol .newbox.folded > :not(.foldhead) { display: flex; }
  .libcol .foldedge { right: auto; left: -1px; }
  .libcol .foldedge svg { transform: rotate(-90deg); }
  .libcol.folded .foldedge svg { transform: rotate(90deg); }
}

/* Mitspielen je Instrument: kleines Häkchen im Reiter (Klick schaltet stumm/an, wechselt nicht die Spur) */
body :is(.tracktabs [role="tab"], .pvtracks button) .tplay { display: inline-grid; place-items: center; width: 13px; height: 13px; margin-left: 2px; border-radius: 3px; border: 1px solid var(--muted);
  background: transparent; cursor: pointer; flex: none; }
body :is(.tracktabs [role="tab"], .pvtracks button) .tplay[aria-checked="true"] { background: var(--accent); border-color: var(--accent); }
body :is(.tracktabs [role="tab"], .pvtracks button) .tplay[aria-checked="true"]::after { content: ""; width: 6px; height: 3px; border: solid var(--weiss); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
body :is(.tracktabs [role="tab"], .pvtracks button) .tplay.solo-off { background: transparent; border-color: var(--accent); }
body :is(.tracktabs [role="tab"], .pvtracks button) .tplay.solo-off::after { border-color: var(--accent); }
/* Solo (Doppelklick aufs Häkchen): Häkchen in Messing mit Punkt, Reiter farbig umrandet */
body .tracktabs [role="tab"] .tplay.solo { background: var(--brass); border-color: var(--brass); }
body .tracktabs [role="tab"] .tplay.solo::after { content: ""; width: 5px; height: 5px; border: 0; border-radius: 50%; background: var(--bg); transform: none; }
body .tracktabs [role="tab"].soloed { box-shadow: inset 0 -2px 0 var(--brass); }
@media (hover: hover) { body :is(.tracktabs [role="tab"], .pvtracks button) .tplay:hover{ box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); } }
body :is(.tracktabs [role="tab"], .pvtracks button).muted > span:not(.tplay) { text-decoration: line-through; opacity: .7; }
@media (max-width: 700px) { .tracktabs [role="tab"] span.tplay { display: inline-grid; } }

/* Kopfleiste: Live steht direkt neben Mix (nur die erste der beiden schiebt nach rechts) */
.livewrap ~ .mixwrap { margin-left: 0; }  /* Desktop: Live direkt neben Mix (dazwischen liegt der versteckte Handy-Mix-Knopf) */

/* Takte: − [Auswahl] + in der Titelleiste (✕ an einer Taktnummer entfernt genau diesen Takt) */
.barstep { display: inline-flex; align-items: center; gap: 2px; }
.barstep .ib.sm { min-width: 24px; padding: 0 6px; justify-content: center; font-weight: 700; }
/* P.M. setzt man mit Taste P oder im Ton-Menü – kein eigener Knopf in der Werkzeugleiste */
#tPM { display: none !important; }

/* Effekt-Vorschau: so breit wie das Gerät */
.pedtip { width: max-content; max-width: calc(100vw - 16px); padding: 6px; }
.pedtip .pthead { font-size: 11.5px; margin: 0 2px 5px; max-width: 100%; }
.pedtip .ptbody { width: max-content; }
.pedtip .pthead { width: 0; min-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }  /* Titel bestimmt die Breite nicht mit */

/* Übung als Schieberegler, Einzähler mit drei Stufen */
.speedf input[type="range"] { width: 90px; }
.speedf .speedval { font: 600 12px var(--mono); min-width: 40px; text-align: right; }
.countsel { display: inline-flex; align-items: center; gap: 4px; }
.countsel svg { width: 16px; height: 16px; }
.countsel select { font-size: 12px; }
/* Schlagzeug-Reiter: Aus / Metronom / Schlagzeug */
body :is(.tracktabs [role="tab"], .pvtracks button) .tplay.tri[data-mode="click"] { background: var(--brass); border-color: var(--brass); }
body :is(.tracktabs [role="tab"], .pvtracks button) .tplay.tri[data-mode="click"]::after { content: "♩"; width: auto; height: auto; border: 0; transform: none; color: var(--ink); font-size: 10px; line-height: 1; font-weight: 700; }

/* Schlagzeug-Raster auf demselben Papier wie die Tabulatur */
.dgrid { background: var(--paper); box-shadow: inset 0 0 0 1px var(--rahmen-hell); }
/* Gesang, Tasten, DJ: Taktstriche und Zählzeiten sichtbar wie bei der Gitarre */
.staff.vocal .tcol.bar0 { box-shadow: inset 2px 0 0 var(--ink); }
.staff.vocal .tcol.beat { box-shadow: inset 1px 0 0 rgba(27, 23, 25, .22); }
.staff.vocal { box-shadow: inset -2px 0 0 var(--ink); }

/* Potis: Messingring = vom Grundwert verstellt; beim Drehen leuchtet er */
.knob.chg i { box-shadow: 0 0 0 2px var(--brass), 0 2px 3px rgba(0, 0, 0, .5); }
.foot.chg .led { outline: 2px solid var(--brass); outline-offset: 1px; }  /* Effekt anders an/aus als im Ausgangs-Board */
.knob.turning i { box-shadow: 0 0 0 3px var(--brass), 0 0 10px 2px color-mix(in srgb, var(--brass) 60%, transparent), 0 2px 3px rgba(0, 0, 0, .5); }

/* Setup → Gesang: Stimmen anhören */

/* Song-Eigenschaften: schmale Scrollbalken wie überall, Tabelle passt sich der Breite an */
dialog.props > .props-head, dialog.props > .props-song { flex: none; }
.props-tablewrap { flex: 1 1 auto; min-height: 0; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.props-tablewrap::-webkit-scrollbar { width: 8px; height: 8px; }
.props-tablewrap::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.props-tablewrap::-webkit-scrollbar-track { background: transparent; }
.props-table select { min-width: 0; width: 100%; max-width: 170px; }
.props-table td { max-width: 190px; }

/* Setup → Gesang: Stimmen-Kacheln über dem Board */
.instopts button:has(.vpbtn) { position: relative; padding-left: 38px; text-align: left; }
.instopts .vpbtn { position: absolute; left: 7px; top: 50%; transform: translateY(-50%); display: inline-grid; place-items: center; width: 24px; height: 24px;
  border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--fg); }
.instopts .vpbtn svg { width: 11px; height: 11px; }
@media (hover: hover) { .instopts .vpbtn:hover{ border-color: var(--brass); color: var(--brass); } }

/* Aus Tabs lernen: Anleitung groß und über die ganze Breite oben */
.learnhow { margin-bottom: 14px; }
.learnhow h2 { font-size: 26px; }
.learnhow .steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 22px; font-size: 14px; line-height: 1.5; margin: 8px 0 0; padding-left: 20px; }
/* Stil-Wizard: Vorhören links im Fuß */
.kitdlgfoot .kitnow { font-size: 11.5px; max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pvbtn.busy, .pvkeep.busy { opacity: .6; pointer-events: none; }
.pvbtn.pvon { border-color: var(--accent); }
body .pvbtn.pvon { background: linear-gradient(to right, color-mix(in srgb, var(--accent) 70%, var(--panel)) var(--pv, 0%), var(--panel-2) var(--pv, 0%)); color: var(--fg); }

/* Stil-Wizard Feinschliff: Gruppen mit Erklärung, Regler mit beschrifteten Enden */
#kitSel { display: grid; gap: 8px; }
#kitSel .kgrp { border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); }
#kitSel .kgrp > summary { display: flex; align-items: baseline; gap: 10px; padding: 8px 12px; cursor: pointer; list-style: none; }
#kitSel .kgrp > summary::-webkit-details-marker { display: none; }
#kitSel .kgrp > summary::before { content: "▸"; color: var(--muted); }
#kitSel .kgrp[open] > summary::before { content: "▾"; }
#kitSel .kgrp > summary b { font-size: 13.5px; }
#kitSel .kgrp > summary span { font-size: 11.5px; color: var(--muted); }
#kitSel .kgsel { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px 14px; padding: 0 12px 10px; align-items: end; }
#kitSel .kgsel .f > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }  /* Beschriftung immer eine Zeile: Felder bleiben auf einer Höhe */
#kitSel .kgsel .chk { display: flex; align-items: center; gap: 6px; min-height: 34px; }
#kitSel .kgrng { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 6px 22px; padding: 0 12px 12px; }
#kitSel .rng { display: grid; grid-template-columns: 96px 70px minmax(60px, 1fr) 80px 64px; align-items: center; gap: 6px; font-size: 12px; }
#kitSel .rng small { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#kitSel .rng small.lo { text-align: right; }
#kitSel .rng output { font: 600 11px var(--mono); text-align: right; }
#kitNum:empty { display: none; }
#kitSel.kitsel { grid-template-columns: minmax(0, 1fr) !important; }

/* Schlagzeug-Reiter: alle Takte, je Zeile 2 Takte (wie die Tabulatur); letzte Zeile ungerader Songteile halb */
#dgrid.multi { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; background: none; box-shadow: none; padding: 0; }
#dgrid.multi > .drow { display: grid; }
#dgrid.multi > .drow.half { width: calc(50% + 36px); }
#dgrid .dn.bar { box-shadow: inset 2px 0 0 var(--schatten-braun-dunkel-2); }

/* Dunkle Pedale: helle Beschriftung (Name, Regler-Beschriftung), damit sie lesbar bleibt */
.pedal.inklight { color: var(--schrift-braun-weiss-2); }
.pedal.inklight .pname small { opacity: .75; }
.pedal.inklight .knob b { color: var(--schrift-braun-weiss-2); }

/* Steckbrief-Kacheln: Spalte nie breiter als die Kachel, Merkmale als Tabelle, Knöpfe im Raster (gleich groß) */
.band.brief { grid-template-columns: minmax(0, 1fr); min-width: 0; overflow-wrap: anywhere; }
.brief .brieffacts { display: grid; align-content: start; grid-template-columns: auto minmax(0, 1fr); gap: 3px 12px; margin: 2px 0; font-size: 13.5px; line-height: 1.4; }
.brief .brieffacts dt { color: var(--muted); font-size: 12px; padding-top: 1px; }
.brief .brieffacts dd { margin: 0; }
.brief .eyelink { all: unset; cursor: pointer; color: var(--accent); }
@media (hover: hover) { .brief .eyelink:hover{ text-decoration: underline; } }
.brief.picked > .briefclose { position: absolute; top: 6px; right: 6px; z-index: 2; }
.band.brief.picked > .favstar { right: 40px; }
.brief .brieflinks { display: grid; gap: 4px; align-content: start; }
.brief .brieflinks .eyebrow { font-size: 10px; }
.brief .linkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 4px; }
.brief .linkgrid .chipbtn { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.brief .brieflinks.clip .linkgrid > .chipbtn:not(.more):nth-child(n+8) { display: none; }  /* BRIEF_LINKS_MAX */
.brief .linkgrid .chipbtn.more { color: var(--accent); border-style: dashed; text-align: center; }
dialog.keysdlg.linksdlg { width: min(720px, 94vw); max-height: 80vh; padding: 0; }
dialog.keysdlg.linksdlg[open] { display: flex; flex-direction: column; }
.linksdlg .props-head h2 small { font: 500 12px var(--sans, inherit); color: var(--muted); text-transform: none; margin-left: 6px; }
.linksdlg .linkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 5px; padding: 14px 16px; overflow-y: auto; }
.linksdlg .linkgrid .chipbtn { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.brief > .row.tight:last-child { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 5px; }
.brief .pvpair { display: flex; gap: 4px; min-width: 0; } .brief .pvpair .pvbtn { flex: 1; } .brief .pvpair .pvkeep { flex: none; }
/* Liste der Songteile am Buch-Knopf (Reinhören): Zeile = anhören · Name · ablegen; laufender Teil hell, abgelegt = Messing */
.pvparts { min-width: 250px; max-height: 60vh; overflow: auto; }
.pvparts .pvrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 3px 4px; border-radius: 5px; }
.pvparts .pvrow.now { background: var(--panel-2); }
.pvparts .pvrow > button { padding: 0; justify-content: center; width: 28px; height: 28px; }
.pvparts .pvrow > button.pvon { color: var(--accent); }
.pvparts .pvrow > button.kept svg { color: var(--brass); }
.pvparts .pvname { display: grid; font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pvparts .pvname small { color: var(--muted); font-size: 11px; }
.brief > .row.tight:last-child .btn.small { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 7px; padding-right: 7px;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.brief > .row.tight:last-child .btn.small svg { width: 12px; height: 12px; flex: none; }

/* Hinhören & Nachspielen: Knopf auf der Kachel, Inhalt im Fenster */
.brief .briefhow { all: unset; cursor: pointer; color: var(--accent); font-size: 12px; margin: 2px 0 4px; }
@media (hover: hover) { .brief .briefhow:hover{ text-decoration: underline; } }
dialog.keysdlg.tipsdlg { width: min(720px, calc(100vw - 32px)); }
.tipsdlg .tipsbody { padding: 12px 20px 18px; font-size: 13.5px; line-height: 1.55; }
.tipsdlg .tipsbody h4 { margin: 12px 0 4px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--brass); }
.tipsdlg .tipsbody ul { margin: 0; padding-left: 18px; }

/* Band-Setup: Mischpult rechts angedockt */
@media (min-width: 1000px) {
  .view.rigview.mixdock:not([hidden]) { --mixc: var(--mixw, 280px); grid-template-columns: 286px minmax(0, 1fr) var(--mixc); grid-template-areas: "dock stage mix"; }
  .view.rigview.mixdock.mix-folded:not([hidden]) { --mixc: 30px; }
  .view.rigview.mixdock.custom-rigdock:not([hidden]):not(.dock-folded) { grid-template-columns: var(--dockw) minmax(0, 1fr) var(--mixc); }
  .view.rigview.mixdock.dock-folded:not([hidden]) { grid-template-columns: 30px minmax(0, 1fr) var(--mixc); }
  .view.rigview > .mixpop.docked { grid-area: mix; width: auto; max-height: none; min-height: 0; overflow-y: auto; box-shadow: none; align-content: start;
    scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
}

/* „Spielt mit:“ entfällt – im Band-Setup steht das Mischpult rechts */
.mixwrap[hidden] { display: none !important; }

@media (min-width: 1000px) {
  .view.rigview > .mixpop.docked { position: relative; overflow: visible; }
  .mixpop.docked > .mixgrip { position: absolute; left: -11px; top: 0; height: 100%; width: 8px; }
  .mixpop.docked > .mixfold { position: absolute; left: -1px; right: auto; top: 50%; transform: translateY(-50%); z-index: 6; }
  .mixpop.docked > .mixfold svg { transform: rotate(-90deg); }
   .mixpop.docked > .mixfold:focus-visible{ opacity: 1; } @media (hover: hover) { .mixpop.docked:hover > .mixfold{ opacity: 1; } }
  .mixpop.docked.folded { padding: 0; overflow: hidden; }
  .mixpop.docked.folded > :not(.mixfold) { display: none !important; }
  .mixpop.docked.folded > .mixfold { position: static; transform: none; opacity: 1; width: 100%; height: 100%; border: 0; border-radius: inherit; background: transparent;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px; padding-top: 12px; }
  @media (hover: hover) { .mixpop.docked.folded > .mixfold:hover{ background: var(--panel-2); } }
  .mixpop.docked.folded > .mixfold svg { transform: rotate(90deg); }
  .mixpop.docked.folded > .mixfold span { display: block; writing-mode: vertical-rl; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
  .mixpop:not(.docked) > .mixgrip, .mixpop:not(.docked) > .mixfold { display: none; }
}
@media (max-width: 999px) { .mixpop > .mixgrip, .mixpop > .mixfold { display: none; } }

/* Band-Setup: Instrument wählt man im angedockten Mischpult (Kanalname) – Zeile „Instrument“ links entfällt */
@media (min-width: 1000px) {
  .view.rigview.mixdock:not(.mix-folded) .rigdock .docksec:has(> #rigTr) { display: none; }
  .mixpop.docked .mixrow .mn[role="button"] { cursor: pointer; border-radius: 4px; padding: 2px 4px; margin-left: -4px; }
  @media (hover: hover) { .mixpop.docked .mixrow .mn[role="button"]:hover{ background: var(--panel-2); } }
  .mixpop.docked .mixrow.rigsel .mn { background: color-mix(in srgb, var(--brass) 22%, transparent); color: var(--fg); font-weight: 600; }
}
@media (min-width: 1000px) {
  /* angedockt: Positionsangaben des Fensters (oben rechts unter „Mix“) aufheben, sonst rutscht es nach unten */
  .view.rigview > .mixpop.docked { top: auto; right: auto; left: auto; bottom: auto; margin: 0; height: auto; align-self: stretch; }
}

/* Hörprobe läuft: Knopf hell mit Stopp-Symbol, pulsierender Ring, Kachel hervorgehoben (auch auf der gewählten, roten Kachel sichtbar) */
.instopts .vpbtn.playing { background: var(--weiss); border-color: var(--weiss); color: var(--accent); animation: vpPulse 1.1s ease-in-out infinite; }
.instopts button:has(.vpbtn.playing) { outline: 2px solid var(--brass); outline-offset: 1px; }
@keyframes vpPulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brass) 70%, transparent); } 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--brass) 0%, transparent); } }
@media (prefers-reduced-motion: reduce) { .instopts .vpbtn.playing { animation: none; box-shadow: 0 0 0 3px var(--brass); } }

/* Band-Setup: Reiter je Instrument über dem Board */


/* Band-Setup links: zwei Fenster – oben „Gilt für“ + „Hören“, darunter Pedale, Verstärker & Boxen */
@media (min-width: 1000px) {
  .rigview .rigdock { background: transparent; border: 0; box-shadow: none; padding: 0; }
  .rigview .rigdock .dockbody { padding: 0 !important; gap: 0 !important; }
  .rigview .rigdock .dockbody > .docksec, .rigview .rigdock .dockbody > .dockfoot { background: var(--panel); border-left: 1px solid var(--line); border-right: 1px solid var(--line); padding-left: 12px; padding-right: 12px; }
  .rigview .rigdock #rigForSec { border-top: 1px solid var(--line); border-radius: 6px 6px 0 0; padding-top: 10px; }
  .rigview .rigdock .dockbody > .docksec:has(#rigPlay) { border-bottom: 1px solid var(--line); border-radius: 0 0 6px 6px; padding-bottom: 10px; margin-bottom: 10px; }
  .rigview .rigdock #rigPalBox { border-top: 1px solid var(--line); border-radius: 6px 6px 0 0; margin: 0 !important; padding-top: 6px; }
  .rigview .rigdock .dockbody > .dockfoot { border-bottom: 1px solid var(--line); border-radius: 0 0 6px 6px; padding-top: 8px; padding-bottom: 10px; }
  .rigview .rigdock .dockbody > .docksec:not(#rigForSec):not(#rigPalBox):not(:has(#rigPlay)) { padding-top: 4px; }
}

/* Band-Setup: oben Fenster „Instrumente in …“ (Besetzung), darunter Reiter wie in der Werkstatt, darunter die Reiterseite */
.rigstage > .rigband { display: grid; gap: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-2); }
.rigstage > .rigtabs { margin-top: 4px; }
.rigstage > .rigpane { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 12px; border: 1px solid var(--line); background: var(--panel-2); min-height: 0; }
.rigstage > .rigpane > * { flex: none; }
.rigstage > .rigpane .rigtitle { font-size: 15px; }

/* Band-Setup ohne Effekte (Schlagzeug, Weitere): kein leerer Paletten-Rest links */
.rigview .rigdock .dockbody:has(> #rigPalBox[hidden]) > .dockfoot { display: none !important; }
.rigview .rigdock .dockbody:has(> #rigPalBox[hidden]) > .docksec:has(#rigPlay) { margin-bottom: 0; }

/* Rechner: Loop ergibt sich aus „Songteil | Song“ – eigener Knopf entfällt */
#loopBtn { display: none !important; }  /* Loop ergibt sich aus „Songteil | Song“ bzw. „Ganzer Song | Abschnitt“ */
/* Band-Setup-Wahl im Kopf des Ablaufs */

/* Stumm: durchgestrichener Lautsprecher im Instrument-Reiter (Werkstatt und Band-Setup) */
.mutemark { display: inline-block; width: 12px; height: 12px; flex: none; margin-left: 3px; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9h4l5-4v14l-5-4H4z'/%3E%3Cpath d='M17 9l5 6M22 9l-5 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9h4l5-4v14l-5-4H4z'/%3E%3Cpath d='M17 9l5 6M22 9l-5 6'/%3E%3C/svg%3E") center / contain no-repeat; }
/* Geradebügeln (mod/angleichen.js): Symbol-Knopf rechts in der Reiterzeile der Songteile */
.libcol .libtabs .glattbtn { flex: none; display: inline-flex; align-items: center; justify-content: center; padding: 4px 7px; }
.libcol .libtabs .glattbtn[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
@media (min-width: 901px) { .libcol .libtabs button[role="tab"] { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }
/* ==== static/css/15-songteile-lead-handy-griffe.css ==== */
/* Titel des Songteile-Fensters */
.libcol > .libtitle { margin: 0; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; flex: none; }

/* Schlagzeug-Reiter: Einstellungen oben fest, nur das Raster scrollt */
@media (min-width: 901px) {
  .editor > .trackpane > .drumpane:not([hidden]) { display: flex !important; flex-direction: column; overflow: hidden !important; }
  .editor > .trackpane > .drumpane > :not(#dgrid) { flex: none; }
  .editor > .trackpane > .drumpane > #dgrid { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
}
/* Haltebalken („klingt weiter“) auf dem grauen Papier deutlicher */
.ts.ring::after { height: 6px; border-radius: 2px; }

/* Akkord-Fenster kompakter: Beschriftung links neben den Feldern, kleinere Knöpfe */
@media (min-width: 901px) {
  .tabdock > .chordpane > .cphead { padding: 3px 6px 3px 10px; }
  .tabdock > .chordpane > .cpbody { padding: 6px 8px; gap: 5px; }
  .tabdock > .chordpane .ctxrow { gap: 4px; row-gap: 4px; }
  .tabdock > .chordpane .ctxrow > .eyebrow { flex: 0 0 56px !important; margin: 0 !important; font-size: 9px; }
  .tabdock > .chordpane .seg button { padding: 2px 7px; font-size: 11px; min-height: 0; }
  .tabdock > .chordpane select, .tabdock > .chordpane input[type="text"] { font-size: 11.5px; height: 24px; padding-top: 0; padding-bottom: 0; }
  .tabdock > .chordpane #cpPreset { flex: 1 1 140px !important; }
  .tabdock > .chordpane #cpCustom { width: auto !important; flex: 1 1 80px; }
  .tabdock > .chordpane .cppal { gap: 3px; }
  .tabdock > .chordpane .cppal button { padding: 1px 6px; font-size: 11px; min-height: 0; }
  .tabdock > .chordpane .cpslot { height: 24px; font-size: 11px; }
  .tabdock > .chordpane .cpstrum { font-size: 10px; }
  .tabdock > .chordpane .cpstrum span { line-height: 14px; }
  .tabdock > .chordpane > .cpfoot { padding: 4px 8px; }
  .tabdock > .chordpane #cpApply { height: 26px; }
  .tabdock > .chordpane #cpHint { display: none; }
}
@media (min-width: 901px) {
  .tabdock > .chordpane .seg { display: inline-flex; width: auto; flex: none; }
  .tabdock > .chordpane .seg button { flex: none; min-width: 0; width: auto; }
  .tabdock > .chordpane .ctxrow > .divider { display: none; }
  .tabdock > .chordpane .cppal { flex: 1 1 100%; }
}

/* Lead: von der Rhythmus-Gitarre übernommene Takte – „spielt Rhythmus mit“ an: gut lesbar in Tinte (eigene Noten in Lead-Farbe), aus: nur schwach zur Orientierung */
.ts.dbl > b { color: color-mix(in srgb, var(--ink) 80%, var(--paper)); }
.ts.dbl.ring::after { opacity: .7; }
.ts.dbl.dbloff > b { color: color-mix(in srgb, var(--ink) 32%, var(--paper)); }
.ts.dbl.dbloff.ring::after { opacity: .3; }
.ts.dbl.stop > b { background: color-mix(in srgb, var(--ink) 80%, var(--paper)); }
.ts.dbl.dbloff.stop > b { background: color-mix(in srgb, var(--ink) 32%, var(--paper)); }
.staff[data-tr="lead"] .ts.has:not(.dbl) > b { color: color-mix(in srgb, var(--tr-lead) 55%, var(--schwarz)); }
.leaddbl { font-size: 12px; white-space: nowrap; }

/* Stile entdecken: Kopf mit Suche oben fest, nur die Kacheln scrollen */
@media (min-width: 901px) {
  .stylesview [data-ktp="briefs"]:not([hidden]) { overflow: hidden !important; display: flex; flex-direction: column; }
  .briefsdesk > .guide { flex: 1 1 auto; min-height: 0; display: flex !important; flex-direction: column; gap: 10px; }
  .briefsdesk > .guide > .sechead, .briefsdesk > .guide > .briefnav { flex: none; }
  .briefsdesk > .guide > .briefscroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 12px; align-content: start; padding-right: 6px;
    scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
}
body.phone .stylesview [data-ktp="briefs"]:not([hidden]) { overflow: hidden !important; display: flex; flex-direction: column; }  /* Handy genauso: Kopf und Suche fest, nur die Kacheln scrollen */
body.phone .briefsdesk > .guide { flex: 1 1 auto; min-height: 0; display: flex !important; flex-direction: column; gap: 10px; }
body.phone .briefsdesk > .guide > .sechead, body.phone .briefsdesk > .guide > .briefnav { flex: none; }
body.phone .briefsdesk > .guide > .briefscroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 12px; align-content: start; }
.briefscroll { display: grid; gap: 12px; }

/* Handy: wer spielt mit (statt Begleit-Knopf) */
#pvBeat { display: none !important; }
.pvtracks button { display: inline-flex; align-items: center; gap: 6px; }
body.phone .pvtracks { overflow-x: auto; scrollbar-width: none; }
.pvtracks button .tplay { width: 16px !important; height: 16px !important; flex: none; }
.pvtracks button.mixonly { background: transparent; color: var(--muted); }
.setbody { padding: 14px 18px 18px; }
.setrow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.setrow + .setrow { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.setrow > div { flex: 1 1 auto; } .setrow .hint { margin: 4px 0 0; }
.setval { font: 600 13px var(--mono); white-space: nowrap; }
dialog.setdlg { width: min(560px, calc(100vw - 24px)); }
.avblink { width: 120px; height: 120px; margin: 18px auto; border-radius: 50%; border: 2px solid var(--line); background: var(--panel2, transparent); }
.avblink.on { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 30px color-mix(in srgb, var(--accent) 60%, transparent); }
.avctl { display: flex; align-items: center; gap: 8px; } .avctl input { flex: 1 1 auto; }
.avnow { text-align: center; margin: 10px 0; } .avnow b { font: 600 16px var(--mono); display: block; margin-bottom: 4px; }
.avfoot { display: flex; gap: 8px; align-items: center; } .avfoot .sp { flex: 1; }

/* Band-Setup: Instrument wählt man über die Reiter – Zeile „Instrument“ links entfällt immer */
.rigview .rigdock .docksec:has(> #rigTr) { display: none !important; }

/* Handy hochkant: Kopf, Suche, Reiter bleiben stehen – nur der Inhalt (Kacheln, Tabulatur) scrollt */
@media (orientation: portrait) {
  body.phone { height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
  body.phone > .topbar { flex: none; position: static; }
  body.phone > .app { flex: 1 1 auto; min-height: 0; display: block; }
  body.phone main { height: 100%; box-sizing: border-box; overflow: hidden; display: flex; flex-direction: column; padding-bottom: 74px; }
  body.phone main > .view:not([hidden]) { flex: 1 1 auto; min-height: 0; height: auto; overflow-y: auto; overscroll-behavior: contain; }
  /* Lernen + Stile: Unterreiter und Überschrift fest, Kacheln scrollen */
  body.phone main > .view.learn:not([hidden]) { display: flex; flex-direction: column; overflow: hidden; }
  body.phone .view.learn > .subtabs { flex: none; }
  body.phone .view.learn > .guide:not([hidden]) { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
  body.phone .view.learn > .guide > :not(.guidebody):not(.briefscroll):not(.chlists) { flex: none; position: static; background: none; }  /* Kopf auf dem Grund des Reiters */
  body.phone .view.learn > .guide > :is(.guidebody, .briefscroll, .chlists) { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; align-content: start; padding-bottom: 8px; }  /* nur die Einträge scrollen */
  /* Songbook: alles fest, nur die Tabulatur scrollt */
  body.phone main > .view.playview:not([hidden]) { display: flex; flex-direction: column; overflow: hidden; gap: 8px; }
  body.phone .view.playview > * { flex: none; }
  body.phone .view.playview > .pvtab { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
}

/* Handy hochkant, Songbook kompakt: Play/Stopp sitzt im Songbook-Reiter unten */
body.phone .rail .rb.playing { color: var(--accent); }
body.phone .topbar #playBtn { display: none; }  /* Handy: Play/Stopp sitzt im Songbook-Reiter unten */
@media (orientation: portrait) {
  body.phone .topbar { flex-wrap: nowrap; }
  body.phone .playview { gap: 6px !important; }
  body.phone .pvhead { padding: 6px 8px; gap: 2px; }
  body.phone .pvpick { min-height: 40px; padding: 4px 8px; }
  body.phone .pvpickrow .pvsave { min-height: 40px; height: 40px; }
  body.phone .pvmeta { font-size: 12px; }
  body.phone .pvplay .pvmode button { min-height: 30px; }
  body.phone .pvsec { min-height: 38px; padding: 4px 10px; display: flex; gap: 6px; align-items: baseline; }
  body.phone .pvtracks { flex-wrap: nowrap; }
  body.phone .pvtracks button { min-height: 36px; padding: 0 10px; white-space: nowrap; }
  body.phone .pvinfo { display: none; }
}

/* Handy-Mix: Knopf im Songbook, Blatt unten */
body:not(.phone) #pvMixBtn { display: none; }  /* Desktop: Mischpult in der Werkstatt */
body.phone .topbar #pvMixBtn { display: inline-flex; }
body.phone .topbar #pvMixBtn > span { display: none; }  /* nur Symbol wie Live, Text im Tooltip */
dialog.pvmixdlg { width: min(520px, calc(100vw - 16px)); }
.pvmixmode { padding: 6px 14px 0; }
.pvmixmode .mixmode { display: flex; flex-wrap: nowrap; width: 100%; }  /* fünf Klang-Orte in einer Zeile, Breite nach Text */
.pvmixmode .mixmode > button { flex: 1 1 auto; min-width: 0; padding: 6px 3px; font-size: 12px; }
.pvmixrows { padding: 8px 14px 16px; display: grid; gap: 2px; max-height: calc(100dvh - 150px); overflow-y: auto; }
.pvmixrows > .pvmr[data-k="live"] { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 6px; }  /* Eingang am Ende, abgesetzt von den Spuren */
.pvmr { display: grid; grid-template-columns: 92px minmax(0, 1fr) 64px; align-items: center; gap: 10px; min-height: 42px; }
.pvmr .pvmn { font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pvmr input[type="range"] { width: 100%; accent-color: var(--accent); }
.pvmr .pvmv { font: 600 12px var(--mono); text-align: right; color: var(--muted); }
body.phone dialog.setdlg { max-height: calc(100dvh - 24px); }
body.phone dialog.setdlg .setbody { overflow-y: auto; max-height: calc(100dvh - 100px); }


/* Handy: Kopfleiste Tempo · Live · Mix · Einstellungen · Über (ganz rechts); alle Fenster der Knöpfe oben rechts angedockt */
body.phone .topbar > .livewrap { order: 5; margin-left: auto; }
body.phone .topbar > #pvMixBtn { order: 6; }
body.phone .topbar > .tgroup:has(#setBtn) { order: 9; }
body.phone .topbar .livepop { position: fixed; top: 54px; right: 8px; left: auto; width: min(340px, calc(100vw - 16px)); max-height: calc(100dvh - 140px); overflow: auto; }
body.phone dialog.setdlg, body.phone dialog.aboutdlg, body.phone dialog.pvmixdlg {
  position: fixed; inset: 54px 8px auto auto; margin: 0; width: min(440px, calc(100vw - 16px)); max-height: calc(100dvh - 140px) !important; overflow: auto; }
body.phone dialog.pvmixdlg::backdrop, body.phone dialog.setdlg::backdrop, body.phone dialog.aboutdlg::backdrop { background: rgba(0, 0, 0, .3); }

/* Größe von Griffbrett und Tabulatur: Griff an der Unterkante ziehen */
.prscroll { display: contents; }
.sizegrip { height: 14px; margin: 2px auto -4px; width: 64px; cursor: row-resize; touch-action: none; position: relative; }
.sizegrip::before { content: ""; position: absolute; left: 50%; top: 50%; width: 40px; height: 4px; transform: translate(-50%, -50%); border-radius: 3px; background: var(--line); }
 .sizegrip.drag::before{ background: var(--accent); } @media (hover: hover) { .sizegrip:hover::before{ background: var(--accent); } }
/* Handy: ein einziger Griff zwischen Griffbrett und Tabulatur (Griffbrett höher = Tabulatur kleiner), groß genug für den Finger */
body.phone .prtabwrap > .sizegrip { display: none; }
body.phone .prfb { min-height: 0; }  /* Höhe nur über --frh (Griff), sonst blockiert die Mindesthöhe das Verkleinern */
body.phone .prscroll > .sizegrip { height: 22px; width: 120px; margin: -6px auto; z-index: 2; }
body.phone .prscroll > .sizegrip::before { width: 56px; height: 5px; }
/* Handy hochkant, Üben: Einheit, Kopf, Bedienung und Griffbrett fest, nur die Tabulatur scrollt */
@media (orientation: portrait) {
  body.phone main > .view.practice:not([hidden]) { display: flex; flex-direction: column; overflow: hidden; gap: 6px; }
  body.phone .view.practice > .prunits { flex: none; }
  body.phone .view.practice > .prmain { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
  body.phone .prmain > .prhead, body.phone .prmain > .prbar { flex: none; }
  body.phone .prmain > .prscroll { display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; min-height: 0; overflow: hidden; }
  body.phone .prscroll > * { flex: none; }
  /* Griffbrett angedockt, nur die Tabulatur scrollt (und läuft beim Üben mit); Größen-Griff bleibt unten sichtbar */
  body.phone .prscroll > .prtabwrap { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  body.phone .prtabwrap > .prtab { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  body.phone .prtabwrap > .sizegrip { flex: none; }
  body.phone .prscroll > .prchords:not([hidden]) { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  body.phone .prhead { padding: 6px 10px; gap: 2px; }
  body.phone .prhead > p.hint, body.phone .prgoal > .hint { display: none; }  /* Beschreibung kompakt: nur Titel und Ziel */
  body.phone .prtabwrap { overflow: hidden; }
}
/* Band-Setup (Rechner): oben fest (Instrumente, Reiter, Kacheln), nur das Board mit der Hardware scrollt */
body:not(.phone) .rigview .rigstage { overflow: hidden; }
body:not(.phone) .rigstage > .rigpane { flex: 1 1 auto; min-height: 0; }
body:not(.phone) .rigstage > .rigpane > .rigboard { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
body:not(.phone) .rigboard > .rigscroll { flex: 1 1 auto; overflow: auto; }
.rigboard { position: relative; }
.rigboard[hidden] { display: none !important; }
.rigboard > .rigzoom { position: absolute; top: 6px; right: 18px; z-index: 4; padding: 2px; border-radius: 6px; background: color-mix(in srgb, var(--panel) 85%, transparent); border: 1px solid var(--line); }
.rigboard > .rigzoom[hidden] { display: none; }
body:not(.phone) .rigstage > .rigpane > .riginst { max-height: var(--rih, 300px); overflow-y: auto; }
/* Größen-Griff zwischen Kacheln und Board (nur Rechner, nur wenn es Kacheln gibt) */
.riggrip { margin: -2px auto -2px; z-index: 5; flex: none; }
body:not(.phone) .rigstage > .rigpane > .riginst.sized { height: var(--rih); max-height: none; }  /* per Griff eingestellt: feste Höhe */
body.phone .riggrip, .riginst[hidden] + .riggrip { display: none; }
/* Band-Setup → Gesang: global (alle Songs) klar getrennt von der Stimme dieses Songs */
.vglobal { padding: 8px 10px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); display: grid; gap: 6px; }  /* global: eigener Kasten, ohne Messing-Rand */
.vglobal .hint { margin: 0; }
.vsong { display: grid; gap: 6px; }
.gbadge { display: inline-block; margin-right: 8px; padding: 1px 7px; border-radius: 10px; font-style: normal; font-size: 10px; letter-spacing: .04em; background: var(--brass); color: var(--schrift-braun-dunkel-2); }
.gbadge.song { background: var(--accent); color: var(--weiss); }
.vsong.dim .instopts { opacity: .4; pointer-events: none; filter: grayscale(1); }
.vsong .hint { margin: 0; }
.vdimnote { font-style: normal; text-transform: none; letter-spacing: 0; color: var(--muted); }
/* Band-Setup: Kacheln zwischen Reiter und Board kompakt (eine Zeile Beschreibung, voller Text im Tooltip) */
.riginst { gap: 4px; }
.riginst .instopts { gap: 5px; }
.riginst .instopts button { width: 218px; min-height: 0; height: 40px; padding: 3px 10px; gap: 0; border-radius: 6px; }
.riginst .instopts button:has(.vpbtn) { padding-left: 34px; }
.riginst .instopts .vpbtn { left: 6px; width: 22px; height: 22px; }
.riginst .instopts button b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.riginst .instopts button small { font-size: 10.5px; -webkit-line-clamp: 1; line-clamp: 1; max-width: 100%; }
.riginst .eyebrow { margin: 2px 0 0; }
.riginst .vglobal { padding: 6px 8px; margin-bottom: 4px; gap: 4px; }
.riginst .vsong { gap: 4px; }
/* Ohne Board (Schlagzeug, Weitere): Kacheln immer ganz zeigen, kein Größen-Griff; mit Board bleibt es mindestens so hoch, dass eine Pedalreihe sichtbar ist */
body:not(.phone) .rigpane:has(> .rigboard[hidden]) > .riginst { height: auto !important; max-height: none !important; flex: 0 1 auto; min-height: 0; overflow-y: auto; }
.rigpane:has(> .rigboard[hidden]) > .riggrip { display: none; }
body:not(.phone) .rigboard > .rigscroll { min-height: 140px; }
body:not(.phone) .rigstage > .rigpane > .riginst { min-height: 50px; }
/* Band-Setup → Gesang: links die Gesangsarten (global), rechts die Stimmen dieses Songs, darunter das Board */
body:not(.phone) .riginst:has(> .vglobal) { display: grid; grid-template-columns: minmax(200px, 250px) minmax(0, 1fr); gap: 10px; align-items: start; }
body:not(.phone) .riginst > .vglobal { margin: 0; position: sticky; top: 0; }
body:not(.phone) .riginst > .vglobal .instopts { flex-direction: column; flex-wrap: nowrap; }
body:not(.phone) .riginst > .vglobal .instopts button { width: 100%; }
body:not(.phone) .riginst > .vglobal .hint { font-size: 11px; }
body:not(.phone) .riginst > .vsong .instopts button { width: 186px; }
/* Test-Riff (Kachel ▶): kleine Knöpfe in einer Reihe, umbrechend */
.riginst .instopts.trf { display: flex; flex-wrap: wrap; gap: 4px; }
body .riginst .instopts.trf button, body:not(.phone) .riginst > * .instopts.trf button { width: auto; flex: 1 1 auto; height: 26px; padding: 2px 8px; justify-items: center; }
/* Üben: keine Hilfen unter dem Griffbrett; der Größen-Griff sitzt so direkt zwischen Griffbrett und Tabulatur */
.prboard .fblegend, .prboard .prinfo { display: none !important; }
.prscroll > .sizegrip[data-grip="fb"] { margin: -4px auto; }
/* Erklärtexte (Klasse .help): vorerst ausgeblendet, Texte bleiben für eine spätere Hilfe erhalten (body.showhelp zeigt sie wieder) */
body:not(.showhelp) .help { display: none !important; }
.riginst .vglobal .instopts button { padding-left: 34px; position: relative; }  /* gleiche Einrückung mit und ohne ▶ */
/* Band-Setup (Rechner): Board-Hintergrund füllt den ganzen Scrollbereich bis unten (nicht nur so hoch wie die Geräte) */
body:not(.phone) .rigboard > .rigscroll { border-radius: 10px; background: repeating-linear-gradient(90deg, var(--flaeche) 0 3px, var(--flaeche-grau-dunkel) 3px 7px); border: 1px solid var(--line); }
body:not(.phone) .rigboard > .rigscroll > .rigchain { background: none; border: 0; }
.prgoal .prok.off { visibility: hidden; }  
body.phone .learnact:not([data-learn="slow"]), body.phone .learnrow:not(:has([data-learn="slow"])) { display: none; }
.prgoal .prok { border-color: var(--brass); color: var(--brass); }  /* Üben: Tempo als sauber bestätigen */
/* Üben: kompakte Tabulatur – nur Saiten und Bünde, keine Zählzeiten-/Anmerkungszeile, keine Taktstriche */
.prtab .clef, .prtab .tcol { grid-template-rows: repeat(6, 19px); }
.prtab .staff { margin: 4px 0; }
.prtab.pvpaper { gap: 4px; }
.prtab .staff::after { display: none; }  /* Üben: keine Schlusslinie (keine Takte) */
.prgoal .prreset { width: 22px; height: 22px; min-height: 0; padding: 0; margin-left: 6px; vertical-align: middle; justify-content: center; }
.prgoal .prreset svg { width: 12px; height: 12px; }
.prbar label.locked select { opacity: .55; cursor: not-allowed; }  /* Üben: Einstellungen der gewählten Einheit (nur bei „Frei üben“ änderbar) */
/* Üben (Rechner): feste Breiten und feste Zeilen – Auswahl links wechseln lässt nichts springen.
   Zeile 1: Grundton … Notenwert, Zeile 2: Tempo, Beschriftung, Begleitung, Wiederholen, +5, Üben */
body:not(.phone) .prbar::after { content: ""; flex-basis: 100%; order: 1; height: 0; }
body:not(.phone) .prbar > .prbpm, body:not(.phone) .prbar > #prLabel, body:not(.phone) .prbar > #prBeat, body:not(.phone) .prbar > #prMetroVis, body:not(.phone) .prbar > .ibt, body:not(.phone) .prbar > #prPlay { order: 2; }
body:not(.phone) .prbar #prRoot { width: 64px; }
body:not(.phone) .prbar #prScale, body:not(.phone) .prbar #prTuning, body:not(.phone) .prbar #prShape, body:not(.phone) .prbar #prPos, body:not(.phone) .prbar #prPat { width: 200px; max-width: none; }
body:not(.phone) .prbar #prDiv { width: 130px; }
body:not(.phone) .prbar > label.f:has(#prTuning) { order: -1; }  /* Stimmung zuerst: gilt für alles, immer frei wählbar */
body:not(.phone) .prhead .prtip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }  /* eine Zeile: Kopf bleibt gleich hoch */
body:not(.phone) .prgoal { min-height: 22px; }
body:not(.phone) .mixwrap.offview { visibility: hidden; }  /* Mix nur in Werkstatt und Stile, Platz bleibt */
body.phone .mixwrap.offview { display: none; }
body.phone .topbar > .mixwrap:not(.livewrap) { display: none; }  /* Handy: Mix-Blatt (Lautstärken + Summen-Klang) ersetzt das Mischpult; sonst wird die Kopfleiste breiter als der Schirm und die Bereichsleiste unten rutscht aus dem Bild */
body.phone .topbar { max-width: 100vw; box-sizing: border-box; overflow-x: auto; scrollbar-width: none; }  /* nie breiter als der Schirm: lieber wischen */
body.phone .topbar::-webkit-scrollbar { display: none; }
/* Rechner: Leiste der Ansicht unter der Kopfleiste (Werkstatt: Modus, Play, Tempo, Einzähler, Rückgängig, Assistent, Mix; Band-Setup: Play, Tempo) */
@media (min-width: 901px) { body:not(.phone) main { display: flex; flex-direction: column; gap: 8px; } body:not(.phone) main > .view { flex: 1 1 auto; height: auto; } }
.viewbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); flex: none; }
.viewbar[hidden] { display: none !important; }
.viewbar > .mixwrap { margin-left: auto; }
body[data-view="rig"] .viewbar .wonly { display: none !important; }
/* Werkstatt › Spielen: nur anschauen, anhören, mitspielen */
body.wplay:not(.phone)[data-view="work"] .viewbar .tgroup:has(#undo) { display: none; }
body.wplay:not(.phone) .view.work > .libcol { display: none !important; }
body.wplay:not(.phone) .view.work { grid-template-columns: minmax(0, 1fr) !important; grid-template-areas: "song" "edit" !important; }
body.wplay:not(.phone) #selbar, body.wplay:not(.phone) #trash, body.wplay:not(.phone) .arr .card .bc button, body.wplay:not(.phone) .arr .xdel { display: none !important; }
body.wplay:not(.phone) #partType, body.wplay:not(.phone) .ed-head .barstep, body.wplay:not(.phone) #partMeter, body.wplay:not(.phone) #partFeel, body.wplay:not(.phone) #partStyle, body.wplay:not(.phone) #appendPart { display: none !important; }
body.wplay:not(.phone) #addInst, body.wplay:not(.phone) #drumpane .ctxrow, body.wplay:not(.phone) #trackhelp { display: none !important; }
/* Spielen: aus den Spur-Zeilen bleiben nur die Effekte (Pedale/Amp des Songteils) */
body.wplay:not(.phone) .instbar .ctxrow:not(.ovrow) > :not(#toneBar) { display: none !important; }
body.wplay:not(.phone) .instbar .ctxrow:not(.ovrow):not(:has(> #toneBar:not([hidden]))) { display: none !important; }
body.wplay:not(.phone) #toneBar > .divider { display: none; }
body.wplay:not(.phone) #fbwrap .fblegend { display: none; }
body.wplay:not(.phone) #partName { pointer-events: none; }
body.wplay:not(.phone) .trackpane > .toolbar, body.wplay:not(.phone) #ivinfo { display: none !important; }
body.wplay:not(.phone) #instbar:not(:has(> .ovrow:not([hidden]))):not(:has(#toneBar:not([hidden]))) { display: none !important; }
.save .sbplay { width: 30px; height: 30px; padding: 0; justify-content: center; flex: none; }
.save .sbplay.playing { background: var(--accent); border-color: var(--accent); color: var(--weiss); }
/* Mix in der Ansichtsleiste: Fenster klappt unter dem Knopf auf (nicht über ihn – sonst lässt es sich nicht mehr schließen) */
body:not(.phone) .viewbar > .mixwrap > .mixpop:not(.docked) { position: absolute; top: calc(100% + 8px); right: 0; max-height: calc(100vh - 170px); }
.viewbar > .livewrap { order: 8; margin-left: auto; }  /* rechts: Live · Spielen/Komponieren · Mix */
.viewbar > #wMode { order: 9; }
.viewbar > .mixwrap:not(.livewrap) { order: 10; margin-left: 0; }
body:not(.phone) .viewbar > .livewrap > .livepop { position: absolute; top: calc(100% + 8px); right: 0; left: auto; max-height: calc(100vh - 170px); z-index: 60; }  /* über dem angedockten Mischpult */  /* Live-Fenster unter dem Knopf */
/* Rechner: Einstellungen unten in der Leiste links (über „Über“), nicht mehr in der Kopfleiste */
body:not(.phone) .topbar > .tset { display: none; }
body.phone .rbset { display: none; }
/* Ansichtsleiste wie die Kopfzeile des Editors */
.viewbar { background: color-mix(in srgb, var(--fg) 7%, var(--panel)); }
/* Titel: beim Komponieren als Eingabefeld erkennbar, beim Spielen ohne Rahmen */
body:not(.phone):not(.wplay) .sb-head .title-in, body:not(.phone):not(.wplay) .editor .ed-head .part-in { border-color: var(--line); background: var(--panel-2); }
body.wplay:not(.phone) .title-in, body.wplay:not(.phone) .part-in { border-color: transparent !important; background: transparent !important; box-shadow: none !important; }
/* Spielen | Komponieren als Wechselschalter (feste Breite, nichts springt) */
.wswitch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 3px; gap: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--panel-2); cursor: pointer; color: var(--muted); min-height: 34px; }
.wswitch::before { content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: var(--fg); transition: transform .18s ease; }
.wswitch.edit::before { transform: translateX(100%); }
.wswitch .wsopt { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 14px; font-size: 12.5px; white-space: nowrap; transition: color .18s; }
.wswitch .wsopt svg { width: 14px; height: 14px; }
.wswitch:not(.edit) .wsopt[data-wm="play"], .wswitch.edit .wsopt[data-wm="edit"] { color: var(--bg); }
@media (prefers-reduced-motion: reduce) { .wswitch::before, .wswitch .wsopt { transition: none; } }
/* Einzähler: ein Knopf, der weiterschaltet (feste Breite) */
.countbtn { min-width: 132px; justify-content: flex-start; }
.countbtn[aria-pressed="true"] { border-color: var(--brass); color: var(--brass); }
/* Werkstatt: Abspielmarke dezent (nicht rot) */
#paper .tcol.now { background: color-mix(in srgb, var(--brass) 20%, transparent); }
body.phone #countBtn { display: none !important; }  /* Handy: Songbook zählt selbst an */
body.phone #countSub { display: none !important; }  /* Handy: Raster steht neben dem Einzähler im Songbook (.pvcount) */

/* Handy: Stile entdecken – der Bereich scrollt selbst (die Rechner-Regeln oben gelten nur ab 901 px) */
@media (max-width: 900px) {
  .stylesview [data-ktp="briefs"]:not([hidden]) { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
}
/* ==== static/css/16-songbook-bandsetup-favoriten.css ==== */
/* Songbook (Rechner): Liste bekommt die größte Fläche, durchsuchbar; Import unten angedockt */
.sbcols { display: grid; grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; height: 100%; min-height: 0; }
.sbcols > .panel:first-child { display: flex; flex-direction: column; min-height: 0; gap: 8px; }
.sbhead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sbhead h2 { margin: 0; }
.sbhead #sbSearch { flex: 1 1 260px; max-width: 480px; }
.sbcols .saves { flex: 1 1 auto; max-height: none !important; min-height: 0; overflow-y: auto; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); align-content: start; }
.sbcols > .panel:last-child { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.sbcols > .panel:last-child h2 { margin: 0; }
.sbcols > .panel:last-child #importText { height: 52px; min-height: 52px; resize: vertical; }
.view[data-view="files"] { overflow: hidden !important; }
@media (max-width: 900px) { .sbcols { height: auto; } .sbcols > .panel:last-child { grid-template-columns: 1fr; } }
body:not(.phone) .rail { overflow-x: hidden; }  /* kein waagerechter Scrollbalken in der Leiste links */
.rail .rbset span { font-size: 10px; letter-spacing: -.01em; }
/* Üben: Noten (wie Tabulatur auf Papier) und wählbare Ansichten */
.prnotewrap { overflow: auto; }
.prnotes { background: var(--paper); border-radius: 4px; padding: 6px 8px; display: block; overflow-x: auto; }
.prstaff { display: block; margin: 2px 0; }
.prstaff .sl { stroke: var(--beschriftung); stroke-width: 1; }
.prstaff .ll { stroke: var(--beschriftung); stroke-width: 1; }
.prstaff .clef { font-size: 40px; fill: var(--ink); font-family: 'Noto Music', 'Bravura', 'Segoe UI Symbol', serif; }
.prstaff .clef8 { font-size: 9px; fill: var(--ink); }
.prstaff .nh ellipse { fill: var(--ink); }
.prstaff .nh .st { stroke: var(--ink); stroke-width: 1.2; }
.prstaff .nh .acc { font-size: 13px; fill: var(--ink); }
.prstaff .nh.now ellipse { fill: var(--accent); }
.prstaff .nh.now .st { stroke: var(--accent); }
body.pr-nonotes .prnotewrap { display: none !important; }
body.pr-notab .prtabwrap { display: none !important; }
body.pr-nofb .prboard { display: none !important; }
body.pr-nofb .prscroll > .sizegrip[data-grip="fb"] { display: none !important; }
body.phone .prbar #prShow { order: 7; grid-column: 1 / -1; display: flex; } body.phone .prbar #prShow button { flex: 1; }
body.phone .prscroll > .prnotewrap { flex: 0 1 auto; max-height: 40vh; overflow-y: auto; }
body:not(.phone) .prbar > #prShow { order: 2; }
.view.practice.chords-mode #prShow, .view.practice.chords-mode .prnotewrap { display: none !important; }
body:not(.phone) .prnotewrap { flex: none; overflow: visible; }
.pdfsel { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 12px; margin: 10px 0 14px; }
/* Ladeschleier beim Start */
html:has(> body > #boot:not(.gone)) { overflow: hidden; }
body:has(> #boot:not(.gone)) { overflow: hidden; max-width: 100vw; }
.boot { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; height: 100dvh; z-index: 100000; display: grid; place-items: center; place-content: center; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(6px); transition: opacity .35s ease; }
#boot { background: var(--schwarz); backdrop-filter: none; --fg: var(--schrift-grau-weiss); --muted: var(--farbe-grau-hell); } /* erster Start: deckend schwarz; .loadshade (späteres Laden) bleibt halb durchsichtig */
.boot.gone { opacity: 0; pointer-events: none; }
.bootbox { position: relative; display: grid; justify-items: center; width: 150px; } /* Ring genau in der Mitte; Text hängt darunter */
.bootbox > .bootmsg, .bootsub { position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%); white-space: nowrap; }
.bootsub { display: grid; justify-items: center; gap: 12px; }
.bootlogo { font-family: var(--display, sans-serif); font-weight: 700; font-size: 46px; color: var(--fg, var(--schrift-grau-weiss)); }
.bootlogo span { color: var(--accent, var(--accent)); }
.bootmsg { margin: 0; font-size: 12px; color: var(--muted, var(--farbe-grau-hell)); }
.bootbox > .sperreab { position: absolute; top: calc(100% + 42px); left: 50%; transform: translateX(-50%); }  /* Sperre: Abbrechen (z. B. WAV-Berechnung) */
@media (prefers-reduced-motion: reduce) { .boot { transition: none; } }
/* Ladeschleier: Ring rund um das Logo */
.bootlogo { display: flex; align-items: center; justify-content: center; line-height: 1; letter-spacing: 0; }
.bootring { position: relative; width: 150px; height: 150px; display: grid; place-items: center; }
.bootring svg { position: absolute; inset: 0; width: 150px !important; height: 150px !important; transform: rotate(-90deg); }
.bootring circle { fill: none; stroke-width: 5; }
.bootring .bg { stroke: color-mix(in srgb, var(--fg, var(--schrift-grau-weiss)) 14%, transparent); }
.bootring .fg { stroke: var(--accent, var(--accent)); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 96; transition: stroke-dashoffset .25s ease; }
.bootring .bootlogo { font-size: 38px; }
@media (prefers-reduced-motion: reduce) { .bootring .fg { transition: none; } }
body[data-view="rig"] .viewbar .tgroup:has(#undo) button:disabled { opacity: 1; pointer-events: auto; }  /* Band-Setup: eigener Verlauf für das Standard-Setup */
.docksec:has(#rigPlay) { display: none !important; }  /* Band-Setup: „Hören“ entfällt – Play/↶↷ oben, Mitspielen per Häkchen in den Reitern */
.vsong .vptest { margin: 2px 0 4px; }
.vsong.dim .vptest { opacity: .4; pointer-events: none; }
/* Band-Setup: welches Setup rechts bearbeitet wird (Song / Stil / Standard) – Abzeichen am Titel und Rahmenfarbe des Boards */
body[data-view="rig"] .viewbar .tgroup:has(#bpmR) { display: none !important; }  /* Band-Setup: Tempo/Übungstempo gehören zur Werkstatt */
/* Band-Setup „Gilt für“: Auswahl und „Standard laden“ sauber untereinander (kein leerer Hinweis, keine halbe Zeile) */
#rigForSec { display: grid; gap: 6px; }
#rigForSec #rigFor { width: 100%; min-width: 0; text-overflow: ellipsis; }
#rigForSec #rigModeInfo:empty { display: none; }
#rigForSec .dockrow { display: grid; grid-template-columns: 1fr; gap: 6px; }
#rigForSec .dockrow > button:not([hidden]) { width: 100%; justify-content: center; }
#rigForSec { padding-bottom: 12px; }  /* „Standard laden“ nicht vom nächsten Kasten verdeckt */
#rigFromDefault.confirm { border-color: var(--accent); color: var(--accent); }
#rigBandTitle[data-setup="song"] { color: var(--accent); }
#rigBandTitle[data-setup="def"] { color: var(--brass); }
#rigBandTitle[data-setup="sty"] { color: var(--schrift-blau-hell-2); }
body:not(.phone) .viewbar { min-height: 64px; }  /* gleich hoch in Werkstatt und Band-Setup – nichts springt */

/* Anmeldung und Konto */
.authgate { position: fixed; inset: 0; z-index: 100001; display: grid; place-items: center; padding: 16px; background: var(--bg); }
.authbox { display: grid; gap: 10px; width: min(340px, 100%); padding: 24px 22px; border: 1px solid var(--line, var(--rahmen-grau-dunkel)); border-radius: 14px; background: var(--panel, var(--flaeche-grau-dunkel)); box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.authlogo { justify-self: center; font: 800 34px/1 var(--display, inherit); letter-spacing: .02em; margin-bottom: 6px; }
.authlogo span { color: var(--accent); }
.authbox .authmode { justify-self: stretch; display: grid; grid-template-columns: 1fr 1fr; }
.authbox input, .acctbox input { width: 100%; box-sizing: border-box; padding: 9px 11px; font: inherit; border-radius: 8px; border: 1px solid var(--line, var(--rahmen-grau-dunkel)); background: var(--bg); color: inherit; }
.authbox input:focus, .acctbox input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.authbox .ib { justify-content: center; min-height: 40px; }
.autherr { margin: 0; min-height: 1.2em; color: var(--accent); font-size: 13px; }
.acctbox, .acctform { display: grid; gap: 10px; }
.acctbox .ib.danger.accent { background: var(--flaeche-rot-mittel-2); border-color: var(--flaeche-rot-mittel-2); }

/* Band-Setup: alle Instrumente als Reiter – Häkchen (gehört zur Band) vor dem Titel, Solo dahinter */
.rigstage > .rigband { padding: 8px 12px; }
/* je nach Platz eine Zeile (ab 1200 px Bühne), sonst feste Zeilen zu 6 bzw. 3 – nie abgeschnitten, nichts springt */
.rigview .rigstage { container: rigstage / inline-size; }
#rigTabs { display: flex; flex-wrap: wrap; gap: 3px; padding-left: 0; margin-bottom: 0; overflow: visible; }
#rigTabs [role="tab"] { flex: 1 1 calc((100% - 21px) / 8); }  /* Zeile voll: alle gleich breit; die letzte, halbe Zeile füllt sich */
#rigTabs [role="tab"] { min-width: 0; gap: 6px; padding: 6px 7px; font-size: 12px; white-space: normal; border-bottom: 1px solid var(--line); border-radius: 6px; }
#rigTabs [role="tab"][aria-pressed="true"] { padding-bottom: 6px; border-color: var(--tc); }
#rigTabs .rtlab { display: inline; flex: 1; text-align: left; overflow: visible; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
#rigTabs [role="tab"] > svg { flex: none; }
#rigTabs .rtcheck { display: inline-grid; place-items: center; width: 14px; height: 14px; flex: none; border-radius: 3px; border: 1px solid var(--muted); cursor: pointer; position: relative; }
#rigTabs .rtcheck::before, #rigTabs .rtsolo::before { content: ""; position: absolute; inset: -6px -3px; }
#rigTabs .rtcheck[aria-checked="true"] { background: var(--accent); border-color: var(--accent); }
#rigTabs .rtcheck[aria-checked="true"]::after { content: ""; width: 6px; height: 3px; border: solid var(--weiss); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
#rigTabs .rtsolo { display: inline-grid; place-items: center; position: relative; width: 17px; height: 17px; flex: none; border-radius: 4px; border: 1px solid var(--line); color: var(--muted); font: 700 10px/1 inherit; font-size: 10px; font-weight: 700; cursor: pointer; }
@media (hover: hover) { #rigTabs .rtsolo:hover, #rigTabs .rtcheck:hover{ border-color: var(--fg); color: var(--fg); } }
#rigTabs [role="tab"].off { background: transparent; }
#rigTabs [role="tab"].off > :not(.rtcheck) { opacity: .55; }
#rigTabs [role="tab"].off[aria-pressed="true"] > :not(.rtcheck) { opacity: 1; }
#rigTabs [role="tab"].off .rtsolo { pointer-events: none; }
#rigTabs [role="tab"].unheard .rtlab { opacity: .55; }
@container rigstage (max-width: 640px) { #rigTabs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container rigstage (max-width: 860px) { #rigTabs [role="tab"] > svg { display: none; } }
@container rigstage (min-width: 1200px) { #rigTabs { display: flex; } #rigTabs [role="tab"] { flex: 1 1 calc((100% - 21px) / 8); gap: 5px; padding: 6px 5px; } #rigTabs [role="tab"] > svg { display: none; } }
@container rigstage (min-width: 1490px) { #rigTabs [role="tab"] > svg { display: inline; } }
.rigstage > .rigpane { border-radius: 6px; }
/* Abweichung vom Standard: Titel in Messing, geänderte Besetzung auch am Häkchen */
#rigTabs [role="tab"].dev .rtlab { color: var(--brass); font-weight: 600; }
#rigTabs [role="tab"].devband .rtcheck { border-color: var(--brass); }
#rigTabs [role="tab"].devband .rtcheck[aria-checked="true"] { background: var(--brass); }
#rigTabs .rtsolo[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }

/* Übergang zum nächsten Abschnitt */
.arr .card > .trb { position: absolute; right: 0; bottom: 24px; min-width: 18px; height: 20px; padding: 0 4px; border: 1px solid var(--line); border-right: 0; border-radius: 5px 0 0 5px; background: var(--panel); color: var(--muted); font: 600 11px/1 var(--mono); cursor: pointer; }
.arr .card > .trb.own { color: var(--brass); border-color: var(--brass); }
@media (hover: hover) { .arr .card > .trb:hover{ color: var(--fg); border-color: var(--fg); } }
.arr .card:not(:hover):not(.sel):not(:focus-within) > .trb:not(.own) { visibility: hidden; }
@media (pointer: coarse) { .arr .card > .trb { visibility: visible !important; min-width: 28px; height: 28px; } }
body.wplay:not(.phone) .arr .card > .trb { display: none; }
#transPop .tric { display: inline-block; width: 16px; text-align: center; font-style: normal; color: var(--brass); }
#transPop [aria-checked="true"] { color: var(--brass); font-weight: 600; }
#transPop [disabled] { opacity: .4; cursor: default; }

/* Logo über den Bereichs-Knöpfen; am Desktop keine Kopfzeile – die Fenster reichen bis oben */
.rail > .brand { font-size: 26px; text-align: center; margin: 2px 0 8px; display: block; }
body:not(.phone) > .topbar { display: none; }
html:has(> body:not(.phone)) { --top: 0px; }
body.busy:not(.phone)::after { content: ""; position: fixed; left: 0; top: 0; height: 2px; width: 40%; background: var(--brass); animation: busybar 1s linear infinite; z-index: 60; }
/* Fenster der Kopfleisten-Knöpfe: gleiche Kopfzeile mit ✕ */
.livehead { display: flex; align-items: center; gap: 8px; }
.livehead h2 { margin: 0; font-size: 20px; }
.livehead .sp { flex: 1; }
/* Handy-Mix: eigene Gitarre abgesetzt */
.prgoal .prok { min-width: 118px; justify-content: center; }

/* Band des Songs: Fenster über der Werkstatt */
.songrig { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; background: rgba(0, 0, 0, .62); padding: 18px; }
.songrigbox { width: min(1500px, 100%); height: 100%; min-height: 0; display: flex; flex-direction: column; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 12px; box-shadow: 0 24px 70px rgba(0, 0, 0, .6); }
.songrighead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; flex: none; }
.songrighead h2 { margin: 0 6px 0 2px; font-size: 22px; line-height: 1.1; max-width: 42ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.songrighead h2[data-setup="song"] { color: var(--accent); }
.songrighead h2[data-setup="sty"] { color: var(--schrift-blau-hell-2); }
.songrighead .sp { flex: 1; }
.songrigbody { flex: 1 1 auto; min-height: 0; overflow: auto; display: flex; flex-direction: column; }
.songrigbody > .view { flex: 1 1 auto; min-height: 0; height: auto; padding: 0 !important; }
.rigview .rigband { display: none; }  /* kein Titel: Band-Setup = deine Band; beim Song steht er im Kopf des Fensters */
.sbsnd.dev .sblab { color: var(--brass); }  /* Song weicht von der Band ab */
@media (max-width: 900px) {  /* Tablet: ein gemeinsamer Scrollbereich, Schließen oben rechts */
  .songrig { padding: 6px; }
  .songrighead #songRigClose { order: 2; } .songrighead .sp { order: 1; } .songrighead #songRigSw, .songrighead #rigFromDefault, .songrighead #songRigUndo, .songrighead #songRigRedo, .songrighead #songRigPlay { order: 3; }
  .songrighead h2 { max-width: calc(100% - 60px); }
  .songrigbody { display: block; }
  .songrigbody .rigstage, .songrigbody .rigdock, .songrigbody .dockbody { max-height: none !important; height: auto !important; overflow: visible !important; }
  .songrigbody .rigboard { min-height: 420px; }
}

/* Assistent: Grundlage „zuletzt gehört“ */
.wizbase { display: flex; align-items: center; gap: 8px; padding: 6px 10px; margin-bottom: 8px; border: 1px solid var(--brass); border-radius: 8px; font-size: 13px; width: fit-content; max-width: 100%; }
.wizbase > svg { width: 16px; height: 16px; color: var(--brass); flex: none; }
.wizbase .px { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 2px; display: inline-flex; }
.wizbase .px svg { width: 14px; height: 14px; }
.planblk .pkeep { display: inline-grid; place-items: center; width: 24px; height: 22px; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: var(--muted); cursor: pointer; }
.planblk .pkeep.on { color: var(--brass); border-color: var(--brass); }
.planblk .pkeep.new { border-style: dashed; cursor: default; }
.planblk .pkeep svg { width: 13px; height: 13px; }
body.phone .planblk:has(.pkeep) { flex-wrap: wrap; row-gap: 4px; }
body.phone .planblk:has(.pkeep) .pn { flex: 1 0 100%; font-size: 13px; }
body.phone .planblk:has(.pkeep) .pn::before { content: none; }
body.phone .planblk:has(.pkeep) .plvl:not(.set) { display: none; }
body.phone .planblk .pkeep { width: 30px; height: 28px; }
body.phone .planblk:has(.pkeep) { flex: 1 1 calc(50% - 6px) !important; max-width: none; min-width: 148px; }

/* Setup: Instrument ohne Effekte -> Seitenleiste ausgegraut statt weg; Gesang: ohne Verstärker/Boxen-Import */
.rigdock > .dockbody { transition: opacity .15s; }
.rigdock.nofx > .dockbody { opacity: .35; pointer-events: none; filter: grayscale(1); }
.rigdock.novc > .dockbody > .dockfoot { opacity: .35; pointer-events: none; }
.moreinst { display: grid; gap: 8px; justify-items: start; }
.moreinst .instopts { width: 100%; }
.moreinst .v2set { display: grid; gap: 4px; width: 100%; }  /* Reiter 2. Stimme: Art, Gesangsstil, Stimme */
.moreinst .v2set .instopts { display: flex; flex-wrap: wrap; }
.moreinst:has(> .v2set) { max-width: none; }

/* Setup → Gesang: „Stimme deiner Band“ bzw. Song-Kopf bleibt oben angedockt, nur die Stimmen scrollen */
.vhead { display: grid; gap: 4px; justify-items: start; }
body:not(.phone) .riginst > .vsong > .vhead { position: sticky; top: 0; z-index: 3; justify-self: stretch; background: var(--panel-2); padding-bottom: 4px; }

/* Band-Fenster: Ebene ganzer Song | Songteil */
.songriglv { display: flex; gap: 6px; flex: none; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.songriglv button { display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--muted); font-size: 13px; cursor: pointer; }
.songriglv button svg { width: 15px; height: 15px; }
.songriglv button i { width: 9px; height: 9px; border-radius: 3px; background: var(--c); }
@media (hover: hover) { .songriglv button:hover{ color: var(--fg); } }
.songriglv button.dev { color: var(--brass); }
.songriglv button[aria-pressed="true"] { color: var(--fg); background: var(--panel-2); border-color: var(--c, var(--accent)); box-shadow: inset 0 -2px 0 var(--c, var(--accent)); }
.songriglv button.dev[aria-pressed="true"] { color: var(--brass); }
.songrig.lvpart #songRigSw, .songrig.lvpart #rigFromDefault { visibility: hidden; }
#rigTabs [role="tab"].noband { opacity: .4; }
#rigTabs [role="tab"].noband .rtcheck { pointer-events: none; opacity: .4; }
.riginst .ptiles button b { max-width: none; }
.riginst .ptiles button[aria-pressed="true"]:first-child:is([data-pv=""]) { border-style: dashed; }
.pband { max-width: 100%; }
.pband span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pband.dev { color: var(--brass); border-color: var(--brass); }
.props-table td:nth-child(4) { max-width: none; width: 45%; }

/* Band eines Songs: importiert (NAM, Box-IR) wird nur im Band-Setup */
body.songrig .rigview .rigdock .dockfoot { display: none !important; }
#toneBar.ovhide { display: none !important; }

/* Meine Bands: Import-Knöpfe unten – zwei gleich breite, nichts abgeschnitten */
body:not(.phone) .rigview .rigdock .dockfoot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; padding: 10px 12px !important; }
body:not(.phone) .rigview .rigdock .dockfoot > .docksec { margin: 0; padding: 0 !important; border: 0; min-width: 0; display: block; grid-area: auto !important; overflow: visible; }
body:not(.phone) .rigview .rigdock .dockfoot .irimp { display: flex; width: 100% !important; height: 34px; font-size: 12.5px; box-sizing: border-box; justify-content: center; gap: 7px; padding: 8px 6px; margin: 0; overflow: hidden; }
body:not(.phone) .rigview .rigdock .dockfoot .irimp svg { width: 15px; height: 15px; flex: none; }

 body.wplay:not(.phone) #songTitle:focus{ border-color: var(--line) !important; background: var(--panel-2) !important; } @media (hover: hover) { body.wplay:not(.phone) #songTitle:hover{ border-color: var(--line) !important; background: var(--panel-2) !important; } }  

/* Schlagzeug-Mischung als Gerät wie der Grafik-EQ */
.pedal.drumdev { position: relative; width: 520px; max-width: 100%; cursor: default; padding-bottom: 12px; min-height: 0; }
.pedal.drumdev .geqhead { justify-content: flex-start; padding-left: 26px; }
.pedal.drumdev .geqpre { max-width: 220px; }
.pedal.drumdev .geqbands { display: flex; justify-content: space-between; gap: 6px; padding: 4px 14px 0; }
.pedal.drumdev .knob.dmf { width: auto; flex: 1 1 0; }
.pedal.drumdev .fval { font: 600 10px var(--mono); font-style: normal; }
.pedal.drumdev .knob.dmf[data-k="room"] { border-left: 1px solid rgba(0, 0, 0, .25); padding-left: 10px; }
.gearpop .gpi.cur button:first-child { color: var(--brass); }

.delbtns { margin-left: auto; gap: 6px; }
body.phone .delbtns { display: none; }
.delbtns button:disabled { opacity: .35; }

/* Titelleiste des Songs: Gruppen (Titel · Datei · Eigenschaften · Klang … Ansicht), durch Striche getrennt */
.sb-head { container-type: inline-size; }
.sbg { display: flex; align-items: center; gap: 6px; flex: none; }
.sb-head > .sbg + .sbg, .sb-head > .zoombox { padding-left: 12px; margin-left: 6px; border-left: 1px solid var(--line); }
.sblab { font: 600 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
@container (max-width: 1180px) { .sblab, #propsOpen > span { display: none; } }
@container (max-width: 860px) { .sb-head .rigseg button { padding: 0 8px; } }
@container (max-width: 790px) { .sb-head > .zoombox .zoomval { display: none; } .sb-head > .sbg + .sbg, .sb-head > .zoombox { padding-left: 6px; margin-left: 2px; } }
.sb-head:has(> #selbar:not([hidden])) > .sbg { display: none; }  /* Mehrfachauswahl: die Auswahl-Knöpfe haben Vorrang */
/* Leiste darüber: ↶/↷ als ein Knopfpaar */
.viewbar > .tgroup:has(#undo) { gap: 0; }
.viewbar #undo { border-radius: 6px 0 0 6px; } .viewbar #redo { border-radius: 0 6px 6px 0; margin-left: -1px; }
@container (max-width: 790px) { .sb-head > .title-in.title-in { min-width: 90px; } .sb-head > .zoombox [data-z="-1"], .sb-head > .zoombox [data-z="1"] { display: none; } .sb-head .rigseg button { padding: 0 6px; } }
@media (max-width: 1490px) { body:not(.phone) .viewbar #bpmR { display: none; } .viewbar { column-gap: 10px; } .viewbar .wswitch .wsopt { padding: 0 9px; } }
@media (max-width: 1235px) { body:not(.phone) .viewbar #liveBtn > span, body:not(.phone) .viewbar #mixBtn > span { display: none; } .viewbar .speedf input { width: 64px; } .viewbar #wMode .wsopt svg { display: none; } }
@media (max-width: 1300px) { body:not(.phone) .viewbar #liveBtn > span, body:not(.phone) .viewbar #mixBtn > span { display: none; } body:not(.phone) .viewbar > .tgroup { padding-left: 10px; } body:not(.phone) .viewbar > .tgroup:has(#playBtn) { padding-left: 0; } }
@media (max-width: 1235px) { body:not(.phone) .viewbar { column-gap: 6px; } body:not(.phone) .viewbar #playBtn { width: 84px; min-width: 0; padding: 0 8px; } body:not(.phone) .viewbar #countBtn { width: auto; min-width: 0; } body:not(.phone) .viewbar #countLab { display: none; } }
/* Klang des Songs: Meine Band · Song (nur bei Abweichung) · Stil */
.rigseg { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel-2); min-height: 30px; flex: none; }
.rigseg button { border: 0; background: none; color: var(--muted); border-radius: 999px; padding: 0 12px; min-height: 22px; font: inherit; font-size: 12px; white-space: nowrap; cursor: pointer; }
.rigseg button[hidden] { display: none; }
@media (hover: hover) { .rigseg button:hover:not(:disabled){ color: var(--fg); } }
.rigseg button[aria-checked="true"] { background: var(--fg); color: var(--bg); }
@media (hover: hover) { .rigseg button[aria-checked="true"]:hover{ color: var(--bg); } }
.rigseg button:disabled { opacity: .45; cursor: default; }
/* Favoriten-Stern als Zeichnung (leer = Umriss, Favorit = gefüllt) */
.favstar svg, .starsvg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; display: block; }
.favstar.on svg { fill: currentColor; }
.starsvg { display: inline-block; width: 12px; height: 12px; vertical-align: -1px; fill: currentColor; }
/* Band-Setup › Lead: Schalter „spielt Rhythmus mit“ (Symbol + Text in einer Zeile) */
.instopts button[data-leaddbl] { grid-template-columns: auto 1fr; align-items: center; column-gap: 8px; }
.instopts button[data-leaddbl] svg { width: 18px; height: 18px; color: var(--muted); }
.instopts button[data-leaddbl][aria-pressed="true"] svg { color: var(--tr-lead, var(--fg)); }
/* Werkstatt: „Songteil | Song“ zeigt farbig, was gerade abgespielt wird */
.viewscope button.run { box-shadow: inset 0 -2px 0 var(--brass); }
.viewscope button.run[aria-pressed="false"] { color: var(--brass); }
/* Optisches Metronom (Pop-up, verschiebbar, Größe per Griff unten rechts = --ms): ein Punkt je Zählzeit, „1“ in Akzentfarbe, Einzählen grau */
.metropop { --ms: 1; position: fixed; z-index: 45; top: 120px; right: 24px; display: flex; align-items: center; gap: calc(12px * var(--ms)); padding: 24px calc(14px * var(--ms)) calc(10px * var(--ms));  /* oben Platz für die Knöpfe in der Ecke */ background: var(--panel); border: 1px solid var(--line); border-radius: calc(10px * var(--ms)); box-shadow: 0 10px 28px rgba(0, 0, 0, .45); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.metropop.drag { cursor: grabbing; }
.metropop .mpdots { display: flex; gap: calc(8px * var(--ms)); }
.metropop .mpdots i { width: calc(18px * var(--ms)); height: calc(18px * var(--ms)); border-radius: 50%; border: 2px solid var(--line); background: transparent; transition: background .08s, border-color .08s; }
.metropop .mpdots i.on { background: color-mix(in srgb, var(--brass) 55%, transparent); border-color: var(--brass); }
.metropop .mpdots i.one.on { background: color-mix(in srgb, var(--accent) 60%, transparent); border-color: var(--accent); }
.metropop .mpdots i.hit { background: var(--brass); }
.metropop .mpdots i.one.hit { background: var(--accent); }
.metropop.cnt .mpdots i.on, .metropop.cnt .mpdots i.hit { background: var(--muted); border-color: var(--muted); }
.metropop .mpnum { display: grid; justify-items: center; min-width: calc(64px * var(--ms)); line-height: 1; }
.metropop .mpnum b { font: 700 calc(28px * var(--ms)) var(--mono); color: var(--fg); }
.metropop .mpnum span { font-size: calc(11px * var(--ms)); color: var(--muted); white-space: nowrap; margin-top: 3px; }
.metropop .mpbar { position: absolute; top: 2px; right: 2px; display: flex; gap: 1px; }
.metropop .mpx { width: 22px; height: 22px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
@media (hover: hover) { .metropop .mpx:hover{ background: var(--panel-2); color: var(--fg); } }
.metropop .mpx svg { width: 14px; height: 14px; }
.metropop .mpsize { position: absolute; right: 1px; bottom: 1px; width: 14px; height: 14px; cursor: nwse-resize; border-radius: 0 0 9px 0; background: linear-gradient(135deg, transparent 50%, var(--line) 50%, var(--line) 60%, transparent 60%, transparent 72%, var(--line) 72%, var(--line) 82%, transparent 82%); }
@media (hover: hover) { .metropop .mpsize:hover{ background: linear-gradient(135deg, transparent 50%, var(--brass) 50%, var(--brass) 60%, transparent 60%, transparent 72%, var(--brass) 72%, var(--brass) 82%, transparent 82%); } }
#metroBtn[aria-pressed="true"] { color: var(--brass); border-color: var(--brass); }
body.phone .metropop { top: auto; right: auto; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%); }
body.phone .metropop .mpsize { width: 22px; height: 22px; }
/* Metronom „klassisch“: Pyramiden-Gehäuse mit Pendel (Drehpunkt unten), Gewicht in Akzentfarbe auf der „1“ */
.metropop .mpclassic { display: none; width: calc(54px * var(--ms)); height: calc(68px * var(--ms)); }
.metropop.classic .mpclassic { display: block; }
.metropop.classic .mpdots { display: none; }
.metropop .mpbox { fill: var(--symbol-orange-dunkel); stroke: var(--symbol-orange-schwarz); stroke-width: 1.5; }  /* dunkles Holz: hebt sich von hellem und dunklem Hintergrund ab */
.metropop .mpface { fill: var(--schrift-braun-weiss); stroke: var(--symbol-orange-schwarz); stroke-width: 1; }  /* feste Farben wie ein echtes Metronom: helles Zifferblatt, dunkler Zeiger (im dunklen Theme waren beide dunkel) */
.metropop .mpclassic { position: relative; }
.metropop .mpclassic svg { display: block; width: 100%; height: 100%; }
.metropop .mparm { position: absolute; inset: 0; transform-origin: 50% 82.5%; will-change: transform; }  /* Drehpunkt = Achse (32|66 von 64×80) */
/* Zeiger zweifarbig (dunkle Kontur, heller Kern): läuft über Zifferblatt, Gehäuse und Hintergrund – überall sichtbar */
.metropop .mparm line { stroke-linecap: round; }
.metropop .mparm .mpo { stroke: var(--symbol-orange-schwarz-2); stroke-width: 4.4; }
.metropop .mparm .mpc { stroke: var(--symbol-gold-hell); stroke-width: 2; }
.metropop .mpw { stroke: var(--symbol-orange-schwarz-2); stroke-width: 1.2; }
.metropop .mpw { fill: var(--brass); }
.metropop.one .mpw { fill: var(--accent); }
.metropop.cnt .mpw { fill: var(--muted); }
.metropop .mppiv { fill: var(--symbol-braun-dunkel); }

#metroBtn:disabled { opacity: .35; }  /* Bereich ohne Taktgeber (Setup, Dateien …) */
.ctxmenu .ctxhead { margin: 4px 10px 2px; font-size: 12px; color: var(--muted); max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Handy-Songbook: Titel als Eingabefeld, Suchen als eigener Knopf daneben */
input.pvtitle { flex: 1; min-width: 0; padding: 6px 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel-2); color: var(--fg); font: inherit; font-size: 20px; font-weight: 700; text-overflow: ellipsis; }
input.pvtitle:focus { border-color: var(--accent); outline: none; }
body.phone input.pvtitle { min-height: 40px; font-size: 18px; }
.pvpickrow .pvfind { margin-left: 4px; }
/* Handy: „− 60 +“ oben statt Übungstempo-Regler (Songbook) bzw. eigener Tempo-Zeile (Üben); Leiste auch beim Üben (Metronom) */
.tbtempo { display: none; }
body.phone .tbtempo { display: inline-flex; align-items: center; gap: 4px; }
body.phone .tbtempo b { min-width: 3ch; text-align: center; font-size: 16px; font-variant-numeric: tabular-nums; }
body.phone .tbtempo .ib { min-width: 40px; min-height: 40px; font-size: 20px; }
body.phone .topbar .speedf { display: none; }
body.phone.practicing .topbar { display: flex; }
body.phone.practicing .view.practice .prbpm { display: none; }
body.phone.practicing #loopBtn { display: none; }
/* Song-Datei: Menü „Song ▾“ und Speicher-Status (feste Breite, Zustand nur farblich) */
#songMenuBtn .chev { width: 12px; height: 12px; margin-left: -2px; opacity: .7; }
.savestat { min-width: 132px; justify-content: flex-start; }
.savestat[data-st="saved"] { color: var(--muted); }
.savestat[data-st="pending"] { color: var(--muted); border-style: dashed; }
.savestat[data-st="draft"] { color: var(--brass); border-color: var(--brass); }
.savestat[data-st="error"] { color: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.popmenu button kbd { margin-left: auto; padding-left: 18px; font: 11px/1 inherit; color: var(--muted); background: none; border: 0; }
.popmenu button .more { margin-left: auto; width: 12px; height: 12px; }
.pvmr.away { opacity: .45; }
/* Mischpult in Hardware-Optik: gebürstetes Metall, Kanalzüge mit Alu-Drehregler, LED-Kette, Fader-Kappe, Gummitasten, Namensfeld */
.mixpop:not(.docked) { width: max-content; max-width: calc(100vw - 24px); }
.mixpop .mixhead b { color: var(--brass); font-weight: 400; }
.mixpop .mixer { display: flex; gap: 0; align-items: stretch; overflow-x: auto; padding: 8px 6px 10px; border-radius: 8px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px), linear-gradient(180deg, var(--farbe-grau-dunkel), var(--farbe-grau-dunkel-2) 55%, var(--flaeche-grau-dunkel));
  border: 1px solid var(--regler-strich); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 -2px 6px rgba(0,0,0,.5), 0 2px 0 var(--schwarz); }
.mixpop .mixrail { position: relative; display: flex; align-items: stretch; min-width: 0; }
.mixpop .mixrail .mixer { flex: 1 1 auto; min-width: 0; scroll-behavior: smooth; scrollbar-width: thin; }
.mixpop .mixnav { flex: none; width: 18px; padding: 0; display: grid; place-items: center; border: 1px solid var(--regler-strich); background: linear-gradient(var(--flaeche-grau-dunkel-2), var(--flaeche-grau-dunkel-3)); color: var(--schrift-grau-hell); cursor: pointer; }
.mixpop .mixnav:first-child { border-radius: 8px 0 0 8px; border-right: 0; } .mixpop .mixnav:last-child { border-radius: 0 8px 8px 0; border-left: 0; }
.mixpop .mixnav svg { width: 12px; height: 12px; } .mixpop .mixnav:disabled { opacity: .3; cursor: default; } .mixpop .mixnav[hidden] { display: none; }
.mixpop.docked { overflow-y: hidden; }
.mixer .strip { --fh: 150px; user-select: none; flex: none; width: 64px; display: grid; justify-items: center; align-content: start; gap: 5px; padding: 4px 3px 0;
  border-right: 1px solid var(--regler-strich); box-shadow: inset -1px 0 0 rgba(255,255,255,.05); position: relative; }
.mixer .strip::before { content: ""; position: absolute; left: 10px; right: 10px; top: 0; height: 3px; border-radius: 2px; background: var(--tc, var(--flaeche-grau-mittel)); opacity: .9; }
.mixer .strip.away { opacity: .42; filter: saturate(.3); }
.mixer .strip[data-k="live"] { margin-left: 8px; border-left: 1px solid var(--line); padding-left: 6px; }  /* Live-Eingang zuletzt, .mixer .strip.away:focus-within
{ opacity: .85; } @media (hover: hover) { abgesetzt von den Spuren */ .mixer .strip.away:hover{ opacity: .85; } }
.mixer .strip.muted .mn { opacity: .55; text-decoration: line-through; }
.mixer .strip.rigsel { background: rgba(212,169,95,.10); box-shadow: inset 0 0 0 1px var(--brass); border-radius: 4px; }
.mixer .chn { margin-top: 4px; font: 10px var(--mono); color: var(--schrift-grau-mittel); }
.mixer .strip.dev .chn::after { content: " •"; color: var(--brass); }
/* Alu-Drehregler mit Skalenring */
.mixer .pknob { --a: calc((var(--p) - 5) / 5 * 135deg); position: relative; width: 30px; height: 30px; border-radius: 50%; cursor: ns-resize; touch-action: none; margin: 4px 0 0;
  background: radial-gradient(circle at 38% 32%, var(--flaeche-sand-hell-2) 0, var(--flaeche-braun-mittel) 35%, var(--farbe-braun-mittel) 72%, var(--farbe-grau-dunkel-3) 100%);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--schatten-grau-dunkel), 0 3px 4px rgba(0,0,0,.6); }
.mixer .pknob::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(from -135deg, var(--flaeche-grau-hell-2) 0 1.5deg, transparent 1.5deg 27deg); -webkit-mask: radial-gradient(circle, transparent 18px, var(--schwarz) 19px); mask: radial-gradient(circle, transparent 18px, var(--schwarz) 19px); clip-path: polygon(50% 50%, 0 100%, 0 0, 100% 0, 100% 100%); }
.mixer .pknob::after { content: ""; position: absolute; left: 50%; top: 2px; width: 3px; height: 11px; margin-left: -1.5px; border-radius: 2px; background: var(--flaeche-grau-dunkel);
  transform-origin: 50% 13px; transform: rotate(var(--a)); }
.mixer .pknob:focus-visible { outline: 2px solid var(--brass); outline-offset: 6px; }
.mixer .pv { font: 10px var(--mono); color: var(--schrift-grau-hell); min-height: 12px; }
/* Gummitasten, leuchten wenn an */
.mixer .ms { display: flex; gap: 4px; }
.mixer .ms button { width: 24px; height: 18px; padding: 0; font: 700 10px var(--mono); border-radius: 3px; cursor: pointer; color: var(--flaeche-grau-hell-2);
  background: linear-gradient(var(--flaeche-grau-dunkel-4), var(--flaeche-grau-dunkel-5)); border: 1px solid var(--regler-strich); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 1px 0 var(--schwarz); }
.mixer .ms button:active { transform: translateY(1px); }
.mixer .ms [data-mute][aria-pressed="true"] { color: var(--weiss); background: linear-gradient(var(--flaeche-rot-hell-2), var(--flaeche-rot-mittel-3)); box-shadow: 0 0 8px rgba(255,70,85,.7), inset 0 1px 0 rgba(255,255,255,.35); }
.mixer .ms [data-solo][aria-pressed="true"] { color: var(--schrift-braun-dunkel-3); background: linear-gradient(var(--flaeche-gold-hell-3), var(--flaeche-orange-mittel-2)); box-shadow: 0 0 8px rgba(255,200,90,.7), inset 0 1px 0 rgba(255,255,255,.45); }
/* Fader-Feld: LED-Kette | Skala | Fader */
.mixer .fwrap { height: var(--fh); width: 100%; display: grid; grid-template-columns: 6px 18px 30px; justify-content: center; gap: 2px; position: relative; margin-top: 2px; }
/* Pegel: Leiste in voller Höhe, sichtbar nur bis --l (clip-path) – kein Layout und keine Animation je Bild (Wiedergabe stockte sonst) */
.mixer .led { position: relative; height: 100%; border-radius: 2px; background: var(--regler-strich); box-shadow: inset 0 0 0 1px var(--schwarz); overflow: hidden; contain: strict; }
.mixer .led i { position: absolute; inset: 0; clip-path: inset(calc((1 - var(--l, 0)) * 100%) 0 0 0); will-change: clip-path;
  background: linear-gradient(to top, var(--flaeche-gruen-mittel-2) 0, var(--flaeche-gruen-mittel-2) 62%, var(--farbe-gold-hell-2) 78%, var(--farbe-rot-hell) 100%); }
.mixer .led::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(to top, transparent 0 3px, var(--regler-strich) 3px 4px); }
.mixer .scale { position: relative; height: 100%; font: 8.5px var(--mono); color: var(--schrift-grau-mittel); }
.mixer .scale i { position: absolute; right: 0; left: 0; bottom: calc(8px + (var(--y) / 100) * (100% - 16px)); height: 1px; background: var(--flaeche-grau-mittel-2); font-style: normal; }
.mixer .scale b { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); font-weight: 400; }
.mixer .vfader { writing-mode: vertical-lr; direction: rtl; width: 30px; height: var(--fh); margin: 0; padding: 0; background: transparent; cursor: ns-resize; -webkit-appearance: none; appearance: none; }
.mixer .vfader::-webkit-slider-runnable-track { width: 6px; border-radius: 3px; background: var(--flaeche-grau-schwarz-3); box-shadow: inset 0 1px 2px var(--schwarz), 0 0 0 1px var(--schatten-grau-dunkel-3); }
.mixer .vfader::-moz-range-track { width: 6px; border-radius: 3px; background: var(--flaeche-grau-schwarz-3); box-shadow: inset 0 1px 2px var(--schwarz), 0 0 0 1px var(--schatten-grau-dunkel-3); }
.mixer .vfader::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 28px; height: 16px; margin-left: -11px; border-radius: 3px; border: 1px solid var(--regler-strich);
  background: linear-gradient(180deg, var(--metall-glanz) 0, var(--metall-dunkel) 45%, var(--metall-hell) 50%, var(--metall-dunkel) 55%, var(--rand-dunkel) 100%); box-shadow: 0 3px 4px rgba(0,0,0,.7); }
.mixer .vfader::-moz-range-thumb { width: 28px; height: 16px; border-radius: 3px; border: 1px solid var(--regler-strich);
  background: linear-gradient(180deg, var(--metall-glanz) 0, var(--metall-dunkel) 45%, var(--metall-hell) 50%, var(--metall-dunkel) 55%, var(--rand-dunkel) 100%); box-shadow: 0 3px 4px rgba(0,0,0,.7); }
.mixer .vfader:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; border-radius: 4px; }
.mixer .mxdb { font: 11px var(--mono); color: var(--schrift-gruen-hell); background: var(--flaeche-gruen-schwarz); padding: 1px 4px; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--schwarz); min-width: 40px; text-align: center;
  text-shadow: 0 0 4px rgba(90,240,140,.5); font-variant-numeric: tabular-nums; }
/* Namensfeld: gerades, dezentes Label (dunkles Feld, Instrumentfarbe als feine Linie) */
.mixer .mn { margin: 2px 0 6px; width: 58px; padding: 2px 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center;
  font: 600 10.5px/1.25 var(--mono); color: var(--schrift-grau-hell-2); background: var(--bg); border-radius: 2px; box-shadow: inset 0 0 0 1px var(--schatten-grau-dunkel-4); border-bottom: 2px solid color-mix(in srgb, var(--tc, var(--rahmen-grau-mittel-2)) 70%, var(--bg)); }
.mixer .mn::before { display: none; }
.mixer .mn[role="button"] { cursor: pointer; }
body.phone .mixpop .mixer .scale { display: none; }
/* Regler mit Einheit (parametrischer EQ): Wert klein unter der Beschriftung */
.knob.unit { position: relative; }
.knob .kval { display: block; font: 9.5px var(--mono); font-style: normal; color: color-mix(in srgb, currentColor 70%, transparent); white-space: nowrap; margin-top: 1px; }
.pedal.wide { width: 172px; }
.pedal.wide .knobs { display: grid; grid-template-columns: repeat(3, 1fr); justify-items: center; gap: 2px 4px; }
/* Stimmfarbe (Band-Setup → Gesang, dieser Song): Symbol + kleiner Regler je Eigenschaft */
.vcol { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.vcol label { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; cursor: default; }
.vcol input[type="range"] { width: 72px; margin: 0; }
/* Eigene Stimmen: Kachel mit ✎ rechts; Dialog Einsingen/Bearbeiten */
.riginst .instopts button:has(.vedit) { padding-right: 34px; }
.riginst .instopts .vpbtn.vedit { left: auto; right: 6px; }
.owndlg .ownhead { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.owndlg .ownhead input { flex: 1 1 160px; min-width: 0; }
.owndlg .ownbody { display: grid; gap: 10px; padding: 12px 16px 16px; min-width: 520px; }
.owndlg .ownrow button { width: 84px; }
.owndlg .ownmeter { height: 6px; background: var(--line, var(--rahmen-grau-dunkel)); border-radius: 3px; overflow: hidden; }
.owndlg .ownmeter i { display: block; height: 100%; width: 0; background: var(--accent, var(--flaeche-rot-mittel-4)); transition: width .05s linear; }
.owndlg .ownfoot { display: flex; gap: 8px; justify-content: flex-end; }

/* Eigenschaften eines einzelnen Songteils (Doppelklick): Spuren als Wrap-Liste statt Spalte */
.props-song .pq-spuren { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.props-song .pq-tr { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 13px; }

/* Gruppen in Eigenschaften-Dialogen (Songteil, Song): volle Breite, Überschrift mit Trennlinie */
.props-song .grp { flex: 0 0 100%; width: 100%; padding: 10px 0 2px; border-top: 1px solid var(--line); margin-top: 2px; }
.props-song .grp:first-child { border-top: 0; margin-top: 0; }
.props-table td.pq-new { white-space: nowrap; }
.props-table td.pq-new .ib + .ib { margin-left: 4px; }
.props-song .grp.sep { padding: 0 0 4px; margin-top: 6px; }  /* nur Umbruch und Linie, ohne Überschrift */
.props-song .pq-foot { flex: 0 0 100%; display: flex; justify-content: flex-end; }

/* Auswahl mit Anhören-Knopf nebeneinander (Eigenschaften-Dialoge) */
.props-song .hearrow { display: flex; gap: 6px; align-items: center; }
.props-song .hearrow select { flex: 1 1 auto; min-width: 0; }
.props-song .hearbtn { flex: 0 0 auto; }


/* Schnellauswahl „Neu“ je Songteil: eigenes kleines Fenster am Knopf, ohne Scrollbalken */
.invquick { width: 420px; max-width: calc(100vw - 16px); display: flex; flex-direction: column; gap: 10px; padding: 10px; background: var(--panel); color: var(--fg); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(0, 0, 0, .5); overflow: hidden; }
.invquick-head { display: flex; align-items: center; gap: 8px; }
.invquick-head b { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.invquick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.invquick-grid .ib { justify-content: flex-start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.invquick-foot { display: flex; justify-content: flex-end; }
dialog.invdlg::backdrop { background: rgba(0, 0, 0, .6); }

/* Effekte des Instruments rutschen nach rechts (der Pedalboard-Knopf ist entfallen; Doppelklick auf das Instrument). */
.trackrow #toneBar { margin-left: auto; margin-right: -28px; }  /* 6 px Abstand zum rechten Rand der Leiste (Innen-Padding 34 px) */

/* Konto unten links: abgesetzt mit Trennlinie */
.rail .rbuser { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }


/* Werkstatt-Reiter: Songteil/Song und Vollbild bündig mit der Unterkante der Reiter (keine Verschiebung) */
.tracktabs .ttright { align-self: stretch; align-items: center; padding: 0 4px; }  /* Schalter und Vollbild mittig in der Reiterzeile */
.tracktabs #edMax { width: 26px; height: 22px; }


/* Reiter direkt über dem Tab-Fenster: kein Rahmen um die Reiter, niedriger, Fenster in der Farbe des aktiven Reiters */
.view.work .editor { border-top: 0; padding-top: 0; }
.editor > .tracktabs { margin-bottom: 0; }
.editor > .tracktabs [role="tab"] { padding-top: 2px; padding-bottom: 2px; line-height: 18px; }
.editor > .tracktabs [role="tab"][aria-pressed="true"] { padding-top: 4px; padding-bottom: 4px; line-height: 18px; }  /* aktiver Reiter größer */
.editor > .trackpane { background: var(--panel-2); }
.view.work .editor > .tracktabs + .trackpane { margin-top: -6px; border-top: 1px solid var(--line); }  /* keine Lücke; Linie zwischen Reitern und Tab-Fenster */  /* Linie zwischen Reitern und Tab-Fenster */  /* Spalt der Editor-Spalte weg: Fenster direkt unter den Reitern */
.view.work .editor { border: 0; padding: 0; background: transparent; border-radius: 0; }  /* kein gemeinsamer Rahmen um Reiter, Tab-Fenster und Griffbrett */
/* Songteil/Song: ohne eigenen Rahmen, im Stil der Reiter */
.tracktabs .viewscope { border: 0; border-radius: 0; overflow: visible; background: transparent; gap: 3px; }
.tracktabs .viewscope button { border: 0; border-radius: 7px 7px 0 0; background: var(--panel); padding-top: 4px; padding-bottom: 4px; }
.tracktabs .viewscope button[aria-pressed="true"] { background: var(--panel-2); }
/* aktiver Reiter verschmilzt mit dem Tab-Fenster: deckt dessen obere Linie unter sich ab */
.editor > .tracktabs [role="tab"][aria-pressed="true"] { margin-bottom: -1px; position: relative; z-index: 2; }
/* Suche über die volle Breite, darunter die umrandete Liste (wie bei den Stilen) */

/* Einheitliche Reiter im ganzen Projekt (Vorlage: Werkstatt-Spurreiter). Aktiver Reiter größer, verschmilzt mit dem Fenster. */
.reiter { display: flex; align-items: flex-end; gap: 3px; border: 0; background: transparent; box-shadow: none; padding: 0; margin: 0; }
.reiter > button, .reiter > [role="tab"] { border: 0; border-radius: 7px 7px 0 0; background: var(--panel); color: var(--muted); padding: 2px 9px; line-height: 18px; font-size: 13px; margin: 0; box-shadow: none; }
@media (hover: hover) { .reiter > button:hover, .reiter > [role="tab"]:hover{ color: var(--fg); } }
.reiter > button[aria-pressed="true"], .reiter > [role="tab"][aria-pressed="true"], .reiter > [role="tab"][aria-selected="true"] { background: var(--panel-2); color: var(--fg); padding: 4px 9px; margin-bottom: -1px; position: relative; z-index: 2; }

/* Assistent: Schritte als Reiter in einer Zeile (Werkstatt-Optik) */
.wiz-steps { flex-wrap: wrap; align-items: flex-end; gap: 3px; row-gap: 3px; }
.wiz-steps li { flex: 0 1 auto; white-space: normal; border: 0; border-radius: 7px 7px 0 0; background: var(--panel); padding: 2px 10px 2px 5px; line-height: 18px; font-size: 12px; }
.wiz-steps li::before { width: 16px; height: 16px; }
.wiz-steps li.active { background: var(--panel-2); color: var(--fg); padding: 4px 10px 4px 5px; margin-bottom: -1px; position: relative; z-index: 2; }

/* Meine Bands: Instrument-Reiter als Karteikarten (oben abgerundet, ohne Rahmen), aktiver verschmilzt mit dem Fenster */
#rigTabs { align-items: flex-end; }
#rigTabs [role="tab"] { border: 0; border-radius: 7px 7px 0 0; background: var(--panel); padding-top: 2px; padding-bottom: 2px; }
#rigTabs [role="tab"][aria-pressed="true"] { background: var(--panel-2); padding-top: 4px; padding-bottom: 4px; margin-bottom: -1px; position: relative; z-index: 2; }


/* Meine Bands: kein Rahmen um die Instrumenten-Reiter, Reiter sitzen direkt auf dem Panel; nicht gewählte Instrumente wie Text */
.rigview .rigstage { border: 0; background: transparent; padding: 0; gap: 0; }
#rigTabs { margin-top: 0; padding: 0; gap: 3px 3px; }

/* Meine Bands: Instrumente wie die Werkstatt-Reiter (Symbol, Schrift, Abstände, Höhen) */
#rigTabs [role="tab"] { gap: 7px; padding: 2px 9px 2px 10px; font-size: 13px; }
#rigTabs [role="tab"] > svg { display: inline; flex: none; }
#rigTabs [role="tab"][aria-pressed="true"] { padding-top: 4px; padding-bottom: 4px; }
#rigTabs .rtlab { font-size: 13px; }

/* Assistent: jeder Schritt ist ein Reiter; der Button füllt die Karteikarte */
.wiz-steps li > button { height: auto; width: 100%; padding: 0; background: transparent; border: 0; color: inherit; font: inherit; line-height: 18px; text-align: left; border-radius: inherit; }
.wiz-steps li { align-items: center; }

/* Lernen und Stile: Inhalte in einem Tab-Fenster unter den Reitern (Werkstatt-Optik) */
.view.learn, .view.stylesview { position: relative; overflow: visible; margin-top: 27px; border: 1px solid var(--line); border-radius: 0 6px 6px 6px; background: var(--panel-2); }
.view.learn > nav.reiter, .view.stylesview > nav.reiter { position: absolute; top: -27px; left: -1px; }
/* Tab-Seiten: Innenabstand; aktiver Reiter immer farbig hervorgehoben (Akzentlinie oben) */
.view.learn, .view.stylesview { padding: 14px 16px; }
.reiter > button[aria-pressed="true"], .reiter > [role="tab"][aria-pressed="true"], .reiter > [role="tab"][aria-selected="true"] { box-shadow: inset 0 2px 0 var(--accent); color: var(--fg); }

/* Lernen: aktiver Reiter überdeckt die obere Linie des Tab-Fensters */
.view.learn > nav.reiter > [aria-pressed="true"], .view.stylesview > nav.reiter > [aria-pressed="true"] { position: relative; top: 2px; }

/* Stile: Reiter oberhalb des Fensters sichtbar (Ansicht schneidet nicht ab) */
.view.stylesview { overflow: visible !important; }

/* Songbook-Reiter (Dieser Song / Bibliothek) wie Werkstatt: Karteikarten, kein Rahmen um Reiter, Liste darunter als Tab-Fenster */
.libcol { border: 0; background: transparent; padding-top: 0; }
.libcol .libtabs { display: flex; align-items: flex-end; gap: 3px; margin: 0; }
.libcol .libtabs > [role="tab"] { flex: 0 1 auto; border: 0; border-radius: 7px 7px 0 0; background: var(--panel); color: var(--muted); padding: 2px 9px; line-height: 18px; font-size: 13px; }
.libcol .libtabs > [role="tab"][aria-selected="true"] { background: var(--panel-2); color: var(--fg); padding: 4px 9px; margin-bottom: -1px; position: relative; z-index: 2; box-shadow: inset 0 2px 0 var(--accent); }
.libcol .ltpane { background: var(--panel-2); border: 1px solid var(--line); border-radius: 0 6px 6px 6px; padding: 10px; }
.libcol .libtabs + .ltpane { margin-top: -5px; }  /* Fenster direkt unter den Reitern */
.libcol .libtabs > [role="tab"][aria-selected="true"] { top: 1px; }  /* aktiver Reiter überdeckt die Linie zum Fenster */

/* Assistent Stil: Karten liegen in einem Tab-Fenster unter den Reitern Favoriten / Alle Stile */
[data-stabbox] { background: var(--panel-2); border: 1px solid var(--line); border-radius: 0 6px 6px 6px; padding: 10px; margin-top: -1px; }
.stabs > .reiter { margin-bottom: 0; }
.stabs { margin-bottom: 0; }
#styleTabs > [aria-pressed="true"] { position: relative; top: 1px; }
.wiz-step > [data-stabbox] { margin-top: -12px; }  /* Grid-Abstand der Stufe aufheben: Fenster direkt unter den Reitern */
/* Übergangs-Zeichen (eigene Grafik statt Unicode-Zeichen, die in manchen Schriften fehlten) */
.arr .card > .trb .tri, #transPop .tric .tri { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vertical-align: -1px; }
.arr .card > .trb { display: inline-flex; align-items: center; justify-content: center; gap: 2px; }
/* Titel der Ablauf-Kachel: nur der Name wird gekürzt („Pre-Cho…“), A/B bleibt lesbar (vorher schnitt das „…“ den Text aus dem
   A/B-Kästchen, übrig blieb ein leerer Messingrahmen); Titel nie breiter als die Kachel */
.arr .card { container-type: inline-size; }
.arr .card > .cn { display: flex; align-items: center; max-width: calc(100cqw + 14px); box-sizing: border-box; }
.arr .card > .cn::before { flex: none; white-space: pre; }
.arr .card > .cn > .cnn { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.arr .card > .cn > .bbadge { flex: none; }
/* Übergang zum nächsten Abschnitt: fest rechts direkt unter der Titelleiste (springt beim Überfahren nicht, liegt nicht unter Löschen) */
.arr .card > .trb { top: 30px; bottom: auto; right: 3px; }
/* Fußleiste in schmalen Kacheln: Schlagzeug-Angabe kürzt sich, ◀ ▶ und ✕ (Doppel zu Ziehen bzw. dem ✕ im Titel) entfallen */
.arr .card .bc .dgr { flex: 1 1 auto; min-width: 0; }
@container (max-width: 190px) { .arr .card .bc button:is([data-a="left"], [data-a="right"], [data-a="del"]) { display: none; } }
/* Zeitleiste ↔ Kachel: gemeinsam hervorgehoben */
#songTl .tlseg.hov { filter: brightness(1.45); box-shadow: inset 0 0 0 1px var(--fg); z-index: 1; }
#arr .card.hov { box-shadow: 0 0 0 2px color-mix(in srgb, var(--fg) 70%, transparent); }
.arr .card:has(> .trb) > .bc { padding-right: 24px; }  /* Fußleiste endet vor dem Übergangs-Knopf (kompakte Kacheln) */

/* Meine Bands, schmale Bühne: sieben Reiter je Zeile bleiben (die Zeilen-Reihenfolge oben zählt damit). Der Name bricht nie um
   (sonst stand er Buchstabe für Buchstabe untereinander); stattdessen weicht erst das Symbol, dann das S (Solo steht im Mischpult). */
#rigTabs .rtlab { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
@container rigstage (max-width: 1150px) {
  #rigTabs [role="tab"] > svg { display: none; }
  #rigTabs [role="tab"] { gap: 5px; padding-left: 6px; padding-right: 5px; }
}
@container rigstage (max-width: 860px) {
  #rigTabs .rtsolo { display: none; }
}
@container rigstage (max-width: 700px) {
  #rigTabs [role="tab"] { gap: 4px; padding-left: 5px; padding-right: 3px; }
  #rigTabs .rtlab { font-size: 11.5px; }
}
/* ==== static/css/17-laufband.css ==== */
/* ----- Laufband: Tabulatur läuft beim Abspielen waagerecht durch (mod/laufband.js) ----- */
#tabscroll.lbon > :not(.lband), .drumpane.lbon > #dgrid { display: none !important; }
.lband { position: relative; overflow: hidden; --lbcol: 24px; background: var(--paper); border-radius: 4px; }
.lbtrack { position: relative; will-change: transform; }
.lbseg { position: absolute; top: 0; width: calc(30px + var(--cols, 32) * var(--lbcol)); display: grid; gap: 2px; align-content: start; padding: 2px 0 6px; }
.lbseg > .dgrid { padding: 4px 0; box-shadow: none; }
.lbcap { display: flex; align-items: baseline; gap: 6px; height: 16px; padding-left: 34px; font: 600 10px var(--mono); color: var(--beschriftung); white-space: nowrap; }
.lbcap b { color: var(--ink); border-left: 3px solid var(--c, var(--ink)); padding-left: 4px; }
.lbcap .lbbar { color: var(--schrift-braun-mittel-4); }
.lbmark { position: absolute; top: 0; bottom: 0; left: var(--ph, 160px); width: 2px; margin-left: -1px; background: var(--accent); opacity: .55; pointer-events: none; }
.lband.v .lbseg { left: 0; width: 100%; padding: 0 0 8px; }
.lband.v .lbseg.half { width: calc(50% + 15px); }
.lband.v .lbmark { display: none; }
.lband.v .lbtrack.soft { transition: transform .16s ease-out; }
.pvtab.lbon > #pvPaper { display: none !important; }
/* Üben-Band (mod/ueben-band.js): gleiche Tabulatur wie #prTab, beim Abspielen statt ihr */
.prtabwrap.lbon > #prTab { display: none !important; }
.prband { position: relative; overflow: hidden; display: block !important; }
.pbtrack { position: relative; }
.pbrow { position: absolute; top: 0; left: 0; }
.prband.h .pbrow .staff { width: 100%; }
.prband.v .pbrow { width: 100%; }
.prband.v .lbmark { display: none; }
.prband .lbmark { position: absolute; top: 0; bottom: 0; left: var(--ph, 120px); width: 2px; margin-left: -1px; background: var(--accent); opacity: .55; pointer-events: none; }
body.phone .lband { --lbcol: 18px; }  /* Handy waagerecht: mehr Vorschau rechts der Marke */
/* Handy: Stile = nur Steckbriefe (Reiter Bauen/Lernen gibt es am Rechner) */
body.phone #kitTabs, body.phone .stylesview [data-ktp="kit"], body.phone .stylesview [data-ktp="learn"] { display: none !important; }
body.phone .stylesview #briefsDesk[hidden] { display: block !important; }
.lband.h .lbtrack { transform-origin: 0 0; }
body.phone .lband { --lbcol: 16px; }
body.phone .prtabwrap > .prband { flex: 1 1 auto; min-height: 120px; }
/* Songbook: folgende Takte füllen die freie Fläche unter dem Songteil (nur Anzeige) */
.pvpaper .pvbar.pvnext { opacity: .55; pointer-events: none; }

/* ----- Takte je Zeile nach Breite (rowStepsFor): Zeilen mit --nb Takten, letzte kürzere Zeile anteilig (--frac) ----- */
.system .bnums { grid-template-columns: 30px repeat(var(--nb, 2), 1fr); }
.system.part > .staff, .system.part > .dgrid { width: calc(30px + (100% - 30px) * var(--frac, 1)); }
#dgrid.multi > .drow.part { width: calc(72px + (100% - 72px) * var(--frac, 1)); }

/* Waagerecht: die feste Marke wird auf jedem Schlag deutlich breiter (auf der Eins noch stärker) */
.lbmark.pulse { animation: lbpulse .22s ease-out; }
.lbmark.pulse.bar { animation: lbpulsebar .28s ease-out; }
@keyframes lbpulse { 0% { width: 10px; margin-left: -5px; opacity: 1; } 100% { width: 2px; margin-left: -1px; opacity: .55; } }
@keyframes lbpulsebar { 0% { width: 16px; margin-left: -8px; opacity: 1; } 100% { width: 2px; margin-left: -1px; opacity: .55; } }
.lband.v .lbseg.part .staff, .lband.v .lbseg.part .dgrid { width: calc(30px + (100% - 30px) * var(--frac, 1)); }

/* ----- Handy: Lernen-Reiter in einer Zeile (wischbar), Stile ohne Reiter-Abstand ----- */
body.phone .view.learn { margin-top: 0; }
body.phone .view.learn > nav.reiter { position: static; flex: none; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; max-width: 100%; margin: 0 0 8px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
body.phone .view.learn > nav.reiter > [aria-pressed="true"] { top: 0; }
body.phone .view.learn > nav.reiter::-webkit-scrollbar { display: none; }
body.phone .view.learn > nav.reiter > button { flex: none; white-space: nowrap; min-height: 40px; padding: 0 12px; }  /* Fingergröße wie die übrigen Handy-Knöpfe */
body.phone .view.stylesview { margin-top: 0; border-radius: 6px; }
/* Handy: Benutzer-Knopf wie die anderen Knöpfe der unteren Leiste */
body.phone .rail .rbuser { margin-top: 0; border-top-color: transparent; }

/* ----- Gesang: Stilwechsel im Teil ----- */
.ts b.vsw { color: var(--schrift-orange-dunkel); }  /* Silbe in anderem Gesangsstil (Feld vs) */
/* ==== static/css/18-komponieren.css ==== */
/* ----- Komponieren: Editor-Fenster (body.compose, static/js/mod/komponieren.js) ----- */
/* Werkstatt ohne Fenster: nur Ansicht – alles, was nur zum Komponieren da ist, erscheint erst im Fenster */
body:not(.compose) .cmp-only { display: none !important; }
body.compose .cmp-hide, .cmp-gone { display: none !important; }
/* Kein Schalter Spielen/Komponieren mehr: die Werkstatt zeigt den Editor-Bereich so aufgeräumt wie früher „Spielen“
   (Ablauf, Songteile-Spalte, Rückgängig und Assistent bleiben bedienbar); Bearbeiten der Noten nur im Editor */
#wMode { display: none !important; }
body:not(.phone):not(.compose) .editor > .ed-head, body:not(.phone):not(.compose) #addInst, body:not(.phone):not(.compose) #drumpane .ctxrow,
body:not(.phone):not(.compose) #trackhelp, body:not(.phone):not(.compose) #ivinfo, body:not(.phone):not(.compose) #fbwrap .fblegend { display: none !important; }
body:not(.phone):not(.compose) .instbar .ctxrow:not(.ovrow) > :not(#toneBar) { display: none !important; }
body:not(.phone):not(.compose) .instbar .ctxrow:not(.ovrow):not(:has(> #toneBar:not([hidden]))) { display: none !important; }
body:not(.phone):not(.compose) #toneBar > .divider { display: none; }
body:not(.phone):not(.compose) #instbar:not(:has(> .ovrow:not([hidden]))):not(:has(#toneBar:not([hidden]))) { display: none !important; }

/* Fenster: echtes Popup über der Werkstatt. Die Werkstatt bleibt dahinter abgedunkelt stehen (Klick darauf schließt),
   die obere Leiste (Play, Tempo, Rückgängig) bleibt bedienbar. Editor und Songteile-Spalte schweben im Rahmen .cmpframe;
   --cmptopw setzt komponieren.js aus der Unterkante der oberen Leiste. */
body.compose {
  --cwt: var(--cmptopw, 80px); --cwx: max(16px, 2vw); --cwb: 16px; --cwlib: 250px; --cwh: 40px;
}
body.compose:has(.view.work > .libcol.folded) { --cwlib: 30px; }
.cmpback, .cmpframe, .cmphead { display: none; }
body.compose .cmpback { display: block; position: fixed; inset: 0; z-index: 22; background: rgba(0, 0, 0, .55); }
body.compose .cmpframe {
  display: block; position: fixed; z-index: 23; top: var(--cwt); left: var(--cwx); right: var(--cwx); bottom: var(--cwb);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 18px 48px rgba(0, 0, 0, .55);
}
body.compose .cmphead {
  display: flex; align-items: center; gap: 10px; position: fixed; z-index: 24; top: calc(var(--cwt) + 1px); height: var(--cwh); box-sizing: border-box;
  left: calc(var(--cwx) + 1px); right: calc(var(--cwx) + 1px); padding: 0 8px 0 14px; background: var(--panel); border-bottom: 1px solid var(--line); border-radius: 9px 9px 0 0;
}
.cmphead > svg { width: 17px; height: 17px; color: var(--accent); flex: none; }
.cmphead > b { font-size: 15px; }
.cmphead > .cmpsub { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cmphead > .sp { flex: 1; }
body.compose #viewBar { position: relative; z-index: 24; }
body.compose .view.work > .editor, body.compose .view.work > .libcol {
  position: fixed; z-index: 24; top: calc(var(--cwt) + var(--cwh) + 9px); bottom: calc(var(--cwb) + 8px); margin: 0 !important; height: auto !important; max-height: none !important;
}
body.compose .view.work > .editor { left: calc(var(--cwx) + 8px); right: calc(var(--cwx) + var(--cwlib) + 16px); width: auto !important; }
body.compose .view.work > .libcol { right: calc(var(--cwx) + 8px); width: var(--cwlib) !important; min-width: 0; }
body.compose .view.work > .libcol > .colgrip { display: none; }
body.compose .editor.tabfixed > .trackpane { flex: 1 1 auto; min-height: 0; }
body.compose .editor.tabfixed > .trackpane > .tabdock { flex: 1 1 auto; min-height: 0; }
body.compose .editor.tabfixed > .trackpane > .tabdock > .tabscroll { flex: 1 1 auto; min-height: 0; height: auto !important; }
body.compose .editor.tabfixed > .fbwrap:not(.folded):not([hidden]) { flex: none; }
body.compose .ed-head .edtl { display: none; }

/* Reiter: Gesang · Lead · Rhythmus · Bass · Schlagzeug, weitere dahinter; keine Übersicht */
body.compose #track [data-otab] { display: none !important; }
body.compose #track > * { order: 6; }
body.compose #track [data-track="voc"] { order: 1; }
body.compose #track [data-track="lead"] { order: 2; }
body.compose #track [data-track="riff"] { order: 3; }
body.compose #track [data-track="bass"] { order: 4; }
body.compose #track [data-dtab] { order: 5; }
body.compose #track .addinst { order: 7; }
body.compose #track .ttright { order: 8; }

/* Eine Tabseite unter den Instrument-Reitern: Dock links, rechts Werkzeuge, Tabulatur und Griffbrett. Der Rahmen (::before)
   liegt hinter allen drei, der aktive Reiter geht ohne Kante in ihn über. Der Editor selbst hat im Fenster keinen eigenen Rahmen. */
body.compose .view.work > .editor {
  --cmpw: 168px; display: grid !important; grid-template-columns: var(--cmpw) minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  gap: 0; padding: 0; border: 0; background: transparent; box-shadow: none; overflow: hidden;
}
body.compose .editor::before { content: ""; grid-area: 3 / 1 / 6 / 3; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-2); }
body.compose .editor > .ed-head { grid-area: 1 / 1 / 2 / 3; margin: 0 0 8px; }
body.compose .editor > .ed-head > .edfold, body.compose #edMax { display: none !important; }  /* Fenster: nichts einklappen oder vergrößern */
body.compose .editor > .ed-head.folded > * { display: revert !important; }
body.compose .editor > .tracktabs { grid-area: 2 / 1 / 3 / 3; margin: 0 0 -1px; z-index: 2; }
body.compose .editor > .trackpane { grid-area: 3 / 2; margin: 1px 1px 0 0; border: 0; background: transparent; position: relative; }
body.compose .editor > .rowgrip { grid-area: 4 / 2; position: relative; margin: 0 8px; }
body.compose .editor > .fbwrap { grid-area: 5 / 2; position: relative; margin: 0 8px 8px 0; }
body.compose .editor > .cmpdock { grid-area: 3 / 1 / 6 / 2; position: relative; margin: 1px 0 1px 1px; }
.cmpdock {
  display: flex; flex-direction: column; gap: 10px; padding: 8px; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  border-right: 1px solid var(--line); scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.cmpgrp { display: flex; flex-direction: column; gap: 3px; }
.cmpgrp > .eyebrow { font-size: 10px; letter-spacing: .08em; color: var(--muted); margin: 0 0 2px 2px; }
.cmpbtn {
  display: flex; align-items: center; gap: 7px; width: 100%; height: 28px; padding: 0 8px; flex: none;
  border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--fg); font: inherit; font-size: 12px; text-align: left; cursor: pointer;
}
@media (hover: hover) { .cmpbtn:hover{ background: var(--panel-2); border-color: var(--line); } }
.cmpbtn[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 22%, var(--panel)); border-color: var(--accent); }
.cmpbtn svg { width: 15px; height: 15px; flex: none; }
.cmpbtn .cmpic { width: 15px; height: 15px; flex: none; }
.cmpbtn .cmpgl { display: inline-flex; align-items: center; justify-content: center; font: 700 11px/1 var(--mono); font-style: normal; color: var(--schrift-orange-dunkel, var(--accent)); letter-spacing: -.03em; }
/* Setzen: Zeichen wie in der Tabulatur (Dead Note x, Stopp-Kästchen, Powerchord als Zahlenpaar, Akkordname) */
.cmpbtn .cmpgl.g-dead { color: var(--ton-aus); }
.cmpbtn .cmpgl.g-stop::before { content: ""; width: 7px; height: 7px; background: currentColor; border-radius: 1px; }
.cmpbtn .cmpgl.g-pc { flex-direction: column; gap: 1px; font-size: 8px; color: var(--pc-ink); }
.cmpbtn .cmpgl.g-pc b { font-weight: 700; line-height: 7px; }
.cmpbtn .cmpgl.g-chd { width: auto; min-width: 15px; font-size: 10px; }
.cmpbtn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmpdock .cmpstamps #stamps { display: flex !important; flex-wrap: wrap; gap: 3px; }

/* Haltelinie (Ton klingt weiter) im Fenster deutlicher */
body.compose .ts.ring::after { opacity: 1; background: color-mix(in srgb, var(--accent) 45%, var(--ring)); }

/* Handy und schmale Fenster: Dock als wischbare Leiste oben in der Tabseite */
@media (max-width: 900px) {
  body.compose .view.work > .editor { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto minmax(0, 1fr); }
  body.compose .editor::before { grid-area: 3 / 1 / 5 / 2; }
  body.compose .editor > .ed-head { grid-area: 1 / 1; }
  body.compose .editor > .tracktabs { grid-area: 2 / 1; }
  body.compose .editor > .cmpdock { grid-area: 3 / 1; max-height: 44px; align-items: center; flex-direction: row; overflow-x: auto; overflow-y: hidden; padding: 4px; gap: 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  body.compose .editor > .trackpane { grid-area: 4 / 1; margin: 0 1px 1px; }
  body.compose .editor > .rowgrip { display: none; }
  .cmpdock .cmpstamps { display: none; }
  .cmpgrp { flex-direction: row; align-items: center; }
  .cmpgrp > .eyebrow { display: none; }
  .cmpbtn { width: auto; }
  body.compose .fbwrap { display: none !important; }
  body.compose { --cwx: 6px; --cwb: 6px; --cwlib: -8px; }
  body.compose .view.work > .libcol { display: none !important; }
}
body.compose .view.work > .libcol .libtabs > * { white-space: nowrap; }
/* ==== static/css/18-reiter-gross.css ==== */
/* ----- Große Tab-Fenster: präsentere Reiter ----- */
/* Lernen und Stile füllen auf dem Desktop das ganze Fenster: Reiter größer und mit mehr Luft. Die schmalen, kompakten Reiter
   bleiben für kleine Fenster (Werkstatt-Spuren, Dialoge, Handy). Aktiv und inaktiv gleich groß – Umschalten ändert nur die Farbe. */
@media (min-width: 1100px) and (min-height: 700px) {
  body:not(.phone) .view.learn, body:not(.phone) .view.stylesview { margin-top: 40px; }
  body:not(.phone) .view.learn > nav.reiter, body:not(.phone) .view.stylesview > nav.reiter { top: -40px; gap: 4px; }
  body:not(.phone) .view.learn > nav.reiter > button, body:not(.phone) .view.stylesview > nav.reiter > button {
    font-size: 15px; line-height: 22px; padding: 8px 18px; border-radius: 9px 9px 0 0; gap: 8px; }
  body:not(.phone) .view.learn > nav.reiter > button svg, body:not(.phone) .view.stylesview > nav.reiter > button svg { width: 17px; height: 17px; }
}

/* ----- Mischpult in „Stile“ ----- */
/* Die Werkstatt-Leiste fehlt in „Stile“: „Mix“ sitzt dort rechts auf Höhe der Reiter (placeViewTools), das Fenster klappt darunter auf. */
body:not(.phone) .view.stylesview > .mixwrap { position: absolute; top: -27px; right: 0; margin: 0; height: 26px; z-index: 20; }
body:not(.phone) .view.stylesview > .mixwrap > .mixpop:not(.docked) { position: absolute; top: calc(100% + 8px); right: 0; max-height: calc(100vh - 170px); }
@media (min-width: 1100px) and (min-height: 700px) {
  body:not(.phone) .view.stylesview > .mixwrap { top: -38px; height: 34px; }
}
/* ==== static/css/19-baende.css ==== */
/* ----- Meine Bands: Bandleiste, Besetzung, Songs der Band (band-verwaltung.js, band-songs.js) ----- */
.bandarea { flex: none; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.bandbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 4px 0; }
.bandbar .sp { flex: 1 1 auto; }
.bchip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 15px;
  background: transparent; color: var(--fg); font-size: 13px; max-width: 220px; }
.bchip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bchip svg, .mchip svg, .btile .bt svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }
.bchip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.bneu { display: inline-flex; gap: 4px; align-items: center; }
.bneu input { height: 30px; width: 160px; }
.btabs button svg, .bandbar .seg button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.bandbar .seg button { padding: 5px 9px; }
.bandbar .seg button[aria-checked="true"] { background: var(--fg); color: var(--bg); }
.bandinhalt { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.bkopf { display: flex; align-items: center; gap: 8px; }
.bkopf .bname { font: inherit; font-size: 18px; height: 34px; min-width: 0; flex: 0 1 320px; }
.ib.danger.armed { background: var(--flaeche-rot-mittel); color: var(--weiss); }
.ib.static { pointer-events: none; opacity: .75; }

/* Instrument-Kacheln: Mitglieder hierher ziehen */
.btiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.btile { min-height: 74px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; }
.btile.over, .bleute.over, .bkontakte.over { border-color: var(--brass); background: var(--accent-soft); }
.btile .bt { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.btile .bm { display: flex; flex-wrap: wrap; gap: 4px; }
.mchip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 4px 0 8px; border: 1px solid var(--line); border-radius: 13px;
  background: var(--panel); font-size: 13px; cursor: grab; user-select: none; max-width: 100%; }
.mchip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mchip.sel { border-color: var(--brass); color: var(--brass); }
.mchip .x { border: 0; background: transparent; padding: 0 2px; display: inline-flex; color: var(--muted); }
.mchip .x svg { width: 12px; height: 12px; }
.bleute, .bkontakte { display: flex; flex-direction: column; gap: 4px; border: 1px dashed transparent; border-radius: 8px; padding: 4px; }
.bkontakte { flex-direction: row; flex-wrap: wrap; border-color: var(--line); }
.bleute .mrow, .bsongs .brow { display: flex; align-items: center; gap: 6px; min-height: 36px; }
.bleute .mrow .sp { flex: 1 1 auto; }

/* Songs der Band und Kopien */
.bsongs { display: flex; flex-direction: column; gap: 4px; }
.bsongs .brow .n { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.bsongs .brow .n small, .bkopie .n small { display: block; color: var(--muted); font-size: 11px; }
.bkopien { margin: 0 0 6px 18px; display: flex; flex-direction: column; gap: 4px; }
.bkopie { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 4px 6px; border-left: 2px solid var(--line); }
.bkopie .n { flex: 0 0 140px; min-width: 0; }
.bdiff { flex: 1 1 200px; display: flex; flex-wrap: wrap; gap: 4px; }
.dchip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border: 1px solid var(--line); border-radius: 12px; font-size: 12px; }
.dchip input { margin: 0; }
.bsonghin select { max-width: 220px; }

/* Werkstatt: Bands dieses Songs */
.bandpop { position: fixed; z-index: 60; width: 290px; max-width: calc(100vw - 16px); padding: 10px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel); box-shadow: 0 8px 24px var(--schatten-grau-dunkel); display: flex; flex-direction: column; gap: 8px; }
.bandpop .bchips { display: flex; flex-wrap: wrap; gap: 6px; }
.bandpop .bopts { display: flex; gap: 8px; }
.bandpop .seg button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.bandpop .seg button[aria-checked="true"] { background: var(--fg); color: var(--bg); }

/* Konto → Bands (auch Handy-Seite) */
#kontoDlg .kontobody .bandbar { flex: none; }
#kontoDlg .kontobody .bandinhalt { flex: 1 1 auto; }
body.phone .btiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.phone .bkopie .n { flex-basis: 100%; }
/* Band-Leiste bleibt eine Zeile: Wählt man eine Band, kommen rechts Ziel- und Reiter-Knöpfe dazu – vorher brach die Leiste dann um und
   das Fenster darunter rutschte. Jetzt kürzen sich die Namen (der gewählte zuletzt, Name im Tooltip), Knöpfe so hoch wie die Namen. */
.bandbar { flex-wrap: nowrap; min-height: 38px; box-sizing: border-box; }
.bandbar > .bchip { flex: 0 1 auto; min-width: 32px; overflow: hidden; }
.bandbar > .bchip[aria-pressed="true"] { flex-shrink: 0; }
.bandbar > .bchip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.bandbar > .seg, .bandbar > .ib, .bandbar > form { flex: none; }
.bandbar .seg button { padding: 3px 8px; }

/* Songbook: Band-Songs je Band */
.saves .sbgroup { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding: 10px 2px 2px; border-bottom: 1px solid var(--line); font-weight: 400; }
.saves .sbgroup svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.saves .sbgroup small { color: var(--muted); font: 11px var(--mono); }
.netzform a.ib { text-decoration: none; }
.saves .sbkopien { grid-column: 1 / -1; }
/* ==== static/css/20-akkordbuch.css ==== */
/* ----- Akkord-Nachschlagewerk (Lernen → Akkorde) ----- */
.view.learn .chbook:not([hidden]) { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
.chbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chroots button { width: 42px; height: 28px; padding: 0; text-align: center; }
.chquals { flex-wrap: wrap; justify-self: start; align-self: flex-start; }
.chquals button { width: 62px; height: 28px; padding: 0; text-align: center; }
#chTuning { height: 28px; }
.chhead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 38px; }
.chhead > b { font-size: 22px; min-width: 190px; }
.chhead > b small { color: var(--muted); font: 600 12px var(--mono); margin-left: 6px; }
.chtones { display: flex; gap: 6px; min-width: 190px; }
.chtone { display: inline-flex; flex-direction: column; align-items: center; min-width: 36px; padding: 2px 6px; border: 1px solid var(--line); border-radius: 6px; }
.chtone small { color: var(--muted); font: 600 10px var(--mono); }
.chlists { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.chgrips { display: flex; flex-wrap: wrap; gap: 10px; }
.chcard { width: 120px; padding: 6px; display: flex; flex-direction: column; gap: 4px; border-radius: 8px; background: var(--paper); color: var(--ink); border: 2px solid transparent; cursor: pointer; }
.chcard svg.cdg { width: 100%; height: auto; fill: initial; stroke: none; }
.chcard small { font: 600 11px var(--mono); text-align: center; }
.chcard[aria-pressed="true"] { border-color: var(--accent); }
body.phone .chroots { flex-wrap: wrap; }
body.phone .chcard { width: calc(33% - 8px); }
/* Kopfbereich (Wurzel, Art, Töne, Knöpfe) schrumpft nicht: sonst überlagerte ihn die Griffbilder, sobald die Liste Platz brauchte (Handy) */
.view.learn .chbook > :not(.chlists) { flex: none; }
.chhead { min-height: 0; row-gap: 6px; }
/* ==== static/css/20-fensterfarbe.css ==== */
/* ----- Popup-Fenster farblich hervorheben (Dialoge, Komponieren, kleine Aufklapp-Fenster) ----- */
/* Eine gemeinsame Optik: Akzent-Rand, getönte Titelleiste mit Akzent-Linie, kräftiger Schatten. Letzter Teil = gewinnt. */
:root {
  --fenster-rand: color-mix(in srgb, var(--accent) 62%, var(--line));
  --fenster-kopf: color-mix(in srgb, var(--accent) 24%, var(--panel));
  --fenster-schatten: 0 0 0 1px rgba(214, 60, 74, .18), 0 22px 60px rgba(0, 0, 0, .65);
  --fenster-schatten-klein: 0 12px 32px rgba(0, 0, 0, .6);
}

/* Große Fenster */
dialog.keysdlg, dialog.props, dialog.rigpop, dialog.wizard, body.compose .cmpframe, .songrigbox { border: 1px solid var(--fenster-rand); box-shadow: var(--fenster-schatten); }
dialog .props-head, dialog > .wiz-head, body.compose .cmphead, .songrighead { background: var(--fenster-kopf); border-bottom: 2px solid var(--fenster-rand); }
body.compose .cmphead > svg { color: var(--fg); }
body.compose .cmphead > .cmpsub { color: color-mix(in srgb, var(--fg) 72%, var(--fenster-kopf)); }
body.phone dialog.wizard, body.phone dialog#kontoDlg.kontopage { border: 0; box-shadow: none; }

/* Kleine Aufklapp-Fenster (angedocktes Mischpult ist Teil der Seite und bleibt ohne Rand) */
.ctxmenu, .mixpop:not(.docked), .instpop, .bandpop, .gearpop, .cbpop, .livepop, .metropop { border-color: var(--fenster-rand); box-shadow: var(--fenster-schatten-klein); }
/* ==== static/css/20-klang-setup.css ==== */
/* Klang-Setup: Reiter, Board-Vorlagen, Klang-Ebenen (nach den übrigen Teilen, damit sie die Kaskade abschließen) */
#rigTabs [data-rtab="live"] .rtcheck { visibility: hidden; pointer-events: none; }  /* eigene Gitarre gehört nicht zur Besetzung */
.rigtpl { height: 30px; max-width: 210px; min-width: 0; font-size: 12px; margin-right: 6px; }
.rigtpl.on { border-color: var(--brass); }
.rigtplname { width: 210px; padding: 0 8px; }
/* Board-Auswahl vor dem Titel: Titel kürzt sich (…), die Auswahl bleibt lesbar */
.rigstage .righead .rigtitle { flex: 0 1 auto; }
.righead .rigtpl { flex: 0 1 210px; min-width: 120px; }
#rigTplDel { margin-right: 6px; }
/* Meine Bands: Instrument-Reiter in festem Raster – alle gleich breit, jede Zeile behält ihre Reiter (Spaltenzahl nach Breite der
   Bühne, damit jede Beschriftung ganz passt); nur die Zeile mit dem gewählten Reiter rückt nach unten ans Fenster (feste Zeilennummer, sonst füllt die kurze Restzeile Lücken).
   Regeln für 15 Reiter (RIG_TAB_ORDER in mod/rigauswahl.js) – kommt ein Reiter dazu, Zahlen hier anpassen. */
#rigTabs { display: grid; }
#rigTabs [role="tab"] { min-width: 0; }
@container rigstage (min-width: 1500px) {
  #rigTabs { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  #rigTabs [role="tab"]:nth-child(n+1):nth-child(-n+8) { grid-row: 1; }
  #rigTabs [role="tab"]:nth-child(n+9):nth-child(-n+15) { grid-row: 2; }
  #rigTabs:has([role="tab"][aria-pressed="true"]:nth-child(n+1):nth-child(-n+8)) [role="tab"]:nth-child(n+1):nth-child(-n+8) { grid-row: 2; }
  #rigTabs:has([role="tab"][aria-pressed="true"]:nth-child(n+1):nth-child(-n+8)) [role="tab"]:nth-child(n+9):nth-child(-n+15) { grid-row: 1; }
}
@container rigstage (min-width: 640px) and (max-width: 1499.98px) {
  #rigTabs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  #rigTabs [role="tab"]:nth-child(n+1):nth-child(-n+5) { grid-row: 1; }
  #rigTabs [role="tab"]:nth-child(n+6):nth-child(-n+10) { grid-row: 2; }
  #rigTabs [role="tab"]:nth-child(n+11):nth-child(-n+15) { grid-row: 3; }
  #rigTabs:has([role="tab"][aria-pressed="true"]:nth-child(n+1):nth-child(-n+5)) [role="tab"]:nth-child(n+1):nth-child(-n+5) { grid-row: 3; }
  #rigTabs:has([role="tab"][aria-pressed="true"]:nth-child(n+1):nth-child(-n+5)) [role="tab"]:nth-child(n+6):nth-child(-n+10) { grid-row: 1; }
  #rigTabs:has([role="tab"][aria-pressed="true"]:nth-child(n+1):nth-child(-n+5)) [role="tab"]:nth-child(n+11):nth-child(-n+15) { grid-row: 2; }
  #rigTabs:has([role="tab"][aria-pressed="true"]:nth-child(n+6):nth-child(-n+10)) [role="tab"]:nth-child(n+6):nth-child(-n+10) { grid-row: 3; }
  #rigTabs:has([role="tab"][aria-pressed="true"]:nth-child(n+6):nth-child(-n+10)) [role="tab"]:nth-child(n+11):nth-child(-n+15) { grid-row: 2; }
}
@container rigstage (max-width: 639.98px) {
  #rigTabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #rigTabs [role="tab"]:nth-child(n+1):nth-child(-n+3) { grid-row: 1; }
  #rigTabs [role="tab"]:nth-child(n+4):nth-child(-n+6) { grid-row: 2; }
  #rigTabs [role="tab"]:nth-child(n+7):nth-child(-n+9) { grid-row: 3; }
  #rigTabs [role="tab"]:nth-child(n+10):nth-child(-n+12) { grid-row: 4; }
  #rigTabs [role="tab"]:nth-child(n+13):nth-child(-n+15) { grid-row: 5; }
  #rigTabs:has([role="tab"][aria-pressed="true"]:nth-child(n+1):nth-child(-n+3)) [role="tab"]:nth-child(n+1):nth-child(-n+3) { grid-row: 5; }
  #rigTabs:has([role="tab"][aria-pressed="true"]:nth-child(n+1):nth-child(-n+3)) [role="tab"]:nth-child(n+4):nth-child(-n+6) { grid-row: 1; }
  #rigTabs:has([role="tab"][aria-pressed="true"]:nth-child(n+1):nth-child(-n+3)) [role="tab"]:nth-child(n+7):nth-child(-n+9) { grid-row: 2; }
  #rigTabs:has([role="tab"][aria-pressed="true"]:nth-child(n+1):nth-child(-n+3)) [role="tab"]:nth-child(n+10):nth-child(-n+12) { grid-row: 3; }
  #rigTabs:has([role="tab"][aria-pressed="true"]:nth-child(n+1):nth-child(-n+3)) [role="tab"]:nth-child(n+13):nth-child(-n+15) { grid-row: 4; }
  #rigTabs:has([role="tab"][aria-pressed="true"]:nth-child(n+4):nth-child(-n+6)) [role="tab"]:nth-child(n+4):nth-child(-n+6) { grid-row: 5; }
  #rigTabs:has([role="tab"][aria-pressed="true"]:nth-child(n+4):nth-child(-n+6)) [role="tab"]:nth-child(n+7):nth-child(-n+9) { grid-row: 2; }
  #rigTabs:has([role="tab"][aria-pressed="true"]:nth-child(n+4):nth-child(-n+6)) [role="tab"]:nth-child(n+10):nth-child(-n+12) { grid-row: 3; }
  #rigTabs:has([role="tab"][aria-pressed="true"]:nth-child(n+4):nth-child(-n+6)) [role="tab"]:nth-child(n+13):nth-child(-n+15) { grid-row: 4; }
  #rigTabs:has([role="tab"][aria-pressed="true"]:nth-child(n+7):nth-child(-n+9)) [role="tab"]:nth-child(n+7):nth-child(-n+9) { grid-row: 5; }
  #rigTabs:has([role="tab"][aria-pressed="true"]:nth-child(n+7):nth-child(-n+9)) [role="tab"]:nth-child(n+10):nth-child(-n+12) { grid-row: 3; }
  #rigTabs:has([role="tab"][aria-pressed="true"]:nth-child(n+7):nth-child(-n+9)) [role="tab"]:nth-child(n+13):nth-child(-n+15) { grid-row: 4; }
  #rigTabs:has([role="tab"][aria-pressed="true"]:nth-child(n+10):nth-child(-n+12)) [role="tab"]:nth-child(n+10):nth-child(-n+12) { grid-row: 5; }
  #rigTabs:has([role="tab"][aria-pressed="true"]:nth-child(n+10):nth-child(-n+12)) [role="tab"]:nth-child(n+13):nth-child(-n+15) { grid-row: 4; }
}
/* Klang des Songs: Symbol und Farbe je Ebene (Messing = deine Band, Rot = Song, Blau = Stil – wie der Titel des Boards) */
.rigseg [data-bm] { --bm: var(--brass); display: inline-flex; align-items: center; gap: 5px; }
.rigseg [data-bm="own"] { --bm: var(--accent); }
.rigseg [data-bm="style"] { --bm: var(--schrift-blau-hell-2); }
.rigseg [data-bm] > svg { width: 13px; height: 13px; flex: none; color: var(--bm); }
.rigseg [data-bm][aria-checked="true"] { background: var(--bm); color: var(--bg); }
.rigseg [data-bm][aria-checked="true"] > svg { color: var(--bg); }
body[data-drag="style"] #bandModeSw [data-bm="style"] { outline: 2px dashed color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: -2px; }  /* Stil hierher ziehen */
#bandModeSw.droptarget [data-bm="style"] { outline: 2px solid var(--accent); background: var(--accent-soft); }
@container (max-width: 960px) { .sb-head .rigseg [data-bm] > span { display: none; } .sb-head .rigseg [data-bm] { padding: 0 9px; } }
/* ==== static/css/20-konto.css ==== */
/* ----- Konto-Seite (Knopf unten links) ----- */
/* Eigene Seite über dem Hauptbereich wie Lernen/Stile: Reiter oben, darunter ein Tab-Fenster, das den Platz füllt.
   Lage und Größe setzt konto.js (platz) aus <main> bzw. am Handy aus den Leisten. Inhalt: Kästen wie auf der Stile-Seite,
   Listen als Spalten nebeneinander, jede Liste scrollt selbst. */
dialog#kontoDlg.kontopage { position: fixed; margin: 0; max-width: none; max-height: none; padding: 0; border: 0; border-radius: 0;
  background: var(--bg); color: var(--fg); box-shadow: none; z-index: 31; overflow: hidden; }  /* über dem angedockten Mischpult (30) auf „Meine Bands“ */
body:has(#kontoDlg[open]) .toast { z-index: 32; }  /* Meldungen bleiben über der Seite */
dialog#kontoDlg.kontopage[open] { display: flex; flex-direction: column; min-height: 0; }

/* Kopf: Reiter links, Abmelden und Schließen rechts */
#kontoDlg .kontokopf { flex: none; display: flex; align-items: flex-end; gap: 8px; min-width: 0; }
#kontoDlg .kontokopf > .sp { flex: 1 1 auto; }
#kontoDlg .kontokopf > .ib { align-self: center; margin-bottom: 3px; }
#kontoDlg .kontotabs > [role="tab"] { display: inline-flex; align-items: center; gap: 7px; }
#kontoDlg .kontotabs > [role="tab"] svg { width: 15px; height: 15px; flex: none; }
#kontoDlg .kontotabs > [role="tab"][aria-pressed="true"] { top: 1px; }  /* aktiver Reiter überdeckt die Linie zum Fenster */

/* Tab-Fenster */
#kontoDlg .kontobody { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 12px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 0 6px 6px 6px; background: var(--panel-2); overflow: hidden; }
#kontoDlg .kontobody[data-tab="bands"], #kontoDlg .kontobody[data-tab="profil"] { overflow-y: auto; overscroll-behavior: contain; }

/* Kästen wie auf der Stile-Seite (.panel: Rahmen, großer Titel); Profil nebeneinander über die ganze Breite */
#kontoDlg .kontokarten { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; align-items: start; }
#kontoDlg .panel h2 { margin: 0; font-size: 28px; line-height: 1.1; }
#kontoDlg input { width: 100%; min-width: 0; background: var(--panel-2); color: var(--fg); border: 1px solid var(--line); border-radius: var(--r-knopf); padding: 6px 8px; font-size: 14px; }
#kontoDlg .kontodaten { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: 14px; }
#kontoDlg .kontodaten dt { color: var(--muted); }
#kontoDlg .kontodaten dd { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#kontoDlg .netzform { display: flex; gap: 8px; align-items: center; margin: 0; }
#kontoDlg .netzform.stapel { flex-direction: column; align-items: stretch; }
#kontoDlg .netzform.stapel > button { align-self: flex-end; }
#kontoDlg .kontoanfrage input { flex: 1 1 auto; }
#kontoDlg .kontoanfrage button { flex: none; }

/* Listen nebeneinander, füllen die Höhe; die Liste ist ein Feld (wie das Textfeld im Vorbild), nur sie scrollt */
#kontoDlg .kontospalten { flex: 1 1 auto; min-height: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 14px; }
#kontoDlg .kontoliste { display: flex; flex-direction: column; min-height: 0; }
#kontoDlg .kontoliste > h2, #kontoDlg .kontoliste > input, #kontoDlg .kontoliste > form { flex: none; }
#kontoDlg .kontoliste > input, #kontoDlg .kontoanfrage input, #kontoDlg .kontoanfrage button { height: 34px; }
#kontoDlg .kontozahl { margin-left: 4px; color: var(--muted); font-family: var(--mono); font-size: 13px; font-weight: 400; }
#kontoDlg .kontosaves { flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 4px;
  padding: 6px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 4px; }
#kontoDlg .kontosaves .save { flex: none; min-height: 34px; padding: 4px 4px 4px 10px; background: var(--panel); }
#kontoDlg .kontosaves .save[hidden] { display: none; }
#kontoDlg .kontosaves .save .n { display: flex; flex-direction: column; line-height: 1.25; }
#kontoDlg .kontoknoepfe { flex: none; display: flex; gap: 4px; }
#kontoDlg .kontoknoepfe .ib.sm { width: 28px; height: 26px; padding: 0; justify-content: center; }
#kontoDlg .kontoknoepfe .ib.sm svg { width: 15px; height: 15px; }
#kontoDlg .netzleer { color: var(--muted); padding: 2px 4px; font-family: var(--mono); font-size: 11px; }

/* Bands: dieselbe Verwaltung wie „Meine Bands“ */
#kontoDlg .kontobody .bandbar { flex: none; }
#kontoDlg .kontobody .bandinhalt { flex: 1 1 auto; }

/* Handy: Reiter wischbar in einer Zeile, Listen untereinander, Schließen über die untere Leiste */
body.phone #kontoDlg.kontopage { left: 0; width: 100%; }
body.phone #kontoDlg .kontokopf { padding: 8px 10px 0; }
body.phone #kontoDlg .kontotabs { flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
body.phone #kontoDlg .kontotabs > button { flex: none; min-height: 32px; padding: 4px 12px; }
body.phone #kontoDlg .kontokopf > .sp, body.phone #kontoDlg [data-k="close"] { display: none; }
body.phone #kontoDlg .kontobody { padding: 10px; border-left: 0; border-right: 0; border-radius: 0; overflow-y: auto; }
body.phone #kontoDlg .kontospalten { grid-auto-flow: row; grid-template-rows: none; grid-auto-rows: minmax(190px, auto); }

/* Große Fenster: Reiter so groß wie bei Lernen und Stile */
@media (min-width: 1100px) and (min-height: 700px) {
  body:not(.phone) #kontoDlg .kontokopf { gap: 4px; }
  body:not(.phone) #kontoDlg .kontotabs { gap: 4px; }
  body:not(.phone) #kontoDlg .kontotabs > [role="tab"] { font-size: 15px; line-height: 22px; padding: 8px 18px; border-radius: 9px 9px 0 0; gap: 8px; }
  body:not(.phone) #kontoDlg .kontotabs > [role="tab"] svg { width: 17px; height: 17px; }
  body:not(.phone) #kontoDlg .kontokopf > .ib { margin-bottom: 7px; }
}
/* ==== static/css/21-band-kachel.css ==== */
/* ----- Meine Bands: eine Kachel je Band (band-verwaltung.js) ----- */
/* Oben die Besetzung (so hoch wie nötig, höchstens gut die Hälfte), darunter die Songs: die Liste füllt den Rest und scrollt selbst. */
.bandinhalt > .bandkachel { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; overflow: hidden; }
.bandkachel > .bkopf { flex: none; }
.bbesetzung { flex: 0 1 auto; min-height: 0; max-height: 58%; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 8px; }
.bbesetzung > * { flex: none; }
/* Mitglieder nebeneinander statt je eine volle Zeile */
.bbesetzung .bleute { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; }
.bbesetzung .bleute > .eyebrow { flex: 0 0 100%; }
.bbesetzung .bleute .mrow { min-height: 34px; padding: 3px 4px; gap: 4px; }
.bbesetzung .bleute .mrow .sp { display: none; }
.bbesetzung .bkontakte .netzleer { font-size: 12px; padding: 0 2px; }

.bsongteil { flex: 1 1 0; min-height: 150px; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.bsongteil > h3 { flex: none; margin: 0; font-size: 22px; }
.bsongteil > .bsongs { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 4px; }
.bsongteil .bsongs > * { flex: none; }
.bsongteil .bsongs .brow { background: var(--panel); }
.bsongteil > .bsonghin { flex: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin: 0; }
.bsongteil > .bsonghin select:first-child { flex: 1 1 220px; max-width: none; }

/* Handy: die ganze Seite scrollt, die Kachel wächst mit */
body.phone .bandinhalt > .bandkachel { flex: none; overflow: visible; }
body.phone .bbesetzung { max-height: none; overflow: visible; }
body.phone .bsongteil { flex: none; }
body.phone .bsongteil > .bsongs { min-height: 160px; max-height: 50vh; }

/* Seitenraster: Die Bandleiste (#bandArea) steht oben über Effektliste und Board – so bleibt sie beim Wechsel zum Setup stehen.
   Die Effektliste gehört zum Setup; in der Bandansicht nimmt #bandArea mit der Kachel die ganze Fläche ein. Mischpult rechts. */
@media (min-width: 1000px) {
  body:not(.phone) .view.rigview:not([hidden]) { grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "bar bar" "dock stage"; }
  body:not(.phone) .view.rigview.mixdock:not([hidden]) { grid-template-areas: "bar bar mix" "dock stage mix"; }
  body:not(.phone) .view.rigview > .bandarea { grid-area: bar; min-width: 0; }
  body:not(.phone) .view.rigview.bandmode > .bandarea { grid-row: 1 / -1; }
}
.view.rigview.bandmode > .rigstage, .view.rigview.bandmode > .rigdock { display: none !important; }
.view.rigview.bandmode > .bandarea { flex: 1 1 auto; }

/* Offene Einladung: gedämpft, Marke „offen“ */
.bleute .mrow.offen .mchip { opacity: .65; border-style: dashed; }
.bleute .mrow.offen .bmarke { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }

/* Band-Fenster eines Songs (#songRig): Bandleiste nur bei Klang „Meine Band“; nie Bandkachel, Reiter oder neue Band */
#songRig:not([data-mode="band"]) .rigview > .bandarea { display: none !important; }
#songRig .rigview > .bandarea .bandinhalt, #songRig .rigview > .bandarea .btabs,
#songRig .rigview > .bandarea [data-bv="neu"], #songRig .rigview > .bandarea .bneu { display: none !important; }
/* ==== static/css/21-noten.css ==== */
/* ----- Notensystem im Tab-Raster (Tasten, Bläser, Folk – mod/noten.js) ----- */
.staff.noten .nbox { position: relative; }
.staff.noten .nsv { display: block; overflow: visible; fill: var(--ink); stroke: none; pointer-events: none; }
.staff.noten .sl, .staff.noten .ll, .staff.noten .bl { stroke: var(--schrift-braun-mittel-4); stroke-width: 1; fill: none; }
.staff.noten .ll { stroke: var(--ink); }
.staff.noten .st { stroke: var(--ink); stroke-width: 1.4; }
.staff.noten .flag { stroke: var(--ink); stroke-width: 1.8; fill: none; }
.staff.noten .rest { stroke: var(--ink); stroke-width: 2.2; fill: none; }
.staff.noten ellipse { fill: var(--ink); stroke: var(--ink); stroke-width: .6; }
.staff.noten ellipse.open { fill: var(--paper); stroke-width: 1.8; }
.staff.noten circle.dot { fill: var(--ink); }
.staff.noten .sus { stroke: color-mix(in srgb, var(--tr-keys) 55%, var(--weiss)); stroke-width: 3.5; }
.staff.noten text.acc { font: 600 13px var(--mono); text-anchor: middle; }
.staff.noten text.clef { font: 34px serif; text-anchor: middle; }
.staff.noten text.bassclef { font-size: 28px; }
.staff.noten .tcol::before, .staff.noten .tcol::after, .staff.noten::after { display: none; }
.staff.noten .ts.nhit { position: absolute; left: 0; right: 0; height: 6px; min-height: 0; padding: 0; z-index: 1; cursor: pointer; }
.staff.noten .ts.nhit::before, .staff.noten .ts.nhit::after { display: none; }
@media (hover: hover) { .staff.noten .ts.nhit:hover{ background: color-mix(in srgb, var(--accent) 28%, transparent); } }
.staff.noten .ts.nhit.cur { outline: 2px solid var(--accent); outline-offset: 0; }
@media (hover: hover) { .staff.noten.inactive .ts.nhit:hover{ background: none; } }
#noteTog[aria-pressed="true"], #pvNoteTog[aria-pressed="true"] { border-color: var(--accent); }
#pvNoteTog[hidden] { display: none; }
.pvpaper .pvbar > .dgrid.ovdrums { margin: 0; }
/* ==== static/css/22-papierkorb.css ==== */
/* ----- Papierkorb in den Einstellungen ----- */
.setdlg #trashShow { width: 96px; justify-content: center; }
.setdlg #trashEmpty { width: 128px; justify-content: center; }
.trashlist { display: flex; flex-direction: column; gap: 4px; max-height: 220px; overflow-y: auto; flex: none; }
.trashlist[hidden] { display: none; }
.trashlist .save .n small { display: block; }
/* ==== static/css/23-rig-effektliste.css ==== */
/* ----- Setup: Effektliste (Pedale, Verstärker, Boxen) steht im Fenster des Instrument-Reiters, links vom Board -----
   Das Fenster (.rigpane) ist ein Raster: links die Liste über die ganze Höhe, rechts Kopf, Kacheln, Griff, Board. Das Mischpult
   rechts bleibt auch in der Bandansicht (bandmode) stehen, die Liste gehört zum Setup. */
@media (min-width: 1000px) {
  body:not(.phone) .view.rigview:not([hidden]) { grid-template-columns: minmax(0, 1fr) var(--mixc, 280px) !important; grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "bar mix" "stage mix" !important; }
  body:not(.phone) .view.rigview.mixdock.mix-folded:not([hidden]) { --mixc: 30px; }
  body:not(.phone) .view.rigview.bandmode:not([hidden]) { grid-template-areas: "bar mix" !important; grid-template-rows: minmax(0, 1fr); }  /* Mischpult bleibt offen (Fenster springt nicht) */
  body:not(.phone) .view.rigview > .bandarea { grid-area: bar; }
  body:not(.phone) .view.rigview.bandmode > .bandarea { grid-row: 1; }
  body:not(.phone) .rigstage > .rigpane { display: grid; grid-template-columns: var(--dockw, 250px) minmax(0, 1fr); grid-template-rows: auto auto auto minmax(0, 1fr) auto; column-gap: 12px; row-gap: 8px; align-items: start; }
  body:not(.phone) .rigstage > .rigpane > .rigdock { grid-column: 1; grid-row: 1 / -1; align-self: stretch; min-height: 0; background: transparent; border: 0; box-shadow: none; padding: 0; }
  body:not(.phone) .rigstage > .rigpane > .rigdock > .colgrip, body:not(.phone) .rigstage > .rigpane > .rigdock > .foldedge { display: none; }
  body:not(.phone) .rigstage > .rigpane > .rigdock .dockbody { padding: 0; gap: 8px; }
  body:not(.phone) .rigstage > .rigpane > .righead { grid-column: 2; grid-row: 1; }
  body:not(.phone) .rigstage > .rigpane > .riginst { grid-column: 2; grid-row: 2; }
  body:not(.phone) .rigstage > .rigpane > .riggrip { grid-column: 2; grid-row: 3; }
  body:not(.phone) .rigstage > .rigpane > .rigboard { grid-column: 2; grid-row: 4; align-self: stretch; }
  body:not(.phone) .rigstage > .rigpane > .rigparts { grid-column: 2; grid-row: 5; }
  body:not(.phone) .rigstage > .rigpane:has(> .rigboard[hidden]) { grid-template-rows: auto minmax(0, 1fr) auto auto auto; }
  body:not(.phone) .rigstage > .rigpane:has(> .rigboard[hidden]) > .riginst { align-self: stretch; }
}
/* ==== static/css/24-ueben-handy.css ==== */
/* ----- Üben am Handy: Platz ausnutzen, Noten ohne Rand ----- */
/* Notenköpfe: die allgemeine Symbol-Regel für svg (Linienfarbe, 2 px) legte einen hellen Rand um die schwarzen Köpfe */
.prstaff ellipse { stroke: var(--ink); stroke-width: .6; }
.prstaff .nh.now ellipse { stroke: var(--accent); }
.prstaff text { stroke: none; }
body.phone .prstaff .nh .acc { stroke: none; }
body.phone .prnotes { padding: 2px 4px; }
@media (orientation: portrait) {
  /* Einheit und Kopf: weniger Polster, leere Zielzeile entfällt */
  body.phone .view.practice > .prunits { padding: 4px; }
  body.phone .prunitbtn { min-height: 38px; padding: 4px 8px; }
  body.phone .prhead { padding: 4px 10px; gap: 0; }
  body.phone .prgoal { min-height: 0; gap: 2px 10px; }
  body.phone .prgoal .prok.off { display: none; }  /* unsichtbarer Bestätigen-Knopf nahm eine leere Zeile ein */
  body.phone .prgoal:empty, body.phone .prgoal[aria-hidden="true"], body.phone .prhead .prht:empty { display: none; }
  /* Bedienung: Beat-, Metronom-Knopf und Ansichtswahl in einer Zeile unter der Einstellungszeile */
  body.phone .prbar { padding: 6px; gap: 6px; }
  body.phone .prbar #prBeat { order: 6; grid-column: span 1; min-height: 40px; }
  body.phone .prbar #prSub { order: 6; grid-column: span 1; min-height: 40px; }  /* Raster direkt neben der Begleitung */
  body.phone .prbar #prShow { order: 6; grid-column: span 3; }
  body.phone .prbar #prShow button { min-height: 40px; padding: 0 2px; font-size: 12.5px; }
  body.phone .prbar .prmore { min-height: 40px; }
  /* Noten behalten ihre volle Höhe (vorher abgeschnitten); Tabulatur nimmt den Rest */
  body.phone .prscroll > .prnotewrap { flex: none; max-height: 26vh; }
  body.phone .prstaff { zoom: .72; margin: 0; }  /* Notensystem kleiner, damit die Tabulatur darunter Platz behält */
  body.phone .prscroll { gap: 4px; }
  body.phone .prmain, body.phone .view.practice:not([hidden]) { gap: 4px; }
  body.phone .prboard { padding: 4px 6px; gap: 4px; }
}
/* Griffbrett klein: Zeilen bleiben so hoch wie eingestellt (Rand, Zeilenhöhe und Polster der Bünde machten sie sonst höher als die Saitenbeschriftung) */
body.phone .prfb button.fr { box-sizing: border-box; line-height: 1; padding: 0; }
body.phone .prfb button.fr.top, body.phone .prfb button.fr.bot { height: var(--frh, 32px) !important; }
body.phone .pvcount .countbtn > span { display: none; }  /* Handy-Songbook: Einzähler nur als Symbol (Zustand im Tooltip) */
/* ==== static/css/25-einsingen.css ==== */
/* ----- Riff einsingen (Dialog #singDlg, static/js/mod/einsingen.js) ----- */
dialog.keysdlg.singdlg { width: min(980px, 96vw); height: min(640px, 90vh); padding: 0; display: none; }
dialog.keysdlg.singdlg[open] { display: flex; flex-direction: column; }
.singdlg > .props-head { flex: none; gap: 12px; padding: 12px 16px; align-items: center; }
.singdlg > .props-head h2 { margin: 0; white-space: nowrap; }
.singsteps button { min-height: 28px; }
.singcard { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px 14px 10px; }
.singopts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.singopts select { min-height: 30px; }
.singchk, .singbpm { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); }
.singbpm input { width: 64px; min-height: 30px; }
.singrecbpm .ib.sm { min-width: 30px; min-height: 30px; justify-content: center; font-size: 16px; }
.singrecbpm input[type=number] { width: 56px; text-align: center; }
.singrecbpm input[type=range] { width: 140px; min-height: 0; accent-color: var(--accent); }
.singrecrow { display: flex; align-items: center; gap: 14px; padding: 18px 0; }
.singrec { display: inline-flex; align-items: center; gap: 10px; min-width: 190px; min-height: 64px; padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--panel-2)); color: var(--fg); font-size: 16px; cursor: pointer; }
.singrec svg { width: 28px; height: 28px; }
.singrec.on { background: var(--accent); color: var(--bg); }
.singlvl { flex: 1; max-width: 320px; height: 10px; border-radius: 5px; background: var(--panel-2); overflow: hidden; }
.singlvl i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .06s linear; }

.singroll { flex: none; width: 100%; height: 70px; border-radius: 6px; background: var(--panel-2); }
.singtab.paper { flex: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; overflow: hidden; padding: 10px 12px 6px; }
.singtab .ts.selcol { background: rgba(44, 106, 209, .08); }
.singtools { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.singtools .ib.sm { min-width: 32px; min-height: 30px; justify-content: center; }
.singdlg > .dlgfoot { flex: none; display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); }

/* Handy: Vollbild, große Knöpfe, Tab waagerecht wischen */
body.phone dialog.keysdlg.singdlg { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
body.phone .singdlg > .props-head { flex-wrap: wrap; row-gap: 6px; }
body.phone .singdlg > .props-head h2 { font-size: 16px; }
body.phone .singdlg > .props-head { padding-bottom: 0; border-bottom: 0; }
body.phone .singsteps { order: 3; width: 100%; margin-bottom: -1px; }
body.phone .singcard { border-top: 1px solid var(--line); padding-top: 12px; }
body.phone .singsteps button { flex: 1; min-height: 36px; }
body.phone .singrecrow { flex-direction: column; align-items: stretch; }
body.phone .singrec { justify-content: center; min-height: 80px; }
body.phone .singlvl { max-width: none; }
body.phone .singtools .ib.sm { min-width: 40px; min-height: 38px; }
body.phone .singdlg > .dlgfoot .ib { flex: 1; min-height: 42px; justify-content: center; }
body.phone .singopts select, body.phone .singopts .ib { min-height: 38px; }
body.phone .singrecbpm { flex: 1 1 100%; gap: 8px; }
body.phone .singrecbpm .ib.sm { min-width: 42px; min-height: 40px; font-size: 20px; }
body.phone .singrecbpm input[type=number] { min-height: 40px; }
body.phone .singrecbpm input[type=range] { flex: 1; width: auto; min-width: 0; height: 32px; }

/* Optisches Metronom im Dialog */
.singmetro { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; align-items: center; gap: 2px 12px; min-width: 150px; }
.singmetro .smdots { display: flex; gap: 8px; grid-row: 1; grid-column: 1; }
.singmetro .smdots i { width: 18px; height: 18px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line); transition: background .08s; }
.singmetro .smdots i:first-child { border-color: var(--accent); }
.singmetro .smdots i.on { background: var(--muted); }
.singmetro.rec .smdots i.on { background: var(--accent); }
.singmetro .smdots i.hit { transform: scale(1.25); }
.singmetro b { grid-row: 1 / span 2; grid-column: 2; font-family: var(--mono); font-size: 34px; line-height: 1; color: var(--muted); }
.singmetro.rec b { color: var(--fg); }
.singmetro.one.rec b { color: var(--accent); }
.singmetro small { grid-row: 2; grid-column: 1; font-size: 12px; color: var(--muted); }
body.phone .singmetro { justify-content: center; }
body.phone .singmetro .smdots i { width: 26px; height: 26px; }

/* Schritt-Reiter mit Symbol (wie Konto) */
.singsteps > [role="tab"] { display: inline-flex; align-items: center; gap: 7px; }
.singsteps > [role="tab"] svg { width: 15px; height: 15px; flex: none; }

/* Handy: eigene Seite (mod/seite.js) zwischen Kopfleiste und unterer Leiste – kein Titel, kein Schließen, Schritte als Reiter */
body.phone dialog.keysdlg.singdlg.seite { position: fixed; left: 0; width: 100%; max-width: none; max-height: none; margin: 0; border: 0; border-radius: 0;
  box-shadow: none; background: var(--bg); z-index: 31; overflow: hidden; }
body.phone .singdlg.seite > .props-head { padding: 8px 10px 0; background: transparent; border: 0; }
body.phone .singdlg.seite > .props-head h2, body.phone .singdlg.seite #singClose, body.phone .singdlg.seite > .props-head > .sp { display: none; }
body.phone .singdlg.seite .singsteps { order: 0; margin: 0; }
body.phone .singdlg.seite .singsteps > [role="tab"] { min-height: 40px; justify-content: center; }
body.phone .singdlg.seite .singsteps > [role="tab"][aria-pressed="true"] { top: 1px; }
body.phone .singdlg.seite .singcard { background: var(--panel-2); border-top: 1px solid var(--line); }
body.phone .singdlg.seite > .dlgfoot { background: var(--panel-2); }
/* Schritt „Tab“: nur die Tabulatur scrollt (senkrecht), Optionen, Tonleiste und Werkzeuge bleiben stehen */
.singcard[data-scard="tab"] { overflow: hidden; }
.singcard[data-scard="tab"] > * { flex: none; }
.singcard[data-scard="tab"] > .singtab { flex: 1 1 auto; min-height: 60px; overflow-y: auto; overflow-x: hidden; }
/* Seite „Übernehmen“: oben Instrument und Anhören, darunter das Riff klein (nur ansehen), dann die beiden Wege nebeneinander */
.singcard[data-scard="use"] { overflow: hidden; }
.singcard[data-scard="use"] > * { flex: none; }
.singusehead { display: flex; align-items: center; gap: 10px; }
.singusehead .seg button { display: inline-flex; align-items: center; gap: 6px; }
.singusehead .seg svg { width: 15px; height: 15px; }
.singmini { pointer-events: none; max-height: 210px; overflow: hidden; }
.singuse { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.singuse .wiz-block { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.singuse .singopts { flex-wrap: wrap; }
body.phone .singuse { grid-template-columns: minmax(0, 1fr); }
.singdlg .experi { margin-left: 8px; padding: 1px 7px; border: 1px solid var(--brass); border-radius: 999px; color: var(--brass); font-size: 11px; line-height: 16px; white-space: nowrap; cursor: help; align-self: center; }
/* ----- Band beim Anhören (static/js/mod/einsingen-band.js): Tabulatur läuft wie in der Werkstatt (Laufband, Teil 17) ----- */
.singtab.lbon > :not(.lband) { display: none !important; }
.singtab.lbon { overflow: hidden !important; }
.singband { flex: none; }
/* ==== static/css/26-triolen.css ==== */
/* ----- Triolen im 4/4 (p.trip): Dreier-Raster, Triolen-Spalten 4/3 breit, „3“ über der Zählzeit ----- */
.staff.trip { grid-template-columns: 30px repeat(var(--cols3), minmax(0, 1fr)); }
.staff.trip > .tcol { grid-column: span 3; }
.staff.trip > .tcol.t3 { grid-column: span 4; }
.tcol.t3 > .cnt { color: var(--accent); border-top: 1px solid color-mix(in srgb, var(--accent) 70%, transparent); justify-content: center; }
.tcol.t3a > .cnt { border-left: 1px solid color-mix(in srgb, var(--accent) 70%, transparent); }
.dgrid.trip > span:not(.dl) { grid-column: span 3; }
.dgrid.trip > span.t3 { grid-column: span 4; }
.dgrid.trip > .dn.t3 { color: var(--accent); }
.tcol.t3 > .cnt .tup { font-size: 9px; font-style: italic; }
.staff.trip > .tcol.t6 { grid-column: span 2; }
.tcol.t6 > .cnt { color: var(--accent); border-top: 1px solid color-mix(in srgb, var(--accent) 70%, transparent); justify-content: center; }
.tcol.t6x .ts.has b { color: var(--accent); }
/* ==== static/css/27-pedal-verlauf.css ==== */
/* ----- Pedal treten: Verlauf je Songteil (#pedDlg, static/js/mod/pedal-editor.js) ----- */
dialog.keysdlg.peddlg { position: fixed; inset: auto 0 64px 0; margin: 0 auto; width: min(1100px, 96vw); height: 380px; padding: 0; display: none; z-index: 60; }
dialog.keysdlg.peddlg[open] { display: flex; flex-direction: column; }
.peddlg > .props-head { flex: none; gap: 10px; padding: 8px 12px; align-items: center; }
.peddlg > .props-head h2 { margin: 0; white-space: nowrap; }
.peddlg .seg { display: inline-flex; }
.peddlg .seg button { width: 34px; height: 30px; display: inline-grid; place-items: center; padding: 0; }
.peddlg .seg button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.peddlg .seg button.has:not([aria-pressed="true"]) { color: var(--accent); }
.peddlg #pedSemi { height: 30px; width: 150px; }
.peddlg #pedSemi[hidden] { display: none; }
.pedsvg { flex: 1; min-height: 0; width: 100%; display: block; touch-action: none; cursor: crosshair; background: var(--paper, #d9d6cf); border-top: 1px solid var(--line); }
.pedsvg .pbar { fill: transparent; }
.pedsvg .pbar.odd { fill: rgba(0, 0, 0, .05); }
.pedsvg .pbn { font-size: 10px; fill: rgba(0, 0, 0, .45); pointer-events: none; }
.pedsvg .pbeat { stroke: rgba(0, 0, 0, .1); }
.pedsvg .pbarl { stroke: rgba(0, 0, 0, .35); }
.pedsvg .pgrid { stroke: rgba(0, 0, 0, .12); stroke-dasharray: 3 4; }
.pedsvg .parea { fill: color-mix(in srgb, var(--pc, #b23a48) 18%, transparent); pointer-events: none; }
.pedsvg .pother { fill: none; stroke: var(--pc); stroke-width: 2; stroke-dasharray: 5 4; opacity: .35; stroke-linejoin: round; pointer-events: none; }  /* andere Pedale des Instruments */
.pedsvg .pline { fill: none; stroke: var(--pc, #b23a48); stroke-width: 2.5; stroke-linejoin: round; pointer-events: none; }
.pedsvg .ppt { fill: #fff; stroke: #b23a48; stroke-width: 2.5; cursor: grab; }
.pedsvg .ppt.sel { fill: #b23a48; }
.pedsvg .phead { stroke: var(--accent, #c9a227); stroke-width: 2; pointer-events: none; }
#pedOpen[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.pedsvg .ppad { fill: rgba(0, 0, 0, .16); pointer-events: none; }  /* Taktart unter 16 Schritten: ungenutzte Plätze */
/* Verständlicher: Gruppen beschriftet, Achse mit Pedal-Symbol und Wirkung, Takt/Zählzeiten oben, Noten blass unten, Vorschau der Formen */
.peddlg .pedlab { font: 600 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-left: 6px; padding-left: 10px; border-left: 1px solid var(--line); }
.peddlg .pedlab:first-of-type { border-left: 0; padding-left: 0; margin-left: 4px; }
.pedsvg .pbn { font: 600 10px var(--mono); fill: rgba(0, 0, 0, .6); }
.pedsvg .pcnt { font: 9px var(--mono); fill: rgba(0, 0, 0, .4); pointer-events: none; }
.pedsvg .pax { font: 600 10px var(--mono); fill: rgba(0, 0, 0, .65); pointer-events: none; }
.pedsvg .pax.mid { fill: rgba(0, 0, 0, .4); font-weight: 400; }
.pedsvg .pfoot path { fill: rgba(0, 0, 0, .55); }
.pedsvg .pnote { font: 600 9px var(--mono); fill: rgba(0, 0, 0, .38); pointer-events: none; }
.pedsvg .pnotel { stroke: rgba(0, 0, 0, .12); }
.pedsvg .prest { stroke: #b23a48; stroke-width: 2; stroke-dasharray: 6 5; opacity: .35; pointer-events: none; }
.pedsvg .pprev { fill: none; stroke: #b23a48; stroke-width: 2; stroke-dasharray: 5 4; opacity: .75; pointer-events: none; }
.pedsvg text { stroke: none; }
.pedsvg .pfoot path { stroke: none; }
/* Raster wie in der Tabulatur: 16tel-Linien, Zählzeiten 1 e + a, Cursor-Spalte mit Platz und Stellung unter der Maus */
.pedsvg .pstep { stroke: rgba(0, 0, 0, .05); }
.pedsvg .pbeat { stroke: rgba(0, 0, 0, .16); }
.pedsvg .pcnt { font: 9px var(--mono); fill: rgba(0, 0, 0, .35); }
.pedsvg .pcnt.beat { font-weight: 700; fill: rgba(0, 0, 0, .7); }
.pedsvg .pcurcol { fill: rgba(178, 58, 72, .1); pointer-events: none; }
.pedsvg .pcurv { stroke: #b23a48; stroke-width: 1; stroke-dasharray: 2 3; pointer-events: none; }
.pedsvg .pcurt { font: 600 10px var(--mono); fill: #8a2533; pointer-events: none; }
.pedsvg .pcur { pointer-events: none; }
/* Instrumente der Band: im Songteil pausierte blass; Pedale, die nicht auf dem Board liegen, blass (kommen beim Treten dazu) */
.peddlg .seg button.paused:not([aria-pressed="true"]), .peddlg .seg button.absent:not([aria-pressed="true"]) { opacity: .4; }
.peddlg .seg button.paused[aria-pressed="true"] svg, .peddlg .seg button.absent[aria-pressed="true"] svg { opacity: .6; }
.peddlg .seg button[hidden] { display: none; }

.pedsvg .pleg { pointer-events: none; }
.pedsvg .pleg rect { fill: rgba(255, 255, 255, .85); stroke: rgba(0, 0, 0, .2); }
.pedsvg .pleg text { font-size: 11px; fill: #2a2a2a; }
.pedsvg .pleg .pother { opacity: .6; }

/* Mehrere gleiche Pedale auf einem Board: Nummer klein unten rechts im Knopf (Knopf bleibt gleich groß) */
.peddlg .seg button { position: relative; }
.peddlg .seg button .pnr { position: absolute; right: 2px; bottom: 0; font: 700 9px var(--mono); font-style: normal; line-height: 1; pointer-events: none; }
/* Tabulatur der Spur unter der Fläche; Platz unter der Maus auch in der echten Tabulatur */
.pedsvg .pstr { stroke: rgba(0, 0, 0, .22); }
.pedsvg .pstrn { font: 600 8px var(--mono); fill: rgba(0, 0, 0, .45); pointer-events: none; }
.pedsvg text.pfret { font: 700 9px var(--mono); fill: #1d1d1d; stroke: var(--paper, #d9d6cf); stroke-width: 3px; paint-order: stroke; pointer-events: none; }
.pedsvg text.pfret.pm { fill: rgba(0, 0, 0, .5); }
#paper .tcol.pedmark { background: rgba(178, 58, 72, .22); box-shadow: inset 0 0 0 1px rgba(178, 58, 72, .7); }
/* ==== static/css/28-effektsuche.css ==== */
/* ----- Setup: Effektliste mit Suche -----
   Überschrift und Suchfeld stehen fest, nur die Liste darunter scrollt (vorher lief sie unter die feste Überschrift, angeschnittene
   Kästen sahen kaputt aus). Suche: palFilter in mod/rig-bearbeiten.js blendet Geräte und leere Gruppen aus, zugeklappte gehen auf. */
#rigPalBox .palq { margin: 2px 0 6px; }
#rigPalBox .palq input { height: 26px; font-size: 12px; padding-left: 28px; }
#rigPalBox .palq svg { width: 13px; height: 13px; left: 8px; }
#rigPal .palped[hidden], #rigPal .palgrp[hidden] { display: none !important; }
#rigPal.palsearch .palgrp.shut .palbody { display: grid; }
#rigPal.palsearch .palgrp.shut .palh svg { transform: none; }
@media (min-width: 901px) {
  .rigdock .dockbody > #rigPalBox { display: flex; flex-direction: column; overflow: hidden; }
  .rigdock .dockbody > #rigPalBox > .eyebrow { position: static; flex: none; }
  .rigdock .dockbody > #rigPalBox > .palq { flex: none; }
  .rigdock .dockbody > #rigPalBox > #rigPal { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; margin: 0 -12px; padding: 0 12px 6px;
    align-content: start; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
    mask-image: linear-gradient(to bottom, transparent 0, #000 12px, #000 calc(100% - 8px), transparent 100%); padding-top: 4px; }
}
/* ==== static/css/29-pedal-vorschau.css ==== */
/* ----- Werkstatt: Pedal-Vorschau über der Effektleiste ist bedienbar (Regler -> Song-Board, Fußschalter -> Songteil) ----- */
.pedtip.live { pointer-events: auto; }
.pedtip.live .pedal { cursor: default; }
/* ==== static/css/30-eingangsrauschen.css ==== */
/* ----- Meine Bands: Eingangszeile mit Eingangsrauschen – Gitarre (Buchse) → „Eingang“ mit Reglern Rauschen (darüber) und Brummen
   (darunter, Linksanschlag = aus) → Pedale. Die Zeile hat dafür keine Beschriftung links (sie steht in der Mitte des Eingangs). ----- */
.rigrow.inrow { padding-left: 0; align-items: center; }
.inlab { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: none; position: relative; }
.inlab .knob { width: 52px; }
.inlab .knob i { width: 24px; height: 24px; }
.inlab .knob b { font-size: 9.5px; font-weight: 500; }
.inlab .inlabtxt { font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--brass); margin: 2px 0; }
/* ==== static/css/31-griffbrett-unten.css ==== */
/* ----- Werkstatt: eingeklapptes Griffbrett bleibt unten am Rand – die Tabulatur füllt dann den Platz (auch bei fester Tab-Höhe) ----- */
.editor.tabfixed:has(> .fbwrap.folded) > .trackpane { flex: 1 1 auto; min-height: 0; }
.editor.tabfixed:has(> .fbwrap.folded) > .trackpane > .tabdock { flex: 1 1 auto; min-height: 0; }
.editor.tabfixed:has(> .fbwrap.folded) > .trackpane > .tabdock > .tabscroll { flex: 1 1 auto; min-height: 0; height: auto !important; }
/* Schalter „als Nächstes“ (Ring um den nächsten Ton) in der Kopfzeile des Griffbretts: Messing-Ring wie auf dem Griffbrett */
.fbnexttog { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0; margin-left: 4px; border: 1px solid transparent; border-radius: 4px; background: transparent; cursor: pointer; }
.fbnexttog i { width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid var(--brass); }
.fbnexttog[aria-pressed="false"] i { opacity: .3; }
@media (hover: hover) { .fbnexttog:hover{ border-color: var(--line); } }
.fbwrap.folded .fbnexttog { display: none; }
/* Einzähler/Begleitung: zwei Wechselknöpfe – Art (Aus/Metronom/Schlagzeug) und Raster (4tel/8tel/16tel), feste Breiten (springen nicht) */
.countbtn { min-width: 0; width: auto; justify-content: center; }
.countbtn > span { display: none; }  /* Einzähler/Begleitung nur als Symbol (Aus = durchgestrichenes Metronom), Zustand im Tooltip */
.countbtn span, .countsub span { white-space: nowrap; }
.countsub { width: 58px; min-width: 0; justify-content: center; margin-left: -2px; font-variant-numeric: tabular-nums; }
.countsub:disabled { opacity: .45; }
.pvcount { display: inline-flex; gap: 4px; flex: none; }
body.phone .pvcount .countbtn, body.phone .pvcount .countsub { min-height: 40px; }
/* Einstellungen: Bedienelemente jeder Zeile rechtsbündig (auch umgebrochen am Handy); Frauen/Männer: Knopf „Statistisch“ ganz rechts */
.setrow > .row, .setrow > .seg, .setrow > select, .setrow > label { margin-left: auto; }
.setrow #setFemStat { order: 3; }
/* Sperre mit Ladeanzeige (mod/sperre.js): modaler Dialog über allem, sieht aus wie der Ladeschleier */
dialog.sperre { margin: 0; padding: 0; border: 0; max-width: none; max-height: none; width: 100vw; height: 100dvh; color: var(--fg); }
dialog.sperre::backdrop { background: transparent; }
/* Mischpult: Summen-Klang (Proberaum / Live / Studio) und Zurücksetzen in einer Zeile */
.mixpop .mixtop { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mixpop .mixtop .mixreset { margin-left: auto; }
.mixpop .mixtop .mixmode { flex-wrap: wrap; min-width: 0; max-width: 100%; }  /* schmales Mischpult: Klang-Orte brechen um statt überzustehen */
.mixpop .mixtop .mixmode > button { flex: 1 0 auto; }
.mixpop .mixtop { min-width: 0; max-width: 100%; }
/* ==== static/css/32-songtext.css ==== */
/* ----- Songtext vertonen (Dialog #lyrDlg, mod/songtext.js) ----- */
dialog.lyrdlg { width: min(900px, calc(100vw - 32px)); }
.lyrdlg .lyrbody { display: grid; gap: 10px; padding: 10px 16px 16px; }
.lyrdlg textarea { width: 100%; min-height: 220px; height: 38vh; resize: vertical; box-sizing: border-box; padding: 8px 10px;
  font: 13px/1.45 var(--mono); background: var(--panel-2); color: var(--fg); border: 1px solid var(--line); border-radius: 6px; }
.lyrdlg .lyropts, .lyrdlg .lyrnav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }  /* immer alle Elemente: Umbruch gleich in jedem Reiter */
.lyrdlg .lyrnav .sp { flex: 1; }
.lyrdlg .lyrhist { display: inline-flex; align-items: center; gap: 2px; }
.lyrdlg .lyrpos { min-width: 44px; text-align: center; font: 12px var(--mono); color: var(--muted); }
.lyrdlg .lyrinfo { font-size: 12px; color: var(--muted); flex: 1 1 140px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lyrdlg .lyrtabs { display: flex; flex-wrap: nowrap; gap: 2px; overflow-x: auto; scrollbar-width: thin; margin-bottom: -10px; border-bottom: 1px solid var(--line); }
.lyrdlg .lyrtabs button { flex: none; font-size: 12px; line-height: 1; height: 24px; padding: 0 10px; border: 1px solid transparent; border-bottom: 0; border-radius: 6px 6px 0 0; background: transparent; color: var(--muted); }
.lyrdlg .lyrtabs button[aria-pressed="true"] { background: var(--panel-2); color: var(--fg); border-color: var(--line); }
.lyrdlg textarea { border-top-left-radius: 0; }
.lyrdlg :is(select, button):disabled { opacity: .45; }
.lyrdlg .lyrtabs button.has::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-radius: 50%; background: var(--muted); vertical-align: middle; }
.lyrdlg .lyrtabs button.set::after { background: var(--brass); }
.lyrdlg [hidden] { display: none !important; }
.lyrdlg .lyrtabs button.add { padding: 0 8px; color: var(--muted); }
.lyrdlg .lyrplay { display: inline-flex; gap: 2px; }
.lyrdlg #lyrAuto[aria-pressed="true"] { color: var(--brass); border-color: var(--brass); }
/* ==== static/css/33-rueckmeldung-verwaltung.css ==== */
/* ----- Rückmeldung (Tickets der Benutzer) ----- */
#fbBtn, #admBtn, #fbRail, #admRail { position: relative; }
.mixbadge.msgbadge { background: var(--brass); color: var(--ink); font-weight: 600; }
#admRail .mixbadge { top: 2px; right: 8px; }
#fbRail .mixbadge { top: 2px; right: 8px; }
.rail .rbfb span, .rail .rbadm span { font-size: 10px; letter-spacing: -.01em; }
body.phone .rbfb, body.phone .rbadm { display: none; }
dialog.keysdlg.fbdlg { width: min(640px, calc(100vw - 32px)); padding: 0; }
dialog.keysdlg.admdlg { width: min(1180px, calc(100vw - 32px)); height: min(88vh, 940px); padding: 0; }
dialog.keysdlg.admdlg[open] { display: flex; flex-direction: column; }
.fbbody, .admbody { padding: 14px 18px; }
.admbody { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.fbform { display: flex; flex-direction: column; gap: 8px; }
.fbform input[type="text"], .fbform textarea, .fbreply input { width: 100%; box-sizing: border-box; background: var(--panel-2); color: var(--fg); border: 1px solid var(--line); border-radius: 4px; padding: 7px 9px; font: inherit; }
.fbform textarea { resize: vertical; min-height: 90px; }
.fbfoot { display: flex; align-items: center; gap: 8px; }
.fbkx { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; cursor: pointer; }
.fbh { margin: 18px 0 8px; font-size: 13px; font-weight: 400; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.fblist { display: flex; flex-direction: column; gap: 8px; }
.fbitem { border: 1px solid var(--line); border-radius: 6px; background: var(--panel); padding: 8px 10px; }
.fbitem > header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fbitem > header .fbt { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.fbitem .fbmeta { color: var(--muted); font-size: 11px; font-family: var(--mono); }
.fbitem .fbtext { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--fg); font-size: 13px; }
.fbitem .fbkxv { margin-top: 4px; color: var(--muted); font-size: 11px; font-family: var(--mono); }
.fbart, .fbstand { display: inline-block; min-width: 86px; text-align: center; padding: 1px 6px; border-radius: 9px; border: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.fbart[data-art="fehler"] { color: var(--accent); border-color: var(--accent); }
.fbart[data-art="idee"] { color: var(--brass); border-color: var(--brass); }
.fbart[data-art="verbesserung"] { color: var(--steel); border-color: var(--steel); }
.fbstand[data-stand="angenommen"], .fbstand[data-stand="in_arbeit"] { color: var(--brass); border-color: var(--brass); }
.fbstand[data-stand="erledigt"] { color: var(--t-solo); border-color: var(--t-solo); }
.fbstand[data-stand="abgelehnt"] { color: var(--muted); }
.fbnotes { margin: 6px 0 0; padding: 0 0 0 10px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.fbnotes .team { color: var(--steel); }
.fbnotes p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.fbreply { display: flex; gap: 6px; margin-top: 6px; }
.fbreply input { padding: 4px 8px; }
.fbitem select { background: var(--panel-2); color: var(--fg); border: 1px solid var(--line); border-radius: 4px; padding: 2px 4px; }
.fbempty { color: var(--muted); font-size: 12px; }

/* ----- Verwaltung (Admin: Statistik, alle Rückmeldungen) ----- */
.admdlg .props-head { gap: 10px; }
.admcount { font-weight: 400; color: var(--brass); }
.admbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.admbar input[type="date"] { background: var(--panel-2); color: var(--fg); border: 1px solid var(--line); border-radius: 4px; padding: 4px 6px; font: inherit; font-size: 12px; color-scheme: dark; }
.admbis { color: var(--muted); }
.admtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-bottom: 14px; }
.admtile { border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; background: var(--panel); }
.admtile b { display: block; font-size: 22px; font-weight: 400; font-family: var(--mono); color: var(--fg); }
.admtile span { color: var(--muted); font-size: 11px; }
.admcharts { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.admchart { border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px 6px; background: var(--panel); min-width: 0; }
.admchart h4 { margin: 0 0 4px; font-size: 12px; font-weight: 400; color: var(--muted); display: flex; gap: 8px; }
.admchart h4 .sum { margin-left: auto; font-family: var(--mono); color: var(--fg); }
.admchart svg { display: block; width: 100%; height: 150px; overflow: visible; stroke: none; stroke-width: 0; fill: none; }
.admchart.wide { grid-column: 1 / -1; }
.dg-axis { stroke: var(--line); stroke-width: 1; }
.dg-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 3; opacity: .6; }
.dg-lab { fill: var(--muted); font-size: 10px; font-family: var(--mono); }
.dg-bar { fill: var(--steel); }
@media (hover: hover) { .dg-bar:hover, .dg-hit:hover + .dg-dot{ fill: var(--fg); } }
.dg-hit { fill: transparent; }
@media (hover: hover) { .dg-hit:hover{ fill: rgba(255, 255, 255, .05); } }
.dg-line { fill: none; stroke: var(--brass); stroke-width: 2; stroke-linejoin: round; }
.dg-area { fill: var(--brass); opacity: .12; }
.dg-dot { fill: var(--brass); }
.dg-gap { fill: var(--line); }
.dg-rows { display: grid; grid-template-columns: minmax(80px, max-content) 1fr 48px; gap: 3px 8px; align-items: center; font-size: 12px; }
.dg-rows .n { font-family: var(--mono); text-align: right; color: var(--fg); }
.dg-rows .k { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dg-rows .b { height: 8px; border-radius: 0 4px 4px 0; background: var(--steel); min-width: 2px; }
.admtip { position: fixed; z-index: 100; pointer-events: none; background: var(--panel-2); border: 1px solid var(--line); border-radius: 4px; padding: 4px 8px; font-size: 12px; font-family: var(--mono); color: var(--fg); white-space: nowrap; }
.admtix .fbitem > header select { margin-left: auto; }
/* ==== static/css/34-ueber-spenden.css ==== */
/* ----- Über-Dialog mit Reitern (mod/ueber.js) ----- */
dialog.aboutdlg .props-head { gap: 10px; flex-wrap: wrap; }
.abouttabs .seghrt { width: 13px; height: 13px; margin-right: 5px; vertical-align: -2px; fill: none; stroke: currentColor; stroke-width: 2; }
.abouthero { display: flex; align-items: center; gap: 16px; margin: 4px 0 12px; }
.aboutlogo { flex: none; width: 64px; height: 64px; border-radius: 14px; display: flex; align-items: center; justify-content: center; white-space: nowrap; background: var(--panel-2); border: 1px solid var(--line);
  font: 900 26px 'Big Shoulders Display', var(--sans, sans-serif); color: var(--fg); letter-spacing: .02em; }
.aboutlogo span { color: var(--accent); }
.aboutlogo.heart svg { width: 34px; height: 34px; fill: var(--brass); stroke: none; }
.aboutbody h3.abouttitle { margin: 0; font: 900 26px 'Big Shoulders Display', var(--sans, sans-serif); letter-spacing: .02em; text-transform: none; color: var(--fg); }
.aboutver { margin: 2px 0 0; font: 400 12px var(--mono); color: var(--muted); }
.aboutstory li { margin: 6px 0; }
.aboutstory b { color: var(--fg); font-weight: 600; }
.aboutmore { margin: 18px 0 4px; }
.spendewege { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 10px; }
a.spendeweg { text-decoration: none; }
.spendeweg svg, .spendeib svg, .rbspende svg { fill: var(--brass); stroke: none; }

/* ----- Spenden: Knöpfe, Hinweis beim Start (mod/spenden.js) ----- */
dialog.keysdlg.spendedlg { width: min(460px, calc(100vw - 32px)); padding: 0; }
.spendebody { padding: 22px 24px 18px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.spendebody h2 { margin: 6px 0 0; font: 900 24px 'Big Shoulders Display', var(--sans, sans-serif); letter-spacing: .02em; }
.spendebody p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.spendebody .spendewege { justify-content: center; }
.spendefoot { display: flex; width: 100%; gap: 8px; margin-top: 4px; }

/* ----- Anmeldeseite: angemeldet bleiben, Spenden-Zeile ----- */
.authbox .authstay { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); cursor: pointer; }
.authbox .authstay input { width: auto; margin: 0; padding: 0; accent-color: var(--accent); }
.authbox .authspende { margin: 4px 0 0; font-size: 12px; color: var(--muted); text-align: center; }
.authbox .authspende svg { width: 12px; height: 12px; fill: var(--brass); vertical-align: -1px; }
.authbox .authspende a { color: var(--brass); }

/* ----- Hobbyprojekt, Datenschutz, Impressum (mod/rechtliches.js) ----- */
.hobbybox { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 10px 14px; border: 1px solid var(--brass); border-radius: 10px; background: color-mix(in srgb, var(--brass) 10%, transparent); }
.hobbybox svg { flex: none; width: 22px; height: 22px; fill: var(--brass); stroke: none; }
.hobbybox b { display: block; color: var(--fg); font-weight: 600; }
.hobbybox span { color: var(--muted); font-size: 13px; }
.aboutlogo.lock svg { fill: none; stroke: var(--accent); stroke-width: 2; }
.rechtadr { line-height: 1.5; }
.rechtfehlt { color: var(--muted); font-style: italic; }
.authbox .authrecht { margin: 6px 0 0; font-size: 11.5px; line-height: 1.45; color: var(--muted); text-align: center; }
.authbox .authrecht svg { width: 12px; height: 12px; fill: none; stroke: var(--accent); stroke-width: 2.2; vertical-align: -1px; }
.authbox .authlinks { display: block; margin-top: 2px; }
.authbox .authlinks a { color: var(--fg); }
.setrecht { margin: 14px 0 0; font-size: 11.5px; color: var(--muted); text-align: center; }
.setrecht a { color: var(--fg); }
.spendebody p.spendefein { font-size: 11.5px; opacity: .85; }
.rechtliste { margin: 4px 0 0; padding-left: 18px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.rechtliste li + li { margin-top: 3px; }

/* ----- Stimmspende (mod/stimmspende.js) ----- */
.owndlg [data-ospende] { order: -1; margin-right: auto; }
dialog.keysdlg.stimmspdlg { width: min(640px, calc(100vw - 32px)); padding: 0; }
.stimmspbody { display: grid; gap: 10px; padding: 12px 16px 16px; }
.stimmsptext { max-height: min(46vh, 420px); overflow: auto; border: 1px solid var(--line, var(--rahmen-grau-dunkel)); border-radius: 6px; padding: 8px 12px; }
.stimmsptext dl { margin: 6px 0 0; }
.stimmsptext dt { font-weight: 600; margin-top: 8px; font-size: 12.5px; }
.stimmsptext dd { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.stimmspja { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.4; cursor: pointer; }
.stimmspja input { margin-top: 2px; flex: none; }
.stimmspja.frei { color: var(--muted); }
.stimmspbody .ownfoot { display: flex; gap: 10px; align-items: center; }
.stimmspwas { color: var(--muted); font-size: 12px; }
.stimmspliste { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.stimmspliste li { display: flex; gap: 10px; align-items: center; font-size: 12.5px; }
.stimmspliste li span { flex: 1; color: var(--muted); }

/* ----- Datenschutz: Tabelle Cookies und Speicher ----- */
.rechttab { width: 100%; border-collapse: collapse; font-size: 12px; margin: 6px 0; }
.rechttab th, .rechttab td { text-align: left; vertical-align: top; padding: 4px 6px; border-bottom: 1px solid var(--line, var(--rahmen-grau-dunkel)); }
.rechttab th { color: var(--muted); font-weight: 600; }
.rechttab td:first-child { white-space: nowrap; }
.rechttab code { font-size: 11px; }

/* ----- Über-Dialog: Kopf (Schließen immer oben rechts, Reiter in einer Zeile) ----- */
dialog.aboutdlg .props-head { position: relative; padding-right: 60px; }
dialog.aboutdlg #aboutClose { position: absolute; top: 10px; right: 12px; }
dialog.aboutdlg .props-head > .sp { display: none; }
body.phone dialog.aboutdlg .props-head { padding: 10px 56px 8px 12px; row-gap: 8px; }
body.phone dialog.aboutdlg .props-head h2 { font-size: 18px; line-height: 32px; }
body.phone dialog.aboutdlg #aboutClose { top: 8px; right: 10px; }
body.phone .abouttabs { flex: 1 0 100%; display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -44px; }
body.phone .abouttabs::-webkit-scrollbar { display: none; }
body.phone .abouttabs > button { flex: none; white-space: nowrap; padding: 6px 10px; }

/* ----- Gast (ausprobieren ohne Konto), Passwort-Warnung, neue Nutzungsbedingungen (mod/anmeldung.js) ----- */
.authbox .authwarn { margin: 0; padding: 8px 10px; border: 1px solid var(--brass); border-radius: 8px; font-size: 12px; line-height: 1.45; color: var(--muted);
  background: color-mix(in srgb, var(--brass) 10%, transparent); }
.authbox .authwarn b { color: var(--fg); font-weight: 600; }
.authbox .authwarn svg { width: 12px; height: 12px; fill: none; stroke: var(--brass); stroke-width: 2.2; vertical-align: -1px; }
.authbox .authoder { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.authbox .authoder::before, .authbox .authoder::after { content: ''; flex: 1; border-top: 1px solid var(--line, var(--rahmen-grau-dunkel)); }
.authbox .authprobe svg { fill: var(--accent); stroke: none; }
.authbox .authprobehin { margin: -4px 0 0; font-size: 11.5px; color: var(--muted); text-align: center; }
.authbox .authprobehin a { color: var(--fg); }
.authgate.authgast { background: rgba(0, 0, 0, .6); }
.authgast .authbox { position: relative; }
.authgast .authzu { position: absolute; top: 8px; right: 8px; min-height: 0; }
.authbox .authgrund { margin: 0; font-size: 13px; line-height: 1.45; text-align: center; }
.rbgast svg { stroke: var(--accent); }
.rbgast span { color: var(--accent); }
dialog.zustdlg { width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 48px); display: flex; flex-direction: column; padding: 0; }
dialog.zustdlg:not([open]) { display: none; }
.zustdlg .zusttext { flex: 1; min-height: 0; overflow: auto; padding: 12px 18px; font-size: 13px; line-height: 1.5; }
.zustdlg .kitdlgfoot { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); }

/* ----- Startseite für Besucher (mod/startseite.js): links „Was ist ChugLab?“, rechts Anmeldefeld ----- */
.authgate.startgate { display: flex; align-items: center; justify-content: center; gap: 48px; overflow: auto; padding: 24px 32px; }
.starthero { flex: 0 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.starthero h1 { margin: 0; font: 900 64px/0.95 'Big Shoulders Display', var(--display, sans-serif); letter-spacing: .01em; }
.starthero .startclaim { margin: 0; font-size: 19px; line-height: 1.4; color: var(--fg); }
.starthero .starthoer { display: flex; flex-direction: column; gap: 6px; }
.starthero .starthoerk { display: flex; gap: 8px; flex-wrap: wrap; }
.starthero .starthoerk .ib { min-width: 120px; justify-content: center; }
.starthero .starthoerk .ib svg { fill: var(--accent); stroke: none; }
.starthero .starthoerk .ib[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.starthero .starthoerk .ib[aria-pressed="true"] svg { fill: #fff; }
.startpunkte { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.startpunkte li { display: flex; gap: 10px; align-items: flex-start; }
.startpunkte svg { flex: none; width: 20px; height: 20px; margin-top: 1px; fill: none; stroke: var(--accent); stroke-width: 2; }
.startpunkte b { display: block; font-weight: 600; font-size: 14px; }
.startpunkte span { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.startbild { width: 100%; height: auto; border: 1px solid var(--line, var(--rahmen-grau-dunkel)); border-radius: 10px; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.startgate .authbox { flex: none; }
@media (max-width: 900px), (max-height: 600px) {
  .authgate.startgate { flex-direction: column; align-items: center; justify-content: flex-start; gap: 22px; padding: 18px 14px 28px; }
  .starthero { flex: none; width: min(560px, 100%); }
  .starthero h1 { font-size: 46px; }
  .starthero .startclaim { font-size: 16px; }
  .startpunkte { grid-template-columns: 1fr; }
}

/* ----- Handy: Über/Unterstützen als Seite (wie Konto, Einsingen; mod/seite.js) ----- */
body.phone dialog.aboutdlg.seite { position: fixed; inset: auto; left: 0; width: 100%; max-width: none; max-height: none !important; margin: 0; border: 0;
  border-radius: 0; box-shadow: none; background: var(--bg); z-index: 31; overflow: auto; }

/* ----- Schmale Bildschirme: Tabellen in Datenschutz & Co. als Karten (Spalte „Wozu“ war abgeschnitten) ----- */
@media (max-width: 640px) {
  .rechttab, .rechttab tbody, .rechttab tr, .rechttab td { display: block; width: auto; }
  .rechttab tr:has(th) { display: none; }
  .rechttab tr { padding: 6px 0; border-bottom: 1px solid var(--line, var(--rahmen-grau-dunkel)); }
  .rechttab td { border: 0; padding: 2px 0; overflow-wrap: anywhere; }
  .rechttab td:first-child { white-space: normal; color: var(--fg); }
  .rechttab td + td { color: var(--muted); }
  .rechttab td:nth-child(3)::before { content: 'Wie lange: '; color: var(--fg); }
  html[lang="en"] .rechttab td:nth-child(3)::before { content: 'How long: '; }
}
/* Sprache auf der Anmeldeseite: rechts neben Anmelden | Neues Konto (Gast-Fenster: allein rechts) */
.authkopf { display: flex; align-items: center; gap: 8px; }
.authkopf .authmode { flex: 1; }
.authlang { margin-left: auto; }
.authlang button { min-height: 0; padding: 2px 7px; font-size: 11px; }
/* ==== static/css/35-tour.css ==== */
/* ----- Geführte Tour (mod/tour.js) ----- */
.tour { position: fixed; inset: 0; z-index: 9000; pointer-events: none; }
.tourschatten { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); }
.tourspot { position: fixed; border-radius: 8px; outline: 2px solid var(--accent); }
.tourblase { position: fixed; pointer-events: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; box-shadow: 0 8px 28px rgba(0, 0, 0, .45); }
.tourblase h3 { margin: 4px 0 6px; font-size: 15px; }
.tourblase p { margin: 0 0 10px; font-size: 13px; line-height: 1.45; }
.tourknoepfe { display: flex; gap: 6px; align-items: center; }
.tourknoepfe .sp { flex: 1; }

/* ----- Warum klingt das so? (mod/erklaerung.js) ----- */
dialog.warumdlg { width: min(1040px, calc(100vw - 32px)); max-height: calc(100vh - 48px); display: flex; flex-direction: column; padding: 0; }
dialog.warumdlg:not([open]) { display: none; }
.warumbody { flex: 1; min-height: 0; overflow: auto; padding: 12px 18px 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; align-items: start; }
.warumbody h3 { margin: 12px 0 4px; font-size: 14px; }
.warumbody p { margin: 0 0 6px; font-size: 13px; line-height: 1.5; }
.warumbody details { border-top: 1px solid var(--line); padding: 4px 0; }
.warumbody summary { cursor: pointer; padding: 4px 0; font-weight: 600; }
body.phone .warumbody { grid-template-columns: 1fr; padding: 10px 12px; }
.warumbody p.warumstelle { cursor: pointer; border-radius: 4px; margin-left: -4px; padding: 0 4px; }
@media (hover: hover) { .warumbody p.warumstelle:hover{ background: var(--accent-soft); } }
#tabscroll .tcol.warummark { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }

/* ----- Klang-Protokoll (nur mit ?klang, mod/klangprotokoll.js) ----- */
.klangprot { position: fixed; left: 50%; top: 2px; transform: translateX(-50%); z-index: 9999; padding: 2px 8px; border-radius: 10px; font: 12px/1.5 var(--mono, monospace);
  background: var(--panel); color: var(--muted); border: 1px solid var(--line); pointer-events: none; }
.klangprot[data-art="an"] { color: var(--fg); border-color: var(--accent); }
.klangprot[data-art="warn"] { color: var(--fg); border-color: var(--now); }
/* ==== static/css/40-einheitlich.css ==== */
/* ----- Einheitliche Darstellung (letzter Teil der Kaskade) -----
   Gestaltungsregeln (docs/dev/oberflaeche.md „Gestaltungsregeln“):
   - Knöpfe und Felder: Ecken 5 px; Chips, Filter und Umschalter-Gruppen mit runden Enden (999 px) bleiben rund.
   - Zustände nur farblich: gewählte Option einer Auswahl (.seg, Reiter-Pillen) = invertiert (hell, dunkle Schrift);
     Schalter an = Messing; Aktion/Wiedergabe = Akzent-Rot. Keine Sonderfarben für einzelne Gruppen.
   - Beschriftungen über Feldern (label.f): Mono 10 px, Großbuchstaben, gedämpft; das Feld darunter in Fließtext-Schrift.
   - Kasten-Überschriften (.eyebrow): Mono, Großbuchstaben, gedämpft – 11 px, in engen Leisten 10 px. */
:root { --r-knopf: 5px; }
.btn, .ib, select, input[type=number], input[type=text], input[type=search], textarea { border-radius: var(--r-knopf); }
/* Auswahllisten und Textfelder unter Mono-Beschriftungen erbten die Mono-Schrift (Üben, Song-Eigenschaften) – Fließtext wie in Werkstatt und Band-Setup */
label.f select, label.f input[type=text], label.f input[type=search], label.f textarea { font-family: var(--body); font-size: 13px; letter-spacing: 0; text-transform: none; }
/* Popups (Menüs, Kontextmenü, Instrument-, Noten-, Band-, Geräte-Popups, Metronom, Mischpult): eine Eckenform wie das Kontextmenü */
.ctxmenu, .mixpop:not(.docked), .instpop, .bandpop, .gearpop, .cbpop, .livepop, .metropop { border-radius: 8px; }

/* Gewählte Karte (Songteil-Liste, Ablauf): Innenrahmen statt Außen-Outline – scrollende Listen schneiden ihn nicht ab,
   er folgt den Ecken und schließt bündig an den Farbbalken links an */
.card.sel { outline: none; box-shadow: inset 0 0 0 2px var(--fg); }
/* Scrollende Songteil-Listen: Platz für Mehrfachauswahl- und Drag-Rahmen (2 px Abstand + 2 px Strich) */
.libcol .ltpane > .lib, .libcol .ltpane > #library { padding: 4px; }

/* ----- Handy: Fingergröße ----- */
body.phone dialog input[type=search], body.phone dialog input[type=text] { min-height: 40px; }  /* Suchfelder in Fenstern wie die übrigen Handy-Knöpfe */
/* ==== static/css/41-standardansicht.css ==== */
/* ----- Ansicht „Standard“ (body.std, mod/ansicht-modus.js): entschlackt – Werkzeuge für Fortgeschrittene ausgeblendet.
   Experte zeigt alles. Neue Experten-Werkzeuge: im Markup class="xp" geben (gilt überall) oder hier nach Bereichen eintragen. ----- */
body.std .xp { display: none !important; }
/* Kopfleiste: Übungstempo, optisches Metronom, Mitspringen, Lauf-Art, Raster des Einzählers, Live-Gitarre */
body.std .speedf, body.std #metroBtn, body.std label.ibt:has(#follow), body.std label.ibt:has(#lband), body.std #countSub,
body.std .livewrap { display: none !important; }
/* Werkstatt-Kopf: Klang des Songs (Band/Song/Stil), Bands des Songs, Größe der Abschnitte */
body.std #bandModeSw, body.std #songBandsBtn, body.std #arrZoom { display: none !important; }
/* Editor: Pedal treten, Songteil/Song-Umschalter, Effekt-Leiste je Songteil, „folgt beim Abspielen“ am Griffbrett */
body.std #pedOpen, body.std #viewScope, body.std #toneBar, body.std label.follow:has(#fbFollow) { display: none !important; }
/* Meine Bands: NAM-Captures und Box-IRs (Import), Eingangsrauschen-Regler, Board-Verwaltung bis auf die Auswahl */
body.std #namLib, body.std #irLib, body.std .dockfoot, body.std .inlab .knob, body.std #rigTplNeu, body.std #rigTplStd,
body.std #rigTplRen, body.std #rigTplDel, body.std #rigPal .palped.cap { display: none !important; }  /* auch eingefangene NAM-Geräte in der Liste */
/* Stile: „Aus Tabs lernen“ */
body.std #kitTabs [data-kt="learn"] { display: none !important; }
/* Einstellungen: Bild-Ton-Abgleich und Sparmodus nur für Experten */
body.std .setrow:has(#avWizOpen), body.std .setrow:has(#setSpar) { display: none !important; }
body.std .instwrap.leer { display: none !important; }  /* nichts darin sichtbar (ansicht-modus.js) */
/* Song-Eigenschaften: Tonika, Gesangsführung, Stimmlage, Besetzung, Ablauf bearbeiten, Spalten Stil/Band/Energie (class xp, songteil-klang.js) */
/* Komponieren: seltene Spieltechniken (Bend+Release, Tapping, Triller, Flageolett, Pinch) und Viertel-/16tel-Triolen */
body.std .cmpbtn:is([data-ctq="r"], [data-ctq="q"], [data-ctq="l"], [data-ctq="n"], [data-ctq="p"], [data-ctrip="2"], [data-ct16]) { display: none !important; }
/* Einsingen: Stimmung und Tonvorrat (es gilt die des Songs) */
body.std #singTuning, body.std #singScale { display: none !important; }
/* Üben: Stimmung, Notenwert, Beschriftung, Ansicht-Umschalter, optisches Metronom, „+5 je Runde“ */
body.std label.f:has(#prTuning), body.std label.f:has(#prDiv), body.std #prLabel, body.std #prShow, body.std #prMetroVis,
body.std label.ibt:has(#prRamp) { display: none !important; }
/* Mischpult: Kanäle von Instrumenten, die nicht in der Band spielen */
body.std #mixer .strip.away { display: none !important; }
