:root {
  font-family: system-ui, sans-serif;
  color: #19382f;
  background: #f3f5f2;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 1200px; margin: auto; padding: 24px; }
header, nav, .actions {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
header { justify-content: space-between; margin-bottom: 28px; }
nav form { margin: 0; }
a { color: #12634d; }
h1 { font-size: 1.9rem; letter-spacing: -.04em; }
h2 { font-size: 1.25rem; }
p { line-height: 1.6; }
.card {
  background: white; padding: 24px; border: 1px solid #dce5df;
  border-radius: 14px; margin-bottom: 20px;
}
.narrow { max-width: 620px; margin: 32px auto; }
.counters { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.counters strong { display: block; font-size: 2rem; }
label { display: block; font-weight: 600; margin: 16px 0; }
input, textarea, select {
  display: block; width: 100%; padding: 12px; margin-top: 6px;
  border: 1px solid #9aaca1; border-radius: 8px;
  font: inherit; font-weight: 400; background: white;
}
textarea { resize: vertical; overflow-wrap: anywhere; }
.check { display: flex; align-items: center; gap: 10px; }
.check input { width: auto; margin: 0; }
button {
  padding: 12px 18px; background: #185b49; color: white;
  border: 0; border-radius: 8px; font: inherit;
  font-weight: 650; cursor: pointer;
}
button:disabled { opacity: .55; cursor: wait; }
.danger { background: #92372c; }
.notice { padding: 16px; background: #fff0cd; border-radius: 8px; }
.muted { font-size: .9rem; color: #53685c; }
.table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td {
  padding: 12px; text-align: left; vertical-align: top;
  border-bottom: 1px solid #e4eae5; overflow-wrap: anywhere;
}
th { white-space: nowrap; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
:focus-visible { outline: 3px solid #dfb755; outline-offset: 3px; }
.lead { font-size: 1.05rem; max-width: 60rem; }
.btn, a.btn {
  display: inline-block; padding: 12px 18px; background: #185b49; color: white;
  border: 0; border-radius: 8px; font: inherit; font-weight: 650;
  text-decoration: none; cursor: pointer;
}
button.secondary, .secondary {
  background: white; color: #185b49; border: 1px solid #185b49;
}
.small { padding: 8px 12px; font-size: .9rem; }
.step { display: flex; gap: 20px; align-items: flex-start; }
.step .num {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  background: #185b49; color: white; font-weight: 800; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
}
.step.done .num { background: #2e8b57; }
.step.done .num::after { content: "✓"; margin-left: 1px; font-size: 1rem; }
.step .body { flex: 1; min-width: 0; }
.step h2 { margin-top: 4px; }
.progress-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
progress { width: 220px; max-width: 100%; height: 14px; accent-color: #185b49; }
details.gen > summary { list-style: none; display: inline-block; }
details.gen > summary::-webkit-details-marker { display: none; }
details.gen[open] > summary { margin-bottom: 16px; }
.sample {
  background: #f3f5f2; border: 1px solid #dce5df; border-radius: 8px;
  padding: 14px; white-space: pre-wrap; overflow-wrap: anywhere;
  font: inherit; line-height: 1.5; margin: 12px 0;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chip {
  padding: 8px 14px; border: 1px solid #9aaca1; border-radius: 999px;
  text-decoration: none; color: #19382f; background: white; font-size: .92rem;
}
.chip.on { background: #185b49; color: white; border-color: #185b49; }
.chip b { margin-left: 4px; }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: .82rem; font-weight: 700; background: #e4eae5; color: #19382f;
}
.badge.s-waiting { background: #fff0cd; color: #6b4b00; }
.badge.s-confirmed { background: #d6f0df; color: #14532d; }
.badge.s-expired { background: #e6e6e6; color: #444; }
.badge.s-revoked { background: #f6d9d5; color: #7a2a20; }
.badge.s-nolink { background: #dde8f5; color: #1e3a5f; }
.search { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.search label { flex: 1; min-width: 220px; margin: 0; }
.send-actions { display: flex; gap: 8px; flex-wrap: wrap; }
tr.sent td { opacity: .5; text-decoration: line-through; }
tr.sent td:last-child { text-decoration: none; opacity: 1; }
@media(max-width: 680px) {
  .step { flex-direction: column; align-items: stretch; gap: 10px; }
  .step .body { width: 100%; max-width: 100%; }
  .chips { gap: 6px; }
  .search button { width: 100%; }
  .send-actions .btn, .send-actions button { flex: 1; text-align: center; }
  main { padding: 14px; }
  .card { padding: 18px; }
  .counters { grid-template-columns: repeat(2,1fr); }
  .actions { flex-direction: column; align-items: stretch; }
}

[hidden] { display: none !important; }
