:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-2: #f2ede5;
  --ink: #1a1712;
  --ink-2: #5c554b;
  --ink-3: #8d857a;
  --line: #e4ddd2;
  --accent: #b4520f;
  --accent-ink: #ffffff;
  --accent-soft: #fbe9d9;
  --ok: #2f7d4f;
  --danger: #b42318;
  --shadow: 0 1px 2px rgb(26 23 18 / 0.06), 0 8px 24px rgb(26 23 18 / 0.08);
  --radius: 14px;
  /* Apple's SF Pro on Apple devices (system font, not hosted by us); Inter, its closest free match, elsewhere. */
  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #12100d;
    --surface: #1c1915;
    --surface-2: #26221d;
    --ink: #f3eee6;
    --ink-2: #bdb4a7;
    --ink-3: #8a8277;
    --line: #34302a;
    --accent: #f08a3c;
    --accent-ink: #1a1009;
    --accent-soft: #3a2414;
    --ok: #5cc287;
    --danger: #f97066;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; letter-spacing: -0.01em; }
.brand-mark { width: 32px; height: 32px; flex: none; border-radius: 8px; box-shadow: 0 2px 6px rgb(0 0 0 / 0.18); }
.wordmark { display: inline-flex; align-items: baseline; gap: 5px; font-family: var(--font-display); font-size: 18px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.wordmark span { font-weight: 500; letter-spacing: -0.01em; color: var(--ink-2); }
.brand small { color: var(--ink-3); font-weight: 500; }
.spacer { flex: 1; }

/* Buttons and inputs */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; text-decoration: none; font-weight: 550; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
}
.btn:hover { border-color: var(--ink-3); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.small { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.danger { color: var(--danger); }
.btn svg { width: 16px; height: 16px; }

label.field { display: grid; gap: 6px; font-size: 13px; font-weight: 550; color: var(--ink-2); }
.input {
  height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); width: 100%;
}
.pw-wrap { position: relative; display: block; }
.pw-wrap .input { padding-right: 46px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-3); cursor: pointer; display: grid; place-items: center; }
.pw-toggle:hover, .pw-toggle[aria-pressed='true'] { color: var(--ink); background: var(--surface-2); }
.pw-toggle svg { width: 20px; height: 20px; }
.input:focus, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.check input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); font-size: 13px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; font-weight: 650; color: var(--ink-3); }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
.display { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
  border-radius: 999px; background: var(--surface-2); font-size: 12px; font-weight: 600; color: var(--ink-2);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.pill.ok .dot { background: var(--ok); }
.pill.live .dot { background: var(--danger); animation: pulse 1.6s infinite; }
.pill.warn .dot { background: var(--accent); }
@keyframes pulse { 50% { opacity: 0.3; } }

/* Dialogs */
dialog {
  border: 1px solid var(--line); border-radius: 18px; padding: 0; background: var(--surface); color: var(--ink);
  width: min(460px, 100% - 32px); box-shadow: var(--shadow);
}
dialog::backdrop { background: rgb(10 8 6 / 0.55); backdrop-filter: blur(3px); }
.dialog-body { padding: 24px; display: grid; gap: 16px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 550;
  transition: opacity 0.2s, transform 0.2s; z-index: 100; pointer-events: none; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translateX(-50%); }

/* Studio dashboard */
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 40px 0 24px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(28px, 4vw, 40px); }
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; padding-bottom: 60px; }
.event-card { overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: box-shadow 0.2s, transform 0.2s; }
.event-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.event-cover { aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--surface-2), var(--accent-soft)); position: relative; }
.event-cover img { width: 100%; height: 100%; object-fit: cover; }
.event-cover .pill { position: absolute; top: 12px; left: 12px; background: rgb(0 0 0 / 0.55); color: #fff; backdrop-filter: blur(6px); }
.event-meta { padding: 14px 16px 16px; display: grid; gap: 2px; }
.event-meta h3 { font-size: 17px; }
.empty { text-align: center; padding: 64px 24px; display: grid; gap: 12px; justify-items: center; }
.empty h2 { font-size: 22px; }

/* Account menu */
.account { position: relative; }
.account-btn { gap: 8px; max-width: 240px; }
.account-btn span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar-initial { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.account-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 240px; padding: 8px; display: grid; gap: 2px; box-shadow: var(--shadow); z-index: 30; }
.account-who { display: grid; gap: 2px; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: 14px; overflow-wrap: anywhere; }
.menu-item { text-align: left; border: 0; background: none; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-weight: 550; }
.menu-item:hover { background: var(--surface-2); }
@media (max-width: 520px) { .account-btn span:last-child { display: none; } }
.plan-strip { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin-top: 20px; text-decoration: none; font-size: 14px; }
.plan-strip:hover, .plan-strip.attention { border-color: var(--accent); }
.plan-strip-cta { font-weight: 600; color: var(--accent); }
.lock-chip { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); text-decoration: none; white-space: nowrap; }
.plan-select { height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); padding: 0 6px; }
.menu-item { display: block; text-decoration: none; color: inherit; }
.welcome { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 16px 18px; margin-top: 24px; background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }

.leads { padding: 22px; margin-bottom: 60px; display: grid; gap: 6px; }
.leads h2 { font-size: 24px; }
.leads-wrap { overflow-x: auto; margin-top: 10px; }
.leads-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.leads-table th, .leads-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.leads-table th { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }
.leads-table a { color: var(--accent); }

.login { min-height: calc(100vh - 61px); display: grid; place-items: center; padding: 24px 0; }
.login .card { width: min(400px, 100%); padding: 28px; display: grid; gap: 16px; }
.login h1 { font-size: 30px; }
.error { color: var(--danger); font-size: 13px; min-height: 1em; }

/* Manage page */
.manage { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; padding: 28px 0 60px; align-items: start; }
.manage aside { display: grid; gap: 16px; position: sticky; top: 84px; }
.panel { padding: 20px; display: grid; gap: 14px; }
.panel h2 { font-size: 15px; }
.share-url { display: flex; gap: 8px; }
.share-url .input { font-size: 13px; }
.qr { background: #fff; border-radius: 10px; padding: 10px; width: 152px; justify-self: center; }
.qr svg { display: block; width: 100%; height: auto; }

.dropzone {
  border: 1.5px dashed var(--ink-3); border-radius: var(--radius); padding: 36px 20px; text-align: center;
  display: grid; gap: 8px; justify-items: center; background: var(--surface); cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.dropzone.over { background: var(--accent-soft); border-color: var(--accent); }
.dropzone h2 { font-size: 20px; }

.settings-group { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }

.queue { display: grid; gap: 6px; margin-top: 16px; }
.queue-summary { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.progress { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; flex: 1; }
.progress > i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.2s; }
.queue-item { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--ink-2); }
.queue-item .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue-item.failed { color: var(--danger); }

.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 20px; }
.admin-tile { position: relative; border-radius: 10px; overflow: hidden; background: var(--surface-2); aspect-ratio: 1; }
.admin-tile img { width: 100%; height: 100%; object-fit: cover; }
.admin-tile .badges { position: absolute; left: 6px; bottom: 6px; display: flex; gap: 4px; }
.admin-tile .badge { background: rgb(0 0 0 / 0.6); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 999px; }
.admin-tile .tools { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; opacity: 0; transition: opacity 0.15s; }
.admin-tile:hover .tools, .admin-tile:focus-within .tools { opacity: 1; }
.admin-tile .tools button { width: 30px; height: 30px; border-radius: 8px; border: 0; background: rgb(0 0 0 / 0.6); color: #fff; cursor: pointer; display: grid; place-items: center; }
.admin-tile .tools svg { width: 15px; height: 15px; }
@media (hover: none) { .admin-tile .tools { opacity: 1; } }

@media (max-width: 860px) {
  .manage { grid-template-columns: 1fr; }
  .manage aside { position: static; }
}

/* Guest gallery */
.hero { position: relative; min-height: min(78vh, 720px); display: grid; align-items: end; color: #fff; background: #1a1712; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / 0.1) 30%, rgb(0 0 0 / 0.7)); }
.hero .wrap { position: relative; z-index: 1; padding: 48px 0; display: grid; gap: 10px; }
.hero h1 { font-size: clamp(40px, 7vw, 84px); line-height: 1; }
.hero .eyebrow { color: rgb(255 255 255 / 0.75); }
.hero p { margin: 0; color: rgb(255 255 255 / 0.85); font-size: 16px; }
.hero.no-cover { min-height: 340px; background: linear-gradient(135deg, #2a2119, #6b3410); }

.toolbar { position: sticky; top: 0; z-index: 15; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.toolbar .wrap { display: flex; align-items: center; gap: 10px; min-height: 64px; flex-wrap: wrap; padding: 10px 0; }
.toolbar .title { font-weight: 650; }

.name-search { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding: 6px 6px 6px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 6px 20px -12px rgb(40 30 20 / 0.25); }
.name-search .input { border: 0; height: 40px; padding: 0 4px; background: transparent; flex: 1; min-width: 0; }
.name-search .input:focus { outline: none; }
.name-search:focus-within { border-color: var(--accent); }
.name-search-icon { display: grid; color: var(--ink-3); }
.name-search-icon svg { width: 18px; height: 18px; }
.filter-note { display: flex; align-items: center; gap: 12px; padding: 16px 0 0; flex-wrap: wrap; }

.masonry { columns: 3 300px; column-gap: 10px; padding: 16px 0 80px; }
.masonry .tile { break-inside: avoid; margin-bottom: 10px; border-radius: 6px; overflow: hidden; background: var(--surface-2); cursor: zoom-in; position: relative; display: block; width: 100%; padding: 0; border: 0; }
.masonry .tile img { width: 100%; height: auto; transition: transform 0.4s, opacity 0.4s; }
.masonry .tile:hover img { transform: scale(1.02); }
.masonry .tile.fresh { animation: arrive 0.6s ease-out; }
.masonry .tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tile .fav {
  position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: rgb(0 0 0 / 0.4); color: #fff; display: grid; place-items: center; cursor: pointer;
  opacity: 0; transition: opacity 0.15s, transform 0.1s; backdrop-filter: blur(4px);
}
.tile .fav svg { width: 18px; height: 18px; }
.tile:hover .fav, .tile .fav:focus-visible, .tile .fav.on { opacity: 1; }
.tile .fav.on { color: #ff5a6e; }
.tile .fav:active { transform: scale(0.9); }
@media (hover: none) { .tile .fav { opacity: 1; } }
.tile .video-badge {
  position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px;
  background: rgb(0 0 0 / 0.6); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 8px 3px 6px; border-radius: 999px;
}
.tile .video-badge svg { width: 12px; height: 12px; }
.btn[aria-pressed='true'] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.btn[aria-pressed='true'] svg { fill: currentColor; }
#lb-fav[aria-pressed='true'] { color: #ff5a6e; background: rgb(255 255 255 / 0.15); }
.proof-note { margin: 16px 0 0; }
.lightbox .lb-stage video { max-width: 100%; max-height: calc(100vh - 100px); background: #000; }
@keyframes arrive { from { opacity: 0; transform: translateY(12px); } }
@media (max-width: 520px) { .masonry { columns: 2; column-gap: 6px; } .masonry .tile { margin-bottom: 6px; } }

.private-card { margin: 40px auto 80px; max-width: 520px; padding: 32px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.private-card h2 { font-size: 26px; }

.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; border: 0; border-radius: 0; background: rgb(8 7 5 / 0.96); color: #fff; }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr; }
.lightbox .lb-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; }
.lightbox .lb-bar .btn { background: rgb(255 255 255 / 0.1); border-color: transparent; color: #fff; }
.lightbox .lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 56px 24px; }
.lightbox .lb-stage img { max-width: 100%; max-height: calc(100vh - 100px); object-fit: contain; }
.lightbox .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgb(255 255 255 / 0.12); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lightbox .nav.prev { left: 8px; }
.lightbox .nav.next { right: 8px; }
.lightbox .nav svg { width: 20px; height: 20px; }
@media (max-width: 520px) { .lightbox .lb-stage { padding: 0 0 16px; } .lightbox .nav { background: rgb(0 0 0 / 0.45); } }

.selfie-preview { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; justify-self: center; border: 3px solid var(--accent); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Photo shop in guest galleries */
.shop-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; margin: 12px 0; background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.shop-note[hidden] { display: none; }
.tile.in-cart { outline: 3px solid var(--accent); outline-offset: -3px; }
.tile.in-cart::after { content: '✓ In cart'; position: absolute; left: 8px; bottom: 8px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: var(--accent); color: #fff; }
.checkout-items { display: flex; flex-wrap: wrap; gap: 6px; }
.checkout-items img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.checkout-items .more { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 8px; background: var(--surface-2); font-weight: 700; }
.checkout-total { margin: 0; font-size: 16px; }
.purchase-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.purchase-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.purchase-list .btn svg { width: 16px; height: 16px; }

/* Event page: AI edits, selling, handover */
.manage [hidden] { display: none !important; }
.tone-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tone-preview figure { margin: 0; display: grid; gap: 4px; }
.tone-preview canvas { width: 100%; height: auto; border-radius: 10px; background: var(--surface-2); }
.tone-preview figcaption { font-size: 12px; color: var(--ink-3); text-align: center; }
.admin-tile .badge.edited { background: linear-gradient(135deg, #a78bfa, #7c3aed); color: #fff; }
.panel .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Event page: culling, hot folder, guests panel, frame */
.hot-folder { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0 0; font-size: 13px; }
.cull-bar { display: grid; gap: 10px; padding: 14px 16px; margin: 14px 0 0; }
.cull-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cull-head > div { display: grid; gap: 2px; }
.cull-filters { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.cull-filters .seg, .seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--surface-2); flex-wrap: wrap; }
.seg button { font: inherit; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 9px; border: 0; background: none; color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed='true'] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / 0.12); }
.admin-tile .badge.cull { background: #fef3c7; color: #92400e; }
.admin-tile .badge.hidden-badge { background: #1f2937; color: #fff; }
details.panel > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
details.panel > summary::-webkit-details-marker { display: none; }
details.panel > summary::after { content: '▾'; color: var(--ink-3); }
details.panel[open] > summary::after { content: '▴'; }
details.panel > summary h2 { margin: 0; }
details.panel h3 { margin: 10px 0 0; font-size: 15px; }
.pending-list, .wa-links, .rsvp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pending-list li { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 12px; background: var(--surface-2); }
.pending-list .none { background: none; color: var(--ink-3); padding: 0; font-size: 14px; }
.pending-thumb { flex: none; width: 48px; height: 48px; border-radius: 8px; display: grid; place-items: center; background: var(--surface); cursor: pointer; overflow: hidden; }
.pending-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pending-text { flex: 1; min-width: 0; display: grid; font-size: 13px; }
.pending-text small { color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.invite-form { display: grid; gap: 10px; }
.rsvp-summary { display: grid; gap: 8px; font-size: 14px; }
.rsvp-summary p { margin: 0; }
.rsvp-list li { display: grid; padding: 6px 0; border-top: 1px solid var(--line); }
.rsvp-list small { color: var(--ink-3); }
.rsvp-yes { color: var(--ok); font-weight: 700; }
.rsvp-no { color: var(--danger); font-weight: 700; }
.rsvp-maybe { color: #b45309; font-weight: 700; }
.wa-links li { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; }
.frame-preview { border-radius: 12px; padding: 10px; background: repeating-conic-gradient(#e7e2da 0% 25%, #fff 0% 50%) 50% / 16px 16px; }
.frame-preview img { width: 100%; height: auto; display: block; }

/* Guest gallery: studio branding, videos, WhatsApp updates, footer, cookie consent */
.brand-bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; gap: 10px;
  padding: 14px max(16px, calc((100% - 1180px) / 2)); font-weight: 650; color: #fff; text-shadow: 0 1px 8px rgb(0 0 0 / 0.45);
}
.brand-bar img { height: 36px; width: auto; max-width: 140px; object-fit: contain; border-radius: 8px; background: rgb(255 255 255 / 0.92); padding: 3px; }
.brand-bar .install-btn, .invite-link { background: rgb(255 255 255 / 0.16); border-color: rgb(255 255 255 / 0.3); color: #fff; text-shadow: none; text-decoration: none; backdrop-filter: blur(6px); }
.brand-bar .install-btn { margin-left: auto; }
.invite-link { justify-self: start; }
.kind-bar { padding: 16px 0 0; }
.video-rail { padding: 18px 0 0; }
.video-rail h2 { margin: 0 0 10px; font-size: 18px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 240px); gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.rail-card { position: relative; padding: 0; border: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 10; background: #000; cursor: pointer; scroll-snap-align: start; }
.rail-card img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: transform 0.3s; }
.rail-card:hover img { transform: scale(1.04); }
.rail-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rail-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.rail-play svg { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: rgb(0 0 0 / 0.45); }
.rail-time { position: absolute; right: 8px; bottom: 8px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgb(0 0 0 / 0.6); color: #fff; }
.wa-optin { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin: 14px 0 0; font-size: 14px; }
.gallery-foot { border-top: 1px solid var(--line); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); }
.gallery-foot .wrap { display: grid; gap: 12px; justify-items: center; text-align: center; }
.foot-studio { display: grid; gap: 2px; }
.foot-studio:empty, .foot-contact:empty { display: none; }
.foot-contact { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.foot-contact .btn { text-decoration: none; }
.foot-links { margin: 0; }
.foot-links a { color: var(--ink-2); }
.linkish { font: inherit; padding: 0; border: 0; background: none; color: var(--ink-2); text-decoration: underline; cursor: pointer; }
.consent-bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30; max-width: 640px; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 14px;
}
.consent-actions { display: flex; gap: 8px; }
.consent-check { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.removal-thumb { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; }
.consent-check a { color: var(--accent); }
