@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=DM+Serif+Display&family=Dancing+Script:wght@400;500;600;700&family=Great+Vibes&family=Inter:wght@400;500;600;700;800&family=Libre+Baskerville:wght@400;700&family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=Marcellus&family=Montserrat:wght@400;500;600;700&family=Nunito+Sans:wght@400;500;600;700&family=Parisienne&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&family=Poppins:wght@400;500;600;700&family=Raleway:wght@400;500;600;700&family=Sacramento&family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700;12..96,800&family=Figtree:wght@400;500;600;700&family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500&display=swap');

:root {
  color-scheme: light;
  --paper: #f6f4ed;
  --surface: #fffef9;
  --surface-soft: #eeeee5;
  --ink: #21332c;
  --muted: #68766c;
  --line: #dce3d9;
  --brand: #365d4d;
  --brand-dark: #244536;
  --accent: #b77961;
  --accent-soft: #f5e7dd;
  --success: #2f7051;
  --danger: #a44545;
  --shadow: 0 20px 60px rgba(28, 51, 38, .08);
  --serif: Iowan Old Style, Baskerville, Palatino Linotype, Book Antiqua, Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(circle at 92% 10%, rgba(202, 218, 196, .26), transparent 28rem), radial-gradient(circle at 5% 86%, rgba(222, 190, 165, .16), transparent 30rem); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .58; }
a { color: inherit; }
a, button, input, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
::selection { background: #d9e5d5; color: var(--ink); }
.site-shell { width: min(100% - 40px, 1180px); margin-inline: auto; }
.site-header { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 90px; border-bottom: 1px solid rgba(54, 93, 77, .12); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--brand-dark); text-decoration: none; font: 600 1.5rem/1 var(--serif); letter-spacing: -.06em; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font: 400 1.25rem/1 var(--serif); transform: rotate(-20deg); }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 36px); }
.site-nav a { color: var(--muted); font-size: .84rem; font-weight: 650; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--brand-dark); }
.eyebrow { color: var(--accent); font-size: .7rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.display-title, h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.055em; line-height: 1.08; }
h1 { font-size: clamp(2.7rem, 5.8vw, 5.4rem); margin: 16px 0 22px; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); margin: 0 0 12px; }
h3 { font-size: 1.55rem; margin: 0 0 9px; }
p { margin-top: 0; }
.lead { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.18rem); line-height: 1.7; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.page-intro { padding: clamp(44px, 8vw, 100px) 0 28px; }
.page-intro--compact { padding: 48px 0 14px; }
.page-intro .lead { max-width: 670px; }
.panel { background: var(--surface); border: 1px solid rgba(62, 91, 70, .12); border-radius: 22px; box-shadow: var(--shadow); }
.panel-pad { padding: clamp(24px, 4vw, 46px); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 22px; border: 1px solid var(--brand); border-radius: 10px; background: var(--brand); color: white; font-size: .88rem; font-weight: 750; line-height: 1.2; text-decoration: none; transition: background .2s, transform .2s, box-shadow .2s; }
.button:hover { background: var(--brand-dark); border-color: var(--brand-dark); box-shadow: 0 8px 20px rgba(28, 67, 47, .15); transform: translateY(-1px); }
.button--light { background: var(--surface); border-color: var(--line); color: var(--brand-dark); }
.button--light:hover { background: #eff3eb; border-color: #c3d2c3; }
.button--text { min-height: auto; padding: 8px 0; border: 0; border-radius: 0; background: transparent; color: var(--brand); box-shadow: none; }
.button--text:hover { background: transparent; border: 0; box-shadow: none; }
.button--danger { background: transparent; border-color: #e9c5bd; color: var(--danger); }
.button--danger:hover { background: #fff1ed; border-color: #dca398; color: var(--danger); }
.button--wide { width: 100%; }
.button svg, .link-arrow svg { width: 16px; height: 16px; flex: none; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label, label.field { font-size: .82rem; font-weight: 750; color: var(--brand-dark); }
.field small { color: var(--muted); font-size: .78rem; font-weight: 400; }
.input { width: 100%; min-height: 50px; padding: 12px 15px; border: 1px solid #cad6cc; border-radius: 10px; background: #fff; color: var(--ink); font-size: .94rem; outline: none; transition: border-color .2s, box-shadow .2s; }
.input:hover { border-color: #9eb5a3; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(54, 93, 77, .12); }
.input::placeholder { color: #96a198; }
.input[type=file] { padding: 10px; }
.input[type=file]::file-selector-button { border: 0; border-radius: 7px; padding: 9px 12px; margin-right: 12px; background: var(--surface-soft); color: var(--brand-dark); font-weight: 650; cursor: pointer; }
.input[type=checkbox] { width: 18px; height: 18px; min-height: 0; accent-color: var(--brand); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.form-grid .full { grid-column: 1 / -1; }
.status { min-height: 26px; margin: 0; color: var(--brand-dark); font-size: .91rem; font-weight: 600; }
.status:empty { display: none; }
.status--error { color: var(--danger); }
.status--success { color: var(--success); }
.notice { display: flex; align-items: flex-start; gap: 14px; padding: 17px 20px; border: 1px solid #d9e5d6; border-radius: 12px; background: #f1f6ee; color: #355b41; font-size: .88rem; line-height: 1.5; }
.notice svg { width: 19px; height: 19px; flex: none; margin-top: 2px; }
.notice--warm { background: #fbf1e8; border-color: #ecd8c6; color: #805843; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 999px; background: #e8f2e9; color: #42694b; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--closed { background: #f5ebe3; color: #95694f; }
.empty-state { padding: 44px 28px; border: 1px dashed #c8d7c9; border-radius: 18px; background: #fffdfa; text-align: center; }
.empty-state .empty-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 15px; border: 1px solid #d4e1d4; border-radius: 50%; color: var(--brand); }
.empty-state .empty-icon svg { width: 26px; height: 26px; }
.empty-state h3 { margin-bottom: 9px; }
.empty-state p { max-width: 440px; margin: 0 auto; color: var(--muted); }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 34px 0; margin-top: 64px; border-top: 1px solid rgba(54, 93, 77, .14); color: var(--muted); font-size: .77rem; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--brand); text-decoration: none; font-weight: 700; }
/* Welcome */
.welcome { display: grid; grid-template-columns: 1fr .85fr; gap: clamp(36px, 8vw, 100px); align-items: center; padding: clamp(44px, 5vw, 70px) 0 70px; }
.welcome-copy h1 { max-width: 700px; font-size: clamp(3rem, 5vw, 4.7rem); }
.welcome-copy .lead { max-width: 550px; }
.lookup { max-width: 510px; margin-top: 34px; }
.lookup .field { gap: 10px; }
.lookup-row { display: flex; gap: 10px; }
.lookup-row .input { flex: 1; }
.lookup-row .button { flex: none; }
.lookup-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
.lookup-links .button { text-align: center; }
.welcome-art { position: relative; display: grid; place-items: center; min-height: 550px; border-radius: 240px 240px 24px 24px; overflow: hidden; background: radial-gradient(circle at 50% 32%, #577768, #284e40 75%); color: #f9f2e6; }
.welcome-art::before { content: ""; position: absolute; inset: 15px; border: 1px solid rgba(255,255,255,.33); border-radius: inherit; }
.welcome-art::after { content: ""; position: absolute; width: 420px; height: 420px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; top: 48px; }
.art-arch { position: relative; z-index: 1; width: 73%; aspect-ratio: .75; display: grid; place-items: center; margin-top: 80px; border-radius: 180px 180px 10px 10px; background: linear-gradient(155deg, #e9ddd0 5%, #cbb9a9 52%, #9eb6a5 100%); box-shadow: 0 25px 50px #152f2466; overflow: hidden; }
.art-arch svg { width: 88%; height: 88%; filter: drop-shadow(0 8px 20px #573b2a33); }
.art-caption { position: absolute; z-index: 2; right: 23px; bottom: 20px; left: 23px; display: flex; justify-content: space-between; color: white; font: italic 1.25rem var(--serif); }
/* Guest upload */
.event-themed { background: var(--event-primary,var(--brand)); color: var(--event-secondary,#fffefa); }
.event-themed,.qr-page,.display-page { font-family: var(--event-body-font,var(--sans)); }
.event-themed h1,.event-themed h2,.event-themed h3,.event-themed .brand,.qr-page h1,.qr-page h2,.qr-page h3,.qr-page .brand,.display-page h1,.display-page h2,.display-page h3,.display-page .brand { font-family: var(--event-heading-font,var(--serif)); }
.guest-aside #title,.qr-intro #title,.moderator-topline #title,.display-page .display-event-name { font-family: var(--event-name-font,var(--event-heading-font,var(--serif))); }
.guest-aside #title,.qr-intro #title,.moderator-topline #title,.display-event-name,#workspaceTitle,.preview-hero h3,.preview-display-title,.theme-preview span { white-space: break-spaces; overflow-wrap: anywhere; }
.event-themed::before { background: radial-gradient(circle at 92% 12%,color-mix(in srgb,var(--event-secondary,#fffefa) 15%,transparent),transparent 36rem); }
.event-themed .site-header,.event-themed .site-footer { border-color: color-mix(in srgb,currentColor 24%,transparent); }
.event-themed .brand,.event-themed .site-nav a,.event-themed .site-nav a:hover,.event-themed .site-footer,.event-themed .site-footer a { color: inherit; }
.event-themed .page-intro .lead,.event-themed .guest-aside .lead { color: inherit; opacity: .85; }
.event-themed .page-intro .eyebrow,.event-themed .guest-aside .eyebrow { color: inherit; opacity: .8; }
.event-themed .panel,.event-themed .media-card,.event-themed .empty-state { color: var(--ink); }
.event-themed .panel .eyebrow,.event-themed .media-card .eyebrow { color: var(--event-on-surface,var(--brand)); }
.event-themed .panel .field label { color: var(--ink); }
.event-themed .panel .pill { background: var(--event-primary,var(--brand)); color: var(--event-secondary,#fffefa); }
.event-themed .panel .pill--closed { background: #f5ebe3; color: #95694f; }
.event-themed .button:not(.button--light):not(.button--danger) { background: var(--event-primary,var(--brand)); border-color: var(--event-primary,var(--brand)); color: var(--event-secondary,#fffefa); }
.event-themed .button:not(.button--light):not(.button--danger):hover { box-shadow: 0 8px 24px color-mix(in srgb,var(--event-primary,var(--brand)) 35%,transparent); filter: brightness(1.06); }
.event-themed .button--light { color: var(--event-on-surface,var(--brand)); }
.event-themed .input:focus { border-color: var(--event-primary,var(--brand)); box-shadow: 0 0 0 4px color-mix(in srgb,var(--event-primary,var(--brand)) 16%,transparent); }
.event-themed :focus-visible { outline-color: var(--event-secondary,#fffefa); }
.event-themed .panel :focus-visible,.event-themed .media-card :focus-visible { outline-color: var(--event-on-surface,var(--brand)); }
.guest-layout { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 50px; align-items: start; padding: 58px 0 70px; }
.guest-aside { padding-top: 42px; }
.guest-aside.has-cover { min-height: 520px; padding: 42px 36px; border-radius: 20px; background-position: center; background-size: cover; box-shadow: 0 24px 60px rgba(16,30,22,.2); }
.guest-aside h1 { font-size: clamp(3.25rem, 6vw, 5.5rem); }
.guest-aside .lead { max-width: 430px; }
.event-monogram { width: 66px; height: 66px; display: grid; place-items: center; margin-bottom: 32px; border: 1px solid var(--event-accent, var(--accent)); border-radius: 50%; color: var(--event-accent, var(--accent)); font: italic 2rem var(--serif); }
.guest-themed .event-monogram { border-color: currentColor; color: inherit; }
.guest-themed .flow-steps .step-index { border-color: currentColor; color: inherit; }
.guest-themed .flow-steps strong,.guest-themed .flow-steps span:last-child { color: inherit; }
.guest-themed .flow-steps span:last-child { opacity: .8; }
.guest-themed .dropzone { background: color-mix(in srgb,var(--event-primary,var(--brand)) 7%,white); border-color: color-mix(in srgb,var(--event-primary,var(--brand)) 52%,white); }
.guest-themed .dropzone:hover,.guest-themed .dropzone.is-dragging { background: color-mix(in srgb,var(--event-primary,var(--brand)) 13%,white); border-color: var(--event-primary,var(--brand)); }
.guest-themed .dropzone-icon,.guest-themed .dropzone strong { color: var(--event-on-surface,var(--brand)); }
.guest-themed .notice { background: color-mix(in srgb,var(--event-primary,var(--brand)) 8%,white); border-color: color-mix(in srgb,var(--event-primary,var(--brand)) 24%,white); color: var(--ink); }
.flow-steps { list-style: none; display: grid; gap: 22px; padding: 0; margin: 52px 0 0; }
.flow-steps li { display: flex; gap: 15px; align-items: flex-start; }
.step-index { width: 31px; height: 31px; display: grid; place-items: center; flex: none; border: 1px solid #cddbd0; border-radius: 50%; color: var(--brand); font-size: .75rem; font-weight: 800; }
.flow-steps strong { display: block; color: var(--brand-dark); font-size: .86rem; }
.flow-steps span:last-child { display: block; color: var(--muted); font-size: .8rem; }
.upload-panel .panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.upload-panel h2 { font-size: 2.3rem; }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 260px; padding: 35px 20px; border: 1.5px dashed #aac1ac; border-radius: 15px; background: #f3f7f1; text-align: center; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.dropzone:hover, .dropzone.is-dragging { background: #e8f1e8; border-color: var(--brand); transform: translateY(-2px); }
.dropzone.is-disabled { opacity: .65; cursor: not-allowed; }
.dropzone-icon { width: 57px; height: 57px; display: grid; place-items: center; margin-bottom: 17px; border-radius: 15px; background: white; box-shadow: 0 8px 20px #4a76521a; color: var(--brand); }
.dropzone-icon svg { width: 28px; height: 28px; }
.dropzone strong { display: block; color: var(--brand-dark); font-size: 1.06rem; }
.dropzone span { color: var(--muted); font-size: .82rem; }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.upload-meta { display: flex; justify-content: space-between; gap: 12px; margin: 14px 0 23px; color: var(--muted); font-size: .76rem; }
.upload-results { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.upload-results li { display: flex; align-items: flex-start; gap: 12px; padding: 13px 15px; border: 1px solid #e1e7de; border-radius: 10px; background: #fafbf8; color: var(--muted); font-size: .81rem; overflow-wrap: anywhere; }
.upload-results li::before { content: ""; width: 8px; height: 8px; margin-top: 5px; flex: none; border-radius: 50%; background: #c4a36a; }
.upload-results li.done { border-color: #d1e7d2; background: #f0f8f0; color: #346544; }
.upload-results li.done::before { background: #58a773; }
.upload-results li.error { border-color: #edd5cb; background: #fff5f0; color: #9a5144; }
.upload-results li.error::before { background: #d77863; }
/* QR */
.qr-page { background: var(--event-primary,#254a3a); color: var(--event-secondary,#f9f7f0); }
.qr-page::before { z-index: 0; background: radial-gradient(circle at 20% 15%, color-mix(in srgb,var(--event-primary,#254a3a) 82%,var(--event-secondary,#f9f7f0)), transparent 42%); }
.qr-page .site-shell { position: relative; }
.qr-page .site-header { border-color: color-mix(in srgb,currentColor 25%,transparent); }
.qr-page .brand, .qr-page .site-nav a { color: inherit; }
.qr-layout { display: grid; grid-template-columns: 1fr 420px; gap: 7vw; align-items: center; min-height: calc(100vh - 160px); padding: 60px 0; }
.qr-intro h1 { max-width: 720px; }
.qr-intro.has-cover { min-height: 480px; padding: clamp(34px,5vw,64px); border-radius: 20px; background-position: center; background-size: cover; box-shadow: 0 24px 60px rgba(16,30,22,.2); }
.qr-intro .lead { max-width: 540px; color: inherit; opacity: .85; }
.qr-intro .eyebrow { color: inherit; }
.qr-hint { display: inline-flex; gap: 12px; align-items: center; margin-top: 42px; padding-top: 24px; border-top: 1px solid color-mix(in srgb,currentColor 30%,transparent); color: inherit; font-size: .85rem; }
.qr-card { padding: 26px; border-radius: 22px; background: #fffefa; color: var(--ink); box-shadow: 0 30px 80px #14291a66; text-align: center; }
.qr-card-top { display: flex; justify-content: space-between; align-items: center; padding: 2px 7px 16px; color: var(--brand); font: 600 1.15rem var(--serif); }
.qr-card-top span:last-child { font: 700 .6rem var(--sans); letter-spacing: .15em; text-transform: uppercase; }
.qr-frame { display: grid; place-items: center; min-height: 305px; padding: 20px; border: 1px solid #dfe8dc; border-radius: 13px; background: #f6f9f3; }
.qr-frame canvas { max-width: 100%; height: auto; }
.qr-card h2 { font-size: 1.55rem; margin: 21px 0 7px; }
.qr-card p { color: var(--muted); font-size: .82rem; }
.qr-card .button-row { justify-content: center; margin-top: 18px; }
.qr-card .button { min-height: 43px; font-size: .75rem; }
/* Admin */
.dashboard-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 58px 0 28px; }
.dashboard-head p { margin-bottom: 0; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
.dashboard-card h2 { font-size: 2rem; }
.dashboard-card .section-lead { margin-bottom: 28px; color: var(--muted); font-size: .86rem; }
.form-section { display: flex; align-items: center; gap: 10px; margin: 28px 0 18px; padding-top: 23px; border-top: 1px solid var(--line); color: var(--brand-dark); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.advanced { margin: 25px 0 0; border-top: 1px solid var(--line); }
.advanced summary { padding: 20px 0; color: var(--brand-dark); font-size: .84rem; font-weight: 750; cursor: pointer; }
.advanced .form-grid { padding-bottom: 10px; }
.credential-banner { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 20px; padding: 18px 21px; border: 1px solid #dfd6b6; border-radius: 13px; background: #fbf6e7; color: #665539; font-size: .85rem; overflow-wrap: anywhere; }
.credential-banner strong { color: #514021; }
.credential-line { display: block; margin-top: 5px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.event-list { display: grid; gap: 16px; }
.event-card { padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.event-card-head { display: flex; justify-content: space-between; align-items: start; gap: 15px; }
.event-card h3 { margin: 4px 0 3px; font-size: 1.65rem; }
.event-code { color: var(--muted); font-size: .74rem; }
.event-stats { display: flex; gap: 26px; padding: 19px 0; margin: 17px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.event-stats span { display: flex; flex-direction: column; font: 600 1.3rem var(--serif); }
.event-stats small { color: var(--muted); font: 700 .68rem var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.event-stats strong { font: 600 1.4rem var(--serif); }
.event-stats em { margin-top: 5px; color: var(--brand); font: 600 .78rem var(--sans); font-style: normal; }
.color-input { width: 100%; min-height: 46px; padding: 5px; border: 1px solid var(--line); border-radius: 8px; background: white; cursor: pointer; }
.theme-preview { display: grid; gap: 8px; place-content: center; min-height: 110px; padding: 18px; border-radius: 12px; text-align: center; font-size: .72rem; }
.theme-preview span { font: 500 clamp(1.5rem, 2.6vw, 2.1rem) var(--serif); }
.theme-preview strong { font-size: 1rem; font-weight: 600; }
.theme-preview small { opacity: .78; }
.font-select { cursor: pointer; }
.inline-advanced { border-top: 1px solid var(--line); }
.inline-advanced summary { padding: 13px 0; color: var(--brand); font-size: .78rem; font-weight: 750; cursor: pointer; }
.inline-advanced .form-grid { padding-top: 8px; }
.asset-strip { display: grid; gap: 8px; }
.asset-strip-label { color: var(--muted); font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.asset-thumbs { display: flex; gap: 8px; min-height: 60px; padding: 9px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: #fafbf8; }
.asset-thumbs img { width: 64px; height: 54px; flex: none; border-radius: 7px; object-fit: cover; }
.asset-empty { align-self: center; color: var(--muted); font-size: .76rem; }
.asset-removals { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 2px 0 6px; }
.asset-removals .checkbox-line { min-height: 28px; color: var(--muted); font-size: .76rem; font-weight: 600; }
.preview-studio { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #f8faf6; }
.preview-studio-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.preview-studio-head strong,.preview-studio-head small { display: block; }
.preview-studio-head strong { color: var(--brand-dark); font-size: .8rem; }
.preview-studio-head small { margin-top: 2px; color: var(--muted); font-size: .68rem; }
.preview-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.preview-tabs { display: flex; gap: 4px; padding: 3px; border-radius: 8px; background: #e8eee7; }
.preview-tabs button,.preview-devices button { padding: 6px 9px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: .66rem; font-weight: 750; }
.preview-tabs button.is-active,.preview-devices button.is-active { background: white; color: var(--brand-dark); box-shadow: 0 2px 7px #29473218; }
.preview-devices { display: flex; gap: 4px; padding: 3px; border: 1px solid #d6e1d4; border-radius: 8px; background: #eef3ec; }
.interface-preview { padding: 12px; }
.preview-canvas { position: relative; min-height: 510px; overflow: hidden; border-radius: 9px; background: var(--preview-primary); color: var(--preview-secondary); font: 10px/1.4 var(--preview-body); box-shadow: 0 12px 30px #26392d1c; }
.interface-preview[data-device="desktop"] { overflow-x: auto; }
.interface-preview[data-device="desktop"] .preview-canvas { min-width: 560px; }
.interface-preview[data-device="desktop"] .preview-upload-layout,.interface-preview[data-device="desktop"] .preview-qr-layout { min-height: 465px; }
.interface-preview[data-device="desktop"] .preview-hero { min-height: 420px; }
.interface-preview[data-device="desktop"] .preview-display-stage { height: 380px; }
.interface-preview[data-device="desktop"] .preview-display-title { font-size: 30px !important; }
.interface-preview[data-device="mobile"] { display: grid; justify-items: center; padding: 22px 12px; }
.interface-preview[data-device="mobile"] .preview-canvas { width: min(100%,390px); min-height: 730px; border: 6px solid #2b3e34; border-radius: 28px; box-shadow: 0 18px 45px #1c33263d; }
.interface-preview[data-device="mobile"] .preview-upload-layout,.interface-preview[data-device="mobile"] .preview-qr-layout { grid-template-columns: 1fr; grid-template-rows: 280px minmax(280px,1fr); min-height: 670px; }
.interface-preview[data-device="mobile"] .preview-hero { min-height: 280px; }
.interface-preview[data-device="mobile"] .preview-display-title { margin: 26px 14px 18px !important; font-size: 25px !important; }
.interface-preview[data-device="mobile"] .preview-display-stage { height: 540px; }
.interface-preview[data-device="mobile"] .preview-display-footer { padding-top: 14px; }
.preview-canvas h3,.preview-canvas h4 { font-family: var(--preview-heading); letter-spacing: -.04em; }
.preview-canvas .preview-hero h3,.preview-canvas .preview-display-title { font-family: var(--preview-name); }
.preview-canvas h3 { margin: 5px 0 7px; font-size: 25px; }
.preview-canvas h4 { margin: 5px 0; font-size: 14px; }
.preview-canvas p { margin: 0; opacity: .8; }
.preview-mini-header { display: flex; align-items: center; justify-content: space-between; height: 37px; padding: 0 16px; border-bottom: 1px solid color-mix(in srgb,currentColor 24%,transparent); }
.preview-mini-header strong { font: 600 12px var(--preview-heading); }
.preview-mini-header span { font-size: 6px; font-weight: 800; letter-spacing: .12em; }
.preview-upload-layout,.preview-qr-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 12px; padding: 15px; }
.preview-hero { display: flex; flex-direction: column; justify-content: center; min-height: 198px; padding: 18px; border-radius: 8px; background-position: center; background-size: cover; }
.preview-hero.has-image { box-shadow: inset 0 0 0 1px #fff3; }
.preview-hero small,.preview-panel>small { font-size: 6px; font-weight: 800; letter-spacing: .1em; }
.preview-panel { min-width: 0; padding: 18px; border-radius: 9px; background: #fffef9; color: #21332c; }
.preview-dropzone { display: grid; place-items: center; min-height: 80px; margin: 13px 0 9px; border: 1px dashed color-mix(in srgb,var(--preview-primary) 55%,white); border-radius: 7px; background: color-mix(in srgb,var(--preview-primary) 7%,white); color: var(--preview-primary); font-weight: 700; }
.preview-button { display: block; width: 100%; padding: 7px; border: 0; border-radius: 5px; background: var(--preview-primary); color: var(--preview-secondary); font-size: 7px; font-weight: 800; text-align: center; }
.preview-qr-layout { grid-template-columns: 1.2fr .8fr; }
.preview-qr-card { display: grid; place-content: center; text-align: center; }
.preview-qr-symbol { color: var(--preview-primary); font: 58px/1 monospace; }
.preview-display-title { margin: 12px 0 8px !important; text-align: center; font-size: 18px !important; }
.preview-display-stage { position: relative; display: grid; place-content: center; gap: 8px; width: calc(100% - 32px); height: 164px; margin: auto; border: var(--display-frame-width,1px) solid var(--display-frame-color,currentColor); border-radius: 7px; background-position: center; background-size: contain; background-repeat: no-repeat; text-align: center; }
.preview-canvas--display[data-frame="none"] .preview-display-stage { border: 0; border-radius: 0; }
.preview-canvas--display[data-frame="rounded"] .preview-display-stage { border-radius: 25px; }
.preview-canvas--display[data-frame="double"] .preview-display-stage { border: max(3px, var(--display-frame-width,1px)) double var(--display-frame-color,currentColor); }
.preview-canvas--display[data-frame="botanical"] .preview-display-stage,.preview-canvas--display[data-frame="floral"] .preview-display-stage { border-color: color-mix(in srgb,var(--display-frame-color) 36%,transparent); }
.preview-canvas--display[data-frame="lace"] .preview-display-stage,.preview-canvas--display[data-frame="celestial"] .preview-display-stage,.preview-canvas--display[data-frame="art-deco"] .preview-display-stage { border-color: color-mix(in srgb,var(--display-frame-color) 30%,transparent); }
.preview-canvas--display[data-frame="watercolor"] .preview-display-stage { border: 0; }
.preview-canvas--display[data-frame="watercolor"] .preview-display-stage::before { content: ""; position: absolute; inset: -2px; border-radius: 12px; background: radial-gradient(ellipse at 5% 15%,var(--display-frame-color),transparent 35%),radial-gradient(ellipse at 90% 5%,var(--display-frame-color),transparent 32%),radial-gradient(ellipse at 5% 90%,var(--display-frame-color),transparent 35%),radial-gradient(ellipse at 95% 85%,var(--display-frame-color),transparent 36%); opacity: .78; filter: blur(7px); -webkit-mask-image: radial-gradient(ellipse at center,transparent 45%,#000 82%); mask-image: radial-gradient(ellipse at center,transparent 45%,#000 82%); pointer-events: none; }
.preview-canvas--display[data-frame="watercolor"] .preview-display-stage::before { transform: scale(var(--display-frame-scale,1)); }
.preview-display-stage .display-ornament { width: calc(92px * var(--display-frame-scale,1)); height: calc(92px * var(--display-frame-scale,1)); }
.interface-preview[data-device="mobile"] .preview-display-stage .display-ornament { width: calc(76px * var(--display-frame-scale,1)); height: calc(76px * var(--display-frame-scale,1)); }
.preview-display-stage.has-image { background-color: #101713; box-shadow: inset 0 0 25px #0006; }
.preview-heart { font: 30px var(--preview-heading); }
.preview-display-footer { display: grid; gap: 5px; padding: 8px 16px; font-size: 7px; }
.preview-display-footer i { display: block; width: 68%; height: 2px; border-radius: 2px; background: var(--preview-accent); }
.event-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.event-links a { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--brand); font-size: .74rem; font-weight: 750; text-decoration: none; }
.event-links a:hover { background: #f0f5ef; border-color: #b9d0b9; }
.event-settings { margin-top: 18px; }
.event-settings summary { color: var(--brand); font-size: .75rem; font-weight: 750; cursor: pointer; }
.event-settings-content { padding-top: 20px; }
.event-settings .form-grid { gap: 14px; }
.event-settings .button-row { margin-top: 20px; }
.checkbox-line { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; }
.login-layout { display: grid; grid-template-columns: 1fr 430px; align-items: center; gap: 7vw; min-height: calc(100vh - 190px); padding: 60px 0; }
.login-layout .lead { max-width: 540px; }
.login-card h2 { font-size: 2rem; }
.login-card .field { margin: 28px 0 18px; }
/* Owner studio */
.owner-shell { width: min(100% - 40px, 1080px); }
.owner-login-layout { min-height: calc(100vh - 190px); }
.owner-event-links { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 22px; }
.owner-event-links .button { min-height: 42px; padding: 9px 15px; font-size: .76rem; }
.owner-customizer { margin-bottom: 42px; }
.owner-section-head { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 30px; }
.owner-section-head h2 { margin-top: 5px; }
.owner-section-head>span { max-width: 310px; text-align: right; }
.owner-save-bar { position: sticky; z-index: 3; bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 32px -16px -16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 13px; background: color-mix(in srgb,var(--surface) 94%,transparent); box-shadow: 0 14px 38px #1c33261f; backdrop-filter: blur(10px); }
/* Moderator */
.moderator-themed .page-intro .pill { background: color-mix(in srgb,currentColor 14%,transparent); color: inherit; }
.moderator-themed .media-card-content { color: var(--ink); }
.moderator-themed .empty-state { background: var(--surface); }
.moderator-themed .status { color: inherit; }
.moderator-layout { padding-bottom: 70px; }
.moderator-topline { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.moderator-login { max-width: 530px; margin: 25px 0 0; }
.moderator-login .field { margin: 25px 0 18px; }
.media-count { margin: 28px 0 18px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 17px; }
.media-card { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: 0 8px 22px rgba(36, 69, 54, .06); }
.media-card img, .media-card video { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #e1e9dd; }
.media-card-content { padding: 15px; }
.media-card-content p { margin: 0 0 12px; color: var(--muted); font-size: .76rem; }
.media-card-content .button { width: 100%; min-height: 42px; font-size: .76rem; }
/* Display */
.display-page { background: var(--event-primary,#15231c); color: var(--event-secondary,#f9f8f0); overflow: hidden; }
.display-page::before { z-index: 0; background: radial-gradient(circle at 50% 40%, color-mix(in srgb,var(--event-primary,#15231c) 80%,var(--event-secondary,#f9f8f0)),var(--event-primary,#15231c) 70%); }
.display-page .site-shell { width: min(100% - 64px, 1440px); }
.display-header { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr minmax(0,2fr) 1fr; align-items: center; gap: 20px; padding-top: 25px; }
.display-header .brand { color: inherit; font-size: 1.3rem; }
.display-event-name { margin: 0; text-align: center; font-size: clamp(1.45rem,3vw,2.8rem); line-height: 1.2; overflow-wrap: anywhere; }
.display-header-right { display: flex; justify-content: end; align-items: center; gap: 20px; }
.display-header .pill { background: color-mix(in srgb,currentColor 12%,transparent); color: inherit; }
.display-header .pill::before { box-shadow: 0 0 8px currentColor; }
.display-stage-wrap { position: relative; display: grid; place-items: center; height: calc(100vh - 200px); min-height: 360px; padding: 22px 0; }
.display-stage-wrap::before { content: ""; position: absolute; inset: 15px 0; border: var(--display-frame-width,1px) solid var(--display-frame-color,currentColor); border-radius: 10px; pointer-events: none; }
.display-page[data-frame="none"] .display-stage-wrap::before { content: none; }
.display-page[data-frame="rounded"] .display-stage-wrap::before { border-radius: 42px; }
.display-page[data-frame="double"] .display-stage-wrap::before { border: max(3px, var(--display-frame-width,1px)) double var(--display-frame-color,currentColor); }
.display-page[data-frame="botanical"] .display-stage-wrap::before,.display-page[data-frame="floral"] .display-stage-wrap::before { border-color: color-mix(in srgb,var(--display-frame-color) 36%,transparent); }
.display-page[data-frame="lace"] .display-stage-wrap::before,.display-page[data-frame="celestial"] .display-stage-wrap::before,.display-page[data-frame="art-deco"] .display-stage-wrap::before { border-color: color-mix(in srgb,var(--display-frame-color) 30%,transparent); }
.display-page[data-frame="watercolor"] .display-stage-wrap::before { border: 0; border-radius: 25px; background: radial-gradient(ellipse at 2% 12%,var(--display-frame-color),transparent 30%),radial-gradient(ellipse at 95% 8%,var(--display-frame-color),transparent 32%),radial-gradient(ellipse at 3% 95%,var(--display-frame-color),transparent 34%),radial-gradient(ellipse at 98% 88%,var(--display-frame-color),transparent 30%); opacity: .75; filter: blur(15px); -webkit-mask-image: radial-gradient(ellipse at center,transparent 53%,#000 84%); mask-image: radial-gradient(ellipse at center,transparent 53%,#000 84%); }
.display-page[data-frame="watercolor"] .display-stage-wrap::before { transform: scale(var(--display-frame-scale,1)); }
.display-ornament { position: absolute; z-index: 1; width: clamp(48px,calc(10vw * var(--display-frame-scale,1)),220px); height: clamp(48px,calc(10vw * var(--display-frame-scale,1)),220px); color: var(--display-frame-color,currentColor); pointer-events: none; }
.display-ornament svg { display: block; width: 100%; height: 100%; }
.display-ornament--top-left { top: 15px; left: 1px; }
.display-ornament--top-right { top: 15px; right: 1px; transform: scaleX(-1); }
.display-ornament--bottom-left { bottom: 15px; left: 1px; transform: scaleY(-1); }
.display-ornament--bottom-right { bottom: 15px; right: 1px; transform: scale(-1); }
.preview-display-stage .display-ornament--top-left,.preview-display-stage .display-ornament--top-right { top: 0; }
.preview-display-stage .display-ornament--bottom-left,.preview-display-stage .display-ornament--bottom-right { bottom: 0; }
.preview-display-stage .display-ornament--top-left,.preview-display-stage .display-ornament--bottom-left { left: 0; }
.preview-display-stage .display-ornament--top-right,.preview-display-stage .display-ornament--bottom-right { right: 0; }
.display-stage { position: relative; max-width: 100%; text-align: center; }
.display-stage img, .display-stage video { display: block; max-width: min(90vw, 1320px); max-height: calc(100vh - 280px); object-fit: contain; border-radius: 4px; box-shadow: 0 25px 80px #0009; }
.display-empty { max-width: 620px; padding: 32px; }
.display-empty .empty-icon { width: 80px; height: 80px; display: grid; place-items: center; margin: 0 auto 22px; border: 1px solid currentColor; border-radius: 50%; color: var(--event-secondary,#e2bd9a); }
.display-empty h2 { font-size: clamp(2.4rem, 5vw, 4.5rem); }
.display-empty p { color: inherit; opacity: .8; }
.display-footer { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; padding-bottom: 25px; }
.display-footer-main { min-width: 0; }
.display-caption { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 12px; color: inherit; opacity: .85; font-size: .78rem; }
.progress-track { height: 3px; overflow: hidden; border-radius: 8px; background: color-mix(in srgb,currentColor 28%,transparent); }
.progress-bar { width: 0; height: 100%; background: #dfb28c; }
.filmstrip { position: relative; height: 76px; overflow: hidden; }
.filmstrip-track { position: absolute; top: 9px; left: 50%; display: flex; gap: 8px; width: max-content; transform: translateX(calc(-1 * var(--strip-offset))); }
.filmstrip-tile { position: relative; flex: none; width: 58px; height: 58px; border: 2px solid color-mix(in srgb,currentColor 38%,transparent); border-radius: 7px; overflow: hidden; opacity: .6; }
.filmstrip-tile img,.filmstrip-tile video { display: block; width: 100%; height: 100%; object-fit: cover; }
.filmstrip-tile--current { border-color: currentColor; outline: 2px solid currentColor; outline-offset: 2px; opacity: 1; }
.filmstrip-tile--video::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; color: white; text-shadow: 0 1px 5px #000; background: #0003; font-size: .9rem; }
.filmstrip-tile--arrival { z-index: 2; animation: thumbnail-arrival 2.8s ease-out both; }
.filmstrip-tile--unseen::before { content: "NOVO"; position: absolute; z-index: 2; top: 2px; left: 2px; padding: 2px 3px; border-radius: 3px; background: var(--event-accent,#dfb28c); color: #18261f; font: 800 6px/1 var(--sans); letter-spacing: .08em; }
@keyframes thumbnail-arrival { 0% { opacity: 0; scale: .72; box-shadow: 0 0 0 0 var(--event-accent,#dfb28c); } 16% { opacity: 1; scale: 1.1; box-shadow: 0 0 0 8px color-mix(in srgb,var(--event-accent,#dfb28c) 42%,transparent); } 38% { scale: 1; } 100% { opacity: 1; box-shadow: 0 0 0 0 transparent; } }
.display-qr { display: flex; align-items: center; gap: 11px; padding: 8px; border: 1px solid color-mix(in srgb,currentColor 22%,transparent); border-radius: 8px; background: color-mix(in srgb,currentColor 8%,transparent); color: inherit; font-size: .72rem; line-height: 1.25; }
.display-qr canvas { width: 66px !important; height: 66px !important; border: 4px solid white; border-radius: 3px; background: white; }
@media (prefers-reduced-motion: no-preference) { .frame { animation: gentleReveal .55s ease both; } @keyframes gentleReveal { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: scale(1); } } }
@media (max-width: 980px) {
  .welcome { grid-template-columns: 1fr .8fr; gap: 38px; }
  .welcome-art { min-height: 440px; }
  .guest-layout, .dashboard-grid { grid-template-columns: 1fr; }
  .guest-aside { padding-top: 0; }
  .flow-steps { grid-template-columns: repeat(3, 1fr); margin-top: 30px; }
  .qr-layout, .login-layout { grid-template-columns: 1fr; gap: 34px; }
  .qr-card { max-width: 420px; }
}
@media (max-width: 700px) {
  .site-shell { width: min(100% - 30px, 1180px); }
  .site-header { min-height: 72px; }
  .brand { font-size: 1.32rem; }
  .site-nav { gap: 15px; }
  .site-nav a { font-size: .72rem; }
  .welcome { display: flex; flex-direction: column; align-items: stretch; padding: 40px 0 54px; }
  .welcome-art { min-height: 400px; width: 100%; }
  .welcome-copy h1 { font-size: clamp(3rem, 11vw, 4.6rem); }
  .lookup-row { flex-direction: column; }
  .lookup-row .button { width: 100%; }
  .guest-layout { padding: 36px 0 42px; gap: 30px; }
  .guest-aside h1 { font-size: 3.35rem; }
  .flow-steps { display: none; }
  .upload-panel .panel-head { display: block; }
  .dropzone { min-height: 220px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .dashboard-head { display: block; padding-top: 40px; }
  .owner-section-head,.owner-save-bar { align-items: stretch; flex-direction: column; }
  .owner-section-head>span { text-align: left; }
  .owner-save-bar .button { width: 100%; }
  .event-links { grid-template-columns: repeat(2, 1fr); }
  .event-card-head { align-items: start; }
  .event-stats { gap: 18px; }
  .preview-studio-head { align-items: flex-start; flex-direction: column; }
  .preview-controls { width: 100%; justify-content: flex-start; }
  .preview-tabs { width: 100%; }
  .preview-tabs button { flex: 1; }
  .moderator-topline { display: block; }
  .qr-layout { padding-top: 42px; }
  .qr-intro h1 { font-size: 3.5rem; }
  .qr-hint { margin-top: 12px; }
  .qr-card { width: 100%; }
  .display-page .site-shell { width: min(100% - 26px, 1440px); }
  .display-header { padding-top: 16px; }
  .display-header-right { gap: 8px; }
  .display-header .brand { font-size: 1.05rem; }
  .display-stage-wrap { height: calc(100vh - 165px); }
  .display-stage img, .display-stage video { max-width: 93vw; max-height: calc(100vh - 220px); }
  .display-footer { grid-template-columns: 1fr; gap: 10px; }
  .display-qr { display: none; }
  .site-footer { margin-top: 42px; }
}

.dashboard-tabs { display:flex; gap:8px; margin: 0 0 24px; border-bottom:1px solid var(--line); }
.dashboard-tabs button { border:0; background:transparent; padding:14px 18px; color:var(--brand); font:inherit; font-weight:700; cursor:pointer; border-bottom:3px solid transparent; }
.dashboard-tabs button.is-active { border-color:var(--brand); }
.dashboard-sections { max-width: 1050px; }
.event-download { margin: 14px 0; }

.google-signin { margin: 12px 0; }
.google-admin-setup, .access-requests { margin-bottom: 18px; }
.access-request { display:flex; gap:12px; align-items:center; flex-wrap:wrap; padding:14px 0; border-top:1px solid var(--line); }
.access-request > div:first-child { flex:1 1 240px; }
.access-request p { margin: 4px 0 0; }
.access-request select { max-width:180px; }
.google-feedback { margin: -3px 0 14px; color: var(--danger); font-size: .84rem; font-weight: 600; line-height: 1.45; }
.google-feedback:empty { display: none; }
.waiting-layout { display:grid; grid-template-columns: 1fr 1fr; gap:clamp(28px,6vw,80px); align-items:start; padding:clamp(44px,7vw,88px) 0; }
.waiting-card h2 { font-size:2rem; }
.waiting-card > p { color:var(--muted); line-height:1.6; }
.waiting-details { margin:24px 0; border-top:1px solid var(--line); }
.waiting-details > div { display:flex; justify-content:space-between; gap:16px; padding:12px 0; border-bottom:1px solid var(--line); }
.waiting-details dt { color:var(--muted); font-size:.85rem; }
.waiting-details dd { margin:0; font-size:.85rem; font-weight:700; text-align:right; overflow-wrap:anywhere; }
@media (max-width: 760px) { .waiting-layout { grid-template-columns:1fr; } }
.owner-moderation { margin: 24px 0; }
.owner-moderation h2 { font-size:2rem; }
.owner-moderation details, .event-settings-content .access-group { margin-top:18px; }
.access-group h4, .access-invite h4 { margin:18px 0 8px; color:var(--brand-dark); }
.access-invite { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:20px; }
.access-invite h4, .access-invite p { flex-basis:100%; margin-bottom:0; }
.access-invite input { flex:1 1 220px; }
.access-invite select { width:auto; min-width:160px; }
.moderator-activity { padding:14px 16px; margin:14px 0; border:1px solid var(--line); border-radius:12px; background:var(--surface-soft); }
.moderator-activity-list { padding-left:20px; color:var(--muted); font-size:.85rem; line-height:1.6; }
.pill--pending { background:#fbf1e8; color:#805843; }
.event-drive small, #driveExport small { display: block; margin-top: 8px; }

/* Privacy and terms */
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 22px; }
.upload-legal { margin: 18px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.upload-legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.legal-layout { width: min(100%, 790px); margin: 0 auto; padding-top: clamp(38px, 6vw, 76px); }
.legal-header { padding-bottom: 34px; border-bottom: 1px solid rgba(54,93,77,.16); }
.legal-header h1 { max-width: 800px; margin: 12px 0 20px; font-size: clamp(2.8rem, 5.6vw, 4.5rem); }
.legal-header .lead { max-width: 680px; }
.legal-date { margin: 24px 0 0; color: var(--muted); font-size: .8rem; }
.legal-content { padding-top: 12px; color: var(--ink); }
.legal-content section { padding: 30px 0; border-bottom: 1px solid rgba(54,93,77,.1); }
.legal-content h2 { margin: 0 0 15px; font-size: clamp(1.35rem, 2vw, 1.65rem); }
.legal-content p, .legal-content li { font-size: .95rem; line-height: 1.8; }
.legal-content p + p { margin-top: 14px; }
.legal-content ul { padding-left: 22px; }
.legal-content li + li { margin-top: 10px; }
.legal-content a { color: var(--brand); overflow-wrap: anywhere; text-underline-offset: 3px; }
.legal-content code { font-size: .9em; overflow-wrap: anywhere; }
.legal-contact { margin-top: 38px; padding: clamp(24px, 4vw, 38px); border-radius: 18px; background: var(--surface-soft); }
.legal-contact h2 { margin: 8px 0; font-size: 1.9rem; }
.legal-contact p { margin-bottom: 20px; }
@media (max-width: 600px) { .site-footer { align-items: flex-start; flex-direction: column; } .footer-links { justify-content: flex-start; } }
.recovery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 16px; }
.recovery-card { display: flex; flex-direction: column; gap: 9px; padding: 10px; border: 1px solid #dce5dc; border-radius: 12px; background: #fff; }
.recovery-card img, .recovery-card video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 7px; background: #e9efea; }
.recovery-card small { font-size: .75rem; }
.recovery-card .button { justify-content: center; }
.drive-history { margin-top: 16px; border-top: 1px solid #dce5dc; padding-top: 12px; }
.drive-history summary { cursor: pointer; color: var(--brand-dark); font-size: .86rem; font-weight: 700; }
.drive-history-list { display: grid; gap: 10px; padding-top: 10px; }
.drive-history-item { display: flex; flex-wrap: wrap; gap: 5px 12px; padding: 10px 0; border-top: 1px solid #e6ece6; font-size: .8rem; }
.drive-history-item span { flex: 1 1 200px; }
.drive-history-item small { flex-basis: 100%; color: var(--muted); }
.drive-history-item a { color: var(--brand); font-weight: 700; }
.event-drive > button + button, #driveExport > button + button { margin-left: 8px; }

/* ===== Redesign 2026-11: bastidores (admin, nubentes, moderação) ===== */
:root {
  --paper: #f2f1ee;
  --surface: #ffffff;
  --surface-soft: #e9e7e2;
  --ink: #121212;
  --muted: #5e5c57;
  --line: #d9d6d0;
  --brand: #121212;
  --brand-dark: #121212;
  --accent: #c4361c;
  --accent-soft: #f6e3de;
  --success: #2e6b4a;
  --danger: #c4361c;
  --shadow: none;
  --serif: Geist, ui-sans-serif, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
  --sans: Geist, ui-sans-serif, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
body::before { content: none; }
::selection { background: #f6e3de; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.site-header { min-height: 64px; border-bottom: 1px solid var(--line); }
.brand { gap: 0; color: var(--ink); font: 700 1.05rem/1 var(--sans); letter-spacing: -.02em; }
.brand-mark { display: none; }
.site-nav a { color: var(--muted); font-weight: 500; font-size: .9rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.eyebrow { color: var(--muted); font: 500 .72rem/1.3 var(--mono); letter-spacing: .06em; }
.display-title, h1, h2, h3 { font-family: var(--sans); font-weight: 700; letter-spacing: -.04em; line-height: 1.02; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.2rem; letter-spacing: -.02em; }
.panel { border: 1px solid var(--line); border-radius: 6px; box-shadow: none; }
.button { min-height: 44px; border-radius: 4px; border-color: var(--ink); background: var(--ink); font-size: .9rem; font-weight: 600; }
.button:hover { background: #000; border-color: #000; box-shadow: none; transform: none; }
.button--light { background: var(--surface); border-color: var(--line); color: var(--ink); }
.button--light:hover { background: var(--paper); border-color: #b9b6af; }
.button--text { color: var(--ink); }
.button--danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.button--danger:hover { background: var(--accent-soft); border-color: var(--danger); }
.field label, label.field { color: var(--ink); font-weight: 500; }
.input { min-height: 44px; border-radius: 4px; border-color: var(--line); }
.input:hover { border-color: #b9b6af; }
.input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(18, 18, 18, .08); }
.input[type=file]::file-selector-button { border-radius: 4px; color: var(--ink); }
.pill { border-radius: 4px; font-family: var(--mono); letter-spacing: .04em; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); }

/* ===== Páginas dos convidados ===== */
body.g-page {
  --g-bg: var(--event-primary, #365d4d);
  --g-fg: var(--event-secondary, #fff8f1);
  --g-accent: var(--event-accent, #b77961);
  --g-on-accent: var(--event-on-accent, #1d1d1b);
  --g-accent-text: var(--event-accent-text, #fff8f1);
  --g-names: var(--event-name-font, 'Bricolage Grotesque', Figtree, sans-serif);
  --g-heading: var(--event-heading-font, 'Bricolage Grotesque', Figtree, sans-serif);
  --g-body: var(--event-body-font, Figtree, ui-sans-serif, sans-serif);
  min-height: 100vh; background: var(--g-bg); color: var(--g-fg); font-family: var(--g-body);
}
body.g-page a { color: inherit; }
body.g-page :focus-visible { outline: 3px solid var(--g-fg); outline-offset: 3px; }
.g-shell { width: min(100% - 32px, 520px); min-height: 100vh; margin-inline: auto; display: flex; flex-direction: column; }
.g-brand { margin: 0; padding: 18px 0 0; text-align: center; font: 700 .85rem/1 'Bricolage Grotesque', sans-serif; opacity: .7; text-decoration: none; }
.g-hero { padding-top: 26px; text-align: center; }
.g-names { margin: 0; font-family: var(--g-names); font-weight: 800; font-size: clamp(2.7rem, 13vw, 4.2rem); line-height: .92; letter-spacing: -.03em; overflow-wrap: anywhere; }
.g-amp { color: var(--g-accent-text); }
.g-tagline { margin: 12px 0 0; font-size: 1.15rem; font-weight: 500; }
.g-polaroids { position: relative; height: clamp(250px, 78vw, 330px); margin: 22px auto 0; width: 100%; max-width: 380px; }
.g-polaroid { position: absolute; top: 14px; width: 56%; margin: 0; padding: 10px 10px 30px; background: #fff; box-shadow: 0 14px 34px rgba(0, 0, 0, .28); }
.g-polaroid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: #d8d2c8; }
.g-polaroid:first-child { left: 4%; top: 36px; transform: rotate(-6deg); }
.g-polaroid:nth-child(2) { right: 4%; transform: rotate(5deg); }
.g-polaroid:only-child { left: 50%; right: auto; width: 62%; transform: translateX(-50%) rotate(-3deg); }
.g-actions { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.g-cta { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 64px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--g-accent); color: var(--g-on-accent); font: 700 1.2rem/1.1 var(--g-heading); text-decoration: none; cursor: pointer; box-shadow: 0 6px 0 rgba(0, 0, 0, .2); transition: transform .15s, box-shadow .15s; }
.g-cta:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0, 0, 0, .2); }
.g-cta svg { width: 24px; height: 24px; flex: none; }
.g-cta input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.g-cta:focus-within { outline: 3px solid var(--g-fg); outline-offset: 3px; }
.g-cta.is-disabled { opacity: .45; box-shadow: none; cursor: not-allowed; }
.g-cta.is-disabled input { cursor: not-allowed; }
.g-cta.is-dragging { transform: scale(1.02); }
.g-note { margin: 0; text-align: center; font-size: .98rem; line-height: 1.45; opacity: .92; }
.g-closed { margin: 0; padding: 14px 18px; border-radius: 18px; background: color-mix(in srgb, var(--g-fg) 12%, transparent); text-align: center; font-weight: 600; }
.g-shots { margin-top: 32px; padding: 18px 14px; border-radius: 22px; background: color-mix(in srgb, var(--g-fg) 9%, transparent); }
.g-shots-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 12px; }
.g-shots h2 { margin: 0; font: 700 1.25rem/1.1 var(--g-heading); letter-spacing: -.01em; }
.g-summary { margin: 0; font-size: .92rem; font-weight: 600; }
.g-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.g-shot { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 14px; background: color-mix(in srgb, var(--g-fg) 16%, transparent); }
.g-shot img, .g-shot video { display: block; width: 100%; height: 100%; object-fit: cover; }
.g-chip { position: absolute; left: 6px; right: 6px; bottom: 6px; padding: 4px 6px; border-radius: 999px; background: #fff; color: #1d1d1b; font: 700 .72rem/1.2 var(--g-body); text-align: center; }
.g-shot.done .g-chip { background: var(--g-accent); color: var(--g-on-accent); }
.g-shot.error img, .g-shot.error video { opacity: .4; }
.g-shot.busy .g-chip { animation: g-pulse 1.4s ease-in-out infinite; }
@keyframes g-pulse { 50% { opacity: .65; } }
.g-foot { margin-top: auto; padding: 32px 0 22px; display: flex; justify-content: center; gap: 18px; font-size: .85rem; }
.g-foot a { opacity: .85; }
@media (prefers-reduced-motion: reduce) { .g-shot.busy .g-chip { animation: none; } .g-cta { transition: none; } }

/* QR */
.g-qr .g-shell { width: min(100% - 32px, 720px); align-items: center; text-align: center; }
.g-qr-title { margin: 44px 0 0; font: 800 clamp(2.6rem, 9vw, 4.8rem)/.92 var(--g-heading); letter-spacing: -.035em; }
.g-qr-title span { color: var(--g-accent-text); }
.g-qr-card { margin: 44px 0 0; padding: 20px 20px 16px; background: #fff; color: #1d1d1b; box-shadow: 0 18px 40px rgba(0, 0, 0, .28); transform: rotate(-3deg); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.g-qr-code { width: min(70vw, 300px); aspect-ratio: 1; display: grid; place-items: center; font-size: .9rem; }
.g-qr-code canvas { display: block; width: 100% !important; height: auto !important; }
.g-qr-card p { margin: 0; font: 700 1.2rem/1.1 var(--g-heading); }
.g-qr-lead { margin: 40px 0 0; max-width: 460px; font-size: 1.15rem; line-height: 1.45; }
.g-qr-bottom { margin-top: auto; padding: 40px 0 24px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.g-qr-names { margin: 0; font: 700 clamp(1.5rem, 5vw, 2rem)/1.05 var(--g-names); letter-spacing: -.02em; }
.g-qr-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.g-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 2px solid var(--g-fg); border-radius: 999px; background: transparent; color: var(--g-fg); font: 700 1rem/1 var(--g-body); text-decoration: none; cursor: pointer; }
.g-pill--solid { background: var(--g-fg); color: var(--g-bg); }
.g-pill svg { width: 18px; height: 18px; }
.g-qr-status { margin: 0; font-size: .9rem; opacity: .85; }
.g-qr-status:empty { display: none; }
.g-print-only { display: none; }
@media print {
  @page { size: A4; margin: 14mm; }
  body.g-page.g-qr { background: #fff !important; color: #000 !important; }
  .g-qr .g-shell { min-height: auto; width: 100%; }
  .g-qr .g-brand, .g-qr-buttons, .g-qr-status, .g-qr .g-foot { display: none !important; }
  .g-qr-title { margin-top: 0; font-size: 46pt; }
  .g-qr-title span, .g-amp { color: #000 !important; }
  .g-qr-card { margin-top: 12mm; box-shadow: none; border: 3px solid #000; transform: rotate(-2deg); }
  .g-qr-code { width: 85mm; }
  .g-qr-lead { margin-top: 10mm; font-size: 14pt; }
  .g-qr-bottom { padding: 10mm 0 0; margin-top: 10mm; width: 100%; border-top: 2px dashed #000; }
  .g-print-only { display: block; margin: 0; font-size: 11pt; }
}

/* Telão */
body.g-display { overflow: hidden; }
.tv { display: grid; grid-template-columns: minmax(0, 1fr) clamp(190px, calc(100vw - 150vh), 30vw); height: 100vh; height: 100dvh; overflow: hidden; }
.g-display .display-stage-wrap { height: 100%; min-height: 0; padding: 0; overflow: hidden; }
.g-display .display-stage-wrap::before { inset: 0; z-index: 2; }
.g-display .display-ornament { z-index: 3; }
.g-display .display-ornament--top-left, .g-display .display-ornament--top-right { top: 0; }
.g-display .display-ornament--bottom-left, .g-display .display-ornament--bottom-right { bottom: 0; }
.g-display .display-stage { position: absolute; inset: 0; max-width: none; display: grid; place-items: center; overflow: hidden; }
.g-display .display-stage img.frame, .g-display .display-stage video.frame { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; border-radius: 0; box-shadow: none; }
.tv-backdrop { position: absolute; inset: -60px; z-index: 0; background-size: cover; background-position: center; filter: blur(48px) brightness(.55) saturate(1.1); }
.g-display .display-empty { padding: 6vh 6vw; text-align: center; }
.g-display .display-empty h2 { margin: 0 0 1vh; font: 800 clamp(2rem, 6vh, 4.5rem)/1 var(--g-heading); letter-spacing: -.03em; }
.g-display .display-empty p { margin: 0; font-size: clamp(1rem, 2.4vh, 1.6rem); opacity: .85; }
.tv-side { display: flex; flex-direction: column; gap: 1.6vh; min-height: 0; padding: 2.6vh 1.2vw 2.4vh; }
.tv-names { margin: 0; text-align: center; font: 800 clamp(1.3rem, 3.4vh, 2.8rem)/.95 var(--g-names); letter-spacing: -.02em; overflow-wrap: anywhere; }
.tv-next-label { margin: .4vh 0 0; color: var(--g-accent-text); font: 700 clamp(.85rem, 1.8vh, 1.3rem)/1 var(--g-heading); }
.tv-next { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 1.1vh; margin: 0; padding: 0; list-style: none; }
.tv-next li { position: relative; flex: 1 1 0; min-height: 0; overflow: hidden; border-radius: 10px; background: color-mix(in srgb, var(--g-fg) 12%, transparent); transition: opacity .4s; }
.tv-next li:nth-child(2) { opacity: .85; }
.tv-next li:nth-child(3) { opacity: .7; }
.tv-next li:nth-child(n+4) { opacity: .55; }
.tv-next img, .tv-next video { display: block; width: 100%; height: 100%; object-fit: cover; }
.tv-next li.is-video::before { content: ""; position: absolute; left: 10px; bottom: 10px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0, 0, 0, .5); }
.tv-next li.is-video::after { content: ""; position: absolute; left: 20px; bottom: 17px; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent #fff; }
.tv-next li.is-arrival { animation: tv-pop 1.2s cubic-bezier(.2, .8, .2, 1); }
@keyframes tv-pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.04); opacity: 1; } 100% { transform: scale(1); } }
.tv-qr { display: flex; align-items: center; gap: .8vw; }
.tv-qr #qr { flex: none; padding: 6px; border-radius: 10px; background: #fff; line-height: 0; }
.tv-qr canvas { display: block; width: clamp(64px, 10vh, 130px) !important; height: auto !important; }
.tv-qr span { font: 700 clamp(1rem, 2.2vh, 1.7rem)/1.05 var(--g-heading); }
.tv-status { margin: 0; font-size: clamp(.75rem, 1.4vh, 1rem); text-align: center; opacity: .75; }
@media (max-aspect-ratio: 4/3) {
  .tv { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .tv-side { flex-direction: row; align-items: center; justify-content: space-between; padding: 1.6vh 3vw; }
  .tv-next-label, .tv-next { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tv-next li.is-arrival { animation: none; } }

/* ===== Painel do organizador (layout) ===== */
.bo-app { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0; margin-top: 8px; }
.bo-nav { flex: 1 1 200px; max-width: 100%; position: sticky; top: 16px; display: flex; flex-direction: column; gap: 4px; padding: 24px 20px 24px 0; }
.bo-nav .eyebrow { padding: 0 10px 10px; }
.bo-nav button { display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding: 0 12px; border: 0; border-radius: 4px; background: transparent; color: var(--ink); font: 500 .92rem var(--sans); text-align: left; }
.bo-nav button:hover { background: var(--surface-soft); }
.bo-nav button.is-active { background: var(--ink); color: var(--paper); }
.bo-count { font: 500 .75rem var(--mono); opacity: .7; }
.bo-nav .bo-nav-pending { margin-top: 10px; background: var(--accent-soft); color: var(--danger); font-weight: 600; }
.bo-nav .bo-nav-pending:hover { background: #f1d3cb; }
.bo-main { flex: 999 1 560px; min-width: 0; padding: 24px 0 64px; border-left: 1px solid var(--line); padding-left: clamp(16px, 3vw, 40px); }
.bo-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.bo-head h1 { margin: 6px 0 0; }
.bo-table-wrap { overflow-x: auto; border-top: 1px solid var(--ink); }
.bo-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: .92rem; }
.bo-table th { padding: 12px 10px; color: var(--muted); font: 500 .72rem var(--mono); letter-spacing: .05em; text-transform: uppercase; text-align: left; }
.bo-table td { padding: 12px 10px; border-top: 1px solid var(--line); vertical-align: middle; }
.bo-table .num { text-align: right; }
.bo-table .mono, .mono { font-family: var(--mono); font-size: .85rem; }
.bo-table tr.is-selected td { background: var(--surface); }
.bo-table tr.is-selected td:first-child { box-shadow: inset 3px 0 0 var(--ink); }
.bo-row-button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 44px; justify-content: center; padding: 0; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; }
.bo-row-button strong { font-weight: 600; }
.bo-row-button small { color: var(--muted); font-size: .82rem; }
.bo-row-button:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.bo-status { display: inline-flex; align-items: center; gap: 7px; font: 500 .75rem var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.bo-status i { width: 7px; height: 7px; border-radius: 50%; background: #9a968e; }
.bo-status.is-open { color: var(--ink); }
.bo-status.is-open i { background: var(--accent); }
.bo-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 3px; background: var(--danger); color: #fff; font: 500 .75rem var(--mono); }
.bo-badge[hidden] { display: none; }
.bo-detail { margin-top: 28px; padding: clamp(16px, 3vw, 32px); border: 1px solid var(--ink); border-radius: 6px; background: var(--surface); scroll-margin-top: 16px; }
.bo-detail-inner { display: flex; flex-direction: column; gap: 24px; }
.bo-detail-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; }
.bo-detail-head h2 { margin: 6px 0 10px; }
.bo-detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.bo-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bo-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.bo-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.bo-detail .bo-card { padding: 0; border: 0; }
.bo-card-title { margin: 0; color: var(--muted); font: 500 .72rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.bo-link-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.bo-link-label { width: 88px; flex: none; font-weight: 500; font-size: .9rem; }
.bo-link-url { flex: 1; min-width: 0; overflow: hidden; color: var(--muted); font: .78rem var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.button--small { min-height: 34px; padding: 0 10px; font-size: .82rem; }
.bo-disclosure { border-top: 1px solid var(--line); }
.bo-disclosure > summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 4px 0; cursor: pointer; font-weight: 600; list-style: none; }
.bo-disclosure > summary::-webkit-details-marker { display: none; }
.bo-disclosure > summary::after { content: "+"; font: 400 1.3rem var(--mono); color: var(--muted); }
.bo-disclosure[open] > summary::after { content: "–"; }
.bo-detail .event-settings { margin: 0; padding: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; }
.bo-detail .event-settings-content { padding: 4px 0 16px; }
.bo-danger { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
#create.dashboard-card { margin-top: 24px; }
@media (max-width: 780px) {
  .bo-nav { position: static; flex-direction: row; flex-wrap: wrap; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .bo-nav .eyebrow { display: none; }
  .bo-nav .bo-nav-pending { margin-top: 0; }
  .bo-main { border-left: 0; padding-left: 0; }
}

/* ===== Estúdio dos nubentes (layout) ===== */
.studio { padding-bottom: 96px; }
.studio-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 32px 0 20px; }
.studio-head h1 { margin: 6px 0 0; }
.studio-links { display: flex; flex-wrap: wrap; gap: 8px; }
.studio-links .button { min-height: 38px; padding: 0 12px; font-size: .85rem; }
.studio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.studio-cards .owner-moderation { margin: 0; }
.studio-body { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px; margin-top: 36px; }
.studio-form { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.studio-step { margin: 0; padding: 0; border: 0; min-width: 0; }
.studio-step legend { display: flex; align-items: baseline; gap: 10px; width: 100%; margin-bottom: 16px; padding: 0 0 12px; border-bottom: 1px solid var(--ink); font-size: 1.15rem; font-weight: 600; letter-spacing: -.02em; }
.studio-step legend span { color: var(--accent); font: 500 .78rem var(--mono); }
.form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.studio-step .theme-preview { margin-top: 16px; }
.studio-preview.preview-studio { flex: 1 1 440px; min-width: 0; position: sticky; top: 16px; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-soft); }
.studio-preview .preview-studio-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.studio-save { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 12px max(16px, calc((100vw - 1180px) / 2)); background: var(--ink); color: var(--paper); font-size: .9rem; }
.studio-save .button { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.studio-save .button:hover { background: #fff; border-color: #fff; }
@media (max-width: 640px) { .form-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .studio-preview.preview-studio { position: static; } }
.preview-tabs, .preview-devices { gap: 0; padding: 0; border: 1px solid var(--ink); border-radius: 4px; background: transparent; overflow: hidden; }
.preview-tabs button, .preview-devices button { min-height: 34px; padding: 0 12px; border-radius: 0; color: var(--ink); font-size: .8rem; font-weight: 500; }
.preview-tabs button.is-active, .preview-devices button.is-active { background: var(--ink); color: var(--paper); box-shadow: none; }
.bo-detail details.bo-disclosure > summary, .studio details.bo-disclosure > summary { padding: 4px 0; color: var(--ink); font: 600 1rem/1.3 var(--sans); letter-spacing: -.01em; text-transform: none; }

/* ===== Mini-prévias das telas dos convidados ===== */
.pv { position: relative; overflow: hidden; box-sizing: border-box; border-radius: 8px; background: var(--preview-primary); color: var(--preview-secondary); font: 11px/1.4 var(--preview-body); }
.interface-preview[data-device="desktop"] .pv { min-width: 520px; aspect-ratio: 16 / 10; }
.interface-preview[data-device="mobile"] .pv { width: min(100%, 290px); aspect-ratio: 9 / 18; border: 6px solid #121212; border-radius: 26px; }
.interface-preview .pv.pv--display { width: 100%; min-width: 520px; aspect-ratio: 16 / 9; border: 0; border-radius: 4px; }
.pv p { margin: 0; }
.pv--upload, .pv--qr { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; text-align: center; }
.pv-brand { font: 700 9px 'Bricolage Grotesque', sans-serif; opacity: .7; }
.pv-names { font: 800 30px/.92 var(--preview-name); letter-spacing: -.02em; }
.pv-amp { color: var(--preview-accent-text); }
.pv-tagline { font-weight: 500; }
.pv-polaroid { width: 120px; padding: 5px 5px 16px; background: #fff; box-shadow: 0 8px 18px rgba(0, 0, 0, .28); transform: rotate(-4deg); }
.pv-photo { aspect-ratio: 1; background: color-mix(in srgb, var(--preview-secondary) 30%, var(--preview-primary)) center / cover no-repeat; }
.pv-cta { display: block; width: min(100%, 240px); padding: 10px 14px; border-radius: 999px; background: var(--preview-accent); color: var(--preview-on-accent); font: 700 13px/1.1 var(--preview-heading); box-shadow: 0 4px 0 rgba(0, 0, 0, .2); }
.pv-note { max-width: 230px; font-size: 10px; opacity: .9; }
.pv-qr-title { font: 800 26px/.95 var(--preview-heading); letter-spacing: -.02em; }
.pv-qr-title span { display: block; color: var(--preview-accent-text); }
.pv-qr-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 10px 8px; background: #fff; color: #1d1d1b; box-shadow: 0 8px 18px rgba(0, 0, 0, .28); transform: rotate(-3deg); font: 700 10px var(--preview-heading); }
.pv-qr-code { width: 110px; aspect-ratio: 1; background: repeating-linear-gradient(90deg, #111 0 6px, transparent 6px 10px), repeating-linear-gradient(0deg, #111 0 5px, transparent 5px 11px); }
.pv-qr-names { font: 700 15px var(--preview-name); }
.pv--display { display: grid; grid-template-columns: minmax(0, 1fr) 19%; }
.pv .pv-stage { position: relative; width: 100%; height: 100%; margin: 0; border-radius: 0; overflow: hidden; display: grid; place-items: center; }
.pv-backdrop { position: absolute; inset: -20px; background: center / cover no-repeat; filter: blur(18px) brightness(.55); }
.pv-stage-photo { position: absolute; inset: 0; z-index: 1; background: center / contain no-repeat; }
.pv-empty { padding: 0 16px; font: 800 18px/1 var(--preview-heading); text-align: center; }
.pv-side { display: flex; flex-direction: column; gap: 6px; min-height: 0; padding: 10px 7px; }
.pv-side-names { text-align: center; font: 800 12px/.95 var(--preview-name); }
.pv-next-label { color: var(--preview-accent-text); font: 700 8px var(--preview-heading); }
.pv-next { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 5px; }
.pv-next i { flex: 1; border-radius: 4px; background: color-mix(in srgb, var(--preview-secondary) 16%, transparent) center / cover no-repeat; }
.pv-next i:nth-child(2) { opacity: .8; }
.pv-next i:nth-child(3) { opacity: .6; }
.pv-side-qr { display: flex; align-items: center; gap: 5px; font: 700 8px/1.05 var(--preview-heading); }
.pv-side-qr b { width: 26px; height: 26px; flex: none; border-radius: 3px; background: #fff repeating-linear-gradient(90deg, #111 0 3px, transparent 3px 5px); }
.studio-cards .bo-card-title, .studio-cards h2.bo-card-title { margin: 0; color: var(--muted); font: 500 .72rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.studio .checkbox-line { flex-direction: row; align-items: center; gap: 10px; align-self: end; min-height: 44px; }
