:root {
  --bg: #0e0f11;
  --panel: #17191c;
  --panel2: #1e2125;
  --line: #2a2e33;
  --text: #e6e8eb;
  --muted: #8b929b;
  --accent: #14a0de;
  --accent2: #e8a33d;
  --danger: #e0565b;
  --ok: #5ec27a;
  --pad: #26292d;
  --pad-empty: #1b1d20;
  --radius: 10px;
  --f-T: #3d8bfd;
  --f-S: #5ec27a;
  --f-D: #e8a33d;
  --f-borrowed: #a778e8;
  --f-secondary: #e0565b;
  --f-tritone: #e05fb4;
  --f-chromatic: #8b929b;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-size: 13px; }
body { min-height: 100vh; }
button, input, select { font: inherit; color: inherit; }
button {
  background: var(--panel2); border: 1px solid var(--line); border-radius: 7px; padding: 6px 11px;
  cursor: pointer; transition: background .12s, border-color .12s, transform .05s;
}
button:hover { background: #262a2f; border-color: #3a3f46; }
button:active { transform: translateY(1px); }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
button.primary:hover { background: #1bb0f0; }
button.danger { color: var(--danger); }
button.small { padding: 3px 8px; font-size: 12px; }
button.block { width: 100%; margin: 8px 0; }
button:disabled { opacity: .4; cursor: default; }
input:not([type=checkbox]):not([type=range]), select {
  background: #111316; border: 1px solid var(--line); border-radius: 7px; padding: 5px 8px; min-width: 0;
}
input:focus, select:focus { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 0; }
input[type=number] { width: 64px; }
input[type=range] { accent-color: var(--accent); width: 90px; }
input[type=checkbox] { accent-color: var(--accent); }
.f { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); white-space: nowrap; }
.f > input, .f > select { color: var(--text); }
.f.grow { flex: 1; min-width: 200px; }
.f.grow input { flex: 1; }
.tog { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.chip { border-radius: 999px; padding: 4px 11px; font-size: 12px; }
.chip.ghost { background: transparent; }

/* Header */
.top { display: flex; align-items: center; gap: 16px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: #121417; flex-wrap: wrap; }
.brand { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 9px; align-items: center; color: inherit; text-decoration: none; white-space: nowrap; }
.brand .logo { grid-row: 1 / 3; width: 30px; height: 30px; }
.brand .logo .lp { fill: #3a3f46; }
.brand .logo .lit { fill: var(--accent); }
.brand .bt { font-size: 17px; letter-spacing: .2px; line-height: 1.1; }
.brand .bt b { font-weight: 800; }
.brand .bsub { font-size: 10px; color: var(--muted); letter-spacing: .6px; line-height: 1.2; }
.meta { display: flex; gap: 12px; align-items: center; flex: 1; flex-wrap: wrap; }
.actions { display: flex; gap: 6px; }
.midibar { display: flex; align-items: center; gap: 14px; padding: 7px 16px; border-bottom: 1px solid var(--line); background: #111316; flex-wrap: wrap; }
.midibar select { max-width: 220px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #555; flex: none; }
.dot.on { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.dot.pulse { background: var(--accent2); box-shadow: 0 0 10px var(--accent2); }
.midistatus { color: var(--muted); font-size: 12px; margin-left: auto; }

/* Layout */
.layout {
  display: grid; gap: 12px; padding: 12px 16px 16px;
  grid-template-columns: minmax(430px, 1.1fr) minmax(360px, 1fr) minmax(340px, 400px);
  grid-template-areas: "pads editor side" "kbd kbd side";
  align-items: start;
}
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px; min-width: 0; }
.padcol { grid-area: pads; }
.editor { grid-area: editor; }
.side { grid-area: side; align-self: stretch; display: flex; flex-direction: column; max-height: calc(100vh - 130px); position: sticky; top: 12px; }
.kbdcard { grid-area: kbd; }
@media (max-width: 1280px) {
  .layout { grid-template-columns: minmax(400px, 1fr) minmax(340px, 1fr); grid-template-areas: "pads editor" "kbd kbd" "side side"; }
  .side { max-height: none; position: static; }
}
@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; grid-template-areas: "pads" "editor" "kbd" "side"; padding: 10px; }
}

/* Banks & Pads */
.banks { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin-bottom: 10px; }
.banks button { position: relative; padding: 7px 0; font-weight: 700; letter-spacing: .5px; }
.banks button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.banks button .cnt { position: absolute; top: 2px; right: 4px; font-size: 9px; font-weight: 500; opacity: .75; }
.padgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; padding: 10px; background: #0b0c0e; border-radius: 12px; border: 1px solid #202327; }
.pad {
  position: relative; aspect-ratio: 1; border-radius: 9px; background: var(--pad-empty); border: 1px solid #25282c;
  cursor: pointer; user-select: none; overflow: hidden; display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 6px; transition: box-shadow .08s, transform .05s, background .15s; container-type: inline-size;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.35);
}
.pad .num { position: absolute; top: 5px; left: 7px; font-size: 10px; color: var(--muted); font-weight: 600; }
.pad .rn { position: absolute; top: 5px; right: 7px; font-size: 10.5px; font-weight: 600; opacity: .9; }
.pad .cn { font-size: clamp(11px, 17cqw, 22px); font-weight: 700; text-align: center; line-height: 1.1; word-break: break-all; }
.pad .nn { position: absolute; bottom: 5px; left: 6px; right: 6px; font-size: clamp(8px, 7.5cqw, 10px); color: rgba(255,255,255,.62); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pad.empty .cn { color: #3a3e44; font-weight: 400; font-size: 20px; }
.pad.empty:hover .cn { color: var(--muted); }
.pad.prog { background: radial-gradient(120% 120% at 50% 110%, color-mix(in srgb, var(--hue) 55%, #1a1a1a) 0%, color-mix(in srgb, var(--hue) 22%, #202226) 60%, #1f2124 100%); border-color: color-mix(in srgb, var(--hue) 50%, #2a2e33); }
.pad.prog .rn { color: color-mix(in srgb, var(--hue) 70%, #fff); }
.pad.sel { outline: 2px solid #fff; outline-offset: 2px; }
.pad.hit { transform: scale(.97); background: radial-gradient(120% 120% at 50% 80%, color-mix(in srgb, var(--hue) 95%, #fff) 0%, color-mix(in srgb, var(--hue) 70%, #111) 70%); box-shadow: 0 0 24px color-mix(in srgb, var(--hue) 70%, transparent); }
.pad.dragover { outline: 2px dashed var(--accent2); outline-offset: 2px; }
.pad .key { position: absolute; bottom: 5px; right: 6px; font-size: 9px; color: #5a6068; display: none; }
.padgrid.showkeys .pad .key { display: block; }
.padgrid.showkeys .pad .nn { right: 18px; }
.transport { display: flex; gap: 12px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.transport #playBank.playing { background: var(--accent2); border-color: var(--accent2); }
.quick { display: flex; gap: 6px; margin-top: 10px; }
.quick input { flex: 1; }

/* Editor */
.ed-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.ed-head .padid { font-size: 12px; color: var(--muted); font-weight: 600; background: var(--panel2); padding: 2px 7px; border-radius: 5px; }
.ed-head .big { font-size: 28px; font-weight: 800; letter-spacing: .2px; }
.ed-head .rn { font-size: 16px; color: var(--accent2); font-weight: 600; }
.badge { font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor; }
.ed-head .play { margin-left: auto; }
.row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 6px 0; }
.row input.chordin { flex: 1; min-width: 120px; font-size: 15px; font-weight: 600; }
.sec { margin-top: 12px; }
.sec h5 { margin: 0 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chips button { padding: 4px 9px; font-size: 12px; border-radius: 6px; }
.chips button.on { background: color-mix(in srgb, var(--accent) 30%, var(--panel2)); border-color: var(--accent); }
.chips button small { color: var(--muted); margin-left: 4px; font-size: 10.5px; }
.notesline { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; color: var(--muted); }
.notesline b { color: var(--text); font-weight: 600; }
.hint { color: var(--muted); font-size: 12px; line-height: 1.5; }
.empty-ed { padding: 26px 8px; text-align: center; }
.empty-ed .big { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; font-size: 12px; }
.kv span:nth-child(odd) { color: var(--muted); }

/* Keyboard */
.kbdbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.seg { display: inline-flex; align-items: center; gap: 6px; }
.seg span { min-width: 72px; text-align: center; color: var(--muted); }
.legend { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-left: 6px; }
.lg.chord { background: var(--accent); }
.lg.root { background: var(--accent2); }
.lg.scale { background: color-mix(in srgb, var(--ok) 55%, transparent); }
.lg.live { background: #d65a8c; }
.kbhint { margin-left: auto; color: var(--muted); font-size: 11.5px; }
.keyboard { position: relative; height: 150px; display: flex; user-select: none; }
.wk, .bk { position: relative; cursor: pointer; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.wk { flex: 1; background: linear-gradient(#f4f5f6, #dcdfe2); border: 1px solid #7b8088; border-top: none; border-radius: 0 0 6px 6px; margin-right: -1px; color: #444; }
.bk { position: absolute; top: 0; height: 62%; background: linear-gradient(#2c2f33, #111); border-radius: 0 0 4px 4px; z-index: 2; border: 1px solid #000; color: #ccc; }
.wk .lb, .bk .lb { font-size: 10px; margin-bottom: 5px; font-weight: 600; pointer-events: none; }
.bk .lb { font-size: 9px; }
.wk .sd, .bk .sd { position: absolute; bottom: 22px; width: 8px; height: 8px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 80%, #000); pointer-events: none; }
.bk .sd { bottom: 18px; width: 7px; height: 7px; }
.wk .sd.sroot, .bk .sd.sroot { background: var(--ok); box-shadow: 0 0 0 2px color-mix(in srgb, var(--ok) 40%, transparent); width: 10px; height: 10px; }
.wk.inscale { background: linear-gradient(#f4f5f6, #cfe9d6); }
.bk.inscale { background: linear-gradient(#2f4a37, #111); }
.wk.chord { background: linear-gradient(#6fcdf5, var(--accent)); color: #fff; }
.bk.chord { background: linear-gradient(#5cc8f5, #0c7fb3); color: #fff; }
.wk.croot { background: linear-gradient(#f5c67c, var(--accent2)); color: #231a08; }
.bk.croot { background: linear-gradient(#f0b85e, #b8791c); color: #fff; }
.wk.live, .bk.live { box-shadow: inset 0 -10px 0 #d65a8c; }
.wk.flash, .bk.flash { filter: brightness(1.25); }
.wk:hover { filter: brightness(.96); }

/* Side */
.tabs, .subtabs { display: flex; gap: 4px; margin-bottom: 10px; }
.tabs button, .subtabs button { flex: 1; background: transparent; }
.tabs button.on, .subtabs button.on { background: var(--panel2); border-color: #3a3f46; font-weight: 600; }
.subtabs button { font-size: 12px; padding: 4px 6px; }
.tabpanel { overflow-y: auto; flex: 1; padding-right: 2px; }
.formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
.formgrid .wide { grid-column: 1 / -1; }
.formgrid .f select, .formgrid .f input:not([type=range]) { flex: 1; }
.formgrid .f { justify-content: space-between; }
.sub { margin: 16px 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); }
.sugg { display: flex; flex-direction: column; gap: 8px; }
.sg { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 9px; }
.sg:hover { border-color: #3a3f46; }
.sg .t { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 11.5px; color: var(--muted); }
.sg .t .sp { flex: 1; }
.sg .cs { display: flex; flex-wrap: wrap; gap: 4px; }
.sg .c { background: #121417; border: 1px solid var(--line); border-radius: 6px; padding: 3px 7px; text-align: center; min-width: 44px; cursor: pointer; }
.sg .c b { display: block; font-size: 12.5px; }
.sg .c i { display: block; font-style: normal; font-size: 10.5px; color: var(--accent2); }
.sg .c.now { border-color: var(--accent2); }
.sg .ac { display: flex; gap: 5px; margin-top: 8px; }
.sg .ac button { font-size: 12px; padding: 4px 9px; }
.sg .star.on { color: var(--accent2); }
.search { width: 100%; margin-bottom: 8px; }
.libgroup { margin-bottom: 10px; }
.libgroup > h6 { margin: 8px 0 4px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; }
.libitem { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.libitem:hover { background: var(--panel2); }
.libitem .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.libitem .m { color: var(--muted); font-size: 11px; white-space: nowrap; }
.libitem.open { background: var(--panel2); }
.libdetail { padding: 4px 8px 10px; }
.ana-row { display: grid; grid-template-columns: 38px 1fr auto; gap: 8px; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.ana-row .rn { color: var(--accent2); font-weight: 700; }
.ana-row .sc { color: var(--muted); font-size: 11.5px; }

/* Modal, toast */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.dialog { background: var(--panel); border: 1px solid #353a40; border-radius: 14px; padding: 18px 20px; width: min(560px, 100%); max-height: 88vh; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.dialog h3 { margin: 0 0 10px; font-size: 17px; }
.dialog p { color: #c3c8ce; line-height: 1.5; margin: 8px 0; }
.dialog .btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.dialog .opt { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; margin: 6px 0; cursor: pointer; }
.dialog .opt:hover { border-color: #3f454c; }
.dialog .opt input { margin-top: 3px; }
.dialog .opt small { display: block; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.dialog .warn { color: var(--accent2); }
.dialog .err { color: var(--danger); }
.dialog label.f { width: 100%; }
.dialog label.f input { flex: 1; }
.dialog table { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.dialog td { padding: 4px 6px; border-bottom: 1px solid var(--line); }
.dialog td:first-child { white-space: nowrap; color: var(--accent2); font-family: ui-monospace, Menlo, monospace; }
.dialog code { background: #111316; padding: 1px 5px; border-radius: 4px; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: #24282d; border: 1px solid #3a3f46; padding: 9px 16px; border-radius: 10px; z-index: 60; box-shadow: 0 10px 30px rgba(0,0,0,.4); max-width: 90vw; }
.toast.err { border-color: var(--danger); }
.dropzone { position: fixed; inset: 10px; border: 3px dashed var(--accent); border-radius: 18px; background: rgba(20,160,222,.12); z-index: 70; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; pointer-events: none; }

/* ======================================================================
   Classic-Design – angelehnt an MPC 60 / 2000 / 3000
   warmgraues Gehäuse, Gummipads, rote Akzente, grünes LCD
   ====================================================================== */
.pad .led { display: none; }

:root[data-theme="classic"] {
  --bg: #d0cec8;
  --panel: #e8e6e1;
  --panel2: #f3f2ee;
  --line: #c7c5be;
  --text: #2a2825;
  --muted: #6c675d;
  --accent: #c8202a;
  --accent2: #e2752a;
  --danger: #b3161f;
  --ok: #3f8a4f;
  --lcd: #a8bf80;
  --lcd-dark: #93ad6a;
  --lcd-ink: #1d2912;
  --rubber: #5f5d59;
  --rubber-hi: #75736e;
  --rubber-lo: #474541;
  --f-T: #2d6fd0;
  --f-S: #2f8a47;
  --f-D: #d1661c;
  --f-borrowed: #7c4fc4;
  --f-secondary: #c8202a;
  --f-tritone: #b23b8e;
  --f-chromatic: #6c675d;
  color-scheme: light;
}
:root[data-theme="classic"] body {
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.018) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #dad8d2, #c7c5be);
}

/* Kopfzeile wie Frontplatte */
[data-theme="classic"] .top { background: linear-gradient(180deg, #e4e2dd, #d6d4ce); border-bottom: 2px solid #a9a69e; box-shadow: inset 0 1px 0 rgba(255,255,255,.5); }
[data-theme="classic"] .brand { font-family: "Helvetica Neue", Arial, sans-serif; }
[data-theme="classic"] .brand .logo .lp { fill: #5f5d59; stroke: #2c2b29; stroke-width: 1; }
[data-theme="classic"] .brand .logo .lit { fill: var(--accent); }
[data-theme="classic"] .brand .bt { color: #2f2d2a; font-size: 18px; }
[data-theme="classic"] .brand .bt b { color: var(--accent); font-weight: 900; font-style: italic; letter-spacing: -.3px; text-shadow: 0 1px 0 rgba(255,255,255,.5); }
[data-theme="classic"] .brand .bsub { color: #6c675d; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; font-size: 8.5px; }
[data-theme="classic"] .midibar { background: #d9d7d1; border-bottom: 1px solid #b1aea6; }
[data-theme="classic"] .midistatus { background: var(--lcd); color: var(--lcd-ink) !important; font-family: ui-monospace, "SF Mono", Menlo, monospace; padding: 3px 9px; border-radius: 3px; border: 2px solid #5b5a52; box-shadow: inset 0 2px 5px rgba(0,0,0,.25); font-size: 11.5px; }
[data-theme="classic"] .dot { background: #5a1a1c; border: 1px solid #3a3530; }
[data-theme="classic"] .dot.on { background: #ff3b3b; box-shadow: 0 0 7px #ff3b3b; }
[data-theme="classic"] .dot.pulse { background: #ffb13b; box-shadow: 0 0 9px #ffb13b; }

/* Tasten wie Hardware-Buttons */
[data-theme="classic"] button {
  background: linear-gradient(180deg, #f1eee7, #d9d4c9); border: 1px solid #8f897c; border-radius: 4px;
  box-shadow: 0 2px 0 #8a8477, inset 0 1px 0 #fff; color: #2a2825; font-weight: 600;
}
[data-theme="classic"] button:hover { background: linear-gradient(180deg, #fcfbfa, #eae8e4); border-color: #8f8c84; }
[data-theme="classic"] button:active { transform: translateY(2px); box-shadow: 0 0 0 #9e9b93, inset 0 1px 2px rgba(0,0,0,.2); }
[data-theme="classic"] button.primary { background: linear-gradient(180deg, #e0444b, #b8161f); border-color: #7e0f15; color: #fff; box-shadow: 0 2px 0 #6e0c12, inset 0 1px 0 rgba(255,255,255,.35); }
[data-theme="classic"] button.primary:hover { background: linear-gradient(180deg, #ea5259, #c51d26); }
[data-theme="classic"] button.danger { color: var(--danger); }
[data-theme="classic"] input:not([type=checkbox]):not([type=range]), [data-theme="classic"] select {
  background: #f4f1ea; border: 1px solid #8f897c; border-radius: 3px; color: #2a2825; box-shadow: inset 0 1px 2px rgba(0,0,0,.15);
}
[data-theme="classic"] .f > input, [data-theme="classic"] .f > select { color: #2a2825; }
[data-theme="classic"] input[type=range], [data-theme="classic"] input[type=checkbox] { accent-color: var(--accent); }

/* Gehäuse-Paneele */
[data-theme="classic"] .card { background: linear-gradient(180deg, #eeece8, #e2e0db); border: 1px solid #b1aea6; border-radius: 6px; box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 2px 6px rgba(0,0,0,.18); }

/* Pad-Bank-Tasten mit LED */
[data-theme="classic"] .banks button { padding-top: 13px; font-size: 12px; }
[data-theme="classic"] .banks button::before { content: ""; position: absolute; top: 4px; left: 50%; width: 14px; height: 4px; margin-left: -7px; border-radius: 2px; background: #6b2326; }
[data-theme="classic"] .banks button.on { background: linear-gradient(180deg, #f8f7f5, #e3e1dc); color: #2a2825; border-color: #a3a098; }
[data-theme="classic"] .banks button.on::before { background: #ff3b3b; box-shadow: 0 0 6px #ff3b3b; }
[data-theme="classic"] .banks button .cnt { top: auto; bottom: 2px; right: 5px; color: #6c675d; }

/* Gummipads */
[data-theme="classic"] .padgrid { background: linear-gradient(180deg, #34322f, #2a2926); border: 3px solid #a9a69e; border-radius: 6px; box-shadow: inset 0 3px 8px rgba(0,0,0,.6); gap: 11px; padding: 13px; }
[data-theme="classic"] .pad {
  background: radial-gradient(90% 90% at 50% 35%, var(--rubber-hi), var(--rubber) 60%, var(--rubber-lo));
  border: 1px solid #2c2b29; border-radius: 5px; color: #eeebe4;
  box-shadow: 0 3px 0 #1e1d1b, inset 0 1px 0 rgba(255,255,255,.12);
}
[data-theme="classic"] .pad.empty { background: radial-gradient(90% 90% at 50% 35%, #676561, #555350 60%, #444240); }
[data-theme="classic"] .pad.empty .cn { color: #7a7873; }
[data-theme="classic"] .pad.empty:hover .cn { color: #b4b0a8; }
[data-theme="classic"] .pad.prog { background: radial-gradient(90% 90% at 50% 35%, #7c7a75, #64625e 60%, #4b4946); border-color: #2c2b29; }
[data-theme="classic"] .pad .num { color: #b9b5ad; font-family: "Helvetica Neue", Arial, sans-serif; }
[data-theme="classic"] .pad.prog .rn { color: #f0c68a; }
[data-theme="classic"] .pad .nn { color: rgba(238,235,228,.55); }
[data-theme="classic"] .pad .key { color: #8f8b84; }
[data-theme="classic"] .pad .led { display: block; position: absolute; top: 7px; left: 50%; width: 16px; height: 4px; margin-left: -8px; border-radius: 2px; background: #3b3a37; box-shadow: inset 0 1px 1px rgba(0,0,0,.5); }
[data-theme="classic"] .pad.prog .led { background: color-mix(in srgb, var(--hue) 55%, #2a2a2a); }
[data-theme="classic"] .pad.sel { outline: 3px solid var(--accent); outline-offset: 2px; }
[data-theme="classic"] .pad.hit { transform: translateY(2px) scale(.985); box-shadow: 0 1px 0 #1e1d1b, inset 0 2px 6px rgba(0,0,0,.4); background: radial-gradient(90% 90% at 50% 40%, #6e6c67, #55534f 70%); }
[data-theme="classic"] .pad.hit .led { background: var(--hue); box-shadow: 0 0 10px var(--hue), 0 0 3px #fff; }
[data-theme="classic"] .pad.dragover { outline: 3px dashed var(--accent2); }
[data-theme="classic"] .transport #playBank.playing { background: linear-gradient(180deg, #f39a55, #d1661c); border-color: #8a4312; color: #fff; }

/* LCD-Display im Editor */
[data-theme="classic"] .ed-head {
  background: linear-gradient(180deg, var(--lcd), var(--lcd-dark)); color: var(--lcd-ink);
  border: 3px solid #4d4c45; border-radius: 4px; padding: 9px 12px; box-shadow: inset 0 3px 8px rgba(0,0,0,.28);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
[data-theme="classic"] .ed-head .padid { background: var(--lcd-ink); color: var(--lcd); border-radius: 2px; }
[data-theme="classic"] .ed-head .big { color: var(--lcd-ink) !important; letter-spacing: 0; }
[data-theme="classic"] .ed-head .rn { color: var(--lcd-ink); opacity: .75; }
[data-theme="classic"] .ed-head .badge { color: var(--lcd-ink) !important; border-color: var(--lcd-ink); }
[data-theme="classic"] .ed-head button { background: rgba(29,41,18,.12); border-color: var(--lcd-ink); box-shadow: none; color: var(--lcd-ink); }
[data-theme="classic"] .notesline { color: var(--muted); }
[data-theme="classic"] .notesline b { color: var(--text); }
[data-theme="classic"] .sec h5, [data-theme="classic"] .sub { color: #5d584f; font-weight: 800; letter-spacing: 1.2px; }
[data-theme="classic"] .chips button { box-shadow: 0 1px 0 #9e9b93, inset 0 1px 0 #fff; }
[data-theme="classic"] .chips button.on { background: linear-gradient(180deg, #e0444b, #b8161f); color: #fff; border-color: #7e0f15; }
[data-theme="classic"] .chips button.on small { color: rgba(255,255,255,.8); }
[data-theme="classic"] .chips button small { color: #7a746a; }
[data-theme="classic"] .hint { color: #5f5a51; }
[data-theme="classic"] .dialog .warn, [data-theme="classic"] .warn { color: #b0520f; }

/* Seitenleiste */
[data-theme="classic"] .tabs button.on, [data-theme="classic"] .subtabs button.on { background: linear-gradient(180deg, #e0444b, #b8161f); color: #fff; border-color: #7e0f15; }
[data-theme="classic"] .sg { background: #f6f5f2; border: 1px solid #c7c5be; border-radius: 5px; }
[data-theme="classic"] .sg:hover { border-color: #8f8c84; }
[data-theme="classic"] .sg .t b { color: var(--text) !important; }
[data-theme="classic"] .sg .c { background: var(--lcd); border: 1px solid #5b5a52; border-radius: 3px; color: var(--lcd-ink); font-family: ui-monospace, "SF Mono", Menlo, monospace; }
[data-theme="classic"] .sg .c i { color: #3b4d25; }
[data-theme="classic"] .sg .c.now { background: #d8ef9e; border-color: var(--lcd-ink); }
[data-theme="classic"] .sg .star.on { color: var(--accent); }
[data-theme="classic"] .libitem:hover, [data-theme="classic"] .libitem.open { background: #f6f5f2; }
[data-theme="classic"] .libgroup > h6 { color: #5d584f; }
[data-theme="classic"] .ana-row { border-bottom-color: #c9c6bf; }
[data-theme="classic"] .ana-row .rn { color: var(--accent); }

/* Klaviatur */
[data-theme="classic"] .keyboard { background: #2e2d2a; padding: 6px 6px 0; border-radius: 4px; box-shadow: inset 0 3px 6px rgba(0,0,0,.5); height: 158px; }
[data-theme="classic"] .wk { background: linear-gradient(#faf8f2, #e4dfd3); border-color: #6e695f; }
[data-theme="classic"] .wk.inscale { background: linear-gradient(#faf8f2, #d6e6c4); }
[data-theme="classic"] .bk.inscale { background: linear-gradient(#3d5234, #151514); }
[data-theme="classic"] .wk.chord { background: linear-gradient(#ef6c72, var(--accent)); color: #fff; }
[data-theme="classic"] .bk.chord { background: linear-gradient(#e34b52, #8d1117); color: #fff; }
[data-theme="classic"] .wk.croot { background: linear-gradient(#f7b27a, var(--accent2)); color: #2a1706; }
[data-theme="classic"] .bk.croot { background: linear-gradient(#f0a060, #a8520f); color: #fff; }
[data-theme="classic"] .lg.chord { background: var(--accent); }
[data-theme="classic"] .lg.root { background: var(--accent2); }
[data-theme="classic"] .seg span { color: var(--lcd-ink); background: var(--lcd); border: 2px solid #5b5a52; border-radius: 3px; padding: 2px 6px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; }

/* Dialoge, Toast */
[data-theme="classic"] .modal { background: rgba(40,36,30,.45); }
[data-theme="classic"] .dialog { background: #eeede9; border: 2px solid #a9a69e; border-radius: 6px; color: var(--text); }
[data-theme="classic"] .dialog p { color: #3a3833; }
[data-theme="classic"] .dialog .opt { background: #f6f5f2; border-color: #c7c5be; }
[data-theme="classic"] .dialog code, [data-theme="classic"] code { background: #fbfaf8; border: 1px solid #c9c6bf; }
[data-theme="classic"] .dialog td { border-bottom-color: #c9c6bf; }
[data-theme="classic"] .dialog td:first-child { color: var(--accent); }
[data-theme="classic"] .toast { background: var(--lcd); color: var(--lcd-ink); border: 3px solid #4d4c45; border-radius: 4px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; }
[data-theme="classic"] .toast.err { background: #f1c7c3; color: #5c0c10; border-color: #8a1a1f; }
[data-theme="classic"] .dropzone { border-color: var(--accent); background: rgba(200,32,42,.1); color: var(--accent); }

/* Browser-Hinweis (nur ohne Web MIDI / Ordnerzugriff) */
.browserwarn { display: flex; align-items: center; gap: 12px; padding: 9px 16px; background: #3a2a10; border-bottom: 1px solid #7a5418; color: #f5d9a8; }
.browserwarn .bw-ico { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent2); color: #1a1206; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.browserwarn .bw-txt { flex: 1; line-height: 1.45; }
[data-theme="classic"] .browserwarn { background: #f2c94c; border-bottom: 2px solid #9a7a16; color: #2a2206; }
[data-theme="classic"] .browserwarn .bw-ico { background: var(--accent); color: #fff; }

/* Klassiker: Beispiel-Songs */
.famh { margin: 12px 0 4px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; }
.songs { display: flex; flex-direction: column; gap: 4px; margin-bottom: 6px; }
.song { display: flex; align-items: center; gap: 8px; font-size: 12.5px; line-height: 1.35; }
.song button { min-width: 38px; padding: 2px 6px; font-size: 11px; flex: none; }
.song .nokey { display: inline-block; min-width: 38px; text-align: center; color: var(--muted); flex: none; }
.song small { color: var(--muted); }
