textarea,
select,
input[type="text"] {
  width: 100%;
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-corner-medium);
  background: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  font: inherit;
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea {
  padding: 14px 16px;
  resize: vertical;
  min-height: 220px;
}

select,
input[type="text"] {
  min-height: 46px;
  padding: 10px 14px;
}

textarea:focus,
select:focus,
input[type="text"]:focus {
  border-color: var(--md-sys-color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--md-sys-color-primary) 22%, transparent);
}

.tool-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.option-group {
  min-width: 0;
}

.option-help {
  margin-top: 8px;
  margin-bottom: 0;
}

.tool-help code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.1em 0.4em;
  border-radius: 6px;
}

@media (max-width: 600px) {
  .tool-options {
    grid-template-columns: 1fr;
  }}
