/* ===== AI 音乐工作台 ===== */
.pf-tools-hero-music {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) 320px;
}

html:has(.pfmus-desk),
html:has(.pfmus-desk) body,
html:has(.pfmus-desk) #root,
html:has(.pfmus-desk) .pf-shell {
  height: 100%;
  overflow: hidden;
}

html:has(.pfmus-desk) .pf-shell-main-row {
  min-height: 0;
  overflow: hidden;
  padding-bottom: 0;
}

html:has(.pfmus-desk) .pf-shell-body,
html:has(.pfmus-desk) .pf-shell-main.flush {
  min-height: 0;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pfmus-desk {
  --pfimg-card: var(--pf-card, #fff);
  --pfimg-line: var(--pf-line, #e6e8ec);
  --pfimg-line2: rgba(17, 19, 24, 0.055);
  --pfimg-lime: var(--pf-lime, #b6ff00);
  --pfimg-lime-ink: #3f5c00;
  --pfimg-lime-soft: #eefcc8;
  --pfimg-ink: var(--pf-ink, #111);
  --pfimg-ink2: #3c443c;
  --pfimg-muted: var(--pf-muted, #6b7280);
  --pfmus-panel-shadow: 0 0 0 1px rgba(17, 19, 24, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04),
    0 20px 44px -30px rgba(16, 24, 40, 0.26);
  display: grid;
  grid-template-columns: 200px minmax(320px, 400px) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas:
    'sitebar sitebar sitebar'
    'rail composer works';
  gap: 14px;
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  padding: 14px 16px 16px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  align-items: stretch;
}

.pfmus-sitebar {
  grid-area: sitebar;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 24px;
  background: var(--pf-card, #fff);
  box-shadow: var(--pfmus-panel-shadow);
  box-sizing: border-box;
}

.pfmus-sitebar-main {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.pfmus-sitebar .pfmus-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.pfmus-sitebar .pfmus-brand .brand-logo {
  width: 28px;
  height: 28px;
}

.pfmus-sitebar .pfmus-brand .brand-word {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--pf-ink, #16181d);
  white-space: nowrap;
}

.pfmus-crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding-left: 18px;
  border-left: 1px solid var(--pf-line, #e3e6eb);
  font-size: 0.82rem;
  color: var(--pf-muted, #6b7280);
}

.pfmus-crumb a:hover {
  color: var(--pf-ink, #111);
}

.pfmus-crumb i {
  font-style: normal;
  opacity: 0.5;
}

.pfmus-crumb b {
  font-weight: 600;
  color: var(--pf-ink, #111);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pfmus-sitebar-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 7px 14px;
  background: rgba(17, 19, 24, 0.043);
  border: 1px solid rgba(17, 19, 24, 0.12);
  color: #2c323c;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.pfmus-sitebar-back:hover {
  background: var(--pf-ink, #111);
  border-color: transparent;
  color: #fff;
}

:is(.is-dark, .pf-theme-dark) .pfmus-desk {
  --pfmus-panel-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

:is(.is-dark, .pf-theme-dark) .pfmus-sitebar {
  background: #16181c;
  color: #e8eaed;
}

:is(.is-dark, .pf-theme-dark) .pfmus-sitebar .pfmus-brand .brand-word,
:is(.is-dark, .pf-theme-dark) .pfmus-crumb b {
  color: #f3f4f6;
}

:is(.is-dark, .pf-theme-dark) .pfmus-crumb {
  border-color: rgba(255, 255, 255, 0.08);
  color: #9aa0a6;
}

:is(.is-dark, .pf-theme-dark) .pfmus-crumb a:hover {
  color: #fff;
}

:is(.is-dark, .pf-theme-dark) .pfmus-sitebar-back {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: #dfe5ec;
}

:is(.is-dark, .pf-theme-dark) .pfmus-sitebar-back:hover {
  background: var(--pf-lime, #b6ff00);
  border-color: transparent;
  color: #12180a;
}

.pfmus-desk.is-split {
  grid-template-columns: 200px minmax(0, 1fr) minmax(280px, 1fr);
  grid-template-areas:
    'sitebar sitebar sitebar'
    'rail composer works';
}

.pfmus-desk.is-rail-off {
  grid-template-columns: 64px minmax(320px, 400px) minmax(0, 1fr);
}

.pfmus-desk.is-rail-off.is-split {
  grid-template-columns: 64px minmax(0, 1fr) minmax(280px, 1fr);
}

.pfmus-split-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.pfmus-ghost {
  border: 0;
  background: transparent;
  color: var(--pf-muted, #6b7280);
  font-size: 0.82rem;
  cursor: pointer;
}

.pfmus-split-home {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px 40px;
  text-align: center;
  overflow: auto;
  color: var(--pfimg-ink, var(--pf-ink, #111));
}

.pfmus-split-home h2 {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--pfimg-ink, var(--pf-ink, #111));
}

.pfmus-split-home > p {
  margin: 8px 0 14px;
  font-size: 0.82rem;
  color: var(--pfimg-muted, var(--pf-muted, #6b7280));
}

.pfmus-split-hist {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  padding: 7px 14px;
  background: var(--pf-lime, #b6ff00);
  color: #12180a;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.pfmus-split-card {
  width: min(760px, 100%);
  margin-top: 22px;
  padding: 16px;
  border-radius: 16px;
  text-align: left;
  background: var(--pf-fill, #f6f7f9);
  border: 1px solid var(--pfimg-line, var(--pf-line, #e6e8ec));
}

.pfmus-split-card > span,
.pfmus-split-lib-head span {
  display: block;
  font-size: 0.78rem;
  color: var(--pfimg-muted, var(--pf-muted, #6b7280));
}

.pfmus-split-lib-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.pfmus-split-lib-head button {
  border: 0;
  background: transparent;
  color: var(--pfimg-muted, var(--pf-muted, #6b7280));
  cursor: pointer;
}

.pfmus-split-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.pfmus-split-pick {
  min-height: 168px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 18px 16px;
  border-radius: 14px;
  border: 1px dashed var(--pfimg-line, var(--pf-line, #d5d8de));
  background: var(--pf-card, #fff);
  color: var(--pfimg-ink, var(--pf-ink, #111));
  cursor: pointer;
}

.pfmus-split-pick.on,
.pfmus-split-pick:hover {
  border-color: color-mix(in srgb, var(--pf-lime, #b6ff00) 55%, var(--pfimg-line, #d5d8de));
  background: var(--pfimg-lime-soft, #eefcc8);
}

.pfmus-split-pick svg {
  color: var(--pf-lime-ink, #3f5c00);
  margin-bottom: 4px;
}

.pfmus-split-pick strong {
  font-size: 0.92rem;
  font-weight: 600;
}

.pfmus-split-pick em {
  font-style: normal;
  font-size: 0.74rem;
  color: var(--pfimg-muted, var(--pf-muted, #6b7280));
}

.pfmus-split-lib {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
  max-height: min(420px, 52vh);
  overflow: auto;
}

.pfmus-split-lib button {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--pfimg-line, var(--pf-line, #e6e8ec));
  background: var(--pf-card, #fff);
  color: var(--pfimg-ink, var(--pf-ink, #111));
  text-align: left;
  cursor: pointer;
}

.pfmus-split-lib img,
.pfmus-split-lib i {
  grid-row: 1 / span 2;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.pfmus-split-lib b {
  font-size: 0.84rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pfmus-split-lib em {
  grid-column: 2;
  font-style: normal;
  font-size: 0.72rem;
  color: var(--pfimg-muted, var(--pf-muted, #6b7280));
}

.pfmus-rail {
  grid-area: rail;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 8px 16px;
  border-radius: 24px;
  background: var(--pf-card, #fff);
  color: var(--pf-muted, #6b7280);
  border: 0;
  box-shadow: var(--pfmus-panel-shadow);
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.pfmus-rail-head {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 8px;
}

.pfmus-back {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  margin: 0;
  padding: 8px 10px;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  font-size: 0.82rem;
}

.pfmus-rail .pfmus-theme {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  justify-content: center;
  padding: 0;
  margin-top: auto;
  align-self: center;
}

.pfmus-rail-head .pfmus-rail-fold {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  justify-content: center;
  gap: 0;
}

.pfmus-back:hover,
.pfmus-theme:hover,
.pfmus-rail-fold:hover {
  color: var(--pf-ink, #111);
  background: var(--pf-fill, #f3f4f6);
}

.pfmus-rail p {
  margin: 12px 10px 6px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--pf-muted, #9ca3af);
}

.pfmus-rail p:first-child {
  margin-top: 2px;
}

.pfmus-rail button {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  line-height: 1.2;
  text-align: left;
}

.pfmus-rail button:hover {
  color: var(--pf-ink, #111);
  background: var(--pf-fill, #f3f4f6);
}

.pfmus-rail button.on {
  background: var(--pf-fill, #f3f4f6);
  color: var(--pf-ink, #111);
  font-weight: 600;
}

.pfmus-rail-fold {
  color: var(--pf-muted, #6b7280);
}

.pfmus-desk.is-rail-off .pfmus-rail {
  padding: 10px 6px 12px;
  align-items: stretch;
}

.pfmus-desk.is-rail-off .pfmus-rail-head {
  flex-direction: column;
  align-items: center;
}

.pfmus-desk.is-rail-off .pfmus-back {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  justify-content: center;
  gap: 0;
  padding: 0;
  font-size: 0;
}

.pfmus-desk.is-rail-off .pfmus-rail p {
  display: none;
}

.pfmus-desk.is-rail-off .pfmus-rail > button {
  justify-content: center;
  gap: 0;
  padding: 10px 0;
  font-size: 0;
}

.pfmus-desk.is-rail-off .pfmus-rail > button svg,
.pfmus-desk.is-rail-off .pfmus-back svg {
  flex: 0 0 auto;
}

:is(.is-dark, .pf-theme-dark) .pfmus-rail {
  background: #16181c;
  color: #9aa0a6;
  border-color: rgba(255, 255, 255, 0.08);
}

:is(.is-dark, .pf-theme-dark) .pfmus-back:hover,
:is(.is-dark, .pf-theme-dark) .pfmus-theme:hover,
:is(.is-dark, .pf-theme-dark) .pfmus-rail-fold:hover,
:is(.is-dark, .pf-theme-dark) .pfmus-rail button:hover {
  color: #f3f4f6;
  background: rgba(255, 255, 255, 0.06);
}

:is(.is-dark, .pf-theme-dark) .pfmus-rail button.on {
  background: #2a2e36;
  color: #fff;
}

.pfmus-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
  padding: 16px 18px;
  overflow: auto;
}

.pfmus-panel h3 {
  margin: 0;
  font-size: 1rem;
}

.pfmus-panel p {
  margin: 0;
  color: var(--pf-muted, #6b7280);
  font-size: 0.86rem;
}

.pfmus-composer {
  grid-area: composer;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: var(--pf-card, #fff);
  color: var(--pf-ink, #111);
  box-shadow: var(--pfmus-panel-shadow);
  overflow: hidden;
  box-sizing: border-box;
}

.pfmus-composer-head {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-bottom: 1px solid var(--pf-line, #e6e8ec);
  background: var(--pf-card, #fff);
}

.pfmus-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.pfmus-model {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  color: inherit;
  max-width: 46%;
}

.pfmus-model select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--pf-line, #e6e8ec);
  border-radius: 999px;
  height: 34px;
  padding: 0 28px 0 12px;
  background: var(--pf-fill, #f3f4f6);
  color: inherit;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  line-height: 1;
}

.pfmus-model::after {
  content: '';
  pointer-events: none;
  position: absolute;
  right: 11px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.7;
}

.pfmus-composer-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 18px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.pfmus-composer-dock {
  flex: 0 0 auto;
  padding: 10px 18px 14px;
  border-top: 1px solid var(--pf-line, #e6e8ec);
  background: var(--pf-card, #fff);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pfmus-composer .pfimg-sel {
  flex: 0 0 auto;
  width: min(220px, 42%);
  height: 44px;
  overflow: visible;
}

.pfmus-composer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pfmus-mode-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pfmus-mode-wrap > span {
  font-size: 0.82rem;
  color: var(--pf-muted, #6b7280);
}

.pfmus-mode {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--pf-fill, #f3f4f6);
}

.pfmus-mode button {
  border: 0;
  background: transparent;
  color: var(--pf-muted, #6b7280);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.pfmus-mode button.on {
  background: #fff;
  color: var(--pf-ink, #111);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

:is(.is-dark, .pf-theme-dark) .pfmus-mode {
  background: rgba(255, 255, 255, 0.06);
}

:is(.is-dark, .pf-theme-dark) .pfmus-mode button {
  color: rgba(255, 255, 255, 0.55);
}

:is(.is-dark, .pf-theme-dark) .pfmus-mode button.on {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: none;
}

:is(.is-dark, .pf-theme-dark) .pfmus-model select,
:is(.is-dark, .pf-theme-dark) .pfmus-cap select {
  background: #121416;
  border-color: rgba(255, 255, 255, 0.14);
  color: #e8eaed;
}

.pfmus-tabs {
  display: flex;
  gap: 16px;
}

.pfmus-tabs button {
  border: 0;
  background: transparent;
  color: var(--pf-muted, #6b7280);
  padding: 6px 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.pfmus-tabs button.on {
  color: var(--pf-ink, #111);
  box-shadow: inset 0 -2px 0 var(--pf-lime, #d6ff4a);
}

.pfmus-caps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}

@property --pfmus-cap-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

.pfmus-cap-btn {
  position: relative;
  isolation: isolate;
  min-width: 0;
  height: 36px;
  border: 1px solid var(--pf-line, #e6e8ec);
  border-radius: 999px;
  padding: 0 10px;
  background: var(--pf-fill, #f3f4f6);
  color: inherit;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1;
}

.pfmus-cap-btn.on {
  border-color: color-mix(in srgb, var(--pf-ink, #111) 22%, transparent);
}

.pfmus-desk :is(
  .pfmus-cap-btn,
  .pfmus-cap,
  .pfmus-model,
  .pfmus-mode button,
  .pfmus-chips button,
  .pfmus-quick button,
  .pfmus-tags button,
  .pfmus-card-ops button,
  .pfmus-vocal-pick button,
  .pfmus-gender button,
  .pfmus-voices button,
  .pfmus-kit-row button,
  .pfmus-works-tabs button,
  .pfmus-works-upload,
  .pfmus-works-icon,
  .pfmus-ws-view,
  .pfmus-ws-new,
  .pfmus-ws-chip,
  .pfmus-now-tabs button,
  .pfmus-now-ctrls button,
  .pfmus-theme,
  .pfmus-rail-fold,
  .pfmus-back,
  .pfmus-rail > button,
  .pfmus-make,
  .pfmus-upload,
  .pfmus-file button,
  .pfmus-extend button,
  .pfmus-song-ops button,
  .pfmus-stem-ops button,
  .pfmus-voice-acts button,
  .pfmus-voice-saved button,
  .pfmus-voice-now button,
  .pfmus-voice-card header button,
  .pfmus-lyric-expand,
  .pfmus-dice,
  .pfmus-ghost,
  .pfmus-split-hist,
  .pfmus-work-actions button
) {
  position: relative;
  isolation: isolate;
}

.pfmus-desk :is(
  .pfmus-cap-btn,
  .pfmus-cap,
  .pfmus-model,
  .pfmus-mode button,
  .pfmus-chips button,
  .pfmus-quick button,
  .pfmus-tags button,
  .pfmus-card-ops button,
  .pfmus-vocal-pick button,
  .pfmus-gender button,
  .pfmus-voices button,
  .pfmus-kit-row button,
  .pfmus-works-tabs button,
  .pfmus-works-upload,
  .pfmus-works-icon,
  .pfmus-ws-view,
  .pfmus-ws-new,
  .pfmus-ws-chip,
  .pfmus-now-tabs button,
  .pfmus-now-ctrls button,
  .pfmus-theme,
  .pfmus-rail-fold,
  .pfmus-back,
  .pfmus-rail > button,
  .pfmus-make,
  .pfmus-upload,
  .pfmus-file button,
  .pfmus-extend button,
  .pfmus-song-ops button,
  .pfmus-stem-ops button,
  .pfmus-voice-acts button,
  .pfmus-voice-saved button,
  .pfmus-voice-now button,
  .pfmus-voice-card header button,
  .pfmus-lyric-expand,
  .pfmus-dice,
  .pfmus-ghost,
  .pfmus-split-hist,
  .pfmus-work-actions button
)::before {
  content: '';
  pointer-events: none;
  position: absolute;
  inset: -1px;
  z-index: 2;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--pfmus-cap-angle, 0deg),
    #d6ff4a,
    #67e8f9,
    #a78bfa,
    #fb7185,
    #fbbf24,
    #d6ff4a
  );
  box-shadow: 0 0 10px color-mix(in srgb, #d6ff4a 28%, transparent);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.pfmus-desk :is(
  .pfmus-cap-btn,
  .pfmus-mode button,
  .pfmus-chips button,
  .pfmus-quick button,
  .pfmus-vocal-pick button,
  .pfmus-works-tabs button,
  .pfmus-works-upload,
  .pfmus-ws-new,
  .pfmus-now-tabs button,
  .pfmus-theme,
  .pfmus-rail-fold,
  .pfmus-dice,
  .pfmus-ghost,
  .pfmus-lyric-expand
):is(:hover, :focus-visible),
.pfmus-desk :is(.pfmus-cap, .pfmus-model):is(:hover, :focus-within) {
  border-color: transparent;
  transform: translateY(-0.5px);
}

.pfmus-desk :is(.pfmus-cap, .pfmus-model):is(:hover, :focus-within) select {
  border-color: transparent;
}

.pfmus-desk :is(
  .pfmus-cap-btn,
  .pfmus-mode button,
  .pfmus-chips button,
  .pfmus-quick button,
  .pfmus-tags button,
  .pfmus-card-ops button,
  .pfmus-vocal-pick button,
  .pfmus-gender button,
  .pfmus-voices button,
  .pfmus-kit-row button,
  .pfmus-works-tabs button,
  .pfmus-works-upload,
  .pfmus-works-icon,
  .pfmus-ws-view,
  .pfmus-ws-new,
  .pfmus-ws-chip,
  .pfmus-now-tabs button,
  .pfmus-now-ctrls button,
  .pfmus-theme,
  .pfmus-rail-fold,
  .pfmus-back,
  .pfmus-rail > button,
  .pfmus-make,
  .pfmus-upload,
  .pfmus-file button,
  .pfmus-extend button,
  .pfmus-song-ops button,
  .pfmus-stem-ops button,
  .pfmus-voice-acts button,
  .pfmus-voice-saved button,
  .pfmus-voice-now button,
  .pfmus-voice-card header button,
  .pfmus-lyric-expand,
  .pfmus-dice,
  .pfmus-ghost,
  .pfmus-split-hist,
  .pfmus-work-actions button
):is(:hover, :focus-visible)::before,
.pfmus-desk :is(.pfmus-cap, .pfmus-model):focus-within::before,
.pfmus-desk :is(.pfmus-cap, .pfmus-model):hover::before {
  opacity: 1;
  animation: pfmus-cap-spin 2.2s linear infinite;
}

@keyframes pfmus-cap-spin {
  to {
    --pfmus-cap-angle: 360deg;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pfmus-desk :is(
    .pfmus-cap-btn,
    .pfmus-cap,
    .pfmus-model,
    .pfmus-mode button,
    .pfmus-chips button,
    .pfmus-quick button,
    .pfmus-tags button,
    .pfmus-card-ops button,
    .pfmus-vocal-pick button,
    .pfmus-gender button,
    .pfmus-voices button,
    .pfmus-kit-row button,
    .pfmus-works-tabs button,
    .pfmus-works-upload,
    .pfmus-works-icon,
    .pfmus-ws-view,
    .pfmus-ws-new,
    .pfmus-ws-chip,
    .pfmus-now-tabs button,
    .pfmus-now-ctrls button,
    .pfmus-theme,
  .pfmus-rail-fold,
    .pfmus-back,
    .pfmus-rail > button,
    .pfmus-make,
    .pfmus-upload,
    .pfmus-file button,
    .pfmus-extend button,
    .pfmus-song-ops button,
    .pfmus-stem-ops button,
    .pfmus-voice-acts button,
    .pfmus-voice-saved button,
    .pfmus-voice-now button,
    .pfmus-voice-card header button,
    .pfmus-lyric-expand,
    .pfmus-dice,
    .pfmus-ghost,
    .pfmus-split-hist,
    .pfmus-work-actions button
  ):is(:hover, :focus-visible)::before,
  .pfmus-desk :is(.pfmus-cap, .pfmus-model):focus-within::before {
    animation: none;
  }
}

.pfmus-voice-pop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: rgba(10, 12, 16, 0.62);
}

.pfmus-voice-card {
  width: min(720px, 100%);
  max-height: min(88vh, 860px);
  overflow: auto;
  border-radius: 22px;
  background: var(--pf-card, #fff);
  color: var(--pf-ink, #111);
  padding: 18px 20px 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.pfmus-voice-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.pfmus-voice-card header h3 {
  margin: 0;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pfmus-voice-card header h3 em {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--pf-lime, #d6ff4a) 78%, #fff);
  color: #111;
}

.pfmus-voice-card header button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: var(--pf-fill, #f3f4f6);
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pfmus-voice-saved {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 12px;
}

.pfmus-voice-saved span {
  font-size: 0.75rem;
  color: var(--pf-muted, #6b7280);
}

.pfmus-voice-saved button {
  border: 1px solid var(--pf-line, #e6e8ec);
  background: var(--pf-fill, #f3f4f6);
  border-radius: 999px;
  height: 30px;
  padding: 0 10px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  color: inherit;
}

.pfmus-voice-saved button.on {
  background: var(--pf-ink, #111);
  color: #fff;
  border-color: transparent;
}

.pfmus-voice-saved button.ghost {
  background: transparent;
}

.pfmus-voice-now {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 8px 0 2px;
  font-size: 0.78rem;
}

.pfmus-voice-now span {
  color: var(--pf-muted, #6b7280);
}

.pfmus-voice-now strong {
  font-weight: 700;
}

.pfmus-voice-now em {
  font-style: normal;
  color: var(--pf-muted, #6b7280);
}

.pfmus-voice-now button {
  margin-left: auto;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--pf-line, #e6e8ec);
  border-radius: 999px;
  background: var(--pf-fill, #f3f4f6);
  color: inherit;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.pfmus-voice-drop {
  border-radius: 18px;
  padding: 22px 16px 18px;
  text-align: center;
  color: inherit;
  background: var(--pf-fill, #f7f7f8);
  border: 1px dashed var(--pf-line, #e6e8ec);
}

.pfmus-voice-drop.rec {
  border-color: #ef4444;
  background: color-mix(in srgb, #ef4444 8%, var(--pf-fill, #f7f7f8));
}

.pfmus-voice-drop strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 8px;
}

.pfmus-voice-drop p,
.pfmus-voice-drop em {
  margin: 0 auto 8px;
  max-width: 36em;
  font-size: 0.82rem;
  color: var(--pf-muted, #6b7280);
  font-style: normal;
}

.pfmus-voice-acts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.pfmus-voice-acts button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--pf-line, #e6e8ec);
  border-radius: 999px;
  background: var(--pf-card, #fff);
  color: inherit;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.pfmus-voice-acts button.on {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}

.pfmus-voice-agree {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 12px 0 8px;
  font-size: 0.78rem;
  color: var(--pf-muted, #6b7280);
  line-height: 1.45;
}

.pfmus-voice-agree input {
  margin-top: 3px;
}

.pfmus-voice-go {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: var(--pf-ink, #111);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.pfmus-voice-go:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pfmus-voice-note {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: #b45309;
}

.pfmus-voice-tips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.pfmus-voice-tips article {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--pf-line, #e6e8ec);
  background: var(--pf-fill, #f7f7f8);
}

.pfmus-voice-tips b {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 2px;
}

.pfmus-voice-tips p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--pf-muted, #6b7280);
}

.pfmus-voice-lib {
  min-height: 240px;
}

.pfmus-voice-back {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 8px;
}

.pfmus-voice-lib ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.pfmus-voice-lib li button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--pf-line, #e6e8ec);
  background: var(--pf-fill, #f7f7f8);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  cursor: pointer;
  color: inherit;
}

.pfmus-voice-lib em {
  color: var(--pf-muted, #6b7280);
  font-style: normal;
}

@media (max-width: 640px) {
  .pfmus-voice-tips {
    grid-template-columns: 1fr;
  }
}

.pfmus-cap {
  position: relative;
  isolation: isolate;
  display: flex;
  min-width: 0;
  color: inherit;
  border-radius: 999px;
  transition: transform 0.2s ease;
}

.pfmus-cap select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 36px;
  border: 1px solid var(--pf-line, #e6e8ec);
  border-radius: 999px;
  padding: 0 22px 0 10px;
  background: var(--pf-fill, #f3f4f6);
  color: inherit;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1;
}

.pfmus-cap::after {
  content: '';
  pointer-events: none;
  position: absolute;
  z-index: 3;
  right: 12px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.7;
}

.pfmus-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pfmus-quick button,
.pfmus-card-ops button,
.pfmus-gender button {
  border: 1px solid var(--pf-line, #e6e8ec);
  background: transparent;
  color: inherit;
  border-radius: 12px;
  padding: 10px 8px;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
}

.pfmus-quick button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
}

.pfmus-quick button.on {
  background: var(--pf-ink, #111);
  color: #fff;
  border-color: transparent;
}

.pfmus-card {
  flex: 0 0 auto;
  border: 1px solid var(--pf-line, #e6e8ec);
  border-radius: 16px;
  padding: 12px 14px 12px;
  background: var(--pf-card, #fff);
}

.pfmus-lyricpad {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  min-height: 188px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.pfmus-lyricpad:focus-within {
  border-color: rgba(45, 212, 191, 0.55);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);
}

.pfmus-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--pf-muted, #6b7280);
}

.pfmus-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--pf-muted, #6b7280);
  font-size: 0.8rem;
}

.pfmus-card textarea,
.pfmus-desk .pfmus-card textarea,
.pfmus-desk .pfmus-lyricpad .pfmus-lyrics-input {
  width: 100%;
  min-height: 72px;
  margin: 0;
  padding: 0;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  resize: none;
  background: transparent !important;
  color: inherit;
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.7;
  caret-color: #2dd4bf;
}

.pfmus-desk .pfmus-lyricpad .pfmus-lyrics-input {
  flex: 1 1 auto;
  min-height: 148px !important;
  height: 148px !important;
  max-height: 148px;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

.pfmus-lyrics-input {
  min-height: 148px !important;
}

.pfmus-lyricpad-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pfmus-lyric-expand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--pf-muted, #6b7280);
  cursor: pointer;
}

.pfmus-lyric-expand:hover {
  background: var(--pf-fill, #f3f4f6);
  color: var(--pf-ink, #111);
}

.pfmus-lyric-pop {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 17, 21, 0.46);
}

.pfmus-lyric-pop-card {
  width: min(720px, 100%);
  height: min(78vh, 760px);
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: 18px;
  background: var(--pf-card, #fff);
  color: var(--pf-ink, #111);
  padding: 16px 18px 14px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
}

.pfmus-lyric-pop-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.pfmus-lyric-pop-card header h3 {
  margin: 0;
  font-size: 0.95rem;
}

.pfmus-lyric-pop-card header button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.pfmus-lyric-pop-card .pfmus-tags {
  flex: 0 0 auto;
}

.pfmus-desk .pfmus-lyric-pop-card .pfmus-lyrics-input {
  flex: 1 1 auto;
  min-height: 0 !important;
  height: auto !important;
  max-height: none;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

.pfmus-lyric-pop-card .pfmus-card-ops {
  flex: 0 0 auto;
  align-items: center;
}

.pfmus-lyric-pop-card .pfmus-card-ops em {
  margin-left: auto;
  color: var(--pf-muted, #6b7280);
  font-style: normal;
  font-size: 0.78rem;
}

.pfmus-desk .pfmus-lyricpad .pfmus-lyrics-input::placeholder {
  color: #9aa3af;
  opacity: 1;
}

.pfmus-lyricpad .pfmus-tags,
.pfmus-lyric-pop-card .pfmus-tags {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 2px;
  margin: 0 0 10px;
  padding: 3px;
  border-radius: 10px;
  background: var(--pf-fill, #f3f4f6);
}

.pfmus-desk .pfmus-lyricpad .pfmus-tags button,
.pfmus-desk .pfmus-lyric-pop-card .pfmus-tags button {
  min-width: 0;
  margin: 0;
  padding: 5px 1px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: var(--pf-muted, #6b7280);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pfmus-desk .pfmus-lyricpad .pfmus-tags button:hover,
.pfmus-desk .pfmus-lyric-pop-card .pfmus-tags button:hover {
  background: #fff;
  color: var(--pf-ink, #111);
}

.pfmus-style-input {
  min-height: 52px !important;
}

.pfmus-desk .pfmus-req .pfmus-style-input {
  border: 1px solid var(--pf-line, #e6e8ec) !important;
  border-radius: 12px;
  padding: 10px 12px;
  resize: none;
  background: var(--pf-fill, #f7f8fa) !important;
  min-height: 64px !important;
  outline: none;
  box-shadow: none;
}

.pfmus-idea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--pf-line, #e6e8ec);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.86rem;
  padding: 6px 0 8px;
  margin: 0 0 8px;
}

.pfmus-card-ops {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.pfmus-card-ops button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 10px;
}

.pfmus-card-ops button.on,
.pfmus-gender button.on,
.pfmus-chips button.on {
  background: var(--pf-ink, #111);
  color: #fff;
  border-color: transparent;
}

.pfmus-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.pfmus-chips button {
  border: 1px solid var(--pf-line, #e6e8ec);
  background: transparent;
  color: inherit;
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
}

.pfmus-line,
.pfmus-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--pf-line, #e6e8ec);
  border-radius: 14px;
  padding: 10px 12px;
  background: var(--pf-fill, #f7f8fa);
  font-size: 0.86rem;
}

.pfmus-search {
  width: 100%;
  margin: 0 0 12px;
  padding: 8px 12px;
  border: 1px solid var(--pf-line, #e6e8ec);
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.85rem;
}

.pfmus-tags {
  margin: 0 0 8px;
}

.pfmus-dice {
  border: 1px solid var(--pf-line, #e6e8ec);
  background: transparent;
  color: inherit;
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  flex: 0 0 auto;
}

.pfmus-title input {
  flex: 1;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  min-width: 0;
}

.pfmus-title em,
.pfmus-fine {
  font-style: normal;
  color: var(--pf-muted, #6b7280);
  font-size: 0.76rem;
}

.pfmus-gender {
  display: flex;
  gap: 12px;
}

.pfmus-gender button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--pf-muted, #6b7280);
}

.pfmus-gender button.on {
  background: transparent;
  color: var(--pf-ink, #111);
}

.pfmus-card .pfmus-gender {
  margin-top: 8px;
}

.pfmus-card .pfmus-gender button {
  border: 1px solid var(--pf-line, #e6e8ec);
  border-radius: 999px;
  padding: 4px 12px;
  color: inherit;
}

.pfmus-card .pfmus-gender button.on {
  background: var(--pf-ink, #111);
  color: #fff;
  border-color: transparent;
}

.pfmus-make {
  margin: 0;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 10px 18px 8px;
  background: var(--pf-lime, #b6ff00);
  color: #12180a;
  box-shadow: 0 8px 24px -8px rgba(182, 255, 0, 0.55);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.pfmus-make-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pfmus-make-price {
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.88;
}

.pfmus-fine {
  text-align: center;
  margin: 0;
}

.pfmus-hint,
.pfmus-muted,
.pfmus-error {
  margin: 0;
  font-size: 0.8rem;
}

.pfmus-muted {
  color: var(--pf-muted, #6b7280);
}

.pfmus-voices {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pfmus-voices button {
  border: 1px solid var(--pf-line, #e6e8ec);
  background: transparent;
  color: inherit;
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
}

.pfmus-voices button.on {
  background: var(--pf-ink, #111);
  color: #fff;
  border-color: transparent;
}

.pfmus-error {
  color: #c2410c;
}

.pfmus-kit {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pfmus-kit > span {
  font-size: 0.82rem;
  color: var(--pf-muted, #6b7280);
}

.pfmus-kit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pfmus-kit-row button {
  border: 1px solid var(--pf-line, #e6e8ec);
  background: #fff;
  color: inherit;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
}

.pfmus-kit-row button.on {
  border-color: #111;
  background: #111;
  color: #fff;
}

:is(.is-dark, .pf-theme-dark) .pfmus-kit-row button {
  background: #16181c;
  border-color: rgba(255, 255, 255, 0.08);
}

:is(.is-dark, .pf-theme-dark) .pfmus-kit-row button.on {
  background: #f3f4f6;
  color: #111;
  border-color: #f3f4f6;
}

.pfmus-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px dashed var(--pf-line, #e6e8ec);
  background: transparent;
  color: inherit;
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
}

.pfmus-file,
.pfmus-extend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--pf-muted, #6b7280);
}

.pfmus-file button,
.pfmus-extend button,
.pfmus-local-clear {
  border: 1px solid var(--pf-line, #e6e8ec);
  background: transparent;
  color: inherit;
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
}

.pfmus-refs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pfmus-refs > span {
  font-size: 0.78rem;
  color: var(--pf-muted, #6b7280);
}

.pfmus-composer > .pfmus-local {
  flex: 0 0 auto;
  margin: 12px 18px 0;
}

.pfmus-local {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  position: relative;
  padding: 8px 8px 8px 8px;
  border: 1px solid var(--pf-line, #e6e8ec);
  border-radius: 16px;
  background: var(--pf-fill, #f7f8fa);
}

.pfmus-local .pfmus-cover {
  width: 72px;
  height: 72px;
}

.pfmus-local-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 64px;
}

.pfmus-local-meta strong,
.pfmus-local-meta span {
  display: block;
}

.pfmus-local-meta strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.86rem;
}

.pfmus-local-meta span {
  color: var(--pf-muted, #6b7280);
  font-size: 0.75rem;
}

.pfmus-local .pfmus-stem-wave {
  height: 36px;
  cursor: pointer;
}

.pfmus-local-clear {
  position: absolute;
  top: 8px;
  right: 8px;
}

:is(.is-dark, .pf-theme-dark) .pfmus-local {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.pfmus-weird {
  flex-wrap: wrap;
}

.pfmus-weird input[type='range'] {
  flex: 1;
  min-width: 120px;
}

.pfmus-req {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pfmus-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.86rem;
}

.pfmus-field select {
  width: 100%;
  border: 1px solid var(--pf-line, #e6e8ec);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--pf-fill, #f7f8fa);
  color: inherit;
  font: inherit;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.pfmus-field-hint {
  font-style: normal;
  font-size: 0.75rem;
  color: var(--pf-muted, #6b7280);
}

.pfmus-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
}

.pfmus-duration {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.86rem;
}

.pfmus-duration input {
  width: 100%;
  border: 1px solid var(--pf-line, #e6e8ec);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--pf-fill, #f7f8fa);
  color: inherit;
  font: inherit;
}

.pfmus-vocal-pick {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--pf-muted, #6b7280);
}

.pfmus-vocal-pick button {
  min-width: 44px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--pf-line, #e6e8ec);
  border-radius: 999px;
  background: var(--pf-card, #fff);
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
}

.pfmus-vocal-pick button.on {
  background: var(--pf-ink, #111);
  color: #fff;
  border-color: transparent;
}

:is(.is-dark, .pf-theme-dark) .pfmus-vocal-pick button {
  background: #121416;
  border-color: rgba(255, 255, 255, 0.12);
  color: #e8eaed;
}

:is(.is-dark, .pf-theme-dark) .pfmus-vocal-pick button.on {
  background: #2dd4bf;
  color: #111;
  border-color: transparent;
}

.pfmus-adv-box {
  border: 1px solid var(--pf-line, #e6e8ec);
  border-radius: 16px;
  padding: 4px 12px;
  background: var(--pf-fill, #f4f5f7);
}

.pfmus-adv-box.open {
  padding-bottom: 14px;
}

.pfmus-adv-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 12px 2px;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.pfmus-adv-ico {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--pf-muted, #6b7280);
  flex: 0 0 auto;
}

.pfmus-adv-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.pfmus-adv-copy strong {
  font-size: 0.9rem;
  font-weight: 600;
}

.pfmus-adv-copy em {
  font-style: normal;
  font-size: 0.75rem;
  color: var(--pf-muted, #6b7280);
}

.pfmus-adv-toggle > svg {
  flex: 0 0 auto;
  color: var(--pf-muted, #6b7280);
}

.pfmus-adv-toggle svg.open {
  transform: rotate(180deg);
}

.pfmus-adv-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--pf-line, #e6e8ec);
}

:is(.is-dark, .pf-theme-dark) .pfmus-adv-box {
  background: #1a1c22;
  border-color: rgba(255, 255, 255, 0.08);
}

:is(.is-dark, .pf-theme-dark) .pfmus-adv-ico {
  background: rgba(255, 255, 255, 0.06);
}

.pfmus-adv span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.86rem;
  margin-bottom: 8px;
}

.pfmus-adv span button {
  border: 1px solid var(--pf-line, #e6e8ec);
  background: #f3f4f6;
  color: var(--pf-muted, #6b7280);
  border-radius: 999px;
  padding: 2px 10px;
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
}

.pfmus-adv input[type='range'] {
  width: 100%;
}

:is(.is-dark, .pf-theme-dark) .pfmus-duration input,
:is(.is-dark, .pf-theme-dark) .pfmus-field select {
  background-color: #16181c;
  border-color: rgba(255, 255, 255, 0.08);
}

.pfmus-progress {
  position: relative;
  height: 28px;
  border-radius: 999px;
  background: var(--pf-fill, #f3f4f6);
  overflow: hidden;
}

.pfmus-progress i {
  position: absolute;
  inset: 0 auto 0 0;
  background: #2dd4bf;
  display: block;
}

.pfmus-progress span {
  position: relative;
  display: block;
  line-height: 28px;
  text-align: center;
  font-size: 0.78rem;
}

.pfmus-lyrics {
  white-space: pre-wrap;
  margin: 0 0 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--pf-line, #e6e8ec);
  font: inherit;
  font-size: 0.85rem;
  max-height: 220px;
  overflow: auto;
}

.pfmus-extend input[type='range'] {
  width: 100%;
}

.pfmus-song-ops button.on {
  background: #ecfccb;
  border-color: #d9f99d;
}

.pfmus-vault,
.pfmus-works {
  grid-area: works;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.pfmus-works {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  border: 0;
  border-radius: 24px;
  background: var(--pf-card, #fff);
  color: var(--pf-ink, #111);
  box-shadow: var(--pfmus-panel-shadow);
  overflow: hidden;
  box-sizing: border-box;
}

.pfmus-works header,
.pfmus-works .pfmus-ops-block,
.pfmus-works .pfmus-song-ops,
.pfmus-works .pfmus-extend,
.pfmus-works .pfmus-lyrics {
  flex: 0 0 auto;
}

.pfmus-works header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px 10px;
}

.pfmus-works header.pfmus-works-head {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
  padding: 12px 14px 10px;
}

.pfmus-works-top,
.pfmus-ws-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  min-width: 0;
  width: 100%;
}

.pfmus-works-top {
  justify-content: space-between;
}

.pfmus-works-tabs {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--pf-fill, #f3f4f6);
}

.pfmus-desk .pfmus-works-tabs button {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.pfmus-works-tabs button {
  border: 0;
  background: transparent;
  color: var(--pf-muted, #6b7280);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
}

.pfmus-desk .pfmus-works-tabs button.on,
.pfmus-works-tabs button.on {
  background: #fff;
  color: var(--pf-ink, #111);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.pfmus-works-top-ops {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
}

.pfmus-works-upload,
.pfmus-works-icon,
.pfmus-ws-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--pf-line, #e6e8ec);
  background: var(--pf-fill, #f3f4f6);
  color: inherit;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
}

.pfmus-works-upload {
  height: 34px;
  padding: 0 12px;
}

.pfmus-works-icon {
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--pf-muted, #6b7280);
}

.pfmus-ws-list {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.pfmus-ws-list::-webkit-scrollbar {
  display: none;
}

.pfmus-ws-new,
.pfmus-ws-chip {
  border: 0;
  background: transparent;
  color: var(--pf-muted, #6b7280);
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  flex: 0 0 auto;
}

.pfmus-ws-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 6px 2px 4px;
  cursor: default;
}

.pfmus-ws-chip-name {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 4px 6px;
  cursor: pointer;
  font: inherit;
  font-size: inherit;
  font-weight: 600;
}

.pfmus-ws-chip-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0;
  height: 18px;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--pf-muted, #6b7280);
  cursor: pointer;
}

.pfmus-ws-chip:hover .pfmus-ws-chip-x,
.pfmus-ws-chip:focus-within .pfmus-ws-chip-x {
  width: 18px;
  opacity: 1;
  pointer-events: auto;
}

.pfmus-ws-chip-x:hover {
  background: rgba(15, 23, 42, 0.08);
  color: var(--pf-ink, #111);
}

.pfmus-ws-name {
  height: 32px;
  width: 148px;
  flex: 0 0 auto;
  border: 1px solid var(--pf-line, #e6e8ec);
  border-radius: 999px;
  padding: 0 12px;
  background: var(--pf-card, #fff);
  color: inherit;
  font: inherit;
  font-size: 0.82rem;
  outline: none;
}

.pfmus-ws-name:focus {
  border-color: rgba(45, 212, 191, 0.55);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);
}

.pfmus-ws-chip.on {
  background: var(--pf-fill, #f3f4f6);
  color: var(--pf-ink, #111);
}

.pfmus-ws-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 6px;
}

.pfmus-ws-tools .pfmus-search {
  width: 140px;
  height: 34px;
  border-radius: 999px;
  padding: 0 12px;
}

.pfmus-ws-mini {
  position: relative;
  width: 34px;
  height: 34px;
  border: 1px solid var(--pf-line, #e6e8ec);
  border-radius: 999px;
  background: var(--pf-fill, #f3f4f6);
  color: var(--pf-muted, #6b7280);
}

.pfmus-ws-mini svg {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.pfmus-ws-mini select {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.pfmus-ws-view {
  position: relative;
  height: 34px;
  padding: 0 10px 0 8px;
}

.pfmus-ws-view select {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding-right: 4px;
  cursor: pointer;
}

.pfmus-work-list.is-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 12px;
}

.pfmus-work-list.is-grid li {
  grid-template-columns: 1fr;
  padding: 6px;
}

.pfmus-work-list.is-grid .pfmus-cover {
  width: 100%;
  aspect-ratio: 1;
  height: auto;
}

.pfmus-work-list.is-grid .pfmus-work-menu {
  right: 0;
}

.pfmus-work-list.is-grid .pfmus-ws-save {
  flex-direction: column;
  align-items: stretch;
}

.pfmus-works h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.pfmus-works h2 em {
  font-style: normal;
  color: var(--pf-muted, #6b7280);
  font-weight: 500;
}

.pfmus-works .pfmus-search {
  width: min(220px, 46%);
  margin: 0;
  border-color: var(--pf-line, #e6e8ec);
  background: var(--pf-bg, #fff);
  color: inherit;
}

.pfmus-works .pfmus-ops-block,
.pfmus-works .pfmus-song-ops,
.pfmus-works .pfmus-extend,
.pfmus-works .pfmus-lyrics {
  margin: 0 18px 10px;
}

.pfmus-works .pfmus-song-ops button,
.pfmus-works .pfmus-extend button {
  border-color: var(--pf-line, #e6e8ec);
  color: inherit;
}

.pfmus-works .pfmus-lyrics {
  border-color: var(--pf-line, #e6e8ec);
  background: var(--pf-fill, #f3f4f6);
}

.pfmus-works-body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

.pfmus-works-body.is-open {
  grid-template-columns: minmax(0, 1fr) minmax(232px, 256px);
  gap: 10px;
  padding: 10px 10px 10px 0;
}

.pfmus-works-body > .pfmus-empty {
  min-height: 0;
}

.pfmus-work-list {
  list-style: none;
  margin: 0;
  padding: 8px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.pfmus-work-list li {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 8px;
  border-radius: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
  transition:
    background 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.pfmus-work-list li.pending {
  opacity: 0.5;
  pointer-events: none;
}

.pfmus-cover-pending {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(110deg, #e8eaed 0%, #f7f8fa 45%, #e8eaed 100%);
  background-size: 180% 100%;
  animation: pfmus-pending 1.2s ease infinite;
}

@keyframes pfmus-pending {
  0% { background-position: 100% 0; }
  100% { background-position: -80% 0; }
}

:is(.is-dark, .pf-theme-dark) .pfmus-cover-pending {
  background: linear-gradient(110deg, #2a2d32 0%, #3a3e44 45%, #2a2d32 100%);
  background-size: 180% 100%;
}

.pfmus-work-nowtag.wait {
  background: rgba(45, 212, 191, 0.12);
  color: #0f766e;
}

.pfmus-work-list li:hover {
  background: var(--pf-fill, #f7f8fa);
  border-color: var(--pf-line, #e6e8ec);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
}

.pfmus-work-list li:hover .pfmus-cover {
  transform: scale(1.04);
}

.pfmus-work-body {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  padding-top: 6px;
}

.pfmus-work-more {
  position: relative;
  flex: 0 0 auto;
}

.pfmus-work-more-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--pf-muted, #6b7280);
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.pfmus-work-list li:hover .pfmus-work-more-btn {
  opacity: 1;
}

.pfmus-work-more-btn:hover,
.pfmus-work-more.open .pfmus-work-more-btn {
  background: var(--pf-fill, #f3f4f6);
  color: var(--pf-ink, #111);
}

.pfmus-work-menu {
  position: fixed;
  z-index: 80;
  width: 200px;
  min-width: 200px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 12px;
  background: var(--pf-card, #fff);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2);
  border: 1px solid var(--pf-line, #e6e8ec);
}

.pfmus-work-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pfmus-work-menu button,
.pfmus-work-actions button {
  border: 1px solid var(--pf-line, #e6e8ec);
  background: transparent;
  color: inherit;
  border-radius: 999px;
  padding: 5px 10px;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
}

.pfmus-work-menu button {
  width: 100%;
  border: 0;
  border-radius: 8px;
  text-align: left;
  padding: 8px 10px;
}

.pfmus-work-menu button:hover {
  background: var(--pf-fill, #f3f4f6);
}

.pfmus-work-actions button.on,
.pfmus-work-menu button.on {
  background: #ecfccb;
  border-color: #d9f99d;
  color: #3f6212;
}

.pfmus-work-body .pfmus-extend,
.pfmus-work-body .pfmus-lyrics {
  margin: 0;
}

.pfmus-work-list li.on {
  background: #f3fbfa;
  border-color: rgba(45, 212, 191, 0.45);
  box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.12);
}

.pfmus-work-nowtag {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.18);
  color: #0f766e;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 700;
  vertical-align: middle;
}

.pfmus-cover {
  position: relative;
  width: 92px;
  height: 92px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #1a1d22;
  transform: scale(1);
  transition: transform 0.2s ease;
}

.pfmus-cover img,
.pfmus-cover-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pfmus-cover-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
  opacity: 0.92;
}

.pfmus-cover:hover .pfmus-cover-play {
  background: rgba(0, 0, 0, 0.5);
  opacity: 1;
}

.pfmus-cover-play.on {
  background: transparent;
  color: #fff;
  opacity: 1;
}

.pfmus-cover:hover .pfmus-cover-play.on {
  background: rgba(0, 0, 0, 0.5);
}

.pfmus-cover-pause {
  display: none;
}

.pfmus-cover:hover .pfmus-cover-play.on .pfmus-eq,
.pfmus-now-ctrls button.on:hover .pfmus-eq {
  display: none;
}

.pfmus-cover:hover .pfmus-cover-play.on .pfmus-cover-pause,
.pfmus-now-ctrls button.on:hover .pfmus-cover-pause {
  display: block;
}

.pfmus-eq {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2.5px;
  width: 16px;
  height: 14px;
}

.pfmus-eq i {
  display: block;
  width: 2.5px;
  height: 100%;
  border-radius: 2px;
  background: currentColor;
  transform-origin: center bottom;
  animation: pfmus-eq-bounce 0.7s ease-in-out infinite;
}

.pfmus-eq i:nth-child(1) {
  animation-duration: 0.52s;
}

.pfmus-eq i:nth-child(2) {
  animation-duration: 0.68s;
  animation-delay: -0.18s;
}

.pfmus-eq i:nth-child(3) {
  animation-duration: 0.46s;
  animation-delay: -0.08s;
}

.pfmus-eq i:nth-child(4) {
  animation-duration: 0.62s;
  animation-delay: -0.28s;
}

@keyframes pfmus-eq-bounce {
  0%,
  100% {
    transform: scaleY(0.28);
  }
  50% {
    transform: scaleY(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pfmus-eq i {
    animation: none;
    transform: scaleY(0.7);
  }
  .pfmus-eq i:nth-child(2),
  .pfmus-eq i:nth-child(4) {
    transform: scaleY(1);
  }
  .pfmus-eq i:nth-child(3) {
    transform: scaleY(0.45);
  }
}

.pfmus-work-meta strong,
.pfmus-work-meta span {
  display: block;
}

.pfmus-work-meta strong {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.pfmus-ws-save {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 8px;
  min-width: 0;
}

.pfmus-ws-save-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--pf-muted, #6b7280);
  font-size: 0.8rem;
  font-weight: 500;
}

.pfmus-ws-save-label svg {
  flex: 0 0 auto;
  opacity: 0.85;
}

.pfmus-ws-save-pick {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--pf-line, #e6e8ec);
  background: var(--pf-fill, #f3f4f6);
  color: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.pfmus-ws-save-pick select {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.pfmus-work-meta span {
  color: var(--pf-muted, #6b7280);
  font-size: 0.8rem;
  line-height: 1.4;
}

.pfmus-audio {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.pfmus-now {
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px 14px;
  border: 1px solid var(--pf-line, #e6e8ec);
  border-radius: 18px;
  background: var(--pf-card, #fff);
  color: var(--pf-ink, #111);
  overflow: hidden;
  box-sizing: border-box;
}

.pfmus-now-close {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--pf-muted, #6b7280);
  cursor: pointer;
}

.pfmus-now-close:hover {
  background: rgba(15, 23, 42, 0.08);
  color: var(--pf-ink, #111);
}

.pfmus-now-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding-top: 4px;
}

.pfmus-now-main .pfmus-cover {
  width: 88px;
  height: 88px;
  border-radius: 10px;
}

.pfmus-now-meta {
  min-width: 0;
  width: 100%;
  text-align: center;
}

.pfmus-now-meta strong,
.pfmus-now-meta span {
  display: block;
}

.pfmus-now-meta strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
}

.pfmus-now-meta span {
  margin-top: 2px;
  color: var(--pf-muted, #6b7280);
  font-size: 0.75rem;
}

.pfmus-now-seek {
  margin-top: 4px;
}

.pfmus-now-seek input[type='range'] {
  width: 100%;
  height: 4px;
  margin: 4px 0;
  accent-color: #2dd4bf;
  cursor: pointer;
}

.pfmus-now-ctrls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
}

.pfmus-now-ctrls button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--pf-line, #e6e8ec);
  background: transparent;
  color: inherit;
  border-radius: 999px;
  cursor: pointer;
}

.pfmus-now-ctrls button.on {
  width: 34px;
  height: 34px;
  background: var(--pf-ink, #111);
  color: #fff;
  border-color: transparent;
}

.pfmus-now-tabs {
  display: flex;
  gap: 6px;
}

.pfmus-now-tabs button {
  border: 1px solid var(--pf-line, #e6e8ec);
  background: transparent;
  color: inherit;
  border-radius: 999px;
  padding: 2px 8px;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
}

.pfmus-now-tabs button.on {
  background: var(--pf-ink, #111);
  color: #fff;
  border-color: transparent;
}

.pfmus-now-copy {
  flex: 1 1 auto;
  min-height: 48px;
  margin: 0;
  overflow: auto;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--pf-fill, #f7f8fa);
  color: inherit;
  font: inherit;
  font-size: 0.76rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.pfmus-now-empty {
  margin: 0;
  color: var(--pf-muted, #6b7280);
  font-size: 0.86rem;
}

:is(.is-dark, .pf-theme-dark) .pfmus-now {
  background: #16181c;
  border-color: rgba(255, 255, 255, 0.08);
  color: #e8eaed;
}

:is(.is-dark, .pf-theme-dark) .pfmus-now-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

:is(.is-dark, .pf-theme-dark) .pfmus-now-copy {
  background: rgba(255, 255, 255, 0.04);
}

:is(.is-dark, .pf-theme-dark) .pfmus-now-ctrls button,
:is(.is-dark, .pf-theme-dark) .pfmus-now-tabs button {
  border-color: rgba(255, 255, 255, 0.12);
}

:is(.is-dark, .pf-theme-dark) .pfmus-now-ctrls button.on,
:is(.is-dark, .pf-theme-dark) .pfmus-now-tabs button.on {
  background: #e8eaed;
  color: #111;
}

.pfmus-works .pfmus-empty {
  color: var(--pf-muted, #6b7280);
}

.pfmus-ops-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pfmus-ops-block > span {
  font-size: 0.75rem;
  color: var(--pf-muted, #9ca3af);
}

.pfmus-song-ops {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.pfmus-song-ops button {
  border: 1px solid var(--pf-line, #e6e8ec);
  background: transparent;
  color: inherit;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
}

.pfmus-works .pfmus-empty {
  flex: 1 1 auto;
  min-height: 0;
}

.pfmus-empty {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--pf-muted, #6b7280);
}

.pfmus-empty-guide {
  padding: 24px 36px 48px;
  text-align: center;
  gap: 12px;
}

.pfmus-empty-guide strong {
  max-width: 22em;
  color: var(--pf-ink, #111);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.45;
}

.pfmus-empty-guide p {
  max-width: 22em;
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--pf-muted, #6b7280);
}

:is(.is-dark, .pf-theme-dark) .pfmus-empty-guide strong {
  color: #e8eaed;
}

.pfmus-empty-login {
  margin-top: 6px;
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  background: var(--pf-ink, #111);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
}

:is(.is-dark, .pf-theme-dark) .pfmus-empty-login {
  background: #e8eaed;
  color: #111;
}

.pfmus-stem-mask {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 17, 21, 0.46);
}

.pfmus-stem-box {
  width: min(560px, 100%);
  max-height: min(78vh, 720px);
  overflow: auto;
  border-radius: 18px;
  background: var(--pf-card, #fff);
  color: var(--pf-ink, #111);
  padding: 18px 18px 16px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
}

.pfmus-stem-box header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pfmus-stem-box h3 {
  margin: 0;
  font-size: 1.05rem;
}

.pfmus-stem-box header button {
  border: 0;
  background: transparent;
  color: inherit;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  cursor: pointer;
}

.pfmus-stem-box > p {
  margin: 8px 0 14px;
  color: var(--pf-muted, #6b7280);
  font-size: 0.86rem;
}

.pfmus-stem-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.pfmus-stem-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--pf-line, #e6e8ec);
  border-radius: 14px;
}

.pfmus-stem-row strong {
  font-size: 0.82rem;
}

.pfmus-stem-wave {
  height: 44px;
  border-radius: 10px;
  background: #111;
  overflow: hidden;
}

.pfmus-stem-wave canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.pfmus-stem-wave.wait i,
.pfmus-stem-wave.wait {
  display: block;
  height: 44px;
  background: repeating-linear-gradient(
    90deg,
    #1f2937 0 6px,
    #2dd4bf 6px 8px,
    #1f2937 8px 14px
  );
  background-size: 48px 100%;
  animation: pfmus-wave 0.9s linear infinite;
}

@keyframes pfmus-wave {
  to { background-position: 48px 0; }
}

.pfmus-stem-ops {
  display: flex;
  gap: 6px;
}

.pfmus-stem-ops button {
  border: 1px solid var(--pf-line, #e6e8ec);
  background: transparent;
  color: inherit;
  border-radius: 999px;
  padding: 5px 10px;
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
}

.pfmus-stem-ops button:disabled {
  opacity: 0.45;
  cursor: default;
}

.pfmus-split-title {
  display: block;
  font-size: 1.02rem;
  font-weight: 650;
}

.pfmus-stem-note {
  margin: 0 0 12px;
  color: var(--pf-muted, #6b7280);
  font-size: 0.86rem;
  line-height: 1.6;
}

.pfmus-stem-go {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pfmus-stem-cancel {
  border: 1px solid var(--pf-line, #e6e8ec);
  background: transparent;
  color: inherit;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  font: inherit;
}

:is(.is-dark, .pf-theme-dark) .pfmus-stem-box {
  background: #16181c;
  color: #e8eaed;
}

:is(.is-dark, .pf-theme-dark) .pfmus-stem-row {
  border-color: rgba(255, 255, 255, 0.08);
}

:is(.is-dark, .pf-theme-dark) .pfmus-work-actions button {
  border-color: rgba(255, 255, 255, 0.12);
}

:is(.is-dark, .pf-theme-dark) .pfmus-work-list li:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

:is(.is-dark, .pf-theme-dark) .pfmus-work-list li.on {
  background: rgba(45, 212, 191, 0.1);
  border-color: rgba(45, 212, 191, 0.4);
}

:is(.is-dark, .pf-theme-dark) .pfmus-work-nowtag {
  background: rgba(45, 212, 191, 0.2);
  color: #5eead4;
}

:is(.is-dark, .pf-theme-dark) .pfmus-work-menu {
  background: #1a1c1f;
  border-color: rgba(255, 255, 255, 0.1);
}

:is(.is-dark, .pf-theme-dark) .pfmus-work-menu button:hover,
:is(.is-dark, .pf-theme-dark) .pfmus-work-more-btn:hover,
:is(.is-dark, .pf-theme-dark) .pfmus-work-more.open .pfmus-work-more-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.pfmus-disc {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #222 18%, #111 19%, #111 46%, #2a2a2a 47%, #111 70%, #5eead4 71%, #111 72%);
  display: block;
}

.pfmus-disc.lg {
  width: 88px;
  height: 88px;
}

.pfmus-vault-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 14px;
}

.pfmus-vault-grid button {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.pfmus-vault-grid img,
.pfmus-vault-grid .pfmus-disc {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 8px;
}

.pfmus-vault-grid strong,
.pfmus-vault-grid em {
  display: block;
}

.pfmus-vault-grid em {
  font-style: normal;
  color: var(--pf-muted, #6b7280);
  font-size: 0.78rem;
}

.pfmus-vault-grid li.on strong {
  color: #3f6212;
}

.pfmus-player {
  grid-area: player;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--pf-line, #e6e8ec);
  border-radius: 16px;
}

.pfmus-player audio {
  flex: 1;
  min-width: 0;
  height: 36px;
}

.pfmus-player strong,
.pfmus-player span {
  display: block;
}

.pfmus-player span {
  color: var(--pf-muted, #6b7280);
  font-size: 0.78rem;
}

:is(.is-dark, .pf-theme-dark) .pfmus-desk {
  --pfimg-card: #16181c;
  --pfimg-line: rgba(255, 255, 255, 0.11);
  --pfimg-line2: rgba(255, 255, 255, 0.06);
  --pfimg-lime-ink: #d6ff7a;
  --pfimg-lime-soft: rgba(182, 255, 0, 0.15);
  --pfimg-ink: #e8eaed;
  --pfimg-ink2: #d2d8ce;
  --pfimg-muted: #9aa0a6;
}

:is(.is-dark, .pf-theme-dark) .pfmus-composer-head,
:is(.is-dark, .pf-theme-dark) .pfmus-composer-dock {
  background: #16181c;
  border-color: rgba(255, 255, 255, 0.08);
}

:is(.is-dark, .pf-theme-dark) .pfmus-composer,
:is(.is-dark, .pf-theme-dark) .pfmus-works {
  background: #16181c;
  border-color: rgba(255, 255, 255, 0.08);
  color: #e8eaed;
}

:is(.is-dark, .pf-theme-dark) .pfmus-works-tabs {
  background: rgba(255, 255, 255, 0.06);
}

:is(.is-dark, .pf-theme-dark) .pfmus-works-tabs button {
  color: rgba(255, 255, 255, 0.55);
}

:is(.is-dark, .pf-theme-dark) .pfmus-works-tabs button.on {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: none;
}

:is(.is-dark, .pf-theme-dark) .pfmus-works-upload,
:is(.is-dark, .pf-theme-dark) .pfmus-works-icon,
:is(.is-dark, .pf-theme-dark) .pfmus-ws-view,
:is(.is-dark, .pf-theme-dark) .pfmus-ws-mini,
:is(.is-dark, .pf-theme-dark) .pfmus-ws-chip.on {
  background: #121416;
  border-color: rgba(255, 255, 255, 0.14);
  color: #e8eaed;
}

:is(.is-dark, .pf-theme-dark) .pfmus-works-icon,
:is(.is-dark, .pf-theme-dark) .pfmus-ws-mini {
  color: rgba(255, 255, 255, 0.7);
}

:is(.is-dark, .pf-theme-dark) .pfmus-ws-save-pick,
:is(.is-dark, .pf-theme-dark) .pfmus-ws-name {
  background: #121416;
  border-color: rgba(255, 255, 255, 0.14);
  color: #e8eaed;
}

:is(.is-dark, .pf-theme-dark) .pfmus-ws-chip-x:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

:is(.is-dark, .pf-theme-dark) .pfmus-card,
:is(.is-dark, .pf-theme-dark) .pfmus-line,
:is(.is-dark, .pf-theme-dark) .pfmus-player {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

:is(.is-dark, .pf-theme-dark) .pfmus-lyricpad {
  background: #121416;
  border-color: rgba(255, 255, 255, 0.1);
}

:is(.is-dark, .pf-theme-dark) .pfmus-lyricpad .pfmus-tags,
:is(.is-dark, .pf-theme-dark) .pfmus-lyric-pop-card .pfmus-tags {
  background: rgba(255, 255, 255, 0.06);
}

:is(.is-dark, .pf-theme-dark) .pfmus-desk .pfmus-lyricpad .pfmus-tags button,
:is(.is-dark, .pf-theme-dark) .pfmus-desk .pfmus-lyric-pop-card .pfmus-tags button {
  color: rgba(255, 255, 255, 0.55);
}

:is(.is-dark, .pf-theme-dark) .pfmus-desk .pfmus-lyricpad .pfmus-tags button:hover,
:is(.is-dark, .pf-theme-dark) .pfmus-desk .pfmus-lyric-pop-card .pfmus-tags button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

:is(.is-dark, .pf-theme-dark) .pfmus-lyricpad:focus-within {
  border-color: rgba(45, 212, 191, 0.5);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.14);
}

:is(.is-dark, .pf-theme-dark) .pfmus-desk .pfmus-lyricpad .pfmus-lyrics-input,
:is(.is-dark, .pf-theme-dark) .pfmus-desk .pfmus-card textarea {
  background: transparent !important;
  border: 0 !important;
  color: #e8eaed;
}

:is(.is-dark, .pf-theme-dark) .pfmus-desk .pfmus-lyricpad .pfmus-lyrics-input::placeholder {
  color: #6b7280;
}

:is(.is-dark, .pf-theme-dark) .pfmus-lyric-pop-card {
  background: #1a1c1f;
  color: #e8eaed;
}

:is(.is-dark, .pf-theme-dark) .pfmus-lyric-expand:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

:is(.is-dark, .pf-theme-dark) .pfmus-tabs button.on {
  color: #fff;
}

:is(.is-dark, .pf-theme-dark) .pfmus-make,
:is(.is-dark, .pf-theme-dark) .pfmus-split-hist {
  background: var(--pf-lime, #b6ff00);
  color: #12180a;
}

:is(.is-dark, .pf-theme-dark) .pfmus-split-card {
  background: rgba(255, 255, 255, 0.04);
}

:is(.is-dark, .pf-theme-dark) .pfmus-split-pick,
:is(.is-dark, .pf-theme-dark) .pfmus-split-lib button {
  background: #121418;
}

:is(.is-dark, .pf-theme-dark) .pfmus-split-pick svg {
  color: #2dd4bf;
}

.pfmus-spin {
  animation: pfmus-spin 0.8s linear infinite;
}

@keyframes pfmus-spin {
  to { transform: rotate(360deg); }
}

/* 暗色：压过整站暗色下对 header/section/button 的通用底色 */
.pf-shell.is-dark .pf-shell-main .pfmus-sitebar,
.pf-theme-dark .pf-shell-main .pfmus-sitebar {
  background: #16181c;
  color: #e8eaed;
}

.pf-shell.is-dark .pf-shell-main .pfmus-composer,
.pf-shell.is-dark .pf-shell-main .pfmus-works,
.pf-theme-dark .pf-shell-main .pfmus-composer,
.pf-theme-dark .pf-shell-main .pfmus-works {
  background: #16181c;
}

.pf-shell.is-dark .pf-shell-main .pfmus-make,
.pf-shell.is-dark .pf-shell-main .pfmus-split-hist,
.pf-theme-dark .pf-shell-main .pfmus-make,
.pf-theme-dark .pf-shell-main .pfmus-split-hist {
  background: var(--pf-lime, #b6ff00);
  color: #12180a;
}

@media (max-width: 860px) {
  .pfmus-desk {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(120px, 26%) minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      'sitebar'
      'rail'
      'composer'
      'works';
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }

  .pfmus-sitebar {
    min-height: 48px;
    padding: 0 12px;
    border-radius: 18px;
  }

  .pfmus-crumb {
    display: none;
  }

  .pfmus-sitebar .pfmus-brand .brand-word {
    font-size: 15px;
  }

  .pfmus-rail {
    flex-direction: row;
    flex-wrap: wrap;
    border-radius: 16px;
  }

  .pfmus-rail p {
    flex: 1 0 100%;
    margin: 8px 4px 0;
  }

  .pfmus-rail button {
    flex: 1 1 140px;
  }

  .pfmus-rail-fold {
    flex: 0 0 auto;
    margin-top: 0;
  }

  .pfmus-desk.is-rail-off {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto minmax(0, 1fr) minmax(0, 1fr);
  }

  .pfmus-desk.is-rail-off .pfmus-rail {
    flex-wrap: nowrap;
    align-items: center;
  }

  .pfmus-desk.is-rail-off .pfmus-rail-head {
    flex-direction: row;
  }

  .pfmus-desk.is-rail-off .pfmus-rail > button {
    flex: 0 0 40px;
    width: 40px;
  }

  .pfmus-desk.is-split {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(120px, 26%) minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      'sitebar'
      'rail'
      'composer'
      'works';
  }

  .pfmus-split-pair {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .pfmus-works-body.is-open {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) minmax(220px, 42%);
    padding: 0 10px 10px;
  }
}
