/* ==========================================================================
   LyricCut V12 — Late Session (suno.com-inspired) Design System
   Inspired by: HeroUI v3 (oklch tokens & spring press), BoardUI (blueprint
   rails & telemetry), Bencho.dev (tactile keycaps & fluid gliders),
   beUI Pro & Libraries.dev (1px perimeter border beam & spotlight sheen),
   Watermelon UI (asymmetric hairline Bento architecture).
   ========================================================================== */

@property --beam-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root {
  /* V12 "Late Session" — warm near-black, ember accent (suno.com-inspired) */
  --bg: #0f0d0c;
  --plane: #161312;
  --plane-deep: #120f0e;
  --surface: #1f1b19;
  --surface-hover: #2a2522;
  --segment: #39322e;
  --nav-bg: rgba(15, 13, 12, 0.72);
  --popover-bg: #1a1615;
  --console-bg: rgba(22, 17, 15, 0.62);

  --pearl: #f7f3ef;
  --pearl-hover: #ffffff;
  --ink-on-pearl: #120e0c;

  --ink: #f7f3ef;
  --ink-secondary: #c4bab2;
  --ink-muted: #9b9088;

  /* Ember: selection, waveform, active state */
  --sonic: #ff6a3d;
  --sonic-bright: #ff9a6e;
  --sonic-soft: rgba(255, 106, 61, 0.13);
  --sonic-border: rgba(255, 138, 91, 0.38);
  --ember-a: #f0386b;
  --ember-b: #ff7a2f;
  --ember: linear-gradient(100deg, var(--ember-a) 0%, var(--ember-b) 100%);

  /* Playhead / live sync */
  --needle: #ffffff;
  --needle-soft: rgba(255, 106, 61, 0.12);
  --needle-border: rgba(255, 106, 61, 0.36);

  --live: #3ccf91;

  --rail: rgba(255, 240, 230, 0.07);
  --hairline: rgba(255, 240, 230, 0.08);
  --hairline-strong: rgba(255, 240, 230, 0.15);

  --shadow-pearl: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-console: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  --shadow-popover: 0 24px 56px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 240, 230, 0.1);
  --shadow-glider: 0 1px 2px rgba(0, 0, 0, 0.4);

  --font-sans: "Rethink Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: var(--font-sans);
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-snappy: cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f2ee;
  --plane: #fffdfb;
  --plane-deep: #f1ebe5;
  --surface: #ece5de;
  --surface-hover: #e3dad2;
  --segment: #ffffff;
  --nav-bg: rgba(246, 242, 238, 0.86);
  --popover-bg: #ffffff;
  --console-bg: rgba(255, 253, 251, 0.78);

  --pearl: #1a1412;
  --pearl-hover: #2c2420;
  --ink-on-pearl: #ffffff;

  --ink: #1a1412;
  --ink-secondary: #51463f;
  --ink-muted: #6b5f57;

  --sonic: #d4471f;
  --sonic-bright: #c2401b;
  --sonic-soft: rgba(212, 71, 31, 0.10);
  --sonic-border: rgba(212, 71, 31, 0.30);

  --needle: #1a1412;
  --needle-soft: rgba(212, 71, 31, 0.10);
  --needle-border: rgba(212, 71, 31, 0.30);

  --live: #12805a;

  --rail: rgba(26, 20, 18, 0.08);
  --hairline: rgba(26, 20, 18, 0.09);
  --hairline-strong: rgba(26, 20, 18, 0.16);

  --shadow-pearl: 0 1px 2px rgba(26, 20, 18, 0.16);
  --shadow-console: 0 30px 60px -30px rgba(60, 30, 15, 0.25);
  --shadow-popover: 0 20px 44px -12px rgba(26, 20, 18, 0.16), 0 0 0 1px rgba(26, 20, 18, 0.08);
  --shadow-glider: 0 1px 3px rgba(26, 20, 18, 0.12);
}

/* --------------------------------------------------------------------------
   Base & Drafted Studio Canvas
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  scrollbar-color: #2c2c35 var(--bg);
  scrollbar-width: thin;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  overflow-x: clip;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color 180ms var(--ease), color 180ms var(--ease);
}

:root[data-theme="light"] body {
  background-image:
    radial-gradient(960px 440px at 50% -90px, rgba(212, 71, 31, 0.08), rgba(255, 93, 56, 0.03) 46%, transparent 76%);
}

::selection {
  background-color: rgba(255, 106, 61, 0.28);
  color: #ffffff;
}

::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #2b2b34;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3d3d4a;
}

[hidden] {
  display: none !important;
}

a {
  color: var(--ink);
  text-decoration-color: rgba(255, 170, 130, 0.38);
  text-underline-offset: 3.5px;
  transition: color 150ms var(--ease), text-decoration-color 150ms var(--ease);
}
a:hover {
  color: var(--sonic-bright);
  text-decoration-color: var(--sonic-bright);
}

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

button {
  background: none;
  border: none;
  cursor: pointer;
  touch-action: manipulation;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

input::placeholder,
textarea::placeholder {
  color: var(--ink-muted);
  opacity: 1;
}

code, kbd {
  font-family: var(--font-mono);
  font-size: 0.85em;
}

code {
  background: var(--surface);
  color: var(--sonic-bright);
  padding: 2px 7px;
  border-radius: 6px;
}

/* HeroUI v3 + Bencho Machined Hardware Keycap */
kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 23px;
  padding-inline: 7px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  background: linear-gradient(180deg, #23232b 0%, #17171c 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 2px 0 #070709, 0 0 0 1px var(--hairline-strong);
  border-radius: 6px;
}

:root[data-theme="light"] kbd {
  background: linear-gradient(180deg, #ffffff 0%, #f1eef8 100%);
  box-shadow: inset 0 1px 0 #ffffff, 0 2px 0 #d4cee6, 0 0 0 1px var(--hairline-strong);
}

:focus-visible,
.file-trigger:focus-within {
  outline: 2px solid var(--sonic);
  outline-offset: 2px;
}

.sr-only-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* --------------------------------------------------------------------------
   BoardUI Architectural Blueprint Frame & Crosshair Intersections
   -------------------------------------------------------------------------- */
.blueprint-shell {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-inline: 28px;
}

.rail-rule {
  position: relative;
}

.mono-time {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  color: var(--ink-secondary);
}

/* --------------------------------------------------------------------------
   HeroUI v3 Tactile Buttons & Fluid Sliding Pill Controls
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transform: translateZ(0);
  transition:
    transform 220ms var(--ease-snappy),
    background-color 130ms var(--ease),
    box-shadow 130ms var(--ease),
    color 130ms var(--ease);
}

.btn svg {
  flex-shrink: 0;
}

.btn:active:not(:disabled) {
  transform: scale(0.965);
}

/* Primary Machined Pearl Button (19.2:1 AAA Contrast — Linear / HeroUI v3 / Raycast grade) */
.btn-sonic,
.btn-ink {
  background: var(--pearl);
  color: var(--ink-on-pearl);
  font-weight: 650;
  box-shadow: var(--shadow-pearl);
}
.btn-sonic:hover:not(:disabled),
.btn-ink:hover:not(:disabled) {
  background: var(--pearl-hover);
  color: var(--ink-on-pearl);
  transform: translateY(-1px);
}
.btn-sonic:active:not(:disabled),
.btn-ink:active:not(:disabled) {
  transform: scale(0.965);
}

/* Secondary Brushed Zinc Hardware Pill (Crisp Tactile 1px Hairline) */
.btn-glass,
.btn-outline {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), inset 0 0 0 1px var(--hairline-strong);
}
.btn-glass:hover:not(:disabled),
.btn-outline:hover:not(:disabled) {
  background: var(--surface-hover);
  color: #ffffff;
}

/* Quiet Ghost Action */
.btn-ghost {
  background: transparent;
  color: var(--ink-secondary);
}
.btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

/* Live Sync / Analog VU Coral Button */
.btn-needle {
  background: var(--needle);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-sm {
  font-size: 12.5px;
  padding: 8px 13px;
}

.btn-lg {
  font-size: 14.5px;
  padding: 12px 21px;
}

/* Tactile Pearl Play Circle */
.btn-circle-play {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pearl);
  color: var(--ink-on-pearl);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-pearl);
  transition: transform 220ms var(--ease-snappy), background-color 140ms var(--ease);
}
.btn-circle-play.lg {
  width: 46px;
  height: 46px;
}
.btn-circle-play:hover:not(:disabled) {
  background: #ffffff;
  transform: scale(1.05);
}
.btn-circle-play:active:not(:disabled) {
  transform: scale(0.94);
}
.btn-circle-play svg {
  transform: translateX(1px);
}

/* Fluid Sliding Segmented Control (HeroUI v3 .tabs__indicator + Bencho physics) */
.stage-tabs-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 2px 0;
  gap: 4px;
  isolation: isolate;
}

.seg-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: var(--plane-deep);
  padding: 3px;
  border-radius: 999px;
  gap: 2px;
  isolation: isolate;
}

.seg-glider {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  z-index: 0;
  border-radius: 999px;
  background: var(--segment);
  box-shadow: var(--shadow-glider);
  pointer-events: none;
  transition:
    transform 260ms var(--ease-snappy),
    width 260ms var(--ease-snappy),
    opacity 150ms var(--ease);
}

.seg-item,
.song-tab {
  position: relative;
  z-index: 1;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  padding: 5px 12px;
  border-radius: 999px;
  line-height: 1.25;
  white-space: nowrap;
  transition: color 160ms var(--ease);
}
.seg-item:hover,
.song-tab:hover {
  color: var(--ink);
}
.seg-item.active,
.song-tab.active {
  color: var(--ink);
}
/* Fallback highlight before JS glider mounts */
.seg-control:not(:has(.seg-glider)) .seg-item.active,
.stage-tabs-pill:not(:has(.seg-glider)) .song-tab.active {
  background: var(--segment);
  box-shadow: var(--shadow-glider);
}

/* Tactile Toggle Pill */
.pill-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 180ms var(--ease-snappy), background-color 140ms var(--ease), color 140ms var(--ease);
}
.pill-toggle:hover {
  color: var(--ink);
  background: var(--surface-hover);
}
.pill-toggle:active {
  transform: scale(0.96);
}
.pill-toggle[aria-pressed="true"] {
  background: var(--sonic-soft);
  color: var(--sonic-bright);
  box-shadow: inset 0 0 0 1px var(--sonic-border);
}

/* --------------------------------------------------------------------------
   Spotlight Sheen Surface (pro.beui.dev / libraries.dev)
   -------------------------------------------------------------------------- */
[data-spotlight] {
  position: relative;
}
[data-spotlight]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    460px circle at var(--mx, 50%) var(--my, -200px),
    rgba(255, 255, 255, 0.055),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 260ms var(--ease);
  pointer-events: none;
}
[data-spotlight]:hover::after {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Global Overlays, Toast & Session Recovery
   -------------------------------------------------------------------------- */
.drop-veil {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(9, 9, 11, 0.88);
  backdrop-filter: blur(16px);
  display: grid;
  place-items: center;
  padding: 24px;
}

.drop-veil-inner {
  text-align: center;
  padding: 44px 56px;
  border-radius: 24px;
  background: var(--plane);
  border: 1.5px dashed var(--sonic-bright);
  box-shadow: var(--shadow-console);
  color: var(--sonic-bright);
}
.drop-veil-title {
  margin-top: 14px;
  font-size: 20px;
  font-weight: 650;
  color: var(--ink);
}
.drop-veil-sub {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-secondary);
}

.status-pill,
.feedback-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #1a1a21;
  color: var(--ink);
  font-size: 13px;
  font-weight: 550;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-popover);
}

.status-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 170, 130, 0.25);
  border-top-color: var(--sonic-bright);
  border-radius: 50%;
  animation: lyricSpin 0.7s linear infinite;
}
@keyframes lyricSpin {
  to { transform: rotate(360deg); }
}

.recovery-bar {
  background: rgba(255, 138, 91, 0.09);
  border-bottom: 1px solid var(--sonic-border);
  padding: 10px 24px;
}
.recovery-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13.5px;
  color: var(--ink-secondary);
}
.recovery-inner strong {
  color: var(--ink);
}
.recovery-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.error-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 920;
  max-width: 420px;
  background: #261215;
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.35);
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 13.5px;
  box-shadow: var(--shadow-popover);
}

/* --------------------------------------------------------------------------
   Collapsible Workspace Sidebar (64px Rail <-> 220px Expanded)
   Only shown when body.in-workspace is active (desktop & tablet).
   -------------------------------------------------------------------------- */
.studio-sidebar {
  display: none;
}

body.in-workspace .studio-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 64px;
  z-index: 600;
  display: flex;
  flex-direction: column;
  background: var(--plane);
  border-right: 1px solid var(--hairline);
  padding: 12px 10px;
  gap: 10px;
  transition: width 210ms var(--ease);
  overflow: hidden;
}

body.in-workspace.sidebar-expanded .studio-sidebar {
  width: 220px;
}

.sb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 40px;
}

.sb-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
  overflow: hidden;
}
body.in-workspace:not(.sidebar-expanded) .sb-brand {
  display: none;
}

.sb-brand-text {
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: -0.02em;
}

.sb-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  color: var(--ink-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0 auto;
  transition: background-color 140ms var(--ease), color 140ms var(--ease);
}
body.in-workspace.sidebar-expanded .sb-toggle-btn {
  margin: 0;
  width: 34px;
  height: 34px;
}
.sb-toggle-btn:hover {
  background: var(--surface);
  color: var(--ink);
}

.sb-section {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hairline);
}

.sb-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.sb-foot {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--hairline);
}

.sb-item {
  width: 100%;
  height: 40px;
  padding: 0 11px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-secondary);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  transition: background-color 140ms var(--ease), color 140ms var(--ease);
}
.sb-item svg {
  flex-shrink: 0;
}
.sb-item:hover {
  background: var(--surface);
  color: var(--ink);
}
.sb-item.is-current {
  background: var(--surface-hover);
  color: var(--ink);
}

.sb-item-primary {
  background: linear-gradient(135deg, #c91e68 0%, #cc4814 100%);
  color: #ffffff;
  font-weight: 600;
}
.sb-item-primary:hover {
  background: linear-gradient(135deg, #d82472 0%, #db5019 100%);
  color: #ffffff;
}

.sb-label {
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms var(--ease);
}
body.in-workspace.sidebar-expanded .sb-label {
  opacity: 1;
  pointer-events: auto;
}

/* Workspace Top Context Bar & Main Stage Offset */
body.in-workspace .site-nav {
  position: sticky;
  top: 0;
  width: auto;
  margin: 0 0 0 64px;
  border-radius: 0;
  outline: none;
  border-bottom: 1px solid var(--hairline);
  transition: margin-left 210ms var(--ease);
}
body.in-workspace.sidebar-expanded .site-nav {
  margin-left: 220px;
}
body.in-workspace .site-nav-inner {
  min-height: 52px;
  padding: 6px 20px;
}
body.in-workspace .site-nav .brand,
body.in-workspace .site-nav #themeToggleBtn {
  display: none;
}

body.in-workspace .workbench {
  margin-left: 64px;
  width: calc(100% - 64px);
  max-width: none;
  transition: margin-left 210ms var(--ease), width 210ms var(--ease);
}
body.in-workspace.sidebar-expanded .workbench {
  margin-left: 220px;
  width: calc(100% - 220px);
}

@media (max-width: 750px) {
  body.in-workspace .studio-sidebar {
    display: none;
  }
  body.in-workspace .site-nav,
  body.in-workspace.sidebar-expanded .site-nav {
    margin-left: 0;
  }
  body.in-workspace .site-nav .brand,
  body.in-workspace .site-nav #themeToggleBtn {
    display: inline-flex;
  }
  body.in-workspace .workbench,
  body.in-workspace.sidebar-expanded .workbench {
    margin-left: 0;
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Clean Transparent-to-Glass Studio Header (Suno-style seamless top fold)
   -------------------------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 500;
  width: 100%;
  margin: 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 220ms var(--ease), border-color 220ms var(--ease), backdrop-filter 220ms var(--ease);
}

body.is-scrolled:not(.in-workspace) .site-nav {
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border-bottom-color: var(--hairline);
}

.site-nav-inner {
  max-width: 1200px;
  min-height: 64px;
  margin: 0 auto;
  padding: 10px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand:hover {
  color: #ffffff;
}

.brand-emblem {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, #22232b 0%, #121217 100%);
  flex-shrink: 0;
}

.brand-name {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.song-crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 5px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hairline);
  min-width: 0;
  max-width: 270px;
}

.song-crumb-back {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-secondary);
  background: rgba(255, 255, 255, 0.06);
}
.song-crumb-back:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.14);
}

.song-crumb-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song-crumb-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--sonic-bright);
  padding-left: 6px;
  border-left: 1px solid var(--hairline);
  flex-shrink: 0;
}

/* Primary Suite Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 3px;
}

.nav-suite-wrap {
  position: relative;
}

.nav-suite-trigger,
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding-inline: 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 550;
  color: var(--ink-secondary);
  text-decoration: none;
  white-space: nowrap;
  transition: color 140ms var(--ease), background-color 140ms var(--ease);
}

.nav-suite-trigger:hover,
.nav-link:hover,
.nav-suite-wrap.is-open .nav-suite-trigger {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.nav-link[aria-current="page"],
.nav-link.is-section-active {
  color: var(--ink);
  background: var(--segment);
  box-shadow: var(--shadow-glider);
}

.suite-chevron {
  transition: transform 180ms var(--ease-snappy);
  opacity: 0.72;
}
.nav-suite-wrap.is-open .suite-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* Floating Command Suite Popover */
.suite-popover {
  position: absolute;
  top: calc(100% + 12px);
  left: -16px;
  width: 492px;
  padding: 16px;
  border-radius: 20px;
  background: var(--popover-bg);
  border: 1px solid var(--hairline-strong);
  box-shadow: var(--shadow-popover);
  z-index: 650;
  animation: suiteFadeIn 160ms var(--ease-snappy);
}

@keyframes suiteFadeIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.suite-popover-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  padding: 2px 8px 10px;
}

.suite-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.suite-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 13px;
  text-decoration: none;
  color: var(--ink);
  transition: background-color 140ms var(--ease), transform 180ms var(--ease-snappy);
}
.suite-card:hover {
  background: var(--surface-hover);
  color: #ffffff;
}
.suite-card:active {
  transform: scale(0.98);
}

.suite-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--surface);
  color: var(--sonic-bright);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), inset 0 0 0 1px var(--hairline);
}
.suite-icon.sky { color: #93c5fd; }
.suite-icon.coral { color: #ff8b60; }
.suite-icon.indigo { color: #c4b5fd; }

.suite-card-title {
  display: block;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.25;
  color: var(--ink);
}

.suite-card-desc {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-secondary);
}

.suite-popover-foot {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--hairline);
}

.suite-foot-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 550;
  color: var(--ink-secondary);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 9px;
}
.suite-foot-link:hover {
  background: var(--surface);
  color: var(--ink);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.theme-toggle-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-secondary);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hairline);
  transition: transform 180ms var(--ease-snappy), color 140ms var(--ease), background-color 140ms var(--ease);
}
.theme-toggle-btn:hover {
  color: var(--ink);
  background: var(--surface-hover);
}
.theme-toggle-btn:active {
  transform: scale(0.92);
}

.mobile-menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hairline);
}

.mobile-nav-drawer {
  position: fixed;
  top: 72px;
  left: 16px;
  right: 16px;
  z-index: 490;
  background: var(--popover-bg);
  border: 1px solid var(--hairline-strong);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow-popover);
}

.mobile-drawer-grid {
  display: grid;
  gap: 6px;
}

/* --------------------------------------------------------------------------
   Hero Stage + 1px Perimeter Border Beam Console (libraries.dev / beUI Pro)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 136px 0 96px;
  margin-top: -64px;
  overflow: hidden;
}

.suno-hero-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(68% 72% at 14% 12%, rgba(168, 118, 22, 0.52), transparent 68%),
    radial-gradient(62% 68% at 54% 18%, rgba(168, 56, 26, 0.48), transparent 68%),
    radial-gradient(58% 66% at 86% 16%, rgba(154, 34, 98, 0.48), transparent 66%),
    linear-gradient(180deg, rgba(24, 16, 14, 0.15) 0%, var(--bg) 96%);
}
:root[data-theme="light"] .suno-hero-backdrop {
  background:
    radial-gradient(68% 72% at 14% 12%, rgba(255, 196, 112, 0.34), transparent 68%),
    radial-gradient(62% 68% at 54% 18%, rgba(255, 138, 101, 0.26), transparent 68%),
    radial-gradient(58% 66% at 86% 16%, rgba(232, 121, 174, 0.24), transparent 66%),
    linear-gradient(180deg, rgba(250, 249, 252, 0.1) 0%, var(--bg) 96%);
}

.suno-hero-wrap {
  position: relative;
  z-index: 2;
}

.hero-intro {
  max-width: 780px;
  margin: 0 auto 36px;
  text-align: center;
}

.suno-command-bar {
  max-width: 740px;
  margin: 0 auto;
  padding: 20px 22px 16px;
  border-radius: 22px;
  background: rgba(20, 16, 15, 0.72);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 28px 64px -20px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease);
}
.suno-command-bar:hover,
.suno-command-bar.drag-active {
  border-color: rgba(255, 122, 47, 0.65);
  background: rgba(28, 20, 19, 0.82);
}
:root[data-theme="light"] .suno-command-bar {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(20, 17, 29, 0.14);
  box-shadow: 0 24px 52px -18px rgba(20, 17, 29, 0.14);
}

.suno-cmd-prompt {
  padding: 2px 4px 4px;
}

.suno-cmd-placeholder {
  font-size: 16px;
  color: var(--ink-secondary);
  line-height: 1.5;
}

.suno-cmd-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.suno-cmd-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.suno-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease);
}
.suno-chip-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
}
:root[data-theme="light"] .suno-chip-btn {
  background: rgba(20, 17, 29, 0.05);
  border-color: rgba(20, 17, 29, 0.12);
  color: var(--ink);
}
:root[data-theme="light"] .suno-chip-btn:hover {
  background: rgba(20, 17, 29, 0.10);
}

.suno-cta-btn {
  height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #c91e68 0%, #cc4814 100%);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 600;
  border: none;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.55);
  transition: transform 150ms var(--ease-snappy), filter 160ms var(--ease);
}
.suno-cta-btn:hover {
  filter: brightness(1.08);
}
.suno-cta-btn:active {
  transform: scale(0.98);
}

.suno-trust-strip {
  list-style: none;
  margin: 44px auto 0;
  max-width: 1060px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--ink-secondary);
}
.suno-trust-strip li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.suno-trust-strip li > span {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  background: var(--plane);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 0 0 1px var(--hairline);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-secondary);
  margin-bottom: 20px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  outline: 3px solid rgba(52, 211, 153, 0.18);
}
body.is-audio-playing .live-dot {
  animation: livePulse 1.4s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.72; }
}

.hero-title {
  font-size: clamp(2.9rem, 6.4vw, 5.1rem);
  font-weight: 700;
  line-height: 1.01;
  letter-spacing: -0.045em;
  color: var(--ink);
  text-wrap: balance;
}

.hero-privacy-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hairline-strong);
  font-size: 12.5px;
  color: var(--ink-secondary);
}
.hero-privacy-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--needle);
  outline: 3px solid var(--needle-soft);
}
:root[data-theme="light"] .hero-privacy-chip {
  background: rgba(20, 17, 29, 0.04);
}

.hero-title-accent {
  color: var(--sonic-bright);
}

.hero-subtitle {
  margin: 20px auto 0;
  max-width: 600px;
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  line-height: 1.62;
  color: var(--ink-secondary);
}

/* Focused Drop Console (Necessary 1px Interactive Boundary) */
.sonic-console {
  position: relative;
  background: var(--console-bg);
  border: 1px solid var(--hairline-strong);
  box-shadow: var(--shadow-console);
  border-radius: 24px;
  overflow: hidden;
}

/* Console Hardware Telemetry Top Strip (Teenage Engineering × BoardUI vibe) */
.console-telemetry-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 24px;
  border-bottom: 1px solid var(--rail);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.telemetry-cluster {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.telemetry-leds {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.telemetry-leds i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2b2b35;
  display: inline-block;
}
.telemetry-leds i:first-child {
  background: var(--sonic-bright);
}
.telemetry-leds i:nth-child(2) {
  background: var(--needle);
}

.telemetry-tag {
  color: var(--ink-secondary);
}

/* Serene Centered Dropzone inside Flagship Console (v0 Double-Frame) */
.console-hero-drop {
  max-width: 860px;
  margin: 0 auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  gap: 0;
  border-radius: 28px;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease);
}
.console-hero-drop:hover {
  border-color: var(--sonic-border);
}
.console-hero-drop.drag-active {
  background-color: rgba(255, 93, 56, 0.08);
  border-color: var(--needle);
}

.drop-inner-frame {
  padding: 46px 28px 36px;
  border-bottom: 1px dashed var(--hairline-strong);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}
.console-hero-drop.drag-active .drop-inner-frame {
  border-color: var(--needle);
  background: var(--needle-soft);
}

.console-hero-drop .drop-copy-title {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.console-hero-drop .drop-copy-sub {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-secondary);
  justify-content: center;
}

.console-hero-drop .drop-cta-cluster {
  margin-top: 6px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-flow-strip {
  list-style: none;
  width: 100%;
  padding: 16px 18px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-secondary);
}
.hero-flow-strip li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-flow-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--hairline-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
}

.deck-zone-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: -4px;
}

.console-privacy-line {
  font-size: 13px;
  color: var(--ink-muted);
}

/* Upper Upload & Quick-Start Deck */
.console-drop-zone {
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: background-color 160ms var(--ease);
}
.console-drop-zone.drag-active {
  background-color: rgba(255, 138, 91, 0.07);
}

.drop-lead {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.drop-sonic-orb {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--surface);
  color: var(--ink);
}

.drop-copy-title {
  font-size: 16.5px;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.3;
}

.drop-copy-sub {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-secondary);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.fmt-tags {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.fmt-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
  background: var(--surface);
  padding: 2px 8px;
  border-radius: 5px;
}

.drop-cta-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Lower Integrated Interactive Stage */
.console-live-stage {
  border-top: 1px solid var(--hairline);
  padding: 20px 28px 24px;
}

.console-live-stage .seg-control {
  background: transparent;
}

.stage-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.stage-song-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.stage-caption {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-muted);
}

.stage-split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 22px;
  align-items: stretch;
}

.stage-lyrics-flow {
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
}

.deck-lyric-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  text-align: left;
  color: var(--ink-secondary);
  background: transparent;
  transition:
    transform 180ms var(--ease-snappy),
    background-color 140ms var(--ease),
    color 140ms var(--ease),
    box-shadow 140ms var(--ease);
}
.deck-lyric-row:hover {
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
}
.deck-lyric-row:active {
  transform: scale(0.99);
}
.deck-lyric-row.active-preview {
  background: var(--sonic-soft);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px var(--sonic-border);
}

.deck-lyric-time {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
  flex-shrink: 0;
}
.deck-lyric-row.active-preview .deck-lyric-time {
  color: var(--sonic-bright);
}

.deck-lyric-words {
  font-size: 14px;
  font-weight: 550;
  line-height: 1.35;
}

.stage-wave-band {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4px 0 4px 24px;
  border-left: 1px solid var(--hairline);
}

#heroWave {
  width: 100%;
  height: 112px;
  display: block;
}

.stage-transport-row {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.stage-play-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   Asymmetric Interactive Bento Showcase (ui.watermelon.sh × bencho.dev)
   -------------------------------------------------------------------------- */
.editorial-section {
  padding: 92px 0;
}

.sec-head {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 48px;
}
.sec-head .sec-lead {
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

.sec-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--sonic-bright);
  margin-bottom: 10px;
}

.sec-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4.8vw, 3.85rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.04;
  color: var(--ink);
  text-wrap: balance;
}

.sec-lead {
  margin-top: 14px;
  max-width: 620px;
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink-secondary);
}

/* 12-Column Hairline Bento Matrix */
.bento-matrix {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.bento-cell {
  background: linear-gradient(180deg, #131318 0%, #0e0e12 100%);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  overflow: hidden;
}

.bento-span-7 { grid-column: span 7; }
.bento-span-5 { grid-column: span 5; }
.bento-span-6 { grid-column: span 6; }

.bento-meta-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.bento-title {
  margin-top: 8px;
  font-size: 18.5px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.bento-desc {
  margin-top: 6px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

/* Bento Micro-Instrument 1: Synchronized Word-to-Transient Strip */
.bento-demo-lyrics {
  padding-top: 16px;
  border-top: 1px solid var(--rail);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo-token-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13.5px;
}

.demo-stamp-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--sonic-bright);
  background: var(--sonic-soft);
  padding: 3px 8px;
  border-radius: 6px;
}

.demo-word-chip {
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 550;
}
.demo-word-chip.muted {
  background: transparent;
  color: var(--ink-muted);
}

/* Bento Micro-Instrument 2: Bencho Interactive 3D Hardware Keycap */
.bento-keycap-bench {
  padding-top: 16px;
  border-top: 1px solid var(--rail);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.tactile-keycap {
  width: 54px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(180deg, #2b2c36 0%, #1b1c23 100%);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 5px 0 #070709,
    0 7px 14px rgba(0, 0, 0, 0.65),
    0 0 0 1px var(--hairline-strong);
  transition: transform 90ms var(--ease), box-shadow 90ms var(--ease);
}
.tactile-keycap:hover {
  background: linear-gradient(180deg, #323340 0%, #20212a 100%);
}
.tactile-keycap:active,
.tactile-keycap.is-pressed {
  transform: translateY(4px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 1px 0 #070709,
    0 2px 5px rgba(0, 0, 0, 0.6),
    0 0 0 1px var(--sonic-border);
}

.keycap-readout {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--sonic-bright);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.keycap-hint {
  display: block;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 3px;
}

/* Bento Micro-Instrument 3: Zero-Crossing Sine Oscilloscope SVG */
.bento-scope-svg {
  width: 100%;
  height: 62px;
  display: block;
  padding-top: 10px;
  border-top: 1px solid var(--rail);
}

/* Bento Micro-Instrument 4: Magnetic Multi-Clip Joiner Track */
.bento-joiner-track {
  padding-top: 16px;
  border-top: 1px solid var(--rail);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.track-seg {
  flex: 1;
  padding: 6px 10px;
  border-left: 2px solid var(--sonic);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.track-seg span:last-child {
  color: var(--sonic-bright);
}

.track-merge-node {
  color: var(--needle);
  font-weight: 700;
  padding-inline: 2px;
}

/* 2-Column Split Interactive Showcase (#how-it-works) */
.how-split {
  margin-top: 36px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 32px;
  align-items: center;
}

.how-steps-rail {
  list-style: none;
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--hairline);
}

.how-step-btn {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  text-align: left;
  color: var(--ink-secondary);
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease), color 180ms var(--ease);
}
.how-step-btn:hover {
  color: var(--ink);
  background: rgba(255, 106, 61, 0.04);
}
.how-step-btn.is-active {
  border-left-color: var(--sonic);
  background: var(--sonic-soft);
  color: var(--ink);
  border-radius: 0 14px 14px 0;
}

.how-step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  padding-top: 3px;
  flex-shrink: 0;
}
.how-step-btn.is-active .how-step-num {
  color: var(--sonic-bright);
}

.how-step-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.how-step-title {
  font-size: 16.5px;
  font-weight: 650;
  color: var(--ink);
}

.how-step-desc {
  font-size: 14px;
  line-height: 1.58;
  color: var(--ink-secondary);
}

.how-stage-panel {
  background: var(--plane);
  border: 1px solid var(--hairline-strong);
  border-radius: 20px;
  padding: 20px 24px 22px;
  box-shadow: var(--shadow-console);
  min-height: 256px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.how-stage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}

.how-stage-dots {
  display: inline-flex;
  gap: 6px;
}
.how-stage-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hairline-strong);
  display: block;
}
.how-stage-dots i:first-child { background: var(--sonic); }

.how-stage-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
}

.how-stage-view {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: heroRise 260ms var(--ease-snappy);
}

.how-file-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.how-file-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--sonic-soft);
  color: var(--sonic-bright);
}

.how-file-meta {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--ink-secondary);
}
.how-file-meta strong {
  font-size: 14.5px;
  color: var(--ink);
}

.how-status-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--live);
}

.how-meter-track {
  height: 8px;
  border-radius: 999px;
  background: var(--surface);
  overflow: hidden;
}
.how-meter-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sonic), var(--sonic-bright));
  transform-origin: left;
  animation: decodeSweep 1.6s var(--ease-snappy);
}
@keyframes decodeSweep {
  from { transform: scaleX(0.15); }
  to { transform: scaleX(1); }
}

.how-lyric-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.how-lyric-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--ink-secondary);
}
.how-lyric-item.is-selected {
  background: var(--sonic-soft);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--sonic-border);
}

.how-lyric-ts {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
}
.how-lyric-item.is-selected .how-lyric-ts {
  color: var(--sonic-bright);
}

.how-key-pill {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--sonic-bright);
}

.how-wave-box {
  position: relative;
  padding: 20px 16px;
  border-radius: 12px;
  background: var(--plane-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}

.how-wave-bars {
  gap: 5px;
}
.how-wave-bars i {
  width: 4px;
  height: 26px;
  background: var(--sonic);
}
.how-wave-bars i:nth-child(even) { height: 38px; background: var(--sonic-bright); }
.how-wave-bars i:nth-child(3n) { height: 18px; opacity: 0.65; }

.how-wave-needle {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 34%;
  width: 2px;
  background: var(--needle);
  animation: needleSweep 2.6s linear infinite;
}

.how-export-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.how-export-pill {
  font-size: 12.5px;
  font-weight: 650;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--pearl);
  color: var(--ink-on-pearl);
}

.how-stage-foot {
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
}

.how-try-link {
  color: var(--sonic-bright);
  text-decoration: none;
  font-weight: 600;
}
.how-try-link:hover {
  text-decoration: underline;
}

.wb-shortcut-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  color: var(--ink-muted);
}
.wb-shortcut-bar span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

@media (max-width: 860px) {
  .how-split {
    grid-template-columns: 1fr;
  }
}
.mini-scope-bars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.mini-scope-bars i {
  display: block;
  width: 2.5px;
  border-radius: 999px;
  background: var(--sonic-bright);
}
.mini-scope-bars i:nth-child(1) { height: 7px; opacity: 0.4; }
.mini-scope-bars i:nth-child(2) { height: 14px; }
.mini-scope-bars i:nth-child(3) { height: 20px; }
.mini-scope-bars i:nth-child(4) { height: 12px; }
.mini-scope-bars i:nth-child(5) { height: 18px; }
.mini-scope-bars i:nth-child(6) { height: 22px; }
.mini-scope-bars i:nth-child(7) { height: 15px; }
.mini-scope-bars i:nth-child(8) { height: 19px; }
.mini-scope-bars i:nth-child(9) { height: 11px; }
.mini-scope-bars i:nth-child(10) { height: 7px; opacity: 0.4; }

.mini-scope-needle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 6px;
  width: 2px;
  border-radius: 2px;
  background: var(--needle);
  animation: needleSweep 2.4s linear infinite;
}

@keyframes needleSweep {
  0% { transform: translateX(0); opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { transform: translateX(46px); opacity: 0; }
}

/* Hero Entrance, Card Hover & Scroll Reveal Motion */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-title {
  animation: heroRise 480ms var(--ease-snappy) both;
}
.hero-subtitle {
  animation: heroRise 520ms var(--ease-snappy) 70ms both;
}
.sonic-console {
  animation: heroRise 560ms var(--ease-snappy) 140ms both;
}

.sonic-console:hover .drop-sonic-orb svg {
  transform: translateY(-2px);
}
.drop-sonic-orb svg {
  transition: transform 240ms var(--ease-snappy);
}

.example-card,
.pricing-card {
  transition: transform 240ms var(--ease-snappy), border-color 220ms var(--ease);
}
.example-card:hover,
.pricing-card:hover {
  transform: translateY(-3px);
  border-color: var(--sonic-border);
}

.theme-toggle-btn.is-spinning svg {
  animation: themeSpin 340ms var(--ease-snappy);
}
@keyframes themeSpin {
  from { transform: rotate(-90deg) scale(0.8); opacity: 0.5; }
  to { transform: rotate(0deg) scale(1); opacity: 1; }
}

[data-reveal].is-pending {
  opacity: 0;
  transform: translateY(14px);
}
[data-reveal] {
  transition: opacity 460ms var(--ease-snappy), transform 460ms var(--ease-snappy);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-title,
  .hero-subtitle,
  .sonic-console,
  .eq-bars i,
  .lyric-sweep-line,
  .mini-scope-needle,
  .theme-toggle-btn.is-spinning svg {
    animation: none !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.flow-step-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-muted);
}

.flow-step-title {
  font-size: 16.5px;
  font-weight: 650;
  color: var(--ink);
}

.flow-step-body {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

/* Spec DL (Used on /audio-trimmer/) */
.spec-dl {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.spec-row {
  padding: 22px 24px;
  border-radius: 18px;
  background: var(--plane);
  border: 1px solid var(--hairline);
}

.spec-term {
  font-size: 16px;
  font-weight: 650;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.spec-term svg {
  color: var(--sonic-bright);
  flex-shrink: 0;
}

.spec-detail {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

/* Clean Hairline FAQ */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: start;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--plane);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 18px 22px;
}

.faq-q {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.faq-q::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  color: var(--ink-muted);
  flex-shrink: 0;
  transition: transform 180ms var(--ease-snappy), color 160ms var(--ease);
}
.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--sonic-bright);
}

.faq-a {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-secondary);
}

/* Asymmetric Bento Examples Showcase (Watermelon × Bencho × BoardUI × beUI) */
.examples-bento {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.ex-span-7 { grid-column: span 7; }
.ex-span-5 { grid-column: span 5; }
.ex-span-12 { grid-column: span 12; }

.example-card {
  background: var(--plane);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.ex-wide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 28px;
}

.ex-visual-span {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
}

.ex-span-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--sonic-soft);
  font-size: 13.5px;
  color: var(--ink);
}

.ex-ts {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--sonic-bright);
  flex-shrink: 0;
}

.ex-words {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ex-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-secondary);
  flex-shrink: 0;
}

.ex-tactile-bench {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
}

.ex-foot {
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ex-spec-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
}

.ex-joiner-rail {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ex-clip-node {
  flex: 1;
  min-width: 130px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ex-clip-node.is-output {
  background: var(--sonic-soft);
  box-shadow: inset 0 0 0 1px var(--sonic-border);
}

.ex-clip-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.ex-clip-dur {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--sonic-bright);
}

.ex-join-op {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--needle);
}

.example-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--sonic-bright);
}

.example-title {
  margin-top: 6px;
  font-size: 17px;
  font-weight: 650;
  color: var(--ink);
}

.example-desc {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.example-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.example-link:hover {
  color: var(--sonic-bright);
}

.suno-art-card {
  gap: 18px;
}

.suno-card-art {
  position: relative;
  border-radius: 16px;
  padding: 18px;
  min-height: 186px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  overflow: hidden;
}

.suno-card-art.art-sunset {
  background: linear-gradient(135deg, #8a5116 0%, #7d2d1d 46%, #5c193f 84%, #1f1419 100%);
}

.suno-card-art.art-plum {
  background: linear-gradient(135deg, #4f1d7a 0%, #7b2248 52%, #2a1829 100%);
}

.suno-card-art .pill-toggle[aria-pressed="true"] {
  background: rgba(14, 11, 16, 0.78);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}

.suno-art-play {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.suno-art-lyrics {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.suno-art-line {
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(16, 12, 14, 0.56);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 500;
}

.suno-art-bench {
  background: transparent;
  border: none;
  padding: 0;
}

.suno-art-pills {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.suno-glass-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(12, 10, 14, 0.62);
  color: #f5f4f8;
  font-family: var(--font-mono);
  font-size: 12px;
}

.pricing-grid {
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 940px;
}

.pricing-card {
  background: var(--plane);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.pricing-card.featured {
  border-color: var(--hairline-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.pricing-tier {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sonic-bright);
}

.pricing-price {
  margin-top: 8px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.pricing-price span {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
}

.pricing-list {
  list-style: none;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14px;
  color: var(--ink-secondary);
}
.pricing-list li::before {
  content: "\2713";
  color: var(--live);
  font-weight: 700;
  margin-right: 9px;
}

/* Iconic Studio Footer (Watermelon UI × BoardUI × beUI Pro) */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--rail);
  padding: 52px 0 28px;
  font-size: 13.5px;
  color: var(--ink-muted);
  overflow: hidden;
}

.footer-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding-bottom: 32px;
}

.footer-brand-desc {
  margin-top: 12px;
  max-width: 280px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.footer-status-pill {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--plane);
  border: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-secondary);
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 14px;
}

.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col-links a {
  color: var(--ink-secondary);
  text-decoration: none;
  width: fit-content;
}
.footer-col-links a:hover {
  color: var(--sonic-bright);
}

/* Signature Watermelon / beUI Pro Oversized Subtle Wordmark */
.footer-wordmark {
  margin-top: 12px;
  font-size: clamp(4.2rem, 13.5vw, 10rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.88;
  text-align: center;
  user-select: none;
  pointer-events: none;
  color: var(--sonic-bright);
  opacity: 0.14;
  -webkit-mask-image: linear-gradient(180deg, #000 10%, transparent 94%);
  mask-image: linear-gradient(180deg, #000 10%, transparent 94%);
}
:root[data-theme="light"] .footer-wordmark {
  opacity: 0.11;
}

.footer-bottom {
  margin-top: 18px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-top-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-secondary);
  text-decoration: none;
}
.footer-top-link:hover {
  color: var(--sonic-bright);
}

/* --------------------------------------------------------------------------
   Full Studio Workbench (#studioContainer)
   -------------------------------------------------------------------------- */
.workbench {
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: 376px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.workbench[data-layout="waveform"] {
  grid-template-columns: minmax(0, 1fr);
}
.workbench[data-layout="waveform"] .wb-lyrics-pane {
  display: none;
}

.mobile-pane-tabs {
  display: none;
}

/* Left Pane: Synchronized Lyric Sheet */
.wb-lyrics-pane {
  background: var(--plane);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  min-height: 540px;
  max-height: calc(100vh - 96px);
  position: sticky;
  top: 80px;
}

.lyric-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 7px 11px;
  border-radius: 10px;
  background: var(--plane-deep);
  border: 1px solid var(--hairline);
  color: var(--ink-muted);
  transition: border-color 140ms var(--ease);
}
.lyric-search-wrap:focus-within {
  border-color: var(--sonic);
  color: var(--ink);
}
.lyric-search-wrap[hidden] {
  display: none;
}

.lyric-search-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.4;
}
.lyric-search-input:focus {
  outline: none;
}
.lyric-search-input::placeholder {
  color: var(--ink-muted);
}

.lyrics-pane-tip {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  color: var(--ink-muted);
  text-align: center;
}
.lyrics-pane-tip kbd {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-secondary);
}

.pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}

.pane-title {
  font-size: 14.5px;
  font-weight: 650;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pane-tools {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: nowrap;
}
.wb-lyrics-pane .pane-tools .btn-sm {
  font-size: 12px;
  padding: 6px 9px;
}

.paste-sheet {
  margin-top: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}

.sheet-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
  margin-bottom: 8px;
}

.sheet-textarea {
  width: 100%;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.55;
  resize: vertical;
}

.sheet-actions {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tap-sync-strip {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--needle-soft);
  border: 1px solid var(--needle-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  font-weight: 550;
  color: #ffd8c9;
}

.lyrics-scroll {
  margin-top: 12px;
  overflow-y: auto;
  flex: 1;
  min-height: 280px;
  padding-right: 4px;
}

.lyrics-empty {
  padding: 36px 18px;
  text-align: center;
}
.lyrics-empty-heading {
  font-size: 15px;
  font-weight: 650;
  color: var(--ink);
}
.lyrics-empty-copy {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-secondary);
}
.lyrics-empty-actions {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.lyrics-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.lyric-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 11px;
  color: var(--ink-secondary);
  transition: background-color 130ms var(--ease), color 130ms var(--ease), box-shadow 130ms var(--ease);
}
.lyric-row-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
}
.lyric-row-item.active {
  background: var(--sonic-soft);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--sonic-border);
}
.lyric-row-item.in-span {
  background: rgba(255, 138, 91, 0.065);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(255, 150, 110, 0.18);
}
.lyric-row-item.playing {
  color: var(--sonic-bright);
}

.lyric-select-btn {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  flex: 1;
  text-align: left;
  color: inherit;
}

.lyric-time-span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
  flex-shrink: 0;
}
.lyric-row-item.active .lyric-time-span,
.lyric-row-item.in-span .lyric-time-span,
.lyric-row-item.playing .lyric-time-span {
  color: var(--sonic-bright);
}

.lyric-words-text {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  word-break: break-word;
}

.lyric-row-tools {
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  flex-shrink: 0;
  transition: opacity 120ms var(--ease);
}
.lyric-row-item:hover .lyric-row-tools,
.lyric-row-item:focus-within .lyric-row-tools {
  opacity: 1;
}

.lyric-quiet-action {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--surface-hover);
  color: var(--ink-secondary);
}
.lyric-quiet-action:hover {
  color: #ffffff;
}

/* Right Pane: Precision Waveform Stage & Transport */
.wb-stage-pane {
  background: var(--plane);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.stage-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.selection-readout-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.selection-clock {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.selection-dur-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--sonic-bright);
  background: var(--sonic-soft);
  padding: 3px 9px;
  border-radius: 999px;
}

.stage-view-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.minimap-strip {
  height: 26px;
  border-radius: 8px;
  background: var(--plane-deep);
  overflow: hidden;
  cursor: pointer;
}
#minimapCanvas {
  width: 100%;
  height: 26px;
  display: block;
}

.waveform-frame {
  border-radius: 14px;
  background: var(--plane-deep);
  padding: 12px 14px 10px;
}

.waveform-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
}

#rulerCanvas {
  display: block;
  height: 24px;
  cursor: pointer;
}

.wave-canvas-box {
  position: relative;
  height: 224px;
  width: 100%;
}

#wave {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.playhead-needle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--needle);
  pointer-events: none;
  z-index: 5;
}
.playhead-needle::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--needle);
}

.wave-footer-meta {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Tier 1: Playback & Precision Trim Deck */
.transport-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 2px;
}

.transport-left,
.transport-center,
.transport-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mark-edge-btn {
  font-family: var(--font-mono);
  font-weight: 700;
  min-width: 28px;
  padding: 5px 8px;
}

/* Tier 2: Mastering & Export Dock */
.mastering-export-dock {
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.mastering-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.mastering-controls .seg-item {
  padding: 5px 8px;
  font-size: 12px;
}

.export-dock-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-left: auto;
}

.scrubber-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.scrubber-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.scrubber-pill {
  display: inline-flex;
  align-items: center;
  background: var(--plane-deep);
  box-shadow: inset 0 0 0 1px var(--hairline-strong);
  border-radius: 999px;
  padding: 2px 4px;
}

.step-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--ink-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 150ms var(--ease-snappy), background-color 120ms var(--ease);
}
.step-btn:hover {
  background: var(--surface-hover);
  color: #ffffff;
}
.step-btn:active {
  transform: scale(0.9);
}

.time-input {
  width: 64px;
  text-align: center;
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.time-input:focus {
  outline: none;
  color: var(--sonic-bright);
}

/* Mastering & Precision Options Drawer */
.audio-options-drawer {
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.option-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.option-caption {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
}

.custom-name-field {
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12.5px;
  color: var(--ink);
  width: 118px;
}
.custom-name-field:focus {
  outline: none;
  border-color: var(--sonic);
}

/* Saved Clips & Multi-Clip Joiner Tray */
.saved-clips-tray {
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}

.tray-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.clips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
}

.clip-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
}

.clip-item-select {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-width: 0;
  flex: 1;
}
.clip-item-select:hover .clip-item-title {
  color: var(--sonic-bright);
}

.clip-item-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clip-item-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-muted);
  margin-top: 3px;
}

.clip-item-btns {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Documentation, Validator & Legal Pages
   -------------------------------------------------------------------------- */
.doc-wrap {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.doc-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 18px;
}
.doc-crumb a {
  color: var(--ink-secondary);
  text-decoration: none;
}
.doc-crumb a:hover {
  color: var(--ink);
}

.doc-title {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

.doc-intro {
  margin-top: 14px;
  font-size: 16.5px;
  color: var(--ink-secondary);
}

.doc-body {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.doc-body section h2 {
  font-size: 20px;
  font-weight: 650;
  color: var(--ink);
  margin-bottom: 10px;
}

.doc-body p,
.doc-body li {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-secondary);
}

.doc-body ol,
.doc-body ul {
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.code-sample,
.validator-plane {
  margin-top: 14px;
  padding: 20px;
  border-radius: 16px;
  background: var(--plane);
  border: 1px solid var(--hairline);
}

.code-sample-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
}

.code-sample pre {
  overflow-x: auto;
}
.code-sample pre code {
  background: transparent;
  padding: 0;
  color: var(--sonic-bright);
  font-size: 13.5px;
  line-height: 1.65;
}

.validator-status {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--live);
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints (1440px Desktop, 820px Side-Pane, 390px Mobile)
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .blueprint-shell {
    border-inline: none;
  }
  .rail-rule::before,
  .rail-rule::after {
    display: none;
  }
}

@media (max-width: 1080px) {
  .nav-hide-tablet {
    display: none;
  }
}

@media (max-width: 960px) {
  .nav-hide-mid {
    display: none;
  }

  .console-drop-zone {
    padding: 22px 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  .drop-cta-cluster {
    width: 100%;
  }

  .bento-span-7,
  .bento-span-5,
  .bento-span-6 {
    grid-column: span 6;
  }

  .workbench {
    grid-template-columns: 332px minmax(0, 1fr);
    padding: 16px;
    gap: 16px;
  }
}

.how-try-link {
  color: var(--sonic-bright);
  text-decoration: none;
  font-weight: 600;
}
.how-try-link:hover {
  text-decoration: underline;
}

.wb-shortcut-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  color: var(--ink-muted);
}
.wb-shortcut-bar span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

@media (max-width: 860px) {
  .three-col-flow,
  .ex-wide,
  .pricing-grid,
  .footer-cols {
    grid-template-columns: 1fr;
  }
  .ex-span-7,
  .ex-span-5,
  .ex-span-12 {
    grid-column: span 12;
  }
  .three-col-flow li + li {
    border-left: none;
    border-top: 1px solid var(--rail);
  }
  .bento-span-7,
  .bento-span-5,
  .bento-span-6 {
    grid-column: span 12;
  }
  .spec-dl,
  .faq-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 750px) {
  .nav-links,
  .nav-right .nav-demo-desktop,
  .telemetry-hide-sm {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .hero {
    padding: 32px 0 48px;
  }

  .console-live-stage {
    padding: 18px 20px 22px;
  }

  .stage-split {
    grid-template-columns: 1fr;
  }

  .stage-wave-band {
    padding: 16px 0 0;
    border-left: none;
    border-top: 1px solid var(--hairline);
  }

  .workbench {
    grid-template-columns: 1fr;
  }

  .mobile-pane-tabs {
    display: flex;
    gap: 8px;
    background: var(--plane);
    padding: 6px;
    border-radius: 14px;
    border: 1px solid var(--hairline);
  }

  .mob-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-secondary);
  }
  .mob-tab.active {
    background: var(--segment);
    color: #ffffff;
  }

  .wb-lyrics-pane {
    position: static;
    min-height: 0;
    max-height: 360px;
  }

  .export-dock-actions {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }
  .custom-name-field {
    flex: 1;
    min-width: 120px;
  }

  .workbench[data-mob-tab="clips"] .wb-lyrics-pane {
    display: none;
  }
  .workbench[data-mob-tab="clips"] .saved-clips-tray {
    display: block !important;
  }

  .drop-cta-cluster {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ==========================================================================
   V12 — LATE SESSION LAYER
   Simple, wide, warm. One sentence, one composer, music-app imagery.
   Reference: suno.com (warm grain haze, grotesk display, ember CTA).
   This layer intentionally overrides earlier rules; keep it last.
   ========================================================================== */

html { scrollbar-color: #3a322e var(--bg); }
:root[data-theme="light"] html, :root[data-theme="light"] { scrollbar-color: #cfc4bb var(--bg); }

body {
  font-feature-settings: "ss01", "cv11";
  letter-spacing: -0.006em;
}
:root[data-theme="light"] body { background-image: none; }

::selection { background: rgba(255, 106, 61, 0.32); color: #fff; }
:root[data-theme="light"] ::selection { background: rgba(212, 71, 31, 0.2); color: var(--ink); }

::-webkit-scrollbar-thumb { background: #3a322e; }
::-webkit-scrollbar-thumb:hover { background: #4d433e; }
:root[data-theme="light"] ::-webkit-scrollbar-thumb { background: #cfc4bb; }

a { text-decoration-color: rgba(255, 154, 110, 0.4); }

:focus-visible,
.file-trigger:focus-within {
  outline: 2px solid var(--sonic-bright);
  outline-offset: 3px;
}

code {
  background: rgba(255, 240, 230, 0.07);
  color: var(--ink);
  border-radius: 6px;
  padding: 1px 6px;
}
:root[data-theme="light"] code { background: rgba(26, 20, 18, 0.06); }

kbd {
  background: rgba(255, 240, 230, 0.08);
  box-shadow: inset 0 0 0 1px var(--hairline-strong);
  border-radius: 6px;
  font-weight: 500;
  height: 22px;
  min-width: 22px;
  padding-inline: 6px;
  font-size: 12px;
}
:root[data-theme="light"] kbd {
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--hairline-strong), 0 1px 0 rgba(26, 20, 18, 0.08);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   Buttons — fewer bevels, calmer surfaces
   -------------------------------------------------------------------------- */
.btn { font-weight: 600; letter-spacing: -0.01em; }
.btn-sonic, .btn-ink { box-shadow: none; }
.btn-sonic:hover:not(:disabled), .btn-ink:hover:not(:disabled) { transform: translateY(-1px); }
.btn-glass, .btn-outline {
  background: rgba(255, 240, 230, 0.07);
  box-shadow: inset 0 0 0 1px var(--hairline-strong);
}
.btn-glass:hover:not(:disabled), .btn-outline:hover:not(:disabled) {
  background: rgba(255, 240, 230, 0.12);
  color: var(--ink);
}
:root[data-theme="light"] .btn-glass,
:root[data-theme="light"] .btn-outline { background: #fff; }
:root[data-theme="light"] .btn-glass:hover:not(:disabled) { background: var(--surface); }
.btn-ghost:hover:not(:disabled) { background: rgba(255, 240, 230, 0.07); }
:root[data-theme="light"] .btn-ghost:hover:not(:disabled) { background: rgba(26, 20, 18, 0.06); }
.btn-lg { font-size: 15px; padding: 14px 24px; }
.btn-needle { background: var(--ember); color: #fff; box-shadow: none; }

.seg-control { background: rgba(255, 240, 230, 0.05); }
:root[data-theme="light"] .seg-control { background: rgba(26, 20, 18, 0.06); }
.seg-glider { box-shadow: none; }
.seg-item { font-weight: 500; }

.pill-toggle { background: rgba(255, 240, 230, 0.06); box-shadow: none; font-weight: 500; }
:root[data-theme="light"] .pill-toggle { background: rgba(26, 20, 18, 0.06); }
.pill-toggle[aria-pressed="true"] {
  background: var(--sonic-soft);
  color: var(--sonic-bright);
  box-shadow: inset 0 0 0 1px var(--sonic-border);
}

.btn-circle-play { box-shadow: none; }

/* --------------------------------------------------------------------------
   Top navigation — floats over the hero, glass after scroll
   -------------------------------------------------------------------------- */
.site-nav-inner {
  max-width: 1320px;
  min-height: 72px;
  padding: 12px 32px;
}
.brand { gap: 10px; }
.brand:hover { color: var(--ink); }
.brand-emblem {
  width: 30px; height: 30px; border-radius: 9px;
  background: rgba(255, 240, 230, 0.08);
}
:root[data-theme="light"] .brand-emblem {
  background: rgba(26, 20, 18, 0.06);
  color: #1a1412;
  border: 1px solid rgba(26, 20, 18, 0.12);
}
.brand-name { font-size: 18px; font-weight: 600; letter-spacing: -0.035em; }

.nav-links { gap: 4px; }
.nav-suite-trigger, .nav-link {
  height: 36px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-secondary);
  padding-inline: 12px;
}
.nav-suite-trigger:hover, .nav-link:hover, .nav-suite-wrap.is-open .nav-suite-trigger {
  background: transparent;
  color: var(--ink);
}
.nav-link[aria-current="page"], .nav-link.is-section-active {
  background: transparent;
  box-shadow: none;
  color: var(--ink);
}
.nav-suite-trigger > svg:first-child { display: none; }

.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-cta {
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px;
  border-radius: 999px; background: var(--pearl); color: var(--ink-on-pearl);
  font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none;
  white-space: nowrap;
  transition: transform 220ms var(--ease-snappy), background-color 140ms var(--ease);
}
.nav-cta:hover { background: var(--pearl-hover); color: var(--ink-on-pearl); transform: translateY(-1px); }
body.in-workspace .nav-cta { display: none; }

/* Suno-style Log in / Signed-in User Pill */
.nav-account-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--hairline-strong);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 140ms var(--ease), box-shadow 140ms var(--ease);
}
.nav-account-btn:hover {
  background: rgba(255, 240, 230, 0.08);
}
:root[data-theme="light"] .nav-account-btn:hover {
  background: rgba(26, 20, 18, 0.06);
}
.nav-account-btn.is-signed-in {
  padding: 0 14px 0 6px;
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.nav-account-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ember);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
}
body.in-workspace .nav-account-btn {
  height: 34px;
  padding: 0 12px;
  font-size: 12.5px;
}
body.in-workspace .nav-account-btn.is-signed-in {
  padding: 0 11px 0 5px;
}
body.in-workspace .nav-account-avatar {
  width: 22px;
  height: 22px;
  font-size: 11px;
}

/* Right-Side Slide-Over Account & Personal Center Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 7, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 900;
}
.account-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100vw);
  background: var(--plane);
  border-left: 1px solid var(--hairline-strong);
  box-shadow: -24px 0 64px -20px rgba(0, 0, 0, 0.72);
  z-index: 950;
  display: flex;
  flex-direction: column;
  padding: 22px 24px 24px;
  overflow-y: auto;
}
.account-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hairline);
}
.account-drawer-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.account-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--ink-secondary);
}
.account-close-btn:hover {
  background: var(--surface);
  color: var(--ink);
}

.account-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 18px;
  flex: 1;
}
.account-lead {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-secondary);
}
.account-lead strong {
  color: var(--ink);
}
.account-login-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.account-field-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-secondary);
}
.account-field-input {
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--plane-deep);
  border: 1px solid var(--hairline-strong);
  font-size: 15px;
  color: var(--ink);
}
.account-field-input:focus {
  outline: none;
  border-color: var(--sonic-border);
}
.account-submit-btn {
  width: 100%;
  height: 44px;
  margin-top: 4px;
}
.account-honest-note {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-muted);
}
.account-status-msg {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--sonic-soft);
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.45;
}

.account-profile-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.account-profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ember);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  flex-shrink: 0;
}
.account-profile-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.account-profile-meta strong {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-profile-meta span {
  font-size: 12.5px;
  color: var(--ink-muted);
}

.account-credits-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--plane-deep);
}
.account-credits-label {
  display: block;
  font-size: 12.5px;
  color: var(--ink-muted);
}
.account-credits-val {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.account-tab-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.account-empty {
  padding: 28px 16px;
  text-align: center;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-secondary);
}
.account-empty p + p {
  margin-top: 6px;
  color: var(--ink-muted);
  font-size: 13px;
}

.account-list,
.account-packs,
.account-ledger {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.account-song-row,
.account-pack-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--plane-deep);
}
.account-song-info,
.account-pack-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.account-song-title,
.account-pack-info strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-song-meta,
.account-pack-info span {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
}
.account-song-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.account-subhead {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
  margin-top: 4px;
}
.account-ledger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--hairline);
}
.account-ledger-left {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.account-ledger-note {
  font-size: 13.5px;
  color: var(--ink);
}
.account-ledger-date {
  font-size: 12px;
  color: var(--ink-muted);
}
.account-ledger-delta {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.account-ledger-delta.is-pos { color: var(--live); }
.account-ledger-delta.is-neg { color: var(--sonic-bright); }

.theme-toggle-btn {
  width: 40px; height: 40px; border-radius: 999px;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--hairline-strong);
}

body.is-scrolled:not(.in-workspace) .site-nav {
  background: var(--nav-bg);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
}

/* --------------------------------------------------------------------------
   Landing shell
   -------------------------------------------------------------------------- */
.lc-landing { width: 100%; position: relative; }
.lc-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 32px; }

/* ---------- Hero ---------- */
.lc-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(660px, 100svh, 960px);
  margin-top: -72px;
  padding: 132px 24px 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(15, 13, 12, 0) 60%, var(--bg) 100%),
    linear-gradient(162deg, #4b2310 0%, #5b1d12 36%, #3c1415 66%, #18100e 100%);
}

.lc-haze { position: absolute; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.lc-haze i {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.72;
  will-change: transform;
}
.lc-haze i:nth-child(1) {
  width: 52vw; height: 52vw; max-width: 780px; max-height: 780px;
  left: -10vw; top: -18vw;
  background: #c97214;
  animation: lcDriftA 22s var(--ease) infinite alternate;
}
.lc-haze i:nth-child(2) {
  width: 44vw; height: 44vw; max-width: 660px; max-height: 660px;
  right: -10vw; top: -6vw;
  background: #a31f5f;
  animation: lcDriftB 26s var(--ease) infinite alternate;
}
.lc-haze i:nth-child(3) {
  width: 58vw; height: 34vw; max-width: 860px; max-height: 520px;
  left: 18vw; top: 20%;
  background: #b53216;
  opacity: 0.52;
  animation: lcDriftC 30s var(--ease) infinite alternate;
}
@keyframes lcDriftA { to { transform: translate3d(9vw, 6vw, 0) scale(1.08); } }
@keyframes lcDriftB { to { transform: translate3d(-10vw, 8vw, 0) scale(0.92); } }
@keyframes lcDriftC { to { transform: translate3d(-6vw, -7vw, 0) scale(1.1); } }

.lc-grain {
  position: absolute; inset: -50%; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.55;
  mix-blend-mode: overlay;
}

.lc-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 980px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lc-hero-title {
  font-size: clamp(46px, 6.6vw, 92px);
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.045em;
  color: #fff8f2;
  text-wrap: balance;
  animation: lcRise 900ms var(--ease) both;
}
.lc-rotator { white-space: nowrap; }
.lc-caret {
  display: inline-block;
  width: 3px;
  height: 0.82em;
  margin-left: 0.08em;
  vertical-align: -0.06em;
  background: currentColor;
  border-radius: 2px;
  animation: lcBlink 1.05s steps(1) infinite;
}
@keyframes lcBlink { 50% { opacity: 0; } }

.lc-hero-sub {
  margin-top: 26px;
  max-width: 34em;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.5;
  color: rgba(255, 244, 236, 0.84);
  text-wrap: pretty;
  animation: lcRise 900ms 80ms var(--ease) both;
}

@keyframes lcRise {
  from { opacity: 0; transform: translateY(18px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* ---------- Composer (the drop zone) ---------- */
.lc-composer {
  margin-top: 40px;
  width: 100%;
  max-width: 780px;
  text-align: left;
  border-radius: 24px;
  padding: 20px 16px 14px 24px;
  background: rgba(24, 16, 13, 0.5);
  border: 1px solid rgba(255, 240, 230, 0.14);
  backdrop-filter: blur(26px) saturate(1.3);
  -webkit-backdrop-filter: blur(26px) saturate(1.3);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  transition: border-color 200ms var(--ease), box-shadow 240ms var(--ease), transform 240ms var(--ease);
  animation: lcRise 900ms 160ms var(--ease) both;
}
.lc-composer:hover { border-color: rgba(255, 240, 230, 0.22); }
.lc-composer.drag-active {
  border-color: rgba(255, 154, 110, 0.7);
  box-shadow: 0 0 0 6px rgba(255, 106, 61, 0.16), 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  transform: scale(1.01);
}
.lc-composer-prompt {
  font-size: 18px;
  color: rgba(255, 244, 236, 0.62);
  padding: 2px 0 26px;
}
.lc-composer-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.lc-composer-left, .lc-composer-right { display: flex; align-items: center; gap: 8px; }
.lc-composer-hint {
  font-size: 13px;
  color: rgba(255, 244, 236, 0.6);
  margin-right: 6px;
  white-space: nowrap;
}

.lc-chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 15px;
  border-radius: 999px;
  background: rgba(255, 240, 230, 0.09);
  color: #fff4ec;
  font-size: 14px; font-weight: 500;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 140ms var(--ease), transform 200ms var(--ease-snappy);
}
.lc-chip:hover { background: rgba(255, 240, 230, 0.16); color: #fff; }
.lc-chip:active { transform: scale(0.96); }
.lc-chip-round { width: 38px; padding: 0; justify-content: center; }

.lc-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 20px;
  border-radius: 999px;
  background: var(--ember);
  color: #fff;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  white-space: nowrap; cursor: pointer; text-decoration: none;
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.7);
  transition: transform 220ms var(--ease-snappy), filter 160ms var(--ease), box-shadow 200ms var(--ease);
}
.lc-cta:hover { filter: brightness(1.08) saturate(1.05); transform: translateY(-1px); color: #fff; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.78); }
.lc-cta:active { transform: scale(0.97); }
.lc-cta-lg { height: 52px; padding: 0 28px; font-size: 16px; }

/* ---------- Floating song cards ---------- */
.lc-float {
  position: absolute;
  z-index: 1;
  width: clamp(185px, 15.5vw, 240px);
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  overflow: hidden;
  background: #0d0a09;
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.75);
  pointer-events: none;
}
.lc-float img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.92; }
.lc-float::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.78) 100%);
}
.lc-float-left { left: max(22px, calc(50% - 690px)); top: 31%; transform: rotate(-7deg); animation: lcBobL 9s ease-in-out infinite alternate; }
.lc-float-right { right: max(22px, calc(50% - 690px)); top: 27%; transform: rotate(7deg); animation: lcBobR 11s ease-in-out infinite alternate; }
@keyframes lcBobL { to { transform: rotate(-5deg) translateY(-14px); } }
@keyframes lcBobR { to { transform: rotate(9deg) translateY(12px); } }

.lc-float-play {
  position: absolute; z-index: 2; left: 50%; top: 44%;
  width: 54px; height: 54px; margin: -27px 0 0 -27px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  background: rgba(20, 14, 12, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.lc-float figcaption {
  position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 16px;
  display: flex; flex-direction: column; gap: 2px;
}
.lc-float-title { font-size: 16px; font-weight: 600; color: #fff; letter-spacing: -0.02em; }
.lc-float-meta { font-family: var(--font-mono); font-size: 12px; color: rgba(255, 244, 236, 0.75); }

/* ---------- Format strip (honest stand-in for a logo row) ---------- */
.lc-format-row {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 44px;
  list-style: none;
  display: flex; justify-content: center; gap: clamp(28px, 5vw, 72px);
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 244, 236, 0.5);
}

/* ---------- Light theme hero: peach daylight ---------- */
:root[data-theme="light"] .lc-hero {
  background:
    linear-gradient(180deg, rgba(246, 242, 238, 0) 60%, var(--bg) 100%),
    linear-gradient(170deg, #ffe2c6 0%, #ffc9b0 40%, #fbd9cf 70%, #f6f2ee 100%);
}
:root[data-theme="light"] .lc-haze i { opacity: 0.55; }
:root[data-theme="light"] .lc-grain { opacity: 0.35; mix-blend-mode: multiply; }
:root[data-theme="light"] .lc-hero-title { color: #1a1210; }
:root[data-theme="light"] .lc-hero-sub { color: #4a3a32; }
:root[data-theme="light"] .lc-composer {
  background: rgba(255, 253, 251, 0.72);
  border-color: rgba(26, 20, 18, 0.1);
  box-shadow: 0 30px 70px -34px rgba(26, 20, 18, 0.18);
}
:root[data-theme="light"] .lc-composer-prompt { color: #6b5a50; }
:root[data-theme="light"] .lc-composer-hint { color: #6b5a50; }
:root[data-theme="light"] .lc-chip { background: rgba(26, 20, 18, 0.06); color: #1a1412; }
:root[data-theme="light"] .lc-chip:hover { background: rgba(26, 20, 18, 0.11); }
:root[data-theme="light"] .lc-format-row { color: rgba(60, 35, 25, 0.55); }

/* ---------- Sections ---------- */
.lc-section { padding: 150px 0 0; position: relative; }
.lc-head { text-align: center; margin: 0 auto 72px; max-width: 860px; }
.lc-head-row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  text-align: left; max-width: none;
}
.lc-h2 {
  font-size: clamp(38px, 4.8vw, 64px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.042em;
  color: var(--ink);
  text-wrap: balance;
}
.lc-lead {
  margin: 22px auto 0;
  max-width: 36em;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-secondary);
  text-wrap: pretty;
}
.lc-link-arrow {
  font-size: 15px; font-weight: 500; color: var(--ink);
  text-decoration: none; white-space: nowrap;
  padding-bottom: 6px;
}
.lc-link-arrow span { display: inline-block; transition: transform 220ms var(--ease-snappy); }
.lc-link-arrow:hover { color: var(--ink); }
.lc-link-arrow:hover span { transform: translateX(4px); }

/* ---------- Studio preview (static illustration) ---------- */
.lc-preview {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 28px;
  padding: 28px;
  border-radius: 32px;
  background: var(--plane);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-console);
}
.lc-preview-lyrics { display: flex; flex-direction: column; gap: 4px; padding: 6px 0; }
.lc-pl {
  display: flex; gap: 14px; align-items: baseline;
  padding: 14px 16px; border-radius: 14px;
  font-size: 16px; line-height: 1.4; color: var(--ink-muted);
}
.lc-pl span { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-muted); flex-shrink: 0; }
.lc-pl.is-on { background: var(--sonic-soft); color: var(--ink); }
.lc-pl.is-on span { color: var(--sonic-bright); }

.lc-preview-stage {
  display: flex; flex-direction: column; gap: 22px;
  padding: 22px 24px;
  border-radius: 22px;
  background: var(--plane-deep);
}
.lc-preview-clock { display: flex; align-items: baseline; gap: 12px; }
.lc-preview-clock strong {
  font-family: var(--font-mono); font-weight: 500;
  font-size: clamp(20px, 2.2vw, 28px); letter-spacing: -0.02em; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.lc-preview-clock span {
  font-family: var(--font-mono); font-size: 13px; color: var(--sonic-bright);
  background: var(--sonic-soft); padding: 3px 10px; border-radius: 999px;
}
.lc-preview-wave { width: 100%; height: 190px; display: block; }
.lc-preview-wave rect { fill: #3d3531; }
.lc-preview-wave rect.is-sel { fill: url(#lcWaveSel); }
.lc-preview-wave .lc-preview-region { fill: rgba(255, 106, 61, 0.09); }
:root[data-theme="light"] .lc-preview-wave rect { fill: #d6cbc2; }
:root[data-theme="light"] .lc-preview-wave .lc-preview-region { fill: rgba(212, 71, 31, 0.08); }

.lc-preview-transport { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lc-preview-play {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--pearl); color: var(--ink-on-pearl);
}
.lc-preview-play svg { transform: translateX(1px); }
.lc-preview-pill {
  height: 34px; display: inline-flex; align-items: center; padding: 0 14px;
  border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--ink-secondary);
  background: rgba(255, 240, 230, 0.06);
}
:root[data-theme="light"] .lc-preview-pill { background: rgba(26, 20, 18, 0.06); }
.lc-preview-export {
  margin-left: auto;
  height: 38px; display: inline-flex; align-items: center; padding: 0 18px;
  border-radius: 999px; font-size: 14px; font-weight: 600;
  background: var(--pearl); color: var(--ink-on-pearl);
}

.lc-steps {
  list-style: none;
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.lc-steps.lc-steps-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.lc-steps li { padding-top: 24px; border-top: 1px solid var(--hairline-strong); }
.lc-steps h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.025em; color: var(--ink); }
.lc-steps p { margin-top: 10px; font-size: 15.5px; line-height: 1.6; color: var(--ink-secondary); max-width: 34ch; }

/* ---------- Gallery ---------- */
.lc-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.lc-tile {
  display: flex; flex-direction: column; gap: 10px;
  color: var(--ink);
}
.lc-tile-art {
  position: relative; display: block;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
  background: #120d0b;
  margin-bottom: 6px;
}
.lc-tile-cover {
  display: block; width: 100%; height: 100%;
}
.lc-tile-art img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 900ms var(--ease), filter 400ms var(--ease);
}
.lc-tile:hover .lc-tile-art img,
.lc-tile.is-playing .lc-tile-art img { transform: scale(1.045); filter: saturate(1.12); }
.lc-tile-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.56) 100%);
}
.lc-tile-play {
  position: absolute; z-index: 3; left: 20px; bottom: 20px;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: #120e0c;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.65);
  transform: translateY(6px) scale(0.95); opacity: 0.92;
  transition: transform 280ms var(--ease-snappy), opacity 200ms var(--ease), background 200ms var(--ease), color 200ms var(--ease);
}
.lc-tile-play .icon-play { transform: translateX(1px); }
.lc-tile-play .icon-pause { display: none; }
.lc-tile-play.is-playing {
  background: var(--ember);
  color: #fff;
  transform: none;
  opacity: 1;
}
.lc-tile-play.is-playing .icon-play { display: none; }
.lc-tile-play.is-playing .icon-pause { display: block; }
.lc-tile:hover .lc-tile-play,
.lc-tile-play:focus-visible,
.lc-tile.is-playing .lc-tile-play { transform: none; opacity: 1; }
.lc-tile-play:hover { transform: scale(1.06); }
.lc-tile-play:active { transform: scale(0.94); }
.lc-tile-stamp {
  position: absolute; z-index: 2; left: 16px; top: 16px; pointer-events: none;
  font-family: var(--font-mono); font-size: 12px; color: #fff;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(14, 10, 9, 0.56);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.lc-tile-link {
  display: flex; flex-direction: column; gap: 6px;
  text-decoration: none; color: var(--ink);
}
.lc-tile-link:hover { color: var(--ink); }
.lc-tile-track {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--sonic-bright);
  letter-spacing: 0.01em;
}
.lc-tile-title { font-size: 20px; font-weight: 600; letter-spacing: -0.025em; }
.lc-tile-desc { font-size: 15px; line-height: 1.6; color: var(--ink-secondary); max-width: 38ch; }
.lc-tile-cta {
  margin-top: 4px;
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  display: inline-flex; align-items: center; gap: 5px;
}
.lc-tile-cta span { display: inline-block; transition: transform 200ms var(--ease-snappy); }
.lc-tile-link:hover .lc-tile-cta span { transform: translateX(4px); }

/* ---------- Plans ---------- */
.lc-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
}
.lc-plan {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 40px;
  border-radius: 32px;
  background: var(--plane);
  border: 1px solid var(--hairline);
}
.lc-plan.is-featured {
  border-color: var(--sonic-border);
  background: linear-gradient(155deg, rgba(255, 106, 61, 0.14) 0%, rgba(240, 56, 107, 0.05) 36%, var(--plane) 78%);
}
.lc-plan-name { font-size: 16px; font-weight: 600; color: var(--ink-secondary); letter-spacing: -0.01em; }
.lc-plan-price {
  margin-top: 10px;
  font-size: 60px; font-weight: 500; letter-spacing: -0.05em; line-height: 1;
  color: var(--ink);
}
.lc-plan-price span { font-size: 16px; font-weight: 400; letter-spacing: 0; color: var(--ink-muted); margin-left: 4px; }
.lc-plan-list { list-style: none; margin: 32px 0 36px; flex: 1; }
.lc-plan-list li {
  position: relative;
  padding: 13px 0 13px 30px;
  border-top: 1px solid var(--hairline);
  font-size: 15.5px; color: var(--ink-secondary);
}
.lc-plan-list li::before {
  content: ""; position: absolute; left: 0; top: 16px;
  width: 18px; height: 18px;
  background: var(--sonic-bright);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>") center / contain no-repeat;
}
.lc-plan:not(.is-featured) .lc-plan-list li::before { background: var(--ink-muted); }
.lc-plan .btn { width: 100%; }

/* ---------- FAQ ---------- */
.lc-faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 72px;
  align-items: start;
}
.lc-faq .lc-lead { margin-left: 0; }
.lc-faq .faq-list { gap: 0; display: block; }
.lc-faq .faq-item {
  background: transparent;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--hairline-strong);
  padding: 0;
}
.lc-faq .faq-item:first-child { border-top: 1px solid var(--hairline-strong); }
.lc-faq .faq-q {
  padding: 26px 0;
  font-size: 19px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink);
  gap: 24px;
}
.lc-faq .faq-chevron { color: var(--ink-muted); transition: transform 260ms var(--ease-snappy); }
.lc-faq .faq-item[open] .faq-chevron { transform: rotate(45deg); color: var(--ink); }
.lc-faq .faq-a { border-top: none; padding: 0 48px 28px 0; }
.lc-faq .faq-a p { font-size: 16px; line-height: 1.65; color: var(--ink-secondary); }

/* ---------- Closing band ---------- */
.lc-final {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 160px auto 0;
  width: calc(100% - 64px);
  max-width: 1320px;
  border-radius: 40px;
  padding: 120px 32px;
  text-align: center;
  background: linear-gradient(160deg, #4a2410 0%, #5c1f12 45%, #2a120e 100%);
}
.lc-haze-soft i:nth-child(1) { width: 60%; height: 140%; left: -10%; top: -50%; }
.lc-haze-soft i:nth-child(2) { width: 50%; height: 130%; right: -10%; top: -20%; }
.lc-haze-soft i:nth-child(3) { width: 70%; height: 90%; left: 15%; top: 40%; }
.lc-final-title {
  font-size: clamp(40px, 5.8vw, 80px);
  font-weight: 500; line-height: 1.0; letter-spacing: -0.045em;
  color: #fff8f2;
  text-wrap: balance;
}
.lc-final-actions { margin-top: 40px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.lc-final .btn-glass { background: rgba(255, 240, 230, 0.12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 240, 230, 0.2); height: 52px; padding: 0 26px; font-size: 16px; }
.lc-final .btn-glass:hover:not(:disabled) { background: rgba(255, 240, 230, 0.2); color: #fff; }
:root[data-theme="light"] .lc-final { background: linear-gradient(160deg, #ffd9bd 0%, #ffbfa6 50%, #f7d3cb 100%); }
:root[data-theme="light"] .lc-final-title { color: #1a1210; }
:root[data-theme="light"] .lc-final .btn-glass { background: rgba(255, 255, 255, 0.6); color: #1a1412; box-shadow: inset 0 0 0 1px rgba(26, 20, 18, 0.12); }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 0;
  padding: 96px 0 40px;
  border-top: none;
  background: transparent;
}
.footer-cols {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.footer-brand-desc { margin-top: 12px; max-width: 30ch; font-size: 15px; color: var(--ink-secondary); }
.footer-col-title {
  font-family: var(--font-sans);
  font-size: 13.5px; font-weight: 500;
  text-transform: none; letter-spacing: 0;
  color: var(--ink-muted);
  margin-bottom: 14px;
}
.footer-col-links { gap: 10px; }
.footer-col-links a { font-size: 15px; color: var(--ink-secondary); text-decoration: none; }
.footer-col-links a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 72px; padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-size: 13.5px; color: var(--ink-muted);
}
.footer-top-link { color: var(--ink-secondary); text-decoration: none; }
.footer-top-link:hover { color: var(--ink); }

/* Reveal: visible by default, nudged only when JS marks it pending */
[data-reveal].is-pending { opacity: 0; transform: translateY(24px); }
[data-reveal] { transition: opacity 800ms var(--ease), transform 800ms var(--ease); }

/* --------------------------------------------------------------------------
   Secondary pages (audio-trimmer intro, docs) — inherit the calm voice
   -------------------------------------------------------------------------- */
.sec-heading {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.04;
}
.hero-title { font-family: var(--font-sans); font-weight: 500; letter-spacing: -0.045em; }
.hero-title-accent { color: inherit; background: none; -webkit-text-fill-color: currentColor; }

/* --------------------------------------------------------------------------
   Studio V2 — Full-Viewport Seamless Split + Pinned Bottom Dock
   No sidebar duplication, single ember CTA (Export), hero-sized waveform.
   -------------------------------------------------------------------------- */
body.in-workspace {
  background: var(--bg);
}

/* Top bar spans full width cleanly; no 64px sidebar offset */
body.in-workspace .studio-sidebar {
  display: none !important;
}
body.in-workspace .site-nav,
body.in-workspace.sidebar-expanded .site-nav {
  margin-left: 0;
  width: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
}
body.in-workspace .site-nav-inner {
  min-height: 56px;
  padding: 6px 20px;
  max-width: none;
}
body.in-workspace .site-nav .brand {
  display: inline-flex;
}
body.in-workspace .site-nav .brand-name {
  display: none;
}
body.in-workspace .site-nav #themeToggleBtn {
  display: inline-flex;
  width: 34px;
  height: 34px;
}

.shortcuts-wrap {
  position: relative;
  display: none;
}

/* Studio Top-Bar AI Vocal Separation & ASR Trigger + Live Progress */
.ai-studio-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.ai-analyze-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--sonic-soft);
  color: var(--sonic-bright);
  box-shadow: inset 0 0 0 1px var(--sonic-border);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 140ms var(--ease), transform 180ms var(--ease-snappy), color 140ms var(--ease);
}
.ai-analyze-btn:hover {
  background: rgba(255, 106, 61, 0.20);
  color: var(--ink);
}
.ai-analyze-btn:active {
  transform: scale(0.965);
}

.ai-progress-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 6px 10px 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 106, 61, 0.12) 0%, var(--surface) 45%, rgba(240, 56, 107, 0.08) 100%);
  box-shadow: inset 0 0 0 1px var(--sonic-border), 0 8px 24px -12px rgba(255, 106, 61, 0.45);
  font-size: 12.5px;
  color: var(--ink);
  white-space: nowrap;
  animation: aiPillGlow 2.6s ease-in-out infinite;
}
@keyframes aiPillGlow {
  0%, 100% { box-shadow: inset 0 0 0 1px var(--sonic-border), 0 8px 24px -12px rgba(255, 106, 61, 0.35); }
  50% { box-shadow: inset 0 0 0 1px rgba(255, 154, 110, 0.55), 0 8px 28px -10px rgba(240, 56, 107, 0.55); }
}
.ai-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
  flex-shrink: 0;
}
.ai-eq i {
  display: block;
  width: 2.5px;
  height: 14px;
  border-radius: 999px;
  background: var(--ember);
  transform-origin: bottom center;
  animation: aiEqDance 1.05s ease-in-out infinite;
}
.ai-eq i:nth-child(1) { animation-delay: 0ms; }
.ai-eq i:nth-child(2) { animation-delay: 160ms; }
.ai-eq i:nth-child(3) { animation-delay: 320ms; }
.ai-eq i:nth-child(4) { animation-delay: 480ms; }
@keyframes aiEqDance {
  0%, 100% { transform: scaleY(0.28); opacity: 0.72; }
  45% { transform: scaleY(1); opacity: 1; }
  75% { transform: scaleY(0.45); opacity: 0.85; }
}
.ai-progress-text {
  font-weight: 500;
  letter-spacing: -0.01em;
}
.ai-progress-track {
  position: relative;
  width: 112px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 240, 230, 0.12);
  overflow: hidden;
  flex-shrink: 0;
}
:root[data-theme="light"] .ai-progress-track {
  background: rgba(26, 20, 18, 0.12);
}
.ai-progress-fill {
  position: relative;
  display: block;
  height: 100%;
  width: 6%;
  border-radius: 999px;
  background: var(--ember);
  transition: width 360ms var(--ease);
  overflow: hidden;
}
.ai-progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.55) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: aiBarShimmer 1.5s ease-in-out infinite;
}
@keyframes aiBarShimmer {
  to { transform: translateX(180%); }
}
.ai-progress-pct {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--sonic-bright);
  font-variant-numeric: tabular-nums;
  min-width: 30px;
  text-align: right;
}
.ai-progress-elapsed {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}
@media (prefers-reduced-motion: reduce) {
  .ai-progress-pill, .ai-eq i, .ai-progress-fill::after { animation: none !important; }
}
.ai-cancel-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1;
}
.ai-cancel-btn:hover {
  background: var(--surface-hover);
  color: var(--ink);
}

.cloud-auth-popover {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 310px;
  padding: 16px;
  border-radius: 16px;
  background: var(--popover-bg);
  box-shadow: var(--shadow-popover);
  z-index: 700;
}
.cloud-auth-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.cloud-auth-sub {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-secondary);
}
.cloud-auth-form {
  margin-top: 12px;
  display: flex;
  gap: 6px;
}
.cloud-auth-input {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--plane-deep);
  border: 1px solid var(--hairline-strong);
  font-size: 13px;
  color: var(--ink);
}
.cloud-auth-input:focus {
  outline: none;
  border-color: var(--sonic-border);
}
body.in-workspace .shortcuts-wrap {
  display: inline-flex;
}
.shortcuts-btn {
  width: 34px;
  height: 34px;
  color: var(--ink-secondary);
}
.shortcuts-btn:hover,
.shortcuts-btn[aria-expanded="true"] {
  color: var(--ink);
  background: var(--surface);
}
.shortcuts-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 288px;
  padding: 16px;
  border-radius: 16px;
  background: var(--popover-bg);
  box-shadow: var(--shadow-popover);
  z-index: 700;
}
.shortcuts-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}
.shortcuts-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.shortcuts-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: var(--ink-secondary);
}

.song-crumb {
  background: rgba(255, 240, 230, 0.055);
  box-shadow: none;
  padding: 3px 12px 3px 4px;
}
:root[data-theme="light"] .song-crumb {
  background: rgba(26, 20, 18, 0.05);
}
.song-crumb-name {
  font-size: 13.5px;
  font-weight: 600;
}
.song-crumb-meta {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--ink-muted);
  border-left-color: var(--hairline-strong);
}

/* Seamless full-viewport split grid: Left Pane | Hero Waveform Stage + Bottom Dock */
body.in-workspace .workbench.studio-v2,
body.in-workspace.sidebar-expanded .workbench.studio-v2 {
  margin-left: 0;
  width: 100%;
  max-width: none;
  padding: 0;
  gap: 0;
  flex: none;
  height: calc(100svh - 57px);
  max-height: calc(100svh - 57px);
  min-height: 520px;
  display: grid;
  grid-template-columns: 356px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
}

body.in-workspace .workbench.studio-v2[data-layout="waveform"] {
  grid-template-columns: minmax(0, 1fr);
}
body.in-workspace .workbench.studio-v2[data-layout="waveform"] .wb-lyrics-pane {
  display: none;
}

/* Left Pane: Flush flat plane separated by 1px hairline */
.studio-v2 .wb-lyrics-pane {
  grid-column: 1;
  grid-row: 1;
  position: static;
  top: auto;
  min-height: 0;
  max-height: none;
  height: 100%;
  background: var(--plane);
  border: none;
  border-right: 1px solid var(--hairline);
  border-radius: 0;
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Unified Left Pane Tab Switcher (Lyrics | Clips) */
.pane-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 3px;
  border-radius: 12px;
  background: rgba(255, 240, 230, 0.045);
  flex-shrink: 0;
}
:root[data-theme="light"] .pane-tabs {
  background: rgba(26, 20, 18, 0.05);
}
.pane-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 32px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
  transition: background-color 140ms var(--ease), color 140ms var(--ease);
}
.pane-tab:hover {
  color: var(--ink);
}
.pane-tab.active {
  background: var(--segment);
  color: var(--ink);
}
.pane-tab-count {
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 240, 230, 0.07);
  color: var(--ink-muted);
}
:root[data-theme="light"] .pane-tab-count {
  background: rgba(26, 20, 18, 0.06);
}
.pane-tab.active .pane-tab-count {
  background: var(--sonic-soft);
  color: var(--sonic-bright);
}
@keyframes lcTabPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); background: var(--sonic-soft); color: var(--sonic-bright); }
  100% { transform: scale(1); }
}
.pane-tab.is-pulsing {
  animation: lcTabPulse 480ms var(--ease-snappy);
}

/* Tab bodies inside left pane */
.pane-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  margin-top: 12px;
}
.studio-v2[data-mob-tab="lyrics"] .pane-body-clips { display: none; }
.studio-v2[data-mob-tab="clips"] .pane-body-lyrics { display: none; }

.pane-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-shrink: 0;
}
.pane-toolbar-left,
.pane-toolbar-right {
  display: flex;
  align-items: center;
  gap: 4px;
}
.pane-toolbar .btn-sm {
  font-size: 12.5px;
  padding: 6px 10px;
}

.tap-sync-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.tap-sync-strip {
  color: var(--ink);
  border-radius: 12px;
  margin-top: 10px;
  padding: 10px 12px;
}

.lyric-search-wrap {
  margin: 10px 0 0;
  border: none;
  border-radius: 10px;
  padding: 8px 12px;
  background: rgba(255, 240, 230, 0.045);
  flex-shrink: 0;
}
:root[data-theme="light"] .lyric-search-wrap {
  background: rgba(26, 20, 18, 0.045);
}
.lyric-search-wrap:focus-within {
  box-shadow: inset 0 0 0 1px var(--sonic-border);
}
.lyric-search-input {
  font-size: 13.5px;
}

.studio-v2 .lyrics-scroll {
  margin-top: 10px;
  min-height: 0;
  flex: 1;
  padding: 0 2px 4px 0;
}
.lyrics-list { gap: 2px; }
.lyric-row-item { padding: 10px 12px; border-radius: 12px; }
.lyric-row-item:hover { background: rgba(255, 240, 230, 0.045); }
:root[data-theme="light"] .lyric-row-item:hover { background: rgba(26, 20, 18, 0.04); }
.lyric-row-item.active { background: var(--sonic-soft); box-shadow: none; }
.lyric-row-item.in-span { background: rgba(255, 106, 61, 0.07); box-shadow: none; }
.lyric-words-text { font-size: 15px; line-height: 1.42; letter-spacing: -0.01em; }
.lyric-time-span { font-size: 12px; }
.lyrics-pane-tip {
  border-top: 1px solid var(--hairline);
  margin-top: 8px;
  padding-top: 10px;
  font-size: 12px;
  flex-shrink: 0;
}
.lyrics-pane-tip kbd {
  font-family: var(--font-mono);
  background: rgba(255, 240, 230, 0.06);
  border: none;
  box-shadow: inset 0 0 0 1px var(--hairline-strong);
}
.lyrics-empty-heading {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Clips tab body inside left pane */
.studio-v2 .saved-clips-tray {
  padding-top: 0;
  border-top: none;
}
.clips-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
}
.clips-pane-meta {
  font-size: 12.5px;
  color: var(--ink-muted);
}
.clips-pane-meta strong {
  font-family: var(--font-mono);
  color: var(--ink);
}
.studio-v2 .clips-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding-right: 2px;
}
.clip-item-row {
  background: rgba(255, 240, 230, 0.045);
  border-radius: 12px;
  padding: 10px 12px;
}
:root[data-theme="light"] .clip-item-row {
  background: rgba(26, 20, 18, 0.04);
}
.clip-item-meta { font-size: 12px; }

/* Right Pane: Flush Hero Waveform Stage */
.studio-v2 .wb-stage-pane {
  grid-column: 2;
  grid-row: 1;
  background: var(--bg);
  border: none;
  border-radius: 0;
  padding: 18px 28px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
body.in-workspace .workbench.studio-v2[data-layout="waveform"] .wb-stage-pane {
  grid-column: 1;
}

.stage-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.stage-panel-toggle {
  padding: 6px 10px;
  font-size: 12.5px;
}
.stage-sep {
  width: 1px;
  height: 16px;
  background: var(--hairline-strong);
}

/* Inline editable clip title in stage top bar */
.stage-clip-title {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  width: clamp(130px, 14vw, 180px);
  transition: background-color 140ms var(--ease), border-color 140ms var(--ease);
}
.stage-clip-title::placeholder {
  color: var(--ink-muted);
  font-weight: 500;
}
.stage-clip-title:hover {
  background: rgba(255, 240, 230, 0.04);
}
:root[data-theme="light"] .stage-clip-title:hover {
  background: rgba(26, 20, 18, 0.04);
}
.stage-clip-title:focus {
  outline: none;
  background: var(--plane);
  border-color: var(--sonic-border);
}

.selection-dur-tag {
  font-weight: 500;
  font-size: 12.5px;
  padding: 4px 10px;
}

.minimap-strip {
  background: var(--plane);
  border-radius: 10px;
  flex-shrink: 0;
}

/* Hero Waveform fills all available vertical stage space */
.studio-v2 .waveform-frame {
  flex: 1 1 0%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  background: var(--plane-deep);
  border: 1px solid var(--hairline);
  padding: 14px 18px 12px;
}
:root[data-theme="light"] .studio-v2 .waveform-frame {
  background: #f5efe9;
}
.studio-v2 .waveform-scroll {
  flex: 1 1 0%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.studio-v2 #rulerCanvas {
  flex-shrink: 0;
}
.studio-v2 .wave-canvas-box {
  flex: 1 1 0%;
  height: 0;
  min-height: 180px;
  position: relative;
}
.studio-v2 #wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.playhead-needle {
  width: 2px;
  background: var(--needle);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}
.playhead-needle::before {
  background: var(--needle);
}
.wave-footer-meta {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
}
.wave-hover-readout {
  color: var(--sonic-bright);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 60%;
  text-align: center;
}

/* Pinned Full-Width Bottom Transport & Export Dock */
.studio-dock {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 24px;
  background: var(--plane);
  border-top: 1px solid var(--hairline);
  z-index: 20;
}
.dock-transport,
.dock-trim,
.dock-export {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.dock-transport .btn-circle-play.lg {
  width: 46px;
  height: 46px;
}
.dock-transport .btn-circle-play.lg svg {
  width: 18px;
  height: 18px;
}

.scrubber-label {
  font-family: var(--font-sans);
  text-transform: none;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-muted);
}
.scrubber-pill {
  background: rgba(255, 240, 230, 0.05);
  box-shadow: inset 0 0 0 1px transparent;
  padding: 3px 4px;
  transition: box-shadow 220ms var(--ease), background-color 220ms var(--ease);
}
:root[data-theme="light"] .scrubber-pill {
  background: rgba(26, 20, 18, 0.05);
}
@keyframes lcScrubberPulse {
  0% { box-shadow: inset 0 0 0 1px var(--sonic-border); background: var(--sonic-soft); }
  100% { box-shadow: inset 0 0 0 1px transparent; }
}
.scrubber-pill.is-nudged {
  animation: lcScrubberPulse 520ms var(--ease);
}
.time-input {
  font-size: 13px;
  width: 68px;
}
.step-btn:hover {
  background: rgba(255, 240, 230, 0.1);
  color: var(--ink);
}
:root[data-theme="light"] .step-btn:hover {
  background: rgba(26, 20, 18, 0.08);
}

/* Progressive Disclosure Finish Popover (upward-anchored) */
.finish-popover-wrap {
  position: relative;
}
.finish-summary-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  padding: 7px 11px;
  color: var(--ink-secondary);
}
.finish-summary-btn[aria-expanded="true"] {
  background: var(--surface-hover);
  color: var(--ink);
}
.finish-caret {
  transition: transform 180ms var(--ease-snappy);
  opacity: 0.72;
}
.finish-summary-btn[aria-expanded="true"] .finish-caret {
  transform: rotate(180deg);
  opacity: 1;
}
.finish-popover {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  min-width: 318px;
  padding: 16px;
  border-radius: 18px;
  background: var(--popover-bg);
  box-shadow: var(--shadow-popover);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 650;
}
.finish-popover-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.finish-popover .seg-item {
  padding: 5px 9px;
  font-size: 12px;
}
.option-caption {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-secondary);
}

/* The ONE ember gradient CTA in the studio */
.dock-export-cta.btn-sonic,
#export.btn-sonic {
  background: var(--ember);
  color: #fff;
  padding: 10px 18px;
  font-size: 13.5px;
  box-shadow: 0 6px 18px -10px rgba(0, 0, 0, 0.65);
}
.dock-export-cta.btn-sonic:hover:not(:disabled),
#export.btn-sonic:hover:not(:disabled) {
  filter: brightness(1.08);
  color: #fff;
}

/* Drop veil / toasts pick up the ember */
.drop-veil { background: rgba(15, 13, 12, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.drop-veil-inner { border-color: var(--sonic-border); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .lc-float { display: none; }
  body.in-workspace .workbench.studio-v2 {
    grid-template-columns: 310px minmax(0, 1fr);
  }
  .studio-dock {
    padding: 10px 16px;
    gap: 10px;
  }
}

@media (max-width: 960px) {
  .lc-preview { grid-template-columns: 1fr; padding: 18px; border-radius: 26px; }
  .lc-preview-lyrics { order: 2; }
  .lc-steps { grid-template-columns: 1fr; gap: 0; margin-top: 48px; }
  .lc-steps li { padding: 22px 0; }
  .lc-gallery { grid-template-columns: 1fr 1fr; }
  .lc-gallery .lc-tile:last-child { grid-column: 1 / -1; }
  .lc-gallery .lc-tile:last-child .lc-tile-art { aspect-ratio: 16 / 9; }
  .lc-faq { grid-template-columns: 1fr; gap: 32px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .nav-cta { display: none; }

  /* Studio stacks naturally on tablets/phones */
  body.in-workspace .workbench.studio-v2,
  body.in-workspace.sidebar-expanded .workbench.studio-v2 {
    height: auto;
    max-height: none;
    min-height: calc(100svh - 57px);
    overflow: visible;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .studio-v2 .wb-stage-pane {
    grid-column: 1;
    grid-row: 1;
    padding: 16px 16px 14px;
    overflow: visible;
  }
  .studio-v2 .waveform-frame {
    min-height: 220px;
  }
  .studio-v2 .wave-canvas-box {
    min-height: 170px;
  }
  .studio-dock {
    grid-column: 1;
    grid-row: 2;
    position: sticky;
    bottom: 0;
    border-bottom: 1px solid var(--hairline);
    padding: 12px 16px;
  }
  .studio-v2 .wb-lyrics-pane {
    grid-column: 1;
    grid-row: 3;
    height: auto;
    max-height: 520px;
    border-right: none;
    border-top: 1px solid var(--hairline);
  }
  .studio-v2[data-mob-tab="clips"] .wb-lyrics-pane {
    display: flex;
  }
  .studio-v2[data-mob-tab="clips"] .saved-clips-tray {
    display: flex !important;
  }
  .studio-v2[data-mob-tab="lyrics"] .saved-clips-tray {
    display: none !important;
  }
  .finish-popover {
    right: auto;
    left: 0;
    min-width: 280px;
  }
}

@media (max-width: 720px) {
  .site-nav-inner { padding: 10px 18px; min-height: 64px; }
  body.in-workspace .site-nav-inner {
    flex-wrap: wrap;
    row-gap: 8px;
    padding: 8px 14px;
    min-height: 52px;
  }
  body.in-workspace .song-crumb {
    max-width: 210px;
  }
  body.in-workspace #stemSelectorBlock,
  body.in-workspace #aiStudioWrap {
    order: 3;
    width: 100%;
    justify-content: center;
  }
  body.in-workspace .shortcuts-wrap,
  body.in-workspace .mobile-menu-btn {
    display: none;
  }
  .lc-wrap { padding-inline: 20px; }
  .lc-hero { margin-top: -64px; padding: 112px 18px 112px; min-height: clamp(580px, 92svh, 760px); }
  .lc-hero-title { font-size: clamp(38px, 10.5vw, 54px); }
  .lc-composer { padding: 16px 12px 12px 16px; border-radius: 20px; }
  .lc-composer-prompt { font-size: 16px; padding-bottom: 18px; }
  .lc-composer-hint, .lc-chip-hide-sm { display: none; }
  .lc-cta { padding: 0 16px; }
  .lc-format-row { bottom: 28px; gap: 14px 20px; flex-wrap: wrap; padding-inline: 18px; font-size: 15px; }
  .lc-section { padding-top: 100px; }
  .lc-steps.lc-steps-2 { grid-template-columns: 1fr; }
  .lc-head { margin-bottom: 48px; }
  .lc-head-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .lc-lead { font-size: 16.5px; }
  .lc-preview-wave { height: 130px; }
  .lc-preview-export { margin-left: 0; }
  .lc-gallery { grid-template-columns: 1fr; gap: 40px; }
  .lc-gallery .lc-tile:last-child .lc-tile-art { aspect-ratio: 4 / 5; }
  .lc-plans { grid-template-columns: 1fr; }
  .lc-plan { padding: 28px; border-radius: 26px; }
  .lc-final { width: calc(100% - 24px); border-radius: 28px; padding: 88px 22px; margin-top: 110px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-cols > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .stage-clip-title { width: 130px; }
  .dock-trim { width: 100%; justify-content: space-between; }
  .dock-export { width: 100%; justify-content: space-between; }
  .dock-export-cta { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .lc-haze i, .lc-float, .lc-caret, .lc-hero-title, .lc-hero-sub, .lc-composer, .pane-tab.is-pulsing, .scrubber-pill.is-nudged { animation: none !important; }
  [data-reveal].is-pending { opacity: 1; transform: none; }
}

/* ==========================================================================
   UNSLOP STUDIO WORKBENCH — 9-Pass Craft Polish
   Direction: Exact, tactile, quiet-dark mastering deck; waveform is the
   single bright moment; 4px grid, nested radii (16/10/8/6), 400/500 weights.
   ========================================================================== */

/* 1. Header: 56px height, 4px spacing, flat 5-bar logo, 8px controls */
body.in-workspace .site-nav {
  background: var(--plane);
  border-bottom: 1px solid var(--hairline);
}
body.in-workspace .site-nav-inner {
  height: 56px;
  min-height: 56px;
  padding: 0 20px;
  gap: 12px;
}
body.in-workspace .nav-brand-group {
  gap: 12px;
}
body.in-workspace .brand-emblem {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}
:root[data-theme="light"] body.in-workspace .brand-emblem {
  background: transparent;
  border: none;
}
body.in-workspace .brand-name {
  font-weight: 500;
  letter-spacing: 0;
}

/* Song breadcrumb: 8px radius, quiet surface, 400/500 weight */
body.in-workspace .song-crumb {
  height: 32px;
  padding: 0 12px 0 4px;
  gap: 8px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: none;
}
body.in-workspace .song-crumb-back {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  color: var(--ink-secondary);
}
body.in-workspace .song-crumb-back:hover {
  background: var(--surface-hover);
  color: var(--ink);
}
body.in-workspace .song-crumb-name {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink);
}
body.in-workspace .song-crumb-meta {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-muted);
  padding-left: 8px;
}

/* AI Vocals & Lyrics trigger: quiet neutral chrome, accent only on waveform mark */
body.in-workspace .ai-analyze-btn {
  height: 32px;
  padding: 0 12px;
  gap: 8px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
  box-shadow: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), transform 120ms var(--ease);
}
body.in-workspace .ai-analyze-btn svg {
  color: var(--sonic-bright);
  flex-shrink: 0;
}
body.in-workspace .ai-analyze-btn:hover {
  background: var(--surface-hover);
  border-color: var(--sonic-border);
  color: var(--ink);
}
body.in-workspace .ai-analyze-btn:active {
  transform: scale(0.98);
}

/* AI progress pill: quiet surface, no pulsing shadow or hue-gradient wash */
body.in-workspace .ai-progress-pill {
  min-height: 32px;
  height: 32px;
  padding: 0 8px 0 12px;
  gap: 8px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  box-shadow: none;
  animation: none;
  font-size: 12px;
}
body.in-workspace .ai-eq i {
  background: var(--sonic);
}
body.in-workspace .ai-progress-text {
  font-weight: 500;
  letter-spacing: 0;
}
body.in-workspace .ai-progress-track {
  width: 96px;
  height: 4px;
  border-radius: 4px;
}
body.in-workspace .ai-progress-fill {
  border-radius: 4px;
  background: var(--sonic);
}
body.in-workspace .ai-progress-pct {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
body.in-workspace .ai-progress-elapsed {
  font-size: 12px;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
body.in-workspace .ai-cancel-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

/* Header right controls: uniform 32px height, 8px radius, 8px gap */
body.in-workspace .nav-right {
  gap: 8px;
}
body.in-workspace .nav-right .btn-sm,
body.in-workspace .nav-account-btn {
  height: 32px;
  padding: 0 12px;
  gap: 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: none;
  color: var(--ink-secondary);
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease);
}
body.in-workspace .nav-right .btn-sm:hover,
body.in-workspace .nav-account-btn:hover {
  background: var(--surface-hover);
  border-color: var(--hairline-strong);
  color: var(--ink);
}
body.in-workspace .theme-toggle-btn,
body.in-workspace .shortcuts-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink-secondary);
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease);
}
body.in-workspace .theme-toggle-btn:hover,
body.in-workspace .shortcuts-btn:hover,
body.in-workspace .shortcuts-btn[aria-expanded="true"] {
  background: var(--surface);
  border-color: var(--hairline);
  color: var(--ink);
}

/* 2. Full-Viewport Split Grid (4px grid proportions) */
body.in-workspace .workbench.studio-v2,
body.in-workspace.sidebar-expanded .workbench.studio-v2 {
  height: calc(100svh - 56px);
  max-height: calc(100svh - 56px);
  grid-template-columns: 336px minmax(0, 1fr);
}

/* 3. Left Pane: Lyrics & Saved Clips */
body.in-workspace .studio-v2 .wb-lyrics-pane {
  padding: 16px 16px 12px;
  background: var(--plane);
  border-right: 1px solid var(--hairline);
}

/* Nested radius: 10px outer tab bar, 2px padding -> 8px inner tab */
body.in-workspace .pane-tabs {
  padding: 2px;
  gap: 4px;
  border-radius: 10px;
  background: var(--plane-deep);
  border: 1px solid var(--hairline);
}
body.in-workspace .pane-tab {
  height: 32px;
  gap: 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-secondary);
}
body.in-workspace .pane-tab.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
body.in-workspace .pane-tab-count {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  padding: 2px 6px;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-muted);
}
body.in-workspace .pane-tab.active .pane-tab-count {
  background: rgba(255, 240, 230, 0.06);
  color: var(--ink-secondary);
}
:root[data-theme="light"] body.in-workspace .pane-tab.active .pane-tab-count {
  background: rgba(26, 20, 18, 0.06);
}
body.in-workspace .pane-tab.is-pulsing {
  animation: none;
}

/* Left toolbar & search */
body.in-workspace .pane-body {
  margin-top: 12px;
}
body.in-workspace .pane-toolbar {
  gap: 8px;
}
body.in-workspace .pane-toolbar-left,
body.in-workspace .pane-toolbar-right {
  gap: 4px;
}
body.in-workspace .pane-toolbar .btn-sm {
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}
body.in-workspace .pane-toolbar .btn-glass {
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  box-shadow: none;
  color: var(--ink);
}
body.in-workspace .pane-toolbar .btn-glass:hover {
  background: var(--surface-hover);
}
body.in-workspace .lyric-search-wrap {
  margin: 12px 0 0;
  height: 36px;
  padding: 0 12px;
  gap: 8px;
  border-radius: 8px;
  background: var(--plane-deep);
  border: 1px solid var(--hairline);
}
body.in-workspace .lyric-search-wrap:focus-within {
  border-color: var(--sonic-border);
  box-shadow: none;
}
body.in-workspace .lyric-search-input {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
}

/* Lyric list rows: 4px gap, 8px radius, crisp 2px ember rail for active/span */
body.in-workspace .studio-v2 .lyrics-scroll {
  margin-top: 12px;
  padding: 0 4px 4px 0;
}
body.in-workspace .lyrics-list {
  gap: 4px;
}
body.in-workspace .lyric-row-item {
  position: relative;
  padding: 8px 12px;
  gap: 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease);
}
body.in-workspace .lyric-select-btn {
  gap: 12px;
  width: 100%;
}
body.in-workspace .lyric-row-tools {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  padding: 2px 4px;
  border-radius: 6px;
  background: var(--plane);
  border: 1px solid var(--hairline);
  pointer-events: none;
}
body.in-workspace .lyric-row-item:hover .lyric-row-tools,
body.in-workspace .lyric-row-item:focus-within .lyric-row-tools {
  opacity: 1;
  pointer-events: auto;
}
body.in-workspace .lyric-row-item:hover {
  background: rgba(255, 240, 230, 0.04);
}
:root[data-theme="light"] body.in-workspace .lyric-row-item:hover {
  background: rgba(26, 20, 18, 0.04);
}
body.in-workspace .lyric-row-item.active,
body.in-workspace .lyric-row-item.in-span {
  background: var(--surface);
  border-color: var(--hairline);
  box-shadow: inset 2px 0 0 var(--sonic);
}
body.in-workspace .lyric-row-item.in-span:not(.active) {
  background: rgba(255, 240, 230, 0.035);
}
:root[data-theme="light"] body.in-workspace .lyric-row-item.in-span:not(.active) {
  background: rgba(26, 20, 18, 0.035);
}
body.in-workspace .lyric-time-span {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  min-width: 56px;
  color: var(--ink-muted);
}
body.in-workspace .lyric-row-item.active .lyric-time-span,
body.in-workspace .lyric-row-item.in-span .lyric-time-span {
  color: var(--sonic-bright);
}
body.in-workspace .lyric-words-text {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0;
  color: var(--ink);
}
body.in-workspace .lyrics-pane-tip {
  margin-top: 8px;
  padding-top: 12px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-muted);
}
body.in-workspace .lyrics-pane-tip kbd,
body.in-workspace .shortcuts-list kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  box-shadow: none;
  color: var(--ink-secondary);
}
body.in-workspace .lyrics-empty-heading {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
}
body.in-workspace .lyrics-empty-copy {
  font-size: 13px;
  line-height: 20px;
  letter-spacing: 0;
}
body.in-workspace .clip-item-row {
  border-radius: 8px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--hairline);
}

/* 4. Right Pane: Hero Waveform Stage */
body.in-workspace .studio-v2 .wb-stage-pane {
  padding: 16px 24px;
  gap: 12px;
}
body.in-workspace .stage-header-bar {
  gap: 12px;
  min-height: 32px;
}
body.in-workspace .selection-readout-group,
body.in-workspace .stage-view-tools {
  gap: 8px;
}
body.in-workspace .stage-panel-toggle,
body.in-workspace .stage-view-tools .btn-sm {
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}
body.in-workspace .stage-clip-title {
  height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink);
}
body.in-workspace .stage-clip-title::placeholder {
  font-weight: 400;
  color: var(--ink-muted);
}

/* Quiet mono duration tag (6px radius, no glowing orange pill) */
body.in-workspace .selection-dur-tag {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  color: var(--ink-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  box-shadow: none;
}

/* Segmented controls: 8px outer with 2px padding -> 6px inner active item */
body.in-workspace .seg-control {
  padding: 2px;
  gap: 2px;
  border-radius: 8px;
  background: var(--plane-deep);
  border: 1px solid var(--hairline);
  box-shadow: none;
}
body.in-workspace .seg-glider {
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  box-shadow: none;
}
body.in-workspace .seg-item {
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  color: var(--ink-secondary);
}
body.in-workspace .seg-control:not(:has(.seg-glider)) .seg-item.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--hairline-strong);
}

/* Hero Waveform Frame: 16px outer radius, 16px padding */
body.in-workspace .studio-v2 .waveform-frame {
  border-radius: 16px;
  padding: 16px 16px 12px;
  background: var(--plane-deep);
  border: 1px solid var(--hairline);
}
body.in-workspace .wave-footer-meta {
  margin-top: 12px;
  gap: 16px;
}
body.in-workspace .mono-time {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

/* 5. Bottom Transport & Export Dock: 64px rhythm, 8px controls, pearl primary CTA */
body.in-workspace .studio-dock {
  min-height: 64px;
  padding: 12px 24px;
  gap: 16px;
  background: var(--plane);
  border-top: 1px solid var(--hairline);
}
body.in-workspace .dock-transport,
body.in-workspace .dock-trim,
body.in-workspace .dock-export {
  gap: 8px;
}
body.in-workspace .dock-trim {
  gap: 16px;
}

/* Hardware signature: Play button remains a crisp 40px circle */
body.in-workspace .dock-transport .btn-circle-play.lg {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pearl);
  color: var(--ink-on-pearl);
  box-shadow: none;
  transition: opacity 150ms var(--ease), transform 120ms var(--ease);
}
body.in-workspace .dock-transport .btn-circle-play.lg:hover:not(:disabled) {
  opacity: 0.92;
  transform: none;
}
body.in-workspace .dock-transport .btn-circle-play.lg:active:not(:disabled) {
  transform: scale(0.96);
}
body.in-workspace .dock-transport .btn-circle-play.lg svg {
  width: 16px;
  height: 16px;
}

body.in-workspace .studio-dock .btn-sm,
body.in-workspace .studio-dock .pill-toggle {
  height: 32px;
  padding: 0 12px;
  gap: 6px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}
body.in-workspace .studio-dock .pill-toggle {
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: none;
  color: var(--ink-secondary);
}
body.in-workspace .studio-dock .pill-toggle:hover {
  background: var(--surface-hover);
  border-color: var(--hairline-strong);
  color: var(--ink);
}
body.in-workspace .studio-dock .pill-toggle[aria-pressed="true"] {
  background: var(--surface);
  border-color: var(--sonic-border);
  color: var(--sonic-bright);
  box-shadow: none;
}

/* Timecode scrubbers: 8px outer container, 6px inner +/- buttons */
body.in-workspace .scrubber-group {
  gap: 6px;
}
body.in-workspace .scrubber-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-muted);
}
body.in-workspace .scrubber-pill {
  height: 32px;
  padding: 2px;
  gap: 2px;
  border-radius: 8px;
  background: var(--plane-deep);
  border: 1px solid var(--hairline);
  box-shadow: none;
}
body.in-workspace .scrubber-pill:focus-within {
  border-color: var(--sonic-border);
}
body.in-workspace .step-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 400;
}
body.in-workspace .time-input {
  width: 68px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
body.in-workspace .mark-edge-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--hairline);
  color: var(--ink-secondary);
}
body.in-workspace .mark-edge-btn:hover:not(:disabled) {
  border-color: var(--hairline-strong);
  color: var(--ink);
}

/* Finish summary & popovers: 8px trigger, 12px popover */
body.in-workspace .finish-summary-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  padding: 0 10px;
}
body.in-workspace .finish-popover,
body.in-workspace .shortcuts-popover,
body.in-workspace .cloud-auth-popover {
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--hairline-strong);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.55);
}
body.in-workspace .shortcuts-title,
body.in-workspace .cloud-auth-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}
body.in-workspace .cloud-auth-input {
  height: 36px;
  border-radius: 8px;
  padding: 0 12px;
}

/* Save & Export buttons: quiet secondary + crisp pearl primary (no pink-orange gradient glow) */
body.in-workspace #addClip.btn-glass {
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  color: var(--ink);
  box-shadow: none;
}
body.in-workspace #addClip.btn-glass:hover:not(:disabled) {
  background: var(--surface-hover);
}
body.in-workspace .dock-export-cta.btn-sonic,
body.in-workspace #export.btn-sonic {
  height: 36px;
  padding: 0 16px;
  gap: 8px;
  border-radius: 8px;
  background: var(--pearl);
  color: var(--ink-on-pearl);
  border: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  box-shadow: none;
  transition: opacity 150ms var(--ease), transform 120ms var(--ease);
}
body.in-workspace .dock-export-cta.btn-sonic:hover:not(:disabled),
body.in-workspace #export.btn-sonic:hover:not(:disabled) {
  filter: none;
  opacity: 0.92;
  color: var(--ink-on-pearl);
}
body.in-workspace .dock-export-cta.btn-sonic:active:not(:disabled),
body.in-workspace #export.btn-sonic:active:not(:disabled) {
  transform: scale(0.98);
}
:root[data-theme="light"] body.in-workspace .dock-export-cta.btn-sonic,
:root[data-theme="light"] body.in-workspace #export.btn-sonic {
  background: #1a1412;
  color: #fff8f2;
}
:root[data-theme="light"] body.in-workspace .dock-export-cta.btn-sonic:hover:not(:disabled),
:root[data-theme="light"] body.in-workspace #export.btn-sonic:hover:not(:disabled) {
  color: #fff8f2;
}

/* Focus visible ring inside palette */
body.in-workspace button:focus-visible,
body.in-workspace input:focus-visible,
body.in-workspace a:focus-visible {
  outline: 2px solid var(--sonic-border);
  outline-offset: 2px;
}

/* Desktop/mobile lyric tip toggle & consistent 8px buttons inside studio panes */
body.in-workspace .lyrics-pane-tip .tip-mobile {
  display: none;
}
body.in-workspace .pane-body .btn-sonic,
body.in-workspace .sheet-actions .btn-sonic {
  border-radius: 8px;
  height: 32px;
  padding: 0 14px;
}

@media (max-width: 1180px) and (min-width: 961px) {
  body.in-workspace .workbench.studio-v2,
  body.in-workspace.sidebar-expanded .workbench.studio-v2 {
    grid-template-columns: 304px minmax(0, 1fr);
  }
  body.in-workspace .studio-dock {
    padding: 12px 16px;
    gap: 12px;
  }
}

/* ==========================================================================
   MOBILE & TABLET STUDIO WORKBENCH RESPONSIVE (<= 960px / <= 720px)
   Overrides UNSLOP desktop fixed-split rules cleanly with zero overlap.
   ========================================================================== */
@media (max-width: 960px) {
  body.in-workspace {
    overflow-y: auto;
    overflow-x: clip;
    height: auto;
    min-height: 100svh;
  }

  body.in-workspace .site-nav {
    position: sticky;
    top: 0;
    z-index: 45;
  }

  body.in-workspace .site-nav-inner {
    height: auto;
    min-height: 52px;
    padding: 8px 14px;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
  }

  body.in-workspace .nav-brand-group {
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px;
  }

  body.in-workspace .song-crumb {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
  }

  body.in-workspace .song-crumb-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.in-workspace .nav-right {
    flex-shrink: 0;
    gap: 6px;
  }

  body.in-workspace .shortcuts-wrap,
  body.in-workspace .mobile-menu-btn,
  body.in-workspace .nav-cta {
    display: none;
  }

  body.in-workspace #aiStudioWrap:not([hidden]),
  body.in-workspace #stemSelectorBlock:not([hidden]) {
    order: 10;
    flex: 1 0 100%;
    width: 100%;
    margin-top: 2px;
    padding-top: 8px;
    border-top: 1px solid var(--hairline);
    justify-content: center;
  }

  body.in-workspace #aiStudioWrap:not([hidden]) .ai-analyze-btn {
    width: 100%;
    justify-content: center;
    height: 34px;
  }

  body.in-workspace #aiStudioWrap:not([hidden]) .ai-progress-pill:not([hidden]) {
    width: 100%;
    justify-content: space-between;
  }

  body.in-workspace #stemSelectorBlock:not([hidden]) {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: none;
    padding-top: 2px;
  }

  body.in-workspace .cloud-auth-popover {
    left: 0;
    right: 0;
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  /* Single-column natural flow: Stage -> Controls Dock -> Lyrics/Clips */
  body.in-workspace .workbench.studio-v2,
  body.in-workspace.sidebar-expanded .workbench.studio-v2 {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    max-height: none;
    min-height: calc(100svh - 56px);
    overflow: visible;
  }

  body.in-workspace .studio-v2 .wb-stage-pane {
    order: 1;
    width: 100%;
    flex: 0 0 auto;
    padding: 14px 16px 12px;
    gap: 10px;
    overflow: visible;
  }

  body.in-workspace .studio-v2 .waveform-frame {
    min-height: 204px;
    padding: 12px 12px 10px;
    border-radius: 12px;
  }

  body.in-workspace .studio-v2 .wave-canvas-box {
    min-height: 152px;
    height: 160px;
  }

  body.in-workspace .studio-dock {
    order: 2;
    position: static;
    width: 100%;
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
    padding: 12px 16px;
    gap: 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
  }

  body.in-workspace .studio-v2 .wb-lyrics-pane {
    order: 3;
    width: 100%;
    flex: 0 0 auto;
    height: auto;
    max-height: none;
    padding: 14px 16px 28px;
    border-right: none;
    border-top: none;
    overflow: visible;
  }

  body.in-workspace .studio-v2 .lyrics-scroll {
    max-height: 380px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.in-workspace .stage-panel-toggle,
  body.in-workspace .stage-sep {
    display: none;
  }

  body.in-workspace .stage-header-bar {
    flex-wrap: wrap;
    gap: 10px;
  }

  body.in-workspace .selection-readout-group {
    flex: 1 1 auto;
    min-width: 0;
  }

  body.in-workspace .stage-view-tools {
    margin-left: auto;
  }

  body.in-workspace .stage-clip-title {
    flex: 1 1 140px;
    min-width: 0;
    width: auto;
    background: var(--surface);
    border: 1px solid var(--hairline);
  }

  body.in-workspace .dock-transport {
    width: 100%;
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  body.in-workspace .dock-transport #speedGroup {
    margin-left: auto;
  }

  body.in-workspace .dock-trim {
    width: 100%;
    max-width: 540px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  body.in-workspace .scrubber-group {
    width: 100%;
    min-width: 0;
    gap: 6px;
  }

  body.in-workspace .scrubber-pill {
    flex: 1 1 auto;
    min-width: 0;
    height: 36px;
    justify-content: space-between;
  }

  body.in-workspace .time-input {
    width: 100%;
    min-width: 48px;
    max-width: 72px;
  }

  /* Touch-friendly lyric rows: full-row tap target + visible Span/Edit on active lines */
  body.in-workspace .lyrics-pane-tip .tip-desktop {
    display: none;
  }
  body.in-workspace .lyrics-pane-tip .tip-mobile {
    display: inline;
  }
  body.in-workspace .lyric-row-item {
    display: flex;
    align-items: center;
    padding: 0 6px 0 0;
    min-height: 44px;
  }
  body.in-workspace .lyric-select-btn {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 44px;
    padding: 10px 10px;
    display: flex;
    align-items: center;
  }
  body.in-workspace .lyric-row-item.active .lyric-row-tools,
  body.in-workspace .lyric-row-item.in-span .lyric-row-tools {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    flex-shrink: 0;
    margin-left: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    padding: 0;
  }
  body.in-workspace .lyric-row-tools .lyric-tool-btn {
    min-height: 28px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 11.5px;
    background: var(--plane-deep);
    border: 1px solid var(--hairline-strong);
    color: var(--ink-secondary);
  }

  body.in-workspace .dock-export {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }

  body.in-workspace .finish-popover-wrap {
    flex: 1 1 auto;
    min-width: 0;
  }

  body.in-workspace .finish-summary-btn {
    width: 100%;
    justify-content: space-between;
  }

  body.in-workspace .finish-popover {
    left: 0;
    right: auto;
    width: min(360px, calc(100vw - 24px));
    min-width: 0;
    z-index: 40;
  }

  body.in-workspace .finish-popover-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  body.in-workspace #addClip.btn-glass {
    height: 40px;
    padding: 0 14px;
    flex: 0 0 auto;
  }

  body.in-workspace .dock-export-cta.btn-sonic,
  body.in-workspace #export.btn-sonic {
    height: 40px;
    flex: 1 1 140px;
    justify-content: center;
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  body.in-workspace .site-nav-inner {
    padding: 8px 12px;
    gap: 6px;
  }

  body.in-workspace .brand-name {
    display: none;
  }

  body.in-workspace .song-crumb {
    height: 32px;
    padding: 0 8px 0 4px;
    gap: 6px;
  }

  body.in-workspace .song-crumb-meta {
    display: none;
  }

  body.in-workspace .nav-right .btn-sm,
  body.in-workspace .nav-account-btn {
    padding: 0 10px;
    font-size: 12px;
    gap: 6px;
    white-space: nowrap;
  }

  body.in-workspace #headerUploadText {
    display: none;
  }

  body.in-workspace #headerFileTrigger {
    width: 32px;
    padding: 0;
    justify-content: center;
  }

  body.in-workspace .studio-v2 .wb-stage-pane {
    padding: 12px 12px 10px;
    gap: 8px;
  }

  body.in-workspace .stage-header-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  body.in-workspace .selection-readout-group {
    width: 100%;
    gap: 8px;
  }

  body.in-workspace .stage-view-tools {
    width: 100%;
    justify-content: space-between;
    gap: 4px;
  }

  body.in-workspace .stage-view-tools .btn-sm {
    height: 30px;
    padding: 0 8px;
    font-size: 12px;
  }

  body.in-workspace .stage-view-tools .seg-control {
    margin-left: auto;
  }

  body.in-workspace .stage-view-tools .seg-item {
    height: 26px;
    padding: 0 8px;
    font-size: 12px;
  }

  body.in-workspace .studio-v2 .waveform-frame {
    min-height: 186px;
    padding: 10px 10px 8px;
  }

  body.in-workspace .studio-v2 .wave-canvas-box {
    min-height: 138px;
    height: 144px;
  }

  body.in-workspace .studio-dock {
    padding: 12px;
    gap: 10px;
  }

  body.in-workspace .dock-transport {
    gap: 6px;
  }

  body.in-workspace .dock-transport .btn-circle-play.lg {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
  }

  body.in-workspace .dock-transport .btn-sm,
  body.in-workspace .dock-transport .pill-toggle {
    height: 32px;
    padding: 0 9px;
    font-size: 12px;
    gap: 4px;
    white-space: nowrap;
  }

  body.in-workspace .dock-transport .seg-item {
    height: 26px;
    padding: 0 7px;
    font-size: 11.5px;
  }

  body.in-workspace .dock-trim {
    max-width: none;
    gap: 6px;
  }

  body.in-workspace .scrubber-group {
    gap: 4px;
  }

  body.in-workspace .scrubber-label {
    font-size: 11px;
    min-width: 18px;
  }

  body.in-workspace .step-btn {
    width: 28px;
    height: 30px;
    flex-shrink: 0;
  }

  body.in-workspace .time-input {
    font-size: 11.5px;
    min-width: 44px;
    padding: 0 1px;
  }

  body.in-workspace .mark-edge-btn {
    width: 28px;
    height: 32px;
    flex-shrink: 0;
  }

  body.in-workspace .studio-v2 .wb-lyrics-pane {
    padding: 12px 12px 24px;
  }

  body.in-workspace .pane-toolbar {
    flex-wrap: wrap;
    gap: 6px;
  }

  body.in-workspace .lyric-time-span {
    min-width: 48px;
    font-size: 11.5px;
  }

  body.in-workspace .lyric-words-text {
    font-size: 13.5px;
  }

  body.in-workspace .account-drawer {
    width: 100%;
    max-width: 100vw;
    border-left: none;
  }
}
