/*
 * Tools-only styling: a tool page needs a form row and a readable output
 * panel. Both are scoped here until a second tool needs them.
 */

.tool-form {
  display: grid;
  gap: var(--space-2);
  align-items: end;
  margin-block: var(--space-3);
}

.tool-form label {
  font-weight: 600;
  font-size: 0.9rem;
}

.tool-form input {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-cream);
  color: var(--color-ink);
  font: inherit;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.tool-form .button {
  justify-self: start;
}

.tool-form .button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.output-panel {
  min-height: 7rem;
  margin: 0;
  padding: var(--space-3);
  overflow-x: auto;
  border-radius: var(--radius-md);
  background: var(--color-ink);
  color: var(--color-cream);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.note {
  margin-top: var(--space-3);
  color: var(--color-ink-soft);
  font-size: 0.85rem;
}

@media (min-width: 40rem) {
  .tool-form {
    grid-template-columns: 1fr auto;
  }

  .tool-form label {
    grid-column: 1 / -1;
  }
}
