/* ==========================================================================
   NOISE STUDIO — VIRAL STUDIO "QUIET LUXURY DARK CINEMA" EDITION
   Tokens & Layout Grammar extracted directly from viral_studio/01_tokens_layout.css
   ========================================================================== */
:root {
  color-scheme: dark;
  --bg-canvas: #090a0c;
  --bg-surface: #0e1014;
  --bg-card: #13161c;
  --bg-elevated: #181b22;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-highlight: rgba(255, 255, 255, 0.18);
  --text-primary: #f0f1f4;
  --text-secondary: #a4a8b4;
  --text-muted: #838896;
  --accent-champagne: #d4b483;
  --accent-champagne-dim: rgba(212, 184, 134, 0.48);
  --accent-champagne-subtle: #201c16;
  --btn-primary-bg: #eceae4;
  --btn-primary-text: #0b0c0e;
  --btn-primary-hover: #ffffff;
  --danger: #f87171;
  --ok-sage: #7ab896;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
  font-weight: 400;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, b, strong, button, span, div, label, select, input, textarea {
  font-weight: 400;
}

.mono-num {
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--bg-canvas);
  color: var(--text-primary);
}

body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.11);
  border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* ==========================================================================
   TOP NAVBAR (42px Viral Studio Strip)
   ========================================================================== */
.top-navbar {
  height: 42px;
  flex-shrink: 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  gap: 10px;
  z-index: 50;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--accent-champagne-subtle);
  border: 1px solid var(--accent-champagne-dim);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-champagne);
  flex-shrink: 0;
}

.brand-title {
  font-size: 13px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  white-space: nowrap;
}

.mode-tabs-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  background: #101216;
  border-radius: 6px;
}

.mode-tab-btn {
  font-size: 11px;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.mode-tab-btn:hover {
  color: var(--text-primary);
}

.mode-tab-btn.is-active {
  background: #241f18;
  color: var(--accent-champagne);
}

.nav-pill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 15px;
  padding: 0 4px;
  border-radius: 99px;
  background: #2b241b;
  color: var(--accent-champagne);
  font-size: 10px;
}

.nav-actions-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.nav-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
  font-size: 10.5px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
}
.status-dot.is-live {
  background: var(--accent-champagne);
  box-shadow: 0 0 8px rgba(212, 184, 134, 0.65);
}
.status-dot.is-limiting {
  background: var(--danger);
  box-shadow: 0 0 8px rgba(248, 113, 113, 0.8);
}

/* ==========================================================================
   3-COLUMN WORKSPACE GRID
   ========================================================================== */
.studio-workspace {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: row;
  overflow: hidden;
}

/* --- Left Catalog Sidebar --- */
.sidebar-catalog {
  width: 274px;
  min-width: 230px;
  max-width: 340px;
  flex-shrink: 0;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.catalog-head {
  padding: 10px 12px 8px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  padding: 0 8px;
  transition: border-color 0.15s ease;
}

.search-input-wrapper:focus-within {
  border-color: var(--accent-champagne-dim);
}

.search-input {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 11.5px;
  padding: 6px 0;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.cat-pills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.cat-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 10.5px;
  padding: 3px 7px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.14s ease;
}

.cat-pill:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
}

.cat-pill.is-active {
  background: var(--accent-champagne-subtle);
  border-color: var(--accent-champagne-dim);
  color: var(--accent-champagne);
}

.catalog-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.gen-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  text-align: left;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.gen-card:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--border-medium);
}

.gen-card.is-active {
  background: var(--accent-champagne-subtle);
  border-color: var(--accent-champagne-dim);
}

.gen-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.gen-card-title {
  font-size: 12px;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gen-card.is-active .gen-card-title {
  color: var(--accent-champagne);
}

.gen-card-badge {
  font-size: 9.5px;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  flex-shrink: 0;
}

.gen-card-sub {
  font-size: 10.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* "Not an AI" 3-Keyword Soundscape Composer Box */
.not-ai-box {
  padding: 10px 12px;
  border-top: 1px solid var(--border-subtle);
  background: #0b0c10;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.not-ai-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.not-ai-inputs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.not-ai-inp {
  width: 100%;
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 10.5px;
  color: var(--text-primary);
  outline: none;
}

.not-ai-inp:focus {
  border-color: var(--accent-champagne-dim);
}

/* --- Center Mastering Stage --- */
.center-stage {
  flex: 1;
  min-width: 0;
  min-height: 0;
  background: var(--bg-canvas);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 16px 20px 20px;
  gap: 14px;
}

.stage-view {
  display: none;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}

.stage-view.is-active {
  display: flex;
}

.stage-header-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stage-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.stage-title-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 260px;
}

.stage-kicker {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-champagne);
}

.stage-title {
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.stage-desc {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.transport-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-primary-lux {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: none;
  border-radius: 5px;
  padding: 7px 14px;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background 0.14s ease, transform 0.12s ease;
  white-space: nowrap;
}

.btn-primary-lux:hover {
  background: var(--btn-primary-hover);
}

.btn-primary-lux.is-limiting {
  box-shadow: 0 0 0 1.5px var(--danger);
}

.btn-tool,
.btn-mini {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.14s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
}

.btn-mini {
  font-size: 10.5px;
  padding: 4px 8px;
}

.btn-tool:hover,
.btn-mini:hover {
  background: rgba(255, 255, 255, 0.085);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.btn-tool.is-active,
.btn-mini.is-active {
  background: var(--accent-champagne-subtle);
  border-color: var(--accent-champagne-dim);
  color: var(--accent-champagne);
}

.btn-tool.is-danger {
  color: var(--danger);
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.08);
}

/* Spectral Canvas */
.visualizer-wrap {
  position: relative;
  width: 100%;
  height: 84px;
  background: #0b0c10;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
}

.visualizer-wrap canvas {
  display: block;
}

.limiter-alert-pill {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(248, 113, 113, 0.16);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: var(--danger);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.limiter-alert-pill.is-visible {
  opacity: 1;
}

/* ==========================================================================
   10-BAND VERTICAL FADERS BAY (Core myNoise Mechanic)
   ========================================================================== */
.mixer-bay-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mixer-bay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.sliders-ten-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

.band-strip {
  background: #0d0f14;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  transition: border-color 0.14s ease, opacity 0.14s ease;
}

.band-strip:hover {
  border-color: var(--border-medium);
}

.band-strip.is-dimmed {
  opacity: 0.42;
}

.band-val-readout {
  font-size: 10.5px;
  color: var(--text-primary);
  min-height: 14px;
}

.fader-well {
  position: relative;
  width: 28px;
  height: 196px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 99px;
  cursor: ns-resize;
  touch-action: none;
  display: flex;
  justify-content: center;
  user-select: none;
}

.fader-rail {
  position: absolute;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 2px;
}

.fader-fill {
  position: absolute;
  bottom: 10px;
  width: 4px;
  border-radius: 2px;
  background: var(--band-color, var(--accent-champagne));
  opacity: 0.85;
  pointer-events: none;
}

.fader-thumb {
  position: absolute;
  left: 50%;
  width: 16px;
  height: 16px;
  transform: translate(-50%, 50%);
  border-radius: 50%;
  background: #0e1014;
  border: 2.5px solid var(--band-color, var(--accent-champagne));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  pointer-events: none;
  transition: transform 0.08s ease;
}

.fader-well:hover .fader-thumb,
.fader-well:focus-visible .fader-thumb {
  transform: translate(-50%, 50%) scale(1.14);
}

.band-freq-lbl {
  font-size: 10.5px;
  color: var(--text-primary);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.band-sub-lbl {
  font-size: 9.5px;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.band-mini-actions {
  display: flex;
  align-items: center;
  gap: 3px;
}

.band-mini-btn {
  width: 18px;
  height: 17px;
  border-radius: 3px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 9px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s ease;
}

.band-mini-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.band-mini-btn.is-solo {
  background: var(--accent-champagne-subtle);
  border-color: var(--accent-champagne-dim);
  color: var(--accent-champagne);
}

.band-mini-btn.is-mute {
  background: rgba(248, 113, 113, 0.14);
  border-color: rgba(248, 113, 113, 0.45);
  color: var(--danger);
}

/* Preset Ribbon */
.presets-ribbon {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px 14px;
}

.presets-group-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.presets-group-label {
  font-size: 10.5px;
  color: var(--text-muted);
  min-width: 104px;
}

/* ==========================================================================
   COMPOSITE & CALIBRATION FULL VIEWS
   ========================================================================== */
.panel-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.composite-slot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 6px;
  background: #0e1014;
  border: 1px solid var(--border-subtle);
}

.calibration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.calib-band-card {
  background: #0e1014;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ==========================================================================
   RIGHT INSPECTOR SIDEBAR (Viral Studio Resizable 360px)
   ========================================================================== */
.sidebar-resizer {
  width: 6px;
  flex-shrink: 0;
  cursor: col-resize;
  background: transparent;
  position: relative;
  z-index: 30;
}

.sidebar-resizer:hover {
  background: rgba(255, 255, 255, 0.06);
}

.sidebar-inspector {
  width: 356px;
  min-width: 280px;
  max-width: 540px;
  flex-shrink: 0;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}

.inspector-section {
  padding: 0 16px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.inspector-section:not(.is-collapsed) {
  background: rgba(255, 255, 255, 0.012);
}

.inspector-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  margin: 0 -16px -11px;
  padding: 13px 16px 11px;
  transition: background 0.14s ease;
}

.inspector-section-header:hover {
  background: rgba(255, 255, 255, 0.025);
}

.inspector-section.is-collapsed {
  gap: 0;
  padding-bottom: 0;
}

.inspector-section.is-collapsed > .inspector-section-header {
  margin: 0 -16px;
  padding: 13px 16px;
}

.inspector-section.is-collapsed > .inspector-section-body {
  display: none;
}

.section-collapse-chevron {
  color: var(--text-muted);
  transition: transform 0.16s ease;
}

.inspector-section.is-collapsed .section-collapse-chevron {
  transform: rotate(-90deg);
}

.inspector-section-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 6px;
}

.control-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
}

.control-label {
  font-size: 11px;
  color: var(--text-secondary);
  width: 82px;
  flex-shrink: 0;
}

.time-readout-pill {
  font-size: 10.5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 3px 6px;
  border-radius: 4px;
  min-width: 48px;
  text-align: center;
}

.range-slider.is-slim {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  min-width: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 99px;
  outline: none;
  cursor: pointer;
}

.range-slider.is-slim::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent-champagne);
  border: 1.5px solid #090a0c;
  box-shadow: 0 0 0 1px rgba(212, 184, 134, 0.35);
  cursor: pointer;
}

.seg-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.preset-dropdown {
  color-scheme: dark;
  background: #141416;
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  color: var(--text-primary);
  font-size: 11px;
  padding: 5px 8px;
  outline: none;
  width: 100%;
}

.saved-presets-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 140px;
  overflow-y: auto;
}

.saved-preset-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 5px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 11px;
}

/* Modal + Toast */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 200;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 540px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
}

.shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 6px;
}

.shortcut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  font-size: 11px;
  color: var(--text-secondary);
}

kbd {
  background: #1d2028;
  border: 1px solid var(--border-medium);
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 10px;
  color: var(--accent-champagne);
}

.toast-banner {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--bg-elevated);
  border: 1px solid var(--accent-champagne-dim);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 11.5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 300;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.75);
}

.toast-banner.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Mobile Bottom Nav */
.mobile-bottom-nav {
  display: none;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (1920px -> 320px, Zero Horizontal Overflow)
   ========================================================================== */
@media (max-width: 1120px) {
  .sidebar-catalog {
    width: 236px;
    min-width: 210px;
  }
  .sidebar-inspector {
    width: 310px;
    min-width: 260px;
  }
  .sliders-ten-grid {
    gap: 5px;
  }
}

@media (max-width: 900px) {
  body {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
    padding-bottom: 58px;
  }
  .top-navbar {
    height: auto;
    min-height: 42px;
    flex-wrap: wrap;
    padding: 6px 10px;
    gap: 6px;
  }
  .brand-group {
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
  }
  .mode-tabs-group {
    flex-wrap: wrap;
    max-width: 100%;
  }
  .nav-actions-group {
    flex-wrap: wrap;
    max-width: 100%;
  }
  .brand-title {
    font-size: 12px;
  }
  .studio-workspace {
    display: block;
    overflow: visible;
  }
  .sidebar-resizer {
    display: none;
  }
  .sidebar-catalog,
  .center-stage,
  .sidebar-inspector {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border: none;
    height: auto;
    overflow: visible;
  }
  body[data-mobile-pane="mixer"] .sidebar-catalog,
  body[data-mobile-pane="mixer"] .sidebar-inspector {
    display: none;
  }
  body[data-mobile-pane="catalog"] .center-stage,
  body[data-mobile-pane="catalog"] .sidebar-inspector {
    display: none;
  }
  body[data-mobile-pane="inspector"] .sidebar-catalog,
  body[data-mobile-pane="inspector"] .center-stage {
    display: none;
  }
  .center-stage {
    padding: 10px;
  }
  .sliders-ten-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }
  .fader-well {
    height: 146px;
  }
  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 52px;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-medium);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 6px 8px;
    z-index: 120;
  }
  .mobile-pane-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 5px;
    color: var(--text-secondary);
    font-size: 11px;
    cursor: pointer;
  }
  .mobile-pane-btn.is-active {
    background: var(--accent-champagne-subtle);
    border-color: var(--accent-champagne-dim);
    color: var(--accent-champagne);
  }
}

@media (max-width: 420px) {
  .mode-tab-btn {
    padding: 4px 6px;
    font-size: 10.5px;
  }
  .sliders-ten-grid {
    gap: 4px;
  }
  .fader-well {
    height: 126px;
    width: 22px;
  }
  .band-mini-btn {
    width: 15px;
    height: 15px;
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
