/* Workbench on phones (<=767px). Loaded last. Same system as the homepage:
   black / white / greys plus one blue (#2d80fa); no all-caps chips; lists that
   show more than three songs per screen; a player you can actually scrub. */
:root{--wm-blue:#2d80fa;--wm-blue-hover:#4a92fb;--wm-line:rgba(255,255,255,.09);--wm-text:#f5f5f4;--wm-muted:#a1a1a6;--wm-faint:#6e6e73}

@media (max-width:767px){
  /* ---------- palette: one blue, no green/red/yellow ---------- */
  .studio-shell .button.primary,.studio-shell button.primary,.studio-shell .primary-button{background:var(--wm-blue)!important;border-color:var(--wm-blue)!important;color:#fff!important}
  .mobile-studio-badge{background:rgba(255,255,255,.08)!important;color:var(--wm-muted)!important;text-transform:none!important;letter-spacing:0!important}
  .task-state-icon.failed{color:var(--wm-text)!important}
  .project-track-failed-cover{background:rgba(255,255,255,.06)!important;color:var(--wm-text)!important}
  .credit-negative{color:var(--wm-text)!important}
  .credit-positive{color:var(--wm-blue)!important}
  .studio-shell .notice.warning{background:rgba(255,255,255,.04)!important;border-color:var(--wm-line)!important;color:var(--wm-muted)!important}
  .studio-shell .notice.warning svg{color:var(--wm-muted)!important}
  /* all-caps chips and eyebrows read as sentence case */
  .studio-shell .eyebrow,.studio-shell [class*="badge"],.studio-shell [class*="chip"],.studio-shell [class*="pill"]{text-transform:none!important;letter-spacing:0!important}
  .studio-shell .eyebrow{color:var(--wm-faint)!important;font-size:13px!important}

  /* ---------- player: hidden until something plays; scrubbable ---------- */
  .playback-dock.is-empty{display:none!important}
  body:has(.studio-shell) .playback-dock{min-height:64px!important;padding:10px 16px!important;row-gap:0!important}
  body:has(.studio-shell) .playback-dock > .playback-progress{display:block!important;position:absolute!important;left:0!important;right:0!important;top:-7px!important;width:100%!important;height:14px!important;margin:0!important;grid-column:auto!important;background:transparent!important}
  body:has(.studio-shell) .playback-dock{position:fixed}
  /* the generation status sheet sits above the dock only when the dock shows */
  body:has(.playback-dock.is-empty) .generation-status-dock{bottom:calc(var(--bottom, 72px) + 10px)!important}

  /* ---------- works list: 72px rows, art | text | actions ---------- */
  .studio-shell .project-track-row{display:grid!important;grid-template-columns:56px minmax(0,1fr) auto!important;grid-template-areas:"art copy actions"!important;align-items:center!important;column-gap:12px!important;row-gap:0!important;min-height:0!important;margin:0!important;padding:10px 4px!important;border-radius:12px!important}
  .studio-shell .project-track-row > .project-track-play,.studio-shell .project-track-row > .project-track-cover{grid-area:art!important;width:56px!important;height:56px!important;margin:0!important;border-radius:10px!important}
  .studio-shell .project-track-row > .project-track-copy{grid-area:copy!important;min-width:0!important;margin:0!important;padding:0!important}
  .studio-shell .project-track-row > .track-row-actions,.studio-shell .project-track-row > .project-track-action{grid-area:actions!important;width:auto!important;margin:0!important;padding:0!important;display:flex!important;gap:6px!important;align-items:center!important}
  .studio-shell .project-track-row .project-track-name{font-size:15px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .studio-shell .project-track-row .work-style{display:none!important}
  /* Remix stays, as an icon; full actions live in the … menu and details */
  .studio-shell .project-track-row .work-action-menu > summary{min-width:36px!important;width:36px!important;height:36px!important;padding:0!important;display:grid!important;place-items:center!important;border-radius:50%!important;gap:0!important}
  .studio-shell .project-track-row .work-action-menu:not(.work-more-menu) > summary > span:not(.icon){display:none!important}
  /* failed / queued rows: same columns, full message */
  .studio-shell .project-track-pending .project-track-meta{display:block!important;white-space:normal!important;overflow:visible!important;line-height:1.4!important;color:var(--wm-muted)!important}
  .studio-shell .project-track-pending .project-track-name{white-space:normal!important}

  /* ---------- song details: a full-width sheet ---------- */
  .track-details-pane{left:0!important;right:0!important;width:100%!important;max-width:none!important;border-radius:0!important;border-left:0!important}
  .track-details-pane .project-track-play,.track-details-pane [class*="cover"] button{background:#f5f5f4!important;color:#0a0a0b!important}
  .track-details-pane .project-track-play svg,.track-details-pane [class*="cover"] button svg{color:#0a0a0b!important;fill:currentColor!important}

  /* ---------- credits: one card level, no inner scroller ---------- */
  .credit-ledger{max-height:none!important;overflow:visible!important}
  .billing-section .plan-card,.billing-section [class*="plan-card"]{box-shadow:none!important}

  /* ---------- small things ---------- */
  .studio-shell .project-destination .mula-select-trigger,.studio-shell .mula-select-trigger{max-width:60vw!important}
  .studio-shell .mula-select-trigger span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
@media (max-width:767px){
  /* visible 3px track for the dock's scrub bar */
  body:has(.studio-shell) .playback-dock > .playback-progress{-webkit-appearance:none;appearance:none}
  body:has(.studio-shell) .playback-dock > .playback-progress::-webkit-slider-runnable-track{height:3px;background:linear-gradient(90deg,var(--wm-blue) var(--range-progress,0%),rgba(255,255,255,.14) var(--range-progress,0%))}
  body:has(.studio-shell) .playback-dock > .playback-progress::-webkit-slider-thumb{-webkit-appearance:none;width:12px;height:12px;margin-top:-4.5px;border-radius:50%;background:#f5f5f4;border:0}
}

/* All widths: the details play button is white, so its icon must be dark
   (it inherited the near-white stroke and was invisible). A disabled Remix reads
   as disabled instead of a faded blue. */
.track-details-play,.track-details-play svg,.track-details-play .icon{color:#0a0a0b!important;stroke:#0a0a0b!important}
.track-details-remix:disabled{background:rgba(255,255,255,.06)!important;border-color:transparent!important;color:var(--wm-faint)!important;opacity:1!important}
@media (max-width:767px){
  /* details sheet runs to the bottom edge (behind the player and tab bar) so the list never shows through */
  .track-details-pane{top:0!important;bottom:0!important;height:auto!important;max-height:none!important}
  .track-details-pane .track-details-scroll{padding-bottom:170px!important}
}

/* All widths: status chips are sentence case; plaza works without cover art
   show the HeartMuLa mark instead of a ♫ glyph. */
.studio-shell .status{text-transform:none!important;letter-spacing:0!important}
.plaza-placeholder{font-size:0!important;width:44px!important;height:44px!important;display:block!important;background:url("./home/heartmula-assets/mula-mark-2026.svg") center/contain no-repeat!important;opacity:.4;border-radius:10px}
@media (max-width:767px){
  .credit-balance{border-color:transparent!important;background:rgba(255,255,255,.035)!important}
}
.plaza-art{position:relative}
.plaza-placeholder{position:absolute!important;inset:0!important;margin:auto!important}
@media (max-width:767px){
  /* the desktop title bar is empty on phones: use it for the logo instead of a blank band */
  .studio-shell header.topbar{min-height:52px!important;height:52px!important;padding:0 16px!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;border-bottom:1px solid var(--wm-line)!important;background:#0e0e10!important}
  .studio-shell header.topbar > *{display:none!important}
  .studio-shell header.topbar::before{content:"";display:block;position:static!important;left:auto!important;right:auto!important;inset:auto!important;transform:none!important;width:122px;height:24px;background:url("./home/heartmula-assets/mula-original-lockup-2026.png") -14px -14px / 152px auto no-repeat}
}
@media (max-width:767px){
  /* with nothing playing the dock is gone, so give its space back to the page */
  body:has(.studio-shell):has(.playback-dock.is-empty){--studio-bottom-space:calc(var(--bottom, 72px) + env(safe-area-inset-bottom,0px))!important}
}
