:root {
  --ink: #123d37;
  --muted: #65736b;
  --paper: #f5f3eb;
  --white: #fffef9;
  --line: #d8ded2;
  --lime: #e5f2aa;
  --red: #a53d2a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, textarea { font: inherit; }
button { cursor: pointer; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink); padding: 10px 16px; font-weight: 600; min-height: 44px; }
button:disabled { cursor: not-allowed; opacity: .45; }
button:hover:not(:disabled) { background: #e9eee0; }
button:focus-visible, textarea:focus-visible { outline: 3px solid #6a8c36; outline-offset: 3px; }
button.primary { background: var(--ink); color: white; border-color: var(--ink); }
button.primary:hover:not(:disabled) { background: #20584e; }
button.soft { background: var(--lime); border-color: var(--lime); }
button.quiet { background: transparent; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.035em; }
h1 { font-size: 42px; margin: 0 0 24px; }
h2 { font-size: 30px; }
p { line-height: 1.5; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.topbar { min-height: 76px; padding: 16px 28px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 650; }
.brand-mark { display: grid; place-items: center; background: var(--ink); color: var(--lime); width: 34px; height: 34px; border-radius: 50%; font: 27px Georgia, serif; padding-bottom: 4px; }
.brand small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; margin-top: 2px; }
.pill { border-radius: 24px; padding: 7px 11px; font-size: 12px; background: #e4ebdc; white-space: nowrap; }
.pill.closed { background: #eee2db; color: #825243; }
.audience { max-width: 520px; margin: 0 auto; padding: 52px 24px; }
textarea { resize: vertical; min-height: 180px; width: 100%; border: 1px solid #cbd5c5; border-radius: 10px; background: var(--white); color: var(--ink); padding: 16px; line-height: 1.5; font-size: 17px; }
textarea::placeholder { color: #7a877b; }
.field-meta { display: flex; justify-content: space-between; font-size: 12px; margin: 10px 0 22px; color: var(--muted); }
.send { width: 100%; min-height: 48px; }
.receipt { padding: 20px 0; text-align: center; }
.receipt .check { display: grid; place-items: center; background: var(--lime); border-radius: 50%; width: 44px; height: 44px; font-size: 23px; margin: 0 auto 20px; }
.receipt h2 { margin: 0 0 28px; }
.error { color: var(--red); background: #f8eae3; border: 1px solid #e9c5b8; border-radius: 8px; padding: 12px; font-size: 14px; }
.notice { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.loading { padding: 80px 24px; max-width: 600px; margin: auto; text-align: center; }
.manager { max-width: 860px; margin: auto; padding: 24px 24px 60px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; margin-bottom: 18px; }
.tools { display: flex; align-items: center; gap: 8px; }
.tools button { font-size: 12px; padding: 8px 12px; }
.connection { font-size: 12px; color: var(--muted); }
.connection::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #658146; margin-right: 7px; vertical-align: 1px; }
.connection.paused { color: var(--red); }
.connection.paused::before { background: var(--red); }
.segmented { display: flex; border: 1px solid var(--line); border-radius: 8px; padding: 3px; gap: 3px; }
.segmented button { border: 0; min-height: 36px; padding: 8px 13px; background: transparent; font-size: 12px; }
.segmented button.active { background: var(--ink); color: white; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs button { border: 0; border-radius: 0; background: none; border-bottom: 2px solid transparent; white-space: nowrap; padding: 12px 14px; color: var(--muted); font-size: 13px; }
.tabs button.active { border-color: var(--ink); color: var(--ink); }
.count { font-size: 11px; margin-left: 7px; color: var(--muted); font-weight: 400; }
.cards { display: grid; gap: 12px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.card.current { border-color: #698547; }
.badge { display: inline-block; font-size: 11px; padding: 4px 7px; background: var(--lime); border-radius: 4px; margin-bottom: 12px; }
.question-text { font-size: 19px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 18px; }
.card-actions { display: flex; gap: 8px; }
.card-actions button { font-size: 13px; min-width: 44px; }
.empty { padding: 40px 12px; text-align: center; color: var(--muted); font-size: 15px; margin: 0; }
.new-banner { width: 100%; background: var(--lime); border-color: #ccd9a1; margin-bottom: 14px; font-size: 13px; }
.now-card { background: var(--ink); color: var(--white); border-radius: 12px; padding: 32px; margin-bottom: 28px; }
.eyebrow { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--lime); margin: 0 0 22px; }
.now-question { font-family: Georgia, "Times New Roman", serif; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.25; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 28px; }
.now-card button { width: 100%; }
.next-label { font-size: 12px; color: var(--muted); margin: 0 0 12px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: white; padding: 12px 18px; border-radius: 9px; font-size: 14px; max-width: min(90vw, 600px); z-index: 10; line-height: 1.5; }
.toast.error-toast { background: #8c3c2f; }
@media (max-width: 620px) {
  .topbar { padding: 14px 16px; min-height: 68px; gap: 10px; }
  .brand { font-size: 14px; gap: 8px; }
  .brand-mark { width: 30px; height: 30px; font-size: 24px; }
  .segmented button { padding: 8px 11px; }
  .audience { padding: 34px 20px; }
  h1 { font-size: 36px; }
  .manager { padding: 16px 16px 40px; }
  .tabs { gap: 0; }
  .tabs button { padding: 11px 9px; font-size: 12px; }
  .count { margin-left: 5px; }
  .card { padding: 18px; }
  .question-text { font-size: 18px; }
  .now-card { padding: 24px; }
}
