* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem;
  background: #f5f5f7;
  color: #1d1d1f;
}
h1 { font-size: 1.5rem; margin-bottom: 1.5rem; }
h2 { font-size: 1.1rem; margin-top: 2rem; }
h2.flush { margin-top: 0; }
.card {
  background: white;
  padding: 1.25rem;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  margin-bottom: 1rem;
}
label { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.9rem; }
input[type="text"], textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #d2d2d7;
  border-radius: 6px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.85rem;
}
textarea { resize: vertical; min-height: 70px; }
.param-row {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  align-items: center;
}
button {
  padding: 0.55rem 1rem;
  border: none;
  border-radius: 6px;
  background: #0071e3;
  color: white;
  font-size: 0.9rem;
  cursor: pointer;
  font-weight: 500;
}
button:hover { background: #005bb5; }
button.secondary { background: #e5e5ea; color: #1d1d1f; }
button.secondary:hover { background: #d5d5da; }
button.danger { background: transparent; color: #d70015; padding: 0.4rem 0.6rem; }
button.danger:hover { background: #ffebee; }
.actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }
.output {
  background: #1d1d1f;
  color: #6ee7b7;
  padding: 0.75rem;
  border-radius: 6px;
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
  word-break: break-all;
  min-height: 60px;
  cursor: pointer;
}
.hint { font-size: 0.8rem; color: #6e6e73; margin-top: 0.3rem; }
.copied { color: #34c759; font-size: 0.85rem; margin-left: 0.5rem; }
