body.tool-page { max-width: 720px; }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.field-label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.field input {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
}

.toolbar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.progress {
  height: 8px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.progress > div {
  height: 100%;
  width: 0%;
  background: #7c3aed;
  transition: width 0.2s;
}

#list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 420px;
  overflow: auto;
}

#list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.tag {
  font-size: 0.75rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--bg-subtle);
  color: var(--muted);
  white-space: nowrap;
}

.tag.done { background: #dcfce7; color: #166534; }
.tag.fail { background: #fee2e2; color: #b91c1c; }
.tag.run { background: #dbeafe; color: #1d4ed8; }

.banner.ok { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.banner.warn { background: #fef9c3; color: #854d0e; border-color: #fde68a; }
.banner.error { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }
