:root {
  --bg: #e9e2e6;
  --card: #fffdf9;
  --band: #eaf9f0;
  --ink: #1f1219;
  --ink-2: #2b1c24;
  --body-text: #3a2530;
  --body-text-2: #5a3a4a;
  --muted: #7c6572;
  --muted-2: #a58e9b;
  --plum: #8d4a71;
  --plum-hover: #6f3357;
  --blush: #f4ebf0;
  --blush-2: #e6d2de;
  --blush-3: #ecdfe7;
  --gold: #ffbd59;
  --gold-ink: #4a2f0c;
  --mint: #9ef4ca;
  --mint-ink: #1f3d2c;
  --shadow: 0 8px 40px rgba(60, 30, 50, 0.12);
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  background: var(--bg);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--body-text);
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 16px 80px;
}
a {
  color: var(--plum);
  text-decoration: none;
}
a:hover {
  color: var(--plum-hover);
}
.serif {
  font-family: "Newsreader", Georgia, serif;
}
.doc {
  width: 100%;
  max-width: 880px;
  background: var(--card);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.doc.wide {
  max-width: 1080px;
}
header.band {
  background: var(--band);
  padding: 28px 44px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--plum);
  display: inline-block;
}
.step-pill {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--gold-ink);
  background: var(--gold);
  border-radius: 999px;
  padding: 6px 14px;
  text-transform: uppercase;
}
.steps-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 24px 44px 32px;
  background: var(--band);
}
.step-bar {
  flex: 1;
  max-width: 110px;
  height: 10px;
  border-radius: 999px;
  background: var(--blush-3);
  transition: all 0.25s ease;
}
.step-bar.active {
  background: var(--gold);
}
.step-bar.done {
  background: var(--plum);
}
main {
  padding: 38px 44px 34px;
}
.eyebrow {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--plum);
  margin-bottom: 10px;
}
h2.q-title {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 700;
  font-size: 27px;
  line-height: 1.3;
  margin: 0 0 8px;
  color: var(--ink);
}
.q-sub {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0 0 22px;
}
.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}
.opt {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1.5px solid var(--blush-3);
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  background: #fff;
  transition:
    border-color 0.15s,
    background 0.15s;
  font-size: 15px;
  color: var(--body-text-2);
}
.opt:hover {
  border-color: var(--muted-2);
}
.opt input {
  accent-color: var(--plum);
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.opt.checked {
  border-color: var(--plum);
  background: var(--blush);
  color: var(--ink);
}
.scale-row {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.scale-pill {
  flex: 1;
  min-width: 56px;
  text-align: center;
  border: 1.5px solid var(--blush-3);
  border-radius: 10px;
  padding: 14px 6px;
  cursor: pointer;
  font-family: "Newsreader", Georgia, serif;
  font-weight: 700;
  font-size: 16px;
  background: #fff;
  color: var(--body-text-2);
}
.scale-pill.checked {
  border-color: var(--plum);
  background: var(--plum);
  color: #fff;
}
.scale-caption {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 22px;
}
.organizer-inline {
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--blush);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.organizer-inline-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--plum-hover);
  flex: 1;
  min-width: 160px;
}
.organizer-inline .scale-row {
  flex: 0 0 auto;
  width: auto;
  margin-bottom: 0;
  gap: 6px;
}
.organizer-inline .scale-pill {
  min-width: 34px;
  padding: 8px 4px;
  font-size: 13px;
  flex: none;
}
textarea,
input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  border: 1.5px solid var(--blush-3);
  border-radius: 10px;
  padding: 13px 15px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  background: #fff;
  color: var(--body-text);
  resize: vertical;
}
textarea {
  min-height: 92px;
}
textarea:focus,
input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--plum);
}
.opt input:focus-visible,
.scale-pill:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.inline-other {
  margin-top: 8px;
}
.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--blush-3);
}
button {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  border-radius: 4px;
  border: none;
  padding: 13px 24px;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover {
  background: var(--plum-hover);
}
.btn-primary:disabled {
  background: #c9b8c2;
  cursor: not-allowed;
}
.btn-gold {
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 800;
}
.btn-gold:hover {
  filter: brightness(0.96);
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding: 13px 6px;
}
.btn-ghost:hover {
  color: var(--ink);
}
.progress-text {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.03em;
}
.intro {
  text-align: left;
}
.intro-hero {
  background: var(--band);
  margin: -38px -44px 28px;
  padding: 40px 44px 30px;
  text-align: center;
}
.intro p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 60ch;
}
.intro .meta {
  display: flex;
  gap: 26px;
  margin: 22px 0 26px;
  flex-wrap: wrap;
}
.meta-item {
  font-size: 12px;
  color: var(--muted);
}
.meta-item b {
  color: var(--ink);
  display: block;
  font-size: 20px;
  font-family: "Newsreader", serif;
  font-weight: 700;
}
.thanks {
  text-align: center;
  padding: 14px 0 6px;
}
.thanks .badge {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background: var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
}
.thanks h2 {
  font-family: "Newsreader", serif;
  font-size: 28px;
  color: var(--ink);
}
.admin-link {
  text-align: center;
  margin-top: 28px;
}
.admin-link a {
  font-size: 11.5px;
  color: var(--muted);
  border-bottom: 1px dotted var(--muted);
}
.results-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 13px;
  margin: 0;
}
.results-table th,
.results-table td {
  text-align: left;
  padding: 9px 8px;
  border-bottom: 1px solid var(--blush-3);
  overflow-wrap: break-word;
}
.results-table th:first-child,
.results-table td:first-child {
  width: 44%;
}
.results-table th:nth-child(2),
.results-table td:nth-child(2) {
  width: 22%;
}
.results-table th:last-child,
.results-table td:last-child {
  width: 34%;
}
.results-table th {
  font-size: 10px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 700;
}
.results-table tbody tr:last-child td {
  border-bottom: none;
}
.results-table tbody tr:nth-child(odd) td {
  background: rgba(244, 235, 240, 0.35);
}
.bar-bg {
  background: var(--blush);
  border-radius: 999px;
  height: 7px;
  overflow: hidden;
  min-width: 60px;
}
.bar-fill {
  background: var(--plum);
  height: 100%;
  border-radius: 999px;
}
.open-answer {
  font-size: 13px;
  padding: 11px 14px;
  margin-bottom: 8px;
  background: #fff;
  border-left: 3px solid var(--plum);
  border-radius: 0 8px 8px 0;
  color: var(--body-text-2);
  line-height: 1.55;
}
.open-answer b {
  color: var(--plum-hover);
}
.quote-scroll {
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}
.stat-block {
  margin-bottom: 0;
}
.stat-title {
  font-family: "Newsreader", serif;
  font-size: 15.5px;
  margin-bottom: 12px;
  color: var(--ink);
  font-weight: 700;
}
.admin-card {
  background: var(--card);
  border: 1px solid var(--blush-3);
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 16px;
  overflow-x: auto;
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.admin-section-heading {
  font-family: "Newsreader", serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--plum);
  margin: 34px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--blush);
}
.admin-section-heading:first-of-type {
  margin-top: 6px;
}
.summary-strip {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.summary-chip {
  background: var(--band);
  border-radius: 10px;
  padding: 16px 18px;
  flex: 1;
  min-width: 130px;
  text-align: center;
}
.summary-chip .num {
  font-family: "Newsreader", serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--ink);
  display: block;
  line-height: 1.2;
}
.summary-chip .lbl {
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-top: 4px;
}
.error-msg {
  color: var(--plum-hover);
  font-size: 13px;
  margin-top: 8px;
}
.field-label {
  margin: 0 0 14px;
  font-weight: 700;
  color: var(--ink);
  font-size: 15px;
}
.login-box {
  max-width: 320px;
  margin: 40px auto;
}
.login-box input {
  margin-bottom: 14px;
}
.top-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 640px) {
  header.band {
    padding: 22px 22px 18px;
  }
  .steps-row {
    padding: 18px 22px 24px;
    gap: 6px;
  }
  .step-bar {
    height: 8px;
  }
  main {
    padding: 26px 22px 26px;
  }
  .intro-hero {
    margin: -26px -22px 22px;
    padding: 30px 22px 22px;
  }
}
