@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@400;500;600&display=swap');
:root{--ink:#292e29;--muted:#7b8078;--green:#304a3a;--line:#e3e5dd;--paper:#f8f9f5;--serif:'Playfair Display',Georgia,serif}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans',Arial,sans-serif;font-size:14px}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:var(--serif);font-weight:500}h1{font-size:clamp(36px,4vw,58px);letter-spacing:-.04em;line-height:1.12;margin-bottom:14px}h2{font-size:25px;letter-spacing:-.025em;margin-bottom:8px}h3{font-size:19px;margin-bottom:8px}p{color:var(--muted);line-height:1.65}.eyebrow{font-size:10px;font-weight:700;letter-spacing:.17em;color:#8b9b88}.accent{color:#a5b49d}.top{height:78px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 max(6%,calc((100% - 1320px)/2));background:#fbfcf9}.brand{font-size:26px;color:#6e8a72;display:flex;align-items:center;gap:10px}.brand span{font-family:var(--serif);font-size:19px;color:#303b30;letter-spacing:-.03em}.link{padding:0;background:none;border:0;color:#657765;font-size:12px}.wrap{max-width:1320px;margin:auto;padding:60px 5% 100px}.intro{min-height:220px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);margin-bottom:52px}.intro h1{margin-top:18px}.intro p{font-size:15px}.intro-mark{font-size:130px;font-weight:100;color:#dce5d8;margin-right:100px}.dashboard{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:55px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.section-head h2{margin:8px 0 0}.section-head small{font:11px 'DM Sans',sans-serif;color:#8a9987;background:#e8eee5;border-radius:50%;padding:5px 8px;vertical-align:middle}.card{background:#fff;border:1px solid #e9ebe4;border-radius:8px;box-shadow:0 8px 30px #35432e08}.create{padding:30px;height:max-content}.create h2{margin-top:12px}.create p{font-size:13px}.create form,.auth form{margin-top:26px}label{display:block;font-size:11px;font-weight:700;color:#4b584b;margin:0 0 17px}input:not([type=checkbox]):not([type=color]),select,textarea{display:block;width:100%;border:1px solid #dfe3dc;background:#fff;border-radius:4px;padding:12px;margin-top:8px;color:var(--ink);outline:none}input:focus,select:focus,textarea:focus{border-color:#8fa48c}textarea{min-height:72px;resize:vertical}button:not(.link):not(.icon):not(.guest-back){border:0;border-radius:4px;background:var(--green);color:white;padding:14px 17px;font-size:12px;font-weight:600}form button:not(.link):not(.icon):not(.outline):not(.guest-back){width:100%;text-align:left}button span{float:right}.note{border-top:1px solid var(--line);margin-top:23px;padding-top:20px;color:#9ba69a;font-size:11px;line-height:1.6}.empty{background:#f1f4ed;border:1px dashed #dbe4d7;border-radius:6px;min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px}.empty p{max-width:300px;font-size:12px}.empty-icon{font-size:28px;color:#7f9c80;margin-bottom:16px}.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:20px}.invite-card{background:white;border:1px solid var(--line);border-radius:7px;overflow:hidden}.card-art{height:180px;background:#e6ede1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:20px;color:#516d54;font:24px var(--serif)}.card-art span{font:25px sans-serif;margin-bottom:15px}.card-info{padding:20px;display:flex;justify-content:space-between}.card-info h3{margin-top:9px}.card-info p{font-size:12px;margin:0}.status{font-size:9px;letter-spacing:.1em;color:#9a927f}.published{color:#62856b}.round{border:1px solid var(--line);height:32px;width:32px;border-radius:50%;display:grid;place-items:center}.card-links{border-top:1px solid var(--line);display:flex;gap:17px;padding:15px 20px;font-size:11px;color:#657765}.auth{max-width:460px;margin:8vh auto;padding:42px}.auth .brand{margin-bottom:42px}.auth .eyebrow{display:block;margin-bottom:17px}.auth h1{font-size:40px}.error,.guest-error{color:#9b3b34;background:#fff1ef;padding:12px;border-radius:4px}.success{color:#40724d;background:#eaf4e8;padding:12px}.editor-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:35px}.editor-head h1{font-size:42px;margin-top:12px}.editor-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,420px);gap:44px;align-items:start}.settings,.screen-card{padding:25px;margin-bottom:18px}.check{display:flex;align-items:center;gap:8px;font-weight:500}.check input{accent-color:var(--green)}.hint{font-size:11px;font-weight:400;color:#9a9f96}.outline,button.outline{display:inline-block!important;width:auto!important;background:transparent!important;color:#526c56!important;border:1px solid #cbd8c9!important;padding:11px 14px!important;border-radius:4px;font-size:11px}.screen-heading{margin-top:35px}.screen-title,.element-head{display:flex;justify-content:space-between;align-items:center}.screen-title{padding-bottom:20px}.screen-num{color:#a4b3a1;margin-right:12px;font:18px var(--serif)}.icon{border:0;background:transparent;color:#849184;padding:5px 8px}.danger{color:#b48179;font-size:18px}.screen-options{display:grid;grid-template-columns:110px 1fr;gap:16px}input[type=color]{display:block;margin-top:8px;height:38px;width:60px;border:1px solid var(--line);background:white}.element{background:#f8f9f6;border:1px solid #edf0e9;padding:16px;margin-bottom:10px;border-radius:4px}.element-head{margin-bottom:14px;font-size:12px}.element label:last-child{margin-bottom:0}.add-element{display:flex;gap:8px;align-items:center}.add-element select{margin:0;flex:1}.save{margin-top:10px}.preview-side{position:sticky;top:20px}.preview-controls{font-size:11px;color:#a0aaa0}.phone{height:650px;max-width:340px;margin:auto;border:8px solid #303832;border-radius:32px;overflow:hidden;background:#fff;transition:max-width .2s}.phone.wide{max-width:100%;height:550px;border-width:5px;border-radius:8px}.phone iframe{width:100%;height:100%;border:0}.response-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:18px}.response-list article{padding:24px}.response-list p{color:#515a50}.guest-body{background:#e9ebe5}.guest-shell{position:relative;max-width:700px;margin:auto;min-height:100vh;background:#f7f3ef}.guest-top{position:absolute;z-index:2;top:0;left:0;width:100%;padding:23px 28px;display:flex;justify-content:space-between;align-items:center;color:#637662}.guest-logo{font-size:24px}.guest-top select{width:auto;margin:0;background:#ffffff99;border:0;font-size:11px;padding:7px}.guest-screen{min-height:100vh;background-size:cover;background-position:center;display:flex;flex-direction:column;justify-content:center;padding:90px 12% 28px}.guest-inner{text-align:center;max-width:440px;margin:auto;width:100%}.guest-ornament{font-size:30px;color:#9bab99;margin-bottom:36px}.guest-inner h1,.guest-thanks h1{font:500 clamp(40px,8vw,68px)/1.1 var(--serif);color:#36463b;white-space:pre-line}.guest-body p{white-space:pre-line}.guest-body .guest-eyebrow{font-size:10px;letter-spacing:.2em;color:#80917f;font-weight:700;margin-bottom:20px}.guest-body .guest-body,.guest-inner p{font-size:15px;color:#718071;line-height:1.8}.guest-image{max-width:100%;max-height:350px;object-fit:contain;border-radius:4px}.guest-button{display:inline-block;text-align:left;width:100%;max-width:290px;background:#425d49;color:#fff;padding:16px 20px;border:0;border-radius:3px;margin:20px auto 0;font-size:12px}.guest-button span{float:right}.guest-label{text-align:left;max-width:340px;margin:18px auto;color:#59695b}.guest-label input,.guest-label select{background:#ffffffaa}.guest-bottom{display:flex;justify-content:space-between;color:#91a090;font-size:11px;margin-top:45px}.guest-back{border:0;background:none;color:#6b806d;padding:0}.guest-thanks{min-height:100vh;display:flex;align-items:center;justify-content:center;flex-direction:column}.guest-error{position:relative;z-index:3}.preview-side .hint{text-align:center;margin-top:15px}@media(max-width:800px){.wrap{padding:38px 5% 70px}.top{height:65px;padding:0 5%}.intro{min-height:170px;margin-bottom:32px}.intro-mark{font-size:70px;margin:0}.dashboard,.editor-grid{grid-template-columns:1fr;gap:30px}.dashboard .create{grid-row:1}.editor-head{display:block}.editor-head h1{font-size:36px}.preview-side{position:static}.preview-side{grid-row:1}.phone{height:480px}.auth{margin:4vh 15px;padding:30px}.auth h1{font-size:34px}.screen-options{grid-template-columns:1fr}.screen-heading{align-items:end}.guest-screen{padding-left:9%;padding-right:9%}}

/* Installation wizard */
.installer{max-width:680px;margin:6vh auto;padding:42px}.installer .brand{margin-bottom:32px}.installer>h1{font-size:42px;margin:14px 0}.install-steps{display:flex;gap:10px;justify-content:space-between;border-bottom:1px solid var(--line);padding:20px 0 25px;margin-bottom:28px}.install-step{display:flex;align-items:center;gap:7px;font-size:11px;color:#a2aaa0}.install-step span{display:grid;place-items:center;width:25px;height:25px;border:1px solid #dce2d9;border-radius:50%}.install-step.active{color:var(--green);font-weight:700}.install-step.active span{background:var(--green);color:white;border-color:var(--green)}.install-panel h2{margin-top:8px}.install-panel form{max-width:460px;margin-top:24px}.requirements{list-style:none;margin:24px 0;padding:0}.requirements li{padding:10px 0;border-bottom:1px solid #f0f2ed;color:#59665a}.requirements li span{display:inline-grid;place-items:center;width:22px;height:22px;margin-right:12px;border-radius:50%;font-weight:bold}.requirements .ok{color:#52815e;background:#e9f2e9}.requirements .bad{color:#a5524b;background:#fff0ee}.install-link{display:inline-block;background:var(--green);color:white;padding:14px 20px;border-radius:4px;font-size:12px;margin-top:10px}.install-back{margin-top:20px}.install-panel strong{color:var(--ink)}@media(max-width:600px){.installer{margin:15px;padding:25px}.installer>h1{font-size:34px}.install-steps{gap:6px}.install-step{font-size:9px;flex-direction:column;text-align:center}}

/* Language selection in the invitation editor */
.language-settings{border:0;padding:0;margin:0 0 22px;min-width:0}.language-settings legend{padding:0;font-size:11px;font-weight:700;color:#4b584b}.language-settings p{margin:7px 0 12px}.language-options{display:flex;flex-wrap:wrap;gap:8px}.language-option{display:flex;align-items:center;gap:8px;margin:0;padding:10px 13px;border:1px solid #dfe3dc;border-radius:4px;background:#fff;font-size:12px;font-weight:500;cursor:pointer}.language-option:has(input:checked){border-color:#9bad99;background:#f1f6ef;color:#304a3a}.language-option input{accent-color:#304a3a;margin:0;width:15px;height:15px}

/* Screen background upload */
.background-upload label{margin-bottom:6px}.background-upload input[type=file]{padding:8px;font-size:12px}.background-current{display:flex;align-items:center;gap:14px;margin-top:9px;font-size:11px;color:#627965}.background-message{margin-top:8px;color:#a5524b;font-size:11px;line-height:1.5}

/* Animated envelope introduction */
.envelope-overlay{position:fixed;z-index:10;inset:0;display:flex;align-items:center;justify-content:center;background:#795846;overflow:hidden}.envelope-stage{position:relative;width:min(100vw,56.28vh);height:min(100vh,177.68vw);overflow:hidden;background:#815f4d}.envelope-backing,.envelope-flap{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none}.envelope-flap{transition:transform 1s cubic-bezier(.55,.05,.2,1);will-change:transform}.envelope-left{transform-origin:left center}.envelope-right{transform-origin:right center}.envelope-seal{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:32%;border:0!important;background:transparent!important;padding:0!important;cursor:pointer;transition:opacity .35s,transform .35s;filter:drop-shadow(0 5px 8px #39251b55)}.envelope-seal img{display:block;width:100%;height:auto}.envelope-seal:focus-visible{outline:3px solid #fff;outline-offset:5px;border-radius:50%}.envelope-hint{position:absolute;bottom:5%;left:0;right:0;margin:0;text-align:center;color:#fff!important;font-size:11px;letter-spacing:.08em;text-shadow:0 1px 6px #3b241b}.envelope-overlay.is-opening{pointer-events:none;animation:envelope-fade .35s .8s both}.envelope-overlay.is-opening .envelope-left{transform:translateX(-105%)}.envelope-overlay.is-opening .envelope-right{transform:translateX(105%)}.envelope-overlay.is-opening .envelope-seal{opacity:0;transform:translate(-50%,-50%) scale(.8)}.envelope-overlay.is-opening .envelope-hint{opacity:0}@keyframes envelope-fade{to{opacity:0}}

/* Editor step navigation */
.editor-steps{display:flex;align-items:stretch;gap:7px;overflow-x:auto;padding:3px 2px 17px;margin-bottom:24px;border-bottom:1px solid var(--line)}.editor-steps .editor-step,.editor-steps .editor-step-add{flex:0 0 auto;display:flex;align-items:center;gap:8px;padding:11px 15px!important;border:1px solid #dfe6db!important;border-radius:5px!important;background:#fff!important;color:#6d7a6d!important;font-size:12px!important;white-space:nowrap}.editor-steps .editor-step.active{background:#304a3a!important;color:#fff!important;border-color:#304a3a!important}.editor-steps .step-index{float:none;display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#edf2eb;font-size:10px;color:#70836f}.editor-steps .editor-step.active .step-index{background:#ffffff30;color:#fff}.editor-steps .editor-step-add{border-style:dashed!important;color:#526c56!important}.editor-steps .editor-step-add span{float:none}.step-actions{display:flex;justify-content:space-between;gap:12px;margin:16px 0}.step-actions button:disabled{opacity:.4;cursor:default}[hidden]{display:none!important}.screen-heading{margin-top:0}@media(max-width:800px){.editor-steps{margin-bottom:18px}.editor-steps .editor-step,.editor-steps .editor-step-add{padding:9px 11px!important}}

/* Keep editor steps compact instead of stretching form buttons to 100%. */
.editor-steps{flex-wrap:wrap;overflow:visible}.editor-steps .editor-step,.editor-steps .editor-step-add{width:auto!important;text-align:left}

/* Screen management */
.screen-toolbar{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.screen-toolbar button.screen-delete{color:#a15a50!important;border-color:#e5ccc7!important}.screen-toolbar button.screen-delete:hover{background:#fff4f1!important}@media(max-width:600px){.screen-heading{align-items:flex-start;flex-direction:column}.screen-toolbar{justify-content:flex-start}}

/* Envelope motion choices and preview */
.envelope-stage{perspective:1200px}.envelope-overlay.envelope-fold.is-opening .envelope-left{transform:rotateY(-100deg);backface-visibility:hidden}.envelope-overlay.envelope-fold.is-opening .envelope-right{transform:rotateY(100deg);backface-visibility:hidden}.intro-replay{margin-bottom:12px}

/* Slower, more expressive opening: seal lifts first, flaps follow. */
.envelope-flap{transition:transform 1.45s cubic-bezier(.22,.61,.22,1) .20s;filter:drop-shadow(0 2px 4px #26150f30)}
.envelope-seal{transition:opacity .45s ease,transform .55s cubic-bezier(.2,.7,.3,1),filter .55s}
.envelope-seal:not(:disabled):hover{transform:translate(-50%,-50%) scale(1.05);filter:drop-shadow(0 8px 12px #39251b77)}
.envelope-overlay.is-opening{animation:envelope-fade .45s 1.4s both}
.envelope-overlay.is-opening .envelope-seal{transform:translate(-50%,-60%) scale(1.12);opacity:0}
.envelope-overlay.envelope-fold.is-opening .envelope-left{transform:perspective(1100px) rotateY(-108deg)}
.envelope-overlay.envelope-fold.is-opening .envelope-right{transform:perspective(1100px) rotateY(108deg)}


/* Envelope opening: the seal lifts, doors part, then the invitation rises. */
.envelope-stage{isolation:isolate;perspective:1200px;box-shadow:0 15px 65px #2b191466}
.envelope-backing{z-index:0}
.envelope-letter{position:absolute;z-index:1;left:15%;right:15%;top:19%;bottom:19%;background:linear-gradient(145deg,#fffdf7,#f0e5d3);box-shadow:0 12px 35px #29191260;border-radius:2px;opacity:0;transform:translateY(12%) scale(.94);transition:transform 1.15s cubic-bezier(.2,.65,.25,1) .75s,opacity .7s ease .65s}
.envelope-letter-border{position:absolute;inset:6%;border:1px solid #c5a47c;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8%;color:#927450}
.envelope-letter-mark{font-size:clamp(15px,4vw,28px);float:none}.envelope-letter-line{width:35%;height:1px;background:#c9b291;float:none}.envelope-letter-word{font:italic clamp(16px,4.8vw,29px) var(--serif);letter-spacing:.01em;float:none}.envelope-letter-flourish{font:clamp(20px,6vw,34px) var(--serif);float:none}
.envelope-flap{z-index:2;transition:transform 1.65s cubic-bezier(.22,.68,.2,1) .3s,filter 1.65s ease .3s;will-change:transform;backface-visibility:visible}
.envelope-seal{z-index:3;transition:opacity .55s ease .1s,transform .65s cubic-bezier(.2,.7,.25,1),filter .65s}
.envelope-hint{z-index:4;transition:opacity .25s ease}
.envelope-overlay.is-opening{animation:envelope-fade .65s ease 2.5s both}
.envelope-overlay.is-opening .envelope-seal{transform:translate(-50%,-68%) rotate(-8deg) scale(1.16);opacity:0;filter:drop-shadow(0 14px 15px #39251b99)}
.envelope-overlay.is-opening .envelope-left{transform:translateX(-103%) rotate(-2deg)}
.envelope-overlay.is-opening .envelope-right{transform:translateX(103%) rotate(2deg)}
.envelope-overlay.envelope-fold.is-opening .envelope-left{transform:translateX(-54%) scaleX(.08);filter:brightness(.7)}
.envelope-overlay.envelope-fold.is-opening .envelope-right{transform:translateX(54%) scaleX(.08);filter:brightness(.7)}
.envelope-overlay.is-opening .envelope-letter{opacity:1;transform:translateY(-4%) scale(1)}


/* Reveal the actual first screen as the envelope opens. */
.envelope-overlay{transition:background-color .8s ease .35s}
.envelope-stage{transition:background-color .8s ease .35s,box-shadow .8s ease .35s}
.envelope-backing{transition:opacity .9s ease .35s}
.envelope-overlay.is-opening{background-color:transparent}
.envelope-overlay.is-opening .envelope-stage{background-color:transparent;box-shadow:none}
.envelope-overlay.is-opening .envelope-backing{opacity:0}

/* Ready-made background gallery */
.background-library{border-top:1px solid #edf0e9;padding-top:16px;margin:2px 0 20px}.background-library-heading{font-size:11px;font-weight:700;color:#4b584b;margin-bottom:12px}.background-library-heading .hint{display:block;margin-top:5px}.background-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.background-choices button.background-choice{width:auto!important;display:flex;flex-direction:column;gap:8px;align-items:stretch;text-align:left!important;padding:5px!important;background:#fff!important;color:#59685a!important;border:1px solid #dfe5dd!important;border-radius:6px!important;font-weight:500!important}.background-choices button.background-choice.selected{border:2px solid #496a50!important;padding:4px!important;background:#f1f6ef!important}.background-choice img{display:block;width:100%;height:100px;object-fit:cover;object-position:center;border-radius:3px}.background-choice span{float:none;font-size:10px;line-height:1.3;padding:0 3px 4px}.background-choice:focus-visible{outline:2px solid #476950;outline-offset:2px}@media(max-width:480px){.background-choice img{height:78px}.background-choices{gap:6px}}

/* Invitation typography and colours */
@font-face{font-family:Atziluth;src:url('assets/fonts/Atziluth-Script_1.ttf') format('truetype');font-display:swap}
.appearance-settings{border:1px solid #e2e9df;border-radius:6px;padding:18px;margin:0 0 22px;background:#f8faf6}.appearance-settings legend{padding:0 6px;font-size:12px;font-weight:700;color:#4b584b}.appearance-settings>p{margin:3px 0 15px}.theme-colors{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.theme-colors label{line-height:1.4}.theme-colors input[type=color]{width:100%;height:38px;border-radius:4px}.theme-presets{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:0 0 15px;font-size:11px;color:#677467}.theme-presets>span{width:100%;font-weight:700}.theme-presets button{width:auto!important;padding:7px 10px!important;background:#fff!important;border:1px solid #dce4d9!important;color:#526c56!important;font-size:11px!important}.text-format{display:grid;grid-template-columns:2fr 1fr 1fr;gap:10px}.text-format label{min-width:0}.text-format select{font-size:11px;padding:9px}.guest-shell.font-classic{--guest-font:var(--serif)}.guest-shell.font-sans{--guest-font:'DM Sans',Arial,sans-serif}.guest-shell.font-atziluth{--guest-font:Atziluth,var(--serif)}
.guest-inner h1,.guest-inner p,.guest-label{font-family:var(--guest-font,var(--serif))}.guest-inner h1{color:var(--guest-text,#36463b)}.guest-inner p,.guest-body .guest-eyebrow,.guest-label{color:var(--guest-text,#718071)}.guest-inner .font-classic{font-family:var(--serif)}.guest-inner .font-sans{font-family:'DM Sans',Arial,sans-serif}.guest-inner .font-atziluth{font-family:Atziluth,var(--serif)}.guest-inner .text-size-small{font-size:clamp(13px,3vw,20px)}.guest-inner h1.text-size-small{font-size:clamp(30px,6vw,48px)}.guest-inner .text-size-large{font-size:clamp(20px,4vw,30px)}.guest-inner h1.text-size-large{font-size:clamp(52px,10vw,82px)}.guest-inner .text-align-left{text-align:left}.guest-inner .text-align-center{text-align:center}.guest-inner .text-align-right{text-align:right}.guest-button,.guest-inner button.guest-button{background:var(--guest-button,#425d49)!important;color:var(--guest-button-text,#fff)!important}.guest-inner .guest-button span{color:inherit}@media(max-width:600px){.text-format{grid-template-columns:1fr 1fr}.text-format label:first-child{grid-column:1/-1}.theme-colors{gap:6px}}

/* Explicit text sizes are the same for captions, body text and headings. */
.guest-shell .guest-inner .text-size-small{font-size:clamp(16px,4vw,18px);line-height:1.35}
.guest-shell .guest-inner .text-size-normal{font-size:clamp(24px,6vw,30px);line-height:1.25}
.guest-shell .guest-inner .text-size-large{font-size:clamp(40px,10vw,56px);line-height:1.15}

/* Text weight is controlled explicitly rather than by the caption style. */
.guest-shell .guest-inner .text-weight-normal{font-weight:400}
.guest-shell .guest-inner .text-weight-bold{font-weight:700}
.guest-shell .guest-inner .guest-eyebrow{letter-spacing:normal}

/* Light envelope palette complements the champagne invitation backgrounds. */
.envelope-cream{background:#e8d4c3}
.envelope-cream .envelope-stage{background:#dfc7b5;box-shadow:0 15px 65px #8c6c5940}
.envelope-cream .envelope-backing,.envelope-cream .envelope-flap{filter:brightness(1.85) saturate(.58) sepia(.08)}
.envelope-cream .envelope-seal{filter:drop-shadow(0 4px 7px #78574455)}
.envelope-cream .envelope-hint{color:#694c3b!important;text-shadow:0 1px 5px #fff9}
.envelope-cream.is-opening .envelope-stage{background-color:transparent;box-shadow:none}
.envelope-cream.is-opening{background-color:transparent}
.envelope-cream.envelope-fold.is-opening .envelope-left,.envelope-cream.envelope-fold.is-opening .envelope-right{filter:brightness(1.55) saturate(.58) sepia(.08)}

/* Tap once to cycle through the enabled languages. */
.guest-top button.guest-lang-toggle{display:inline-flex;align-items:center;gap:7px;width:auto;background:#ffffffdf!important;color:#536652!important;border:1px solid #d5ded2!important;border-radius:5px;padding:8px 10px!important;font-size:11px;font-weight:600;line-height:1}.guest-lang-toggle span{float:none;font-size:14px;line-height:1}.guest-lang-toggle:focus-visible{outline:2px solid #536652;outline-offset:2px}

/* Compact block editor and screen layout controls */
.layout-settings{padding:16px;background:#f5f8f2;border:1px solid #e2e9df;border-radius:5px;margin-bottom:20px}.layout-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.layout-settings .check{margin:0 0 8px}.layout-settings p{margin:0}.blocks-heading{font-size:12px;font-weight:700;color:#4b584b;margin:0 0 10px}.blocks-heading .hint{display:block;margin-top:4px}.element{padding:0;overflow:hidden;background:#fff}.element-head{margin:0;gap:4px}.element-head button.element-toggle{min-width:0;flex:1;width:auto!important;display:flex;align-items:center;gap:10px;background:transparent!important;color:#425746!important;text-align:left!important;padding:13px!important;border:0!important}.element-toggle strong{flex:0 0 auto;font-size:12px}.element-toggle .element-summary{float:none;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:400;color:#8a9589}.element-toggle .element-chevron{float:none;color:#8a9589;font-size:16px;transition:transform .2s}.element-toggle[aria-expanded=true] .element-chevron{transform:rotate(180deg)}.element-actions{display:flex;flex:0 0 auto;padding-right:7px}.element-actions .icon{padding:6px}.element-body{padding:16px;border-top:1px solid #edf0e9;background:#f8f9f6}.element-body>label:last-child{margin-top:15px}.guest-item{display:contents}.guest-item.spaced{display:block}.guest-screen.position-top .guest-inner{margin:0 auto auto}.guest-screen.position-bottom .guest-inner{margin:auto auto 0}.guest-screen.gap-small .guest-inner,.guest-screen.gap-medium .guest-inner,.guest-screen.gap-large .guest-inner{display:flex;flex-direction:column;align-items:stretch}.guest-screen.gap-small .guest-inner{gap:8px}.guest-screen.gap-medium .guest-inner{gap:24px}.guest-screen.gap-large .guest-inner{gap:48px}.guest-screen.gap-small .guest-inner>*,.guest-screen.gap-medium .guest-inner>*,.guest-screen.gap-large .guest-inner>*{margin-top:0;margin-bottom:0}.guest-screen.gap-small .guest-inner .guest-button,.guest-screen.gap-medium .guest-inner .guest-button,.guest-screen.gap-large .guest-inner .guest-button{margin-top:0;margin-bottom:0;align-self:center}.guest-screen.gap-small .guest-inner .guest-item.spaced>*,.guest-screen.gap-medium .guest-inner .guest-item.spaced>*,.guest-screen.gap-large .guest-inner .guest-item.spaced>*{margin-top:0;margin-bottom:0}.guest-screen.gap-small .guest-inner .guest-ornament,.guest-screen.gap-medium .guest-inner .guest-ornament,.guest-screen.gap-large .guest-inner .guest-ornament{margin-bottom:0}@media(max-width:600px){.layout-grid{grid-template-columns:1fr 1fr}.layout-grid label:first-child{grid-column:1/-1}.element-head button.element-toggle{gap:6px;padding:11px!important}.element-actions .icon{padding:5px}}

/* Alternative envelope inspired by the light petal invitation background. */
.envelope-petal{background:#f1ddcd}
.envelope-petal .envelope-stage{background:linear-gradient(150deg,#f3dfd0,#f5e5d5 48%,#ecd1bc);box-shadow:0 15px 60px #94766033}
.envelope-petal .envelope-backing{visibility:hidden}
.envelope-petal .envelope-flap{filter:drop-shadow(0 2px 5px #a07f6335)}
.envelope-petal .envelope-seal{filter:drop-shadow(0 5px 8px #9b745055)}
.envelope-petal .envelope-hint{color:#745643!important;text-shadow:0 1px 5px #fffe}
.envelope-petal.is-opening{background-color:transparent}
.envelope-petal.is-opening .envelope-stage{background:transparent;box-shadow:none}
.envelope-petal.envelope-fold.is-opening .envelope-left,.envelope-petal.envelope-fold.is-opening .envelope-right{filter:brightness(.9)}

/* Compact language switcher and visible screen navigation controls. */
.guest-top button.guest-lang-toggle{min-width:59px;justify-content:center;gap:7px;padding:9px 11px!important;border:1px solid #a98a714d!important;border-radius:999px!important;background:#fffaf3e8!important;color:#6b503d!important;box-shadow:0 3px 12px #5a403016;font-size:10px!important;letter-spacing:.1em;backdrop-filter:blur(8px)}.guest-lang-toggle span{font-size:13px;opacity:.8}.guest-top button.guest-lang-toggle:hover{background:#fff!important}.guest-inner button.guest-button:disabled{opacity:.45;cursor:not-allowed}.navigation-helper{display:flex;gap:12px;align-items:center;justify-content:space-between;background:#f2f6ef;border:1px solid #e0e9dc;border-radius:5px;padding:12px;margin:16px 0 10px;color:#637663;font-size:11px;line-height:1.4}.navigation-helper .outline{white-space:nowrap}.button-target-screen select,.button-target-url input{margin-bottom:8px}@media(max-width:480px){.navigation-helper{align-items:flex-start;flex-direction:column}}

/* Screen navigation choices and guest hints. */
.screen-navigation{margin:0 0 20px;padding:16px;border:1px solid #e2e9df;border-radius:6px;background:#fbfcfa}.screen-navigation legend{padding:0 6px;font-size:12px;font-weight:700;color:#4b584b}.screen-navigation p{margin:0 0 12px}.screen-navigation .check{margin:0 0 12px}.screen-navigation .auto-delay{max-width:180px}.guest-screen{touch-action:pan-y}.guest-nav-hint{align-self:center;margin:24px 0 0;text-align:center;font:11px/1.4 'DM Sans',Arial,sans-serif;color:var(--guest-text,#718071);opacity:.8}

/* Music and transition controls */
.music-settings{border:1px solid #e2e9df;border-radius:6px;padding:18px;margin:0 0 22px;background:#f8faf6}.music-settings legend{padding:0 6px;font-size:12px;font-weight:700;color:#4b584b}.music-settings>p{margin:3px 0 15px}.music-settings input[type=range]{display:block;width:100%;accent-color:#5b785f;margin-top:10px}.music-status{color:#5c775d;font-weight:600}.music-settings .check{margin-bottom:12px}.transition-preview{margin:0 0 12px}.transition-preview:disabled{opacity:.45;cursor:not-allowed}.guest-top-actions{display:flex;gap:8px;align-items:center;margin-left:auto}.guest-top button.guest-music-toggle{display:grid;place-items:center;width:36px;height:36px;border-radius:50%!important;padding:0!important;border:1px solid #a98a714d!important;background:#fffaf3e8!important;color:#6b503d!important;box-shadow:0 3px 12px #5a403016;font-size:17px!important;line-height:1;backdrop-filter:blur(8px)}.guest-top button.guest-music-toggle[aria-pressed=true]{background:#6b503d!important;color:#fff!important}.guest-music-toggle:focus-visible{outline:2px solid #536652;outline-offset:2px}.guest-body{overflow-x:hidden}

/* Keep saving visible without covering the editor on small screens. */
.save-bar{position:sticky;bottom:0;z-index:4;display:flex;align-items:center;gap:14px;justify-content:space-between;margin-top:12px;padding:12px 14px;background:#fffffff2;border:1px solid #e1e7de;border-radius:6px;box-shadow:0 -3px 18px #35432e0d;backdrop-filter:blur(8px)}.save-bar #save-status{font-size:11px;line-height:1.4;color:#879585}.save-bar #save-status.dirty{color:#9b6b3d}.save-bar button.save{width:auto!important;min-width:190px;margin:0;text-align:left!important}.save-bar button.save span{margin-left:16px}@media(max-width:480px){.save-bar{gap:8px;padding:10px}.save-bar button.save{min-width:155px;font-size:11px}}

/* Entry effects for each block */
.entrance-settings{border:1px solid #e2e9df;border-radius:6px;padding:16px;margin:0 0 20px;background:#fbfcfa}.entrance-settings legend{padding:0 6px;font-size:12px;font-weight:700;color:#4b584b}.entrance-settings p{margin:10px 0 0}.entrance-preview{margin-bottom:0}.entry-controls{display:grid;grid-template-columns:minmax(0,2fr) minmax(110px,1fr);gap:10px}.entry-controls label{margin-bottom:0}@media(max-width:480px){.entry-controls{grid-template-columns:1fr 120px}}

/* Private test link and QR code */
.qr-settings{border:1px solid #dfebdf;border-radius:7px;padding:18px;margin:0 0 22px;background:#f8faf6}.qr-settings legend{padding:0 6px;font-size:12px;font-weight:700;color:#4b584b}.qr-settings>p{margin:4px 0 15px}.qr-box{display:grid;grid-template-columns:150px minmax(0,1fr);align-items:start;gap:16px;margin:8px 0 15px}.qr-code{background:#fff;padding:8px;border:1px solid #e2e8df;border-radius:7px;min-height:150px}.qr-code svg{display:block;width:100%;height:auto}.qr-details p{margin:0 0 10px}.qr-details label{margin-bottom:8px}.qr-details input{font-size:10px}.qr-details button{margin-right:8px}.test-preview-badge{position:fixed;left:50%;bottom:10px;z-index:20;transform:translateX(-50%);max-width:90%;padding:7px 12px;border-radius:999px;background:#303b30e8;color:#fff;font:11px/1.3 Arial,sans-serif;text-align:center;pointer-events:none;white-space:nowrap}@media(max-width:480px){.qr-box{grid-template-columns:120px minmax(0,1fr);gap:10px}.qr-code{min-height:120px}}
.qr-settings .qr-unsaved{color:#9b6b3d;font-size:11px;font-weight:600;line-height:1.5}

/* Keep animated blocks hidden until their entrance begins. */
.entry-waiting{visibility:hidden!important}
