/*
  Copyright 2021 David Whiting
  This work is licensed under a Creative Commons Attribution 4.0 International License
  https://creativecommons.org/licenses/by/4.0/
*/

@import url('https://fonts.googleapis.com/css2?family=Orbitron&display=swap');

:root {
    --acid-page-bg: #09090c;
    --acid-pattern-bg: #182a10;
    --acid-note: #7dff60;
    --acid-accent: #f47dff;
    --acid-glide: #ffd86a;
    --acid-text: #d9ffd3;
    --acid-highlight: rgba(255,255,255,0.2);
    --acid-grid: rgba(117,255,85,0.34);
    --acid-dial: #e184ff;
    --acid-panel-border: #4c5f2f;
}

body {
    background:
        radial-gradient(circle at 12% 10%, rgba(145, 255, 102, 0.21), transparent 34%),
        radial-gradient(circle at 84% 18%, rgba(213, 57, 255, 0.28), transparent 44%),
        linear-gradient(180deg, #11160d 0%, var(--acid-page-bg) 45%, #060907 100%);
    color:white;
    font-family: Orbitron, monospace;
    letter-spacing: 0.02em;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: manipulation;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.22;
    background:
      repeating-linear-gradient(to bottom, rgba(153, 255, 122, 0.12) 0 1px, transparent 1px 3px),
      linear-gradient(to right, rgba(132, 255, 91, 0.04), rgba(255, 82, 234, 0.03));
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    opacity: 0.18;
    background:
      radial-gradient(circle at 18% 14%, rgba(168, 255, 76, 0.35), transparent 28%),
      radial-gradient(circle at 82% 16%, rgba(255, 84, 232, 0.32), transparent 33%),
      radial-gradient(circle at 54% 88%, rgba(255, 218, 92, 0.22), transparent 30%);
    animation: acidBloom 4.2s ease-in-out infinite;
}

#acidPageIntro h2 {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-shadow: 0 0 18px rgba(171, 255, 90, 0.35), 0 0 8px rgba(243, 117, 255, 0.3);
}

#acidPageIntro {
    border: 1px solid var(--acid-panel-border);
    background: linear-gradient(180deg, rgba(12, 20, 12, 0.9), rgba(10, 8, 18, 0.88));
    box-shadow: 0 0 0 1px rgba(106, 255, 89, 0.16), 0 0 26px rgba(228, 121, 255, 0.14);
    padding: 10px 12px;
}

#ui {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: min(1200px, 100%);
}

.bpm-tempo-header {
    box-sizing: border-box;
    width: 100%;
    margin: 0 5px 10px 5px;
    padding: 10px 14px;
    border: 1px solid var(--acid-panel-border);
    background: linear-gradient(180deg, #1a1530 0%, #0d0d14 100%);
    font-family: Orbitron, monospace;
    font-size: 1rem;
    letter-spacing: 0.06em;
    color: var(--acid-text);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 10px;
    position: relative;
    transition: box-shadow 0.08s ease-out, background 0.08s ease-out;
}

.bpm-tempo-header-right {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.bpm-beat-leds {
    display: flex;
    gap: 6px;
    align-items: center;
}

.bpm-beat-led {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1a1a28;
    border: 1px solid #333;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.6);
    transition: background 0.05s ease-out, box-shadow 0.05s ease-out, transform 0.05s ease-out;
}

.bpm-beat-led--on {
    background: var(--acid-note);
    box-shadow: 0 0 10px rgba(136, 170, 204, 0.55);
}

.bpm-beat-led--downbeat {
    background: var(--acid-accent);
    box-shadow: 0 0 14px rgba(170, 136, 204, 0.75);
    transform: scale(1.15);
}

.bpm-tap-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bpm-tap-btn {
    font-family: Orbitron, monospace;
    font-size: 0.72em;
    letter-spacing: 0.12em;
    padding: 6px 10px;
    border: 1px solid var(--acid-panel-border);
    background: #12121c;
    color: var(--acid-text);
    cursor: pointer;
}

.bpm-tap-btn:hover {
    border-color: var(--acid-accent);
    color: var(--acid-accent);
}

.bpm-tap-beat-num {
    font-size: 1.1em;
    font-weight: bold;
    min-width: 1.1em;
    color: var(--acid-accent);
    text-align: center;
    opacity: 0.35;
    transition: opacity 0.08s ease-out, transform 0.08s ease-out, color 0.08s ease-out;
}

.bpm-tap-beat-num--pop {
    opacity: 1;
    transform: scale(1.35);
    color: #e8d4ff;
}

@keyframes bpm-header-flash-downbeat {
    0% {
        box-shadow: inset 0 0 0 2px var(--acid-accent), 0 0 20px rgba(170, 136, 204, 0.35);
    }
    100% {
        box-shadow: inset 0 0 0 0 transparent, 0 0 0 transparent;
    }
}

@keyframes bpm-header-flash-beat {
    0% {
        box-shadow: inset 0 0 0 1px var(--acid-note), 0 0 12px rgba(136, 170, 204, 0.22);
    }
    100% {
        box-shadow: inset 0 0 0 0 transparent, 0 0 0 transparent;
    }
}

.bpm-tempo-header-flash-downbeat {
    animation: bpm-header-flash-downbeat 0.16s ease-out;
}

.bpm-tempo-header-flash-beat {
    animation: bpm-header-flash-beat 0.12s ease-out;
}

.bpm-tempo-header-bpm {
    color: var(--acid-accent);
    font-weight: bold;
    font-size: 1.15em;
}

.bpm-tempo-header-sep {
    color: var(--acid-grid);
    font-weight: normal;
}

.bpm-tempo-header-mode {
    color: var(--acid-note);
    font-size: 0.92em;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.machines {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.25rem;
}

@media (min-width: 900px) {
    .machines {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1100px) {
    .machines {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.sync-panel-wide {
    width: 100%;
    flex-basis: 100%;
    min-height: auto;
    border: 1px solid var(--acid-panel-border);
    background-color: #000;
    margin: 5px;
    padding: 8px;
    box-sizing: border-box;
}

.sync-panel-title {
    font-size: 0.85em;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    color: var(--acid-text);
}

.sync-modes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-bottom: 8px;
    font-family: monospace;
    font-size: 0.85em;
}

.sync-mode-option {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.sync-select-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
    font-family: monospace;
    font-size: 0.85em;
}

.sync-select-label {
    min-width: 5.5rem;
}

.sync-select {
    flex: 1;
    max-width: 28rem;
    background: #111;
    color: #fff;
    border: 1px solid var(--acid-panel-border);
    font-family: monospace;
    padding: 4px;
}

.sync-refresh {
    margin-top: 6px;
    font-size: 0.8em;
}

.sync-status {
    margin-top: 8px;
    font-family: monospace;
    font-size: 0.8em;
    color: #aaa;
    white-space: pre-wrap;
}

.sync-hint {
    margin-top: 6px;
    font-family: monospace;
    font-size: 0.72em;
    color: #777;
    line-height: 1.35;
}

.osc-enable-row {
    margin-bottom: 6px;
}

.osc-url-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
    font-family: monospace;
    font-size: 0.85em;
}

.osc-url-input {
    flex: 1;
    max-width: 24rem;
    background: #111;
    color: #fff;
    border: 1px solid var(--acid-panel-border);
    padding: 4px;
    font-family: monospace;
}

.intro-details {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    font-family: monospace;
    font-size: 0.9em;
}

.intro-details summary {
    cursor: pointer;
    margin: 0.5rem 0;
}

.midi-io-panel {
    margin: 5px;
    padding: 8px;
    border: 1px solid var(--acid-panel-border);
    background-color: #000;
    box-sizing: border-box;
}

.midi-io-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 8px;
}

@media (min-width: 640px) {
    .midi-io-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.midi-io-heading {
    font-size: 1rem;
    font-weight: bold;
    color: var(--acid-text);
    margin-bottom: 2px;
}

.midi-io-sub {
    font-family: monospace;
    font-size: 0.72em;
    color: #888;
    margin-bottom: 6px;
    line-height: 1.3;
}

.midi-io-select {
    width: 100%;
    max-width: none;
}

.midi-learn-block {
    margin: 10px 0 12px;
    padding-top: 8px;
    border-top: 1px solid var(--acid-panel-border);
}

.midi-learn-head {
    font-size: 0.85em;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    color: var(--acid-text);
}

.midi-learn-hint {
    margin-bottom: 8px;
}

.midi-learn-status {
    min-height: 1.2em;
    font-family: monospace;
    font-size: 0.8em;
    color: #9cf;
    margin-bottom: 6px;
}

.midi-learn-cancel {
    display: none;
    font-family: monospace;
    font-size: 0.75em;
    padding: 4px 8px;
    margin-bottom: 8px;
    cursor: pointer;
}

.midi-ctx-menu {
    position: fixed;
    z-index: 10000;
    min-width: 220px;
    padding: 4px 0;
    background: #1a1a22;
    border: 1px solid var(--acid-panel-border);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
}

.midi-ctx-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 14px;
    border: none;
    background: transparent;
    color: var(--acid-text);
    font-family: monospace;
    font-size: 0.8em;
    cursor: pointer;
}

.midi-ctx-item:hover {
    background: rgba(170, 136, 204, 0.25);
}

.midi-ctx-current {
    padding: 8px 14px;
    border-bottom: 1px solid #2b2b36;
    font-family: monospace;
    font-size: 0.75em;
    color: #9ec9ff;
}

.midi-map-scroll {
    max-height: 180px;
    overflow-y: auto;
    margin-bottom: 8px;
    padding: 4px 0;
    border: 1px solid #333;
    background: #0a0a0a;
}

.midi-map-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 8px;
    font-family: monospace;
    font-size: 0.75em;
    border-bottom: 1px solid #222;
}

.midi-map-row:last-child {
    border-bottom: none;
}

.midi-map-label {
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.midi-map-forget {
    flex-shrink: 0;
    font-family: monospace;
    font-size: 0.9em;
    padding: 2px 8px;
    cursor: pointer;
}

.midi-map-clear-all {
    font-family: monospace;
    font-size: 0.8em;
    padding: 4px 10px;
    cursor: pointer;
}

.osc-plain-help {
    margin: 10px 0 12px;
    padding: 10px 12px;
    border: 1px solid #333;
    background: #0a0a0f;
}

.osc-plain-help-title {
    font-size: 0.8em;
    letter-spacing: 0.04em;
    color: var(--acid-text);
    margin-bottom: 8px;
}

.osc-plain-p {
    margin: 0 0 8px;
    line-height: 1.45;
    font-size: 0.78em;
}

.osc-plain-p:last-child {
    margin-bottom: 0;
}

.osc-bridge-readme-row {
    margin-bottom: 8px;
}

.osc-reference-link-row {
    margin: 0 0 8px 0;
}

.osc-bridge-readme-link {
    font-family: monospace;
    font-size: 0.78em;
    color: #aaccee;
    text-decoration: underline;
}

.osc-bridge-readme-link:hover {
    color: #cceeff;
}

.osc-section-label {
    margin-top: 10px;
    margin-bottom: 4px;
    font-size: 0.8em;
    letter-spacing: 0.04em;
    color: #aaa;
    text-transform: uppercase;
}

.osc-host-port-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

@media (min-width: 520px) {
    .osc-host-port-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.osc-hp-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: monospace;
    font-size: 0.8em;
}

.osc-field-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 6px 0;
}

.osc-field-label-block {
    font-family: monospace;
    font-size: 0.75em;
    color: #999;
    line-height: 1.3;
}

.osc-field-input {
    background: #111;
    color: #fff;
    border: 1px solid var(--acid-panel-border);
    padding: 5px;
    font-family: monospace;
    font-size: 0.85em;
}

.osc-field-input-wide {
    width: 100%;
    max-width: 36rem;
    box-sizing: border-box;
}

.osc-port-input {
    max-width: 8rem;
}

.osc-last-in {
    font-family: monospace;
    font-size: 0.8em;
    color: #ccc;
    background: #111;
    border: 1px solid var(--acid-panel-border);
    padding: 6px;
    min-height: 2.2em;
    word-break: break-all;
}

.osc-debug-row {
    margin-top: 6px;
    margin-bottom: 4px;
}

.osc-debug-clear {
    font-family: monospace;
    font-size: 0.72em;
    padding: 3px 8px;
    cursor: pointer;
}

.osc-debug-log {
    font-family: monospace;
    font-size: 0.75em;
    color: #c9d8f2;
    background: #0d0f14;
    border: 1px solid var(--acid-panel-border);
    padding: 6px;
    min-height: 6.5em;
    max-height: 14em;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.viz303-panel {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.visual-lite {
    padding: 10px;
    border: 1px solid var(--acid-panel-border);
    background: linear-gradient(180deg, rgba(13, 18, 26, 0.88), rgba(8, 10, 16, 0.9));
}

.visual-lite-note {
    margin: 0 0 8px;
    font-size: 0.78em;
    line-height: 1.45;
}

.visual-lite-enable {
    width: 100%;
    max-width: 280px;
    padding: 8px 10px;
}

.viz303-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.viz303-rec-btn {
    font-family: monospace;
    font-size: 0.75em;
    padding: 4px 10px;
    cursor: pointer;
}

.viz303-rec-status {
    font-family: monospace;
    font-size: 0.72em;
    color: #a9bedf;
}

.viz303-orbit-speed {
    width: 120px;
}

.viz303-slider-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 6px;
    border: 1px solid #2a3342;
    background: #0d1018;
}

.viz303-slider-label {
    font-family: monospace;
    font-size: 0.7em;
    color: #a9bedf;
    min-width: 62px;
}

.viz303-cam-mode {
    font-family: monospace;
    font-size: 0.74em;
    background: #0d1018;
    color: #cfd9ea;
    border: 1px solid #384254;
    padding: 3px 6px;
}

.viz303-mixer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    padding: 4px 2px 2px;
}

.viz303-mixer-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: monospace;
    font-size: 0.72em;
    color: #bed1ee;
}

.viz303-mixer-title {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 85px;
}

.viz303-mixer-slider {
    width: 88px;
}

.viz303-canvas-wrap {
    width: 100%;
    min-height: 250px;
    height: 280px;
    border: 1px solid var(--acid-panel-border);
    background: radial-gradient(circle at 50% 24%, #17121f 0%, #0a0b10 64%, #050507 100%);
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6), 0 0 22px rgba(167, 101, 255, 0.12);
    overflow: hidden;
}

.viz303-canvas-wrap canvas {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: pan-y;
}

.osc-emit-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.osc-emit-btn {
    font-size: 0.75em;
}

.link-ws-fields {
    margin-top: 8px;
    margin-bottom: 6px;
}

.link-bridge-guide {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--acid-panel-border);
}

.link-bridge-intro {
    margin-bottom: 8px;
}

.link-bridge-doc-link {
    display: inline-block;
    margin-bottom: 10px;
    font-family: monospace;
    font-size: 0.78em;
    color: #aaccee;
    text-decoration: underline;
}

.link-bridge-doc-link:hover {
    color: #cceeff;
}

.link-bridge-steps-title {
    font-size: 0.72em;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 6px;
}

.link-bridge-steps {
    margin: 0 0 10px 1.1em;
    padding: 0;
    font-family: monospace;
    font-size: 0.72em;
    line-height: 1.45;
    color: #bbb;
}

.link-bridge-steps li {
    margin-bottom: 5px;
}

.link-bridge-cmd-label {
    font-family: monospace;
    font-size: 0.72em;
    color: #888;
    margin-bottom: 4px;
}

.link-bridge-cmd {
    margin: 0 0 4px;
    padding: 8px 10px;
    background: #0d0d12;
    border: 1px solid #333;
    font-family: monospace;
    font-size: 0.72em;
    line-height: 1.35;
    color: #ccc;
    overflow-x: auto;
}

p {
    max-width: 1200px;
    margin-left: auto;
    margin-right:auto;
    font-family: monospace;
}

a {
    color:white;
}

@media (max-width: 500px) {
    p {
        font-size: 0.8em;
    }
}

.machine,.control-group {

    background-color: black;
    display: grid;
    grid-template-columns: 20px auto;
    border: 1px solid #444444;
    margin:5px;
}

.label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-align: center;
    /* left because we're 180 rotated */
    border-left: 1px solid #444444;
}

.machine .group {
    display: grid;
    grid-template-columns: 25px auto 70px;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.control-group {
    min-height: 100px;
    height: auto;
    box-sizing: border-box;
}

.control-group .group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.control-group .group button {
    flex-grow: 1;
}

.pattern {
    width:100%;
    height: 200px;
    /*min-height: 150px;*/
    /*border-right:1px solid rgba(255,255,255,0.3);*/
}

button {
    color:white;
    background-color: #111;
    border: 1px solid #444;
    text-align: center;
    cursor: pointer;
    font-family: Orbitron, monospace
}

button:hover {
    background-color: #222;
}

.dial {
    display: block;
    touch-action: none;
}
.mutes button {
    height: 50px;
    display: block;
}

.mutes .on {
    background-color: #770000;
}

.trigger-button {
    font-size:20px;
    padding:0;
    text-align: center;
}

.params.horizontal .dial {
  display: inline-block;
}

.control-group .params {
    height: 50px;
    margin-top: auto;
    margin-bottom: auto;
    text-align: center;
}
.control-group {
    flex-grow: 1;
}

.acid-meter-canvas {
    object-fit: fill;
    height: 128px;
    width: 100%;
    border: 1px solid #3a2d25;
    background: #090a0f;
    box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.8), 0 0 16px rgba(255, 124, 72, 0.18);
}

.acid-meter-main-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    width: 100%;
}

.acid-meter-main-canvas {
    object-fit: fill;
    width: 100%;
    height: 84px;
    border: 1px solid #3a2d25;
    background: #090a0f;
    box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.8), 0 0 16px rgba(255, 124, 72, 0.16);
}

.acid-meter-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.acid-meter-split-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    width: 100%;
}

.acid-meter-layer-canvas {
    object-fit: fill;
    width: 100%;
    height: 84px;
    border: 1px solid #2f3340;
    background: #07080d;
    box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.76), 0 0 10px rgba(126, 178, 255, 0.12);
}

.acid-meter-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.acid-meter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: monospace;
    font-size: 0.7em;
    color: #b6c6df;
}

.acid-meter-align {
    font-family: monospace;
    font-size: 0.72em;
    background: #11131a;
    color: #dbe6f9;
    border: 1px solid #3a4558;
    padding: 3px 6px;
}


@keyframes wait-animate {
    0% { background-color: black }
    50% { background-color: red }
    100% { background-color: black }
}

button.waiting {
    background-color: red;
    animation: wait-animate 0.2s infinite;
}

.parameter-controlled {
    background-color: var(--acid-pattern-bg);
}


.notegen-note-display {
    width: 200px;
    height: 50px;
    margin-left: auto;
    margin-right: auto;
    padding:5px;
}
.controls button {
    width: 100%;
}

@keyframes autopilot-animate {
    0% { background-color: #113311 }
    50% { background-color: green }
    100% { background-color: #113311 }
}
/*@keyframes autopilot-border-animate {*/
/*    0% { border: 1px solid #444 }*/
/*    50% { border: 1px solid #494 }*/
/*    100% { border: 1px solid #444 }*/
/*}*/

.autopilot-button.on {
    animation: autopilot-animate 2s infinite;
}

@media (max-width: 820px) {
    body {
        margin: 0;
        height: 100dvh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    #acidPageIntro {
        padding: 8px 10px;
        margin: 0;
        max-height: 34dvh;
        overflow: auto;
        overscroll-behavior: contain;
    }

    #ui {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
    }

    .machine .group {
        grid-template-columns: 20px auto 58px;
    }

    button,
    .mixer-mute-btn,
    .mixer-solo-btn,
    .bpm-tap-btn {
        min-height: 42px;
        font-size: 0.88rem;
    }

    .dial {
        width: 92px;
        height: 66px;
    }

    .mixer-fader-track {
        height: 132px;
    }

}

@media (hover: none), (pointer: coarse) {
    button:hover {
        background-color: #111;
    }

    body::after {
        animation-duration: 8.6s;
    }
}

@media (prefers-reduced-motion: reduce) {
    body::after,
    .autopilot-button.on,
    button.waiting {
        animation: none !important;
    }
}

@keyframes acidBloom {
    0%, 100% { opacity: 0.14; transform: translate(0, 0); }
    50% { opacity: 0.24; transform: translate(0.6%, -0.3%); }
}

.mixer-panel {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    min-height: 0;
}

.mixer-panel .group {
    flex-direction: column;
    align-items: stretch;
}

.mixer-desk {
    border: 1px solid var(--acid-panel-border);
    background: #06060a;
    overflow: hidden;
}

.mixer-grid-header,
.mixer-strip-row {
    display: grid;
    grid-template-columns: 5.2em 48px 2.75em 2.75em;
    gap: 8px 10px;
    align-items: end;
    padding: 6px 10px;
}

.mixer-grid-header {
    font-size: 0.68em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #888;
    border-bottom: 1px solid var(--acid-panel-border);
    background: #0c0c12;
}

.mixer-grid-header .mixer-col-m,
.mixer-grid-header .mixer-col-s {
    text-align: center;
    padding-bottom: 4px;
}

.mixer-strip-row {
    border-bottom: 1px solid #1a1a22;
}

.mixer-strip-row:last-of-type {
    border-bottom: none;
}

.mixer-strip-name {
    font-size: 0.78em;
    letter-spacing: 0.04em;
    color: var(--acid-accent);
    font-weight: bold;
    padding-bottom: 6px;
}

.mixer-fader-cell {
    min-width: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.mixer-fader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    touch-action: none;
    user-select: none;
}

.mixer-fader-track {
    position: relative;
    width: 22px;
    height: 112px;
    box-sizing: border-box;
    background: linear-gradient(90deg, #14141c 0%, #22222e 45%, #181820 100%);
    border: 1px solid #2e2e3a;
    border-radius: 3px;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.65);
    cursor: ns-resize;
    touch-action: none;
}

.mixer-fader-track:focus {
    outline: 1px solid var(--acid-accent);
    outline-offset: 2px;
}

.mixer-fader-thumb {
    position: absolute;
    left: 50%;
    width: 28px;
    height: 12px;
    margin-left: -14px;
    box-sizing: border-box;
    border-radius: 2px;
    background: linear-gradient(180deg, #c9a8e8 0%, var(--mixer-fader-accent) 45%, #553366 100%);
    border: 1px solid #1a1020;
    box-shadow: 0 2px 4px rgba(0,0,0,0.55);
    pointer-events: none;
}

.mixer-fader-label {
    font-size: 0.62em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #666;
    line-height: 1;
}

.mixer-mute-btn,
.mixer-solo-btn {
    font-size: 0.75em;
    font-weight: bold;
    padding: 6px 4px;
    width: 100%;
    max-width: 2.75em;
    justify-self: center;
    box-sizing: border-box;
}

.mixer-mute-btn.on {
    background-color: #442222;
    color: #faa;
}

.mixer-solo-btn.on {
    background-color: #334422;
    color: #cfa;
}

.mixer-hint {
    margin-top: 10px;
    font-size: 0.72em;
}

.mixer-midi-block {
    margin-top: 12px;
    padding: 8px 10px;
    border: 1px solid #2a2a33;
    background: #0a0a10;
}

.mixer-midi-title {
    font-size: 0.78em;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--acid-note);
    margin-bottom: 6px;
}

.mixer-midi-intro {
    font-size: 0.72em;
    margin-bottom: 8px;
}

.mixer-midi-details summary {
    cursor: pointer;
    font-family: monospace;
    font-size: 0.74em;
    color: var(--acid-accent);
    margin-bottom: 4px;
}

.mixer-midi-ids {
    margin: 6px 0 0 0;
    padding: 8px 10px;
    font-size: 0.68em;
    line-height: 1.35;
    background: #050508;
    border: 1px solid var(--acid-panel-border);
    color: #9ab;
    overflow-x: auto;
}


h2 {
    text-align: center;
    font-size:1.5em;
}

/*@media (max-width: 640px) {*/
/*    h2 {*/
/*        font-size: 1.2em;*/
/*    }*/
/*}*/


