/* ---------- Runde Icon-Buttons ---------- */
.round-btn {
  width: var(--tap); height: var(--tap); border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--glass); border: var(--line-w) solid var(--glass-line);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.6); backdrop-filter: blur(var(--glass-blur)) saturate(1.6);
  box-shadow: var(--shadow);
}
.round-btn:active { transform: scale(.94); }
.round-btn .icon { width: 24px; height: 24px; }

/* ---------- Segmented Control (iOS) ---------- */
.seg { display: flex; padding: 4px; gap: 4px; border-radius: var(--r-pill); background: var(--glass); border: var(--line-w) solid var(--glass-line);
  -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur)); }
.seg button { flex: 1; min-height: 44px; padding: 0 10px; border-radius: var(--r-pill); font-weight: 700; font-size: calc(17px * var(--fs)); white-space: nowrap; display: grid; place-items: center; }
.seg button[aria-selected="true"] { background: var(--accent); color: var(--on-accent);  }
.seg button[disabled] { opacity: .35; }
.seg button small { display: block; font-size: .62em; font-weight: 600; opacity: .8; }

.seg.inline { display: inline-flex; }
.seg.inline button { flex: none; padding: 0 20px; }

/* ---------- Karten, Listen ---------- */
.card { background: var(--surface); border: var(--line-w) solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); }
.list { border-radius: var(--r-card); overflow: hidden; background: var(--surface); border: var(--line-w) solid var(--line); box-shadow: var(--shadow); }
.list > li + li { border-top: var(--line-w) solid var(--line); }
.row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: calc(var(--tap) + 16px); padding: 12px 18px; text-align: left; }
.row:active { background: var(--badge-bg); }
.row .grow { flex: 1; min-width: 0; }
.row .t { font-weight: 700; font-size: calc(20px * var(--fs)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .s { color: var(--fg-2); font-size: calc(16px * var(--fs)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[data-style="hc"] .row .s { color: var(--fg); }
.chev { opacity: .5; }
.chips { display: flex; gap: 6px; flex: none; }
.chip { font-size: calc(12px * var(--fs)); font-weight: 800; padding: 4px 9px; border-radius: var(--r-chip); border: var(--line-w) solid var(--badge-line); background: var(--badge-bg); color: var(--badge-fg); letter-spacing: .02em; white-space: nowrap; }
.chip.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.chip.off { opacity: .35; }
.section-label { font-size: calc(14px * var(--fs)); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin: 26px 6px 10px; color: var(--fg-2); }
[data-style="hc"] .section-label { color: var(--fg); }

/* ---------- Primäre Buttons ---------- */
.btn { min-height: var(--tap); padding: 0 20px; border-radius: var(--r-pill); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--accent); color: var(--on-accent); border: var(--line-w) solid var(--accent); }
.btn.ghost { background: var(--glass); color: var(--fg); border-color: var(--glass-line); }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .4; }

/* ---------- Tab-Bar + Suche ---------- */
.dock { justify-content: center; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 8px var(--gutter) calc(8px + var(--safe-b)); transition: transform .28s ease; display: flex; gap: 12px; align-items: center; max-width: 900px; margin: 0 auto; }
.tabbar { flex: none; display: flex; padding: 4px; gap: 2px; border-radius: var(--r-pill); background: var(--glass); border: var(--line-w) solid var(--glass-line);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.6); backdrop-filter: blur(var(--glass-blur)) saturate(1.6); box-shadow: var(--shadow); height: var(--bar-h); }
.tabbar button { flex: none; height: 100%; min-width: 92px; padding: 0 22px; border-radius: var(--r-pill); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 700; letter-spacing: .01em; }
.tabbar button .icon { width: 24px; height: 24px; }
.searchbar { flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 8px 0 20px; height: var(--bar-h); border-radius: var(--r-pill); background: var(--glass); border: var(--line-w) solid var(--glass-line);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.6); backdrop-filter: blur(var(--glass-blur)) saturate(1.6); box-shadow: var(--shadow); }
.searchbar input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 22px; font-weight: 600; }
.searchbar input::placeholder { color: var(--fg-3); }
[data-style="hc"] .searchbar input::placeholder { color: var(--fg); opacity: .7; }
.dock .round-btn { height: var(--bar-h); width: var(--bar-h); }
.results { position: fixed; left: 0; right: 0; top: 0; bottom: calc(var(--dock-h) + var(--safe-b)); z-index: 40; overflow: visible; background: transparent; pointer-events: none; padding: calc(var(--safe-t) + 16px) var(--gutter) 6px; }
.results .inner { max-width: 900px; margin: 0 auto; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.results .list, .results .empty { pointer-events: auto; max-height: 100%; overflow-y: auto; box-shadow: var(--shadow-pop); }
.results .empty { background: var(--surface); border-style: solid; }

/* ---------- Gig-Leiste (Setlist-Kontext) ---------- */
.gigbar { flex: 1; display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; }
.gigbar .btn { min-height: var(--bar-h); font-size: calc(17px * var(--fs)); padding: 0 12px; flex-direction: column; gap: 0; line-height: 1.1; min-width: 0; }
.gigbar .btn small { font-size: .68em; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .85; }
.gigbar .mid { width: var(--bar-h); padding: 0; }

/* ---------- Song-Seite: kompakte Leiste, Inhalt ist der Star ---------- */
.song-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: flex; align-items: center; gap: 8px;
  padding: calc(var(--safe-t) + 6px) 12px 6px; background: none; pointer-events: none; transition: transform .28s ease; }
.song-bar > * { pointer-events: auto; }
.sb-pill { flex: 0 1 auto; margin-right: auto; min-width: 0; display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 18px 0 4px; border-radius: var(--r-pill); background: var(--glass); border: var(--line-w) solid var(--glass-line); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.6); backdrop-filter: blur(var(--glass-blur)) saturate(1.6); }
.sb-back { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; }
.sb-back .icon { width: 22px; height: 22px; }
.sb-back:active { transform: scale(.9); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; border: var(--line-w) solid var(--glass-line); background: var(--glass); }
.icon-btn:active { transform: scale(.94); }
.icon-btn .icon { width: 22px; height: 22px; }
.sb-title { flex: 0 1 auto; min-width: 0; line-height: 1.15; }
.sb-title b { display: block; font-size: 16px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-title span { display: block; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg-2); }
[data-style="hc"] .sb-title span { color: var(--fg); }
.seg.compact { padding: 3px; gap: 2px; flex: none; }
.seg.compact button { min-height: 38px; padding: 0 12px; font-size: 15px; }
.screen.song { padding: calc(var(--safe-t) + 58px) 0 calc(var(--dock-h) + var(--safe-b)); max-width: none; transition: padding .28s ease; }
body.focus .screen.song { padding-top: calc(var(--safe-t) + 4px); padding-bottom: var(--safe-b); }
body.focus .dock { transform: translateY(120%); }
body.focus .song-bar { transform: translateY(-120%); }
.focus-handle { position: fixed; left: 50%; bottom: calc(6px + var(--safe-b)); transform: translateX(-50%); z-index: 60; width: 72px; height: 28px; border-radius: 14px; display: none; place-items: center; background: var(--glass); border: var(--line-w) solid var(--glass-line); opacity: .85; }
body.focus .focus-handle { display: grid; }
.focus-handle .icon { width: 20px; height: 20px; }
.song-pad { padding: 12px var(--gutter); }

/* Falz: ein durchgehender Schatten mit Haarlinie über die ganze Bildschirmhöhe. Liegt über dem Inhalt, unter Leiste und Tab-Leiste, die darüber schweben. */
.fold { display: none; }
@media (min-width: 1080px) {
  .fold { display: block; position: fixed; top: 0; bottom: 0; left: 50%; width: 48px; transform: translateX(-50%); z-index: 5; pointer-events: none;
    background: linear-gradient(to right, transparent, color-mix(in srgb, var(--fg) 6%, transparent) 50%, transparent),
                linear-gradient(color-mix(in srgb, var(--fg) 28%, transparent), color-mix(in srgb, var(--fg) 28%, transparent)) center / 1px 100% no-repeat; }
}
}

/* ---------- Schnellansicht: Zeilen, kein Scrollen ---------- */
.qv { --qv: 1; padding: 0 12px; }
.qv-row { display: grid; grid-template-columns: calc(104px * var(--qv)) minmax(0, 1fr); align-items: center; gap: calc(8px * var(--qv)); padding: calc(7px * var(--qv)) 0 calc(7px * var(--qv)) calc(10px * var(--qv)); border-top: var(--line-w) solid var(--line); border-left: calc(7px * var(--qv)) solid var(--sec-color, var(--line)); }
.qv-row:first-child { border-top: 0; }
.qv-name { color: var(--sec-color, var(--fg)); text-align: left; font-size: calc(15px * var(--qv)); font-weight: 800; line-height: 1.15; display: flex; flex-direction: column; align-items: flex-start; gap: calc(4px * var(--qv)); }
.qv-name .rep { padding: 1px calc(9px * var(--qv)); border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent);  }
.qv-name .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fg-2); display: inline-block; margin-left: 4px; }
.qv-info { grid-column: 1 / -1; font-size: calc(13px * var(--qv)); font-weight: 500; color: var(--fg-2); margin: 0; }
[data-style="hc"] .qv-info { color: var(--fg); }
.qv-cells { display: flex; flex-wrap: nowrap; gap: calc(6px * var(--qv)) calc(10px * var(--qv)); }
.qv.wrap .qv-cells { flex-wrap: wrap; }
.qv-wrap { position: relative; min-height: calc(100dvh - var(--safe-t) - 58px - var(--dock-h) - var(--safe-b)); }
body.focus .qv-wrap { min-height: calc(100dvh - var(--safe-t) - 4px - var(--safe-b)); }
.qv-cell { display: flex; flex-direction: column; align-items: center; font-size: calc(34px * var(--qv)); font-weight: 800; line-height: 1.04; letter-spacing: -.01em; min-width: 2.5em; }
.qv-cell .note { white-space: nowrap; }
/* Zeilen-Layout (wie das Lead Sheet): pro Textzeile die Töne, Text klein und abgeschnitten dahinter */
.qv-lines { display: flex; flex-direction: column; gap: calc(6px * var(--qv)); min-width: 0; }
.qv-line { display: flex; align-items: center; gap: calc(16px * var(--qv)); min-width: 0; }
.qv-line .qv-cells { flex: none; }
.qv-lyric { flex: 1; min-width: 0; font-size: calc(15px * var(--qv)); font-weight: 500; color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-style="hc"] .qv-lyric { color: var(--fg); }
.qv-cell.short { font-size: calc(34px * var(--qv) * .78); min-width: 2.2em; }
.qv-lines .qv-cell { min-width: 2.3em; }
.pos { display: inline-block; padding: .08em .45em; margin-top: .06em; border-radius: var(--r-pill); font-weight: 800; font-size: .6em; line-height: 1.1; letter-spacing: 0; background: var(--badge-bg); color: var(--badge-fg); border: var(--line-w) solid var(--badge-line); white-space: nowrap; }
.pos.is-b { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.pos.warn::after { content: "8va"; font-size: .4em; margin-left: .1em; }
.pos.none { opacity: .5; }
.info-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; }
.info-chips .chip { font-size: 14px; padding: 6px 12px; }
@media (min-width: 1080px) {
  .qv { columns: 2; column-gap: 64px; padding: 0 20px; }
  .qv-row { break-inside: avoid; }
  .qv-row:first-child { border-top: 0; }
}
.legend { margin-top: 14px; font-size: 14px; color: var(--fg-2); }

/* ---------- PDF (randlos) / Video ---------- */
.pdf-pages { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-width: none;
  height: calc(100dvh - var(--safe-t) - 58px - var(--dock-h) - var(--safe-b)); transition: height var(--t-move, .29s) var(--ease-io, ease); }
.pdf-pages::-webkit-scrollbar { display: none; }
body.focus .pdf-pages { height: calc(100dvh - var(--safe-t) - 4px - var(--safe-b)); }
.pdf-pages { cursor: grab; }
.pdf-pages.dragging { cursor: grabbing; scroll-snap-type: none; }
.pdf-pages.settling { scroll-snap-type: none; }
.pdf-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; padding: 4px; position: relative; }
.pdf-pages.two .pdf-slide { flex-basis: 50%; scroll-snap-align: none; scroll-snap-stop: normal; }
.pdf-pages.two .pdf-slide:nth-child(odd) { scroll-snap-align: start; scroll-snap-stop: always; }
.pdf-slide canvas { width: 100%; height: 100%; object-fit: contain; display: block; }
[data-invert="1"][data-mode="dark"] .pdf-slide canvas { filter: invert(1) hue-rotate(180deg); }
.pdf-count { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--dock-h) + var(--safe-b) + 6px); z-index: 25; padding: 4px 14px; border-radius: var(--r-pill); font-size: 14px; font-weight: 800; background: var(--glass); color: var(--fg); border: var(--line-w) solid var(--glass-line); -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur)); transition: bottom var(--t-move, .29s) var(--ease-io, ease); }
body.focus .pdf-count { bottom: calc(var(--safe-b) + 40px); }
.pdf-note { padding: 18px; text-align: center; }
.video-frame { position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: #000; border: var(--line-w) solid var(--line); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame .open { position: absolute; top: 8px; right: 8px; z-index: 2; min-height: 44px; padding: 0 14px; font-size: 15px; background: #000; color: #fff; border: 2px solid #fff; }
.empty { padding: 32px 20px; text-align: center; border: var(--line-w) dashed var(--line); border-radius: var(--r-card); }
.empty p + p { margin-top: 8px; }

/* ---------- Einstellungen ---------- */
.set-row { display: flex; align-items: center; gap: 14px; min-height: calc(var(--tap) + 16px); padding: 12px 18px; }
.set-row .grow { flex: 1; min-width: 0; }
.set-row .t { font-weight: 700; font-size: calc(19px * var(--fs)); }
.set-row .s { color: var(--fg-2); font-size: calc(15px * var(--fs)); margin-top: 2px; }
[data-style="hc"] .set-row .s { color: var(--fg); }
.set-row .seg { min-width: 260px; flex: none; }
.set-row .seg button { min-height: 48px; font-size: calc(16px * var(--fs)); }

/* ---------- Sheet ---------- */
.sheet-back { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 900px; max-height: 88dvh; overflow-y: auto; border-radius: var(--r-card) var(--r-card) 0 0; padding: 18px var(--gutter) calc(24px + var(--safe-b)); background: var(--bg); border: var(--line-w) solid var(--line); }
.sheet h2 { font-size: calc(26px * var(--fs)); font-weight: 800; margin: 0; }
.sheet .topbar { margin-bottom: 10px; }
.sheet .now { background: var(--accent); color: var(--on-accent); }
.sheet .now .s { color: var(--on-accent); }
.num { width: 2.2em; text-align: center; font-weight: 800; font-size: calc(20px * var(--fs)); flex: none; }
.brace { border-left: 8px solid var(--accent); }

/* ---------- Setlisten ---------- */
.sl-card { display: block; width: 100%; text-align: left; padding: 18px; margin-bottom: 12px; }
.sl-card .t { font-size: calc(22px * var(--fs)); font-weight: 800; }
.sl-card .s { margin-top: 6px; color: var(--fg-2); }
[data-style="hc"] .sl-card .s { color: var(--fg); }
.handle { width: var(--tap); height: var(--tap); display: grid; place-items: center; touch-action: none; flex: none; }
.move { display: flex; gap: 6px; flex: none; }
.move .round-btn { width: 48px; height: 48px; box-shadow: none; }
.blk { display: flex; align-items: center; background: var(--surface); }
.blk-main { flex: 1; min-width: 0; }
.blk-main > .row + .row { border-top: var(--line-w) solid var(--line); }
.blk-act { display: flex; align-items: center; gap: 4px; padding-right: 8px; flex: none; }
.grip { width: 56px; height: 56px; display: grid; place-items: center; touch-action: none; cursor: grab; border-radius: 12px; }
.list.sorting { overflow: visible; }
.list > li.shifting { transition: transform .16s ease; }

/* ---------- Editor ---------- */
.ed-sec { padding: 14px; margin-bottom: 14px; }
.ed-bar { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 8px; align-items: end; margin-bottom: 10px; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: calc(13px * var(--fs)); font-weight: 700; }
.field input, .field select { height: 56px; border-radius: 14px; border: var(--line-w) solid var(--line); background: var(--surface-2); padding: 0 12px; font-size: calc(19px * var(--fs)); font-weight: 700; width: 100%; min-width: 0; color: var(--fg); }
.ed-bars { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ed-cell { border: var(--line-w) solid var(--line); border-radius: 18px; padding: 10px; display: flex; flex-direction: column; gap: 8px; background: var(--surface-2); }
.ed-cell .two { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tap) + 48px + var(--safe-b)); z-index: 90; padding: 14px 22px; border-radius: var(--r-pill); background: var(--fg); color: var(--bg); font-weight: 800; }

/* Gig-Leiste: deaktivierte Tasten bleiben deckend, sonst scheint der Inhalt durch */
.gigbar .btn[disabled] { opacity: 1; background: var(--bg); color: var(--fg-3); border-style: dashed; border-color: var(--line); }
[data-style="hc"] .gigbar .btn[disabled] { color: var(--fg); }

/* ---------- Akzent-Kreise ---------- */
.swatches { display: flex; gap: 14px; flex: none; }
.swatch { width: 44px; height: 44px; border-radius: 50%; background: var(--c); color: var(--on); border: var(--line-w) solid var(--line); display: grid; place-items: center; position: relative; }
.swatch .icon { width: 22px; height: 22px; stroke-width: 3; opacity: 0; transform: scale(.5); transition: opacity var(--t-state, .2s) var(--ease-io, ease), transform var(--t-state, .2s) var(--ease-io, ease); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--fg); }
.swatch[aria-pressed="true"] .icon { opacity: 1; transform: none; }

/* ---------- Schalter (iOS, Pillen-Knopf, straff) ---------- */
.switch { position: relative; flex: none; width: 76px; height: 42px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--fg) 20%, transparent); border: 0; padding: 0;
  transition: background-color var(--t-state, .2s) var(--ease-io, ease); }
.switch[aria-checked="true"] { background: var(--accent); }
.switch .knob { position: absolute; top: 3px; left: 3px; width: 48px; height: 36px; border-radius: var(--r-pill); background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.26), 0 0 1px rgba(0,0,0,.2);
  transition: left .26s cubic-bezier(.32, 1.12, .5, 1), width .16s ease-out; }
.switch[aria-checked="true"] .knob { left: calc(100% - 51px); }
.switch:active .knob { width: 56px; }
.switch[aria-checked="true"]:active .knob { left: calc(100% - 59px); }
/* Beim Umlegen: kurze, straffe Dehnung */
@keyframes knobStretch { 0% { transform: scaleX(1); } 40% { transform: scaleX(1.1); } 100% { transform: scaleX(1); } }
.switch.go .knob { animation: knobStretch .26s ease-in-out; }
.switch[aria-checked="true"].go .knob { transform-origin: right center; }
.switch[aria-checked="false"].go .knob { transform-origin: left center; }

/* ---------- Umschalter: grauer Untergrund, Pille liegt inline darin ---------- */
.seg:not(.compact) { background: color-mix(in srgb, var(--fg) 13%, transparent); border: 0; padding: 3px; gap: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.seg:not(.compact) .ind { box-shadow: 0 2px 7px rgba(0,0,0,.26), 0 1px 2px rgba(0,0,0,.16); }
.seg:not(.compact) button { min-height: 40px; }
[data-style="hc"] .seg:not(.compact) { background: color-mix(in srgb, var(--fg) 16%, transparent); }

/* ---------- Seitenkopf im Layout-Container: links Titel/Zurück, rechts Aktionen + Sonne/Mond ---------- */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--tap); margin: 0 0 14px; }
.page-head .ph-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.page-head .ph-right { display: flex; align-items: center; gap: 10px; flex: none; }
.page-head h1 { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.round-btn[disabled] { opacity: .35; }
.ed-gap { height: 26px; }

/* Toast mit Haken */
.toast { display: flex; align-items: center; gap: 10px; }
.toast .icon { width: 20px; height: 20px; stroke-width: 3; }

/* ---------- Editor: Abschnitts-Panel mit Kopf und Körper (Abstände 8 · 12 · 16 · 24 · 32) ---------- */
.ed-sec { padding: 0; overflow: hidden; margin-bottom: 16px; }
.ed-head { display: flex; align-items: flex-end; gap: 16px; padding: 16px; background: linear-gradient(to top, var(--panel-glow), transparent 50%); }
.ed-head > .round-btn { margin-bottom: 4px; }  /* 48er Button mittig zu den 56er Feldern */
.ed-meta { padding: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ed-fields { flex: 1; min-width: 0; display: grid; grid-template-columns: 2fr 1fr 3fr; gap: 12px; }
.ed-body { padding: 24px 16px 16px; }
.ed-body > .sub { margin: 0 0 12px; }
.ed-add { align-items: center; justify-content: center; gap: 4px; border-style: dashed; color: var(--fg-2); font-weight: 700; font-size: 16px; }
.ed-add .icon { width: 28px; height: 28px; }
[data-style="hc"] .ed-add { color: var(--fg); }
.ed-add:active { transform: scale(.97); }
.ed-cell { animation: popIn var(--t-enter, .28s) var(--ease-out, ease) backwards; }
.ed-versions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.ed-vleft { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ed-versions .seg button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.ed-versions .seg .icon { width: 18px; height: 18px; }
.ed-active { margin-bottom: 32px; }
.ed-label { margin-top: 32px; }
.page-end { height: 80px; }

/* ---------- Eingebettetes Eingabefeld (Panel sieht aus wie das Feld) ---------- */
.inline-field { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 20px; border-radius: var(--r-pill); background: var(--surface); border: var(--line-w) solid var(--line); box-shadow: var(--shadow); }
.inline-field input { flex: 1; min-width: 0; height: 44px; background: transparent; border: 0; outline: 0; font-size: 18px; font-weight: 600; }
.inline-field input::placeholder { color: var(--fg-3); }
[data-style="hc"] .inline-field input::placeholder { color: var(--fg); opacity: .7; }

/* ---------- Dialog (Löschen) ---------- */
.dialog-back { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,.5); }
.dialog { width: min(440px, 100%); padding: 24px; border-radius: 28px; background: var(--surface); border: var(--line-w) solid var(--line); box-shadow: var(--shadow-pop); }
.dialog h2 { font-size: 22px; font-weight: 800; line-height: 1.2; }
.dialog p { margin: 8px 0 24px; color: var(--fg-2); line-height: 1.35; }
[data-style="hc"] .dialog p { color: var(--fg); }
.dialog-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.btn.link { background: none; border-color: transparent; color: var(--fg); }
.btn.danger { background: #e5372b; border-color: #e5372b; color: #fff; }

.ed-bars > .ed-cell { min-height: 215px; }

/* Drag & Drop: Der gezogene Eintrag löst sich als eigene Karte aus der Liste und schwebt, die Lücke bleibt stehen */
.list.sorting > li:first-child { border-radius: var(--r-card) var(--r-card) 0 0; }
.list.sorting > li:last-child { border-radius: 0 0 var(--r-card) var(--r-card); }
.list.sorting > li:only-child { border-radius: var(--r-card); }
.list > li.dragging { position: relative; z-index: 20; background: var(--surface); border: var(--line-w) solid var(--line); border-radius: 20px !important; box-shadow: var(--shadow-pop); will-change: transform; }

.icon.solid { fill: currentColor; }

/* Gruppe in Listen: die Songs zählen normal weiter, eine Umrandung fasst sie zusammen, der Gruppenname schwebt auf der Linie */
.grp { position: relative; margin: 20px 12px 12px; border: var(--line-w) solid var(--accent); border-radius: 18px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.grp-label { position: absolute; top: -10px; left: 16px; padding: 0 8px; line-height: 20px; background: var(--surface); color: var(--fg); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border-radius: var(--r-pill); }
.grp > .row, .grp > div > .row { padding-left: 12px; }
.grp > * + * { border-top: var(--line-w) solid var(--line); }
.sheet .grp-label { background: var(--surface); }

/* ---------- Anmeldung, Konto, Ansicht wechseln ---------- */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px var(--gutter); position: relative; }
.login-theme { position: absolute; top: calc(var(--safe-t) + 12px); right: var(--gutter); }
.login-main { width: min(420px, 100%); display: grid; gap: 28px; justify-items: center; }
/* Logo als Maske, damit es die Textfarbe des Themes annimmt (die Datei selbst ist weiß) */
.login-logo { width: min(300px, 76%); aspect-ratio: 2904 / 878; background: var(--fg);
  -webkit-mask: url(../../logo.svg) center / contain no-repeat; mask: url(../../logo.svg) center / contain no-repeat; }
.login-card { width: 100%; padding: 28px 24px; display: grid; gap: 14px; }
.login-card .btn { margin-top: 6px; }
.login-err { color: #e5372b; font-weight: 700; font-size: 15px; margin: 0; }
.login-note { font-size: 14px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--fg) 8%, transparent); }
.login-note code { font-size: 13px; user-select: text; }
.avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 15px; background: color-mix(in srgb, var(--fg) 12%, transparent); color: inherit; }
.view-btn { font-weight: 800; font-size: 14px; letter-spacing: .02em; }
.view-btn.other { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.chip.pick { cursor: pointer; font-size: 14px; padding: 8px 14px; }
.ed-instr { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
.row.now .avatar { background: color-mix(in srgb, var(--on-accent) 22%, transparent); }

/* Datei-Upload: Instrument wählen, dann PDF */
.upload { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.upload select { min-height: var(--tap); border-radius: var(--r-pill); padding: 0 14px; background: var(--surface); color: var(--fg); border: var(--line-w) solid var(--line); font-weight: 700; }

/* Nur für Screenreader */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Honeypot im Login: für Menschen unsichtbar, nicht per display:none (das überspringen manche Bots) */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
