/* SYNTHBOARD – Modulares Ambient-Rack */

:root {
  --bg-0: #0a0b0f;
  --bg-1: #12141a;
  --bg-2: #1a1d25;
  --bg-3: #232733;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #e9ebf0;
  --text-dim: #9aa1ad;
  --text-mute: #6b7280;
  --accent: #ff8a3d;
  --accent-2: #ffc24d;
  --ok: #4ade80;
  --rec: #ff4d5e;

  --font-main: 'Inter', -apple-system, sans-serif;
  --font-hw: 'Chakra Petch', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-display: 'Orbitron', sans-serif;

  --radius: 14px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: 0.35; cursor: not-allowed; }

body {
  font-family: var(--font-main);
  color: var(--text);
  background: var(--bg-0);
  min-height: 100vh;
  user-select: none;
  -webkit-user-select: none;
}

.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60vw 40vh at 15% -10%, rgba(255, 138, 61, 0.14), transparent 70%),
    radial-gradient(50vw 50vh at 100% 10%, rgba(110, 231, 168, 0.08), transparent 70%),
    radial-gradient(70vw 50vh at 50% 120%, rgba(185, 140, 255, 0.1), transparent 70%),
    linear-gradient(180deg, #0d0f14, #08090c);
}

/* ───────────── Start-Overlay ───────────── */
.start-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  background: rgba(6, 7, 10, 0.72);
  backdrop-filter: blur(10px);
  transition: opacity 0.4s ease, visibility 0.4s;
}
.start-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.start-card {
  text-align: center;
  padding: 44px 56px;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(35, 39, 51, 0.9), rgba(18, 20, 26, 0.95));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow), 0 0 80px rgba(255, 138, 61, 0.12);
}
.start-card h2 { font-family: var(--font-display); letter-spacing: 2px; font-size: 1.3rem; margin: 18px 0 8px; }
.start-card p { color: var(--text-dim); margin-bottom: 24px; }

.start-sun {
  width: 84px;
  height: 84px;
  margin: 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #ffe2a8, #ff8a3d 55%, #c2410c);
  box-shadow: 0 0 40px rgba(255, 138, 61, 0.6), 0 0 120px rgba(255, 138, 61, 0.25);
  animation: sunPulse 3.5s ease-in-out infinite;
}
@keyframes sunPulse { 50% { transform: scale(1.07); box-shadow: 0 0 60px rgba(255, 138, 61, 0.8), 0 0 160px rgba(255, 138, 61, 0.35); } }

/* ───────────── Buttons & Inputs ───────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: var(--bg-3);
  font-family: var(--font-hw);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: transform 0.15s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn:hover:not(:disabled) { background: #2c3140; border-color: rgba(255, 255, 255, 0.28); transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn-icon { padding: 8px 11px; }
.btn-accent { background: linear-gradient(135deg, #ff8a3d, #f26b1d); border-color: #ff9d5c; color: #1a0d04; }
.btn-accent:hover:not(:disabled) { background: linear-gradient(135deg, #ff9b57, #ff7a2e); box-shadow: 0 0 18px rgba(255, 138, 61, 0.45); }
.btn-primary { background: linear-gradient(135deg, #ff8a3d, #ffb547); border: none; color: #1a0d04; }
.btn-lg { padding: 14px 30px; font-size: 1.05rem; border-radius: 12px; box-shadow: 0 8px 30px rgba(255, 138, 61, 0.35); }
.btn-lg:hover { box-shadow: 0 10px 40px rgba(255, 138, 61, 0.55); }

.btn-power .led { width: 9px; height: 9px; border-radius: 50%; background: #444; transition: 0.3s; }
.btn-power.on { border-color: rgba(74, 222, 128, 0.6); background: #15291e; color: #bbf7d0; }
.btn-power.on .led { background: var(--ok); box-shadow: 0 0 10px var(--ok); }

.btn-record .rec-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rec); }
.btn-record.rec { background: #5c111a; border-color: var(--rec); animation: recPulse 1.2s infinite; }
@keyframes recPulse { 50% { box-shadow: 0 0 18px rgba(255, 77, 94, 0.7); } }

.btn-tutorials {
  border-color: rgba(16, 185, 129, 0.45);
  background: #0f241d;
  color: #a7f3d0;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}
.btn-tutorials:hover:not(:disabled) {
  border-color: #10b981;
  background: #15382b;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.4);
  color: #fff;
}
.btn-tutorials .tut-icon { font-size: 0.95rem; }

.footer-guide-link.tut-link {
  color: #34d399;
  border-bottom: 1px dashed rgba(52, 211, 153, 0.5);
  background: none;
  border-top: none; border-left: none; border-right: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  margin-right: 12px;
}
.footer-guide-link.tut-link:hover {
  color: #6ee7b7;
  border-bottom-color: #6ee7b7;
}

.btn-guide { border-color: rgba(129, 140, 248, 0.4); background: #191c2b; color: #c7d2fe; }
.btn-guide:hover:not(:disabled) { border-color: #818cf8; background: #23273e; box-shadow: 0 0 16px rgba(129, 140, 248, 0.35); }
.btn-guide .guide-icon { font-size: 0.9rem; }

.btn-info .info-dot { width: 9px; height: 9px; border-radius: 50%; background: #444; transition: 0.3s; }
.btn-info.on { border-color: rgba(56, 189, 248, 0.5); background: #112330; color: #bae6fd; }
.btn-info.on .info-dot { background: #38bdf8; box-shadow: 0 0 8px #38bdf8; }

.select {
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 8px 12px;
  font-family: var(--font-hw);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}
.select:hover, .select:focus { border-color: var(--accent); }
.select-sm { padding: 4px 6px; font-size: 0.74rem; border-radius: 6px; width: 100%; }

/* ───────────── Layout ───────────── */
.app {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: min(98vw, 2400px);
  margin: 0 auto;
  padding: 16px 20px 20px;
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 10px;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  padding: 12px 20px;
  border-radius: var(--radius);
  background: rgba(22, 25, 32, 0.78);
  backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  font-size: 22px;
  border-radius: 11px;
  background: linear-gradient(135deg, #ff8a3d, #ffc24d);
  box-shadow: 0 0 22px rgba(255, 138, 61, 0.45);
}
.brand h1 { font-family: var(--font-display); font-weight: 900; font-size: 1.2rem; letter-spacing: 2.5px; }
.brand h1 span { color: var(--accent); }
.brand-sub { font-family: var(--font-hw); font-size: 0.68rem; letter-spacing: 2px; color: var(--text-mute); }

.board-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bar-label { font-family: var(--font-hw); font-size: 0.72rem; letter-spacing: 2px; color: var(--text-mute); font-weight: 700; }
#board-select { min-width: 200px; }
.dirty-dot { width: 8px; height: 8px; border-radius: 50%; background: transparent; transition: 0.3s; margin-right: 4px; }
.dirty-dot.on { background: var(--accent-2); box-shadow: 0 0 8px var(--accent-2); }

/* ── Zoom & Workspace Controls ── */
.zoom-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.zoom-cluster {
  display: inline-flex;
  align-items: center;
  background: rgba(14, 16, 21, 0.85);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 2px;
  gap: 2px;
}

.zoom-cluster .btn {
  border: none;
  background: transparent;
  padding: 5px 8px;
  font-size: 0.78rem;
  border-radius: 6px;
  box-shadow: none;
}

.zoom-cluster .btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: none;
}

.btn-zoom-val {
  min-width: 48px;
  text-align: center;
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  color: var(--accent);
}

.btn-accent-dim {
  background: rgba(255, 138, 61, 0.18) !important;
  color: #ff9d5c !important;
  font-weight: 700 !important;
}

.btn-accent-dim:hover {
  background: rgba(255, 138, 61, 0.32) !important;
  box-shadow: 0 0 10px rgba(255, 138, 61, 0.4) !important;
}

.master-bar { display: flex; align-items: center; gap: 12px; }
.scope {
  width: 180px;
  height: 46px;
  border-radius: 8px;
  background: #0b0e0c;
  border: 1px solid var(--line);
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.8);
}
.master-knob { display: flex; flex-direction: column; align-items: center; gap: 2px; font-family: var(--font-hw); font-size: 0.6rem; letter-spacing: 1.5px; color: var(--text-mute); }

.workspace {
  flex: 1;
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 14px;
  align-items: start;
  zoom: var(--workspace-zoom, 1);
  transition: grid-template-columns 0.2s ease;
}

.workspace.lib-collapsed {
  grid-template-columns: 1fr;
}

.workspace.lib-collapsed .library {
  display: none;
}

.workspace.lib-collapsed .rack {
  grid-column: 1;
}

/* ───────────── Bibliothek ───────────── */
.library {
  grid-column: 1;
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 18px 14px;
  border-radius: var(--radius);
  background: rgba(20, 22, 29, 0.88);
  border: 1px solid var(--line-strong);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: opacity 0.2s;
}
.library h2 { font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 2px; color: #fff; }
.lib-hint { font-size: 0.75rem; color: #94a3b8; margin: 4px 0 14px; }
.library h3 { font-family: var(--font-hw); font-size: 0.72rem; letter-spacing: 2px; color: #cbd5e1; margin: 16px 0 8px; text-transform: uppercase; font-weight: 700; }
.lib-list { display: flex; flex-direction: column; gap: 6px; }

.lib-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  text-align: left;
  border-radius: 10px;
  background: #171a22;
  border: 1px solid rgba(255, 255, 255, 0.11);
  transition: transform 0.15s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
  cursor: grab;
}
.lib-item:hover {
  transform: translateX(3px);
  border-color: color-mix(in srgb, var(--mod-color) 70%, transparent);
  background: color-mix(in srgb, var(--mod-color) 12%, #1e222d);
  box-shadow: 0 0 18px color-mix(in srgb, var(--mod-color) 22%, transparent);
}
.lib-item:active { cursor: grabbing; }
.lib-icon {
  flex: none;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 8px;
  font-size: 1.05rem;
  color: var(--mod-color);
  background: color-mix(in srgb, var(--mod-color) 18%, rgba(0, 0, 0, 0.4));
  border: 1px solid color-mix(in srgb, var(--mod-color) 45%, transparent);
}
.lib-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.lib-text b { font-size: 0.83rem; font-weight: 600; color: #f8fafc; }
.lib-text small { font-size: 0.7rem; color: #94a3b8; line-height: 1.35; }
.lib-add { color: #94a3b8; font-size: 1.1rem; transition: color 0.2s; }
.lib-item:hover .lib-add { color: var(--mod-color); }

/* ───────────── Rack-Zonen ───────────── */
.rack {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.zone {
  border-radius: var(--radius);
  background: rgba(17, 19, 25, 0.6);
  border: 1px solid var(--line);
  padding: 14px 16px 16px;
}
.zone-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.zone-head h2 { display: flex; align-items: center; gap: 9px; font-family: var(--font-hw); font-size: 0.95rem; letter-spacing: 2px; text-transform: uppercase; }
.zone-sub { font-size: 0.75rem; color: var(--text-mute); }
.zone-dot { width: 9px; height: 9px; border-radius: 50%; }
.zone-dot.src { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.zone-dot.fx { background: #6ee7a8; box-shadow: 0 0 10px #6ee7a8; }

.zone-body {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  min-height: 120px;
  border-radius: 12px;
  padding: 4px;
  transition: background 0.2s, outline-color 0.2s;
  outline: 2px dashed transparent;
  outline-offset: 2px;
}
.zone-body.drop-target,
body.dragging-source #rack-sources,
body.dragging-effect #rack-effects {
  outline-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.02);
}
.zone-body.drop-target { outline-color: var(--accent); }

.chain { align-items: center; }
.chain-pin {
  align-self: stretch;
  display: grid;
  place-items: center;
  width: 34px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 138, 61, 0.18), rgba(255, 138, 61, 0.05));
  border: 1px solid rgba(255, 138, 61, 0.3);
}
.chain-pin.out { background: linear-gradient(180deg, rgba(110, 231, 168, 0.18), rgba(110, 231, 168, 0.05)); border-color: rgba(110, 231, 168, 0.3); }
.chain-pin span { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--font-hw); font-size: 0.66rem; letter-spacing: 3px; color: var(--text-dim); font-weight: 700; }
.chain-arrow { color: var(--text-mute); font-size: 1rem; opacity: 0.6; }
.zone-body.drop-end .chain-pin.out { box-shadow: -6px 0 0 -2px var(--accent); }

.empty {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 110px;
  padding: 20px;
  border-radius: 12px;
  border: 1px dashed var(--line-strong);
  color: var(--text-mute);
  font-size: 0.85rem;
  text-align: center;
}
.empty b { color: var(--accent); }
.empty-inline { flex: 0 1 280px; min-height: 80px; }

/* ───────────── Modul-Karten ───────────── */
.module-card {
  --c: var(--mod-color);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 300px;
  padding: 0 12px 14px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--c) 9%, transparent), transparent 90px),
    linear-gradient(160deg, #1e222c, #16181f);
  border: 1px solid color-mix(in srgb, var(--c) 22%, var(--line));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: opacity 0.25s, filter 0.25s, transform 0.2s, box-shadow 0.25s, border-color 0.25s;
  animation: cardIn 0.3s ease-out;
}
.module-card::before {
  content: '';
  position: absolute;
  top: 0; left: 14px; right: 14px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--c);
  box-shadow: 0 0 12px var(--c);
}
.module-card:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--line)); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 26px color-mix(in srgb, var(--c) 10%, transparent); }
.module-card.is-src { width: 340px; }
.module-card.bypassed { filter: saturate(0.15) brightness(0.7); }
.module-card.bypassed::before { box-shadow: none; opacity: 0.4; }
.module-card.removing { opacity: 0; transform: scale(0.94); }
.module-card.drag-src { opacity: 0.35; }
.module-card.drop-before { box-shadow: -8px 0 0 -3px var(--accent), 0 8px 24px rgba(0, 0, 0, 0.35); }
.module-card.just-added { animation: cardIn 0.3s ease-out, flash 1.2s ease-out; }

@keyframes cardIn { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
@keyframes flash { 0%, 30% { box-shadow: 0 0 0 2px var(--c), 0 0 40px color-mix(in srgb, var(--c) 50%, transparent); } }

.mod-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 0 2px;
}
.mod-head[draggable='true'] { cursor: grab; }
.grip { color: var(--text-mute); font-size: 0.8rem; letter-spacing: -2px; margin-right: -2px; }
.mod-icon {
  flex: none;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 8px;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 15%, transparent);
  text-shadow: 0 0 10px var(--c);
}
.mod-titles { flex: 1; min-width: 0; }
.mod-titles h3 { font-family: var(--font-hw); font-size: 0.92rem; font-weight: 700; letter-spacing: 0.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mod-titles small { font-family: var(--font-mono); font-size: 0.62rem; color: var(--text-mute); letter-spacing: 1px; text-transform: uppercase; }
.mod-actions { display: flex; gap: 3px; }

.icon-btn {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.68rem;
  color: var(--text-dim);
  transition: 0.15s;
}
.icon-btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.09); color: var(--text); }
.icon-btn.remove:hover { background: rgba(255, 77, 94, 0.2); border-color: rgba(255, 77, 94, 0.5); color: #ffb3bb; }
.pled { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); transition: 0.2s; }
.bypassed .pled { background: #3a3f4b; box-shadow: none; }

.mod-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.opt { display: flex; flex-direction: column; gap: 3px; }
.opt span { font-family: var(--font-hw); font-size: 0.6rem; letter-spacing: 1px; color: var(--text-mute); text-transform: uppercase; }

.mod-knobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 10px 4px; padding: 6px 0 2px; }
.knob-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 2px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, outline 0.15s, transform 0.12s;
}
.knob-cell:hover {
  background: rgba(255, 255, 255, 0.05);
}
.knob-cell.is-focused {
  background: color-mix(in srgb, var(--c, var(--accent)) 18%, rgba(255, 255, 255, 0.04));
  outline: 1px solid color-mix(in srgb, var(--c, var(--accent)) 65%, transparent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--c, var(--accent)) 30%, transparent);
}
.knob-cell.is-pinned::before {
  content: attr(data-pin-slot);
  position: absolute;
  top: 0;
  right: 2px;
  z-index: 10;
  padding: 1px 4px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0b0c10;
  font-family: var(--font-hw);
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.7);
  pointer-events: none;
}
.k-label { font-family: var(--font-hw); font-size: 0.64rem; font-weight: 700; letter-spacing: 1px; color: var(--text-dim); text-transform: uppercase; }
.k-val { font-family: var(--font-mono); font-size: 0.62rem; color: var(--c); min-height: 1em; }

.mod-extra:empty { display: none; }

/* Pads (Drone & Keys) */
.pad-row { display: grid; gap: 5px; }
.pad-row-6 { grid-template-columns: repeat(6, 1fr); }
.pad-row-12 { grid-template-columns: repeat(6, 1fr); }
.pad {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 46px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #2a2f3b, #1b1e26);
  box-shadow: 0 3px 0 #0c0d11, inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.06s, background 0.15s, box-shadow 0.15s;
  touch-action: none;
}
.pad:active, .pad.active { transform: translateY(2px); box-shadow: 0 1px 0 #0c0d11, inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.pad.active {
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 55%, #2a2f3b), color-mix(in srgb, var(--c) 25%, #1b1e26));
  border-color: var(--c);
  box-shadow: 0 1px 0 #0c0d11, 0 0 16px color-mix(in srgb, var(--c) 45%, transparent);
}
.pad-note { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600; }
.pad-key { font-family: var(--font-mono); font-size: 0.56rem; color: var(--text-mute); }
.pad.active .pad-key { color: rgba(255, 255, 255, 0.75); }
.pad-led { width: 6px; height: 6px; border-radius: 50%; background: #3a3f4b; transition: 0.2s; }
.pad.active .pad-led { background: #fff; box-shadow: 0 0 8px #fff; }

/* Sequencer */
.seq-transport { display: flex; gap: 6px; margin-bottom: 8px; }
.mini-btn {
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid var(--line-strong);
  background: var(--bg-3);
  font-family: var(--font-hw);
  font-size: 0.72rem;
  font-weight: 600;
  transition: 0.15s;
}
.mini-btn:hover { background: #2f3443; }
.mini-btn.active { border-color: var(--c); color: var(--c); }

.seq-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.seq-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid transparent;
  transition: background 0.1s, border-color 0.1s;
}
.seq-col.playing { background: color-mix(in srgb, var(--c) 14%, transparent); border-color: color-mix(in srgb, var(--c) 40%, transparent); }
.seq-led { width: 7px; height: 7px; border-radius: 50%; background: #3a3f4b; transition: 0.08s; }
.seq-col.playing .seq-led { background: var(--c); box-shadow: 0 0 10px var(--c); }
.seq-slider {
  writing-mode: vertical-lr;
  direction: rtl;
  width: 18px;
  height: 64px;
  accent-color: var(--c);
  cursor: ns-resize;
}
.seq-note { font-family: var(--font-mono); font-size: 0.56rem; color: var(--text-dim); }
.seq-toggle {
  width: 22px; height: 14px;
  border-radius: 4px;
  border: 1px solid var(--c);
  background: var(--c);
  box-shadow: 0 0 8px color-mix(in srgb, var(--c) 50%, transparent);
}
.seq-col.off .seq-toggle { background: transparent; border-color: var(--line-strong); box-shadow: none; }
.seq-col.off .seq-slider, .seq-col.off .seq-note { opacity: 0.35; }

/* ───────────── Knobs ───────────── */
.hw-knob-container { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hw-knob {
  position: relative;
  border-radius: 50%;
  cursor: ns-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.25);
  outline: none;
  touch-action: none;
}
.hw-knob:focus-visible, .hw-knob.is-focused {
  outline: 2px solid var(--accent);
  box-shadow: 0 0 16px var(--accent), 0 4px 10px rgba(0, 0, 0, 0.5);
}
.knob-lg { width: 68px; height: 68px; }
.knob-lg .knob-indicator::after {
  top: 4px;
  width: 4px;
  height: 14px;
  border-radius: 3px;
}
.knob-med { width: 42px; height: 42px; }
.knob-sm { width: 32px; height: 32px; }
.knob-body { width: 100%; height: 100%; border-radius: 50%; position: relative; }
.knob-indicator { position: absolute; inset: 0; pointer-events: none; }
.knob-indicator::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 9px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
}
.knob-mod .knob-body {
  background:
    radial-gradient(circle at 50% 50%, #3a3f4b 0 52%, transparent 53%),
    conic-gradient(from 225deg, color-mix(in srgb, var(--c, #888) 75%, #000), var(--c, #888) 40%, color-mix(in srgb, var(--c, #888) 60%, #000) 75%, transparent 75%),
    #111;
  border: 2px solid #0a0b0e;
}
.knob-mod .knob-indicator::after { background: var(--c, #fff); box-shadow: 0 0 6px var(--c, #fff); }
.knob-mod:hover { box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5), 0 0 14px color-mix(in srgb, var(--c, #888) 35%, transparent); }
.knob-white .knob-body { background: radial-gradient(circle, #f8f9fa 0%, #dee2e6 70%, #adb5bd 100%); border: 2px solid #6c757d; }
.knob-white .knob-indicator::after { background: #111; }

/* ───────────── Fokus-Dock (Große Regler links) ───────────── */
.focus-dock {
  background: rgba(18, 21, 29, 0.95);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.focus-dock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.focus-dock-title {
  display: flex;
  align-items: center;
  gap: 7px;
}

.focus-dock-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #374151;
  transition: all 0.2s;
}

.focus-dock-led.on {
  background: #f59e0b;
  box-shadow: 0 0 10px #f59e0b;
}

.focus-dock-name {
  font-family: var(--font-hw);
  font-size: 0.76rem;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: #f1f5f9;
}

.focus-dock-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.focus-dock-clear {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-mute);
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s;
}

.focus-dock-clear:hover {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.1);
}

.focus-dock-empty {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--line);
  color: var(--text-dim);
  font-size: 0.72rem;
  line-height: 1.35;
}

.focus-dock-hint-icon {
  font-size: 1rem;
  flex: none;
}

.focus-dock-empty b {
  color: #fbbf24;
}

.focus-dock-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.focus-card {
  --c: var(--mod-color, var(--accent));
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--c) 12%, transparent), transparent 60px),
    linear-gradient(160deg, #1b1e27, #13151c);
  border: 1px solid color-mix(in srgb, var(--c) 35%, var(--line));
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  animation: cardIn 0.2s ease-out;
}

.focus-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.focus-slot-num {
  font-family: var(--font-hw);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.5);
}

.focus-mod-name {
  flex: 1;
  font-family: var(--font-hw);
  font-size: 0.72rem;
  letter-spacing: 1px;
  color: var(--c);
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.focus-btn-close {
  background: transparent;
  border: none;
  color: var(--text-mute);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: all 0.15s;
}

.focus-btn-close:hover {
  color: #f87171;
  background: rgba(248, 113, 113, 0.15);
}

.focus-param-title {
  font-family: var(--font-hw);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #f8fafc;
  text-transform: uppercase;
  text-align: center;
}

.focus-control-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.focus-knob-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-nudge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: #cbd5e1;
  font-size: 0.68rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-nudge:hover {
  background: color-mix(in srgb, var(--c) 25%, transparent);
  border-color: var(--c);
  color: #fff;
  transform: scale(1.08);
}

.btn-nudge:active {
  transform: scale(0.94);
}

.focus-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.focus-val {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--c);
  letter-spacing: 0.5px;
}

.btn-focus-reset {
  background: transparent;
  border: none;
  color: var(--text-mute);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: all 0.15s;
}

.btn-focus-reset:hover {
  color: #fbbf24;
  transform: rotate(45deg);
}

/* ───────────── Statusbar & Toast ───────────── */
.statusbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(20, 22, 29, 0.6);
  border: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--text-dim);
}
kbd { font-family: var(--font-mono); font-size: 0.7rem; padding: 1px 5px; border-radius: 4px; background: var(--bg-3); border: 1px solid var(--line-strong); }
.status { display: flex; align-items: center; gap: 8px; font-family: var(--font-hw); }
.status-led { width: 8px; height: 8px; border-radius: 50%; background: #444; }
.status-led.on { background: var(--ok); box-shadow: 0 0 8px var(--ok); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 600;
  transform: translate(-50%, 20px);
  padding: 11px 20px;
  border-radius: 11px;
  background: rgba(30, 34, 44, 0.95);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ───────────── Modular Patch-Kabel & Buchsen (Hardware Jacks) ───────────── */
.patch-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 40;
}

.btn-cables .cable-dot { width: 9px; height: 9px; border-radius: 50%; background: #fbbf24; box-shadow: 0 0 8px #fbbf24; }
.btn-cables.on { border-color: rgba(251, 191, 36, 0.5); background: #262112; color: #fef3c7; }

.zone-dot.ctrl { background: #06b6d4; box-shadow: 0 0 10px #06b6d4; }
body.dragging-control #rack-controls { outline-color: rgba(6, 182, 212, 0.4); background: rgba(6, 182, 212, 0.04); }
.module-card.is-control { width: 330px; }

/* ── Hardware Jack Strip ── */
.mod-patchbay-strip {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 6px;
  padding: 8px 10px;
  margin: 2px 0 4px;
  border-radius: 10px;
  background: rgba(10, 12, 17, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
  flex-wrap: wrap;
}

.jack-socket-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: none;
}

.jack-lbl {
  font-family: var(--font-hw);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--text-mute);
  text-transform: uppercase;
  user-select: none;
}

.hw-jack {
  position: relative;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #475569, #1e293b 70%, #0f172a);
  border: 1.5px solid #334155;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.15s, border-color 0.2s, box-shadow 0.2s;
}

.hw-jack:hover {
  transform: scale(1.15);
  border-color: #cbd5e1;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
}

.jack-bezel {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.jack-hole {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #090b10;
  border: 1.5px solid #1e2533;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.95);
  pointer-events: none;
}

.jack-led {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.08s, box-shadow 0.08s;
  pointer-events: none;
}

/* Signal Farb-Kodierung */
.jack-socket-wrap.sig-clock .hw-jack { border-color: rgba(6, 182, 212, 0.45); }
.jack-socket-wrap.sig-gate .hw-jack { border-color: rgba(251, 191, 36, 0.45); }
.jack-socket-wrap.sig-pitch .hw-jack { border-color: rgba(168, 85, 247, 0.45); }
.jack-socket-wrap.sig-mod .hw-jack { border-color: rgba(16, 185, 129, 0.45); }

.hw-jack.patched {
  border-color: #f1f5f9;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}
.jack-socket-wrap.sig-gate .hw-jack.patched { border-color: #fbbf24; box-shadow: 0 0 12px rgba(251, 191, 36, 0.6); }
.jack-socket-wrap.sig-pitch .hw-jack.patched { border-color: #a855f7; box-shadow: 0 0 12px rgba(168, 85, 247, 0.6); }
.jack-socket-wrap.sig-mod .hw-jack.patched { border-color: #10b981; box-shadow: 0 0 12px rgba(16, 185, 129, 0.6); }
.jack-socket-wrap.sig-clock .hw-jack.patched { border-color: #06b6d4; box-shadow: 0 0 12px rgba(6, 182, 212, 0.6); }

.hw-jack.jack-hover-target {
  transform: scale(1.3);
  border-color: #ffffff;
  box-shadow: 0 0 22px #ffffff, 0 0 40px rgba(251, 191, 36, 0.85);
  animation: jackSnapPulse 0.4s infinite alternate;
}
@keyframes jackSnapPulse {
  to { transform: scale(1.4); box-shadow: 0 0 28px #ffffff; }
}

.hw-jack.flash .jack-led,
.hw-jack .jack-led.flash {
  background: #fbbf24;
  box-shadow: 0 0 10px #fbbf24, 0 0 20px #fbbf24;
}

/* ── Zusätzliche Modul-UIs ── */
/* Master Clock */
.clock-display {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}
.clock-leds {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 3px;
}
.c-led {
  height: 6px;
  border-radius: 2px;
  background: #232733;
  transition: background 0.08s;
}
.c-led.downbeat { background: #374151; }
.c-led.active { background: #06b6d4; box-shadow: 0 0 8px #06b6d4; }
.clock-badge { font-family: var(--font-hw); font-size: 0.75rem; color: #06b6d4; font-weight: 700; text-align: center; }

/* Clock Divider */
.divider-meters {
  display: flex;
  justify-content: space-around;
  gap: 6px;
  padding: 6px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}
.div-cell { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.d-label { font-family: var(--font-hw); font-size: 0.62rem; color: var(--text-mute); }
.d-led { width: 10px; height: 10px; border-radius: 50%; background: #1e2533; border: 1px solid #334155; }
.d-led.flash { background: #38bdf8; box-shadow: 0 0 10px #38bdf8; }

/* Euclidean */
.euclid-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.euclid-canvas {
  width: 160px;
  height: 90px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
}
.euclid-stats { font-family: var(--font-hw); font-size: 0.7rem; color: #f59e0b; font-weight: 600; }

/* Probability Gate */
.prob-display {
  display: flex;
  justify-content: space-around;
  gap: 10px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}
.prob-dot { font-family: var(--font-hw); font-size: 0.7rem; font-weight: 700; padding: 4px 10px; border-radius: 6px; }
.prob-dot.pass { color: #4ade80; background: rgba(74, 222, 128, 0.1); border: 1px solid rgba(74, 222, 128, 0.2); }
.prob-dot.pass.flash { background: #4ade80; color: #000; box-shadow: 0 0 14px #4ade80; }
.prob-dot.drop { color: #f87171; background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.2); }
.prob-dot.drop.flash { background: #f87171; color: #000; box-shadow: 0 0 14px #f87171; }

/* Random Walk */
.walk-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}
.walk-note { font-family: var(--font-hw); font-size: 0.8rem; font-weight: 700; color: #c084fc; text-align: center; }
.walk-trail {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 28px;
  gap: 4px;
}
.w-bar {
  flex: 1;
  background: #374151;
  border-radius: 2px 2px 0 0;
  transition: height 0.1s;
}
.w-bar.active { background: #a855f7; box-shadow: 0 0 8px #a855f7; }

/* Scale Quantizer */
.quant-note {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}
.q-txt { font-family: var(--font-hw); font-size: 1.1rem; font-weight: 700; color: #c084fc; }
.quant-note small { font-size: 0.65rem; color: var(--text-mute); }

/* Slow Random */
.mod-meter-wrap {
  padding: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}
.mod-meter-bar {
  height: 8px;
  background: #1e293b;
  border-radius: 4px;
  overflow: hidden;
}
.mod-meter-fill {
  height: 100%;
  width: 50%;
  background: linear-gradient(90deg, #10b981, #34d399);
  box-shadow: 0 0 10px #10b981;
  transition: width 0.05s linear;
}

/* Macro Controller */
.macro-row {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}
.macro-seed-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-hw);
}
.seed-lbl { font-size: 0.7rem; color: var(--text-mute); font-weight: 700; }
.seed-val { font-size: 0.95rem; font-weight: 700; color: #fb923c; min-width: 44px; }

/* Drum Rack */
.drum-pads {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 4px 0;
}
.d-pad {
  padding: 10px 4px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--bg-3);
  font-family: var(--font-hw);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 1px;
  color: var(--text-dim);
  transition: background 0.1s, transform 0.1s, box-shadow 0.1s;
}
.d-pad:hover { background: #374151; color: #fff; transform: translateY(-1px); }
.d-pad:active,
.d-pad.flash {
  background: #e11d48;
  color: #fff;
  box-shadow: 0 0 18px #e11d48;
  transform: scale(0.96);
}

/* Voice preview */
.voice-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}
.v-note {
  font-family: var(--font-hw);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--mod-color);
  transition: color 0.1s;
}
.v-note.flash {
  color: #fff;
  text-shadow: 0 0 10px var(--mod-color);
}

/* ───────────── Mixer Kanalzug (Pan & Aux Sends) ───────────── */
.mod-channel-strip {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
}
.strip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.strip-title {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-mute);
  text-transform: uppercase;
}
.strip-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.strip-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.strip-lbl {
  font-family: var(--font-hw);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}
.strip-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: #1e2230;
  outline: none;
  cursor: pointer;
}
.strip-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid #475569;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: transform 0.1s, background 0.1s;
}
.strip-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: var(--accent);
}
.strip-val {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: #94a3b8;
  min-height: 1.1em;
}

/* ───────────── Slope Generator Display ───────────── */
.slope-meter-wrap {
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.slope-bar {
  height: 8px;
  background: #1e293b;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}
.slope-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #eab308, #facc15);
  box-shadow: 0 0 12px #eab308;
  transition: width 0.04s linear;
}
.slope-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.65rem;
}
.slope-stage {
  font-weight: 700;
  color: var(--text-mute);
}
.slope-stage.is-rise { color: #4ade80; text-shadow: 0 0 6px #4ade80; }
.slope-stage.is-fall { color: #f87171; text-shadow: 0 0 6px #f87171; }
.slope-stage.is-sustain { color: #38bdf8; text-shadow: 0 0 6px #38bdf8; }
.slope-val {
  color: #eab308;
  font-weight: 700;
}

/* ───────────── Responsive ───────────── */
@media (max-width: 1100px) {
  .workspace { grid-template-columns: 1fr; }
  .library { grid-column: auto; position: static; max-height: none; }
  .rack { grid-column: auto; }
  .lib-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}
@media (max-width: 720px) {
  .topbar { position: static; }
  .module-card, .module-card.is-src, .module-card.is-control { width: 100%; }
  .chain-arrow { transform: rotate(90deg); width: 100%; text-align: center; }
  .chain-pin { width: 100%; height: 30px; }
  .chain-pin span { writing-mode: horizontal-tb; transform: none; }
}

/* ───────────── Infoboxen (Smart Tooltips) ───────────── */
.synth-infobox {
  position: fixed;
  z-index: 1200;
  pointer-events: none;
  max-width: 320px;
  min-width: 200px;
  padding: 10px 14px;
  border-radius: 11px;
  background: rgba(14, 17, 24, 0.94);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 4px solid var(--info-accent, var(--accent));
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65), 0 0 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.synth-infobox.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.info-badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.info-badge {
  font-family: var(--font-hw);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.info-badge.out { background: rgba(56, 189, 248, 0.15); color: #7dd3fc; border-color: rgba(56, 189, 248, 0.4); }
.info-badge.in { background: rgba(251, 146, 60, 0.15); color: #fdba74; border-color: rgba(251, 146, 60, 0.4); }
.info-badge.sig { font-family: var(--font-mono); font-size: 0.62rem; }
.info-title {
  font-family: var(--font-hw);
  font-size: 0.84rem;
  color: #fff;
  margin-bottom: 4px;
}
.info-title b { color: #f8fafc; }
.info-desc {
  font-size: 0.76rem;
  line-height: 1.35;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.info-conn-state {
  margin-top: 6px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  line-height: 1.3;
}
.info-conn-state.connected {
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: #86efac;
}
.info-conn-state.empty {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  color: var(--text-mute);
}
.info-val-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  background: rgba(255, 138, 61, 0.12);
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 4px;
}
.info-hint { font-size: 0.68rem; color: var(--text-mute); }
.info-pill {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.3);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  margin: 2px;
}
.pills-wrap { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; }

/* Statusbar hints & guide link */
.status-hints {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-guide-link {
  background: transparent;
  border: none;
  font-family: var(--font-hw);
  font-size: 0.75rem;
  font-weight: 600;
  color: #818cf8;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}
.footer-guide-link:hover {
  color: #a5b4fc;
}

/* Modul-Info Button */
.mod-info-btn {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-mute);
}
.mod-info-btn:hover {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(56, 189, 248, 0.15);
}

/* ───────────── Erklärungs- & Handbuch-Modal ───────────── */
.guide-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.guide-modal.open {
  opacity: 1;
  visibility: visible;
}
.guide-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 13, 0.82);
  backdrop-filter: blur(10px);
}
.guide-window {
  position: relative;
  z-index: 2;
  width: min(1040px, 94vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, #181c26, #0e1017);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 100px rgba(99, 102, 241, 0.12);
  overflow: hidden;
}
.guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.guide-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}
.guide-logo {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #818cf8, #6366f1);
  color: #fff;
  font-size: 1.3rem;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}
.guide-header h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 1.5px;
  margin-bottom: 2px;
}
.guide-header p {
  font-size: 0.8rem;
  color: var(--text-dim);
}
.guide-close {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: var(--bg-3);
  color: var(--text-dim);
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  transition: 0.15s;
}
.guide-close:hover {
  background: #374151;
  color: #fff;
  transform: scale(1.05);
}

.guide-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 24px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}
.guide-tabs::-webkit-scrollbar {
  height: 4px;
}
.guide-tabs::-webkit-scrollbar-track {
  background: transparent;
}
.guide-tabs::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}
.guide-tabs::-webkit-scrollbar-thumb:hover {
  background: rgba(6, 182, 212, 0.4);
}
.guide-tab-btn {
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  font-family: var(--font-hw);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  cursor: pointer;
  white-space: nowrap;
  transition: 0.15s;
}
.guide-tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}
.guide-tab-btn.active {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.5);
  color: #c7d2fe;
}

.guide-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}
.guide-tab-pane {
  display: none;
}
.guide-tab-pane.active {
  display: block;
  animation: fadeIn 0.2s ease-out;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.guide-hero {
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  margin-bottom: 24px;
}
.guide-hero h3 {
  font-family: var(--font-hw);
  font-size: 1.1rem;
  color: var(--accent-2);
  margin-bottom: 6px;
}
.guide-hero p {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-dim);
}

.guide-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}
.guide-step-card {
  position: relative;
  padding: 18px 16px;
  border-radius: 12px;
  background: rgba(25, 28, 38, 0.6);
  border: 1px solid var(--line);
}
.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 138, 61, 0.18);
  border: 1px solid var(--accent);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-family: var(--font-hw);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 10px;
}
.guide-step-card h4 {
  font-family: var(--font-hw);
  font-size: 0.92rem;
  margin-bottom: 6px;
  color: #fff;
}
.guide-step-card p {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-dim);
}

.signal-types-table {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sig-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(20, 23, 31, 0.6);
  border: 1px solid var(--line);
  flex-wrap: wrap;
}
.sig-pill {
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-hw);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.5px;
  min-width: 150px;
  text-align: center;
}
.sig-details {
  flex: 1;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--text-dim);
}
.sig-details b { color: #fff; }

.zones-explainer {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.zone-box {
  padding: 18px 20px;
  border-radius: 12px;
  background: rgba(20, 23, 31, 0.7);
  border: 1px solid var(--line);
}
.zone-box.ctrl-border { border-left: 5px solid #06b6d4; }
.zone-box.src-border { border-left: 5px solid #14b8a6; }
.zone-box.fx-border { border-left: 5px solid #ff5d73; }
.zone-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 4px;
}
.zone-box h4 {
  font-family: var(--font-hw);
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 6px;
}
.zone-box p {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.zone-note {
  font-size: 0.78rem;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-mute);
}
.zone-connector {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  padding: 2px;
}

.module-search-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.module-search-bar input {
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  font-size: 0.88rem;
  outline: none;
  color: #fff;
}
.module-search-bar input:focus {
  border-color: #818cf8;
}
.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-pills .pill {
  padding: 6px 14px;
  border-radius: 7px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  font-family: var(--font-hw);
  font-size: 0.76rem;
  color: var(--text-dim);
  cursor: pointer;
  transition: 0.15s;
}
.filter-pills .pill:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.filter-pills .pill.active {
  background: #374151;
  color: #fff;
  border-color: #818cf8;
}

.guide-modules-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
}
.g-mod-card {
  padding: 16px;
  border-radius: 12px;
  background: rgba(20, 23, 31, 0.7);
  border: 1px solid var(--line);
  border-top: 3px solid var(--card-color, var(--accent));
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.g-mod-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.g-mod-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}
.g-mod-titles h4 {
  font-family: var(--font-hw);
  font-size: 0.95rem;
  color: #fff;
}
.g-mod-cat {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-mute);
  text-transform: uppercase;
}
.g-mod-desc {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-dim);
}
.g-mod-params {
  font-size: 0.74rem;
  color: var(--text-mute);
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
}
.g-mod-params code {
  color: #cbd5e1;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 4px;
  border-radius: 3px;
}
.g-mod-jacks {
  font-size: 0.74rem;
  color: var(--text-mute);
}
.g-jacks-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}
.g-jack-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid;
  font-family: var(--font-mono);
  font-size: 0.68rem;
}
.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.chip-type { font-weight: 700; }
.chip-name { color: #f1f5f9; }

.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.recipe-card {
  padding: 18px;
  border-radius: 12px;
  background: rgba(20, 23, 31, 0.7);
  border: 1px solid var(--line);
}
.recipe-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent);
  margin-bottom: 6px;
}
.recipe-card h4 {
  font-family: var(--font-hw);
  font-size: 1rem;
  color: #fff;
  margin-bottom: 8px;
}
.recipe-card p {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.recipe-steps {
  padding-left: 20px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text-dim);
}
.recipe-steps code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 4px;
  border-radius: 3px;
  color: #f8fafc;
}

.shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.sc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(20, 23, 31, 0.6);
  border: 1px solid var(--line);
  font-size: 0.78rem;
}
.sc-item kbd {
  background: #1e2230;
  border-color: #374151;
  color: #e2e8f0;
}
.guide-empty-search {
  padding: 40px;
  text-align: center;
  color: var(--text-mute);
  font-size: 0.9rem;
  grid-column: 1 / -1;
}


/* ───────────── Neue Instrumente: Mutation, Morph, Resonator, Swarm, Granular ───────────── */
.voice-body { display: flex; flex-direction: column; gap: 6px; }
.mut-panel { margin-top: 8px; padding: 7px 8px; border-radius: 9px; background: rgba(0, 0, 0, 0.22); border: 1px solid var(--line); }
.mut-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.mut-hint { font-family: var(--font-mono); font-size: 0.56rem; color: var(--text-mute); letter-spacing: 0.5px; }
.mut-go.flash, .sc-mut.flash { border-color: var(--c); color: #fff; box-shadow: 0 0 14px var(--c); transform: scale(0.96); }
.lock-row { display: flex; flex-wrap: wrap; gap: 4px; }
.lock-chip {
  padding: 2px 7px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03); font-family: var(--font-hw); font-size: 0.6rem;
  letter-spacing: 0.4px; color: var(--text-dim); transition: 0.15s;
}
.lock-chip:hover { background: rgba(255, 255, 255, 0.09); color: var(--text); }
.lock-chip.on { border-color: var(--c); color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }

.morph-strip { display: flex; flex-direction: column; gap: 3px; }
.morph-track {
  position: relative; height: 8px; border-radius: 6px;
  background: linear-gradient(90deg, #6366f1, #c084fc, #f472b6, #fb923c, #facc15, #34d399, #38bdf8, #e2e8f0);
  opacity: 0.85; box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}
.morph-marker {
  position: absolute; top: -3px; width: 4px; height: 14px; margin-left: -2px; border-radius: 2px;
  background: #fff; box-shadow: 0 0 8px #fff; transition: left 0.08s linear;
}
.morph-names { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.5rem; color: var(--text-mute); }

.perc-pads { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.perc-pads .d-pad { height: 34px; font-size: 0.64rem; }
.perc-pads .d-pad.flash { background: var(--c); box-shadow: 0 0 16px var(--c); }

.garden-canvas { width: 100%; height: 44px; border-radius: 8px; background: rgba(0, 0, 0, 0.3); }
.swarm-canvas { height: 52px; }
.swarm-actions { display: flex; gap: 6px; }
.swarm-actions .mini-btn { flex: 1; }

.cloud-wrap { position: relative; }
.cloud-canvas { width: 100%; height: 46px; border-radius: 8px; background: rgba(0, 0, 0, 0.3); transition: box-shadow 0.1s; }
.cloud-canvas.flash { box-shadow: 0 0 14px var(--c); }
.cloud-label { position: absolute; left: 8px; bottom: 3px; font-family: var(--font-mono); font-size: 0.55rem; color: rgba(255, 255, 255, 0.7); text-shadow: 0 1px 2px #000; pointer-events: none; }
.cloud-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.cloud-actions .mini-btn { flex: 1; padding: 5px 6px; font-size: 0.64rem; white-space: nowrap; }
.mini-btn.rec-on { border-color: var(--rec); color: var(--rec); animation: recPulse 1s infinite; }
@keyframes recPulse { 50% { box-shadow: 0 0 12px var(--rec); } }

/* Scene Conductor */
.module-card[data-type="scene_conductor"] { width: 460px; }
.scene-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.scene-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 4px;
  border-radius: 10px; border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #232733, #171a22); transition: 0.18s;
}
.scene-btn .sc-ic { font-size: 1.1rem; }
.scene-btn .sc-nm { font-family: var(--font-hw); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.5px; color: var(--text-dim); }
.scene-btn:hover { transform: translateY(-1px); border-color: var(--c); }
.scene-btn.active {
  border-color: var(--c); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 38%, #232733), color-mix(in srgb, var(--c) 14%, #171a22));
  box-shadow: 0 0 18px color-mix(in srgb, var(--c) 40%, transparent);
}
.scene-btn.active .sc-nm { color: #fff; }
.scene-btn.pending { animation: scenePending 0.7s ease-in-out infinite; border-style: dashed; }
@keyframes scenePending { 50% { border-color: #fff; box-shadow: 0 0 14px var(--c); } }
.scene-progress { height: 4px; margin: 7px 0; border-radius: 3px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.scene-progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--c), #fff); transition: width 0.2s linear; }
.scene-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.scene-actions .mini-btn { flex: 1; padding: 5px 6px; font-size: 0.64rem; white-space: nowrap; }
.scene-grid { display: flex; flex-direction: column; gap: 3px; padding: 6px; border-radius: 9px; background: rgba(0, 0, 0, 0.28); }
.scene-lane { display: grid; grid-template-columns: 46px 20px 1fr; align-items: center; gap: 5px; transition: opacity 0.2s; }
.scene-lane.muted { opacity: 0.35; }
.lane-lbl { text-align: left; font-family: var(--font-hw); font-size: 0.58rem; font-weight: 700; letter-spacing: 0.6px; color: var(--lc); background: none; border: none; padding: 0; }
.lane-lock { font-size: 0.6rem; background: none; border: none; opacity: 0.45; padding: 0; transition: 0.15s; }
.lane-lock:hover, .lane-lock.on { opacity: 1; }
.lane-cells { display: grid; grid-template-columns: repeat(16, 1fr); gap: 2px; }
.lane-cell {
  height: 13px; border-radius: 3px; background: color-mix(in srgb, var(--lc) calc(var(--p, 0) * 100%), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.04); transition: transform 0.08s, box-shadow 0.08s;
}
.lane-cell.beat { border-color: rgba(255, 255, 255, 0.13); }
.lane-cell.now { outline: 1px solid rgba(255, 255, 255, 0.55); outline-offset: -1px; }
.lane-cell.hit { transform: scale(1.2); box-shadow: 0 0 9px var(--lc); background: var(--lc); }
.scene-status { margin-top: 7px; font-family: var(--font-mono); font-size: 0.62rem; color: var(--text-dim); min-height: 1.2em; }
.scene-status b { color: var(--text); }

/* ───────────── Tutorials & Green Modulation Guide ───────────── */
.tut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
  gap: 16px;
  margin-top: 14px;
}
@media (max-width: 900px) {
  .tut-grid { grid-template-columns: 1fr; }
}
.tut-card {
  background: rgba(16, 22, 28, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--tut-color, var(--accent));
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.tut-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}
.tut-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.tut-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tut-icon {
  font-size: 1.4rem;
}
.tut-title-wrap h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  margin: 0;
}
.tut-badge {
  font-family: var(--font-hw);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}
.tut-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-dim);
  margin: 0;
}
.tut-desc b {
  color: var(--text);
}
.tut-section-lbl {
  font-family: var(--font-hw);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 6px;
}
.green-jacks-box {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.green-jack-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.8rem;
  line-height: 1.4;
}
.green-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #10b98122;
  border: 1px solid #10b98155;
  color: #10b981;
  padding: 2px 6px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}
.green-chip.out::before { content: 'OUT: '; font-size: 0.6rem; opacity: 0.8; }
.green-chip.in::before { content: 'IN: '; font-size: 0.6rem; opacity: 0.8; }
.tut-patch-scheme {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.scheme-cable {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  flex-wrap: wrap;
}
.scheme-arrow {
  color: #10b981;
  font-weight: 700;
}
.sonic-effect {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid #10b981;
  padding: 6px 10px;
  border-radius: 0 6px 6px 0;
}
.tut-action-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}
.btn-auto-patch {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-family: var(--font-hw);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  transition: transform 0.12s, box-shadow 0.12s, background 0.2s;
}
.btn-auto-patch:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.5);
  background: linear-gradient(135deg, #047857, #059669);
}
.btn-auto-patch:active {
  transform: translateY(1px);
}
.btn-auto-patch.done {
  background: #1f2937;
  color: #34d399;
  border: 1px solid #10b981;
}

/* Green Modulation Matrix Guide */
.green-guide-intro {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(6, 182, 212, 0.08));
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 20px;
}
.green-guide-intro h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #a7f3d0;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.green-rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}
@media (max-width: 800px) {
  .green-rules-grid { grid-template-columns: 1fr; }
}
.green-rule-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 8px;
  padding: 12px;
}
.green-rule-card h5 {
  font-family: var(--font-hw);
  font-size: 0.8rem;
  color: #34d399;
  margin-bottom: 4px;
}
.green-rule-card p {
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-dim);
  margin: 0;
}
.green-matrix-table {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.matrix-row {
  background: rgba(22, 27, 34, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 4px solid #10b981;
  border-radius: 10px;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 240px 30px 240px 1fr 140px;
  align-items: center;
  gap: 12px;
  transition: border-color 0.15s, background 0.15s;
}
@media (max-width: 1024px) {
  .matrix-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
.matrix-row:hover {
  background: rgba(27, 34, 44, 0.95);
  border-color: rgba(16, 185, 129, 0.4);
}
.matrix-socket {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.matrix-socket .m-mod { font-size: 0.72rem; color: var(--text-dim); }
.matrix-socket .m-jack { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; color: #34d399; }
.matrix-arrow { text-align: center; color: #10b981; font-weight: 700; font-size: 1.1rem; }
.matrix-effect { font-size: 0.8rem; line-height: 1.4; color: #cbd5e1; }
.matrix-effect b { color: #fff; }
.matrix-action { display: flex; justify-content: flex-end; }

/* Tooltip green tips */
.info-green-tips {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 7px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-size: 0.76rem;
  line-height: 1.4;
}
.green-tip-title {
  font-family: var(--font-hw);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.5px;
  color: #34d399;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.green-tip-body {
  color: #e2e8f0;
}
.green-tip-body b {
  color: #a7f3d0;
}

/* Lexicon Module Examples */
.g-mod-example {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.g-mod-example-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.g-mod-example-head .ex-lbl {
  font-family: var(--font-hw);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #34d399;
}
.btn-example-load {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 5px 10px;
  font-family: var(--font-hw);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, background 0.18s;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}
.btn-example-load:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.5);
  background: linear-gradient(135deg, #047857, #059669);
}
.btn-example-load.done {
  background: #1f2937;
  color: #34d399;
  border: 1px solid #10b981;
}
.ex-text {
  font-size: 0.78rem;
  line-height: 1.4;
  color: #e2e8f0;
  margin: 0;
}
.ex-wiring {
  font-size: 0.74rem;
  color: var(--text-dim);
}
.ex-wiring code {
  color: #a7f3d0;
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 5px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

/* ───────────────────────── Beispiel-Boards Galerie ── */
.btn-boards-top {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.22), rgba(16, 185, 129, 0.22));
  border: 1px solid rgba(6, 182, 212, 0.5);
  color: #a5f3fc;
  font-weight: 700;
  transition: all 0.16s ease;
}
.btn-boards-top:hover {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.38), rgba(16, 185, 129, 0.38));
  border-color: #38bdf8;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.35);
}

.boards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.board-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(145deg, rgba(20, 24, 33, 0.85), rgba(13, 16, 23, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s, box-shadow 0.2s;
}

.board-card:hover {
  transform: translateY(-2px);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 20px rgba(6, 182, 212, 0.15);
}

.board-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #06b6d4, #10b981, #a855f7);
  opacity: 0.6;
}

.board-card-head {
  margin-bottom: 10px;
}

.board-card-title-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.board-card-title-wrap h4 {
  margin: 0;
  font-family: var(--font-hw);
  font-size: 1.05rem;
  letter-spacing: 0.3px;
  color: #f8fafc;
  line-height: 1.3;
}

.board-card-badge {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #67e8f9;
  letter-spacing: 0.5px;
}

.board-card-desc {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #cbd5e1;
  margin: 0 0 14px 0;
  flex-grow: 1;
}

.board-card-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-dim);
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 10px;
}

.board-card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 16px;
}

.b-mod-pill {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

.b-mod-pill.more {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.25);
  color: #38bdf8;
  font-weight: 600;
}

.board-card-action {
  margin-top: auto;
}

.btn-load-board {
  width: 100%;
  background: linear-gradient(135deg, #059669 0%, #0d9488 50%, #0284c7 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  font-family: var(--font-hw);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(13, 148, 136, 0.35);
  transition: all 0.16s ease;
}

.btn-load-board:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(13, 148, 136, 0.6);
  background: linear-gradient(135deg, #047857 0%, #0f766e 50%, #0369a1 100%);
}

/* ───────────── Preset-Bar & Performance Slots (1–5, Speed 6–8) ───────────── */
.preset-bar-strip {
  width: 100%;
  background: linear-gradient(180deg, rgba(26, 29, 37, 0.95), rgba(18, 20, 26, 0.98));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 10;
}

.preset-bar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.preset-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.preset-bar-lbl {
  font-family: var(--font-hw);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.preset-bar-lbl .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #06b6d4;
  box-shadow: 0 0 8px #06b6d4;
}

.preset-divider {
  width: 1px;
  height: 24px;
  background: var(--line-strong);
}

.slot-buttons-group, .speed-buttons-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-slot {
  position: relative;
  width: 44px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  font-family: var(--font-hw);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dim);
  transition: all 0.15s ease;
}

.btn-slot .slot-num {
  line-height: 1;
}

.btn-slot .slot-led {
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
  margin-top: 3px;
  transition: all 0.2s ease;
}

.btn-slot:hover {
  background: var(--bg-3);
  border-color: rgba(6, 182, 212, 0.4);
  color: #fff;
  transform: translateY(-1px);
}

.btn-slot.has-preset .slot-led {
  background: #06b6d4;
  box-shadow: 0 0 6px #06b6d4;
}

.btn-slot.has-preset {
  border-color: rgba(6, 182, 212, 0.35);
  color: #e2e8f0;
}

.btn-slot.is-active {
  background: linear-gradient(145deg, #0e7490, #155e75);
  border-color: #22d3ee;
  color: #fff;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.45);
}

.btn-slot.is-active .slot-led {
  background: #fff;
  box-shadow: 0 0 10px #fff;
}

.btn-speed {
  font-size: 0.74rem;
  padding: 6px 11px;
  background: var(--bg-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-dim);
  border-radius: 7px;
  transition: all 0.15s ease;
}

.btn-speed:hover {
  background: var(--bg-3);
  color: #fff;
}

.btn-speed.active {
  background: linear-gradient(135deg, #d97706, #b45309);
  border-color: #f59e0b;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.btn-save-slot {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.btn-save-slot:hover {
  background: rgba(245, 158, 11, 0.28);
  border-color: #fbbf24;
}

.btn-slot-modules {
  background: var(--bg-2);
  font-size: 0.78rem;
}

/* Modul-Auswahl Modal */
.slot-module-modal {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: grid;
  place-items: center;
  background: rgba(4, 6, 10, 0.75);
  backdrop-filter: blur(8px);
}

.slot-module-modal.hidden {
  display: none;
}

.slot-modal-card {
  width: 90%;
  max-width: 520px;
  background: linear-gradient(165deg, #1e222c, #13151b);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.slot-modal-card .modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.slot-modal-card .modal-head h3 {
  font-family: var(--font-hw);
  font-size: 1.05rem;
  color: #fff;
}

.slot-modal-card .modal-sub {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.modal-quick-select {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.modal-quick-select .mini-btn {
  padding: 4px 10px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.74rem;
  color: var(--text-dim);
}

.modal-quick-select .mini-btn:hover {
  color: #fff;
  border-color: #06b6d4;
}

.modal-module-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 6px;
  margin-bottom: 16px;
}

.modal-mod-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.15s ease;
}

.modal-mod-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.modal-mod-item input {
  accent-color: #06b6d4;
  cursor: pointer;
}

.modal-mod-item .mod-chk-icon {
  font-size: 1.1rem;
}

.modal-mod-item .mod-chk-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: #fff;
  flex: 1;
}

.modal-mod-item .mod-chk-cat {
  font-size: 0.68rem;
  color: var(--text-mute);
  text-transform: uppercase;
  font-family: var(--font-hw);
}

.slot-modal-card .modal-foot {
  display: flex;
  justify-content: flex-end;
}

/* ───────────── Felt Piano Modul & Interaktive Klaviatur ───────────── */
.piano-interface {
  margin-top: 10px;
  padding: 10px 12px 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, #161820 0%, #0d0f14 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

.piano-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-family: var(--font-hw);
  font-size: 0.68rem;
  color: #fbbf24;
  letter-spacing: 0.5px;
}

.piano-note-display {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  padding: 1px 6px;
  background: rgba(245, 158, 11, 0.15);
  border-radius: 4px;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.piano-keyboard {
  display: flex;
  position: relative;
  height: 96px;
  background: #111;
  border-radius: 6px;
  padding: 4px;
  box-shadow: inset 0 3px 12px rgba(0, 0, 0, 0.8);
  user-select: none;
  -webkit-user-select: none;
}

.piano-key {
  position: relative;
  cursor: pointer;
  border-radius: 0 0 5px 5px;
  transition: transform 0.06s ease, background 0.08s ease;
}

.piano-key.white-key {
  flex: 1;
  height: 100%;
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 70%, #cbd5e1 100%);
  border: 1px solid #94a3b8;
  border-top: none;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 5px;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3), inset 0 -3px 3px rgba(0, 0, 0, 0.08);
}

.piano-key-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  color: #64748b;
  pointer-events: none;
}

.piano-key.white-key:hover {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
}

.piano-key.white-key.active, .piano-key.white-key:active {
  background: linear-gradient(180deg, #fef3c7 0%, #fde68a 100%);
  border-color: #f59e0b;
  transform: translateY(2px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.piano-key.black-key {
  position: absolute;
  width: 5.8%;
  height: 60%;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 70%, #020617 100%);
  border: 1px solid #000;
  border-radius: 0 0 4px 4px;
  z-index: 2;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6), inset 0 -2px 3px rgba(255, 255, 255, 0.15);
}

.piano-key.black-key:hover {
  background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
}

.piano-key.black-key.active, .piano-key.black-key:active {
  background: linear-gradient(180deg, #d97706 0%, #b45309 100%);
  border-color: #f59e0b;
  transform: translateY(2px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 0 10px rgba(245, 158, 11, 0.4);
}

/* Positionen der schwarzen Tasten relativ zu den 10 weißen Tasten (C D E F G A B C D E) */
.piano-key.black-key[data-rel="1"]  { left: 7.2%; }  /* C# */
.piano-key.black-key[data-rel="3"]  { left: 17.2%; } /* D# */
.piano-key.black-key[data-rel="6"]  { left: 37.2%; } /* F# */
.piano-key.black-key[data-rel="8"]  { left: 47.2%; } /* G# */
.piano-key.black-key[data-rel="10"] { left: 57.2%; } /* A# */
.piano-key.black-key[data-rel="13"] { left: 77.2%; } /* C#2 */
.piano-key.black-key[data-rel="15"] { left: 87.2%; } /* D#2 */

