@font-face {
  font-family: "Raleway";
  src: url("/public/assets/fonts/Raleway-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Raleway";
  src: url("/public/assets/fonts/Raleway-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Raleway";
  src: url("/public/assets/fonts/Raleway-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: "Raleway", "Segoe UI", sans-serif;
  line-height: 1.5;
  --ink: #103333;
  --muted: #4d7b78;
  --cream: #e6f3f2;
  --bone: #f0f7f7;
  --accent: #5fb7b3;
  --accent-dark: #2f6e6b;
  --border: #bfdad8;
  --shadow: 0 24px 60px rgba(16, 51, 51, 0.12);
  --paper: #f7fcfc;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: #0b1224;
  color: var(--ink);
  overflow-y: auto;
}

body.preview-only::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='200' viewBox='0 0 280 200'%3E%3Ctext x='0' y='60' fill='%23000' fill-opacity='0.25' font-size='36' font-family='Arial' transform='rotate(-20 0 60)'%3EPREVIEW%3C/text%3E%3C/svg%3E");
  background-repeat: repeat;
  mix-blend-mode: multiply;
}

a {
  color: inherit;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
  justify-content: center;
}

.hero {
  display: flex;
  justify-content: center;
  width: min(1056px, 100%);
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  background: #ffffff;
  border: 1px solid rgba(47, 110, 107, 0.2);
  border-radius: 24px;
  padding: clamp(1.2rem, 3vw, 2rem);
  box-shadow: 0 18px 40px rgba(16, 51, 51, 0.12);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  align-items: center;
  text-align: center;
}

.brand__logo img {
  width: 160vw;
  height: auto;
  display: block;
  margin: 0 auto;
}

.brand__logo--hero img {
  width: clamp(120px, 18vw, 190px);
  margin-bottom: -0.2rem;
}

.brand__powered {
  color: var(--muted);
}

.hero__content h1,
.hero__title {
  font-size: clamp(2.2rem, 2vw + 1.9rem, 3.4rem);
  margin: 0;
  letter-spacing: -0.02em;
  text-align: center;
}

.hero__title span {
  display: block;
}

.hero__tone {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  text-align: center;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.hero__tags span {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(47, 110, 107, 0.2);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
}

.form-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
  width: min(1100px, 100%);
  justify-items: center;
  align-content: center;
}

.form-card,
.value-card,
.preview-panel {
  background: var(--bone);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: var(--shadow);
  width: 100%;
}

.form-card__header {
  display: flex;
  justify-content: center;
  text-align: center;
  margin-bottom: 1.2rem;
}

.form-card__headline h2 {
  margin: 0 0 0.3rem;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
}

.form-card__headline p {
  margin: 0;
  color: var(--muted);
}

.pageflow-strip {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  border: 1px solid rgba(47, 110, 107, 0.2);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.story-progress {
  font-size: 1.05rem;
  font-weight: 600;
}

.story-strap {
  margin: 0.3rem 0 0.75rem;
  color: var(--muted);
}

.occasion-progress {
  position: relative;
  height: 48px;
  margin-top: 0.5rem;
}

.occasion-progress--bottom {
  margin-top: 1.25rem;
}

.occasion-progress__track {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 50%;
  height: 4px;
  border-radius: 999px;
  background: var(--track-color, rgba(47, 110, 107, 0.18));
  transform: translateY(-50%);
}

.occasion-progress__icon {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 6px 10px rgba(16, 51, 51, 0.18));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.occasion-progress__walker {
  left: 18px;
  transition: left 0.35s ease;
  background-image: url("/public/assets/Bride_Icon%202.png");
}

.occasion-progress__end,
.occasion-progress__finale {
  right: 18px;
  left: auto;
  transform: translate(50%, -50%);
}
.occasion-progress__end {
  background-image: url("/public/assets/Groom%20Icon.png");
}
.occasion-progress__finale {
  background-image: url("/public/assets/Bride_Icon%202.png");
}

#survey-form {
  display: grid;
  gap: 1.2rem;
  perspective: 1000px;
  width: 100%;
  justify-items: center;
}

.question-card {
  width: 100%;
  max-width: 560px;
  transform-style: preserve-3d;
  animation: questionFlip 0.55s ease;
  position: relative;
  padding-bottom: 1.1rem;
}

.question-card .form-field {
  backface-visibility: hidden;
}

.question-progress {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.4rem;
  height: 6px;
  border-radius: 999px;
  background: rgba(47, 110, 107, 0.12);
  overflow: hidden;
}

.question-progress__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(120deg, var(--accent), #8fd1cd);
  transition: width 0.4s ease;
}

@keyframes questionFlip {
  0% {
    opacity: 0;
    transform: rotateY(80deg) translateZ(30px);
  }
  100% {
    opacity: 1;
    transform: rotateY(0deg) translateZ(0);
  }
}

.form-field {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  border: 1px solid rgba(47, 110, 107, 0.12);
  padding: 0.9rem 1rem 1rem;
  text-align: left;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  border-radius: 14px;
  border: 1px solid rgba(47, 110, 107, 0.2);
  background: #fff;
  color: inherit;
}

.form-field input[type="color"] {
  padding: 0.4rem;
  height: 3.1rem;
  cursor: pointer;
}

.form-field--group {
  padding: 1rem;
}

.form-field-group {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.form-field__item {
  margin: 0;
  background: rgba(255, 255, 255, 0.85);
}

.game-picker {
  display: grid;
  gap: 0.75rem;
}

.game-picker__helper {
  margin: 0;
  color: rgba(47, 110, 107, 0.72);
  font-size: 0.95rem;
}

.game-picker__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.85rem;
}

.game-card {
  position: relative;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(47, 110, 107, 0.18);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.92),
    rgba(255, 255, 255, 0.7)
  );
  text-align: left;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
  min-height: 170px;
}

.game-card.is-active {
  border-color: var(--accent);
  box-shadow: 0 14px 30px rgba(47, 110, 107, 0.15);
  transform: translateY(-2px);
}

.game-card.is-locked {
  cursor: default;
}

.game-card__icon {
  font-size: 1.9rem;
}

.game-card__title {
  font-weight: 700;
  margin-top: 0.3rem;
}

.game-card__desc {
  margin: 0.35rem 0 0;
  color: rgba(16, 51, 51, 0.78);
  font-size: 0.95rem;
}

.game-card__badge {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 0.8rem;
  background: rgba(47, 110, 107, 0.08);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  color: var(--accent-dark);
}

.game-card__check {
  position: absolute;
  bottom: 10px;
  right: 12px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(47, 110, 107, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--accent-dark);
  font-weight: 700;
}

.game-card.is-active .game-card__check {
  background: var(--accent-dark);
  color: #fff;
  border-color: var(--accent-dark);
}

.selfie-challenges {
  display: grid;
  gap: 0.75rem;
}

.selfie-challenges__helper {
  margin: 0;
  color: rgba(47, 110, 107, 0.75);
  font-size: 0.95rem;
}

.selfie-challenges__list {
  display: grid;
  gap: 0.6rem;
}

.selfie-challenges__row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto auto;
  gap: 0.6rem;
  align-items: center;
}

.selfie-challenges__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  white-space: nowrap;
}

.selfie-challenges__toggle input {
  width: auto;
  margin: 0;
}

.selfie-challenges__remove {
  border-radius: 12px;
  border: 1px solid rgba(47, 110, 107, 0.2);
  background: transparent;
  padding: 0.5rem 0.75rem;
  font: inherit;
  cursor: pointer;
}

.selfie-challenges__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.selfie-challenges__empty {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(47, 110, 107, 0.7);
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.radio-group--cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
}

.radio-option {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.6rem;
  font-weight: 600;
  padding: 0.85rem 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(47, 110, 107, 0.2);
  background: #ffffff;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
  position: relative;
}

.radio-option.is-active {
  border-color: rgba(47, 110, 107, 0.65);
  background: rgba(95, 183, 179, 0.18);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(47, 110, 107, 0.18);
}

.radio-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.icon-picker {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.45rem;
}

.icon-picker__display {
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(47, 110, 107, 0.2);
  background: rgba(255, 255, 255, 0.95);
}

.icon-picker__display-label {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(77, 123, 120, 0.9);
}

.icon-picker__display-value {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.icon-picker__trigger {
  border-radius: 14px;
  padding: 0.6rem 0.85rem;
  border: 1px solid rgba(47, 110, 107, 0.25);
  background: rgba(255, 255, 255, 0.95);
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}

.icon-picker__trigger:focus-visible {
  outline: 2px solid rgba(47, 110, 107, 0.7);
  outline-offset: 2px;
}

.icon-picker__button {
  border-radius: 14px;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(47, 110, 107, 0.25);
  background: rgba(255, 255, 255, 0.9);
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  min-width: 68px;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}

.icon-picker__button.is-active {
  border-color: rgba(47, 110, 107, 0.65);
  background: rgba(95, 183, 179, 0.18);
  transform: translateY(-1px);
}

.icon-picker__button:focus-visible {
  outline: 2px solid rgba(47, 110, 107, 0.7);
  outline-offset: 2px;
}

.icon-picker__emoji {
  font-size: 1.8rem;
  line-height: 1;
}

.icon-picker__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(77, 123, 120, 0.9);
}

.icon-modal__option .icon-picker__label {
  display: none;
}

.icon-modal {
  position: fixed;
  inset: 0;
  background: rgba(16, 51, 51, 0.25);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 20;
}

.icon-modal.is-open {
  display: flex;
}

.icon-modal__panel {
  width: min(90vw, 560px);
  max-height: 80vh;
  background: var(--bone);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 1.25rem;
  overflow: auto;
}

.icon-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.icon-modal__header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.icon-modal__close {
  border: 1px solid rgba(47, 110, 107, 0.35);
  background: transparent;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font: inherit;
  color: var(--accent-dark);
  cursor: pointer;
}

.icon-modal__grid {
  display: grid;
  gap: 1rem;
}

.icon-modal__section h4 {
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-align: left;
}

.icon-modal__section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 0.5rem;
}

.icon-modal__option {
  border-radius: 14px;
  padding: 0.55rem 0.75rem;
  border: none;
  background: transparent;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}

.icon-modal__option.is-active {
  background: rgba(95, 183, 179, 0.2);
  transform: translateY(-1px);
}

.helper-text {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.pairing-examples {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.file-meta {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--accent-dark);
}

.file-thumb {
  margin-top: 0.6rem;
  width: 120px;
  height: 120px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 16px;
  border: 1px solid rgba(47, 110, 107, 0.2);
  background: rgba(255, 255, 255, 0.7);
  overflow: hidden;
  cursor: pointer;
}

.file-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.file-thumb img.is-empty {
  background: linear-gradient(
    135deg,
    rgba(95, 183, 179, 0.2),
    rgba(255, 255, 255, 0.85)
  );
}

.cropper-modal {
  position: fixed;
  inset: 0;
  background: rgba(16, 51, 51, 0.28);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 30;
}

.cropper-modal.is-open {
  display: flex;
}

.cropper-modal__panel {
  width: min(92vw, 440px);
  background: var(--bone);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 1.25rem;
  display: grid;
  gap: 1rem;
}

.cropper-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cropper-modal__header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.cropper-modal__close {
  border: 1px solid rgba(47, 110, 107, 0.35);
  background: transparent;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font: inherit;
  color: var(--accent-dark);
  cursor: pointer;
}

.cropper-modal__viewport {
  width: 320px;
  height: 320px;
  border-radius: 18px;
  border: 1px solid rgba(47, 110, 107, 0.2);
  background: rgba(255, 255, 255, 0.95);
  overflow: hidden;
  margin: 0 auto;
  position: relative;
}

.cropper-modal__viewport img {
  position: absolute;
  top: 0;
  left: 0;
  user-select: none;
  pointer-events: none;
}

.cropper-modal__box {
  position: absolute;
  border: 2px solid rgba(47, 110, 107, 0.8);
  box-shadow: 0 0 0 999px rgba(16, 51, 51, 0.2);
  border-radius: 12px;
  cursor: grab;
  touch-action: none;
}

.cropper-modal__box:active {
  cursor: grabbing;
}

.cropper-modal__handle {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #fff;
  border: 2px solid rgba(47, 110, 107, 0.9);
  border-radius: 50%;
  touch-action: none;
}

.cropper-modal__handle[data-handle="nw"] {
  top: -8px;
  left: -8px;
  cursor: nwse-resize;
}

.cropper-modal__handle[data-handle="ne"] {
  top: -8px;
  right: -8px;
  cursor: nesw-resize;
}

.cropper-modal__handle[data-handle="sw"] {
  bottom: -8px;
  left: -8px;
  cursor: nesw-resize;
}

.cropper-modal__handle[data-handle="se"] {
  bottom: -8px;
  right: -8px;
  cursor: nwse-resize;
}

.cropper-modal__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

@media (max-width: 480px) {
  .cropper-modal__viewport {
    width: 260px;
    height: 260px;
  }
}

.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.75rem;
  gap: 1rem;
  width: 100%;
}

.nav-row button {
  font: inherit;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.primary {
  background: linear-gradient(120deg, var(--accent), #8fd1cd);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(47, 110, 107, 0.25);
}

.primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.ghost {
  background: linear-gradient(
    120deg,
    rgba(95, 183, 179, 0.18),
    rgba(143, 209, 205, 0.12)
  );
  border-color: rgba(47, 110, 107, 0.4);
  color: var(--accent-dark);
  box-shadow: 0 10px 20px rgba(47, 110, 107, 0.12);
}

.autosave-indicator {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

.draft-actions {
  display: flex;
  justify-content: center;
  margin: 0 0 1rem;
}

.error-banner {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(95, 183, 179, 0.12);
  border: 1px solid rgba(47, 110, 107, 0.35);
  color: var(--accent-dark);
  text-align: center;
}

.preview-panel {
  background: var(--cream);
  text-align: center;
}

.preview-inset {
  border-radius: 22px;
  padding: 1.5rem;
  border: 1px solid rgba(47, 110, 107, 0.12);
  background: rgba(255, 255, 255, 0.7);
}

.preview-kicker {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.7rem;
  color: var(--muted);
}

.preview-body {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
}

.preview-card {
  border-radius: 18px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(47, 110, 107, 0.12);
  text-align: left;
}

.preview-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
}

.preview-card p {
  margin: 0.3rem 0;
}

.preview-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-preview {
  width: 100%;
  height: 220px;
  border-radius: 22px;
  background: radial-gradient(
    circle at top,
    rgba(95, 183, 179, 0.2),
    rgba(247, 252, 252, 0.95)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.hero-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-icons {
  margin-top: 0.4rem;
  display: flex;
  gap: 0.45rem;
}

.hero-icons span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(47, 110, 107, 0.25);
  background: rgba(255, 255, 255, 0.7);
  font-size: 1.25rem;
}

.preview-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(47, 110, 107, 0.2);
}

.review-panel {
  margin-top: 2rem;
  position: relative;
  padding-bottom: 1.1rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.preview-link-row {
  margin: 1.25rem 0 1.5rem;
  display: grid;
  gap: 0.35rem;
}

.preview-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.65rem 1.2rem;
  border: 1px solid rgba(47, 110, 107, 0.35);
  background: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  color: var(--accent-dark);
  font-weight: 600;
}

.preview-link.is-disabled {
  opacity: 0.6;
  pointer-events: none;
}

.preview-link__hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.review-grid {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

.review-card {
  border: 1px solid rgba(47, 110, 107, 0.2);
  border-radius: 18px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.75);
  text-align: left;
}

.review-card h4 {
  margin: 0 0 0.4rem;
}

.review-card p {
  margin: 0.2rem 0;
  color: var(--muted);
}

.primary.wide {
  width: 100%;
  justify-content: center;
}

body.preview-only .hero,
body.preview-only .survey-shell {
  display: none;
}

body.preview-only .form-shell {
  grid-template-columns: 1fr;
}

body.preview-only .preview-panel {
  min-height: auto;
}

body.preview-only .page {
  padding-top: 2.5rem;
  gap: 0;
  align-items: center;
}

@media (prefers-reduced-motion: reduce) {
  .question-card {
    animation: none;
  }
}

@media (max-width: 980px) {
  .form-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 1.75rem 1.15rem 2.75rem;
    gap: 1.75rem;
  }

  .hero__content {
    text-align: left;
    align-items: flex-start;
  }

  .brand {
    align-self: center;
    text-align: center;
  }

  .hero__tags {
    justify-content: flex-start;
  }

  .hero__tags span {
    font-size: 0.8rem;
  }

  .nav-row {
    flex-direction: row;
  }

  .nav-row button {
    width: auto;
    flex: 1;
  }

  .pageflow-strip {
    padding: 0.9rem 1rem;
  }

  .selfie-challenges__row {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .selfie-challenges__toggle {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .hero__content h1 {
    font-size: 2rem;
  }

  .form-field {
    padding: 0.8rem 0.85rem 0.9rem;
  }
}

.multi-input {
  display: grid;
  gap: 0.65rem;
}

.multi-input__list {
  display: grid;
  gap: 0.5rem;
}

.multi-input__row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.multi-input__row input {
  flex: 1;
}

.multi-input__add,
.multi-input__remove {
  border: 1px solid rgba(47, 110, 107, 0.35);
  background: rgba(255, 255, 255, 0.7);
  color: var(--accent-dark);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.multi-input__remove {
  background: rgba(95, 183, 179, 0.12);
}
