:root {
  --ink: #37352f;
  --muted: #66635c;
  --soft: #6e6b64;
  --line: #e3e0d9;
  --canvas: #ffffff;
  --paper: #ffffff;
  --sidebar: #f7f6f3;
  --accent: #176b8e;
  --accent-light: #e8f6fc;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 14px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button { border: 0; background: none; color: var(--accent); cursor: pointer; }
a { color: inherit; text-decoration: none; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button:disabled { opacity: .5; cursor: wait; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid #0f7b6c; outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.icon { display: inline-block; width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; width: 224px; padding: 30px 17px 20px; display: flex; flex-direction: column; background: var(--sidebar); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 9px; font-size: 19px; font-weight: 650; letter-spacing: .2px; }
.brand img { border-radius: 7px; }
.new-button { margin: 29px 0 28px; min-height: 40px; display: flex; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid #a5d6e9; border-radius: 6px; background: #f0f9fd; font-size: 13px; box-shadow: 0 1px 2px #37352f03; text-align: left; color: #176b8e; }
.new-button:hover { background: #dff3fb; }
.new-button .icon { width: 16px; height: 16px; color: #176b8e; }
.nav-label { padding: 0 12px; margin-bottom: 9px; font-size: 11px; color: #66635c; }
.nav-link { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; margin: 3px 0; padding: 0 12px; border-radius: 5px; color: #66635c; font-size: 13px; text-align: left; }
.nav-link .icon { width: 17px; height: 17px; color: #6e6b64; }
.nav-link:hover { background: #f3f2ef; }
.nav-link.active { color: #176b8e; background: #e8f6fc; font-weight: 550; }
.nav-link.active .icon { color: #176b8e; }
.nav-link small { margin-left: auto; font-size: 11px; color: #66635c; font-weight: 400; }
.sidebar-bottom { margin-top: auto; padding-top: 45px; }
.help-link { margin-bottom: 11px; }
.sidebar-note { margin: 0 12px; color: #66635c; font-size: 11px; line-height: 1.8; }
.main-shell { margin-left: 224px; }
.topbar { position: sticky; top: 0; z-index: 25; min-height: 58px; padding: 0 35px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); background: #ffffffed; backdrop-filter: blur(12px); }
.breadcrumbs { display: flex; align-items: center; gap: 13px; color: #66635c; font-size: 12px; }
.breadcrumbs strong { color: #66635c; font-weight: 450; }
.slash { color: #c5c1b8; }
.language-switch { display: flex; align-items: center; gap: 7px; min-height: 33px; padding: 0 10px; border: 1px solid #e3e0d9; border-radius: 5px; background: #ffffff; font-size: 12px; white-space: nowrap; }
.language-switch:hover { background: var(--sidebar); border-color: #c5c1b8; }
.language-switch .icon { width: 15px; height: 15px; color: #66635c; }
.topbar-actions { display: flex; align-items: center; gap: 9px; min-width: 0; }
.free-badge { padding: 6px 10px; border-radius: 5px; background: #eaf6f1; color: #0f7b6c; font-size: 12px; white-space: nowrap; }
.session-status { position: sticky; top: 58px; z-index: 24; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 9px 14px; background: #fff0ed; color: #ac3535; font-size: 12px; }
.icon-button { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 6px; border-radius: 5px; color: #176b8e; flex-shrink: 0; }
.icon-button:hover { background: #f3f2ef; color: #66635c; }
.mobile-menu { display: none; font-size: 18px; }
main { max-width: 1160px; margin: 0 auto; padding: 39px 40px 0; }
.page-heading { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; margin-bottom: 31px; }
.page-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 13px; background: #fff0ed; color: #c53e3e; border: 1px solid #f5ceca; border-radius: 8px; }
.page-icon .icon { width: 25px; height: 25px; stroke-width: 1.4; }
h1 { font-size: 28px; line-height: 1.4; font-weight: 650; letter-spacing: .1px; }
.page-heading p { margin-top: 8px; color: var(--muted); font-size: 13px; }
.autosave { display: inline-flex; align-items: center; gap: 6px; color: #66635c; font-size: 11px; white-space: nowrap; padding-bottom: 3px; }
.status-dot { display: inline-block; width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: #0f7b6c; }
.creation-flow { display: flex; flex-direction: column; gap: 23px; }
.flow-card { min-width: 0; padding: 25px 27px 27px; border: 1px solid #e3e0d9; border-radius: 8px; background: #ffffff; box-shadow: 0 1px 3px #37352f02; }
.section-header { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 21px; }
.step-number { display: inline-grid; place-items: center; width: 24px; height: 24px; flex-shrink: 0; border-radius: 5px; background: #e8f6fc; border: 1px solid #b8deef; color: #176b8e; font: 12px/1 var(--font); margin-top: 1px; }
.section-header h2 { font-size: 16px; font-weight: 600; line-height: 1.6; }
.section-header p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.upload-zone { display: flex; align-items: center; gap: 22px; width: 100%; min-height: 143px; border: 1px dashed #a5d6e9; border-radius: 6px; padding: 28px 32px; background: #f3fbfe; text-align: left; transition: background .18s, border-color .18s; }
.upload-zone:hover, .upload-zone.drag-over { border-color: #2eaadc; background: #e8f6fc; }
.upload-icon { display: grid; place-items: center; width: 52px; height: 52px; flex-shrink: 0; border-radius: 9px; background: #2eaadc; border: 1px solid #2eaadc; color: #37352f; }
.upload-icon .icon { width: 24px; height: 24px; stroke-width: 1.5; }
.upload-copy { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.upload-copy strong { font-size: 14px; font-weight: 500; color: #37352f; }
.upload-copy small { color: #66635c; font-size: 11px; }
.upload-choose { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-height: 35px; padding: 5px 15px; border: 1px solid #a5d6e9; border-radius: 5px; background: #ffffff; color: #176b8e; font-size: 12px; }
.uploaded-file { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; min-height: 112px; padding: 22px; border: 1px solid #a5d6e9; border-radius: 6px; background: #f0f9fd; }
.file-icon { display: grid; place-items: center; flex-shrink: 0; width: 43px; height: 48px; background: #dff3fb; border: 1px solid #a5d6e9; border-radius: 6px; color: #176b8e; }
.file-icon .icon { width: 23px; height: 23px; }
.file-copy { min-width: 0; flex: 1; }
.file-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 550; }
.file-copy small { display: block; margin-top: 4px; color: #6e6b64; font-size: 11px; }
.file-action { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 33px; border: 1px solid #b8deef; border-radius: 5px; background: #ffffff; padding: 5px 11px; font-size: 12px; white-space: nowrap; color: #176b8e; }
.file-action:hover { background: #dff3fb; }
#preview-upload { background: #eaf6f1; border-color: #abd4c9; color: #0f7b6c; }
.file-action .icon { width: 14px; height: 14px; }
.upload-timeline { display: flex; align-items: center; gap: 12px; flex: 0 0 100%; min-width: 0; padding-left: 57px; font-size: 11px; color: #176b8e; font-variant-numeric: tabular-nums; }
.upload-timeline > span { flex-shrink: 0; min-width: 28px; }
.upload-timeline > span:last-child { text-align: right; }
.upload-timeline input { flex: 1; min-width: 0; height: 5px; margin: 10px 0; border: 0; border-radius: 4px; appearance: none; -webkit-appearance: none; background: linear-gradient(to right, #2eaadc 0 var(--progress, 0%), #cbe7f3 var(--progress, 0%) 100%); accent-color: #2eaadc; cursor: pointer; touch-action: none; }
.upload-timeline input::-webkit-slider-thumb { width: 14px; height: 14px; border: 1px solid #1683af; border-radius: 50%; background: #ffffff; box-shadow: 0 1px 3px #37352f18; appearance: none; -webkit-appearance: none; }
.upload-timeline input::-moz-range-thumb { width: 13px; height: 13px; border: 1px solid #1683af; border-radius: 50%; background: #ffffff; box-shadow: 0 1px 3px #37352f18; }
.upload-timeline input:disabled { cursor: default; opacity: .5; }
.editor-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: 33px; }
.field-label { display: block; font-size: 12px; font-weight: 550; color: #66635c; }
.field-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.title-input { width: 100%; height: 39px; padding: 0 12px; border: 1px solid #e3e0d9; border-radius: 5px; background: #ffffff; font-size: 13px; margin-top: 8px; }
.title-input::placeholder, textarea::placeholder, .search-box input::placeholder { color: #6e6b64; }
.lyrics-heading { margin-top: 18px; margin-bottom: 8px; min-height: 22px; }
.lyrics-tools { display: flex; align-items: center; gap: 8px; color: #c5c1b8; }
.text-button { display: inline-flex; align-items: center; gap: 4px; padding: 0; color: #176b8e; font-size: 11px; line-height: 1.7; white-space: nowrap; }
.text-button:hover { color: #124f69; }
.text-button .icon { width: 13px; height: 13px; }
.lyrics-editor { border: 1px solid #e3e0d9; border-radius: 5px; overflow: hidden; background: #ffffff; }
.spinner { display: inline-block; width: 15px; height: 15px; flex-shrink: 0; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: middle; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
textarea { display: block; width: 100%; min-height: 194px; max-height: 700px; resize: vertical; padding: 12px 13px; border: 0; font-size: 13px; line-height: 1.9; background: #ffffff; }
textarea:focus-visible { outline-offset: -2px; }
.lyrics-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 11px; border-top: 1px solid #f3f2ef; font-size: 11px; color: #66635c; }
.lyrics-transform-actions { display: flex; flex-shrink: 0; flex-wrap: wrap; gap: 6px; }
.structure-lyrics-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; flex-shrink: 0; min-height: 31px; padding: 5px 9px; border: 1px solid #a5d6e9; border-radius: 4px; background: #e8f6fc; color: #176b8e; font-size: 11px; white-space: nowrap; }
.structure-lyrics-button:hover:not(:disabled) { background: #dff3fb; border-color: #2eaadc; }
.structure-lyrics-button:disabled { opacity: .5; cursor: not-allowed; }
.lyrics-editor-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 29px; padding: 4px 11px; border-top: 1px solid #f3f2ef; color: #66635c; font-size: 11px; }
#char-count { margin-left: auto; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.settings-column { padding-right: 29px; border-right: 1px solid #f3f2ef; }
.style-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 11px; }
.style-card { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; position: relative; border: 1px solid #e3e0d9; border-radius: 6px; padding: 14px 11px; background: #ffffff; min-height: 93px; text-align: left; }
.style-card:hover { background: #faf9f7; border-color: #b4b1a9; }
.style-card.selected { border-color: #176b8e; background: #f0f9fd; box-shadow: 0 0 0 .5px #176b8e; }
.style-preview-control { display: grid; place-items: center; width: 33px; height: 33px; flex-shrink: 0; border-radius: 50%; transition: background .18s, transform .18s; }
.style-preview-control .icon { width: 12px; height: 12px; fill: currentColor; stroke-width: 1.4; margin-left: 2px; }
.transparent-glyph { background: #0f7b6c; color: #ffffff; }
.transparent-power-glyph { background: #0f7b6c; color: #ffffff; }
.sifeng-glyph { background: #0f7b6c; color: #ffffff; }
.style-card:hover .style-preview-control { transform: scale(1.04); }
.style-card[data-style-playing="true"] .style-preview-control { background: #095d51; color: #ffffff; }
.style-card[data-style-playing="true"][data-style="transparent-power"] .style-preview-control { background: #095d51; }
.style-card[data-style-playing="true"][data-style="sifeng"] .style-preview-control { background: #095d51; }
.style-card[data-style-playing="true"] .style-preview-control .icon { margin-left: 0; }
.style-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.style-copy strong { font-size: 13px; font-weight: 550; white-space: normal; line-height: 1.5; }
.style-copy > span { font-size: 11px; line-height: 1.5; color: #66635c; }
.radio-mark { position: absolute; right: 9px; top: 10px; width: 10px; height: 10px; border: 1px solid #c5c1b8; border-radius: 50%; background: #ffffff; }
.selected .radio-mark { border-color: #176b8e; background: #176b8e; box-shadow: inset 0 0 0 2px #f0f9fd; }
.slider-group { display: flex; flex-direction: column; gap: 21px; margin-top: 25px; }
.slider-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 12px; color: #66635c; }
.slider-label output { min-width: 38px; text-align: right; font-size: 11px; font-variant-numeric: tabular-nums; color: #0f7b6c; }
.variety-field { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 12px; color: #66635c; }
.variety-field select { width: 112px; padding: 7px 10px; border: 1px solid #e3e0d9; border-radius: 5px; background: #ffffff; color: #66635c; font-size: 12px; }
.generation-settings { display: grid; grid-template-columns: 1fr auto; gap: 9px 18px; margin: 20px 0; padding: 15px; border: 1px solid #e3e0d9; border-radius: 6px; background: #faf9f7; font-size: 13px; }
.generation-settings dt { color: #66635c; }
.generation-settings dd { margin: 0; color: #37352f; text-align: right; font-variant-numeric: tabular-nums; }
.slider-field input[type="range"] { display: block; width: 100%; height: 5px; margin: 0; border: 0; border-radius: 4px; appearance: none; -webkit-appearance: none; background: #d8eae5; accent-color: #0f7b6c; cursor: pointer; }
.slider-field input[type="range"]::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #ffffff; border: 1px solid #0f7b6c; box-shadow: 0 1px 3px #37352f16; }
.slider-field input[type="range"]::-moz-range-thumb { width: 13px; height: 13px; border-radius: 50%; background: #ffffff; border: 1px solid #0f7b6c; box-shadow: 0 1px 3px #37352f16; }
.generate-area { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 25px; padding-top: 23px; border-top: 1px solid #f3f2ef; }
.generate-area p { color: #66635c; font-size: 11px; }
.generate-button { min-width: 192px; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 10px 16px; border: 1px solid #0f7b6c; border-radius: 5px; color: #ffffff; background: #0f7b6c; font-size: 13px; font-weight: 500; white-space: nowrap; }
.generate-button:hover { background: #095d51; }
.generate-button .icon { width: 16px; height: 16px; }
.generate-button .arrow-icon { margin-left: 19px; width: 12px; height: 12px; color: #c6e8dc; }
.recent-header { align-items: flex-start; margin-bottom: 0; }
.count-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 23px; min-height: 21px; margin-top: 2px; padding: 0 6px; border: 1px solid #a5d6e9; border-radius: 4px; background: #e8f6fc; color: #176b8e; font-size: 11px; font-variant-numeric: tabular-nums; }
.recent-links { display: flex; align-items: center; gap: 19px; margin-left: auto; padding-top: 4px; }
.all-link { color: #176b8e; }
.results-list { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 24px; }
.results-list:empty { display: none; }
.track { padding: 19px; border: 1px solid #e3e0d9; border-radius: 6px; background: #ffffff; min-width: 0; align-self: start; }
.track-top { display: flex; align-items: center; gap: 12px; }
.cover { position: relative; display: grid; place-items: center; flex-shrink: 0; width: 49px; height: 54px; overflow: hidden; background: #dff3fb; border-radius: 5px; color: #1683af; }
.cover::before { content: ""; position: absolute; width: 45px; height: 45px; top: 10px; left: 19px; border: 1px solid #2eaadc; border-radius: 50%; box-shadow: 0 0 0 6px #2eaadc2e, 0 0 0 13px #2eaadc2e; }
.cover.transparent-power { background: #fde6e2; }
.cover.sifeng { background: #dff1e9; color: #0f7b6c; }
.cover.sifeng::before { border-color: #0f7b6c; box-shadow: 0 0 0 6px #0f7b6c2e, 0 0 0 13px #0f7b6c2e; }
.cover.original { background: #f3f2ef; color: #6e6b64; }
.cover > .icon { width: 24px; height: 24px; position: relative; }
.cover > svg:not(.icon) { display: block; width: 100%; height: 100%; position: relative; }
.cover-word { position: absolute; left: 6px; top: 5px; font-size: 11px; color: inherit; }
.track-meta { min-width: 0; flex: 1; }
.track-title { font-size: 14px; font-weight: 550; overflow-wrap: anywhere; line-height: 1.55; }
.track-subtitle { font-size: 11px; color: #66635c; margin-top: 3px; line-height: 1.55; }
.tag-row { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 6px; }
.style-tag, .sample-tag, .original-tag { display: inline-flex; align-items: center; min-height: 19px; padding: 0 5px; border: 1px solid #b8deef; border-radius: 3px; font-size: 11px; color: #176b8e; background: #e8f6fc; line-height: 1.5; }
.transparent-power-tag { border-color: #f5c1b9; color: #ac3535; background: #fff0ed; }
.sifeng-tag { border-color: #abd4c9; color: #0f7b6c; background: #eaf6f1; }
.sample-tag { color: #66635c; border-color: #e3e0d9; background: #faf9f7; }
.original-tag { color: #6e6b64; background: #f3f2ef; border-color: #e3e0d9; }
.track-top > .icon-button { align-self: flex-start; width: 28px; height: 28px; padding: 5px; color: #6e6b64; }
.track-top > .icon-button .icon { width: 16px; height: 16px; }
.track-top > .icon-button.liked { color: #176b8e; }
.liked .icon { fill: #176b8e; }
.track-top > .icon-button.liked:hover { background: #e8f6fc; color: #124f69; }
.wave-row { display: flex; align-items: center; gap: 11px; margin-top: 21px; }
.play-button { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: #0f7b6c; color: #ffffff; }
.play-button:hover { background: #095d51; }
.play-button .icon { width: 11px; height: 11px; fill: currentColor; margin-left: 1px; }
.waveform { position: relative; display: flex; flex: 1; align-items: center; gap: 2px; min-width: 0; height: 29px; overflow: hidden; padding: 0; cursor: pointer; }
.waveform > span { flex: 1; min-width: 2px; height: var(--h,40%); border-radius: 1px; background: #d0e8e0; pointer-events: none; }
.waveform > span.played { background: #0f7b6c; }
.waveform .seek-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; touch-action: none; }
.waveform:focus-within { outline: 2px solid #0f7b6c; outline-offset: 3px; }
.time-label { display: flex; justify-content: space-between; gap: 8px; margin: 5px 0 0 41px; color: #66635c; font-size: 11px; font-variant-numeric: tabular-nums; }
.track-actions { display: flex; align-items: center; gap: 7px; margin-top: 17px; }
.track-actions > button, .track-actions > a { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 5px 10px; min-height: 31px; border: 1px solid #e3e0d9; border-radius: 4px; color: #176b8e; font-size: 11px; }
.track-actions > button:hover, .track-actions > a:hover { border-color: #a5d6e9; background: #f0f9fd; }
.track-actions .icon { width: 13px; height: 13px; }
.track-actions > button:last-child { margin-left: auto; }
.track.status-pending { border-color: #b8deef; background: #f7fcfe; }
.track.status-failed { border-color: #f5c1b9; background: #fff8f6; }
.track.status-pending .play-button, .track.status-pending .track-actions > button:disabled { opacity: 1; cursor: wait; }
.track.status-pending .play-button { color: #176b8e; background: #dff3fb; }
.track .play-button .spinner { width: 13px; height: 13px; }
.track .track-actions .spinner { width: 12px; height: 12px; }
.pending-waveform { position: relative; display: flex; flex: 1; align-items: center; gap: 3px; height: 29px; min-width: 0; overflow: hidden; border-radius: 3px; }
.pending-waveform > span { flex: 1; min-width: 2px; height: var(--h, 45%); border-radius: 1px; background: #cbe7f3; }
.pending-waveform::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 25%, #ffffffb3 48%, transparent 70%); transform: translateX(-100%); animation: pending-shimmer 2.2s ease-in-out infinite; }
.track-status { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; margin-top: 12px; color: #176b8e; font-size: 11px; line-height: 1.7; }
.track-status p { margin: 0; }
.queue-position { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.queue-position b { font-size: 20px; font-weight: 500; color: #176b8e; font-variant-numeric: tabular-nums; }
.queue-slots { font-size: 11px; color: #6e6b64; }
.track-status .error-message { min-width: 0; overflow-wrap: anywhere; }
.status-failed .track-status, .status-failed .error-message { color: #ac3535; }
.status-failed .play-button { color: #c53e3e; background: #fde6e2; }
.status-failed .play-button:disabled { cursor: default; opacity: 1; }
.track-actions > button:disabled, .track-actions > a[aria-disabled="true"] { background: #f3f2ef; color: #96928a; border-color: #e3e0d9; cursor: default; pointer-events: none; }
.track-actions .track-retry, .track-actions [data-action="retry"] { color: #176b8e; background: #e8f6fc; border-color: #a5d6e9; }
@keyframes pending-shimmer { to { transform: translateX(100%); } }
.empty-state { grid-column: 1/-1; text-align: center; padding: 59px 20px; background: #faf9f7; border: 1px dashed #dedbd4; border-radius: 6px; }
.recent-empty { margin-top: 24px; padding: 34px 20px 31px; }
.empty-icon { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid #abd4c9; border-radius: 8px; background: #eaf6f1; margin-bottom: 12px; color: #0f7b6c; }
.empty-icon .icon { width: 21px; height: 21px; }
.empty-state > .icon { width: 28px; height: 28px; color: #0f7b6c; margin-bottom: 10px; }
.empty-state h2, .empty-state h3 { font-size: 13px; font-weight: 500; color: #66635c; }
.empty-state p { margin-top: 7px; font-size: 12px; color: #66635c; }
.empty-state .small-primary { display: inline-flex; margin-top: 20px; min-height: 34px; align-items: center; padding: 5px 14px; border-radius: 4px; background: #176b8e; color: white; font-size: 12px; }
.library-heading { padding-top: 0; margin-bottom: 27px; }
.library-toolbar { display: flex; align-items: center; gap: 10px; padding: 17px 0 23px; border-top: 1px solid var(--line); }
.search-box { display: flex; align-items: center; gap: 9px; height: 38px; flex: 1; max-width: 350px; min-width: 120px; padding: 0 11px; border: 1px solid #e3e0d9; border-radius: 5px; background: #ffffff; color: #6e6b64; }
.search-box .icon { width: 16px; height: 16px; }
.search-box input { min-width: 0; width: 100%; height: 32px; font-size: 12px; border: 0; outline: none; background: transparent; }
.search-box:focus-within { outline: 2px solid #0f7b6c; outline-offset: 2px; }
.library-toolbar select { min-height: 38px; padding: 7px 27px 7px 11px; border: 1px solid #e3e0d9; border-radius: 5px; background: #ffffff; font-size: 12px; color: #66635c; }
#library-total { margin-left: auto; color: #66635c; font-size: 11px; white-space: nowrap; }
.library-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; min-height: 260px; }
.library-grid .track { padding: 20px; }
.library-grid .empty-state { min-height: 260px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 28px 0 23px; font-size: 12px; }
.pagination:empty { display: none; }
.pagination button { display: inline-flex; justify-content: center; align-items: center; gap: 5px; min-width: 32px; min-height: 32px; padding: 5px 10px; border: 1px solid #e3e0d9; border-radius: 4px; color: #176b8e; background: #ffffff; }
.pagination button:hover { background: #f3f2ef; }
.pagination button.active, .pagination button[aria-current="page"] { background: #e8f6fc; border-color: #a5d6e9; color: #176b8e; }
.pagination button:disabled { cursor: default; opacity: .35; }
.pagination span { color: #6e6b64; margin: 0 5px; }
.library-storage-note { color: #66635c; font-size: 11px; margin-top: 22px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 34px; padding: 20px 0 24px; border-top: 1px solid var(--line); color: #66635c; font-size: 11px; }
.toast { position: fixed; z-index: 100; bottom: 28px; left: calc(50% + 112px); max-width: min(500px,90vw); padding: 12px 18px; border-radius: 6px; background: #37352f; color: #ffffff; font-size: 12px; box-shadow: 0 4px 24px #37352f1a; opacity: 0; pointer-events: none; transform: translate(-50%,15px); transition: opacity .18s,transform .18s; }
.toast.visible { opacity: 1; transform: translate(-50%,0); }
dialog { width: calc(100% - 32px); max-width: 520px; max-height: calc(100vh - 48px); overflow: auto; padding: 23px 27px 27px; color: var(--ink); border: 1px solid #e3e0d9; border-radius: 8px; box-shadow: 0 20px 70px #37352f26; }
dialog::backdrop { background: #37352f66; backdrop-filter: blur(3px); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.dialog-head > span { color: #66635c; font-size: 11px; }
dialog h2 { font-size: 22px; font-weight: 600; margin: 0 0 13px; }
dialog h3 { font-size: 14px; font-weight: 550; margin: 19px 0 8px; }
dialog p { color: #66635c; font-size: 13px; line-height: 1.9; margin-bottom: 13px; }
dialog .dialog-note { padding: 13px; background: #e8f6fc; border: 1px solid #b8deef; border-radius: 5px; font-size: 12px; color: #176b8e; }
dialog .dialog-buttons { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }
dialog .dialog-buttons button { padding: 7px 16px; min-height: 36px; border: 1px solid #e3e0d9; border-radius: 4px; font-size: 12px; color: #176b8e; }
dialog .dialog-buttons button.primary { background: #0f7b6c; border-color: #0f7b6c; color: #ffffff; }
dialog:has(.rights-notice) { max-width: 660px; }
dialog .rights-intro { color: #66635c; font-weight: 500; }
.rights-section { border-top: 1px solid #f3f2ef; padding-top: 3px; }
.rights-section p { white-space: pre-wrap; overflow-wrap: anywhere; }
.rights-important h3 { color: #0f7b6c; }
.rights-acknowledgments { display: grid; gap: 11px; margin-top: 19px; padding: 14px; background: #eaf6f1; border: 1px solid #abd4c9; border-radius: 6px; }
dialog .rights-acknowledgments label { display: flex; align-items: flex-start; gap: 10px; margin: 0; color: #095d51; line-height: 1.8; cursor: pointer; }
dialog .rights-acknowledgments input { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 3px; padding: 0; accent-color: #0f7b6c; }
dialog .rights-version { margin: 12px 0 0; color: #6e6b64; font-size: 11px; }
dialog .rights-buttons { position: sticky; bottom: -27px; background: #ffffff; padding: 14px 0 0; }
@media (max-width: 700px) { dialog .download-buttons { flex-direction: column; } dialog .download-buttons button { min-height: 42px; } }
dialog .dialog-buttons button:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 700px) { dialog .rights-buttons { flex-direction: column; bottom: -24px; } dialog .rights-buttons button { min-height: 42px; } .site-footer { flex-wrap: wrap; } }
dialog label { display: block; font-size: 12px; margin: 15px 0 6px; color: #66635c; }
dialog input { width: 100%; padding: 9px 11px; border: 1px solid #e3e0d9; border-radius: 4px; font-size: 13px; }
dialog .style-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.style-info > div { padding: 14px; border: 1px solid #b8deef; border-radius: 5px; background: #e8f6fc; }
.style-info > div:last-child { background: #eaf6f1; border-color: #abd4c9; }
.style-info h3 { margin: 0 0 7px; }
.style-info p { margin: 0; font-size: 12px; }
@media (min-width: 1600px) { main { padding-top: 47px; } .page-heading { margin-bottom: 34px; } }
@media (max-width: 1200px) {
  .sidebar { width: 202px; padding-left: 12px; padding-right: 12px; }
  .main-shell { margin-left: 202px; }
  main { padding: 33px 28px 0; }
  .topbar { padding: 0 28px; }
  .flow-card { padding: 23px; }
  .editor-grid { gap: 25px; }
  .settings-column { padding-right: 23px; }
  .style-card { display: block; padding: 13px 10px 12px; min-height: 113px; }
  .style-preview-control { margin-bottom: 8px; }
  .style-copy { gap: 3px; }
  .slider-group { margin-top: 22px; gap: 19px; }
  .toast { left: calc(50% + 101px); }
}
@media (max-width: 960px) {
  .sidebar { width: 184px; padding: 26px 11px 18px; }
  .brand { font-size: 17px; gap: 8px; padding: 0 6px; }
  .brand img { width: 29px; height: 29px; }
  .main-shell { margin-left: 184px; }
  main { padding: 28px 24px 0; }
  .topbar { padding: 0 24px; }
  h1 { font-size: 25px; }
  .autosave { display: none; }
  .upload-zone { gap: 17px; padding: 25px; }
  .upload-choose { display: none; }
  .upload-copy strong { font-size: 13px; }
  .editor-grid { grid-template-columns: 1fr; gap: 23px; }
  .settings-column { padding-right: 0; border-right: 0; }
  .lyrics-column { padding-top: 22px; border-top: 1px solid #f3f2ef; }
  .style-card { display: flex; min-height: 74px; gap: 12px; padding: 15px; }
  .style-preview-control { width: 34px; height: 34px; margin-bottom: 0; }
  .slider-group { margin-top: 24px; }
  .lyrics-editor textarea { min-height: 184px; }
  .results-list, .library-grid { grid-template-columns: 1fr; }
  .recent-links { gap: 13px; }
  .recent-header { flex-wrap: wrap; }
  .recent-links { padding-left: 36px; width: 100%; margin-top: -4px; }
  .generate-area { align-items: flex-start; }
  .generate-area p { max-width: 215px; }
  .generate-button { min-width: 155px; }
  .generate-button .arrow-icon { margin-left: 10px; }
  .uploaded-file { gap: 9px; padding: 17px; flex-wrap: wrap; }
  .file-copy { flex-basis: calc(100% - 60px); }
  .file-action { margin-top: 4px; }
  #preview-upload { margin-left: 52px; }
  .uploaded-file > .icon-button { margin-left: auto; }
  .library-toolbar { flex-wrap: wrap; }
  .search-box { max-width: none; width: 100%; flex-basis: 100%; }
  #library-total { font-size: 11px; }
  .toast { left: calc(50% + 92px); }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 76px; }
  .sidebar { width: 224px; visibility: hidden; transform: translateX(-100%); transition: transform .2s,visibility .2s; box-shadow: 16px 0 70px #37352f19; }
  .sidebar.open { visibility: visible; transform: translateX(0); }
  .brand { font-size: 19px; padding: 0 9px; gap: 10px; }
  .brand img { width: 32px; height: 32px; }
  .main-shell { margin-left: 0; }
  .topbar { min-height: 54px; padding: 0 16px; }
  .session-status { top: 54px; }
  .breadcrumbs { gap: 9px; font-size: 12px; }
  .workspace-name, .slash { display: none; }
  .mobile-menu { display: inline-grid; margin-left: -5px; width: 29px; }
  .language-switch { font-size: 11px; min-height: 31px; padding: 0 8px; }
  .topbar-actions { gap: 6px; }
  .free-badge { padding: 5px 8px; font-size: 11px; }
  main { padding: 26px 16px 0; }
  .page-heading { margin-bottom: 25px; }
  .page-icon { width: 38px; height: 38px; margin-bottom: 12px; }
  .page-icon .icon { width: 23px; height: 23px; }
  h1 { font-size: 24px; letter-spacing: 0; }
  .page-heading p { font-size: 12px; line-height: 1.8; max-width: 310px; }
  .creation-flow { gap: 18px; }
  .flow-card { padding: 20px 17px; border-radius: 7px; }
  .section-header { gap: 10px; margin-bottom: 18px; }
  .section-header h2 { font-size: 15px; }
  .section-header p { font-size: 11px; margin-top: 5px; }
  .step-number { width: 22px; height: 22px; font-size: 11px; }
  .upload-zone { flex-direction: column; justify-content: center; gap: 12px; text-align: center; min-height: 173px; padding: 22px 13px; }
  .upload-icon { width: 42px; height: 42px; border-radius: 7px; }
  .upload-icon .icon { width: 20px; height: 20px; }
  .upload-copy { gap: 6px; }
  .upload-copy strong { font-size: 12px; }
  .upload-copy small { font-size: 11px; }
  .uploaded-file { padding: 15px; }
  .upload-timeline { padding-left: 0; gap: 10px; }
  .file-copy strong { font-size: 12px; }
  .file-action { font-size: 11px; min-height: 31px; padding: 5px 9px; }
  .editor-grid { gap: 21px; }
  .settings-column { padding-top: 20px; }
  .style-card { padding: 13px 10px; gap: 8px; }
  .style-preview-control { width: 28px; height: 28px; }
  .style-preview-control .icon { width: 11px; height: 11px; }
  .style-copy strong { font-size: 12px; }
  .style-copy > span { font-size: 11px; }
  .radio-mark { width: 8px; height: 8px; right: 6px; top: 7px; }
  .style-options { gap: 8px; }
  .lyrics-tools { gap: 6px; }
  .text-button { font-size: 11px; }
  .lyrics-editor textarea { min-height: 210px; font-size: 13px; }
  .lyrics-footer { align-items: flex-start; flex-wrap: wrap; gap: 7px; font-size: 11px; }
  .lyrics-transform-actions { margin-left: auto; }
  .lyrics-footer > span:first-child { flex: 1; min-width: 0; }
  .slider-group { gap: 23px; margin-top: 25px; margin-bottom: 4px; }
  .generate-area { flex-direction: column-reverse; align-items: stretch; gap: 11px; padding-top: 20px; margin-top: 23px; }
  .generate-button { width: 100%; min-height: 43px; font-size: 13px; }
  .generate-button .arrow-icon { margin-left: 6px; }
  .generate-area p { max-width: none; text-align: center; font-size: 11px; }
  .recent-header { gap: 10px; margin-bottom: 0; }
  .recent-header > div:nth-child(2) { flex: 1; }
  .recent-links { padding-left: 32px; gap: 18px; margin-top: -2px; }
  .count-badge { margin-top: 1px; }
  .results-list { gap: 13px; margin-top: 20px; }
  .track { padding: 16px; }
  .track-top { gap: 10px; }
  .track-title { font-size: 14px; }
  .cover { width: 47px; height: 51px; }
  .track-actions { gap: 6px; }
  .track-actions > button, .track-actions > a { padding: 5px 8px; }
  .recent-empty { padding: 30px 13px 28px; margin-top: 20px; }
  .recent-empty p { max-width: 240px; margin: 7px auto 0; line-height: 1.9; }
  .library-toolbar { gap: 8px; padding-top: 15px; }
  .library-toolbar select { font-size: 11px; padding-left: 8px; }
  #library-total { width: 100%; margin: 3px 0 0; font-size: 11px; }
  .library-grid .track { padding: 18px; }
  .library-storage-note { font-size: 11px; line-height: 1.8; }
  .pagination { flex-wrap: wrap; gap: 6px; }
  .site-footer { font-size: 11px; padding: 18px 0 22px; margin-top: 25px; }
  .toast { left: 50%; bottom: 20px; width: max-content; max-width: calc(100vw - 32px); font-size: 12px; }
  dialog { padding: 20px 20px 24px; }
  dialog h2 { font-size: 20px; }
}
@media (max-width: 370px) {
  main { padding-left: 12px; padding-right: 12px; }
  .flow-card { padding-left: 14px; padding-right: 14px; }
  h1 { font-size: 22px; }
  .style-card { flex-direction: column; align-items: flex-start; gap: 7px; padding: 12px; }
  .style-copy > span { font-size: 11px; }
  .lyrics-footer { font-size: 11px; }
  .track-actions { flex-wrap: wrap; }
  .site-footer { gap: 10px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.slider-field input[type="range"] { background: linear-gradient(to right, #0f7b6c 0 var(--progress, 70%), #d8eae5 var(--progress, 70%) 100%); }
.original-cover { background: #f3f2ef; color: #66635c; }
.original-cover::before { display: none; }

.upload-recovery{display:flex;align-items:center;gap:16px;padding:12px 16px;margin-bottom:16px;border:1px solid #b8deef;border-radius:8px;background:#f0f9fd;color:#176b8e;font-size:13px;line-height:1.6}.upload-recovery .text-button{flex-shrink:0}.upload-confirm-file{overflow-wrap:anywhere;color:var(--ink);font-weight:600}@media(max-width:600px){.upload-recovery{align-items:flex-start;flex-direction:column;gap:6px}}
