.mixer-board--multitrack {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    align-items: stretch;
    min-width: 0;
}

.mixer-channel-strip {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid #3a3a4a;
    background: #1c1c22;
    color: #fff;
    font-family: "Courier New", Courier, monospace;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, .8), 0 14px 32px rgba(0, 0, 0, .35);
}

    .mixer-channel-strip .channel-strip-layout {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .7rem;
        min-width: 0;
    }

    .mixer-channel-strip .mixer-control {
        display: grid;
        justify-items: center;
        gap: .35rem;
        min-width: 0;
        padding: .55rem;
        box-sizing: border-box;
        border: 1px solid rgba(255, 255, 255, .1);
        border-radius: .55rem;
        background: rgba(0, 0, 0, .22);
    }

    .mixer-channel-strip .mixer-control--fader {
        grid-row: span 3;
    }

    .mixer-channel-strip .mixer-control-label,
    .mixer-channel-strip .mixer-control-help {
        max-width: 100%;
        color: #b6b6c8;
        font-size: .7rem;
        line-height: 1.25;
        text-align: center;
        overflow-wrap: anywhere;
    }

    .mixer-channel-strip .mixer-control-value {
        max-width: 100%;
        color: #0dcaf0;
        font-size: .82rem;
        font-weight: 700;
        font-variant-numeric: tabular-nums;
        overflow-wrap: anywhere;
    }

    .mixer-channel-strip .mixer-control-input {
        width: 100%;
        max-width: 5.4rem;
        box-sizing: border-box;
        border-color: #30363d;
        background: #0d1117;
        color: #f8f9fa;
        text-align: center;
    }

    .mixer-channel-strip .mixer-widget {
        position: relative;
        display: grid;
        place-items: center;
        max-width: 100%;
        touch-action: none;
        outline: none;
    }

        .mixer-channel-strip .mixer-widget:focus-visible {
            outline: 2px solid #58a6ff;
            outline-offset: 3px;
        }

    .mixer-channel-strip .mixer-control--knob .mixer-widget {
        width: 58px;
        height: 58px;
        border: 2px solid #555;
        border-radius: 50%;
        background: radial-gradient( circle at 35% 30%, #686875, #24242b 58%, #050505 60% );
        box-shadow: inset 0 0 9px rgba(0, 0, 0, .9), 0 4px 8px rgba(0, 0, 0, .45);
    }

        .mixer-channel-strip .mixer-control--knob .mixer-widget::before {
            content: "";
            position: absolute;
            inset: 7px;
            border: 1px solid rgba(255, 255, 255, .16);
            border-radius: 50%;
        }

        .mixer-channel-strip .mixer-control--knob .mixer-widget::after {
            content: "";
            position: absolute;
            top: 4px;
            width: 3px;
            height: 19px;
            border-radius: 999px;
            background: #58a6ff;
            transform: rotate(var(--knob-angle, -135deg));
            transform-origin: 50% 25px;
        }

    .mixer-channel-strip .mixer-control--bipolar .mixer-widget {
        box-shadow: inset 0 0 9px rgba(0, 0, 0, .9), 0 0 0 2px rgba(13, 202, 240, .12), 0 4px 8px rgba(0, 0, 0, .45);
    }

    .mixer-channel-strip .mixer-control--fader .mixer-widget {
        width: 58px;
        height: 190px;
    }

        .mixer-channel-strip .mixer-control--fader .mixer-widget::before {
            content: "";
            position: absolute;
            top: 0;
            bottom: 0;
            width: 8px;
            border: 1px solid #333;
            border-radius: 999px;
            background: #050505;
        }

    .mixer-channel-strip .mixer-control--fader .mixer-widget__indicator {
        position: absolute;
        top: calc(var(--fader-pos, 50%) - 9px);
        left: 50%;
        width: 34px;
        height: 18px;
        margin-left: -17px;
        border: 2px solid #444;
        border-radius: 3px;
        background: linear-gradient( to right, transparent 45%, #f85149 45%, #f85149 55%, transparent 55% ), #d1d1d6;
        box-shadow: 0 3px 6px rgba(0, 0, 0, .9);
    }

    .mixer-channel-strip .mixer-fader__scale {
        position: absolute;
        top: 0;
        bottom: 0;
        left: calc(50% + 24px);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        color: #b6b6c8;
        font-size: .62rem;
    }

    .mixer-channel-strip .mixer-toggle-row {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: .4rem;
        width: 100%;
        min-width: 0;
    }

    .mixer-channel-strip .mixer-toggle {
        min-width: 0;
        padding: .35rem .2rem;
        border: 1px solid #555;
        border-radius: .4rem;
        background: #3a3a42;
        color: #f8f9fa;
        font-weight: 700;
        cursor: pointer;
        box-shadow: 0 2px 4px rgba(0, 0, 0, .4);
    }

        .mixer-channel-strip .mixer-toggle span,
        .mixer-channel-strip .mixer-toggle small {
            display: block;
            max-width: 100%;
            overflow-wrap: anywhere;
        }

        .mixer-channel-strip .mixer-toggle small {
            color: #c9d1d9;
            font-size: .58rem;
        }

        .mixer-channel-strip .mixer-toggle.active[aria-pressed="true"] {
            color: #fff;
        }

    .mixer-channel-strip .mixer-toggle--solo.active {
        background: #f1c40f;
        box-shadow: 0 0 12px #f1c40f;
    }

    .mixer-channel-strip .mixer-toggle--mute.active {
        background: #ff3b30;
        box-shadow: 0 0 12px #ff3b30;
    }

    .mixer-channel-strip .mixer-toggle--bypass.active {
        background: #0dcaf0;
        box-shadow: 0 0 12px #0dcaf0;
    }

    .mixer-channel-strip.is-bypassed .channel-strip-layout {
        opacity: .58;
    }

    .mixer-channel-strip .multitrack-meter {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto auto;
        align-items: center;
        gap: .35rem;
        min-width: 0;
    }

        .mixer-channel-strip .multitrack-meter span {
            display: block;
            width: 0%;
            height: 12px;
            border-radius: 999px;
            background: linear-gradient( 90deg, #2ecc71 0%, #2ecc71 70%, #f1c40f 70%, #f1c40f 90%, #e74c3c 90% );
            transition: width .05s ease;
        }

        .mixer-channel-strip .multitrack-meter small {
            color: #b6b6c8;
            font-size: .6rem;
        }

@media (max-width: 767.98px) {
    .mixer-board--multitrack {
        grid-template-columns: minmax(0, 1fr);
    }

    .mixer-channel-strip .channel-strip-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .mixer-board--multitrack {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .mixer-channel-strip .multitrack-meter span {
        transition: none;
    }
}
