[hidden]{display:none!important}
:root{
  --page:#f5f5f7;--surface:rgba(255,255,255,.88);--surfaceSolid:#fff;--text:#171719;--muted:#6e6e73;
  --line:rgba(30,30,35,.09);--accent:#e9003e;--accentSoft:#fff0f4;--eventBg:#fff;--serif:"Playfair Display",Georgia,serif;
  --headingFont:var(--serif);--bodyFont:"DM Sans",-apple-system,BlinkMacSystemFont,"SF Pro Text",sans-serif;
  --shadow:0 28px 90px rgba(30,30,35,.10),0 2px 12px rgba(30,30,35,.04)
}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:var(--bodyFont);background:var(--page);color:var(--text);-webkit-font-smoothing:antialiased}
body{min-height:100vh;background:radial-gradient(circle at 50% -20%,color-mix(in srgb,var(--accent) 9%,transparent),transparent 38%),var(--page)}
.page{min-height:100vh;display:grid;place-items:center;padding:24px 16px;position:relative}.shell{position:relative;overflow:hidden;width:min(100%,590px);min-height:720px;background:var(--surface);backdrop-filter:blur(28px);-webkit-backdrop-filter:blur(28px);border:1px solid rgba(255,255,255,.8);border-radius:36px;box-shadow:var(--shadow);padding:24px;display:flex;flex-direction:column;isolation:isolate}
.shell:before{content:"";position:absolute;inset:0 0 auto;height:180px;background:linear-gradient(180deg,color-mix(in srgb,var(--eventBg) 92%,white),transparent);pointer-events:none;z-index:-1}
.brandbar{position:relative;z-index:2;display:flex;align-items:center;gap:10px}.brandmark{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#161617;color:#fff;font-weight:700;box-shadow:0 5px 18px rgba(0,0,0,.12)}.brandcopy{display:flex;flex-direction:column;line-height:1.15}.brandcopy strong{font-size:13px;letter-spacing:-.1px}.brandcopy span{font-size:10px;color:var(--muted);margin-top:3px}
.hero{position:relative;z-index:2;padding:62px 8px 28px}.eyebrow{display:block;color:var(--accent);font-size:10px;letter-spacing:2.8px;font-weight:700;margin-bottom:15px}h1{margin:0;font-size:clamp(47px,12vw,70px);line-height:.94;letter-spacing:-3.3px;font-weight:600}h1 em{font-family:var(--headingFont);font-weight:500;font-style:normal;color:var(--accent);letter-spacing:-1.2px}.event-name{font-size:17px;font-weight:600;margin:22px 0 0;letter-spacing:-.25px}.lead{color:var(--muted);line-height:1.55;margin:9px 0 0;max-width:430px;font-size:14px}
.search-card{position:relative;z-index:2;background:rgba(255,255,255,.92);border:1px solid rgba(255,255,255,.75);border-radius:24px;padding:10px;box-shadow:0 12px 32px rgba(20,20,30,.06);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}.search-wrap{height:58px;display:flex;align-items:center;gap:12px;padding:0 14px;border-radius:17px;background:rgba(247,247,248,.92);border:1px solid transparent;transition:.22s ease}.search-wrap:focus-within{background:#fff;border-color:color-mix(in srgb,var(--accent) 34%,#ddd);box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 9%,transparent)}.search-wrap svg{width:20px;fill:none;stroke:currentColor;stroke-width:1.8;color:#8b8b91}.search-wrap input{width:100%;border:0;outline:0;background:transparent;font:inherit;font-size:17px;color:var(--text)}.search-wrap input::placeholder{color:#aaaab0}.hint{min-height:23px;padding:9px 4px 0;text-align:center;color:#8f8f95;font-size:11px}
.results{position:relative;z-index:2;display:grid;gap:10px;margin-top:14px}.result{display:flex;align-items:center;gap:14px;background:rgba(255,255,255,.93);border:1px solid rgba(255,255,255,.78);border-radius:22px;padding:17px 17px 16px;box-shadow:0 8px 24px rgba(20,20,30,.05);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);animation:rise .25s cubic-bezier(.2,.8,.2,1)}.result-main{flex:1;min-width:0}.guest-name{font-size:17px;font-weight:700;letter-spacing:-.2px;line-height:1.25}.result-label{margin-top:5px;color:var(--muted);font-size:9px;font-weight:700;letter-spacing:1.25px}.table-wrap{flex:none;text-align:center}.table-wrap>span{display:block;margin-bottom:5px;color:var(--muted);font-size:8px;font-weight:700;letter-spacing:1.1px}.table{min-width:82px;text-align:center;border-radius:14px;padding:11px 12px;background:var(--accentSoft);color:var(--accent);font-size:12px;font-weight:700;letter-spacing:.2px}.empty{position:relative;z-index:2;padding:28px 12px;text-align:center;color:var(--muted);font-size:13px;line-height:1.5;background:rgba(255,255,255,.74);border-radius:20px;backdrop-filter:blur(16px)}
.loading-state,.state-card{position:relative;z-index:2;margin:auto;text-align:center;color:var(--muted)}.loading-state{display:flex;align-items:center;justify-content:center;gap:11px;font-size:13px}.spinner{width:19px;height:19px;border:2px solid #ddd;border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}.state-card{padding:70px 28px}.state-icon{display:grid;place-items:center;width:52px;height:52px;margin:0 auto 16px;border-radius:17px;background:var(--accentSoft);color:var(--accent);font-weight:700}.state-card h2{margin:0;font-size:24px;letter-spacing:-.7px;color:var(--text)}.state-card p{max-width:360px;margin:10px auto 0;line-height:1.55;font-size:14px}
footer{position:relative;z-index:2;margin-top:auto;padding-top:34px;text-align:center;color:#77777e;font-size:10px}footer strong{color:var(--text)}
body.theme-modern{--page:#0f1014;--surface:rgba(25,26,31,.92);--surfaceSolid:#1c1d22;--text:#fff;--muted:#aaaab2;--line:rgba(255,255,255,.08);--accent:#ff375f;--accentSoft:#351822;--eventBg:#18191e}.theme-modern .search-wrap{background:#24252b}.theme-modern .search-wrap:focus-within{background:#292a30}.theme-modern footer strong{color:#fff}
body.theme-botanical{--page:#edf2ed;--surface:rgba(250,252,249,.90);--surfaceSolid:#fbfcfa;--text:#2e4d3d;--muted:#738077;--line:rgba(61,92,72,.11);--accent:#567762;--accentSoft:#e8efe9;--eventBg:#eef4ed}
body.theme-night{--page:#0b0c10;--surface:rgba(20,21,25,.94);--surfaceSolid:#17181d;--text:#fff;--muted:#aaaab1;--line:rgba(255,255,255,.08);--accent:#d2b57a;--accentSoft:#292318;--eventBg:#141519}.theme-night .search-wrap{background:#222329}.theme-night footer strong{color:var(--accent)}
body.invitation-style{--page:color-mix(in srgb,var(--eventBg) 76%,#f5f5f7);--accentSoft:color-mix(in srgb,var(--accent) 12%,#fff)}

/* SmartInvitation inheritance: same actual assets as the selected invitation. */
body.smart-invitation-style{background-color:var(--eventBg);background-image:var(--invitationBackground);background-size:cover;background-position:center top;background-attachment:fixed}
body.smart-invitation-style .page:before{content:"";position:fixed;inset:0;background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,.23));pointer-events:none}
body.smart-invitation-style .shell{background:rgba(255,255,255,.74);border-color:rgba(255,255,255,.72);box-shadow:0 32px 100px rgba(30,24,20,.17);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
body.smart-invitation-style .shell:before{inset:0;height:100%;background-image:linear-gradient(180deg,rgba(255,255,255,.20),rgba(255,255,255,.54) 48%,rgba(255,255,255,.68)),var(--invitationBackground);background-size:cover;background-position:center top;opacity:.68;z-index:-2}
body.smart-invitation-style .shell:after{content:"";position:absolute;right:-32px;top:22px;width:210px;height:210px;background-image:var(--invitationHero);background-size:contain;background-position:center;background-repeat:no-repeat;opacity:.13;pointer-events:none;z-index:-1;mix-blend-mode:multiply}
body.smart-invitation-style .brandmark{background:color-mix(in srgb,var(--text) 88%,#111);color:#fff}
body.smart-invitation-style h1{font-size:clamp(43px,11vw,64px);letter-spacing:-2px}
body.smart-invitation-style h1 em{font-family:var(--headingFont);font-weight:500}
body.smart-invitation-style .search-card,body.smart-invitation-style .result{border-color:rgba(255,255,255,.76)}
body.smart-invitation-style footer:before{content:"";display:block;width:150px;height:54px;margin:0 auto 10px;background-image:var(--invitationFooter),var(--invitationSeparator);background-repeat:no-repeat;background-size:contain;background-position:center;opacity:.42;pointer-events:none}
body.smart-invitation-style[data-invitation-template="marble_flower"] .shell:after{opacity:.09;mix-blend-mode:normal}
body.smart-invitation-style[data-invitation-template="beautiful_minimalist"] .shell:after{opacity:.10;right:-50px}
body.smart-invitation-style[data-invitation-template="line_couple"] .shell:after{opacity:.12;mix-blend-mode:normal}

@keyframes rise{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:620px){.page{padding:0}.shell{border:0;border-radius:0;min-height:100vh;padding:20px;box-shadow:none}.hero{padding-top:54px}h1{letter-spacing:-2.2px}.result{align-items:center}.table{margin-top:0}body.smart-invitation-style .shell{background:rgba(255,255,255,.68)}body.smart-invitation-style .shell:after{width:160px;height:160px;right:-35px;top:28px;opacity:.10}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}.result,.spinner{animation:none}}

/* FIX5 — high-contrast SmartInvitation seating layout */
body.smart-invitation-style{
  --text:#252225;
  --muted:#696469;
}
body.smart-invitation-style .page:before{
  background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.16));
}
body.smart-invitation-style .shell{
  background:rgba(255,255,255,.82);
  border-color:rgba(255,255,255,.86);
  box-shadow:0 32px 100px rgba(30,24,20,.15);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
body.smart-invitation-style .shell:before{
  background-image:linear-gradient(180deg,rgba(255,255,255,.48),rgba(255,255,255,.68) 46%,rgba(255,255,255,.80)),var(--invitationBackground);
  opacity:.72;
}
body.smart-invitation-style .brandcopy strong,
body.smart-invitation-style .event-name,
body.smart-invitation-style h1,
body.smart-invitation-style .guest-name,
body.smart-invitation-style footer strong{
  color:var(--text);
  text-shadow:none;
}
body.smart-invitation-style .brandcopy span,
body.smart-invitation-style .lead,
body.smart-invitation-style .hint,
body.smart-invitation-style footer,
body.smart-invitation-style .result-label,
body.smart-invitation-style .table-wrap>span{
  color:var(--muted);
}
body.smart-invitation-style .eyebrow,
body.smart-invitation-style h1 em{
  color:var(--accent);
}
body.smart-invitation-style .search-card,
body.smart-invitation-style .result,
body.smart-invitation-style .empty{
  background:rgba(255,255,255,.95);
  border-color:rgba(255,255,255,.95);
}
body.smart-invitation-style .search-wrap{
  background:#f2f2f4;
}
body.smart-invitation-style .search-wrap input{
  color:#242428;
}
body.smart-invitation-style .search-wrap input::placeholder{
  color:#77777f;
}
body.smart-invitation-style .search-wrap svg{
  color:#6f7078;
}
body.smart-invitation-style .loading-state,
body.smart-invitation-style .state-card{
  color:#625f63;
}

@media(max-width:620px){
  body.smart-invitation-style .shell{
    background:rgba(255,255,255,.78);
  }
  body.smart-invitation-style .shell:before{
    background-image:linear-gradient(180deg,rgba(255,255,255,.42),rgba(255,255,255,.66) 48%,rgba(255,255,255,.76)),var(--invitationBackground);
    opacity:.78;
  }
  body.smart-invitation-style .hero{
    padding-top:52px;
  }
  body.smart-invitation-style .lead{
    color:#5f5b60;
  }
}

/* FIX7: keep Smart Invitation search field light while typing/focused.
   This intentionally overrides dark theme focus rules on mobile Safari/Chrome. */
body.smart-invitation-style .search-wrap,
body.smart-invitation-style .search-wrap:focus-within,
body.smart-invitation-style.theme-modern .search-wrap,
body.smart-invitation-style.theme-modern .search-wrap:focus-within,
body.smart-invitation-style.theme-night .search-wrap,
body.smart-invitation-style.theme-night .search-wrap:focus-within {
  background:#f2f2f4 !important;
  border-color:transparent;
}
body.smart-invitation-style .search-wrap:focus-within {
  border-color:color-mix(in srgb,var(--accent) 24%,#dedee2);
  box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 7%,transparent);
}
body.smart-invitation-style .search-wrap input,
body.smart-invitation-style .search-wrap input:focus {
  color:#242428 !important;
  -webkit-text-fill-color:#242428 !important;
  caret-color:var(--accent);
  background:transparent !important;
}
body.smart-invitation-style .search-wrap input::placeholder {
  color:#8d8d94 !important;
  -webkit-text-fill-color:#8d8d94 !important;
  opacity:1;
}
body.smart-invitation-style .search-wrap input:-webkit-autofill,
body.smart-invitation-style .search-wrap input:-webkit-autofill:hover,
body.smart-invitation-style .search-wrap input:-webkit-autofill:focus {
  -webkit-text-fill-color:#242428 !important;
  -webkit-box-shadow:0 0 0 1000px #f2f2f4 inset !important;
  box-shadow:0 0 0 1000px #f2f2f4 inset !important;
}


/* FIX8: stable readable typography + real Eventify branding */
body.smart-invitation-style{
  --text:#20242b !important;
  --muted:#667085 !important;
  --accent:#f47a2a !important;
  --accentSoft:#fff2e8 !important;
}
.brandbar{gap:11px}
.brandmark{
  width:40px;
  height:40px;
  border-radius:0;
  background:transparent !important;
  box-shadow:none !important;
  overflow:visible;
}
.brandmark img{
  display:block;
  width:36px;
  height:36px;
  object-fit:contain;
}
.brandcopy{gap:2px;line-height:1}
.brandwordmark{
  display:block;
  width:88px;
  height:auto;
  object-fit:contain;
  object-position:left center;
}
.brandcopy span{
  margin-top:2px !important;
  color:#667085 !important;
  font-size:10px;
  font-weight:600;
  letter-spacing:.15px;
}
body.smart-invitation-style h1,
body.smart-invitation-style .event-name,
body.smart-invitation-style .guest-name,
body.smart-invitation-style .state-card h2,
body.smart-invitation-style footer strong{
  color:#20242b !important;
}
body.smart-invitation-style .lead,
body.smart-invitation-style .hint,
body.smart-invitation-style footer,
body.smart-invitation-style .result-label,
body.smart-invitation-style .table-wrap>span,
body.smart-invitation-style .loading-state,
body.smart-invitation-style .state-card p{
  color:#667085 !important;
}
body.smart-invitation-style .eyebrow,
body.smart-invitation-style h1 em,
body.smart-invitation-style .table{
  color:#f47a2a !important;
}
body.smart-invitation-style .table,
body.smart-invitation-style .state-icon{
  background:#fff2e8 !important;
}
body.smart-invitation-style .search-wrap:focus-within{
  border-color:rgba(244,122,42,.32) !important;
  box-shadow:0 0 0 4px rgba(244,122,42,.08) !important;
}
body.smart-invitation-style .search-wrap input,
body.smart-invitation-style .search-wrap input:focus{
  caret-color:#f47a2a !important;
}
@media(max-width:620px){
  .brandwordmark{width:84px}
  .brandmark{width:38px;height:38px}
  .brandmark img{width:34px;height:34px}
}


/* FIX10: SmartInvitation background + its real typography, without decorative overlays */
body.smart-invitation-style{
  --accent:#20242b !important;
  --accentSoft:rgba(32,36,43,.07) !important;
}
body.smart-invitation-style .shell:after,
body.smart-invitation-style footer:before{display:none !important;content:none !important;background-image:none !important;}
body.smart-invitation-style .shell:before{
  background-image:linear-gradient(180deg,rgba(255,255,255,.32),rgba(255,255,255,.58) 48%,rgba(255,255,255,.72)),var(--invitationBackground) !important;
  opacity:.86 !important;
}
/* Headings mirror the selected SmartInvitation's heading font. */
body.smart-invitation-style .hero h1,
body.smart-invitation-style .event-name,
body.smart-invitation-style .state-card h2{
  font-family:var(--headingFont), "Cormorant Garamond", serif !important;
}
body.smart-invitation-style .hero h1{
  font-weight:500 !important;
  letter-spacing:-.8px !important;
  line-height:.98 !important;
}
body.smart-invitation-style .hero h1 em{
  font-family:inherit !important;
  font-weight:inherit !important;
  color:#20242b !important;
}
body.smart-invitation-style .event-name{
  font-size:20px !important;
  font-weight:500 !important;
  letter-spacing:0 !important;
}
/* Functional copy follows the invitation's body font. */
body.smart-invitation-style .eyebrow,
body.smart-invitation-style .lead,
body.smart-invitation-style .search-wrap input,
body.smart-invitation-style .hint,
body.smart-invitation-style .guest-name,
body.smart-invitation-style .result-label,
body.smart-invitation-style .table-wrap,
body.smart-invitation-style .empty,
body.smart-invitation-style footer,
body.smart-invitation-style .brandcopy span{
  font-family:var(--bodyFont), "Montserrat", sans-serif !important;
}
body.smart-invitation-style .eyebrow{
  color:#4f5560 !important;
  font-weight:600 !important;
  letter-spacing:3.2px !important;
}
body.smart-invitation-style .guest-name{font-weight:600 !important;}
body.smart-invitation-style .table{color:#20242b !important;background:rgba(32,36,43,.07) !important;}
body.smart-invitation-style .search-wrap:focus-within{border-color:rgba(32,36,43,.20) !important;box-shadow:0 0 0 4px rgba(32,36,43,.05) !important;}
body.smart-invitation-style .search-wrap input,body.smart-invitation-style .search-wrap input:focus{caret-color:#20242b !important;}

/* Script invitation fonts need more breathing room than geometric fonts. */
body.smart-invitation-style[data-invitation-template="marble_flower"] .hero h1,
body.smart-invitation-style[data-invitation-template="ivory_rose"] .hero h1{
  font-size:clamp(54px,14vw,78px) !important;
  line-height:.92 !important;
  letter-spacing:0 !important;
}
body.smart-invitation-style[data-invitation-template="marble_flower"] .event-name,
body.smart-invitation-style[data-invitation-template="ivory_rose"] .event-name{
  font-size:25px !important;
}
body.smart-invitation-style[data-invitation-template="maslinove_grancice"] .hero h1,
body.smart-invitation-style[data-invitation-template="beautiful_minimalist"] .hero h1,
body.smart-invitation-style[data-invitation-template="line_couple"] .hero h1{
  text-transform:uppercase;
  font-size:clamp(38px,10vw,56px) !important;
  letter-spacing:2.5px !important;
  line-height:1.02 !important;
}
