.invello-ai-home{--ia-accent:#ba697f;--ia-ink:#32292e;max-width:790px;margin:28px auto;padding:clamp(24px,5vw,50px);border-radius:24px;background:linear-gradient(150deg,#fffdfd,#fdf5f7);border:1px solid #ecdce2;box-shadow:0 20px 70px #7a4a5c0e;text-align:center;color:var(--ia-ink);font-family:inherit}
.invello-ai-home *{box-sizing:border-box}.invello-ai-mark{font-size:36px;color:var(--ia-accent);margin:0 0 10px}.invello-ai-home h2{font-size:clamp(26px,4vw,40px);font-weight:600;letter-spacing:-.03em;margin:0 0 12px;color:#36242e}.invello-ai-home>p{margin:0 auto 20px;max-width:560px;font-size:15px;line-height:1.65;color:#6b5e65}.invello-ai-form{display:flex;flex-direction:column;gap:16px}.invello-ai-drop{cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:7px;border:2px dashed #dcb8c4;border-radius:16px;padding:26px 18px;background:#fff;transition:border-color .15s,background .15s}.invello-ai-drop:hover,.invello-ai-drop:focus-within{border-color:var(--ia-accent);background:#fff9fb}.invello-ai-drop-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:#fbecef;color:#a65572;font-size:32px}.invello-ai-drop strong{font-size:16px}.invello-ai-drop small,.invello-ai-small{font-size:12px;color:#81727a}.invello-ai-drop [data-file-name]{font-size:13px;color:#8c5064;max-width:100%;overflow-wrap:anywhere}#invello-ai-file{position:absolute;opacity:0;clip-path:inset(50%);width:1px;height:1px}.invello-ai-consent{display:flex;align-items:flex-start;gap:9px;text-align:left;font-size:13px;line-height:1.5;color:#665a61}.invello-ai-consent input{accent-color:var(--ia-accent);margin-top:3px;flex-shrink:0}.invello-ai-action{border:0;border-radius:12px;background:var(--ia-accent)!important;color:white!important;font-size:15px;font-weight:600;line-height:1.4;display:inline-block;padding:15px 24px;text-decoration:none!important;cursor:pointer;transition:filter .15s}.invello-ai-action:hover{filter:brightness(.94)}.invello-ai-action:disabled{opacity:.48;cursor:not-allowed}.invello-ai-small{margin:0}.invello-ai-progress{display:flex;align-items:center;flex-direction:column;gap:9px;color:#7e4760}.invello-ai-progress[hidden]{display:none}.invello-ai-progress small{font-size:12px;color:#76676f}.invello-ai-spinner{width:27px;height:27px;border:3px solid #f2dce5;border-top-color:var(--ia-accent);border-radius:50%;animation:invello-ai-rotate .8s linear infinite}@keyframes invello-ai-rotate{to{transform:rotate(360deg)}}.invello-ai-status{font-size:13px;color:#a52938;line-height:1.5;min-height:1em}.invello-ai-status.is-success{color:#357d5a}
@media(max-width:650px){.invello-ai-home{margin:15px 0;padding:24px 18px;border-radius:17px}.invello-ai-home h2{font-size:27px}.invello-ai-drop{padding:23px 10px}.invello-ai-action{width:100%}}

.invello-ai-previous{margin-top:26px;text-align:left;border-top:1px solid #ebdfe3;padding-top:18px}.invello-ai-previous h3{font-size:17px;margin:0 0 12px}.invello-ai-previous-list{display:flex;flex-direction:column;gap:7px}.invello-ai-previous-list a{display:flex;justify-content:space-between;gap:12px;background:#fff;padding:12px 14px;border-radius:9px;border:1px solid #f0e4e8;color:#513542;text-decoration:none;font-size:13px}.invello-ai-previous-list span{color:#a34f6c;white-space:nowrap}

/* Auto-mounted homepage section: deliberately independent of theme CSS. */
.invello-ai-home-section{width:100%;padding:clamp(24px,4vw,58px) 16px;box-sizing:border-box;clear:both}
.invello-ai-home-section .invello-ai-home{margin:0 auto}
@media(max-width:650px){.invello-ai-home-section{padding:22px 13px}.invello-ai-home-section .invello-ai-home{margin:0 auto}}
/* v0.3.0: progress overlay remains above the homepage and communicates server stages. */
.invello-ai-modal[hidden]{display:none!important}
.invello-ai-modal{position:fixed;inset:0;z-index:2147483600;display:flex;align-items:center;justify-content:center;background:rgba(30,24,28,.72);padding:18px;box-sizing:border-box;overflow-y:auto}
.invello-ai-modal *{box-sizing:border-box}
.invello-ai-modal-card{width:min(100%,475px);max-height:min(96dvh,780px);overflow-y:auto;border-radius:22px;background:#fffdfd;padding:clamp(20px,4vw,34px);box-shadow:0 30px 95px #0004;text-align:center;font-family:inherit;color:#392e35}
.invello-ai-modal-symbol{display:grid;place-items:center;width:66px;height:66px;margin:0 auto 16px;border-radius:50%;background:#fae8ef;color:#ba697f;font-size:32px;font-weight:600;animation:invello-ai-pulse 1.8s ease-in-out infinite}
.invello-ai-modal-card.is-error .invello-ai-modal-symbol{background:#fce3e3;color:#a52e39;animation:none}
.invello-ai-modal-card.is-complete .invello-ai-modal-symbol{background:#e0f4e9;color:#26734c;animation:none}
.invello-ai-modal h3{font-size:clamp(21px,3.2vw,27px);line-height:1.2;margin:0 0 12px;color:#33232d}
.invello-ai-modal-message{font-size:14px;line-height:1.6;color:#6c5b64;min-height:23px;margin:0 0 20px}
.invello-ai-steps{display:grid;gap:8px;text-align:left}
.invello-ai-step{display:flex;gap:12px;align-items:center;padding:10px 12px;background:#f9f7f8;border:1px solid #f0e7eb;border-radius:10px;color:#8b7c85;font-size:13px}
.invello-ai-step-dot{display:grid;place-items:center;flex:0 0 24px;height:24px;border-radius:50%;background:#e7dfe2;color:#665c62;font-size:12px;font-weight:700}
.invello-ai-step.is-done{color:#386c4c;background:#f2faf4}
.invello-ai-step.is-done .invello-ai-step-dot{background:#d5f0de;color:#24633f}
.invello-ai-step.is-active{border-color:#e9c1ce;background:#fff2f6;color:#874660;font-weight:600}
.invello-ai-step.is-active .invello-ai-step-dot{background:#ba697f;color:#fff}
.invello-ai-modal-foot{font-size:12px;color:#897581;line-height:1.5;margin:20px 0 0}
.invello-ai-modal-close{margin-top:17px;cursor:pointer;border:0;border-radius:9px;background:#ba697f;color:#fff;font:inherit;font-weight:600;font-size:14px;padding:12px 22px}
@keyframes invello-ai-pulse{50%{transform:scale(1.06);opacity:.78}}

/* v0.4.0: review stage without removing any existing editor controls. */
.invello-ai-review{position:fixed;inset:0;z-index:2147483601;display:grid;place-items:center;background:#261c24bb;padding:12px;overflow:auto}.invello-ai-review-card{box-sizing:border-box;max-width:610px;width:100%;max-height:96dvh;overflow:auto;background:#fff;border-radius:18px;padding:clamp(14px,3vw,26px);font-family:inherit;box-shadow:0 25px 95px #0004;text-align:center}.invello-ai-review-card h3{margin:0 0 10px;font-size:24px}.invello-ai-review-card p{font-size:13px;line-height:1.5;color:#685763}.invello-ai-review-stage{position:relative;width:fit-content;max-width:100%;margin:15px auto;background:#f7f4f4;touch-action:none;cursor:crosshair;user-select:none;overflow:hidden;border:1px solid #e4d3d9;border-radius:8px}.invello-ai-review-stage img{width:auto;height:auto;max-width:100%;max-height:48dvh;display:block;pointer-events:none}.invello-ai-review-selection{position:absolute;border:2px dashed #bb4b74;background:#ba697f33;pointer-events:none}.invello-ai-review-selection[hidden]{display:none}.invello-ai-review-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}.invello-ai-review-secondary{padding:12px;border:1px solid #d9b9c5;border-radius:10px;background:#fff;color:#76415a;font-weight:600;cursor:pointer}.invello-ai-review-secondary:disabled,.invello-ai-review-actions button:disabled{opacity:.5;cursor:wait}
.invello-ai-print{max-width:790px;margin:28px auto;padding:25px;border:1px solid #ead8dd;border-radius:20px;background:#fffafc;box-shadow:0 12px 40px #6941560c}.invello-ai-print h2{margin:0 0 10px;font-size:25px}.invello-ai-print p{color:#65565f}.invello-ai-print-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.invello-ai-print-form>label:not(.invello-ai-print-foil){display:grid;gap:6px;font-weight:600}.invello-ai-print-form select,.invello-ai-print-form input[type=number]{width:100%;padding:12px;border:1px solid #e5cbd4;border-radius:10px}.invello-ai-print-foil,.invello-ai-print-total,.invello-ai-print-note,.invello-ai-print-form>.invello-ai-action,.invello-ai-print-form>.invello-ai-status{grid-column:1/-1}.invello-ai-print-total{font-size:21px;font-weight:700;color:#a34d69!important;margin:0}.invello-ai-print-note{font-size:12px;margin:0}@media(max-width:600px){.invello-ai-print-form{grid-template-columns:1fr}.invello-ai-review-actions{display:grid}}

.invello-ai-order-jump{background:#ba697f!important;color:#fff!important;border:1px solid #ba697f!important;border-radius:8px;padding:9px 13px;font-weight:650;cursor:pointer;white-space:nowrap}.invello-ai-order-jump:hover{filter:brightness(.94)}

/* v0.5: review CTA remains visible when the artwork is tall or the phone is short. */
.invello-ai-review{align-items:center;overscroll-behavior:contain}
.invello-ai-review-card{display:flex;flex-direction:column;min-height:0;max-height:calc(100dvh - 24px);overflow:hidden}
.invello-ai-review-stage{flex:1 1 auto;min-height:90px;max-height:calc(100dvh - 260px);overflow:hidden;margin:8px auto;display:grid;place-items:center}
.invello-ai-review-stage img{max-height:100%;max-width:100%;object-fit:contain}
.invello-ai-review-actions{flex:0 0 auto;position:sticky;bottom:0;background:white;padding:10px 0 0;z-index:2}
.invello-ai-review-actions .invello-ai-action{display:inline-block!important;visibility:visible!important;opacity:1!important;min-height:46px;background:#ba697f!important;color:#fff!important}
@media(max-width:600px){.invello-ai-review-card{padding:12px;max-height:calc(100dvh - 16px)}.invello-ai-review-card h3{font-size:19px}.invello-ai-review-card p{margin:4px 0;font-size:12px}.invello-ai-review-stage{max-height:calc(100dvh - 275px)}.invello-ai-review-actions{display:flex;flex-direction:column;gap:5px}.invello-ai-review-actions button{width:100%;padding:10px!important;min-height:40px}}

/* 0.6.0: force visible checkout actions even under theme :hover overrides. */
.invello-ai-print .invello-ai-print-form button.invello-ai-action,
.invello-ai-print .invello-ai-print-form button.invello-ai-action:not(:hover),
.invello-ai-print .invello-ai-print-form button.invello-ai-action:hover,
.invello-ai-print .invello-ai-print-form button.invello-ai-action:focus,
.invello-ai-order-jump,.invello-ai-order-jump:not(:hover){background-color:#ba697f!important;color:#fff!important;opacity:1!important;visibility:visible!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;-webkit-text-fill-color:#fff!important;box-shadow:0 3px 14px #ba697f33!important;min-height:46px!important}
.invello-ai-print button.invello-ai-action:disabled{opacity:.55!important}

.invello-ai-foil-palette{display:flex;flex-wrap:wrap;align-items:center;gap:7px;padding:9px 0}.invello-ai-foil-palette small{flex:0 0 100%;font-weight:600;color:#804c61}.invello-ai-foil-color{border:1px solid #d5bcc6!important;border-radius:10px!important;padding:8px 12px!important;background:#fff!important;color:#473540!important;font-size:12px!important;font-weight:600!important;opacity:1!important;visibility:visible!important}.invello-ai-foil-color:before{content:' ';display:inline-block;width:13px;height:13px;border-radius:50%;background:var(--foil-color);vertical-align:middle;margin-right:5px}

/* 0.6.2: selection boundaries are pixel-aligned to the actual rendered image, not the review dialog. */
.invello-ai-review-selection{box-sizing:border-box!important;transform:none!important;margin:0!important;inset:auto;touch-action:none}
.invello-ai-review-stage{padding:0!important}

/* 0.6.3: show full invitation (no crop); overlay markers stay anchored to the rendered image. */
.invello-ai-review{overflow-y:auto!important;align-items:center!important}
.invello-ai-review-card{max-height:calc(100dvh - 16px)!important;overflow-y:auto!important;display:flex!important;flex-direction:column!important}
.invello-ai-review-stage{position:relative!important;display:block!important;flex:0 1 auto!important;width:fit-content!important;height:auto!important;max-width:100%!important;max-height:none!important;min-height:0!important;overflow:visible!important;margin:8px auto!important;touch-action:none}
.invello-ai-review-stage img{display:block!important;width:auto!important;height:auto!important;max-width:100%!important;max-height:clamp(160px,60dvh,720px)!important;object-fit:contain!important}
.invello-ai-review-actions{position:sticky!important;bottom:0!important;background:#fff!important;z-index:8!important;padding:10px 0!important}
.invello-ai-review-selection{pointer-events:none!important;border:2px dashed #b34570!important;background:#ba697f22!important;z-index:4!important}
.invello-ai-review-remove{pointer-events:auto!important;position:absolute!important;right:-12px!important;top:-13px!important;width:27px!important;height:27px!important;border-radius:50%!important;border:2px solid #fff!important;background:#963550!important;color:#fff!important;line-height:20px!important;font-size:22px!important;padding:0!important;cursor:pointer!important;box-shadow:0 2px 7px #0003!important}
@media(max-width:600px){.invello-ai-review-stage img{max-height:55dvh!important}.invello-ai-review-actions{display:flex!important;flex-direction:column!important;gap:5px!important}}

/* v0.6.5 — Animated activity bar; percentage indicates completed stages only. */
.invello-ai-modal-progressbar{position:relative;width:100%;height:12px;overflow:hidden;background:#f3e3e9;border-radius:50px;margin:6px auto 4px;border:1px solid #eed8e1}
.invello-ai-modal-progressfill{position:relative;width:0;height:100%;background:linear-gradient(90deg,#b95e79,#dd97ae);border-radius:50px;transition:width .55s ease;overflow:hidden}
.invello-ai-modal-progressbar.is-running .invello-ai-modal-progressfill::after{content:"";position:absolute;inset:0;background:linear-gradient(105deg,transparent 0%,rgba(255,255,255,.55) 44%,transparent 65%);transform:translateX(-100%);animation:invello-ai-progress-glow 1.25s ease-in-out infinite}
.invello-ai-modal-progressinfo{margin:3px 0 12px;color:#89566e;font-size:12px;text-align:center}
@keyframes invello-ai-progress-glow{to{transform:translateX(100%)}}
@media(prefers-reduced-motion:reduce){.invello-ai-modal-progressbar.is-running .invello-ai-modal-progressfill::after{animation:none}}


/* 0.6.6 — Masks review BEFORE the first cleanup. */
.invello-ai-mask-review .invello-ai-review-card{max-width:850px!important}
.invello-ai-mask-review .invello-ai-review-stage{background:#f8f2f5!important}
.invello-ai-mask-review .invello-ai-review-stage img{max-height:min(65dvh,840px)!important}
.invello-ai-mask-selection{border:2px dashed #ae3565!important;background:rgba(186,105,127,.18)!important}
.invello-ai-mask-count{color:#994763!important;font-size:13px!important;font-weight:700;margin:3px 0!important}
.invello-ai-mask-detected{text-align:left;font-size:12px;color:#66505b;border-top:1px solid #eee0e5;padding-top:8px}
.invello-ai-mask-detected summary{cursor:pointer;font-weight:650}
.invello-ai-mask-textlist{max-height:100px;overflow:auto;display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}
.invello-ai-mask-textlist span{border:1px solid #ead7df;background:#faf5f7;border-radius:6px;padding:3px 6px}
@media(max-width:600px){.invello-ai-mask-review .invello-ai-review-stage img{max-height:57dvh!important}}

/* v0.6.8: Studio percentage rectangles are anchored to the actual image. */
.invello-ai-mask-review .invello-ai-mask-image-layer{position:relative!important;display:inline-block!important;vertical-align:top!important;line-height:0!important;max-width:100%!important;touch-action:none!important}
.invello-ai-mask-review .invello-ai-mask-image-layer>img{display:block!important;max-width:100%!important;width:auto!important;height:auto!important;object-fit:contain!important}
.invello-ai-mask-review .invello-ai-review-selection{box-sizing:border-box!important;position:absolute!important;transform:none!important;pointer-events:none!important}
.invello-ai-mask-review .invello-ai-review-remove{pointer-events:auto!important}

/* Studio 2.3.28 import dialog styles; no global admin stylesheet. */
.ccm-ai-import-dialog{width:min(94vw,570px);max-height:min(85vh,760px);overflow:auto;border:1px solid #deded6;border-radius:16px;box-shadow:0 22px 70px #26312b66;padding:0;color:#2e4037;background:white;z-index:100001}
.ccm-ai-import-dialog::backdrop{background:#1b2526a0}
.ccm-ai-import-header{padding:18px 20px;border-bottom:1px solid #ebebe5;display:flex;justify-content:space-between;align-items:center;gap:12px}
.ccm-ai-import-header h2{font-size:21px;margin:0;line-height:1.3}
.ccm-ai-import-header button{border:0;background:none;font-size:20px;cursor:pointer}
.ccm-ai-import-form{padding:20px;display:grid;gap:16px}
.ccm-ai-import-form .ccm-ai-help{margin:0;color:#64726a;line-height:1.55}
.ccm-ai-import-form .ccm-ai-file-label{display:grid;gap:7px;font-weight:650}
.ccm-ai-import-form input[type=file],.ccm-ai-import-form select{width:100%;padding:11px;border:1px solid #ced6ce;border-radius:8px;background:#fff}
.ccm-ai-import-form .ccm-ai-consent{display:flex;gap:10px;font-size:12px;line-height:1.5;align-items:flex-start}
.ccm-ai-import-form .ccm-ai-consent input{margin-top:3px;flex:none}
.ccm-ai-import-status{font-size:12px;color:#8c4b5d;white-space:pre-wrap;margin:0}
.ccm-ai-import-actions{display:flex;justify-content:end;gap:8px}
.ccm-ai-import-actions button{padding:10px 14px;border:1px solid #cfd8ce;border-radius:7px;background:#fff;cursor:pointer}
.ccm-ai-import-actions .ccm-ai-import-submit{background:#2c4236;color:#fff;border-color:#2c4236;font-weight:700}
.ccm-ai-import-actions button:disabled{opacity:.5;cursor:wait}
.ccm-bg-ai-dialog{width:min(96vw,850px);max-height:90vh}
.ccm-bg-ai-dialog .ccm-ai-import-form{gap:12px}
.ccm-bg-ai-options{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}
.ccm-bg-ai-options input[type=number]{width:100%;border:1px solid #ced6ce;border-radius:8px;padding:10px}
.ccm-bg-ai-stage{display:block;position:relative;width:fit-content;max-width:100%;margin:0 auto;line-height:0;touch-action:none;cursor:crosshair;border:1px solid #d2c9c5;user-select:none;background:#f9f6f1}
.ccm-bg-ai-stage[hidden]{display:none}
.ccm-bg-ai-image{display:block;max-width:100%;max-height:51vh;pointer-events:none;user-select:none}
.ccm-bg-ai-overlay{position:absolute;inset:0;pointer-events:none}
.ccm-bg-ai-rect{position:absolute;pointer-events:auto;padding:0;border:1.5px solid #ae3158;background:#e8487440;cursor:pointer;box-shadow:0 0 0 1px #fff9;min-width:2px;min-height:2px}
.ccm-bg-ai-rect:not(.is-enabled){border:1px dashed #748278;background:#ffffff11;opacity:.55}
.ccm-bg-ai-draft{position:absolute;pointer-events:none;border:2px dashed #bf603c;background:#dba14a33}
.ccm-bg-ai-areas{max-height:160px;overflow:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:5px}
.ccm-bg-ai-area{display:flex;align-items:center;gap:6px;padding:7px 8px;border:1px solid #eee3df;border-radius:7px;font-size:12px;min-width:0;background:#fdfaf8}
.ccm-bg-ai-area span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
.ccm-bg-ai-area button{border:none;background:transparent;color:#8b5061;cursor:pointer;font-size:17px;padding:1px 5px}
.ccm-bg-ai-buttons{flex-wrap:wrap;justify-content:space-between}
@media(max-width:650px){.ccm-bg-ai-options{grid-template-columns:1fr}.ccm-bg-ai-buttons{flex-direction:column}.ccm-bg-ai-buttons button{width:100%}}
.ccm-bg-ai-overlay[hidden]{display:none}
.ccm-ai-import-dialog [hidden]{display:none!important}
.invello-font-review{width:min(760px,95vw);max-height:92vh}.invello-font-review-row{display:grid;gap:8px;padding:14px;border:1px solid #e8dce0;border-radius:12px;margin:12px 0;background:#fff}.invello-font-review-sample{padding:12px;background:#f8f6f4;border-radius:7px;font-size:22px;min-height:44px}.invello-font-review-row select{width:100%;max-width:none}.invello-font-recommended{display:grid;gap:7px}.invello-font-recommendation{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:7px;border:1px solid #eee;border-radius:8px}.invello-font-recommendation span{flex:1;min-width:120px}.invello-font-recommendation button{border:1px solid #ba697f;border-radius:7px;padding:7px 10px;background:#ba697f;color:#fff;cursor:pointer}.invello-font-recommendation a{color:#9c4260;text-decoration:underline}
.invello-font-external-sample{width:100%;font-size:25px!important;line-height:1.5;padding:10px 8px;background:#fffdfb;border:1px solid #ece3e5;border-radius:7px;white-space:normal;overflow-wrap:anywhere;color:#302b2f}.invello-font-recommendation{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.invello-font-recommendation>.invello-font-external-sample{flex:1 0 100%}
.invello-font-search-input{display:block;width:100%;max-width:100%;margin:10px 0 6px;padding:9px;border:1px solid #c7c7c7;border-radius:7px}.invello-font-recommended{max-height:370px;overflow:auto}.invello-font-recommendation{min-width:0}.invello-font-external-sample{overflow-wrap:anywhere}

.invello-home-studio [hidden]{display:none!important}
.invello-home-studio .ccm-bg-ai-image{width:auto!important;height:auto!important;max-width:100%!important;max-height:51vh!important;object-fit:contain}
.invello-home-studio .ccm-bg-ai-rect{margin:0;min-height:2px;line-height:normal;border-radius:0}
/* Customers can preview/select installed fonts; font installation remains admin-only. */
.invello-home-studio.is-customer .invello-font-recommendation button{display:none}


/* v0.7.5 — Explicit confirmation before a mockup is cropped/reoriented. */
.invello-crop-review{position:fixed;inset:0;z-index:2147483642;background:#201923d4;padding:clamp(8px,2vw,24px);display:flex;align-items:center;justify-content:center;overflow:auto;box-sizing:border-box}
.invello-crop-review *{box-sizing:border-box}
.invello-crop-card{background:#fff;border-radius:16px;padding:clamp(14px,2.5vw,26px);width:min(100%,1000px);max-height:96dvh;overflow:auto;font-family:inherit;color:#36262f;box-shadow:0 28px 100px #0006}
.invello-crop-card h2{font-size:clamp(19px,3vw,26px);margin:0 0 8px;font-weight:650}
.invello-crop-intro{font-size:14px;line-height:1.5;color:#715b67;margin:0 0 16px}
.invello-crop-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.invello-crop-cols>div>strong{display:block;font-size:13px;margin:0 0 8px;color:#5e4250}
.invello-crop-source,.invello-crop-result{position:relative;width:fit-content;max-width:100%;margin:0 auto;min-height:120px;background:#f6f1f3;border-radius:9px;overflow:hidden}
.invello-crop-source img,.invello-crop-result img{display:block;max-width:100%;width:auto;height:auto;max-height:52dvh;object-fit:contain;user-select:none}
.invello-crop-source svg{position:absolute;inset:0;width:100%;height:100%;touch-action:none;overflow:visible}
.invello-crop-poly{fill:#ba697f29;stroke:#ba697f;stroke-width:.55;vector-effect:non-scaling-stroke;pointer-events:none}
.invello-crop-handle{fill:#fff;stroke:#a83359;stroke-width:.85;cursor:grab;pointer-events:all;vector-effect:non-scaling-stroke}
.invello-crop-handle:active{cursor:grabbing}
.invello-crop-message{font-size:13px;min-height:18px;margin:14px 0 10px;color:#6c4b5b}
.invello-crop-actions{display:flex;flex-wrap:wrap;gap:9px;justify-content:flex-end}
.invello-crop-actions button{border:1px solid #d6b7c4;border-radius:9px;background:#fff;color:#75465c;padding:11px 15px;font-size:14px;font-weight:600;cursor:pointer}
.invello-crop-actions button.invello-crop-primary{background:#ba697f;color:#fff;border-color:#ba697f}
.invello-crop-actions button:disabled{opacity:.48;cursor:not-allowed}
@media(max-width:680px){.invello-crop-cols{grid-template-columns:1fr;gap:10px}.invello-crop-source img,.invello-crop-result img{max-height:26dvh}.invello-crop-actions{display:grid;grid-template-columns:1fr}.invello-crop-actions button{width:100%}}

.invello-ai-mockup-option{display:flex;gap:9px;text-align:left;align-items:center;font-size:12px;color:#75616b;cursor:pointer;line-height:1.5}
.invello-ai-mockup-option input{accent-color:#ba697f;flex:none;margin:0}

/* 0.7.6 — Two-card mockup selection; each chosen card is reviewed separately. */
.invello-cards-card{width:min(100%,920px)}
.invello-cards-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.invello-cards-item{display:grid;gap:7px;justify-items:center;align-content:start;background:#faf7f8;padding:12px;border:1px solid #e9dce0;border-radius:12px;min-width:0}
.invello-cards-item strong{font-size:15px;color:#5e4250}
.invello-cards-item img{max-height:min(35dvh,270px);max-width:100%;width:auto;height:auto;object-fit:contain;border-radius:4px;background:#fff;box-shadow:0 4px 15px #0001}
.invello-cards-item small{font-size:12px;color:#735e68;text-align:center;line-height:1.4}
.invello-cards-order{display:flex;align-items:center;gap:12px;margin-top:14px;flex-wrap:wrap;font-size:14px;color:#5e4250;font-weight:600}
.invello-cards-order select{min-width:145px;border:1px solid #d6b7c4;border-radius:8px;padding:9px 12px;background:#fff;color:#493841}
.invello-crop-actions button[hidden]{display:none!important}
@media(max-width:680px){.invello-cards-grid{gap:8px}.invello-cards-item{padding:7px}.invello-cards-item img{max-height:22dvh}.invello-cards-card .invello-crop-actions{grid-template-columns:1fr}.invello-cards-order{align-items:flex-start;flex-direction:column;gap:5px}}

/* 0.7.7 — Completed-scan Studio buttons appear ABOVE the image. */
.invello-home-studio .ccm-bg-ai-buttons{position:sticky;top:0;z-index:10;background:#fffdfd;padding:10px 4px;border-block:1px solid #eee1e6;box-shadow:0 5px 14px #39253613;gap:8px;justify-content:flex-end}
.invello-home-studio .ccm-bg-ai-buttons button{min-height:42px}
@media(max-width:650px){.invello-home-studio .ccm-bg-ai-buttons{position:relative;display:flex;flex-direction:row;flex-wrap:wrap}.invello-home-studio .ccm-bg-ai-buttons button{flex:1 1 43%;width:auto!important;min-width:0;font-size:13px;padding:9px 8px!important}}

/* 0.7.11 — A transparent per-unit price breakdown, readable in mobile and desktop. */
.invello-ai-print-form>.invello-ai-print-breakdown{grid-column:1/-1}
.invello-ai-print-breakdown{margin:7px 0 4px;padding:10px 16px 12px;background:#fff;border:1px solid #ecd8df;border-radius:14px;color:#473943}
.invello-ai-price-row{display:flex;justify-content:space-between;align-items:baseline;gap:14px;padding:10px 0;border-bottom:1px solid #f0e6e9;font-size:15px;line-height:1.35}
.invello-ai-price-row strong{font-weight:650;color:#31282d;white-space:nowrap;font-variant-numeric:tabular-nums}
.invello-ai-price-row[hidden]{display:none!important}
.invello-ai-price-unit{border-top:1px solid #decad2;margin-top:3px;font-weight:700}
.invello-ai-price-unit strong{font-size:18px}
.invello-ai-price-grand{margin:7px -9px 0;padding:14px 9px 8px;border:0;border-radius:9px;color:#913c5b;font-size:17px;font-weight:700}
.invello-ai-price-grand strong{color:#913c5b;font-size:22px;font-weight:750}
.invello-ai-print-breakdown .invello-ai-price-hint{font-size:12px;color:#74646e;margin:8px 0 0;line-height:1.4}
@media(max-width:600px){.invello-ai-print-breakdown{padding:8px 12px}.invello-ai-price-row{font-size:14px}.invello-ai-price-grand{font-size:15px}.invello-ai-price-grand strong{font-size:19px}}

/* 0.7.12: optional envelope step after the print action (without modifying Studio). */
.invello-ai-print-form>.invello-ai-envelope-stage{grid-column:1/-1}
.invello-ai-envelope-stage{padding:17px;background:#fff;border:1px solid #e8d6dc;border-radius:14px;scroll-margin-top:24px}
.invello-ai-envelope-stage[hidden],.invello-ai-envelope-palette[hidden],.invello-ai-envelope-option[hidden]{display:none!important}
.invello-ai-envelope-stage h3{font-size:19px;line-height:1.3;margin:0 0 7px;color:#3b3036}
.invello-ai-envelope-price-summary{margin:0 0 12px!important;font-size:14px}
.invello-ai-envelope-choices{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:12px}
.invello-ai-envelope-choices label{display:flex;gap:7px;align-items:center;min-height:41px;padding:8px 11px;border-radius:9px;background:#faf4f6;border:1px solid #eadde1;font-weight:600;cursor:pointer}
.invello-ai-envelope-choices input,.invello-ai-envelope-option input{accent-color:#ba697f}
.invello-ai-envelope-palette{margin-top:8px}
.invello-ai-envelope-search{display:flex!important;flex-wrap:wrap;align-items:center;gap:10px;font-weight:600;margin-bottom:10px}
.invello-ai-envelope-search input[type=search]{flex:1;min-width:170px;max-width:400px;width:100%;padding:10px;border:1px solid #e5cbd4;border-radius:9px;box-sizing:border-box}
.invello-ai-envelope-grid{max-height:355px;overflow-y:auto;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;align-content:start;padding:3px;scrollbar-width:thin}
.invello-ai-envelope-option{position:relative;min-width:0;text-align:center;display:flex!important;flex-direction:column;align-items:center;gap:4px;padding:9px 5px 8px;border:1px solid #e2dce0;border-radius:10px;cursor:pointer;background:#fff;transition:border-color .12s,background-color .12s}
.invello-ai-envelope-option:has(input:checked){border:2px solid #ba697f;padding:8px 4px 7px;background:#fff5f8;box-shadow:0 0 0 2px #ba697f24}
.invello-ai-envelope-option input{position:absolute;top:6px;left:7px;width:15px;height:15px;margin:0}
.invello-ai-envelope-sample{--envelope-color:#eee;display:block;width:68px;height:49px;margin:10px auto 3px;max-width:85%;background:var(--envelope-color);border:1px solid #0002;border-radius:2px;position:relative;overflow:hidden;box-shadow:0 4px 8px #0002}
.invello-ai-envelope-sample:before{content:'';position:absolute;left:0;right:0;top:0;height:78%;clip-path:polygon(0 0,100% 0,50% 100%);background:linear-gradient(to bottom,#ffffff28,#00000011);border-bottom:1px solid #0002}
.invello-ai-envelope-sample:after{content:'';position:absolute;inset:0;background:linear-gradient(135deg,transparent 48%,#00000015 50%,transparent 52%),linear-gradient(225deg,transparent 48%,#00000015 50%,transparent 52%);opacity:.7}
.invello-ai-envelope-option-name{font-size:12px;line-height:1.25;overflow-wrap:anywhere;color:#383239;font-weight:600}
.invello-ai-envelope-option small{font-size:11px;color:#746d73}
.invello-ai-envelope-caption{font-size:12px!important;line-height:1.4;margin:9px 0 0!important}
@media(max-width:760px){.invello-ai-envelope-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-height:330px;gap:7px}}
@media(max-width:380px){.invello-ai-envelope-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.invello-ai-envelope-running-total{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:12px 2px 0;border-top:1px solid #e9dbe1;font-size:14px;font-weight:600;margin:12px 0 0!important}.invello-ai-envelope-running-total strong{font-size:18px;color:#ba697f;white-space:nowrap}

/* Melhorar qualidade: controlos visíveis e comparação lado a lado com divisor móvel. */


.invello-ai-saved-tools{margin:24px 0;padding:18px 20px;border:1px solid #eadfe4;border-radius:18px;background:#fff;box-shadow:0 12px 32px rgba(0,0,0,.04)}
.invello-ai-saved-tools h2{margin:0 0 8px;font-size:1.25rem}
.invello-ai-saved-tools p{margin:0 0 14px}
.invello-ai-saved-tools-actions{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:12px}
.invello-ai-saved-tools .invello-ai-action[disabled]{opacity:.65;cursor:not-allowed}

/* v0.7.16: visible saved-design trial controls, independent of the home-page theme variable. */
.invello-ai-saved-tools{--ia-accent:#ba697f;box-sizing:border-box;max-width:980px;margin:18px auto 22px;padding:20px;background:#fff;border:1px solid #eadce2;border-radius:15px;box-shadow:0 8px 32px rgba(67,24,46,.05);color:#32292e}
.invello-ai-saved-tools *{box-sizing:border-box}
.invello-ai-saved-tools-actions{display:flex!important;gap:10px;flex-wrap:wrap;min-height:52px;margin:16px 0 8px;visibility:visible!important}
.invello-ai-saved-tools-actions>button[data-invello-saved-upscale-button]{display:inline-flex!important;align-items:center;justify-content:center;position:relative;visibility:visible!important;opacity:1!important;background:#ba697f!important;color:white!important;border:1px solid #ba697f!important;border-radius:10px!important;font-size:15px!important;font-weight:700!important;padding:13px 20px!important;min-height:48px!important;cursor:pointer!important;text-align:center}
.invello-ai-saved-tools-actions>button:disabled{opacity:.5!important;cursor:progress!important}
.invello-ai-saved-tools .invello-ai-status{min-height:20px;font-size:13px;color:#855060}
@media(max-width:650px){.invello-ai-saved-tools{margin:14px 12px;padding:16px}.invello-ai-saved-tools-actions{display:grid!important;grid-template-columns:minmax(0,1fr)}.invello-ai-saved-tools-actions>button{width:100%!important}}

/* v0.7.16: before / after slider shared by desktop, mobile and touch. */
.invello-quality-dialog{box-sizing:border-box;position:fixed;inset:0;z-index:2147483646;margin:auto;padding:clamp(15px,2vw,24px);width:min(740px,96vw);max-width:96vw;max-height:96dvh;overflow:auto;background:#fff;border:1px solid #eadce2;border-radius:16px;color:#302b2e;box-shadow:0 25px 90px rgba(20,14,18,.26)}
.invello-quality-dialog::backdrop{background:rgba(25,16,21,.7)}
.invello-quality-dialog *{box-sizing:border-box}
.invello-quality-dialog h3{font-family:inherit;font-size:clamp(20px,3vw,25px);color:#2f2830;margin:0 0 8px}
.invello-quality-dialog>p{font-size:14px;color:#665760;margin:0 0 12px;line-height:1.5}
.invello-quality-stage{position:relative;display:block;overflow:hidden;touch-action:none;user-select:none;margin:12px auto 6px;width:fit-content;max-width:100%;border:1px solid #e7dede;border-radius:8px;background:#f9f7f5;cursor:ew-resize}
.invello-quality-before{display:block;max-width:100%;height:auto;width:auto;max-height:55dvh;object-fit:contain;margin:0 auto;pointer-events:none;user-select:none}
.invello-quality-after-clip{position:absolute;inset:0;clip-path:inset(0 0 0 50%);overflow:hidden;pointer-events:none}
.invello-quality-after{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none;user-select:none}
.invello-quality-divider{position:absolute;left:50%;top:0;bottom:0;width:2px;transform:translateX(-50%);background:#fff;box-shadow:0 0 0 1px rgba(45,29,38,.4);pointer-events:none}
.invello-quality-knob{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:44px;height:44px;border-radius:100%;background:#ba697f;border:3px solid #fff;box-shadow:0 2px 12px #0003;font-size:24px;font-weight:700;line-height:1;color:#fff}
.invello-quality-side-label{position:absolute;top:11px;z-index:1;padding:6px 9px;border-radius:6px;background:rgba(30,24,28,.7);color:#fff;font:600 12px/1.2 system-ui,sans-serif;pointer-events:none}
.invello-quality-label-left{left:11px}.invello-quality-label-right{right:11px}
.invello-quality-range{display:block;width:100%;margin:10px auto 18px;accent-color:#ba697f;cursor:ew-resize;min-height:26px}
.invello-quality-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;margin-top:12px}
.invello-quality-actions button{font:600 14px/1.3 system-ui,sans-serif;border:1px solid #ba697f!important;border-radius:8px!important;min-height:44px;padding:10px 16px;cursor:pointer}
.invello-quality-cancel{background:#fff!important;color:#8b4a61!important}
.invello-quality-apply{background:#ba697f!important;color:#fff!important}
.invello-quality-actions button:disabled{opacity:.55;cursor:wait}
.invello-quality-feedback{min-height:1.4em;color:#a43d54;font-size:13px}
@media(max-width:520px){.invello-quality-dialog{max-height:95dvh;padding:12px}.invello-quality-before{max-height:48dvh}.invello-quality-actions{display:grid;grid-template-columns:1fr}.invello-quality-actions button{width:100%}}

.invello-quality-fullres-links{display:flex;gap:14px;justify-content:space-between;flex-wrap:wrap;margin:6px 0 12px;font-size:13px}.invello-quality-fullres-links a{color:#904860;text-decoration:underline}





/* 0.7.24 — Indeterminate progress, visible throughout OpenAI Enhance. */
.invello-quality-processing[hidden]{display:none!important}
.invello-quality-processing{
  display:block;margin:14px 0 12px;padding:15px 16px;
  background:#fcf6f8;border:1px solid #f0dbe3;border-radius:12px;
  color:#633d4b;font-family:inherit;
}
.invello-quality-processing-row{display:flex;align-items:center;gap:13px;font-size:14px;font-weight:650;line-height:1.4}
.invello-quality-processing-spinner{
  flex:none;display:block;width:30px;height:30px;border-radius:50%;
  border:3px solid #e9cbd5;border-top-color:#ba697f;border-right-color:#ba697f;
  animation:invello-quality-spin .8s linear infinite;
}
.invello-quality-processing-track{
  height:5px;overflow:hidden;margin:14px 0 10px;
  border-radius:8px;background:#f1dfe6;position:relative;
}
.invello-quality-processing-track>span{
  position:absolute;top:0;bottom:0;left:0;width:42%;
  border-radius:8px;background:linear-gradient(90deg,#c97c95,#a54c6a,#c97c95);
  animation:invello-quality-bar 1.8s ease-in-out infinite;
}
.invello-quality-processing small{display:block;color:#916878;font-size:12px;line-height:1.4}
.invello-quality-is-processing .invello-ai-saved-tools-actions button[data-invello-saved-upscale-button]{
  opacity:.72!important;cursor:progress!important
}
@keyframes invello-quality-spin{to{transform:rotate(360deg)}}
@keyframes invello-quality-bar{0%{transform:translateX(-110%)}50%{transform:translateX(170%)}100%{transform:translateX(300%)}}
@media(prefers-reduced-motion:reduce){
 .invello-quality-processing-spinner{animation-duration:3s}
 .invello-quality-processing-track>span{animation-duration:5s}
}

/* 0.7.25 — premium blur-to-clear enhancement preview; no fictitious percentage. */
.invello-quality-face-control{display:flex;flex-direction:column;align-items:flex-start;gap:5px;max-width:100%;min-width:180px}
.invello-quality-face-control>small{font:400 12px/1.4 system-ui,sans-serif;color:#896c77}
.invello-ai-saved-tools .invello-quality-face-control>button{background:#ba697f!important;color:#fff!important;border:1px solid #ba697f!important;border-radius:10px!important;min-height:48px!important;padding:13px 20px!important;font-weight:700!important}
.invello-quality-work-dialog{box-sizing:border-box;position:fixed;inset:0;z-index:2147483646;margin:auto;width:min(620px,94vw);max-width:94vw;max-height:92dvh;overflow:auto;padding:clamp(16px,3vw,28px);border:1px solid #e9dbe0;border-radius:19px;background:#fffdfa;color:#372d31;box-shadow:0 28px 95px #1e13173e;text-align:center}
.invello-quality-work-dialog::backdrop{background:rgba(33,22,29,.72)}
.invello-quality-work-dialog *{box-sizing:border-box}
.invello-quality-work-dialog h3{font-family:inherit;font-size:clamp(20px,3vw,28px);line-height:1.3;margin:2px 0 7px;color:#3c3035}
.invello-quality-work-description{font:400 14px/1.6 system-ui,sans-serif;color:#816c74;margin:0 0 14px}
.invello-quality-work-frame{position:relative;isolation:isolate;overflow:hidden;display:inline-flex;justify-content:center;max-width:100%;border:1px solid #ead8e0;border-radius:13px;background:linear-gradient(150deg,#f7eef1,#fbf5f6);box-shadow:0 8px 25px #552f3f19}
.invello-quality-work-image{display:block;width:auto;height:auto;max-width:100%;max-height:48dvh;object-fit:contain;filter:blur(13px) saturate(.82) contrast(.91);animation:invello-work-unblur var(--invello-work-duration,38s) linear both;will-change:filter;transform:translateZ(0)}
.invello-quality-work-glow{position:absolute;inset:0;pointer-events:none;background:linear-gradient(108deg,transparent 30%,rgba(255,243,247,.17) 42%,rgba(255,255,255,.45) 50%,rgba(255,243,247,.17) 58%,transparent 70%);background-size:260% 100%;background-position:120% 0;mix-blend-mode:screen;animation:invello-work-shimmer 4.8s ease-in-out infinite}
.invello-quality-work-message{display:flex;justify-content:center;align-items:center;gap:10px;margin:17px 0 3px;font:650 14px/1.5 system-ui,sans-serif;color:#8e4f68}
.invello-quality-work-sparkle{font-size:23px;color:#ba697f;animation:invello-work-sparkle 2s ease-in-out infinite}
.invello-quality-work-note{font:400 12px/1.5 system-ui,sans-serif;color:#85717a;margin:8px auto 0;max-width:410px}
.invello-quality-work-error{font:500 13px/1.5 system-ui,sans-serif;color:#a63753;margin:14px auto 0}
.invello-quality-work-error[hidden],.invello-quality-work-close[hidden]{display:none!important}
.invello-quality-work-close{display:block;margin:17px auto 2px;background:#ba697f!important;color:#fff!important;border:0!important;border-radius:10px!important;padding:11px 29px!important;min-height:44px;cursor:pointer}
.invello-quality-work-failed .invello-quality-work-image{animation-play-state:paused}
.invello-quality-work-failed .invello-quality-work-glow{animation-play-state:paused}
.invello-quality-work-complete .invello-quality-work-glow{animation:none;opacity:0;transition:opacity .65s}
.invello-quality-again{background:#fff!important;color:#8b4a61!important;border:1px solid #ba697f!important;border-radius:8px!important;min-height:44px;padding:10px 16px!important;font:600 14px/1.3 system-ui,sans-serif;cursor:pointer}
@keyframes invello-work-unblur{0%{filter:blur(13px) saturate(.82) contrast(.91)}25%{filter:blur(9px) saturate(.86) contrast(.94)}52%{filter:blur(4.4px) saturate(.91) contrast(.97)}78%{filter:blur(1.8px) saturate(.97) contrast(.99)}100%{filter:blur(.65px) saturate(1) contrast(1)}}
@keyframes invello-work-shimmer{0%{background-position:130% 0}100%{background-position:-130% 0}}
@keyframes invello-work-sparkle{0%,100%{opacity:.5;transform:scale(.85)}50%{opacity:1;transform:scale(1.1)}}
@media(max-width:650px){.invello-quality-face-control{width:100%;align-items:stretch}.invello-quality-face-control button{width:100%}.invello-quality-work-dialog{width:95vw;max-height:93dvh;padding:15px}.invello-quality-work-image{max-height:48dvh}.invello-quality-work-message{font-size:13px}}
@media(prefers-reduced-motion:reduce){.invello-quality-work-image{animation:none;filter:blur(1px)}.invello-quality-work-glow,.invello-quality-work-sparkle{animation:none}}

/* 0.7.27 — customer chooses Enhance immediately after the finished scan.
   The Studio opens only after this quality step (or when explicitly skipped). */
.invello-ai-enhance-before-studio{
 display:inline-flex!important;align-items:center;justify-content:center;
 min-height:46px!important;padding:12px 20px!important;border:1px solid #b35c77!important;
 background:#ba697f!important;color:#fff!important;border-radius:10px!important;
 font:700 14px/1.25 system-ui,sans-serif!important;cursor:pointer!important;
 box-shadow:0 4px 14px rgba(161,70,101,.18)!important
}
.invello-ai-enhance-before-studio:disabled{opacity:.55;cursor:progress!important}
.invello-quality-gate-layer{
 position:fixed;inset:0;z-index:2147483500;overflow:auto;
 display:flex;align-items:center;justify-content:center;
 padding:18px;background:rgba(32,22,29,.76);
 -webkit-overflow-scrolling:touch
}
.invello-quality-gate-card{
 width:min(590px,100%);max-height:95dvh;overflow:auto;
 padding:clamp(18px,4vw,30px);background:#fffdfa;border-radius:20px;
 border:1px solid #ead6de;box-shadow:0 22px 85px rgba(30,14,25,.35);
 box-sizing:border-box;text-align:center;color:#3d3036
}
.invello-quality-gate-card *{box-sizing:border-box}
.invello-quality-gate-symbol{display:block;font-size:38px;color:#ba697f;line-height:1.2;margin-bottom:9px}
.invello-quality-gate-card>h2{margin:0 0 10px;color:#403139;font-size:clamp(21px,3vw,28px);line-height:1.25}
.invello-quality-gate-card>p{font-size:14px;line-height:1.55;margin:0 0 14px;color:#75616b}
.invello-quality-gate-card .invello-ai-saved-tools{
 margin:16px 0!important;padding:14px!important;background:#fcf6f8;border:1px solid #ecd7df;
 border-radius:13px;box-shadow:none;max-width:100%
}
.invello-quality-gate-card .invello-ai-saved-tools-actions{display:flex;justify-content:center!important;gap:10px}
.invello-quality-gate-card .invello-quality-face-control{align-items:center;min-width:0}
.invello-quality-gate-card .invello-quality-face-control>button{font-size:15px!important}
.invello-quality-gate-card .invello-quality-face-control[hidden]{display:none!important}
.invello-quality-gate-continue{
 display:block;width:100%;min-height:48px;padding:13px 18px;
 background:#fff!important;color:#904d62!important;border:1px solid #ba697f!important;
 border-radius:10px!important;font:700 14px/1.3 system-ui,sans-serif!important;cursor:pointer
}
.invello-quality-gate-continue:disabled{opacity:.5!important;cursor:progress!important}
.invello-quality-gate-card>.invello-quality-gate-note{margin:12px 0 0;font-size:12px;color:#8a727d}
@media(max-width:600px){
 .invello-ai-enhance-before-studio{width:100%;max-width:100%}
 .invello-quality-gate-layer{align-items:flex-start;padding:12px}
 .invello-quality-gate-card{margin:auto 0;max-height:calc(100dvh - 24px);padding:19px 15px}
 .invello-quality-gate-card .invello-quality-face-control{width:100%}
 .invello-quality-gate-card .invello-quality-face-control>button{width:100%}
}
.invello-quality-gate-card .invello-ai-saved-tools.is-applied{background:#f6faf7;border-color:#cfe5d7}
.invello-quality-gate-card .invello-ai-saved-tools.is-applied .invello-ai-saved-tools-actions{display:none!important}
.invello-quality-gate-card .invello-ai-saved-tools.is-applied .invello-ai-status{color:#356b4d;font-weight:600}

/* 0.7.28 — optional photo region detection / SVG mask review. */
.invello-ai-photo-tools{box-sizing:border-box;background:#fff;border:1px solid #eadde2;border-radius:18px;padding:24px;margin:24px auto;max-width:1040px;color:#43363e}
.invello-ai-photo-tools h2{margin:0 0 10px;font-size:clamp(20px,3vw,27px);font-weight:600}
.invello-ai-photo-tools p{font-size:14px;line-height:1.55;color:#725d67}
.invello-ai-photo-buttons{display:flex;flex-wrap:wrap;gap:10px}
.invello-ai-photo-button,.invello-photo-primary,.invello-photo-continue{border:0!important;border-radius:12px!important;padding:12px 18px!important;min-height:46px;background:#ba697f!important;color:#fff!important;cursor:pointer!important;font-size:14px!important;font-family:inherit!important;font-weight:650!important}
.invello-ai-photo-button:disabled,.invello-photo-primary:disabled{opacity:.55;cursor:wait!important}
.invello-ai-photo-status{margin:12px 0 0!important;min-height:1.5em;color:#8f4763!important}
.invello-photo-gate-layer{box-sizing:border-box;position:fixed;z-index:2147483300;inset:0;display:flex;align-items:center;justify-content:center;padding:15px;overflow:auto;background:rgba(31,20,26,.70)}
.invello-photo-gate-card{box-sizing:border-box;width:min(610px,100%);max-height:calc(100dvh - 30px);overflow-y:auto;border:1px solid #eadde2;border-radius:22px;background:#fff;padding:clamp(20px,4vw,36px);box-shadow:0 28px 75px rgba(0,0,0,.24);color:#48333f}
.invello-photo-gate-mark{font-size:34px;color:#ba697f;margin-bottom:8px}
.invello-photo-gate-card>h2{margin:0 0 8px;font-size:clamp(22px,4vw,28px)}
.invello-photo-gate-card>p{line-height:1.5;font-size:14px;color:#795f69}
.invello-photo-gate-card .invello-ai-photo-tools{margin:15px 0 10px;padding:0;border:0}
.invello-photo-gate-card .invello-ai-photo-button{width:100%}
.invello-photo-gate-card .invello-photo-continue{margin-top:10px;width:100%;background:#fff!important;color:#94536b!important;border:1px solid #c490a3!important}
.invello-photo-gate-card .invello-photo-note{font-size:12px;margin:10px 0 0;color:#917984}
.invello-photo-dialog{position:fixed;inset:0;margin:auto;box-sizing:border-box;width:min(920px,98vw);max-width:98vw;max-height:96dvh;overflow:auto;border:1px solid #eadde2;border-radius:18px;background:#fff;padding:clamp(14px,2.8vw,26px);color:#473741;box-shadow:0 28px 100px rgba(0,0,0,.30);z-index:2147483600}
.invello-photo-dialog::backdrop{background:rgba(30,16,23,.75)}
.invello-photo-dialog *{box-sizing:border-box}
.invello-photo-dialog h3{margin:0 0 6px;font-size:clamp(19px,3vw,26px);line-height:1.3}
.invello-photo-dialog>p{font-size:14px;line-height:1.5;color:#78606b;margin:0 0 13px}
.invello-photo-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(270px,.9fr);gap:16px;align-items:start}
.invello-photo-preview{position:relative;width:100%;line-height:0;overflow:hidden;border-radius:8px;border:1px solid #e8d6de;background:#fdf9fa}
.invello-photo-preview img{display:block;width:100%;height:auto;max-height:64dvh;object-fit:contain}
.invello-photo-overlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.invello-photo-controls{display:flex;flex-direction:column;gap:10px;max-height:64dvh;overflow-y:auto;padding-right:3px}
.invello-photo-region{border:1px solid #e8d4dc;border-radius:12px;padding:12px;background:#fcfafb}
.invello-photo-region.is-disabled{opacity:.45}
.invello-photo-pick{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:700;color:#704557}
.invello-photo-pick input{accent-color:#ba697f;width:16px;height:16px}
.invello-photo-shape-label{display:grid;gap:4px;margin-top:10px;font-size:12px;font-weight:650;color:#72545f}
.invello-photo-region select,.invello-photo-region input[type=number]{width:100%;min-height:37px;border:1px solid #dec8d1;border-radius:8px;padding:6px 8px;font-size:13px;background:#fff;color:#40333a}
.invello-photo-coords{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin-top:10px}
.invello-photo-coords label{display:grid;gap:4px;font-size:11px;color:#705c63}
.invello-photo-dialog .invello-photo-dialog-note{margin:12px 0 8px;font-size:12px;color:#866875}
.invello-photo-dialog-feedback{color:#a04463!important;min-height:1.5em;font-size:13px}
.invello-photo-dialog-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin-top:10px}
.invello-photo-secondary{background:#fff!important;border:1px solid #ba697f!important;color:#97566f!important;border-radius:12px!important;padding:12px 18px!important;cursor:pointer!important}
@media(max-width:700px){.invello-photo-layout{grid-template-columns:1fr}.invello-photo-dialog{max-height:95dvh;padding:14px}.invello-photo-preview{width:min(100%,430px);margin:auto}.invello-photo-preview img{max-height:40dvh}.invello-photo-controls{max-height:42dvh}.invello-photo-dialog-actions>*{flex:1}.invello-photo-gate-layer{padding:10px}.invello-photo-gate-card{max-height:calc(100dvh - 20px)}}
@media(prefers-reduced-motion:reduce){.invello-photo-gate-layer,.invello-photo-dialog{scroll-behavior:auto}}

.invello-ai-photo-undo{background:#ffffff!important;color:#93556c!important;border:1px solid #ba697f!important}

/* 0.7.29: photo analysis is completed before the quality-enhancement choice. */
.invello-photo-gate-card .invello-ai-photo-tools[aria-busy="true"] .invello-ai-photo-status::before{content:"";display:inline-block;vertical-align:-2px;width:13px;height:13px;margin-right:8px;border-radius:50%;border:2px solid #e5d0d9;border-top-color:#ba697f;animation:invello-photo-detect-spin .85s linear infinite}
.invello-photo-gate-card .invello-photo-continue:disabled{opacity:.5;cursor:progress}
@keyframes invello-photo-detect-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.invello-photo-gate-card .invello-ai-photo-tools[aria-busy="true"] .invello-ai-photo-status::before{animation:none}}

/* Invello Homepage 1.0 — warm, client-facing image/area experiences. */
.invello-v1-photo-dialog{position:fixed;inset:0;box-sizing:border-box;margin:auto;width:min(970px,96vw);max-width:96vw;max-height:95dvh;overflow:auto;border:1px solid #ead4dc;border-radius:22px;padding:clamp(17px,3vw,28px);background:#fffdfa;color:#43363d;box-shadow:0 30px 95px #2f17273d;z-index:2147483600}
.invello-v1-photo-dialog *{box-sizing:border-box}
.invello-v1-photo-dialog::backdrop{background:rgba(28,17,26,.78)}
.invello-v1-photo-head{margin-bottom:16px}.invello-v1-photo-icon{display:inline-grid;place-items:center;width:36px;height:36px;background:#fbecf1;color:#ba697f;border-radius:50%;margin-bottom:9px}
.invello-v1-photo-head h2{font:600 clamp(23px,4vw,30px)/1.2 Georgia,serif;margin:0 0 6px;color:#4e3741}
.invello-v1-photo-head p{margin:0;font:14px/1.55 system-ui,sans-serif;color:#7b6470}
.invello-v1-photo-body{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(220px,.8fr);gap:19px;align-items:start}
.invello-v1-photo-stage{position:relative;display:block;width:fit-content;max-width:100%;margin:0 auto;overflow:hidden;border:1px solid #ead9df;border-radius:12px;background:#f9f5f2;line-height:0}
.invello-v1-photo-stage img{display:block;width:auto;height:auto;max-width:100%;max-height:54dvh;object-fit:contain}
.invello-v1-photo-marks{position:absolute;inset:0;pointer-events:none}
.invello-v1-photo-region{position:absolute;border:2px solid #c05d7e;background:rgba(186,105,127,.19);box-shadow:0 0 0 1px #fff6;transition:all .2s;opacity:.25}
.invello-v1-photo-region.is-selected{opacity:1}
.invello-v1-photo-region:after{content:attr(data-label);position:absolute;left:5px;top:5px;width:24px;height:24px;display:grid;place-items:center;background:#ba697f;color:white;border-radius:50%;font:bold 12px system-ui}
.invello-v1-photo-stage.is-scanning:after{content:"";position:absolute;left:0;right:0;top:-10%;height:9%;background:linear-gradient(180deg,transparent,rgba(220,146,174,.32),transparent);box-shadow:0 0 16px 5px rgba(205,134,164,.19);animation:invello-v1-scan 2.3s ease-in-out infinite}
@keyframes invello-v1-scan{0%{top:-12%}100%{top:109%}}
.invello-v1-photo-controls{display:flex;flex-direction:column;gap:10px;max-height:54dvh;overflow:auto}
.invello-v1-photo-item{border:1px solid #ead9df;border-radius:12px;background:#fff;padding:12px;display:grid;gap:10px}
.invello-v1-photo-select{display:flex;align-items:center;gap:8px;font:700 14px system-ui;color:#84566a}
.invello-v1-photo-select input{accent-color:#ba697f;min-width:18px;min-height:18px}
.invello-v1-photo-field{display:grid;gap:4px;font:600 12px system-ui;color:#66555d}
.invello-v1-photo-item select,.invello-v1-photo-item input[type=number]{display:block;width:100%;min-height:36px;background:#fff;color:#352d31;border:1px solid #dbc3ce;border-radius:8px;padding:5px 8px}
.invello-v1-photo-coords{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
.invello-v1-photo-coords label{font:11px/1.4 system-ui;color:#6e5a63}
.invello-v1-photo-message{font:13px/1.5 system-ui;color:#7f4e62;margin:15px 0 10px;min-height:20px}
.invello-v1-photo-actions{display:flex;justify-content:flex-end;gap:11px;flex-wrap:wrap}
.invello-v1-photo-actions button{font:700 14px system-ui;min-height:47px;padding:11px 18px;border-radius:10px!important;cursor:pointer!important}
.invello-v1-photo-secondary{background:#fff!important;color:#995a70!important;border:1px solid #bc7991!important}
.invello-v1-photo-primary{background:#ba697f!important;color:white!important;border:1px solid #ba697f!important}
.invello-v1-photo-actions button:disabled{opacity:.48!important;cursor:wait!important}
@media(max-width:700px){.invello-v1-photo-dialog{width:96vw;padding:16px;max-height:95dvh}.invello-v1-photo-body{grid-template-columns:1fr}.invello-v1-photo-stage img{max-height:38dvh}.invello-v1-photo-controls{max-height:27dvh}.invello-v1-photo-actions{display:grid;grid-template-columns:1fr}.invello-v1-photo-actions button{width:100%}}

/* Native mobile-friendly classification card, not a browser confirm/prompt. */
.invello-v1-region-choice{position:fixed;inset:0;box-sizing:border-box;width:min(420px,92vw);max-width:92vw;margin:auto;padding:25px 20px 21px;z-index:2147483640;max-height:90dvh;overflow:auto;border-radius:20px;border:1px solid #eadbe0;background:#fffdfb;box-shadow:0 25px 70px #2e1f2940;color:#42323a;text-align:center}
.invello-v1-region-choice::backdrop{background:rgba(30,21,27,.48)}
.invello-v1-region-choice h3{margin:6px 0 11px;font:600 23px/1.3 Georgia,serif;color:#493842}
.invello-v1-region-choice p{font:14px/1.5 system-ui;color:#7a626c;margin:0 0 20px}
.invello-v1-region-dismiss{position:absolute;right:12px;top:10px;background:transparent!important;color:#8b6b79!important;border:none!important;font-size:25px!important;min-height:30px;padding:0 8px!important;cursor:pointer}
.invello-v1-region-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.invello-v1-region-buttons button{min-height:50px!important;padding:10px 12px!important;border-radius:12px!important;font:700 14px system-ui!important;cursor:pointer!important}
.invello-v1-region-text{background:#ba697f!important;color:#fff!important;border:1px solid #ba697f!important}
.invello-v1-region-clean{background:#fff!important;color:#95546b!important;border:1px solid #c2859a!important}
.invello-v1-region-form{display:grid;gap:13px;text-align:left}
.invello-v1-region-form[hidden],.invello-v1-region-buttons[hidden]{display:none!important}
.invello-v1-region-form label{display:grid;gap:7px;font:600 13px system-ui;color:#6b505d}
.invello-v1-region-form textarea{width:100%;padding:10px 12px;min-height:90px;border:1px solid #dbb9c8;border-radius:10px;color:#3a2c33;background:#fff;font:14px/1.5 system-ui}
@media(max-width:410px){.invello-v1-region-choice{padding:20px 15px}.invello-v1-region-buttons{grid-template-columns:1fr}}

/* A brush visibly sweeps across each selected area during restoration. */
.ccm-bg-ai-stage{position:relative}
.invello-v1-brush-layer{position:absolute;inset:0;z-index:11;pointer-events:none;overflow:hidden}
.invello-v1-brush-zone{position:absolute;overflow:hidden;border:1px solid rgba(179,92,119,.65);border-radius:5px;background:rgba(255,248,250,.06);--brush-delay:0s}
.invello-v1-brush-zone:before{content:"";position:absolute;inset:0;background:linear-gradient(98deg,transparent 0%,rgba(255,255,255,.12) 35%,rgba(218,142,167,.26) 48%,rgba(255,255,255,.45) 52%,transparent 70%);background-size:240% 100%;animation:invello-v1-wipe 2.2s ease-in-out var(--brush-delay) infinite}
.invello-v1-brush-stroke{position:absolute;top:50%;left:0;height:2px;width:65%;background:linear-gradient(90deg,transparent,rgba(186,105,127,.65),transparent);filter:drop-shadow(0 0 2px #fff);animation:invello-v1-stroke 2.2s ease-in-out var(--brush-delay) infinite}
.invello-v1-brush-tip{position:absolute;top:10%;left:-12px;font-size:clamp(20px,3.6vw,31px);line-height:1;filter:drop-shadow(0 2px 2px #fff);animation:invello-v1-brush 2.2s ease-in-out var(--brush-delay) infinite}
.invello-v1-brush-caption{position:absolute;bottom:9px;left:50%;transform:translateX(-50%);width:max-content;max-width:95%;padding:8px 13px;border-radius:40px;background:rgba(64,37,49,.82);color:#fff;font:600 12px/1.2 system-ui,sans-serif;box-shadow:0 2px 9px #0003}
.invello-v1-brush-layer.is-complete{opacity:0;transition:opacity .3s}
@keyframes invello-v1-wipe{0%{background-position:130% 0}100%{background-position:-125% 0}}
@keyframes invello-v1-brush{0%{left:0;top:8%;transform:rotate(-25deg)}48%{left:70%;top:55%;transform:rotate(10deg)}100%{left:105%;top:90%;transform:rotate(18deg)}}
@keyframes invello-v1-stroke{0%{left:-60%;top:20%}100%{left:108%;top:85%}}
@media(prefers-reduced-motion:reduce){.invello-v1-brush-zone:before,.invello-v1-brush-stroke,.invello-v1-brush-tip,.invello-v1-photo-stage.is-scanning:after{animation:none}.invello-v1-brush-tip{left:45%;top:45%}}

.invello-v1-photo-actions{position:sticky;bottom:-16px;padding:13px 0 6px;background:#fffdfa;z-index:5;border-top:1px solid #f0e6ea}

/* v1.0.1 · Checkout stepper: print, paper, envelope, Gypsophila */
.invello-ai-order-dialog{box-sizing:border-box;position:fixed;inset:0;z-index:2147483600;width:min(760px,calc(100vw - 28px));max-width:760px;max-height:min(93dvh,920px);margin:auto;padding:0;overflow:auto;border:1px solid #e9d9d6;border-radius:22px;background:#fffaf8;color:#382d32;box-shadow:0 28px 90px #29151e55}
.invello-ai-order-dialog::backdrop{background:rgba(32,21,27,.70);backdrop-filter:blur(3px)}
.invello-ai-order-dialog .invello-ai-print{box-sizing:border-box;width:100%;max-width:none;margin:0!important;padding:23px 26px 22px!important;border:0!important;border-radius:0!important;background:#fffaf8!important;box-shadow:none!important}
.invello-ai-order-dialog .invello-ai-print-form{display:block!important}
.invello-ai-order-dialog .invello-ai-order-heading{display:flex;align-items:flex-start;gap:15px;justify-content:space-between}
.invello-ai-order-dialog .invello-ai-order-heading h2{font-family:Georgia,serif;font-size:27px;font-weight:500;margin:0 0 3px;color:#47353c}
.invello-ai-order-dialog .invello-ai-order-heading p{margin:0 0 11px;color:#75616a;font-size:14px}
.invello-ai-order-dialog .invello-order-close{flex:none;width:38px;height:38px;border:1px solid #ead5de;border-radius:50%;background:#fff;color:#705263;font-size:26px;line-height:1;cursor:pointer}
.invello-ai-order-dialog .invello-order-progress{border-bottom:1px solid #efdee4;padding:10px 0;margin:0 0 15px;color:#9e526b;font-size:13px;font-weight:700;letter-spacing:.025em}
.invello-ai-order-dialog .invello-ai-print-faces{font-size:13px;line-height:1.45;margin:0 0 12px;color:#706269}
.invello-order-stage{animation:invelloOrderAppear .22s ease both}
.invello-order-stage[hidden],.invello-order-back[hidden]{display:none!important}
@keyframes invelloOrderAppear{from{opacity:.15;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
.invello-order-stage h3{font-family:Georgia,serif;font-size:22px;font-weight:500;margin:5px 0 7px;color:#48343a}
.invello-order-stage>p{margin:0 0 12px;font-size:13px;color:#78646d}
.invello-order-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.invello-order-fields label{display:grid;gap:5px;font-size:14px;font-weight:600}
.invello-ai-order-dialog .invello-order-fields select,.invello-ai-order-dialog .invello-order-fields input[type=number]{width:100%;min-height:46px;border:1px solid #e5cad3;border-radius:10px;background:#fff;padding:10px;box-sizing:border-box;color:#33252c}
.invello-order-paper-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
.invello-order-paper-card{position:relative;display:flex;flex-direction:column;gap:0;overflow:hidden;min-width:0;border:1px solid #e7d9d9;border-radius:12px;background:white;cursor:pointer;transition:border .15s,box-shadow .15s}
.invello-order-paper-card:has(input:checked){border:2px solid #ba697f;box-shadow:0 0 0 2px #ba697f19}
.invello-order-paper-card:focus-within{outline:2px solid #ba697f;outline-offset:2px}
.invello-order-paper-card>input{position:absolute;right:9px;top:9px;z-index:2;width:19px;height:19px;accent-color:#ba697f;cursor:pointer}
.invello-order-paper-card>img{display:block;width:100%;height:103px;object-fit:cover;object-position:center;background:#eee7df}
.invello-order-paper-body{display:flex;flex:1;flex-direction:column;gap:6px;padding:11px 11px 12px;color:#403038;line-height:1.3}
.invello-order-paper-body strong{font-size:13px;line-height:1.35}
.invello-order-paper-body small{font-size:11px;color:#806c76;line-height:1.35}
.invello-order-paper-body em{font-size:12px;color:#9d5067;font-weight:700;font-style:normal;margin-top:auto;padding-top:4px}
.invello-order-footnote{font-size:11px;color:#86757b;margin-top:8px!important}
.invello-order-flower{display:grid;grid-template-columns:minmax(130px,38%) 1fr;gap:16px;align-items:center;border:1px solid #eadce0;border-radius:12px;padding:12px;background:#fff}
.invello-order-flower>img{display:block;width:100%;max-height:240px;object-fit:cover;border-radius:9px}
.invello-order-flower p{margin:0 0 10px;font-size:14px;line-height:1.5}
.invello-ai-order-dialog .invello-ai-envelope-choices{margin:8px 0;gap:8px}
.invello-ai-order-dialog .invello-ai-envelope-choices label{flex:1;min-width:145px;font-size:13px}
.invello-ai-order-dialog .invello-ai-print-breakdown{display:block!important;margin:14px 0 13px;padding:13px 16px;border:1px solid #ecdae2;background:#fff;border-radius:12px}
.invello-ai-order-dialog .invello-ai-print-breakdown h3{font-family:Georgia,serif;font-size:19px;font-weight:500;margin:0 0 8px;color:#47333a}
.invello-ai-order-dialog .invello-order-actions{display:flex;align-items:center;gap:10px;justify-content:flex-end}
.invello-ai-order-dialog .invello-order-actions>.invello-ai-action{flex:1;max-width:350px;min-height:46px!important}
.invello-ai-order-dialog .invello-order-back{min-height:46px;border:1px solid #dcb6c4;background:white;color:#7c455a;border-radius:9px;padding:10px 18px;font-weight:700;cursor:pointer}
.invello-ai-order-dialog .invello-ai-status{font-size:13px;line-height:1.5;min-height:1.3em;margin-top:9px}
.invello-ai-order-topbar{position:sticky;top:0;z-index:110;display:flex;justify-content:flex-end;padding:7px 12px;background:#fff9;border-bottom:1px solid #f0e4e7;backdrop-filter:blur(8px)}
.invello-ai-order-jump{font-size:14px!important;font-weight:700!important;min-height:42px!important;padding:8px 18px!important}
.invello-ai-order-dialog.invello-dialog-fallback{display:block}
@media(max-width:650px){
 .invello-ai-order-dialog{max-height:96dvh;width:calc(100vw - 18px);border-radius:15px}
 .invello-ai-order-dialog .invello-ai-print{padding:15px 14px!important}
 .invello-ai-order-dialog .invello-ai-order-heading h2{font-size:23px}
 .invello-order-fields{grid-template-columns:1fr}
 .invello-order-paper-grid{grid-template-columns:1fr;gap:9px}
 .invello-order-paper-card{display:grid;grid-template-columns:112px 1fr;min-height:120px}
 .invello-order-paper-card>img{height:100%;min-height:120px}
 .invello-order-paper-body{padding:12px 36px 12px 10px}
 .invello-order-flower{grid-template-columns:1fr}
 .invello-order-flower>img{max-height:180px}
 .invello-ai-order-dialog .invello-order-actions{gap:8px}
 .invello-ai-order-dialog .invello-order-actions>.invello-ai-action{max-width:none}
 .invello-ai-order-dialog .invello-order-back{padding:9px 13px}
}

/* Keep navigation within reach during long format/colour selections. */
.invello-ai-order-dialog .invello-order-actions{position:sticky;bottom:0;z-index:3;padding:12px 0 5px;background:linear-gradient(to bottom,#fffaf800,#fffaf8 15%,#fffaf8 100%)}


/* 1.0.2 — Show the invitation first. Keep optional photo/quality tools below the Studio. */
.invello-ai-editor-after-tools{width:min(100%,1040px);margin:20px auto 32px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start;box-sizing:border-box}
.invello-ai-editor-after-tools>.invello-ai-photo-tools,.invello-ai-editor-after-tools>.invello-ai-saved-tools{width:100%;max-width:none;margin:0;min-width:0;box-sizing:border-box}
@media(max-width:750px){.invello-ai-editor-after-tools{display:flex;flex-direction:column;gap:12px;padding:0 12px}.invello-ai-editor-after-tools>.invello-ai-photo-tools,.invello-ai-editor-after-tools>.invello-ai-saved-tools{padding:16px;width:100%;margin:0}}
/* The native mobile finish belongs to the Studio's other checkout flow, not this WooCommerce wizard. */
.ccm-editor .ccm-actions>.ccm-header-finish[aria-hidden="true"]{display:none!important}
.ccm-editor .ccm-top .ccm-actions>.invello-order-printer-anchor{flex:0 0 auto!important}
.ccm-editor .ccm-top .ccm-actions>.invello-ai-order-jump{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;padding:9px 16px!important;background:#ba697f!important;color:#fff!important;border:1px solid #ba697f!important;border-radius:9px!important;font-weight:750!important;font-size:13px!important;min-height:40px!important;white-space:nowrap!important;box-shadow:0 2px 6px #ba697f22!important;cursor:pointer!important}
.ccm-editor .ccm-top .ccm-actions>.invello-ai-order-jump:hover{background:#a85570!important;border-color:#a85570!important}
@media(max-width:600px){
 .ccm-editor .ccm-top .ccm-actions>.invello-order-printer-anchor{min-width:34px!important;width:36px!important;max-width:36px!important;height:38px!important;min-height:38px!important;padding:7px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;margin-left:auto!important}
 .ccm-editor .ccm-top .ccm-actions>.invello-order-printer-anchor svg{width:21px!important;height:21px!important}
 .ccm-editor .ccm-top .ccm-actions>.invello-ai-order-jump{min-width:91px!important;max-width:105px!important;min-height:38px!important;height:38px!important;padding:7px 10px!important;border-radius:9px!important;font-size:12px!important;margin-left:2px!important}
}

/* 1.0.3 — quality flow: premium consent and safe recovery in the existing Homepage. */
.invello-quality-consent-dialog{position:fixed;inset:0;margin:auto;box-sizing:border-box;width:min(480px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:94dvh;overflow:auto;padding:clamp(18px,3vw,30px);border:1px solid #ead7df;border-radius:22px;background:#fffdfb;color:#46333c;box-shadow:0 24px 75px rgba(36,15,25,.26);z-index:2147483600;text-align:center}
.invello-quality-consent-dialog::backdrop{background:rgba(30,22,28,.73);backdrop-filter:blur(3px)}
.invello-quality-consent-dialog *{box-sizing:border-box}
.invello-quality-consent-icon{margin:0 auto 12px;display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:#f8e8ef;color:#ba697f;font:28px Georgia,serif}
.invello-quality-consent-dialog h3{font:500 clamp(22px,3vw,29px)/1.2 Georgia,serif;color:#503844;margin:0 0 10px}
.invello-quality-consent-dialog p{font:14px/1.55 system-ui,sans-serif;color:#695861;margin:0 0 13px}
.invello-quality-consent-image{margin:16px auto 11px;max-width:100%;height:min(32dvh,250px);display:flex;justify-content:center;align-items:center;border:1px solid #f1e7eb;border-radius:12px;background:#fbf7f7;overflow:hidden}
.invello-quality-consent-image img{max-width:100%;max-height:100%;object-fit:contain}
.invello-quality-consent-dialog .invello-quality-consent-note{font-size:12px;color:#8a7180}
.invello-quality-consent-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:17px}
.invello-quality-consent-actions button{min-height:46px;padding:11px 15px;border-radius:10px;border:1px solid #ba697f;font:700 14px system-ui;cursor:pointer;flex:1}
.invello-quality-consent-cancel{background:#fff;color:#98546e}.invello-quality-consent-accept{background:#ba697f;color:white}
.invello-quality-recover-toggle{background:transparent!important;border:1px solid #c694a5!important;color:#8f526a!important;border-radius:10px!important;font:600 13px system-ui!important;cursor:pointer;padding:11px 15px;min-height:42px}
.invello-quality-recover-panel[hidden]{display:none!important}.invello-quality-recover-panel{margin:16px 0;border:1px solid #ead8e1;border-radius:13px;padding:14px;background:#fffafc}
.invello-quality-recover-panel>p{font-size:13px;color:#78626b}
.invello-quality-recover-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:11px;max-height:490px;overflow:auto;margin:9px 0}
.invello-quality-recover-card{display:flex;flex-direction:column;gap:7px;border:1px solid #eadde2;padding:9px;border-radius:10px;background:white}
.invello-quality-recover-card>img{max-height:155px;width:100%;object-fit:contain;background:#f8f5f5;border-radius:6px}
.invello-quality-recover-card small{font-size:10px;color:#715b67;overflow-wrap:anywhere}
.invello-quality-recover-card select{min-height:34px;border:1px solid #e2ccd4;background:white;border-radius:7px}
.invello-quality-recover-card a{font-size:12px;color:#9c5872;text-decoration:underline}
.invello-quality-recover-use{background:#ba697f!important;border:1px solid #ba697f!important;color:#fff!important;border-radius:8px!important;padding:10px!important;font:600 12px system-ui!important;cursor:pointer}
.invello-quality-recover-info{font-size:12px;color:#915b72}
@media(max-width:480px){.invello-quality-consent-actions{flex-direction:column}.invello-quality-consent-image{height:min(28dvh,210px)}}

/* 1.0.4 · The Studio presents the invitation first, then one unobtrusive action. */
.invello-ai-editor-after-tools>.invello-ai-saved-tools-compact{
  box-sizing:border-box; width:fit-content; max-width:100%; margin:13px 0 20px!important;
  padding:0!important; border:0!important; background:transparent!important;
  box-shadow:none!important; border-radius:0!important;
}
.invello-ai-saved-tools-compact .invello-ai-saved-tools-actions{
  display:flex!important; flex-wrap:wrap!important; gap:8px!important;
  margin:0!important; min-height:0!important; padding:0!important;
}
.invello-ai-saved-tools-compact .invello-ai-saved-tools-actions>button{
  display:inline-flex; align-items:center; justify-content:center;
  background:#ba697f!important; color:#fff!important; font-weight:650!important;
  padding:12px 20px!important; border:1px solid #ba697f!important;
  min-height:46px!important; border-radius:11px!important; cursor:pointer;
}
.invello-ai-saved-tools-compact .invello-ai-status{display:none!important}
.invello-ai-saved-tools-compact .invello-ai-status.invello-ai-inline-error{
  display:block!important; margin:8px 0 0!important; font-size:13px!important;
}
/* Invitation-only gate, with original brand palette. */
.invello-ai-invite-form{display:flex;flex-direction:column;gap:10px;margin:20px auto 0;max-width:400px;text-align:left}
.invello-ai-invite-form label{font-size:13px;font-weight:700;color:#775263}
.invello-ai-invite-form input{width:100%;box-sizing:border-box;min-height:48px;padding:11px 15px;
  border:1px solid #dbb9c6;border-radius:12px;background:#fff;color:#362a30;
  font-family:inherit;font-size:17px;letter-spacing:.04em;text-transform:uppercase}
.invello-ai-invite-form input:focus{outline:2px solid #ba697f;outline-offset:1px}
.invello-ai-invite-feedback{margin:10px auto 0;padding:9px 12px;border-radius:9px;
  background:#f9e9ed;color:#8c4961;font-size:13px;text-align:center}
@media(max-width:650px){.invello-ai-editor-after-tools>.invello-ai-saved-tools-compact{margin:12px!important}
  .invello-ai-saved-tools-compact .invello-ai-saved-tools-actions{display:flex!important}
  .invello-ai-saved-tools-compact .invello-ai-saved-tools-actions>button{width:auto!important;max-width:100%}}

/* Only the remaining quality button sits below the full-size Studio. */
.invello-ai-editor-after-tools{display:flex!important;flex-direction:column!important;align-items:flex-start!important;
  gap:0!important;margin:16px auto 24px!important}

/* 1.0.5 — Estado de importação após interrupção de rede. */
.invello-ai-modal-check{margin-top:15px;border:1px solid #bd7892;border-radius:9px;background:#fff;color:#96546b;padding:12px 18px;font:inherit;font-weight:650;font-size:14px;cursor:pointer}
.invello-ai-modal-check:disabled{opacity:.65;cursor:progress}
.invello-ai-modal-check[hidden]{display:none!important}
/* Error state: show recovery actions immediately, not the completed-stage list. */
.invello-ai-modal-card.is-error .invello-ai-steps{display:none!important}
.invello-ai-modal-card.is-error .invello-ai-modal-progressbar{display:none!important}
.invello-ai-modal-card.is-error .invello-ai-modal-progressinfo{margin-top:10px}
.invello-ai-modal-card.is-error .invello-ai-modal-close{margin-left:9px}
@media(max-width:440px){.invello-ai-modal-card.is-error .invello-ai-modal-check,.invello-ai-modal-card.is-error .invello-ai-modal-close{display:block;margin:11px auto 0;max-width:100%;width:100%}}


/* 1.0.10 — Homepage-only quality CTA, separate from the Studio mobile dock. */
.invello-ai-saved-tools-compact .invello-quality-face-control{
  min-width:0;max-width:100%;gap:7px;align-items:flex-start;
}
.invello-ai-saved-tools-compact .invello-quality-face-control .invello-quality-usage-note{
  display:block;font:500 12px/1.45 system-ui,sans-serif;color:#785a67;
  max-width:360px;overflow-wrap:anywhere;
}
.invello-ai-saved-tools-compact .invello-quality-face-control>button{
  position:relative;min-height:46px!important;font-size:13px!important;
  line-height:1.25!important;white-space:normal!important;
  max-width:100%;overflow-wrap:break-word;
}
.invello-ai-saved-tools-compact .invello-quality-face-control>button:disabled{
  opacity:.55!important;cursor:not-allowed!important;
}
@media(max-width:600px){
 /* The dock is position:fixed but nested in an isolated editor stacking context.
    This context must paint above the following enhancement block. */
 .ccm-editor.invello-ai-home-editor{position:relative!important;z-index:10!important}
 .invello-ai-editor-after-tools{
   position:relative!important;z-index:0!important;width:100%;
   padding-left:12px!important;padding-right:12px!important;
   padding-bottom:calc(max(88px,var(--invello-home-mobile-dock-height,88px)) + 20px + env(safe-area-inset-bottom,0px))!important;
 }
 .invello-ai-editor-after-tools>.invello-ai-saved-tools-compact{
   margin:12px 0 16px!important;max-width:100%;width:100%!important;
 }
 .invello-ai-saved-tools-compact .invello-quality-face-control{width:100%;align-items:stretch}
 .invello-ai-saved-tools-compact .invello-quality-face-control>button{
   width:100%!important;min-height:48px!important;padding:12px 14px!important;
 }
 .invello-ai-saved-tools-compact .invello-quality-face-control .invello-quality-usage-note{
   text-align:center;max-width:none;padding:0 4px;
 }
}

/* Configurable print choices, including colour swatches and options without artwork. */
.invello-order-paper-card[hidden]{display:none!important}
.invello-print-no-image .invello-order-paper-body{padding-top:30px}
@media(max-width:600px){.invello-order-paper-card.invello-print-no-image{display:flex;min-height:0}}
