:root {
  color-scheme: light;
  --ink: #1f1b2e;
  --muted: #6b6880;
  --paper: #f7f6fb;
  --white: #fff;
  --purple: #6d5bd0;
  --purple-dark: #5142ae;
  --line: #e7e4ef;
  --green: #1e7757;
  --amber: #946014;
  --red: #a63b4b;
  --shadow: 0 16px 44px rgb(31 27 46 / 8%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: linear-gradient(rgb(247 246 251 / 84%), rgb(247 246 251 / 84%)), url("/static/background.png") center / cover fixed; color: var(--ink); line-height: 1.55; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #e4a548; outline-offset: 3px; }
.site-header { min-height: 76px; max-width: 1240px; padding: 0 32px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { text-decoration: none; display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { display: block; width: 250px; height: 68px; border-radius: 5px; object-fit: contain; }
.brand-mark { width: 31px; height: 31px; border-radius: 9px; display: inline-grid; place-items: center; background: var(--purple); color: white; font-family: Georgia, serif; font-size: 19px; }
.site-header nav { display: flex; align-items: center; gap: 25px; font-size: 14px; }
.site-header nav a, .nav-button { color: var(--muted); text-decoration: none; }
.site-header nav a:hover, .nav-button:hover, .text-link:hover { color: var(--purple-dark); }
.site-header nav a.button, .site-header nav a.button:hover { color: #fff; }
.nav-name { color: var(--muted); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-button { border: 0; background: transparent; padding: 7px 0; cursor: pointer; }
.inline-form { display: inline-flex; align-items: center; gap: 10px; }
.page-shell { max-width: 1240px; padding: 24px 32px 72px; margin: auto; min-height: calc(100vh - 142px); }
.site-footer { max-width: 1240px; padding: 22px 32px 30px; margin: auto; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.brand-footer img { width: 180px; height: 50px; }
.button { border: 1px solid var(--purple); background: var(--purple); color: #fff; padding: 12px 19px; min-height: 46px; display: inline-flex; gap: 10px; align-items: center; justify-content: center; border-radius: 7px; text-decoration: none; font-weight: 700; cursor: pointer; transition: background .16s ease, transform .16s ease, border-color .16s ease; }
.button:hover { background: var(--purple-dark); border-color: var(--purple-dark); transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .58; transform: none; }
.button-small { min-height: 36px; padding: 7px 12px; font-size: 13px; }
.button-quiet { background: transparent; color: var(--purple-dark); border-color: #cbc5e8; }
.button-quiet:hover { background: #efedf8; color: var(--purple-dark); border-color: #aaa1da; }
.button-danger { background: transparent; color: var(--red); border-color: #e4b7bf; }
.button-danger:hover { background: #fff0f2; border-color: var(--red); color: var(--red); }
.button-full { width: 100%; margin-top: 4px; }
.text-link { color: var(--purple-dark); font-weight: 700; text-decoration: none; }
.text-button { border: 0; padding: 3px 0; background: transparent; color: var(--purple-dark); cursor: pointer; font-weight: 700; }
.text-danger { color: var(--red); }
.back-link { color: var(--muted); text-decoration: none; display: inline-block; margin-bottom: 20px; font-size: 14px; }
.eyebrow { color: var(--purple-dark); text-transform: uppercase; font-size: 11px; font-weight: 800; letter-spacing: .12em; margin: 0 0 10px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: 0; }
h1 { font-size: 48px; margin-bottom: 13px; }
h2 { font-size: 24px; margin-bottom: 17px; }
h3 { font-size: 17px; margin-bottom: 6px; }
.muted, .helper, .optional, .micro-copy { color: var(--muted); }
.helper, .optional { font-size: 12px; }
.optional { font-weight: 400; }
.flash-stack { display: grid; gap: 8px; }
.flash { padding: 11px 14px; margin: 0 0 12px; border-radius: 6px; background: #eeedf4; }
.flash-success { color: #14583f; background: #e4f3eb; }
.flash-error { color: #842e3a; background: #fbe9ec; }
.inline-error, .field-error { color: var(--red); }
.inline-error { background: #fff0f2; padding: 11px 13px; border-radius: 6px; }

.landing-hero { min-height: 540px; padding: 56px 7.5% 70px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 7%; align-items: center; overflow: hidden; }
.hero-copy { max-width: 520px; }
.hero-copy h1 { font-size: 72px; line-height: .98; margin: 20px 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.hero-copy h1 em { color: var(--purple); font-weight: 500; }
.lead { max-width: 460px; font-size: 18px; color: var(--muted); margin: 0 0 26px; }
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.micro-copy { margin: 25px 0 0; font-size: 12px; }
.hero-art { min-height: 360px; max-width: 450px; width: 100%; justify-self: end; padding: 26px 29px; color: #342e4a; background: #efe9db; box-shadow: var(--shadow); position: relative; display: flex; flex-direction: column; justify-content: space-between; transform: rotate(2.2deg); animation: paper-in .55s ease both; }
.hero-art::before { content: ""; position: absolute; inset: 12px; border: 1px solid #c8bda7; pointer-events: none; }
.hero-art-top, .hero-art-bottom { z-index: 1; display: flex; justify-content: space-between; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.hero-art-title { position: relative; z-index: 1; padding: 10px 0 20px 9%; font-family: Georgia, "Times New Roman", serif; font-size: 70px; line-height: .8; color: #45355a; }
.hero-art-title i { color: #b05156; font-weight: 400; }
.art-flower { font-size: 25px; color: #b05156; }
.feature-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; }
.feature-strip article { padding: 0 23px; border-right: 1px solid var(--line); }
.feature-strip article:first-child { padding-left: 0; }
.feature-strip article:last-child { border: 0; }
.feature-number { font-size: 11px; font-weight: 800; color: #b05156; }
.feature-strip h2 { font-size: 17px; margin: 10px 0 6px; }
.feature-strip p { color: var(--muted); font-size: 13px; margin: 0; }
.how-it-works { padding: 64px 0 24px; }
.how-it-works-heading { max-width: 620px; margin: 0 auto 30px; text-align: center; }
.how-it-works-heading h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 10px; }
.how-it-works-heading > p:last-child { color: var(--muted); }
.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.step-card { display: flex; gap: 16px; padding: 22px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.step-number { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; color: var(--purple-dark); background: #efedf8; font-weight: 800; }
.step-card h3 { margin: 3px 0 8px; }
.step-card p { color: var(--muted); font-size: 13px; margin: 0; }
.closing-band { padding: 35px 0; display: flex; justify-content: space-between; align-items: center; gap: 25px; }
.closing-band p { margin: 0; font: 26px/1.2 Georgia, serif; }
.closing-band strong { color: var(--purple-dark); font-weight: 500; }

.auth-layout { display: grid; grid-template-columns: 1fr minmax(310px, 450px); gap: 10%; align-items: center; max-width: 980px; margin: 55px auto; }
.auth-note h1 { font-family: Georgia, serif; font-weight: 500; font-size: 58px; }
.auth-note p:last-child { color: var(--muted); max-width: 370px; }
.form-panel, .content-panel, .event-card, .form-section { background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 5px 20px rgb(31 27 46 / 3%); }
.form-panel { padding: 30px; }
.form-panel h2 { font-size: 23px; }
label { display: grid; gap: 7px; font-size: 13px; font-weight: 700; color: #37334a; }
input:not([type="checkbox"]):not([type="radio"]):not([type="color"]), textarea, select { width: 100%; min-height: 42px; border: 1px solid #d9d5e3; background: white; border-radius: 5px; padding: 9px 11px; color: var(--ink); }
textarea { resize: vertical; min-height: 92px; }
input[type="color"] { width: 70px; height: 42px; padding: 3px; border: 1px solid #d9d5e3; border-radius: 5px; background: white; }
input[type="file"] { max-width: 100%; font-size: 13px; }
.form-panel label { margin-bottom: 17px; }
.form-foot { margin: 19px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.form-foot a { color: var(--purple-dark); font-weight: 700; }
.page-heading { margin: 28px 0 30px; }
.page-heading h1 { margin-bottom: 8px; }
.page-heading p { margin-bottom: 0; }
.heading-row, .manage-heading, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.event-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.event-card { padding: 21px; }
.event-card-top { display: flex; justify-content: space-between; align-items: center; }
.event-type { color: var(--purple-dark); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.badge { display: inline-flex; padding: 4px 8px; border-radius: 99px; font-size: 11px; line-height: 1.25; font-weight: 800; text-transform: capitalize; background: #eceaf2; color: #514d60; white-space: nowrap; }
.badge-published, .badge-attending, .badge-checked-in { background: #e4f3eb; color: #176247; }
.badge-draft, .badge-pending, .badge-maybe { background: #fff2d9; color: #875812; }
.badge-declined { background: #fbe9ec; color: #9a3645; }
.event-card h2 { margin: 22px 0 5px; font-size: 22px; }
.event-date { color: var(--muted); font-size: 13px; }
.event-card-stats { display: flex; gap: 25px; padding: 13px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.event-card-stats strong { color: var(--ink); font-size: 15px; }
.event-card-actions { display: flex; align-items: center; gap: 9px; }
.icon-link { margin-left: auto; color: var(--muted); text-decoration: none; font-size: 19px; }
.empty-state { text-align: center; max-width: 510px; margin: 90px auto; padding: 30px; }
.empty-mark, .thanks-mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 20px; background: #e9e5f7; color: var(--purple-dark); font-size: 26px; }
.empty-state p { color: var(--muted); margin-bottom: 22px; }

.wide-form { max-width: 850px; display: grid; gap: 16px; margin: 0 auto; }
.form-section { padding: 24px; }
.form-section h2 { font-size: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; align-items: start; }
.span-two { grid-column: 1 / -1; }
.check-label { display: flex; align-items: center; gap: 10px; }
.check-label input, .check-option input { accent-color: var(--purple); }
.cover-preview { max-width: 250px; max-height: 150px; object-fit: cover; border-radius: 5px; }
.form-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.form-actions form { margin: 0; }
.manage-heading { margin: 20px 0 25px; align-items: end; }
.manage-heading .back-link { margin-bottom: 15px; }
.manage-heading h1 { margin: 0; font-size: 40px; }
.heading-actions { display: flex; align-items: center; gap: 12px; padding-bottom: 4px; }
.tabs { display: flex; overflow-x: auto; gap: 5px; border-bottom: 1px solid var(--line); margin-bottom: 21px; }
.tab { text-decoration: none; color: var(--muted); padding: 11px 15px; border-bottom: 2px solid transparent; font-size: 14px; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--purple-dark); font-weight: 800; border-color: var(--purple); }
.locked-tab { border: 0; border-bottom: 2px solid transparent; background: transparent; font: inherit; cursor: pointer; }
.locked-state { display: flex; align-items: end; gap: 12px; padding: 12px; background: #faf9fc; border: 1px solid var(--line); border-radius: 6px; }
.locked-state label { flex: 1; }
.pro-chip { display: inline-block; padding: 3px 7px; border-radius: 99px; background: #f3efff; color: var(--purple-dark); font-size: 11px; font-weight: 750; white-space: nowrap; }
.form-actions, .share-actions, .section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.form-actions form { display: inline-flex; }
.button-danger, .text-danger { color: #a73131; }
.text-button { border: 0; background: none; color: var(--purple-dark); text-decoration: underline; cursor: pointer; font: inherit; padding: 3px; }
.text-button:hover { color: var(--ink); }
.basic-stats { margin-top: 16px; }
.manage-heading { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.table-scroll { overflow-x: auto; }
.table-detail { display: block; }
.check-option { display: inline-flex; align-items: center; gap: 6px; }
.public-timeline { list-style: none; padding: 0 0 0 18px; }
.public-timeline > li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px 16px; padding: 0 0 20px 14px; position: relative; }
.public-timeline > li::before { content: ""; position: absolute; left: -23px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--purple); }
.public-timeline > li > p, .public-timeline > li > form { grid-column: 2; margin: 0; }
.event-preview { border: 1px dashed var(--purple); }
.event-preview .invitation-preview { margin: 0 auto 16px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 11px; margin-bottom: 18px; }
.stat { padding: 15px 17px; border: 1px solid var(--line); background: white; border-radius: 7px; }
.stat span { display: block; color: var(--muted); font-size: 12px; }
.stat strong { display: block; font-size: 25px; margin-top: 5px; }
.manage-columns { display: grid; grid-template-columns: 1.3fr .7fr; gap: 16px; }
.content-panel { padding: 23px; margin-bottom: 16px; }
.section-heading { align-items: start; margin-bottom: 16px; }
.section-heading h2 { margin-bottom: 0; }
.notice { background: #edf4ef; color: #245840; border-radius: 5px; padding: 11px 13px; font-size: 13px; margin: 12px 0; }
.notice-warn { background: #fff3dc; color: #795012; }
.share-row { display: flex; gap: 8px; align-items: center; }
.share-row input { flex: 1; min-width: 0; font-size: 13px; }
.share-actions { display: flex; gap: 18px; padding: 12px 0; font-size: 13px; }
.qr-area { display: flex; align-items: center; gap: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
[data-qr-code] { min-width: 176px; min-height: 176px; padding: 8px; background: white; border: 1px solid var(--line); }
[data-qr-code] canvas, [data-qr-code] img { display: block; max-width: 100%; }
.dietary-list { list-style: none; padding: 0; margin: 0; }
.dietary-list li { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 8px 0; font-size: 13px; }
.dietary-list li:last-child { border: 0; }
.manage-controls { margin: 18px 0; }
.filter-row { display: flex; align-items: end; gap: 10px; margin: 17px 0; }
.filter-row label { min-width: 150px; }
.filter-row .search-label { flex: 1; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 11px 9px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
td strong, .table-detail { display: block; }
.table-detail { color: var(--muted); font-size: 11px; margin-top: 3px; max-width: 245px; overflow-wrap: anywhere; }
.table-actions { white-space: nowrap; }
.table-actions a { color: var(--purple-dark); font-weight: 700; margin-right: 9px; }
.empty-cell { text-align: center; color: var(--muted); padding: 28px; }
.pagination { display: flex; justify-content: center; gap: 18px; padding-top: 16px; color: var(--muted); font-size: 13px; }
.inline-edit { background: #f8f7fb; padding: 17px; margin: 8px 0; border: 1px solid var(--line); border-radius: 5px; }
.check-option { display: inline-flex; align-items: center; gap: 6px; margin: 4px 9px 4px 0; font-size: 12px; }
.schedule-list { border-left: 2px solid #d8d2ed; margin: 17px 0 8px 10px; }
.schedule-row { display: grid; grid-template-columns: 90px 1fr; gap: 18px; padding: 0 0 24px 20px; position: relative; }
.schedule-row::before { content: ""; position: absolute; left: -6px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--purple); }
.schedule-row time { color: var(--purple-dark); font-weight: 800; }
.schedule-row p { margin: 6px 0; }
.schedule-row .inline-form { margin-left: 13px; }
.upload-box { display: flex; flex-wrap: wrap; align-items: end; gap: 15px; padding: 15px; background: #faf9fc; border: 1px dashed #c9c4d4; border-radius: 6px; margin: 16px 0 23px; }
.upload-box label { min-width: 180px; }
.upload-box .helper { flex-basis: 100%; margin: 0; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 13px; }
.photo-grid figure { min-width: 0; margin: 0; }
.photo-open { display: block; border: 0; padding: 0; width: 100%; background: transparent; text-align: left; cursor: zoom-in; }
.photo-open img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 5px; background: #eeedf2; }
.photo-grid figcaption { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 0; font-size: 12px; overflow-wrap: anywhere; }
.update-row { display: flex; justify-content: space-between; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.update-row:last-child { border-bottom: 0; }
.update-row p { margin-bottom: 0; white-space: pre-wrap; }
.lightbox { position: fixed; inset: 0; z-index: 5; padding: 50px; background: rgb(20 18 29 / 90%); display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(100%, 1100px); max-height: 85vh; object-fit: contain; }
.lightbox button { position: absolute; top: 18px; right: 24px; border: 0; background: transparent; color: white; font-size: 36px; cursor: pointer; }

.public-event { --event-accent: var(--purple); --event-text: var(--ink); max-width: 990px; margin: 10px auto; background: white; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 10px; overflow: hidden; color: var(--event-text); }
.draft-banner { padding: 10px 20px; background: #fff2d9; color: #795012; text-align: center; font-size: 13px; font-weight: 700; }
.public-hero { min-height: 0; padding: 0; color: var(--event-text); background: linear-gradient(120deg, color-mix(in srgb, var(--event-accent) 91%, #241d36), color-mix(in srgb, var(--event-accent) 65%, #dc9a72)); display: flex; flex-direction: column; position: relative; }
.public-hero::before { content: ""; display: block; flex: 0 0 clamp(180px, 38vw, 360px); width: 100%; background: linear-gradient(120deg, color-mix(in srgb, var(--event-accent) 91%, #241d36), color-mix(in srgb, var(--event-accent) 65%, #dc9a72)); }
.public-hero.has-cover::before { display: none; }
.public-hero-image { display: block; flex: 0 0 auto; width: 100%; height: clamp(180px, 38vw, 360px); object-fit: cover; object-position: center; }
.public-hero-image[hidden] { display: none; }
.public-hero-copy { width: 100%; max-width: none; padding: 36px clamp(22px, 6vw, 64px) 42px; }
.public-hero .event-type { display: inline-block; padding: 6px 10px; color: var(--event-text); background: color-mix(in srgb, var(--event-accent) 10%, white); border: 1px solid color-mix(in srgb, var(--event-accent) 28%, white); border-radius: 999px; }
.public-hero .eyebrow { color: var(--event-text); margin-top: 16px; }
.public-hero h1 { font: 500 64px/1 Georgia, "Times New Roman", serif; }
.public-date, .public-location { margin-bottom: 8px; }
.public-hero .hero-actions { margin-top: 20px; }
.public-hero .button-quiet { color: var(--purple-dark); border-color: #cbc5e8; }
.public-section { padding: 36px 7%; border-bottom: 1px solid var(--line); }
.public-section h2, .public-rsvp h2 { font: 500 32px Georgia, serif; }
.large-copy { font: 21px/1.6 Georgia, serif; white-space: pre-line; max-width: 720px; }
.public-timeline { border-left: 2px solid color-mix(in srgb, var(--event-accent) 42%, white); margin: 22px 0 0 8px; }
.public-timeline article { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 0 0 23px 20px; position: relative; }
.public-timeline article::before { content: ""; position: absolute; left: -6px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--event-accent); }
.public-timeline time { color: var(--event-accent); font-weight: 800; }
.public-timeline p, .public-update p { color: var(--muted); margin-bottom: 0; white-space: pre-line; }
.public-update { padding: 15px 0; border-bottom: 1px solid var(--line); }
.public-update:last-child { border: 0; }
.public-photo-grid .photo-open { position: relative; }
.public-photo-grid .photo-open span { display: block; padding-top: 6px; font-size: 12px; }
.public-rsvp { padding: 40px 7%; background: color-mix(in srgb, var(--event-accent) 6%, white); }
.public-rsvp .eyebrow { color: var(--event-accent); }
.public-rsvp form { max-width: 720px; }
.public-rsvp fieldset { margin: 0; border: 1px solid var(--line); border-radius: 5px; padding: 12px; }
.public-rsvp legend { font-size: 13px; font-weight: 700; }
.dietary-options { display: flex; flex-wrap: wrap; gap: 5px 9px; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.public-footer { padding: 20px 7%; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 13px; }
.public-footer .share-row { max-width: 480px; }
.thanks-page, .error-page { max-width: 620px; margin: 90px auto; text-align: center; }
.thanks-page h1, .error-page h1 { font-family: Georgia, serif; font-weight: 500; }
.thanks-page p:not(.eyebrow), .error-page p:not(.eyebrow) { color: var(--muted); margin: 0 auto 22px; max-width: 490px; }
.thanks-mark { color: var(--green); background: #e4f3eb; font-size: 25px; font-weight: 800; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@keyframes paper-in { from { opacity: 0; transform: translateY(12px) rotate(2.2deg); } to { opacity: 1; transform: translateY(0) rotate(2.2deg); } }
@media (max-width: 850px) {
  .landing-hero { padding: 45px 3%; grid-template-columns: 1fr 0.8fr; gap: 4%; }
  .hero-art { min-height: 300px; padding: 23px; }
  .feature-strip { grid-template-columns: repeat(2, 1fr); gap: 20px 0; }
  .feature-strip article:nth-child(2) { border: 0; }
  .feature-strip article:nth-child(3) { padding-left: 0; }
  .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .manage-columns { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .site-header { min-height: 65px; padding: 0 17px; }
  .brand img { width: 210px; height: 56px; }
  .brand-footer img { width: 160px; height: 44px; }
  .site-header nav { gap: 12px; font-size: 13px; }
  .nav-name { display: none; }
  .page-shell { padding: 18px 17px 48px; }
  .site-footer { padding: 19px 17px 25px; }
  .landing-hero { min-height: unset; padding: 33px 0 43px; grid-template-columns: 1fr; gap: 38px; }
  .hero-copy h1 { font-size: 54px; }
  .hero-art { justify-self: center; max-width: 380px; min-height: 290px; }
  .feature-strip { grid-template-columns: 1fr 1fr; padding: 20px 0; }
  .feature-strip article { padding: 0 12px; }
  .feature-strip article:first-child, .feature-strip article:nth-child(3) { padding-left: 0; }
  .feature-strip article:nth-child(2) { border: 0; }
  .feature-strip article:nth-child(3) { border-right: 1px solid var(--line); }
  .closing-band { align-items: start; flex-direction: column; }
  .how-it-works { padding: 44px 0 8px; }
  .how-it-works-heading { text-align: left; margin-bottom: 22px; }
  .step-card { padding: 18px; }
  .auth-layout { grid-template-columns: 1fr; margin: 22px auto; gap: 20px; }
  .auth-note h1 { font-size: 44px; margin-bottom: 8px; }
  .auth-note p:last-child { margin-bottom: 0; }
  .form-panel { padding: 22px; }
  .heading-row, .manage-heading { align-items: start; flex-direction: column; }
  .event-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .span-two { grid-column: auto; }
  .wide-form .span-two { grid-column: auto; }
  .form-section { padding: 18px; }
  .manage-heading h1 { font-size: 34px; }
  .tabs { margin-right: -17px; padding-right: 17px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .content-panel { padding: 18px; }
  .share-row { align-items: stretch; }
  .share-row input { font-size: 11px; }
  .qr-area { align-items: start; flex-direction: column; }
  .filter-row { flex-wrap: wrap; }
  .filter-row .search-label { flex-basis: 100%; }
  .filter-row label { flex: 1; }
  .table-wrap { overflow: visible; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  tbody tr { padding: 11px 0; border-bottom: 1px solid var(--line); }
  tbody td { border: 0; padding: 5px 2px; }
  tbody td:first-child { padding-top: 2px; }
  .table-actions { display: flex; gap: 10px; }
  .schedule-row { grid-template-columns: 75px 1fr; gap: 10px; }
  .upload-box { align-items: stretch; flex-direction: column; }
  .upload-box label { min-width: 0; }
  .lightbox { padding: 18px; }
  .public-event { margin: 0 -7px; border-radius: 7px; }
  .public-hero-image, .public-hero::before { flex-basis: clamp(160px, 48vw, 250px); height: clamp(160px, 48vw, 250px); }
  .public-hero-copy { padding: 28px 22px 32px; }
  .public-hero h1 { font-size: 46px; }
  .public-section { padding: 28px 22px; }
  .public-section h2, .public-rsvp h2 { font-size: 28px; }
  .public-timeline article { grid-template-columns: 78px 1fr; gap: 10px; }
  .public-rsvp { padding: 30px 22px; }
  .public-footer { align-items: start; flex-direction: column; padding: 17px 22px; }
  .public-footer .share-row { width: 100%; }
  .thanks-page, .error-page { margin: 50px auto; }
}

/* Shared public pages and organizer navigation */
.primary-nav { flex: 1; justify-content: center; }
.primary-nav a[aria-current="page"], .settings-tabs a[aria-current="page"], .app-sidebar a[aria-current="page"] { color: var(--purple-dark); font-weight: 800; }
.account-nav { display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.account-nav a { color: var(--muted); text-decoration: none; }
.account-nav .button { color: white; }
.site-footer { gap: 18px; align-items: center; flex-wrap: wrap; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.site-footer nav a { color: var(--muted); text-decoration: none; }
.hero-copy { max-width: 900px; padding: 48px 0; }
.hero-copy h1 { max-width: 790px; font-family: inherit; font-size: clamp(38px, 6vw, 64px); line-height: 1.05; font-weight: 750; }
.hero-copy p { max-width: 780px; color: var(--muted); font-size: 17px; }
.feature-grid, .pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 28px 0; }
.feature-card, .pricing-card, .content-panel { background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 24px; }
.feature-card p, .pricing-card p { color: var(--muted); }
.pricing-card { display: flex; flex-direction: column; align-items: flex-start; }
.pricing-card .button { margin-top: auto; }
.pricing-featured { border-color: var(--purple); }
.price { color: var(--ink) !important; font-size: 36px; font-weight: 800; margin-bottom: 5px; }
.price small { font-size: 15px; font-weight: 500; }
.event-pass-card { margin: 22px 0; }
.comparison-wrap, .table-scroll { overflow-x: auto; margin: 24px 0; border-radius: 12px; }
.comparison, .table-scroll table { width: 100%; min-width: 560px; border-collapse: collapse; background: white; }
.comparison caption { text-align: left; font-size: 18px; font-weight: 750; padding: 12px; }
.comparison th, .comparison td, .table-scroll th, .table-scroll td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; }
.faq { max-width: 850px; margin: 36px 0; }
.faq details { padding: 15px 0; border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 750; }
.directory-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; margin: 20px 0; }
.directory-filters label { min-width: 180px; }
.event-thumb { width: 100%; height: 170px; object-fit: cover; border-radius: 10px; }
.event-thumb-color { background: linear-gradient(135deg, var(--event-accent), #f7e8ff); }
.settings-tabs { display: flex; flex-wrap: wrap; gap: 12px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.settings-tabs a { padding: 10px; color: var(--muted); text-decoration: none; }
.settings-panel { margin: 16px 0; }
.danger-zone { border-color: #e4b7bf; }
.app-shell, .admin-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; }
.app-content, .admin-content { min-width: 0; }
.app-sidebar, .admin-sidebar { display: flex; flex-direction: column; align-items: stretch; gap: 7px; padding: 12px; background: white; border: 1px solid var(--line); border-radius: 14px; height: max-content; }
.app-sidebar a, .admin-sidebar a { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 11px 12px; color: var(--muted); border-radius: 9px; }
.app-sidebar svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.app-sidebar a[aria-current="page"], .admin-sidebar a[aria-current="page"] { color: var(--purple-dark); background: #efedf8; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 12px; }
.admin-stats article { display: grid; gap: 7px; }
.admin-stats strong { font-size: 28px; }
.badge { border-radius: 999px; padding: 3px 9px; background: #eeeafc; color: var(--purple-dark); font-size: 12px; }
.upgrade-dialog { max-width: min(540px, calc(100vw - 32px)); border: 0; border-radius: 16px; padding: 32px; color: var(--ink); box-shadow: 0 20px 80px rgb(31 27 46 / 25%); }
.upgrade-dialog::backdrop { background: rgb(31 27 46 / 54%); }
.upgrade-dialog p { color: var(--muted); }
.upgrade-dialog .back-link { margin-left: 14px; }
.dialog-close { position: absolute; top: 10px; right: 14px; border: 0; background: transparent; font-size: 28px; cursor: pointer; }
.public-event { --event-accent: #6d5bd0; max-width: 950px; margin: 0 auto; }
.tpl-classic .public-hero-copy, .invitation-preview.tpl-classic .public-hero-copy { border-top: 4px solid var(--event-accent); }
.tpl-elegant .public-hero, .invitation-preview.tpl-elegant .public-hero { text-align: center; border: 12px double var(--event-accent); color: var(--event-text); background: #fbf7ee; }
.tpl-elegant .public-hero::before { background: linear-gradient(135deg, #fbf7ee, #efe5d3); }
.tpl-elegant .public-hero-image { border-bottom: 1px solid color-mix(in srgb, var(--event-accent) 35%, white); }
.tpl-elegant .public-hero-copy { padding: 38px 44px; }
.tpl-elegant .public-hero .event-type { color: var(--event-text); background: rgb(255 255 255 / 65%); border-color: color-mix(in srgb, var(--event-accent) 35%, white); }
.tpl-elegant .public-hero .eyebrow { color: var(--event-text); }
.tpl-elegant .public-hero .hero-actions { justify-content: center; }
.tpl-elegant .public-hero .button-quiet { color: var(--event-accent); border-color: var(--event-accent); }
.tpl-modern .public-hero, .invitation-preview.tpl-modern .public-hero { color: var(--event-text); background: #f3f2f8; }
.tpl-modern .public-hero::before { background: linear-gradient(145deg, color-mix(in srgb, var(--event-accent) 70%, white), #f7e7d7); }
.tpl-modern .public-hero-image { border-radius: 0; }
.tpl-modern .public-hero-copy { border-left: 12px solid var(--event-accent); }
.tpl-modern .public-hero .eyebrow { color: var(--event-text); }
.tpl-modern .public-hero h1 { font-size: 52px; }
.tpl-modern .public-hero .button-quiet { color: var(--purple-dark); border-color: var(--purple-dark); }
.tpl-festive .public-hero, .invitation-preview.tpl-festive .public-hero { border-top: 12px solid var(--event-accent); border-bottom: 12px solid var(--event-accent); }
.tpl-festive .public-hero::before { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--event-accent) 22%, white) 0 12px, transparent 12px 24px), linear-gradient(120deg, #fbf7ee, white); }
.tpl-festive .public-hero-image { border-bottom: 6px solid var(--event-accent); }
.tpl-festive .public-hero .event-type { border-radius: 999px; }
.tpl-festive .public-hero h1 { text-shadow: none; }
.font-rounded { font-family: "Trebuchet MS", system-ui, sans-serif; }
.font-serif { font-family: Georgia, "Times New Roman", serif; }
.font-sans { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.font-editorial { font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif; }
.font-handwritten { font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive; }
.font-typewriter { font-family: "Courier New", Courier, monospace; }
.font-humanist { font-family: Verdana, Geneva, sans-serif; }
.public-event[class*="font-"] .public-hero h1,
.public-event[class*="font-"] .public-section h2,
.public-event[class*="font-"] .public-rsvp h2,
.public-event[class*="font-"] .large-copy { font-family: inherit; }
.public-hero { border-radius: 16px; overflow: hidden; }
.public-hero h1 { color: var(--event-text); }
.public-photo-grid img { width: 100%; height: 210px; object-fit: cover; }
.pagination { display: flex; gap: 18px; margin-top: 24px; }
.notice { background: #f3f0ff; border-radius: 10px; padding: 14px; }
.notice-warn { background: #fff2d6; }
.plan-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 22px 0; }
.plan-panel label { margin: 12px 0 5px; }
.plan-panel progress { width: 100%; height: 10px; accent-color: var(--purple); }
.daily-chart { display: grid; grid-template-columns: repeat(14, minmax(14px, 1fr)); align-items: end; gap: 7px; height: 150px; }
.daily-bar { height: 100%; display: flex; flex-direction: column; justify-content: end; align-items: center; gap: 5px; }
.daily-bar span { display: block; width: 100%; min-height: 2px; max-height: 125px; background: var(--purple); border-radius: 5px 5px 0 0; }
.daily-bar small { color: var(--muted); font-size: 9px; transform: rotate(-35deg); }
.recent-responses { padding-left: 20px; }
.recent-responses li { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.recent-responses li:last-child { border-bottom: 0; }
.recent-responses time { flex: 0 0 auto; color: var(--muted); font-size: 12px; }
@media (max-width: 600px) {
  .plan-panel { grid-template-columns: 1fr; }
  .daily-chart { gap: 3px; }
  .daily-bar small { font-size: 8px; }
}

@media (max-width: 820px) {
  body { background-attachment: scroll; }
  .site-header { flex-wrap: wrap; justify-content: space-between; padding: 12px 20px; gap: 10px; }
  .primary-nav { order: 3; flex: 1 1 100%; justify-content: flex-start; overflow-x: auto; gap: 18px; }
  .account-nav { gap: 10px; }
  .page-shell { padding: 20px 18px 54px; }
  .app-shell, .admin-layout { grid-template-columns: 1fr; gap: 14px; }
  .app-sidebar, .admin-sidebar { flex-direction: row; overflow-x: auto; }
  .app-sidebar a, .admin-sidebar a { white-space: nowrap; }
  .site-footer { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}