:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; color: #20252b; background: #f5f6f7; font-synthesis: none; --green: #2b7a68; --muted: #737b85; --line: #e1e5e8; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, textarea { font: inherit; }
button, summary { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: var(--green); }
[hidden] { display: none !important; }
button, a, input, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #8cc6b7; outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.app-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; background: #20262c; color: #e6eaed; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 11px; padding: 25px 20px; border-bottom: 1px solid #363d44; }
.brand-mark { display: grid; place-items: center; flex: 0 0 auto; width: 35px; height: 35px; border-radius: 9px; color: #26392f; background: #e8bc5f; font-size: 28px; line-height: 1; }
.brand strong, .brand span { display: block; }
.brand strong { font-size: 15px; letter-spacing: .3px; }
.brand span { margin-top: 5px; font-size: 11px; color: #a1adb5; }
.new-batch-button { margin: 21px 14px 26px; padding: 11px; background: #34574d; color: #f4faf7; border: 1px solid #4c7567; border-radius: 7px; font-size: 13px; text-align: left; }
.new-batch-button:hover { background: #3e685b; }
.new-batch-button span { margin-right: 6px; font-size: 16px; }
.sidebar-label { display: flex; justify-content: space-between; padding: 0 22px 12px; color: #9dabb5; font-size: 11px; }
.batch-list { display: flex; flex-direction: column; gap: 5px; padding: 0 12px 12px; overflow: auto; }
.history-button { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; text-align: left; padding: 13px 10px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #e0e5e9; }
.history-button:hover { background: #2c343b; }
.history-button.selected { background: #353f45; border-color: #48585b; }
.history-title { font-size: 12px; white-space: nowrap; }
.history-state { font-size: 10px; color: #b4bfc6; }
.history-state.running { color: #e8bc5f; }
.history-state.complete { color: #8cc6b2; }
.history-state.failed { color: #f5aaa2; }
.history-detail { grid-column: 1 / -1; font-size: 11px; color: #92a0a9; }
.history-empty { margin: 4px 22px; color: #81909b; font-size: 12px; line-height: 1.8; }
.sidebar-footer { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 20px 22px; border-top: 1px solid #363d44; color: #8e9da7; font-size: 11px; }
.connection-dot { height: 6px; width: 6px; border-radius: 50%; background: #62a990; }
.workspace { min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 102px; padding: 25px 36px; background: #fff; border-bottom: 1px solid var(--line); }
h1 { margin: 0; font-size: 22px; font-weight: 650; letter-spacing: -.4px; }
.topbar p { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 17px; flex-shrink: 0; }
.storage-info { color: #858c94; font-size: 11px; }
.content { width: 100%; max-width: 1160px; margin: 0 auto; padding: 30px 36px; }
.card { padding: 25px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 19px; }
h2 { margin: 0; font-size: 15px; font-weight: 650; }
.section-heading p { margin: 7px 0 0; font-size: 12px; color: var(--muted); line-height: 1.6; }
.tag { font-size: 10px; color: #567968; padding: 5px 8px; border-radius: 5px; background: #edf5f0; white-space: nowrap; }
textarea, input { border: 1px solid #d5dbdf; border-radius: 7px; background: #fafbfc; color: #28313a; }
textarea { width: 100%; min-height: 151px; padding: 15px; font-size: 13px; line-height: 1.8; resize: vertical; }
textarea::placeholder, input::placeholder { color: #a3a9af; }
input { min-width: 0; width: 100%; height: 42px; padding: 0 12px; font-size: 13px; }
textarea:focus, input:focus { border-color: var(--green); background: #fff; outline: none; box-shadow: 0 0 0 3px #2b7a6810; }
.input-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 16px; }
.input-footer > span { font-size: 11px; color: var(--muted); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 6px; min-height: 37px; padding: 8px 15px; border: 1px solid transparent; border-radius: 6px; font-size: 12px; font-weight: 550; text-decoration: none; white-space: nowrap; }
.button.primary { color: white; background: var(--green); border-color: var(--green); }
.button.primary:hover:not(:disabled) { background: #236653; }
.button.secondary { background: #fff; color: #414c55; border-color: #d4dadf; }
.button.secondary:hover { background: #f3f6f5; }
.button.small { min-height: 30px; padding: 5px 10px; font-size: 11px; }
.text-button { padding: 5px 0; border: 0; background: transparent; color: #65717a; font-size: 12px; }
.text-button:hover { color: var(--green); }
.text-button.danger { color: #a25850; }
.notice { margin-top: 17px; padding: 12px 13px; border-radius: 6px; background: #faf3df; color: #826936; font-size: 12px; line-height: 1.7; }
.notice button { margin-left: 12px; color: #826936; text-decoration: underline; }
.settings-card { margin: 13px 0 23px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.settings-card summary { padding: 14px 17px; color: #6b757d; font-size: 12px; }
.settings-card summary > span:first-child { margin-left: 4px; }
.settings-state { float: right; font-size: 11px; color: #74877b; }
.token-form { padding: 4px 18px 17px; }
.token-form label, .login-card label, .account-form label { display: block; margin-bottom: 8px; color: #495661; font-size: 12px; }
.account-form { padding: 4px 18px 17px; }
.account-passwords { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 15px; }
.account-footer { display: flex; justify-content: flex-end; margin-top: 13px; }
.login-notice { margin: 14px 0 0; color: #38785b; font-size: 12px; line-height: 1.7; }
.token-input-row { display: flex; gap: 9px; }
.field-hint { margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.form-error { margin: 10px 0 0; color: #a4453d; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.results-heading { margin-bottom: 17px; }
.status { padding: 5px 9px; border-radius: 5px; font-size: 11px; background: #edf0f2; color: #65717a; white-space: nowrap; }
.status.running { background: #fcf0ce; color: #846c29; }
.status.complete { background: #e4f3eb; color: #377655; }
.status.failed { background: #fcebe8; color: #a3554b; }
.batch-progress progress, .item-progress { width: 100%; height: 5px; display: block; appearance: none; border: 0; border-radius: 5px; overflow: hidden; background: #edf0f1; }
progress::-webkit-progress-bar { background: #edf0f1; }
progress::-webkit-progress-value { background: #4a9782; border-radius: 5px; transition: width .2s; }
progress::-moz-progress-bar { background: #4a9782; border-radius: 5px; }
.batch-progress > div { display: flex; align-items: center; justify-content: space-between; min-height: 31px; margin-top: 6px; color: #7b858d; font-size: 11px; }
.batch-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 14px; }
.music-hint { margin: 15px 0 21px; color: #929aa1; font-size: 11px; line-height: 1.6; }
.item-list { display: grid; gap: 12px; }
.media-item { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.item-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 15px; border-bottom: 1px solid #edf0f2; background: #fafbfc; }
.item-title { display: flex; align-items: center; gap: 9px; min-width: 0; }
.item-number { display: grid; place-items: center; background: #edf0f1; color: #77838c; height: 24px; min-width: 25px; border-radius: 5px; font-size: 11px; }
.item-title strong { font-size: 12px; font-weight: 550; }
.item-state { font-size: 11px; color: #929aa1; }
.item-state.complete { color: #398366; }
.item-state.failed { color: #b26359; }
.item-state.running { color: #9e7c2e; }
.item-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.item-body { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 22px; padding: 16px; }
.item-field { min-width: 0; }
.field-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 9px; color: #939ba3; font-size: 10px; }
.field-title button { font-size: 10px; padding: 0; }
.caption { margin: 0; font-size: 12px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
.placeholder { color: #a1a9b0; font-size: 11px; }
.music-title { margin: 0 0 4px; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.music-author { margin: 0 0 8px; font-size: 11px; color: #9aA2a9; }
.music-link { font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.item-source { padding: 9px 16px; border-top: 1px solid #f0f2f4; color: #a0a8ae; background: #fdfefe; font-size: 10px; overflow-wrap: anywhere; line-height: 1.7; }
.item-error { margin: 0; padding: 12px 16px; border-top: 1px solid #f0e4e2; color: #a6554c; background: #fff8f6; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.item-progress { height: 3px; border-radius: 0; }
.welcome-card { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 16px 10px 23px; }
.welcome-card > div { padding: 10px 9px; }
.feature-symbol { display: grid; place-items: center; width: 31px; height: 31px; color: #6a8876; background: #e9f0eb; border-radius: 8px; font-size: 19px; }
.welcome-card h3 { margin: 13px 0 7px; font-size: 12px; font-weight: 550; }
.welcome-card p { margin: 0; color: #88939b; font-size: 11px; line-height: 1.7; }
.page-footer { margin: 24px 0 0; text-align: center; font-size: 10px; color: #a4acb3; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 12px 18px; background: #25362d; color: #fff; border-radius: 8px; box-shadow: 0 6px 24px #1c282b25; font-size: 12px; z-index: 5; line-height: 1.6; }
.login-view { display: grid; place-items: center; min-height: 100vh; padding: 25px; background: #f2f5f3; }
.login-card { width: 100%; max-width: 360px; padding: 32px; border: 1px solid #dfe7e1; border-radius: 13px; background: #fff; box-shadow: 0 12px 35px #23332e08; }
.login-card .brand-mark { margin-bottom: 22px; }
.login-card h1 { font-size: 22px; }
.login-card > p:not(.form-error):not(.login-notice) { margin: 10px 0 26px; color: #84918a; font-size: 12px; }
.login-field + .login-field { margin-top: 16px; }
.login-card > button { width: 100%; margin-top: 20px; }
@media (max-width: 1100px) { .app-shell { grid-template-columns: 204px minmax(0, 1fr); } .topbar { padding: 24px; } .content { padding: 24px; } .header-actions { flex-direction: column; align-items: flex-end; gap: 6px; } .brand { padding: 23px 15px; } }
@media (max-width: 760px) { .app-shell { display: flex; flex-direction: column; } .sidebar { position: static; height: auto; } .brand { padding: 15px 18px; border-bottom: 0; } .brand-mark { width: 30px; height: 30px; font-size: 24px; } .brand span { margin-top: 3px; } .new-batch-button { position: absolute; top: 17px; right: 16px; margin: 0; width: auto; padding: 8px 11px; font-size: 11px; } .sidebar-label, .sidebar-footer, .history-empty { display: none; } .batch-list { flex-direction: row; padding: 0 12px 10px; gap: 7px; } .batch-list:empty { padding: 0; } .history-button { flex: 0 0 auto; width: auto; padding: 8px 10px; background: #2a3239; column-gap: 14px; } .history-title { font-size: 11px; } .history-detail { font-size: 10px; } .topbar { padding: 21px 18px; align-items: flex-start; gap: 12px; min-height: 0; } h1 { font-size: 19px; } .topbar p { font-size: 11px; max-width: 250px; line-height: 1.7; } .header-actions { gap: 6px; } .storage-info { font-size: 10px; max-width: 95px; text-align: right; line-height: 1.6; } .content { padding: 18px 14px; } .card { padding: 18px; border-radius: 9px; } .section-heading { margin-bottom: 15px; } .section-heading p { font-size: 11px; } textarea { font-size: 12px; padding: 12px; min-height: 158px; } .input-footer { gap: 10px; } .input-footer > span { max-width: 175px; font-size: 10px; line-height: 1.7; } .item-body { grid-template-columns: minmax(0, 1fr); gap: 17px; padding: 14px; } .item-header { padding: 11px 12px; gap: 8px; } .item-title { flex-wrap: wrap; gap: 6px; } .item-title strong { font-size: 11px; } .item-number { height: 21px; min-width: 23px; } .music-title { font-size: 11px; } .welcome-card { gap: 6px; padding: 6px 1px; } .welcome-card > div { padding: 10px 8px; } .welcome-card p { font-size: 10px; } .welcome-card h3 { font-size: 11px; } .button { padding: 8px 12px; font-size: 11px; } .token-input-row { align-items: stretch; } .token-input-row input { height: 38px; } }
@media (prefers-reduced-motion: reduce) { progress::-webkit-progress-value { transition: none; } }
@media (max-width: 480px) { .account-passwords { grid-template-columns: minmax(0, 1fr); gap: 15px; } }
