:root {
    --bg: #c7d0d6;
    --panel: #dce3e8;
    --panel2: #c5d0d7;
    --line: #5c6c76;
    --text: #14212b;
    --muted: #596974;
    --dark: #394854;
    --dark2: #26333d;
    --amber: #f0a915;
    --amber2: #ffd36a;
    --red: #b84444;
    --green: #4f8f66;
    --shadow: rgba(23,34,42,.22);
    font-family: Helvetica,Arial,sans-serif;
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(#d5dbe0,#b6c1c8);
    min-height: 100vh;
    font-size: 14px;
}

a:link, a:visited {color: var(--red);}

button,input,select {
    font: inherit
}

button {
    touch-action: manipulation
}

.app-shell {
    width: min(1600px,96%);
    margin: 14px auto 40px;
}

.panel {
    background: linear-gradient(#e3e8ec,#cbd4da);
    border: 1px solid #566772;
    border-radius: 7px;
    box-shadow: 0 2px 5px var(--shadow);
    margin-bottom: 12px;
}

.hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-end;
    padding: 16px 18px;
}

.eyebrow {
    color: #9b6500;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .16em;
}

h1 {
    margin-top: 5px;
    margin-bottom: 4px;
        font-size: clamp(2rem, 4.3vw, 3rem);
        line-height: 0.98;
    letter-spacing: -0.035em;
}

h2 {
    margin: 2px 0 0;
    font-size: 17px;
}

.hero p {
    max-width: 900px;
    margin: 6px 0 0;
    color: #4d5e69;
    line-height: 1.3;
}

.master-strip {
    min-width: 260px;
    display: grid;
    grid-template-columns: auto 1fr 54px;
    align-items: center;
    gap: 10px;
}

input[type=range] {
    accent-color: var(--amber);
}

.btn {
    border: 1px solid #536672;
    border-radius: 4px;
    color: #fff;
    background: linear-gradient(#71828e,#4e5e69);
    padding: 8px 12px;
    cursor: pointer;
    box-shadow: inset 0 1px rgba(255,255,255,.22);
}

.btn:hover {
    filter: brightness(1.08)
}

.btn:active {
    transform: translateY(1px)
}

.btn.primary {
    background: linear-gradient(#7a8d99,#485965)
}

.btn.accent {
    background: linear-gradient(#d59a21,#9b6b09)
}

.btn.danger.active {
    background: linear-gradient(#d25b5b,#993737)
}

.btn.toggle.active {
    background: linear-gradient(#d9a526,#a06f0d)
}

.btn.small {
    padding: 5px 9px
}

.icon-btn {
    padding-inline: 11px
}

.file-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center
}

.file-btn input,.file-mini input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer
}

.transport-panel {
    padding: 11px 12px
}

.transport-panel,.transport,.transport-fields,.project-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.transport-panel {
    justify-content: space-between
}

.transport-fields label {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
}

.transport-fields input[type=number] {
    width: 70px;
    padding: 6px;
    border: 1px solid #9aa8b0;
    border-radius: 3px;
}

.check {
    user-select: none
}

.timeline-panel {
    overflow: hidden
}

.timeline-toolbar {
    min-height: 48px;
    padding: 9px 12px;
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    border-bottom: 1px solid #788892;
}

.timeline-toolbar label {
    display: flex;
    gap: 7px;
    align-items: center;
    color: var(--muted);
}

.timeline-scroll {
    position: relative;
    overflow: auto;
    overscroll-behavior: contain;
    max-height: 540px;
    background: #131a20;
    --control-w: 248px;
    --pps: 64px;
}

.ruler {
    position: sticky;
    top: 0;
    z-index: 8;
    height: 32px;
    margin-left: var(--control-w);
    min-width: calc(120 * var(--pps));
    background: #202b33;
    border-bottom: 1px solid #51616c;
    color: #cdd6dc;
}

.ruler-mark {
    position: absolute;
    top: 0;
    height: 32px;
    border-left: 1px solid #71808a;
    padding: 5px 0 0 5px;
    font-size: 11px;
}

.ruler-mark.minor {
    height: 10px;
    top: 22px;
    color: transparent;
    border-color: #44515a;
}

.tracks {
    min-width: calc(var(--control-w) + 120 * var(--pps))
}

.track {
    min-height: 95px;
    display: grid;
    grid-template-columns: var(--control-w) 1fr;
    border-bottom: 1px solid #46545e;
}

.track.selected .track-controls {
    background: linear-gradient(#fff0c7,#e8c77d);
    border-left: 5px solid #d89408;
    box-shadow: inset 0 0 0 1px rgba(216,148,8,.28);
}

/* Die aktuell gewählte Spur soll auf einen Blick erkennbar sein. */
.track.selected .track-select {
    background: linear-gradient(#f7bd37,#d89408);
    border-color: #9b6700;
    color: #1c252b;
    font-weight: 700;
}

.track.selected .lane {
    box-shadow:
        inset 0 2px 0 rgba(240,165,28,.85),
        inset 0 -2px 0 rgba(240,165,28,.85);
}

.track-controls {
    position: sticky;
    left: 0;
    z-index: 7;
    padding: 7px 9px;
    background: linear-gradient(#ccd6dc,#afbdc5);
    border-right: 1px solid #71808a;
}

.track-topline {
    display: flex;
    gap: 6px;
    align-items: center;
}

.track-select {
    width: 28px;
    height: 28px;
    border: 1px solid #52636e;
    border-radius: 4px;
    background: #4c5d68;
    color: white;
    cursor: pointer;
}

.track-name {
    min-width: 0;
    flex: 1;
    border: 1px solid #8b9aa3;
    background: #f0f3f5;
    border-radius: 3px;
    padding: 5px 7px;
    font-weight: 700;
}

.track-buttons {
    display: flex;
    gap: 4px;
    margin-top: 6px;
}

.mini {
    min-width: 31px;
    height: 25px;
    border: 1px solid #5b6a74;
    border-radius: 3px;
    background: #6c7c86;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.mini.active {
    background: #d49b22;
    color: #17212a
}

.arm-btn.active {
    background: #b94747;
    color: #fff
}

.compact {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 5px;
    align-items: center;
    margin-top: 5px;
    font-size: 11px;
}

.compact input {
    width: 100%
}

.lane {
    position: relative;
    min-width: calc(120 * var(--pps));
    --grid-size: var(--pps);
    background: linear-gradient(#10171c,#151e24);
}

.timeline-scroll.grid-on .lane {
    background: repeating-linear-gradient(to right,rgba(240,169,21,.10) 0 1px,transparent 1px var(--grid-size)), linear-gradient(#10171c,#151e24);
}

.lane.drop-target {
    box-shadow: inset 0 0 0 2px rgba(240,169,21,.8);
}

.lane.dragover {
    box-shadow: inset 0 0 0 3px var(--amber)
}

.clip {
    position: absolute;
    top: 10px;
    height: 72px;
    min-width: 18px;
    border: 1px solid #d7a323;
    border-radius: 4px;
    background: linear-gradient(#697b87,#43545f);
    color: #fff;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    box-shadow: 0 2px 4px rgba(0,0,0,.25);
}

.clip:active {
    cursor: grabbing
}

.clip.selected {
    outline: 2px solid var(--amber2)
}

.clip-title {
    position: absolute;
    left: 10px;
    right: 10px;
    top: 4px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 2;
}

.clip-mod-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 4px;
    border: 1px solid rgba(83, 52, 0, .65);
    border-radius: 3px;
    background: #f0a51c;
    color: #1c252b;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .04em;
    vertical-align: 1px;
}

.clip-mod-badge[hidden] {
    display: none;
}


.wave {
    position: absolute;
    inset: 20px 4px 4px;
    width: calc(100% - 8px);
    height: calc(100% - 24px);
}

.clip-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 8px;
    z-index: 5;
    background: rgba(240,169,21,.72);
    cursor: ew-resize;
}

.clip-handle.left {
    left: 0;
    border-radius: 3px 0 0 3px
}

.clip-handle.right {
    right: 0;
    border-radius: 0 3px 3px 0
}

.clip-handle:hover {
    background: #ffd36a
}

.timeline-toolbar .btn:disabled {
    opacity: .42;
    cursor: default;
    filter: none;
}

.grid-toggle {
    font-weight: 700;
}

.playhead {
    position: absolute;
    z-index: 12;
    top: 32px;
    bottom: 0;
    left: var(--control-w);
    width: 2px;
    background: var(--amber);
    pointer-events: none;
    box-shadow: 0 0 5px rgba(240,169,21,.65);
}

.playhead::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -5px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 9px solid var(--amber);
}

.hint {
    margin: 0;
    padding: 8px 12px 10px;
    color: #5b6871;
    font-size: 12px;
}

.sample-panel {
    padding: 12px
}

.sample-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 9px 22px;
}

.sample-grid label {
    display: grid;
    grid-template-columns: 88px 1fr 72px;
    gap: 10px;
    align-items: center;
    color: var(--muted);
}

.sample-grid output {
    text-align: right;
    color: #31404a
}

.sample-grid input:disabled {
    opacity: .45
}

.envelope {
    position: absolute;
    inset: 20px 4px 4px;
    width: calc(100% - 8px);
    height: calc(100% - 24px);
    z-index: 1;
    pointer-events: none;
}

.wave {
    z-index: 0
}

.clip-title,.clip-handle {
    z-index: 3
}

.fx-panel {
    padding: 12px
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.fx-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 9px 22px;
}

.fx-grid label {
    display: grid;
    grid-template-columns: 88px 1fr 72px;
    gap: 10px;
    align-items: center;
    color: var(--muted);
}

.fx-grid output {
    text-align: right;
    color: #31404a
}

.status-panel {
    display: flex;
    justify-content: space-between;
    padding: 9px 12px;
    color: #53636d;
}

.status-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #5f9b6f;
    margin-right: 7px;
}

.status-dot.busy {
    background: #d39b25
}

.status-dot.error {
    background: #b74747
}

@media (max-width:900px) {
    .app-shell {
        width: 100%;
        margin: 0
    }

    .panel {
        border-radius: 0;
        margin-bottom: 8px
    }

    .hero {
        align-items: stretch;
        flex-direction: column;
        padding: 12px
    }

    h1 {
        font-size: 28px
    }

    .master-strip {
        min-width: 0;
        width: 100%
    }

    .transport-panel {
        align-items: stretch
    }

    .project-actions {
        width: 100%
    }

    .project-actions .btn,.project-actions .file-btn {
        flex: 1 1 145px;
        justify-content: center
    }

    .timeline-scroll {
        --control-w: 174px;
        max-height: 60vh
    }

    .track-controls {
        padding: 6px
    }

    .track-buttons {
        gap: 3px
    }

    .compact {
        grid-template-columns: 25px 1fr
    }

    .fx-grid,.sample-grid {
        grid-template-columns: 1fr
    }

    .fx-grid label,.sample-grid label {
        grid-template-columns: 78px 1fr 65px
    }

    .status-panel {
        gap: 8px;
        flex-wrap: wrap
    }
}

@media (max-width:520px) {
    body {
        font-size: 13px
    }

    h1 {
        font-size: 24px
    }

    .transport {
        display: grid;
        grid-template-columns: repeat(3,1fr);
        width: 100%
    }

    .transport .btn {
        padding-inline: 6px
    }

    .transport-fields {
        justify-content: space-between;
        width: 100%
    }

    .timeline-scroll {
        --control-w: 146px
    }

    .track-name {
        width: 95px
    }

    .mini {
        min-width: 27px;
        font-size: 11px
    }

    .file-mini {
        min-width: 34px
    }

    .timeline-toolbar {
        gap: 9px
    }
}

/* =========================================================
BASS / DRUMS - TRACK SHAPING
========================================================= */
.drum-fx-head {
    margin-top: 14px;
    padding: 8px 0 5px;
    border-top: 1px solid #8b9aa3;
    color: #9b6500;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .14em;
}

.drum-fx-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 10px;
    padding: 8px 10px 9px;
    border-radius: 5px;
    background: linear-gradient(#71818c,#52636e);
}

.drum-fx-grid label {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    min-width: 0;
    color: #fff;
    text-align: center;
}

.drum-fx-grid label span {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
}

.drum-fx-grid input {
    width: 100%
}

.drum-fx-grid output {
    color: #ffe08a;
    font-size: 11px;
    font-weight: 700;
}

@media (max-width:700px) {
    .drum-fx-grid {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }
}

/* =========================================================
v05: Spur-Reihenfolge und Mehrfachauswahl
========================================================= */
.track-drag {
    width: 26px;
    height: 28px;
    flex: 0 0 26px;
    border: 1px solid #52636e;
    border-radius: 4px;
    background: #687984;
    color: #fff;
    cursor: grab;
    font-weight: 900;
}

.track-drag:active {
    cursor: grabbing;
}

.track.track-dragging {
    opacity: .55;
}

.track.track-drop-before {
    box-shadow: inset 0 3px 0 var(--amber);
}

.track.track-drop-after {
    box-shadow: inset 0 -3px 0 var(--amber);
}

.clip.selected {
    outline: 2px solid var(--amber2);
    box-shadow: 0 0 0 1px #fff7c7, 0 2px 5px rgba(0,0,0,.28);
}

.track-pan {
    cursor: pointer;
}

/* =========================================================
v11: Sample-Verlangsamung
========================================================= */
.sample-grid .sample-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    justify-self: start;
    accent-color: var(--amber);
}

.sample-grid .sample-check output {
    white-space: nowrap;
}


/* =========================================================
   Lexikon / Hilfe
   ========================================================= */
.glossary-panel {
    padding: 0;
}

.glossary {
    padding: 0;
}

.glossary summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    cursor: pointer;
    user-select: none;
}

.glossary summary strong {
    font-size: 16px;
}

.glossary summary::marker {
    color: var(--amber);
}

.glossary-intro {
    margin: 0;
    padding: 2px 16px 14px;
    color: var(--muted);
    line-height: 1.5;
}

.glossary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: #aab5bc;
    border-top: 1px solid #8b9aa3;
}

.glossary-grid > div {
    background: #e3e8ec;
    padding: 11px 14px 12px;
}

.glossary-grid dt {
    margin: 0 0 4px;
    font-weight: 700;
    color: #26333d;
}

.glossary-grid dd {
    margin: 0;
    color: #53636d;
    line-height: 1.45;
}

@media (max-width: 700px) {
    .glossary-grid {
        grid-template-columns: 1fr;
    }

    .glossary summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}


/* =========================================================
   Stereo-VU-Meter – Gesamtsignal, kompakt über Master
   ========================================================= */
.hero-master {
    min-width: 300px;
    display: grid;
    gap: 7px;
}

.stereo-vu {
    display: grid;
    gap: 3px;
    padding: 5px 7px;
    border: 1px solid #71808a;
    border-radius: 4px;
    background: #253038;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.35);
}

.stereo-vu-row {
    display: grid;
    grid-template-columns: 12px 1fr 42px;
    gap: 6px;
    align-items: center;
    min-height: 12px;
    color: #e8edf0;
    font-size: 10px;
    font-weight: 700;
}

.stereo-vu-channel {
    text-align: center;
}

.stereo-vu-track {
    position: relative;
    height: 8px;
    overflow: hidden;
    border: 1px solid #11181d;
    border-radius: 2px;
    background: #10161a;
}

.stereo-vu-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(
        to right,
        #28c842 0 70%,
        #e5d52d 70% 86%,
        #f0a51b 86% 94%,
        #d83b35 94% 100%
    );
    transition: width 45ms linear;
}

.stereo-vu-track::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to right,
        transparent 0 6px,
        rgba(0,0,0,.45) 6px 8px
    );
    pointer-events: none;
}

.stereo-vu-row output {
    min-width: 42px;
    color: #d7e0e5;
    text-align: right;
    white-space: nowrap;
}

@media (max-width:900px) {
    .hero-master {
        min-width: 0;
        width: 100%;
    }
}


/* =========================================================
   v13: Stereo-VU-Meter als LED-Matrix unter BPM
   ========================================================= */
.bpm-vu-stack {
    display: grid;
    gap: 5px;
    min-width: 285px;
}

.bpm-control {
    justify-self: end;
}

.stereo-vu {
    width: 285px;
    padding: 4px 6px 5px;
    border: 1px solid #536672;
    border-radius: 4px;
    background: #172127;
    box-shadow: inset 0 1px 3px rgba(0,0,0,.5);
}

.stereo-vu-scale {
    display: grid;
    grid-template-columns: repeat(6,1fr);
    margin: 0 45px 2px 16px;
    color: #9fafb8;
    font-size: 8px;
    line-height: 1;
}

.stereo-vu-scale span {
    text-align: center;
}

.stereo-vu-row {
    display: grid;
    grid-template-columns: 10px 1fr 45px;
    gap: 5px;
    align-items: center;
    min-height: 12px;
    color: #e6edf1;
    font-size: 9px;
    font-weight: 700;
}

.stereo-vu-channel {
    text-align: center;
}

.stereo-vu-matrix {
    display: grid;
    grid-template-columns: repeat(24,minmax(2px,1fr));
    gap: 2px;
    height: 8px;
}

.stereo-vu-matrix span {
    min-width: 0;
    border-radius: 1px;
    background: #263137;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.28);
}

/* =========================================================
   VU-METER-FARBEN
   Die dB-Bereichsgrenzen werden NICHT hier, sondern zentral in
   assets/app.js unter "VU-METER – BEREICHE HIER ÄNDERN" festgelegt.
   Hier werden nur die Farben der drei Bereiche definiert.
   ========================================================= */
.stereo-vu-matrix span.active[data-vu-zone="green"] {
    background: #25d143;
    box-shadow: 0 0 4px rgba(37,209,67,.55);
}

.stereo-vu-matrix span.active[data-vu-zone="orange"] {
    background: #f0a51c;
    box-shadow: 0 0 4px rgba(240,165,28,.6);
}

.stereo-vu-matrix span.active[data-vu-zone="red"] {
    background: #e23a35;
    box-shadow: 0 0 5px rgba(226,58,53,.7);
}

.stereo-vu-row output {
    min-width: 45px;
    color: #dce5e9;
    text-align: right;
    white-space: nowrap;
}

.stereo-vu-row output.clip {
    color: #ff625c;
    font-weight: 900;
}

@media (max-width:900px) {
    .bpm-vu-stack {
        width: 100%;
        min-width: 0;
    }

    .bpm-control {
        justify-self: start;
    }

    .stereo-vu {
        width: min(285px,100%);
    }
}


/* =========================================================
   v14: VU-Meter breit unter BPM / Metronom / Zeit / Länge
   ========================================================= */

@media (min-width: 901px) {
    .transport-panel {
        display: grid;
        grid-template-columns: auto minmax(560px, 1fr);
        grid-template-areas:
            "transport meters"
            "actions actions";
        gap: 9px 22px;
        align-items: start;
    }

    .transport {
        grid-area: transport;
        align-self: center;
    }

    .transport-fields {
        grid-area: meters;
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
        width: 100%;
        min-width: 0;
    }

    .transport-meta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        width: 100%;
        padding: 0 2px;
    }

    .transport-meta label {
        display: flex;
        align-items: center;
        gap: 5px;
        color: var(--muted);
        white-space: nowrap;
    }

    .transport-meta input[type="number"] {
        width: 70px;
        padding: 6px;
        border: 1px solid #9aa8b0;
        border-radius: 3px;
    }

    .project-actions {
        grid-area: actions;
        width: 100%;
    }

    .stereo-vu {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
    }

    .stereo-vu-scale {
        margin-left: 16px;
        margin-right: 48px;
    }

    .bpm-vu-stack,
    .bpm-control {
        display: contents;
    }
}

@media (max-width: 900px) {
    .transport-fields {
        display: grid;
        gap: 7px;
        width: 100%;
    }

    .transport-meta {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
        width: 100%;
    }

    .transport-meta label {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .stereo-vu {
        width: 100%;
        max-width: none;
    }
}


/* =========================================================
   v15: Transport-Felder rechtsbündig, maximal 500 px
   ========================================================= */
@media (min-width: 901px) {
    .transport-panel {
        grid-template-columns: auto minmax(0, 500px);
    }

    .transport-fields {
        width: 100%;
        max-width: 500px;
        justify-self: end;
    }
}


/* =========================================================
   Mixdown-Fortschrittsanzeige
   ========================================================= */
.mixdown-progress {
    padding: 9px 12px 10px;
}

.mixdown-progress[hidden] {
    display: none;
}

.mixdown-progress-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    color: #455660;
    font-size: 12px;
}

.mixdown-progress-head output {
    min-width: 48px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.mixdown-progress-track {
    position: relative;
    height: 11px;
    overflow: hidden;
    border: 1px solid #71808a;
    border-radius: 3px;
    background: #aebac1;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.22);
}

.mixdown-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(#f7bd37,#d89408);
    transition: width .16s ease-out;
}

.mixdown-progress.indeterminate .mixdown-progress-fill {
    width: 34% !important;
    transition: none;
    animation: mixdown-progress-move 1.05s linear infinite;
}

@keyframes mixdown-progress-move {
    from {
        transform: translateX(-110%);
    }

    to {
        transform: translateX(310%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mixdown-progress.indeterminate .mixdown-progress-fill {
        animation-duration: 2.2s;
    }
}


/* =========================================================
   Mixdown-Fortschritt v2 – immer sichtbar als Overlay
   ========================================================= */
.mixdown-progress {
    position: fixed;
    left: 50%;
    top: 220px;
    transform: translateX(-50%);
    z-index: 99999;
    width: min(520px, calc(100vw - 28px));
    margin: 0;
    padding: 12px 14px 13px;
    border: 1px solid #536672;
    border-radius: 7px;
    background: linear-gradient(#eef2f4,#d7e0e5);
    box-shadow:
        0 8px 28px rgba(20,31,39,.35),
        inset 0 1px rgba(255,255,255,.7);
}

.mixdown-progress[hidden] {
    display: none !important;
}

.mixdown-progress-head {
    margin-bottom: 8px;
    font-size: 13px;
}

.mixdown-progress-track {
    height: 14px;
}

.mixdown-progress-fill {
    min-width: 0;
}

body.mixdown-busy::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 99990;
    background: rgba(22,31,37,.10);
    pointer-events: none;
}


/* =========================================================
   CLIP-KONTEXTMENÜ
   Rechtsklick auf ein Sample/Clip -> "Speichern unter"
   ========================================================= */
.clip-context-menu {
    position: fixed;
    z-index: 100000;
    min-width: 155px;
    padding: 5px;
    background: #eef2f4;
    border: 1px solid #687984;
    border-radius: 4px;
    box-shadow: 0 5px 16px rgba(0,0,0,.28);
}

.clip-context-menu-item {
    display: block;
    width: 100%;
    padding: 8px 12px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: #1c252b;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.clip-context-menu-item:hover,
.clip-context-menu-item:focus {
    outline: none;
    background: #f0a51c;
    color: #172027;
}
