/* 个人 Suno 沿用主站主题与控件，样式限制在工作区内部。 */
body[data-workspace="suno"] .studio-layout { grid-template-columns: 192px minmax(0, 1fr); }
.sw-view { min-width: 0; padding-bottom: 28px; }
.sw-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 24px; }
.sw-head h1 { margin: 4px 0 10px; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.045em; line-height: 1.16; }
.sw-eyebrow { margin: 0; color: var(--muted); font-size: 12px; letter-spacing: .035em; }
.sw-copy { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 8px 0; text-wrap: pretty; }
.sw-head-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; max-width: 480px; }
.sw-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 13px; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; font-size: 13px; text-decoration: none; line-height: 1.4; white-space: nowrap; transition: background .15s, border-color .15s; }
.sw-button:hover { background: var(--panel-strong); border-color: var(--line-strong); }
.sw-button:disabled { opacity: .5; cursor: wait; }
.sw-button:focus-visible, .sw-view input:focus-visible, .sw-view select:focus-visible, .sw-view textarea:focus-visible, .sw-song-name:focus-visible, .sw-source button:focus-visible, .sw-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sw-primary { background: var(--accent-deep); border-color: transparent; color: #fff; }
.sw-primary:hover { background: var(--accent); color: #fff; }
.sw-account-pill { color: var(--muted); padding: 8px 10px; border: 1px solid var(--line); border-radius: 99px; font-size: 12px; overflow-wrap: anywhere; }
.sw-account-pill[data-connected="true"] { color: var(--accent); }
.sw-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.sw-tabs button { background: transparent; color: var(--muted); padding: 0 0 13px; font-size: 13px; }
.sw-tabs button.is-active { color: var(--ink); box-shadow: 0 2px var(--accent); }
.sw-filters { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.sw-view label { display: grid; gap: 7px; font-size: 12px; color: var(--soft); }
.sw-view select, .sw-view input[type="search"], .sw-view textarea { min-height: 42px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--panel); padding: 10px 12px; min-width: 0; max-width: 100%; }
.sw-view option { color: var(--ink); background: var(--bg-deep); }
.sw-view textarea { width: 100%; resize: vertical; line-height: 1.7; }
.sw-search { flex: 1; min-width: 190px; }
.sw-source { display: flex; padding: 3px; gap: 3px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; min-height: 42px; }
.sw-source button { padding: 8px 11px; background: transparent; color: var(--muted); border-radius: 7px; font-size: 12px; }
.sw-source button[aria-pressed="true"] { background: var(--panel-strong); color: var(--ink); }
.sw-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sw-table th { text-align: left; font-weight: 500; color: var(--muted); padding: 0 10px 13px; font-size: 12px; border-bottom: 1px solid var(--line); }
.sw-table td { padding: 14px 10px; border-bottom: 1px solid var(--line); color: var(--soft); }
.sw-table .sw-check { width: 30px; padding-left: 0; padding-right: 4px; }
.sw-check input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.sw-song-name { display: flex; align-items: center; gap: 12px; min-width: 0; max-width: 100%; text-align: left; color: var(--ink); background: transparent; padding: 0; }
.sw-song-name img, .sw-art-placeholder { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; flex: 0 0 44px; }
.sw-art-placeholder { display: grid; place-items: center; background: var(--panel-strong); color: var(--muted); font-size: 22px; }
.sw-song-name strong { display: block; overflow-wrap: anywhere; font-size: 13px; font-weight: 550; }
.sw-song-name small { display: none; color: var(--muted); margin-top: 6px; }
.sw-row-actions { white-space: nowrap; }
.sw-row-actions .sw-button { padding: 6px 9px; min-height: 34px; margin-right: 4px; font-size: 12px; }
.sw-open-link { display: inline-flex; align-items: center; min-height: 34px; color: var(--muted); font-size: 12px; text-decoration: none; }
.sw-pagination { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 20px 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.sw-empty { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 48px 22px; color: var(--muted); border: 1px dashed var(--line); border-radius: 14px; margin: 18px 0; line-height: 1.7; }
.sw-empty h2 { font-size: 17px; color: var(--soft); margin: 0; }
.sw-empty p { margin: 0; max-width: 550px; font-size: 13px; }
.sw-notice { border: 1px solid var(--line); border-radius: 10px; color: var(--soft); padding: 12px 15px; font-size: 13px; margin: 16px 0; line-height: 1.7; overflow-wrap: anywhere; }
.sw-notice.is-error, .sw-empty.is-error, .sw-task-error { color: var(--warning); }
.sw-bulk { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; position: sticky; bottom: 18px; z-index: 12; background: var(--panel-strong); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow); padding: 14px; backdrop-filter: blur(20px); }
body.has-global-player .sw-bulk { bottom: 126px; }
.sw-bulk strong { margin-right: auto; font-size: 13px; }
.sw-bulk label { display: flex; align-items: center; white-space: nowrap; }
.sw-bulk select { min-height: 40px; padding: 8px; }
.sw-nav-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; min-height: 20px; margin-left: auto; border-radius: 6px; color: var(--accent); background: var(--panel-strong); font-size: 11px; }
.sw-history-nav { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 18px; }
.sw-connection-card { display: flex; justify-content: space-between; align-items: center; gap: 20px; border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
#sw-connection-summary { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
#sw-connection-summary h2 { font-size: 17px; margin: 0 0 8px; overflow-wrap: anywhere; }
#sw-connection-summary p { font-size: 13px; margin: 6px 0; }
.sw-status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); margin-top: 6px; flex: 0 0 9px; }
.sw-status-dot[data-connected="true"] { background: var(--accent); }
.sw-connection-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sw-connect-form { margin-top: 30px; max-width: 740px; }
.sw-connect-form h2 { font-size: 20px; margin: 0 0 18px; }
.sw-guide { padding-left: 22px; color: var(--soft); font-size: 13px; line-height: 2; margin-bottom: 22px; }
.sw-guide a { color: var(--accent); }
.sw-connect-form textarea { margin: 8px 0 4px; }
.sw-connect-form > button { margin-top: 12px; }
.sw-links-form { border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 24px; }
.sw-links-form > label { margin-bottom: 9px; }
.sw-links-form > div { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 12px; }
.sw-links-form > div label { display: flex; align-items: center; }
.sw-task { display: flex; justify-content: space-between; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.sw-task > div:first-child { min-width: 0; flex: 1; }
.sw-task h3 { font-size: 14px; margin: 0 0 8px; overflow-wrap: anywhere; }
.sw-task p { color: var(--muted); font-size: 12px; margin: 7px 0; overflow-wrap: anywhere; }
.sw-task progress { accent-color: var(--accent); width: min(420px, 100%); height: 5px; margin-top: 8px; }
.sw-drawer-backdrop { position: fixed; inset: 0; z-index: 160; background: rgba(0,0,0,.38); display: flex; justify-content: flex-end; }
.sw-drawer { width: min(440px, 100%); height: 100%; overflow-y: auto; background: var(--bg-deep); box-shadow: var(--shadow); border-left: 1px solid var(--line); padding: 24px; outline: none; }
.sw-drawer-close { display: flex; margin: 0 0 24px auto; }
.sw-detail-art { width: 128px; height: 128px; object-fit: cover; border-radius: 14px; margin-bottom: 18px; }
.sw-drawer h2 { font-size: 24px; line-height: 1.4; overflow-wrap: anywhere; margin: 0 0 24px; }
.sw-drawer h3 { font-size: 14px; margin-top: 28px; }
.sw-metadata { display: grid; grid-template-columns: 76px minmax(0,1fr); gap: 12px; font-size: 13px; }
.sw-metadata dt { color: var(--muted); }
.sw-metadata dd { margin: 0; overflow-wrap: anywhere; }
.sw-detail-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.sw-lyrics { white-space: pre-wrap; font: inherit; font-size: 13px; line-height: 1.9; color: var(--soft); overflow-wrap: anywhere; }
:root[data-theme="light"] .sw-primary { background: #4285f4; }
:root[data-theme="light"] .sw-primary:hover { background: #3367d6; }
:root[data-theme="light"] .sw-bulk, :root[data-theme="light"] .sw-drawer { background: var(--bg-deep, #fff); }
@media (max-width: 1150px) { .sw-head { flex-direction: column; } .sw-head-actions { justify-content: flex-start; max-width: none; } .sw-date-cell { display: none; } .sw-table td, .sw-table th { padding-left: 7px; padding-right: 7px; } }
@media (max-width: 760px) {
  body[data-workspace="suno"] .studio-layout { grid-template-columns: minmax(0, 1fr); }
  body[data-workspace="suno"] .side-nav { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding: 8px 0 12px; }
  body[data-workspace="suno"] .side-nav .nav-item { flex: 0 0 auto; width: auto; min-height: 44px; margin: 0; border-top: 0; padding: 10px 12px; font-size: 12px; white-space: nowrap; }
  body[data-workspace="suno"] .side-nav .nav-item svg { width: 15px; height: 15px; }
  .sw-head { gap: 14px; margin-bottom: 20px; } .sw-head-actions { gap: 7px; } .sw-account-pill { width: 100%; }
  .sw-head-actions .sw-button { min-height: 44px; } .sw-filters { gap: 12px; } .sw-filters > label { flex: 1; min-width: 120px; } .sw-filters .sw-search { min-width: 170px; }
  .sw-source { width: 100%; } .sw-source button { flex: 1; min-height: 36px; }
  .sw-table thead { display: none; } .sw-table tbody { display: grid; } .sw-table tr { display: grid; grid-template-columns: 24px minmax(0,1fr); padding: 16px 0; border-bottom: 1px solid var(--line); gap: 10px 0; }
  .sw-table td { border: 0; padding: 0 0 0 7px; } .sw-table .sw-check { width: auto; padding: 13px 0 0; grid-column: 1; grid-row: 1 / span 2; } .sw-check input { width: 18px; height: 18px; }
  .sw-table .sw-source-cell, .sw-table .sw-duration-cell, .sw-table .sw-date-cell { display: none; }
  .sw-table .sw-row-actions { grid-column: 2; display: flex; gap: 8px; padding-left: 62px; flex-wrap: wrap; } .sw-row-actions .sw-button, .sw-open-link { min-height: 40px; margin: 0; } .sw-song-name small { display: block; } .sw-song-name { width: 100%; }
  .sw-pagination { align-items: flex-start; } .sw-bulk { bottom: 10px; gap: 8px; padding: 12px; } .sw-bulk strong { flex: 1; } .sw-bulk label { width: calc(50% - 4px); } .sw-bulk > .sw-primary { flex: 1; }
  body.has-global-player .sw-bulk { bottom: 138px; } .sw-connection-card { align-items: flex-start; flex-direction: column; padding: 18px; } .sw-connection-actions { width: 100%; } .sw-connection-actions .sw-button { flex: 1; }
  .sw-links-form { padding: 16px; } .sw-links-form > div { flex-wrap: wrap; } .sw-links-form > div label { flex: 1; } .sw-links-form > div button { min-height: 44px; }
  .sw-drawer { padding: 20px; } .sw-task-actions .sw-button { min-height: 44px; } .sw-empty { padding: 36px 16px; }
}
@media (prefers-reduced-motion: reduce) { .sw-button { transition: none; } }

/* 独立歌词页复用原控件样式，避免歌曲库文本框规则压缩歌词输入区。 */
#view-suno-lyrics .cover-lyric-field textarea { min-height: 320px; }
@media (max-width: 760px) { #view-suno-lyrics .cover-lyric-field textarea { min-height: 220px; } }
#view-suno-lyrics .cover-lyric-card > .section-title { grid-template-columns: minmax(0, 1fr); }
#view-suno-lyrics .cover-lyric-auto-arrange { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
