/* 批量导入：知识库的导入进度、多选，数据导入页。 */
.kb-import { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; padding: 12px 16px; }
.kb-import-head { display: flex; align-items: center; gap: 10px; min-height: 32px; }
.kb-import-head strong { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; }
.kb-import .bar { display: block; }
.kb-import .bar i { background: var(--accent); }
.kb-import-current { min-height: 18px; }
.kb-import-failed { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.kb-import-fail { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 13px; }
.kb-import-fail .ellipsis { max-width: 100%; }

.kb-select-row { position: relative; display: flex; align-items: center; cursor: pointer; }
.kb-select-row + .kb-select-row::before { content: ""; position: absolute; top: 0; right: 0; left: 44px; height: .5px; background: var(--sep); }
.kb-select-row > input { flex: none; width: 18px; height: 18px; margin: 0 0 0 16px; accent-color: var(--accent); cursor: pointer; }
.kb-select-row > .list-row { flex: 1; min-width: 0; pointer-events: none; }
.kb-select-row .list-side { display: none; }
.kb-select-row.on { background: var(--accent-soft); }
.kb-select-bar { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-card); }
.kb-select-count { font-size: 14px; color: var(--label-2); }
.kb-select-bar .spacer { flex: 1; }

.import-actions { display: flex; justify-content: flex-end; gap: 8px; }
.import-actions .btn { text-decoration: none; }
.import-note { margin: 8px 16px 0; }
.import-history .list-row { align-items: flex-start; gap: 10px; }
.import-history .capsule { flex: none; min-width: 52px; margin-top: 2px; text-align: center; }
.import-history .list-title { min-width: 0; }
.import-history .list-title .ellipsis { display: block; }
.undo-body { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.undo-body p { margin: 0; }
.undo-toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

@media (max-width: 640px) {
  .kb-import-head { flex-wrap: wrap; justify-content: flex-end; }
  .kb-import-head strong { flex-basis: 100%; }
  .kb-select-bar { bottom: calc(env(safe-area-inset-bottom) + 64px); flex-wrap: wrap; }
  .import-actions .btn { flex: 1; text-align: center; }
}
