body.workspace-body {
  color-scheme: dark;
  --canvas: #08090c;
  --surface: #111318;
  --surface-subtle: #171a20;
  --surface-strong: #21252d;
  --ink: #f5f5f2;
  --ink-secondary: #b3b6bd;
  --ink-tertiary: #7e838d;
  --ink-inverse: #111315;
  --line: #292d35;
  --line-strong: #454b56;
  --signal: #62e29b;
  --signal-strong: #36be78;
  --signal-soft: #122c20;
  --stage: #e7ad50;
  --stage-soft: #302412;
  --danger: #f16d71;
  --danger-soft: #33191d;
  --info: #73b5ff;
  --info-soft: #14263d;
  --shadow: 0 12px 32px rgb(0 0 0 / 28%);
  --surface-raised: var(--surface-strong);
  --ink-primary: var(--ink);
  --line-default: var(--line);
  --success: var(--signal-strong);
  --warning: var(--stage);
  --shadow-sm: var(--shadow);
  overflow-x: hidden;
  background: var(--canvas);
}

.workspace {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.workspace-sidebar {
  position: fixed;
  z-index: var(--z-sidebar);
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  border-right: 1px solid #20232a;
  background: #090a0d;
}

.workspace-brand {
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 0 8px 14px;
}

.workspace-brand .brand-mark {
  color: var(--signal);
  border-color: #3a3f47;
  background: #111318;
}

.brand-edition {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-tertiary);
  font-size: 10px;
  white-space: nowrap;
}

.workspace-nav {
  display: grid;
  gap: 3px;
  overflow-y: auto;
  scrollbar-width: none;
}

.workspace-nav::-webkit-scrollbar {
  display: none;
}

.nav-label {
  padding: 17px 10px 5px;
  color: #626772;
  font-size: 11px;
  font-weight: 700;
}

.workspace-nav a,
.sidebar-credit,
.sidebar-account {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: var(--ink-secondary);
  font-weight: 500;
  text-decoration: none;
}

.workspace-nav a:hover,
.sidebar-credit:hover,
.sidebar-account:hover {
  color: var(--ink);
  background: #121419;
}

.workspace-nav a.active,
.workspace-nav a[aria-current="page"],
.sidebar-credit.active,
.sidebar-account.active {
  color: var(--ink);
  border-color: #30343d;
  background: #17191f;
}

.workspace-nav a.active .icon,
.workspace-nav a[aria-current="page"] .icon {
  color: var(--signal);
}

.workspace-sidebar-foot {
  display: grid;
  gap: 3px;
  margin-top: auto;
}

.workspace-filing {
  color: var(--ink-tertiary);
  font-size: 12px;
  text-align: center;
}

.workspace-filing a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.mobile-app-shell > .workspace-filing {
  padding-bottom: calc(var(--mobile-nav-height) + var(--safe-bottom));
}

.sidebar-credit strong {
  margin-left: auto;
  color: var(--signal);
  font-variant-numeric: tabular-nums;
}

.workspace-switch {
  display: grid;
  gap: 3px;
  margin-top: 8px;
  padding: 10px;
  border-top: 1px solid var(--line);
}

.workspace-switch a {
  min-height: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-tertiary);
  font-size: 12px;
  text-decoration: none;
}

.workspace-main {
  min-width: 0;
  grid-column: 2;
}

.workspace-topbar {
  position: sticky;
  z-index: var(--z-sticky);
  top: 0;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 24px;
  border-bottom: 1px solid var(--line);
  background: rgb(8 9 12 / 92%);
  backdrop-filter: blur(16px);
}

.mobile-brand {
  display: none;
}

.page-context {
  min-width: 0;
}

.page-context h1 {
  margin: 0;
  font-size: var(--text-3);
  line-height: var(--leading-3);
}

.page-context p {
  margin: 2px 0 0;
  overflow: hidden;
  color: var(--ink-tertiary);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
}

.credit-button,
.task-button,
.account-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink-secondary);
  background: #111318;
  font-weight: 500;
  text-decoration: none;
}

.credit-button {
  justify-content: center;
  padding-inline: 12px;
}

.credit-button strong,
.task-button strong {
  min-width: 0;
  max-width: 7ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.workspace-content {
  width: min(var(--content-max), 100%);
  margin: 0 auto;
  padding: 30px 32px 64px;
}

.creator-workspace .authenticated-only {
  display: none;
}

html[data-authenticated] .creator-workspace .guest-only {
  display: none;
}

html[data-authenticated] .creator-workspace .authenticated-only {
  display: block;
}

.workspace-session-home {
  padding-top: 6px;
}

.workspace-auth-fallback {
  min-height: calc(100dvh - 154px);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  padding: 32px;
  text-align: center;
}

.workspace-auth-fallback-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in oklch, var(--signal), transparent 55%);
  border-radius: 50%;
  color: var(--signal-strong);
  background: var(--signal-soft);
}

.workspace-auth-fallback-icon .icon {
  width: 26px;
  height: 26px;
}

.workspace-auth-fallback span,
.workspace-auth-fallback h2,
.workspace-auth-fallback p {
  margin: 0;
}

.workspace-auth-fallback > div > span {
  color: var(--signal-strong);
  font-size: 12px;
  font-weight: 700;
}

.workspace-auth-fallback h2 {
  margin-top: 6px;
  font-size: var(--text-7);
  line-height: var(--leading-7);
}

.workspace-auth-fallback p {
  margin-top: 8px;
  color: var(--ink-secondary);
}

.workspace-entry-copy {
  max-width: 600px;
}

.workspace-auth-fallback .workspace-entry-login {
  margin-top: -2px;
  color: var(--ink-tertiary);
  font-size: 13px;
}

.workspace-entry-login a {
  color: var(--ink-secondary);
  font-weight: 600;
  text-underline-offset: 3px;
}

.workspace-entry-login a:hover {
  color: var(--signal-strong);
}

.workspace-auth-fallback-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
}

@media (max-width: 639px) {
  .workspace-auth-fallback {
    min-height: calc(100dvh - 150px - var(--mobile-nav-height));
    padding: 28px 0;
  }

  .workspace-auth-fallback h2 {
    font-size: var(--text-6);
    line-height: var(--leading-6);
  }

  .workspace-auth-fallback-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.page-heading h2 {
  margin: 0;
  font-size: var(--text-7);
  line-height: var(--leading-7);
}

.page-heading p {
  max-width: 660px;
  margin: 6px 0 0;
  color: var(--ink-secondary);
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.panel-head {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.panel-head h3,
.panel-head p {
  margin: 0;
}

.panel-head h3 {
  font-size: 15px;
}

.panel-head p {
  margin-top: 2px;
  color: var(--ink-tertiary);
  font-size: 12px;
}

.panel-body {
  padding: 16px;
}

.panel-footer {
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px 20px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}

.panel-footer > span {
  min-width: 0;
  color: var(--ink-secondary);
  line-height: var(--leading-3);
  overflow-wrap: anywhere;
}

.panel-footer > .btn {
  min-width: 148px;
  flex: 0 0 auto;
}

.create-home {
  width: min(980px, 100%);
  margin: 8px auto 0;
}

.create-home-title {
  margin-bottom: 22px;
  text-align: center;
}

.create-home-title > span {
  color: var(--signal);
  font-size: 12px;
  font-weight: 700;
}

.create-home-title h2 {
  margin: 8px 0 4px;
  font-size: var(--text-8);
  line-height: var(--leading-8);
}

.create-home-title p {
  margin: 0;
  color: var(--ink-tertiary);
}

.prompt-studio {
  overflow: hidden;
  border: 1px solid #3b404a;
  border-radius: var(--radius-lg);
  background: #12151b;
  box-shadow: 0 18px 50px rgb(0 0 0 / 26%);
}

.prompt-studio > textarea {
  width: 100%;
  min-height: 150px;
  display: block;
  padding: 22px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 16px;
  line-height: 1.7;
  resize: vertical;
}

.prompt-studio > textarea::placeholder {
  color: #686e79;
}

.prompt-toolbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-top: 1px solid var(--line);
}

.segmented.compact {
  width: auto;
}

.prompt-provider {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-tertiary);
  font-size: 12px;
}

.prompt-provider .icon {
  color: var(--signal);
}

.generate-button {
  min-width: 100px;
  margin-left: auto;
}

.prompt-options {
  display: grid;
  grid-template-columns: minmax(180px, 0.75fr) minmax(430px, 1.7fr) 100px;
  gap: 14px;
  align-items: end;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
  background: #0e1015;
}

.music-model-picker {
  display: grid;
  grid-template-columns: repeat(var(--music-model-count, 3), minmax(0, 1fr));
  gap: 6px;
}

.prompt-options > .music-model-field {
  grid-column: 1 / 3;
}

.prompt-options > .cost-copy {
  grid-column: 3;
}

.music-model-picker button {
  min-width: 0;
  min-height: 64px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-secondary);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
}

.music-model-picker button:hover,
.music-model-picker button.active,
.music-model-picker button[aria-pressed="true"] {
  border-color: #3b7256;
  background: var(--signal-soft);
}

.music-model-picker strong,
.music-model-picker small,
.music-model-picker b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.music-model-picker strong {
  color: var(--ink);
  font-size: 12px;
}

.music-model-picker small {
  margin-top: 2px;
  color: var(--ink-tertiary);
  font-size: 10px;
}

.music-model-picker b {
  color: var(--signal);
  font-size: 10px;
}

.cost-copy {
  min-height: 42px;
  display: grid;
  align-content: center;
  color: var(--ink-tertiary);
  font-size: 11px;
}

.cost-copy strong {
  color: var(--signal);
  font-size: 15px;
}

.advanced-creation {
  border-top: 1px solid var(--line);
}

.advanced-creation > summary,
.lyrics-tool > summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: var(--ink-secondary);
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

.advanced-creation > summary::-webkit-details-marker,
.lyrics-tool > summary::-webkit-details-marker {
  display: none;
}

.advanced-creation > summary span {
  margin-left: auto;
  color: var(--ink-tertiary);
  font-size: 11px;
}

.advanced-grid,
.lyrics-assistant-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.advanced-grid {
  padding: 16px;
  border-top: 1px solid var(--line);
}

.field-full {
  grid-column: 1 / -1;
}

.lyrics-editor {
  min-height: 220px;
}

.lyrics-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lyrics-field-head .btn {
  min-height: 30px;
  color: var(--ink-secondary);
}

.modal:has(.pronunciation-review) {
  width: min(680px, calc(100% - 28px));
}

.pronunciation-review .modal-head small {
  display: block;
  margin-top: 3px;
  color: var(--ink-tertiary);
}

.pronunciation-review .modal-body {
  max-height: min(590px, calc(100vh - 180px));
  overflow-y: auto;
}

.pronunciation-intro {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink-secondary);
  background: var(--surface-raised);
}

.pronunciation-intro .icon {
  flex: 0 0 auto;
  color: var(--signal);
}

.pronunciation-intro p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.pronunciation-list {
  display: grid;
  gap: 9px;
}

.pronunciation-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.pronunciation-item:has(input:checked) {
  border-color: color-mix(in oklch, var(--signal), var(--line) 48%);
  background: color-mix(in oklch, var(--signal), var(--surface) 95%);
}

.pronunciation-item > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pronunciation-check {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  margin-top: 1px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: transparent;
  background: var(--surface);
  cursor: pointer;
}

.pronunciation-check .icon {
  width: 14px;
  height: 14px;
}

.pronunciation-item > input:focus-visible + .pronunciation-check {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

.pronunciation-item > input:checked + .pronunciation-check {
  border-color: var(--signal);
  color: var(--surface);
  background: var(--signal);
}

.pronunciation-content {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.pronunciation-meta {
  color: var(--ink-tertiary);
  font-size: 12px;
}

.pronunciation-context {
  overflow: hidden;
  color: var(--ink-secondary);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pronunciation-change {
  display: grid;
  grid-template-columns: minmax(64px, auto) 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.pronunciation-change del {
  overflow: hidden;
  color: var(--danger);
  font-weight: var(--weight-bold);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pronunciation-change > .icon {
  width: 16px;
  color: var(--ink-tertiary);
}

.pronunciation-change .input {
  min-height: 36px;
  padding: 6px 9px;
  color: var(--ink);
  font-weight: var(--weight-bold);
}

.pronunciation-content > small {
  color: var(--ink-tertiary);
  font-size: 12px;
  line-height: 1.45;
}

.pronunciation-selected {
  margin-right: auto;
  color: var(--ink-secondary);
  font-size: 13px;
}

@media (max-width: 540px) {
  .modal:has(.pronunciation-review) {
    width: calc(100% - 16px);
    max-height: calc(100vh - 16px);
  }

  .pronunciation-review .modal-body {
    max-height: calc(100vh - 196px);
    padding: 12px;
  }

  .pronunciation-change {
    grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1.35fr);
  }

  .pronunciation-review .modal-foot .btn {
    flex: 1 1 calc(50% - 4px);
  }
}

/* Experience modes: one capability set, two levels of guidance. */
.simple-only {
  display: none !important;
}

html[data-experience="simple"] .simple-only:not([hidden]) {
  display: revert !important;
}

html[data-experience="simple"] .professional-only {
  display: none !important;
}

.experience-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--canvas);
}

.experience-control button {
  min-width: 0;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 8px;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--ink-tertiary);
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.experience-control button:hover {
  color: var(--ink);
  background: var(--surface-subtle);
}

.experience-control button.active,
.experience-control button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--surface-strong);
}

.experience-control button.active:first-child,
.experience-control button[aria-pressed="true"]:first-child {
  color: var(--signal);
}

.experience-control-sidebar {
  margin: 0 0 8px;
}

.experience-control-topbar {
  min-width: 112px;
  display: none;
  background: #111318;
}

.experience-control-topbar button {
  min-height: 30px;
  padding: 4px 9px;
}

@media (min-width: 821px) {
  .experience-control-topbar {
    display: grid;
  }
}

.simple-journey {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

html[data-experience="simple"] .simple-journey {
  display: grid !important;
}

.simple-journey > div {
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
}

.simple-journey > div > span {
  width: 28px;
  height: 28px;
  display: grid;
  grid-row: 1 / span 2;
  place-items: center;
  border-radius: 50%;
  color: #08130d;
  background: var(--signal);
  font-size: 12px;
  font-weight: 800;
}

.simple-journey strong,
.simple-journey small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.simple-journey small {
  color: var(--ink-tertiary);
  font-size: 11px;
}

.simple-journey > .icon {
  color: var(--ink-tertiary);
}

.creation-flow {
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #0d0f13;
  list-style: none;
}

.creation-flow li {
  min-width: 0;
  min-height: 62px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
}

.creation-flow li + li {
  border-left: 1px solid var(--line);
}

.creation-flow li > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 700;
}

.creation-flow li.active > span {
  border-color: var(--signal);
  color: #08130d;
  background: var(--signal);
}

.creation-flow strong,
.creation-flow small {
  display: block;
}

.creation-flow small {
  margin-top: 1px;
  color: var(--ink-tertiary);
  font-size: 11px;
}

.professional-submit {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: #0e1015;
}

.professional-submit > div {
  display: grid;
  margin-right: auto;
}

.professional-submit span {
  color: var(--ink-tertiary);
  font-size: 11px;
}

.professional-submit strong {
  color: var(--signal);
  font-size: 13px;
}

.simple-create-note {
  align-items: flex-start;
  gap: 9px;
  width: min(760px, 100%);
  margin: 14px auto 0;
  color: var(--ink-tertiary);
  font-size: 12px;
  line-height: 1.55;
}

html[data-experience="simple"] .simple-create-note {
  display: flex !important;
}

.simple-create-note .icon {
  margin-top: 1px;
  color: var(--signal);
}

html[data-experience="simple"] .create-home {
  width: min(760px, 100%);
}

html[data-experience="simple"] .prompt-studio > textarea {
  min-height: 190px;
  padding: 24px;
  font-size: 17px;
}

html[data-experience="simple"] .prompt-options {
  grid-template-columns: 1fr;
  padding: 10px 14px;
}

html[data-experience="simple"] .voice-studio,
html[data-experience="simple"] .advanced-creation {
  display: none !important;
}

html[data-experience="simple"] .cost-copy {
  min-height: 32px;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 8px;
}

html[data-experience="simple"] .cost-copy small {
  text-align: right;
}

html[data-experience="simple"] .preset-row button {
  aspect-ratio: 2.25 / 1;
}

html[data-experience="simple"] .overview-new-button {
  display: none;
}

@media (max-width: 820px), (max-width: 1024px) and (max-height: 500px) {
  .experience-control-sidebar {
    display: none;
  }

  .experience-control-topbar {
    display: grid;
  }

  .simple-journey {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .simple-journey > .icon {
    display: none;
  }

  .simple-journey strong,
  .simple-journey small {
    white-space: normal;
  }
}

@media (max-width: 540px) {
  .workspace-topbar {
    gap: 8px;
  }

  .page-context {
    min-width: 44px;
  }

  .page-context h1 {
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar-actions {
    gap: 5px;
  }

  .experience-control-topbar {
    min-width: 98px;
  }

  .experience-control-topbar button {
    min-height: 40px;
    padding-inline: 6px;
    font-size: 11px;
  }

  .credit-button {
    min-width: var(--touch-target);
    min-height: var(--touch-target);
    padding-inline: 7px;
  }

  .mobile-brand {
    width: var(--touch-target);
    height: var(--touch-target);
    display: grid;
    place-items: center;
  }

  .credit-button .icon {
    display: none;
  }

  .creation-flow li {
    min-height: 54px;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 7px;
    padding: 8px;
  }

  .creation-flow li > span {
    width: 24px;
    height: 24px;
  }

  .creation-flow small {
    display: none;
  }

  .creation-flow strong {
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .professional-submit {
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
  }

  .professional-submit .btn {
    width: 100%;
  }

  html[data-experience="simple"] .prompt-studio > textarea {
    min-height: 152px;
    padding: 17px;
    font-size: 16px;
  }

  html[data-experience="simple"] .prompt-toolbar {
    align-items: stretch;
    flex-wrap: wrap;
  }

  html[data-experience="simple"] .prompt-toolbar .segmented {
    width: 100%;
  }

  html[data-experience="simple"] .generate-button {
    width: 100%;
    margin-left: 0;
  }

  html[data-experience="simple"] .preset-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-experience="simple"] .preset-row button {
    aspect-ratio: 1.65 / 1;
  }
}

.lyrics-tool {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #0e1015;
}

.lyrics-assistant-grid {
  padding: 16px;
  border-top: 1px solid var(--line);
}

.preset-head,
.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.preset-head {
  margin-top: 16px;
  color: var(--ink-tertiary);
  font-size: 12px;
}

.preset-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 8px;
}

.preset-row button {
  aspect-ratio: 1.9 / 1;
  min-width: 0;
  padding: 12px;
  display: flex;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: white;
  background-color: #30343b;
  background-image: linear-gradient(rgb(0 0 0 / 28%), rgb(0 0 0 / 28%));
  background-size: cover;
  background-position: center;
  background-blend-mode: normal;
  font-weight: 700;
  text-align: left;
  text-shadow: 0 1px 3px rgb(0 0 0 / 45%);
  cursor: pointer;
}

.preset-row button:hover {
  border-color: var(--signal);
}

.preset-row button[data-preset-bg="papercut"] {
  background-image: linear-gradient(rgb(0 0 0 / 24%), rgb(0 0 0 / 30%)), url("../images/presets/preset-papercut.svg?v=20260914-style-sketches-1");
  background-color: #5b1e0e;
}
.preset-row button[data-preset-bg="xianxia"] {
  background-image: linear-gradient(rgb(0 0 0 / 22%), rgb(0 0 0 / 30%)), url("../images/presets/preset-xianxia.svg?v=20260914-style-sketches-1");
  background-color: #0c3a4d;
}
.preset-row button[data-preset-bg="neon"] {
  background-image: linear-gradient(rgb(0 0 0 / 20%), rgb(0 0 0 / 32%)), url("../images/presets/preset-neon.svg?v=20260914-style-sketches-1");
  background-color: #1e1b4b;
}
.preset-row button[data-preset-bg="warm"] {
  background-image: linear-gradient(rgb(0 0 0 / 18%), rgb(0 0 0 / 30%)), url("../images/presets/preset-warm.svg?v=20260914-style-sketches-1");
  background-color: #5a3410;
}
.preset-row button[data-preset-bg="rock"] {
  background-image: linear-gradient(rgb(0 0 0 / 22%), rgb(0 0 0 / 28%)), url("../images/presets/preset-rock.svg?v=20260914-style-sketches-1");
  background-color: #4c1414;
}
.preset-row button[data-preset-bg="edm"] {
  background-image: linear-gradient(rgb(0 0 0 / 20%), rgb(0 0 0 / 30%)), url("../images/presets/preset-edm.svg?v=20260914-style-sketches-1");
  background-color: #131c33;
}
.preset-row button[data-preset-bg="jazz"] {
  background-image: linear-gradient(rgb(0 0 0 / 20%), rgb(0 0 0 / 30%)), url("../images/presets/preset-jazz.svg?v=20260914-style-sketches-1");
  background-color: #3b2416;
}
.preset-row button[data-preset-bg="hiphop"] {
  background-image: linear-gradient(rgb(0 0 0 / 20%), rgb(0 0 0 / 30%)), url("../images/presets/preset-hiphop.svg?v=20260914-style-sketches-1");
  background-color: #1c2536;
}
.preset-row button[data-preset-bg="piano"] {
  background-image: linear-gradient(rgb(0 0 0 / 20%), rgb(0 0 0 / 28%)), url("../images/presets/preset-piano.svg?v=20260914-style-sketches-1");
  background-color: #0f1b26;
}
.preset-row button[data-preset-bg="metal"] {
  background-image: linear-gradient(rgb(0 0 0 / 24%), rgb(0 0 0 / 30%)), url("../images/presets/preset-metal.svg?v=20260914-style-sketches-1");
  background-color: #1a1a1f;
}
.preset-row button[data-preset-bg="reggae"] {
  background-image: linear-gradient(rgb(0 0 0 / 16%), rgb(0 0 0 / 26%)), url("../images/presets/preset-reggae.svg?v=20260914-style-sketches-1");
  background-color: #0f3d2e;
}
.preset-row button[data-preset-bg="dreampop"] {
  background-image: linear-gradient(rgb(0 0 0 / 16%), rgb(0 0 0 / 26%)), url("../images/presets/preset-dreampop.svg?v=20260914-style-sketches-1");
  background-color: #3b2a52;
}
.preset-row button[data-preset-bg="orchestral"] {
  background-image: linear-gradient(rgb(0 0 0 / 20%), rgb(0 0 0 / 28%)), url("../images/presets/preset-orchestral.svg?v=20260914-style-sketches-1");
  background-color: #26160c;
}
.preset-row button[data-preset-bg="blues"] {
  background-image: linear-gradient(rgb(0 0 0 / 22%), rgb(0 0 0 / 30%)), url("../images/presets/preset-blues.svg?v=20260914-style-sketches-1");
  background-color: #101b33;
}
.preset-row button[data-preset-bg="rnb"] {
  background-image: linear-gradient(rgb(0 0 0 / 18%), rgb(0 0 0 / 28%)), url("../images/presets/preset-rnb.svg?v=20260914-style-sketches-1");
  background-color: #231230;
}
.preset-row button[data-preset-bg="latin"] {
  background-image: linear-gradient(rgb(0 0 0 / 16%), rgb(0 0 0 / 26%)), url("../images/presets/preset-latin.svg?v=20260914-style-sketches-1");
  background-color: #5c1a0e;
}

.groove-toggle .check-inline {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
  color: var(--ink-secondary);
  font-size: 12px;
  line-height: 1.6;
  cursor: pointer;
}

.groove-toggle .check-inline input {
  margin-top: 2px;
}

.groove-toggle .check-inline:hover {
  border-color: var(--signal);
}

.creation-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.creation-tools a {
  min-width: 0;
  min-height: 88px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 14px;
  color: var(--ink-secondary);
  text-decoration: none;
}

.creation-tools a + a {
  border-left: 1px solid var(--line);
}

.creation-tools a:hover {
  color: var(--ink);
  background: var(--surface);
}

.creation-tools a > .icon:first-child {
  width: 24px;
  height: 24px;
  color: var(--signal);
}

.creation-tools strong,
.creation-tools span {
  display: block;
}

.creation-tools span {
  margin-top: 3px;
  overflow: hidden;
  color: var(--ink-tertiary);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-section,
.mv-history {
  margin-top: 34px;
}

.section-row {
  margin-bottom: 14px;
}

.section-row h3,
.section-row p {
  margin: 0;
}

.section-row h3 {
  font-size: 18px;
}

.section-row p {
  margin-top: 3px;
  color: var(--ink-tertiary);
  font-size: 12px;
}

.section-row > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-secondary);
  font-size: 12px;
  text-decoration: none;
}

.work-list {
  min-width: 0;
}

.music-task-list {
  min-width: 0;
}

.music-task-library-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 4px;
  color: var(--ink-tertiary);
  font-size: 11px;
}

.music-task-library-head strong {
  color: var(--ink);
  font-size: 13px;
}

.music-task-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.music-task-row:last-child {
  border-bottom: 0;
}

.music-task-row > .cover.is-spinning .icon {
  animation: spin 1.1s linear infinite;
  transform-origin: center;
}

.music-task-preview-icon {
  cursor: pointer;
}

.music-task-preview-icon:hover,
.music-task-preview-icon:focus-visible {
  border-color: var(--signal);
  background: color-mix(in srgb, var(--signal), #1b1e25 88%);
}

.music-task-main,
.music-task-copy {
  min-width: 0;
}

.music-task-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.music-task-copy strong,
.music-task-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.music-task-copy span,
.music-task-main p {
  color: var(--ink-tertiary);
  font-size: 11px;
}

.music-task-main p {
  margin: 6px 0 0;
}

.music-task-main .music-task-error {
  color: var(--danger);
}

.music-task-progress {
  height: 5px;
  overflow: hidden;
  margin-top: 10px;
  border-radius: 3px;
  background: #252932;
}

.music-task-progress span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--signal);
  transition: width 250ms ease;
}

.music-task-side {
  display: flex;
  align-items: center;
  gap: 7px;
}

.music-task-side {
  justify-content: end;
}

.voice-studio {
  padding: 16px 18px 18px;
  border-top: 1px solid var(--line);
}

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

.voice-studio-head > div,
.voice-studio-head strong,
.voice-studio-head span {
  min-width: 0;
  display: block;
}

.voice-studio-head strong {
  color: var(--ink);
  font-size: 14px;
}

.voice-studio-head span {
  margin-top: 3px;
  color: var(--ink-tertiary);
  font-size: 12px;
}

.voice-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.voice-choice-wrap {
  position: relative;
  min-width: 0;
}

.voice-choice-wrap.has-actions .voice-choice {
  min-height: 84px;
  padding-bottom: 38px;
}

.voice-choice {
  width: 100%;
  height: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  column-gap: 9px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink);
  background: var(--surface-subtle);
  text-align: left;
  cursor: pointer;
}

.voice-picker > .voice-choice {
  padding-right: 11px;
}

.voice-choice > span {
  grid-row: 1 / 3;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--signal);
  background: color-mix(in oklch, var(--signal), transparent 88%);
}

.voice-choice small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-choice strong {
  min-width: 0;
  align-self: center;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.35;
  white-space: normal;
}

.voice-choice small {
  align-self: center;
  color: var(--ink-tertiary);
  font-size: 11px;
}

.voice-choice:hover:not(:disabled),
.voice-choice.active {
  border-color: var(--signal);
  background: color-mix(in oklch, var(--signal), var(--surface) 94%);
}

.voice-choice:disabled {
  opacity: .52;
  cursor: not-allowed;
}

.voice-preview,
.voice-continue,
.voice-edit,
.voice-delete {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 1;
  border: 0;
  color: var(--ink-secondary);
  background: transparent;
  cursor: pointer;
}

.voice-edit {
  right: 8px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.voice-card-actions {
  position: absolute;
  right: 6px;
  bottom: 5px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.voice-card-actions .voice-preview,
.voice-card-actions .voice-edit,
.voice-card-actions .voice-delete {
  width: 28px;
  height: 28px;
  min-height: 28px;
  position: static;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--ink-secondary);
  background: transparent;
  cursor: pointer;
}

.voice-card-actions .voice-preview span {
  display: none;
}

.voice-card-actions .voice-delete:hover {
  color: var(--danger);
  background: color-mix(in srgb, var(--danger), transparent 88%);
}

.voice-choice-wrap.has-preview.has-edit .voice-edit {
  right: 74px;
}

.voice-edit:hover,
.voice-preview:hover {
  color: var(--signal);
  background: var(--signal-soft);
}

.music-task-preview-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.music-task-preview-button {
  min-height: 42px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  column-gap: 7px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-secondary);
  background: var(--surface-subtle);
  text-align: left;
  cursor: pointer;
}

.music-task-preview-button .icon {
  grid-row: span 2;
}

.music-task-preview-button span { font-size: 11px; font-weight: 700; }
.music-task-preview-button small { color: var(--ink-tertiary); font-size: 9px; }
.music-task-preview-button:hover:not(:disabled) { border-color: var(--signal); color: var(--signal); }
.music-task-preview-button:disabled { opacity: .52; cursor: wait; }

.work-library-filters {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.work-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px 16px;
}

.work-search .input {
  flex: 1;
  min-width: 0;
}

.work-search .btn { min-height: 44px; }

.work-vocal-status {
  display: inline-flex;
  margin-top: 6px;
  padding: 3px 7px;
  border: 1px solid var(--warning);
  border-radius: var(--radius-sm);
  color: var(--ink-primary);
  font-size: 12px;
}

.work-lyrics-note,
.work-vocal-note {
  margin: 0;
  padding: 10px 16px;
  color: var(--ink-secondary);
  font-size: var(--workspace-label);
  line-height: 1.5;
}

.work-vocal-note {
  margin: 0 0 14px;
  border: 1px solid var(--warning);
  border-radius: var(--radius-sm);
  color: var(--ink-primary);
  background: var(--surface-raised);
}

.cover-generation-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--signal-strong);
  border-radius: var(--radius-md);
  color: var(--ink-secondary);
  background: var(--signal-soft);
}

.cover-generation-status[hidden] {
  display: none;
}

.cover-generation-status > i {
  width: 38px;
  height: 38px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: var(--signal);
}

.cover-generation-status > i .icon {
  animation: spin 1s linear infinite;
}

.cover-generation-status strong,
.cover-generation-status span {
  display: block;
}

.cover-generation-status span {
  margin-top: 3px;
  color: var(--ink-tertiary);
  font-size: 12px;
}

.download-format-list {
  display: grid;
  gap: 10px;
}

.download-format-list > a,
.download-format-list > button {
  min-height: 78px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: inherit;
  background: transparent;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.download-format-list > a:hover,
.download-format-list > button:hover:not(:disabled) {
  border-color: var(--signal-strong);
  background: var(--signal-soft);
}

.download-format-list > a > span,
.download-format-list > button > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  color: var(--signal);
  background: var(--surface-raised);
}

.download-format-list > button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.download-format-list strong,
.download-format-list p {
  display: block;
  margin: 0;
}

.download-format-list p {
  margin-top: 4px;
  color: var(--ink-tertiary);
  font-size: 12px;
  line-height: 1.45;
}

.voice-preview {
  width: auto;
  min-width: 58px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
}

.voice-preview:hover {
  color: var(--signal);
  background: var(--surface-raised);
}

.voice-continue {
  padding: 3px 6px;
  color: var(--signal);
  font-size: 11px;
}

.voice-safety,
.voice-rights {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--ink-secondary);
  font-size: 12px;
  line-height: 1.6;
}

.voice-safety {
  padding: 11px 12px;
  border-left: 3px solid var(--signal);
  background: var(--surface-subtle);
}

.voice-rights {
  padding: 2px;
}

.voice-rights input {
  flex: 0 0 auto;
  margin-top: 4px;
  accent-color: var(--signal);
}

.voice-clone-grid {
  padding-inline: 0;
}

.voice-recorder {
  gap: 10px;
}

.field-label {
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 700;
}

.voice-input-modes {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-self: start;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
}

.voice-input-modes button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 11px;
  border: 0;
  border-radius: calc(var(--radius-md) - 3px);
  color: var(--ink-tertiary);
  background: transparent;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.voice-input-modes button.active {
  color: var(--ink);
  background: var(--surface-raised);
  box-shadow: 0 1px 3px color-mix(in oklch, black, transparent 88%);
}

.voice-record-panel {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
}

/* 样本截取范围：开始/结束秒数水平对齐，标签与输入框统一排版 */
.voice-range-field {
  gap: 9px;
}

.voice-range-field .field-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.voice-range-field .field-label i {
  font-style: normal;
  font-weight: 500;
  color: var(--ink-tertiary);
}

.voice-range-inputs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 10px;
}

.voice-range-inputs .range-box {
  display: grid;
  gap: 6px;
}

.voice-range-inputs .range-box span {
  color: var(--ink-secondary);
  font-size: 12px;
}

.voice-range-inputs .range-sep {
  padding-bottom: 10px;
  color: var(--ink-tertiary);
  font-size: 12px;
}

.voice-record-panel[hidden],
.voice-recorder [data-upload-panel][hidden] {
  display: none;
}

.voice-record-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.voice-record-controls strong {
  margin-left: auto;
  min-width: 52px;
  color: var(--signal);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.voice-record-panel p {
  margin: 0;
  color: var(--ink-tertiary);
  font-size: 12px;
  line-height: 1.55;
}

.voice-record-panel audio {
  width: 100%;
  height: 38px;
}

.verification-phrase {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
}

.verification-phrase span {
  color: var(--ink-tertiary);
  font-size: 12px;
}

.verification-phrase strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.6;
}

.verification-phrase .btn {
  justify-self: start;
}

.work-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vocal-gender {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border-radius: 4px;
  color: var(--ink-secondary);
  background: var(--surface-raised);
  font-size: 11px;
}

.vocal-gender.f,
.work-voice.f {
  color: #f4a7bf;
}

.vocal-gender.m,
.work-voice.m {
  color: #82b8ef;
}

.work-total-heading {
  min-width: 68px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  padding-right: 14px;
  border-right: 1px solid var(--line);
}

.work-total-heading strong {
  color: var(--ink);
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}

.work-total-heading span {
  color: var(--ink-tertiary);
  font-size: 12px;
}

.pagination {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  color: var(--ink-tertiary);
  font-size: 12px;
}

.work-row {
  min-width: 0;
  min-height: 72px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto auto 28px;
  gap: 14px;
  align-items: start;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.work-row.is-preferred {
  background: color-mix(in oklch, var(--signal), var(--surface) 96%);
}

.work-row:last-child {
  border-bottom: 0;
}

.work-row:hover {
  background: var(--surface-subtle);
}

.work-cover-stack {
  width: 48px;
  height: 48px;
  position: relative;
  margin-top: 5px;
}

.work-cover-preview,
.work-cover-play {
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.work-cover-preview {
  width: 48px;
  height: 48px;
  padding: 0;
}

.work-cover-play {
  width: 24px;
  height: 24px;
  position: absolute;
  right: -6px;
  bottom: -5px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.work-cover-play .icon {
  width: 12px;
  height: 12px;
}

.cover,
.player-cover {
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid #343944;
  border-radius: var(--radius-md);
  color: var(--signal);
  background: #1b1e25;
}

.cover {
  width: 48px;
  height: 48px;
}

.cover img,
.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-main {
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.work-main strong,
.work-main p,
.work-voice {
  display: block;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-title {
  min-width: 0;
  display: block;
}

.work-title strong {
  min-width: 0;
}

.work-voice {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  color: var(--ink-tertiary);
  font-size: 12px;
  line-height: 1.2;
}

.work-main p {
  margin-top: 4px;
  color: var(--ink-tertiary);
  font-size: 12px;
}

.work-meta {
  align-self: center;
  color: var(--ink-tertiary);
  font-size: 12px;
  white-space: nowrap;
}

.work-open {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--ink-tertiary);
}

.work-open .icon {
  width: 17px;
  height: 17px;
}

.work-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.work-preference,
.work-trash {
  width: 36px;
  min-width: 36px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink-tertiary);
  background: var(--surface);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.work-preference .icon,
.work-trash .icon {
  width: 15px;
  height: 15px;
}

.work-preference:hover,
.work-preference.active {
  border-color: color-mix(in oklch, var(--danger), var(--line) 48%);
  color: var(--danger);
}

.work-preference.active .icon {
  fill: currentColor;
}

.work-trash:hover,
.work-trash:focus-visible {
  border-color: color-mix(in oklch, var(--danger), var(--line) 48%);
  color: var(--danger);
}

.generation-policy-hint {
  margin-top: 8px;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: var(--warning);
  font-size: 12px;
  line-height: 1.5;
}

.ai-generation-notice {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3, 12px);
  margin-bottom: var(--space-4, 16px);
  padding: var(--space-3, 12px) var(--space-4, 16px);
  border: 1px solid var(--line-default);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  color: var(--ink-primary);
  font-size: 14px;
  line-height: 1.5;
}

.ai-generation-notice > .icon { flex: 0 0 auto; color: var(--accent); }
.ai-generation-notice p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }

.generation-policy-hint .icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  margin-top: 1px;
}

.work-preference-filter {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink-tertiary);
  background: var(--surface);
  cursor: pointer;
}

.work-preference-filter:hover,
.work-preference-filter.active {
  border-color: color-mix(in oklch, var(--danger), var(--line) 48%);
  color: var(--danger);
}

.work-preference-filter.active .icon {
  fill: currentColor;
}

.work-model-badge {
  flex: 0 0 auto;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--info);
  background: var(--info-soft);
  font-size: 10px;
  line-height: 16px;
  white-space: nowrap;
}

.work-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.detail-preference {
  height: 40px;
}

.credit-confirm-modal {
  width: min(500px, calc(100% - 28px));
}

.credit-confirm-modal .modal-head small {
  display: block;
  margin-top: 3px;
  color: var(--ink-tertiary);
}

.credit-confirm-summary {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
}

.credit-confirm-summary > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--signal);
  background: color-mix(in oklch, var(--signal), transparent 88%);
}

.credit-confirm-summary > div,
.credit-confirm-summary > div > * {
  min-width: 0;
}

.credit-confirm-summary small,
.credit-confirm-summary strong,
.credit-confirm-summary p {
  display: block;
  margin: 0;
}

.credit-confirm-summary > div > small,
.credit-confirm-summary p {
  color: var(--ink-tertiary);
  font-size: 12px;
}

.credit-confirm-summary p {
  margin-top: 4px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.credit-confirm-summary > b {
  color: var(--signal);
  font-size: 24px;
  text-align: right;
}

.credit-confirm-summary > b small {
  font-size: 12px;
  font-weight: var(--weight-medium);
}

.credit-confirm-balance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
  padding: 10px;
  color: var(--ink-secondary);
  font-size: 13px;
}

.credit-confirm-balance .icon {
  width: 16px;
  color: var(--ink-tertiary);
}

.credit-confirm-note,
.credit-confirm-warning {
  margin: 0;
  color: var(--ink-tertiary);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.credit-confirm-warning {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--danger);
}

.credit-confirm-warning .icon {
  width: 16px;
}

.work-detail,
.competition-detail-grid,
.settings-layout,
.pricing-summary {
  display: grid;
  gap: 20px;
}

.work-detail,
.competition-detail-grid {
  grid-template-columns: minmax(0, 1fr) 310px;
}

.work-identity {
  min-height: 206px;
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

/* 歌曲详情：生成参数面板 */
.generation-params {
  display: grid;
  gap: 10px;
}

.gen-param-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.gen-param-row > span {
  color: var(--ink-tertiary);
  font-size: 12px;
  line-height: 1.5;
}

.gen-param-row > p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.gen-param-row.gen-param-block {
  grid-template-columns: 1fr;
  gap: 4px;
}

/* 作品库回收站恢复按钮 */
.work-restore {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-secondary);
  background: var(--surface);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.work-restore:hover {
  border-color: var(--signal);
  color: var(--signal);
}

.work-identity > .cover {
  width: 176px;
  height: 176px;
}

.work-identity-cover {
  position: relative;
  width: 176px;
  height: 176px;
}

.work-identity-cover .cover {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
}

.cover-download-link {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  color: #fff;
  background: rgb(0 0 0 / 72%);
}

.work-identity h2 {
  margin: 12px 0 8px;
  font-size: var(--text-7);
  line-height: var(--leading-7);
}

.work-identity p {
  margin: 0;
  color: var(--ink-secondary);
}

.work-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.lyrics-sheet {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink-secondary);
  background: #0e1014;
  line-height: 1.9;
}

.lyrics-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.lyrics-sheet-body {
  padding-top: 14px;
  white-space: pre-wrap;
}

.version-track {
  display: grid;
  gap: 6px;
}

.version-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  text-decoration: none;
}

.version-row.current {
  border-color: #355043;
  background: var(--signal-soft);
}

.version-dot {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--signal);
  background: #18221d;
  font-size: 11px;
  font-weight: 700;
}

.version-copy {
  min-width: 0;
}

.version-copy strong,
.version-copy p {
  display: block;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.version-copy p {
  margin-top: 3px;
  color: var(--ink-tertiary);
  font-size: 11px;
}

.mv-mode-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.mv-mode {
  min-width: 0;
  min-height: 82px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink-secondary);
  background: var(--surface);
  text-align: left;
}

.mv-mode.active {
  border-color: #3b7256;
  background: var(--signal-soft);
}

.mv-mode:disabled {
  opacity: 0.52;
}

.mv-mode-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  color: var(--signal);
  background: #1d2421;
}

.mv-mode strong,
.mv-mode small {
  display: block;
}

.mv-mode small {
  margin-top: 4px;
  overflow: hidden;
  color: var(--ink-tertiary);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mv-mode b {
  color: var(--signal);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.mv-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.mv-builder {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.mv-step {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.mv-step-head {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-bottom: 14px;
}

.mv-step-head > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #0b1210;
  background: var(--signal);
  font-weight: 700;
}

.mv-step-head h3,
.mv-step-head p {
  margin: 0;
}

.mv-step-head h3 {
  font-size: 15px;
}

.mv-step-head p {
  margin-top: 3px;
  color: var(--ink-tertiary);
  font-size: 12px;
}

.mv-work-picker {
  max-height: 234px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  overflow-y: auto;
}

.mv-work-option {
  min-width: 0;
  min-height: 64px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  gap: 9px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink-secondary);
  background: #0e1014;
  text-align: left;
  cursor: pointer;
}

.mv-work-option .cover {
  width: 42px;
  height: 42px;
}

.mv-work-option strong,
.mv-work-option small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mv-work-option small {
  margin-top: 3px;
  color: var(--ink-tertiary);
  font-size: 11px;
}

.mv-work-option .mv-work-preferred {
  margin-left: 6px;
  padding: 1px 5px;
  border-radius: 999px;
  color: var(--danger);
  border: 1px solid color-mix(in oklch, var(--danger), var(--line) 45%);
  background: var(--danger-soft);
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  vertical-align: 1px;
}

.mv-work-option > .icon {
  opacity: 0;
  color: var(--signal);
}

.mv-work-option.selected {
  border-color: #3b7256;
  background: var(--signal-soft);
}

.mv-work-option.selected > .icon {
  opacity: 1;
}

.mv-audio-repair {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  padding: 10px 11px;
  border: 1px dashed #343941;
  border-radius: var(--radius-md);
  background: #0c0e11;
}

.mv-audio-repair > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  color: var(--signal);
  background: var(--signal-soft);
}

.mv-audio-repair > div {
  min-width: 0;
}

.mv-audio-repair strong,
.mv-audio-repair small {
  display: block;
}

.mv-audio-repair strong {
  color: var(--ink-secondary);
  font-size: 12px;
}

.mv-audio-repair strong i {
  margin-left: 5px;
  color: var(--ink-tertiary);
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
}

.mv-audio-repair small {
  margin-top: 3px;
  overflow: hidden;
  color: var(--ink-tertiary);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mv-custom-lyrics {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.mv-custom-lyrics[hidden] {
  display: none;
}

.mv-custom-lyrics .field {
  margin: 0;
}

.mv-custom-lyrics .section-row {
  flex-wrap: wrap;
  gap: var(--space-3);
}

.mv-audio-repair .btn,
.mv-custom-lyrics .btn {
  min-height: 44px;
  min-width: 44px;
}

.mv-character-field {
  min-width: 0;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #0e1014;
}

.mv-character-thumb {
  width: 56px;
  height: 56px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--signal);
  background: #171b1f;
  padding: 0;
  cursor: zoom-in;
}

.mv-character-thumb:disabled {
  cursor: default;
}

.mv-character-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mv-character-copy {
  min-width: 0;
}

.mv-character-copy strong,
.mv-character-copy small {
  display: block;
}

.mv-character-copy strong {
  color: var(--ink-secondary);
  font-size: 13px;
}

.mv-character-copy strong span {
  margin-left: 5px;
  color: var(--ink-tertiary);
  font-size: 10px;
  font-weight: 500;
}

.mv-character-copy small {
  margin-top: 4px;
  overflow: hidden;
  color: var(--ink-tertiary);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mv-character-actions {
  display: flex;
  gap: 6px;
}

.mv-character-actions input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.mv-character-consent {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  margin-top: 10px;
  color: var(--ink-tertiary);
  font-size: 11px;
  line-height: 1.5;
  cursor: pointer;
}

.mv-character-consent input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--signal);
}

.mv-character-library {
  margin-top: 12px;
}

.mv-character-generation {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
}

.mv-character-generation > div:first-child {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.mv-character-generation > div:first-child > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  color: var(--signal);
  background: var(--signal-soft);
}

.mv-character-generation strong,
.mv-character-generation small {
  display: block;
}

.mv-character-generation small {
  margin-top: 2px;
  color: var(--ink-tertiary);
  font-size: 10px;
}

.mv-character-generation b {
  color: var(--signal);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.mv-character-library:empty {
  display: none;
}

.mv-character-library-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--ink-secondary);
  font-size: 12px;
}

.mv-character-library-head small {
  color: var(--ink-tertiary);
}

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

.mv-character-item {
  position: relative;
  min-width: 0;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #0e1014;
}

.mv-character-item.selected {
  border-color: var(--signal);
  box-shadow: 0 0 0 2px var(--signal-soft);
}

.mv-character-item > [data-character-id] {
  width: 100%;
  height: 100%;
  display: block;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.mv-character-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.mv-character-item [data-character-id] span {
  position: absolute;
  right: 4px;
  bottom: 4px;
  left: 4px;
  overflow: hidden;
  padding: 4px 5px;
  border-radius: var(--radius-sm);
  color: #fff;
  background: rgb(0 0 0 / 66%);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mv-character-delete {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: var(--radius-sm);
  opacity: 0;
  color: #fff;
  background: rgb(0 0 0 / 64%);
  cursor: pointer;
}

.mv-character-preview {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: var(--radius-sm);
  opacity: 0;
  color: #fff;
  background: rgb(0 0 0 / 64%);
  cursor: zoom-in;
}

.mv-character-item:hover .mv-character-delete,
.mv-character-delete:focus-visible,
.mv-character-item:hover .mv-character-preview,
.mv-character-preview:focus-visible {
  opacity: 1;
}

.mv-character-delete .icon {
  width: 14px;
  height: 14px;
}

.mv-character-preview .icon {
  width: 14px;
  height: 14px;
}

.image-preview-stage {
  max-height: min(70vh, 720px);
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 16px;
  background: #090a0c;
}

.image-preview-stage img {
  max-width: 100%;
  max-height: min(66vh, 680px);
  display: block;
  object-fit: contain;
}

.work-cover-editor {
  display: grid;
  gap: 16px;
}

.work-cover-current {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
}

.work-cover-current .cover {
  width: 76px;
  height: 76px;
}

.work-cover-current strong,
.work-cover-current p {
  display: block;
  margin: 0;
}

.work-cover-current p {
  margin-top: 4px;
  color: var(--ink-tertiary);
  font-size: 11px;
  line-height: 1.5;
}

.work-cover-library {
  display: grid;
  gap: 10px;
}

.work-cover-library .section-row {
  margin: 0;
}

.work-cover-library .section-row strong,
.work-cover-library .section-row p {
  display: block;
  margin: 0;
}

.work-cover-library .section-row p {
  margin-top: 3px;
  color: var(--ink-tertiary);
  font-size: 11px;
}

.work-cover-assets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.work-cover-asset {
  position: relative;
  min-width: 0;
}

.cover-asset-image {
  position: relative;
  width: 100%;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink);
  background: var(--surface-subtle);
  text-align: left;
  cursor: pointer;
}

.work-cover-asset.selected .cover-asset-image {
  border-color: var(--signal);
  box-shadow: inset 0 0 0 1px var(--signal);
}

.work-cover-asset img {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
  transition: transform 160ms ease;
}

.cover-asset-image:hover img,
.cover-asset-image:focus-visible img {
  transform: scale(1.03);
}

.cover-asset-check {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 1;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--signal);
  box-shadow: 0 1px 6px rgb(0 0 0 / 45%);
}

.cover-asset-check .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.6;
}

.cover-asset-overlay {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 78px;
  display: grid;
  justify-items: center;
  padding: 18px 42px 8px 8px;
  background: linear-gradient(to top, rgb(5 7 10 / 92%), rgb(5 7 10 / 74%) 78%, transparent);
  pointer-events: none;
}

.cover-asset-overlay > * {
  pointer-events: auto;
}

.cover-asset-select {
  width: 100%;
  min-width: 0;
  align-self: stretch;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.cover-asset-select:disabled {
  cursor: default;
}

.cover-asset-select:hover:not(:disabled) .cover-asset-meta strong,
.cover-asset-select:focus-visible:not(:disabled) .cover-asset-meta strong {
  color: var(--signal);
}

.cover-asset-meta {
  display: block;
  width: 100%;
  padding-top: 1px;
}

.cover-asset-meta strong,
.cover-asset-meta small {
  color: #fff;
}

.cover-asset-meta small {
  opacity: .72;
}

.work-cover-asset strong,
.work-cover-asset small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cover-asset-download {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 38%);
  border-radius: 50%;
  color: #fff;
  background: rgb(0 0 0 / 46%);
}

.cover-asset-download:hover {
  border-color: var(--signal);
  color: #fff;
  background: var(--signal);
}

.work-cover-asset strong {
  font-size: 12px;
}

.work-cover-asset small {
  margin-top: 3px;
  color: var(--ink-tertiary);
  font-size: 10px;
}


.mv-highlight-selector {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.mv-highlight-modes {
  width: fit-content;
}

.mv-manual-highlight {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
}

.mv-highlight-preview-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.work-source-tabs {
  margin: var(--space-4) 0;
}

.panel > .work-source-tabs {
  margin-inline: var(--space-4);
}

.work-source-tabs button {
  min-height: 44px;
}

.mv-highlight-preview-row audio,
.mv-clip-preview audio {
  display: block;
  width: 100%;
  min-width: 0;
}

.mv-clip-preview,
.mv-selected-lyrics {
  margin-top: var(--space-4);
  display: grid;
  gap: var(--space-3);
}

.mv-clip-preview .section-row,
.mv-lyric-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.mv-clip-preview small,
.mv-lyric-actions small {
  color: var(--ink-tertiary);
  font-size: var(--text-1);
}

#mv-preview-highlight {
  min-height: var(--touch-target);
}

#mv-selected-lyrics {
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
  color: var(--ink-secondary);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.mv-manual-highlight[hidden] {
  display: none;
}

.mv-waveform {
  height: 82px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #0b0d10;
  cursor: crosshair;
  touch-action: none;
  user-select: none;
}

.mv-waveform:focus-visible {
  border-color: var(--signal);
  outline: 2px solid color-mix(in srgb, var(--signal), transparent 65%);
  outline-offset: 2px;
}

.mv-waveform canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.mv-waveform > span {
  position: absolute;
  top: 0;
  bottom: 0;
  min-width: 2px;
  border-right: 1px solid var(--signal);
  border-left: 1px solid var(--signal);
  background: color-mix(in srgb, var(--signal), transparent 82%);
  cursor: grab;
}

/* 手机端拖动波形经常被系统滚动手势抢走，这里保留原生滑块作为可靠入口。 */
/* 波形缩放（毫秒级微调）是手机端专用的精细控制；PC 端保持原有的拖动与原生滑块。 */
#mv-zoom-modes {
  display: none;
}

.mv-highlight-sliders {
  display: none;
}

.mv-highlight-sliders label {
  display: grid;
  gap: 6px;
  color: var(--ink-tertiary);
  font-size: 12px;
}

.mv-highlight-sliders input[type="range"] {
  width: 100%;
  accent-color: var(--signal);
  touch-action: pan-y;
}

.mv-waveform > span > button {
  width: 24px;
  position: absolute;
  top: 0;
  bottom: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: ew-resize;
  touch-action: none;
}

.mv-waveform > span > button::after {
  width: 6px;
  position: absolute;
  top: 18%;
  bottom: 18%;
  border-radius: 4px;
  background: var(--signal);
  box-shadow: 0 0 0 2px rgb(11 13 16 / 70%);
  content: '';
}

.mv-waveform [data-highlight-handle="start"] { left: -12px; }
.mv-waveform [data-highlight-handle="end"] { right: -12px; }
.mv-waveform [data-highlight-handle="start"]::after { left: 9px; }
.mv-waveform [data-highlight-handle="end"]::after { right: 9px; }

.mv-waveform-hint {
  color: var(--ink-tertiary);
  font-size: 11px;
}

.mv-manual-highlight audio {
  width: 100%;
  height: 36px;
  color-scheme: dark;
}

.mv-highlight-lyrics {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.mv-highlight-lyrics > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-tertiary);
  font-size: 10px;
  font-weight: 700;
}

.mv-highlight-lyrics p {
  min-height: 38px;
  margin: 0;
  color: var(--ink-secondary);
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-line;
}

.mv-simple-intro {
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--signal), transparent 68%);
  border-radius: var(--radius-md);
  color: var(--ink-secondary);
  background: color-mix(in srgb, var(--signal), transparent 92%);
  font-size: 12px;
}

@media (max-width: 639px) {
  .mv-highlight-preview-row { grid-template-columns: 1fr; }
  .mv-highlight-preview-row .btn { width: 100%; }
  .mv-waveform { height: 96px; }
  .mv-waveform > span > button { width: 44px; }
  .mv-waveform [data-highlight-handle="start"] { left: -22px; }
  .mv-waveform [data-highlight-handle="end"] { right: -22px; }
  .mv-waveform [data-highlight-handle="start"]::after { left: 19px; }
  .mv-waveform [data-highlight-handle="end"]::after { right: 19px; }
}

.mv-trim-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-tertiary);
  font-size: 11px;
}

.mv-trim-summary strong {
  color: var(--signal);
  font-variant-numeric: tabular-nums;
}

.modal-head > div small {
  display: block;
  margin-top: 3px;
  color: var(--ink-tertiary);
  font-size: 11px;
}

.ai-character-form {
  display: grid;
  gap: 16px;
}

.ai-character-modes {
  width: 100%;
}

.ai-character-asset-types {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ai-character-asset-types > label {
  min-width: 0;
  cursor: pointer;
}

.ai-character-asset-types input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ai-character-asset-types span {
  min-height: 76px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line-default);
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
}

.ai-character-asset-types input:checked + span {
  border-color: var(--signal);
  box-shadow: inset 0 0 0 1px var(--signal);
  background: var(--signal-soft);
}

.ai-character-asset-types strong {
  color: var(--ink-primary);
  font-size: 13px;
}

.ai-character-asset-types small {
  color: var(--ink-tertiary);
  font-size: 11px;
  line-height: 1.45;
}

.ai-character-reference {
  display: grid;
  gap: 10px;
}

.ai-character-reference[hidden] {
  display: none;
}

.ai-character-upload {
  min-height: 92px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 2px 12px;
  align-items: center;
  padding: 10px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  color: var(--ink-secondary);
  background: var(--surface-subtle);
  cursor: pointer;
}

.ai-character-upload > span {
  width: 64px;
  height: 68px;
  grid-row: 1 / 3;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  color: var(--signal);
  background: var(--signal-soft);
}

.ai-character-upload img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-character-upload strong {
  align-self: end;
  font-size: 13px;
}

.ai-character-upload small {
  align-self: start;
  overflow: hidden;
  color: var(--ink-tertiary);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-character-cost {
  margin-right: auto;
  color: var(--ink-tertiary);
  font-size: 12px;
}

.ai-character-cost strong {
  color: var(--signal);
}

.mv-style-label {
  display: block;
  margin: 16px 0 8px;
}

.style-swatches {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.style-swatches button {
  min-width: 0;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink-secondary);
  background: #0e1014;
  cursor: pointer;
}

.style-swatches button.selected {
  color: var(--ink);
  border-color: var(--signal);
}

.swatch {
  width: 100%;
  aspect-ratio: 1.8 / 1;
  display: block;
  margin-bottom: 6px;
  border-radius: var(--radius-sm);
  background: #313640;
}

.swatch.cinematic { background: #263c37; }
.swatch.film { background: #65503d; }
.swatch.neon { background: #33376b; }
.swatch.ink { background: #b8b8b3; }
.swatch.warm { background: #805038; }

.mv-settings-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.8fr);
  gap: 18px;
  align-items: end;
}

.mv-settings-row .field-label {
  display: block;
  margin-bottom: 7px;
}

.mv-custom-prompt {
  margin-top: 16px;
}

.mv-subtitle-setting {
  width: fit-content;
  margin-top: 14px;
}

.mv-custom-prompt > span i {
  margin-left: 5px;
  color: var(--ink-tertiary);
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
}

.mv-custom-prompt textarea {
  min-height: 88px;
  resize: vertical;
}

.toggle-row {
  min-height: 45px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  cursor: pointer;
}

.toggle-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-row > span {
  width: 38px;
  height: 22px;
  position: relative;
  border-radius: 12px;
  background: var(--surface-strong);
}

.toggle-row > span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  transition: transform 150ms var(--ease);
}

.toggle-row input:checked + span {
  background: var(--signal-strong);
}

.toggle-row input:checked + span::after {
  transform: translateX(16px);
}

.toggle-row strong,
.toggle-row small {
  display: block;
}

.toggle-row small {
  margin-top: 2px;
  color: var(--ink-tertiary);
  font-size: 10px;
}

.mv-submit {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: #0c0e12;
}

.mv-submit span,
.mv-submit strong,
.mv-submit small {
  display: block;
}

.mv-submit span,
.mv-submit small {
  color: var(--ink-tertiary);
  font-size: 11px;
}

.mv-submit strong {
  margin: 2px 0;
  color: var(--signal);
  font-size: 18px;
}

.mv-preview {
  position: sticky;
  top: 84px;
}

.mv-preview-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: #111318;
}

.mv-preview-frame.portrait {
  width: min(230px, 100%);
  aspect-ratio: 9 / 16;
  margin: 0 auto;
}

.mv-preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) saturate(0.9);
}

.mv-preview-frame[data-style="film"] img { filter: brightness(0.72) saturate(0.72) sepia(0.2); }
.mv-preview-frame[data-style="neon"] img { filter: brightness(0.67) saturate(1.35) hue-rotate(12deg); }
.mv-preview-frame[data-style="ink"] img { filter: grayscale(1) contrast(1.15); }
.mv-preview-frame[data-style="warm"] img { filter: brightness(0.73) saturate(1.12) sepia(0.28); }

.preview-caption {
  position: absolute;
  inset: auto 18px 16px;
  min-width: 0;
}

.preview-caption span,
.preview-caption strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-caption span {
  color: var(--signal);
  font-size: 9px;
  font-weight: 700;
}

.preview-caption strong {
  margin: 3px 0 9px;
  color: white;
}

.preview-caption i {
  width: 74%;
  height: 2px;
  display: block;
  background: var(--signal);
}

.mv-preview-note {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border-left: 2px solid var(--signal);
  color: var(--ink-tertiary);
  background: #0e1512;
  font-size: 11px;
}

.mv-preview-note .icon {
  color: var(--signal);
}

.mv-preview-note strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink-secondary);
}

.mv-task-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mv-live-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--signal);
  font-size: 11px;
  font-weight: 650;
}

.mv-live-status[hidden] {
  display: none;
}

.mv-live-status > i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 rgb(86 222 155 / 35%);
  animation: mv-live-pulse 1.8s ease-out infinite;
}

.mv-live-status.is-reconnecting {
  color: var(--stage);
}

.mv-task-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.mv-task-media {
  min-height: 126px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--ink-tertiary);
  background: #090a0d;
}

.mv-task-media img,
.mv-task-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mv-task-media.portrait img,
.mv-task-media.portrait video {
  object-fit: contain;
}

.mv-media-state {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgb(8 9 12 / 55%);
}

.mv-media-state .icon[data-lucide="loader-circle"],
.work-row .icon[data-lucide="loader-circle"] {
  animation: spin 1.1s linear infinite;
}

.mv-task-copy {
  min-width: 0;
  padding: 14px;
}

.mv-task-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.mv-task-title > div {
  min-width: 0;
}

.mv-task-title strong,
.mv-task-title span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mv-task-title span,
.mv-task-copy > p {
  color: var(--ink-tertiary);
  font-size: 11px;
}

/* 用户自己填的画面提示：卡片里截断两行，悬停看全文，放大查看弹窗里给全文。 */
.mv-task-copy > .mv-task-prompt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 9px 0 0;
  font-size: 12px;
  line-height: 1.6;
  word-break: break-word;
}

.mv-task-prompt b {
  margin-right: 4px;
  color: var(--ink-secondary);
  font-weight: 650;
}

.mv-progress {
  height: 4px;
  margin-top: 17px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--surface-strong);
}

.mv-progress span {
  height: 100%;
  display: block;
  background: var(--signal);
  transition: width 320ms ease;
}

.mv-error {
  color: var(--danger) !important;
}

.mv-failed-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  color: var(--ink-tertiary);
  font-size: 11px;
}

.mv-failed-actions .btn {
  color: var(--ink-tertiary);
}

.mv-task-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.competition-list {
  display: grid;
}

.competition-card {
  min-height: 110px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.competition-card:last-child {
  border-bottom: 0;
}

.competition-card:hover {
  background: var(--surface-subtle);
}

.competition-card h3,
.competition-card p {
  margin: 0;
}

.competition-card p {
  margin-top: 5px;
  color: var(--ink-secondary);
}

.competition-facts {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 13px;
  color: var(--ink-tertiary);
  font-size: 11px;
}

.competition-facts span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.competition-card > div:last-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.competition-story,
.submit-box,
.wallet-balance,
.settings-section {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.competition-story h2 {
  margin: 14px 0 8px;
  font-size: 24px;
}

.competition-story > p,
.submit-box > p,
.settings-section > p {
  color: var(--ink-secondary);
}

.reward-lane {
  display: grid;
  gap: 7px;
  margin-top: 18px;
}

.reward {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 11px;
  border-left: 2px solid var(--stage);
  background: var(--stage-soft);
}

.reward strong {
  color: var(--stage);
}

.submit-box {
  display: grid;
  gap: 12px;
}

.submit-box h3,
.submit-box p {
  margin: 0;
}

.detail-facts {
  display: grid;
  gap: 12px;
  margin: 0;
}

.detail-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.detail-facts dt {
  color: var(--ink-tertiary);
}

.detail-facts dd {
  margin: 0;
  text-align: right;
}

.ranking {
  width: 100%;
  border-collapse: collapse;
}

.ranking th,
.ranking td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.ranking th {
  color: var(--ink-tertiary);
  font-size: 11px;
}

.rank-top {
  color: var(--stage);
  font-weight: 700;
}

.pricing-summary {
  grid-template-columns: 260px minmax(0, 1fr);
}

.wallet-balance {
  display: grid;
  align-content: center;
}

.wallet-balance span,
.wallet-balance small {
  color: var(--ink-tertiary);
}

.wallet-balance strong {
  margin: 8px 0;
  color: var(--signal);
  font-size: 48px;
  line-height: 1;
}

.product-list,
.transaction-list,
.order-list,
.admin-list {
  display: grid;
}

.product-row,
.transaction-row,
.order-row,
.admin-row {
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.product-row:last-child,
.transaction-row:last-child,
.order-row:last-child,
.admin-row:last-child {
  border-bottom: 0;
}

.product-row p,
.transaction-row small,
.order-row small,
.admin-row small {
  display: block;
  margin: 3px 0 0;
  color: var(--ink-tertiary);
  font-size: 11px;
}

.product-price,
.amount {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.credit-overview {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
}

.credit-wallet {
  min-height: 230px;
}

.credit-wallet small {
  display: flex;
  align-items: center;
  gap: 6px;
}

.credit-wallet .btn {
  width: fit-content;
  margin-top: 18px;
}

.credit-cost-sheet {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.credit-cost-head {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.credit-cost-head span {
  color: var(--signal);
  font-size: var(--text-1);
  font-weight: var(--weight-bold);
}

.credit-cost-head h3 {
  margin: 3px 0 0;
  font-size: var(--text-4);
  line-height: var(--leading-4);
}

.credit-cost-head > small,
.wechat-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-tertiary);
  font-size: var(--text-1);
}

.wechat-status.is-ready {
  color: var(--signal-strong);
}

.order-check {
  display: block;
  margin-top: 5px;
  padding: 0;
  border: 0;
  color: var(--signal-strong);
  background: transparent;
  font-size: var(--text-1);
  cursor: pointer;
}

.order-check:hover {
  text-decoration: underline;
}

.wechat-pay-body {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.wechat-pay-amount span,
.wechat-pay-amount p {
  display: block;
  margin: 0;
  color: var(--ink-tertiary);
  font-size: var(--text-1);
}

.wechat-pay-amount strong {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  margin: 7px 0;
  font-size: var(--text-8);
  line-height: var(--leading-8);
  font-variant-numeric: tabular-nums;
}

.wechat-pay-amount strong small {
  font-size: var(--text-3);
}

.wechat-pay-qr {
  width: min(280px, 82vw);
  aspect-ratio: 1;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: white;
}

.wechat-pay-help {
  max-width: 340px;
  margin: 0;
  color: var(--ink-secondary);
  font-size: var(--text-1);
  line-height: var(--leading-2);
}

.payment-polling {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-right: auto;
  color: var(--ink-tertiary);
  font-size: var(--text-1);
}

.payment-polling .icon {
  animation: spin 1.2s linear infinite;
}

.credit-cost-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.credit-cost-grid > div {
  min-width: 0;
  min-height: 150px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: 17px 15px;
  border-left: 1px solid var(--line);
}

.credit-cost-grid > div:first-child {
  border-left: 0;
}

.credit-cost-grid > div:nth-child(3n + 1) {
  border-left: 0;
}

.credit-cost-grid > div:nth-child(n + 4) {
  border-top: 1px solid var(--line);
}

.credit-cost-grid > div > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  color: var(--signal);
  background: var(--signal-soft);
}

.credit-cost-grid strong,
.credit-cost-grid small {
  display: block;
}

.credit-cost-grid small {
  margin-top: 3px;
  overflow: hidden;
  color: var(--ink-tertiary);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.credit-cost-grid b {
  color: var(--ink);
  font-size: var(--text-5);
  font-variant-numeric: tabular-nums;
}

.credit-cost-grid b small {
  display: inline;
  margin-left: 3px;
  font-weight: var(--weight-regular);
}

.credit-products-section {
  margin-top: 30px;
  scroll-margin-top: 88px;
}

.credit-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.credit-product {
  min-width: 0;
  min-height: 286px;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.credit-product.featured {
  border-color: var(--signal-strong);
  background: var(--surface);
}

.credit-product-title {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink-secondary);
  font-weight: var(--weight-medium);
}

.credit-product-title b {
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  color: var(--signal);
  background: var(--signal-soft);
  font-size: 10px;
}

.credit-product-price {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-top: 18px;
}

.credit-product-price small {
  color: var(--ink-secondary);
  font-size: var(--text-3);
}

.credit-product-price strong {
  font-size: 34px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.credit-product-points {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 15px;
}

.credit-product-points strong {
  color: var(--signal);
  font-size: var(--text-5);
}

.credit-product-points span,
.credit-product > small,
.credit-product > p,
.credit-payment-note {
  color: var(--ink-tertiary);
  font-size: var(--text-1);
}

.credit-product > p {
  min-height: 40px;
  margin: 7px 0 2px;
  line-height: var(--leading-2);
}

.credit-product .btn {
  width: 100%;
  margin-top: auto;
}

.credit-payment-note {
  margin: 12px 0 0;
}

.amount.positive {
  color: var(--signal);
}

.admin-credit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 16px;
}

.admin-user-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.admin-user-search .field {
  min-width: 0;
}

.admin-credit-users,
.admin-grant-history {
  max-height: 620px;
  overflow-y: auto;
}

.admin-user-balance {
  color: var(--ink-secondary);
  font-weight: var(--weight-medium);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.admin-credit-user .btn {
  white-space: nowrap;
}

.admin-grant-log .empty-state {
  min-height: 240px;
  border: 0;
  background: transparent;
}

.admin-grant-row {
  min-height: 88px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.admin-grant-row:last-child {
  border-bottom: 0;
}

.admin-grant-row strong,
.admin-grant-row small,
.admin-grant-row p {
  display: block;
  margin: 0;
}

.admin-grant-row small,
.admin-grant-row p {
  margin-top: 3px;
  color: var(--ink-tertiary);
  font-size: var(--text-1);
}

.admin-grant-row > div:last-child {
  text-align: right;
}

.admin-grant-row > div:last-child strong {
  color: var(--signal);
  font-size: var(--text-4);
  font-variant-numeric: tabular-nums;
}

.admin-grant-form {
  display: grid;
  gap: 16px;
}

.admin-grant-recipient {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
}

.admin-grant-recipient > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--signal);
  background: var(--signal-soft);
}

.admin-grant-recipient strong,
.admin-grant-recipient p {
  display: block;
  margin: 0;
}

.admin-grant-recipient p {
  margin-top: 3px;
  color: var(--ink-tertiary);
  font-size: var(--text-1);
}

.grant-presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.grant-presets button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-secondary);
  background: var(--surface);
  cursor: pointer;
}

.grant-presets button:hover {
  color: var(--signal);
  border-color: var(--signal);
}

.admin-grant-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-left: 2px solid var(--stage);
  color: var(--ink-secondary);
  background: var(--stage-soft);
  font-size: var(--text-1);
}

.admin-grant-notice .icon {
  flex: 0 0 auto;
}

.account-page {
  width: min(1120px, 100%);
  display: grid;
  gap: 16px;
  margin: 0 auto;
}

.account-panel,
.account-links {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.account-page .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.account-panel-head {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}

.account-panel-head h2 {
  margin: 0;
  font-size: var(--text-4);
  line-height: var(--leading-4);
}

.account-panel-head > span,
.account-panel-head > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-tertiary);
  font-size: var(--text-1);
  text-decoration: none;
  white-space: nowrap;
}

.account-panel-head > a:hover {
  color: var(--ink);
}

.account-identity {
  min-height: 118px;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 20px 18px;
  border-bottom: 1px solid var(--line);
}

.account-avatar {
  width: 64px;
  height: 64px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
  background: var(--surface-strong);
  font-size: var(--text-6);
  font-weight: var(--weight-bold);
}

.account-identity-copy {
  min-width: 0;
}

.account-identity-copy > div,
.account-identity-copy p,
.account-identity-actions {
  display: flex;
  align-items: center;
}

.account-identity-copy > div {
  gap: 10px;
  flex-wrap: wrap;
}

.account-identity-copy h3 {
  margin: 0;
  overflow: hidden;
  font-size: var(--text-5);
  line-height: var(--leading-5);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-identity-copy p {
  gap: 6px;
  margin: 9px 0 0;
  color: var(--ink-secondary);
}

.account-identity-copy p small {
  color: var(--signal);
}

.account-identity-actions {
  gap: 8px;
}

.account-logout:hover {
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger), transparent 48%);
}

.account-feature-row,
.account-security-row {
  min-height: 78px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.account-security-row {
  border-bottom: 0;
}

.account-feature-icon {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius-md);
  color: var(--signal);
  background: var(--signal-soft);
}

.account-feature-row strong,
.account-security-row strong {
  font-weight: var(--weight-medium);
}

.account-feature-row p,
.account-security-row p {
  margin: 3px 0 0;
  color: var(--ink-tertiary);
  font-size: var(--text-1);
}

.account-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-summary-item {
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
}

.account-summary-item + .account-summary-item {
  border-left: 1px solid var(--line);
}

.account-summary-item span,
.account-summary-item small {
  display: block;
  color: var(--ink-tertiary);
  font-size: var(--text-1);
}

.account-summary-item strong {
  display: block;
  margin: 7px 0 5px;
  color: var(--ink);
  font-size: var(--text-7);
  line-height: var(--leading-7);
  font-variant-numeric: tabular-nums;
}

.account-wallet-tabs {
  min-height: 54px;
  display: flex;
  align-items: end;
  gap: 24px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.account-wallet-tabs button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--ink-tertiary);
  background: transparent;
  cursor: pointer;
}

.account-wallet-tabs button.active {
  color: var(--ink);
  border-bottom-color: var(--signal);
}

.account-wallet-tabs button span {
  min-width: 20px;
  padding: 1px 5px;
  border-radius: 999px;
  color: var(--ink-secondary);
  background: var(--surface-strong);
  font-size: 10px;
  line-height: 18px;
  text-align: center;
}

.account-wallet-panel {
  min-height: 190px;
}

/* 个人中心 · 生成任务：可按状态、类型和时间筛选，失败任务可复制重新生成。 */
.account-task-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.account-task-selects {
  display: flex;
  flex: 1 1 260px;
  gap: 10px;
  justify-content: flex-end;
}

.account-task-selects .select {
  width: auto;
  min-width: 132px;
  flex: 0 1 180px;
}

.account-task-list {
  display: grid;
}

.account-task-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.account-task-row:last-child {
  border-bottom: 0;
}

.account-task-copy {
  min-width: 0;
}

.account-task-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.account-task-title strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-task-copy small {
  display: block;
  margin-top: 4px;
  color: var(--ink-tertiary);
  font-size: var(--text-1);
}

.account-task-error {
  margin: 6px 0 0;
  color: var(--danger);
  font-size: var(--text-1);
  line-height: 1.5;
}

.account-task-row .music-task-progress {
  margin-top: 8px;
}

.music-task-retry {
  display: flex;
  justify-content: flex-start;
  margin-top: 8px;
}

/* 列表内的操作按钮在桌面端只显示图标，手机端再显示文字（见 mobile.css）。 */
.work-action-label {
  display: none;
}

.account-wallet-panel .empty-state {
  min-height: 190px;
  border: 0;
  background: transparent;
}

.account-links {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 18px;
}

.account-links > div strong,
.account-links > div span {
  display: block;
}

.account-links > div span {
  margin-top: 3px;
  color: var(--ink-tertiary);
  font-size: var(--text-1);
}

.account-links nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 18px;
}

.account-links nav a {
  color: var(--ink-secondary);
  font-size: var(--text-1);
  text-decoration: none;
}

.account-links nav a:hover {
  color: var(--signal);
}

.modal-kicker {
  display: block;
  margin-bottom: 2px;
  color: var(--signal);
  font-size: 10px;
  font-weight: var(--weight-bold);
}

.account-profile-editor,
.account-password-editor {
  display: grid;
  gap: 18px;
}

.account-profile-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
}

.account-profile-preview .account-avatar {
  width: 52px;
  height: 52px;
  font-size: var(--text-5);
}

.account-profile-preview strong,
.account-profile-preview p {
  display: block;
  margin: 0;
}

.account-profile-preview p,
.account-profile-editor .field small,
.account-password-editor .field small {
  margin-top: 3px;
  color: var(--ink-tertiary);
  font-size: var(--text-1);
}

.settings-layout {
  grid-template-columns: 210px minmax(0, 1fr);
}

.settings-nav {
  display: grid;
  align-content: start;
  gap: 5px;
}

.settings-nav button,
.settings-nav a {
  width: 100%;
  justify-content: flex-start;
}

.settings-nav .active {
  background: var(--surface-strong);
}

.settings-section h2 {
  margin: 0;
  font-size: 18px;
}

.settings-form {
  max-width: 520px;
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.global-player {
  position: fixed;
  z-index: 60;
  right: 0;
  bottom: 0;
  left: var(--sidebar-width);
  min-height: var(--player-height);
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(280px, 1.4fr) auto;
  gap: 16px;
  align-items: center;
  padding: 9px 18px;
  border-top: 1px solid #343945;
  background: rgb(14 16 21 / 96%);
  backdrop-filter: blur(16px);
  box-shadow: 0 -12px 28px rgb(0 0 0 / 24%);
}

.player-track {
  min-width: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.player-cover {
  width: 48px;
  height: 48px;
}

.player-track strong,
.player-track div > span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-track span {
  margin-top: 2px;
  color: var(--ink-tertiary);
  font-size: 11px;
}

.global-player audio {
  width: 100%;
  height: 36px;
  color-scheme: dark;
}

.player-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.player-toggle {
  color: var(--signal);
}

.player-close {
  color: var(--ink-tertiary);
}

.mobile-tabs {
  display: none;
}

.modal {
  width: min(540px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.modal > form,
.modal > .download-dialog {
  max-height: calc(100dvh - 30px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.modal::backdrop {
  background: rgb(0 0 0 / 70%);
  backdrop-filter: blur(4px);
}

.modal-head,
.modal-foot {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 16px;
}

/* 2026-09-05 creator usability: platform-aware touch targets and clear work links. */
html[data-os="ios"],
html[data-os="android"],
html[data-os="harmonyos"] {
  --touch-target: 44px;
}

html[data-device="ipad"] {
  --touch-target: 48px;
}

html[data-os="ios"] button,
html[data-os="android"] button,
html[data-os="harmonyos"] button,
html[data-os="ios"] .btn,
html[data-os="android"] .btn,
html[data-os="harmonyos"] .btn {
  min-height: var(--touch-target);
  touch-action: manipulation;
}

.work-main {
  min-height: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
}

.work-main:focus-visible,
.work-main:active {
  border-color: var(--signal);
  background: color-mix(in oklch, var(--signal), var(--surface) 91%);
  outline: none;
}

.field-label-actions,
.panel-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.music-idea-tools {
  display: flex;
  align-items: stretch;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
}

.music-scene-trigger,
.dice-idea {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: var(--touch-target, 44px);
  padding: 0 12px;
  border: 0;
  border-radius: inherit;
  color: var(--ink-secondary);
  background: transparent;
  font: inherit;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}

.music-scene-trigger {
  justify-content: space-between;
  min-width: 116px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.dice-idea {
  border-left: 1px solid var(--line);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  color: var(--signal);
}

.music-scene-trigger .icon {
  width: 14px;
  height: 14px;
}

.music-scene-trigger:hover,
.dice-idea:hover {
  background: color-mix(in oklch, var(--ink) 5%, var(--surface));
}

.music-scene-trigger:focus-visible,
.dice-idea:focus-visible,
.music-scene-choice:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

.music-scene-trigger:disabled,
.dice-idea:disabled {
  opacity: .5;
  cursor: default;
}

.music-scene-dialog {
  width: min(440px, calc(100% - 28px));
}

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

.music-scene-choice {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: var(--touch-target, 44px);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink-secondary);
  background: var(--surface-subtle);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.music-scene-choice .icon {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
}

.music-scene-choice .icon:last-child:not(:first-child) {
  margin-left: auto;
  width: 14px;
}

.music-scene-choice[aria-pressed="true"] {
  border-color: var(--signal);
  color: var(--signal);
  background: color-mix(in oklch, var(--signal) 8%, var(--surface));
}

.dice-idea b {
  min-width: 18px;
  padding: 1px 5px;
  border-radius: 10px;
  color: #111;
  background: var(--signal);
  text-align: center;
}

.reference-audio-upload {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
}

.reference-audio-upload > div,
.simple-lyrics-tool-head,
.simple-lyrics-fields > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reference-audio-upload strong,
.reference-audio-upload small,
.simple-lyrics-tool strong,
.simple-lyrics-tool small {
  display: block;
}

.reference-audio-upload small,
.simple-lyrics-tool small {
  margin-top: 3px;
  color: var(--ink-tertiary);
}

.reference-audio-upload.is-disabled {
  opacity: .68;
}

.simple-lyrics-tool {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid color-mix(in oklch, var(--signal), var(--line) 45%);
  border-radius: var(--radius-lg);
  background: color-mix(in oklch, var(--signal), var(--surface) 96%);
}

.simple-lyrics-tool[hidden] {
  display: none;
}

.simple-lyrics-tool-head {
  justify-content: space-between;
}

.simple-lyrics-fields {
  display: grid;
  gap: 9px;
}

.simple-lyrics-fields > div .input {
  flex: 1;
}

.simple-lyrics-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--success);
}

.work-cover-preview {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  display: block;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: transparent;
  cursor: zoom-in;
}

.work-cover-expand-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 34%);
  border-radius: 50%;
  background: rgb(0 0 0 / 54%);
  box-shadow: 0 2px 10px rgb(0 0 0 / 28%);
  transform: translate(-50%, -50%);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.work-cover-expand-icon svg {
  width: 16px;
  height: 16px;
}

.work-cover-preview:hover .cover img,
.work-cover-preview:focus-visible .cover img {
  transform: scale(1.035);
}

.work-cover-preview:hover .work-cover-expand-icon,
.work-cover-preview:focus-visible .work-cover-expand-icon {
  background: rgb(0 0 0 / 78%);
  box-shadow: 0 4px 14px rgb(0 0 0 / 42%);
  transform: translate(-50%, -50%) scale(1.1);
}

.work-cover-preview .cover img {
  transition: transform 160ms ease;
}

.image-preview-modal {
  width: min(94vw, 980px);
  max-height: 94dvh;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  color: #fff;
  background: #090a0d;
  box-shadow: var(--shadow);
}

.image-preview-modal::backdrop {
  background: rgb(0 0 0 / 86%);
}

.image-preview-modal > button {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 50%;
  color: #fff;
  background: rgb(0 0 0 / 70%);
}

.image-preview-modal img {
  width: 100%;
  max-height: calc(94dvh - 70px);
  display: block;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.image-preview-modal p {
  margin: 8px 4px 0;
  text-align: center;
}

@media (max-width: 720px) {
  .work-row > .work-main {
    min-height: 54px;
    padding: 7px 9px;
    border-color: var(--line);
    background: var(--surface-subtle);
  }

  .work-main strong {
    color: var(--ink);
    font-size: 14px;
  }

  .reference-audio-upload {
    align-items: stretch;
    flex-direction: column;
  }

  .reference-audio-upload .btn {
    width: 100%;
  }

  .image-preview-modal {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
  }
}

.modal-head {
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  margin: 0;
  font-size: 18px;
}

.modal-body {
  min-height: 0;
  overflow-y: auto;
  padding: 18px;
}

.modal-foot {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
}

.studio-overview {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.overview-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.overview-heading > div > span {
  color: var(--signal);
  font-size: var(--text-1);
  font-weight: var(--weight-bold);
}

.overview-heading h2 {
  margin: 6px 0 4px;
  font-size: var(--text-7);
  line-height: var(--leading-7);
}

.overview-heading p {
  margin: 0;
  color: var(--ink-tertiary);
}

.overview-prompt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 10px;
  border: 1px solid #3b404a;
  border-radius: var(--radius-lg);
  background: #12151b;
}

.overview-prompt input {
  min-width: 0;
  padding: 0 10px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: var(--text-3);
}

.overview-prompt input::placeholder {
  color: var(--ink-tertiary);
}

.overview-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.overview-stats a {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 18px 16px;
  text-decoration: none;
}

.overview-stats a + a {
  border-left: 1px solid var(--line);
}

.overview-stats span,
.overview-stats small {
  color: var(--ink-tertiary);
  font-size: var(--text-1);
}

.overview-stats strong {
  font-size: var(--text-6);
  line-height: var(--leading-6);
  font-variant-numeric: tabular-nums;
}

.studio-section,
.tool-section {
  margin-top: 34px;
}

.studio-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.studio-feature {
  position: relative;
  min-width: 0;
  min-height: 178px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  align-items: end;
  gap: 12px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink);
  background: #111318;
  text-decoration: none;
}

.studio-feature.primary {
  background-color: #243128;
  background-image: url("/public/assets/images/studio-hero.jpg");
  background-blend-mode: multiply;
  background-position: center;
  background-size: cover;
}

.studio-feature:hover {
  border-color: var(--line-strong);
  background-color: var(--surface-subtle);
}

.studio-feature > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #3b414a;
  border-radius: var(--radius-md);
  color: var(--signal);
  background: rgb(12 14 17 / 78%);
}

.studio-feature small,
.studio-feature h3,
.studio-feature p {
  display: block;
  margin: 0;
}

.studio-feature small {
  color: var(--signal);
  font-size: var(--text-1);
  font-weight: var(--weight-bold);
}

.studio-feature h3 {
  margin-top: 5px;
  font-size: var(--text-4);
  line-height: var(--leading-4);
}

.studio-feature p {
  margin-top: 5px;
  color: var(--ink-tertiary);
  font-size: var(--text-1);
  line-height: var(--leading-2);
}

.workflow-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.workflow-strip > a {
  min-width: 0;
  min-height: 92px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 14px;
  color: var(--ink-secondary);
  text-decoration: none;
}

.workflow-strip > a + a {
  border-left: 1px solid var(--line);
}

.workflow-strip > a:hover {
  color: var(--ink);
  background: var(--surface);
}

.workflow-strip > a > .icon {
  color: var(--signal);
}

.workflow-strip strong,
.workflow-strip small {
  display: block;
}

.workflow-strip small {
  margin-top: 4px;
  color: var(--ink-tertiary);
  font-size: var(--text-1);
  line-height: var(--leading-2);
}

.lyrics-workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 18px;
}

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

.lyrics-choice-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.lyrics-choice-group legend {
  margin-bottom: 8px;
  color: var(--ink-secondary);
  font-size: var(--text-1);
  font-weight: var(--weight-semibold);
}

.lyrics-choice-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.lyrics-choice-row label {
  min-width: 0;
  cursor: pointer;
}

.lyrics-choice-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lyrics-choice-row span {
  min-height: 58px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink-secondary);
  background: var(--surface-subtle);
}

.lyrics-choice-row input:checked + span {
  border-color: var(--signal);
  color: var(--ink);
  background: var(--signal-soft);
}

.lyrics-choice-row input:focus-visible + span {
  outline: 2px solid var(--info);
  outline-offset: 2px;
}

.lyrics-choice-row strong,
.lyrics-choice-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lyrics-choice-row small {
  color: var(--ink-tertiary);
  font-size: 11px;
}

.lyrics-form-submit {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-tertiary);
  font-size: var(--text-1);
}

.lyrics-form-submit strong {
  color: var(--signal);
}

.lyrics-result-panel {
  min-height: 560px;
}

.lyrics-result-empty {
  min-height: 480px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 24px;
  color: var(--ink-tertiary);
  text-align: center;
}

.lyrics-result-empty > .icon {
  width: 34px;
  height: 34px;
  color: var(--signal);
}

.lyrics-result-empty p {
  margin: 0;
  font-size: var(--text-1);
}

.lyrics-result-content {
  padding: 24px;
}

.lyrics-result-content h3 {
  margin: 0 0 18px;
  font-size: var(--text-5);
  line-height: var(--leading-5);
}

.lyrics-result-content pre {
  margin: 0;
  color: var(--ink-secondary);
  font: inherit;
  line-height: 1.9;
  white-space: pre-wrap;
}

.lyrics-history {
  margin-top: 20px;
}

.lyrics-history-list {
  display: grid;
}

.lyrics-history-list button {
  min-width: 0;
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.lyrics-history-list button:last-child {
  border-bottom: 0;
}

.lyrics-history-list button:hover {
  background: var(--surface-subtle);
}

.lyrics-history-list strong,
.lyrics-history-list small {
  display: block;
}

.lyrics-history-list small {
  margin-top: 3px;
  color: var(--ink-tertiary);
  font-size: var(--text-1);
}

.lyrics-history-list em {
  display: block;
  margin-top: 3px;
  color: var(--danger);
  font-size: 11px;
  font-style: normal;
}

.lyrics-history-list button > .icon[data-lucide="loader-circle"] {
  animation: spin 1.1s linear infinite;
  transform-origin: center;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.tool-card {
  position: relative;
  min-width: 0;
  min-height: 154px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink);
  background: var(--surface);
  text-decoration: none;
}

.tool-card:hover:not(.planned) {
  border-color: var(--line-strong);
  background: var(--surface-subtle);
}

.tool-card.planned {
  color: var(--ink-secondary);
}

.tool-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  color: var(--signal);
  background: var(--signal-soft);
}

.tool-card small,
.tool-card h3,
.tool-card p {
  display: block;
  margin: 0;
}

.tool-card small {
  color: var(--ink-tertiary);
  font-size: var(--text-1);
}

.tool-card h3 {
  margin-top: 4px;
  font-size: var(--text-3);
  line-height: var(--leading-3);
}

.tool-card p {
  margin-top: 8px;
  color: var(--ink-tertiary);
  font-size: var(--text-1);
  line-height: var(--leading-2);
}

.tool-card > b {
  position: absolute;
  right: 12px;
  bottom: 12px;
  color: var(--signal);
  font-size: 10px;
}

.tool-card.planned > b {
  color: var(--ink-tertiary);
}

.tool-card > .icon:last-child {
  position: absolute;
  right: 12px;
  top: 12px;
  color: var(--ink-tertiary);
}

.field-value {
  float: right;
  color: var(--signal);
  font-variant-numeric: tabular-nums;
}

.field input[type="range"] {
  width: 100%;
  margin: 10px 0 0;
  accent-color: var(--signal);
}

.tool-workbench {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  margin-top: 30px;
}

.tool-operation-list {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.tool-operation-list button {
  min-width: 0;
  min-height: 62px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-secondary);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.tool-operation-list button:last-child {
  border-bottom: 0;
}

.tool-operation-list button:hover,
.tool-operation-list button[aria-selected="true"] {
  color: var(--ink);
  background: var(--surface-subtle);
}

.tool-operation-list button[aria-selected="true"] {
  box-shadow: inset 3px 0 var(--signal);
}

.tool-operation-list button > span,
.tool-task-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  color: var(--signal);
  background: var(--signal-soft);
}

.tool-operation-list strong,
.tool-operation-list small {
  display: block;
}

.tool-operation-list strong {
  font-size: var(--text-2);
}

.tool-operation-list small {
  margin-top: 2px;
  color: var(--ink-tertiary);
  font-size: 10px;
}

.music-tool-form {
  min-width: 0;
}

.music-tool-form .panel-head p {
  max-width: 640px;
}

.music-tool-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}

.music-tool-fields [hidden] {
  display: none;
}

.music-tool-fields input[type="file"] {
  min-height: 44px;
  max-width: 100%;
}

.music-tool-fields .field small {
  display: block;
  margin-top: 6px;
  color: var(--ink-secondary);
  font-size: 12px;
  line-height: 1.5;
}

.check-line {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-secondary);
  font-size: var(--text-2);
}

.check-line input {
  accent-color: var(--signal);
}

.tool-task-section {
  margin-top: 30px;
}

.music-tool-tasks {
  display: grid;
  border-top: 1px solid var(--line);
}

.music-tool-task {
  min-width: 0;
  min-height: 76px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) minmax(116px, 160px) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}

.music-tool-task strong,
.music-tool-task p,
.music-tool-task small {
  display: block;
  margin: 0;
}

.music-tool-task p,
.music-tool-task small {
  margin-top: 3px;
  color: var(--ink-tertiary);
  font-size: var(--text-1);
}

.music-tool-task small {
  color: var(--danger);
}

.tool-task-progress {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--ink-tertiary);
  font-size: var(--text-1);
}

.tool-task-progress progress {
  width: 96px;
  height: 6px;
  accent-color: var(--signal);
}

.tool-task-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.discovery-notice {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-secondary);
}

.discovery-notice > .icon {
  color: var(--signal);
}

.discovery-notice strong,
.discovery-notice span {
  display: block;
}

.discovery-notice span {
  font-size: var(--text-1);
}

.discovery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.discovery-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.discovery-card > .cover {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border: 0;
  border-radius: 0;
}

.discovery-card-cover {
  position: relative;
  width: 100%;
  min-height: 140px;
  display: block;
  color: var(--signal);
  background: var(--surface-strong);
}

.discovery-card-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.discovery-card-cover > .discovery-card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  min-height: 40px;
  padding: 0;
  color: var(--ink);
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: translate(-50%, -50%);
}

.discovery-card-cover > .discovery-card-play .icon {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 1px 3px rgb(0 0 0 / 80%));
}

.discovery-card-copy {
  padding: 14px 14px 16px;
}

.discovery-card-copy span,
.discovery-card-copy h3,
.discovery-card-copy p,
.discovery-card-copy small {
  display: block;
  margin: 0;
}

.discovery-card-copy span,
.discovery-card-copy small {
  color: var(--ink-tertiary);
  font-size: var(--text-1);
}

.discovery-card-copy h3 {
  margin-top: 5px;
  overflow: hidden;
  font-size: var(--text-3);
  line-height: var(--leading-3);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discovery-card-copy p {
  min-height: 40px;
  margin: 7px 0 10px;
  overflow: hidden;
  color: var(--ink-secondary);
  font-size: var(--text-1);
  line-height: var(--leading-2);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.visibility-panel p,
.visibility-panel small {
  display: block;
  margin: 0;
  color: var(--ink-secondary);
}

.visibility-panel small {
  margin-top: 8px;
  color: var(--ink-tertiary);
  font-size: var(--text-1);
  line-height: var(--leading-2);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes mv-live-pulse {
  70% { box-shadow: 0 0 0 6px rgb(86 222 155 / 0%); }
  100% { box-shadow: 0 0 0 0 rgb(86 222 155 / 0%); }
}

@media (max-width: 1060px) {
  body.workspace-body {
    --sidebar-width: 204px;
  }

  .workspace-content {
    padding-right: 22px;
    padding-left: 22px;
  }

  .admin-credit-layout {
    grid-template-columns: 1fr;
  }

  .brand-edition,
  .account-button span,
  .task-button span,
  .credit-button span {
    display: none;
  }

  .workspace-brand {
    grid-template-columns: 1fr;
  }

  .mv-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
  }

  .mv-task-card {
    grid-template-columns: 145px minmax(0, 1fr);
  }

  .credit-cost-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .credit-cost-grid > div:nth-child(4) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .credit-cost-grid > div:nth-child(5) {
    border-top: 1px solid var(--line);
  }

  .credit-cost-grid > div:nth-child(6) {
    border-top: 1px solid var(--line);
  }

  .credit-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px), (max-width: 1024px) and (max-height: 500px) {
  body.workspace-body {
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  }

  body.workspace-body.has-player {
    padding-bottom: 142px;
  }

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

  .workspace-sidebar {
    display: none;
  }

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

  .tool-operation-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tool-operation-list button {
    grid-template-columns: 28px minmax(0, 1fr);
    border-right: 1px solid var(--line);
  }

  .tool-operation-list button > span {
    width: 28px;
    height: 28px;
  }

  .workspace-main {
    grid-column: 1;
  }

  .workspace-topbar {
    min-height: calc(58px + env(safe-area-inset-top, 0px));
    padding: max(8px, env(safe-area-inset-top, 0px)) max(14px, env(safe-area-inset-right, 0px)) 8px max(14px, env(safe-area-inset-left, 0px));
  }

  .mobile-brand {
    width: var(--touch-target);
    height: var(--touch-target);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    text-decoration: none;
  }

  .mobile-brand .brand-mark {
    width: 34px;
    height: 34px;
    color: var(--signal);
  }

  .page-context p,
  .account-button,
  .task-button {
    display: none;
  }

  .workspace-content {
    padding: 22px 16px 42px;
  }

  .mobile-tabs {
    position: fixed;
    z-index: var(--z-mobile-nav);
    inset: auto 0 0;
    height: calc(66px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid var(--line);
    background: rgb(10 11 14 / 97%);
    backdrop-filter: blur(14px);
  }

  .mobile-tabs a {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    color: var(--ink-tertiary);
    font-size: 10px;
    text-decoration: none;
  }

  .mobile-tabs a.active,
  .mobile-tabs a[aria-current="page"] {
    color: var(--signal);
  }

  .mobile-tabs .icon {
    width: 20px;
    height: 20px;
  }

  .global-player {
    left: 0;
    bottom: calc(66px + env(safe-area-inset-bottom, 0px));
    min-height: 76px;
    grid-template-columns: minmax(110px, 0.75fr) minmax(150px, 1.25fr) auto;
    gap: 8px;
    padding: 8px 12px;
  }

  .global-player .player-link {
    display: none;
  }

  .page-heading {
    align-items: start;
  }

  .overview-heading {
    align-items: flex-start;
  }

  .overview-stats,
  .workflow-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-stats a:nth-child(3),
  .overview-stats a:nth-child(4),
  .workflow-strip > a:nth-child(3),
  .workflow-strip > a:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .overview-stats a:nth-child(3),
  .workflow-strip > a:nth-child(3) {
    border-left: 0;
  }

  .studio-feature-grid,
  .tool-grid,
  .discovery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lyrics-workspace {
    grid-template-columns: 1fr;
  }

  .lyrics-result-panel {
    min-height: 440px;
  }

  .lyrics-result-empty {
    min-height: 360px;
  }

  .page-heading h2 {
    font-size: 23px;
  }

  .create-home-title h2 {
    font-size: 28px;
  }

  .prompt-options,
  .advanced-grid,
  .lyrics-assistant-grid,
  .work-detail,
  .competition-detail-grid,
  .pricing-summary,
  .settings-layout,
  .mv-layout {
    grid-template-columns: 1fr;
  }

  .music-model-picker {
    grid-template-columns: repeat(var(--music-model-count, 3), minmax(0, 1fr));
  }

  .credit-overview {
    grid-template-columns: 1fr;
  }

  .credit-wallet {
    min-height: 190px;
  }

  .cost-copy {
    grid-template-columns: auto auto 1fr;
    gap: 7px;
    align-items: center;
  }

  .cost-copy small {
    text-align: right;
  }

  .preset-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .creation-tools {
    grid-template-columns: 1fr;
  }

  .creation-tools a + a {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .work-identity {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .work-identity > .cover,
  .work-identity-cover {
    width: 112px;
    height: 112px;
  }

  .mv-mode-strip {
    grid-template-columns: 1fr;
  }

  .mv-preview {
    position: static;
    grid-row: 1;
  }

  .mv-preview-frame {
    width: min(480px, 100%);
    margin: 0 auto;
  }

  .mv-task-list {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 540px) {
  .work-search { padding: 0 13px 13px; }
  .work-search .btn { padding-inline: 10px; }
  .input,
  .select,
  .textarea,
  input,
  select,
  textarea {
    font-size: 16px;
  }

  .btn,
  button,
  .segmented button {
    min-height: 44px;
  }

  .workspace-content {
    padding-bottom: calc(42px + env(safe-area-inset-bottom, 0px));
  }

  .work-library-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .work-cover-assets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-library-filters {
    width: 100%;
  }

  #work-period-filter {
    min-width: 0;
    flex: 1;
  }

  #work-period-filter button {
    min-width: 0;
    padding-inline: 8px;
    font-size: 12px;
  }
  .panel-footer {
    grid-template-columns: 1fr;
    padding: 12px 13px 13px;
  }

  .panel-footer > .btn {
    width: 100%;
  }

  .section-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .modal-foot {
    flex-wrap: wrap;
    gap: 8px;
  }

  .modal-foot > span {
    width: 100%;
    margin-right: 0;
  }

  .wechat-pay-dialog .modal-foot .btn {
    width: 100%;
  }

  .tool-operation-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .music-tool-fields {
    grid-template-columns: 1fr;
    padding: 13px;
  }

  .music-tool-fields .field-full {
    grid-column: auto;
  }

  .music-tool-task {
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }

  .tool-task-progress {
    grid-column: 2;
    justify-content: flex-start;
  }

  .tool-task-actions {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
  .workspace-content {
    padding-right: 12px;
    padding-left: 12px;
  }

  .mv-trim-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .mv-character-preview,
  .mv-character-delete {
    opacity: 1;
  }

  .admin-user-search {
    grid-template-columns: 1fr;
  }

  .admin-user-search .btn {
    width: 100%;
  }

  .admin-credit-user {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .admin-credit-user .btn {
    width: 100%;
    grid-column: 1 / -1;
  }

  .credit-cost-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .credit-cost-grid,
  .credit-product-grid {
    grid-template-columns: 1fr;
  }

  .credit-cost-grid > div {
    min-height: 78px;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    align-content: center;
    align-items: center;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .credit-cost-grid > div:first-child {
    border-top: 0;
  }

  .credit-cost-grid > div:nth-child(4),
  .credit-cost-grid > div:nth-child(5) {
    border-top: 1px solid var(--line);
  }

  .credit-product {
    min-height: 250px;
  }

  .account-page {
    gap: 12px;
  }

  .account-panel-head {
    min-height: 52px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .account-panel-head > span {
    display: none;
  }

  .account-identity {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 14px;
  }

  .account-avatar {
    width: 52px;
    height: 52px;
    font-size: var(--text-5);
  }

  .account-identity-copy h3 {
    font-size: var(--text-4);
    line-height: var(--leading-4);
  }

  .account-identity-actions {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-identity-actions .btn {
    width: 100%;
  }

  .account-feature-row,
  .account-security-row {
    grid-template-columns: 40px minmax(0, 1fr);
    padding-right: 14px;
    padding-left: 14px;
  }

  .account-feature-row .btn,
  .account-security-row .btn {
    width: fit-content;
    grid-column: 2;
  }

  .account-summary-grid {
    grid-template-columns: 1fr;
  }

  .account-summary-item {
    min-height: 104px;
    padding: 16px 14px;
  }

  .account-summary-item + .account-summary-item {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .account-wallet-tabs {
    gap: 18px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .account-links {
    display: grid;
    gap: 14px;
    padding: 16px 14px;
  }

  .account-links nav {
    justify-content: flex-start;
  }

  .page-heading {
    display: grid;
    gap: 12px;
  }

  .overview-heading {
    display: grid;
    gap: 14px;
  }

  .overview-heading .btn {
    width: 100%;
  }

  .overview-heading h2 {
    font-size: var(--text-6);
    line-height: var(--leading-6);
  }

  .overview-prompt {
    grid-template-columns: 1fr;
  }

  .overview-prompt input {
    min-height: 48px;
    padding: 6px;
  }

  .overview-prompt .btn {
    width: 100%;
  }

  .studio-feature-grid,
  .tool-grid,
  .discovery-grid {
    grid-template-columns: 1fr;
  }

  .studio-feature {
    min-height: 154px;
  }

  .lyrics-form-grid {
    grid-template-columns: 1fr;
  }

  .lyrics-form-grid .field-full {
    grid-column: auto;
  }

  .page-actions {
    width: 100%;
  }

  .page-actions .btn {
    flex: 1;
  }

  .create-home-title {
    text-align: left;
  }

  .create-home-title h2 {
    font-size: 25px;
  }

  .prompt-studio > textarea {
    min-height: 132px;
    padding: 16px;
    font-size: 15px;
  }

  .prompt-toolbar {
    flex-wrap: wrap;
  }

  .prompt-provider {
    display: none;
  }

  .generate-button {
    min-width: 88px;
  }

  .prompt-options {
    gap: 12px;
    padding: 13px;
  }

  .music-model-picker {
    grid-template-columns: 1fr;
  }

  .music-model-picker button {
    min-height: 56px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .music-task-row {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 12px;
  }

  .music-task-row > .cover {
    width: 42px;
    height: 42px;
  }

  .music-task-copy {
    display: grid;
    gap: 2px;
  }

  .music-task-side {
    grid-column: 2;
    justify-content: start;
  }

  .music-preview-list .btn {
    flex: 1 1 150px;
  }

  .pagination {
    justify-content: space-between;
    gap: 8px;
    padding-inline: 10px;
  }

  .pagination span {
    font-size: 10px;
    text-align: center;
  }

  .advanced-grid,
  .lyrics-assistant-grid {
    grid-template-columns: 1fr;
    padding: 13px;
  }

  .field-full {
    grid-column: auto;
  }

  .preset-row button {
    aspect-ratio: 1.55 / 1;
  }

  .work-row {
    grid-template-columns: 46px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 10px;
    padding: 10px;
  }

  .work-row > .cover,
  .work-row > .work-cover-stack {
    grid-row: 1 / span 2;
  }

  .work-row > .work-main {
    grid-column: 2;
    grid-row: 1;
  }

  .work-row > .work-meta {
    display: block;
    grid-column: 2;
    grid-row: 2;
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .work-row > .work-row-actions {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .voice-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .voice-studio-head {
    align-items: flex-start;
  }

  .voice-studio-head .btn {
    flex: 0 0 auto;
  }

  .voice-input-modes {
    width: 100%;
  }

  .voice-record-controls {
    flex-wrap: wrap;
  }

  .voice-record-controls .btn {
    flex: 1 1 120px;
  }

  .work-total-heading {
    min-width: auto;
    padding-right: 0;
    border-right: 0;
  }

  .work-total-heading strong {
    font-size: 20px;
  }

  .work-row > .badge,
  .work-row > .icon:last-child,
  .work-row > .work-open {
    display: none;
  }

  .work-preference,
  .work-trash {
    width: 38px;
    min-width: 38px;
    padding: 0;
  }

  .work-title .work-model-badge {
    padding-inline: 4px;
    font-size: 9px;
  }

  .lyrics-choice-row {
    grid-template-columns: 1fr;
  }

  .lyrics-choice-row span {
    min-height: 48px;
  }

  .work-identity {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .work-identity > .cover,
  .work-identity-cover {
    width: 120px;
    height: 120px;
  }

  .work-identity h2 {
    font-size: 22px;
  }

  .work-actions .btn {
    flex: 1 1 140px;
  }

  .mv-work-picker {
    grid-template-columns: 1fr;
  }

  .mv-audio-repair {
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }

  .mv-audio-repair > .btn-icon {
    grid-column: 3;
  }

  .mv-audio-repair > #mv-source-audio-choose {
    grid-column: 1 / 3;
  }

  .mv-character-field {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .mv-character-thumb {
    width: 52px;
    height: 52px;
  }

  .mv-character-actions {
    grid-column: 1 / -1;
  }

  .mv-character-actions .btn:not(.btn-icon) {
    flex: 1;
  }

  .mv-character-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .mv-character-delete {
    opacity: 1;
  }

  .modal-foot:has(.ai-character-cost) {
    flex-wrap: wrap;
  }

  .ai-character-cost {
    flex-basis: 100%;
  }

  .ai-character-asset-types {
    grid-template-columns: 1fr;
  }

  .style-swatches {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mv-settings-row {
    grid-template-columns: 1fr;
  }

  .mv-submit {
    align-items: stretch;
    flex-direction: column;
  }

  .mv-submit .btn {
    width: 100%;
  }

  .mv-task-card {
    grid-template-columns: 1fr;
  }

  .mv-task-media {
    aspect-ratio: 16 / 9;
  }

  .competition-card {
    grid-template-columns: 1fr;
  }

  .competition-card > div:last-child {
    justify-content: space-between;
  }

  .competition-facts {
    display: grid;
    gap: 6px;
  }

  .product-row,
  .transaction-row,
  .order-row,
  .admin-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .transaction-row > span:nth-last-child(2),
  .order-row > .badge {
    display: none;
  }

  .global-player {
    grid-template-columns: 104px minmax(0, 1fr) auto;
  }

  .player-track {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .player-cover {
    width: 38px;
    height: 38px;
  }
}

/* Workspace typography and icon polish. Keep the scale intentionally small. */
body.workspace-body {
  --workspace-caption: 12px;
  --workspace-label: 13px;
  --workspace-body: 14px;
  --workspace-subheading: 17px;
  --workspace-heading: 28px;
  font-size: var(--workspace-body);
  line-height: 1.5;
}

.workspace-nav a,
.sidebar-credit,
.sidebar-account {
  font-size: var(--workspace-body);
}

.page-context h1 {
  font-size: 16px;
}

.page-context p,
.nav-label,
.brand-edition {
  font-size: var(--workspace-caption);
}

.page-heading-copy {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-heading-copy > div {
  min-width: 0;
}

.page-heading-icon {
  width: 42px;
  height: 42px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid color-mix(in oklch, var(--signal), var(--line) 62%);
  border-radius: var(--radius-md);
  color: var(--signal);
  background: color-mix(in oklch, var(--signal), var(--surface) 92%);
}

.page-heading-icon .icon {
  width: 21px;
  height: 21px;
}

.page-heading h2 {
  font-size: var(--workspace-heading);
  line-height: 1.25;
}

.page-heading p {
  margin-top: 4px;
  color: var(--ink-tertiary);
  font-size: var(--workspace-body);
  line-height: 1.5;
}

.panel-head h3,
.section-row h3,
.account-panel-head h2,
.work-library-head h3 {
  font-size: var(--workspace-subheading);
  line-height: 1.4;
}

.panel-head p,
.section-row p,
.field > small,
.field label,
.field-label {
  font-size: var(--workspace-label);
  line-height: 1.5;
}

.btn {
  font-size: var(--workspace-body);
  white-space: nowrap;
}

.btn-sm {
  font-size: var(--workspace-label);
}

.segmented button,
.experience-control button,
.modal-foot button,
.page-actions .btn,
.voice-input-modes button,
.order-check {
  white-space: nowrap;
}

.btn .icon,
.page-heading-icon .icon,
.overview-stat-icon .icon {
  transition: transform 160ms var(--ease), color 160ms var(--ease);
}

.btn:hover:not(:disabled) .icon {
  transform: translateY(-1px);
}

.create-home-title > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--workspace-label);
}

/* 小程序 web-view 使用微信原生标题栏，网页端不重复加标题行；
   但首页需要品牌标识，于是把 logo 放在模式标签同一行，不额外占一行。 */
.create-home-brand {
  display: none !important;
}

html[data-host="miniprogram"] .create-home-brand {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  color: var(--ink);
}

html[data-host="miniprogram"] .create-home-brand img {
  width: 22px;
  height: 22px;
}

html[data-host="miniprogram"] .create-home-brand b {
  font-size: 13px;
  font-weight: var(--weight-bold);
  letter-spacing: .02em;
}

.create-home-brand img {
  display: block;
  border-radius: 6px;
}

html[data-experience="simple"] .create-home-title > span.simple-only {
  display: inline-flex !important;
}

.create-home-title > span .icon {
  width: 16px;
  height: 16px;
}

.create-home-title h2 {
  margin-top: 7px;
  font-size: 32px;
  line-height: 1.25;
}

.create-home-title p {
  font-size: var(--workspace-body);
  line-height: 1.5;
}

.prompt-studio > textarea {
  font-size: 16px;
  line-height: 1.65;
}

#mode-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: var(--workspace-body);
}

#mode-switch .icon {
  width: 16px;
  height: 16px;
}

.creation-flow strong,
.simple-journey strong {
  font-size: var(--workspace-body);
}

.creation-flow small,
.simple-journey small {
  font-size: var(--workspace-caption);
  line-height: 1.4;
}

.creation-flow li > span .icon,
.simple-journey > div > span .icon {
  width: 16px;
  height: 16px;
}

.music-model-picker strong {
  font-size: var(--workspace-body);
}

.music-model-picker small,
.music-model-picker b,
.cost-copy,
.voice-choice small,
.voice-studio-head span,
.preset-head,
.simple-create-note {
  font-size: var(--workspace-caption);
}

.voice-choice strong,
.preset-row button {
  font-size: var(--workspace-body);
}

.advanced-creation > summary,
.lyrics-tool > summary {
  font-size: var(--workspace-body);
}

.overview-stat-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  color: var(--signal);
  background: color-mix(in oklch, var(--signal), transparent 88%);
}

.overview-stats a {
  position: relative;
}

.overview-stat-icon .icon {
  width: 17px;
  height: 17px;
}

.experience-control-topbar .icon {
  width: 14px;
  height: 14px;
}

#work-period-filter button {
  white-space: nowrap;
}

@media (max-width: 540px) {
  body.workspace-body {
    --workspace-heading: 24px;
    --workspace-subheading: 16px;
  }

  .page-context h1 {
    font-size: 15px;
  }

  .experience-control-topbar {
    min-width: 112px;
  }

  .page-heading-copy {
    align-items: flex-start;
    gap: 10px;
  }

  .page-heading-icon {
    width: 38px;
    height: 38px;
  }

  .page-heading-icon .icon {
    width: 19px;
    height: 19px;
  }

  .page-heading h2 {
    font-size: var(--workspace-heading);
  }

  .create-home-title h2 {
    font-size: 26px;
  }

  .creation-flow li {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 4px;
    padding: 8px 4px;
  }

  .creation-flow li > span {
    width: 20px;
    height: 20px;
  }

  .creation-flow li > span .icon {
    width: 14px;
    height: 14px;
  }

  .creation-flow strong {
    font-size: var(--workspace-label);
  }

  .create-home-title p,
  .page-heading p {
    font-size: var(--workspace-body);
  }

  .mobile-tabs a {
    font-size: 11px;
  }

  #work-period-filter {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #work-period-filter button {
    min-width: 0;
    padding-inline: 6px;
    font-size: var(--workspace-caption);
  }

  .lyrics-form-submit {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .lyrics-form-submit .btn {
    width: 100%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn .icon,
  .page-heading-icon .icon,
  .overview-stat-icon .icon {
    transition: none;
  }
}

/* Intentional desktop/tablet/H5 layouts shared by creator and judge workspaces. */
.mobile-sheet-mode {
  display: none;
}

@media (min-width: 1280px) {
  .creator-workspace .workspace-content,
  .judge-workspace .workspace-content {
    padding-right: 36px;
    padding-left: 36px;
  }

}

@media (min-width: 1440px) {
  .creator-workspace .workspace-content,
  .judge-workspace .workspace-content {
    width: min(1320px, 100%);
    padding-top: 34px;
  }

  .creator-workspace .create-home {
    width: min(1040px, 100%);
  }

  .creator-workspace .studio-overview {
    width: min(1160px, 100%);
  }
}

@media (max-width: 820px), (max-width: 1024px) and (max-height: 500px) {
  .creator-workspace .btn,
  .judge-workspace .btn,
  .creator-workspace .segmented button,
  .creator-workspace .experience-control button {
    min-height: 44px;
  }

  .creator-workspace .btn-sm,
  .judge-workspace .btn-sm {
    min-height: 40px;
  }

  .creator-workspace .prompt-options > .music-model-field,
  .creator-workspace .prompt-options > .cost-copy {
    grid-column: 1;
  }

  .creator-workspace .voice-preview,
  .creator-workspace .voice-edit {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    top: auto;
    bottom: 2px;
    right: 2px;
  }

  .creator-workspace .voice-preview span {
    display: none;
  }

  .creator-workspace .voice-choice-wrap.has-actions .voice-choice {
    padding-bottom: 44px;
  }

  .creator-workspace .voice-choice-wrap.has-preview.has-edit .voice-edit {
    right: 48px;
  }

  .creator-workspace .work-preference,
  .creator-workspace .work-trash,
  .creator-workspace .work-preference-filter {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }

  .creator-workspace .mobile-tabs,
  .judge-workspace .mobile-tabs {
    height: calc(var(--mobile-nav-height) + var(--safe-bottom));
    padding-right: max(4px, var(--safe-right));
    padding-bottom: var(--safe-bottom);
    padding-left: max(4px, var(--safe-left));
  }

  .creator-workspace .mobile-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .creator-workspace .mobile-tabs > :is(a, button),
  .judge-workspace .mobile-tabs > :is(a, button) {
    min-width: 0;
    min-height: var(--mobile-nav-height);
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    padding: 0;
    border: 0;
    color: var(--ink-tertiary);
    background: transparent;
    font-size: 11px;
    text-decoration: none;
  }

  .creator-workspace .mobile-tabs > :is(a, button).active,
  .creator-workspace .mobile-tabs > :is(a, button)[aria-current="page"],
  .judge-workspace .mobile-tabs > :is(a, button).active,
  .judge-workspace .mobile-tabs > :is(a, button)[aria-current="page"] {
    color: var(--signal);
  }

  .creator-workspace .mobile-tabs > :is(a, button) .icon,
  .judge-workspace .mobile-tabs > :is(a, button) .icon {
    width: 21px;
    height: 21px;
  }

  .creator-workspace .workspace-topbar,
  .judge-workspace .workspace-topbar {
    min-height: calc(60px + var(--safe-top));
    padding: max(8px, var(--safe-top)) max(var(--mobile-gutter), var(--safe-right)) 8px max(var(--mobile-gutter), var(--safe-left));
  }

  .creator-workspace .workspace-content,
  .judge-workspace .workspace-content {
    padding: 24px 20px 46px;
  }

  .creator-workspace .global-player {
    bottom: calc(var(--mobile-nav-height) + var(--safe-bottom));
  }

  .mobile-sheet-mode {
    display: grid;
    gap: 7px;
    padding: 12px var(--mobile-gutter);
    border-bottom: 1px solid var(--line);
  }

  .mobile-sheet-mode > span {
    color: var(--ink-tertiary);
    font-size: 11px;
    font-weight: 700;
  }

  .mobile-sheet-mode .experience-control {
    width: 100%;
  }

  .mobile-sheet-mode .experience-control button {
    min-height: 42px;
  }

  .mobile-more-sheet .mobile-sheet-card {
    grid-template-rows: auto auto auto minmax(0, 1fr);
  }

  .mobile-sheet-nav > a.active,
  .mobile-sheet-nav > a[aria-current="page"] {
    color: var(--signal);
  }

  html[data-experience="simple"] .mobile-sheet .professional-nav {
    display: none !important;
  }

  .creator-workspace .page-heading,
  .judge-workspace .page-heading {
    margin-bottom: 20px;
  }

  .creator-workspace .lyrics-workspace,
  .creator-workspace .mv-layout,
  .creator-workspace .work-detail,
  .creator-workspace .competition-detail-grid,
  .judge-workspace .score-layout {
    gap: 16px;
  }
}

@media (max-width: 639px) {
  .creator-workspace,
  .judge-workspace {
    padding-bottom: calc(var(--mobile-nav-height) + var(--safe-bottom));
  }

  .creator-workspace.has-player {
    padding-bottom: calc(var(--mobile-nav-height) + 76px + var(--safe-bottom));
  }

  .creator-workspace .workspace-content,
  .judge-workspace .workspace-content {
    padding: 20px var(--mobile-gutter) 40px;
  }

  .creator-workspace .page-context,
  .judge-workspace .page-context {
    flex: 1;
  }

  .creator-workspace .page-context h1,
  .judge-workspace .page-context h1 {
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .creator-workspace .page-heading-copy {
    gap: 10px;
  }

  .creator-workspace .page-heading-icon {
    width: 36px;
    height: 36px;
  }

  .creator-workspace .page-heading-icon .icon {
    width: 18px;
    height: 18px;
  }

  .creator-workspace .page-heading h2,
  .judge-workspace .page-heading h2 {
    font-size: 23px;
    line-height: 1.3;
  }

  .creator-workspace .page-heading p,
  .judge-workspace .page-heading p {
    margin-top: 3px;
    font-size: 13px;
    line-height: 1.55;
  }

  .creator-workspace .page-actions,
  .judge-workspace .page-actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
  }

  .creator-workspace .page-actions .btn,
  .judge-workspace .page-actions .btn {
    flex: 1 1 132px;
  }

  .creator-workspace .page-actions .btn-primary,
  .judge-workspace .page-actions .btn-primary {
    order: -1;
    flex-basis: 100%;
  }

  .creator-workspace .panel-head,
  .judge-workspace .panel-head {
    padding-right: 14px;
    padding-left: 14px;
  }

  .creator-workspace .panel-body,
  .judge-workspace .panel-body {
    padding: 14px;
  }

  .creator-workspace .create-home {
    margin-top: 0;
  }

  .creator-workspace .create-home-title {
    margin-bottom: 18px;
  }

  .creator-workspace .create-home-title h2 {
    margin-top: 5px;
    font-size: 25px;
    line-height: 1.3;
  }

  .creator-workspace .prompt-studio > textarea {
    min-height: 124px;
    padding: 16px;
    font-size: 16px;
  }

  .creator-workspace .prompt-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px;
  }

  .creator-workspace #mode-switch {
    width: 100%;
  }

  .creator-workspace #mode-switch button {
    min-width: 0;
    padding-right: 8px;
    padding-left: 8px;
  }

  .creator-workspace .generate-button {
    min-width: 104px;
    margin-left: 0;
  }

  .creator-workspace .creation-flow {
    margin-bottom: 12px;
  }

  .creator-workspace .overview-stats a {
    min-height: 106px;
    padding: 15px 13px;
  }

  .creator-workspace .overview-stat-icon {
    top: 13px;
    right: 13px;
    width: 30px;
    height: 30px;
  }

  .creator-workspace .discovery-grid {
    gap: 10px;
  }

  .creator-workspace .discovery-card {
    min-height: 108px;
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .creator-workspace .discovery-card > .cover {
    width: 108px;
    height: 100%;
    min-height: 108px;
    aspect-ratio: auto;
  }

  .creator-workspace .discovery-card > .discovery-card-cover {
    width: 108px;
    min-height: 108px;
    height: auto;
    align-self: center;
  }

  .creator-workspace .discovery-card > .discovery-card-cover.has-image {
    min-height: 0;
  }

  .creator-workspace .discovery-card-copy {
    min-width: 0;
    padding: 10px 11px;
  }

  .creator-workspace .discovery-card-copy p {
    min-height: 0;
    margin: 5px 0;
    -webkit-line-clamp: 1;
  }

  .creator-workspace .discovery-card > .btn {
    right: 7px;
    bottom: 7px;
  }

  .creator-workspace .mv-submit {
    position: sticky;
    z-index: 12;
    bottom: calc(var(--mobile-nav-height) + var(--safe-bottom) + 8px);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: rgb(17 19 24 / 97%);
    box-shadow: 0 12px 32px rgb(0 0 0 / 34%);
    backdrop-filter: blur(14px);
  }

  .creator-workspace .credit-product {
    min-height: 210px;
  }

  .creator-workspace .global-player {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .creator-workspace .global-player audio {
    display: none;
  }

  .judge-workspace .score-sheet {
    position: static;
  }

  .judge-workspace #score-submit {
    position: sticky;
    bottom: calc(var(--mobile-nav-height) + var(--safe-bottom) + 8px);
    min-height: 48px;
    box-shadow: 0 10px 28px rgb(0 0 0 / 34%);
  }
}

@media (max-width: 374px) {
  .creator-workspace .experience-control-topbar {
    min-width: 106px;
  }

  .creator-workspace .experience-control-topbar button {
    padding-right: 5px;
    padding-left: 5px;
  }

  .creator-workspace .credit-button {
    padding-right: 8px;
    padding-left: 8px;
  }
}

/* Compact music creation: one description, one-row choices, optional deep controls. */
.music-description-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 0;
}

.music-description-head label {
  color: var(--ink);
  font-size: 13px;
  font-weight: var(--weight-bold);
}

.music-description-head small,
.music-description-hint,
.prompt-balance {
  color: var(--ink-tertiary);
  font-size: var(--workspace-caption);
}

.prompt-studio > textarea {
  min-height: 106px;
  padding: 8px 16px 5px;
}

.music-description-hint {
  display: block;
  padding: 0 16px 11px;
  line-height: 1.45;
}

.creation-kind-switch button {
  min-width: 96px;
}

.prompt-toolbar {
  min-height: 52px;
  padding: 7px 10px;
}

.prompt-balance {
  margin-left: auto;
  white-space: nowrap;
}

.prompt-balance b {
  color: var(--ink-secondary);
  font-variant-numeric: tabular-nums;
}

.generate-button {
  margin-left: 0;
}

.prompt-options {
  grid-template-columns: minmax(0, 1fr) minmax(190px, .42fr);
  gap: 10px;
  padding: 10px 12px 12px;
}

.prompt-options > .music-model-field {
  grid-column: auto;
}

.prompt-options .field > label,
.voice-studio-head strong {
  font-size: 12px;
}

.music-model-picker button {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 9px;
  text-align: center;
}

.music-model-picker button strong,
.music-model-picker button b {
  margin: 0;
  font-size: 11px;
}

.music-model-picker button strong {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.4;
}

.groove-toggle .check-inline {
  min-height: 46px;
  align-items: center;
  padding: 7px 10px;
  line-height: 1.35;
}

.groove-toggle .check-inline input {
  margin-top: 0;
}

.groove-toggle .check-inline span,
.groove-toggle .check-inline strong,
.groove-toggle .check-inline small {
  min-width: 0;
  display: block;
}

.groove-toggle .check-inline strong {
  color: var(--ink-secondary);
  font-size: 11px;
}

.groove-toggle .check-inline small {
  margin-top: 2px;
  color: var(--ink-tertiary);
  font-size: 10px;
}

.voice-studio {
  padding: 11px 12px 12px;
}

.voice-studio-head {
  margin-bottom: 8px;
}

.voice-studio-head span {
  margin-top: 1px;
  font-size: 10px;
}

.voice-picker {
  display: flex;
  gap: 7px;
  padding-bottom: 3px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.voice-choice-wrap {
  flex: 0 0 144px;
  scroll-snap-align: start;
}

.voice-choice,
.voice-choice-wrap.has-actions .voice-choice {
  min-height: 58px;
  grid-template-columns: 26px minmax(0, 1fr);
  column-gap: 7px;
  padding: 7px;
}

.voice-choice-wrap.has-actions .voice-choice {
  min-height: 72px;
  padding-bottom: 28px;
}

.voice-choice > span {
  width: 26px;
  height: 26px;
}

.voice-choice > span .icon {
  width: 15px;
  height: 15px;
}

.voice-choice strong {
  font-size: 11px;
}

.voice-choice small {
  font-size: 9px;
}

.voice-preview,
.voice-edit,
.voice-delete,
.voice-continue {
  right: 5px;
  bottom: 3px;
  min-height: 26px;
  font-size: 10px;
}

.voice-choice-wrap.has-preview.has-edit .voice-edit {
  right: 60px;
}

.advanced-creation > summary {
  min-height: 44px;
  padding-block: 8px;
}

.advanced-creation:not([open]) + .professional-submit {
  display: none;
}

.lyrics-structure-helper {
  margin: 8px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
}

.lyrics-structure-helper > summary {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: var(--weight-medium);
  list-style: none;
  cursor: pointer;
}

.lyrics-structure-helper > summary::-webkit-details-marker {
  display: none;
}

.lyrics-structure-helper > summary .icon {
  width: 16px;
  color: var(--signal);
}

.lyrics-structure-helper > summary span {
  margin-left: auto;
  color: var(--ink-tertiary);
  font-size: 10px;
}

.lyrics-structure-groups {
  display: grid;
  gap: 12px;
  padding: 11px;
  border-top: 1px solid var(--line);
}

.lyrics-structure-groups section > strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-tertiary);
  font-size: 10px;
}

.lyrics-structure-groups section > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lyrics-structure-groups button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-secondary);
  background: var(--surface);
  cursor: pointer;
}

.lyrics-structure-groups button:hover,
.lyrics-structure-groups button:focus-visible {
  border-color: var(--signal);
  color: var(--ink);
}

.lyrics-structure-groups button span {
  font-size: 11px;
}

.lyrics-structure-groups button code {
  color: var(--signal);
  font-family: inherit;
  font-size: 10px;
}

.lyrics-structure-groups > p {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--ink-tertiary);
  font-size: 10px;
}

.lyrics-structure-groups > p .icon {
  width: 14px;
  flex: 0 0 auto;
}

@media (max-width: 820px), (max-width: 1024px) and (max-height: 500px) {
  .creator-workspace .create-home-title {
    margin-bottom: 10px;
  }

  .creator-workspace .prompt-studio > textarea {
    min-height: 94px;
    padding: 7px 13px 4px;
  }

  .music-description-head {
    padding: 11px 13px 0;
  }

  .music-description-head {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 10px;
  }

  .music-idea-tools {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .music-scene-trigger {
    flex: 1;
  }

  .music-description-head small {
    grid-column: 2;
    grid-row: 1;
    white-space: nowrap;
    text-align: right;
  }

  .music-description-hint {
    padding: 0 13px 9px;
  }

  .creator-workspace .prompt-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .creator-workspace .prompt-provider,
  .creator-workspace .prompt-balance {
    display: none;
  }

  .creator-workspace .prompt-options {
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 8px;
    padding: 9px;
  }

  .creator-workspace .prompt-options > .music-model-field {
    grid-column: auto;
  }

  .creator-workspace .music-model-picker {
    grid-template-columns: repeat(var(--music-model-count, 3), minmax(0, 1fr));
  }

  .creator-workspace .music-model-picker button {
    min-height: 44px;
    grid-template-columns: none;
  }

  .creator-workspace .voice-preview,
  .creator-workspace .voice-edit {
    width: auto;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
    right: 4px;
    bottom: 2px;
  }

  .creator-workspace .voice-choice-wrap.has-actions .voice-choice {
    padding-bottom: 28px;
  }
}

@media (max-width: 639px) {
  .creator-workspace .create-home-title h2 {
    font-size: 22px;
  }

  .music-description-head {
    align-items: flex-start;
  }

  .music-description-head small {
    text-align: right;
  }

  .creator-workspace .prompt-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .creator-workspace .prompt-provider,
  .creator-workspace .prompt-balance {
    display: none;
  }

  .creator-workspace .creation-kind-switch button {
    min-width: 0;
    gap: 3px;
    padding-inline: 6px;
    font-size: 11px;
  }

  .creator-workspace .creation-kind-switch .icon {
    display: none;
  }

  .creator-workspace .prompt-options {
    grid-template-columns: minmax(0, 1fr);
  }

  .creator-workspace .prompt-options > .music-model-field {
    grid-column: 1;
  }

  .creator-workspace .groove-toggle {
    grid-column: 1;
  }

  .creator-workspace .music-model-picker {
    grid-template-columns: repeat(var(--music-model-count, 3), minmax(0, 1fr));
  }

  .creator-workspace .music-model-picker button {
    min-height: 44px;
    display: grid;
    justify-items: center;
    gap: 2px;
    padding: 6px;
  }

  .creator-workspace .music-model-picker button strong,
  .creator-workspace .music-model-picker button b {
    font-size: 12px;
    text-align: center;
  }

  .creator-workspace .music-model-picker .music-model-emphasis {
    display: block;
    white-space: nowrap;
  }

  .creator-workspace .groove-toggle .check-inline {
    min-height: 42px;
  }

  .voice-studio {
    padding: 9px;
  }

  .voice-studio-head span {
    display: none;
  }

  .voice-choice-wrap {
    flex-basis: 132px;
  }

  .lyrics-structure-helper > summary span {
    display: none;
  }

  .lyrics-structure-groups section > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lyrics-structure-groups button {
    min-width: 0;
    justify-content: space-between;
  }
}

/* 简单模式按任务减少入口；试听按钮占用原图标位置，操作区独立留白。 */
html[data-experience="simple"] a:is([href^="/app/tools"], [href^="/app/competitions"], [href^="/m/tools"], [href^="/m/competitions"]),
html[data-experience="simple"] .professional-nav {
  display: none !important;
}

.creator-workspace .voice-choice-wrap.has-actions .voice-choice {
  min-height: 80px;
  grid-template-columns: 32px minmax(0, 1fr);
  padding: 9px 8px 32px;
}

.creator-workspace .voice-choice-wrap.has-preview .voice-choice > span {
  visibility: hidden;
}

.creator-workspace .voice-choice-wrap > .voice-preview {
  position: absolute;
  inset: 16px auto auto 8px;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  color: var(--signal);
  background: var(--signal-soft);
}

/* 状态文案最多两行，避免个别长提示把整行卡片撑高 */
.creator-workspace .voice-choice-wrap.custom .voice-choice small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow-wrap: anywhere;
  white-space: normal;
}

.creator-workspace .voice-card-actions {
  right: 6px;
  bottom: 5px;
  justify-content: flex-end;
}

.mv-video-preview-modal {
  width: min(1100px, 96vw);
  max-width: 96vw;
}

.mv-video-preview-stage {
  display: grid;
  place-items: center;
  padding: 12px;
  background: #000;
}

.mv-video-preview-stage video {
  width: 100%;
  max-height: 76dvh;
  object-fit: contain;
}

/* Full-song alignment stays beside the retained lyrics input on every client. */
.mv-lyric-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.mv-lyric-actions small, .mv-word-line > small { color: var(--ink-secondary); font-size: 12px; }
.mv-word-timeline { border-top: 1px solid var(--line-default); margin-top: 16px; padding-top: 12px; min-width: 0; }
.mv-word-timeline summary { cursor: pointer; min-height: 44px; padding: 12px 0; font-size: 14px; }
.mv-word-line { padding: 12px 0; border-bottom: 1px solid var(--line-default); }
.mv-word-line > strong, .mv-word-line > small { display: block; margin-bottom: 8px; overflow-wrap: anywhere; }
.mv-word-line > div { display: flex; flex-wrap: wrap; gap: 6px; }
.mv-word-line button { min-width: 52px; min-height: 68px; border: 1px solid var(--line-default); border-radius: var(--radius-sm); color: var(--ink-primary); background: var(--surface-raised); padding: 6px; cursor: pointer; }
.mv-word-line button.selected { border-color: var(--signal); background: var(--signal-soft); }
.mv-word-line button:focus-visible, .mv-word-timeline summary:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.mv-word-line button span, .mv-word-line button small { display: block; }
.mv-word-line button small { font-size: 12px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.mv-timeline-pages { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
#mv-duration { margin-bottom: 16px; }
