.batch-tool input[type="text"],
.batch-tool input[type="password"],
.batch-tool input[type="url"] {
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid #41536c;
  border-radius: 0.6rem;
  background: var(--surface-inset);
  color: var(--text);
}

.batch-tool .text-tool-field [aria-invalid="true"] {
  border-color: #ff929f;
}

.batch-tool .text-tool-grid {
  align-items: start;
}

.batch-tool .tool-code {
  font-family: ui-monospace, Consolas, "Liberation Mono", monospace;
  overflow-wrap: anywhere;
}

.batch-tool .tool-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: 0.65rem;
  margin: 0;
}

.tool-stats > div {
  min-width: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background: var(--surface-inset);
}

.tool-stats dt {
  color: var(--muted);
}

.tool-stats dd {
  margin: 0;
  color: var(--mint);
  font-weight: 650;
  overflow-wrap: anywhere;
}

.batch-tool progress {
  width: 100%;
  height: 0.75rem;
  accent-color: var(--mint);
}

.batch-tool progress[data-over] {
  accent-color: #ff929f;
}

.batch-tool .tool-limit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.25rem 0.5rem;
}

.tool-limit progress {
  grid-column: 1 / -1;
}

.tool-limit output[data-over] {
  color: #ffb0b9;
}

.batch-tool .permission-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.permission-table th,
.permission-table td {
  padding: 0.4rem 0.2rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
  overflow-wrap: anywhere;
}

.permission-table th[scope="row"] {
  text-align: start;
}

.permission-table label {
  display: grid;
  min-height: 2.75rem;
  place-items: center;
  cursor: pointer;
}

.permission-table input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--mint);
}

.batch-tool .file-drop {
  padding: 0.65rem;
  border: 1px dashed var(--subtle);
  border-radius: 0.65rem;
  background: var(--surface-inset);
  overflow-wrap: anywhere;
}

.file-drop[data-dragging] {
  border-color: var(--mint);
  background: var(--surface-raised);
}

.file-drop input {
  width: 100%;
  min-width: 0;
}

.batch-tool .copy-button[aria-pressed="true"] {
  border-color: var(--mint);
  color: var(--mint);
}

.batch-tool [hidden] {
  display: none;
}
