:root {
  color-scheme: dark;
  --ink: #101923;
  --deep: #091017;
  --snow: #f4efe6;
  --snow-soft: #ded8ca;
  --ice: #b7cad2;
  --ice-dark: #6c8691;
  --evergreen: #5f8673;
  --lantern: #d89056;
  --cranberry: #c7838d;
  --line: rgba(244, 239, 230, 0.22);
  --line-strong: rgba(244, 239, 230, 0.42);
  --page-pad: clamp(18px, 5vw, 72px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--deep);
  color: var(--snow);
  font-family:
    Georgia, "Times New Roman", ui-serif, serif;
  line-height: 1.55;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(180deg, rgba(9, 16, 23, 0.08), var(--deep) 84vh),
    radial-gradient(circle at 72% 18%, rgba(216, 144, 86, 0.12), transparent 28rem);
}

a {
  color: inherit;
}

button {
  font: inherit;
  cursor: pointer;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px var(--page-pad);
  color: var(--snow);
}

.wordmark,
.site-header nav,
.header-link,
.hero-actions,
.hosting-links {
  display: flex;
  align-items: center;
}

.mark-svg {
  display: block;
  width: 32px;
  height: 32px;
}

.wordmark {
  gap: 10px;
  width: max-content;
  text-decoration: none;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
}

.site-header nav {
  gap: 22px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
}

.site-header nav a,
.header-link,
.quiet-action,
.site-footer a {
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(244, 239, 230, 0.42);
}

.header-link {
  justify-self: end;
  width: max-content;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 96svh;
  overflow: hidden;
  padding: 112px var(--page-pad) 52px;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.js .hero-image {
  opacity: 0;
  transition: opacity 700ms ease;
}

.js .hero-image.is-loaded {
  opacity: 1;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(9, 16, 23, 0.92), rgba(9, 16, 23, 0.52) 46%, rgba(9, 16, 23, 0.16)),
    linear-gradient(180deg, rgba(9, 16, 23, 0.18), rgba(9, 16, 23, 0.86));
}

.hero-content {
  max-width: 820px;
}

.kicker {
  margin: 0 0 12px;
  color: var(--lantern);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(5rem, 16vw, 14rem);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: 0;
}

.hero-line {
  margin: 20px 0 0;
  color: var(--snow);
  font-size: clamp(1.65rem, 4vw, 3.25rem);
  line-height: 1.02;
}

.hero-copy {
  max-width: 700px;
  margin: 22px 0 0;
  color: var(--snow-soft);
  font-size: clamp(1.05rem, 1.7vw, 1.34rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid rgba(244, 239, 230, 0.24);
  border-radius: 999px;
  background: var(--snow);
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

.quiet-action {
  color: var(--snow);
  font-weight: 800;
}

.hero-note {
  position: absolute;
  right: var(--page-pad);
  bottom: 52px;
  max-width: 270px;
  padding-left: 18px;
  border-left: 1px solid var(--line-strong);
  color: var(--snow-soft);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hero-note span,
.hero-note strong {
  display: block;
}

.hero-note span {
  color: var(--ice);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-note strong {
  margin-top: 6px;
  color: var(--snow);
  font-size: 0.96rem;
}

.hero-image-attribution {
  position: absolute;
  right: var(--page-pad);
  bottom: 18px;
  margin: 0;
  color: rgba(244, 239, 230, 0.68);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
}

.hero-image-attribution,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
}

.hero-image-attribution a {
  color: var(--snow);
  font-weight: 800;
  text-underline-offset: 5px;
  text-decoration-color: rgba(244, 239, 230, 0.42);
}

.intro-strip {
  padding: 34px var(--page-pad);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 16, 23, 0.62);
}

.intro-strip p {
  max-width: 1120px;
  margin: 0 auto;
  color: var(--ice);
  font-size: clamp(1.2rem, 2.4vw, 2.15rem);
  line-height: 1.18;
  text-align: center;
}

.chapter,
.flow,
.split-story,
.question-types,
.hosting,
.covenant {
  padding: clamp(72px, 11vw, 150px) var(--page-pad);
}

.chapter {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) minmax(280px, 430px);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
}

.chapter-label {
  color: var(--ice-dark);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

h2 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(2.35rem, 6vw, 6.25rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: 0;
}

.thanks-main h1 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(3.4rem, 9vw, 8rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  font-weight: 400;
  line-height: 1.05;
}

.chapter-body p,
.hosting p,
.covenant p,
.split-story p {
  max-width: 780px;
  color: var(--snow-soft);
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
}

.promise-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.promise-list li,
.type-cloud span {
  border-top: 1px solid var(--line);
  padding: 13px 0;
  color: var(--snow);
  font-weight: 800;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: clamp(36px, 6vw, 72px);
}

.flow-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
}

.flow-line article {
  min-height: 280px;
  padding: 28px 28px 0 0;
  border-right: 1px solid var(--line);
}

.flow-line article:last-child {
  border-right: 0;
}

.flow-line span {
  display: block;
  margin-bottom: 82px;
  color: var(--lantern);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 900;
}

.flow-line p {
  color: var(--ice);
  font-size: 1rem;
}

.split-story {
  background:
    linear-gradient(180deg, rgba(244, 239, 230, 0.05), rgba(244, 239, 230, 0.02));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.story-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(42px, 7vw, 88px);
}

.story-columns article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(244, 239, 230, 0.045);
}

.story-columns article {
  padding: clamp(22px, 4vw, 40px);
}

dl {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--ice);
}

dd {
  margin: 0;
  color: var(--snow);
  font-weight: 850;
  text-align: right;
}

.type-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.type-cloud span {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(183, 202, 210, 0.08);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.92rem;
}

.hosting {
  display: flex;
  justify-content: center;
  padding: clamp(60px, 12vw, 120px) 0;
  border-top: 1px solid var(--line);
}

.frost-card {
  display: flex;
  position: relative;
  align-items: center;
  width: 100%;
  max-width: 860px;
  gap: clamp(40px, 8vw, 80px);
  padding: clamp(40px, 6vw, 64px);
  border: 1px solid rgba(244, 239, 230, 0.12);
  border-radius: 42px;
  background:
    radial-gradient(circle at 10% 10%, rgba(183, 202, 210, 0.08), transparent 40%),
    rgba(244, 239, 230, 0.03);
  backdrop-filter: blur(24px);
  box-shadow: 
    0 24px 80px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(244, 239, 230, 0.05);
}

.frost-gauge {
  display: flex;
  position: relative;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: clamp(160px, 20vw, 220px);
  height: clamp(160px, 20vw, 220px);
}

.frost-gauge svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.gauge-base {
  fill: none;
  stroke: rgba(244, 239, 230, 0.06);
  stroke-width: 4;
}

.gauge-progress {
  fill: none;
  stroke: var(--ice);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gauge-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.gauge-content strong {
  color: var(--snow);
  font-family: Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 400;
  line-height: 1;
}

.gauge-content span {
  margin-top: 4px;
  color: var(--ice);
  font-family: Inter, sans-serif;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.frost-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.frost-info h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.frost-info p {
  margin: 0;
  color: var(--ice);
  font-size: 1.1rem;
  line-height: 1.5;
}

.frost-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 12px;
}

.frost-actions .primary-action {
  padding: 14px 28px;
  border-radius: 12px;
  background: var(--snow);
  color: var(--deep);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.frost-actions .primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(244, 239, 230, 0.2);
}

.frost-actions .quiet-action {
  color: var(--ice);
  font-family: Inter, sans-serif;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.frost-actions .quiet-action:hover {
  color: var(--snow);
}

.covenant {
  max-width: 1020px;
}

.thanks-main {
  min-height: calc(100svh - 80px);
  padding-top: 86px;
}

/* Onboarding Page */
.onboarding-page {
  background: var(--deep);
}

.onboarding-page .site-header {
  background: transparent;
  backdrop-filter: none;
}

.onboarding-hero {
  min-height: 80svh;
  padding: 120px var(--page-pad) 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.onboarding-hero .hero-shade {
  background:
    linear-gradient(180deg, rgba(9, 16, 23, 0.4), rgba(9, 16, 23, 0.95));
}

.onboarding-hero .hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0;
}

.onboarding-hero h1 {
  font-size: clamp(3.5rem, 10vw, 8rem);
  margin: 10px 0 24px;
  line-height: 0.9;
}

.onboarding-hero .hero-copy {
  margin: 0 auto;
  max-width: 580px;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--snow);
}

.onboarding-options {
  padding: 0 var(--page-pad) 80px;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.option-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 48px 40px;
  background: rgba(244, 239, 230, 0.03);
  border: 1px solid var(--line);
  border-radius: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.option-card:hover {
  border-color: var(--line-strong);
  background: rgba(244, 239, 230, 0.05);
  transform: translateY(-4px);
}

.option-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 4px 12px;
  background: rgba(183, 202, 210, 0.1);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ice);
  font-family: Inter, sans-serif;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.option-card h3 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.option-card p {
  color: var(--snow-soft);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.option-features {
  margin: 0 0 48px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.option-features li {
  position: relative;
  padding-left: 28px;
  color: var(--ice);
  font-family: Inter, sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
}

.option-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 1px;
  background: var(--lantern);
}

.option-actions {
  margin-top: auto;
  text-align: center;
}

.option-actions .primary-action {
  width: 100%;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.05rem;
}

.option-note {
  margin-top: 16px !important;
  color: var(--ice-dark) !important;
  font-family: Inter, sans-serif;
  font-size: 0.82rem !important;
  font-weight: 600;
}

.onboarding-footer-note {
  padding: 0 var(--page-pad) 120px;
  text-align: center;
  color: var(--ice-dark);
}

.onboarding-footer-note a {
  color: var(--ice);
  font-weight: 700;
}

/* Quiz Builder */
.builder-page {
  color-scheme: light;
  min-height: 100svh;
  background:
    linear-gradient(180deg, #f7f2e8 0%, #e7dfd0 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.builder-page::before {
  display: none;
}

.builder-page button,
.builder-page input,
.builder-page textarea {
  font-family: inherit;
}

.builder-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(220px, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 76px;
  padding: 12px clamp(16px, 3vw, 34px);
  border-bottom: 1px solid rgba(16, 25, 35, 0.12);
  background: rgba(247, 242, 232, 0.88);
  backdrop-filter: blur(18px);
}

.builder-wordmark {
  color: var(--ink);
}

.builder-title-block {
  display: grid;
  gap: 4px;
}

.builder-title-block label,
.field-label,
.answer-head,
.eyebrow {
  color: rgba(16, 25, 35, 0.62);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.builder-title-block input {
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 850;
  line-height: 1.15;
  outline: 0;
}

.builder-title-block input:focus {
  box-shadow: inset 0 -2px 0 var(--evergreen);
}

.builder-actions,
.stage-tools,
.composer-bar,
.answer-head,
.rail-head {
  display: flex;
  align-items: center;
}

.builder-actions {
  justify-content: flex-end;
  gap: 8px;
}

.builder-button,
.icon-button,
.small-action,
.type-chip,
.question-pill,
.preview-answer,
.answer-correct,
.answer-remove {
  border: 1px solid rgba(16, 25, 35, 0.14);
  background: #fffaf0;
  color: var(--ink);
}

.builder-button,
.small-action,
.type-chip {
  min-height: 40px;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 0.82rem;
  font-weight: 850;
}

.builder-button.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--snow);
}

.builder-button.secondary {
  background: rgba(255, 250, 240, 0.72);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
}

.icon-button.strong {
  border-color: var(--evergreen);
  background: var(--evergreen);
  color: #fffaf0;
}

.icon-button.danger {
  color: #953f4b;
}

.builder-button:disabled,
.icon-button:disabled,
.small-action:disabled,
.answer-remove:disabled {
  cursor: default;
  opacity: 0.38;
}

.builder-button:not(:disabled):hover,
.icon-button:not(:disabled):hover,
.small-action:not(:disabled):hover,
.type-chip:not(:disabled):hover,
.question-pill:hover {
  border-color: rgba(16, 25, 35, 0.32);
  transform: translateY(-1px);
}

.builder-button:focus-visible,
.icon-button:focus-visible,
.small-action:focus-visible,
.type-chip:focus-visible,
.question-pill:focus-visible,
.preview-answer:focus-visible,
.answer-correct:focus-visible,
.answer-remove:focus-visible,
.toggle-row input:focus-visible {
  outline: 3px solid rgba(95, 134, 115, 0.36);
  outline-offset: 2px;
}

.builder-shell {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(420px, 1fr) minmax(260px, 340px);
  gap: clamp(16px, 2.4vw, 28px);
  align-items: start;
  min-height: calc(100svh - 76px);
  padding: clamp(16px, 3vw, 34px);
}

.question-rail,
.preview-panel {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 16px;
}

.rail-head {
  justify-content: space-between;
  gap: 12px;
}

.rail-head strong {
  display: block;
  margin-top: 4px;
  font-size: 1.05rem;
}

.question-list {
  display: grid;
  gap: 8px;
}

.question-pill {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px 12px;
  width: 100%;
  min-height: 72px;
  padding: 12px;
  border-radius: 8px;
  text-align: left;
}

.question-pill span {
  grid-row: 1 / 3;
  color: var(--lantern);
  font-size: 0.76rem;
  font-weight: 900;
}

.question-pill strong {
  overflow: hidden;
  font-size: 0.92rem;
  line-height: 1.22;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.question-pill em {
  color: rgba(16, 25, 35, 0.58);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 780;
}

.question-pill.is-active {
  border-color: rgba(95, 134, 115, 0.72);
  background: #f1f7ee;
  box-shadow: 0 10px 30px rgba(16, 25, 35, 0.08);
}

.rail-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(16, 25, 35, 0.12);
}

.type-chip {
  min-height: 34px;
  padding: 7px 10px;
  background: transparent;
  color: rgba(16, 25, 35, 0.7);
  font-size: 0.74rem;
}

.type-chip.is-active {
  border-color: rgba(95, 134, 115, 0.72);
  background: rgba(95, 134, 115, 0.12);
  color: var(--ink);
}

.question-stage {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.stage-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(16, 25, 35, 0.62);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stage-tools {
  gap: 8px;
}

.question-editor,
.preview-screen,
.settings-panel {
  border: 1px solid rgba(16, 25, 35, 0.14);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.82);
  box-shadow: 0 24px 70px rgba(16, 25, 35, 0.08);
}

.question-editor {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
  min-height: 560px;
  padding: clamp(22px, 5vw, 56px);
}

.question-editor textarea {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  border: 0;
  border-bottom: 2px solid rgba(16, 25, 35, 0.16);
  background: transparent;
  color: var(--ink);
  font-family:
    Georgia, "Times New Roman", ui-serif, serif;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 1.02;
  outline: 0;
}

.question-editor textarea:focus {
  border-bottom-color: var(--evergreen);
}

.answer-head {
  justify-content: space-between;
  gap: 16px;
}

.answer-list {
  display: grid;
  gap: 10px;
}

.answer-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  gap: 10px;
  align-items: center;
  min-height: 54px;
}

.answer-correct,
.answer-remove {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-weight: 950;
}

.answer-correct {
  color: transparent;
}

.answer-correct.is-correct {
  border-color: var(--evergreen);
  background: var(--evergreen);
  color: #fffaf0;
}

.answer-remove {
  background: transparent;
  color: rgba(16, 25, 35, 0.52);
}

.answer-row input {
  width: 100%;
  min-height: 54px;
  min-width: 0;
  border: 1px solid rgba(16, 25, 35, 0.12);
  border-radius: 8px;
  background: #fffaf0;
  color: var(--ink);
  padding: 0 16px;
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  font-weight: 760;
  outline: 0;
}

.answer-row input:focus {
  border-color: var(--evergreen);
  box-shadow: 0 0 0 3px rgba(95, 134, 115, 0.16);
}

.composer-bar {
  justify-content: flex-end;
  gap: 10px;
}

.preview-panel {
  align-content: start;
}

.preview-screen {
  min-height: 420px;
  padding: 22px;
  background:
    linear-gradient(180deg, #101923 0%, #1e2b32 100%);
  color: var(--snow);
}

.preview-screen h2 {
  max-width: none;
  margin: 18px 0 34px;
  color: var(--snow);
  font-family:
    Georgia, "Times New Roman", ui-serif, serif;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.02;
}

.preview-screen p {
  margin: 0 0 18px;
  color: var(--snow);
  font-family:
    Georgia, "Times New Roman", ui-serif, serif;
  font-size: 1.35rem;
  line-height: 1.16;
}

.preview-screen .eyebrow {
  color: var(--lantern);
}

.preview-answers {
  display: grid;
  gap: 10px;
}

.preview-answer {
  min-height: 46px;
  border-color: rgba(244, 239, 230, 0.18);
  border-radius: 8px;
  background: rgba(244, 239, 230, 0.08);
  color: var(--snow);
  padding: 10px 12px;
  font-size: 0.95rem;
  font-weight: 780;
  text-align: left;
}

.settings-panel {
  display: grid;
  gap: 0;
  padding: 6px 18px;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  border-bottom: 1px solid rgba(16, 25, 35, 0.1);
  color: rgba(16, 25, 35, 0.72);
  font-size: 0.86rem;
  font-weight: 780;
}

.toggle-row:last-child {
  border-bottom: 0;
}

.toggle-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--evergreen);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px var(--page-pad);
  border-top: 1px solid var(--line);
  color: var(--ice);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
}

.footer-links {
  justify-content: flex-end;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .hero-image-attribution {
    left: var(--page-pad);
    right: auto;
  }

  .builder-topbar {
    grid-template-columns: 1fr auto;
  }

  .builder-title-block {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .builder-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .builder-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .question-rail,
  .preview-panel {
    position: static;
  }

  .question-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .question-pill {
    flex: 0 0 min(280px, 78vw);
  }

  .question-editor {
    min-height: 460px;
  }
  }

  @media (max-width: 640px) {
  .site-header {
    position: absolute;
    padding-top: 14px;
  }

  .header-link {
    display: none;
  }

  .hero {
    min-height: 94svh;
    padding-top: 92px;
  }

  .hero h1 {
    font-size: clamp(4.4rem, 25vw, 7rem);
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(9, 16, 23, 0.9), rgba(9, 16, 23, 0.54)),
      linear-gradient(180deg, rgba(9, 16, 23, 0.14), rgba(9, 16, 23, 0.9));
  }

  .flow-line {
    grid-template-columns: 1fr;
  }

  .flow-line article {
    min-height: auto;
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .flow-line article:last-child {
    border-bottom: 0;
  }

  .flow-line span {
    margin-bottom: 30px;
  }

  .site-footer {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .hosting {
    padding: 60px 0;
  }

  .frost-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 24px;
    gap: 32px;
    border-radius: 32px;
  }

  .frost-info {
    align-items: center;
  }

  .frost-actions {
    flex-direction: column;
    width: 100%;
    gap: 16px;
  }

  .frost-actions .primary-action {
    width: 100%;
  }

  .builder-topbar {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: auto;
  }

  .builder-actions {
    grid-column: 1;
    grid-row: 3;
    justify-content: stretch;
  }

  .builder-actions .builder-button {
    flex: 1;
  }

  .builder-actions .icon-button {
    display: none;
  }

  .builder-shell {
    padding: 14px;
  }

  .question-editor {
    min-height: 0;
    padding: 20px;
  }

  .question-editor textarea {
    min-height: 132px;
  }

  .answer-row {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 8px;
  }

  .answer-correct,
  .answer-remove,
  .icon-button {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .composer-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .composer-bar .builder-button:last-child {
    grid-column: 1 / -1;
  }

  .preview-screen {
    min-height: 340px;
  }
  }
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* Minimal quiz builder direction */
.builder-page {
  color-scheme: light;
  min-height: 100svh;
  background: #f8f4ec;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.builder-page::before {
  display: none;
}

.builder-page button,
.builder-page input,
.builder-page textarea {
  font: inherit;
}

.builder-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 72px;
  padding: 14px clamp(16px, 4vw, 44px);
  border-bottom: 1px solid rgba(16, 25, 35, 0.08);
  background: rgba(248, 244, 236, 0.9);
  backdrop-filter: blur(18px);
}

.builder-wordmark {
  color: var(--ink);
}

.quiz-title-input {
  width: min(100%, 560px);
  min-width: 0;
  justify-self: center;
  border: 0;
  background: transparent;
  color: rgba(16, 25, 35, 0.72);
  font-size: 0.95rem;
  font-weight: 760;
  outline: 0;
  text-align: center;
}

.quiz-title-input:focus {
  color: var(--ink);
}

.builder-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.builder-button,
.text-action,
.type-chip,
.answer-correct,
.answer-remove,
.question-dot {
  border: 0;
  background: transparent;
  color: var(--ink);
}

.builder-button {
  min-height: 40px;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.84rem;
  font-weight: 850;
}

.builder-button.primary {
  background: var(--ink);
  color: var(--snow);
}

.builder-button.quiet {
  color: rgba(16, 25, 35, 0.64);
}

.builder-button.danger {
  color: #9f4351;
}

.builder-button:disabled {
  cursor: default;
  opacity: 0.34;
}

.builder-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: calc(100svh - 72px);
  padding: clamp(28px, 6vw, 84px) clamp(16px, 5vw, 64px);
}

.question-card {
  display: grid;
  align-content: start;
  gap: clamp(18px, 3vw, 30px);
  width: min(100%, 820px);
  margin: 0 auto;
}

.question-progress {
  margin: 0;
  color: rgba(16, 25, 35, 0.46);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.question-card textarea {
  width: 100%;
  min-height: clamp(148px, 26vw, 280px);
  resize: vertical;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family:
    Georgia, "Times New Roman", ui-serif, serif;
  font-size: clamp(2.35rem, 7vw, 6.2rem);
  line-height: 0.98;
  outline: 0;
  text-align: center;
}

.question-card textarea::placeholder {
  color: rgba(16, 25, 35, 0.24);
}

.answer-list {
  display: grid;
  gap: 8px;
  width: min(100%, 620px);
  margin: 0 auto;
}

.answer-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  gap: 8px;
  align-items: center;
  min-height: 48px;
}

.answer-row input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 1px solid rgba(16, 25, 35, 0.1);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.72);
  color: var(--ink);
  padding: 0 18px;
  font-size: 1rem;
  font-weight: 700;
  outline: 0;
  text-align: center;
}

.answer-row input:focus {
  border-color: rgba(95, 134, 115, 0.55);
  background: #fffaf0;
  box-shadow: 0 0 0 4px rgba(95, 134, 115, 0.12);
}

.answer-correct,
.answer-remove {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: rgba(16, 25, 35, 0.26);
  font-weight: 900;
}

.answer-correct.is-correct {
  background: rgba(95, 134, 115, 0.16);
  color: var(--evergreen);
}

.answer-remove:disabled {
  visibility: hidden;
}

.text-action {
  justify-self: center;
  min-height: 38px;
  color: rgba(16, 25, 35, 0.54);
  font-size: 0.9rem;
  font-weight: 820;
}

.question-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  width: min(100%, 620px);
  margin: clamp(8px, 2vw, 18px) auto 0;
}

.question-footer .builder-button:first-child {
  justify-self: start;
}

.question-footer .builder-button:last-child {
  justify-self: end;
}

.question-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 280px;
}

.question-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border-radius: 999px;
  background: rgba(16, 25, 35, 0.2);
}

.question-dot.is-active {
  width: 22px;
  background: var(--ink);
}

.more-panel {
  width: min(100%, 620px);
  margin: 4px auto 0;
  color: rgba(16, 25, 35, 0.58);
}

.more-panel summary {
  width: max-content;
  margin: 0 auto;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 850;
  list-style: none;
}

.more-panel summary::-webkit-details-marker {
  display: none;
}

.more-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(16, 25, 35, 0.08);
}

.type-picker,
.more-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.score-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(16, 25, 35, 0.62);
  font-size: 0.82rem;
  font-weight: 850;
}

.feedback-select {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(16, 25, 35, 0.62);
  font-size: 0.82rem;
  font-weight: 850;
}

.feedback-select select {
  min-height: 36px;
  border: 1px solid rgba(16, 25, 35, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  padding: 0 12px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
}

.score-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--evergreen);
}

.type-chip {
  min-height: 34px;
  border-radius: 999px;
  padding: 7px 12px;
  color: rgba(16, 25, 35, 0.58);
  font-size: 0.78rem;
  font-weight: 820;
}

.type-chip.is-active {
  background: rgba(95, 134, 115, 0.13);
  color: var(--ink);
}

.builder-button:focus-visible,
.text-action:focus-visible,
.type-chip:focus-visible,
.answer-correct:focus-visible,
.answer-remove:focus-visible,
.question-dot:focus-visible,
.quiz-title-input:focus-visible,
.question-card textarea:focus-visible {
  outline: 3px solid rgba(95, 134, 115, 0.28);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .builder-topbar {
    grid-template-columns: 1fr auto;
  }

  .quiz-title-input {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    text-align: left;
  }

  .builder-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .builder-shell {
    padding-top: 40px;
  }

  .question-card textarea {
    text-align: left;
  }

  .answer-row input {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .builder-topbar {
    grid-template-columns: 1fr;
  }

  .builder-actions {
    grid-column: 1;
    grid-row: 3;
    justify-content: stretch;
  }

  .builder-actions .builder-button {
    flex: 1;
  }

  .question-footer {
    grid-template-columns: 1fr 1fr;
  }

  .question-dots {
    grid-column: 1 / -1;
    grid-row: 1;
    max-width: none;
  }
}

/* Builder polish: quiet by default, expressive on intent */
.builder-page {
  background:
    linear-gradient(180deg, #eef3f2 0%, #f6f1e8 58%, #e8eef1 100%);
}

.builder-topbar {
  background: rgba(238, 243, 242, 0.9);
}

.quiz-title-input {
  transition: color 180ms ease, transform 180ms ease;
}

.quiz-title-input:focus {
  transform: translateY(-1px);
}

.builder-button,
.text-action,
.type-chip,
.answer-correct,
.answer-remove,
.question-dot {
  transition:
    background-color 180ms ease,
    color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.builder-button:not(:disabled):hover,
.text-action:hover,
.type-chip:hover {
  transform: translateY(-1px);
}

.builder-button.primary:not(:disabled):hover {
  box-shadow: 0 10px 28px rgba(16, 25, 35, 0.18);
}

.builder-button.quiet:not(:disabled):hover,
.text-action:hover {
  color: var(--ink);
}

.question-card {
  animation: builder-rise 420ms ease both;
}

.question-card textarea {
  transition: color 180ms ease, text-shadow 180ms ease;
}

.question-card textarea:focus {
  text-shadow: 0 12px 48px rgba(95, 134, 115, 0.16);
}

.answer-row {
  animation: answer-rise 220ms ease both;
}

.answer-row.is-plain {
  grid-template-columns: minmax(0, 1fr) 34px;
}

.answer-row.is-plain .answer-correct {
  display: none;
}

.answer-row input {
  background: rgba(255, 255, 255, 0.66);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.answer-row input:hover {
  background: rgba(255, 255, 255, 0.86);
}

.answer-row input:focus {
  background: #ffffff;
  transform: translateY(-1px);
}

.answer-correct:not([hidden]):hover {
  background: rgba(95, 134, 115, 0.1);
  color: var(--evergreen);
}

.answer-remove:not(:disabled):hover {
  background: rgba(159, 67, 81, 0.08);
  color: #9f4351;
}

.response-placeholder {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 24px;
  border: 1px dashed rgba(16, 25, 35, 0.16);
  border-radius: 18px;
  color: rgba(16, 25, 35, 0.48);
  font-size: 0.95rem;
  font-weight: 740;
  text-align: center;
}

.question-dot:hover {
  transform: scale(1.35);
}

.question-dot.is-active {
  box-shadow: 0 0 0 5px rgba(16, 25, 35, 0.08);
}

.more-panel[open] summary {
  color: var(--ink);
}

.more-grid {
  animation: soft-open 220ms ease both;
}

.type-chip {
  border: 1px solid transparent;
}

.type-chip.is-active {
  border-color: rgba(95, 134, 115, 0.24);
  box-shadow: inset 0 0 0 1px rgba(95, 134, 115, 0.12);
}

.preview-dialog {
  width: min(92vw, 780px);
  border: 0;
  padding: 0;
  border-radius: 28px;
  background: transparent;
  color: var(--snow);
}

.publish-dialog,
.responses-dialog {
  width: min(92vw, 680px);
  border: 0;
  padding: 0;
  border-radius: 24px;
  background: transparent;
  color: var(--ink);
}

.publish-dialog::backdrop,
.responses-dialog::backdrop {
  background: rgba(9, 16, 23, 0.54);
  backdrop-filter: blur(10px);
}

.publish-card {
  position: relative;
  display: grid;
  gap: 18px;
  padding: clamp(26px, 5vw, 48px);
  border-radius: 24px;
  background: #f8f4ec;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.3);
}

.publish-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 4rem);
}

.publish-card label {
  display: grid;
  gap: 8px;
  color: rgba(16, 25, 35, 0.58);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.publish-card input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(16, 25, 35, 0.12);
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 12px;
  font-size: 0.92rem;
  letter-spacing: 0;
  text-transform: none;
}

.publish-note {
  margin: 0;
  color: rgba(16, 25, 35, 0.62);
  font-size: 0.9rem;
  font-weight: 680;
}

.responses-dialog {
  width: min(94vw, 860px);
}

.responses-card {
  max-height: min(820px, 88svh);
  overflow: auto;
}

.response-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.response-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.responses-list {
  display: grid;
  gap: 12px;
}

.response-item {
  display: grid;
  gap: 10px;
  padding: 16px 0 0;
  border-top: 1px solid rgba(16, 25, 35, 0.12);
}

.response-item h3 {
  margin: 0;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 900;
}

.response-item time {
  color: rgba(16, 25, 35, 0.52);
  font-size: 0.82rem;
  font-weight: 760;
}

.response-item dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.response-item dl div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 0.7fr);
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid rgba(16, 25, 35, 0.08);
}

.response-item dt,
.response-item dd {
  color: var(--ink);
  font-size: 0.9rem;
  text-align: left;
}

.response-item dt {
  color: rgba(16, 25, 35, 0.62);
  font-weight: 760;
}

.response-item dd {
  margin: 0;
  font-weight: 850;
}

.respond-page {
  min-height: 100svh;
  background:
    linear-gradient(180deg, rgba(16, 25, 35, 0.98), rgba(31, 45, 52, 0.98));
  color: var(--snow);
}

.respond-page::before {
  display: none;
}

.respond-shell {
  display: grid;
  min-height: 100svh;
  padding: clamp(22px, 6vw, 72px);
}

.respond-card {
  display: grid;
  align-content: center;
  gap: 22px;
  width: min(100%, 880px);
  margin: 0 auto;
}

.respond-card h1 {
  margin: 0;
  color: rgba(244, 239, 230, 0.72);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 850;
}

.respond-card p#respondQuestion {
  margin: clamp(20px, 5vw, 46px) 0 10px;
  color: var(--snow);
  font-family:
    Georgia, "Times New Roman", ui-serif, serif;
  font-size: clamp(2.3rem, 8vw, 6.6rem);
  line-height: 0.98;
}

.auth-shell {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: clamp(22px, 6vw, 72px);
}

.auth-card {
  display: grid;
  gap: 18px;
  width: min(100%, 460px);
}

.auth-card h1 {
  margin: 22px 0 0;
  color: var(--ink);
  font-family:
    Georgia, "Times New Roman", ui-serif, serif;
  font-size: clamp(2.7rem, 8vw, 5.6rem);
  font-weight: 400;
  line-height: 0.95;
}

.auth-card p {
  margin: 0;
  color: rgba(16, 25, 35, 0.62);
  font-size: 1rem;
  font-weight: 680;
}

.auth-card input {
  min-height: 52px;
  border: 1px solid rgba(16, 25, 35, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  padding: 0 18px;
  font: inherit;
  outline: 0;
}

.auth-card input:focus {
  border-color: rgba(95, 134, 115, 0.55);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(95, 134, 115, 0.12);
}

.preview-dialog::backdrop {
  background:
    linear-gradient(180deg, rgba(9, 16, 23, 0.62), rgba(9, 16, 23, 0.84));
  backdrop-filter: blur(12px);
}

.preview-card {
  position: relative;
  display: grid;
  gap: 22px;
  min-height: min(760px, 82svh);
  padding: clamp(26px, 6vw, 58px);
  border: 1px solid rgba(244, 239, 230, 0.16);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(16, 25, 35, 0.98), rgba(31, 45, 52, 0.98));
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.42);
  animation: preview-in 260ms ease both;
}

.preview-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(244, 239, 230, 0.08);
  color: var(--snow);
  font-size: 1.4rem;
}

.preview-step {
  margin: 0;
  color: var(--lantern);
  font-size: 0.76rem;
  font-weight: 880;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.preview-card h2 {
  max-width: none;
  margin: 0;
  color: rgba(244, 239, 230, 0.72);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
}

.preview-card p#previewQuestion {
  margin: clamp(18px, 4vw, 38px) 0 10px;
  color: var(--snow);
  font-family:
    Georgia, "Times New Roman", ui-serif, serif;
  font-size: clamp(2.1rem, 6vw, 5.4rem);
  line-height: 0.98;
}

.preview-answers {
  display: grid;
  gap: 12px;
  align-content: start;
}

.preview-answer,
.preview-input,
.preview-written {
  width: 100%;
  border: 1px solid rgba(244, 239, 230, 0.16);
  border-radius: 18px;
  background: rgba(244, 239, 230, 0.07);
  color: var(--snow);
}

.preview-answer {
  min-height: 56px;
  padding: 14px 18px;
  text-align: left;
}

.preview-answer:hover,
.preview-answer.is-selected {
  border-color: rgba(183, 202, 210, 0.52);
  background: rgba(183, 202, 210, 0.16);
  transform: translateY(-1px);
}

.preview-input,
.preview-written {
  padding: 16px 18px;
  outline: 0;
}

.preview-written {
  resize: vertical;
}

.preview-input::placeholder,
.preview-written::placeholder {
  color: rgba(244, 239, 230, 0.46);
}

.preview-rating {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.preview-rating button {
  min-height: 64px;
  border: 1px solid rgba(244, 239, 230, 0.16);
  border-radius: 18px;
  background: rgba(244, 239, 230, 0.07);
  color: var(--snow);
  font-size: 1.25rem;
  font-weight: 900;
}

.preview-rating button:hover,
.preview-rating button.is-selected {
  border-color: rgba(216, 144, 86, 0.64);
  background: rgba(216, 144, 86, 0.18);
  transform: translateY(-2px);
}

.preview-rating-labels {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: rgba(244, 239, 230, 0.62);
  font-size: 0.84rem;
  font-weight: 760;
}

.preview-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-self: end;
  margin-top: auto;
}

.preview-footer .builder-button.quiet {
  color: rgba(244, 239, 230, 0.7);
}

@keyframes builder-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes answer-rise {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes soft-open {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes preview-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .builder-page *,
  .builder-page *::before,
  .builder-page *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Drag handles and rating configuration */
.question-dots {
  min-height: 30px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease,
    gap 180ms ease,
    padding 180ms ease,
    transform 180ms ease;
}

.question-dots:hover,
.question-dots:focus-within {
  gap: 10px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 12px 34px rgba(16, 25, 35, 0.08);
  transform: translateY(-1px);
}

.question-dot {
  position: relative;
  overflow: hidden;
  color: transparent;
  cursor: grab;
  user-select: none;
}

.question-dot::before {
  position: absolute;
  top: 50%;
  left: 8px;
  width: 9px;
  height: 12px;
  content: "";
  opacity: 0;
  transform: translateY(-50%);
  background:
    radial-gradient(circle, rgba(16, 25, 35, 0.42) 1.3px, transparent 1.4px) 0 0 / 4px 4px;
}

.question-dots:hover .question-dot,
.question-dots:focus-within .question-dot {
  width: 42px;
  height: 28px;
  background: rgba(16, 25, 35, 0.08);
  color: rgba(16, 25, 35, 0.66);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 28px;
  text-align: right;
  padding-right: 9px;
}

.question-dots:hover .question-dot::before,
.question-dots:focus-within .question-dot::before {
  opacity: 1;
}

.question-dots:hover .question-dot.is-active,
.question-dots:focus-within .question-dot.is-active {
  background: var(--ink);
  color: var(--snow);
}

.question-dots:hover .question-dot.is-active::before,
.question-dots:focus-within .question-dot.is-active::before {
  background:
    radial-gradient(circle, rgba(244, 239, 230, 0.72) 1.3px, transparent 1.4px) 0 0 / 4px 4px;
}

.question-dot:active,
.question-dot.is-dragging {
  cursor: grabbing;
}

.question-dot.is-dragging {
  opacity: 0.42;
  transform: scale(0.94);
}

.question-dot.is-drop-target {
  background: rgba(216, 144, 86, 0.2) !important;
  box-shadow: inset 0 0 0 2px rgba(216, 144, 86, 0.46);
  transform: translateY(-3px) scale(1.05);
}

.rating-editor {
  display: grid;
  gap: 16px;
  width: min(100%, 620px);
  margin: 0 auto;
}

.rating-count {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(16, 25, 35, 0.58);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rating-count input {
  width: 74px;
  min-height: 42px;
  border: 1px solid rgba(16, 25, 35, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  outline: 0;
  text-align: center;
}

.rating-scale-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(34px, 1fr));
  gap: 8px;
}

.rating-scale-preview span {
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 1px solid rgba(16, 25, 35, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  color: rgba(16, 25, 35, 0.66);
  font-size: 0.92rem;
  font-weight: 900;
}

.rating-label-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.rating-label-grid input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid rgba(16, 25, 35, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink);
  padding: 0 14px;
  font-size: 0.9rem;
  font-weight: 760;
  outline: 0;
  text-align: center;
}

.rating-count input:focus,
.rating-label-grid input:focus {
  border-color: rgba(95, 134, 115, 0.55);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(95, 134, 115, 0.12);
}

.preview-rating {
  grid-template-columns: repeat(var(--rating-count, 5), minmax(42px, 1fr));
}

.preview-rating-labels {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
}

.preview-rating-labels span:nth-child(2) {
  text-align: center;
}

.preview-rating-labels span:last-child {
  text-align: right;
}

@media (max-width: 620px) {
  .rating-label-grid {
    grid-template-columns: 1fr;
  }

  .preview-rating {
    grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
  }

  .response-item dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Full-page response workspace */
.responses-page {
  color-scheme: light;
  min-height: 100svh;
  background: #f2f5f3;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.responses-page::before {
  display: none;
}

.responses-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 14px clamp(16px, 4vw, 44px);
  border-bottom: 1px solid rgba(16, 25, 35, 0.1);
  background: rgba(242, 245, 243, 0.92);
  backdrop-filter: blur(18px);
}

.responses-top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.responses-top-actions a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.responses-shell {
  display: grid;
  gap: clamp(22px, 4vw, 38px);
  padding: clamp(26px, 5vw, 64px);
}

.responses-hero {
  display: grid;
  gap: 18px;
}

.responses-hero h1 {
  margin: 0;
  color: var(--ink);
  font-family:
    Georgia, "Times New Roman", ui-serif, serif;
  font-size: clamp(3rem, 8vw, 7.4rem);
  font-weight: 400;
  line-height: 0.92;
}

.responses-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 980px;
}

.responses-metrics div {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px solid rgba(16, 25, 35, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
}

.responses-metrics span {
  color: var(--ink);
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  font-weight: 900;
}

.responses-metrics strong {
  color: rgba(16, 25, 35, 0.58);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.responses-controls {
  position: sticky;
  top: 72px;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  background: rgba(242, 245, 243, 0.9);
  backdrop-filter: blur(18px);
}

.responses-controls input {
  min-height: 48px;
  min-width: 0;
  border: 1px solid rgba(16, 25, 35, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  padding: 0 18px;
  font: inherit;
  outline: 0;
}

.responses-controls input:focus {
  border-color: rgba(95, 134, 115, 0.55);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(95, 134, 115, 0.12);
}

.view-toggle {
  display: flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(16, 25, 35, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
}

.view-toggle button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(16, 25, 35, 0.62);
  padding: 8px 12px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
}

.view-toggle button.is-active {
  background: var(--ink);
  color: var(--snow);
}

.responses-content {
  min-width: 0;
}

.responses-table-wrap {
  overflow: auto;
  border: 1px solid rgba(16, 25, 35, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 22px 60px rgba(16, 25, 35, 0.07);
}

.responses-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.responses-table th,
.responses-table td {
  max-width: 340px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(16, 25, 35, 0.08);
  color: var(--ink);
  font-size: 0.9rem;
  text-align: left;
  vertical-align: top;
}

.responses-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #e9efec;
  color: rgba(16, 25, 35, 0.68);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.responses-table td {
  white-space: pre-wrap;
}

.answer-result {
  display: inline-flex;
  width: max-content;
  margin-top: 6px;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.answer-result.is-correct {
  background: rgba(95, 134, 115, 0.16);
  color: #355f4c;
}

.answer-result.is-wrong {
  background: rgba(199, 131, 141, 0.16);
  color: #8b3441;
}

.response-card-list,
.question-response-list {
  display: grid;
  gap: 14px;
}

.response-full-card,
.question-response-section,
.responses-empty {
  border: 1px solid rgba(16, 25, 35, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 46px rgba(16, 25, 35, 0.06);
}

.response-full-card details {
  padding: 18px;
}

.response-full-card summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.response-full-card dl,
.question-response-section {
  display: grid;
  gap: 12px;
}

.response-full-card dl {
  margin: 16px 0 0;
}

.response-full-card dl div {
  display: grid;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(16, 25, 35, 0.08);
}

.response-full-card dt,
.question-response-section h2 {
  color: rgba(16, 25, 35, 0.62);
  font-size: 0.86rem;
  font-weight: 850;
}

.response-full-card dd {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 680;
  white-space: pre-wrap;
}

.response-full-card dd .answer-result,
.question-answer-item p .answer-result {
  margin-left: 8px;
  vertical-align: middle;
}

.question-response-section {
  padding: 20px;
}

.question-response-section h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
}

.question-answer-item {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(16, 25, 35, 0.08);
}

.question-answer-item time {
  color: rgba(16, 25, 35, 0.5);
  font-size: 0.8rem;
  font-weight: 760;
}

.question-answer-item p {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  white-space: pre-wrap;
}

.responses-empty {
  padding: clamp(24px, 5vw, 48px);
}

.responses-empty h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 4rem);
}

.responses-empty p {
  margin: 0;
  color: rgba(16, 25, 35, 0.62);
}

@media (max-width: 760px) {
  .responses-topbar,
  .responses-controls {
    position: static;
  }

  .responses-topbar,
  .responses-controls,
  .responses-metrics {
    grid-template-columns: 1fr;
  }

  .responses-topbar {
    display: grid;
  }

  .responses-top-actions,
  .view-toggle {
    justify-content: stretch;
  }

  .responses-top-actions .builder-button,
  .view-toggle button {
    flex: 1;
  }
}

/* Response dashboard refinement */
.responses-page {
  background:
    linear-gradient(90deg, rgba(95, 134, 115, 0.045) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(180deg, #f7f8f4 0%, #edf3f1 46%, #f6f0e8 100%);
}

.responses-topbar {
  min-height: 68px;
  background: rgba(247, 248, 244, 0.88);
}

.responses-top-actions .builder-button {
  border-radius: 8px;
}

.responses-shell {
  width: min(100%, 1540px);
  margin: 0 auto;
  gap: clamp(18px, 3vw, 30px);
  padding-block: clamp(24px, 4vw, 52px);
}

.responses-hero {
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1fr);
  gap: clamp(20px, 5vw, 70px);
  align-items: end;
}

.responses-hero .question-progress {
  grid-column: 1 / -1;
}

.responses-hero h1 {
  max-width: 760px;
  text-wrap: balance;
}

.responses-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: none;
  align-items: stretch;
}

.responses-metrics div {
  min-height: 106px;
  align-content: space-between;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 42px rgba(16, 25, 35, 0.055);
}

.responses-metrics div:nth-child(1) {
  border-top: 4px solid var(--ink);
}

.responses-metrics div:nth-child(2) {
  border-top: 4px solid var(--evergreen);
}

.responses-metrics div:nth-child(3) {
  border-top: 4px solid var(--lantern);
}

.responses-metrics div:nth-child(4) {
  border-top: 4px solid var(--ice-dark);
}

.responses-metrics span {
  overflow-wrap: anywhere;
}

.responses-controls {
  grid-template-columns: minmax(260px, 1fr) max-content;
  margin-top: 4px;
  border-block: 1px solid rgba(16, 25, 35, 0.08);
  background: rgba(247, 248, 244, 0.86);
}

.responses-controls input {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  font-weight: 720;
}

.responses-controls input::placeholder {
  color: rgba(16, 25, 35, 0.46);
}

.view-toggle {
  border-radius: 8px;
  background: rgba(16, 25, 35, 0.055);
}

.view-toggle button {
  border-radius: 6px;
}

.view-toggle button:not(.is-active):hover {
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
}

.responses-table-wrap {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 26px 70px rgba(16, 25, 35, 0.08);
}

.responses-table {
  min-width: 1060px;
}

.responses-table th,
.responses-table td {
  min-width: 210px;
  max-width: 420px;
  padding: 16px 18px;
  line-height: 1.45;
}

.responses-table th:first-child,
.responses-table td:first-child {
  position: sticky;
  left: 0;
  min-width: 220px;
  max-width: 220px;
  background: #fbfcfa;
}

.responses-table th:first-child {
  z-index: 3;
}

.responses-table td:first-child {
  z-index: 2;
  box-shadow: 1px 0 0 rgba(16, 25, 35, 0.08);
}

.responses-table th:nth-child(2),
.responses-table td:nth-child(2) {
  min-width: 112px;
  max-width: 112px;
}

.responses-table tbody tr:hover td {
  background: rgba(95, 134, 115, 0.055);
}

.responses-table tbody tr:hover td:first-child {
  background: #f3f7f3;
}

.responses-table td > span:first-child {
  display: block;
  max-height: 11rem;
  overflow: auto;
  overflow-wrap: anywhere;
}

.responses-table-time {
  color: rgba(16, 25, 35, 0.68);
  font-weight: 760;
}

.score-chip {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 28px;
  border: 1px solid rgba(16, 25, 35, 0.1);
  border-radius: 999px;
  background: rgba(16, 25, 35, 0.06);
  color: rgba(16, 25, 35, 0.7);
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 950;
}

.score-chip.is-strong {
  border-color: rgba(95, 134, 115, 0.26);
  background: rgba(95, 134, 115, 0.14);
  color: #315846;
}

.score-chip.is-low {
  border-color: rgba(199, 131, 141, 0.28);
  background: rgba(199, 131, 141, 0.14);
  color: #7f2d3a;
}

.answer-result {
  min-height: 24px;
  align-items: center;
}

.response-card-list,
.question-response-list {
  gap: 12px;
}

.response-full-card,
.question-response-section,
.responses-empty {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
}

.response-full-card {
  overflow: hidden;
}

.response-full-card details {
  padding: 0;
}

.response-full-card summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  list-style: none;
}

.response-full-card summary::-webkit-details-marker {
  display: none;
}

.response-full-card summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(16, 25, 35, 0.12);
  border-radius: 999px;
  color: rgba(16, 25, 35, 0.68);
  font-size: 1rem;
  line-height: 1;
}

.response-full-card details[open] summary::after {
  content: "-";
}

.response-full-card summary time {
  color: rgba(16, 25, 35, 0.52);
  font-size: 0.82rem;
  font-weight: 760;
}

.response-full-card dl {
  gap: 0;
  margin: 0;
  padding: 0 20px 20px;
}

.response-full-card dl div {
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
  gap: 18px;
  padding: 14px 0;
}

.response-full-card dt {
  overflow-wrap: anywhere;
}

.response-full-card dd,
.question-answer-item p {
  max-height: 16rem;
  overflow: auto;
  overflow-wrap: anywhere;
}

.question-response-section {
  padding: clamp(18px, 3vw, 28px);
}

.question-response-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  margin-bottom: 6px;
}

.question-response-heading h2 {
  margin: 0;
}

.question-response-heading p {
  margin: 4px 0 0;
  color: rgba(16, 25, 35, 0.55);
  font-size: 0.82rem;
  font-weight: 850;
  white-space: nowrap;
}

.question-answer-item {
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
}

.question-answer-item time {
  padding-top: 2px;
}

@media (max-width: 1120px) {
  .responses-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .responses-shell {
    padding-inline: 16px;
  }

  .responses-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .responses-controls {
    grid-template-columns: 1fr;
  }

  .response-full-card summary,
  .question-response-heading,
  .question-answer-item,
  .response-full-card dl div {
    grid-template-columns: 1fr;
  }

  .response-full-card summary {
    gap: 8px;
  }

  .question-response-heading p {
    white-space: normal;
  }
}

@media (max-width: 520px) {
  .responses-metrics {
    grid-template-columns: 1fr;
  }
}

/* Refined respondent experience */
.respond-page {
  color-scheme: dark;
  min-height: 100svh;
  overflow-x: hidden;
  background:
    linear-gradient(160deg, #0b1319 0%, #17252a 48%, #243235 100%);
  color: var(--snow);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.respond-page::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: block;
  content: "";
  background:
    linear-gradient(90deg, rgba(244, 239, 230, 0.04) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(180deg, rgba(244, 239, 230, 0.035) 1px, transparent 1px) 0 0 / 64px 64px,
    radial-gradient(circle at 74% 24%, rgba(216, 144, 86, 0.12), transparent 28rem),
    radial-gradient(circle at 18% 76%, rgba(95, 134, 115, 0.16), transparent 30rem);
}

.respond-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 4vw, 52px);
  color: var(--snow);
}

.respond-wordmark {
  color: var(--snow);
}

.respond-topbar > span {
  color: rgba(244, 239, 230, 0.68);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.respond-shell {
  display: grid;
  min-height: 100svh;
  padding: clamp(88px, 12vw, 132px) clamp(18px, 6vw, 84px) clamp(34px, 7vw, 84px);
}

.respond-stage {
  display: grid;
  align-content: center;
  gap: clamp(20px, 4vw, 36px);
  width: min(100%, 980px);
  min-height: calc(100svh - 180px);
  margin: 0 auto;
  animation: respondent-rise 420ms ease both;
}

.respond-progress {
  width: min(100%, 620px);
  height: 6px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(244, 239, 230, 0.1);
}

.respond-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, var(--evergreen), var(--lantern));
  transition: width 360ms ease;
}

.respond-meta {
  display: grid;
  gap: 8px;
  text-align: center;
}

.respond-meta p {
  margin: 0;
  color: var(--lantern);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.respond-meta h1 {
  margin: 0;
  color: rgba(244, 239, 230, 0.7);
  font-size: clamp(0.94rem, 1.5vw, 1.08rem);
  font-weight: 850;
  line-height: 1.2;
}

.respond-question {
  max-width: 980px;
  margin: 0 auto;
  color: var(--snow);
  font-family:
    Georgia, "Times New Roman", ui-serif, serif;
  font-size: clamp(2.8rem, 8vw, 7.6rem);
  line-height: 0.94;
  text-align: center;
  text-wrap: balance;
}

#respondForm {
  display: grid;
  gap: clamp(18px, 4vw, 34px);
}

#respondForm[hidden],
.receipt-form[hidden] {
  display: none;
}

.respond-answers {
  display: grid;
  gap: 12px;
  width: min(100%, 720px);
  margin: 0 auto;
}

.respond-answer {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 64px;
  border: 1px solid rgba(244, 239, 230, 0.14);
  border-radius: 18px;
  background: rgba(244, 239, 230, 0.065);
  color: var(--snow);
  padding: 12px 18px 12px 12px;
  font: inherit;
  font-size: clamp(1rem, 1.8vw, 1.16rem);
  font-weight: 780;
  text-align: left;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.respond-answer-marker {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(244, 239, 230, 0.08);
  color: rgba(244, 239, 230, 0.62);
  font-size: 0.78rem;
  font-weight: 950;
}

.respond-answer:hover,
.respond-answer.is-selected {
  border-color: rgba(183, 202, 210, 0.52);
  background: rgba(183, 202, 210, 0.14);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.16);
  transform: translateY(-2px);
}

.respond-answer.is-selected .respond-answer-marker {
  background: var(--snow);
  color: var(--ink);
}

.respond-answer.is-correct {
  border-color: rgba(95, 134, 115, 0.7);
  background: rgba(95, 134, 115, 0.18);
}

.respond-answer.is-wrong {
  border-color: rgba(199, 131, 141, 0.7);
  background: rgba(199, 131, 141, 0.14);
}

.respond-feedback {
  width: min(100%, 720px);
  margin: -4px auto 0;
  color: rgba(244, 239, 230, 0.72);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.respond-feedback.is-correct {
  color: var(--evergreen);
}

.respond-feedback.is-wrong {
  color: var(--cranberry);
}

.respond-input,
.respond-written {
  width: min(100%, 720px);
  margin: 0 auto;
  border: 1px solid rgba(244, 239, 230, 0.16);
  border-radius: 22px;
  background: rgba(244, 239, 230, 0.075);
  color: var(--snow);
  padding: 18px 20px;
  font: inherit;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  outline: 0;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.respond-input {
  min-height: 62px;
  text-align: center;
}

.respond-written {
  min-height: 220px;
  resize: vertical;
  line-height: 1.55;
}

.respond-input:focus,
.respond-written:focus {
  border-color: rgba(216, 144, 86, 0.64);
  background: rgba(244, 239, 230, 0.105);
  box-shadow: 0 0 0 4px rgba(216, 144, 86, 0.14);
}

.respond-input::placeholder,
.respond-written::placeholder {
  color: rgba(244, 239, 230, 0.42);
}

.respond-rating {
  display: grid;
  grid-template-columns: repeat(var(--rating-count, 5), minmax(46px, 1fr));
  gap: 10px;
  width: min(100%, 780px);
  margin: 0 auto;
}

.respond-rating button {
  min-height: 72px;
  border: 1px solid rgba(244, 239, 230, 0.14);
  border-radius: 18px;
  background: rgba(244, 239, 230, 0.065);
  color: var(--snow);
  font: inherit;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 950;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.respond-rating button:hover,
.respond-rating button.is-selected {
  border-color: rgba(216, 144, 86, 0.64);
  background: rgba(216, 144, 86, 0.18);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}

.respond-rating-labels {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  width: min(100%, 780px);
  margin: -2px auto 0;
  color: rgba(244, 239, 230, 0.62);
  font-size: 0.84rem;
  font-weight: 760;
}

.respond-rating-labels span:nth-child(2) {
  text-align: center;
}

.respond-rating-labels span:last-child {
  text-align: right;
}

.respond-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  width: min(100%, 720px);
  margin: 0 auto;
}

.respond-footer .builder-button.quiet {
  justify-self: start;
  color: rgba(244, 239, 230, 0.68);
}

.respond-footer .builder-button.primary {
  justify-self: end;
  background: var(--snow);
  color: var(--ink);
}

.respond-footer .builder-button.primary:hover {
  box-shadow: 0 14px 38px rgba(244, 239, 230, 0.2);
}

.respond-stage.is-complete {
  align-content: center;
}

.respond-stage.is-complete .respond-question {
  color: var(--ice);
}

.respond-stage.is-unavailable .respond-question {
  color: var(--cranberry);
}

.receipt-form {
  display: grid;
  gap: 14px;
  width: min(100%, 620px);
  margin: 0 auto;
  padding: 18px;
  border: 1px solid rgba(244, 239, 230, 0.14);
  border-radius: 22px;
  background: rgba(244, 239, 230, 0.06);
}

.result-summary {
  display: grid;
  gap: 12px;
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 18px;
  border: 1px solid rgba(244, 239, 230, 0.14);
  border-radius: 22px;
  background: rgba(244, 239, 230, 0.06);
}

.result-summary[hidden] {
  display: none;
}

.result-summary h2 {
  margin: 0;
  color: var(--snow);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.15rem, 2.3vw, 1.65rem);
  font-weight: 900;
}

.result-summary ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.result-summary li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid rgba(244, 239, 230, 0.1);
  color: rgba(244, 239, 230, 0.78);
}

.result-summary strong {
  color: var(--snow);
}

.result-summary li.is-correct strong {
  color: var(--evergreen);
}

.result-summary li.is-wrong strong {
  color: var(--cranberry);
}

.receipt-form p {
  margin: 0;
  color: rgba(244, 239, 230, 0.72);
  font-size: 0.96rem;
  font-weight: 760;
  text-align: center;
}

.receipt-form div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.receipt-form input {
  min-width: 0;
  min-height: 46px;
  border: 1px solid rgba(244, 239, 230, 0.16);
  border-radius: 999px;
  background: rgba(244, 239, 230, 0.08);
  color: var(--snow);
  padding: 0 16px;
  font: inherit;
  outline: 0;
}

.receipt-form input:focus {
  border-color: rgba(216, 144, 86, 0.64);
  box-shadow: 0 0 0 4px rgba(216, 144, 86, 0.14);
}

@keyframes respondent-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .respond-topbar {
    position: absolute;
  }

  .respond-shell {
    padding-top: 92px;
  }

  .respond-stage {
    min-height: calc(100svh - 126px);
  }

  .respond-question,
  .respond-meta {
    text-align: left;
  }

  .respond-rating {
    grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
  }

  .respond-rating-labels {
    grid-template-columns: 1fr;
  }

  .respond-rating-labels span,
  .respond-rating-labels span:nth-child(2),
  .respond-rating-labels span:last-child {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .respond-answer {
    grid-template-columns: 36px minmax(0, 1fr);
    min-height: 58px;
    padding: 10px 14px 10px 10px;
  }

  .respond-answer-marker {
    width: 36px;
    height: 36px;
  }

  .respond-footer {
    grid-template-columns: 1fr 1fr;
  }

  .respond-footer .builder-button {
    width: 100%;
  }

  .receipt-form div {
    grid-template-columns: 1fr;
  }
}
