.af-editor{--af-accent:#003B71;--af-border:#e5dcd3;max-width:1180px;margin:32px auto 60px;padding:24px;color:#302c28;background:#fcfaf7;font:15px/1.5 Arial,sans-serif}.af-editor *{box-sizing:border-box}.af-heading{text-align:center;margin-bottom:28px}.af-heading>span{font-size:11px;letter-spacing:3px;color:var(--af-accent)}.af-heading h1{font:700 clamp(28px,4vw,44px)/1.15 Georgia,serif;margin:12px 0}.af-heading p{color:#716a64;margin:0}.af-layout{display:grid;grid-template-columns:42% 58%;border:1px solid var(--af-border);border-radius:14px;overflow:hidden}.af-controls{padding:24px;border-right:1px solid var(--af-border)}.af-editor fieldset{padding:0 0 20px;margin:0 0 20px;border:0;border-bottom:1px solid var(--af-border);min-width:0}.af-editor fieldset:last-child{margin-bottom:0;border-bottom:0}.af-editor legend{font:bold 18px Georgia,serif;margin-bottom:12px}.af-editor label{display:block;font-size:12px;color:#615952}.af-editor textarea,.af-editor input:not([type=file]),.af-editor select{display:block;width:100%;border:1px solid var(--af-border);border-radius:6px;background:#fffdfa;padding:10px;color:#302c28;font:14px Arial,sans-serif;margin:5px 0 12px}.af-editor textarea{resize:vertical;min-height:95px}.af-editor button{cursor:pointer;font:13px Arial,sans-serif;border:1px solid var(--af-border);border-radius:6px;background:transparent;padding:9px 12px;color:#403731;letter-spacing:0;text-transform:none;margin:0}.af-editor button[aria-pressed=true]{background:var(--af-accent);border-color:var(--af-accent);color:white}.af-editor :focus-visible{outline:3px solid #4d83b4;outline-offset:3px}.af-editor button:disabled{opacity:.5;cursor:wait}.af-tabs,.af-align,.af-formats{display:flex;gap:8px;flex-wrap:wrap}.af-backgrounds{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:12px 0}.af-backgrounds button{aspect-ratio:1.3;padding:0;background-size:cover;background-position:center;position:relative;overflow:hidden}.af-backgrounds button[aria-pressed=true]{outline:2px solid var(--af-accent);outline-offset:2px}.af-backgrounds button[aria-pressed=true]:after{content:'✓';position:absolute;top:5px;right:5px;border-radius:50%;background:var(--af-accent);color:#fff;width:23px;height:23px;line-height:23px}.af-upload{position:relative;text-align:center;color:var(--af-accent)!important;border:1px dashed #83a4c3;border-radius:6px;padding:10px;cursor:pointer;overflow:hidden}.af-upload input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.af-upload:focus-within{outline:3px solid #4d83b4}.af-editor small{display:block;color:#81756b;font-size:11px;margin:8px 0 12px}.af-custom{display:grid;grid-template-columns:2fr 1fr;gap:20px}.af-editor input[type=color]{height:39px;padding:3px}.af-controls>fieldset>span{font-size:12px;display:block;margin-bottom:6px}.af-preview{padding:24px 28px}.af-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}.af-preview canvas{display:block;width:100%;height:auto;border-radius:10px;box-shadow:0 2px 6px #34231622}.af-preview canvas.af-story{width:auto;max-width:100%;height:560px;max-height:70vh;margin:auto}.af-dimensions{text-align:center}.af-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.af-actions button,.af-donate{background:var(--af-accent);color:#fff;border:0;padding:14px;font-size:15px}.af-quota{font-size:12px;text-align:center;color:#786b60;margin:12px 0 0}.af-status{font-size:13px;color:#9b361e;text-align:center;min-height:20px}.af-dialog{border:1px solid var(--af-border);border-radius:18px;max-width:430px;width:calc(100% - 32px);padding:30px;text-align:center;background:#fffaf5;color:#302c28}.af-dialog::backdrop{background:#21170faa;backdrop-filter:blur(3px)}.af-dialog h2{font:700 28px/1.2 Georgia,serif}.af-dialog p{font-size:15px;line-height:1.6}.af-dialog .af-close{position:absolute;right:12px;top:10px;border:0;font-size:25px}.af-heart{font-size:48px;color:var(--af-accent)}.af-donate{display:block;border-radius:7px;text-decoration:none;margin:20px 0 10px}.af-dialog .af-continue{display:block;width:100%;padding:13px}.af-dialog small{line-height:1.5;margin-top:16px}@media(max-width:740px){.af-editor{padding:14px;margin:10px auto 30px}.af-layout{grid-template-columns:1fr}.af-controls{border-right:0;border-bottom:1px solid var(--af-border);padding:18px}.af-preview{padding:18px}.af-preview-heading{flex-wrap:wrap}.af-heading{margin-bottom:20px}.af-actions button{font-size:14px}}
.af-editor [hidden]{display:none!important}.af-format-help,.af-image-quality{font-size:12px;line-height:1.5;margin:0 0 14px;color:#786b60}.af-image-quality{color:#9b361e;margin-top:10px}.af-preview .af-output-format,.af-preview .af-wallpaper-ratio{max-width:100%;font-size:13px}.af-preview canvas.af-story{height:auto;width:100%;max-width:315px;max-height:none}
.af-stepper{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:24px 0 12px;scroll-margin-top:24px}.af-stepper button{padding:12px 8px;border-radius:10px;text-align:left}.af-stepper button span{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;width:25px;height:25px;margin-right:6px;background:#ede3d9}.af-stepper button[aria-current=step]{background:#003B71;color:white;border-color:#003B71}.af-stepper button[aria-current=step] span{background:#ffffff30}.af-stepper button:disabled{cursor:default}.af-step-description{color:#685b51;margin:16px 0;font-size:14px}.af-wizard .af-controls fieldset{border:0;margin:0;padding:0}.af-wizard:not([data-step="3"]) .af-format-choice,.af-wizard:not([data-step="3"]) .af-wallpaper-options,.af-wizard:not([data-step="3"]) .af-format-help,.af-wizard:not([data-step="3"]) .af-actions,.af-wizard:not([data-step="3"]) .af-quota,.af-wizard:not([data-step="3"]) .af-status{display:none}.af-wizard[data-step="3"] .af-layout{grid-template-columns:1fr;max-width:700px;margin:auto}.af-wizard[data-step="3"] canvas{max-width:490px;margin:auto}.af-wizard[data-step="3"] canvas.af-story{max-width:315px}.af-step-navigation{display:flex;justify-content:space-between;gap:12px;margin-top:12px}.af-step-navigation .af-next{margin-left:auto;background:#003B71;border:0;color:#fff;padding:15px 24px;font-size:15px}.af-step-error{color:#9b361e;font-size:13px;margin:8px 0;min-height:20px}@media(max-width:740px){.af-stepper{gap:5px}.af-stepper button{text-align:center;font-size:11px;padding:9px 3px}.af-stepper button span{display:flex;margin:0 auto 5px}.af-wizard:not([data-step="3"]) .af-preview canvas{max-width:230px;margin:auto}.af-step-navigation{position:sticky;bottom:0;z-index:5;background:#fcfaf7;padding:10px 0}.af-step-navigation .af-next{font-size:14px;padding:14px 16px}}
.af-wizard[data-step="3"] canvas.af-story{width:auto;height:min(520px,60vh);max-width:100%;object-fit:contain}.af-wizard[data-step="3"] .af-step-navigation{position:static}
/* Keep theme dropdown decorations out of the native editor controls. */
.af-editor.af-wizard select{appearance:auto!important;-webkit-appearance:menulist!important;background-image:none!important;background-repeat:no-repeat!important;padding-right:12px;min-height:40px;line-height:normal}
.af-editor.af-wizard .af-custom>label{min-width:0}
.af-editor.af-wizard input[type=color]{appearance:none;-webkit-appearance:none;background-image:none!important;height:40px;min-height:40px;padding:5px;cursor:pointer}
.af-editor.af-wizard input[type=color]::-webkit-color-swatch-wrapper{padding:0}
.af-editor.af-wizard input[type=color]::-webkit-color-swatch{border:1px solid #d8cec4;border-radius:3px}
.af-editor.af-wizard input[type=color]::-moz-color-swatch{border:1px solid #d8cec4;border-radius:3px}
.af-backgrounds button{background:#f3eee7!important}.af-backgrounds button img{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}.af-gallery-status{min-height:16px}.af-controls fieldset>p{font-size:13px;color:#786b60}

.af-wizard[data-step='1'] .af-controls fieldset:first-child{margin-bottom:24px;padding-bottom:20px;border-bottom:1px solid var(--af-border)}
.af-editor .af-gallery-more{display:block;width:100%;margin:12px 0 0;padding:10px;color:var(--af-accent);border-color:var(--af-border)}.af-editor .af-gallery-more[hidden]{display:none!important}
/* Preserve readable donation links against the theme's global link colors. */
.af-editor .af-dialog a.af-donate,.af-editor .af-dialog a.af-donate:visited{display:block;background:#003B71!important;color:#fff!important;-webkit-text-fill-color:#fff!important;font:600 15px/1.4 Arial,sans-serif;padding:15px 14px;text-decoration:none!important;border:1px solid #003B71;border-radius:7px}
.af-editor .af-dialog a.af-donate:hover,.af-editor .af-dialog a.af-donate:focus-visible{background:#00294f!important;color:#fff!important;border-color:#00294f}
.af-editor .af-dialog .af-continue{background:#fff;color:#003B71;border:1px solid #83a4c3;font-size:14px;line-height:1.4;padding:12px}
.af-editor .af-dialog .af-continue:hover{background:#edf3f8}
.af-editor .af-dialog h2{font-size:27px;line-height:1.2;color:#003B71}
.af-editor .af-dialog{max-height:calc(100dvh - 32px);overflow-y:auto}
/* Reference layout: devotional banner and a compact, readable guided editor. */
.af-editor.af-wizard{max-width:1180px;padding:0;margin:20px auto 40px;background:#fdfcfa;color:#252b32}
.af-wizard .af-hero{position:relative;display:flex;align-items:center;min-height:250px;overflow:hidden;border:1px solid #e6c992;border-radius:12px;background:#fffaf0 url('assets/mensagens-fe-banner.png') center 43%/cover no-repeat;box-shadow:0 2px 8px #775a2220;margin:0 0 16px;padding:22px 21% 22px 27%}
.af-wizard .af-hero-copy{position:relative;width:100%;z-index:1;text-align:center}
.af-wizard .af-eyebrow{display:flex;align-items:center;justify-content:center;gap:14px;color:#bd7815;font:700 13px/1.4 Arial,sans-serif;letter-spacing:2px}
.af-wizard .af-eyebrow:before,.af-wizard .af-eyebrow:after{content:'';width:55px;height:1px;background:#d8ae68}
.af-wizard .af-hero h1{font:700 clamp(27px,3vw,40px)/1.02 Georgia,serif;color:#003B71;margin:10px 0 12px;letter-spacing:-.7px}
.af-wizard .af-hero p{font:15px/1.4 Arial,sans-serif;color:#5c6570;margin:0}
.af-wizard .af-benefits{display:flex;justify-content:center;align-items:center;list-style:none;padding:0;margin:22px -20px 0;gap:0}
.af-wizard .af-benefits li{display:flex;align-items:center;gap:12px;padding:0 19px;font:12px/1.35 Arial,sans-serif;color:#3b4653;text-align:left;margin:0;white-space:nowrap}
.af-wizard .af-benefits li+li{border-left:1px solid #e3d5bc}
.af-wizard .af-benefits svg{width:25px;height:25px;flex-shrink:0;fill:#c48620;color:#c48620}
.af-wizard .af-hero-quote{position:absolute;right:9%;top:38px;border:0;padding:0;margin:0;color:#be7c1d;font:italic 27px/1.3 Georgia,serif;text-align:left}
.af-wizard .af-hero-quote span{display:block;font:20px Georgia,serif;text-align:center;margin-top:10px}
.af-wizard .af-stepper{margin:0 0 12px;gap:10px}
.af-wizard .af-stepper button{border-radius:6px;padding:10px;font-size:12px;min-height:43px}
.af-wizard .af-step-description{font-size:13px;color:#5c6570;margin:12px 0 16px}
.af-wizard .af-layout{border-radius:10px;grid-template-columns:42% 58%}
.af-wizard .af-controls,.af-wizard .af-preview{padding:22px 28px}
.af-wizard .af-preview-heading{font-size:14px;margin-bottom:14px}
.af-wizard .af-backgrounds{gap:10px;margin:10px 0}
.af-wizard .af-backgrounds button{aspect-ratio:1.7}
.af-wizard .af-gallery-status:empty{display:none}
.af-wizard .af-gallery-more{padding:8px;margin-top:8px}
.af-wizard .af-controls fieldset>p{margin:8px 0;font-size:12px}
.af-wizard[data-step='1'] .af-controls fieldset:first-child{margin-bottom:20px;padding-bottom:16px}
.af-wizard legend{font-size:18px;margin-bottom:12px}
.af-wizard textarea{min-height:82px}
.af-wizard .af-preview canvas{border-radius:7px;box-shadow:none}
.af-wizard .af-step-error:empty{display:none}
.af-wizard .af-step-navigation .af-next{padding:13px 24px;font-size:13px;border-radius:6px}
@media(min-width:741px){.af-wizard:not([data-step='3']) .af-preview canvas{max-height:490px;object-fit:contain}}
@media(max-width:1000px) and (min-width:741px){.af-wizard .af-hero{padding-left:25%;padding-right:19%;min-height:235px}.af-wizard .af-hero-quote{right:5%;font-size:23px}.af-wizard .af-benefits li{padding:0 10px;gap:7px;font-size:10px}.af-wizard .af-hero p{font-size:13px}.af-wizard .af-controls,.af-wizard .af-preview{padding:20px}}
@media(max-width:740px){.af-editor.af-wizard{margin:12px auto 30px;padding:0 10px}.af-wizard .af-hero{display:block;padding:175px 18px 22px;min-height:0;background-position:20% top;background-size:auto 245px;background-repeat:no-repeat;background-color:#fffaf0}.af-wizard .af-hero:before{content:'';position:absolute;inset:125px 0 0;background:linear-gradient(transparent,#fffaf0 55px)}.af-wizard .af-hero h1{font-size:30px;line-height:1.08}.af-wizard .af-hero p{font-size:13px}.af-wizard .af-hero-quote{display:none}.af-wizard .af-eyebrow{font-size:11px;gap:9px}.af-wizard .af-eyebrow:before,.af-wizard .af-eyebrow:after{width:25px}.af-wizard .af-benefits{margin:18px 0 0;gap:0;justify-content:space-between}.af-wizard .af-benefits li{flex:1;flex-direction:column;gap:7px;padding:0 7px;font-size:10px;text-align:center;white-space:normal}.af-wizard .af-benefits svg{width:21px;height:21px}.af-wizard .af-layout{grid-template-columns:1fr}.af-wizard .af-controls,.af-wizard .af-preview{padding:18px}.af-wizard .af-stepper{gap:5px}.af-wizard .af-stepper button{font-size:11px;padding:9px 3px}.af-wizard .af-step-description{font-size:12px}.af-wizard:not([data-step='3']) .af-preview canvas{max-width:100%;max-height:none}.af-wizard .af-desktop-break{display:none}}
.af-editor.af-wizard,.af-wizard .af-stepper{scroll-margin-top:110px}
