/* ── Remix screen ────────────────────────────── */
#screen-remix {
  flex-direction: column; align-items: center; justify-content: flex-start;
  padding: 40px 32px 40px; width: 100%; height: 100%; overflow-y: auto;
}
.remix-inner { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 580px; }

.remix-header { margin-bottom: 6px; }
.remix-header-row { display: flex; align-items: center; justify-content: center; position: relative; }
.remix-header-spacer { display: none; }
.remix-header-text { text-align: center; }
.remix-header h1 { font-size: 26px; font-weight: 700; color: var(--text); margin: 0 0 8px; }
.remix-header p { color: var(--muted); font-size: 14px; margin: 0; }
.remix-newgame-btn {
  position: absolute; right: 0; top: 0;
  width: 44px; height: 44px;
  display: none; align-items: center; justify-content: center;
  border-radius: 10px; border: none;
  background: transparent; color: var(--muted);
  font-family: inherit; cursor: pointer; flex-shrink: 0;
  transition: all 0.15s;
}
.remix-newgame-btn.visible { display: flex; }
.remix-newgame-btn:hover { background: var(--surface); color: var(--text); }
.remix-newgame-btn .nav-icon { transition: transform 0.3s ease; }
.remix-newgame-btn:hover .nav-icon { transform: rotate(-45deg); }

/* ── Key display ─────────────────────────────── */
.key-display { display: flex; align-items: center; justify-content: center; padding: 4px 0; position: relative; }
.key-pills { display: flex; gap: 4px; }
.key-pill {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 6px 10px 5px; font-size: 12px; font-weight: 700; letter-spacing: 0.03em;
  color: var(--muted); border-radius: 6px; transition: color 0.2s, background 0.2s;
}
.key-pill.active { color: var(--text); background: var(--surface); }
.key-dots { display: flex; gap: 2px; min-height: 5px; }
.key-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.key-rating { font-size: 11px; font-weight: 600; color: var(--muted); white-space: nowrap; position: absolute; right: 0; }
.key-rating span { color: var(--text); font-weight: 700; }

/* ── Slot grid ───────────────────────────────── */
.remix-slots { display: flex; flex-direction: column; gap: 10px; }

.add-slot-btn {
  width: 100%; padding: 14px; border: 1px dashed var(--border);
  border-radius: 12px; background: transparent; color: var(--muted);
  font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: border-color 0.15s, color 0.15s;
  text-align: center;
}
.add-slot-btn:hover { border-color: var(--muted); color: var(--text); }

.slot-card {
  background: #111; border: 1px solid var(--border);
  border-left: 3px solid var(--slot-color, var(--border));
  border-radius: 12px; padding: 12px 16px; min-height: 60px;
  display: flex; flex-direction: column; gap: 6px; position: relative;
  transition: border-color 0.2s;
}
.slot-card.slot-0 { --slot-color: var(--s0); }
.slot-card.slot-1 { --slot-color: var(--s1); }
.slot-card.slot-2 { --slot-color: var(--s2); }
.slot-card.slot-3 { --slot-color: var(--s3); }

.slot-num {
  position: absolute; top: 10px; right: 10px;
  font-size: 9px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--slot-color); background: none; width: auto; height: auto; border-radius: 0;
}

/* Slot: empty */
.slot-search { display: flex; flex-direction: column; gap: 7px; }
.slot-label { font-size: 9px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.slot-input-wrap { position: relative; }
.slot-input {
  width: 100%; padding: 11px 44px 11px 16px; background: #0e0e0e;
  border: 1px solid var(--border); border-radius: 30px;
  color: var(--text); font-family: inherit; font-size: 14px;
  outline: none; transition: border-color 0.15s;
}
.slot-input:focus { border-color: var(--slot-color); }
.slot-input::placeholder { color: var(--muted); }
.slot-go {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: var(--text); color: var(--bg); font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.slot-go:hover { opacity: 0.85; }
.slot-suggest {
  position: fixed; background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; overflow-y: auto; box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  display: none; z-index: 200;
}
.slot-suggest.open { display: block; }
.slot-sug-item {
  padding: 7px 10px; cursor: pointer; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.slot-sug-item:last-child { border-bottom: none; }
.slot-sug-item:hover { background: var(--surface2); }
.slot-sug-art { width: 30px; height: 30px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.slot-sug-ph {
  width: 30px; height: 30px; border-radius: 4px; background: var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0;
}
.slot-sug-title { font-size: 12px; font-weight: 600; }
.slot-sug-artist { font-size: 10px; color: var(--muted); }
.slot-drop-bpm {
  font-size: 10px; white-space: nowrap; flex-shrink: 0;
  color: var(--muted); font-weight: 700; transition: color 0.3s;
  font-variant-numeric: tabular-nums;
}
@keyframes spin { to { transform: rotate(360deg); } }
.slot-drop-bpm.loading {
  display: flex; align-items: center; gap: 4px; color: var(--muted); opacity: 0.5;
}
.slot-drop-bpm.loading::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  border: 1.5px solid var(--muted);
  border-top-color: transparent;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

/* Slot suggestion pills */
.slot-suggestions { margin-top: 6px; }
.slot-sug-heading {
  font-size: 9px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 5px;
}
.slot-sug-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: 6px;
  border: 1px solid var(--border); background: var(--surface2);
  cursor: pointer; margin-bottom: 3px;
}
.slot-sug-pill:hover { background: var(--border); }
.slot-sug-pill-art { width: 24px; height: 24px; border-radius: 3px; object-fit: cover; flex-shrink: 0; }
.slot-sug-pill-ph {
  width: 24px; height: 24px; border-radius: 3px; background: var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0;
}
.slot-sug-pill-info { flex: 1; min-width: 0; }
.slot-sug-pill-title { font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-sug-pill-artist { font-size: 10px; color: var(--muted); }
.slot-sug-pill-bpm { font-size: 10px; font-weight: 700; flex-shrink: 0; }
.bpm-close { color: var(--green); }
.bpm-near { color: var(--yellow); }
.bpm-far { color: var(--red); }

/* Slot: analyzing */
.slot-analyzing { display: flex; align-items: center; gap: 10px; }
.slot-analyzing-art { width: 38px; height: 38px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.slot-analyzing-ph {
  width: 38px; height: 38px; border-radius: 6px; background: var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0;
}
.slot-analyzing-info { flex: 1; min-width: 0; }
.slot-analyzing-title { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px; }
.slot-analyzing-sub { font-size: 10px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.spin { display: inline-block; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Slot: preview */
.slot-preview { display: flex; flex-direction: column; gap: 9px; }
.slot-preview-top { display: flex; align-items: center; gap: 10px; }
.slot-preview-art { width: 38px; height: 38px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.slot-preview-ph {
  width: 38px; height: 38px; border-radius: 6px; background: var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0;
}
.slot-preview-info { flex: 1; min-width: 0; }
.slot-preview-title { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.slot-preview-artist { font-size: 10px; color: var(--muted); }
.slot-preview-badges { display: flex; gap: 8px; align-items: center; }
.slot-preview-badge {
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--muted); border-bottom: 1px solid var(--slot-color, var(--border)); padding-bottom: 1px;
}
.slot-bpm-toggle {
  font-size: 9px; font-weight: 700; color: var(--muted); background: var(--surface);
  border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px;
  cursor: pointer; font-family: inherit; transition: all 0.15s; touch-action: manipulation;
}
.slot-bpm-toggle:hover { color: var(--text); border-color: var(--text); }
.slot-preview-actions { display: flex; gap: 5px; }
.slot-start-btn {
  flex: 1; padding: 7px 10px; border-radius: 6px; border: none;
  background: var(--slot-color, var(--accent)); color: #fff;
  font-family: inherit; font-size: 11px; font-weight: 700; cursor: pointer; letter-spacing: 0.03em;
}
.slot-cancel-btn {
  padding: 7px 10px; border-radius: 6px; border: 1px solid var(--border);
  background: transparent; color: var(--muted); font-family: inherit; font-size: 11px; cursor: pointer;
}
.slot-cancel-btn:hover { color: var(--text); }

/* Slot: loading */
.slot-loading { display: flex; flex-direction: row; align-items: center; gap: 14px; height: 100%; padding: 0 4px; }
.slot-load-icon { font-size: 26px; animation: rock 2s ease-in-out infinite; flex-shrink: 0; }
@keyframes rock {
  0%, 100% { transform: rotate(-10deg); }
  50% { transform: rotate(10deg); }
}
.slot-load-body { display: flex; flex-direction: column; gap: 4px; }
.slot-load-txt { font-size: 12px; color: var(--muted); letter-spacing: 0.01em; }
.slot-load-sub-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.slot-load-sub-row span { font-size: 10px; color: var(--muted); opacity: 0.6; }
.slot-load-timer { font-variant-numeric: tabular-nums; opacity: 0.8 !important; }
.slot-spinner {
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.12);
  border-top-color: rgba(255,255,255,0.5);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Slot: ready */
.slot-ready { display: flex; gap: 10px; align-items: flex-start; }
.slot-art { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.slot-info { flex: 1; min-width: 0; }
.slot-title { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.slot-artist { font-size: 10px; color: var(--muted); margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-tags-row { display: flex; align-items: center; gap: 8px; }
.slot-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.slot-tag { font-size: 10px; font-weight: 700; color: var(--muted); }
.slot-top-right {
  position: absolute; top: 8px; right: 12px;
  display: flex; align-items: center; gap: 6px;
}
.slot-remove {
  background: transparent; border: none; color: var(--border); font-size: 14px;
  cursor: pointer; line-height: 1; padding: 6px;
}
.slot-remove:hover { color: var(--muted); }
.slot-sync { font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--border); }
.slot-sync.synced { color: var(--green); opacity: 0.7; }
.slot-sync.syncing { color: var(--yellow); opacity: 0.7; }
.slot-offset {
  display: flex; align-items: center; gap: 6px; margin-top: 6px;
  margin-right: -16px;
}
.slot-offset-label {
  font-size: 9px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); flex-shrink: 0;
}
.slot-offset-track {
  flex: 1; min-width: 0;
}
.slot-offset-range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px;
  border-radius: 2px; background: var(--border); outline: none; cursor: pointer;
}
.beat-marks {
  height: 10px; position: relative; pointer-events: none; margin-top: 2px;
}
.beat-mk {
  position: absolute; bottom: 0;
  width: 1px; height: 5px; background: var(--accent); opacity: 0.25;
}
.beat-mk.bm-d {
  height: 10px; opacity: 0.5;
}
.slot-offset-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); cursor: pointer; border: 2px solid var(--bg);
  box-shadow: 0 0 4px rgba(3, 209, 183, 0.4);
}
.slot-offset-range::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); cursor: pointer; border: 2px solid var(--bg);
  box-shadow: 0 0 4px rgba(3, 209, 183, 0.4);
}
.slot-offset-val {
  font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--muted); min-width: 40px; text-align: right;
}
.slot-offset-reset {
  background: none; border: none; color: var(--border); font-size: 11px;
  cursor: pointer; padding: 2px 4px; line-height: 1; opacity: 0.5;
  transition: opacity 0.1s; touch-action: manipulation;
}
.slot-offset-reset:hover { opacity: 1; color: var(--muted); }

/* ── Mixer ───────────────────────────────────── */
.mixer {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 0; display: none; flex-direction: column; gap: 0; overflow: hidden;
}
.mixer.visible { display: flex; }
.mixer-scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding: 16px 18px; display: flex; flex-direction: column; gap: 12px;
}
.mixer-header {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  border-bottom: 1px solid var(--border); padding-bottom: 10px;
}
.mixer-ctrl { display: flex; align-items: center; gap: 5px; }
.mixer-label { font-size: 10px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.bpm-stepper {
  display: flex; align-items: center;
  background: #0e0e0e; border: 1px solid var(--border); border-radius: 6px; overflow: hidden;
}
.bpm-step {
  width: 34px; height: 34px; background: transparent; border: none;
  color: var(--text); font-size: 16px; font-weight: 400; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.1s; touch-action: manipulation;
}
.bpm-step:hover { background: #1e1e1e; }
.bpm-step:active { background: #2a2a2a; }
.mixer-input {
  padding: 4px 4px; background: transparent; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border);
  color: var(--text); font-family: inherit; font-size: 12px; font-weight: 700; outline: none; width: 46px; text-align: center;
  -moz-appearance: textfield;
}
.mixer-input::-webkit-outer-spin-button,
.mixer-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mixer-select {
  padding: 4px 8px; background: #0e0e0e; border: 1px solid var(--border); border-radius: 6px;
  color: var(--text); font-family: inherit; font-size: 12px; font-weight: 700; outline: none; cursor: pointer;
}
.sync-toggle {
  padding: 5px 10px; border-radius: 6px; border: 1px solid var(--border);
  background: transparent; color: var(--muted); font-family: inherit;
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer; transition: all 0.15s; touch-action: manipulation;
}
.sync-toggle.on { border-color: var(--accent); color: var(--text); background: rgba(3, 209, 183, 0.1); box-shadow: 0 0 0 1px var(--accent); }
.sync-btn {
  padding: 4px 12px; background: transparent; border: 1px solid var(--border); border-radius: 6px;
  color: var(--muted); font-family: inherit; font-size: 10px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
  transition: all 0.25s ease; margin-left: auto; touch-action: manipulation;
}
.sync-btn:hover { border-color: var(--muted); color: var(--text); }
.sync-btn:disabled { opacity: 0.2; cursor: not-allowed; }
.sync-btn.needs-sync {
  padding: 10px 28px; font-size: 13px; font-weight: 800; border-radius: 10px;
  background: var(--accent); border-color: var(--accent); color: var(--bg);
  letter-spacing: 0.08em;
  animation: syncGlow 1.8s ease-in-out infinite;
}
@keyframes syncGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(3,209,183,0); }
  50% { box-shadow: 0 0 0 8px rgba(3,209,183,0.25); }
}

/* ── Mixer legend (bottom) ───────────────────── */
.mixer-legend {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  padding-top: 10px; border-top: 1px solid var(--border);
  font-size: 9px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.mixer-legend-ctrl { display: flex; align-items: center; gap: 4px; }
.mixer-legend-dash { color: var(--border); letter-spacing: 0; }

/* ── Mixer slot-all header row ───────────────── */
.mixer-slots { display: flex; gap: 4px; flex-shrink: 0; }
.mixer-header-row { display: flex; align-items: center; gap: 10px; padding-bottom: 2px; }
.mixer-all-slot-btn {
  width: 28px; height: 20px; border-radius: 4px;
  border: 1px solid var(--slot-color); background: transparent;
  font-size: 10px; font-weight: 700;
  color: var(--slot-color); cursor: pointer; transition: all 0.12s;
  display: flex; align-items: center; justify-content: center; opacity: 0.5;
  touch-action: manipulation;
}
.mixer-all-slot-btn:hover { opacity: 1; background: color-mix(in srgb, var(--slot-color) 12%, transparent); }
.mixer-all-slot-btn.active { opacity: 1; background: var(--slot-color); color: var(--bg); }
.mixer-all-slot-btn.unavailable { opacity: 0.1; cursor: not-allowed; pointer-events: none; }
.mixer-swap-btn {
  --slot-color: var(--muted) !important;
  font-size: 8px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase;
  width: 36px;
}

.mixer-grid { display: flex; flex-direction: column; gap: 6px; }
.mixer-row { display: flex; align-items: center; gap: 10px; }
.mixer-row-label { font-size: 9px; font-weight: 700; width: 52px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); flex-shrink: 0; }
.mixer-row-label.muted { color: var(--border); }
.mute-btn, .solo-btn {
  background: none; border: none; cursor: pointer; padding: 0 2px; font-size: 14px; line-height: 1;
  opacity: 0.4; transition: opacity 0.1s, color 0.1s; flex-shrink: 0;
}
.mute-btn { color: var(--muted); }
.mute-btn:hover, .solo-btn:hover { opacity: 1; }
.mute-btn.muted { color: var(--red); opacity: 0.85; }
.solo-btn { color: var(--muted); font-size: 10px; font-weight: 800; font-family: inherit; letter-spacing: 0.06em; opacity: 0.35; }
.solo-btn.soloed { color: var(--yellow); opacity: 1; }
.mixer-row-label.solo-dim { opacity: 0.3; }
.mixer-slot-btn {
  width: 28px; height: 28px; border-radius: 6px;
  border: 1px solid var(--border); background: var(--surface2);
  font-size: 11px; font-weight: 700; color: var(--border);
  cursor: pointer; transition: all 0.1s; display: flex; align-items: center; justify-content: center;
}
.mixer-slot-btn.available { border-color: var(--slot-color); color: var(--slot-color); opacity: 0.4; }
.mixer-slot-btn.selected { background: var(--slot-color); border-color: var(--slot-color); color: #fff; opacity: 1; }
.mixer-slot-btn.unavailable { opacity: 0.15; cursor: not-allowed; pointer-events: none; }
.stem-vol {
  -webkit-appearance: none; appearance: none; flex: 1; min-width: 80px;
  height: 2px; border-radius: 1px; background: var(--border); outline: none; cursor: pointer;
}
.stem-vol::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 10px; border-radius: 2px; background: var(--muted); cursor: pointer; }
.stem-vol::-moz-range-thumb { width: 10px; height: 10px; border-radius: 2px; background: var(--muted); border: none; cursor: pointer; }

.mixer-transport { display: flex; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid var(--border); }

.remix-play-btn {
  width: 100%; height: 44px; border-radius: 8px;
  background: var(--accent); border: none;
  color: var(--bg); font-size: 16px; font-weight: 700;
  display: none; align-items: center; justify-content: center;
  cursor: pointer; transition: opacity 0.15s; touch-action: manipulation;
  margin: 8px 0 0;
}
.remix-play-btn:not(:disabled) { display: flex; }
.remix-play-btn:hover { opacity: 0.85; }
.remix-play-btn:disabled { display: none; }
.remix-export-btn {
  width: 100%; height: 44px; border-radius: 8px;
  background: transparent; border: 1px solid var(--border);
  color: var(--muted); font-size: 12px; font-weight: 700;
  display: none; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.15s; touch-action: manipulation;
  margin: 6px 0 0; letter-spacing: 0.03em; font-family: inherit;
}
.remix-export-btn:not(:disabled) { display: flex; }
.remix-export-btn:hover { border-color: var(--accent); color: var(--accent); }
.remix-export-btn:disabled:not(.exporting) { display: none; }
.remix-prog-wrap {
  flex: 1; height: 3px; background: var(--border); cursor: pointer; border-radius: 2px;
  padding: 8px 0; margin: -8px 0; box-sizing: content-box;
}
.remix-prog-fill { height: 100%; background: var(--accent); border-radius: 2px; }
.remix-time { font-size: 10px; color: var(--muted); min-width: 36px; font-variant-numeric: tabular-nums; }
.remix-sync-status { font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--border); }
.remix-sync-status.ok { color: var(--green); opacity: 0.8; }
.remix-sync-status.busy { color: var(--yellow); opacity: 0.8; }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 680px) {
  #screen-remix { padding: 16px 12px 140px; align-items: center; justify-content: flex-start; }
  .remix-inner { max-width: 100%; gap: 10px; }
  .remix-header h1 { font-size: 20px; }
  .remix-header p { font-size: 12px; }
  .key-display { gap: 8px; padding: 4px 0; flex-wrap: wrap; }
  .key-pills { flex-wrap: wrap; gap: 2px; }
  .key-pill { padding: 4px 5px 3px; font-size: 10px; }
  .key-rating { font-size: 11px; }
  .remix-slots { gap: 8px; }
  .slot-card { min-height: auto; padding: 12px; }
  .mixer { border-radius: 10px; }
  .mixer-scroll { padding: 12px; overflow-x: hidden; }
  .mixer-header, .mixer-grid, .mixer-transport, .mixer-legend { min-width: 0; }
  .mixer-header { gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--border); padding-bottom: 10px; margin-bottom: 10px; }
  .mixer-ctrl { gap: 4px; }
  .mixer-input { width: 48px; font-size: 11px; }
  .mixer-select { font-size: 11px; }
  .sync-btn { padding: 4px 10px; font-size: 9px; }
  .mixer-row { gap: 6px; }
  .mixer-row-label { width: 42px; font-size: 8px; }
  .mixer-slots { gap: 3px; }
  .mixer-slot-btn { width: 24px; height: 24px; font-size: 10px; border-radius: 5px; }
  .mixer-all-slot-btn { font-size: 8px; }
  .stem-vol { min-width: 50px; }
  .mute-btn, .solo-btn { font-size: 12px; }
  .mixer-transport { gap: 6px; border-top: 1px solid var(--border); padding-top: 10px; margin-top: 4px; }
  .remix-play-btn { padding: 8px 14px; font-size: 11px; }
  .remix-prog-wrap { height: 4px; }
}

@media (max-width: 380px) {
  .stem-vol { min-width: 40px; }
  .mixer-slot-btn { width: 22px; height: 22px; }
}
