h1 {
  margin-top: 32px;
  margin-bottom: 8px;
  font-size: 2rem;
}

.lede {
  color: var(--muted);
  margin-top: 0;
  margin-bottom: 28px;
  max-width: 60ch;
}

.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: -1px;
  position: relative;
  z-index: 1;
}

.tab-btn {
  font: inherit;
  font-weight: 600;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
}

.tab-btn:hover { color: var(--ink); }

.tab-btn.active {
  background: var(--panel);
  color: var(--ink);
}

.tool {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  padding: 24px;
}

label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}

.base-row { margin-bottom: 16px; }

.base-row input, select, textarea {
  width: 100%;
  font: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
}

.text-controls select {
  font-family: inherit;
  margin-bottom: 16px;
}

.text-controls label { margin-top: 4px; }

.text-controls textarea { margin-bottom: 16px; resize: vertical; }

.hint {
  color: #c0392b;
  font-size: 0.85rem;
  margin-top: -6px;
  margin-bottom: 10px;
}

.faq { margin-top: 48px; max-width: 70ch; }

.faq h2 { font-size: 1.3rem; margin-top: 32px; }

details {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

details summary {
  cursor: pointer;
  font-weight: 600;
}

@media (max-width: 640px) {
  .tabs { flex-wrap: wrap; }
}
