.tool {
  display: grid;
  gap: 18px;
}

.tool textarea {
  width: 100%;
  min-height: 280px;
  padding: 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
  line-height: 1.55;
  resize: vertical;
}

.tool textarea:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 4px rgb(22 119 255 / 14%);
  outline: none;
}

.utility-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 800;
}

.field span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.field select {
  background: transparent;
  border: none;
  font: inherit;
  color: inherit;
}

@media (max-width: 860px) {
  .utility-row .primary-button,
  .utility-row .action-button,
  .utility-row .field {
    width: 100%;
    justify-content: space-between;
  }
}
