:root {
  --ink: #17333a;
  --ink-soft: #496067;
  --navy: #123b46;
  --navy-deep: #0b2931;
  --teal: #1f7a78;
  --teal-light: #d9eeeb;
  --coral: #e86f51;
  --coral-dark: #ca543b;
  --cream: #f7f3e9;
  --paper: #fffdf8;
  --line: #dbe3df;
  --white: #fff;
  --danger: #a33e31;
  --danger-bg: #fff0ec;
  --success: #23664f;
  --success-bg: #e6f4ed;
  --shadow: 0 18px 55px rgba(11, 41, 49, 0.12);
  --radius: 20px;
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--cream); font-family: var(--font); line-height: 1.55; }
body::selection { background: #f2c5b8; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: wait; opacity: .72; }
[hidden] { display: none !important; }
code { padding: .1rem .35rem; border-radius: 5px; background: #edf0ed; font-size: .9em; }

.skip-link { position: fixed; z-index: 100; top: .75rem; left: .75rem; transform: translateY(-160%); padding: .7rem 1rem; border-radius: 8px; background: var(--white); box-shadow: var(--shadow); }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.hero { position: relative; min-height: 560px; overflow: hidden; color: var(--white); background: linear-gradient(145deg, var(--navy-deep), #164d57 68%, #1b6668); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .12; background-image: radial-gradient(circle at 1px 1px, white 1px, transparent 0); background-size: 28px 28px; mask-image: linear-gradient(to bottom, #000, transparent 85%); }
.hero__content { position: relative; z-index: 2; width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 38px 0 140px; }
.hero__glow { position: absolute; border-radius: 999px; filter: blur(3px); opacity: .22; }
.hero__glow--one { width: 420px; height: 420px; top: -190px; right: -60px; background: #63d6c7; }
.hero__glow--two { width: 260px; height: 260px; bottom: 60px; left: 8%; background: #ffad77; opacity: .11; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; font-size: .82rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.brand__mark { display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid rgba(255,255,255,.32); border-radius: 14px; background: rgba(255,255,255,.1); font-weight: 850; letter-spacing: -.03em; }
.hero__copy { max-width: 760px; padding-top: 70px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--coral); font-size: .77rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.hero .eyebrow { color: #ffc1ac; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }
.hero h1 { max-width: 760px; margin: 17px 0 16px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.8rem, 7vw, 5.5rem); font-weight: 500; letter-spacing: -.045em; line-height: .98; }
.hero__copy > p { max-width: 620px; margin: 0; color: rgba(255,255,255,.76); font-size: clamp(1rem, 2vw, 1.25rem); }
.event-facts { display: flex; flex-wrap: wrap; gap: 22px 0; margin: 54px 0 0; }
.event-facts div { min-width: 170px; padding: 0 30px; border-left: 1px solid rgba(255,255,255,.22); }
.event-facts div:first-child { padding-left: 0; border-left: 0; }
.event-facts dt { color: rgba(255,255,255,.53); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.event-facts dd { margin: 5px 0 0; font-weight: 700; }
.hero__landscape { position: absolute; z-index: 1; inset: auto 0 -1px; height: 150px; pointer-events: none; }
.hero__landscape span { position: absolute; bottom: -60px; width: 55vw; height: 180px; border-radius: 50% 50% 0 0; transform: rotate(-4deg); background: #0d323a; }
.hero__landscape span:nth-child(1) { left: -12%; opacity: .75; }
.hero__landscape span:nth-child(2) { left: 24%; bottom: -105px; width: 65vw; height: 230px; background: #f7f3e9; }
.hero__landscape span:nth-child(3) { right: -25%; bottom: -120px; width: 66vw; height: 235px; background: #f7f3e9; }

.registration-shell { position: relative; z-index: 3; width: min(980px, calc(100% - 32px)); margin: -72px auto 70px; }
.form-card, .install-card, .success-card, .login-card { border: 1px solid rgba(18,59,70,.08); border-radius: 28px; background: var(--paper); box-shadow: var(--shadow); }
.form-card { padding: clamp(28px, 6vw, 64px); }
.section-heading { display: flex; gap: 18px; align-items: flex-start; padding-bottom: 38px; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 500; line-height: 1.05; }
.section-heading p { margin: 7px 0 0; color: var(--ink-soft); }
.step-number { display: grid; flex: 0 0 48px; height: 48px; place-items: center; border-radius: 14px; color: var(--white); background: var(--coral); font-size: .8rem; font-weight: 850; }

.registration-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; margin-bottom: 42px; }
.registration-option { display: flex; flex-direction: column; gap: 10px; padding: 23px; border: 1px solid #d1ded9; border-radius: 17px; background: #fff; text-decoration: none; transition: border-color .18s, box-shadow .18s; }
.registration-option > strong { font-size: 1.15rem; line-height: 1.35; }
.registration-option > span:last-child { color: var(--ink-soft); font-size: .84rem; }
.registration-option--edit { border-color: #b4d7cd; background: #edf7f3; }
.registration-option--edit .eyebrow { color: var(--teal); }
.registration-option--church { border-color: #c6d4e1; background: #f0f5fa; }
.registration-option--church .eyebrow { color: #31557d; }
.registration-option:hover { border-color: var(--teal); box-shadow: 0 5px 18px rgba(18,59,70,.08); }
.registration-option:focus-visible { outline: 3px solid rgba(31,122,120,.28); outline-offset: 3px; }
#new-registration { scroll-margin-top: 24px; }
.participant-shell { width: min(980px, calc(100% - 32px)); margin: 48px auto 70px; }
.self-service-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.self-service-actions > .button { flex: 1 1 200px; }
.child-removal-confirmation .consent { color: inherit; }

.church-shell { width: min(1200px, calc(100% - 32px)); margin: 48px auto 70px; }
.church-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 24px 0; }
.church-summary > article, .church-summary > div { padding: 21px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.church-summary strong { display: block; margin: 5px 0; color: var(--navy); font-size: 2rem; line-height: 1.15; }
.church-summary span, .church-summary small { color: var(--ink-soft); font-size: .8rem; }
.church-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 24px 0 18px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.church-filters > .field { flex: 1 1 250px; }
.church-filters > .button { min-height: 50px; }
.church-list { overflow-x: auto; max-width: 100%; border: 1px solid var(--line); border-radius: 17px; background: var(--white); overscroll-behavior-x: contain; }
.church-list table { min-width: 760px; }
.church-list th, .church-list td { vertical-align: top; }
.church-list td:first-child { min-width: 190px; max-width: 280px; white-space: normal; overflow-wrap: anywhere; }
.church-list .button { min-height: 40px; padding: 8px 13px; font-size: .78rem; }
.church-list-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 24px 0 14px; }
.church-list-heading h2 { margin: 0; font-size: 1.2rem; }
.church-list-note { color: var(--ink-soft); font-size: .8rem; }
.church-code-value { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .03em; }

.registration-form { position: relative; }
.form-section { margin: 0; padding: 42px 0; border: 0; border-bottom: 1px solid var(--line); }
.form-section--last { border-bottom: 0; }
.form-section > legend { width: 100%; margin-bottom: 26px; padding: 0; }
.form-section > legend span { font-size: 1.15rem; font-weight: 800; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.field { display: flex; min-width: 0; flex-direction: column; gap: 8px; color: var(--ink); font-size: .88rem; font-weight: 720; }
.field--wide { grid-column: span 2; }
.field__label { display: block; }
.required { color: var(--coral-dark); }
.field input, .field select, .field textarea, .filter-bar input, .filter-bar select { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #c9d5d1; border-radius: 11px; outline: 0; color: var(--ink); background: #fff; font-weight: 500; transition: border-color .18s, box-shadow .18s, background .18s; }
.field textarea { min-height: 125px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder, .filter-bar input::placeholder { color: #91a19d; }
.field input:focus, .field select:focus, .field textarea:focus, .filter-bar input:focus, .filter-bar select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(31,122,120,.13); }
.field input[readonly] { color: var(--ink-soft); background: #edf3f0; }
.field small { color: #70817d; font-size: .75rem; font-weight: 500; }
.choice-row { display: flex; flex-wrap: wrap; gap: 9px; }
.choice-pill { cursor: pointer; }
.choice-pill input { position: absolute; opacity: 0; pointer-events: none; }
.choice-pill span { display: grid; min-width: 98px; min-height: 50px; place-items: center; padding: 9px 17px; border: 1px solid #c9d5d1; border-radius: 11px; background: var(--white); font-weight: 650; transition: .18s; }
.choice-pill input:checked + span { border-color: var(--teal); color: var(--teal); background: var(--teal-light); box-shadow: inset 0 0 0 1px var(--teal); }
.choice-pill input:focus-visible + span { outline: 3px solid rgba(31,122,120,.25); outline-offset: 2px; }

.travel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.travel-card { padding: 24px; border: 1px solid #cfe1dc; border-radius: 18px; background: #f3faf8; }
.travel-card--departure { border-color: #ead7cd; background: #fff7f2; }
.travel-card__title { display: flex; gap: 12px; align-items: center; margin-bottom: 23px; }
.travel-card__title > span { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; color: var(--teal); background: var(--white); box-shadow: 0 4px 15px rgba(18,59,70,.07); font-size: 1.2rem; }
.travel-card--departure .travel-card__title > span { color: var(--coral-dark); }
.travel-card__title strong, .travel-card__title small { display: block; }
.travel-card__title small { margin-top: 1px; color: var(--ink-soft); font-size: .72rem; }
.travel-card > .field { margin-bottom: 17px; }
.date-time-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }

.children-panel { margin-top: 25px; padding: 24px; border-radius: 18px; background: #edf6f3; }
.panel-note { margin: 0 0 20px; color: var(--ink-soft); font-size: .9rem; }
.children-list { display: grid; gap: 14px; }
.child-card { padding: 22px; border: 1px solid #d2e4df; border-radius: 14px; background: var(--white); }
.child-card__header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 17px; }
.child-card__header h3 { margin: 0; font-size: .95rem; }
.child-remove { padding: 5px 8px; border: 0; border-radius: 7px; color: var(--danger); background: transparent; font-size: .75rem; font-weight: 750; }
.child-remove:hover { background: var(--danger-bg); }
.child-remove:focus-visible { outline: 3px solid rgba(163,62,49,.2); outline-offset: 2px; }
.children-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.children-actions small { color: var(--ink-soft); font-size: .75rem; }
.consent { display: flex; gap: 11px; align-items: flex-start; margin-top: 20px; color: var(--ink-soft); cursor: pointer; font-size: .86rem; }
.consent input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--teal); }
.form-submit { display: flex; gap: 20px; justify-content: space-between; align-items: center; padding-top: 30px; }
.form-submit p { margin: 0; color: var(--ink-soft); font-size: .82rem; }

[data-registration-form] .field,
[data-registration-form] .consent { scroll-margin-top: 32px; }
[data-registration-form] .field input[aria-invalid="true"],
[data-registration-form] .field select[aria-invalid="true"],
[data-registration-form] .field textarea[aria-invalid="true"] { border: 2px solid var(--danger); background: var(--danger-bg); }
[data-registration-form] .field input[aria-invalid="true"]:focus,
[data-registration-form] .field select[aria-invalid="true"]:focus,
[data-registration-form] .field textarea[aria-invalid="true"]:focus { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(163,62,49,.2); }
[data-registration-form] .field--invalid,
[data-registration-form] .field--invalid > .field__label,
[data-registration-form] .field--invalid > label { color: var(--danger); }
[data-registration-form] .field--invalid .choice-pill span { border: 2px solid var(--danger); color: var(--danger); background: var(--danger-bg); }
[data-registration-form] .field--invalid .choice-pill input:focus-visible + span { outline: 3px solid rgba(163,62,49,.35); outline-offset: 3px; }
[data-registration-form] .field-error { margin: 0; color: var(--danger); font-size: .84rem; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
[data-registration-form] .field-error strong { font-weight: 850; }
[data-registration-form] .consent--invalid { flex-wrap: wrap; padding: 14px; border: 2px solid var(--danger); border-radius: 11px; color: var(--danger); background: var(--danger-bg); }
[data-registration-form] .consent--invalid > span { flex: 1 1 calc(100% - 30px); min-width: 0; }
[data-registration-form] .consent--invalid > .field-error { flex: 0 0 100%; }
[data-registration-form] .consent--invalid input { accent-color: var(--danger); }
[data-registration-form] .consent--invalid input:focus-visible { outline: 3px solid rgba(163,62,49,.35); outline-offset: 3px; }
[data-registration-form] .validation-summary { margin: 26px 0; padding: 20px 22px; border: 2px solid var(--danger); border-radius: 14px; color: var(--danger); background: var(--danger-bg); scroll-margin-top: 32px; }
[data-registration-form] .validation-summary[hidden] { display: none !important; }
[data-registration-form] .validation-summary:focus { outline: 3px solid rgba(163,62,49,.35); outline-offset: 3px; }
[data-registration-form] .validation-summary h2,
[data-registration-form] .validation-summary h3 { margin: 0 0 8px; color: inherit; font-size: 1.1rem; font-weight: 850; line-height: 1.4; }
[data-registration-form] .validation-summary p { margin: 0 0 10px; font-size: .9rem; }
[data-registration-form] .validation-summary ul { margin: 0; padding-left: 22px; }
[data-registration-form] .validation-summary li + li { margin-top: 5px; }
[data-registration-form] .validation-summary__link { display: inline; max-width: 100%; padding: 3px 0; border: 0; border-radius: 3px; color: inherit; background: transparent; text-align: left; text-decoration: underline; text-underline-offset: 3px; font-size: .9rem; font-weight: 750; line-height: 1.5; overflow-wrap: anywhere; cursor: pointer; }
[data-registration-form] .validation-summary__link:hover { text-decoration-thickness: 2px; }
[data-registration-form] .validation-summary__link:focus-visible { outline: 3px solid rgba(163,62,49,.35); outline-offset: 3px; }

.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 12px; padding: 11px 19px; border: 1px solid transparent; border-radius: 11px; text-decoration: none; font-weight: 780; transition: transform .18s, box-shadow .18s, background .18s; }
.button:hover { transform: translateY(-1px); }
.button--primary { color: var(--white); background: var(--coral); box-shadow: 0 10px 24px rgba(232,111,81,.23); }
.button--primary:hover { background: var(--coral-dark); }
.button--secondary { border-color: #c6d3cf; color: var(--ink); background: var(--white); }
.button--secondary:hover { border-color: var(--teal); }
.button--danger { color: var(--white); background: var(--danger); box-shadow: 0 10px 24px rgba(163,62,49,.2); }
.button--danger:hover { background: #843126; }
.button--danger-outline { border-color: #dfaaa1; color: var(--danger); background: var(--white); }
.button--danger-outline:hover { border-color: var(--danger); background: var(--danger-bg); }
.button--large { min-height: 54px; padding: 14px 24px; }
.button:focus-visible, .text-link:focus-visible, .row-link:focus-visible, .back-link:focus-visible { outline: 3px solid rgba(31,122,120,.28); outline-offset: 3px; }

.alert { display: flex; flex-direction: column; gap: 5px; margin: 24px 0; padding: 17px 19px; border: 1px solid; border-radius: 12px; font-size: .9rem; }
.alert ul { margin: 6px 0 0; padding-left: 19px; }
.alert--error { border-color: #efc4bb; color: var(--danger); background: var(--danger-bg); }
.alert--success { border-color: #b8ddcc; color: var(--success); background: var(--success-bg); }
.alert--notice { border-color: #e2d6aa; color: #6c5d24; background: #fff8dc; }

.site-footer { padding: 0 20px 34px; color: #71827d; text-align: center; font-size: .76rem; }

.install-shell, .success-shell, .login-shell { min-height: calc(100vh - 70px); padding: 60px 20px; background: radial-gradient(circle at 85% 10%, rgba(31,122,120,.17), transparent 30%), var(--cream); }
.install-card { width: min(880px, 100%); margin: 0 auto; padding: clamp(28px, 5vw, 55px); }
.install-card h1, .success-card h1, .login-card h1 { margin: 12px 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 500; line-height: 1.05; }
.lead, .login-card > p, .success-card > p { color: var(--ink-soft); }
.install-form fieldset { margin: 32px 0; padding: 25px; border: 1px solid var(--line); border-radius: 16px; }
.install-form legend { padding: 0 9px; font-weight: 800; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 25px; }

.success-shell, .login-shell { display: grid; place-items: center; background: radial-gradient(circle at 50% 20%, rgba(31,122,120,.2), transparent 35%), var(--navy-deep); }
.success-card, .login-card { width: min(560px, 100%); padding: clamp(34px, 7vw, 60px); text-align: center; }
.success-icon { display: grid; width: 68px; height: 68px; margin: 0 auto 23px; place-items: center; border-radius: 50%; color: var(--white); background: var(--teal); box-shadow: 0 12px 28px rgba(31,122,120,.28); font-size: 2rem; font-weight: 800; }
.registration-code { display: flex; flex-direction: column; gap: 5px; margin: 30px 0; padding: 20px; border: 1px dashed #a9c6bf; border-radius: 13px; background: #eef7f4; }
.registration-code small { color: var(--ink-soft); font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.registration-code strong { font-size: 1.4rem; letter-spacing: .06em; }
.login-card { max-width: 470px; text-align: left; }
.login-form { display: grid; gap: 17px; margin: 28px 0 22px; }
.back-link { display: inline-block; margin: 16px 0; color: var(--teal); text-decoration: none; font-size: .86rem; font-weight: 730; }

.admin-body { background: #f2f5f3; }
.admin-topbar { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 24px; padding: 12px max(24px, calc((100% - 1200px) / 2)); color: var(--white); background: var(--navy-deep); }
.brand--compact { letter-spacing: .02em; text-transform: none; }
.brand--compact .brand__mark { width: 40px; height: 40px; border-radius: 11px; font-size: .75rem; }
.admin-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 22px; }
.admin-nav a { color: rgba(255,255,255,.76); text-decoration: none; font-size: .83rem; font-weight: 700; }
.admin-nav a:hover { color: var(--white); }
.admin-role-label { align-self: center; padding: 5px 9px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: rgba(255,255,255,.74); font-size: .66rem; font-weight: 750; }
.admin-shell { width: min(1200px, calc(100% - 36px)); margin: 0 auto; padding: 52px 0 70px; }
.admin-heading, .detail-heading { display: flex; gap: 25px; align-items: flex-end; justify-content: space-between; margin-bottom: 30px; }
.admin-heading h1, .detail-heading h1 { margin: 8px 0 2px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 500; line-height: 1; }
.admin-heading p, .detail-heading p { margin: 7px 0 0; color: var(--ink-soft); }
.admin-heading__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stats-grid--five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stat-card { min-height: 150px; padding: 21px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: 0 6px 22px rgba(18,59,70,.05); }
.stat-card > span { color: var(--ink-soft); font-size: .75rem; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; }
.stat-card > strong { display: block; margin: 10px 0 3px; color: var(--navy); font-size: 2.5rem; line-height: 1; }
.stat-card > .stat-card__money { font-size: clamp(1.45rem, 2.4vw, 2.15rem); }
.stat-card > small { color: #73847f; font-size: .73rem; }
.stat-card--paid { border-color: #a9d2c5; background: linear-gradient(145deg, #fff, #eef8f4); }
.stat-card--paid > strong { font-weight: 900; }
.mini-bars { display: grid; gap: 6px; margin-top: 12px; }
.mini-bars small { display: flex; justify-content: space-between; color: var(--ink-soft); font-style: normal; }
.mini-bars b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-bars em { color: var(--teal); font-style: normal; font-weight: 800; }
.filter-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 10px; align-items: center; margin-bottom: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.filter-bar .search-field { grid-column: span 2; }
.filter-bar input, .filter-bar select { min-height: 44px; padding: 9px 12px; }
.filter-bar label { min-width: 0; }
.filter-field { display: grid; gap: 4px; }
.filter-caption { color: var(--ink-soft); font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.filter-range-help { grid-column: 1 / -1; color: var(--ink-soft); font-size: .7rem; }
.text-link { padding: 8px; color: var(--teal); text-decoration: none; font-size: .8rem; font-weight: 750; }
.church-payment-section { margin: 22px 0 18px; padding: 22px; border: 1px solid var(--line); border-radius: 17px; background: var(--white); box-shadow: 0 7px 25px rgba(18,59,70,.04); }
.section-inline-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.section-inline-heading h2 { margin: 5px 0 0; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; font-weight: 500; }
.section-inline-heading > small { color: var(--ink-soft); font-size: .72rem; }
.church-payment-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 13px; }
.church-payment-grid article { min-width: 0; padding: 15px; border-left: 1px solid var(--line); background: #fbfdfc; }
.church-payment-grid article:first-child { border-left: 0; }
.church-payment-grid article > span, .church-payment-grid article > small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.church-payment-grid article > span { color: var(--navy); font-size: .78rem; font-weight: 800; }
.church-payment-grid article > small { margin-top: 2px; color: var(--ink-soft); font-size: .65rem; }
.church-payment-grid p { display: grid; gap: 2px; margin: 12px 0 0; }
.church-payment-grid strong { color: var(--success); font-size: .8rem; }
.church-payment-grid em { color: #9aa6a2; font-size: .7rem; font-style: normal; font-weight: 500; }
.table-card { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--white); box-shadow: 0 7px 25px rgba(18,59,70,.05); }
.table-meta { display: flex; justify-content: space-between; padding: 15px 19px; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: .78rem; }
.table-meta strong { color: var(--ink); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th, td { padding: 15px 17px; border-bottom: 1px solid #e8ecea; text-align: left; font-size: .82rem; }
th { color: #71827d; background: #f8faf9; font-size: .69rem; letter-spacing: .07em; text-transform: uppercase; }
td strong, td small { display: block; }
td small { margin-top: 3px; color: #7c8c88; font-size: .69rem; }
tbody tr:hover { background: #fbfdfc; }
.row-link { color: var(--teal); text-decoration: none; font-weight: 770; }
.travel-line { display: block; }
.travel-line + .travel-line { margin-top: 5px; }
.travel-line b { display: inline-grid; width: 18px; height: 18px; place-items: center; border-radius: 5px; color: var(--teal); background: var(--teal-light); font-size: .62rem; }
.yes-no, .room-badge, .muted-badge { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; font-size: .69rem; font-weight: 800; }
.yes-no--yes { color: var(--success); background: var(--success-bg); }
.yes-no--no { color: var(--danger); background: var(--danger-bg); }
.yes-no--neutral, .muted-badge { color: #687873; background: #eef1ef; }
.room-badge { color: #31557d; background: #e9f0f8; }
.duplicate-inline-badge { display: inline-flex; margin-top: 5px; padding: 4px 7px; border-radius: 7px; color: #8a5b16; background: #fff3ce; font-size: .63rem; font-weight: 800; }
.empty-state { padding: 55px; color: #758580; text-align: center; }
.pagination { display: flex; justify-content: center; gap: 20px; align-items: center; padding: 16px; }
.pagination a { color: var(--teal); text-decoration: none; font-size: .8rem; font-weight: 750; }
.pagination span { color: var(--ink-soft); font-size: .76rem; }
.admin-shell--detail { max-width: 960px; }
.detail-heading { align-items: center; margin-top: 15px; }
.detail-heading__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.status-badge { padding: 8px 13px; border-radius: 999px; color: var(--success); background: var(--success-bg); font-size: .75rem; font-weight: 800; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.detail-card { padding: 25px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.detail-card h2 { margin: 0 0 20px; font-size: 1rem; }
.detail-card dl { margin: 0; }
.detail-card dl div { display: grid; grid-template-columns: 130px 1fr; gap: 15px; padding: 11px 0; border-top: 1px solid #e7ece9; }
.detail-card dl div:first-child { padding-top: 0; border-top: 0; }
.detail-card dt { color: var(--ink-soft); font-size: .75rem; }
.detail-card dd { margin: 0; font-size: .86rem; font-weight: 650; }
.detail-card p { margin: 0; color: var(--ink-soft); }
.management-card { border-color: #c8ddd8; background: #f7fbfa; }
.detail-activity { margin-top: 17px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.detail-activity h2 { margin: 0 0 15px; font-size: 1rem; }
.detail-activity > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid #e8ecea; font-size: .82rem; }
.detail-activity > div:first-of-type { border-top: 0; }
.detail-activity small, .muted-text { color: var(--ink-soft); }

.admin-shell--form { max-width: 960px; }
.admin-form-card { padding: clamp(27px, 5vw, 48px); border: 1px solid var(--line); border-radius: 20px; background: var(--white); box-shadow: 0 8px 28px rgba(18,59,70,.06); }
.admin-form-card > h1, .edit-page-heading h1 { margin: 10px 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 5vw, 3rem); font-weight: 500; line-height: 1.05; }
.admin-form-card > p, .edit-page-heading p { color: var(--ink-soft); }
.admin-edit-form { margin-top: 30px; }
.admin-fieldset { margin: 0; padding: 30px 0; border: 0; border-bottom: 1px solid var(--line); }
.admin-fieldset:first-of-type { padding-top: 0; }
.admin-fieldset legend { margin-bottom: 20px; padding: 0; font-size: 1rem; font-weight: 800; }
.admin-form-actions { display: flex; justify-content: flex-end; margin-top: 25px; }
.admin-active { margin: 22px 0 0; }
.edit-page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 26px; }
.registration-code-small { padding: 7px 10px; border-radius: 8px; color: var(--teal); background: var(--teal-light); font-size: .72rem; font-weight: 800; letter-spacing: .05em; }
.fixed-value { display: grid; gap: 4px; margin-bottom: 24px; padding: 22px; border-radius: 15px; background: var(--teal-light); }
.fixed-value span, .fixed-value small { color: var(--ink-soft); font-size: .78rem; }
.fixed-value strong { color: var(--navy); font-size: 2rem; }
.assignment-context { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.assignment-context span { padding: 7px 10px; border-radius: 8px; color: var(--ink-soft); background: #eef3f1; font-size: .75rem; font-weight: 650; }
.payment-fields { margin-top: 22px; }
.child-room-panel { margin-top: 25px; padding: 22px; border: 1px solid #cbded9; border-radius: 16px; background: #f5faf8; }
.child-room-panel h2 { margin: 0; font-size: 1rem; }
.child-room-panel p { margin: 5px 0 0; color: var(--ink-soft); font-size: .8rem; }
.same-room-option { margin: 18px 0; padding: 12px 14px; border-radius: 10px; background: var(--teal-light); }
.child-room-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.access-summary { margin-bottom: 16px; }
.access-summary article { display: flex; align-items: center; gap: 13px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.access-summary article > div { flex: 1; }
.access-summary strong, .access-summary small { display: block; }
.access-summary small { color: var(--ink-soft); }
.role-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px var(--teal-light); }
.role-badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; font-size: .69rem; font-weight: 800; }
.role-badge--cuotas { color: #76511f; background: #fff2cd; }
.role-badge--habitaciones { color: #31557d; background: #e9f0f8; }

.activity-list { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--white); }
.activity-item { display: flex; gap: 16px; padding: 18px 22px; border-top: 1px solid #e8ecea; }
.activity-item:first-child { border-top: 0; }
.activity-item__mark { flex: 0 0 9px; width: 9px; height: 9px; margin-top: 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 5px #fff0ec; }
.activity-item__content { min-width: 0; font-size: .84rem; }
.activity-item__content span { padding: 2px 5px; border-radius: 4px; background: #f0f3f1; }
.activity-item__content small { display: block; margin-top: 6px; color: var(--ink-soft); }
.activity-item__content a { color: var(--teal); text-decoration: none; font-weight: 750; }
.empty-panel { padding: 50px 20px; color: var(--ink-soft); text-align: center; }

.stat-card--explanation > strong { font-size: clamp(1.45rem, 2.6vw, 2.1rem); }
.logistics-filter { grid-template-columns: minmax(180px, 1fr) minmax(190px, 1fr) auto auto; }
.logistics-filter .button { min-width: 110px; }
.logistics-section { margin-top: 34px; }
.logistics-section + .logistics-section { margin-top: 55px; padding-top: 48px; border-top: 1px solid var(--line); }
.logistics-section__heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 17px; }
.logistics-section__heading h2 { margin: 6px 0 2px; font-family: Georgia, "Times New Roman", serif; color: var(--navy); font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 500; }
.logistics-section__heading p { margin: 5px 0 0; color: var(--ink-soft); }
.button--compact { min-height: 42px; padding: 10px 16px; }
.logistics-insights { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.7fr); gap: 14px; margin-bottom: 14px; }
.peak-card { display: flex; min-height: 120px; flex-direction: column; justify-content: center; padding: 20px 22px; border: 1px solid #bfd9d3; border-radius: 16px; background: linear-gradient(135deg, #eef8f5, #f8fbfa); }
.peak-card > span { color: var(--teal); font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.peak-card > strong { margin: 8px 0 3px; color: var(--navy); font-size: 1.25rem; }
.peak-card > small { color: var(--ink-soft); }
.transport-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.transport-totals > span { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: 19px; border-left: 1px solid var(--line); }
.transport-totals > span:first-child { border-left: 0; }
.transport-totals b { overflow: hidden; color: var(--ink-soft); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.transport-totals strong { margin: 5px 0 1px; color: var(--navy); font-size: 1.55rem; }
.transport-totals small { color: #7c8c88; font-size: .67rem; }
.people-total { display: inline-grid; min-width: 34px; height: 30px; place-items: center; padding: 0 8px; border-radius: 9px; color: var(--navy); background: var(--teal-light); font-weight: 850; }
.stats-grid--three { grid-template-columns: repeat(3, 1fr); }
.logistics-detail { max-width: 1050px; }

.stat-card--available { border-color: #a9d2c5; background: linear-gradient(145deg, #fff, #eef8f4); }
.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 25px; }
.module-card { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 7px 25px rgba(18,59,70,.05); }
.module-card--full { border-color: #e5c6bd; background: #fffafa; }
.module-card__heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.module-card__heading > div > span { color: var(--coral); font-size: .7rem; font-weight: 850; letter-spacing: .1em; }
.module-card__heading h2 { margin: 2px 0 0; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 1.7rem; font-weight: 500; }
.module-card__heading > strong { color: var(--navy); font-size: 1.6rem; }
.capacity-track { display: block; width: 100%; height: 9px; margin: 19px 0 10px; overflow: hidden; border: 0; border-radius: 999px; background: #e6eeeb; appearance: none; }
.capacity-track::-webkit-progress-bar { border-radius: 999px; background: #e6eeeb; }
.capacity-track::-webkit-progress-value { border-radius: 999px; background: var(--teal); }
.capacity-track::-moz-progress-bar { border-radius: 999px; background: var(--teal); }
.module-card--full .capacity-track::-webkit-progress-value { background: var(--coral); }
.module-card--full .capacity-track::-moz-progress-bar { background: var(--coral); }
.module-card > p { margin: 0 0 17px; color: var(--ink-soft); font-size: .78rem; }
.module-card > p b { color: var(--danger); }
.room-capacity-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.room-capacity { display: grid; min-width: 0; gap: 2px; padding: 13px; border-left: 1px solid var(--line); background: #fbfdfc; }
.room-capacity:first-child { border-left: 0; }
.room-capacity > span { overflow: hidden; color: var(--ink-soft); font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.room-capacity > strong { color: var(--navy); font-size: 1.05rem; }
.room-capacity > small { color: var(--success); font-size: .62rem; }
.room-capacity--full { background: #fff4f1; }
.room-capacity--full > small { color: var(--danger); }
.lodging-list-section { margin-top: 48px; }
.bed-code-badge { display: inline-flex; padding: 6px 9px; border-radius: 8px; color: #31557d; background: #e9f0f8; font-weight: 850; letter-spacing: .03em; }

.lodging-assignment-page { max-width: 1080px; }
.lodging-rule-note { display: grid; gap: 3px; margin: 22px 0; padding: 17px 19px; border-left: 4px solid var(--teal); border-radius: 0 12px 12px 0; color: var(--ink-soft); background: #eff7f5; font-size: .8rem; }
.lodging-rule-note strong { color: var(--navy); }
.lodging-assignment-list { display: grid; gap: 15px; }
.lodging-person { display: grid; grid-template-columns: minmax(180px, .9fr) minmax(0, 1.8fr) 105px; gap: 20px; align-items: center; padding: 21px; border: 1px solid var(--line); border-radius: 15px; background: #fbfdfc; }
.lodging-person__type { display: inline-flex; padding: 4px 8px; border-radius: 999px; color: var(--teal); background: var(--teal-light); font-size: .64rem; font-weight: 850; text-transform: uppercase; }
.lodging-person__identity h2 { margin: 7px 0 2px; color: var(--navy); font-size: 1rem; }
.lodging-person__identity p { margin: 0; color: var(--ink-soft); font-size: .73rem; }
.legacy-room-note { display: block; margin-top: 8px; color: #8a681e; font-size: .68rem; }
.lodging-select-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lodging-select-grid .field { gap: 5px; font-size: .72rem; }
.lodging-select-grid .field select { min-height: 44px; padding: 8px 10px; }
.lodging-current { display: grid; gap: 3px; justify-items: end; }
.lodging-current span { color: var(--ink-soft); font-size: .65rem; font-weight: 750; text-transform: uppercase; }
.lodging-current strong { color: var(--navy); font-size: .83rem; }

.duplicate-rule-note { display: grid; gap: 4px; margin: 22px 0; padding: 18px 20px; border-left: 4px solid #d99b2b; border-radius: 0 12px 12px 0; color: var(--ink-soft); background: #fff8e5; font-size: .8rem; }
.duplicate-rule-note strong { color: #73521a; }
.duplicate-badge { display: inline-flex; padding: 6px 9px; border-radius: 999px; font-size: .67rem; font-weight: 850; }
.duplicate-badge--exact { color: var(--danger); background: var(--danger-bg); }
.duplicate-badge--similar { color: #7a5a18; background: #fff3ce; }
.duplicate-actions { display: grid; gap: 7px; }
.delete-confirm-card { max-width: 720px; margin: 0 auto; }
.delete-registration-summary { margin: 28px 0; }
.delete-registration-summary div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.delete-registration-summary div:first-child { border-top: 0; }
.delete-registration-summary dt { color: var(--ink-soft); font-size: .76rem; }
.delete-registration-summary dd { margin: 0; color: var(--navy); font-size: .88rem; font-weight: 750; }
.delete-warning { display: grid; gap: 5px; padding: 18px; border: 1px solid #efc4bb; border-radius: 12px; color: var(--danger); background: var(--danger-bg); font-size: .82rem; }
.delete-warning span { color: #79554f; }
.delete-confirm-form { margin-top: 22px; }
.delete-confirm-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid--five { grid-template-columns: repeat(2, 1fr); }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: span 2; }
  .logistics-filter { grid-template-columns: 1fr 1fr; }
  .logistics-insights { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: 1fr; }
  .lodging-person { grid-template-columns: 1fr; }
  .lodging-current { justify-items: start; }
  .church-payment-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .church-payment-grid article:nth-child(4) { border-left: 0; }
  .church-payment-grid article:nth-child(n+4) { border-top: 1px solid var(--line); }
}

@media (max-width: 720px) {
  .hero { min-height: 600px; }
  .hero__content { width: min(100% - 32px, 1120px); padding-top: 25px; }
  .hero__copy { padding-top: 58px; }
  .hero h1 { font-size: clamp(2.7rem, 15vw, 4.3rem); }
  .event-facts { margin-top: 40px; }
  .event-facts div { min-width: 50%; padding: 0 15px; }
  .event-facts div:nth-child(3) { margin-top: 8px; padding-left: 0; border-left: 0; }
  .registration-shell { margin-top: -58px; }
  .form-card { border-radius: 22px; }
  .form-grid, .travel-grid, .detail-grid { grid-template-columns: 1fr; }
  .field--wide { grid-column: auto; }
  .children-panel { padding: 15px; }
  .child-card { padding: 17px; }
  .form-submit { flex-direction: column; align-items: stretch; }
  .form-submit .button { width: 100%; }
  .admin-topbar { padding-inline: 16px; }
  .brand--compact > span:last-child { display: none; }
  .admin-nav { flex-wrap: nowrap; justify-content: flex-start; gap: 12px; overflow-x: auto; }
  .admin-nav a { white-space: nowrap; font-size: .75rem; }
  .admin-role-label { display: none; }
  .admin-shell { width: min(100% - 24px, 1200px); padding-top: 35px; }
  .admin-heading, .detail-heading { align-items: flex-start; flex-direction: column; }
  .admin-heading .button { width: 100%; }
  .admin-heading__actions { width: 100%; }
  .admin-heading__actions .button { flex: 1 1 180px; }
  .detail-heading__actions { width: 100%; }
  .detail-heading__actions .button { flex: 1 1 180px; }
  .logistics-section__heading { align-items: stretch; flex-direction: column; }
  .logistics-section__heading .button { width: 100%; }
  .detail-card dl div { grid-template-columns: 1fr; gap: 3px; }
  .edit-page-heading { flex-direction: column; }
  .section-inline-heading { align-items: flex-start; flex-direction: column; }
  .child-room-list { grid-template-columns: 1fr; }
  .lodging-select-grid { grid-template-columns: 1fr; }
  .delete-registration-summary div { grid-template-columns: 1fr; gap: 3px; }
  .delete-confirm-actions { align-items: stretch; flex-direction: column-reverse; }
  .church-shell { margin-top: 28px; }
  .church-summary { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .church-filters > .field { flex-basis: 100%; }
  .church-filters > .button { flex: 1 1 140px; }
}

@media (max-width: 500px) {
  .brand { font-size: .7rem; }
  .brand__mark { width: 40px; height: 40px; }
  .hero h1 { font-size: 2.75rem; }
  .hero__copy > p { font-size: .95rem; }
  .event-facts div { min-width: 100%; margin-top: 8px; padding: 0; border-left: 0; }
  .form-card { padding: 24px 18px; }
  .section-heading { gap: 13px; }
  .step-number { flex-basis: 42px; height: 42px; }
  .form-section { padding: 34px 0; }
  .choice-pill { flex: 1; }
  .choice-pill span { min-width: 0; }
  .date-time-grid { grid-template-columns: 1fr; }
  .travel-card { padding: 18px; }
  [data-registration-form] .validation-summary { padding: 16px; }
  [data-registration-form] .consent--invalid { padding: 12px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { min-height: 130px; padding: 17px; }
  .stat-card > strong { font-size: 2rem; }
  .stat-card--churches { grid-column: span 2; }
  .filter-bar { grid-template-columns: 1fr; }
  .filter-bar .search-field { grid-column: auto; }
  .filter-bar .button { width: 100%; }
  .logistics-filter { grid-template-columns: 1fr; }
  .transport-totals { grid-template-columns: 1fr; }
  .transport-totals > span { flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); border-left: 0; }
  .transport-totals > span:first-child { border-top: 0; }
  .transport-totals strong { margin: 0 0 0 auto; }
  .stats-grid--three { grid-template-columns: 1fr; }
  .church-payment-grid { grid-template-columns: 1fr 1fr; }
  .church-payment-grid article { border-top: 1px solid var(--line); }
  .church-payment-grid article:nth-child(odd) { border-left: 0; }
  .church-payment-grid article:nth-child(even) { border-left: 1px solid var(--line); }
  .church-payment-grid article:nth-child(-n+2) { border-top: 0; }
  .table-meta span { display: none; }
  .room-capacity-grid { grid-template-columns: 1fr 1fr; }
  .room-capacity { border-top: 1px solid var(--line); }
  .room-capacity:nth-child(odd) { border-left: 0; }
  .room-capacity:nth-child(-n+2) { border-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
