:root {
  --bg: #f4efe6;
  --card: #fffdf8;
  --ink: #2b2118;
  --muted: #6b5d4f;
  --red: #b3261e;
  --red-dark: #8c1d17;
  --green: #1f5c3a;
  --line: #e4d9c7;
  --ok-bg: #e6f2ea;
  --err-bg: #fbe9e7;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.5 Georgia, "Times New Roman", serif;
  min-height: 100vh;
}

main {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 16px 64px;
}

header { text-align: center; margin-bottom: 28px; }
header .eyebrow {
  margin: 0;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
}
header h1 { margin: 6px 0 8px; font-size: clamp(28px, 7vw, 40px); font-weight: normal; line-height: 1.15; }
header p.lede { margin: 0; color: var(--muted); }

.card {
  background: var(--card);
  border-radius: var(--radius);
  border-top: 6px solid var(--red);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 2px rgb(0 0 0 / .05);
}
.card.green { border-top-color: var(--green); }
.card h2 { margin: 0 0 14px; font-size: 21px; font-weight: normal; }

label { display: block; font-size: 15px; margin: 14px 0 4px; }
label .hint { color: var(--muted); font-size: 13px; }
input, textarea, select {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 84px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: transparent; }

button {
  font: inherit;
  font-size: 16px;
  border: 0;
  border-radius: 8px;
  padding: 11px 18px;
  background: var(--red);
  color: #fff;
  cursor: pointer;
}
button:hover { background: var(--red-dark); }
button:disabled { opacity: .55; cursor: default; }
button.secondary { background: transparent; color: var(--green); border: 1px solid var(--green); }
button.secondary:hover { background: var(--ok-bg); }
button.small { font-size: 14px; padding: 6px 10px; }
form button[type="submit"] { margin-top: 18px; width: 100%; }

.hint-line { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
select.inline { width: auto; max-width: 100%; font-size: 14px; padding: 4px 6px; margin-top: 4px; }
.partner-note { display: block; font-size: 13px; color: var(--muted); }

.msg { margin: 14px 0 0; padding: 10px 12px; border-radius: 8px; font-size: 15px; }
.msg.ok { background: var(--ok-bg); color: var(--green); }
.msg.err { background: var(--err-bg); color: var(--red-dark); }
.msg:empty { display: none; }

.names { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.names li { background: var(--bg); border-radius: 999px; padding: 4px 12px; font-size: 15px; }
.count { color: var(--muted); font-size: 15px; margin: 0 0 12px; }

.muted { color: var(--muted); }
.hidden { display: none !important; }

/* Organizer table */
.table-wrap { overflow-x: auto; margin: 0 -8px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-weight: normal; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
td.actions { white-space: nowrap; text-align: right; }
td.email { word-break: break-all; }
.badge { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--bg); }
.badge.sent { background: var(--ok-bg); color: var(--green); }
.badge.failed { background: var(--err-bg); color: var(--red-dark); }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

footer { text-align: center; font-size: 13px; color: var(--muted); margin-top: 32px; }
footer a { color: var(--muted); }

@media (max-width: 600px) {
  td.actions { white-space: normal; }
  td.actions button { display: block; width: 100%; margin: 3px 0; }
  th:nth-child(3), td:nth-child(3) { width: 1%; }
}
