/* =========================================================================
   Invitations & RSVP
   Loaded only on /invitations/* so it costs the rest of the site nothing.
   ====================================================================== */

/* ---------------------------------------------------------- Host screens */

.ae-inv-page { padding: 44px 0 90px; }
.ae-inv-page--wide .ae-container { max-width: 1240px; }
.ae-inv-narrow { max-width: 480px; }

.ae-inv-title {
	font-size: clamp(1.8rem, 3.4vw, 2.5rem);
	margin: 0 0 8px;
	line-height: 1.2;
}
.ae-inv-sub { color: var(--ae-text-soft); font-size: .95rem; margin: 0 0 22px; }
.ae-inv-sub a { font-weight: 600; }
.ae-inv-back { font-size: .85rem; margin: 0 0 14px; }
.ae-inv-muted { color: var(--ae-muted); font-size: .86rem; }
.ae-inv-subhead {
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ae-muted);
	margin: 26px 0 12px;
}

.ae-inv-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}
.ae-inv-head__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Notices */
.ae-inv-notice {
	border-radius: var(--ae-radius);
	padding: 14px 18px;
	font-size: .9rem;
	line-height: 1.6;
	margin: 0 0 20px;
	border: 1px solid var(--ae-line);
	background: var(--ae-surface-2);
	color: var(--ae-text);
}
.ae-inv-notice.is-ok { border-left: 4px solid #1F7A49; }
.ae-inv-notice.is-error { border-left: 4px solid #B3342F; }
.ae-inv-notice span { display: block; margin-top: 4px; color: var(--ae-text-soft); font-size: .85rem; }

/* Forms */
.ae-inv-form { max-width: 100%; }
.ae-inv-form .ae-form-row { margin-bottom: 16px; }
.ae-inv-form label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 6px; color: var(--ae-text); }
.ae-inv-form input[type="text"],
.ae-inv-form input[type="email"],
.ae-inv-form input[type="password"],
.ae-inv-form input[type="tel"],
.ae-inv-form input[type="url"],
.ae-inv-form input[type="date"],
.ae-inv-form input[type="time"],
.ae-inv-form input[type="number"],
.ae-inv-form input[type="search"],
.ae-inv-form input[type="file"],
.ae-inv-form select,
.ae-inv-form textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--ae-line-strong);
	border-radius: var(--ae-radius-sm);
	background: var(--ae-surface);
	color: var(--ae-text);
	font-family: var(--ae-font-body);
	font-size: .92rem;
}
.ae-inv-form textarea { line-height: 1.6; resize: vertical; }
.ae-inv-check { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; margin: 10px 0 18px; cursor: pointer; }
.ae-inv-check input { width: 17px; height: 17px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--ae-amber); }
.ae-inv-alt { font-size: .86rem; margin-top: 18px; color: var(--ae-text-soft); }

.ae-inv-fieldset {
	border: 1px solid var(--ae-line);
	border-radius: var(--ae-radius);
	padding: 20px 22px 24px;
	margin: 0 0 20px;
	background: var(--ae-surface);
}
.ae-inv-fieldset > legend {
	padding: 0 10px;
	font-family: var(--ae-font-head);
	font-size: 1.1rem;
	color: var(--ae-heading);
}

.ae-inv-formbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 18px 0 0;
	border-top: 1px solid var(--ae-line);
	margin-top: 10px;
}
.ae-inv-formbar .ae-inv-check { margin: 0; }

/* Repeating rows */
.ae-inv-repeat__item {
	border: 1px dashed var(--ae-line-strong);
	border-radius: var(--ae-radius-sm);
	padding: 16px 18px 10px;
	margin-bottom: 14px;
	position: relative;
}
.ae-inv-repeat__remove,
.ae-inv-remove {
	background: none;
	border: 0;
	padding: 4px 0;
	font-size: .78rem;
	font-weight: 600;
	color: #B3342F;
	text-decoration: underline;
	cursor: pointer;
}

/* Design picker */
.ae-inv-designs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.ae-inv-design { display: block; cursor: pointer; text-align: center; }
.ae-inv-design input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ae-inv-design__cover {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 92px;
	border-radius: var(--ae-radius);
	background: var(--inv-cover);
	color: var(--inv-gold);
	border: 3px solid transparent;
	transition: border-color var(--ae-t), transform var(--ae-t);
}
.ae-inv-design input:checked + .ae-inv-design__cover { border-color: var(--ae-gold); transform: translateY(-2px); }
.ae-inv-design input:focus-visible + .ae-inv-design__cover { outline: 3px solid var(--ae-gold); outline-offset: 2px; }
.ae-inv-design__name { display: block; font-size: .8rem; margin-top: 8px; color: var(--ae-text-soft); }

/* Dashboard list */
.ae-inv-list { display: grid; gap: 14px; }
.ae-inv-row {
	display: grid;
	grid-template-columns: 110px minmax(0, 1fr) auto;
	gap: 20px;
	align-items: center;
	background: var(--ae-surface);
	border: 1px solid var(--ae-line);
	border-radius: var(--ae-radius);
	padding: 18px 20px;
}
.ae-inv-row__cover {
	height: 80px;
	border-radius: var(--ae-radius-sm);
	background: var(--inv-cover);
	color: var(--inv-gold);
	display: flex;
	align-items: center;
	justify-content: center;
}
.ae-inv-row__top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ae-inv-row__top h2 { font-size: 1.14rem; margin: 0; }
.ae-inv-row__meta { font-size: .84rem; color: var(--ae-muted); margin: 6px 0 10px; }
.ae-inv-row__stats { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; margin: 0; padding: 0; font-size: .8rem; color: var(--ae-text-soft); }
.ae-inv-row__stats strong { display: block; font-size: 1.15rem; color: var(--ae-heading); font-family: var(--ae-font-head); }
.ae-inv-row__actions { display: flex; flex-direction: column; gap: 8px; }

.ae-inv-pill {
	font-size: .64rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	padding: 4px 11px;
	border-radius: var(--ae-radius-pill);
	background: var(--ae-surface-2);
	color: var(--ae-text-soft);
}
.ae-inv-pill.is-live { background: rgba(31, 122, 73, .14); color: #1A6B40; }

.ae-inv-empty {
	text-align: center;
	padding: 56px 24px;
	border: 1px dashed var(--ae-line-strong);
	border-radius: var(--ae-radius-lg);
}
.ae-inv-empty h2 { font-size: 1.3rem; margin: 0 0 8px; }
.ae-inv-empty p { color: var(--ae-text-soft); max-width: 46ch; margin: 0 auto 20px; }

/* Tabs */
.ae-inv-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--ae-line); margin: 18px 0 24px; }
.ae-inv-tab {
	padding: 11px 18px;
	font-size: .86rem;
	font-weight: 600;
	color: var(--ae-text-soft);
	text-decoration: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
}
.ae-inv-tab:hover { color: var(--ae-amber-text); }
.ae-inv-tab.is-active { color: var(--ae-heading); border-bottom-color: var(--ae-gold); }

/* Stat cards */
.ae-inv-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 12px; margin-bottom: 20px; }
.ae-inv-stat {
	background: var(--ae-surface);
	border: 1px solid var(--ae-line);
	border-radius: var(--ae-radius);
	padding: 18px 20px;
}
.ae-inv-stat__num { display: block; font-family: var(--ae-font-head); font-size: 2rem; line-height: 1; color: var(--ae-heading); }
.ae-inv-stat__label { display: block; font-size: .82rem; font-weight: 600; margin-top: 7px; }
.ae-inv-stat__note { display: block; font-size: .74rem; color: var(--ae-muted); margin-top: 3px; }

/* Progress bar */
.ae-inv-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--ae-surface-2); margin-bottom: 10px; }
.ae-inv-bar__seg.is-yes { background: #1F7A49; }
.ae-inv-bar__seg.is-maybe { background: var(--ae-gold); }
.ae-inv-bar__seg.is-no { background: #B3342F; }
.ae-inv-bar__seg.is-wait { background: #C3CAD9; }
.ae-inv-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 16px; padding: 0; margin: 0 0 26px; font-size: .78rem; color: var(--ae-text-soft); }
.ae-inv-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.ae-inv-legend i.is-yes { background: #1F7A49; }
.ae-inv-legend i.is-maybe { background: var(--ae-gold); }
.ae-inv-legend i.is-no { background: #B3342F; }
.ae-inv-legend i.is-wait { background: #C3CAD9; }

/* Panels */
.ae-inv-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr)); gap: 16px; align-items: start; }
.ae-inv-panel {
	min-width: 0;
	background: var(--ae-surface);
	border: 1px solid var(--ae-line);
	border-radius: var(--ae-radius);
	padding: 22px 24px;
	margin-bottom: 16px;
}
.ae-inv-panel h2 { font-size: 1.1rem; margin: 0 0 14px; }
.ae-inv-panel--danger { border-color: rgba(179, 52, 47, .4); }

/* Tables */
.ae-inv-tablewrap { overflow-x: auto; }
.ae-inv-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.ae-inv-table th,
.ae-inv-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--ae-line); vertical-align: top; }
.ae-inv-table th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ae-muted); background: transparent; }
.ae-inv-table td.is-num { text-align: right; }
.ae-inv-table tr.has-problem td { background: rgba(240, 183, 6, .09); }
.ae-inv-problem { font-size: .76rem; color: #8A6118; }
.ae-inv-colhead { display: block; font-size: .76rem; margin-bottom: 6px; color: var(--ae-text); text-transform: none; letter-spacing: 0; }

.ae-inv-table--guests input,
.ae-inv-table--guests select {
	width: 100%;
	min-width: 110px;
	padding: 7px 9px;
	border: 1px solid var(--ae-line);
	border-radius: 6px;
	background: var(--ae-surface);
	color: var(--ae-text);
	font-size: .82rem;
	margin-bottom: 4px;
}
.ae-inv-sent span {
	display: inline-block;
	font-size: .68rem;
	padding: 3px 8px;
	border-radius: 999px;
	background: var(--ae-surface-2);
	color: var(--ae-text-soft);
	margin: 0 4px 4px 0;
}
.ae-inv-sent span.is-open { background: rgba(31, 122, 73, .14); color: #1A6B40; }
.ae-inv-done { color: #1A6B40; font-weight: 600; font-size: .8rem; }
.ae-inv-wa-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.ae-inv-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ae-inv-inline input { flex: 1 1 130px; min-width: 110px; padding: 9px 12px; border: 1px solid var(--ae-line-strong); border-radius: var(--ae-radius-sm); background: var(--ae-surface); color: var(--ae-text); font-size: .86rem; }
.ae-inv-inline input[type="number"] { flex: 0 0 76px; }

.ae-inv-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.ae-inv-filters input,
.ae-inv-filters select { padding: 9px 12px; border: 1px solid var(--ae-line-strong); border-radius: var(--ae-radius-sm); background: var(--ae-surface); color: var(--ae-text); font-size: .86rem; }
.ae-inv-count { font-size: .8rem; color: var(--ae-muted); margin-left: auto; }

.ae-inv-bullets { font-size: .88rem; line-height: 1.8; color: var(--ae-text-soft); padding-left: 20px; }
.ae-inv-notes { list-style: none; padding: 0; margin: 0; font-size: .86rem; line-height: 1.7; }
.ae-inv-notes li { padding: 7px 0; border-bottom: 1px solid var(--ae-line); }
.ae-inv-log { list-style: none; padding: 0; margin: 0; font-size: .82rem; }
.ae-inv-log li { padding: 8px 0; border-bottom: 1px solid var(--ae-line); display: flex; flex-wrap: wrap; gap: 10px; }
.ae-inv-log__when { color: var(--ae-muted); min-width: 92px; }
.ae-inv-log__what { font-weight: 600; text-transform: capitalize; }
.ae-inv-log__detail { color: var(--ae-text-soft); }

.ae-inv-copy { width: 100%; padding: 11px 14px; border: 1px solid var(--ae-line-strong); border-radius: var(--ae-radius-sm); background: var(--ae-surface-2); color: var(--ae-text); font-size: .84rem; }

/* Landing page */
.ae-inv-hero { background: var(--ae-navy); color: #fff; padding: 72px 0 66px; margin-bottom: 44px; }
.ae-inv-hero__eyebrow { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ae-gold); margin: 0 0 14px; }
.ae-inv-hero__title { font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.1; color: #fff; margin: 0 0 18px; max-width: 18ch; }
.ae-inv-hero__lede { font-size: 1.05rem; line-height: 1.7; color: rgba(255,255,255,.8); max-width: 62ch; margin: 0 0 26px; }
.ae-inv-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ae-inv-hero__note { font-size: .84rem; color: rgba(255,255,255,.6); margin: 22px 0 0; }

/*
 * The hero is navy, and the ghost button's default ink is the heading navy —
 * which rendered it invisible against its own background. On this panel the
 * outline and the label are white.
 */
.ae-inv-hero .ae-btn--ghost {
	color: #fff;
	border-color: rgba(255, 255, 255, .5);
}
.ae-inv-hero .ae-btn--ghost:hover,
.ae-inv-hero .ae-btn--ghost:focus {
	color: var(--ae-gold);
	border-color: var(--ae-gold);
}

.ae-inv-section { margin-bottom: 56px; }
.ae-inv-section__title { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 10px; }
.ae-inv-section__lede { color: var(--ae-text-soft); max-width: 66ch; margin: 0 0 24px; }
.ae-inv-section--cta { text-align: center; background: var(--ae-surface-2); border-radius: var(--ae-radius-lg); padding: 50px 28px; }
.ae-inv-section--cta p { color: var(--ae-text-soft); max-width: 54ch; margin: 0 auto 22px; }

.ae-inv-steps { list-style: none; counter-reset: s; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.ae-inv-steps li { min-width: 0; background: var(--ae-surface); border: 1px solid var(--ae-line); border-radius: var(--ae-radius); padding: 22px 24px; }
.ae-inv-steps__num {
	display: inline-flex; align-items: center; justify-content: center;
	width: 30px; height: 30px; border-radius: 50%;
	background: var(--ae-navy); color: var(--ae-gold);
	font-family: var(--ae-font-head); font-size: .92rem; margin-bottom: 12px;
}
.ae-inv-steps h3 { font-size: 1.02rem; margin: 0 0 7px; }
.ae-inv-steps p { font-size: .87rem; color: var(--ae-text-soft); margin: 0; line-height: 1.65; }

.ae-inv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); gap: 16px; }
.ae-inv-card:not(.ae-inv-guest .ae-inv-card) { }
.ae-inv-grid .ae-inv-card { background: var(--ae-surface); border: 1px solid var(--ae-line); border-radius: var(--ae-radius); padding: 22px 24px; }
.ae-inv-grid .ae-inv-card h3 { font-size: 1.02rem; margin: 0 0 8px; }
.ae-inv-grid .ae-inv-card p { font-size: .87rem; color: var(--ae-text-soft); margin: 0; line-height: 1.65; }

.ae-inv-swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.ae-inv-swatch { text-align: center; }
.ae-inv-swatch__cover {
	display: flex; align-items: center; justify-content: center;
	height: 130px; border-radius: var(--ae-radius);
	background: var(--inv-cover); color: var(--inv-gold); margin-bottom: 12px;
}
.ae-inv-swatch h3 { font-size: .98rem; margin: 0 0 5px; }
.ae-inv-swatch p { font-size: .8rem; color: var(--ae-text-soft); margin: 0; line-height: 1.6; }

/* =========================================================================
   Guest-facing invitation
   ====================================================================== */

body.ae-inv-guest {
	margin: 0;
	background: var(--inv-wash, #F4F6FB);
	color: var(--inv-body, #3C4459);
	font-family: var(--ae-font-body, system-ui, sans-serif);
	-webkit-font-smoothing: antialiased;
}
.ae-inv-guest__wrap { max-width: 620px; margin: 0 auto; padding: 22px 16px 60px; }

.ae-inv-previewbar {
	display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between;
	background: var(--inv-ink); color: var(--inv-paper);
	border-radius: var(--ae-radius-sm, 8px); padding: 11px 16px; margin-bottom: 16px; font-size: .8rem;
}
.ae-inv-previewbar a { color: var(--inv-gold); font-weight: 600; }

.ae-inv-guest .ae-inv-card {
	background: var(--inv-paper);
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .10), 0 40px 90px rgba(0, 0, 0, .08);
}
.ae-inv-guest .ae-inv-card[hidden] { display: none; }

.ae-inv-cover {
	background: var(--inv-cover);
	background-size: cover;
	background-position: center;
	color: #fff;
	padding: 50px 30px 44px;
	text-align: center;
	position: relative;
}
.ae-inv-cover::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.42));
	opacity: 0;
}
.ae-inv-cover[style*="background-image"]::after { opacity: 1; }
.ae-inv-cover__inner { position: relative; z-index: 1; }
.ae-inv-cover__greeting { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; opacity: .78; margin: 0 0 14px; }
.ae-inv-cover__hosts { font-size: .95rem; margin: 0 0 10px; opacity: .92; }
.ae-inv-cover__title {
	font-family: var(--ae-font-head, Georgia, serif);
	font-size: clamp(1.8rem, 7vw, 2.6rem);
	line-height: 1.16;
	margin: 0;
	color: #fff;
}
.ae-inv-cover__motif { display: block; color: var(--inv-gold); margin: 18px auto 0; max-width: 150px; }
.ae-inv-cover__motif svg { width: 100%; height: auto; }
.ae-inv-cover__to { font-size: .84rem; opacity: .8; margin: 16px 0 0; }

.ae-inv-h2 {
	font-family: var(--ae-font-head, Georgia, serif);
	font-size: 1.22rem;
	color: var(--inv-ink);
	margin: 0 0 16px;
	text-align: center;
}
.ae-inv-message { padding: 32px 30px 10px; text-align: center; font-size: .98rem; line-height: 1.85; color: var(--inv-body); }
.ae-inv-message__closing { font-family: var(--ae-font-head, Georgia, serif); font-size: 1.05rem; color: var(--inv-ink); margin-top: 18px; }

.ae-inv-schedule { padding: 26px 30px 10px; }
.ae-inv-fn { border-top: 1px solid var(--inv-edge); padding: 20px 0; text-align: center; }
.ae-inv-fn:first-of-type { border-top: 0; }
.ae-inv-fn h3 { font-family: var(--ae-font-head, Georgia, serif); font-size: 1.1rem; color: var(--inv-ink); margin: 0 0 6px; }
.ae-inv-fn__when { color: var(--inv-accent); font-size: .88rem; font-weight: 600; margin: 0 0 5px; }
.ae-inv-fn__where { font-size: .88rem; margin: 0 0 5px; }
.ae-inv-fn__dress { font-size: .8rem; color: var(--inv-muted); margin: 0 0 5px; font-style: italic; }
.ae-inv-fn__note { font-size: .82rem; color: var(--inv-muted); margin: 0; }
.ae-inv-fn__links { display: flex; justify-content: center; gap: 16px; margin: 10px 0 0; }
.ae-inv-fn__links a { font-size: .78rem; font-weight: 600; color: var(--inv-accent); text-decoration: underline; }

.ae-inv-rsvp { padding: 30px 30px 34px; background: var(--inv-wash); border-top: 1px solid var(--inv-edge); }
.ae-inv-deadline { text-align: center; font-size: .82rem; color: var(--inv-accent); font-weight: 600; margin: 0 0 20px; }

.ae-inv-choice { display: grid; gap: 10px; margin-bottom: 20px; }
.ae-inv-choice__opt { display: block; cursor: pointer; }
.ae-inv-choice__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ae-inv-choice__opt span {
	display: block;
	text-align: center;
	padding: 15px 18px;
	border: 1.5px solid var(--inv-edge);
	border-radius: 11px;
	background: var(--inv-paper);
	color: var(--inv-ink);
	font-size: .95rem;
	font-weight: 600;
	transition: border-color .2s, background .2s, color .2s;
}
.ae-inv-choice__opt input:checked + span { border-color: var(--inv-accent); background: var(--inv-accent); color: var(--inv-paper); }
.ae-inv-choice__opt input:focus-visible + span { outline: 3px solid var(--inv-gold); outline-offset: 2px; }

.ae-inv-guest .ae-form-row { margin-bottom: 15px; }
.ae-inv-guest .ae-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 14px; }
.ae-inv-guest label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: 6px; color: var(--inv-ink); }
.ae-inv-guest input[type="text"],
.ae-inv-guest input[type="email"],
.ae-inv-guest input[type="tel"],
.ae-inv-guest select,
.ae-inv-guest textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--inv-edge);
	border-radius: 9px;
	background: var(--inv-paper);
	color: var(--inv-ink);
	font-family: inherit;
	font-size: .93rem;
}
.ae-inv-guest textarea { resize: vertical; line-height: 1.6; }

.ae-inv-fns, .ae-inv-meals { border: 1px solid var(--inv-edge); border-radius: 11px; padding: 16px 18px; margin: 0 0 16px; background: var(--inv-paper); }
.ae-inv-fns legend, .ae-inv-meals legend { font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--inv-muted); padding: 0 6px; }
.ae-inv-fns__row { display: flex; align-items: flex-start; gap: 11px; padding: 9px 0; cursor: pointer; }
.ae-inv-fns__row input { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--inv-accent); }
.ae-inv-fns__row strong { display: block; font-size: .92rem; color: var(--inv-ink); font-weight: 600; }
.ae-inv-fns__row em { display: block; font-size: .78rem; color: var(--inv-muted); font-style: normal; }
.ae-inv-meal[hidden] { display: none; }

.ae-inv-ifyes[hidden] { display: none; }

.ae-inv-btn {
	display: inline-block;
	padding: 15px 30px;
	border: 0;
	border-radius: 999px;
	background: var(--inv-accent);
	color: var(--inv-paper);
	font-family: inherit;
	font-size: .86rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
}
.ae-inv-btn--block { display: block; width: 100%; margin-top: 8px; }
.ae-inv-btn--ghost { background: transparent; color: var(--inv-accent); border: 1.5px solid var(--inv-edge); }

.ae-inv-thanks { text-align: center; }
.ae-inv-thanks__lead { font-size: 1rem; line-height: 1.7; margin: 0 0 12px; }

.ae-inv-faq { padding: 26px 30px; border-top: 1px solid var(--inv-edge); }
.ae-inv-faq__item { border-bottom: 1px solid var(--inv-edge); }
.ae-inv-faq__item summary { padding: 14px 0; font-weight: 600; font-size: .92rem; color: var(--inv-ink); cursor: pointer; }
.ae-inv-faq__item div { font-size: .88rem; line-height: 1.7; padding-bottom: 12px; }

.ae-inv-extras { padding: 24px 30px; text-align: center; border-top: 1px solid var(--inv-edge); display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.ae-inv-hashtag { width: 100%; font-family: var(--ae-font-head, Georgia, serif); font-size: 1.05rem; color: var(--inv-accent); margin: 8px 0 0; }

.ae-inv-foot { padding: 22px 30px 26px; text-align: center; font-size: .78rem; color: var(--inv-muted); border-top: 1px solid var(--inv-edge); }
.ae-inv-foot a { color: var(--inv-accent); }
.ae-inv-foot__brand { margin: 8px 0 0; }

/* The envelope */
.ae-inv-envelope { display: flex; justify-content: center; padding: 40px 0 10px; }
.ae-inv-envelope[hidden] { display: none; }
.ae-inv-envelope__btn { position: relative; background: none; border: 0; padding: 0; cursor: pointer; width: 100%; max-width: 420px; font-family: inherit; }
.ae-inv-envelope__body {
	display: block;
	height: 230px;
	border-radius: 12px;
	background: var(--inv-cover);
	box-shadow: 0 16px 40px rgba(0, 0, 0, .18);
	position: relative;
	overflow: hidden;
}
.ae-inv-envelope__body::before,
.ae-inv-envelope__body::after {
	content: ""; position: absolute; inset: 0;
	border-top: 115px solid rgba(255, 255, 255, .07);
	border-left: 210px solid transparent;
	border-right: 210px solid transparent;
}
.ae-inv-envelope__body::after { transform: rotate(180deg); }
.ae-inv-envelope__flap {
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 118px;
	background: var(--inv-cover);
	clip-path: polygon(0 0, 100% 0, 50% 100%);
	transform-origin: top center;
	transition: transform .75s cubic-bezier(.22,.61,.36,1);
	z-index: 3;
	filter: brightness(1.12);
}
.ae-inv-envelope__seal {
	/* Below the point of the flap, where a wax seal would actually sit. */
	position: absolute;
	top: 64%; left: 50%;
	transform: translate(-50%, -50%);
	color: var(--inv-gold);
	width: 120px;
	z-index: 2;
}
.ae-inv-envelope__seal svg { width: 100%; height: auto; }
.ae-inv-envelope__label { display: block; margin-top: 18px; }
.ae-inv-envelope__to { display: block; font-family: var(--ae-font-head, Georgia, serif); font-size: 1.2rem; color: var(--inv-ink); }
.ae-inv-envelope__hint { display: block; font-size: .78rem; color: var(--inv-muted); margin-top: 6px; }

.ae-inv-envelope.is-open .ae-inv-envelope__flap { transform: rotateX(180deg); }
.ae-inv-envelope.is-gone { animation: ae-inv-away .55s forwards; }

@keyframes ae-inv-away {
	to { opacity: 0; transform: translateY(-24px) scale(.96); }
}
@keyframes ae-inv-arrive {
	from { opacity: 0; transform: translateY(26px); }
	to { opacity: 1; transform: none; }
}
.ae-inv-card.is-arriving { animation: ae-inv-arrive .6s cubic-bezier(.22,.61,.36,1) both; }

/* ------------------------------------------------------------ Responsive */
@media (max-width: 860px) {
	.ae-inv-row { grid-template-columns: 1fr; }
	.ae-inv-row__cover { height: 64px; }
	.ae-inv-row__actions { flex-direction: row; }
}
@media (max-width: 640px) {
	.ae-inv-page { padding: 28px 0 60px; }
	.ae-inv-hero { padding: 52px 0 46px; }
	.ae-inv-fieldset { padding: 16px 14px 18px; }
	.ae-inv-panel { padding: 18px 16px; }
	.ae-inv-guest__wrap { padding: 14px 12px 44px; }
	.ae-inv-cover { padding: 38px 20px 34px; }
	.ae-inv-message, .ae-inv-schedule, .ae-inv-rsvp, .ae-inv-faq, .ae-inv-extras, .ae-inv-foot { padding-left: 18px; padding-right: 18px; }
	.ae-inv-envelope__body { height: 180px; }
	.ae-inv-envelope__flap { height: 92px; }
	.ae-inv-cols,
	.ae-inv-grid,
	.ae-inv-steps,
	.ae-inv-stats,
	.ae-inv-swatches,
	.ae-inv-designs { grid-template-columns: minmax(0, 1fr); }
	.ae-inv-tabs { overflow-x: auto; flex-wrap: nowrap; }
	.ae-inv-tab { white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
	.ae-inv-envelope__flap,
	.ae-inv-envelope.is-gone,
	.ae-inv-card.is-arriving { transition: none !important; animation: none !important; }
}

/* Guest-list pager */
.ae-inv-pager { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 8px; }
.ae-inv-pager__link {
	min-width: 34px;
	padding: 7px 10px;
	text-align: center;
	border: 1px solid var(--ae-line-strong);
	border-radius: 7px;
	font-size: .82rem;
	font-weight: 600;
	color: var(--ae-text-soft);
	text-decoration: none;
}
.ae-inv-pager__link:hover { border-color: var(--ae-gold); color: var(--ae-amber-text); }
.ae-inv-pager__link.is-current { background: var(--ae-navy); border-color: var(--ae-navy); color: #fff; }
:root[data-theme="dark"] .ae-inv-pager__link.is-current { background: var(--ae-gold); border-color: var(--ae-gold); color: var(--ae-navy-950); }
.ae-inv-switch { display: flex; gap: 6px; margin: 0 0 16px; }
.ae-inv-switch a {
	padding: 7px 15px;
	border: 1px solid var(--ae-line-strong);
	border-radius: var(--ae-radius-pill);
	font-size: .8rem;
	font-weight: 600;
	color: var(--ae-text-soft);
	text-decoration: none;
}
.ae-inv-switch a.is-current { background: var(--ae-navy); border-color: var(--ae-navy); color: #fff; }
:root[data-theme="dark"] .ae-inv-switch a.is-current { background: var(--ae-gold); border-color: var(--ae-gold); color: var(--ae-navy-950); }

/* A failed bulk send can produce hundreds of log lines; keep the panel calm. */
.ae-inv-log { max-height: 340px; overflow-y: auto; }
.ae-inv-notes { max-height: 340px; overflow-y: auto; }
