/* Big batches: compact summary instead of a list per file, a soft notice for the limit, the price of a run */

/* The list of files: closed by default above 5 files; when open it scrolls inside a box instead of stretching the page */
.file-list.boxed { max-height: 284px; overflow: auto; margin: 6px 0 0; padding-right: 2px; scrollbar-width: thin; overscroll-behavior: contain; }
.file-list.boxed[hidden], .file-search-wrap[hidden] { display: none; }
.file-search-wrap { margin: 8px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.file-search-wrap .file-search {  min-height: 36px; padding: 7px 12px; border: 1px solid var(--border-default); border-radius: var(--radius-md); background: var(--bg-surface); font: inherit; font-size: 13px; flex: 1 1 180px; width: auto; min-width: 0; }
.file-list-expander { font-weight: 500; }

/* Soft limit notice: not an error, the first files are already in */
.batch-notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 10px 0; padding: 10px 12px; border: 1px solid var(--warning-border); border-radius: var(--radius-lg); background: var(--warning-tint); color: var(--warning); font-size: 13px; line-height: 1.45; }
.batch-notice[hidden] { display: none; }
.batch-notice .secondary { min-height: 32px; padding: 5px 12px; font-size: 12.5px; }

/* "Not enough credits" above the run button */
.pipeline-shortage { margin: 10px 0 0; padding: 10px 12px; border: 1px solid var(--warning-border); border-radius: var(--radius-lg); background: var(--warning-tint); color: var(--warning); font-size: 13px; }
.pipeline-shortage p { margin: 0 0 8px; font-weight: 600; }
.pipeline-shortage-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pipeline-shortage-actions .secondary { min-height: 34px; padding: 6px 12px; font-size: 12.5px; text-decoration: none; display: inline-flex; align-items: center; }
.file-list.boxed .file-row { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0 0 4px; padding: 6px 10px; }
.file-list.boxed .file-row .file-copy { min-width: 0; flex: 1; }
.file-list.boxed .file-row .file-controls { position: static; display: flex; gap: 4px; margin-left: auto; transform: none; }
.file-list.boxed .file-row .file-controls [data-move] { display: none !important; }
.pipeline-editor .pipeline-shortage + .pipeline-run { margin-top: 10px; }
/* The two mode cards already carry this choice; the leftover checkbox repeated it and rendered oversized */
.batch-mode-selector .batch-option { display: none; }

/* The receipt under the Run button */
.pipeline-cost { margin-top: 8px; }
:is(.pipeline-cost, .pipe-run-note) .cost-info { min-height: 0; padding: 0; border: 0; background: none; color: var(--text-primary); font-size: 12px; font-weight: 500; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.pipeline-cost .cost-receipt { margin-top: 8px; padding: 12px 14px; border: 1px solid var(--border-default); border-radius: var(--radius-lg); background: var(--bg-subtle); font-size: 12.5px; line-height: 1.5; color: var(--text-primary); }
.pipeline-cost .cost-receipt[hidden] { display: none; }
.pipeline-cost .cost-receipt p { margin: 0 0 4px; }
.pipeline-cost .cost-receipt hr { margin: 8px 0; border: 0; border-top: 1px solid var(--border-default); }
.pipeline-cost .cost-title { font-weight: 600; color: var(--text-primary); }
.pipeline-cost .cost-total { font-weight: 600; }
.pipeline-cost .cost-note { margin: 6px 0 0; color: var(--text-secondary); font-size: 12px; }
:is(.pipeline-cost, .pipe-run-note) .cost-info::before { content: "i"; display: inline-grid; place-items: center; width: 14px; height: 14px; margin-right: 6px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 10px; font-style: italic; font-weight: 600; text-decoration: none; vertical-align: 1px; }
