:root {
    color-scheme: dark;
    --bg: var(--cm-bg);
    --panel: var(--cm-panel);
    --line: #4b4b53;
    --text: #f8f6ef;
    --muted: var(--cm-muted);
    --accent: var(--cm-acid);
    --beat: var(--cm-ice);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.5 system-ui, sans-serif; }
main { width: min(70rem, calc(100% - 2rem)); margin: 0 auto; padding-bottom: 2.5rem; }
.top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1rem 0; }
.brand { color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.5rem; }
.brand span, .status { color: var(--accent); }
.badge, .summary { font: .8125rem/1.5 ui-monospace, monospace; color: var(--beat); }
#analysis-track-name { overflow-wrap: anywhere; }
h1 { font-size: clamp(2.25rem, 6vw, 4rem); letter-spacing: -.035em; line-height: 1.06; margin: 1rem 0 .5rem; }
h2 { margin: 0; font-size: 1.25rem; }
.intro, .hint { color: var(--muted); margin: .4rem 0 .85rem; }
section { padding: clamp(.85rem, 2vw, 1.3rem); background: var(--panel); border: 1px solid var(--line); border-radius: .5rem; margin: .9rem 0; min-width: 0; }
fieldset { padding: 0; border: 0; min-width: 0; margin: 0; }
.row[hidden], .row label[hidden] { display: none; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .75rem; margin-top: .7rem; }
.row label, .seek { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .55rem; min-width: 0; max-width: 100%; }
.path { flex: 1 1 20rem; }
.path input { flex: 1 1 14rem; min-width: 0; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
select { max-width: 100%; }
button, select, input:is([type=number], [type=text]) { padding: .45rem .6rem; border: 1px solid var(--line); border-radius: .375rem; background: var(--cm-raised); }
button:not(:disabled) { cursor: pointer; }
button:hover:not(:disabled), button[aria-pressed=true] { border-color: var(--accent); color: var(--accent); }
button:disabled { opacity: .5; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input[type=file] { min-width: 0; max-width: 100%; width: min(100%, 16rem); }
input[type=number] { width: 7rem; }
input[type=range] { accent-color: var(--accent); flex: 1; min-width: 0; }
.seek { display: flex; margin-top: .5rem; }
.status { min-height: 1.5em; margin: .6rem 0 0; overflow-wrap: anywhere; }
.status.error { color: #ffaeae; }
.waveform { height: clamp(7rem, 17vw, 12rem); position: relative; overflow: hidden; background: var(--cm-bg); border: 1px solid var(--line); border-radius: .25rem; margin-top: .75rem; }
.waveform canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.waveform canvas:first-child { cursor: crosshair; }
.waveform canvas:not(#wave) { pointer-events: none; }
#source-rms-chart { display: block; width: 100%; height: 8rem; background: var(--cm-bg); border-radius: .25rem; }
#source-rms-value { font-variant-numeric: tabular-nums; color: var(--muted); }
.cues { padding: 0; list-style: none; margin: .5rem 0 0; }
.cues input { min-width: 0; width: min(100%, 16rem); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.signal-values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: .5rem; }
.signal-values[hidden] { display: none; }
.signal-values div { padding: .55rem .7rem; background: var(--cm-bg); border: 1px solid var(--line); border-radius: .375rem; }
.signal-values dt { color: var(--muted); font-size: .8125rem; }
.signal-values dd { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.energy-control { display: flex; align-items: baseline; gap: .45rem; color: var(--muted); }
.energy-control input { accent-color: #ffd78d; }
.candidates { list-style: none; margin: .5rem 0 0; padding: 0; }
.candidates li { padding: .45rem 0; border-top: 1px solid var(--line); }
.candidates li > span { flex: 1 1 15rem; overflow-wrap: anywhere; }

.stem-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: .75rem; }
.stem-grid section { margin: 0; }
.stem-grid audio { width: 100%; }
.stem-grid [data-file-label] { overflow-wrap: anywhere; }
.stem-grid a, #download-stem-zip { color: var(--accent); }

/* Editor family UX layer (20.11.2026): numbered steps, drop zones, button roles, collapsible help. */
.top .badge { padding: .1rem .55rem; border: 1px solid var(--cm-line-strong); border-radius: 999px; color: var(--accent); }
.intro { max-width: 46rem; }
h2 { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
h3 { margin: 1.15rem 0 .1rem; font-size: 1rem; }
h3:focus { outline: none; }
.edt-n { display: inline-grid; place-items: center; flex: none; width: 1.55rem; height: 1.55rem; border-radius: 50%;
    background: var(--cm-raised); color: var(--text); font: 700 .8125rem/1 ui-monospace, monospace; }
h2 .edt-n { background: var(--accent); color: var(--cm-on-acid); }
.edt-steps { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.1rem 0 .2rem; padding: 0; list-style: none; }
.edt-steps a { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .75rem .3rem .3rem; border: 1px solid var(--line);
    border-radius: 999px; background: var(--cm-panel); color: var(--text); text-decoration: none; font-size: .875rem; }
.edt-steps a:hover { border-color: var(--accent); }
.edt-steps [data-state=done] .edt-n { background: var(--accent); color: var(--cm-on-acid); }
.edt-steps [data-state=locked] a { border-style: dashed; color: var(--muted); }
.edt-steps [data-state=locked] .edt-n { background: transparent; border: 1px dashed var(--line); }
.edt-steps-note { min-height: 1.4em; margin: .25rem 0 0; color: var(--muted); font-size: .875rem; }
.edt-lock-note { display: none; margin: 1rem 0 -.3rem; padding: .55rem .8rem; border: 1px dashed var(--line); border-radius: .5rem;
    color: var(--muted); font-size: .9375rem; }
.edt-lock-note[data-edt-locked] { display: block; }
fieldset:disabled .edt-step { opacity: .6; }
.edt-step-plain { padding: 0; border: 0; background: none; }
.edt-step-plain > h2 { margin-top: 1.2rem; }

/* Buttons: primary (one per step), default secondary, danger; download links look like buttons. */
button.edt-primary, .edt-link-button { background: var(--accent); border: 1px solid var(--accent); color: var(--cm-on-acid); font-weight: 700; }
button.edt-primary:hover:not(:disabled), .edt-link-button:hover { background: #f5ffa6; border-color: #f5ffa6; color: var(--cm-on-acid); }
.edt-link-button { display: inline-block; padding: .45rem .75rem; border-radius: .375rem; text-decoration: none; }
.edt-link-button[hidden] { display: none; }
.stem-grid a.edt-link-button, .clean-review a.edt-link-button { color: var(--cm-on-acid); }
.edt-link-button.edt-secondary, .stem-grid a.edt-link-button.edt-secondary { background: var(--cm-raised); border-color: var(--line); color: var(--text); font-weight: 400; }
.edt-link-button.edt-secondary:hover { border-color: var(--accent); color: var(--accent); background: var(--cm-raised); }
button.edt-danger { color: #ffc2c2; border-color: #6d3b45; }
button.edt-danger:hover:not(:disabled) { color: #ffd9d9; border-color: #ff9a9a; }
.edt-link-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* File drop zones: the native input stays in the page (same id, keyboard reachable) but is visually hidden. */
.edt-drop { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .9rem; margin-top: .75rem; padding: 1rem;
    border: 1px dashed #55555e; border-radius: .5rem; background: var(--cm-bg); }
.edt-drop-small { padding: .7rem .8rem; }
.edt-drop[data-dragging] { border-color: var(--accent); background: var(--cm-acid-soft); }
input.edt-file { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap; }
.edt-drop-btn { display: inline-flex; align-items: center; padding: .5rem .85rem; border: 1px solid var(--line); border-radius: .375rem;
    background: var(--cm-raised); cursor: pointer; font-weight: 600; }
.edt-drop[data-loaded] .edt-drop-btn, .edt-drop-small .edt-drop-btn { font-weight: 500; }
.edt-drop:not([data-loaded]):not(.edt-drop-small) .edt-drop-btn { background: var(--accent); border-color: var(--accent); color: var(--cm-on-acid); }
.edt-drop-btn:hover { border-color: var(--accent); }
.edt-file:focus-visible + .edt-drop-btn { outline: 2px solid var(--accent); outline-offset: 2px; }
.edt-file:disabled + .edt-drop-btn { opacity: .5; cursor: not-allowed; }
.edt-drop-info { display: flex; flex-direction: column; flex: 1 1 12rem; min-width: 0; overflow-wrap: anywhere; }
.edt-drop-name { font-weight: 600; }
.edt-drop-name:empty, .edt-drop:not([data-loaded]) .edt-drop-name { display: none; }
.edt-drop-meta { color: var(--muted); font-size: .875rem; }
.edt-drop:not([data-loaded]) .edt-when-loaded, .edt-drop[data-loaded] .edt-when-empty { display: none; }
.edt-row-error { margin-top: .45rem; }
.edt-row-error[hidden] { display: none; }
#prepare-stem-zip:not(:disabled) ~ .edt-reason, #download-stem-zip:not([hidden]) ~ .edt-reason { display: none; }

/* Progressive disclosure: optional, expert and explanation blocks. */
details > summary { cursor: pointer; }
details.edt-more, details.edt-panel { margin-top: .9rem; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--cm-panel); }
details.edt-panel { margin: .9rem 0; background: var(--panel); }
details.edt-more > summary, details.edt-panel > summary { font-weight: 600; }
details.edt-more[open] > summary, details.edt-panel[open] > summary { margin-bottom: .3rem; }
details.edt-advanced > summary::after { content: ''; }
.edt-how { margin: .1rem 0 .3rem; font-size: .875rem; }
.edt-how > summary { color: var(--muted); text-decoration: underline dotted; text-underline-offset: .2em; width: fit-content; }
.edt-how > summary:hover { color: var(--text); }
.edt-how .hint { margin: .35rem 0; }
.edt-legend { font-size: .875rem; }
.row label > input:is([type=number], [type=text]) { min-width: 0; }
@media (max-width: 480px) {
    .edt-steps a { padding-right: .6rem; font-size: .875rem; }
    .edt-drop { padding: .8rem; }
    .row > button, .row > .edt-link-button { flex: 1 1 auto; }
    .path input { flex-basis: 100%; }
}

/* Audio Editor workspace (20.11.2026): toolbar, waveform with lanes and overview, tabbed tool panel and status (21.11.2026: minus Shell-Kopf und Werkzeugleiste, --cm-chrome-h aus clubmix-shell.css)
   bar fill the viewport below the page header; the footer follows below the fold. */
.edt-editor { width: calc(100% - 2rem); max-width: 128rem; height: calc(100vh - var(--cm-chrome-h, 0px)); height: calc(100dvh - var(--cm-chrome-h, 0px)); min-height: 34rem;
    display: flex; flex-direction: column; padding-bottom: .6rem; }
.edt-top { flex: none; justify-content: flex-start; padding: .45rem 0; gap: .4rem 1rem; flex-wrap: wrap; }
.edt-top h1 { margin: 0; font-size: 1rem; line-height: 1.3; letter-spacing: 0; }
.edt-top .brand { font-size: 1.25rem; }
.edt-top-track { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40ch; }
.edt-top .badge { margin-left: auto; }
.edt-notice { flex: none; margin: 0 0 .35rem; font-size: .875rem; }
.edt-model-line .hint { margin: 0; }
.edt-workspace { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--panel);
    border: 1px solid var(--line); border-radius: .5rem; }
.edt-toolbar { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; padding: .4rem .5rem;
    background: var(--cm-panel); border-bottom: 1px solid var(--line); }
.edt-group { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; min-width: 0; }
.edt-group + .edt-group, .edt-menu { padding-left: .5rem; border-left: 1px solid var(--cm-line); }
.edt-group-end { margin-left: auto; }
.edt-tool { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .55rem; border: 1px solid var(--line);
    border-radius: .375rem; background: var(--cm-raised); color: var(--text); font-size: .875rem; line-height: 1.35; white-space: nowrap;
    text-decoration: none; cursor: pointer; }
label.edt-tool:hover, a.edt-tool:hover, summary.edt-tool:hover { border-color: var(--accent); color: var(--accent); }
.edt-tool.edt-icon-only { padding: .3rem .38rem; }
.edt-icon { width: 1.05rem; height: 1.05rem; flex: none; fill: currentColor; }
.edt-tool.edt-primary, label.edt-tool.edt-primary { background: var(--accent); border-color: var(--accent); color: var(--cm-on-acid); font-weight: 700; }
label.edt-tool.edt-primary:hover { background: #f5ffa6; color: var(--cm-on-acid); }
button.edt-tool[aria-pressed=true] { background: var(--cm-acid-soft); border-color: var(--accent); color: var(--accent); }
button.edt-tool.edt-play:not(:disabled) { border-color: var(--cm-ice-line); }
.edt-zoom-select select { padding: .25rem .4rem; font-size: .8125rem; }
.edt-menu { position: relative; }
.edt-menu > summary { list-style: none; }
.edt-menu > summary::-webkit-details-marker { display: none; }
.edt-menu[open] > summary { border-color: var(--accent); }
.edt-menu-list { position: absolute; z-index: 20; top: calc(100% + .35rem); left: .5rem; display: flex; flex-direction: column;
    min-width: 15rem; padding: .3rem; background: var(--cm-panel); border: 1px solid var(--line); border-radius: .5rem;
    box-shadow: 0 .7rem 1.8rem #000a; }
.edt-menu-list button { border: 0; background: none; text-align: left; padding: .45rem .6rem; }
.edt-menu-list button:hover:not(:disabled) { background: var(--cm-raised); color: var(--accent); }
.edt-main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) clamp(19rem, 27vw, 26rem); }
.edt-wave-col { position: relative; display: flex; flex-direction: column; gap: .3rem; min-width: 0; min-height: 0;
    padding: .45rem .6rem .35rem; }
.edt-wave-col[data-dragging] .waveform { border-color: var(--accent); }
.edt-file-line { flex: none; margin: 0; min-height: 1.3em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .8125rem; }
.edt-marker-legend { display: none; flex-wrap: wrap; gap: .2rem 1rem; color: var(--muted); font-size: .8125rem; list-style: none; margin: 0; padding: 0; }
.edt-wave-col[data-loaded] .edt-marker-legend { display: flex; }
.edt-marker-legend li { display: flex; align-items: center; gap: .35rem; }
.edt-marker-legend span { display: inline-block; width: 1.2em; border-top: 2px solid currentColor; }
.edt-marker-legend .edt-marker-phrase { border-top-style: dashed; }
.edt-lanes { flex: none; display: block; width: 100%; height: 3rem; border-radius: .25rem; }
.edt-wave-col .waveform { flex: 1 1 auto; height: auto; min-height: 8rem; margin: 0; }
.edt-overlay { pointer-events: none; }
.edt-overview { flex: none; display: block; width: 100%; height: 2.3rem; border: 1px solid var(--line); border-radius: .25rem;
    cursor: pointer; touch-action: none; }
.edt-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .5rem; padding: 1rem; text-align: center; background: rgba(15, 15, 17, .94); }
.edt-empty .edt-drop-btn { gap: .45rem; padding: .65rem 1.1rem; background: var(--accent); border-color: var(--accent); color: var(--cm-on-acid); }
.edt-empty .edt-drop-meta { max-width: 34rem; }
.edt-wave-col[data-loaded] .edt-empty { display: none; }
.edt-wave-col .edt-file:focus-visible ~ .edt-file-line { outline: 2px solid var(--accent); }
.edt-transport { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .9rem; }
.edt-transport .seek { flex: 1 1 14rem; margin: 0; }
.edt-clock { font: .875rem/1.4 ui-monospace, monospace; white-space: nowrap; }
.edt-transport .energy-control { font-size: .8125rem; }
.edt-wave-col > .status { flex: none; margin: 0; min-height: 1.4em; font-size: .875rem; }
.edt-recovery { flex: none; display: flex; flex-wrap: wrap; gap: .4rem; }
.edt-side { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--cm-panel); border-left: 1px solid var(--line); }
.edt-tabs { flex: none; display: flex; gap: .05rem; padding: .35rem .3rem 0; overflow-x: auto; scrollbar-width: thin;
    border-bottom: 1px solid var(--line); }
.edt-tabs [role=tab] { padding: .38rem .42rem; border: 0; border-bottom: 2px solid transparent; border-radius: .3rem .3rem 0 0;
    background: none; color: var(--muted); font-size: .8125rem; white-space: nowrap; flex: none; }
.edt-tabs [role=tab]:hover { color: var(--text); }
.edt-tabs [role=tab][aria-selected=true] { color: var(--text); background: var(--cm-raised); border-bottom-color: var(--accent); }
.edt-side .edt-lock-note { flex: none; margin: .5rem .7rem 0; }
.edt-panels { flex: 1; min-height: 0; overflow: auto; padding: .1rem .75rem .9rem; overscroll-behavior: contain; }
.edt-panels section, .edt-panels section[role=tabpanel] { margin: 0; padding: .35rem 0 0; background: none; border: 0; border-radius: 0; }
.edt-panels section[hidden] { display: none; }
.edt-panels fieldset:disabled section { opacity: .62; }
.edt-panels .row { margin-top: .5rem; gap: .4rem .45rem; }
.edt-panels :is(button, select, input:is([type=number], [type=text])) { padding: .35rem .5rem; font-size: .875rem; }
.edt-panels .hint { margin: .35rem 0 .5rem; font-size: .875rem; }
.edt-panels h3, .edt-panel-title { margin: .9rem 0 .1rem; font-size: .9375rem; }
.edt-panels input[type=number] { width: 6.5rem; }
.edt-panels .path, .edt-panels .path input { flex-basis: 100%; }
.edt-readout { display: block; margin-top: .4rem; font: .875rem/1.4 ui-monospace, monospace; color: var(--accent); }
.edt-small { font-size: .8125rem; }
.edt-panels .candidates li, .edt-panels .cues li { font-size: .875rem; }
.edt-panels .signal-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.edt-stem-row audio { width: 100%; }
/* Instant stems as tracks (21.11.2026): name, mute, solo, volume per row */
.edt-instant-list { list-style: none; margin: .3rem 0; padding: 0; display: grid; gap: .25rem; }
.edt-instant-list .edt-stem-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto minmax(4rem, 7rem); align-items: center; gap: .35rem; }
.edt-instant-list .edt-stem-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edt-instant-list input[type=range] { width: 100%; }
.edt-info { width: 1.35rem; height: 1.35rem; padding: 0; border-radius: 50%; font: italic 700 .8125rem/1 Georgia, serif;
    vertical-align: middle; }
.edt-panels .edt-info { padding: 0; }
.edt-statusbar { flex: none; display: flex; flex-wrap: wrap; gap: .15rem 1.3rem; padding: .3rem .7rem; background: var(--cm-bg);
    border-top: 1px solid var(--line); color: var(--muted); font: .8125rem/1.5 ui-monospace, monospace; }
.edt-statusbar output { color: var(--text); }
.edt-statusbar-mode { margin-left: auto; }
.edt-dialog { width: min(36rem, calc(100% - 2rem)); }
.edt-keys { display: grid; gap: .35rem; margin: .8rem 0; }
.edt-keys div { display: grid; grid-template-columns: minmax(8rem, 40%) 1fr; gap: .8rem; align-items: baseline; }
.edt-keys dt { white-space: nowrap; }
.edt-keys dd { margin: 0; color: var(--muted); }
kbd { display: inline-block; min-width: 1.5em; padding: .05rem .35rem; border: 1px solid var(--line); border-bottom-width: 2px;
    border-radius: .25rem; background: var(--cm-raised); font: .8125rem/1.4 ui-monospace, monospace; text-align: center; }
@media (max-width: 900px), (max-height: 520px) {
    .edt-editor { height: auto; min-height: 0; }
    .edt-workspace { overflow: visible; }
    .edt-main { grid-template-columns: minmax(0, 1fr); }
    .edt-side { border-left: 0; border-top: 1px solid var(--line); }
    .edt-panels { overflow: visible; }
    .edt-wave-col .waveform { flex: none; height: clamp(9rem, 38vw, 14rem); }
    .edt-group-end { margin-left: 0; }
    .edt-menu-list { left: 0; }
}
@media (max-width: 480px) {
    .edt-group + .edt-group, .edt-menu { padding-left: 0; border-left: 0; }
    .edt-tool span { font-size: .8125rem; }
    .edt-statusbar-mode { margin-left: 0; }
    .edt-keys div { grid-template-columns: 1fr; gap: 0; }
}

/* clubmix-thm BEGIN - helles Thema (20.11.2026, docs/clubmix/THEME.md). Gilt fuer Audio Editor, Clean Edit,
   Club Mix Lab und die Mix-Pruefung (alle laden diese Datei). html.light kommt von www/js/clubmix-theme-boot.js.
   --edt-cv-*: Canvas-Farben fuer clubmix-editor.mjs / clubmix-editor-workspace.mjs (dunkel = Vorgaben im Skript). */
html.light {
    color-scheme: light;
    --bg: var(--cm-bg);
    --panel: var(--cm-panel);
    --line: var(--cm-line-strong);
    --text: var(--cm-fg);
    --muted: var(--cm-muted);
    --accent: var(--cm-ink);
    --beat: var(--cm-ice);
    --edt-cv-bg: var(--cm-raised);
    --edt-cv-tick: var(--cm-line-strong);
    --edt-cv-tick-text: var(--cm-muted);
    --edt-cv-text: var(--cm-fg);
    --edt-cv-section: #dbe5fb;
    --edt-cv-section-edge: #1d4ed8;
    --edt-cv-phrase: #f6e7c4;
    --edt-cv-phrase-edge: #b45309;
    --edt-cv-accent: #111113;
    --edt-cv-selection: rgba(17, 17, 19, .1);
    --edt-cv-cue: #0e7490;
    --edt-cv-loop: #e3ead0;
    --edt-cv-overview: #6e6e78;
    --edt-cv-head: var(--cm-fg);
    --edt-cv-wave: #5f5f69;
    --edt-cv-axis: var(--cm-line-strong);
    --edt-cv-energy: #b45309;
    --edt-cv-downbeat: #55555c;
    --edt-cv-beat: #b4b4bc;
    --edt-cv-rms: #8a8a93;
}
/* :where() haelt die Spezifitaet wie im Original, damit Lab/Clean-Edit-Regeln weiter gewinnen. */
:where(html.light) button, :where(html.light) select, :where(html.light) input:is([type=number], [type=text]) { background: var(--cm-panel); }
html.light .status.error { color: #b42318; }
html.light .waveform, html.light #source-rms-chart, html.light .signal-values div { background: var(--cm-raised); }
html.light .energy-control input { accent-color: #b45309; }
html.light .top .badge { border-color: var(--cm-line-strong); }
html.light .edt-n { background: #e6e4dc; }
html.light h2 .edt-n, html.light .edt-steps [data-state=done] .edt-n { color: var(--cm-acid); }
html.light .edt-steps [data-state=locked] .edt-n { background: transparent; }
html.light .edt-steps a { background: var(--cm-panel); }
html.light button.edt-primary, html.light .edt-link-button,
html.light .stem-grid a.edt-link-button, html.light .clean-review a.edt-link-button { color: var(--cm-acid); }
html.light button.edt-primary:hover:not(:disabled), html.light .edt-link-button:hover { background: #2c2c31; border-color: #2c2c31; color: var(--cm-acid); }
html.light .edt-link-button.edt-secondary, html.light .stem-grid a.edt-link-button.edt-secondary,
html.light .edt-link-button.edt-secondary:hover { background: var(--cm-panel); }
html.light .edt-link-button.edt-secondary, html.light .stem-grid a.edt-link-button.edt-secondary { color: var(--text); }
html.light .edt-link-button.edt-secondary:hover { color: var(--accent); }
html.light button.edt-danger { color: #b42318; border-color: #e8b4b0; }
html.light button.edt-danger:hover:not(:disabled) { color: #8f1b12; border-color: #d9534f; }
html.light .edt-drop { border-color: var(--cm-line-strong); background: var(--cm-raised); }
html.light .edt-drop[data-dragging] { border-color: var(--accent); background: var(--cm-acid-soft); }
html.light .edt-drop-btn { background: var(--cm-panel); }
html.light .edt-drop:not([data-loaded]):not(.edt-drop-small) .edt-drop-btn,
html.light .edt-empty .edt-drop-btn { background: var(--accent); border-color: var(--accent); color: var(--cm-acid); }
html.light details.edt-more { background: var(--cm-raised); }
html.light details.edt-panel { background: var(--panel); }
html.light .edt-toolbar { background: var(--cm-raised); }
html.light .edt-group + .edt-group, html.light .edt-menu { border-left-color: var(--cm-line); }
html.light .edt-tool { background: var(--cm-panel); }
html.light .edt-tool.edt-primary, html.light label.edt-tool.edt-primary { background: var(--accent); color: var(--cm-acid); }
html.light label.edt-tool.edt-primary:hover { background: #2c2c31; color: var(--cm-acid); }
html.light button.edt-tool[aria-pressed=true] { background: var(--cm-acid-soft); }
html.light button.edt-tool.edt-play:not(:disabled) { border-color: var(--cm-ice-line); }
html.light .edt-menu-list { background: var(--cm-panel); box-shadow: 0 .7rem 1.8rem rgb(35 38 45 / .18); }
html.light .edt-menu-list button:hover:not(:disabled) { background: var(--cm-raised); }
html.light .edt-empty { background: color-mix(in srgb, var(--cm-raised) 94%, transparent); }
html.light .edt-side { background: var(--cm-bg); }
html.light .edt-tabs [role=tab][aria-selected=true] { background: var(--cm-panel); }
html.light .edt-statusbar { background: var(--cm-raised); }
html.light kbd { background: var(--cm-panel); }
/* clubmix-thm END */

/* The analysis result uses the landing page's panel, layer controls and palette. */
.edt-editor[data-result-view="overview"] { height: auto; min-height: 0; }
.edt-editor[data-result-view="overview"] :is(.edt-workspace, .edt-model-line) { display: none; }
.edtResult.cmxDemo {
    --cm-mono: ui-monospace, SFMono-Regular, Consolas, monospace;
    width: min(100%, 77rem); align-self: center; padding: clamp(.8rem, 3vw, 2.25rem) 0 1rem; border: 0;
}
.edtResult[hidden], .edtResultCues[hidden], .edtResultBack[hidden] { display: none; }
.edtResultWave { position: relative; }
.edtResult .cmxCanvas { height: clamp(10rem, 20vw, 14rem); }
.edtResultWave[data-loaded] .cmxCanvas { cursor: crosshair; }
.edtResultCursor { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.edtResultSeek { display: flex; align-items: center; gap: .75rem; margin-top: .35rem; }
.edtResultSeek .edt-clock { color: var(--cm-muted); font-size: .8125rem; }
.edtResult .edt-tool { min-height: 2.55rem; padding-inline: .9rem; }
.edtResult :is(.edt-tool, .status)[hidden] { display: none; }
.edtResultBack { align-self: flex-start; margin-bottom: .4rem; }
.edtResultProfile { border-top: 1px solid var(--cm-line); margin-top: .9rem; padding-top: .75rem; }
.edtResultProfile [hidden] { display: none; }

/* Feinschliff 01.12.2026: Werkzeugleiste am Telefon brach in vier Reihen um. Unter 40rem nur Symbole (Text bleibt fuer
   Screenreader und als title-Hinweis), die Hauptaktion behaelt ihre Beschriftung; 40 px hohe Trefferflaechen. */
@media (max-width: 40rem) {
    .edt-toolbar .edt-tool:not(.edt-primary) > span { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .edt-toolbar .edt-tool { min-height: 2.5rem; min-width: 2.5rem; justify-content: center; }
    .edt-toolbar { gap: .35rem; }
    .edt-group + .edt-group, .edt-toolbar .edt-menu { padding-left: .35rem; }
}

/* P4 (01.12.2026): leerer Editor am Telefon - Hinweis und "Audiodatei oeffnen" passten nicht in die 9-rem-Wellenflaeche
   und wurden abgeschnitten. Ohne geladenen Track bekommt die Flaeche die Hoehe ihres Inhalts. */
@media (max-width: 640px) {
    .edt-wave-col:not([data-loaded]) .waveform { height: 19rem; }
}

/* Feinschliff 01.12.2026: Hinweis zur Audioverarbeitung als zuklappbare Zeile (cfg/clubmix_editor_view.php). */
.edt-data-use { margin: 0 0 .6rem; border: 1px solid var(--line); border-radius: .625rem; background: var(--cm-panel); font-size: .875rem; color: var(--muted); }
.edt-data-use > summary { display: flex; align-items: center; gap: .45rem; min-height: 2.5rem; padding: .35rem .75rem; cursor: pointer; color: var(--text); font-weight: 600; list-style: none; }
.edt-data-use > summary::-webkit-details-marker { display: none; }
.edt-data-use > summary::before { content: "\25B8"; color: var(--muted); transition: transform .15s; }
.edt-data-use[open] > summary::before { transform: rotate(90deg); }
.edt-data-use .cmToolDataUse { margin: 0; padding: 0 .75rem .65rem 1.95rem; }
.edt-data-use .cmToolDataUse > strong { display: none; }
.edt-data-use .cmToolDataUse p { margin: 0; }

