/* PRIGLO421: concatenated in original HTML cascade order; regenerate when a source changes. */
/* source: /frontend/src/styles/priglo-v117-fixes.css */
/* PRIGLO 117 — focused fixes for mobile hero, event time, seal and gesture scrolling. */
@media (max-width:900px) {
  /* Bright Rhythm (birthday-pop): image flows directly into name, no 100svh filler. */
  .birthday-pop-v2 .bd-pop-hero {
    display:flex!important; flex-direction:column!important; align-items:stretch!important;
    justify-content:flex-start!important; height:auto!important; min-height:0!important;
    padding:clamp(12px,2.2svh,18px) 0 clamp(46px,7svh,65px)!important;
  }
  .birthday-pop-v2 .bd-pop-hero > .bd-pop-photo {
    position:relative!important; inset:auto!important; margin:0 16px 0 auto!important;
    width:min(calc(100% - 52px),480px)!important; height:clamp(230px,44svh,450px)!important;
    flex:none!important; border-radius:0 0 0 70px!important;
  }
  .birthday-pop-v2 .bd-pop-hero > .bd-pop-hero-copy {
    position:relative!important; align-self:stretch!important; min-height:0!important;
    padding:clamp(22px,4svh,32px) 22px 4px!important;
    margin:0!important; max-width:none!important;
  }
  .birthday-pop-v2 .bd-pop-hero .bd-pop-chevron {bottom:12px!important;}
}
/* Linen Page + Copper Rhythm: one date only, readable event start immediately after calendar. */
.ur-invite:is(.ur-linen,.ur-copper) .ur-calendar-footer {padding-top:clamp(19px,3.5svh,30px)!important;gap:10px!important;}
.ur-invite:is(.ur-linen,.ur-copper) .ur-calendar-footer > time {display:none!important;}
.ur-invite:is(.ur-linen,.ur-copper) .ur-calendar-footer > .ur-event-start,
.ur-invite:is(.ur-linen,.ur-copper) .ur-calendar-footer > span {
  display:inline-flex!important; align-items:center;justify-content:center;flex-wrap:wrap;
  gap:.25em;max-width:calc(100% - 20px);margin:0 auto!important;
  padding:12px 20px!important;border:1px solid var(--ur-line)!important;
  border-radius:999px!important;background:color-mix(in srgb,var(--ur-paper) 82%,transparent)!important;
  color:var(--ur-ink)!important;font:500 clamp(16px,4.3vw,20px)/1.35 'DM Sans','Noto Sans',sans-serif!important;
  letter-spacing:.01em!important;text-align:center;
}
.ur-invite:is(.ur-linen,.ur-copper) .ur-calendar-footer > span > strong {
  color:var(--ur-accent)!important;font-weight:750!important;font-size:clamp(21px,5.2vw,27px)!important;
  letter-spacing:.015em!important;font-variant-numeric:tabular-nums;
}
.ur-invite:is(.ur-linen,.ur-copper) .ur-calendar-actions {margin-top:6px!important;}
/* Ivory wax is now golden in the SVG. Bust the old green artwork cache. */
.ti-opening.ti-opening--ivory.ti-opening--ivory-cinema .ti-envelope__seal {
  background-image:url('/assets/decor/ivory-opening-seal.svg?v=117.2')!important;
}
/* The line drawing is transparent: the gold wax, not a colored disc, is its background. */
.ti-opening--ivory .ti-ivory-envelope-emblem {filter:drop-shadow(0 1px 2px rgba(83,53,10,.4));}
.ti-opening--ivory .ti-ivory-envelope-emblem__icon {
  fill:none!important;stroke:#65461d!important;stroke-width:4.2!important;
  stroke-linecap:round!important;stroke-linejoin:round!important;
  vector-effect:non-scaling-stroke; transform-box:fill-box;transform-origin:center;
}
.ti-opening--ivory:not(.ti-opening--active) .ti-ivory-envelope-emblem__icon {animation:priglo-envelope-invite 2.35s ease-in-out infinite;}
@keyframes priglo-envelope-invite {
  0%,100%{transform:rotate(-8deg) translateX(-2px)}
  20%{transform:rotate(8deg) translateX(2px)}
  40%{transform:rotate(-6deg) translateX(-1px)}
  55%,72%{transform:rotate(0) translateX(0)}
}
@media(prefers-reduced-motion:reduce){.ti-opening--ivory .ti-ivory-envelope-emblem__icon{animation:none!important;}}
/* The whole hero photo/text area must allow a natural vertical gesture. */
.ip-invite .ip-hero,.ip-invite .ip-hero *:not(a):not(button),
.ip-invite .ip-viewport,.ip-invite .ip-perspective,
.iw-invite .iw-route,.iw-invite .iw-stage,.iw-invite .iw-perspective,
.iw-invite .iw-content {touch-action:pan-y pinch-zoom!important;}
.ip-invite .ip-portrait img,.iw-invite .iw-portrait img { -webkit-user-drag:none;user-select:none;}
.ip-invite .ip-portrait-edge,.ip-invite .ip-portrait-aura {pointer-events:none!important;}

/* source: /frontend/src/styles/priglo-v116-mobile-and-glass.css */
/* PRIGLO 116 — mobile invitation hero rhythm & genuine fixed Liquid Glass demo CTA.
   Intentional cinematic overlays (Gravity, Impulse, date-between, Afterglow) stay untouched. */
.template-demo-page .template-demo-toolbar {
  position: fixed !important;
  top: auto !important;
  bottom: max(12px, env(safe-area-inset-bottom)) !important;
  left: 50% !important;
  transform: translate3d(-50%,0,0) !important;
  z-index: 350 !important;
  width: min(570px, calc(100% - 24px)) !important;
  display: grid !important;
  grid-template-columns: minmax(0,1fr) !important;
  gap: 0 !important;
  padding: 6px !important;
  min-height: 0 !important;
  border-radius: 24px !important;
  background: rgba(250,249,246,.28) !important;
  border: 1px solid rgba(255,255,255,.66) !important;
  box-shadow: 0 8px 30px rgba(24,34,30,.16), inset 0 1px 0 rgba(255,255,255,.7) !important;
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  isolation: isolate;
}
.template-demo-page .template-demo-toolbar .demo-template-name { display: none !important; }
.template-demo-page .template-demo-toolbar .demo-choose-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 51px !important;
  margin: 0 !important;
  padding: 12px 14px !important;
  border-radius: 19px !important;
  border: 1px solid rgba(255,255,255,.78) !important;
  background: linear-gradient(155deg, rgba(255,255,255,.85), rgba(236,245,242,.63) 63%, rgba(219,234,230,.72)) !important;
  color: #17372f !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.94), 0 3px 10px rgba(35,52,44,.11) !important;
  text-shadow: none !important;
  text-decoration: none !important;
  font: 650 clamp(14px,3.8vw,16px)/1.25 'Noto Sans','DM Sans',sans-serif !important;
  letter-spacing: -.012em;
  -webkit-backdrop-filter: blur(12px) saturate(135%);
  backdrop-filter: blur(12px) saturate(135%);
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.template-demo-page .demo-choose-button > span { display:inline-flex; gap:8px; align-items:center; justify-content:center; }
.template-demo-page .demo-choose-button svg { flex-shrink: 0; stroke-width: 2.3; }
@media (hover:hover) { .template-demo-page .template-demo-toolbar .demo-choose-button:hover { background:rgba(255,255,255,.93) !important; box-shadow:inset 0 1px 0 #fff,0 6px 18px rgba(35,52,44,.16)!important; } }
.template-demo-page .template-demo-toolbar .demo-choose-button:focus-visible { outline:3px solid #477b6d; outline-offset:3px; }
.template-demo-page .template-demo-toolbar .demo-choose-button:disabled { opacity:.58; cursor:not-allowed; }
.template-demo-page .template-demo-canvas { padding-bottom: calc(95px + env(safe-area-inset-bottom)) !important; }
.template-demo-page .audio-fab { bottom: calc(100px + env(safe-area-inset-bottom)) !important; }
@supports not ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))) {
  .template-demo-page .template-demo-toolbar { background: rgba(247,249,245,.93) !important; }
}

/* Clear envelope pictogram instead of the recipient's initials, with intact wax animation. */
.ti-opening--ivory .ti-ivory-envelope-emblem__paper { fill:#f4e7ca !important; stroke:#e9d1a0 !important; }
.ti-opening--ivory .ti-ivory-envelope-emblem__inner { fill:rgba(255,252,242,.87) !important; stroke:#bd9d63 !important; }
.ti-opening--ivory .ti-ivory-envelope-emblem__icon { fill:none; stroke:#62674e; stroke-width:3.4; stroke-linecap:round; stroke-linejoin:round; }

/* Catalog photo/text overlap: the Vow preview's title lives in a separate column. */
.anniversary-thumb-anniversary-vow .anniversary-thumb-photo { width:47% !important; right:3% !important; }
.anniversary-thumb-anniversary-vow .anniversary-thumb-copy { left:5% !important; width:43% !important; right:auto!important; }
.anniversary-thumb-anniversary-vow .anniversary-thumb-copy strong { max-width:100%; font-size:clamp(15px,6.7cqw,28px); line-height:1.06; overflow-wrap:anywhere; word-break:normal; }

/* These templates explicitly place a standalone image ABOVE the names on phones.
   Stop centering a 100svh text container after the 46svh photo. Keep the actual photo,
   masks, outlines and independent image animations without rebuilding the sections. */
@media (max-width: 640px) {
  .art-wedding:is(.art-theme-sakura-mist-v2,.art-theme-sakura-mist,.art-theme-herbarium,.art-theme-paper-cut-romance,.art-theme-pop-art-wedding-v2,.art-theme-pop-art-wedding,.art-theme-riviera-60s-v2,.art-theme-cinema-noir-v2,.art-theme-ocean-pearl-v2,.art-theme-digital-aurora-v2) .art-hero.has-photo {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: 0 !important;
    height: auto !important;
    padding: clamp(18px,4svh,35px) 0 clamp(48px,8svh,72px) !important;
  }
  .art-wedding:is(.art-theme-sakura-mist-v2,.art-theme-sakura-mist,.art-theme-herbarium,.art-theme-paper-cut-romance,.art-theme-pop-art-wedding-v2,.art-theme-pop-art-wedding,.art-theme-riviera-60s-v2,.art-theme-cinema-noir-v2,.art-theme-ocean-pearl-v2,.art-theme-digital-aurora-v2) .art-hero.has-photo > .art-hero-photo {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    align-self: center !important;
    margin: 0 auto !important;
    width: min(calc(100% - 36px), 470px) !important;
    max-width: 100% !important;
    height: clamp(245px,46svh,460px) !important;
    flex: 0 0 auto;
  }
  .art-wedding:is(.art-theme-sakura-mist-v2,.art-theme-sakura-mist,.art-theme-herbarium,.art-theme-paper-cut-romance,.art-theme-pop-art-wedding-v2,.art-theme-pop-art-wedding,.art-theme-riviera-60s-v2,.art-theme-cinema-noir-v2,.art-theme-ocean-pearl-v2,.art-theme-digital-aurora-v2) .art-hero.has-photo > .art-hero-copy {
    display: block !important;
    box-sizing: border-box;
    position: relative !important;
    align-self: center !important;
    width: min(calc(100% - 36px),470px) !important;
    min-height: 0 !important;
    height: auto !important;
    padding: clamp(16px,4svh,30px) 0 0 !important;
    margin: 0 auto !important;
    text-align: left !important;
    justify-items: start !important;
    align-content: start !important;
  }
  .art-wedding:is(.art-theme-sakura-mist-v2,.art-theme-sakura-mist,.art-theme-herbarium,.art-theme-paper-cut-romance,.art-theme-pop-art-wedding-v2,.art-theme-pop-art-wedding,.art-theme-riviera-60s-v2,.art-theme-cinema-noir-v2,.art-theme-ocean-pearl-v2,.art-theme-digital-aurora-v2) .art-hero.has-photo h1 {
    margin: 12px 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    font-size: clamp(34px,9.5vw,56px) !important;
    line-height: 1.04 !important;
    overflow-wrap: break-word;
    word-break: normal !important;
    white-space: normal !important;
    text-wrap: balance;
  }
  .art-wedding:is(.art-theme-sakura-mist-v2,.art-theme-sakura-mist,.art-theme-herbarium,.art-theme-paper-cut-romance,.art-theme-pop-art-wedding-v2,.art-theme-pop-art-wedding,.art-theme-riviera-60s-v2,.art-theme-cinema-noir-v2,.art-theme-ocean-pearl-v2,.art-theme-digital-aurora-v2) .art-hero.has-photo .art-couple-names {
    display: flex !important;
    flex-wrap: wrap !important;
    flex-direction: row !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
    gap: .1em .17em !important;
    width: 100%;
  }
  .art-wedding:is(.art-theme-sakura-mist-v2,.art-theme-sakura-mist,.art-theme-herbarium,.art-theme-paper-cut-romance,.art-theme-pop-art-wedding-v2,.art-theme-pop-art-wedding,.art-theme-riviera-60s-v2,.art-theme-cinema-noir-v2,.art-theme-ocean-pearl-v2,.art-theme-digital-aurora-v2) .art-hero.has-photo .art-couple-names em {
    margin: 0 .08em !important;
    font-size: .55em !important;
  }
  .art-theme-herbarium .art-hero.has-photo > .art-hero-photo { padding: 10px !important; }
  .art-theme-pop-art-wedding-v2 .art-hero.has-photo > .art-hero-photo { box-shadow: 8px 8px 0 var(--art-accent2) !important; }
  .art-theme-pop-art-wedding-v2 .art-hero.has-photo h1 { text-transform: none !important; font-size:clamp(32px,8.8vw,48px)!important; }

  /* Anniversary Afterglow ("Тёплое сияние"): keep the dark cinematic fade but shorten the
     enormous blank section between the main photo and the couple's names. */
  .anniversary-afterglow-v2.an-glow .an-hero {
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    justify-content:flex-start !important;
    min-height:0 !important;
    height:auto !important;
    padding:0 0 clamp(42px,7svh,66px) !important;
  }
  .anniversary-afterglow-v2.an-glow .an-hero-photo {
    position:relative !important;
    inset:auto !important;
    width:100% !important;
    height:clamp(245px,46svh,450px) !important;
    flex:0 0 auto !important;
  }
  .anniversary-afterglow-v2.an-glow .an-hero-orbit {
    bottom:auto !important;
    top:clamp(226px,44svh,427px) !important;
    opacity:.65;
  }
  .anniversary-afterglow-v2.an-glow .an-hero-copy {
    box-sizing:border-box;
    width:min(calc(100% - 36px),470px) !important;
    min-height:0 !important;
    height:auto !important;
    margin:0 auto !important;
    padding:clamp(18px,4svh,30px) 0 0 !important;
    justify-content:flex-start !important;
    gap:12px !important;
  }
  .anniversary-afterglow-v2.an-glow .an-names {
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    font-size:clamp(36px,10vw,55px) !important;
    line-height:1.08 !important;
    overflow-wrap:break-word;
  }
  .anniversary-afterglow-v2.an-glow .an-years strong {
    font-size:clamp(76px,21vw,104px) !important;
  }

  /* Anniversary Vow / Paper Love: the page's names follow the image without a viewport-tall spacer. */
  .anniversary-vow-v2.an-vow .an-hero,
  .anniversary-paper-v2.an-paper .an-hero { display:flex !important; flex-direction:column !important; align-items:center !important; justify-content:flex-start!important; min-height:0!important; height:auto!important; padding:clamp(18px,4svh,36px) 0 clamp(48px,8svh,70px) !important; }
  .anniversary-vow-v2.an-vow .an-hero-photo,
  .anniversary-paper-v2.an-paper .an-hero-photo { position:relative!important; inset:auto!important; width:min(calc(100% - 36px),470px)!important; height:clamp(250px,46svh,450px)!important; flex:0 0 auto; margin:0 auto!important; }
  .anniversary-vow-v2.an-vow .an-hero-photo { transform:none!important; }
  .anniversary-paper-v2.an-paper .an-hero-photo { transform:rotate(2deg)!important; }
  .anniversary-vow-v2.an-vow .an-hero-copy,
  .anniversary-paper-v2.an-paper .an-hero-copy { box-sizing:border-box; position:relative!important; z-index:3; width:min(calc(100% - 36px),470px)!important; min-height:0!important; height:auto!important; margin:0 auto!important; padding:clamp(18px,4svh,28px) 0 0!important; display:flex!important; flex-direction:column!important; align-items:flex-start!important; justify-content:flex-start!important; gap:8px!important; text-align:left!important; }
  .anniversary-vow-v2.an-vow .an-hero-copy > span,
  .anniversary-paper-v2.an-paper .an-hero-copy > span { align-self:flex-start; }
  .anniversary-vow-v2.an-vow .an-hero-copy .an-names,
  .anniversary-paper-v2.an-paper .an-hero-copy .an-names { width:100%; max-width:100%; margin:12px 0!important; font-size:clamp(36px,9.5vw,58px)!important; line-height:1.08; overflow-wrap:break-word; word-break:normal; }
  .anniversary-vow-v2.an-vow .an-hero .an-chevron,
  .anniversary-paper-v2.an-paper .an-hero .an-chevron { display:none!important; }
}
@media (prefers-reduced-motion: reduce) { .template-demo-page .template-demo-toolbar .demo-choose-button { transition:none!important; } }

/* source: /frontend/src/styles/priglo-v118-gesture-and-seal.css */
/* PRIGLO 118 — native scrolling and compact 3D motion on touch screens.
   Keep actual section content, 3D scene effects, photo-gallery controls intact. */
@media (max-width:780px) and (pointer:coarse) {
  .bt-invite, .bt-invite .invite-body, .bt-invite .bt-track,
  .bt-invite .bt-viewport, .bt-invite .bt-perspective,
  .bt-invite .bt-scene, .bt-invite .bt-content,
  .bt-invite .bt-hero, .bt-invite .bt-hero-heading,
  .bt-invite .bt-hero-portal, .bt-invite .bt-hero-image,
  .bt-invite .bt-photo-crop, .bt-invite .bt-photo-crop img,
  .bt-invite .bt-hero-bottom, .bt-invite .bt-recipient,
  .ip-invite, .ip-invite .invite-body, .ip-invite .ip-track,
  .ip-invite .ip-viewport, .ip-invite .ip-perspective,
  .ip-invite .ip-scene, .ip-invite .ip-content,
  .ip-invite .ip-hero, .ip-invite .ip-portrait-object,
  .ip-invite .ip-portrait, .ip-invite .ip-image-crop,
  .ip-invite .ip-image-crop img, .ip-invite .ip-hero-copy {
    touch-action:pan-y pinch-zoom !important;
  }
  /* Transforms on the sticky scrollport may impede Safari touch hit-testing;
     the inner perspective still supplies the existing cinematic depth. */
  .bt-live .bt-viewport, .ip-live .ip-viewport {
    transform:none !important;
    -webkit-backface-visibility:visible !important;
    backface-visibility:visible !important;
  }
  .bt-invite .bt-hero-image, .bt-invite .bt-photo-crop img,
  .ip-invite .ip-portrait, .ip-invite .ip-image-crop img {
    -webkit-user-drag:none;
  }
  .bt-invite .bt-photo-glint, .bt-invite .bt-photo-shadow,
  .ip-invite .ip-portrait-aura, .ip-invite .ip-portrait-edge {
    pointer-events:none !important;
  }
}
/* The envelope icon is a luminous ivory line ON the gold wax itself.
   No opaque badge, ellipse or other image backing is added. */
.ti-opening.ti-opening--ivory .ti-ivory-envelope-emblem__icon {
  fill:none !important;
  stroke:#fff9e7 !important;
  stroke-width:4.9 !important;
  stroke-linecap:round !important;
  stroke-linejoin:round !important;
  vector-effect:non-scaling-stroke;
  filter:drop-shadow(0 1px 1px rgba(85,48,8,.7)) drop-shadow(0 0 2px rgba(255,245,205,.75));
  transform-box:fill-box;
  transform-origin:center;
}
.ti-opening.ti-opening--ivory:not(.ti-opening--active) .ti-ivory-envelope-emblem__icon {
  animation:priglo-ivory-envelope-wiggle 2.5s ease-in-out infinite !important;
}
@keyframes priglo-ivory-envelope-wiggle {
  0%, 100% {transform:translateX(0) rotate(0deg)}
  8%, 26% {transform:translateX(-2px) rotate(-11deg)}
  17%, 36% {transform:translateX(2px) rotate(11deg)}
  46%, 80% {transform:translateX(0) rotate(0deg)}
}
.ti-opening.ti-opening--ivory.ti-opening--active .ti-ivory-envelope-emblem__icon {
  animation:none !important;
}
@media (prefers-reduced-motion:reduce) {
 .ti-opening.ti-opening--ivory .ti-ivory-envelope-emblem__icon {animation:none !important;}
}

/* source: /frontend/src/styles/priglo-v119-stable-touch.css */
/* PRIGLO 119 — stable native touch scrolling for Between Us and Impulse.
   Full-screen animated 3D pages must never be the gesture hit target:
   they are re-positioned and marked inert during travel, which cancels
   ongoing touch gestures in Safari. The unchanging sticky viewport receives
   the swipe; only true controls remain interactive in the 3D layer. */
@media (pointer: coarse) {
  .bt-live .bt-viewport,
  .ip-live .ip-viewport {
    touch-action: pan-y pinch-zoom !important;
    -webkit-overflow-scrolling: auto;
  }
  @supports (overflow: clip) {
    /* hidden is itself a scroll container; clip is not. Keep native document scroll. */
    .bt-live .bt-viewport,
    .ip-live .ip-viewport { overflow: clip !important; }
  }
  .bt-live .bt-perspective,
  .ip-live .ip-perspective,
  .bt-live .bt-scene,
  .ip-live .ip-scene {
    pointer-events: none !important;
    touch-action: pan-y pinch-zoom !important;
  }
  /* Canvas and visual ornaments remain transparent to native touch hit-testing. */
  .bt-live .bt-world,
  .ip-live .ip-world { pointer-events: none !important; }
  /* Interactive elements retain normal taps. The active scene is the only one
     allowed to offer a link, RSVP or photo/gallery button. A swipe that begins
     on a button still remains a native pan-y gesture. */
  .bt-live .bt-scene:not([inert]) :is(a,button,input,textarea,select,[role="button"],[role="link"],iframe,.priglo-venue-map-portal),
  .ip-live .ip-scene:not([inert]) :is(a,button,input,textarea,select,[role="button"],[role="link"],iframe,.priglo-venue-map-portal) {
    pointer-events: auto !important;
    touch-action: pan-y pinch-zoom !important;
  }
}

/* source: /frontend/src/styles/priglo-admin-stage1-safety.css */
/* PRIGLO Stage 1 — safe CMS editing status; isolated from public invitations. */
.admin-save-guard { position: sticky; top: 6px; z-index: 80; display:flex; align-items:center; justify-content:space-between; gap:14px; margin:10px 0 18px; padding:12px 16px; border:1px solid rgba(179,137,73,.32); background:rgba(255,249,234,.95); color:#4c3922; border-radius:18px; box-shadow:0 8px 28px rgba(60,43,21,.08); }
.admin-save-guard-copy { display:flex; flex-direction:column; gap:3px; }
.admin-save-guard-copy strong { font-size:14px; font-weight:700; }
.admin-save-guard-copy span { font-size:12px; line-height:1.45; }
.admin-save-guard-actions { display:flex; align-items:center; gap:8px; flex-shrink:0; }
.admin-save-guard-actions button { min-height:38px; }
@media (max-width:640px) { .admin-save-guard { flex-direction:column; align-items:stretch; top:3px; padding:11px; } .admin-save-guard-actions { justify-content:flex-end; } }

/* source: /frontend/src/styles/priglo-editor-simplification.css */
/* PRIGLO 204: simplified editor, isolated and cache-busted. */

.section-label-editor-compact{gap:12px}
.section-label-editor-compact .section-label-help{margin:0 0 4px;color:#777c76;font-size:12px;line-height:1.5}
.section-label-editor-compact .section-label-editor-list{display:grid;grid-template-columns:1fr;gap:8px}
.section-label-editor-compact .section-label-editor-card{display:block;padding:0;overflow:hidden;border:1px solid rgba(40,75,61,.10);border-radius:16px;background:rgba(255,255,255,.76);box-shadow:none}
.section-label-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:67px;padding:11px 16px;cursor:pointer;list-style:none}
.section-label-row::-webkit-details-marker,.section-label-more>summary::-webkit-details-marker{display:none}
.section-label-row>svg{flex-shrink:0;color:#557364}
.section-label-editor-compact .section-label-editor-name{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0}
.section-label-editor-compact .section-label-editor-name small{font-size:11px;color:#7b877f;line-height:1.3}
.section-label-editor-compact .section-label-editor-name strong{font-size:14px;font-weight:600;color:#224839;line-height:1.4;overflow-wrap:anywhere}
.section-label-editor-card[open] .section-label-row{border-bottom:1px solid rgba(40,75,61,.09)}
.section-label-edit-fields{display:grid;gap:12px;padding:14px 16px 17px}
.section-label-reset{justify-self:start;background:none;border:0;color:#386754;font-size:12px;font-weight:600;line-height:1.3;font-family:inherit;cursor:pointer;padding:6px 0;text-align:left}
.section-label-more{border-top:1px solid rgba(40,75,61,.1);padding-top:10px}
.section-label-more>summary{display:flex;align-items:center;gap:6px;justify-content:space-between;cursor:pointer;color:#52695d;font-size:12px;font-weight:600;min-height:33px}
.section-label-more[open] .section-label-choice{margin-top:10px}
.priglo-time-zone-setting{margin:0 0 12px;color:#65766b;font-size:12px}
.priglo-time-zone-setting>summary{display:flex;align-items:center;gap:5px;cursor:pointer;list-style:none;min-height:32px}
.priglo-time-zone-setting>summary::-webkit-details-marker{display:none}
.priglo-time-zone-setting>summary svg{margin-left:2px}
.priglo-time-zone-setting[open]>summary svg{transform:rotate(180deg)}
.priglo-time-zone-setting .field{margin:7px 0 3px;display:grid;gap:7px}
.priglo-time-zone-setting select{width:100%;max-width:450px;min-height:45px;border:1px solid #dbe5df;border-radius:12px;background:#fff;padding:0 12px;font-size:16px}

.section-label-pencil{flex-shrink:0;color:#557364;font-size:20px;font-weight:400;line-height:1;}

/* source: /frontend/src/styles/priglo-owner-preview.css */
.owned-invite-preview { min-height: 100dvh; }
.owned-invite-preview-frame { position: fixed; inset: 0; width: 100%; height: 100%; border: 0; background: #f9f3ee; }
.owned-invite-preview > .center-state { position: fixed; inset: 0; z-index: 10009; display: grid; place-items: center; padding: 24px; background: #f8f1eb; color: #344f42; text-align: center; }
.owned-invite-preview-nav { position: fixed; z-index: 10010; inset: auto 12px max(12px, env(safe-area-inset-bottom)) 12px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; pointer-events: none; }
.owned-invite-preview-nav > * { pointer-events: auto; }
.owned-invite-preview-back, .owned-invite-preview-badge, .owned-invite-preview-languages { max-width: min(90vw, 520px); padding: 9px 13px; border-radius: 18px; box-shadow: 0 5px 20px #142a2850; background: #fffef4f2; color: #234535; font: 600 12px/1.45 system-ui, sans-serif; text-decoration: none; }
.owned-invite-preview-badge { font-weight: 400; text-align: center; }
.owned-invite-preview-languages { display: flex; gap: 7px; }
.owned-invite-preview-languages button { cursor: pointer; padding: 3px 7px; border: 0; border-radius: 8px; background: transparent; color: inherit; }
.owned-invite-preview-languages button[aria-current="true"] { background: #e5f0e8; font-weight: 800; }
.owned-invite-preview-language { pointer-events: auto; padding: 9px 12px; border-radius: 15px; border: 0; background: #fffef4f2; color: #234535; }
@media (max-width: 450px) { .owned-invite-preview-nav { align-items: center; } .owned-invite-preview-badge { max-width: 52vw; } }

/* source: /frontend/src/styles/pearl-doors-global-336.css */
/* Generic Pearl Doors opening, isolated from Zhibek Gul's native .zg4 scene. */
/* The native Zhibek Gul opening uses this same editorial font, not Playfair. */
@font-face {
  font-family: "ZG Editorial";
  src: url("/assets/fonts/cormorantgaramond.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
.pdg-opening {
  position: fixed;
  inset: 0;
  z-index: 120;
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
  background: #f5ebde;
  color: #574735;
  user-select: none;
  -webkit-user-select: none;
  overscroll-behavior: contain;
}
.pdg-opening.pdg-active { background: transparent; }
.pdg-door {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 2;
  overflow: hidden;
  overflow: clip;
  backface-visibility: hidden;
  transform: translate3d(0,0,0);
  pointer-events: none;
}
.pdg-door-left { left: 0; }
.pdg-door-right { right: 0; }
.pdg-door > img {
  position: absolute;
  top: 0;
  width: 200%;
  max-width: none;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  -webkit-user-drag: none;
}
.pdg-door-left > img { left: 0; }
.pdg-door-right > img { right: 0; }
.pdg-door::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(6px,3vw,26px);
  pointer-events: none;
}
.pdg-door-left::after { right: 0; background: linear-gradient(90deg,transparent,#95795b31 72%,#70584448); }
.pdg-door-right::after { left: 0; background: linear-gradient(90deg,#70584448,#95795b31 28%,transparent); }
.pdg-seal-carrier {
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  left: 0;
  width: 50%;
  pointer-events: none;
}
.pdg-seal {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 100%;
  width: clamp(86px,23vw,140px);
  aspect-ratio: 2 / 3;
  border: 0;
  margin: 0;
  padding: 0;
  border-radius: 48%;
  appearance: none;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transform: translate3d(-50%,-50%,0);
  transition: transform .24s cubic-bezier(.22,.7,.23,1),filter .24s ease-out;
  animation: pdg-seal-pulse 3.4s ease-in-out infinite;
}
.pdg-seal img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 5px 7px #79604960);
}
.pdg-seal:focus-visible { outline: 3px solid #755e3d; outline-offset: 7px; }
.pdg-opening:not(.pdg-active) .pdg-seal:active {
  animation: none;
  transform: translate3d(-50%,-50%,0) scale(.94);
  filter: brightness(1.13);
}
.pdg-idle {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(33,27,23,.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity .75s ease-in-out;
}
.pdg-idle.is-visible { opacity: 1; }
.pdg-opening .pdg-idle-message {
  position: absolute;
  top: calc(50% - clamp(130px,29vh,190px));
  left: 5%;
  right: 5%;
  margin: 0;
  text-align: center;
  font: 600 clamp(20px,5.4vw,29px)/1.2 "ZG Editorial",Georgia,serif !important;
  letter-spacing: .035em !important;
  color: #fffdf4 !important;
  text-shadow: 0 2px 14px #3c302a,0 0 28px #4a362a !important;
  text-transform: none !important;
  transform: translateY(8px);
  transition: transform .8s cubic-bezier(.18,.7,.2,1);
}
.pdg-opening .pdg-idle.is-visible .pdg-idle-message { transform: translateY(0); }
.pdg-opening .pdg-recipient {
  position: absolute;
  z-index: 4;
  top: calc(50% + clamp(64.5px,17.25vw,105px) + 28px);
  left: 14%;
  right: 14%;
  margin: 0;
  padding: 10px clamp(12px,3vw,22px);
  background: linear-gradient(90deg,rgba(255,253,247,0),rgba(255,253,247,.76) 12%,rgba(255,253,247,.76) 88%,rgba(255,253,247,0)) !important;
  color: #574735 !important;
  text-align: center;
  text-wrap: balance;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 9px #fffef0 !important;
  font: italic 500 clamp(20px,5.4vw,30px)/1.15 "ZG Editorial",Georgia,serif !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  pointer-events: none;
}
.pdg-opening .pdg-recipient[data-pdg-fit='medium'] { font-size: clamp(18px,4.6vw,26px) !important; }
.pdg-opening .pdg-recipient[data-pdg-fit='long'] { font-size: clamp(16px,4vw,23px) !important; }
.pdg-opening .pdg-recipient[data-pdg-fit='xl'] { font-size: clamp(15px,3.4vw,20px) !important; }
.pdg-active .pdg-door-left,
.pdg-active .pdg-seal-carrier {
  animation: pdg-door-left 5.5s cubic-bezier(.4,.02,.16,.99) both;
  will-change: transform;
}
.pdg-active .pdg-door-right {
  animation: pdg-door-right 5.5s cubic-bezier(.4,.02,.16,.99) both;
  will-change: transform;
}
.pdg-active .pdg-seal { animation: none; pointer-events: none; }
.pdg-active .pdg-recipient { animation: pdg-recipient-away .85s ease-in both; }
@keyframes pdg-door-left {
  0%,14% { transform: translate3d(0,0,0); }
  100% { transform: translate3d(calc(-103% - 84px),0,0); }
}
@keyframes pdg-door-right {
  0%,14% { transform: translate3d(0,0,0); }
  100% { transform: translate3d(103%,0,0); }
}
@keyframes pdg-seal-pulse {
  0%,100% { transform: translate3d(-50%,-50%,0) scale(1); }
  50% { transform: translate3d(-50%,-50%,0) scale(1.035); }
}
@keyframes pdg-recipient-away {
  0%,20% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(7px); }
}

/* The first invitation frame is prepared behind the two moving wings. */
.pgx-scope[data-priglo-opening='pearl-doors'] .invite.is-gated.is-opening .invite-body {
  display: block !important;
  height: auto !important;
  min-height: 100dvh !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: none;
}
.pgx-scope[data-priglo-opening='pearl-doors'] .invite.is-gated.is-opening .invite-body > * {
  visibility: visible;
}

/* Admin + editor: portrait art with the same central oval seal. */
.opening-option-pearl-doors {
  position: relative;
  background: #f1e7db url('/frontend/addons/templates/qyz-uzatu-zhibek-gul/v4/assets/pearl-doors.webp') center/cover no-repeat !important;
}
/* The ready-made editor bundle has an Ivory thumbnail fallback for unknown
   styles; display the actual Pearl Doors artwork without rebuilding it. */
.opening-option-pearl-doors > * { visibility: hidden; }
.opening-option-pearl-doors::after {
  content: '';
  position: absolute;
  inset: 25% 31%;
  background: url('/frontend/addons/templates/qyz-uzatu-zhibek-gul/v4/assets/pearl-seal.webp') center/contain no-repeat;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px #79604960);
}
.pdg-thumbnail { position: relative; height: 100%; width: 100%; overflow: hidden; }
.pdg-thumbnail-art { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.pdg-thumbnail-seal { position: absolute; top: 50%; left: 50%; height: 35%; max-height: 96px; width: auto; transform: translate(-50%,-50%); filter: drop-shadow(0 2px 4px #79604960); }

@media (prefers-reduced-motion: reduce) {
  .pdg-seal { animation: none; }
  .pdg-idle,.pdg-idle-message { transition: none; }
  .pdg-active .pdg-door,.pdg-active .pdg-seal-carrier { animation-duration: .01ms !important; }
}
.pdg-fast.pdg-active .pdg-door,.pdg-fast.pdg-active .pdg-seal-carrier { animation-duration: .01ms !important; }

