* { box-sizing: border-box; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #f4f6fb; color: #1f2937; margin: 0;
}
main { max-width: 900px; margin: 2rem auto; padding: 0 1rem; }
main.narrow { max-width: 480px; }
h1 { color: #b91c1c; }
.card {
  background: #fff; border-radius: 12px; padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.08); margin-bottom: 1.25rem;
}
.card h2 { margin-top: 0; font-size: 1.1rem; }
form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; }
label { display: flex; flex-direction: column; flex: 1; min-width: 180px; gap: .25rem; font-size: .9rem; }
input {
  padding: .55rem .75rem; border: 1px solid #cbd5e1; border-radius: 8px;
  font-size: 1rem; width: 100%;
}
button {
  padding: .55rem 1rem; border: none; border-radius: 8px; cursor: pointer;
  font-size: 1rem; background: #e5e7eb; color: #111827;
}
button.primary { background: #16a34a; color: #fff; }
button.danger  { background: #dc2626; color: #fff; }
button:disabled { opacity: .5; cursor: not-allowed; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: .5rem .4rem; border-bottom: 1px solid #eef2f7; vertical-align: top; }
code { background: #f3f4f6; padding: .1rem .35rem; border-radius: 4px; }
.flash {
  background: #ecfdf5; border: 1px solid #6ee7b7; color: #065f46;
  padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1rem;
}
.flash.error { background: #fef2f2; border-color: #fca5a5; color: #7f1d1d; }
.hint { color: #6b7280; font-size: .9rem; }
.result { text-align: center; }
.result .big { font-size: 1.8rem; color: #16a34a; font-weight: 700; margin: .5rem 0; }
form.column { flex-direction: column; align-items: stretch; }
textarea {
  padding: .55rem .75rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  width: 100%;
  resize: vertical;
}

.links { list-style: none; padding: 0; margin: 0; }
.links li {
  padding: .75rem 0;
  border-bottom: 1px solid #eef2f7;
}
.links li:last-child { border-bottom: none; }
.links .who { font-weight: 600; margin-bottom: .35rem; }
.copy-row { display: flex; gap: .5rem; }
.copy-row input {
  flex: 1;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: .88rem;
  background: #f9fafb;
}
.copy-row .copy {
  background: #16a34a;
  color: #fff;
  white-space: nowrap;
}
main.narrow-wide { max-width: 720px; }
a { color: #16a34a; text-decoration: none; }
a:hover { text-decoration: underline; }