:root {
  color-scheme: light;
  --ink: #23332d;
  --muted: #60716a;
  --paper: #fbf9f3;
  --green: #355b4c;
  --green-dark: #29483c;
  --sage: #e6ede4;
  --coral: #df806b;
  --line: #deded4;
  font-family: "Aptos", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); }
a { color: inherit; }
a:focus-visible { outline: 3px solid #b04f3d; outline-offset: 4px; border-radius: 3px; }
.skip-link { position: absolute; z-index: 5; top: 0.75rem; left: 0.75rem; padding: 0.75rem 1rem; transform: translateY(-160%); background: white; color: var(--ink); }
.skip-link:focus { transform: translateY(0); }
.site-header, .site-footer { width: min(1160px, calc(100% - 3rem)); margin: auto; display: flex; align-items: center; justify-content: space-between; }
.site-header { height: 86px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; font-size: 1.1rem; font-weight: 700; text-decoration: none; letter-spacing: -0.03em; }
.brand-mark { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: var(--green); color: white; font-family: Georgia, serif; font-style: italic; }
.header-note, .quiet-note { color: var(--muted); font-size: 0.88rem; }
.hero { width: min(1160px, calc(100% - 3rem)); min-height: 600px; margin: auto; padding: 5.6rem 0 5rem; display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 5rem; }
.hero-copy { max-width: 590px; }
.eyebrow { margin: 0 0 1rem; color: var(--green); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, .steps h2 { margin-bottom: 1.25rem; font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -0.045em; }
h1 { font-size: clamp(3rem, 5.5vw, 5rem); line-height: 1.05; }
h1 span { color: var(--green); font-style: italic; }
.intro { max-width: 480px; margin-bottom: 2rem; color: var(--muted); font-size: 1.08rem; line-height: 1.75; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; padding: 0 1.3rem; border-radius: 7px; font-weight: 650; text-decoration: none; }
.button-primary { background: var(--green); color: #fff; }
.button-primary:hover { background: var(--green-dark); }
.text-link { font-size: 0.93rem; font-weight: 650; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.quiet-note { margin: 1.7rem 0 0; font-size: 0.82rem; }
.invite-card { position: relative; width: min(100%, 390px); min-height: 430px; justify-self: center; overflow: hidden; padding: 2rem 2.15rem; border: 1px solid #d5d8ca; border-radius: 12px; background: #f0f0e7; box-shadow: 0 22px 50px rgb(49 63 53 / 9%); transform: rotate(1.3deg); }
.card-topline, .card-rsvp { display: flex; justify-content: space-between; align-items: center; }
.card-topline { color: var(--green); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.16em; }
.card-topline span:last-child { font-size: 1.1rem; }
.card-date { margin: 2.8rem 0 0.7rem; color: var(--coral); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.13em; }
.invite-card h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 2.8rem; font-weight: 400; line-height: 1.05; letter-spacing: -0.04em; }
.card-description { max-width: 245px; margin: 1.1rem 0 1.5rem; color: #64716a; font-size: 0.9rem; line-height: 1.65; }
.card-divider { width: 100%; height: 1px; margin: 1.5rem 0; background: #d5d8ca; }
.card-location { color: var(--green); font-size: 0.84rem; }
.card-location span { margin-right: 0.4rem; font-size: 1.15rem; }
.card-rsvp { margin-top: 2rem; color: #56665d; font-size: 0.8rem; }
.rsvp-chip { padding: 0.6rem 0.75rem; border: 1px solid #b9c5b7; border-radius: 5px; color: var(--green-dark); font-size: 0.72rem; font-weight: 650; }
.card-sparkle { position: absolute; color: #b7c4ae; }
.sparkle-one { top: 7.2rem; right: 2.4rem; font-size: 2.4rem; }
.sparkle-two { right: 4rem; bottom: 7.6rem; font-size: 1.6rem; }
.steps { padding: 5rem max(1.5rem, calc((100% - 1160px) / 2)); background: var(--sage); display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 5rem; }
.steps h2 { font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.12; }
.step-list { margin: 0; padding: 0; list-style: none; }
.step-list li { display: grid; grid-template-columns: 42px 1fr; gap: 1rem; padding: 1.15rem 0; border-bottom: 1px solid #cfd9cf; }
.step-list li:first-child { padding-top: 0; }
.step-number { color: var(--coral); font-family: Georgia, serif; font-size: 1.2rem; }
.step-list h3 { margin: 0 0 0.4rem; font-size: 1rem; }
.step-list p { max-width: 520px; margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.site-footer { min-height: 92px; }
.site-footer p { margin: 0; color: var(--muted); font-size: 0.83rem; }
.auth-wrap { width: min(100% - 2rem, 520px); min-height: calc(100vh - 178px); margin: auto; padding: 4rem 0; display: grid; place-items: center; }
.auth-card { width: 100%; padding: clamp(1.5rem, 5vw, 3rem); border: 1px solid var(--line); border-radius: 12px; background: #fffefa; box-shadow: 0 18px 45px rgb(49 63 53 / 6%); }
.auth-card h1 { margin: 0 0 0.8rem; font-size: clamp(2.25rem, 7vw, 3rem); }
.auth-intro, .form-note { margin-bottom: 1.75rem; color: var(--muted); line-height: 1.6; }
.form-stack { display: grid; gap: 0.65rem; }
.form-stack label { margin-top: 0.55rem; font-size: 0.9rem; font-weight: 650; }
.form-stack input, .form-stack textarea, .form-stack select { width: 100%; min-height: 48px; padding: 0.7rem 0.8rem; border: 1px solid #aebbb0; border-radius: 6px; background: #fff; color: var(--ink); font: inherit; }
.form-stack input:focus-visible, .form-stack textarea:focus-visible, .form-stack select:focus-visible { outline: 3px solid #668c76; outline-offset: 2px; }
.form-stack .button { width: 100%; margin-top: 0.8rem; border: 0; font: inherit; cursor: pointer; }
.button-google { width: 100%; border: 1px solid #aebbb0; background: white; }
.button-google:hover { background: #f4f6f2; }
.auth-divider { display: flex; align-items: center; gap: 0.8rem; margin: 1.4rem 0 0.4rem; color: var(--muted); font-size: 0.78rem; }
.auth-divider::before, .auth-divider::after { height: 1px; flex: 1; background: var(--line); content: ""; }
.form-alert { padding: 0.8rem 0.9rem; border-left: 4px solid #a43e2c; background: #fff1ed; color: #74291d; line-height: 1.5; }
.field-help { margin: 0; color: var(--muted); font-size: 0.8rem; }
.auth-switch { margin: 1.6rem 0 0; color: var(--muted); font-size: 0.9rem; text-align: center; }
.auth-switch a { color: var(--green-dark); font-weight: 700; text-underline-offset: 3px; }
.header-actions { display: flex; align-items: center; gap: 1.25rem; color: var(--muted); font-size: 0.9rem; }
.header-actions form, .event-actions form { margin: 0; }
.link-button { padding: 0.45rem 0.2rem; border: 0; background: transparent; color: var(--green-dark); font: inherit; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.danger-link { color: #9a3325; }
.dashboard-wrap, .event-detail { width: min(100% - 3rem, 1000px); min-height: calc(100vh - 178px); margin: auto; padding: 4rem 0; }
.dashboard-heading, .detail-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2.2rem; }
.dashboard-heading h1, .event-detail h1, .form-page h1 { margin-bottom: 0.8rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.6rem, 6vw, 4.3rem); font-weight: 400; letter-spacing: -0.045em; }
.dashboard-heading .intro { margin: 0; font-size: 0.98rem; }
.event-list { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.event-list-item { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.event-date { margin: 0 0 0.35rem; color: var(--green); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; }
.event-list-item h2 { margin: 0 0 0.25rem; font-family: Georgia, serif; font-size: 1.55rem; font-weight: 400; }
.event-list-item h2 a { text-decoration: none; text-underline-offset: 4px; }
.event-list-item h2 a:hover { text-decoration: underline; }
.event-summary { margin: 0; color: var(--muted); font-size: 0.88rem; }
.status-pill { flex: none; padding: 0.35rem 0.65rem; border-radius: 99px; background: #e6ede4; color: #29483c; font-size: 0.76rem; font-weight: 650; }
.status-archived { background: #ecebe5; color: #555d58; }
.status-cancelled { background: #f7e7e3; color: #842e22; }
.empty-state { margin: 3rem auto; padding: 3rem 1.5rem; border: 1px dashed #bbc9bc; border-radius: 10px; text-align: center; }
.empty-mark { color: var(--coral); font-size: 2rem; }
.empty-state h2 { margin: 0.8rem 0; font-family: Georgia, serif; font-size: 1.8rem; font-weight: 400; }
.empty-state p { max-width: 470px; margin: 0 auto 1.5rem; color: var(--muted); line-height: 1.6; }
.form-page { width: min(100% - 2rem, 720px); min-height: calc(100vh - 178px); margin: auto; padding: 4rem 0; }
.form-page h1 { font-size: clamp(2.6rem, 6vw, 3.7rem); }
.event-form { margin: 1.5rem 0 3rem; padding: clamp(1.4rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: 10px; background: #fffefa; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-grid > div { display: grid; gap: 0.65rem; }
.form-stack textarea { min-height: 4.5rem; resize: vertical; }
.check-row { display: flex; align-items: center; gap: 0.7rem; margin-top: 0.5rem; color: var(--ink); font-size: 0.9rem; }
.check-row input { width: 20px; min-height: 20px; height: 20px; accent-color: var(--green); }
.event-checkin-setting { margin: 0.5rem 0; padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: 8px; }
.event-checkin-setting legend { padding: 0 0.35rem; color: var(--green-dark); font-size: 0.85rem; font-weight: 700; }
.event-checkin-setting .check-row { margin-top: 0; }
.event-checkin-setting .field-help { margin: 0.45rem 0 0 1.7rem; line-height: 1.5; }
.event-detail { max-width: 860px; }
.detail-heading { align-items: center; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.detail-heading h1 { margin: 0 0 0.6rem; }
.detail-date, .deadline-note { margin: 0; color: var(--green); font-weight: 650; }
.button-outline { border: 1px solid #91a497; background: transparent; color: var(--green-dark); }
.button-outline:hover { background: #edf2ed; }
.detail-section { padding: 1.4rem 0; }
.detail-section h2 { margin: 0 0 0.6rem; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; }
.detail-section p { margin: 0; color: var(--muted); line-height: 1.7; white-space: pre-line; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; border-bottom: 1px solid var(--line); }
.next-step { margin: 2rem 0; padding: 1.4rem; border-radius: 8px; background: var(--sage); }
.deadline-note { font-size: 0.88rem; }
.event-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.3rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.event-actions .button { min-height: 42px; font-size: 0.88rem; }
.success-alert { padding: 0.85rem 1rem; border-left: 4px solid #316346; background: #eaf4e8; color: #204d33; line-height: 1.5; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8rem; margin: 2rem 0; }
.stat-card { min-height: 115px; padding: 1rem; border: 1px solid var(--line); border-radius: 8px; background: #fffefa; display: grid; align-content: start; gap: 0.35rem; }
.stat-card span { color: var(--muted); font-size: 0.78rem; }
.stat-card strong { color: var(--green-dark); font-family: Georgia, serif; font-size: 1.9rem; font-weight: 400; }
.stat-card small { color: var(--muted); font-size: 0.7rem; }
.guest-management-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 1rem; margin: 2rem 0; }
.guest-panel, .scanner-panel, .search-panel, .checkin-form-panel { padding: 1.4rem; border: 1px solid var(--line); border-radius: 9px; background: #fffefa; }
.guest-panel h2, .scanner-panel h2, .search-panel h2, .checkin-form-panel h2, .history-section h2 { margin: 0 0 1rem; font-family: Georgia, serif; font-size: 1.45rem; font-weight: 400; }
.guest-panel > p, .scanner-panel > p, .checkin-form-panel > p { color: var(--muted); font-size: 0.88rem; line-height: 1.55; }
.guest-panel code { overflow-wrap: anywhere; color: var(--green-dark); }
.guest-table-section { margin-top: 2.5rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-heading h2, .reception-results h3 { margin: 0; font-family: Georgia, serif; font-size: 1.6rem; font-weight: 400; }
.filter-form { display: flex; flex-wrap: wrap; align-items: end; gap: 0.55rem; }
.filter-form label { font-size: 0.78rem; font-weight: 650; }
.filter-form input, .filter-form select { min-height: 42px; max-width: 220px; padding: 0.5rem 0.65rem; border: 1px solid #aebbb0; border-radius: 5px; background: #fff; color: var(--ink); font: inherit; }
.filter-form .button { min-height: 42px; border: 1px solid #91a497; font-size: 0.85rem; }
.guest-list-tools { display: flex; flex-wrap: wrap; align-items: end; justify-content: flex-end; gap: 0.75rem; }
.guest-list-tools .filter-form { flex: 1 1 28rem; }
.table-scroll { overflow-x: auto; border-top: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; text-align: left; }
caption { padding: 0.8rem 0; color: var(--muted); font-size: 0.8rem; text-align: left; }
th, td { min-width: 120px; padding: 0.9rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { color: var(--muted); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }
tbody th { font-weight: 500; }
.name-list { margin: 0.5rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.8rem; }
.name-list span { color: #53675d; }
.guest-actions { display: grid; gap: 0.55rem; min-width: 150px; }
.guest-actions details summary, .adjust-details summary { color: var(--green-dark); font-size: 0.8rem; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.inline-rsvp-form { display: grid; gap: 0.4rem; padding: 0.8rem 0; }
.inline-rsvp-form label { color: var(--muted); font-size: 0.75rem; }
.inline-rsvp-form input, .inline-rsvp-form select { min-height: 36px; max-width: 190px; padding: 0.4rem; border: 1px solid #aebbb0; border-radius: 4px; background: white; font: inherit; }
.empty-note { padding: 1rem; color: var(--muted); background: #f5f4ee; line-height: 1.5; }
.share-link-list { margin: 1rem 0 0; padding: 0; list-style: none; }
.share-link-list > li { padding: 1rem 0; border-top: 1px solid #cfd9cf; }
.share-link-list .copy-row { margin: 0.6rem 0; }
.share-link-list .button { min-height: 40px; padding: 0.5rem 0.7rem; font-size: 0.82rem; }
.qr-link { display: inline-block; margin-top: 0.45rem; color: var(--green-dark); font-size: 0.85rem; font-weight: 650; text-underline-offset: 3px; }
.public-invite-page { background: var(--sage); }
.public-invite { width: min(100% - 2rem, 650px); margin: 3rem auto; padding: clamp(1.5rem, 5vw, 3rem); border: 1px solid #d8ded2; border-radius: 12px; background: #fffefa; box-shadow: 0 18px 46px rgb(49 63 53 / 7%); }
.public-invite h1 { margin: 0 0 0.7rem; font-family: Georgia, serif; font-size: clamp(2.7rem, 8vw, 4.5rem); font-weight: 400; letter-spacing: -0.05em; }
.invite-meta { display: flex; flex-wrap: wrap; gap: 0.2rem 0.9rem; margin: 0 0 1rem; color: var(--muted); font-size: 0.94rem; line-height: 1.65; }
.invite-meta strong { color: var(--green-dark); }
.public-location { margin: 0 0 1.1rem; padding: 1rem; border-radius: 8px; background: #f1f4ed; }
.public-location-address { margin: 0; color: var(--muted); font-size: 0.96rem; line-height: 1.65; overflow-wrap: anywhere; }
.public-location-address strong { color: var(--green-dark); }
.public-location-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 0.8rem; }
.public-location-actions .button { min-height: 48px; border: 1px solid #91a497; font: inherit; cursor: pointer; }
.public-event-info { display: block; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.public-event-note + .public-event-note { margin-top: 1.1rem; }
.public-event-note h2 { margin: 0 0 0.35rem; color: var(--green-dark); font-size: 0.87rem; font-weight: 700; }
.public-event-info p { max-width: 62ch; margin: 0; color: var(--muted); font-size: 0.94rem; line-height: 1.75; white-space: pre-line; }
.invite-people { padding: 1rem 0 0; }
.invite-people summary { width: fit-content; color: var(--green-dark); font-size: 0.88rem; font-weight: 650; text-underline-offset: 3px; cursor: pointer; }
.invite-people ul { margin: 0; padding-left: 1.2rem; color: var(--muted); }
.rsvp-box { margin-top: 1.6rem; padding: 1.25rem; border-radius: 8px; background: #f1f4ed; }
.rsvp-box h2 { margin: 0 0 0.75rem; font-family: Georgia, serif; font-weight: 400; font-size: 1.75rem; }
.rsvp-intro, .rsvp-step-help { margin: 0 0 1rem; color: var(--muted); font-size: 0.88rem; line-height: 1.5; }
.rsvp-thanks { margin-bottom: 1rem; }
.rsvp-thanks .eyebrow { margin-bottom: 0.55rem; }
.rsvp-thanks p { margin-bottom: 0.5rem; line-height: 1.55; }
.rsvp-thanks p:last-child { margin-bottom: 0; }
.rsvp-feedback { color: var(--green-dark); font-size: 0.86rem; font-weight: 650; }
.rsvp-editor { margin-top: 0.9rem; }
.rsvp-editor > summary { width: 100%; list-style: none; cursor: pointer; }
.rsvp-editor > summary::-webkit-details-marker { display: none; }
.rsvp-editor-summary { min-height: 48px; }
.rsvp-form { margin-top: 1rem; }
.rsvp-fallback { display: grid; gap: 0.65rem; }
.answer-options { display: grid; gap: 0.8rem; margin: 0.2rem 0 0.6rem; padding: 0; border: 0; }
.answer-options legend { margin-bottom: 0.7rem; font-size: 0.9rem; font-weight: 700; }
.answer-options label { display: flex; align-items: center; gap: 0.65rem; min-height: 42px; }
.answer-options input { width: 20px; height: 20px; accent-color: var(--green); }
.rsvp-fallback > label { margin-top: 0.4rem; font-size: 0.9rem; font-weight: 650; }
.rsvp-fallback > input { width: 100%; min-height: 48px; padding: 0.7rem 0.8rem; border: 1px solid #aebbb0; border-radius: 6px; background: #fff; color: var(--ink); font: inherit; }
.rsvp-fallback .button { width: 100%; margin-top: 0.7rem; border: 0; font: inherit; cursor: pointer; }
.rsvp-step-indicator { margin: 0 0 0.8rem; color: var(--muted); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.rsvp-step h3 { margin: 0 0 0.55rem; font-family: Georgia, serif; font-size: 1.35rem; font-weight: 400; }
.answer-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.answer-card { min-height: 96px; display: flex; align-items: center; justify-content: center; gap: 0.8rem; padding: 1rem; border: 2px solid #c4d0c3; border-radius: 9px; background: #fffefa; color: var(--ink); font: inherit; text-align: center; cursor: pointer; touch-action: manipulation; transition: border-color 140ms ease, background 140ms ease, transform 140ms ease; }
.answer-card:hover { transform: translateY(-2px); }
.answer-card:focus-visible, .rsvp-count-choice:focus-visible { outline: 3px solid #668c76; outline-offset: 3px; }
.answer-card-yes:hover { border-color: var(--green); background: #f5f8f1; }
.answer-card-no:hover { border-color: #a66c60; background: #fff8f5; }
.answer-card > span { color: var(--green); font-size: 1.65rem; font-weight: 700; line-height: 1; }
.answer-card-no > span { color: #9a5447; }
.answer-card strong { font-size: 1.12rem; }
.answer-card small { color: var(--muted); font-size: 0.78rem; }
.rsvp-choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 0.55rem; margin: 1rem 0; }
.rsvp-count-choice { min-width: 0; min-height: 82px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem; padding: 0.55rem 0.3rem; border: 2px solid #c4d0c3; border-radius: 9px; background: #fffefa; color: var(--green-dark); font: inherit; cursor: pointer; touch-action: manipulation; }
.rsvp-count-choice[aria-pressed="true"] { border-color: var(--green); background: var(--green); color: #fff; }
.rsvp-choice-number { font-family: Georgia, serif; font-size: 1.65rem; line-height: 1; }
.rsvp-choice-label { font-size: 0.76rem; line-height: 1.15; text-align: center; }
.rsvp-only-children { min-height: 50px; padding: 0 1rem; font: inherit; cursor: pointer; }
.rsvp-only-children[aria-pressed="true"] { border-color: var(--green); background: #e6ede4; }
.rsvp-step-actions { display: flex; justify-content: space-between; gap: 0.7rem; margin-top: 1rem; }
.rsvp-step-actions .button { min-height: 50px; border: 0; font: inherit; cursor: pointer; }
.rsvp-step-actions .button-outline { border: 1px solid #91a497; }
.rsvp-step-actions [disabled] { opacity: 0.65; cursor: wait; }
.rsvp-flow-error { margin: 0 0 0.8rem; color: #74291d; font-size: 0.88rem; font-weight: 650; }
.rsvp-submit-status { margin: 0.8rem 0 0; color: var(--green-dark); font-size: 0.9rem; font-weight: 650; text-align: center; }
.rsvp-decline-form { margin: 0.9rem 0 0; }
.button-danger-outline { min-height: 46px; padding: 0 1rem; border: 1px solid #b87568; border-radius: 7px; background: transparent; color: #842e22; font: inherit; font-weight: 650; cursor: pointer; }
.button-danger-outline:hover { background: #fff4f0; }
.rsvp-event-actions { display: grid; gap: 0.65rem; margin: 1rem 0 0; }
.rsvp-event-actions .button { width: 100%; min-height: 48px; }
.calendar-options { margin-top: 1rem; }
.calendar-options > summary { width: 100%; min-height: 48px; display: flex; justify-content: space-between; list-style: none; cursor: pointer; }
.calendar-options > summary::-webkit-details-marker { display: none; }
.calendar-options > summary span { font-size: 1.2rem; transition: transform 160ms ease; }
.calendar-options[open] > summary span { transform: rotate(180deg); }
.calendar-unavailable { margin: 0.75rem 0 0; padding: 0.8rem 1rem; border-radius: 6px; background: #f1f4ed; color: var(--muted); font-size: 0.88rem; line-height: 1.5; }
.rsvp-qr-action { margin: 0.75rem 0 0; }
.rsvp-qr-action .button { width: 100%; min-height: 48px; }
.rsvp-flow[hidden], .rsvp-step[hidden], .rsvp-fallback[hidden], .rsvp-flow-error[hidden], .rsvp-submit-status[hidden] { display: none; }
.invite-footnote { margin: 1.2rem 0 0; color: var(--muted); font-size: 0.78rem; line-height: 1.55; }
.closed-note { color: #74291d; font-weight: 650; line-height: 1.5; }
.public-footer { padding: 1.5rem; color: var(--muted); font-size: 0.82rem; text-align: center; }
.public-footer a { text-underline-offset: 3px; }
.qr-page { width: min(100% - 2rem, 620px); min-height: calc(100vh - 130px); margin: auto; padding: 3rem 0; text-align: center; }
.qr-page h1 { font-family: Georgia, serif; font-size: clamp(2.5rem, 7vw, 3.6rem); font-weight: 400; }
.qr-page p { color: var(--muted); line-height: 1.6; }
.qr-image { width: min(80vw, 360px); height: auto; margin: 1.3rem auto; image-rendering: pixelated; }
.qr-page .actions { justify-content: center; }
.reception-page h1, .checkin-page h1 { margin: 0 0 0.8rem; font-family: Georgia, serif; font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 400; letter-spacing: -0.04em; }
.scanner-panel { margin: 1.5rem 0; }
.scanner-actions { display: flex; gap: 0.6rem; }
.scanner-panel video { display: block; width: min(100%, 520px); margin-top: 1rem; border-radius: 8px; background: #1f2924; }
.scanner-panel video[hidden] { display: none; }
.reception-results { margin-top: 1.5rem; }
.reception-results h3 { margin-bottom: 0.7rem; font-size: 1.2rem; }
.checkin-page { width: min(100% - 2rem, 820px); min-height: calc(100vh - 178px); margin: auto; padding: 3.5rem 0; }
.checkin-summary { padding: 1.4rem; border: 1px solid var(--line); border-radius: 9px; background: #fffefa; }
.checkin-summary h2 { margin: 0 0 1rem; font-family: Georgia, serif; font-size: 1.4rem; font-weight: 400; }
.checkin-summary dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; margin: 0; }
.checkin-summary dl div { padding: 0.8rem; border-radius: 6px; background: #f1f4ed; }
.checkin-summary dt { color: var(--muted); font-size: 0.75rem; }
.checkin-summary dd { margin: 0.25rem 0 0; color: var(--green-dark); font-family: Georgia, serif; font-size: 1.6rem; }
.rsvp-status { margin: 1rem 0 0; color: var(--muted); font-size: 0.85rem; }
.checkin-form-panel { margin: 1.3rem 0; }
.checkin-form-panel .button { width: fit-content; }
.history-section { margin: 2rem 0; }
.checkin-history { display: grid; gap: 0.8rem; margin: 0; padding: 0; list-style: none; }
.checkin-history > li { padding: 1rem; border: 1px solid var(--line); border-radius: 7px; background: #fffefa; }
.checkin-history > li > div > span { display: block; margin-top: 0.35rem; color: var(--muted); font-size: 0.78rem; }
.adjustment-list { margin: 0.8rem 0; padding-left: 1.1rem; color: #495a51; font-size: 0.8rem; line-height: 1.5; }
.adjust-details { margin-top: 0.8rem; }
.adjust-details .form-stack { max-width: 480px; padding: 0.8rem 0; }
.adjust-details input { min-height: 38px; padding: 0.5rem; border: 1px solid #aebbb0; border-radius: 4px; font: inherit; }
.adjust-details button { width: fit-content; }
.form-stack input[type="file"] { min-height: auto; padding: 0.55rem; }

@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guest-management-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .guest-list-tools { width: 100%; flex-direction: column; align-items: stretch; }
  .guest-list-tools > .button { width: fit-content; }
  .filter-form { align-items: stretch; }
  .filter-form input, .filter-form select { width: 100%; max-width: none; }
  .checkin-summary dl { grid-template-columns: repeat(2, 1fr); }
  .reception-page .filter-form { display: grid; }
  .reception-page .filter-form .button { width: fit-content; }
}

@media print {
  .site-header, .public-footer, .qr-page .actions { display: none; }
  .qr-page { min-height: unset; padding: 0; }
  .qr-image { width: 300px; }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.team-page .intro { margin-bottom: 2rem; }
.team-section { margin: 2rem 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.team-section h2, .share-result h2 { margin: 0 0 1rem; font-family: Georgia, serif; font-size: 1.45rem; font-weight: 400; }
.team-list, .pending-list { margin: 0; padding: 0; list-style: none; }
.team-list > li, .pending-list > li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.team-list > li > div:first-child { display: grid; gap: 0.3rem; }
.role-label, .pending-list li span:last-child { color: var(--muted); font-size: 0.82rem; }
.team-controls, .role-form { display: flex; align-items: center; gap: 0.7rem; }
.role-form select, .invite-form select { min-height: 40px; padding: 0.45rem; border: 1px solid #aebbb0; border-radius: 5px; background: white; color: var(--ink); font: inherit; }
.invite-form { max-width: 580px; }
.invite-form .button { width: fit-content; }
.share-result { margin: 1.5rem 0; padding: 1.3rem; border: 1px solid #bfd0c2; border-radius: 8px; background: #eff5ee; }
.share-result p { color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.share-result label { display: block; margin-bottom: 0.5rem; font-size: 0.88rem; font-weight: 650; }
.copy-row { display: flex; gap: 0.6rem; }
.copy-row input { min-width: 0; flex: 1; padding: 0.65rem; border: 1px solid #aebbb0; border-radius: 5px; background: white; color: var(--ink); font: inherit; }
.copy-row .button { min-height: 42px; }

.event-home { width: min(100% - 3rem, 1040px); min-height: calc(100vh - 178px); margin: auto; padding: 3.4rem 0 4rem; }
.event-home > h1 { margin: 0 0 0.4rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 400; letter-spacing: -0.045em; line-height: 1.08; overflow-wrap: anywhere; }
.event-home-status { margin: 0; color: var(--muted); font-size: 0.8rem; text-transform: capitalize; }
.event-home-date { margin: 0.5rem 0 1.4rem; color: var(--green-dark); font-size: 1rem; font-weight: 650; }
.event-overview { margin: 0 0 1.4rem; border-block: 1px solid var(--line); }
.event-overview > summary, .more-stats > summary, .scanner-disclosure > summary, .event-more-actions > summary { width: fit-content; min-height: 48px; display: flex; align-items: center; color: var(--green-dark); font-weight: 650; text-underline-offset: 3px; cursor: pointer; }
.event-overview-content { max-width: 76ch; padding: 0.2rem 0 0.9rem; }
.event-overview-content p { margin: 0.45rem 0; color: var(--muted); line-height: 1.6; white-space: pre-line; }
.event-overview-content strong { color: var(--ink); }
.event-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin: 0.5rem 0 1.5rem; }
.event-tools .button { min-height: 44px; padding: 0.4rem 0.85rem; font-size: 0.88rem; }
.event-more-actions { position: relative; }
.event-more-actions > summary { min-height: 44px; padding: 0 0.45rem; font-size: 0.88rem; }
.event-more-actions-menu { position: absolute; z-index: 2; top: calc(100% + 0.2rem); right: 0; min-width: 190px; display: grid; gap: 0.35rem; padding: 0.7rem; border: 1px solid var(--line); border-radius: 7px; background: #fffefa; box-shadow: 0 10px 24px rgb(35 51 45 / 12%); }
.event-more-actions-menu form { margin: 0; }
.event-more-actions-menu .link-button { width: 100%; min-height: 40px; text-align: left; }
.event-stats-card { margin: 1.55rem 0 1.2rem; border: 1px solid var(--line); border-radius: 9px; background: #fffefa; }
.event-stats-summary { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.35rem 1rem; padding: 1rem; border: 0; border-radius: inherit; color: inherit; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.event-stats-summary:focus-visible { outline: 3px solid #668c76; outline-offset: 2px; border-radius: 8px; }
.event-stats-title { grid-column: 1; grid-row: 1; color: var(--green-dark); font-weight: 700; }
.event-stats-values { grid-column: 1; grid-row: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; margin-top: 0.45rem; }
.event-stat { min-width: 0; display: grid; align-content: start; gap: 0.15rem; padding: 0.6rem 0.75rem; border-left: 2px solid #aab8aa; background: #f7f8f4; }
.event-stat small { color: var(--muted); font-size: 0.75rem; }
.event-stat strong { color: var(--green-dark); font-family: Georgia, serif; font-size: 1.55rem; font-weight: 400; overflow-wrap: anywhere; }
.event-stats-toggle { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; gap: 0.6rem; color: var(--green-dark); font-size: 0.82rem; font-weight: 650; white-space: nowrap; }
.event-stats-toggle::after { width: 0.5rem; height: 0.5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; content: ""; transform: rotate(45deg) translateY(-2px); }
.event-stats-dialog .event-stats-details { padding: 0; border: 0; }
.event-stats-details h3 { margin: 0.4rem 0 0.65rem; font-family: Georgia, serif; font-size: 1.25rem; font-weight: 400; }
.event-stats-details dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem 1.2rem; margin: 0; }
.event-stats-details dl div { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid #e7e9e2; font-size: 0.82rem; }
.event-stats-details dt { color: var(--muted); }
.event-stats-details dd { flex: none; margin: 0; color: var(--ink); font-weight: 700; }
.event-stats-note { margin: 0.8rem 0 0; color: var(--muted); font-size: 0.83rem; line-height: 1.5; }
.guest-share-results { margin: 1.4rem 0 1.7rem; }
.guest-list-section { margin-top: 1.8rem; scroll-margin-top: 1rem; }
.guest-list-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.25rem; margin-bottom: 1rem; }
.guest-list-heading h2 { margin: 0; font-family: Georgia, serif; font-size: 1.8rem; font-weight: 400; }
.guest-list-heading p { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.5; }
.guest-list-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.guest-list-actions .button { min-height: 46px; padding: 0.45rem 0.9rem; border: 1px solid #91a497; font: inherit; cursor: pointer; }
.guest-list-actions .button-primary { border-color: var(--green); }
.csv-tools { margin: 0.25rem 0 1rem; }
.csv-tools > summary { width: fit-content; min-height: 40px; display: flex; align-items: center; color: var(--muted); font-size: 0.82rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.csv-tools > p { margin: 0.2rem 0 0.7rem; color: var(--muted); font-size: 0.82rem; }
.csv-tool-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.csv-tool-actions .button { min-height: 42px; padding: 0.4rem 0.75rem; font-size: 0.82rem; }
.csv-tool-actions button { font: inherit; cursor: pointer; }
.checkin-window-note { margin: 0.9rem 0; padding: 0.8rem 1rem; border-left: 3px solid #b48d4c; background: #f7f1e4; color: #634e29; font-size: 0.86rem; line-height: 1.55; }
.scanner-disclosure { margin: 0.8rem 0; }
.scanner-disclosure > summary { min-height: 40px; font-size: 0.88rem; }
.scanner-disclosure .scanner-panel { margin: 0 0 1rem; }
.scanner-panel h3 { margin: 0 0 0.8rem; font-family: Georgia, serif; font-size: 1.3rem; font-weight: 400; }
.scanner-actions .button { border: 0; font: inherit; cursor: pointer; }
.scanner-actions .button-outline { border: 1px solid #91a497; }
.scanner-panel video[hidden] { display: none; }
.guest-search-form { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(140px, 0.4fr) auto; align-items: end; gap: 0.65rem; margin: 1.1rem 0; padding: 0.9rem; border-radius: 8px; background: #f1f4ed; }
.guest-search-form > div { display: grid; gap: 0.35rem; }
.guest-search-form label { font-size: 0.78rem; font-weight: 650; }
.guest-search-form input, .guest-search-form select { width: 100%; min-height: 46px; padding: 0.55rem 0.7rem; border: 1px solid #aebbb0; border-radius: 6px; background: #fff; color: var(--ink); font: inherit; }
.guest-search-form .button { min-height: 46px; padding-inline: 0.9rem; border: 1px solid #91a497; font-size: 0.87rem; }
.guest-list { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.guest-list > li { border-bottom: 1px solid var(--line); }
.guest-accordion summary::-webkit-details-marker { display: none; }
.guest-accordion-summary { min-height: 76px; display: grid; grid-template-columns: minmax(180px, 1fr) minmax(210px, auto) 24px; align-items: center; gap: 0.9rem; padding: 0.75rem 0.2rem; list-style: none; cursor: pointer; }
.guest-accordion-summary::after { width: 0.6rem; height: 0.6rem; justify-self: center; border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); content: ""; transform: rotate(45deg) translateY(-2px); transition: transform 140ms ease; }
.guest-accordion[open] > .guest-accordion-summary::after { transform: rotate(225deg) translate(-2px, -1px); }
.guest-accordion-summary:focus-visible { outline: 3px solid #668c76; outline-offset: 2px; border-radius: 4px; }
.guest-accordion-name { min-width: 0; grid-column: 1; grid-row: 1; margin: 0; font-family: Georgia, serif; font-size: 1.15rem; font-weight: 500; overflow-wrap: anywhere; }
.guest-accordion-party { grid-column: 2; grid-row: 2; color: var(--muted); font-size: 0.78rem; }
.guest-accordion-status { grid-column: 2; grid-row: 1; justify-self: start; padding: 0.35rem 0.6rem; }
.guest-arrival { grid-column: 2; grid-row: 2; }
.guest-arrival, .arrival-complete { color: var(--muted); font-size: 0.75rem; }
.guest-accordion-content { padding: 0.75rem 0.2rem 1rem; border-top: 1px solid var(--line); background: #fffefa; }
.guest-row-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.guest-row-actions .button { min-height: 42px; padding: 0.35rem 0.7rem; border: 1px solid #91a497; font-size: 0.82rem; white-space: nowrap; cursor: pointer; }
.guest-row-actions .button-primary { border-color: var(--green); }
.guest-row-actions button:disabled { border-color: var(--line); color: #737c76; cursor: not-allowed; }
.guest-empty-state { padding: 2rem 1rem; border: 1px dashed #bbc9bc; border-radius: 8px; text-align: center; }
.guest-empty-state p { margin: 0 0 0.6rem; color: var(--muted); }
.guest-empty-state .button { margin-top: 0.6rem; border: 0; font: inherit; cursor: pointer; }

.app-dialog { width: min(100% - 2rem, 620px); max-width: 620px; max-height: min(88vh, 900px); overflow: auto; padding: clamp(1.15rem, 4vw, 2rem); border: 1px solid #cbd4ca; border-radius: 12px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 80px rgb(24 40 33 / 24%); }
.app-dialog::backdrop { background: rgb(20 33 27 / 58%); }
.app-dialog[open] { animation: dialog-in 140ms ease-out; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 0.6rem; }
.dialog-heading .eyebrow { margin-bottom: 0.35rem; }
.dialog-heading h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(1.55rem, 5vw, 2rem); font-weight: 400; line-height: 1.2; overflow-wrap: anywhere; }
.dialog-close { flex: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: #fffefa; color: var(--ink); font-size: 1.65rem; line-height: 1; cursor: pointer; }
.dialog-help { margin: 0 0 1rem; color: var(--muted); font-size: 0.88rem; line-height: 1.55; }
.app-dialog .form-stack { gap: 0.55rem; }
.app-dialog .form-stack .button { margin-top: 0.45rem; border: 0; cursor: pointer; }
.app-dialog .form-stack .button-outline { border: 1px solid #91a497; }
.app-dialog .form-stack input, .app-dialog .form-stack textarea, .app-dialog .form-stack select { min-height: 46px; }
.app-dialog .form-stack input[type="file"] { min-height: auto; }
.app-dialog .field-grid { gap: 0.7rem; }
.dialog-section { margin: 1.2rem 0; padding: 1rem; border-radius: 8px; background: #f1f4ed; }
.dialog-section h3, .checkin-choice-group h3 { margin: 0 0 0.7rem; font-size: 0.9rem; }
.guest-dialog-people { display: grid; gap: 0.45rem; margin: 0; padding-left: 1.2rem; }
.guest-dialog-people li { padding-left: 0.1rem; }
.guest-dialog-people span { margin-left: 0.45rem; color: var(--muted); font-size: 0.78rem; }
.dialog-edit-section { margin: 1rem 0; padding-top: 0.8rem; border-top: 1px solid var(--line); }
.dialog-edit-section > summary { min-height: 44px; display: flex; align-items: center; color: var(--green-dark); font-size: 0.9rem; font-weight: 700; cursor: pointer; }
.dialog-edit-section .form-stack { padding: 0.3rem 0 0.8rem; }
.dialog-inline-form { margin-top: 0.75rem; padding-top: 0.85rem; border-top: 1px solid var(--line); }
.dialog-inline-form .link-button { min-height: 44px; }
.dialog-checkin-launch { width: 100%; min-height: 50px; margin-top: 1rem; border: 0; font: inherit; cursor: pointer; }
.checkin-modal-form { display: grid; gap: 1rem; }
.checkin-choice-group { padding: 0.9rem; border-radius: 8px; background: #f1f4ed; }
.checkin-choice-group h3 { font-family: inherit; }
.checkin-step[hidden] { display: none; }
.checkin-step > h3 { margin: 0 0 0.9rem; font-family: Georgia, serif; font-size: 1.35rem; font-weight: 400; }
.checkin-step > h3:focus { outline: none; }
.checkin-next { width: 100%; min-height: 52px; margin-top: 0.9rem; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.checkin-step .rsvp-step-actions > .button-primary { border: 0; font-weight: 700; cursor: pointer; }
.checkin-choice-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; }
.checkin-choice-grid[hidden], .checkin-number-fallback[hidden] { display: none; }
.checkin-choice { min-height: 64px; border: 2px solid #c4d0c3; border-radius: 8px; background: #fffefa; color: var(--green-dark); font: inherit; font-family: Georgia, serif; font-size: 1.55rem; cursor: pointer; touch-action: manipulation; }
.checkin-choice[aria-pressed="true"] { border-color: var(--green); background: var(--green); color: white; }
.checkin-choice:focus-visible, .dialog-close:focus-visible, .guest-row-actions .button:focus-visible, .guest-list-actions .button:focus-visible { outline: 3px solid #668c76; outline-offset: 3px; }
.checkin-number-fallback:not([hidden]) { width: 100%; min-height: 48px; padding: 0.6rem; border: 1px solid #aebbb0; border-radius: 6px; background: white; font: inherit; }
.checkin-modal-total { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.5; }
.checkin-modal-form > .button { min-height: 52px; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.checkin-modal-form > .button:disabled { opacity: 0.55; cursor: not-allowed; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 760px) {
  .event-home { width: min(100% - 2rem, 560px); padding: 2.5rem 0 3rem; }
  .event-home > h1 { font-size: clamp(2.3rem, 10vw, 3.5rem); }
  .event-tools { align-items: stretch; }
  .event-tools .button { flex: 1 1 auto; }
  .event-more-actions { flex: 1 1 100%; }
  .event-more-actions > summary { padding-left: 0.2rem; }
  .event-more-actions-menu { position: static; margin-bottom: 0.5rem; }
  .event-stats-summary { padding: 0.8rem; gap: 0.3rem 0.55rem; }
  .event-stats-toggle { gap: 0.35rem; font-size: 0.75rem; }
  .event-stats-values { gap: 0.4rem; }
  .event-stat { padding: 0.55rem; }
  .event-stat strong { font-size: 1.35rem; }
  .event-stats-details dl { grid-template-columns: 1fr; }
  .guest-list-heading { align-items: stretch; flex-direction: column; }
  .guest-list-actions { display: grid; grid-template-columns: 1fr; }
  .guest-list-actions .button { width: 100%; padding-inline: 0.4rem; }
  .guest-search-form { grid-template-columns: 1fr 1fr; gap: 0.55rem; padding: 0.75rem; }
  .guest-search-form > div:first-child { grid-column: 1 / -1; }
  .guest-search-form .button { width: 100%; padding-inline: 0.4rem; }
  .csv-tool-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .csv-tool-actions .button { width: 100%; justify-content: center; }
  .guest-accordion-summary { grid-template-columns: minmax(0, 1fr) 24px; gap: 0.55rem; padding: 0.8rem 0.2rem; }
  .guest-accordion-name, .guest-accordion-party, .guest-accordion-status { grid-column: 1; justify-self: start; }
  .guest-accordion-name { grid-row: 1; }
  .guest-accordion-status { grid-row: 2; }
  .guest-accordion-party { grid-row: 3; }
  .guest-accordion-summary::after { grid-column: 2; grid-row: 1 / span 3; }
  .guest-row-actions { align-items: stretch; flex-direction: column; }
  .guest-row-actions .button { min-height: 44px; }
  .guest-row-actions .button { width: 100%; justify-content: center; }
  .app-dialog { width: calc(100% - 1rem); max-height: 92vh; padding: 1rem; border-radius: 10px; }
  .app-dialog .field-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .checkin-choice-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.4rem; }
  .checkin-choice { min-height: 58px; }
}

@media (max-width: 760px) {
  .site-header, .site-footer, .hero { width: min(100% - 2rem, 560px); }
  .site-header { height: 72px; }
  .header-note { display: none; }
  .hero { min-height: unset; grid-template-columns: 1fr; gap: 3rem; padding: 4rem 0 4.5rem; }
  .invite-card { min-height: 390px; transform: rotate(0.5deg); }
  .steps { grid-template-columns: 1fr; gap: 2.3rem; padding: 4rem 1rem; }
  .site-footer { min-height: 82px; }
  .dashboard-wrap, .event-detail { width: min(100% - 2rem, 560px); padding: 3rem 0; }
  .dashboard-heading, .detail-heading { align-items: flex-start; flex-direction: column; gap: 1.2rem; }
  .field-grid, .detail-grid { grid-template-columns: 1fr; gap: 0; }
  .event-list-item { align-items: flex-start; }
  .team-list > li, .pending-list > li { align-items: flex-start; flex-direction: column; }
  .team-controls { flex-wrap: wrap; }
  .copy-row { flex-direction: column; }
  .invite-form .button { width: 100%; }
  .answer-cards { grid-template-columns: 1fr; }
  .answer-card { min-height: 76px; }
  .rsvp-choice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rsvp-only-children { width: 100%; }
  .rsvp-step-actions { align-items: stretch; }
  .rsvp-step-actions .button { padding: 0 0.8rem; }
  .public-location-actions { display: grid; grid-template-columns: 1fr; }
  .public-location-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
