/* Host-only presentation. Existing guest arrival selectors and timings stay intact. */
.host-envelope-preview{min-width:0;margin-top:18px}
.host-envelope-preview-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:14px}
.host-envelope-preview-heading .eyebrow{font-size:10px;margin:0 0 5px}
.host-envelope-preview-heading p{margin:0;font-size:14px}
.host-envelope-preview-heading button{flex-shrink:0}
.host-envelope-stage{position:relative;isolation:isolate;min-height:520px;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#f7f4ec;display:grid;place-items:center;padding:28px 20px}
.host-envelope-invitation{width:100%;max-width:330px;min-width:0}
.host-envelope-invitation .invitation{width:100%;box-shadow:0 12px 30px #123e4820}
.host-envelope-overlay{position:absolute;inset:0;z-index:2;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:50px 16px 24px;perspective:1200px}
.host-envelope-overlay[hidden]{display:none}
.host-envelope-overlay .envelope{width:min(360px,85%)}
.host-envelope-overlay .envelope-intro{margin:0 0 28px;font-size:10px;z-index:1}
.host-envelope-overlay .envelope-hint{margin:28px 0 14px;z-index:1}
.host-envelope-overlay .envelope-paper h3{font-size:26px}
.host-envelope-overlay .envelope-paper{padding:12px}
.host-envelope-overlay .envelope-address{font-size:22px}
.host-envelope-overlay .btn,.host-envelope-overlay .envelope-skip{z-index:3}
.host-envelope-overlay.opening{opacity:0;transition:opacity .6s 1.3s;pointer-events:none}
.host-envelope-overlay.opening .envelope-flap{transform:rotateX(180deg);z-index:1}
.host-envelope-overlay.opening .envelope-seal{opacity:0}
.host-envelope-overlay.opening .envelope-paper{opacity:1;transform:translateY(-48%)}
.host-envelope-overlay.opening .envelope{animation:envelope-depart .55s 1.2s ease-in forwards}
.host-envelope-preview~.dialog-actions{margin-top:18px}
.envelope-style-picker:has(.host-envelope-swatch){grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.envelope-style-picker .envelope-style-choice:has(.host-envelope-swatch){align-items:center;padding:12px;gap:9px;flex-wrap:wrap}
.host-envelope-swatch{display:grid;place-items:center;width:70px;height:52px;flex:0 0 70px;overflow:hidden}
.host-envelope-swatch .envelope{width:62px;aspect-ratio:1.45;filter:none;transform:none}
.host-envelope-swatch .envelope-seal{width:14px;height:14px;border-width:1px;font-size:9px;box-shadow:none}
.host-envelope-swatch .envelope-address,.host-envelope-swatch .envelope-paper{display:none}
.host-envelope-swatch~.host-envelope-choice-copy{flex:1 1 120px;min-width:0}
@media(max-width:600px){.host-envelope-stage{min-height:440px;padding:20px 12px}.host-envelope-preview-heading{gap:10px}.host-envelope-preview-heading button{font-size:11px;padding:9px}.host-envelope-overlay .envelope-address{font-size:19px}.envelope-style-picker:has(.host-envelope-swatch){grid-template-columns:1fr}.host-envelope-overlay .envelope-paper h3{font-size:22px}}
@media(prefers-reduced-motion:reduce){.host-envelope-overlay,.host-envelope-overlay *{animation:none!important;transition:none!important}}

.host-envelope-overlay:where(.envelope-style-classic,.envelope-style-ribbon,.envelope-style-minimal){background:linear-gradient(135deg,#eaf5e9,#fff8e8 63%,#ffe6d0)}
.host-envelope-choice382{min-width:0}
.host-envelope-choice382 h3{margin:0 0 16px}
.host-envelope-selected382{display:flex;gap:16px;align-items:center;min-width:0;margin-bottom:18px}
.host-envelope-selected382>.host-envelope-swatch{width:88px;flex:none}
.host-envelope-selected382 p{font-size:13px;line-height:1.5;margin:0;overflow-wrap:anywhere}
.host-envelope-selected382 p+p{margin-top:5px;color:var(--muted)}
.host-envelope-actions382{display:flex;gap:10px;flex-wrap:wrap}
.host-envelope-actions382 .btn{flex:1 1 140px;min-height:44px;white-space:normal;font-size:12px}
.host-settings-form382>section[hidden]{display:none}
/* Shared envelope (v4) in the host preview stage: the guest overlay's scene and envelope, contained in the stage. */
.host-envelope-stage .host-env4.env4-overlay{position:absolute;inset:0;z-index:2;border-radius:inherit}
.host-envelope-stage .host-env4[hidden]{display:none}
.host-envelope-stage .host-env4 .env4-actions .btn{z-index:3}
