/* ============================================================
   AuraMix — THE LIVE ROOM interior · WorkinWithAI family skin
   Override sheet: loads AFTER index.css. Restyle only — no
   layout, visibility, or behavior selectors are altered.
   Undo = remove this file's <link> (tag: pre-redesign-v2.1).
   ============================================================ */

/* ---- 1 · Token remap: neon studio -> walnut & copper ---- */
:root {
  --bg-deep: #1A120C;                       /* walnut-deep ground */
  --bg-panel: rgba(36, 24, 17, 0.92);       /* console module face */
  --bg-panel-hover: rgba(46, 32, 22, 0.96); /* walnut-raised */
  --border-glass: #3D2B1D;                  /* walnut-edge */
  --border-neon-cyan: rgba(184, 115, 51, 0.45);
  --border-neon-pink: rgba(184, 115, 51, 0.35);
  --border-neon-purple: rgba(94, 140, 123, 0.4);
  --border-neon-orange: rgba(232, 184, 112, 0.4);

  --neon-cyan: #B87333;    /* copper — primary accent */
  --neon-pink: #B87333;
  --neon-purple: #5E8C7B;  /* patina */
  --neon-green: #5E8C7B;
  --neon-yellow: #E8B870;  /* polished copper */
  --neon-orange: #E8B870;

  --text-primary: #F1E8D8;
  --text-secondary: #D2C3AB;   /* lifted for legibility (was #B9A88F) */
  --text-muted: #A2927A;       /* lifted for legibility (was #7A6A55) */

  --font-sans: 'Hanken Grotesk', 'Space Grotesk', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Share Tech Mono', monospace;

  /* Live Room extras */
  --wwa-groove: #120C07;
  --wwa-danger: #C4573B;
}

/* ---- 2 · Ground: film grain + copper grid ---- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.grid-background {
  background-image:
    linear-gradient(rgba(184, 115, 51, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 115, 51, 0.04) 1px, transparent 1px) !important;
}

/* ---- 3 · Header: the top of the console ---- */
.app-header {
  background: rgba(26, 18, 12, 0.92);
  border-bottom: 1px solid #3D2B1D;
}

.header-logo {
  font-family: 'Bebas Neue', var(--font-sans);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  color: #EFE3D0;
}

.logo-accent {
  color: #E8B870;
  text-shadow: none;
}

.logo-tagline {
  font-family: 'Oswald', var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #7A6A55;
}

/* ---- 4 · Module headers: channel-strip labels ---- */
.panel-header,
.report-section-header {
  font-family: 'Oswald', var(--font-sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #B87333;
  border-bottom: 1px solid #3D2B1D;
}

/* ---- 5 · Console modules ---- */
.daw-main-panel,
.daw-sidebar,
.mixer-console,
.effects-rack,
.timeline-tracks-panel,
.track-lane,
.auramix-plan-card,
.voice-profile-card {
  border-color: #3D2B1D;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(232, 184, 112, 0.05), 0 4px 18px rgba(0, 0, 0, 0.35);
}

.rack-screw {
  background: radial-gradient(circle at 35% 30%, #E8B870, #B87333 55%, #6d4419);
  box-shadow: 0 0 0 1px #6d4419;
}

/* ---- 6 · Faders: copper caps on dark grooves ---- */
.fader-slider,
.timeline-slider {
  background: var(--wwa-groove);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.8);
  border-radius: 3px;
}

.fader-slider::-webkit-slider-thumb,
.timeline-slider::-webkit-slider-thumb {
  background: linear-gradient(180deg, #E8B870, #B87333);
  border: 1px solid #6d4419;
  box-shadow: inset 0 1px 0 rgba(255, 244, 224, 0.5);
}

.fader-slider::-webkit-slider-thumb:hover,
.timeline-slider::-webkit-slider-thumb:hover {
  background: linear-gradient(180deg, #f0c88a, #c9853f);
  box-shadow: 0 0 6px rgba(232, 184, 112, 0.6);
}

.fader-slider::-moz-range-thumb,
.timeline-slider::-moz-range-thumb {
  background: linear-gradient(180deg, #E8B870, #B87333);
  border: 1px solid #6d4419;
}

.fader-slider::-moz-range-track,
.timeline-slider::-moz-range-track {
  background: var(--wwa-groove);
}

/* ---- 7 · Meters: VU spirit ---- */
.led-meter {
  background: var(--wwa-groove);
  border: 1px solid #3D2B1D;
}

.led-meter-fill {
  background: linear-gradient(0deg, #5E8C7B 0%, #B87333 65%, #C4573B 100%) !important;
}

/* ---- 8 · Buttons: hardware switches ---- */
.btn,
.r-btn,
.track-btn,
.btn-import,
.main-tab-btn {
  font-family: 'Oswald', var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.btn-primary {
  background: #B87333;
  color: #1A120C;
  border-color: #B87333;
}

.btn-primary:hover:not(:disabled) {
  background: #E8B870;
  transform: translateY(-1px);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #E8B870;
  outline-offset: 2px;
}

/* ---- 9 · Inputs / selects / drops: recessed fields ---- */
.daw-select,
input[type="text"],
input[type="number"],
input[type="email"],
textarea {
  background-color: var(--wwa-groove);
  border-color: #3D2B1D;
  color: #EFE3D0;
}

.daw-select:focus,
input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus {
  border-color: #B87333;
}

/* ---- 10 · Status & error accents ---- */
.error, .error-message, [data-state="error"] {
  color: #C4573B;
  border-color: rgba(196, 87, 59, 0.5);
}

/* ---- 11 · WWA family chrome (nav strip · footer · beta pill) ---- */
.wwa-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 16px;
  background: #120C07;
  border-bottom: 1px solid #3D2B1D;
  font-family: 'Oswald', sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.wwa-strip a { color: #B87333; text-decoration: none; }
.wwa-strip a:hover { color: #E8B870; }
.wwa-strip .wwa-strip-links { display: flex; gap: 16px; }

.wwa-beta-pill {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: #B87333;
  color: #1A120C;
  padding: 2px 8px;
  border-radius: 100px;
  margin-left: 8px;
  vertical-align: middle;
  cursor: help;
}

.wwa-footer-strip {
  padding: 10px 16px;
  background: #120C07;
  border-top: 1px solid #3D2B1D;
  font-family: 'Oswald', sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7A6A55;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: center;
}

.wwa-footer-strip a { color: #7A6A55; text-decoration: none; }
.wwa-footer-strip a:hover { color: #E8B870; }

/* ---- 12 · Motion respect ---- */
@media (prefers-reduced-motion: reduce) {
  .wwa-strip a, .btn-primary { transition: none !important; }
}

/* ---- 13 · Mobile: touch targets ---- */
@media (max-width: 760px) {
  .btn, .r-btn, .track-btn, .btn-import, .main-tab-btn { min-height: 44px; }
  .wwa-strip { padding: 8px 12px; }
}

/* ---- 14 · ONE combined workspace (supersedes the karaoke-only scoping)
   Mark's Checkpoint-2 feedback: Session + Mix are ONE page — "no sense
   having the AI change settings then switch pages to see the settings."
   So the whole console flows in a single scroll in BOTH session types;
   the journey chips are focus anchors (scrollIntoView), not page swaps.
   Gated on body.wwa-onepage (the shell adds it) so these rules out-
   specify the legacy `body.tab-active-* .tab-view-* { display:none }`
   partitioning — every partition stays on screen at its natural size. */

body.wwa-onepage {
  overflow-y: auto;
  height: auto;
  min-height: 100vh;
}
body.wwa-onepage .daw-container {
  height: auto;
  grid-template-rows: none;
}
body.wwa-onepage .daw-main-panel {
  height: auto;
  overflow: visible;
  grid-template-rows: none;
}

/* Un-hide every tab partition at once. Base = flex (most are); the
   grid-based take lanes are restored explicitly below (3 classes win). */
body.wwa-onepage .tab-view-session-only,
body.wwa-onepage .tab-view-comp-only,
body.wwa-onepage .tab-view-mix-only,
body.wwa-onepage .tab-view-session-comp {
  display: flex !important;
}
body.wwa-onepage .track-lane.tab-view-comp-only {
  display: grid !important;
}

/* Panels flow at natural height instead of keyholed fixed viewports */
body.wwa-onepage .daw-sidebar.glass-panel {
  height: auto;
  max-height: none;
}
body.wwa-onepage .bottom-daw-panel {
  height: auto;
  overflow: visible;
}
body.wwa-onepage .mixer-console,
body.wwa-onepage .effects-rack {
  height: auto;
  overflow: visible;
}
body.wwa-onepage .timeline-tracks-panel {
  min-height: 260px; /* the timeline Mark could "only see part of" */
  height: auto;
  overflow: visible;
}
/* The tracks list was crushed to ~137px (a chopped sliver of one lane
   over 949px of content). Give it room for full lanes + a clean scroll. */
body.wwa-onepage .tracks-list {
  min-height: 384px;
  max-height: 60vh;
  overflow-y: auto;
}

/* Transport stays pinned so Play/Record never leaves reach */
body.wwa-onepage .daw-control-deck {
  position: sticky;
  bottom: 0;
  z-index: 60;
}

/* Karaoke = the Smule flow: elevate the AI rig sidebar beside the rack,
   shrink the timeline to a strip. Studio keeps takes/timeline prominent. */
body.wwa-karaoke-rig .daw-sidebar.glass-panel {
  order: -1; /* AI Producer + Song Wizard read first */
}
body.wwa-karaoke-rig .timeline-tracks-panel {
  min-height: 180px; /* minimal strip in karaoke */
}

/* ============================================================
   SHELL — the UX overhaul (journey nav, first-run, telemetry,
   horizontal mixer strips, relocated utilities). Structure only;
   the §1–13 skin is untouched.
   ============================================================ */

/* ---- 15 · Header as a 3-column console: wordmark | journey | actions */
.app-header {
  display: grid !important;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}
.wwa-journey {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.wwa-journey-step {
  font-family: 'Oswald', var(--font-sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 8px 14px;
  min-height: 36px;
  cursor: pointer;
  transition: color .18s, background .18s, border-color .18s;
}
.wwa-journey-step:hover {
  color: var(--text-primary);
  border-color: var(--border-glass);
}
.wwa-journey-step.active {
  color: #1A120C;
  background: #B87333;
  border-color: #B87333;
}

/* ---- 16 · Telemetry: one status dot + click popover ---- */
.wwa-status-dot {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
}
.wwa-status-dot .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--wwa-danger);
  box-shadow: 0 0 6px var(--wwa-danger);
  transition: background .3s, box-shadow .3s;
}
.wwa-status-dot.online .dot {
  background: #5E8C7B; /* patina = engine online */
  box-shadow: 0 0 8px #5E8C7B;
}
.wwa-status-popover {
  position: absolute;
  top: 54px;
  right: 16px;
  z-index: 200;
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.5);
}
.wwa-status-popover .header-status {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wwa-status-popover .status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
}
.wwa-status-popover .status-label {
  color: var(--text-muted);
  letter-spacing: 0.12em;
}
.wwa-status-popover .status-value { color: var(--text-primary); }

/* ---- 17 · First-run: one obvious action ---- */
.wwa-firstrun {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  /* The booth itself frames the prompt — step into the room */
  background:
    radial-gradient(120% 90% at 50% 12%, rgba(13,8,4,0.35) 0%, rgba(11,7,3,0.72) 62%, rgba(9,5,2,0.9) 100%),
    url('booth-live-room.jpg') center 28% / cover no-repeat;
}
.wwa-firstrun[hidden] { display: none; }
.wwa-firstrun-card {
  width: 100%;
  max-width: 560px;
  background: rgba(26, 18, 12, 0.84);
  border: 1px solid rgba(184, 115, 51, 0.42);
  border-radius: 18px;
  padding: 36px 36px 32px;
  text-align: center;
  box-shadow:
    0 40px 90px rgba(0,0,0,0.62),
    inset 0 1px 0 rgba(232,184,112,0.1);
}
.wwa-firstrun-kicker {
  font-family: 'Oswald', var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 11px;
  color: #B87333;
  margin-bottom: 10px;
}
.wwa-firstrun-title {
  font-family: 'Bebas Neue', var(--font-sans);
  font-weight: 400;
  font-size: 2.6rem;
  line-height: 1.02;
  letter-spacing: 0.03em;
  color: var(--text-primary);
  margin: 0 0 22px;
}
.wwa-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 20px;
  border: 2px dashed rgba(184,115,51,0.5);
  border-radius: 12px;
  background: rgba(184,115,51,0.04);
  cursor: pointer;
  transition: border-color .18s, background .18s;
}
.wwa-dropzone:hover,
.wwa-dropzone.dragging {
  border-color: #E8B870;
  background: rgba(232,184,112,0.1);
}
.wwa-dropzone-icon { font-size: 2rem; }
.wwa-dropzone-text {
  font-family: 'Oswald', var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.wwa-dropzone-text em { color: var(--text-muted); font-style: normal; text-transform: none; letter-spacing: 0; }
.wwa-firstrun-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 20px 0 8px;
  flex-wrap: wrap;
}
.wwa-firstrun-uploads {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 14px;
}
.wwa-upload-btn {
  flex: 1 1 140px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  padding: 12px 10px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid var(--border-glass);
  background: rgba(0,0,0,0.25);
  color: var(--text-secondary);
  font-family: 'Oswald', var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 700;
  transition: border-color .18s, background .18s, color .18s;
}
.wwa-upload-btn small {
  font-family: var(--font-sans);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-size: 10px;
  color: var(--text-muted);
}
.wwa-upload-btn:hover {
  border-color: #E8B870;
  color: var(--text-primary);
  background: rgba(232,184,112,0.08);
}
.wwa-upload-btn.is-loaded {
  border-color: #5E8C7B;
  color: #8FCBB5;
  background: rgba(94,140,123,0.12);
}
.wwa-firstrun-start {
  margin-top: 14px;
  width: 100%;
}
.wwa-firstrun-start[hidden] { display: none; }
.wwa-session-type {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border-glass);
}
.wwa-session-type-label {
  display: block;
  font-family: 'Oswald', var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.wwa-session-type-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.wwa-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 150px;
  padding: 12px 16px;
  min-height: 44px;
  font-family: 'Oswald', var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  color: var(--text-primary);
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .18s, background .18s;
}
.wwa-type-btn small {
  font-family: var(--font-sans);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
  color: var(--text-muted);
}
.wwa-type-btn:hover { border-color: rgba(184,115,51,0.6); }
.wwa-type-btn.active {
  border-color: #B87333;
  background: rgba(184,115,51,0.14);
}

/* Life: the primary "record a take" button breathes a warm glow */
#wwa-firstrun-record {
  position: relative;
  animation: wwa-rec-breathe 2.6s ease-in-out infinite;
}
@keyframes wwa-rec-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,184,112,0.0); }
  50% { box-shadow: 0 0 26px 2px rgba(232,184,112,0.4); }
}
.wwa-firstrun-card .wwa-dropzone {
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(232,184,112,0.08), rgba(184,115,51,0.03) 70%);
}
@media (prefers-reduced-motion: reduce) {
  #wwa-firstrun-record { animation: none; }
}

/* ---- 18 · Export: the one distinct surface ---- */
.wwa-export-panel {
  max-width: 620px;
  margin: 20px auto;
  padding: 20px 24px;
}
.wwa-export-panel[hidden] { display: none; }
.wwa-export-copy {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
  margin: 12px 0 18px;
}
.wwa-export-copy strong { color: var(--text-primary); }
.wwa-export-slot { display: flex; }
.wwa-export-slot .export-actions {
  display: flex;
  gap: 14px;
  width: 100%;
}
.wwa-export-slot .export-actions .btn {
  flex: 1;
  min-height: 52px;
  font-size: 14px;
}

/* ---- 19 · Compact mixer strips: every track on one row ----
   The rejected design was one tall column per channel. Here each strip
   is a horizontal row (name · pan · fader · meter · M/S on one line) and
   the strips stack, so all channels fit one view. The vertical fader is
   SHORTENED to ~54px; app.js measures fader height for handle travel, so
   a short fader still positions correctly. */
body.wwa-onepage .mixer-strips-container {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  overflow-x: visible;
}
body.wwa-onepage .mixer-strip {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: none;      /* base rule caps strips at 130px — release it */
  flex: 0 0 auto;       /* base `flex:1` would stretch each strip to fill
                           the column; size to content instead */
  min-height: 0;
  padding: 8px 14px;
}
body.wwa-onepage .mixer-strip .strip-header {
  flex: 0 0 150px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
body.wwa-onepage .mixer-strip .channel-num { font-size: 11px; }
body.wwa-onepage .mixer-strip .channel-name {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  font-size: 12.5px;
  line-height: 1.15;
}
body.wwa-onepage .mixer-strip .strip-body {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  flex: 1 1 auto;
  min-width: 0;
}
/* PAN: knob beside its value, label dropped (position implies it) */
body.wwa-onepage .mixer-strip .knob-container:not(.fader-container-vertical) {
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  margin: 0;
}
body.wwa-onepage .mixer-strip .knob-label { display: none; }
body.wwa-onepage .mixer-strip .knob-pan { width: 34px !important; height: 34px !important; }
body.wwa-onepage .mixer-strip .knob-value {
  font-size: 10px;
  min-width: 30px;
}
/* meter + short vertical fader as a compact cluster */
body.wwa-onepage .mixer-strip .meter-fader-row {
  height: auto;
  flex: 0 0 auto;
  gap: 12px;
  padding: 0;
  align-items: center;
}
body.wwa-onepage .mixer-strip .fader-container-vertical {
  height: auto;
  flex-direction: row;   /* fader beside its readout, not stacked → shorter */
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
}
body.wwa-onepage .mixer-strip .mixer-fader {
  height: 48px;          /* app.js reads this for handle travel (48-28=20) */
}
body.wwa-onepage .mixer-strip .led-meter {
  height: 48px;
}
body.wwa-onepage .mixer-strip .strip-buttons {
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  gap: 6px;
}
/* channel input/load behind a subtle disclosure chip */
.wwa-chan-menu { flex: 0 0 auto; }
.wwa-chan-menu > summary {
  list-style: none;
  cursor: pointer;
  font-family: 'Oswald', var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  padding: 4px 8px;
  border: 1px solid var(--border-glass);
  border-radius: 5px;
  white-space: nowrap;
}
.wwa-chan-menu > summary::-webkit-details-marker { display: none; }
.wwa-chan-menu[open] > summary { color: #B87333; border-color: rgba(184,115,51,0.5); }
.wwa-chan-menu .strip-utility-row { margin-top: 6px; }

/* ---- 20 · Relocated utilities: panic + rack chips ---- */
.wwa-panic {
  background: var(--wwa-danger) !important;
  color: #1A120C !important;
  border-color: var(--wwa-danger) !important;
  font-weight: 700;
  padding: 6px 12px !important;
  min-height: 36px;
}
.wwa-rack-util {
  font-family: 'Oswald', var(--font-sans);
  font-size: 10px !important;
  letter-spacing: 0.1em;
  padding: 4px 10px !important;
  min-height: 30px;
}
.effects-rack .panel-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---- 21 · Mic-permission notice as a proper module ---- */
.mic-permission-notice {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 260px;
  padding: 10px 12px;
  background: rgba(196,87,59,0.1);
  border: 1px solid rgba(196,87,59,0.4);
  border-radius: 8px;
  white-space: normal;
}
.mic-permission-notice[hidden] { display: none; }
.mic-permission-notice strong {
  font-family: 'Oswald', var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  color: #E8B870;
}
.mic-permission-notice span { font-size: 11px; color: var(--text-secondary); line-height: 1.45; }

/* ---- 22 · Progressive disclosure: dim the DAW until audio exists --- */
body:not(.wwa-has-audio) .bottom-daw-panel {
  opacity: 0.45;
  pointer-events: none;
}
body:not(.wwa-has-audio) .wwa-journey-step:not([data-step="setup"]) {
  opacity: 0.5; /* muted but still clickable */
}

/* ---- 23 · Phone width: single column, strips stay rows ---- */
@media (max-width: 760px) {
  .app-header {
    grid-template-columns: 1fr auto;
    row-gap: 8px;
  }
  .wwa-journey {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .wwa-journey-step { min-height: 44px; }
  .wwa-status-popover { right: 8px; left: 8px; }
  .wwa-firstrun-title { font-size: 2rem; }
  body.wwa-onepage .mixer-strip { flex-wrap: wrap; min-height: 0; }
  body.wwa-onepage .mixer-strip .strip-header { flex-basis: 100%; }
  .wwa-export-slot .export-actions { flex-direction: column; }
}

/* ============================================================
   24 · KARAOKE BOOTH — photographic realism + pleasant space
   A real, walnut-graded studio photo sits behind the room; panels
   float as warm glass. Only the three things Mark needs on Smule:
   AI Producer chat · the rack · a gain meter. Timeline, takes, and
   the mixer are hidden. This is the "pleasant like the hub" surface.
   ============================================================ */

/* --- 24a · The realism: graded studio photo behind everything --- */
body.wwa-karaoke-rig { background: transparent !important; }
body.wwa-karaoke-rig::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom,
      rgba(13, 8, 4, 0.12) 0%,
      rgba(13, 8, 4, 0.22) 24%,
      rgba(13, 8, 4, 0.62) 52%,
      rgba(13, 8, 4, 0.88) 100%),
    url('booth-live-room.jpg') center 26% / cover no-repeat;
}

/* --- 24b · Solid warm panels ON the photo (hub-style): the room is
   the hero behind, panels are readable walnut cards, the photo breathes
   in the header, page margins and gaps. No blur-glass (over-dark + a
   screenshot-capture artifact). --- */
body.wwa-karaoke-rig .glass-panel,
body.wwa-karaoke-rig .effects-rack,
body.wwa-karaoke-rig .daw-sidebar,
body.wwa-karaoke-rig .auramix-plan-card {
  background: rgba(26, 18, 12, 0.9) !important;
  border-color: rgba(184, 115, 51, 0.3) !important;
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.5);
}
body.wwa-karaoke-rig .app-header {
  background: rgba(18, 12, 7, 0.72) !important;  /* legible when pinned; hero photo still warms the band below */
  border-bottom: 1px solid rgba(184, 115, 51, 0.18);
}
body.wwa-karaoke-rig .daw-control-deck {
  background: rgba(16, 10, 6, 0.92) !important;
  border-top: 1px solid rgba(184, 115, 51, 0.25);
}

/* --- 24c · The calm: hide takes, timeline, mixer in karaoke ---
   Hide the mixer-console specifically (NOT its parent .bottom-daw-panel,
   which also holds the rack we want to keep). */
body.wwa-karaoke-rig.wwa-onepage .mixer-console,
body.wwa-karaoke-rig.wwa-onepage .timeline-tracks-panel,
body.wwa-karaoke-rig.wwa-onepage .track-lane {
  display: none !important;
}

/* Tuck away studio-oriented noise so the top is just wizard + chat:
   the empty voice-lock state and the "load a stem" mix alert. Kept in
   the DOM (app.js binds their ids) — just hidden in karaoke. */
body.wwa-karaoke-rig #voice-profile-card,
body.wwa-karaoke-rig #wizard-audio-warning {
  display: none !important;
}

/* --- 24d · Pleasant space: give the two survivors room --- */
/* Stack full-width: AI wizard/chat on top (readable), rack right below.
   daw-sidebar and daw-main-panel are siblings in daw-container, so flex
   `order` puts the sidebar first without moving any node. */
body.wwa-karaoke-rig .daw-container {
  display: flex !important;
  flex-direction: column;
  gap: 20px;
  padding: 150px 28px 24px;   /* tall top = photo hero band before the panels */
  box-sizing: border-box;
}
body.wwa-karaoke-rig .daw-sidebar { order: 1; }
body.wwa-karaoke-rig .daw-main-panel { order: 2; padding: 0; gap: 0; }
body.wwa-karaoke-rig .bottom-daw-panel { padding: 0; gap: 0; }
body.wwa-karaoke-rig .effects-rack { flex: 1 1 auto; }
body.wwa-karaoke-rig .daw-sidebar,
body.wwa-karaoke-rig .effects-rack {
  width: 100%;
  box-sizing: border-box;
  border-radius: 16px;
  padding: 20px !important;
}
body.wwa-karaoke-rig .panel-header h2,
body.wwa-karaoke-rig .report-section-header {
  font-family: 'Bebas Neue', var(--font-sans);
  letter-spacing: 0.04em;
  font-size: 18px;
  color: var(--text-primary);
}

/* ---- 25 · Sticky journey nav — jump between sections from anywhere.
   The studio workspace is many viewports tall; without a pinned nav you
   had to scroll back to the top to navigate. Pin the header, leave room
   under it when scrolling to a section, and flash where you land. ---- */
body.wwa-onepage .app-header {
  position: sticky;
  top: 0;
  z-index: 100;
}
body.wwa-onepage .timeline-tracks-panel,
body.wwa-onepage .effects-rack,
body.wwa-onepage .mixer-console,
body.wwa-onepage .track-lane,
body.wwa-onepage .daw-sidebar,
body.wwa-onepage #wwa-export-panel {
  scroll-margin-top: 88px;
}
@keyframes wwa-nav-flash {
  0%   { box-shadow: 0 0 0 0 rgba(184,115,51,0); }
  22%  { box-shadow: 0 0 0 2px rgba(232,184,112,0.75), 0 0 26px rgba(184,115,51,0.45); }
  100% { box-shadow: 0 0 0 0 rgba(184,115,51,0); }
}
.wwa-nav-target { animation: wwa-nav-flash 1.15s ease-out; }

/* --- 24e · Gain meter at the Input Stage (relocated master meter) --- */
.wwa-gain-meter {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
  align-self: stretch;
  padding: 4px 8px 0;
}
.wwa-gain-meter .wwa-gain-label {
  font-family: 'Oswald', var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #B87333;
}
.wwa-gain-meter .led-meter {
  width: 14px;
  height: 96px;
  border-radius: 4px;
}
.wwa-gain-meter .wwa-gain-clip {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--wwa-groove);
  box-shadow: inset 0 0 3px #000;
}

/* ============================================================
   26 · COMPING GRID (Takes step) — take rows × phrase columns,
   waveform per cell, keeper lit copper, master row. Glass over
   the booth photo (Mark: "see-through with the studio picture").
   ============================================================ */
.wwa-comp-grid-panel {
  padding: 26px 24px;
  margin: 4px 0;
  border-radius: 16px;
  background:
    linear-gradient(rgba(16, 10, 6, 0.5), rgba(12, 8, 4, 0.72)),
    url('booth-live-room.jpg') center 30% / cover no-repeat;
}
.wwa-comp-grid-panel[hidden] { display: none; }
.wwa-cg-inner {
  max-width: 1120px;
  margin: 0 auto;
  background: rgba(26, 18, 12, 0.52) !important;  /* see-through: booth shows through */
  backdrop-filter: blur(6px) saturate(1.05);
  -webkit-backdrop-filter: blur(6px) saturate(1.05);
  border: 1px solid rgba(184, 115, 51, 0.4) !important;
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}
.wwa-cg-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.wwa-cg-head h2 {
  font-family: 'Bebas Neue', var(--font-sans);
  font-weight: 400; letter-spacing: 0.04em; font-size: 22px;
  color: var(--text-primary); margin: 0;
}
.wwa-cg-sub {
  font-family: 'Oswald', var(--font-sans);
  text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 10.5px; color: var(--text-muted);
}
.wwa-cg-grid {
  display: grid;
  grid-template-columns: 96px repeat(var(--cg-cols, 6), minmax(0, 1fr));
  gap: 6px;
  align-items: stretch;
}
.wwa-cg-rowlabel {
  display: flex; align-items: center;
  font-family: 'Oswald', var(--font-sans);
  text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 11px; color: var(--text-secondary);
  padding-right: 6px;
}
.wwa-cg-hcell {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding-bottom: 5px; gap: 1px;
}
.wwa-cg-num { font-family: 'Oswald', var(--font-sans); font-weight: 600; font-size: 12px; color: #B87333; }
.wwa-cg-chord { font-size: 10px; color: var(--text-muted); }
.wwa-cg-cell {
  position: relative; min-height: 46px;
  background: rgba(10, 7, 4, 0.42);
  border: 1px solid rgba(61, 43, 29, 0.85);
  border-radius: 6px; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.wwa-cg-cell:hover { border-color: rgba(184, 115, 51, 0.75); background: rgba(20, 13, 8, 0.5); }
.wwa-cg-cell.is-keeper {
  background: rgba(94, 140, 123, 0.22);
  border-color: #5E8C7B;
  box-shadow: inset 0 0 0 1px #5E8C7B, 0 0 16px rgba(94, 140, 123, 0.4);
}
.wwa-cg-cell.is-locked { box-shadow: inset 0 0 0 1.5px #E8B870, 0 0 18px rgba(232, 184, 112, 0.45); }
.wwa-cg-wave { width: 92%; height: 30px; display: block; }
.wwa-cg-mcell {
  background: rgba(94, 140, 123, 0.12);
  border-color: rgba(94, 140, 123, 0.42);
  cursor: default;
}
.wwa-cg-mcell:hover { border-color: rgba(94, 140, 123, 0.42); background: rgba(94, 140, 123, 0.12); }
.wwa-cg-mlabel { font-family: 'Oswald', var(--font-sans); font-weight: 600; font-size: 11px; letter-spacing: 0.08em; color: #8FCBB5; }
.wwa-cg-mrow-label { color: #E8B870; }
.wwa-cg-empty {
  text-align: center; color: var(--text-muted);
  font-size: 14px; line-height: 1.6; padding: 44px 20px;
}
.wwa-cg-empty strong { color: #B87333; }
@media (max-width: 760px) {
  .wwa-cg-grid { grid-template-columns: 64px repeat(var(--cg-cols, 6), minmax(40px, 1fr)); overflow-x: auto; }
}

/* Timing-align toggle in the comp grid head */
.wwa-cg-head { flex-wrap: wrap; }
.wwa-cg-timing { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.wwa-cg-timinglabel {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'Oswald', var(--font-sans);
  text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 10.5px; color: var(--text-secondary); cursor: pointer;
}
.wwa-cg-timinglabel input { accent-color: #B87333; width: 15px; height: 15px; cursor: pointer; }
.wwa-cg-amount { font-size: 11px !important; padding: 4px 8px !important; height: auto !important; width: auto !important; }

/* Retire the redundant AI COMP LAB (comp grid replaces it); its Undo/Revert
   moved into the comp-grid head. */
body.wwa-onepage #comp-grid-container { display: none !important; }
.wwa-cg-actions { display: inline-flex; gap: 6px; margin-left: 12px; }
.wwa-cg-actions .btn { font-size: 10px !important; padding: 4px 10px !important; height: auto !important; }

/* AI Splice & Mix promoted into the comp-grid head — the primary action
   of the Takes step, not buried in the timeline. */
.wwa-cg-actions .wwa-cg-splice {
  font-size: 11px !important;
  padding: 7px 14px !important;
  height: auto !important;
  background: #B87333 !important;
  border-color: #B87333 !important;
  color: #1A120C !important;
  font-weight: 700;
}
.wwa-cg-actions .wwa-cg-splice:disabled { opacity: 0.45; }

/* Header mode switch — one tap between Karaoke and Studio */
.wwa-mode-switch {
  font-family: 'Oswald', var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(184, 115, 51, 0.45);
  border-radius: 8px;
  padding: 7px 12px;
  min-height: 34px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.wwa-mode-switch:hover { border-color: #E8B870; background: rgba(184, 115, 51, 0.14); }

/* Tracks must never slide sideways — clamp horizontal scroll in the
   one-page workspace (labels + waveforms stay aligned to the left edge). */
body.wwa-onepage .tracks-list,
body.wwa-onepage .track-group,
body.wwa-onepage .track-group-body,
body.wwa-onepage .track-lane {
  overflow-x: hidden;
}

/* Build pill beside BETA — green = current, red = stale (click reloads) */
.wwa-build-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid #3D2B1D;
  border-radius: 100px;
  padding: 2px 8px;
  margin-left: 6px;
  vertical-align: middle;
  cursor: default;
}
.wwa-build-pill.is-current { color: #8FCBB5; border-color: rgba(94, 140, 123, 0.5); }
.wwa-build-pill.is-stale {
  color: #1A120C;
  background: var(--wwa-danger);
  border-color: var(--wwa-danger);
  cursor: pointer;
  animation: wwa-rec-breathe 2.6s ease-in-out infinite;
}

/* The comp grid owns AI-pick display + overrides now — retire the old
   override bottom-sheet (our unconditional tab-view un-hiding had
   resurrected it) and the buried pipeline dropdown (Gemini comp is the
   default path with automatic local fallback). */
body.wwa-onepage #comp-override-bottom-sheet,
body.wwa-onepage #select-comp-pipeline {
  display: none !important;
}
