/* EL FUEGO NO SE APAGARÁ — formulario editorial mobile first.
   La interacción aparece en una escena central, sin alterar los campos. */
:root {
  color-scheme: light;
  --paper: #f8f3ec;
  --white: #fffdfa;
  --ink: #291b15;
  --muted: #756961;
  --line: #e5d8cd;
  --accent: #c66d39;
  --accent-dark: #9a4628;
  --soft-fire: #fff0e3;
  --green: #257154;
  --radius: 9px;
  --serif-display: "Bodoni MT", Didot, "Times New Roman", Georgia, serif;
  --serif-reading: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
@supports not (overflow: clip) {
  html, body { overflow-x: hidden; }
}

body {
  min-width: 280px;
  margin: 0;
  color: var(--ink);
  font: 400 16px/1.52 var(--sans);
  background: radial-gradient(ellipse 70% 430px at 50% -175px, rgba(227, 147, 82, .19), transparent 85%), var(--paper);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.page-width { width: min(1120px, calc(100% - 28px)); margin-inline: auto; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); border: 0; white-space: nowrap;
}
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--accent-dark); outline-offset: 3px;
}
#formulario, #pago { scroll-margin-top: 20px; }

/* La cabecera no ocupa una pantalla: el formulario empieza de inmediato. */
.public-area { padding: 16px 0 58px; }
.public-layout { display: flex; flex-direction: column; gap: 15px; }
.public-layout__main, .public-layout__side { display: contents; }
.intro-card {
  order: 0; position: relative; isolation: isolate;
  padding: 5px 4px 14px;
  border-bottom: 1px solid #dcc7b7;
}
.intro-card::after {
  content: ""; position: absolute; bottom: -2px; left: 0; height: 3px; width: 26%;
  background: linear-gradient(90deg, #dc915c, #f2cba5, transparent);
  pointer-events: none;
}
.intro-card__identity { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark {
  position: relative; z-index: 1; flex: 0 0 66px; width: 66px; height: 91px;
  display: grid; place-items: center; isolation: isolate;
  padding: 0; border: 0; background: transparent;
  cursor: pointer; touch-action: pan-y; -webkit-tap-highlight-color: transparent;
}
/* The mark is alive at rest: a moving molten layer clipped to the exact
   original artwork, plus breathing light behind it (no extra layout space). */
.brand-mark::before {
  content: ""; position: absolute; z-index: 0; inset: -16% -28%;
  pointer-events: none; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 60%, rgba(255,235,159,.74), rgba(255,122,26,.35) 33%, transparent 72%);
  filter: blur(5px);
  animation: markEmberBreath 2.55s cubic-bezier(.36,.06,.48,.98) infinite;
}
.brand-mark::after {
  content: ""; position: absolute; z-index: 2; inset: 0;
  pointer-events: none;
  background: linear-gradient(10deg, rgba(255,93,14,.22) 3%, rgba(255,214,121,.92) 35%,
    rgba(255,249,209,.94) 50%, rgba(255,123,29,.7) 65%, rgba(255,245,167,.7) 82%);
  background-size: 180% 210%;
  -webkit-mask: url('../assets/images/fire-symbol.png') center / contain no-repeat;
  mask: url('../assets/images/fire-symbol.png') center / contain no-repeat;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 7px rgba(255,173,71,.85));
  animation: markMolten 2.05s ease-in-out infinite alternate;
}
.brand-mark img {
  position: relative; z-index: 1; width: 100%; height: 100%;
  object-fit: contain;
  animation: markLivingFlame 2.9s ease-in-out infinite;
}
@keyframes markEmberBreath {
  0%,100% { opacity: .35; transform: scale(.90) translateY(2px); }
  34% { opacity: .88; transform: scale(1.12) translateY(-4px); }
  65% { opacity: .62; transform: scale(1.03) translateY(-1px); }
}
@keyframes markMolten {
  0% { opacity: .36; background-position: 5% 100%; transform: translateY(1.5px) scale(.99); }
  35% { opacity: .88; background-position: 58% 42%; transform: translateY(-2px) scale(1.02); }
  70% { opacity: .49; background-position: 95% 8%; transform: translateY(1px) scale(.998); }
  100% { opacity: .96; background-position: 24% 48%; transform: translateY(-1.5px) scale(1.025); }
}
@keyframes markLivingFlame {
  0%,100% { filter: drop-shadow(0 0 4px rgba(255,121,38,.51)) drop-shadow(0 0 12px rgba(241,92,23,.24)); }
  28% { filter: drop-shadow(0 0 9px rgba(255,218,120,.83)) drop-shadow(0 0 21px rgba(254,103,13,.54)); }
  48% { filter: drop-shadow(0 0 5px rgba(255,157,66,.64)) drop-shadow(0 0 14px rgba(249,93,18,.34)); }
  72% { filter: drop-shadow(0 0 11px rgba(255,225,144,.89)) drop-shadow(0 0 25px rgba(255,116,21,.63)); }
}
.intro-card h1 { min-width: 0; margin: 0; font-size: .68rem; font-weight: 800; line-height: 1.4; letter-spacing: .2em; text-transform: uppercase; }
.intro-card__heading { min-width: 0; flex: 1 1 auto; }
.intro-card__date {
  margin: 9px 0 0; color: #9b5b35;
  font-size: clamp(.76rem, 1.65vw, .92rem); font-weight: 660;
  line-height: 1.35; letter-spacing: .025em;
}
.fire-title {
  display: block; max-width: 740px; margin-top: 5px;
  color: #271912; font: 500 clamp(1.78rem, 7.6vw, 3.64rem)/.97 var(--serif-display);
  letter-spacing: -.053em; font-style: normal; text-wrap: balance;
  text-shadow: 1px 2px 0 rgba(236, 175, 127, .12);
}
.intro-card__bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 12px 0 0; }
.intro-card__summary { max-width: 70ch; margin: 0; color: #67564b; font-size: .82rem; line-height: 1.52; }
.intro-card__summary strong { color: var(--ink); font-weight: 700; }
.camp-price {
  flex: 0 0 auto; display: grid; justify-items: center; align-content: center;
  min-width: 70px; padding: 6px 9px 7px;
  border: 1px solid #e1b995; border-radius: 3px;
  background: #fff8ed; color: #ad512c;
  box-shadow: inset 0 0 0 3px #fffcf7;
  transform: rotate(2deg);
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.camp-price:hover, .camp-price:focus-visible {
  transform: rotate(0deg) translateY(-2px);
  border-color: #c6814f;
  box-shadow: inset 0 0 0 3px #fffcf7, 0 5px 13px rgba(154, 60, 30, .12);
}
.camp-price span { font-size: .56rem; font-weight: 850; letter-spacing: .15em; }
.camp-price strong { color: #9a3c1e; font: 500 1.63rem/1.1 var(--serif-display); letter-spacing: -.04em; }
.admin-back {
  color: #866c5c; font-size: .73rem; font-weight: 650;
  text-decoration: none; text-underline-offset: 3px;
}
.admin-back:hover { color: var(--accent-dark); text-decoration: underline; }
.admin-back { display: inline-block; margin-bottom: 20px; }
@media (prefers-reduced-motion: reduce) {
  .camp-price { transition: none; }
}
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 10px; color: #a66945; font-size: .68rem; font-weight: 800; letter-spacing: .17em; }
.eyebrow__line { width: 18px; height: 1px; background: currentColor; }

/* Hoja de inscripción: campos claros, legibles y sin capas extra en reposo. */
.form-shell {
  order: 1; position: relative; min-width: 0; overflow: hidden;
  padding: 23px 18px 22px;
  background: var(--white);
  border: 1px solid #e1d1c2; border-radius: var(--radius);
  box-shadow: 0 5px 8px rgba(75, 43, 29, .025), 0 20px 44px rgba(95, 63, 43, .055);
}
.form-shell::before {
  content: ""; position: absolute; top: 0; inset-inline: 0; height: 3px;
  background: linear-gradient(90deg, #c66d39 0%, #f3cfaa 31%, #fff5dd 48%, #d2885f 78%, #c66d39 100%);
  background-size: 200% 100%;

}
.form-shell__heading {
  display: flex; align-items: center; gap: 18px;
  padding-bottom: 17px; margin-bottom: 22px;
  border-bottom: 1px solid #e8ddd3;
}
.form-shell__heading strong {
  font: 500 clamp(1.47rem, 4.8vw, 1.94rem)/1.15 var(--serif-reading);
  letter-spacing: -.036em;
}
.form-shell__ornament {
  flex: 1; height: 9px; opacity: .52;
  background: linear-gradient(90deg, #dba777, transparent), linear-gradient(90deg, #dba777, transparent);
  background-size: 100% 1px, 23% 1px; background-position: center 3px, left 7px; background-repeat: no-repeat;
}
.form-fields { display: grid; gap: 22px; }
.field-grid { display: grid; gap: 18px; min-width: 0; }
.field { display: grid; gap: 7px; position: relative; min-width: 0; }
.field--full { grid-column: 1/-1; }
.field label { color: #3c3029; font-size: .85rem; line-height: 1.42; font-weight: 690; }
.required { color: #c3532d; }
.optional { color: #907e70; white-space: nowrap; font-size: .73rem; font-weight: 500; }
.field__hint { color: #85786d; font-size: .79rem; line-height: 1.45; }
.field input:not([type="checkbox"]), .field select, .field textarea {
  appearance: none; -webkit-appearance: none; display: block;
  width: 100%; min-width: 0; min-height: 52px; padding: 12px 14px; margin: 0;
  color: var(--ink); background: #fefcf9;
  border: 1px solid #dac9bb; border-radius: 6px;
  font-size: 16px; line-height: 1.47;
  box-shadow: inset 0 1px 2px rgba(79, 53, 35, .025);
  transition: border-color .2s, box-shadow .25s, background-color .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #a3988d; opacity: 1; }
.field select {
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1.5 5 5 5-5' fill='none' stroke='%23745b4a' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 12px 8px; background-repeat: no-repeat; background-position: right 15px center;
}
.field textarea { min-height: 96px; resize: vertical; }
.field :is(input:not([type="checkbox"]), select, textarea):focus {
  outline: none; border-color: #d98b56; background-color: #fffefa;
  box-shadow: 0 0 0 3px rgba(229, 139, 77, .13), 0 5px 20px rgba(219, 116, 44, .09), inset 0 -2px 0 rgba(232, 162, 103, .29);
}
.field:focus-within label { color: #944823; }
.field:focus-within .field__hint { color: #966b4d; }
.contact-group {
  min-width: 0; margin: 1px 0 0; padding: 14px 0 20px 18px;
  border-left: 3px solid #d7a579;
  background: linear-gradient(90deg, rgba(250, 231, 209, .32), transparent 28%);
}
.contact-group__title {
  max-width: 100%; margin: 0 0 17px; padding: 0;
  color: #3c3029; font-size: .87rem; font-weight: 750; line-height: 1.45;
}
.contact-group__hint { color: #897b70; font-weight: 450; }
.field-grid--contact { grid-template-columns: 1fr; }

.form-consent { display: grid; gap: 14px; margin-top: 25px; padding-top: 23px; border-top: 1px solid #e8ddd3; }
.privacy-box { border: 1px solid #e7dbce; border-radius: 6px; background: #faf7f2; }
.privacy-box summary {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 50px; padding: 12px 14px; list-style: none; cursor: pointer;
  font-size: .84rem; font-weight: 680;
}
.privacy-box summary::-webkit-details-marker { display: none; }
.privacy-box__sign { color: var(--accent-dark); font-size: 1.3rem; font-weight: 350; line-height: 1; transition: transform .2s; }
.privacy-box details[open] .privacy-box__sign { transform: rotate(45deg); }
.privacy-box__body { display: grid; gap: 6px; padding: 0 14px 16px; }
.privacy-box__body p { margin: 0; color: #6f6259; font-size: .78rem; line-height: 1.52; overflow-wrap: anywhere; }
.privacy-box__body strong { color: #3f2d22; }
.privacy-box__body a { color: #97502e; text-decoration-thickness: 1px; }
.check-line { display: grid; grid-template-columns: 21px minmax(0, 1fr); align-items: start; gap: 11px; cursor: pointer; }
.check-line input { width: 19px; height: 19px; margin: 3px 0 0; accent-color: #ae5a34; }
.check-line > span { color: #60534b; font-size: .81rem; font-weight: 440; line-height: 1.55; }
.bot-field { position: absolute; opacity: 0; width: 1px; height: 1px; left: -10000px; overflow: hidden; }
.submit-area { display: grid; gap: 15px; margin-top: 24px; padding-top: 22px; border-top: 1px solid #e8ddd3; }
.submit-area p { margin: 0; color: #665850; font-size: .83rem; line-height: 1.52; }
.submit-area a { color: var(--accent-dark); font-weight: 730; text-underline-offset: 3px; }
.primary-button, .secondary-button, .copy-button, .payment-toggle, .export-button, .text-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; font-weight: 730; border: 1px solid transparent; border-radius: 6px;
  transition: color .2s, background-color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.primary-button {
  position: relative; isolation: isolate; overflow: hidden;
  width: 100%; min-height: 53px; padding: 12px 19px;
  color: #fffaf3; background: #312018; border: 1px solid #493024;
  font-size: .93rem; letter-spacing: .01em;
  box-shadow: 0 5px 0 #e9d2be, 0 9px 21px rgba(89, 43, 24, .16);
}
.primary-button::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -85%; width: 60%;
  background: linear-gradient(95deg, transparent, rgba(246, 146, 69, .19), transparent);
  transform: skewX(-22deg); transition: left .7s ease;
}
.primary-button:hover { background: #4e2b1d; box-shadow: 0 5px 0 #e8c4aa, 0 11px 25px rgba(164, 78, 31, .23); }
.primary-button:hover::before { left: 130%; }
.primary-button span { transition: transform .2s; }
.primary-button:hover span { transform: translate(2px, -2px); }
.primary-button:active { transform: translateY(3px); box-shadow: 0 2px 0 #e9d2be; }
.secondary-button { min-height: 43px; padding: 10px 14px; color: #553a2b; background: #fff8f0; border-color: #decaba; font-size: .84rem; }
.secondary-button:hover { background: #f7e9da; border-color: #d0a887; }
.copy-button, .payment-toggle { min-height: 37px; padding: 7px 11px; color: #684936; border-color: #e4cbb6; background: #fffdfa; font-size: .76rem; }
.copy-row .copy-button { min-height: 24px; padding: 2px 7px; font-size: .64rem; line-height: 1.05; border-radius: 4px; flex: 0 0 auto; }
.copy-button:hover, .payment-toggle:hover { background: #fff1e4; border-color: #dca475; }
#form-message, #login-message, #dashboard-message {
  display: block; padding: 12px 14px; border: 1px solid #edcbb8; border-radius: 6px;
  background: #fff0e6; color: #873a23; font-size: .85rem; line-height: 1.46;
}
#form-message.is-success, #login-message.is-success, #dashboard-message.is-success { background: #edf6ee; border-color: #c9e1cd; color: var(--green); }
button:disabled { opacity: .59; cursor: wait; }

/* Confirmation stays hidden until the API responds — controlled by app.js. */
.success-state { display: grid; gap: 13px; padding: 10px 0; outline: 0; }
.success-state__check { display: grid; place-items: center; width: 53px; height: 53px; border-radius: 50%; background: #e8f2e8; color: var(--green); font-size: 1.5rem; }
.success-state .eyebrow { margin-bottom: -5px; }
.success-state h2 { margin: 0; font: 500 clamp(1.9rem, 5vw, 2.65rem)/1.1 var(--serif-reading); letter-spacing: -.04em; }
.success-state p { margin: 0; color: #62544b; }
.success-state p strong { color: var(--ink); }
.success-state .secondary-button { justify-self: start; margin-top: 5px; }
.public-area.is-complete .poster-card { display: none; }

/* El cartel real permanece intacto. */
.poster-card {
  order: 2; display: flex; min-width: 0; overflow: hidden;
  border: 1px solid #e5d5c7; border-radius: 7px;
  background: #fffdfa;
  box-shadow: 0 8px 23px rgba(101, 68, 48, .055);
}
.poster-card__art {
  position: relative; display: block; flex: 0 0 114px; overflow: hidden;
  isolation: isolate; background: #fff;
  appearance: none; -webkit-appearance: none; padding: 0; margin: 0;
  border: 0; line-height: 0; text-align: left; cursor: pointer;
  touch-action: pan-y; width: 100%;
}
.poster-card__art > img:first-child { display: block; width: 100%; height: auto; }
.poster-card__art:focus-visible { outline: 2px solid #c46e39; outline-offset: -3px; }
/* Pago: la misma cartelería, no un bloque promocional. */
.payment-panel {
  order: 3; min-width: 0; padding: 22px 20px;
  border: 1px solid #e7cdb6; border-radius: 7px;
  background: #fff5e9;
}
.payment-panel__top { margin-bottom: 10px; color: #b36c43; font-size: .67rem; font-weight: 830; letter-spacing: .17em; }
.payment-panel__heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.payment-panel h2 { margin: 0 0 13px; font: 500 1.68rem/1.09 var(--serif-reading); letter-spacing: -.04em; }
.payment-panel h2 em { color: #b85f30; font-style: italic; }
.payment-panel__price { flex: 0 0 auto; padding-top: 3px; color: #a14e2c; font: 500 1.6rem/1 var(--serif-display); }
.payment-panel > p { margin: 0 0 16px; color: #6b5848; font-size: .84rem; line-height: 1.55; }
.payment-method { min-width: 0; padding: 15px; border: 1px solid #ecd8c7; border-radius: 6px; background: rgba(255, 253, 248, .86); }
.payment-method h3 { margin: 0 0 10px; font-size: .95rem; }
.payment-label { display: block; margin: 13px 0 5px; color: #91745f; font-size: .65rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.payment-method__heading { color: #ad6038; font-size: .8rem; font-weight: 780; }
.payment-detail { color: #403126; font-size: .88rem; font-weight: 670; }
.copy-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px; min-width: 0; }
.copy-row strong { font-size: .86rem; overflow-wrap: anywhere; }
.payment-separator { display: flex; align-items: center; gap: 12px; margin: 10px 0; color: #ae6c45; font-size: .72rem; font-weight: 800; }
.payment-separator::before, .payment-separator::after { content: ""; flex: 1; height: 1px; background: #e3ccb7; }
.payment-separator span { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid #e6cfb9; border-radius: 50%; background: #fff8ef; }

/* Organización — consulta rápida de las inscripciones, adaptable a cualquier pantalla. */
.admin-area { padding: 20px 0 70px; }
.admin-area > .page-width { width: min(1480px, calc(100% - 24px)); }
.login-card { max-width: 500px; padding: 28px 24px; border: 1px solid #e0cbbb; border-radius: var(--radius); background: var(--white); box-shadow: 0 15px 42px rgba(90, 52, 28, .06); }
.admin-back--login { display: inline-flex; align-items: center; margin-bottom: 21px; }
.login-card__symbol { display: none; }
.login-card h2 { margin: 0 0 6px; font: 500 1.85rem/1.2 var(--serif-reading); }
.login-card p { margin: 0 0 23px; color: var(--muted); font-size: .88rem; }
#login-form { display: grid; gap: 18px; }
.dashboard { min-width: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.dashboard__top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 13px; margin-bottom: 20px; }
.dashboard__title { min-width: 0; }
.dashboard__top h2 { margin: 4px 0 0; font: 500 clamp(1.68rem, 4vw, 2.1rem)/1.1 var(--serif-reading); letter-spacing: -.04em; }
.admin-back--inline { display: inline-flex; align-items: center; margin: 0; padding: 4px 0; font-size: .77rem; }
.dashboard__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.text-button { min-height: 43px; padding: 10px; color: #886e5c; background: transparent; font-size: .83rem; }
.text-button:hover { color: var(--ink); background: #fbf1e8; }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 19px 0; }
.stat-card { min-width: 0; padding: 16px; border: 1px solid #e9d8c9; border-top: 2px solid #d39c71; background: #fcf8f3; border-radius: 5px; }
.stat-card__label { display: block; color: #846e5f; font-size: .75rem; }
.stat-card__value { display: block; margin-top: 5px; font: 500 2.1rem/1.1 var(--serif-reading); letter-spacing: -.04em; }
.stat-card--green .stat-card__value { color: var(--green); }
.stat-card--red .stat-card__value { color: #b14f30; }
.stat-card--gold .stat-card__value { color: #9d642e; }
.dashboard-toolbar { padding: 17px; border: 1px solid #e7d5c5; border-radius: 6px; background: #fbf7f2; }
.toolbar-title { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.toolbar-title__heading { display: grid; gap: 2px; min-width: 0; }
.toolbar-title h3 { margin: 0; font: 500 1.4rem/1.15 var(--serif-reading); }
.toolbar-title__heading > span { color: var(--muted); font-size: .75rem; }
.view-toggle { display: inline-flex; flex: 0 0 auto; align-items: stretch; padding: 3px; gap: 2px; border: 1px solid #e3cfc0; border-radius: 7px; background: #fffdf9; }
.view-toggle__button { min-height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 5px 9px; color: #755b4a; background: transparent; border: 0; border-radius: 5px; font-size: .75rem; font-weight: 700; }
.view-toggle__button:hover { background: #f8ece0; }
.view-toggle__button.is-selected { color: #fffaf6; background: #7b452c; box-shadow: 0 1px 3px rgba(79,35,14,.16); }
.view-toggle__button svg { display: block; flex: 0 0 16px; }
@media (max-width: 359px) { .view-toggle__button { padding-inline: 6px; gap: 3px; font-size: .69rem; } }

.filters-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.toolbar-bottom { display: grid; align-items: end; gap: 14px; margin-top: 18px; }
.toolbar-bottom p { margin: 0; color: var(--muted); font-size: .78rem; }
.export-button { min-height: 47px; padding: 10px 15px; color: #fffaf3; background: #342218; font-size: .85rem; }
.export-button:hover { background: #4f2b1d; }
.registration-list { display: grid; gap: 12px; margin-top: 14px; border: 0; background: transparent; overflow: visible; }
.participant-row {
  min-width: 0; border: 1px solid #e4d4c7; border-top: 5px solid #b7533c;
  border-radius: 9px; background: #fffdfa; overflow: hidden;
  box-shadow: 0 4px 15px rgba(74, 45, 27, .035);
}
.participant-row.is-paid { border-top-color: #32845f; }
.participant-row:hover { background: #fffbf6; }
/* Mobile first: name + payment state, with a readable full-width answer below. */
.participant-row__line { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "person actions" "answer answer"; align-items: start; gap: 11px; padding: 14px 15px 16px; }
.participant-row__person { grid-area: person; }
.participant-row__answer { grid-area: answer; }
.participant-row__actions { grid-area: actions; }

.participant-row__person, .participant-row__answer, .participant-row__actions { min-width: 0; }
.participant-row__name { margin: 0 0 5px; color: #34251d; font: 670 clamp(.98rem, 1.8vw, 1.1rem)/1.3 var(--sans); overflow-wrap: anywhere; }
.participant-row__meta { margin: 0; color: #968476; font-size: .71rem; line-height: 1.4; }
.participant-row__answer { align-self: stretch; display: grid; align-content: center; gap: 4px; padding: 2px 4px 2px 14px; border-left: 2px solid #ead1bd; }
.participant-row__answer-label { color: #976744; font-size: .64rem; line-height: 1.25; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.participant-row__answer p { margin: 0; color: #412d22; font-size: .83rem; line-height: 1.48; white-space: pre-wrap; overflow-wrap: anywhere; }
.participant-row__answer.is-empty p { color: #a69b92; font-style: italic; }
.participant-row__answer--all { width: 100%; padding: 13px 0 0; border: 0; border-top: 1px solid #eaded3; background: transparent; }
.participant-row__all-grid { display: grid; grid-template-columns: 1fr; column-gap: 22px; row-gap: 13px; min-width: 0; }
.participant-row__all-item { display: grid; align-content: start; gap: 2px; min-width: 0; }
.participant-row__all-item p.is-empty { color: #9f9389; font-style: italic; }
.participant-row__all-item.is-match { background: #fff0d8; box-shadow: 0 0 0 4px #fff0d8; border-radius: 1px; }

.participant-row__answer.is-match { border-left-color: #d98446; background: #fff2df; border-radius: 0 4px 4px 0; }
.participant-row__actions { justify-self: end; display: grid; justify-items: end; align-content: start; gap: 8px; }
.participant-row__actions .payment-toggle { min-height: 31px; padding: 5px 8px; font-size: .69rem; white-space: nowrap; }
.payment-badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 8px; border-radius: 4px; color: #963f28; background: #fff0e5; font-size: .72rem; font-weight: 780; white-space: nowrap; }
.payment-badge__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.payment-badge--paid { color: #21694b; background: #eaf5ec; }
.participant-row > details { margin: 0 17px 12px; padding-top: 7px; border-top: 1px solid #f0e7df; }
.participant-row > details > summary { cursor: pointer; width: fit-content; color: #a16843; font-size: .74rem; font-weight: 670; }
.detail-grid { display: grid; gap: 9px; margin-top: 12px; }
.detail-field { min-width: 0; padding: 12px; border: 1px solid #eee1d6; border-radius: 4px; background: #faf6f1; }
.detail-field span { display: block; margin-bottom: 4px; color: #897468; font-size: .69rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.detail-field p { margin: 0; color: #49392f; font-size: .83rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.data-hit { padding: 1px 3px; border-radius: 3px; color: #7c360c; background: #ffdfae; font-weight: 760; }
.empty-state { grid-column: 1/-1; padding: 28px 15px; border: 1px dashed #d9bea9; border-radius: 6px; color: var(--muted); background: #fffdfa; text-align: center; }
.empty-state strong { display: block; color: var(--ink); }

/* Escalado progresivo: formularios tocables primero, columnas solo cuando caben. */
@media (min-width: 430px) {
  .field-grid--short, .field-grid--contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-mark { flex-basis: 83px; width: 83px; height: 107px; }
  .brand-mark img { width: 79px; height: 95px; }
}
@media (min-width: 650px) {
  .page-width { width: min(1120px, calc(100% - 44px)); }
  .public-area { padding-top: 25px; }
  .intro-card { padding-bottom: 20px; }
  .intro-card__identity { gap: 18px; }
  .intro-card h1 { font-size: .77rem; }
  .intro-card__summary { font-size: .89rem; }
  .camp-price { min-width: 89px; padding: 8px 12px; }
  .camp-price strong { font-size: 1.9rem; }
  .form-shell { padding: 33px 37px 36px; }
  .form-fields { gap: 24px; }
  .contact-group { padding-left: 23px; }
  .submit-area { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .submit-area #form-message { grid-column: 1/-1; }
  .primary-button { width: auto; min-width: 215px; }
  .poster-card__art { flex-basis: 150px; }
  .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .toolbar-bottom { grid-template-columns: minmax(0, 1fr) auto; }
  .admin-area > .page-width { width: min(1480px, calc(100% - 48px)); }
  .login-card { padding: 34px; }
}
@media (min-width: 980px) {
  .public-area { padding: 30px 0 75px; }
  .public-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(275px, 315px); gap: 24px; align-items: start; }
  .public-layout__main, .public-layout__side { display: grid; min-width: 0; align-content: start; gap: 19px; }
  .intro-card { padding: 6px 6px 21px; }
  .brand-mark { flex-basis: 92px; width: 92px; height: 119px; }
  .brand-mark img { width: 91px; height: 109px; }
  .fire-title { font-size: clamp(2.6rem, 3.5vw, 3.48rem); }
  .intro-card__bottom { margin-top: 16px; }
  .form-shell { padding: 33px 37px 38px; }
  .poster-card { display: block; }
  .poster-card__art { width: 100%; }
  .payment-panel { padding: 24px 21px; }
}
@media (max-width: 359px) {
  .page-width { width: calc(100% - 20px); }
  .intro-card__identity { gap: 7px; }
  .brand-mark { flex-basis: 57px; width: 57px; }
  .brand-mark img { width: 56px; height: 73px; }
  .fire-title { font-size: 1.68rem; }
  .form-shell { padding: 20px 15px; }
  .contact-group { padding-left: 14px; }
  .camp-price { min-width: 65px; padding-inline: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .brand-mark img { transform: none; }
}

/* Organización ultracompacta: controles reducidos SIN achicar campos del formulario. */
.dashboard-toolbar { padding: 12px 13px; }
.toolbar-title { margin-bottom: 9px; }
.toolbar-title h3 { font-size: 1.13rem; }
.filters-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px 9px; align-items: end; }
.filters-grid .field--search { grid-column: 1/-1; }
.filters-grid .field { gap: 3px; }
.filters-grid .field label { font-size: .66rem; font-weight: 780; line-height: 1.3; white-space: nowrap; }
.filters-grid .field :is(input, select) {
  min-height: 38px; height: 38px; width: 100%; padding: 6px 9px;
  border-radius: 4px; font-size: .79rem; overflow: hidden; text-overflow: ellipsis;
}
.filters-grid .field select { padding-right: 27px; background-position: right 9px center; background-size: 11px 7px; }
.filters-grid .field input[type="search"] { font-size: 16px; }
.toolbar-bottom { margin-top: 9px; gap: 8px; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.toolbar-bottom p { font-size: .70rem; max-width: 390px; }
.export-button { min-height: 36px; padding: 7px 10px; font-size: .73rem; }

/* La animación del logotipo no depende de la barra de clics. Los efectos
   cinematográficos se dibujan solo en la escena fija de la pantalla. */
/* A single fixed cinematic poster: exact original glyphs and illustration,
   with the paper removed. No banners, input fire or layout changes. */
.ignition-scene {
  position: fixed; inset: 0; z-index: 40; overflow: clip;
  isolation: isolate; contain: layout paint; pointer-events: none;
}
.ignition-scene[hidden] { display: none !important; }
.ignition-scene__veil,
.ignition-scene__aura,
.ignition-scene__flash,
.ignition-scene__embers { position: absolute; inset: 0; pointer-events: none; }
.ignition-scene__veil {
  opacity: 0; will-change: opacity;
  background:
    radial-gradient(ellipse 52% 49% at 50% 50%, rgba(17,8,8,.79), rgba(5,3,4,.99) 77%),
    linear-gradient(125deg, rgba(9,4,5,.96), rgba(0,0,0,.97));
}
.ignition-scene__aura {
  opacity: 0; will-change: opacity;
  background:
    radial-gradient(ellipse 28% 32% at 50% 46%, rgba(255,202,96,.53), rgba(255,98,10,.36) 43%, transparent 84%),
    radial-gradient(ellipse 48% 42% at 50% 62%, rgba(255,117,28,.26), transparent 82%),
    radial-gradient(ellipse 17% 22% at 50% 53%, rgba(255,244,180,.26), transparent 91%);
  mix-blend-mode: screen;
}
.ignition-scene__flash {
  opacity: 0; will-change: opacity;
  background: radial-gradient(circle at 50% 50%, rgba(255,250,197,.74), rgba(255,129,34,.32) 24%, transparent 63%);
  mix-blend-mode: screen;
}
.ignition-scene__flash--hit { animation: ignitionFlash .37s ease-out 1; }
@keyframes ignitionFlash {
  0% { opacity: 0; transform: scale(.84); }
  15% { opacity: .85; }
  100% { opacity: 0; transform: scale(1.17); }
}
.ignition-scene__emblem {
  position: absolute; left: 50%; top: 50%;
  width: min(74vw, 46vh, 440px);
  aspect-ratio: 479 / 637; opacity: 0;
  transform: translate(-50%, -50%) scale(.76); transform-origin: 50% 50%;
  will-change: transform, opacity;
}
.ignition-scene__emblem img,
.ignition-scene__sprite {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
}
.ignition-scene__glow {
  opacity: var(--glow-opacity, 0);
  filter: blur(17px) brightness(1.8) saturate(1.65);
  mix-blend-mode: screen;
  animation: posterEmberBreath 1.95s ease-in-out infinite;
}
@keyframes posterEmberBreath {
  0%,100% { transform: scale(1.02) translateY(1px); }
  25% { transform: scale(1.12) translateY(-5px); }
  47% { transform: scale(1.06) translateY(-1px); }
  72% { transform: scale(1.15) translateY(-4px); }
}
.ignition-scene__outline {
  opacity: .97;
  filter: drop-shadow(0 0 2px rgba(255,161,73,.34));
}
.ignition-scene__hot {
  opacity: var(--hot-opacity, 0);
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 7px rgba(255,204,95,.84)) drop-shadow(0 0 21px rgba(255,104,17,.69));
  animation: posterMolten 1.55s ease-in-out infinite alternate;
}
@keyframes posterMolten {
  from { transform: scale(.995) translateY(1px); }
  36% { transform: scale(1.017) translateY(-2px); }
  to { transform: scale(1.007) translateY(-1px); }
}
.ignition-scene__core {
  opacity: var(--core-opacity, 0);
  mix-blend-mode: screen;
  filter: brightness(1.45) saturate(.65) drop-shadow(0 0 7px rgba(255,237,181,.9));
  animation: posterCoreAlive 1.07s ease-in-out infinite alternate;
}
@keyframes posterCoreAlive {
  from { transform: scale(.987) translateY(1px); }
  to { transform: scale(1.037) translateY(-2px); }
}
.ignition-scene__lettering {
  opacity: var(--lettering-opacity, 0);
  filter: drop-shadow(0 0 1.8px rgba(255,241,183,.88)) drop-shadow(0 0 6px rgba(255,166,60,.68));
}
.ignition-scene__sprite {
  opacity: 0; mix-blend-mode: screen; will-change: opacity;
}
.ignition-scene__embers { display: block; width: 100%; height: 100%; }
@media (max-width: 600px) {
  .ignition-scene__emblem { width: min(74vw, 52vh, 340px); }
}
@media (prefers-reduced-motion: reduce) {
  .ignition-scene { display: none !important; }
  .brand-mark img, .brand-mark::before, .brand-mark::after { animation: none !important; }
  .brand-mark::after { opacity: 0; }
  .ignition-scene__glow, .ignition-scene__hot, .ignition-scene__core { animation: none !important; }
}

/* Small screens: payment follows the form; the existing poster comes last.
   This keeps registration and payment actionable without a promotional hero. */
@media (max-width: 979px) {
  .payment-panel { order: 2; }
  .poster-card { order: 3; width: min(100%, 330px); margin-inline: auto; }
  .poster-card__art { flex: 1 1 auto; }
}

/* Agrupaciones cerradas: una cabecera con contador y el mismo listado de filas. */
.registration-list--grouped { border: 0; border-radius: 0; background: none; gap: 16px; overflow: visible; }
.grouped-section { min-width: 0; border: 1px solid #e6d6c8; border-radius: 9px; background: #fffdfa; overflow: hidden; }
.grouped-section__heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: #f8f1e9; border-bottom: 1px solid #e7d6c4; }
.grouped-section__heading > div { min-width: 0; }
.grouped-section__overline { display: block; margin-bottom: 1px; color: #996c50; font-size: .62rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.grouped-section__heading h4 { margin: 0; color: #38251b; font: 600 1.13rem/1.3 var(--serif-reading); overflow-wrap: anywhere; }
.grouped-section__count { flex: 0 0 auto; padding: 4px 9px; border: 1px solid #e2cbb7; border-radius: 99px; background: #fffcf8; color: #855e43; font-size: .72rem; font-weight: 760; white-space: nowrap; }
.grouped-section__items { display: grid; gap: 10px; padding: 12px; background: #fbf8f4; }

/* Controles compactos mobile first: búsqueda, agrupación, dato y vacíos. */
.filters-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 9px; align-items: end; }
.filters-grid .field--search, .filters-grid .field--group, .filters-grid .field--highlight { grid-column: auto; }
.filter-check { align-self: end; display: inline-flex; align-items: center; gap: 8px; width: fit-content; min-height: 33px; padding: 2px 5px; color: #57483e; font-size: .76rem; font-weight: 660; cursor: pointer; }
.filter-check input { width: 17px; height: 17px; margin: 0; accent-color: #aa5e30; }
.filter-check:has(input:disabled) { color: #ab9d92; cursor: not-allowed; }

/* Dos vistas, la misma ficha y las mismas acciones. Grid pasa de 1 → 2 → 3 columnas. */
.registration-list--grid { gap: 12px; border: 0; background: transparent; overflow: visible; align-items: start; }
.registration-list--grid > .participant-row,
.registration-list--grid .grouped-section__items > .participant-row {
  border-right: 1px solid #e6d7ca; border-bottom: 1px solid #e6d7ca;
  border-left: 1px solid #e6d7ca; border-radius: 8px; overflow: hidden;
  box-shadow: 0 4px 15px rgba(79,45,23,.035);
}
.registration-list--grid .participant-row__line { display: flex; flex-direction: column; align-items: stretch; gap: 11px; padding: 13px; }
.registration-list--grid .participant-row__answer { width: 100%; padding: 9px 11px; background: #fdf8f2; border-left: 2px solid #d9ad87; border-radius: 0 4px 4px 0; }
.registration-list--grid .participant-row__answer--all { padding: 11px 0 0; background: transparent; border-left: 0; border-top: 1px solid #eaded3; border-radius: 0; }
.registration-list--grid .participant-row__actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; justify-self: stretch; width: 100%; }
.registration-list--grid .participant-row__all-grid { grid-template-columns: 1fr; }
.registration-list--grid .grouped-section { grid-column: 1/-1; border: 0; background: transparent; overflow: visible; }
.registration-list--grid .grouped-section__items { padding: 0; background: transparent; }
.registration-list--grid .grouped-section__heading { margin-bottom: 10px; border: 1px solid #e6d7ca; border-radius: 7px; }
.registration-list--grid .grouped-section__items { display: grid; gap: 12px; align-items: start; }

@media (min-width: 360px) {
  .filters-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters-grid .field--search, .filters-grid .filter-check { grid-column: 1 / -1; }
}
@media (min-width: 420px) {
  .participant-row__all-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 700px) {
  .registration-list:not(.registration-list--grid) .participant-row__all-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 700px) {
  .filters-grid { grid-template-columns: minmax(180px, 1.4fr) minmax(130px, .82fr) minmax(160px, 1.1fr); }
  .filters-grid .field--search, .filters-grid .field--group, .filters-grid .field--highlight { grid-column: auto; }
  .filters-grid .filter-check { grid-column: 1 / -1; }
  .registration-list--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .registration-list--grid .grouped-section__items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 700px) {
  .registration-list:not(.registration-list--grid) .participant-row--all .participant-row__actions {
    display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px;
  }
}
@media (min-width: 811px) {
  .registration-list:not(.registration-list--grid) .participant-row:not(.participant-row--all) .participant-row__line {
    grid-template-columns: clamp(160px, 17vw, 228px) minmax(0, 1fr) minmax(118px, 145px);
    grid-template-areas: "person answer actions"; align-items: start; gap: 18px; padding: 16px 22px;
  }
  .registration-list:not(.registration-list--grid) .participant-row--all .participant-row__line {
    grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "person actions" "answer answer";
    align-items: start; gap: 13px; padding: 16px 22px 19px;
  }
  .registration-list:not(.registration-list--grid) .participant-row:not(.participant-row--all) .participant-row__answer { padding: 4px 8px 4px 16px; }
}
@media (min-width: 1000px) {
  .filters-grid { grid-template-columns: minmax(200px, 1.4fr) minmax(135px, .86fr) minmax(170px, 1fr) auto; }
  .filters-grid .filter-check { grid-column: auto; white-space: nowrap; }
}
@media (min-width: 1100px) {
  .registration-list:not(.registration-list--grid) .participant-row__all-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .registration-list--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .registration-list--grid .grouped-section__items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .stats-grid { margin: 12px 0; gap: 8px; }
  .stat-card { padding: 11px 12px; }
  .stat-card__value { font-size: 1.78rem; }
  .dashboard__top { margin-bottom: 12px; }
  .dashboard-toolbar { padding: 12px; }
  .toolbar-bottom { justify-content: flex-end; }
}
@media (max-width: 430px) {
  .participant-row__line { gap: 10px; }
  .participant-row__name { font-size: .96rem; }
  .participant-row__meta { font-size: .67rem; }
  .participant-row__actions { gap: 5px; }
  .participant-row__actions .payment-toggle { font-size: .65rem; }
}

/* Propagación de la onda: deformación de perspectiva y vibración progresivas
   sobre el DOM, sin impedir interacciones ni generar scroll horizontal. */
@keyframes fireImpact {
  0%,100% { transform: perspective(1100px) translate3d(0,0,0) rotateX(0deg) rotateY(0deg); }
  12% { transform: perspective(1100px) translate3d(calc(var(--fire-impact-shift, 1px) * -.76),
        calc(var(--fire-impact-shift, 1px) * .29), var(--fire-press-depth, 2px))
        rotateX(var(--fire-tilt-x, .02deg)) rotateY(var(--fire-tilt-y, .02deg)); }
  28% { transform: perspective(1100px) translate3d(calc(var(--fire-impact-shift, 1px) * .62),
        calc(var(--fire-impact-shift, 1px) * -.46), 0)
        rotateX(calc(var(--fire-tilt-x, .02deg) * -.75)) rotateY(calc(var(--fire-tilt-y, .02deg) * -.75)); }
  46% { transform: perspective(1100px) translate3d(calc(var(--fire-impact-shift, 1px) * -.40),
        calc(var(--fire-impact-shift, 1px) * -.20), calc(var(--fire-press-depth, 2px) * .4))
        rotateX(calc(var(--fire-tilt-x, .02deg) * .48)) rotateY(calc(var(--fire-tilt-y, .02deg) * .48)); }
  68% { transform: perspective(1100px) translate3d(calc(var(--fire-impact-shift, 1px) * .22),
        calc(var(--fire-impact-shift, 1px) * .20), 0)
        rotateX(calc(var(--fire-tilt-x, .02deg) * -.25)) rotateY(calc(var(--fire-tilt-y, .02deg) * -.25)); }
}
body.fire-impact main {
  animation: fireImpact var(--fire-impact-duration, 210ms) cubic-bezier(.22,.06,.25,1) 1;
  transform-origin: var(--fire-origin-x, 50%) var(--fire-origin-y, 50%);
  will-change: transform;
}
body.fire-impact::after {
  content: ""; position: fixed; inset: 0; z-index: 39;
  pointer-events: none;
  background: radial-gradient(circle var(--fire-lens-radius, 100px) at var(--fire-hit-x, 50%) var(--fire-hit-y, 50%),
    rgba(255,249,212,.13), rgba(255,157,55,.16) 30%, rgba(255,82,20,.11) 52%, transparent 83%);
  mix-blend-mode: screen; opacity: 0;
  animation: firePressureLens var(--fire-impact-duration, 210ms) ease-out 1;
}
@keyframes firePressureLens {
  0% { opacity: 0; }
  21% { opacity: var(--fire-impact-light, .15); }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  body.fire-impact main, body.fire-impact::after { animation: none !important; }
}

/* Gestión destructiva: diálogo accesible, sin dependencias y mobile first. */
.delete-open-button {
  min-height: 40px; padding: 8px 12px; border: 1px solid #e1b1a6;
  border-radius: 5px; background: #fff8f4; color: #a4382b;
  font-size: .79rem; font-weight: 760;
}
.delete-open-button:hover:not(:disabled) { border-color: #bb5948; background: #fff0eb; }
.delete-open-button:disabled { opacity: .55; cursor: not-allowed; }
.delete-dialog {
  width: min(640px, calc(100% - 20px)); max-width: 640px;
  max-height: min(90dvh, 830px); margin: auto; padding: 0;
  border: 1px solid #e5c8be; border-radius: 12px;
  background: #fffdfa; color: var(--ink);
  box-shadow: 0 28px 95px rgba(34,18,12,.28);
}
.delete-dialog::backdrop { background: rgba(28,14,10,.68); backdrop-filter: blur(4px); }
.delete-dialog__frame { display: flex; flex-direction: column; max-height: min(90dvh, 830px); min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.delete-dialog__header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 20px 18px 13px; border-bottom: 1px solid #eee0d6;
}
.delete-dialog__eyebrow { display: block; margin-bottom: 5px; color: #a54b3e; font-size: .62rem; font-weight: 850; letter-spacing: .1em; }
.delete-dialog__header h2 { margin: 0; font: 600 clamp(1.38rem, 5vw, 1.85rem)/1.13 var(--serif-reading); }
.delete-dialog__close { flex: 0 0 36px; width: 36px; height: 36px; border: 1px solid #eadbd2; border-radius: 6px; background: #fffaf7; color: #6b5043; font-size: 1.6rem; line-height: 1; }
.delete-dialog__close:hover { background: #fff0e9; }
#delete-select-step, #delete-confirm-step { min-height: 0; }
#delete-select-step { display: flex; flex-direction: column; }
.delete-dialog__intro { margin: 0; padding: 14px 18px 8px; color: #67534a; font-size: .82rem; }
.delete-dialog__search { display: grid; gap: 4px; padding: 5px 18px 12px; }
.delete-dialog__search label { color: #725c50; font-size: .72rem; font-weight: 750; }
.delete-dialog__search input {
  width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #dac6b7;
  border-radius: 6px; background: #fff; font-size: 16px;
}
.delete-dialog__select-bar {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
  padding: 10px 18px; border-block: 1px solid #eee0d6; background: #fcf5ed;
}
.delete-dialog__check-all { display: inline-flex; align-items: center; gap: 9px; font-size: .82rem; font-weight: 750; cursor: pointer; }
.delete-dialog__check-all input, .delete-dialog__item input { flex: 0 0 19px; width: 19px; height: 19px; margin: 0; accent-color: #a13e2d; }
#delete-selected-count { color: #916e60; font-size: .73rem; font-weight: 650; }
.delete-dialog__items {
  display: grid; align-content: start; min-height: 88px; max-height: min(43dvh, 430px);
  overflow-y: auto; overscroll-behavior: contain;
  scrollbar-color: #d7bbaa transparent;
}
.delete-dialog__item {
  display: flex; gap: 11px; align-items: center; min-width: 0; padding: 11px 18px;
  border-bottom: 1px solid #f0e5dd; cursor: pointer;
}
.delete-dialog__item:hover { background: #fff9f1; }
.delete-dialog__item.is-selected { background: #fff1e9; }
.delete-dialog__item-person { display: grid; flex: 1; min-width: 0; }
.delete-dialog__item-person strong { overflow-wrap: anywhere; color: #39251d; font-size: .85rem; line-height: 1.35; }
.delete-dialog__item-person small { color: #8e7768; font-size: .72rem; }
.delete-dialog__item-status { flex: 0 0 auto; border-radius: 4px; background: #faece7; color: #a54b32; padding: 4px 7px; font-size: .69rem; font-weight: 750; }
.delete-dialog__item-status.is-paid { background: #eaf4eb; color: #27654a; }
.delete-dialog__empty { margin: 0; padding: 26px 18px; color: #816c5f; text-align: center; font-size: .82rem; }
.delete-dialog__footer {
  position: sticky; bottom: 0; z-index: 2;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 9px;
  padding: 13px 18px 16px; border-top: 1px solid #eee0d6; background: #fffdfa;
}
.delete-dialog__footer button { min-height: 42px; }
.delete-dialog__danger { border: 1px solid #ac4332; border-radius: 5px; background: #a43b2e; color: #fffaf8; padding: 9px 13px; font-size: .79rem; font-weight: 760; }
.delete-dialog__danger:hover:not(:disabled) { background: #842a21; }
.delete-dialog__danger:disabled { opacity: .45; cursor: not-allowed; }
.delete-dialog__warning { margin: 16px 18px 10px; padding: 16px; border: 1px solid #ebbbb0; border-left: 4px solid #b53c2e; border-radius: 5px; background: #fff2ed; }
.delete-dialog__warning strong { color: #9b352b; font-size: .95rem; }
.delete-dialog__warning p { margin: 7px 0 0; color: #59392f; font-size: .87rem; }
.delete-dialog__warning-detail { font-size: .77rem !important; }
.delete-dialog__confirmation-list { display: flex; flex-wrap: wrap; gap: 6px; max-height: 18dvh; overflow-y: auto; padding: 4px 18px 16px; }
.delete-dialog__confirmation-list span, .delete-dialog__confirmation-list small { padding: 5px 8px; border: 1px solid #ead9cd; border-radius: 4px; background: #faf6f1; color: #6a4e3e; font-size: .75rem; }
.delete-dialog__error { margin: 0 18px 12px; padding: 10px 12px; border-radius: 5px; background: #ffebe8; color: #932c20; font-size: .83rem; }
@media (min-width: 650px) {
  .delete-dialog__header { padding: 24px 26px 16px; }
  .delete-dialog__intro { padding-inline: 26px; }
  .delete-dialog__search { padding-inline: 26px; }
  .delete-dialog__select-bar { padding-inline: 26px; }
  .delete-dialog__item { padding-inline: 26px; }
  .delete-dialog__footer { padding-inline: 26px; }
  .delete-dialog__warning { margin-inline: 26px; }
  .delete-dialog__confirmation-list { padding-inline: 26px; }
}
@media (max-width: 400px) {
  .dashboard__actions .delete-open-button { font-size: .74rem; }
  .delete-dialog__footer { display: grid; grid-template-columns: 1fr; }
  .delete-dialog__footer button { width: 100%; }
  .delete-dialog__item-status { font-size: .63rem; padding: 3px 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .delete-dialog::backdrop { backdrop-filter: none; }
}
