:root {
  --ink: #2f2632;
  --muted: #766c79;
  --plum: #53305f;
  --plum-dark: #34213d;
  --rose: #d6507d;
  --rose-deep: #bd3f6b;
  --rose-soft: #fbecf1;
  --lavender: #eee8ff;
  --lavender-deep: #8d6ed8;
  --cream: #fffaf4;
  --gold: #caa06a;
  --line: #e9e2e8;
  --white: #ffffff;
  --danger: #b23559;
  --success: #4d7c63;
  --shadow: 0 22px 70px rgba(79, 44, 84, 0.13);
  --shadow-soft: 0 10px 35px rgba(79, 44, 84, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  scrollbar-width: none;
}

body {
  margin: 0;
  width: 100%;
  height: 100svh;
  height: 100dvh;
  min-width: 320px;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: hidden;
  scrollbar-width: none;
  color: var(--ink);
  font-family: var(--sans);
  background:
    radial-gradient(circle at 8% 8%, rgba(243, 206, 219, 0.34), transparent 24rem),
    radial-gradient(circle at 93% 18%, rgba(221, 209, 255, 0.42), transparent 25rem),
    linear-gradient(145deg, #fffdfb 0%, #fbf8ff 52%, #fff9f4 100%);
}


html::-webkit-scrollbar,
body::-webkit-scrollbar,
.cover-card__content::-webkit-scrollbar,
.form-card::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.cover-card__content,
.form-card {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.66; }
img { display: block; max-width: 100%; height: auto; }

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.moment-card:focus-visible,
.radio-card:focus-visible {
  outline: 3px solid rgba(141, 110, 216, 0.34);
  outline-offset: 3px;
}

[hidden] { display: none !important; }

.page-glow {
  position: fixed;
  pointer-events: none;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.35;
}
.page-glow--one { top: 15%; left: -220px; background: #f6d9e4; }
.page-glow--two { right: -250px; bottom: 8%; background: #ddd4ff; }

.app-shell {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

.paper-card {
  border: 1px solid rgba(113, 75, 116, 0.12);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.cover-screen {
  height: 100svh;
  height: 100dvh;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 12px 0;
  overflow: hidden;
}

.cover-card {
  position: relative;
  width: min(980px, 100%);
  height: min(920px, calc(100svh - 24px));
  height: min(920px, calc(100dvh - 24px));
  max-height: calc(100svh - 24px);
  max-height: calc(100dvh - 24px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cover-card__content {
  position: relative;
  overflow: hidden;
  min-height: 0;
  padding: clamp(20px, 4.4vh, 50px) clamp(26px, 7vw, 84px) clamp(18px, 3.6vh, 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overscroll-behavior: contain;
}

.cover-card__content::before,
.cover-card__content::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  border-radius: 46% 54% 61% 39%;
  opacity: 0.45;
  pointer-events: none;
  filter: blur(1px);
}
.cover-card__content::before {
  left: -95px;
  top: -90px;
  background: radial-gradient(circle at 65% 70%, rgba(235, 166, 190, 0.46), transparent 40%), radial-gradient(circle at 40% 45%, rgba(217, 201, 247, 0.52), transparent 43%);
}
.cover-card__content::after {
  right: -105px;
  bottom: -110px;
  background: radial-gradient(circle at 40% 35%, rgba(231, 183, 198, 0.4), transparent 42%), radial-gradient(circle at 58% 55%, rgba(244, 224, 188, 0.55), transparent 46%);
}

.sparkles {
  position: absolute;
  color: #dcb67d;
  font-size: 1.3rem;
  letter-spacing: 0.42rem;
  opacity: 0.8;
}
.sparkles--left { top: 20%; left: 12%; transform: rotate(-12deg); }
.sparkles--right { top: 18%; right: 11%; transform: rotate(10deg); }

.crown-art {
  width: clamp(145px, 21vh, 220px);
  height: auto;
  margin-bottom: 2px;
  object-fit: contain;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cover-title {
  margin: 0;
  line-height: 0.96;
  font-family: var(--serif);
  font-weight: 400;
}
.cover-title span {
  display: block;
  color: #6b523f;
  font-size: clamp(2.25rem, 5vw, 4.7rem);
}
.cover-title strong {
  display: block;
  margin-top: 10px;
  color: #dd7f9f;
  font-size: clamp(3rem, 7vw, 6.4rem);
  font-weight: 400;
  letter-spacing: 0.03em;
}

.pink-heart { margin: clamp(7px, 1.5vh, 14px) 0 clamp(5px, 1vh, 9px); color: #e28dac; font-size: clamp(1.3rem, 2.5vh, 1.7rem); }
.cover-subtitle { margin: 0; font-size: clamp(1rem, 2vw, 1.25rem); }
.cover-copy { max-width: 580px; margin: 11px 0 0; color: var(--muted); line-height: 1.7; }

.notice-card {
  width: min(100%, 520px);
  display: flex;
  gap: 14px;
  margin: clamp(14px, 2.6vh, 24px) 0 clamp(14px, 2.3vh, 22px);
  padding: clamp(13px, 2vh, 18px) 20px;
  border: 1px solid #efced8;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #fff8fa, #fdf1f5);
  text-align: left;
}
.notice-card strong { color: var(--plum); }
.notice-card p { margin: 5px 0 0; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.notice-icon { color: var(--rose); font-weight: 800; }

.primary-btn,
.secondary-btn,
.ghost-btn,
.icon-btn {
  border: 0;
  border-radius: 11px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.primary-btn {
  min-height: 48px;
  padding: 0 22px;
  color: #fff;
  background: linear-gradient(135deg, #df628d 0%, #c93f72 100%);
  box-shadow: 0 8px 24px rgba(201, 63, 114, 0.24);
}
.primary-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(201, 63, 114, 0.31); }
.primary-btn--large { min-width: 180px; min-height: 54px; font-size: 1rem; }

.secondary-btn {
  min-height: 46px;
  padding: 0 18px;
  color: var(--plum);
  background: #f1ecff;
}
.secondary-btn:hover:not(:disabled) { background: #e8e0ff; transform: translateY(-1px); }

.ghost-btn {
  min-height: 40px;
  padding: 0 14px;
  color: var(--rose-deep);
  background: #fff;
  border: 1px solid #efc5d4;
}
.ghost-btn:hover { background: #fff7fa; }

.icon-btn {
  width: 38px;
  height: 38px;
  color: var(--plum);
  background: #f6f2fb;
  border: 1px solid #e9e0ef;
}
.icon-btn:hover { background: #eee7f5; }

.cover-brandbar {
  min-height: 0;
  padding: clamp(8px, 1.35vh, 12px) clamp(18px, 4vw, 38px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3.6vw, 42px);
  color: #fff;
  background:
    radial-gradient(circle at 84% 20%, rgba(220, 126, 160, 0.2), transparent 16rem),
    linear-gradient(135deg, #2d1d35 0%, #51305d 56%, #6b3a59 100%);
}
.brand-logo {
  flex: 0 0 auto;
  width: auto;
  height: clamp(52px, 7.4vh, 70px);
  max-width: min(18vw, 82px);
  object-fit: contain;
  filter: drop-shadow(0 9px 16px rgba(0,0,0,.18));
}
.cover-brandbar__copy {
  min-width: 0;
  flex: 0 1 430px;
  display: grid;
  justify-items: center;
}
.social-strip {
  width: min(100%, 400px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 11px rgba(0,0,0,.18));
}

.form-screen { height: 100svh; height: 100dvh; min-height: 100svh; min-height: 100dvh; display: grid; place-items: center; padding: 12px 0; overflow: hidden; }
.form-wrap { width: min(900px, 100%); height: 100%; min-height: 0; display: flex; flex-direction: column; }
.form-header {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex: 0 0 auto;
}
.mini-brand {
  width: 44px;
  height: 44px;
  padding: 8px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, #37203f, #69416f);
  box-shadow: var(--shadow-soft);
}
.mini-brand img { width: 100%; height: 100%; object-fit: contain; }
.progress-block { min-width: 0; }
.progress-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.step-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  color: #664c95;
  background: #eee8ff;
  font-size: 0.78rem;
  font-weight: 800;
}
.progress-percent { color: #8b7f8f; font-size: 0.76rem; font-weight: 700; }
.progress-track { height: 4px; overflow: hidden; border-radius: 99px; background: #e8e3eb; }
.progress-fill { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #9d79e6, #cf5a86); transition: width 260ms ease; }

.form-card {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 24px;
  padding: clamp(22px, 4vw, 42px);
}
.step-panel { animation: stepIn 260ms ease both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.section-kicker { margin: 0 0 8px; color: var(--rose-deep); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--plum);
  font-family: var(--serif);
  font-size: clamp(1.65rem, 4vw, 2.25rem);
}
.section-intro { margin: 10px 0 26px; color: var(--muted); line-height: 1.65; }
.section-icon { font-size: 1.5rem; }

.field-group { margin: 0 0 22px; }
.field-label, .question-label { display: block; margin: 0 0 8px; color: #362d38; font-size: 0.94rem; font-weight: 750; line-height: 1.4; }
.question-label { font-size: 1rem; }
.required-mark { margin-left: 3px; color: var(--rose-deep); }
.field-help { margin: 7px 0 0; color: #8a7e8b; font-size: 0.76rem; line-height: 1.45; }
.field-error { margin: 7px 0 0; color: var(--danger); font-size: 0.79rem; font-weight: 700; }

.input,
.textarea {
  width: 100%;
  border: 1px solid #ddd5df;
  border-radius: 10px;
  color: var(--ink);
  background: rgba(255,255,255,.98);
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}
.input { height: 48px; padding: 0 14px; }
.textarea { min-height: 105px; padding: 13px 14px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: #afa5b1; }
.input:hover, .textarea:hover { border-color: #cfc2d2; }
.input:focus, .textarea:focus { outline: none; border-color: #a98cd2; box-shadow: 0 0 0 4px rgba(169, 140, 210, 0.13); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: #ca607f; background: #fffafb; }

.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

.question-block {
  margin: 24px 0;
  padding-top: 24px;
  border-top: 1px solid #eee8ef;
}
.subsection-title { margin: 0 0 14px; color: var(--plum); font-family: var(--serif); font-size: 1.15rem; }
.selection-title { margin: 0; color: var(--plum); font-family: var(--serif); font-size: clamp(1.25rem, 3vw, 1.6rem); line-height: 1.25; }
.selection-intro { margin: 8px 0 18px; color: var(--muted); font-size: .92rem; line-height: 1.6; }
.moment-selection-block { margin-bottom: 0; }
.optional-parent-fields .field-group { margin-bottom: 0; }

.moment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.moment-card {
  position: relative;
  width: 100%;
  min-height: 118px;
  padding: 18px;
  border: 1px solid #e3dbe6;
  border-radius: 16px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  box-shadow: 0 7px 24px rgba(68, 43, 72, 0.04);
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}
.moment-card:hover { transform: translateY(-2px); border-color: #d8b2c4; }
.moment-card.is-selected { border-color: #db789c; background: linear-gradient(135deg, #fff7fa, #faeef4); box-shadow: 0 9px 28px rgba(205, 85, 128, .12); }
.moment-card__icon { display: block; margin-bottom: 10px; font-size: 1.55rem; }
.moment-card__name { display: block; padding-right: 28px; font-weight: 800; line-height: 1.35; }
.moment-card__check {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: transparent;
  border: 1px solid #d8cedb;
  background: #fff;
  font-size: .75rem;
  font-weight: 900;
}
.moment-card.is-selected .moment-card__check { color: #fff; border-color: var(--rose); background: var(--rose); }

.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-card {
  position: relative;
  min-width: 120px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  border: 1px solid #ded5e1;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.radio-card:has(input:checked) { border-color: #d26e92; background: #fff5f8; }
.radio-card input { width: 18px; height: 18px; accent-color: var(--rose-deep); }

.conditional-box {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #efd4dd;
  border-radius: 13px;
  background: #fff8fa;
  animation: stepIn 190ms ease both;
}

.people-list { display: grid; gap: 12px; margin: 12px 0 14px; }
.person-card {
  padding: 15px;
  border: 1px solid #e6dde8;
  border-radius: 14px;
  background: #fdfcfe;
}
.person-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.person-card__head strong { color: var(--plum); font-size: .88rem; }
.person-card__actions { display: flex; gap: 6px; }
.add-row { display: flex; justify-content: flex-start; }

.summary-list { display: grid; gap: 14px; }
.summary-card {
  border: 1px solid #e6dde8;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}
.summary-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 17px; background: linear-gradient(90deg, #fbf8ff, #fff8fa); border-bottom: 1px solid #eee6ef; }
.summary-card__head h3 { margin: 0; color: var(--plum); font-family: var(--serif); font-size: 1.08rem; }
.summary-card__body { padding: 16px 17px; display: grid; gap: 9px; }
.summary-line { display: grid; grid-template-columns: 150px 1fr; gap: 12px; font-size: .9rem; line-height: 1.5; }
.summary-line strong { color: #6c5b6d; }
.summary-line span { color: #342e35; word-break: break-word; }
.summary-empty { color: #948895; font-style: italic; }

.confirm-box { margin-top: 22px; padding: 18px; border-radius: 15px; background: #faf7ff; border: 1px solid #e8def1; }

.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid #eee7ef; }
.form-actions .primary-btn { min-width: 150px; }
.form-error-banner { margin-top: 18px; padding: 13px 15px; border-radius: 11px; color: #8d2d4b; background: #fff0f4; border: 1px solid #efc8d5; font-size: .88rem; line-height: 1.5; }

.submit-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.spinner { width: 17px; height: 17px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 999px; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }

.success-screen { height: 100svh; height: 100dvh; min-height: 100svh; min-height: 100dvh; display: grid; place-items: center; padding: 12px 0; overflow: hidden; }
.success-card { width: min(650px, 100%); border-radius: 28px; padding: clamp(38px, 7vw, 72px); text-align: center; animation: successIn 520ms ease both; }
@keyframes successIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.crown-art--success { margin-inline: auto; width: 145px; }
.success-check { width: 68px; height: 68px; margin: 10px auto 18px; display: grid; place-items: center; border-radius: 999px; color: #fff; background: linear-gradient(145deg, #d86a91, #9c75d6); font-size: 2rem; box-shadow: 0 12px 34px rgba(187, 85, 130, .23); }
.success-card h1 { margin: 0 0 14px; color: var(--plum); font-family: var(--serif); font-size: clamp(2rem, 5vw, 3rem); }
.success-card p { color: var(--muted); line-height: 1.65; }
.success-card strong { display: block; margin-top: 20px; color: var(--rose-deep); }

@media (max-width: 900px) {
  .cover-card { width: min(820px, 100%); }
  .cover-brandbar { gap: 24px; }
  .brand-logo { height: clamp(50px, 7.2vh, 66px); max-width: 76px; }
  .social-strip { width: min(100%, 380px); }
}

@media (max-width: 680px) {
  body { background: linear-gradient(180deg, #fffafb 0%, #fbf9ff 60%, #fffaf5 100%); }
  .app-shell { width: min(100% - 20px, 1220px); margin: 0 auto; }
  .cover-card { border-radius: 21px; }
  .cover-card__content { padding: clamp(18px, 3.2vh, 30px) 22px clamp(16px, 2.8vh, 26px); }
  .cover-brandbar { padding: 8px 14px 9px; flex-direction: row; gap: 12px; }
  .brand-logo { width: auto; height: clamp(44px, 6.5vh, 56px); max-width: 64px; }
  .cover-brandbar__copy { width: auto; flex: 1; }
  .social-strip { width: min(100%, 340px); height: auto; }
  .sparkles--left { left: 5%; top: 16%; }
  .sparkles--right { right: 3%; top: 20%; }
  .form-header { grid-template-columns: 40px 1fr; gap: 10px; }
  .mini-brand { width: 40px; height: 40px; padding: 7px; border-radius: 11px; }
  .mini-brand img { width: 100%; height: 100%; object-fit: contain; }
  .form-card { border-radius: 19px; padding: 22px 17px; }
  .moment-grid, .two-col, .three-col { grid-template-columns: 1fr; }
  .moment-card { min-height: 100px; }
  .radio-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .radio-card { min-width: 0; }
  .summary-line { grid-template-columns: 1fr; gap: 2px; }
  .form-actions { position: sticky; bottom: 0; margin-inline: -17px; margin-bottom: -22px; padding: 14px 17px 18px; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); z-index: 5; }
  .form-actions button { min-height: 50px; }
}


@media (max-height: 760px) and (min-width: 681px) {
  .cover-card__content { padding-top: 18px; padding-bottom: 16px; }
  .crown-art { width: clamp(130px, 18vh, 170px); }
  .eyebrow { margin-bottom: 8px; font-size: .68rem; }
  .cover-title span { font-size: clamp(2rem, 5.8vh, 3.25rem); }
  .cover-title strong { margin-top: 5px; font-size: clamp(2.8rem, 8.5vh, 4.8rem); }
  .cover-copy { margin-top: 7px; line-height: 1.45; }
  .notice-card { margin-block: 12px; padding-block: 12px; }
  .primary-btn--large { min-height: 48px; }
  .cover-brandbar { padding-block: 7px; }
  .brand-logo { height: 48px; }
  .social-strip { width: min(100%, 350px); }
}

@media (max-width: 430px) {
  .cover-brandbar { gap: 8px; padding: 7px 10px 8px; }
  .brand-logo { height: 42px; max-width: 48px; }
  .social-strip { width: min(100%, 300px); }
  .cover-title span { font-size: 2.15rem; }
  .cover-title strong { font-size: 3.45rem; }
  .notice-card { padding: 15px; }
  .form-actions { gap: 8px; }
  .form-actions .primary-btn, .form-actions .secondary-btn { padding-inline: 13px; }
  .form-actions .primary-btn { min-width: 0; flex: 1; }
}


@media (max-height: 720px) {
  .cover-card__content { padding-top: 12px; padding-bottom: 12px; }
  .crown-art { width: 116px; }
  .eyebrow { margin-bottom: 6px; font-size: .62rem; }
  .cover-title span { font-size: 1.95rem; }
  .cover-title strong { margin-top: 4px; font-size: 3.05rem; }
  .pink-heart { margin-block: 4px; font-size: 1.2rem; }
  .cover-subtitle { font-size: .94rem; }
  .cover-copy { margin-top: 5px; font-size: .84rem; line-height: 1.35; }
  .notice-card { margin-block: 9px; padding: 10px 13px; }
  .notice-card p { font-size: .8rem; line-height: 1.35; }
  .primary-btn--large { min-height: 44px; }
  .cover-brandbar { padding-block: 6px; }
  .brand-logo { height: 42px; }
  .social-strip { width: min(100%, 330px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* ============================================================
   FORMULARIO DENTRO DEL VIEWPORT
   El marco de la página nunca hace scroll. La tarjeta usa toda la
   altura disponible y solo activa scroll interno cuando su contenido
   realmente no cabe. No se escala ni se deforma el formulario.
   ============================================================ */
html,
body,
.app-shell,
.cover-screen,
.form-screen,
.success-screen {
  max-height: 100svh;
  max-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}

.form-screen {
  height: 100svh;
  height: 100dvh;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 12px 0;
  overflow: hidden;
}

.form-wrap {
  position: static;
  width: min(900px, 100%);
  height: calc(100svh - 24px);
  height: calc(100dvh - 24px);
  min-height: 0;
  max-height: calc(100svh - 24px);
  max-height: calc(100dvh - 24px);
  display: flex;
  flex-direction: column;
  transform: none;
}

.form-header {
  flex: 0 0 auto;
  margin-bottom: 12px;
}

.form-card {
  position: relative;
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior-y: contain;

  /* Reserva siempre el mismo ancho para el scrollbar. Así, cuando una
     respuesta condicional hace que Brindis pase de caber a necesitar scroll,
     la columna derecha no cambia de tamaño ni “salta”. */
  scrollbar-gutter: stable;
  -ms-overflow-style: auto;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

/* El espacio del scrollbar es estable, pero el indicador solo se pinta cuando
   realmente hay contenido suficiente para desplazarse. */
.form-card::-webkit-scrollbar {
  display: block;
  width: 8px;
  height: 8px;
}

.form-card::-webkit-scrollbar-track,
.form-card::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
}

.form-card.is-scrollable {
  scrollbar-color: rgba(190, 82, 125, .72) rgba(83, 48, 95, .06);
}

.form-card.is-scrollable::-webkit-scrollbar-track {
  background: rgba(83, 48, 95, .06);
}

.form-card.is-scrollable::-webkit-scrollbar-thumb {
  min-height: 44px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(157, 121, 230, .78), rgba(207, 90, 134, .86));
  background-clip: padding-box;
}

.form-card.is-scrollable::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(141, 110, 216, .95), rgba(189, 63, 107, .95));
  background-clip: padding-box;
}

#stepContent,
.step-panel,
.confirmation-layout {
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
}

.step-panel {
  display: block;
}

.textarea {
  resize: vertical;
}

/* Cuando sí hay que desplazar, los botones quedan disponibles. Importante:
   este estado no cambia padding ni márgenes; así la detección de overflow no
   puede entrar en un ciclo de poner/quitar scrollbar. */
.form-card.is-scrollable .form-actions {
  position: sticky;
  bottom: 0;
  z-index: 8;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 -14px 28px rgba(79, 44, 84, .07);
  backdrop-filter: blur(12px);
}

/* Confirmación: una sola sección de resumen visible mantiene el repaso
   compacto, pero si sus campos crecen la misma tarjeta puede desplazarse. */
.confirmation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  gap: 16px;
  align-items: start;
}

.review-nav {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.review-tab {
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #e4dbe7;
  border-radius: 11px;
  color: #625566;
  background: #fff;
  font: inherit;
  font-size: .78rem;
  font-weight: 750;
  line-height: 1.1;
  cursor: pointer;
}

.review-tab span:first-child { margin-right: 4px; }
.review-tab.is-active {
  color: var(--rose-deep);
  border-color: #dc86a5;
  background: #fff4f8;
}
.summary-list--single { display: block; }
.general-note-field { margin-top: 14px; }

/* Datos del evento conserva la distribución de tres tarjetas por fila en
   escritorio y su espaciado natural; ya no se empuja nada hacia el fondo. */
.form-card[data-step="datos"] .moment-selection-block {
  margin-top: 18px;
  padding-top: 18px;
}

.form-card[data-step="datos"] .moment-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-card[data-step="datos"] .moment-card {
  min-height: 92px;
}

@media (max-height: 760px) and (min-width: 681px) {
  .form-screen { padding-block: 8px; }
  .form-wrap {
    width: min(920px, calc(100vw - 20px));
    height: calc(100dvh - 16px);
    max-height: calc(100dvh - 16px);
  }
  .form-header { margin-bottom: 8px; }
}

@media (max-width: 680px) {
  .form-screen { padding-block: 7px; }
  .form-wrap {
    width: calc(100vw - 14px);
    height: calc(100dvh - 14px);
    max-height: calc(100dvh - 14px);
  }

  .form-card { padding: 22px 17px; }

  .form-card[data-step="datos"] .moment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-card[data-step="datos"] .moment-card { min-height: 88px; }

  .confirmation-layout { grid-template-columns: 1fr; }
  .review-nav { grid-column: 1; }
}

/* ============================================================
   BAILE DE PROTOCOLO — una sola canción para los momentos
   Coronación / Zapatillas / Último juguete / Brindis (+ Otro si aplica)
   ============================================================ */
.shared-song-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 22px;
  padding: 13px 15px;
  border: 1px solid #eadcf0;
  border-radius: 13px;
  background: linear-gradient(135deg, #faf6ff, #fff8fb);
  color: var(--plum);
}

.shared-song-note > span {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f0e8ff;
  color: #7b5db2;
  font-size: 1rem;
}

.shared-song-note strong { display: block; font-size: .86rem; }
.shared-song-note p { margin: 2px 0 0; color: var(--muted); font-size: .84rem; line-height: 1.4; }

.protocol-membership-box {
  margin-top: 16px;
}

.protocol-membership-box .field-help {
  margin: -2px 0 10px;
}

.protocol-order-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.protocol-order-heading .field-help { margin: 4px 0 0; }

.protocol-order-list {
  display: grid;
  gap: 9px;
}

.protocol-order-item {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px 9px 12px;
  border: 1px solid #e7dfe9;
  border-radius: 13px;
  background: #fff;
}

.protocol-order-item__main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.protocol-order-item__main strong {
  min-width: 0;
  color: #3c303e;
  font-size: .9rem;
  line-height: 1.25;
}

.protocol-order-number {
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #704c83;
  background: #f1eafe;
  font-size: .75rem;
  font-weight: 850;
}

.protocol-order-icon {
  flex: 0 0 auto;
  font-size: 1.08rem;
}

.protocol-order-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 6px;
}

.protocol-order-actions .icon-btn {
  width: 34px;
  height: 34px;
}

@media (max-width: 680px) {
  .protocol-order-item { align-items: center; }
  .protocol-order-item__main { gap: 7px; }
  .protocol-order-item__main strong { font-size: .82rem; }
  .protocol-order-actions .icon-btn { width: 32px; height: 32px; }
  .shared-song-note { margin-block: 12px 18px; }
}

/* ============================================================
   RESPONSIVE MÓVIL FINAL
   El pie de navegación queda fuera del área desplazable. Solo el contenido
   central hace scroll cuando de verdad lo necesita, por lo que ningún campo
   puede quedar visible por debajo de los botones.
   ============================================================ */
.form-card {
  display: flex;
  flex-direction: column;
  overflow: hidden !important;
  padding: 0 !important;
}

.form-scroll-area {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: clamp(22px, 4vw, 42px);
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.form-scroll-area::-webkit-scrollbar {
  display: block;
  width: 7px;
}

.form-scroll-area::-webkit-scrollbar-track,
.form-scroll-area::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: transparent;
}

.form-card.is-scrollable .form-scroll-area {
  scrollbar-color: rgba(190, 82, 125, .72) rgba(83, 48, 95, .06);
}

.form-card.is-scrollable .form-scroll-area::-webkit-scrollbar-track {
  background: rgba(83, 48, 95, .06);
}

.form-card.is-scrollable .form-scroll-area::-webkit-scrollbar-thumb {
  min-height: 42px;
  border: 2px solid transparent;
  background: linear-gradient(180deg, rgba(157, 121, 230, .78), rgba(207, 90, 134, .86));
  background-clip: padding-box;
}

/* El footer ya no es sticky ni flota sobre el contenido: ocupa su propia fila. */
.form-actions,
.form-card.is-scrollable .form-actions {
  position: static !important;
  flex: 0 0 auto;
  margin: 0 !important;
  padding: 14px clamp(22px, 4vw, 42px) 16px;
  border-top: 1px solid #eee7ef;
  background: #fff;
  box-shadow: 0 -8px 22px rgba(79, 44, 84, .045);
  backdrop-filter: none;
  z-index: 10;
  justify-content: flex-end;
}

.form-actions .secondary-btn { margin-right: auto; }

/* Las reglas antiguas de scrollbar pertenecían a .form-card. El contenedor
   exterior ya no debe desplazarse ni reservar gutter. */
.form-card {
  scrollbar-gutter: auto !important;
  scrollbar-width: none !important;
}
.form-card::-webkit-scrollbar { display: none !important; width: 0 !important; }

@media (max-width: 680px) {
  html,
  body { min-width: 0; }

  .app-shell {
    width: calc(100% - 8px);
  }

  .form-screen {
    padding: 4px 0;
  }

  .form-wrap {
    width: 100%;
    height: calc(100dvh - 8px);
    max-height: calc(100dvh - 8px);
  }

  .form-header {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 8px;
    margin: 0 5px 7px;
  }

  .mini-brand {
    width: 36px;
    height: 36px;
    padding: 6px;
    border-radius: 10px;
  }

  .progress-meta { margin-bottom: 6px; }
  .step-pill { min-height: 26px; padding-inline: 9px; font-size: .7rem; }
  .progress-percent { font-size: .68rem; }
  .progress-track { height: 3px; }

  .form-card {
    border-radius: 17px;
  }

  .form-scroll-area {
    padding: 18px 15px 20px;
    scroll-padding-top: 14px;
    scroll-padding-bottom: 18px;
  }

  .form-scroll-area::-webkit-scrollbar { width: 5px; }

  .section-kicker {
    margin-bottom: 5px;
    font-size: .68rem;
    letter-spacing: .07em;
  }

  .section-title {
    gap: 7px;
    font-size: clamp(1.48rem, 7vw, 1.85rem);
    line-height: 1.08;
  }

  .section-icon { font-size: 1.25rem; }
  .section-intro { margin: 8px 0 18px; font-size: .87rem; line-height: 1.5; }

  .field-group { margin-bottom: 16px; }
  .field-label,
  .question-label {
    margin-bottom: 6px;
    font-size: .86rem;
    line-height: 1.3;
  }
  .question-label { font-size: .9rem; }
  .field-help { margin-top: 5px; font-size: .72rem; }
  .field-error { margin-top: 5px; font-size: .74rem; }

  /* 16px evita el zoom automático de Safari al enfocar un campo. */
  .input,
  .textarea { font-size: 16px; }
  .input { height: 44px; padding-inline: 12px; }
  .textarea { min-height: 88px; padding: 11px 12px; resize: none; }

  .two-col,
  .three-col { gap: 11px; }

  .question-block {
    margin: 18px 0;
    padding-top: 18px;
  }

  .subsection-title { margin-bottom: 10px; font-size: 1.05rem; }
  .selection-title {
    margin-bottom: 12px;
    font-size: clamp(1.28rem, 6vw, 1.55rem);
    line-height: 1.18;
  }
  .selection-intro { margin: 6px 0 14px; font-size: .82rem; line-height: 1.45; }

  .form-card[data-step="datos"] .moment-selection-block {
    margin-top: 14px;
    padding-top: 14px;
  }

  .form-card[data-step="datos"] .moment-grid,
  .moment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  /* Las tarjetas siguen siendo cómodas para tocar, pero ya no parecen botones
     gigantes. Icono y texto van en una misma línea para aprovechar el ancho. */
  .form-card[data-step="datos"] .moment-card,
  .moment-card {
    min-height: 76px;
    padding: 11px 10px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    border-radius: 14px;
  }

  .moment-card__icon {
    margin: 0;
    font-size: 1.32rem;
    line-height: 1;
  }

  .moment-card__name {
    padding-right: 20px;
    font-size: .78rem;
    line-height: 1.26;
  }

  .moment-card__check {
    top: 9px;
    right: 9px;
    width: 21px;
    height: 21px;
    font-size: .68rem;
  }

  .radio-row { gap: 8px; }
  .radio-card {
    min-width: 0;
    min-height: 42px;
    padding: 8px 11px;
    gap: 7px;
    font-size: .84rem;
  }
  .radio-card input { width: 17px; height: 17px; }

  .conditional-box { margin-top: 11px; padding: 13px; }
  .shared-song-note { padding: 11px 12px; gap: 9px; }
  .shared-song-note > span { width: 30px; height: 30px; }

  .form-actions,
  .form-card.is-scrollable .form-actions {
    min-height: 60px;
    gap: 8px;
    padding: 9px 14px calc(9px + env(safe-area-inset-bottom));
  }

  .form-actions .primary-btn,
  .form-actions .secondary-btn {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    min-height: 43px !important;
    height: 43px;
    padding: 0 15px !important;
    border-radius: 10px;
    font-size: .84rem;
    white-space: nowrap;
  }

  .form-actions .primary-btn { box-shadow: 0 6px 18px rgba(201, 63, 114, .21); }

  .ghost-btn { min-height: 38px; padding-inline: 11px; font-size: .8rem; }
  .icon-btn { width: 36px; height: 36px; }

  .confirmation-layout { gap: 12px; }
  .review-nav { gap: 6px; }
  .review-tab { min-height: 38px; padding: 7px 9px; font-size: .72rem; }
}

@media (max-width: 360px) {
  .form-scroll-area { padding-inline: 12px; }
  .form-card[data-step="datos"] .moment-grid,
  .moment-grid { grid-template-columns: 1fr; gap: 8px; }
  .form-card[data-step="datos"] .moment-card,
  .moment-card { min-height: 62px; }
  .moment-card__name { font-size: .82rem; }
  .form-actions,
  .form-card.is-scrollable .form-actions { padding-inline: 11px; }
  .form-actions .primary-btn,
  .form-actions .secondary-btn { padding-inline: 12px !important; font-size: .8rem; }
}

/* Móviles en horizontal o dispositivos con poca altura: reducimos únicamente
   chrome y espacios, no el contenido ni la tipografía hasta volverla ilegible. */
@media (max-width: 680px) and (max-height: 560px) {
  .form-header { margin-bottom: 5px; }
  .mini-brand { width: 32px; height: 32px; }
  .form-header { grid-template-columns: 32px minmax(0, 1fr); }
  .form-scroll-area { padding-top: 14px; padding-bottom: 15px; }
  .form-actions,
  .form-card.is-scrollable .form-actions { min-height: 52px; padding-block: 5px calc(5px + env(safe-area-inset-bottom)); }
  .form-actions .primary-btn,
  .form-actions .secondary-btn { min-height: 40px !important; height: 40px; }
}

/* ============================================================
   VALS: participantes compactos y orden por drag & drop
   ============================================================ */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.subsection-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.subsection-heading-row .subsection-title { margin-bottom: 4px; }
.vals-people-help { max-width: 610px; margin: 0; }
.add-person-btn { flex: 0 0 auto; white-space: nowrap; }
.add-person-btn > span { font-size: 1.05em; }
.add-row--mobile { display: none; }

.people-empty {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 10px 0 4px;
  padding: 14px 16px;
  border: 1px dashed #dfd4e2;
  border-radius: 13px;
  color: #837585;
  background: #fdfbfe;
  text-align: center;
}
.people-empty > span {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #9c6dac;
  background: #f1eafb;
  font-weight: 850;
}
.people-empty p { margin: 0; font-size: .82rem; line-height: 1.4; }

.people-list {
  display: grid;
  gap: 10px;
  margin: 10px 0 4px;
}

.person-card--list {
  padding: 13px 14px 2px;
  border-color: #e7dfe9;
  background: #fff;
  box-shadow: 0 5px 16px rgba(77, 48, 82, .035);
}

.person-card__identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.person-number {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #724f82;
  background: #f1eafb;
  font-size: .72rem;
  font-weight: 850;
}

.person-remove-btn {
  flex: 0 0 auto;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  border: 0;
  border-radius: 9px;
  color: #9b4f68;
  background: #fff5f8;
  font-size: .74rem;
  font-weight: 750;
}
.person-remove-btn:hover { background: #fdeaf0; }
.person-remove-btn > span { font-size: 1.05rem; line-height: 1; }

.person-card__fields .field-group { margin-bottom: 11px; }

.vals-sortable-list {
  position: relative;
  gap: 8px;
}

.vals-person-card {
  overflow: hidden;
  padding: 0;
  border: 1px solid #e6dde8;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(77, 48, 82, .028);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease, opacity 150ms ease;
}

.vals-person-card:hover { border-color: #d9cedd; }
.vals-person-card.is-expanded {
  border-color: #decfe2;
  box-shadow: 0 7px 20px rgba(77, 48, 82, .055);
}
.vals-person-card.is-dragging {
  z-index: 5;
  opacity: .74;
  border-color: #c88aad;
  box-shadow: 0 14px 30px rgba(100, 57, 94, .15);
  transform: scale(.995);
}
.vals-sortable-list.is-sorting .vals-person-card:not(.is-dragging) {
  transition: transform 120ms ease, border-color 120ms ease;
}

.vals-person-card__head {
  min-height: 52px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 0;
  background: linear-gradient(90deg, #fff, #fdfafe);
}

.vals-drag-handle {
  width: 58px;
  min-height: 52px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1px;
  padding: 4px 7px;
  border: 0;
  border-right: 1px solid #eee7ef;
  color: #805b8c;
  background: #faf7fc;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.vals-drag-handle:active { cursor: grabbing; }
.vals-drag-handle:focus-visible {
  position: relative;
  z-index: 2;
  outline: 3px solid rgba(169, 140, 210, .24);
  outline-offset: -3px;
}
.vals-drag-dots {
  font-size: 1.2rem;
  line-height: 1;
  letter-spacing: -2px;
}
.vals-drag-label {
  font-size: .58rem;
  font-weight: 800;
  line-height: 1;
}

.vals-person-summary {
  min-width: 0;
  min-height: 52px;
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}
.vals-person-summary:hover { background: #fdf9fc; }
.vals-person-summary:focus-visible {
  outline: 3px solid rgba(169, 140, 210, .2);
  outline-offset: -3px;
}
.vals-person-summary__text {
  min-width: 0;
  display: grid;
  gap: 1px;
}
.vals-person-summary__text strong,
.vals-person-summary__text small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vals-person-summary__text strong {
  color: #3b303d;
  font-size: .82rem;
  font-weight: 800;
}
.vals-person-summary__text small {
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.25;
}
.vals-collapse-icon {
  color: #8b7193;
  font-size: .9rem;
  text-align: center;
}

.vals-person-remove {
  align-self: center;
  margin-right: 8px;
}

.vals-person-card__body {
  padding: 11px 12px 1px;
  border-top: 1px solid #eee8ef;
  background: #fff;
  animation: valsCardOpen 150ms ease both;
}
.vals-person-card__body[hidden] { display: none !important; }
.vals-person-card__body .field-group { margin-bottom: 10px; }

@keyframes valsCardOpen {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

.vals-drag-active,
.vals-drag-active * {
  cursor: grabbing !important;
}
.vals-drag-active {
  overscroll-behavior: contain;
}

.vals-people-empty { margin-top: 8px; }

/* ============================================================
   Firma de KALI: integrada en la portada, sin parecer otro panel
   ============================================================ */
.cover-card .cover-brandbar {
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 24px clamp(18px, 4vw, 34px) 8px;
  gap: clamp(12px, 2.2vw, 22px);
  border: 0;
  border-radius: 0;
  background: linear-gradient(
    180deg,
    rgb(255, 255, 255) 0%,
    rgba(193, 144, 202, 0.62) 42%,
    rgba(150, 108, 138, 0.9) 100%
  );
  box-shadow: none;
}
.cover-card .brand-logo {
  height: clamp(34px, 5.4vh, 44px);
  max-width: 50px;
  opacity: .92;
  filter: none;
}
.cover-card .cover-brandbar__copy { flex: 0 1 320px; }
.cover-card .social-strip {
  width: min(100%, 300px);
  opacity: .92;
  filter: none;
}

@media (max-width: 680px) {
  .subsection-heading-row { display: block; margin-bottom: 10px; }
  .subsection-heading-row > .add-person-btn { display: none; }
  .add-row--mobile { display: flex; margin-top: 10px; }
  .add-row--mobile .add-person-btn { width: 100%; justify-content: center; }

  .people-list { gap: 9px; }
  .person-card--list { padding: 11px 11px 1px; }
  .person-card__head { margin-bottom: 10px; }
  .person-card__head strong { font-size: .82rem; }
  .person-remove-btn { min-height: 30px; padding-inline: 8px; font-size: .7rem; }
  .person-card__fields.two-col { grid-template-columns: 1fr; gap: 0; }
  .person-card__fields .field-group { margin-bottom: 10px; }
  .person-number { width: 23px; height: 23px; font-size: .68rem; }

  .vals-sortable-list { gap: 7px; }
  .vals-person-card__head { min-height: 50px; }
  .vals-drag-handle { width: 46px; min-height: 50px; padding-inline: 5px; }
  .vals-drag-label { display: none; }
  .vals-drag-dots { font-size: 1.28rem; }
  .vals-person-summary { min-height: 50px; grid-template-columns: 24px minmax(0, 1fr) 18px; gap: 7px; padding: 6px 8px; }
  .vals-person-summary__text strong { font-size: .8rem; }
  .vals-person-summary__text small { font-size: .66rem; }
  .vals-person-remove { width: 32px; min-width: 32px; padding: 0; margin-right: 7px; justify-content: center; }
  .vals-person-remove .vals-remove-label { display: none; }
  .vals-person-card__body { padding: 10px 10px 1px; }

  .cover-card .cover-brandbar {
    width: 100%;
    margin: 0;
    padding: 12px 10px 6px;
    gap: 9px;
    border-radius: 0;
    box-shadow: none;
  }
  .cover-card .brand-logo {
    height: 31px;
    max-width: 36px;
  }
  .cover-card .cover-brandbar__copy { flex: 1 1 auto; }
  .cover-card .social-strip { width: min(100%, 255px); }
}

@media (max-width: 360px) {
  .vals-drag-handle { width: 42px; }
  .vals-person-summary { grid-template-columns: 22px minmax(0, 1fr) 17px; gap: 6px; padding-inline: 6px; }
  .vals-person-remove { margin-right: 5px; }
  .cover-card .cover-brandbar { width: 100%; padding-inline: 8px; }
  .cover-card .brand-logo { height: 28px; max-width: 32px; }
  .cover-card .social-strip { width: min(100%, 220px); }
}
