/* Beats — an FL Studio 2007-era step sequencer in the browser.
   Charcoal panels, orange LEDs, chunky bevels, tiny type. */

:root {
    --bg: #1f1f1f;
    --panel: #303030;
    --panel-hi: #3d3d3d;
    --panel-lo: #262626;
    --panel-deep: #1a1a1a;
    --edge: #4c4c4c;
    --edge-dark: #101010;
    --text: #cfcfcf;
    --text-dim: #8c8c8c;
    --text-bright: #f2f2f2;
    --orange: #f28b18;
    --orange-hi: #ffb24d;
    --orange-lo: #b45d05;
    --green: #8fd94a;
    --green-lo: #4f8a1e;
    --red: #e8533f;
    --blue: #4aa3d9;
    --grid: #191919;
    --grid-line: #2a2a2a;
    --row-a: #262626;
    --row-b: #2b2b2b;
    --black-key: #171717;
    --shadow: 0 2px 6px rgba(0, 0, 0, .55);
    --bevel: inset 0 1px 0 rgba(255, 255, 255, .09), inset 0 -1px 0 rgba(0, 0, 0, .55);
    --font: "Segoe UI", "DejaVu Sans", Tahoma, Verdana, sans-serif;
    --mono: "DejaVu Sans Mono", "Consolas", monospace;
}

* { box-sizing: border-box; }

#root { height: 100%; }

html, body {
    height: 100%;
    margin: 0;
}

body {
    background:
        radial-gradient(1200px 600px at 50% -10%, #333 0%, transparent 60%),
        repeating-linear-gradient(45deg, #1d1d1d 0 3px, #1b1b1b 3px 6px);
    color: var(--text);
    font-family: var(--font);
    font-size: 12px;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

button, input, select {
    font-family: inherit;
    color: inherit;
}

button { cursor: pointer; }

/* ---------------------------------------------------------------- boot / gate */

.boot {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.boot-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dim);
    font-size: 13px;
    letter-spacing: .04em;
}

.boot-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #444;
    border-top-color: var(--orange);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.gate {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.gate-card {
    width: min(460px, 92vw);
    background: linear-gradient(var(--panel-hi), var(--panel-lo));
    border: 1px solid var(--edge);
    border-radius: 6px;
    box-shadow: var(--shadow), var(--bevel);
    padding: 26px 26px 22px;
    text-align: center;
}

.gate-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .14em;
    color: var(--orange);
    text-shadow: 0 0 14px rgba(242, 139, 24, .35);
    margin-bottom: 6px;
}

.gate-logo i {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 10px var(--orange);
    display: inline-block;
}

.gate-card h1 {
    margin: 6px 0 8px;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-bright);
}

.gate-card p {
    margin: 0 0 16px;
    line-height: 1.55;
    color: var(--text-dim);
}

.gate-card code {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--orange-hi);
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 3px;
    padding: 1px 5px;
}

.gate-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: 4px;
    border: 1px solid #111;
    background: linear-gradient(#454545, #2d2d2d);
    box-shadow: var(--bevel);
    color: var(--text-bright);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.btn:hover { background: linear-gradient(#4d4d4d, #343434); }

.btn-primary {
    background: linear-gradient(var(--orange-hi), var(--orange-lo));
    border-color: #5a2f02;
    color: #1a1100;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .3);
}

.btn-primary:hover { background: linear-gradient(#ffc266, #cf6d06); }

.btn-ghost {
    background: transparent;
    border-color: var(--edge);
    color: var(--text-dim);
    font-weight: 500;
}

.btn-ghost:hover { color: var(--text-bright); border-color: #666; }

.gate-note { font-size: 11px; color: var(--text-dim); }
.gate-note b { color: var(--green); }
.gate-foot { margin-top: 14px; }
.link-ish {
    background: none;
    border: 0;
    color: var(--text-dim);
    font-size: 11px;
    text-decoration: underline;
}
.link-ish:hover { color: var(--orange-hi); }

/* ----------------------------------------------------------------- app shell */

.app {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    user-select: none;
}

.menubar {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 30px;
    padding: 0 10px;
    background: linear-gradient(#232323, #181818);
    border-bottom: 1px solid #000;
    flex: none;
}

.brand {
    font-weight: 800;
    letter-spacing: .16em;
    font-size: 12px;
    color: var(--orange);
    text-shadow: 0 0 10px rgba(242, 139, 24, .4);
    display: flex;
    align-items: center;
    gap: 6px;
}

.brand::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 8px var(--orange);
}

.menu { display: flex; gap: 2px; position: relative; }

.menu > button {
    background: none;
    border: 0;
    color: var(--text-dim);
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
}

.menu > button:hover, .menu > button.open { background: #333; color: var(--text-bright); }

.dropdown {
    position: absolute;
    top: 28px;
    min-width: 190px;
    background: #2b2b2b;
    border: 1px solid #555;
    border-radius: 4px;
    box-shadow: var(--shadow);
    padding: 4px;
    z-index: 40;
    display: none;
}

.dropdown.open { display: block; }

.dropdown button {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    background: none;
    border: 0;
    text-align: left;
    padding: 7px 10px;
    border-radius: 3px;
    color: var(--text);
    font-size: 12px;
}

.dropdown button:hover { background: var(--orange); color: #1a1100; }

.dropdown .sep { height: 1px; background: #444; margin: 4px 2px; }

.menubar .viewer {
    margin-left: auto;
    color: var(--text-dim);
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.menubar .viewer b { color: var(--green); font-weight: 600; }

.menubar .viewer .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 6px var(--green);
}

/* transport */

.transport {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 7px 10px;
    background: linear-gradient(#343434, #282828);
    border-bottom: 1px solid #000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .4);
    flex: none;
    flex-wrap: wrap;
}

.tgroup {
    display: flex;
    align-items: center;
    gap: 5px;
}

.tbtn {
    width: 34px;
    height: 30px;
    border-radius: 4px;
    border: 1px solid #111;
    background: linear-gradient(#474747, #2c2c2c);
    box-shadow: var(--bevel);
    color: var(--text);
    font-size: 13px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tbtn:hover { background: linear-gradient(#505050, #343434); }
.tbtn:active { background: linear-gradient(#2a2a2a, #3a3a3a); }
.tbtn.small { width: auto; padding: 0 9px; font-size: 10px; letter-spacing: .06em; }

.tbtn.play.active {
    background: linear-gradient(#9ae65a, #4f8a1e);
    color: #10240a;
    box-shadow: 0 0 10px rgba(143, 217, 74, .55), var(--bevel);
}

.tbtn.stop { color: #d8d8d8; }
.tbtn.on { color: #1a1100; background: linear-gradient(var(--orange-hi), var(--orange-lo)); }

.field {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-dim);
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.field input[type="number"] {
    width: 56px;
    padding: 5px 6px;
    background: #151515;
    border: 1px solid #000;
    border-radius: 3px;
    color: var(--orange-hi);
    font-family: var(--mono);
    font-size: 13px;
    text-align: center;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, .8);
}

.field input[type="range"] { width: 88px; accent-color: var(--orange); }

.clock {
    font-family: var(--mono);
    font-size: 16px;
    letter-spacing: .14em;
    color: var(--green);
    background: #101010;
    border: 1px solid #000;
    border-radius: 3px;
    padding: 5px 10px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, .9), 0 0 12px rgba(143, 217, 74, .12);
    min-width: 86px;
    text-align: center;
    text-shadow: 0 0 8px rgba(143, 217, 74, .5);
}

.seg { display: inline-flex; border: 1px solid #000; border-radius: 4px; overflow: hidden; }

.seg button {
    border: 0;
    background: linear-gradient(#3b3b3b, #2a2a2a);
    color: var(--text-dim);
    padding: 7px 11px;
    font-size: 10px;
    letter-spacing: .08em;
    border-right: 1px solid #111;
}

.seg button:last-child { border-right: 0; }
.seg button.active { background: linear-gradient(var(--orange-hi), var(--orange-lo)); color: #1a1100; font-weight: 700; }

.project-name {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-dim);
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.project-name b { color: var(--text-bright); font-weight: 600; letter-spacing: .02em; font-size: 12px; }
.project-name .dirty { color: var(--orange); }

.workspace {
    flex: 1;
    min-height: 0;
    display: flex;
    gap: 6px;
    padding: 6px;
}

/* channel rack ------------------------------------------------------------- */

.rack {
    width: 436px;
    flex: none;
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border: 1px solid #000;
    border-radius: 3px;
    box-shadow: var(--bevel);
    min-height: 0;
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 9px;
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-dim);
    background: linear-gradient(#3a3a3a, #2b2b2b);
    border-bottom: 1px solid #111;
    flex: none;
}

.panel-title .spacer { margin-left: auto; }

#pattern-select {
    background: #1a1a1a;
    color: var(--orange-hi);
    border: 1px solid #000;
    border-radius: 3px;
    font-size: 10px;
    padding: 3px 4px;
    max-width: 140px;
}

.panel-title .mini { width: 18px; height: 18px; font-size: 11px; }
.panel-title .prune { color: var(--text-dim); }

.rack-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
}

.rack-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 7px;
    border-bottom: 1px solid #1c1c1c;
    background: linear-gradient(var(--row-b), var(--row-a));
}

.rack-row:hover { background: linear-gradient(#313131, #292929); }
.rack-row.selected { background: linear-gradient(#3a3324, #2e2a20); box-shadow: inset 2px 0 0 var(--orange); }

.ch-swatch {
    width: 6px;
    height: 30px;
    border-radius: 2px;
    flex: none;
    box-shadow: 0 0 6px currentColor;
}

.ch-name {
    width: 62px;
    flex: none;
    font-size: 11px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.ch-name:hover { color: var(--orange-hi); }

.mini {
    width: 20px;
    height: 20px;
    flex: none;
    border-radius: 3px;
    border: 1px solid #111;
    background: linear-gradient(#3d3d3d, #2a2a2a);
    color: var(--text-dim);
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    padding: 0;
}

.mini:hover { color: var(--text-bright); }
.mini.on.mute { background: linear-gradient(#6b2a22, #4a1c17); color: #ffb0a4; box-shadow: 0 0 6px rgba(232, 83, 63, .5); }
.mini.on.solo { background: linear-gradient(#8a6a12, #5d480a); color: #ffe6a0; box-shadow: 0 0 6px rgba(242, 139, 24, .5); }
.mini.pr { width: 26px; }

.steps {
    display: flex;
    gap: 2px;
    flex: 1;
    justify-content: flex-end;
}

.step {
    width: 12px;
    height: 22px;
    border-radius: 2px;
    border: 1px solid #0d0d0d;
    background: linear-gradient(#3a3a3a, #262626);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
    padding: 0;
}

.step:nth-child(4n) { margin-right: 4px; }
.step:hover { border-color: #555; }
.step.on {
    background: linear-gradient(var(--orange-hi), var(--orange-lo));
    border-color: #3a1d00;
    box-shadow: 0 0 7px rgba(242, 139, 24, .6), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.step.on.pert { background: linear-gradient(#a9e56a, #4f8a1e); box-shadow: 0 0 7px rgba(143, 217, 74, .55), inset 0 1px 0 rgba(255, 255, 255, .3); }
.step.cur { outline: 1px solid var(--green); }

.rack-foot {
    display: flex;
    gap: 4px;
    padding: 6px;
    border-top: 1px solid #111;
    background: linear-gradient(#2b2b2b, #222);
    flex: none;
    flex-wrap: wrap;
}

.rack-foot button {
    padding: 5px 8px;
    font-size: 10px;
    border-radius: 3px;
    border: 1px solid #111;
    background: linear-gradient(#3d3d3d, #2a2a2a);
    color: var(--text-dim);
    box-shadow: var(--bevel);
}

.rack-foot button:hover { color: var(--text-bright); }

/* editor pane -------------------------------------------------------------- */

.editor {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border: 1px solid #000;
    border-radius: 3px;
    box-shadow: var(--bevel);
    min-height: 0;
}

.tabs {
    display: flex;
    gap: 3px;
    padding: 5px 6px 0;
    background: linear-gradient(#333, #2a2a2a);
    border-bottom: 1px solid #111;
    flex: none;
}

.tabs button {
    border: 1px solid #111;
    border-bottom: 0;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(#3a3a3a, #2d2d2d);
    color: var(--text-dim);
    padding: 7px 16px;
    font-size: 11px;
    letter-spacing: .05em;
}

.tabs button.active {
    background: linear-gradient(#4a4a4a, #363636);
    color: var(--orange-hi);
    box-shadow: inset 0 2px 0 var(--orange);
}

.tab-pane { display: none; flex: 1; min-height: 0; overflow: hidden; }
.tab-pane.active { display: flex; flex-direction: column; }

/* --------------------------------------------------------------- piano roll */

.pr-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 9px;
    border-bottom: 1px solid #111;
    background: linear-gradient(#333, #2a2a2a);
    flex: none;
    flex-wrap: wrap;
}

.pr-toolbar .ch-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-bright);
}

.pr-toolbar .ch-tag i {
    width: 9px;
    height: 9px;
    border-radius: 2px;
    display: inline-block;
}

.len-group { display: inline-flex; gap: 3px; }

.len-group button {
    border: 1px solid #111;
    background: linear-gradient(#3b3b3b, #2a2a2a);
    color: var(--text-dim);
    border-radius: 3px;
    font-size: 10px;
    padding: 4px 7px;
}

.len-group button.active { background: linear-gradient(var(--orange-hi), var(--orange-lo)); color: #1a1100; font-weight: 700; }

.pr-hint { margin-left: auto; color: var(--text-dim); font-size: 10px; }

.pr-scroll {
    flex: 1;
    min-height: 0;
    overflow: auto;
    background: var(--panel-deep);
    position: relative;
}

.pr-inner {
    position: relative;
    display: flex;
}

.pr-keys {
    position: sticky;
    left: 0;
    z-index: 3;
    flex: none;
    background: #202020;
    border-right: 1px solid #000;
}

.pr-key {
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 6px;
    font-size: 9px;
    color: var(--text-dim);
    border-bottom: 1px solid #141414;
    font-family: var(--mono);
}

.pr-key.black { background: var(--black-key); color: #6f6f6f; }
.pr-key.c { color: var(--orange); }

.pr-grid {
    position: relative;
    flex: none;
}

.pr-rows { position: absolute; inset: 0; }

.pr-row { display: flex; height: 18px; }
.pr-row.black { background: var(--black-key); }
.pr-row.white { background: #222; }

.pr-cell {
    width: 30px;
    height: 18px;
    border-right: 1px solid var(--grid-line);
    border-bottom: 1px solid #161616;
}

.pr-cell.beat { border-left: 1px solid #3b3b3b; }
.pr-cell.bar { border-left: 1px solid #555; }
.pr-cell:hover { background: rgba(242, 139, 24, .12); }
.pr-cell { cursor: pointer; }

.pr-notes { position: absolute; inset: 0; pointer-events: none; }

.pr-note {
    position: absolute;
    height: 18px;
    border-radius: 2px;
    background: linear-gradient(var(--orange-hi), var(--orange-lo));
    border: 1px solid #5a2f02;
    box-shadow: 0 0 6px rgba(242, 139, 24, .35);
    pointer-events: auto;
    cursor: grab;
    overflow: hidden;
}

.pr-note.sel { box-shadow: 0 0 0 1px #fff, 0 0 8px rgba(255, 255, 255, .5); }

.pr-note span {
    display: block;
    padding: 0 3px;
    font-size: 8px;
    line-height: 16px;
    color: #201100;
    white-space: nowrap;
}

/* ------------------------------------------------------------------ playlist */

.pl-toolbar, .mx-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 9px;
    border-bottom: 1px solid #111;
    background: linear-gradient(#333, #2a2a2a);
    flex: none;
    flex-wrap: wrap;
}

.pl-scroll { flex: 1; min-height: 0; overflow: auto; background: var(--panel-deep); position: relative; }

.pl-inner { position: relative; }

.pl-ruler {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 3;
    background: #202020;
    border-bottom: 1px solid #000;
    height: 22px;
}

.pl-ruler-cell {
    width: 16px;
    flex: none;
    border-right: 1px solid #2c2c2c;
    font-size: 8px;
    color: var(--text-dim);
    text-align: center;
    line-height: 22px;
    font-family: var(--mono);
}

.pl-ruler-cell.bar { border-left: 1px solid #555; color: var(--orange); }

.pl-ruler-name {
    width: 92px;
    flex: none;
    position: sticky;
    left: 0;
    z-index: 4;
    background: #202020;
    border-right: 1px solid #000;
    display: flex;
    align-items: center;
    padding: 0 8px;
    font-size: 9px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.pl-lane {
    display: flex;
    position: relative;
    height: 40px;
    border-bottom: 1px solid #141414;
}

.pl-lane:nth-child(even) { background: #232323; }
.pl-lane:nth-child(odd) { background: #262626; }

.pl-lane-name {
    position: sticky;
    left: 0;
    z-index: 2;
    width: 92px;
    flex: none;
    background: #202020;
    border-right: 1px solid #000;
    display: flex;
    align-items: center;
    padding: 0 8px;
    font-size: 10px;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pl-lane-cells { display: flex; position: relative; flex: 1; }

.pl-cell {
    width: 16px;
    height: 40px;
    flex: none;
    border-right: 1px solid #1e1e1e;
}

.pl-cell.bar { border-left: 1px solid #3a3a3a; }
.pl-cell:hover { background: rgba(242, 139, 24, .1); }
.pl-cell { cursor: pointer; }

.pl-clip {
    position: absolute;
    top: 4px;
    height: 32px;
    border-radius: 3px;
    background: linear-gradient(rgba(242, 139, 24, .85), rgba(180, 93, 5, .85));
    border: 1px solid #7a3f02;
    box-shadow: 0 0 8px rgba(242, 139, 24, .3), inset 0 1px 0 rgba(255, 255, 255, .25);
    font-size: 9px;
    color: #241400;
    display: flex;
    align-items: center;
    padding-left: 5px;
    overflow: hidden;
    white-space: nowrap;
    cursor: grab;
    z-index: 1;
}

.pl-clip.sel { box-shadow: 0 0 0 1px #fff, 0 0 10px rgba(255, 255, 255, .45); }
.pl-clip::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg, transparent 0 15px, rgba(0, 0, 0, .18) 15px 16px);
    pointer-events: none;
}

.pl-playhead, .pr-playhead {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    pointer-events: none;
    z-index: 2;
    display: none;
}

/* --------------------------------------------------------------------- mixer */

.mx-strips {
    flex: 1;
    min-height: 0;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    gap: 4px;
    padding: 10px;
    background: var(--panel-deep);
    align-items: stretch;
}

.strip {
    width: 66px;
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 6px;
    background: linear-gradient(#2f2f2f, #262626);
    border: 1px solid #111;
    border-radius: 3px;
    box-shadow: var(--bevel);
}

.strip.master { background: linear-gradient(#372f24, #2a241d); border-color: #4a3a20; }

.strip-name {
    font-size: 9px;
    letter-spacing: .04em;
    color: var(--text-dim);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

.strip-name i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }

.fader-wrap {
    height: 132px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.fader {
    writing-mode: vertical-lr;
    direction: rtl;
    width: 8px;
    height: 124px;
    accent-color: var(--orange);
}

.strip-pan { width: 100%; accent-color: var(--orange); height: 12px; }

.strip-value { font-family: var(--mono); font-size: 9px; color: var(--orange-hi); }

.strip-buttons { display: flex; gap: 3px; }

.strip-buttons button {
    width: 24px;
    height: 20px;
    border-radius: 3px;
    border: 1px solid #111;
    background: linear-gradient(#3d3d3d, #2a2a2a);
    color: var(--text-dim);
    font-size: 8px;
    font-weight: 700;
    padding: 0;
}

.strip-buttons button.on.mute { background: linear-gradient(#6b2a22, #4a1c17); color: #ffb0a4; }
.strip-buttons button.on.solo { background: linear-gradient(#8a6a12, #5d480a); color: #ffe6a0; }

.meter {
    width: 10px;
    height: 124px;
    background: #121212;
    border: 1px solid #000;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, .8);
}

.meter i {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 0%;
    background: linear-gradient(to top, var(--green), #d7e84a 70%, var(--red));
    transition: height .07s linear;
}

/* ------------------------------------------------------------------ statusbar */

.statusbar {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 22px;
    padding: 0 10px;
    background: linear-gradient(#242424, #1a1a1a);
    border-top: 1px solid #000;
    color: var(--text-dim);
    font-size: 10px;
    letter-spacing: .04em;
    flex: none;
}

.statusbar .spacer { margin-left: auto; }
.statusbar .ok { color: var(--green); }
.statusbar .warn { color: var(--orange); }

/* ---------------------------------------------------------------- scrollbars */

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #181818; }
::-webkit-scrollbar-thumb { background: linear-gradient(#454545, #2f2f2f); border: 1px solid #111; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(#555, #3a3a3a); }
::-webkit-scrollbar-corner { background: #181818; }

/* ------------------------------------------------------------------- dialogs */

.modal-back {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
}

.modal {
    width: min(380px, 92vw);
    background: linear-gradient(var(--panel-hi), var(--panel-lo));
    border: 1px solid var(--edge);
    border-radius: 6px;
    box-shadow: var(--shadow);
    padding: 18px;
}

.modal h2 { margin: 0 0 12px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-hi); }

.modal label { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 5px; }

.modal input[type="text"] {
    width: 100%;
    padding: 8px 9px;
    background: #141414;
    border: 1px solid #000;
    border-radius: 3px;
    color: var(--text-bright);
    font-size: 13px;
    margin-bottom: 14px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, .8);
}

.modal .row { display: flex; gap: 8px; justify-content: flex-end; }

.modal .list { max-height: 240px; overflow-y: auto; margin-bottom: 14px; }

.modal .list button {
    display: flex;
    justify-content: space-between;
    width: 100%;
    background: #262626;
    border: 1px solid #3a3a3a;
    border-radius: 3px;
    color: var(--text);
    padding: 8px 10px;
    margin-bottom: 4px;
    font-size: 12px;
    text-align: left;
}

.modal .list button:hover { border-color: var(--orange); color: var(--orange-hi); }
.modal .list .empty { color: var(--text-dim); font-size: 11px; padding: 8px 2px; }

@media (max-width: 760px) {
    .rack { width: 360px; }
    .step { width: 10px; }
    .mini.pr { display: none; }
    .workspace { padding: 4px; gap: 4px; }
}
