:root {
  --bg: #160d08;
  --panel: rgba(44, 25, 15, 0.94);
  --panel-2: rgba(63, 36, 22, 0.92);
  --text: #fff1dc;
  --muted: #d6b995;
  --line: rgba(255, 186, 92, 0.22);
  --accent: #f28b24;
  --accent-2: #d04b24;
  --gold: #ffca74;
  --danger: #a83025;
  --input: #21120b;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, #5f2b18 0, #201008 38%, #0e0805 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.wood-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background:
    linear-gradient(90deg, transparent 0 7%, rgba(255,255,255,.04) 7.5%, transparent 8%),
    repeating-linear-gradient(90deg, rgba(255,152,63,.07) 0 2px, transparent 2px 42px),
    repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 3px, transparent 3px 28px);
  mix-blend-mode: screen;
}
.hidden { display: none !important; }
button, input, select, textarea {
  font: inherit;
}
button, .file-button {
  border: 1px solid var(--line);
  color: var(--text);
  background: linear-gradient(180deg, #4d2a18, #27140c);
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: inset 0 1px rgba(255,255,255,.08), 0 8px 20px rgba(0,0,0,.18);
  transition: transform .14s ease, border-color .14s ease, filter .14s ease;
}
button:hover, .file-button:hover { transform: translateY(-1px); border-color: rgba(255, 202, 116, .55); filter: brightness(1.08); }
button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
button.primary { background: linear-gradient(180deg, #ff9c38, #bb481e); border-color: rgba(255, 202, 116, .6); color: #210b03; font-weight: 800; }
button.ghost { background: rgba(24, 13, 8, .64); }
button.accent { background: linear-gradient(180deg, #ffc368, #b45e1f); color: #231004; font-weight: 800; }
button.danger { background: linear-gradient(180deg, #b83b2f, #612017); border-color: rgba(255, 130, 95, .45); }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(20, 10, 5, .78);
  color: var(--text);
  padding: 11px 12px;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242, 139, 36, .16); }
label { color: var(--muted); font-size: 13px; display: grid; gap: 6px; }
.login-card {
  position: relative;
  width: min(460px, calc(100vw - 30px));
  margin: 10vh auto;
  padding: 34px;
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(72,38,21,.96), rgba(25,13,8,.96));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: center;
}
.brand-mark { font-size: 64px; filter: drop-shadow(0 10px 18px rgba(0,0,0,.45)); }
.login-card h1 { margin: 8px 0 6px; font-size: clamp(30px, 7vw, 46px); }
.login-card p { color: var(--muted); }
#loginForm { display: grid; gap: 12px; margin: 26px 0 10px; }
.hint { font-size: 13px; opacity: .9; }
.error { color: #ffb0a7; min-height: 22px; }
.app-shell { width: min(1440px, calc(100vw - 24px)); margin: 18px auto 60px; position: relative; }
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 22px;
  background: linear-gradient(140deg, rgba(67,35,18,.92), rgba(23,12,8,.92));
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.topbar h1 { margin: 0; font-size: clamp(28px, 5vw, 48px); letter-spacing: .4px; }

/* v1.9 sichtbarer GuitarLux-Header */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.topbar-with-header {
  padding: 18px 22px 20px;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 103, 44, .16), transparent 34%),
    radial-gradient(circle at 76% 22%, rgba(255, 103, 44, .12), transparent 28%),
    linear-gradient(140deg, rgba(54,20,14,.96), rgba(12,6,5,.98));
}
.topbar-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: 1 1 820px;
  max-width: 100%;
}
.brand-banner {
  width: min(100%, 980px);
  aspect-ratio: 3 / 1;
  min-height: 150px;
  border-radius: 18px;
  border: 1px solid rgba(255, 117, 57, .30);
  background:
    linear-gradient(90deg, rgba(10,3,3,.14) 0%, rgba(19,6,5,.03) 40%, rgba(10,3,3,.14) 100%),
    radial-gradient(circle at 50% 0%, rgba(255, 98, 38, .16), transparent 42%),
    url('/static/guitarlux_header_v18.png') center center / contain no-repeat,
    linear-gradient(140deg, rgba(11,4,4,.98), rgba(27,7,6,.98));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.04),
    inset 0 -24px 36px rgba(0,0,0,.18),
    0 18px 44px rgba(0,0,0,.30);
  position: relative;
  overflow: hidden;
}
.brand-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 100%, rgba(255, 88, 22, .10), transparent 30%),
    linear-gradient(90deg, rgba(0,0,0,.22), transparent 10%, transparent 90%, rgba(0,0,0,.22));
  pointer-events: none;
}
.brand-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(0,0,0,0) 28%, rgba(0,0,0,.16) 100%),
    linear-gradient(90deg, rgba(0,0,0,.06), transparent 16%, transparent 84%, rgba(0,0,0,.18));
  pointer-events: none;
}
.brand-banner-share {
  width: min(100%, 900px);
  min-height: 132px;
}
.topbar-with-header nav {
  align-items: center;
  margin-left: auto;
  padding-top: 10px;
}

.eyebrow { color: var(--gold); font-size: 13px; text-transform: uppercase; letter-spacing: 1.8px; }
.topbar nav { display: flex; gap: 10px; flex-wrap: wrap; }
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.panel-head, .editor-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.panel h2, .editor-top h2 { margin: 0 0 6px; font-size: clamp(24px, 4vw, 34px); }
.panel p, .editor-top p { margin: 0; color: var(--muted); }
.big-plus { font-size: 17px; padding: 14px 18px; }
.toolbar, .export-row, .editor-tools, .play-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.toolbar { margin-bottom: 14px; }
.toolbar input { min-width: min(520px, 100%); flex: 1; }
.toolbar select { width: auto; min-width: 160px; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 18px; }
table { width: 100%; border-collapse: collapse; min-width: 920px; }
th, td { padding: 13px 12px; border-bottom: 1px solid rgba(255, 186, 92, .14); text-align: left; }
th { color: var(--gold); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; background: rgba(16,8,4,.45); }
td { color: var(--text); }
tr:hover td { background: rgba(255, 168, 74, .05); }
tr.clickable-row { cursor: pointer; outline: none; }
tr.clickable-row:hover td,
tr.clickable-row:focus-visible td {
  background: linear-gradient(90deg, rgba(255, 122, 42, .16), rgba(255, 177, 93, .07));
  box-shadow: inset 0 1px rgba(255,255,255,.04), inset 0 -1px rgba(255,255,255,.03);
}
tr.clickable-row:hover td:first-child,
tr.clickable-row:focus-visible td:first-child { box-shadow: inset 4px 0 0 var(--accent); }
.action-cell { display: flex; gap: 7px; flex-wrap: wrap; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 18px; color: var(--muted); }
.meta-grid, .admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.admin-grid { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
.check { display: flex; align-items: center; flex-direction: row; gap: 10px; padding: 28px 0 0; }
.check input { width: auto; }
.audio-panel {
  background: linear-gradient(135deg, rgba(255,153,62,.12), rgba(0,0,0,.2));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px;
  margin-bottom: 15px;
}
.sliders { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)); gap: 12px; margin: 14px 0; }
.sliders input { padding: 0; accent-color: var(--accent); }
#visualizer {
  width: 100%;
  height: 80px;
  background: linear-gradient(180deg, rgba(22,10,4,.9), rgba(55,27,12,.85));
  border: 1px solid rgba(255, 186, 92, .18);
  border-radius: 15px;
  display: block;
}
.editor-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.tab-grid {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(16, 8, 4, .58);
  padding: 12px;
  margin: 14px 0;
}
.string-row {
  display: grid;
  grid-template-columns: 42px repeat(var(--steps), 34px);
  align-items: center;
  min-width: max-content;
}
.string-label {
  color: var(--gold);
  font-weight: 900;
  text-align: center;
  border-right: 2px solid var(--accent);
  padding-right: 8px;
}
.cell {
  width: 34px;
  height: 36px;
  border: 0;
  border-bottom: 2px solid rgba(255, 210, 142, .35);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  text-align: center;
  padding: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
}
.cell:focus { background: rgba(242, 139, 36, .14); border-bottom-color: var(--gold); box-shadow: none; }
.cell.bar { border-right: 2px solid rgba(242, 139, 36, .75); }
.notes-label { margin: 12px 0; }
.share-info { color: var(--gold); word-break: break-all; }
.autosave-status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  color: var(--muted);
  background: rgba(0,0,0,.18);
  font-size: 12px;
  font-weight: 800;
}
.autosave-status.saving { color: var(--gold); }
.autosave-status.saved { color: #b7ffbd; border-color: rgba(130,255,148,.32); }
.autosave-status.dirty { color: #ffd08a; }
.share-info a {
  display: inline-block;
  color: #1a0705;
  background: linear-gradient(180deg, var(--gold), var(--accent));
  border: 1px solid rgba(255, 215, 126, .72);
  border-radius: var(--radius-small);
  padding: 7px 10px;
  margin-left: 6px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0,0,0,.24);
}
.share-info a:hover { filter: brightness(1.08); text-decoration: none; }
.admin-note { margin-top: 18px; color: var(--muted); background: rgba(0,0,0,.18); border: 1px solid var(--line); padding: 14px; border-radius: 16px; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  background: #2a1308;
  color: var(--text);
  border: 1px solid var(--gold);
  border-radius: 16px;
  padding: 12px 18px;
  box-shadow: var(--shadow);
  z-index: 20;
}
code { color: var(--gold); }
@media (max-width: 780px) {
  .topbar, .panel-head, .editor-top { flex-direction: column; }
  .meta-grid, .admin-grid, .sliders { grid-template-columns: 1fr; }
  .toolbar select { width: 100%; }
  .topbar nav { width: 100%; }
  .topbar nav button { flex: 1; }
  .topbar-with-header { padding: 14px; gap: 12px; }
  .topbar-brand { flex-basis: 100%; }
  .brand-banner { width: 100%; min-height: 108px; }
  .brand-banner-share { min-height: 98px; }
}
@media print {
  body { background: white; color: black; }
  .wood-bg, .topbar, .audio-panel, .editor-tools, .export-row, .editor-actions, .notes-label textarea:placeholder-shown { display: none !important; }
  .app-shell, .panel { width: 100%; margin: 0; box-shadow: none; border: 0; background: white; color: black; }
  .cell, .string-label { color: black; border-color: #333; }
}

/* v1.3 Instrumente, Raster-Editor, Footer und Gitarren-Themes */
body.theme-studio {
  --bg: #160d08; --panel: rgba(44,25,15,.94); --panel-2: rgba(63,36,22,.92);
  --text: #fff1dc; --muted: #d6b995; --line: rgba(255,186,92,.24);
  --accent: #f28b24; --accent-2: #d04b24; --gold: #ffca74; --input: #21120b;
  --radius-panel: 28px; --radius-small: 14px;
}
body.theme-campfire {
  --bg: #24150c; --panel: rgba(86,52,31,.94); --panel-2: rgba(111,69,39,.9);
  --text: #fff7e9; --muted: #f0d2aa; --line: rgba(255,213,141,.32);
  --accent: #e79a45; --accent-2: #b96b33; --gold: #ffd58d; --input: #342013;
  --radius-panel: 34px; --radius-small: 18px;
}
body.theme-stage {
  --bg: #130708; --panel: rgba(43,14,15,.96); --panel-2: rgba(70,22,18,.92);
  --text: #ffeadd; --muted: #e2b09d; --line: rgba(255,101,54,.30);
  --accent: #ff5a2a; --accent-2: #a91918; --gold: #ffb15d; --input: #21090a;
  --radius-panel: 10px; --radius-small: 8px;
}
body.theme-classic {
  --bg: #120d07; --panel: rgba(50,37,22,.96); --panel-2: rgba(73,54,31,.92);
  --text: #fff5df; --muted: #d8c29a; --line: rgba(212,166,84,.34);
  --accent: #c98834; --accent-2: #8c4f1e; --gold: #e8c16d; --input: #21180d;
  --radius-panel: 4px; --radius-small: 4px;
}
body.theme-campfire { background: radial-gradient(circle at top left, #8b5631 0, #3b2313 42%, #140b07 100%); }
body.theme-stage { background: radial-gradient(circle at top left, #7a1c17 0, #26090b 42%, #080304 100%); }
body.theme-classic { background: radial-gradient(circle at top left, #6b4d24 0, #271b0e 42%, #0d0804 100%); }
body.theme-stage .wood-bg {
  opacity: .22;
  background: repeating-linear-gradient(90deg, rgba(255,74,28,.10) 0 3px, transparent 3px 36px), repeating-linear-gradient(0deg, rgba(0,0,0,.22) 0 4px, transparent 4px 24px);
}
body.theme-classic .wood-bg {
  opacity: .18;
  background: repeating-linear-gradient(90deg, rgba(232,193,109,.10) 0 2px, transparent 2px 48px), repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 3px, transparent 3px 30px);
}
.login-card, .topbar, .panel { border-radius: var(--radius-panel); }
button, .file-button, input, select, textarea, .audio-panel, #visualizer, .toast, .admin-note { border-radius: var(--radius-small); }
.meta-grid-v13 { grid-template-columns: repeat(3, minmax(170px, 1fr)); }
.page-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  color: var(--gold);
  background: rgba(0,0,0,.22);
  font-weight: 800;
}
.tab-grid {
  background:
    linear-gradient(180deg, rgba(255,255,255,.025), transparent),
    rgba(16, 8, 4, .66);
  padding: 14px;
}
.string-row {
  grid-template-columns: 48px repeat(var(--steps), 34px);
  margin-bottom: 2px;
}
.string-label {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 210, 142, .22);
  border-right: 2px solid var(--accent);
  background: rgba(0,0,0,.22);
  border-radius: 8px 0 0 8px;
  padding-right: 0;
}
.cell {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 210, 142, .22);
  border-left: 0;
  border-bottom: 1px solid rgba(255, 210, 142, .22);
  border-radius: 0;
  background: rgba(255,255,255,.025);
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  caret-color: var(--gold);
}
.cell:focus {
  background: rgba(242, 139, 36, .23);
  border-color: var(--gold);
  box-shadow: inset 0 0 0 2px rgba(255,202,116,.28);
}
.cell.bar { border-right: 2px solid rgba(242, 139, 36, .86); }
.site-footer {
  margin: 16px auto 0;
  padding: 14px 18px;
  text-align: center;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: rgba(0,0,0,.22);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.site-footer a { color: var(--gold); font-weight: 800; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
body.theme-stage .panel, body.theme-stage .topbar { box-shadow: 0 20px 70px rgba(90, 13, 8, .45); }
body.theme-classic .panel, body.theme-classic .topbar { box-shadow: 0 18px 50px rgba(0,0,0,.45); }
@media (max-width: 960px) { .meta-grid-v13 { grid-template-columns: repeat(2, minmax(160px, 1fr)); } }
@media (max-width: 620px) { .meta-grid-v13 { grid-template-columns: 1fr; } .string-row { grid-template-columns: 44px repeat(var(--steps), 32px); } .cell { width: 32px; } }
@media print { .site-footer { color: #111; border-color: #bbb; background: white; } }


/* v2.3 Akkordspur + Browser-Audio ohne externe Sound-Pakete */
.audio-renderer-hint {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}
.audio-renderer-hint.ok { color: var(--gold); }
.audio-renderer-hint.warn { color: #ffc0a8; }
.chord-panel {
  margin: 14px 0 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: linear-gradient(135deg, rgba(255, 90, 42, .12), rgba(0,0,0,.20));
}
.chord-panel-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.chord-panel-head b { color: var(--gold); margin-right: 8px; }
.chord-panel-head span { color: var(--muted); font-size: 13px; }
.chord-panel-head input { max-width: 220px; }
.chord-row {
  display: grid;
  grid-template-columns: 48px repeat(var(--bars), minmax(136px, 1fr));
  gap: 0;
  align-items: stretch;
  margin-bottom: 4px;
  min-width: max-content;
}
.chord-label {
  color: var(--gold);
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 210, 142, .22);
  border-right: 2px solid var(--accent);
  background: rgba(0,0,0,.28);
  border-radius: 8px 0 0 8px;
}
.chord-cell {
  min-width: 136px;
  height: 34px;
  border: 1px solid rgba(255, 210, 142, .24);
  border-left: 0;
  border-radius: 0;
  text-align: center;
  color: var(--gold);
  background: rgba(255,255,255,.035);
  font-weight: 900;
}
.chord-cell:focus {
  background: rgba(255, 90, 42, .19);
  border-color: var(--gold);
  box-shadow: inset 0 0 0 2px rgba(255,202,116,.24);
}
@media (max-width: 780px) {
  .chord-panel-head { align-items: stretch; }
  .chord-panel-head input, .chord-panel-head button { width: 100%; max-width: none; }
  .chord-row { grid-template-columns: 44px repeat(var(--bars), 126px); }
  .chord-cell { min-width: 126px; }
}
@media print {
  .chord-panel { display: none !important; }
  .chord-cell { color: black; border-color: #333; }
}

/* v2.5 Library, Papierkorb, Titelbild und Flat Design */
.bulk-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 12px 0 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: rgba(0,0,0,.18);
}
.bulk-toolbar .select-all { padding: 0; min-width: 210px; }
.bulk-info { color: var(--gold); font-weight: 800; }
.tab-thumb {
  display: inline-flex;
  width: 72px;
  height: 44px;
  object-fit: cover;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: rgba(0,0,0,.24);
  color: var(--gold);
  overflow: hidden;
}
.tab-thumb.empty { font-size: 20px; }
.cover-panel {
  display: grid;
  grid-template-columns: minmax(180px, 320px) 1fr;
  gap: 14px;
  align-items: center;
  margin: 0 0 15px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: rgba(0,0,0,.18);
}
.cover-preview {
  min-height: 118px;
  border: 1px solid rgba(255, 186, 92, .22);
  border-radius: var(--radius-small);
  background: linear-gradient(135deg, rgba(0,0,0,.28), rgba(255,90,42,.08));
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  font-weight: 800;
}
.cover-preview img {
  width: 100%;
  height: 100%;
  max-height: 180px;
  object-fit: cover;
  display: block;
}
.cover-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.share-cover-wrap {
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  overflow: hidden;
  background: rgba(0,0,0,.25);
  box-shadow: 0 16px 38px rgba(0,0,0,.22);
}
.share-cover-wrap img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
}
.play-toggle.danger {
  color: #fff1dc;
}
body.theme-flat {
  --bg: #15110e; --panel: rgba(30, 24, 20, .97); --panel-2: rgba(42, 33, 27, .94);
  --text: #fff2e6; --muted: #cdb8a6; --line: rgba(255, 139, 66, .26);
  --accent: #e7642a; --accent-2: #9e2f21; --gold: #ffb86b; --input: #15110e;
  --radius-panel: 6px; --radius-small: 4px;
  background: linear-gradient(135deg, #21130f 0, #14100e 46%, #0b0908 100%);
}
body.theme-flat .wood-bg {
  opacity: .08;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 1px, transparent 1px 44px);
}
body.theme-flat .topbar,
body.theme-flat .panel,
body.theme-flat .login-card {
  box-shadow: 0 14px 34px rgba(0,0,0,.34);
}
body.theme-flat button,
body.theme-flat .file-button,
body.theme-flat input,
body.theme-flat select,
body.theme-flat textarea,
body.theme-flat .audio-panel,
body.theme-flat .tab-grid,
body.theme-flat .bulk-toolbar,
body.theme-flat .cover-panel {
  box-shadow: none;
}
body.theme-flat .brand-banner {
  border-radius: 4px;
}
@media (max-width: 780px) {
  .cover-panel { grid-template-columns: 1fr; }
  .tab-thumb { width: 58px; height: 38px; }
  table { min-width: 1040px; }
}
@media print {
  .bulk-toolbar, .cover-panel { display: none !important; }
  .share-cover-wrap { border: 0; box-shadow: none; }
}


/* v2.7 gezielte Druckansicht: nur Tab-Blatt, keine Bedienoberfläche */
.print-sheet { display: none; }
.print-page {
  color: #111;
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.35;
}
.print-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  border-bottom: 2px solid #222;
  padding-bottom: 10px;
  margin-bottom: 12px;
}
.print-brand { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: #666; font-weight: 700; }
.print-head h1 { margin: 3px 0 0; font-size: 25px; color: #111; }
.print-cover { width: 110px; max-height: 82px; object-fit: cover; border: 1px solid #aaa; }
.print-meta { width: 100%; border-collapse: collapse; margin: 10px 0 12px; font-size: 12px; }
.print-meta th, .print-meta td { border: 1px solid #bbb; padding: 5px 7px; text-align: left; }
.print-meta th { width: 110px; background: #f1f1f1; color: #111; }
.print-section { margin: 12px 0; break-inside: avoid; }
.print-section h2 { font-size: 15px; margin: 0 0 6px; border-bottom: 1px solid #bbb; padding-bottom: 3px; color: #111; }
.print-chords { display: flex; flex-wrap: wrap; gap: 6px; }
.print-chords span { border: 1px solid #999; padding: 3px 7px; font-weight: 700; background: #f7f7f7; }
.print-tab-pre {
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 10.5px;
  line-height: 1.22;
  white-space: pre;
  overflow: visible;
  color: #111;
  background: #fff;
  border: 1px solid #ccc;
  padding: 7px;
  margin: 7px 0 10px;
  break-inside: avoid;
}
.print-notes { border: 1px solid #ccc; padding: 8px; white-space: normal; font-size: 12px; }
.print-footer { margin-top: 14px; padding-top: 6px; border-top: 1px solid #aaa; color: #555; font-size: 10px; text-align: center; }
@page { margin: 13mm; }
@media print {
  body.print-tab-active { background: #fff !important; color: #111 !important; }
  body.print-tab-active .wood-bg,
  body.print-tab-active .app-shell,
  body.print-tab-active .toast { display: none !important; }
  body.print-tab-active #printSheet { display: block !important; }
  body.print-tab-active * { box-shadow: none !important; text-shadow: none !important; }
}

/* v2.8 Komfort: Abschnitte, Undo/Redo, QR-Code, Drucklayouts */
.section-panel { margin: 12px 0; padding: 13px; border: 1px solid var(--line); border-radius: var(--radius-small); background: rgba(0,0,0,.16); }
.section-panel input[type="number"] { max-width: 120px; }
.section-row {
  display: grid;
  grid-template-columns: 48px repeat(var(--bars), minmax(92px, 1fr));
  min-width: max-content;
  margin-bottom: 4px;
}
.section-label {
  color: var(--gold);
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 210, 142, .22);
  border-right: 2px solid var(--accent);
  background: rgba(0,0,0,.26);
  border-radius: 8px 0 0 8px;
}
.section-cell {
  min-height: 34px;
  border-radius: 0;
  background: rgba(255, 177, 93, .10);
  color: var(--gold);
  border: 1px solid rgba(255, 210, 142, .22);
  border-left: 0;
  box-shadow: none;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  padding: 6px 8px;
}
button.section-cell.empty, .section-cell.empty { color: rgba(255, 202, 116, .48); font-weight: 600; }
.print-layout-select { width: auto; min-width: 170px; }
.share-qr { display: inline-grid; justify-items: center; gap: 4px; margin-left: 8px; vertical-align: middle; }
.share-qr img { width: 86px; height: 86px; padding: 5px; border-radius: 8px; background: #fff; border: 1px solid rgba(255, 202, 116, .45); }
.share-qr small { color: var(--muted); font-weight: 700; }
.print-layout-compact .print-cover { display: none; }
.print-layout-compact .print-page { font-size: 10px; }
.print-layout-compact .print-tab-pre { font-size: 8.8px; line-height: 1.12; margin: 5px 0; }
.print-layout-compact .print-section { margin: 7px 0; }
.print-layout-large .print-page { font-size: 13px; }
.print-layout-large .print-tab-pre { font-size: 12px; line-height: 1.32; }
.print-layout-no-cover .print-cover { display: none; }
@media print {
  .print-layout-compact .print-tab-pre { font-size: 8.8px; }
  .print-layout-large .print-tab-pre { font-size: 12px; }
}
.print-page.print-layout-compact { font-size: 10px; }
.print-page.print-layout-large { font-size: 13px; }
.print-page.print-layout-no-cover .print-cover { display: none; }

/* v3.0 Public Release & Practice Pack */
.inline-check { width: auto; display: inline-flex; min-width: 130px; padding: 0; }
.favorite-check { align-items: center; padding-top: 28px; }
.favorite-star { color: var(--gold); font-size: 20px; text-align: center; font-weight: 900; }
.difficulty-badge { display: inline-block; padding: 4px 8px; border: 1px solid var(--line); border-radius: var(--radius-small); color: var(--gold); background: rgba(0,0,0,.18); font-size: 12px; font-weight: 800; }
.practice-panel { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin: 12px 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-small); background: rgba(0,0,0,.16); }
.practice-panel label { min-width: 110px; }
.practice-panel input[type="number"] { width: 90px; }
.admin-comments-panel, .comments-panel { margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-small); background: rgba(0,0,0,.16); }
.compact-head { margin-bottom: 10px; }
.comments-list { display: grid; gap: 10px; margin-top: 12px; }
.comment-card { border: 1px solid var(--line); border-radius: var(--radius-small); background: rgba(0,0,0,.18); padding: 12px; }
.comment-card p { margin: 8px 0; color: var(--text); }
.comment-card small { color: var(--muted); }
.comment-card details { margin-top: 8px; }
.comment-card details input, .comment-card details textarea { margin: 6px 0; }
.stars { color: var(--gold); letter-spacing: 1px; font-weight: 900; }
.comment-form { display: grid; gap: 10px; margin-top: 12px; }
.comment-form textarea { min-height: 100px; }
.rating-summary { color: var(--gold); font-weight: 800; }
.toolbar #categoryFilter, .toolbar #tagFilter { min-width: 150px; flex: 0 1 180px; }
.clickable-row:hover td { background: rgba(255, 177, 93, .11) !important; outline-color: var(--gold); }
.clickable-row:focus-within td, .clickable-row:focus td { background: rgba(255, 177, 93, .14) !important; }


/* v3.1 Final Feature Pack */
.nav-link.ghost { text-decoration: none; display: inline-flex; align-items: center; border: 1px solid var(--line); color: var(--text); background: rgba(24, 13, 8, .64); padding: 10px 14px; border-radius: var(--radius-small); }
.learning-panel, .chord-diagram-preview { margin: 12px 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-small); background: rgba(0,0,0,.16); }
.learning-panel { display: grid; grid-template-columns: repeat(3, minmax(160px, 1fr)); gap: 12px; }
.learning-panel h3 { grid-column: 1 / -1; margin: 0; color: var(--gold); }
.chord-diagram-card { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.mini-fretboard { display: flex; gap: 5px; align-items: stretch; }
.mini-string { min-width: 38px; display: grid; gap: 4px; justify-items: center; padding: 7px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.04); }
.mini-string span { color: var(--muted); font-size: 11px; }
.mini-string strong { color: var(--gold); font-size: 18px; }
#shareExpireSelect, #chordLibrarySelect { width: auto; min-width: 150px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.gallery-card { border: 1px solid var(--line); border-radius: var(--radius-small); background: rgba(0,0,0,.18); padding: 12px; color: var(--text); text-decoration: none; display: grid; gap: 8px; }
.gallery-card:hover { transform: translateY(-1px); border-color: var(--gold); filter: brightness(1.08); }
.gallery-card img { width: 100%; height: 135px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.gallery-card .placeholder { height: 135px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; font-size: 48px; background: rgba(0,0,0,.20); }
@media (max-width: 780px) { .learning-panel { grid-template-columns: 1fr; } }
@media print { .learning-panel, .chord-diagram-preview { border-color: #bbb; background: #fff; } }


/* v3.2 UI Cleanup & Admin Reorganization */
.editor-tools-v32 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  align-items: stretch;
  margin: 14px 0;
}
.tool-group {
  border: 1px solid var(--line);
  background: rgba(0,0,0,.18);
  border-radius: var(--radius-small);
  padding: 10px;
  min-width: 0;
}
.tool-title {
  color: var(--gold);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  font-weight: 900;
}
.tool-buttons { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tool-buttons button, .tool-buttons select { min-height: 38px; }
.tool-group-share { grid-column: span 2; }
.autosave-tool { justify-content: center; }
.soft-action { background: linear-gradient(180deg, rgba(255,177,93,.22), rgba(0,0,0,.18)); }
.soft-accent { background: linear-gradient(180deg, #ffb15d, #a91918); color: #210b03; font-weight: 900; }
.soft-danger { background: linear-gradient(180deg, rgba(184,59,47,.75), rgba(70,18,14,.8)); border-color: rgba(255,130,95,.45); }
.share-link-clean { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.share-link-clean a { color: #1a0705; background: linear-gradient(180deg, var(--gold), var(--accent)); padding: 7px 10px; border-radius: var(--radius-small); font-weight: 900; text-decoration: none; }
.share-qr { display: none !important; }

.admin-panel-v32 .panel-head { margin-bottom: 12px; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 18px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.admin-tab { background: rgba(0,0,0,.22); border-radius: var(--radius-small); padding: 10px 12px; }
.admin-tab.active { background: linear-gradient(180deg, var(--gold), var(--accent)); color: #210b03; font-weight: 900; }
.admin-tab-panel { display: none; border: 1px solid var(--line); border-radius: var(--radius-small); padding: 16px; background: rgba(0,0,0,.13); }
.admin-tab-panel.active { display: block; }
.admin-tab-panel h3 { margin-top: 0; color: var(--gold); }
.admin-grid-clean { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.admin-actions-row { margin-top: 12px; }
.comment-admin-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0; }
.comment-admin-toolbar select { max-width: 240px; }
.admin-comments-list { max-height: 620px; overflow: auto; padding-right: 4px; }
.admin-comment-card, .public-comment-card { display: grid; gap: 8px; }
.comment-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.comment-status { display: inline-flex; border-radius: 999px; padding: 3px 8px; font-size: 12px; font-weight: 900; }
.comment-status.approved { background: rgba(84, 214, 122, .18); color: #b6ffc9; border: 1px solid rgba(84,214,122,.35); }
.comment-status.pending { background: rgba(255, 177, 93, .15); color: var(--gold); border: 1px solid rgba(255,177,93,.35); }
.comment-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.comments-panel-v32 { margin-top: 22px; }
.comments-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 12px; }
.rating-summary { color: var(--muted); }
.rating-badge { display: inline-flex; align-items: center; gap: 4px; color: #1a0705; background: linear-gradient(180deg, var(--gold), var(--accent)); border-radius: 999px; padding: 4px 10px; font-weight: 900; }
.comments-list-public { margin-bottom: 18px; }
.comment-form-v32 { max-width: 760px; margin: 20px auto 0; border: 1px solid var(--line); background: rgba(0,0,0,.13); padding: 14px; border-radius: var(--radius-small); }
.comment-form-v32 h3 { margin: 0 0 12px; color: var(--gold); }
.comment-form-row { display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: 10px; }
.comment-form-v32 textarea { width: 100%; min-height: 110px; }
.comment-submit-row { display: flex; justify-content: flex-end; }
.rating-picker { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--muted); }
.rating-picker button { padding: 6px 8px; font-size: 22px; line-height: 1; background: rgba(0,0,0,.24); color: rgba(255,255,255,.35); border-color: rgba(255,255,255,.12); box-shadow: none; }
.rating-picker button:hover, .rating-picker button.active { color: var(--gold); transform: translateY(-2px) scale(1.08); text-shadow: 0 0 14px rgba(255,177,93,.5); border-color: rgba(255,177,93,.55); }
.rating-picker .rating-clear { font-size: 13px; color: var(--muted); transform: none; }
.fancy-stars, .stars { color: var(--gold); letter-spacing: 1px; text-shadow: 0 0 10px rgba(255,177,93,.28); }
.comment-edit-box { border-top: 1px solid var(--line); padding-top: 8px; }

@media (max-width: 780px) {
  .tool-group-share { grid-column: auto; }
  .comment-form-row { grid-template-columns: 1fr; }
  .comment-card-head { flex-direction: column; }
}
@media print {
  .admin-tabs, .admin-tab-panel, .comments-panel-v32 { display: none !important; }
}


/* v3.3 A4 Papier-/Tab-Vorlagen */
.templates-panel .panel-head { align-items: center; }
.template-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: rgba(0,0,0,.13);
  margin-bottom: 12px;
}
.template-actions { margin: 10px 0 14px; }
.template-preview {
  background: #f6f0e6;
  color: #111;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  padding: 16px;
  overflow: auto;
}
.template-preview .template-print-page {
  width: min(920px, 100%);
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.template-print-page { padding: 0; }
.template-print-head h1 { font-size: 23px; }
.template-print-mark { font-size: 36px; color: #444; }
.template-grid-sheet { display: grid; gap: 8px; }
.tpl-system { break-inside: avoid; border: 1px solid #333; padding: 6px; background: #fff; }
.tpl-system-head {
  display: grid;
  grid-template-columns: 1.3fr .8fr .7fr;
  gap: 8px;
  font-size: 10px;
  color: #111;
  margin-bottom: 4px;
}
.tpl-chord-row, .tpl-string-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: stretch;
}
.tpl-chord-label, .tpl-string-label {
  border: 1px solid #555;
  border-right: 0;
  min-height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  background: #f1f1f1;
  font-size: 11px;
}
.tpl-chord-cells {
  display: grid;
  grid-template-columns: repeat(var(--tpl-bars, 4), 1fr);
}
.tpl-chord-cell {
  border: 1px solid #555;
  min-height: 22px;
  font-size: 9px;
  color: #777;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tpl-cell-row {
  display: grid;
  grid-template-columns: repeat(var(--tpl-cells, 16), 1fr);
}
.tpl-cell {
  min-height: 23px;
  border: 1px solid #555;
  border-left: 0;
  background: #fff;
}
.tpl-cell.tpl-bar { border-right: 2px solid #111; }
.tpl-notes { margin-top: 8px; border: 1px solid #333; padding: 6px; font-size: 11px; background: #fff; }
.tpl-notes div { height: 44px; border-top: 1px dashed #999; margin-top: 6px; }
.template-meta { font-size: 11px; }
.template-print-page { --tpl-bars: 4; --tpl-cells: 16; }
@media print {
  body.print-template-active .template-print-page { width: 100%; }
  body.print-template-active .tpl-system { padding: 5px; }
  body.print-template-active .tpl-cell { min-height: 20px; }
  body.print-template-active .print-footer { margin-top: 8px; }
}
@media (max-width: 780px) {
  .tpl-system-head { grid-template-columns: 1fr; }
  .tpl-chord-row, .tpl-string-row { grid-template-columns: 40px 1fr; }
}


/* v3.4 Editor-Playback-Polish */
.audio-panel {
  margin-top: 16px;
  margin-bottom: 18px;
}
.tab-grid .playhead-step,
.cell.playhead-step,
.chord-cell.playhead-step,
.section-cell.playhead-step {
  background: rgba(255, 184, 72, .28) !important;
  box-shadow: inset 3px 0 0 var(--gold), inset -1px 0 0 rgba(255,255,255,.16), 0 0 18px rgba(255, 122, 42, .22) !important;
  border-color: rgba(255, 202, 116, .82) !important;
}
.cell.playhead-step {
  color: #fff8de;
}
.tool-group .soft-action,
.tool-group .soft-danger,
.tool-group .soft-accent {
  white-space: nowrap;
}


/* v3.5 Spieltechnik-Symbolleiste */
.technique-panel {
  margin: 14px 0 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: linear-gradient(135deg, rgba(255, 145, 55, .10), rgba(0,0,0,.20));
}
.technique-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.technique-panel-head b { color: var(--gold); }
.technique-panel-head span,
.technique-hint { color: var(--muted); font-size: 13px; }
.technique-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.technique-toolbar button {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: var(--radius-small);
  background: rgba(0,0,0,.26);
  border-color: rgba(255, 186, 92, .24);
  font-weight: 800;
}
.technique-toolbar button:hover {
  background: linear-gradient(180deg, rgba(255, 190, 95, .26), rgba(130, 42, 18, .28));
  border-color: rgba(255, 202, 116, .66);
}
.technique-hint { margin-top: 8px; }
.cell-tech-v35 {
  font-weight: 900;
  letter-spacing: .3px;
}
.cell-tech-v35[value="h"], .cell-tech-v35[value="p"], .cell-tech-v35[value="/"], .cell-tech-v35[value="\\"],
.cell-tech-v35[value="b"], .cell-tech-v35[value="r"], .cell-tech-v35[value="~"], .cell-tech-v35[value="PM"],
.cell-tech-v35[value="x"], .cell-tech-v35[value="()"], .cell-tech-v35[value="-"] {
  color: var(--gold);
  background: rgba(255, 184, 72, .10);
}
@media print {
  .technique-panel { display: none !important; }
}


/* v3.6 Akkord-Spannen + echte vertikale Abspiellinie */
.tab-grid {
  position: relative;
  overflow: auto;
  scrollbar-gutter: stable both-edges;
}
.chord-row.chord-row-v36 {
  grid-template-columns: 48px repeat(var(--steps), 34px);
  min-width: max-content;
}
.chord-row-v36 .chord-label {
  grid-column: 1;
  grid-row: 1;
}
.chord-row-v36 .chord-cell {
  width: auto;
  min-width: 34px;
  padding: 0 6px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chord-span-label {
  width: auto;
  min-width: 130px;
  max-width: 170px;
  color: var(--muted);
  font-size: 12px;
}
.chord-span-label select { min-width: 128px; }
.playhead-line-v36 {
  position: absolute;
  top: 0;
  width: 3px;
  min-height: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,.85), var(--gold), var(--accent));
  box-shadow: 0 0 0 1px rgba(0,0,0,.35), 0 0 18px rgba(255, 129, 43, .75);
  pointer-events: none;
  z-index: 8;
  border-radius: 3px;
  display: none;
}
body.theme-flat .playhead-line-v36 { box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 0 10px rgba(255, 184, 72, .45); }
@media (max-width: 780px) {
  .chord-row.chord-row-v36 { grid-template-columns: 44px repeat(var(--steps), 32px); }
  .chord-span-label { width: 100%; max-width: none; }
}
@media print { .playhead-line-v36 { display: none !important; } }


/* v3.8 Editor-Layout: Titelbild oben, Tab zuerst, Technik direkt darunter */
.editor-cover-hero {
  margin: 0 0 18px;
  grid-template-columns: minmax(260px, 430px) 1fr;
  align-items: stretch;
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 122, 42, .16), transparent 34%),
    linear-gradient(135deg, rgba(0,0,0,.30), rgba(255,90,42,.08));
}
.editor-cover-hero .cover-preview {
  min-height: clamp(130px, 18vw, 210px);
  background:
    linear-gradient(135deg, rgba(0,0,0,.38), rgba(255,90,42,.10)),
    radial-gradient(circle at center, rgba(255, 186, 92, .10), transparent 55%);
}
.editor-cover-hero .cover-preview img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  background: rgba(0,0,0,.28);
}
.editor-cover-hero .cover-actions {
  align-content: center;
  padding: 8px 0;
}
.editor-workflow-v38 {
  margin: 16px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background:
    linear-gradient(180deg, rgba(255,255,255,.025), transparent),
    rgba(0,0,0,.16);
}
.editor-workflow-v38 .workflow-title {
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
  margin: 0 0 10px;
}
.editor-workflow-v38 .tab-grid {
  margin: 0 0 10px;
}
.editor-workflow-v38 .technique-panel {
  margin: 10px 0 12px;
}
.editor-workflow-v38 .audio-panel {
  margin: 12px 0;
}
.editor-workflow-v38 .chord-panel,
.editor-workflow-v38 .section-panel {
  margin-top: 12px;
}
.editor-workflow-v38 .chord-panel-head {
  align-items: end;
}
@media (max-width: 780px) {
  .editor-cover-hero { grid-template-columns: 1fr; }
  .editor-cover-hero .cover-preview { min-height: 150px; }
}
@media print {
  .editor-cover-hero { display: none !important; }
}


/* v3.9 Editor-Layout: Technik oben, Teilen/Status unten, sichtbare Abspiellinie */
.editor-workflow-v38 .technique-panel {
  margin: 0 0 12px;
}
.editor-workflow-v38 .tab-grid {
  margin: 0 0 12px;
}
.editor-bottom-tools-v39 {
  margin: 14px 0 16px;
  display: grid;
  grid-template-columns: minmax(320px, 2fr) minmax(220px, 1fr);
  gap: 12px;
  align-items: stretch;
}
.editor-bottom-tools-v39 .tool-group {
  min-height: 92px;
  width: 100%;
}
.editor-bottom-tools-v39 .tool-group-share-bottom {
  grid-column: auto;
}
.editor-bottom-tools-v39 .share-info {
  display: block;
  margin-top: 8px;
  max-width: 100%;
}
.editor-bottom-tools-v39 .share-link-clean {
  width: 100%;
}
.autosave-tool-bottom .autosave-status {
  width: 100%;
  justify-content: center;
  text-align: center;
}
.tab-grid.is-playing-v39 {
  outline: 1px solid rgba(255, 202, 116, .24);
  box-shadow: inset 0 0 0 1px rgba(255, 202, 116, .08), 0 0 22px rgba(255, 91, 42, .12);
}
.playhead-line-v36.playhead-line-v39 {
  width: 5px !important;
  min-height: 0 !important;
  background: linear-gradient(180deg, #fff7d0 0%, var(--gold) 45%, var(--accent) 100%) !important;
  box-shadow:
    0 0 0 1px rgba(0,0,0,.45),
    0 0 20px rgba(255, 184, 72, .85),
    0 0 44px rgba(255, 91, 42, .45) !important;
  opacity: .98;
  z-index: 30;
  transform: translateX(-2px);
}
.cell.playhead-step {
  outline: 2px solid rgba(255, 248, 210, .55);
  outline-offset: -2px;
}
@media (max-width: 780px) {
  .editor-bottom-tools-v39 { grid-template-columns: 1fr; }
}
@media print {
  .editor-bottom-tools-v39 { display: none !important; }
}

/* v3.14 Admin-Speicherleiste immer sichtbar unter den Admin-Tabs */
.admin-global-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: rgba(0,0,0,.18);
}
.admin-global-actions .primary { min-width: 170px; }


/* v3.16 Rock Studio Pro Design Pack
   Dark premium rock-stage / Mac-style studio UI. Pure CSS/HTML polish, no function changes. */
:root {
  --studio-red: #ff3b22;
  --studio-orange: #ff8a2a;
  --studio-amber: #ffbd6b;
  --studio-charcoal: #09090c;
  --studio-panel: rgba(12, 13, 16, .84);
  --studio-panel-strong: rgba(18, 18, 22, .93);
  --studio-border: rgba(255, 105, 42, .28);
  --studio-soft-border: rgba(255, 210, 158, .13);
}
body.theme-stage {
  --bg: #07070a;
  --panel: rgba(13, 14, 18, .92);
  --panel-2: rgba(20, 19, 23, .91);
  --text: #f8efe7;
  --muted: #baa99d;
  --line: rgba(255, 107, 47, .22);
  --accent: #ff4f25;
  --accent-2: #b31414;
  --gold: #ffb85f;
  --danger: #bb2525;
  --input: rgba(5, 6, 9, .78);
  --radius-panel: 18px;
  --radius-small: 10px;
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 82, 29, .22), transparent 26%),
    radial-gradient(circle at 76% 0%, rgba(255, 141, 43, .15), transparent 24%),
    radial-gradient(circle at 50% 72%, rgba(168, 21, 15, .10), transparent 42%),
    linear-gradient(145deg, #07070a 0%, #101014 46%, #080709 100%);
}
body.theme-stage::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    linear-gradient(115deg, transparent 0 32%, rgba(255, 76, 24, .07) 38%, transparent 44% 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 1px, transparent 1px 68px),
    radial-gradient(ellipse at 50% 0%, rgba(255, 92, 22, .11), transparent 55%);
  animation: gtStageGlow 12s ease-in-out infinite alternate;
}
body.theme-stage .wood-bg {
  opacity: .20;
  background:
    repeating-linear-gradient(90deg, rgba(255, 82, 24, .065) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 34px),
    radial-gradient(circle at 20% 20%, rgba(255, 112, 44, .12), transparent 34%);
  mix-blend-mode: screen;
}
@keyframes gtStageGlow {
  from { filter: saturate(.92) brightness(.92); opacity: .72; }
  to { filter: saturate(1.18) brightness(1.08); opacity: 1; }
}

body.theme-stage .app-shell {
  width: min(1760px, calc(100vw - 30px));
  margin-top: 16px;
}
body.theme-stage .topbar {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border-color: rgba(255, 111, 45, .25);
  background:
    linear-gradient(180deg, rgba(22,23,28,.94), rgba(7,8,11,.92)),
    radial-gradient(circle at 17% 0%, rgba(255, 81, 24, .20), transparent 36%);
  box-shadow:
    0 24px 80px rgba(0,0,0,.46),
    0 0 0 1px rgba(255,255,255,.035) inset,
    0 -1px 0 rgba(255, 126, 50, .18) inset;
}
body.theme-stage .topbar::after {
  content: '';
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 78, 29, .88), rgba(255, 179, 95, .56), transparent);
}
body.theme-stage .brand-banner {
  min-height: 116px;
  max-height: 150px;
  border-radius: 16px;
  border-color: rgba(255, 116, 45, .28);
  background:
    linear-gradient(90deg, rgba(7,7,10,.08), rgba(7,7,10,.00) 44%, rgba(7,7,10,.18)),
    url('/static/guitarlux_header_v18.png') center center / contain no-repeat,
    linear-gradient(125deg, rgba(9,9,13,.95), rgba(31,12,9,.92));
  box-shadow:
    0 18px 60px rgba(0,0,0,.34),
    0 0 42px rgba(255, 83, 29, .13),
    inset 0 0 0 1px rgba(255,255,255,.04);
}
body.theme-stage .topbar nav {
  gap: 8px;
  align-items: center;
  background: rgba(0,0,0,.16);
  border: 1px solid rgba(255,255,255,.055);
  border-radius: 16px;
  padding: 7px;
  backdrop-filter: blur(10px);
}
.nav-pill,
body.theme-stage .nav-link.ghost {
  position: relative;
  border-radius: 12px;
  min-height: 42px;
  padding-inline: 15px;
  letter-spacing: .01em;
}
body.theme-stage .nav-pill:hover,
body.theme-stage .nav-link.ghost:hover,
body.theme-stage #navList:not(.danger):hover,
body.theme-stage #navAdmin:not(.danger):hover,
body.theme-stage #navTemplates:not(.danger):hover {
  background: linear-gradient(180deg, rgba(255, 82, 29, .18), rgba(255, 82, 29, .055));
  box-shadow: 0 0 0 1px rgba(255, 110, 45, .22) inset, 0 0 22px rgba(255, 71, 30, .11);
}
body.theme-stage button.primary,
body.theme-stage button.accent,
body.theme-stage .file-button {
  border-color: rgba(255, 133, 61, .54);
  background: linear-gradient(180deg, #ff9a36 0%, #f14b20 48%, #8a1717 100%);
  color: #1b0702;
  font-weight: 900;
  text-shadow: 0 1px rgba(255,255,255,.28);
}
body.theme-stage button.primary:hover,
body.theme-stage button.accent:hover,
body.theme-stage .file-button:hover {
  box-shadow: 0 0 28px rgba(255, 88, 28, .24), inset 0 1px rgba(255,255,255,.22);
}

.studio-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(300px, 1.15fr) minmax(170px, .75fr);
  gap: 18px;
  align-items: stretch;
  min-height: 178px;
  margin: 0 0 16px;
  padding: 22px clamp(18px, 3vw, 34px);
  border: 1px solid rgba(255, 111, 45, .22);
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(5,5,8,.80), rgba(9,9,12,.45) 42%, rgba(8,7,9,.84)),
    radial-gradient(circle at 52% 4%, rgba(255, 109, 36, .22), transparent 30%),
    radial-gradient(circle at 92% 42%, rgba(255, 145, 57, .17), transparent 34%),
    linear-gradient(135deg, rgba(20,20,25,.94), rgba(8,8,11,.94));
  box-shadow: 0 26px 80px rgba(0,0,0,.38), inset 0 0 0 1px rgba(255,255,255,.035);
}
.studio-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 48% 96%, rgba(255, 83, 26, .18), transparent 34%),
    linear-gradient(105deg, transparent 0 20%, rgba(255, 109, 36, .10) 35%, transparent 50% 100%);
  pointer-events: none;
}
.hero-riff,
.hero-studio-gear,
.hero-copy { position: relative; z-index: 1; }
.hero-riff {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.055);
  background:
    linear-gradient(130deg, rgba(0,0,0,.70), rgba(0,0,0,.25)),
    radial-gradient(circle at 32% 35%, rgba(255, 117, 46, .24), transparent 32%),
    repeating-linear-gradient(158deg, transparent 0 24px, rgba(255,255,255,.08) 25px 26px, transparent 27px 48px);
  box-shadow: inset 0 0 36px rgba(0,0,0,.46);
}
.hero-riff::after {
  content: '♬';
  position: absolute;
  right: 18px;
  bottom: 8px;
  font-size: 82px;
  color: rgba(255, 104, 36, .18);
  transform: rotate(-12deg);
}
.hero-copy { display: grid; align-content: center; text-align: center; }
.hero-kicker {
  color: var(--studio-orange);
  letter-spacing: .38em;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.hero-copy h2 {
  margin: 5px 0 0;
  font-size: clamp(36px, 5vw, 72px);
  line-height: .95;
  letter-spacing: -.055em;
  color: #f4ede8;
  text-shadow: 0 0 34px rgba(255, 83, 31, .16), 0 4px 20px rgba(0,0,0,.60);
}
.hero-copy p {
  margin: 10px auto 0;
  max-width: 680px;
  color: #ddc2b1;
  font-size: clamp(14px, 1.4vw, 18px);
}
.hero-studio-gear {
  min-height: 126px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 38% 34%, rgba(255, 131, 47, .22), transparent 28%),
    linear-gradient(145deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid rgba(255,255,255,.055);
}
.gear-mic, .gear-headphones, .gear-wave { position: absolute; display: block; }
.gear-mic {
  width: 44px; height: 98px; left: 20%; top: 18px; border-radius: 24px 24px 18px 18px;
  background: linear-gradient(90deg, #5e4632, #e0b684, #4a3328);
  box-shadow: 0 0 34px rgba(255, 129, 47, .22);
}
.gear-mic::before { content: ''; position: absolute; inset: 12px 9px; border-left: 2px solid rgba(0,0,0,.32); border-right: 2px solid rgba(0,0,0,.32); }
.gear-headphones {
  width: 118px; height: 96px; right: 12%; top: 18px; border: 11px solid rgba(255, 182, 100, .48); border-bottom: 0; border-radius: 72px 72px 12px 12px;
}
.gear-headphones::before, .gear-headphones::after { content:''; position:absolute; bottom:-34px; width:28px; height:48px; border-radius:12px; background: linear-gradient(180deg, #39231b, #0e0e12); border: 1px solid rgba(255,255,255,.08); }
.gear-headphones::before { left: -16px; } .gear-headphones::after { right: -16px; }
.gear-wave {
  left: 18px; right: 18px; bottom: 20px; height: 30px;
  background: repeating-linear-gradient(90deg, rgba(255, 87, 28, .0) 0 8px, rgba(255, 87, 28, .75) 9px 11px, rgba(255, 183, 96, .35) 12px 13px, transparent 14px 22px);
  opacity: .58;
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
}

body.theme-stage .panel,
body.theme-stage .login-card,
body.theme-stage .admin-tab-panel,
body.theme-stage .tool-group,
body.theme-stage .audio-panel,
body.theme-stage .cover-panel,
body.theme-stage .technique-panel,
body.theme-stage .template-preview,
body.theme-stage .public-comment-section {
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012)),
    rgba(12, 13, 17, .90);
  border-color: rgba(255, 105, 42, .22);
  box-shadow: 0 20px 70px rgba(0,0,0,.34), inset 0 0 0 1px rgba(255,255,255,.03);
}
body.theme-stage .panel-head,
body.theme-stage .editor-top {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 116, 45, .16);
}
body.theme-stage h2,
body.theme-stage h3,
body.theme-stage .workflow-title,
body.theme-stage .tool-title {
  color: #fff2e6;
  text-shadow: 0 0 18px rgba(255, 83, 29, .13);
}
body.theme-stage input,
body.theme-stage select,
body.theme-stage textarea {
  border-color: rgba(255, 126, 56, .20);
  background: rgba(5, 6, 9, .76);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
}
body.theme-stage input:focus,
body.theme-stage select:focus,
body.theme-stage textarea:focus {
  border-color: rgba(255, 159, 78, .75);
  box-shadow: 0 0 0 3px rgba(255, 76, 31, .15), 0 0 28px rgba(255, 92, 34, .10);
}
body.theme-stage .table-wrap {
  border-color: rgba(255, 94, 37, .20);
  background: rgba(0,0,0,.20);
  box-shadow: inset 0 0 28px rgba(0,0,0,.20);
}
body.theme-stage th {
  color: #ffb765;
  background: linear-gradient(180deg, rgba(255, 93, 28, .12), rgba(0,0,0,.28));
}
body.theme-stage tr.clickable-row:hover td,
body.theme-stage tr.clickable-row:focus-visible td {
  background: linear-gradient(90deg, rgba(255, 83, 29, .20), rgba(255, 181, 94, .07));
}
body.theme-stage .tab-grid {
  border-color: rgba(255, 113, 51, .23);
  background:
    linear-gradient(180deg, rgba(255,255,255,.026), transparent),
    radial-gradient(circle at 50% 0%, rgba(255, 81, 25, .08), transparent 35%),
    rgba(4, 5, 7, .74);
  box-shadow: inset 0 0 42px rgba(0,0,0,.36), 0 16px 50px rgba(0,0,0,.26);
}
body.theme-stage .string-label {
  color: #ffb865;
  background: linear-gradient(180deg, rgba(255, 85, 27, .15), rgba(0,0,0,.30));
}
body.theme-stage .cell {
  border-color: rgba(255, 213, 154, .18);
  background: rgba(255,255,255,.018);
}
body.theme-stage .cell:focus {
  background: rgba(255, 84, 30, .22);
  border-color: rgba(255, 180, 98, .72);
  box-shadow: inset 0 0 0 2px rgba(255, 180, 98, .24), 0 0 18px rgba(255, 73, 26, .14);
}
body.theme-stage .playhead-line-v36,
body.theme-stage .playhead-line-v39 {
  background: linear-gradient(180deg, transparent, #ff3d24 15%, #ffbb62 50%, #ff3d24 84%, transparent);
  box-shadow: 0 0 18px rgba(255, 66, 27, .78), 0 0 34px rgba(255, 183, 96, .38);
}
body.theme-stage .play-controls .primary,
body.theme-stage #playBtn.primary {
  border-radius: 999px;
  position: relative;
  min-width: 132px;
  box-shadow: 0 0 0 7px rgba(255, 75, 28, .06), 0 0 38px rgba(255, 81, 27, .25);
}
body.theme-stage #playBtn.primary::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 104, 44, .20);
  animation: gtPulse 2.3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes gtPulse {
  0%,100% { transform: scale(.97); opacity: .38; }
  50% { transform: scale(1.06); opacity: .85; }
}
body.theme-stage #visualizer {
  border-color: rgba(255, 94, 37, .20);
  background:
    linear-gradient(180deg, rgba(255, 88, 25, .10), rgba(255, 88, 25, .02)),
    repeating-linear-gradient(90deg, rgba(255, 91, 31, .18) 0 2px, transparent 2px 18px),
    rgba(0,0,0,.42);
}
body.theme-stage .site-footer {
  background: rgba(4,5,7,.68);
  border-color: rgba(255, 111, 45, .18);
}
body.theme-stage .toast {
  background: linear-gradient(180deg, rgba(40,15,9,.96), rgba(9,9,12,.96));
  border-color: rgba(255, 176, 94, .58);
  box-shadow: 0 18px 70px rgba(0,0,0,.50), 0 0 34px rgba(255, 75, 28, .18);
}
body.theme-stage .comment-card,
body.theme-stage .admin-comment-card,
body.theme-stage .gallery-card,
body.theme-stage .template-card,
body.theme-stage .chord-card {
  background: linear-gradient(180deg, rgba(255,255,255,.042), rgba(255,255,255,.014)), rgba(9,10,13,.78);
  border-color: rgba(255, 103, 45, .18);
}
@media (max-width: 1050px) {
  .studio-hero { grid-template-columns: 1fr; text-align: center; }
  .hero-riff, .hero-studio-gear { min-height: 92px; }
}
@media (max-width: 780px) {
  body.theme-stage .topbar nav { width: 100%; justify-content: center; }
  .studio-hero { min-height: auto; padding: 16px; }
  .hero-copy h2 { font-size: clamp(32px, 12vw, 54px); }
}
@media (prefers-reduced-motion: reduce) {
  body.theme-stage::before,
  body.theme-stage #playBtn.primary::after { animation: none !important; }
}


/* v3.17 Rock Studio Header Rebuild */
.studio-header-rebuild {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 18px;
  margin-bottom: 18px;
}
.hero-slab {
  position: relative;
  border-radius: 28px;
  border: 1px solid rgba(255, 181, 104, .22);
  background: linear-gradient(145deg, rgba(48,26,16,.92), rgba(18,10,7,.94));
  box-shadow: 0 16px 42px rgba(0,0,0,.26);
  overflow: hidden;
}
.hero-slab::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 0% 0%, rgba(255, 129, 59, .16), transparent 32%),
              radial-gradient(circle at 100% 100%, rgba(255, 181, 104, .08), transparent 30%);
}
.hero-brand-panel {
  display: grid;
  grid-template-columns: minmax(210px, 310px) 1fr;
  align-items: stretch;
  min-height: 260px;
}
.hero-brand-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(180deg, rgba(20,10,7,.78), rgba(38,20,13,.42));
  border-right: 1px solid rgba(255, 181, 104, .16);
}
.brand-note-glow {
  position: absolute;
  inset: 14px auto auto 18px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 160, 74, .16);
  color: var(--gold);
  font-size: 28px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}
.brand-compact-logo {
  width: min(100%, 250px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 22px 40px rgba(0,0,0,.34);
  filter: saturate(1.04) contrast(1.02);
}
.hero-brand-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 28px 30px;
}
.hero-kicker {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 800;
}
.hero-brand-copy h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: .98;
}
.hero-brand-copy p,
.hero-nav-head p {
  margin: 0;
  color: var(--muted);
  max-width: 58ch;
}
.hero-brand-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.hero-brand-tags span,
.eq-meta span {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255, 185, 111, .18);
  color: var(--gold);
  font-size: 12px;
}
.hero-nav-panel {
  padding: 24px;
  display: grid;
  gap: 18px;
}
.hero-nav-head {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}
.hero-nav-head h2 {
  margin: 3px 0 7px;
  font-size: 30px;
}
.hero-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}
.nav-tile {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(52,29,18,.82), rgba(24,13,8,.92));
  font-size: 18px;
  font-weight: 700;
}
.nav-tile span { white-space: nowrap; }
.nav-tile-wide { grid-column: 1 / -1; justify-content: center; }
.hero-scope {
  display: flex;
  align-items: end;
  gap: 5px;
  height: 78px;
  min-width: 148px;
  padding: 12px 12px 10px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(14,7,5,.85), rgba(27,13,10,.8));
  border: 1px solid rgba(255, 181, 104, .18);
}
.hero-scope span,
.eq-bars i {
  display: block;
  width: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 209, 132, .95), rgba(230, 87, 32, .95));
  animation: eqDance 1.4s ease-in-out infinite;
  transform-origin: bottom center;
}
.hero-scope span:nth-child(odd),
.eq-bars i:nth-child(odd) { animation-duration: 1.8s; }
.hero-scope span:nth-child(3n),
.eq-bars i:nth-child(3n) { animation-duration: 1.1s; }
.hero-scope span:nth-child(4n),
.eq-bars i:nth-child(4n) { animation-duration: 1.55s; }
.hero-scope span:nth-child(1){height:34px}.hero-scope span:nth-child(2){height:18px}.hero-scope span:nth-child(3){height:52px}.hero-scope span:nth-child(4){height:28px}.hero-scope span:nth-child(5){height:60px}.hero-scope span:nth-child(6){height:22px}.hero-scope span:nth-child(7){height:46px}.hero-scope span:nth-child(8){height:30px}.hero-scope span:nth-child(9){height:54px}.hero-scope span:nth-child(10){height:24px}.hero-scope span:nth-child(11){height:40px}.hero-scope span:nth-child(12){height:20px}
.hero-eq-card {
  display: grid;
  gap: 10px;
}
.eq-screen {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 112px;
  padding: 18px;
  background: radial-gradient(circle at 50% 120%, rgba(255, 126, 52, .2), transparent 40%), linear-gradient(180deg, rgba(12,6,4,.96), rgba(23,12,8,.92));
  border: 1px solid rgba(255, 181, 104, .18);
}
.eq-bars {
  position: absolute;
  inset: 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
}
.eq-bars i:nth-child(1){height:26px}.eq-bars i:nth-child(2){height:74px}.eq-bars i:nth-child(3){height:44px}.eq-bars i:nth-child(4){height:66px}.eq-bars i:nth-child(5){height:54px}.eq-bars i:nth-child(6){height:88px}.eq-bars i:nth-child(7){height:46px}.eq-bars i:nth-child(8){height:62px}.eq-bars i:nth-child(9){height:32px}.eq-bars i:nth-child(10){height:76px}.eq-bars i:nth-child(11){height:52px}.eq-bars i:nth-child(12){height:68px}
.eq-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0) 26%, rgba(255,255,255,.03) 100%),
              repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 36px),
              repeating-linear-gradient(180deg, rgba(255,255,255,.03) 0 1px, transparent 1px 22px);
  pointer-events: none;
}
.eq-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.studio-hero { display: none; }
.topbar { display: none; }
@keyframes eqDance {
  0%, 100% { transform: scaleY(.62); opacity: .74; }
  50% { transform: scaleY(1.08); opacity: 1; }
}
@media (max-width: 1080px) {
  .studio-header-rebuild { grid-template-columns: 1fr; }
  .hero-brand-panel { grid-template-columns: 250px 1fr; }
}
@media (max-width: 780px) {
  .app-shell { width: min(100vw - 16px, 1440px); }
  .studio-header-rebuild { gap: 14px; }
  .hero-brand-panel { grid-template-columns: 1fr; }
  .hero-brand-art { border-right: 0; border-bottom: 1px solid rgba(255, 181, 104, .16); }
  .hero-brand-copy { padding: 20px; }
  .hero-nav-head { flex-direction: column; }
  .hero-nav-grid { grid-template-columns: 1fr; }
  .nav-tile-wide { grid-column: auto; }
}


/* v3.18 GuitarLux logo integration */
.hero-brand-panel {
  grid-template-columns: minmax(300px, 390px) 1fr;
}
.hero-brand-art {
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 15%, rgba(255, 118, 43, .18), transparent 36%),
    radial-gradient(circle at 50% 100%, rgba(255, 196, 124, .11), transparent 42%),
    linear-gradient(180deg, rgba(16,9,7,.94), rgba(42,22,16,.68));
}
.hero-brand-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0) 24%, rgba(0,0,0,.18) 100%),
    radial-gradient(circle at 70% 20%, rgba(255,145,71,.18), transparent 22%),
    radial-gradient(circle at 18% 78%, rgba(255,145,71,.13), transparent 18%);
  pointer-events: none;
  z-index: 1;
}
.hero-brand-art::after {
  content: '';
  position: absolute;
  inset: 18px;
  border-radius: 26px;
  border: 1px solid rgba(255, 186, 111, .18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 10px 30px rgba(0,0,0,.26);
  pointer-events: none;
  z-index: 2;
}
.brand-note-glow {
  z-index: 3;
  backdrop-filter: blur(6px);
}
.brand-compact-logo {
  position: relative;
  z-index: 0;
  width: min(100%, 350px);
  max-height: 230px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 26px;
  border: 1px solid rgba(255, 183, 108, .16);
  box-shadow: 0 26px 48px rgba(0,0,0,.38);
  mix-blend-mode: screen;
  opacity: .92;
  filter: saturate(1.06) contrast(1.04) brightness(.98);
}
.hero-brand-copy {
  padding-left: 36px;
}
.hero-brand-copy h1 {
  font-size: clamp(30px, 4vw, 58px);
}
.hero-brand-copy p {
  max-width: 52ch;
}
@media (max-width: 1080px) {
  .hero-brand-panel {
    grid-template-columns: 320px 1fr;
  }
}
@media (max-width: 780px) {
  .hero-brand-panel {
    grid-template-columns: 1fr;
  }
  .brand-compact-logo {
    width: min(100%, 280px);
    max-height: 220px;
  }
  .hero-brand-copy {
    padding-left: 20px;
  }
}


/* v3.19 full-logo header panel */
.hero-brand-panel.hero-brand-full-logo {
  display: block;
  min-height: 330px;
  padding: 0;
  background: radial-gradient(circle at 50% 18%, rgba(255, 125, 55, .16), transparent 38%),
              linear-gradient(145deg, rgba(17,8,6,.96), rgba(41,20,14,.92));
}
.hero-brand-full-logo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 142, 65, .05), transparent 48%),
    linear-gradient(90deg, rgba(0,0,0,.22), transparent 16%, transparent 84%, rgba(0,0,0,.22)),
    linear-gradient(180deg, rgba(255,255,255,.035), transparent 24%, rgba(0,0,0,.24));
}
.hero-brand-full-logo::after {
  content: '';
  position: absolute;
  inset: 14px;
  z-index: 3;
  pointer-events: none;
  border-radius: 24px;
  border: 1px solid rgba(255, 190, 118, .22);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.035),
    inset 0 -36px 60px rgba(0,0,0,.24),
    0 18px 44px rgba(0,0,0,.22);
}
.brand-full-logo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.07) contrast(1.05) brightness(.98);
  transform: scale(1.01);
}
.brand-full-logo-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 72%, rgba(0,0,0,.02), rgba(0,0,0,.28) 78%),
    linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.25));
  mix-blend-mode: multiply;
  pointer-events: none;
}
@media (max-width: 1080px) {
  .hero-brand-panel.hero-brand-full-logo { min-height: 300px; }
}
@media (max-width: 780px) {
  .hero-brand-panel.hero-brand-full-logo { min-height: 260px; }
}

/* v3.25 Drag-Chord-Blocks: Akkorde direkt in der Akkordzeile bearbeiten */
.chord-panel-legacy-v325,
.editor-tools-v32 .tool-group:has(#addChordBarBtn),
.editor-tools-v32 .tool-group:has(#clearCurrentChordBtn) {
  display: none !important;
}
.chord-row-v325 {
  min-height: 52px;
  align-items: stretch;
  gap: 0;
  margin-bottom: 8px;
  position: relative;
}
.chord-row-v325 .chord-label {
  min-height: 48px;
  border-radius: 10px 0 0 10px;
}
.chord-plus-v325 {
  margin: 6px 4px;
  min-height: 38px;
  width: auto;
  border-radius: 13px;
  padding: 0;
  background: rgba(255, 175, 93, .07);
  color: rgba(255, 204, 133, .74);
  border: 1px dashed rgba(255, 188, 108, .28);
  box-shadow: none;
  font-size: 20px;
  font-weight: 900;
  opacity: .82;
}
.chord-plus-v325:hover {
  opacity: 1;
  transform: translateY(-1px);
  background: rgba(255, 145, 52, .15);
  border-color: rgba(255, 196, 119, .72);
  color: var(--gold);
}
.chord-block-v325 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 4px;
  min-height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(255, 148, 50, .78);
  background: linear-gradient(180deg, rgba(255, 137, 44, .22), rgba(68, 31, 18, .72));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), 0 0 22px rgba(255, 103, 37, .14);
  color: var(--gold);
  cursor: default;
  overflow: hidden;
  user-select: none;
}
.chord-block-v325.is-placeholder {
  border-color: rgba(255, 204, 147, .38);
  color: rgba(255, 224, 180, .65);
  background: linear-gradient(180deg, rgba(255, 210, 155, .10), rgba(32, 17, 12, .72));
}
.chord-block-v325 strong {
  pointer-events: none;
  font-size: 17px;
  letter-spacing: .3px;
  max-width: calc(100% - 58px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chord-block-v325:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.chord-block-v325.is-resizing {
  filter: brightness(1.16);
  box-shadow: 0 0 0 2px rgba(255, 179, 95, .2), 0 0 28px rgba(255, 103, 37, .26);
}
.chord-handle-v325 {
  position: absolute;
  top: 7px;
  bottom: 7px;
  width: 13px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,231,181,.9) 0 2px, transparent 2px 5px);
  background-size: 4px 7px;
  opacity: .55;
  cursor: ew-resize;
}
.chord-handle-v325.left { left: 7px; }
.chord-handle-v325.right { right: 26px; }
.chord-handle-v325:hover { opacity: 1; }
.chord-delete-v325 {
  position: absolute;
  right: 4px;
  top: 5px;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 183, 139, .24);
  background: rgba(0,0,0,.28);
  color: rgba(255,226,198,.7);
  font-size: 14px;
  line-height: 18px;
  box-shadow: none;
}
.chord-delete-v325:hover {
  color: #fff;
  background: rgba(179, 45, 31, .7);
}
@media print {
  .chord-plus-v325,
  .chord-delete-v325,
  .chord-handle-v325 { display: none !important; }
}


/* v3.27 stabile Akkordblock-Dragbedienung */
.chord-block-v327 {
  cursor: grab;
  touch-action: none;
}
.chord-block-v327:active,
.chord-block-v327.is-dragging-v327 {
  cursor: grabbing;
}
.chord-block-v327.is-dragging-v327 {
  filter: brightness(1.22) saturate(1.08);
  box-shadow: 0 0 0 2px rgba(255, 179, 95, .24), 0 0 34px rgba(255, 112, 44, .32);
  z-index: 6;
}
.chord-row-v327 .chord-plus-v327 {
  cursor: grab;
  touch-action: none;
}
.chord-row-v327 .chord-plus-v327:active {
  cursor: grabbing;
}
.chord-row-v327 .chord-handle-v325 {
  z-index: 8;
}
.chord-row-v327 .chord-delete-v325 {
  z-index: 9;
}

/* v3.28: Akkordblock-Doppelklick/Drag-Stabilität */
.chord-block-v328 { cursor: grab; user-select: none; }
.chord-block-v328:active { cursor: grabbing; }
.chord-block-v328.is-dragging-v328 { opacity: .88; filter: brightness(1.12); }
.chord-block-v328 strong { pointer-events: none; }


/* v3.29 chord drag release polish */
body.chord-drag-active-v329 { cursor: grabbing !important; user-select: none !important; }
.chord-block-v329, .chord-block-v325 { touch-action: none; }
.chord-block-v329.is-dragging-v329, .chord-block-v325.is-dragging-v329 { cursor: grabbing !important; }


/* v3.30 Akkordblock-Resize Hotfix */
.chord-block-v330 {
  cursor: grab;
  padding-left: 22px;
  padding-right: 40px;
}
.chord-block-v330 .chord-handle-v330 {
  z-index: 20;
  width: 22px;
  top: 3px;
  bottom: 3px;
  opacity: .88;
  pointer-events: auto;
  background:
    linear-gradient(180deg, rgba(255,235,190,.28), rgba(255,145,55,.18)),
    repeating-linear-gradient(180deg, rgba(255,239,205,.95) 0 2px, transparent 2px 6px);
  border: 1px solid rgba(255, 218, 154, .28);
  box-shadow: 0 0 12px rgba(255, 138, 48, .16);
}
.chord-block-v330 .chord-handle-v330.left { left: 3px; }
.chord-block-v330 .chord-handle-v330.right { right: 27px; }
.chord-block-v330 .chord-handle-v330:hover,
.chord-block-v330.is-resizing-v330 .chord-handle-v330 {
  opacity: 1;
  background-color: rgba(255, 158, 62, .24);
}
body.chord-resize-active-v330 {
  cursor: ew-resize !important;
  user-select: none !important;
}
.chord-block-v330.is-resizing-v330 {
  cursor: ew-resize !important;
  filter: brightness(1.2) saturate(1.1);
  box-shadow: 0 0 0 2px rgba(255, 190, 105, .24), 0 0 34px rgba(255, 119, 44, .34);
  z-index: 9;
}

/* v3.31 Timeline block polish: Akkorde + Abschnitte einheitlich ziehen/skalieren */
.section-row-v331,
.chord-row-v331 {
  grid-template-columns: 48px repeat(var(--steps), 34px) !important;
  min-width: max-content;
  position: relative;
  gap: 0;
  align-items: stretch;
  min-height: 52px;
  margin-bottom: 8px;
}
.timeline-block-v331 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 4px;
  min-height: 38px;
  border-radius: 14px;
  overflow: hidden;
  user-select: none;
  touch-action: none;
  cursor: grab;
  z-index: 3;
}
.chord-block-v331 {
  border: 1px solid rgba(255, 148, 50, .82);
  background: linear-gradient(180deg, rgba(255, 137, 44, .24), rgba(68, 31, 18, .76));
  color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), 0 0 22px rgba(255, 103, 37, .14);
}
.section-block-v331 {
  border: 1px solid rgba(255, 207, 129, .62);
  background: linear-gradient(180deg, rgba(255, 205, 112, .20), rgba(42, 24, 14, .72));
  color: #ffe1ad;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 0 18px rgba(255, 185, 91, .11);
}
.timeline-block-v331.is-placeholder {
  opacity: .84;
  border-style: dashed;
}
.timeline-block-v331 strong {
  pointer-events: none;
  font-size: 15px;
  letter-spacing: .25px;
  max-width: calc(100% - 64px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.timeline-block-v331:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.timeline-block-v331.is-dragging-v331,
.timeline-block-v331.is-resizing-v331 {
  filter: brightness(1.18) saturate(1.1);
  box-shadow: 0 0 0 2px rgba(255, 190, 105, .24), 0 0 34px rgba(255, 119, 44, .34);
  z-index: 20;
}
.timeline-handle-v331 {
  position: absolute;
  top: 3px;
  bottom: 3px;
  width: 24px;
  border-radius: 999px;
  cursor: ew-resize;
  pointer-events: auto;
  opacity: .9;
  background:
    linear-gradient(180deg, rgba(255,235,190,.30), rgba(255,145,55,.20)),
    repeating-linear-gradient(180deg, rgba(255,239,205,.96) 0 2px, transparent 2px 6px);
  border: 1px solid rgba(255, 218, 154, .30);
  box-shadow: 0 0 12px rgba(255, 138, 48, .16);
  z-index: 23;
}
.timeline-handle-v331.left { left: 3px; }
.timeline-handle-v331.right { right: 28px; }
.timeline-handle-v331:hover { opacity: 1; background-color: rgba(255, 158, 62, .24); }
.timeline-delete-v331 {
  position: absolute;
  right: 4px;
  top: 5px;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 183, 139, .24);
  background: rgba(0,0,0,.28);
  color: rgba(255,226,198,.72);
  font-size: 14px;
  line-height: 18px;
  box-shadow: none;
  z-index: 24;
}
.timeline-delete-v331:hover { color: #fff; background: rgba(179, 45, 31, .75); }
.timeline-plus-v331 {
  margin: 6px 4px;
  min-height: 38px;
  width: auto;
  border-radius: 13px;
  padding: 0;
  background: rgba(255, 175, 93, .07);
  color: rgba(255, 204, 133, .74);
  border: 1px dashed rgba(255, 188, 108, .28);
  box-shadow: none;
  font-size: 20px;
  font-weight: 900;
  opacity: .82;
  cursor: grab;
  touch-action: none;
}
.timeline-plus-v331:hover {
  opacity: 1;
  transform: translateY(-1px);
  background: rgba(255, 145, 52, .15);
  border-color: rgba(255, 196, 119, .72);
  color: var(--gold);
}
body.timeline-drag-active-v331 { cursor: grabbing !important; user-select: none !important; }
body.timeline-resize-active-v331 { cursor: ew-resize !important; user-select: none !important; }
@media print {
  .timeline-plus-v331,
  .timeline-delete-v331,
  .timeline-handle-v331 { display: none !important; }
}

/* v3.32 timeline drag hardfix */
.timeline-block-v331 { touch-action: none; user-select: none; }
.timeline-block-v331.timeline-preview-v332 { z-index: 9; box-shadow: 0 0 0 2px rgba(255,210,142,.62), 0 10px 22px rgba(0,0,0,.34); }
.timeline-handle-v332 { width: 16px !important; min-width: 16px; opacity: .92; }
.timeline-handle-v332.left { cursor: ew-resize; }
.timeline-handle-v332.right { cursor: ew-resize; }
body.timeline-drag-active-v332, body.timeline-resize-active-v332 { cursor: grabbing; user-select: none; }

/* v3.32 share playback restore */
body .app-shell > header.topbar.topbar-with-header { display: flex; }
body .app-shell > header.topbar.topbar-with-header nav { display: flex; }

/* v3.33 modal feedback and stable timeline grips */
.status-modal-v333{position:fixed;inset:0;display:grid;place-items:center;background:rgba(0,0,0,.54);z-index:9999;padding:20px;backdrop-filter:blur(5px)}
.status-modal-v333.hidden{display:none!important}.status-modal-card-v333{width:min(560px,calc(100vw - 32px));display:grid;grid-template-columns:54px 1fr auto;gap:16px;align-items:center;border-radius:24px;padding:22px;border:1px solid rgba(255,205,132,.3);background:linear-gradient(145deg,rgba(35,18,12,.98),rgba(13,8,6,.98));box-shadow:0 28px 80px rgba(0,0,0,.55)}
.status-modal-icon-v333{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;font-weight:900;font-size:24px;background:rgba(255,255,255,.08)}.status-modal-body-v333 h3{margin:0 0 6px}.status-modal-body-v333 p{margin:0;color:var(--muted);white-space:pre-wrap}.status-modal-close-v333{padding:10px 16px}.status-modal-v333.is-success .status-modal-icon-v333{background:rgba(76,210,111,.18);color:#7eff9d}.status-modal-v333.is-warning .status-modal-icon-v333{background:rgba(255,190,83,.18);color:#ffd36d}.status-modal-v333.is-error .status-modal-icon-v333{background:rgba(255,86,74,.2);color:#ff8b7d}.status-modal-v333.is-info .status-modal-icon-v333{background:rgba(255,150,64,.18);color:var(--gold)}
.panel-subtle-v333{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:12px 0 18px;padding:14px 16px;border:1px solid rgba(255,186,92,.18);border-radius:18px;background:rgba(255,255,255,.035)}.panel-subtle-v333 p{margin:4px 0 0}
.timeline-block-v333{position:relative;display:flex;align-items:center;justify-content:center;gap:7px;min-height:32px;padding:4px 36px;border-radius:12px;border:1px solid rgba(255,191,103,.45);background:linear-gradient(180deg,rgba(107,55,28,.88),rgba(41,21,14,.92));box-shadow:inset 0 1px rgba(255,255,255,.08),0 8px 20px rgba(0,0,0,.25);user-select:none;touch-action:none;z-index:2}.section-block-v333{background:linear-gradient(180deg,rgba(74,49,32,.9),rgba(30,20,14,.94));border-color:rgba(255,213,139,.32)}.timeline-block-v333 strong{pointer-events:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.timeline-block-v333.is-placeholder strong{opacity:.72}.timeline-move-grip-v333{position:absolute;top:3px;left:50%;transform:translateX(-50%);width:42px;height:14px;border-radius:999px;padding:0;font-size:11px;line-height:1;background:rgba(255,215,145,.2);border:1px solid rgba(255,215,145,.22);cursor:grab;color:var(--gold);display:grid;place-items:center}.timeline-move-grip-v333:active{cursor:grabbing}.timeline-handle-v333{position:absolute;top:0;bottom:0;width:18px;cursor:ew-resize;background:linear-gradient(90deg,rgba(255,202,116,.12),rgba(255,202,116,.03));z-index:4}.timeline-handle-v333.left{left:0;border-radius:12px 0 0 12px}.timeline-handle-v333.right{right:0;border-radius:0 12px 12px 0}.timeline-handle-v333::after{content:'';position:absolute;top:8px;bottom:8px;width:3px;border-radius:999px;background:rgba(255,220,154,.75)}.timeline-handle-v333.left::after{left:6px}.timeline-handle-v333.right::after{right:6px}.timeline-delete-v333{position:absolute;right:18px;top:5px;width:22px;height:22px;padding:0;border-radius:8px;font-size:13px;opacity:.65}.timeline-block-v333:hover .timeline-delete-v333,.timeline-block-v333:focus .timeline-delete-v333{opacity:1}.timeline-plus-v333{min-height:30px;border-radius:12px;border-style:dashed;background:rgba(255,168,74,.08);font-weight:900}.timeline-preview-v333{outline:2px solid rgba(255,215,122,.75);filter:brightness(1.08)}body.timeline-drag-active-v333,body.timeline-resize-active-v333{user-select:none;cursor:grabbing}body.timeline-resize-active-v333{cursor:ew-resize}
@media(max-width:700px){.status-modal-card-v333{grid-template-columns:44px 1fr}.status-modal-close-v333{grid-column:1/-1}.panel-subtle-v333{align-items:stretch;flex-direction:column}}


/* v3.34: feste linke Plus-Buttons für Akkorde/Abschnitte */
.timeline-label-v334{display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;padding:0 4px!important;}
.timeline-left-plus-v334{width:26px!important;height:26px!important;min-height:26px!important;padding:0!important;border-radius:9px!important;font-weight:900!important;font-size:17px!important;line-height:1!important;background:linear-gradient(180deg,rgba(255,177,86,.95),rgba(194,74,27,.92))!important;color:#210b03!important;border:1px solid rgba(255,215,145,.55)!important;box-shadow:0 6px 16px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.18)!important;}
.timeline-left-plus-v334:hover{transform:translateY(-1px)!important;filter:brightness(1.08)!important;}
.timeline-block-v334{position:relative;display:flex;align-items:center;justify-content:center;gap:7px;min-height:34px;padding:5px 38px;border-radius:13px;border:1px solid rgba(255,191,103,.48);background:linear-gradient(180deg,rgba(104,54,29,.90),rgba(37,20,14,.94));box-shadow:inset 0 1px rgba(255,255,255,.08),0 8px 20px rgba(0,0,0,.24);user-select:none;touch-action:none;z-index:8;}
.section-block-v334{background:linear-gradient(180deg,rgba(72,51,34,.93),rgba(28,19,14,.95));border-color:rgba(255,216,148,.34);}
.timeline-block-v334 strong{pointer-events:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.timeline-block-v334.is-placeholder strong{opacity:.65;}
.timeline-move-grip-v334{position:absolute;top:3px;left:50%;transform:translateX(-50%);width:42px;height:15px;border-radius:999px;padding:0!important;font-size:11px;line-height:1;background:rgba(255,215,145,.22);border:1px solid rgba(255,215,145,.26);cursor:grab;color:var(--gold);display:grid;place-items:center;z-index:12;}
.timeline-move-grip-v334:active{cursor:grabbing;}
.timeline-handle-v334{position:absolute;top:0;bottom:0;width:22px;cursor:ew-resize;background:linear-gradient(90deg,rgba(255,202,116,.13),rgba(255,202,116,.03));z-index:13;}
.timeline-handle-v334.left{left:0;border-radius:13px 0 0 13px;}
.timeline-handle-v334.right{right:0;border-radius:0 13px 13px 0;}
.timeline-handle-v334::after{content:'';position:absolute;top:8px;bottom:8px;width:3px;border-radius:999px;background:rgba(255,225,166,.82);}
.timeline-handle-v334.left::after{left:7px;}.timeline-handle-v334.right::after{right:7px;}
.timeline-delete-v334{position:absolute;right:20px;top:5px;width:22px;height:22px;padding:0!important;border-radius:8px;font-size:13px;opacity:.65;z-index:14;}
.timeline-block-v334:hover .timeline-delete-v334,.timeline-block-v334:focus .timeline-delete-v334{opacity:1;}
.timeline-preview-v334{outline:2px solid rgba(255,215,122,.78);filter:brightness(1.08);}
body.timeline-drag-active-v334,body.timeline-resize-active-v334{user-select:none!important;}
body.timeline-drag-active-v334{cursor:grabbing!important;}
body.timeline-resize-active-v334{cursor:ew-resize!important;}
.timeline-plus-v333,.chord-plus-v325,.chord-plus-v327,.chord-plus-v328,.chord-plus-v330{display:none!important;}


/* v3.35 Performance-/Leichtgewicht-Polish
   Ziel: Rock-Studio-Look behalten, aber weniger GPU-/Filter-/Animationslast. */
.wood-bg { opacity: .10 !important; }
.hero-scope span,
.eq-bars i,
body.theme-stage #playBtn.primary::after,
body.theme-stage .studio-hero::before,
body.theme-stage .studio-hero::after {
  animation: none !important;
}
.hero-scope span,
.eq-bars i {
  transform: none !important;
  opacity: .86 !important;
}
.studio-header-rebuild .hero-slab,
body.theme-stage .panel,
body.theme-stage .topbar,
.panel,
.login-card {
  box-shadow: 0 12px 34px rgba(0,0,0,.28) !important;
}
.brand-compact-logo,
.brand-mark {
  filter: none !important;
}
button, .file-button, .gallery-card, tr.clickable-row td {
  transition: border-color .12s ease, background-color .12s ease !important;
}
button:hover, .file-button:hover, .gallery-card:hover {
  transform: none !important;
  filter: none !important;
}
.backdrop-blur, .hero-brand-art .brand-note-glow {
  backdrop-filter: none !important;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}


/* v3.38 editor cleanup hotfix: hide old large toolbar, compact nav, compact bottom cards */
.editor-tools-hidden-v338 {
  display: none !important;
}
.section-panel-hidden-v338,
.section-panel.section-panel-hidden-v338 {
  display: none !important;
}
.tab-page-nav-compact-v338 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: -4px 0 12px;
  padding: 6px 8px;
  color: var(--muted);
  opacity: .92;
}
.tab-page-nav-compact-v338 .compact-page-btn {
  width: 34px;
  height: 30px;
  min-height: 0;
  padding: 0;
  border-radius: 10px;
  font-size: 18px;
  line-height: 1;
  box-shadow: none;
}
.compact-page-info {
  min-width: 90px;
  text-align: center;
  font-size: 12px;
  color: var(--gold);
  border: 1px solid rgba(255,186,92,.16);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(18, 9, 6, .42);
}
.editor-bottom-tools-v39,
.editor-bottom-tools {
  gap: 8px !important;
  margin-top: 10px !important;
}
.editor-bottom-tools-v39 .tool-group,
.editor-bottom-tools .tool-group-share,
.editor-bottom-tools .autosave-tool {
  padding: 9px 10px !important;
  border-radius: 14px !important;
  min-height: 0 !important;
  box-shadow: none !important;
  background: rgba(20, 10, 7, .55) !important;
}
.editor-bottom-tools-v39 .tool-title,
.editor-bottom-tools .tool-title {
  font-size: 11px !important;
  letter-spacing: .7px !important;
  margin-bottom: 4px !important;
}
.editor-bottom-tools-v39 .tool-buttons,
.editor-bottom-tools .tool-buttons {
  gap: 6px !important;
}
.editor-bottom-tools-v39 button,
.editor-bottom-tools-v39 select,
.editor-bottom-tools button,
.editor-bottom-tools select {
  min-height: 0 !important;
  padding: 7px 9px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
}
.share-info,
.autosave-status {
  font-size: 12px !important;
  line-height: 1.35 !important;
}


/* v3.39 Timeline label hotfix + quiet timeline + polished share/status cards */
.timeline-plus-v333,.timeline-left-plus-v334,.timeline-block-v334{display:none!important;}
.section-row-v339,.chord-row-v339{display:grid;grid-template-columns:42px repeat(var(--steps),34px);align-items:center;min-width:max-content;}
.timeline-label-v339{display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;padding:0 4px!important;}
.timeline-left-plus-v339{width:26px!important;height:26px!important;min-height:26px!important;padding:0!important;border-radius:9px!important;font-weight:900!important;font-size:17px!important;line-height:1!important;background:linear-gradient(180deg,rgba(255,177,86,.95),rgba(194,74,27,.92))!important;color:#210b03!important;border:1px solid rgba(255,215,145,.55)!important;box-shadow:0 6px 16px rgba(0,0,0,.22), inset 0 1px rgba(255,255,255,.18)!important;}
.timeline-block-v339{position:relative;display:flex;align-items:center;justify-content:center;gap:7px;min-height:34px;padding:5px 38px;border-radius:13px;border:1px solid rgba(255,191,103,.48);background:linear-gradient(180deg,rgba(104,54,29,.90),rgba(37,20,14,.94));box-shadow:inset 0 1px rgba(255,255,255,.08),0 8px 18px rgba(0,0,0,.22);user-select:none;touch-action:none;z-index:10;}
.section-block-v339{background:linear-gradient(180deg,rgba(72,51,34,.93),rgba(28,19,14,.95));border-color:rgba(255,216,148,.34);}
.timeline-block-v339 strong{pointer-events:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.timeline-block-v339.is-placeholder strong{opacity:.65;}
.timeline-move-grip-v339{position:absolute;top:3px;left:50%;transform:translateX(-50%);width:42px;height:15px;border-radius:999px;padding:0!important;font-size:11px;line-height:1;background:rgba(255,215,145,.22);border:1px solid rgba(255,215,145,.26);cursor:grab;color:var(--gold);display:grid;place-items:center;z-index:14;}
.timeline-handle-v339{position:absolute;top:0;bottom:0;width:24px;cursor:ew-resize;background:linear-gradient(90deg,rgba(255,202,116,.13),rgba(255,202,116,.03));z-index:15;}
.timeline-handle-v339.left{left:0;border-radius:13px 0 0 13px;}.timeline-handle-v339.right{right:0;border-radius:0 13px 13px 0;}
.timeline-handle-v339::after{content:'';position:absolute;top:8px;bottom:8px;width:3px;border-radius:999px;background:rgba(255,225,166,.82);}.timeline-handle-v339.left::after{left:7px}.timeline-handle-v339.right::after{right:7px}
.timeline-delete-v339{position:absolute;right:20px;top:5px;width:22px;height:22px;padding:0!important;border-radius:8px;font-size:13px;opacity:.65;z-index:16;}.timeline-block-v339:hover .timeline-delete-v339,.timeline-block-v339:focus .timeline-delete-v339{opacity:1;}
.timeline-preview-v339{outline:2px solid rgba(255,215,122,.78);filter:brightness(1.05);}body.timeline-drag-active-v339{cursor:grabbing!important;user-select:none!important;}body.timeline-resize-active-v339{cursor:ew-resize!important;user-select:none!important;}
.editor-bottom-tools-v39,.editor-bottom-tools{gap:12px!important;margin:14px 0 16px!important;}
.editor-bottom-tools-v39 .tool-group,.editor-bottom-tools .tool-group-share,.editor-bottom-tools .autosave-tool{padding:13px 15px!important;border-radius:16px!important;min-height:auto!important;background:linear-gradient(180deg,rgba(28,15,10,.72),rgba(17,9,6,.68))!important;border:1px solid rgba(255,186,92,.18)!important;box-shadow:inset 0 1px rgba(255,255,255,.04),0 8px 18px rgba(0,0,0,.18)!important;}
.editor-bottom-tools-v39 .tool-title,.editor-bottom-tools .tool-title{font-size:12px!important;letter-spacing:.9px!important;margin-bottom:7px!important;color:var(--gold)!important;text-transform:uppercase!important;}
.editor-bottom-tools-v39 button,.editor-bottom-tools-v39 select,.editor-bottom-tools button,.editor-bottom-tools select{font-size:inherit!important;padding:8px 11px!important;border-radius:11px!important;}
.share-info,.autosave-status{font-size:inherit!important;line-height:1.4!important;color:var(--muted)!important;}


/* v3.41 Timeline Layout Alignment Fix */
.section-row-v340,.timeline-block-v340,.timeline-left-plus-v340,.timeline-label-v340{display:none!important;}
.timeline-title-row-v341,
.timeline-row-v341{
  display:grid;
  grid-template-columns:42px repeat(var(--steps),34px);
  min-width:max-content;
  align-items:center;
}
.timeline-title-row-v341{
  height:24px;
  margin-top:8px;
  pointer-events:none;
}
.timeline-title-text-v341{
  grid-column:2 / -1;
  color:var(--gold);
  font-size:12px;
  font-weight:800;
  letter-spacing:1.3px;
  text-transform:uppercase;
  opacity:.9;
  padding-left:4px;
}
.timeline-title-blank-v341{grid-column:1;}
.timeline-row-v341{
  min-height:38px;
  margin:0 0 4px 0;
}
.timeline-label-v341{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0 4px!important;
}
.timeline-left-plus-v341{
  width:34px!important;
  height:34px!important;
  min-height:34px!important;
  padding:0!important;
  border-radius:12px!important;
  font-size:25px!important;
  font-weight:900!important;
  line-height:1!important;
  background:linear-gradient(180deg,rgba(255,183,89,.98),rgba(191,72,26,.96))!important;
  color:#210b03!important;
  border:1px solid rgba(255,222,156,.62)!important;
  box-shadow:0 7px 18px rgba(0,0,0,.24), inset 0 1px rgba(255,255,255,.20)!important;
}
.timeline-left-plus-v341:hover{filter:brightness(1.06)!important;}
.timeline-block-v341{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:34px;
  max-height:34px;
  padding:5px 40px;
  border-radius:13px;
  border:1px solid rgba(255,191,103,.48);
  background:linear-gradient(180deg,rgba(104,54,29,.90),rgba(37,20,14,.94));
  box-shadow:inset 0 1px rgba(255,255,255,.08),0 8px 18px rgba(0,0,0,.20);
  user-select:none;
  touch-action:none;
  z-index:11;
  overflow:hidden;
}
.section-block-v341{
  background:linear-gradient(180deg,rgba(86,59,37,.92),rgba(31,21,15,.96));
  border-color:rgba(255,216,148,.38);
}
.timeline-block-v341 strong{
  pointer-events:none;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  line-height:1;
  font-size:14px;
}
.timeline-block-v341.is-placeholder strong{opacity:.64;}
.timeline-move-grip-v341{
  position:absolute;
  top:4px;
  left:50%;
  transform:translateX(-50%);
  width:44px;
  height:14px;
  min-height:14px!important;
  padding:0!important;
  border-radius:999px;
  font-size:11px;
  line-height:1;
  background:rgba(255,215,145,.20);
  border:1px solid rgba(255,215,145,.25);
  cursor:grab;
  color:var(--gold);
  display:grid;
  place-items:center;
  z-index:18;
  box-shadow:none!important;
}
.timeline-move-grip-v341:active{cursor:grabbing;}
.timeline-handle-v341{
  position:absolute;
  top:0;
  bottom:0;
  width:24px;
  cursor:ew-resize;
  background:linear-gradient(90deg,rgba(255,202,116,.13),rgba(255,202,116,.03));
  z-index:17;
}
.timeline-handle-v341.left{left:0;border-radius:13px 0 0 13px;}
.timeline-handle-v341.right{right:0;border-radius:0 13px 13px 0;}
.timeline-handle-v341::after{
  content:'';
  position:absolute;
  top:8px;
  bottom:8px;
  width:3px;
  border-radius:999px;
  background:rgba(255,225,166,.82);
}
.timeline-handle-v341.left::after{left:7px;}
.timeline-handle-v341.right::after{right:7px;}
.timeline-delete-v341{
  position:absolute;
  right:20px;
  top:5px;
  width:22px;
  height:22px;
  min-height:22px!important;
  padding:0!important;
  border-radius:8px;
  font-size:13px;
  opacity:.62;
  z-index:19;
  box-shadow:none!important;
}
.timeline-block-v341:hover .timeline-delete-v341,
.timeline-block-v341:focus .timeline-delete-v341{opacity:1;}
.timeline-preview-v341{outline:2px solid rgba(255,215,122,.78);filter:brightness(1.04);}
body.timeline-drag-active-v341{cursor:grabbing!important;user-select:none!important;}
body.timeline-resize-active-v341{cursor:ew-resize!important;user-select:none!important;}
@media print{
  .timeline-left-plus-v341,.timeline-delete-v341,.timeline-move-grip-v341,.timeline-handle-v341{display:none!important;}
}
