/* ZPZ 音乐工作台 · 暗夜模式（与 chord 编辑器同一套 Cubase 风暗色；html.dark 时生效）。
   开关与编辑器共用 localStorage 键 chord_ws:chord_lyric_theme_v2（无记录 = 暗夜）。 */
html.dark { color-scheme: dark; --lst-primary: #3b82f6; --lst-text: #e2e8f0; --lst-muted: #94a3b8; --lst-line: #33363f; --lst-bg: #1b1d23; }
html.dark body { background: #1b1d23 !important; color: #e2e8f0 !important; }
html.dark .lst-top { background: #14161b; box-shadow: 0 1px 0 #0b0c0f; }
html.dark .card, html.dark a.entry { background: #22252c !important; border-color: #33363f !important; color: #e2e8f0; box-shadow: none; }
html.dark a.entry:hover { border-color: #3b82f6 !important; box-shadow: 0 6px 20px rgba(0,0,0,.4) !important; }
html.dark h1, html.dark h2, html.dark h3, html.dark .t { color: #f1f5f9; }
html.dark .hint, html.dark .d, html.dark .flow, html.dark .foot, html.dark .sub, html.dark details.opts summary { color: #94a3b8 !important; }
html.dark .sub a, html.dark a { color: #60a5fa; }
html.dark .lst-top a, html.dark a.entry, html.dark .dl a { color: inherit; }
/* 输入 / 下拉 / 数字框 */
html.dark input:not([type=checkbox]):not([type=radio]):not([type=range]), html.dark select, html.dark textarea {
  background: #15171c !important; color: #e2e8f0 !important; border-color: #3a3e48 !important; }
html.dark input::placeholder, html.dark textarea::placeholder { color: #6b7280; }
html.dark .drop { border-color: #3a3e48 !important; }
html.dark .drop.over { border-color: #3b82f6 !important; background: rgba(59,130,246,.10) !important; }
/* 按钮（保留主色按钮） */
html.dark :where(button:not(.primary, .lst-qq-btn, .lst-theme-btn)), html.dark :where(.btn), html.dark .dl a:not(.primary), html.dark .dl button:not(.primary), html.dark .lst-btn2 {
  background: #2a2d35 !important; color: #e2e8f0 !important; border-color: #3a3e48 !important; }
html.dark :where(button:not(.primary, .lst-qq-btn, .lst-theme-btn, :disabled)):hover, html.dark .lst-btn2:hover { background: #343844 !important; }
html.dark .drop button:not(:disabled), html.dark #search_results .sr button, html.dark .jp-player button { background: #2563eb !important; color: #fff !important; border-color: #2563eb !important; }
html.dark .drop button:disabled, html.dark #search_results .sr button:disabled { background: #475569 !important; }
html.dark button.primary { background: #2563eb !important; border-color: #2563eb !important; color: #fff !important; }
/* 标签 / 进度胶囊 / 元信息 */
html.dark .meta, html.dark .batch-stats { color: #cbd5e1 !important; }
html.dark .meta span { background: #2a2d35 !important; color: #cbd5e1; }
html.dark .steps span { background: #2a2d35 !important; color: #94a3b8 !important; }
html.dark .steps span.on { background: rgba(59,130,246,.22) !important; color: #93c5fd !important; }
html.dark .steps span.done { background: rgba(34,197,94,.18) !important; color: #86efac !important; }
html.dark .batch-bar { background: #2a2d35 !important; }
html.dark pre#raw_preview { background: #111318 !important; border: 1px solid #33363f; }
/* 搜索结果 */
html.dark #search_panel { border-color: #33363f !important; }
html.dark #search_panel .sp-head { background: #1f2229 !important; color: #94a3b8 !important; }
html.dark #search_panel .sp-head a { color: #94a3b8 !important; }
html.dark #search_results .sr { border-top-color: #2a2d35 !important; }
html.dark #search_results .sr:hover { background: #2a2d35 !important; }
html.dark #search_results .sr .t small, html.dark #search_results .sr .d, html.dark #search_results .empty { color: #94a3b8 !important; }
/* 表格 */
html.dark table, html.dark .batch-table { color: #e2e8f0; }
html.dark .batch-table th, html.dark .batch-table td, html.dark th, html.dark td { border-bottom-color: #2f323a !important; }
html.dark .batch-table th, html.dark thead th { background: #1f2229; color: #cbd5e1; }
html.dark .batch-table td.st-failed, html.dark [style*="#b91c1c"] { color: #fca5a5 !important; }
html.dark .batch-table td.st-done, html.dark [style*="#047857"] { color: #86efac !important; }
html.dark [style*="color:#6b7280"], html.dark [style*="color:#374151"], html.dark [style*="color:#4b5563"] { color: #94a3b8 !important; }
/* 提示条 */
html.dark .qq-warn { background: rgba(245,158,11,.10) !important; border-color: rgba(245,158,11,.35) !important; color: #fcd34d !important; }
html.dark .qq-warn a { color: #fbbf24 !important; }
/* 扫码登录弹窗：二维码仍保持白底留白（扫码需要） */
html.dark .lst-modal-mask { background: rgba(0,0,0,.65); }
html.dark .lst-modal { background: #22252c; color: #e2e8f0; box-shadow: 0 10px 40px rgba(0,0,0,.6); }
html.dark .lst-modal .lst-sub { color: #94a3b8; }
html.dark .lst-seg { border-color: #3a3e48; }
html.dark .lst-seg button { background: #2a2d35 !important; color: #cbd5e1 !important; }
html.dark .lst-seg button + button { border-left-color: #3a3e48; }
html.dark .lst-seg button.active, html.dark .lst-seg button.active:hover { background: #2563eb !important; color: #fff !important; }
html.dark #qq_qr { background: #fff; border-color: #3a3e48; }
/* 顶栏主题开关 */
.lst-theme-btn { margin-left: 6px; border: 1px solid #334155; background: transparent; color: #e2e8f0; width: 30px; height: 28px; border-radius: 6px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; font-size: 15px; line-height: 1; padding: 0; }
.lst-theme-btn:hover { background: #1e293b; }
/* 批量导出页 */
html.dark .btn2:not(.primary) { background: #2a2d35 !important; color: #e2e8f0 !important; border-color: #3a3e48 !important; }
html.dark .btn2.primary { background: #2563eb !important; border-color: #2563eb !important; color: #fff !important; }
html.dark .tbl th, html.dark .tbl td { border-top-color: #2a2d35 !important; }
html.dark .tbl th { color: #94a3b8 !important; background: transparent; }
html.dark .tbl tbody tr:hover { background: #262a32; }
html.dark .tag { background: #2a2d35 !important; color: #cbd5e1 !important; }
html.dark .tag.ed { background: rgba(34,197,94,.18) !important; color: #86efac !important; }
html.dark ::-webkit-scrollbar { width: 10px; height: 10px; }
html.dark ::-webkit-scrollbar-thumb { background: #3a3e48; border-radius: 5px; }
html.dark ::-webkit-scrollbar-track { background: #1b1d23; }
html.dark body > main { background: #22252c !important; border-color: #33363f !important; }
html.dark [style*="#b45309"], html.dark [style*="#92400e"] { color: #fcd34d !important; }
html.dark [style*="color:#2563eb"] { color: #60a5fa !important; }
