/* 批量处理页 · v3.3 页面分片
   只在 /batch/ 用到。
   只在对应页面加载：静态页由构建期注入 <link>，SPA 内跳转由 app.js 的 ensureCss() 补上。 */

/* ===== 批量处理（v3.0 E3）===== */
.batch { margin: 6px 0 18px; }
.batch-drop {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 32px 20px; border: 2px dashed var(--border); border-radius: 14px;
  background: var(--panel); cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.batch-drop:hover, .batch-drop:focus-visible, .batch-drop.drag { border-color: var(--accent); background: rgba(37, 99, 235, 0.05); }
.batch-drop b { font-size: 15px; }
.batch-drop span { font-size: 12.5px; color: var(--muted); }
.bd-icon { font-size: 30px; line-height: 1; }
.batch-params {
  display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-end;
  margin: 14px 0; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel);
}
.batch-params label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--muted); }
.batch-params select, .batch-params input[type='number'] {
  font: inherit; font-size: 13px; padding: 7px 9px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text); min-width: 130px;
}
.batch-params input[type='range'] { width: 160px; }
.batch-params output { color: var(--text); font-weight: 600; }
.batch-params .btn { margin-left: auto; }
.batch-progress { margin: 12px 0; }
.bp-bar { height: 6px; border-radius: 999px; background: var(--border); overflow: hidden; }
.bp-fill { height: 100%; width: 0; background: var(--accent); transition: width 0.2s; }
.bp-text { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.batch-list { margin: 10px 0; }
.bl-item {
  display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center;
  padding: 7px 2px; border-bottom: 1px dashed var(--border); font-size: 13px;
}
.bl-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bl-size, .bl-state { font-size: 12px; color: var(--muted); white-space: nowrap; }
.bl-item.done .bl-state { color: #16a34a; }
.bl-item.fail .bl-state { color: #dc2626; }
.bl-item.busy .bl-state { color: var(--accent); }
.bl-warn { font-size: 12.5px; color: #b45309; margin: 4px 0 8px; }
.batch-result .row { margin-top: 12px; }
@media (max-width: 640px) {
  .batch-params { flex-direction: column; align-items: stretch; }
  .batch-params .btn { margin-left: 0; }
  .batch-params input[type='range'] { width: 100%; }
}
