:root {
    --ink: #17201b;
    --muted: #68736d;
    --line: #dfe5dc;
    --paper: #fbfaf6;
    --panel: #ffffff;
    --sage: #527464;
    --rose: #b45f6d;
    --gold: #b28a3b;
    --admin-bg: #f4f6f5;
    --shadow: 0 18px 40px rgba(23, 32, 27, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

input,
select,
textarea,
button {
    font: inherit;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px 12px;
    background: #fff;
    color: var(--ink);
}

label {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-weight: 650;
}

button {
    cursor: pointer;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    padding: 0 18px;
    background: var(--sage);
    color: #fff;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.button-light {
    background: #fff;
    color: var(--ink);
}

.button-ghost {
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.08);
}

.button-secondary {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--rose);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.flash {
    position: fixed;
    z-index: 30;
    top: 18px;
    right: 18px;
    max-width: min(420px, calc(100vw - 36px));
    border-radius: 8px;
    padding: 13px 16px;
    background: #eaf5ee;
    color: #1f6b3a;
    box-shadow: var(--shadow);
}

.flash.error {
    background: #fff0f0;
    color: #9f2832;
}

.flash.warning {
    background: #fff8df;
    color: #7a5a16;
}

.brand,
.admin-brand {
    font-weight: 850;
    text-decoration: none;
}

.landing-page {
    --cream: #fff9ef;
    --champagne: #f4dfbd;
    --forest: #15251d;
    --forest-soft: #284536;
    --wine: #8f3f4f;
    --charcoal: #161714;
    background: #f8f2e8;
}

.wedding-hero {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--forest);
    color: #fff;
}

.wedding-hero::before,
.wedding-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.wedding-hero::before {
    z-index: -2;
    background: url("../img/landing-couple.jpg") 62% 26% / cover no-repeat;
    transform: scale(1.02);
}

.wedding-hero::after {
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(9, 18, 13, 0.94) 0%, rgba(9, 18, 13, 0.76) 38%, rgba(9, 18, 13, 0.28) 70%, rgba(9, 18, 13, 0.58) 100%),
        linear-gradient(180deg, rgba(9, 18, 13, 0.5) 0%, rgba(9, 18, 13, 0.08) 42%, rgba(9, 18, 13, 0.86) 100%);
}

.wedding-nav,
.wedding-hero-inner,
.wedding-info-bar,
.story-layout,
.section-heading-block,
.detail-card-grid,
.experience-layout,
.rsvp-panel,
.wedding-footer {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
}

.wedding-nav {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.wedding-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.wedding-brand span {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--cream);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.95rem;
    font-weight: 800;
}

.wedding-brand strong {
    font-size: clamp(1rem, 1.8vw, 1.22rem);
    font-weight: 850;
}

.wedding-nav-links {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 24px);
}

.wedding-nav-links a {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    font-weight: 760;
    text-decoration: none;
}

.wedding-nav-links a:last-child {
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    padding: 8px 13px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.wedding-hero-inner {
    position: relative;
    z-index: 1;
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 760px) minmax(240px, 320px);
    grid-template-areas:
        "kicker card"
        "names card"
        "actions actions";
    gap: clamp(18px, 4vw, 52px);
    align-content: end;
    padding: clamp(56px, 10vh, 130px) 0 clamp(34px, 7vh, 72px);
}

.hero-kicker {
    grid-area: kicker;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 226, 183, 0.88);
    font-weight: 850;
    text-transform: uppercase;
}

.hero-kicker span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
}

.hero-names {
    grid-area: names;
}

.hero-names .eyebrow,
.story-copy .eyebrow,
.section-heading-block .eyebrow,
.experience-layout .eyebrow,
.rsvp-panel .eyebrow {
    color: #d98292;
}

.hero-names h1 {
    max-width: 760px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(4.2rem, 9vw, 8.8rem);
    line-height: 0.88;
    font-weight: 500;
}

.hero-names h1 span {
    display: block;
}

.hero-names h1 span+span {
    margin-left: clamp(28px, 5vw, 74px);
}

.hero-names p:not(.eyebrow) {
    width: min(620px, 100%);
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1.04rem, 1.7vw, 1.26rem);
}

.hero-invite-card {
    grid-area: card;
    align-self: start;
    justify-self: end;
    width: min(320px, 100%);
    transform: translateY(-56px);
    border: 1px solid rgba(255, 248, 232, 0.24);
    border-radius: 8px;
    padding: 22px;
    background: rgba(9, 14, 12, 0.58);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(18px);
}

.hero-invite-card p,
.hero-invite-card span,
.hero-invite-card em {
    display: block;
    margin: 0;
}

.hero-invite-card p {
    color: rgba(255, 226, 183, 0.9);
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
}

.hero-invite-card strong {
    display: block;
    margin-top: 16px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(4.4rem, 8vw, 6rem);
    line-height: 0.86;
    font-weight: 500;
}

.hero-invite-card span {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.1rem;
    font-weight: 850;
}

.hero-invite-card em {
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding-top: 16px;
    color: rgba(255, 255, 255, 0.72);
    font-style: normal;
    font-weight: 750;
}

.hero-actions {
    grid-area: actions;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 2px;
}

.wedding-info-bar {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-top: -38px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 28px 80px rgba(24, 23, 17, 0.16);
    backdrop-filter: blur(18px);
}

.wedding-info-bar div {
    min-height: 112px;
    display: grid;
    align-content: center;
    gap: 7px;
    padding: 18px;
    background: rgba(255, 253, 248, 0.88);
}

.wedding-info-bar span,
.detail-card span,
.experience-list span {
    color: var(--wine);
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
}

.wedding-info-bar strong {
    color: var(--charcoal);
    font-size: clamp(0.96rem, 1.5vw, 1.12rem);
    line-height: 1.25;
}

.wedding-section {
    padding: clamp(58px, 8vw, 110px) clamp(18px, 4vw, 58px);
}

.story-section {
    background: #f8f2e8;
}

.story-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.72fr);
    gap: clamp(32px, 6vw, 92px);
    align-items: center;
}

.story-copy h2,
.section-heading-block h2,
.experience-layout h2,
.rsvp-panel h2 {
    margin: 0;
    color: var(--charcoal);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.4rem, 5vw, 5.6rem);
    line-height: 0.96;
    font-weight: 500;
}

.story-copy p:not(.eyebrow),
.rsvp-panel p,
.detail-card p,
.experience-list p {
    color: var(--muted);
}

.story-copy p:not(.eyebrow) {
    max-width: 680px;
    margin: 22px 0 0;
    font-size: clamp(1rem, 1.6vw, 1.16rem);
}

.story-photo {
    position: relative;
    margin: 0;
}

.story-photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    object-position: center 18%;
    box-shadow: 0 30px 80px rgba(32, 27, 20, 0.18);
}

.story-photo figcaption {
    position: absolute;
    right: 14px;
    bottom: 14px;
    border-radius: 8px;
    padding: 9px 12px;
    background: rgba(255, 249, 239, 0.88);
    color: var(--charcoal);
    font-weight: 850;
}

.details-section {
    background: #fffdf8;
}

.section-heading-block {
    display: grid;
    gap: 8px;
    margin-bottom: clamp(26px, 4vw, 48px);
}

.section-heading-block h2 {
    max-width: 780px;
}

.detail-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.detail-card {
    min-height: 270px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid #eadfce;
    border-radius: 8px;
    padding: 22px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(32, 27, 20, 0.07);
}

.detail-card h3 {
    margin: 12px 0 0;
    color: var(--charcoal);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.45rem, 2.1vw, 2rem);
    line-height: 1.02;
    font-weight: 500;
}

.detail-card p {
    margin: 16px 0 0;
}

.feature-card {
    grid-column: span 2;
    background: var(--forest);
    color: #fff;
}

.feature-card h3,
.feature-card p {
    color: #fff;
}

.feature-card span {
    color: var(--champagne);
}

.experience-section {
    background: #16251d;
    color: #fff;
}

.experience-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.74fr) minmax(0, 1fr);
    gap: clamp(28px, 6vw, 86px);
    align-items: start;
}

.experience-layout h2 {
    color: #fff;
}

.experience-list {
    display: grid;
    gap: 1px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
}

.experience-list article {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 18px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.07);
}

.experience-list span {
    color: var(--champagne);
}

.experience-list h3 {
    margin: 0;
    font-size: 1.18rem;
}

.experience-list p {
    grid-column: 2;
    margin: -8px 0 0;
    color: rgba(255, 255, 255, 0.72);
}

.rsvp-section {
    background: #f8f2e8;
}

.rsvp-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(300px, 0.78fr);
    gap: clamp(26px, 5vw, 70px);
    align-items: center;
    border: 1px solid #eadfce;
    border-radius: 8px;
    padding: clamp(24px, 5vw, 58px);
    background: #fffdf8;
    box-shadow: 0 22px 70px rgba(32, 27, 20, 0.09);
}

.rsvp-panel p {
    max-width: 560px;
    margin: 18px 0 0;
}

.token-form {
    display: grid;
    gap: 12px;
}

.token-form label {
    color: var(--charcoal);
}

.token-form div {
    display: flex;
    gap: 10px;
}

.token-form input {
    min-height: 48px;
    background: #fff;
}

.token-form p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.wedding-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    border-top: 1px solid #eadfce;
    padding: 24px 0 34px;
    color: var(--charcoal);
}

.wedding-footer .wedding-brand span {
    border-color: #d8c7ad;
    background: #fff;
    color: var(--forest);
}

.wedding-footer p {
    margin: 0;
    color: var(--muted);
    font-weight: 750;
}

.section {
    padding: clamp(42px, 7vw, 86px) clamp(18px, 4vw, 58px);
}

.section-grid {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.86fr);
    gap: clamp(28px, 5vw, 70px);
    align-items: start;
}

.section h2,
.panel h1,
.invite-letter h1,
.entry-pass h1,
.auth-card h1,
.admin-main h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1;
    font-weight: 500;
}

.details-band,
.announcement-band {
    background: #fff;
}

.private-invite-section {
    background: #eef3ee;
}

.section-lead {
    max-width: 690px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.5vw, 1.14rem);
}

.event-list {
    padding-top: 6px;
}

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

.detail-list div,
.stats-strip div {
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

.detail-list span,
.stats-strip span,
td span,
.metric-grid span,
.form-note {
    color: var(--muted);
}

.detail-list strong {
    display: block;
    margin-top: 3px;
    font-size: 1.05rem;
}

.lookup-form,
.panel,
.auth-card,
.entry-pass,
.qr-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    padding: clamp(18px, 3vw, 30px);
    box-shadow: 0 12px 30px rgba(23, 32, 27, 0.06);
}

.inline-form {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.form-note {
    margin: 10px 0 0;
    font-size: 0.92rem;
}

.stats-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    width: min(1120px, 100%);
    margin: 0 auto;
}

.stats-strip strong {
    display: block;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.center-shell,
.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.invite-shell {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: clamp(28px, 6vw, 78px) 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 340px;
    gap: 22px;
}

.invite-letter {
    min-height: 440px;
    padding: clamp(28px, 5vw, 60px);
    border-radius: 8px;
    background: #fff;
}

.invite-letter p {
    max-width: 660px;
}

.invite-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 34px;
}

.invite-details dt {
    color: var(--muted);
    font-size: 0.86rem;
}

.invite-details dd {
    margin: 4px 0 0;
    font-weight: 800;
}

.qr-panel,
.rsvp-card {
    align-self: start;
}

.qr-panel {
    text-align: center;
}

.qr-panel img,
.entry-pass img {
    width: min(260px, 100%);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.rsvp-card {
    grid-column: 1 / -1;
    display: grid;
    gap: 14px;
}

.entry-pass {
    width: min(460px, 100%);
    text-align: center;
}

.entry-status {
    margin: 16px 0;
    border-radius: 8px;
    padding: 10px;
    background: #fff8df;
    color: #7a5a16;
    font-weight: 800;
}

.entry-status.is-in {
    background: #eaf5ee;
    color: #1f6b3a;
}

.admin-page,
.admin-auth {
    background: var(--admin-bg);
}

.admin-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 28px;
    border-right: 1px solid var(--line);
    background: #fff;
    padding: 22px;
}

.admin-sidebar nav,
.sidebar-foot {
    display: grid;
    gap: 8px;
}

.admin-sidebar a {
    border-radius: 8px;
    padding: 10px 11px;
    text-decoration: none;
    font-weight: 750;
}

.admin-sidebar nav a:hover,
.sidebar-foot a:hover {
    background: var(--admin-bg);
}

.sidebar-foot {
    margin-top: auto;
}

.admin-main {
    padding: clamp(22px, 4vw, 44px);
}

.narrow-main {
    max-width: 940px;
}

.page-heading,
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.admin-main h1 {
    font-size: clamp(2rem, 4vw, 3.3rem);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.metric-grid div {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 20px;
}

.metric-grid strong {
    display: block;
    margin-top: 10px;
    font-size: 2rem;
}

.table-section {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.section-heading {
    margin: 0;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}

.section-heading h2,
.panel h2 {
    margin: 0;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 14px 16px;
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
}

td strong {
    display: block;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 0.82rem;
    font-weight: 850;
}

.badge-green {
    background: #eaf5ee;
    color: #1f6b3a;
}

.badge-red {
    background: #fff0f0;
    color: #9f2832;
}

.badge-amber {
    background: #fff8df;
    color: #7a5a16;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 220px auto;
    gap: 10px;
    margin-bottom: 18px;
}

.row-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.row-actions form {
    margin: 0;
}

.row-actions button {
    border: 0;
    background: transparent;
    color: var(--sage);
    font-weight: 800;
}

.row-actions .danger-link {
    color: #9f2832;
}

.aso-ebi-admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: start;
    margin-bottom: 22px;
}

.aso-ebi-preview-panel {
    display: grid;
    gap: 16px;
}

.aso-ebi-mini-card {
    min-height: 260px;
    display: grid;
    align-content: center;
    gap: 10px;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    color: #fff;
}

.aso-ebi-mini-card span {
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.aso-ebi-mini-card strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.4rem;
    line-height: 1;
    text-transform: uppercase;
}

.aso-ebi-mini-card em {
    font-style: normal;
    font-weight: 850;
}

.mini-men {
    background: #6f101d;
}

.mini-women {
    background: #d94483;
}

.aso-ebi-thumb {
    width: 92px;
    height: 92px;
    border: 1px solid var(--line);
    border-radius: 8px;
    object-fit: cover;
}

.share-link-field {
    display: flex;
    gap: 8px;
    min-width: 360px;
}

.share-link-field input {
    min-height: 44px;
    font-size: 0.88rem;
}

.aso-ebi-page {
    background: #f8f2e8;
}

.aso-ebi-shell {
    width: min(1120px, calc(100% - 36px));
    min-height: 100vh;
    margin: 0 auto;
    padding: clamp(28px, 6vw, 70px) 0;
    display: grid;
    grid-template-columns: minmax(280px, 520px) minmax(280px, 1fr);
    gap: clamp(22px, 4vw, 54px);
    align-items: center;
}

.aso-ebi-card-panel img {
    width: 100%;
    display: block;
    border-radius: 8px;
    box-shadow: 0 26px 70px rgba(32, 27, 20, 0.18);
}

.aso-ebi-response-panel {
    display: grid;
    gap: 18px;
}

.aso-ebi-response-panel h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 5vw, 4.8rem);
    line-height: 0.96;
    font-weight: 500;
}

.aso-ebi-response-panel p:not(.eyebrow) {
    margin: 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.5vw, 1.16rem);
}

.aso-ebi-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.locked-response {
    display: grid;
    gap: 4px;
    border-radius: 8px;
    padding: 16px;
    background: #fff8df;
    color: #7a5a16;
}

.locked-response strong {
    font-size: 1.1rem;
}

.locked-response.is-accepted {
    background: #eaf5ee;
    color: #1f6b3a;
}

.locked-response.is-rejected {
    background: #fff0f0;
    color: #9f2832;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-grid label:has(textarea),
.form-divider,
.form-actions {
    grid-column: 1 / -1;
}

.form-divider {
    border-top: 1px solid var(--line);
    margin-top: 8px;
    padding-top: 18px;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-row input {
    width: auto;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

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

.auth-card h1 {
    font-size: 2.3rem;
}

.checkin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 360px;
    gap: 18px;
    align-items: start;
}

.checkin-panel {
    display: grid;
    gap: 14px;
}

.scanner-video {
    width: 100%;
    max-height: 360px;
    border-radius: 8px;
    background: #111;
}

@media (max-width: 1020px) {

    .wedding-hero::before {
        background-position: 58% 24%;
    }

    .wedding-hero-inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "kicker"
            "names"
            "card"
            "actions";
        align-content: end;
    }

    .hero-invite-card {
        justify-self: start;
        width: min(360px, 100%);
        transform: none;
    }

    .wedding-info-bar,
    .detail-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .story-layout,
    .experience-layout,
    .rsvp-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 880px) {

    .section-grid,
    .invite-shell,
    .checkin-grid,
    .aso-ebi-admin-grid,
    .aso-ebi-shell {
        grid-template-columns: 1fr;
    }

    .stats-strip,
    .metric-grid {
        grid-template-columns: 1fr;
    }

    .invite-details {
        grid-template-columns: 1fr;
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
    }

    .filter-bar,
    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {

    .wedding-nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .wedding-nav-links {
        width: 100%;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .hero-invite-card {
        display: none;
    }

    .wedding-info-bar,
    .detail-card-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        grid-column: auto;
    }

    .experience-list article {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .experience-list p {
        grid-column: auto;
        margin: 0;
    }

    .token-form div {
        flex-direction: column;
    }

    .wedding-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {

    .inline-form,
    .page-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .wedding-hero {
        min-height: 100svh;
    }

    .wedding-hero-inner {
        padding-top: 42px;
        padding-bottom: 34px;
    }

    .wedding-nav-links {
        display: flex;
        flex-wrap: nowrap;
        gap: 9px;
        overflow-x: auto;
    }

    .wedding-nav-links a {
        flex: 0 0 auto;
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 8px;
        padding: 9px 10px;
        text-align: center;
    }

    .hero-names h1 {
        font-size: clamp(3.4rem, 17vw, 4.7rem);
    }

    .hero-names h1 span+span {
        margin-left: 0;
    }

    .hero-names p:not(.eyebrow) {
        font-size: 1rem;
    }

    .hero-actions .button {
        width: 100%;
    }

    .wedding-info-bar {
        margin-top: 0;
        width: 100%;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .wedding-section {
        padding-right: 18px;
        padding-left: 18px;
    }

    .story-photo figcaption {
        position: static;
        border: 1px solid #eadfce;
        border-top: 0;
        border-radius: 0 0 8px 8px;
    }
}
