*{box-sizing:border-box}body{margin:0;font-family:'DM Sans',sans-serif;background:#0a0e10;color:#eef2ef}.editor-app{min-height:100vh}.topbar{height:76px;background:#091013;border-bottom:1px solid #253036;display:flex;align-items:center;justify-content:space-between;padding:0 20px;position:sticky;top:0;z-index:30}.brand{display:flex;align-items:center;gap:12px}.brand img{width:58px;height:58px;object-fit:contain;background:#fff;border-radius:14px}.brand strong{font:800 20px Manrope}.brand small{display:block;color:#9dafaa}.top-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.top-actions button,.top-actions a,.stage-toolbar button{background:#161f23;border:1px solid #2a363b;color:#fff;border-radius:9px;padding:9px 12px;text-decoration:none;cursor:pointer}.top-actions .success{background:#328f26}.top-actions .publish{background:#ee6c0a}.workspace{display:grid;grid-template-columns:300px minmax(700px,1fr) 300px;height:calc(100vh - 76px)}.leftbar,.inspector{background:#10171a;border-right:1px solid #273138;overflow:auto}.inspector{border-right:0;border-left:1px solid #273138;padding:18px}.tabs{display:grid;grid-template-columns:repeat(2,1fr);gap:6px;padding:12px}.tabs button{background:#182226;border:0;color:#cbd4d0;padding:10px;border-radius:8px;cursor:pointer}.tabs button.active{background:#1d5d24;color:#fff}.lib-panel{padding:8px 14px 20px}.hidden{display:none!important}.lib-panel h3,.inspector h3{font:700 15px Manrope;margin:12px 0 4px}.lib-panel p{color:#98aaa4;margin-top:0;font-size:12px}.asset-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.asset{background:#f9f7ef;color:#142018;border-radius:9px;padding:7px;text-align:center;cursor:grab;border:1px solid #d7d7ca}.asset img{width:100%;height:90px;object-fit:contain;border-radius:6px}.asset span{font-size:12px;font-weight:700}.upload-asset{height:126px;display:flex;flex-direction:column;align-items:center;justify-content:center}.upload-asset label{background:#194e22;color:#fff;border-radius:8px;padding:10px;cursor:pointer}.quick-buttons,.text-presets,.template-list{display:grid;gap:7px;margin-top:10px}.quick-buttons button,.text-presets button,.template-list button,.wide{padding:10px;border-radius:8px;border:1px solid #344146;background:#172125;color:#fff;text-align:left;cursor:pointer}.template-list button b,.template-list button small{display:block}.template-list small{color:#9fb0ab;margin-top:2px}.sticker-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px;margin-top:12px}.sticker{min-height:78px;border-radius:12px;display:flex;align-items:center;justify-content:center;text-align:center;font:800 15px Manrope;padding:8px;cursor:grab;transform:rotate(-2deg);box-shadow:0 6px 18px #0005}.sticker.red{background:#d7261c;color:#ffe13c}.sticker.orange{background:#f06412}.sticker.yellow{background:#ffd326;color:#b81818}.sticker.green{background:#318b2f}.sticker.dark{background:#263136}.stage{display:flex;flex-direction:column;min-width:0;background:#090d0f}.stage-toolbar{height:48px;background:#12191c;border-bottom:1px solid #263035;display:flex;align-items:center;gap:8px;padding:6px 12px}.stage-toolbar label{font-size:12px;color:#c7d2cf}.stage-toolbar button.active{background:#2f7f28}.canvas-wrap{flex:1;overflow:auto;padding:30px;display:flex;justify-content:center;align-items:flex-start;background:#13191c}.flyer-canvas{position:relative;width:900px;height:1200px;background:#fff8e9;color:#131313;transform-origin:top center;box-shadow:0 20px 60px #0008;overflow:hidden}.grid-bg{background-image:linear-gradient(#0000000b 1px,transparent 1px),linear-gradient(90deg,#0000000b 1px,transparent 1px);background-size:20px 20px;background-color:#fff8e9}.flyer-element{position:absolute;user-select:none;touch-action:none;cursor:move}.flyer-element.selected{outline:2px solid #2389ff;outline-offset:2px}.flyer-element.selected:after{content:'';width:12px;height:12px;border-radius:50%;background:#fff;border:2px solid #2389ff;position:absolute;right:-8px;bottom:-8px;cursor:nwse-resize}.product-card{background:#fff;border:1px solid #e4dbc9;border-radius:14px;padding:10px;text-align:center;box-shadow:0 4px 14px #6d4a1a1c;display:flex;flex-direction:column;justify-content:space-between}.product-card img{width:100%;height:55%;object-fit:contain;border-radius:9px}.product-title{font:800 17px Manrope;text-transform:uppercase;line-height:1.05}.product-unit{font-size:14px}.product-price{background:#d92718;color:#ffe033;font:800 28px Manrope;border-radius:8px;padding:4px 8px;margin-top:6px}.product-price small{font-size:14px;color:#fff}.text-element{font:800 30px Manrope;padding:6px;white-space:pre-wrap}.sticker-element{font:800 26px Manrope;text-align:center;padding:14px;background:#d92718;color:#ffd72e;border:4px solid #ffe562;border-radius:10px;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 15px #0003}.image-element img{width:100%;height:100%;object-fit:cover;border-radius:10px}.page-header{position:absolute;left:0;top:0;width:100%;height:220px;background:linear-gradient(135deg,#073c1e,#0d572b 60%,#ed6d0c);display:flex;align-items:center;padding:38px;color:white}.page-header h1{font:800 62px Manrope;line-height:.9;margin:0}.page-header p{font-size:18px}.page-header-logo{width:150px;height:120px;object-fit:contain;background:#fff;border-radius:22px;margin-right:28px}.footer-strip{position:absolute;bottom:0;left:0;width:100%;height:70px;background:#075728;color:white;display:flex;align-items:center;justify-content:space-around;font-size:14px}.pagesbar{height:72px;background:#10171a;border-top:1px solid #283238;display:flex;align-items:center;gap:10px;padding:8px 14px}.pagesbar #pageThumbs{display:flex;gap:8px}.page-thumb{width:84px;height:52px;border:2px solid #2f3d43;border-radius:7px;background:#fff8e9;color:#333;display:flex;align-items:center;justify-content:center;cursor:pointer}.page-thumb.active{border-color:#67b931}.pagesbar button{background:#1a2529;color:#fff;border:1px solid #334147;padding:10px;border-radius:8px}.field{margin:13px 0}.field label{display:block;font-size:12px;color:#aab8b4;margin-bottom:5px}.field input,.field textarea,.field select{width:100%;background:#131c20;border:1px solid #34434a;color:#fff;border-radius:7px;padding:9px}.field textarea{min-height:70px;resize:vertical}.field.row{display:grid;grid-template-columns:1fr 1fr;gap:8px}.price-fields>div{display:flex}.price-fields span{background:#1c272c;padding:9px;border:1px solid #34434a;border-right:0;border-radius:7px 0 0 7px}.price-fields input{border-radius:0 7px 7px 0}.layer-buttons{display:flex;gap:6px}.layer-buttons button{flex:1;padding:8px;background:#1b262b;border:1px solid #35444b;color:#fff;border-radius:7px}.empty-inspector{color:#8fa19b;font-size:13px;padding:12px 0}.toast{position:fixed;right:24px;bottom:24px;background:#173f22;color:#fff;padding:12px 16px;border-radius:9px;opacity:0;transform:translateY(10px);transition:.2s;z-index:99}.toast.show{opacity:1;transform:none}.modal{position:fixed;inset:0;background:#000c;z-index:100;display:grid;place-items:center;padding:30px}.modal-card{position:relative;background:#161d20;padding:20px;border-radius:14px;max-width:95vw;max-height:95vh;overflow:auto}.modal-card>button{position:sticky;top:0;float:right;background:#d92b1d;color:#fff;border:0;border-radius:50%;width:34px;height:34px;font-size:24px;z-index:2}.modal #previewTarget{transform-origin:top center}.resize-handle{position:absolute;right:-8px;bottom:-8px;width:14px;height:14px;border-radius:50%;background:#fff;border:2px solid #2389ff;z-index:5}@media(max-width:1100px){.workspace{grid-template-columns:250px minmax(600px,1fr)}.inspector{position:fixed;right:0;top:76px;bottom:0;width:290px;z-index:40;box-shadow:-15px 0 40px #0008}.top-actions button:nth-child(3),.top-actions button:nth-child(4){display:none}}@media(max-width:760px){.workspace{display:block}.leftbar{position:fixed;left:0;bottom:0;right:0;height:230px;z-index:45;border-top:1px solid #333}.stage{height:calc(100vh - 76px - 230px)}.leftbar .tabs{grid-template-columns:repeat(4,1fr)}.lib-panel{overflow:auto;height:170px}.asset-grid{grid-template-columns:repeat(5,130px)}.inspector{display:none}.topbar{height:auto;min-height:76px;align-items:flex-start;padding-top:8px}.top-actions{justify-content:flex-end}.brand strong{font-size:15px}.brand small{font-size:10px}}
/* V5.5 — identidade e formas */
.topbar{height:88px;padding:0 24px;background:linear-gradient(90deg,#071714 0%,#0a2420 45%,#101719 100%);box-shadow:0 10px 30px rgba(0,0,0,.22)}
.workspace{height:calc(100vh - 88px)}
.brand{gap:14px}.brand img{width:62px;height:62px;border-radius:50%;object-fit:cover;object-position:center;clip-path:circle(48%);background:#f5a536;border:3px solid rgba(255,255,255,.12);box-shadow:0 0 0 4px rgba(56,174,82,.12),0 8px 22px rgba(0,0,0,.25)}
.brand strong{letter-spacing:-.02em}.brand small{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#86a69d;margin-top:2px}
.top-actions button,.top-actions a{transition:.2s ease}.top-actions button:hover,.top-actions a:hover{transform:translateY(-1px);border-color:#4e6d64;background:#21312e}.top-actions .success{background:linear-gradient(135deg,#237b36,#36a54d);border-color:#49b95f}.top-actions .publish{background:linear-gradient(135deg,#e35a10,#ff8126);border-color:#ff8c43;box-shadow:0 7px 20px rgba(238,108,10,.2)}
.tabs{grid-template-columns:repeat(3,1fr)}
.shape-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px;margin-top:12px}.shape-asset{height:94px;border:1px solid #31423d;border-radius:12px;background:#17221f;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;cursor:grab;color:#dfe9e5;font-size:11px}.shape-asset:hover{border-color:#3da95a;background:#1b2c25}.shape-preview{display:block;width:54px;height:42px;background:#ff6b20;box-shadow:0 5px 12px rgba(0,0,0,.18)}.shape-preview.circle{width:44px;height:44px;border-radius:50%;background:#ffd329}.shape-preview.pill{border-radius:999px;background:#22a34a}.shape-preview.burst{clip-path:polygon(50% 0%,60% 27%,79% 8%,75% 35%,100% 32%,80% 50%,100% 68%,74% 65%,79% 92%,60% 73%,50% 100%,40% 73%,21% 92%,26% 65%,0 68%,20% 50%,0 32%,26% 35%,21% 8%,40% 27%);background:#f12f28}.shape-preview.star{clip-path:polygon(50% 0,61% 34%,98% 35%,68% 56%,79% 91%,50% 70%,21% 91%,32% 56%,2% 35%,39% 34%);background:#ffd329}.shape-preview.tag{clip-path:polygon(0 0,80% 0,100% 50%,80% 100%,0 100%);background:#ff6b20}.shape-preview.ribbon{clip-path:polygon(0 10%,12% 25%,0 40%,100% 40%,88% 25%,100% 10%);height:54px;background:#1f9d48}.shape-preview.blob{border-radius:62% 38% 54% 46%/45% 57% 43% 55%;background:#f5c522}.shape-preview.underline{height:14px;border-radius:8px;transform:rotate(-4deg);background:#ef3d2e}.shape-buttons{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:9px}.shape-buttons button{padding:9px 7px;border-radius:8px;border:1px solid #34463f;background:#17231f;color:#fff;cursor:pointer;text-align:left}.shape-buttons button:hover{background:#20382b;border-color:#45a95d}
.page-header{overflow:hidden;position:absolute!important}.page-header:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 15% 20%,rgba(255,213,41,.16),transparent 32%),linear-gradient(115deg,rgba(255,255,255,.06),transparent 42%);pointer-events:none}.page-header-logo{object-fit:cover!important;object-position:center!important;border-radius:50%!important;clip-path:circle(48%)!important;background:#f4a33a!important;border:4px solid rgba(255,255,255,.92)!important;box-shadow:0 8px 24px rgba(0,0,0,.2)!important}
.shape-element{display:flex;align-items:center;justify-content:center;border:0!important;box-shadow:0 10px 24px rgba(0,0,0,.14)}.shape-element.shape-circle{border-radius:50%}.shape-element.shape-pill{border-radius:999px}.shape-element.shape-burst{clip-path:polygon(50% 0%,60% 27%,79% 8%,75% 35%,100% 32%,80% 50%,100% 68%,74% 65%,79% 92%,60% 73%,50% 100%,40% 73%,21% 92%,26% 65%,0 68%,20% 50%,0 32%,26% 35%,21% 8%,40% 27%)}.shape-element.shape-star{clip-path:polygon(50% 0,61% 34%,98% 35%,68% 56%,79% 91%,50% 70%,21% 91%,32% 56%,2% 35%,39% 34%)}.shape-element.shape-tag{clip-path:polygon(0 0,82% 0,100% 50%,82% 100%,0 100%)}.shape-element.shape-ribbon{clip-path:polygon(0 0,10% 18%,0 36%,100% 36%,90% 18%,100% 0,100% 100%,0 100%)}.shape-element.shape-blob{border-radius:62% 38% 54% 46%/45% 57% 43% 55%}.shape-element.shape-underline{border-radius:999px}.shape-element .resize-handle{z-index:5}
.page-header .header-badge{margin-left:auto;position:relative;z-index:2;background:#f5c72b;color:#123b22;font:800 12px Manrope;padding:9px 13px;border-radius:999px;letter-spacing:.08em;white-space:nowrap}.page-header>div{position:relative;z-index:2}.page-header-logo{position:relative;z-index:2}

/* V5.6 — transformações diretas + header premium */
.topbar{min-height:96px;height:96px;padding:0 22px;background:linear-gradient(95deg,#061410 0%,#0a211a 48%,#101719 100%);border-bottom:1px solid rgba(93,132,115,.24);box-shadow:0 16px 44px rgba(0,0,0,.3)}
.workspace{height:calc(100vh - 96px)}
.studio-brand{display:flex;align-items:center;gap:14px;min-width:285px}.brand-emblem{width:66px;height:66px;border-radius:50%;padding:3px;background:linear-gradient(145deg,#f7c63c,#ef6d12 55%,#2dac55);box-shadow:0 0 0 1px rgba(255,255,255,.12),0 12px 30px rgba(0,0,0,.32)}.brand-emblem img{width:100%;height:100%;border-radius:50%;object-fit:cover;display:block}.brand-copy{display:flex;flex-direction:column}.brand-kicker{font:800 9px Manrope;letter-spacing:.18em;color:#6fe28a;margin-bottom:2px}.brand-copy strong{font:800 20px Manrope;letter-spacing:-.025em}.brand-copy small{font-size:10px;color:#8fa49d;margin-top:4px}.brand-copy small i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#60df76;box-shadow:0 0 0 4px rgba(96,223,118,.1);margin-right:5px}.project-meta{min-width:180px;border-left:1px solid rgba(255,255,255,.08);padding-left:18px;display:flex;flex-direction:column}.project-meta span{font-size:9px;text-transform:uppercase;letter-spacing:.13em;color:#7e928c}.project-meta b{font:700 12px Manrope;color:#dce8e3;margin-top:3px}.top-actions{justify-content:flex-end}.action-group{display:flex;border:1px solid #2b3a35;background:#101b18;border-radius:10px;overflow:hidden}.action-group button{border:0!important;border-radius:0!important;border-right:1px solid #2b3a35!important;background:transparent!important}.action-group button:last-child{border-right:0!important}.action-group.subtle button{width:38px;padding-left:0;padding-right:0}.action-group.export{border-color:#346f42;background:#163720}.action-group.export button{color:#bdf4c8!important}.top-actions .publish{font-weight:800;padding:10px 15px;background:linear-gradient(135deg,#ed5a08,#ff8a25);box-shadow:0 8px 24px rgba(241,103,19,.24)}.admin-link{color:#9eb0a9!important;border-color:transparent!important;background:transparent!important}

.flyer-element.selected{outline:2px solid #168bff;outline-offset:2px;box-shadow:0 0 0 1px rgba(255,255,255,.65),0 8px 26px rgba(22,139,255,.14)}.flyer-element.selected:after{display:none!important}.transform-controls{display:none;position:absolute;inset:0;pointer-events:none;z-index:999}.flyer-element.selected>.transform-controls{display:block}.resize-handle,.rotate-handle{pointer-events:auto;position:absolute;width:12px;height:12px;border-radius:50%;background:#fff;border:2px solid #168bff;box-shadow:0 2px 8px rgba(0,0,0,.28);z-index:1002}.handle-nw{left:-7px;top:-7px;cursor:nwse-resize}.handle-n{left:50%;top:-7px;transform:translateX(-50%);cursor:ns-resize}.handle-ne{right:-7px;top:-7px;cursor:nesw-resize}.handle-e{right:-7px;top:50%;transform:translateY(-50%);cursor:ew-resize}.handle-se{right:-7px;bottom:-7px;cursor:nwse-resize}.handle-s{left:50%;bottom:-7px;transform:translateX(-50%);cursor:ns-resize}.handle-sw{left:-7px;bottom:-7px;cursor:nesw-resize}.handle-w{left:-7px;top:50%;transform:translateY(-50%);cursor:ew-resize}.rotate-line{position:absolute;pointer-events:none;width:1px;height:28px;background:#168bff;left:50%;top:-33px;transform:translateX(-50%);z-index:1000}.rotate-handle{width:16px;height:16px;left:50%;top:-48px;transform:translateX(-50%);cursor:grab;background:#168bff;border:3px solid #fff}.rotate-handle:active{cursor:grabbing;transform:translateX(-50%) scale(1.12)}

.page-header{height:235px!important;padding:0!important;background:linear-gradient(118deg,#062a18 0%,#0c5630 43%,#143f2b 62%,#e45b10 100%)!important;display:grid!important;grid-template-columns:300px 1fr 126px;align-items:center;gap:24px}.page-header:after{content:"";position:absolute;right:-90px;top:-110px;width:360px;height:360px;border-radius:50%;border:52px solid rgba(255,210,43,.09);box-shadow:0 0 0 24px rgba(255,255,255,.025)}.header-noise{position:absolute;inset:0;background:radial-gradient(circle at 28% 20%,rgba(255,213,41,.14),transparent 26%),linear-gradient(130deg,transparent 0 42%,rgba(255,255,255,.05) 42% 42.8%,transparent 42.8%);pointer-events:none}.flyer-brand-lockup{height:100%;padding:26px 0 26px 30px;display:flex;align-items:center;gap:15px;position:relative;z-index:2}.flyer-emblem{width:108px;height:108px;min-width:108px;border-radius:50%;padding:5px;background:linear-gradient(145deg,#ffe45a,#f28b22 58%,#2da753);box-shadow:0 0 0 6px rgba(255,255,255,.08),0 16px 32px rgba(0,0,0,.28)}.flyer-emblem img{width:100%;height:100%;border-radius:50%;object-fit:cover;display:block}.flyer-brand-lockup span{font:800 9px Manrope;letter-spacing:.2em;color:#9ee3ac}.flyer-brand-lockup h1{font:800 38px Manrope!important;line-height:.9!important;letter-spacing:-.04em;margin:5px 0 6px!important;color:#fff}.flyer-brand-lockup p{font:700 11px Manrope!important;margin:0!important;color:#ffd84c;text-transform:uppercase;letter-spacing:.1em}.campaign-copy{position:relative;z-index:2;padding-left:28px;border-left:1px solid rgba(255,255,255,.17)}.campaign-kicker{display:inline-block;background:#ffd52d;color:#153a22;font:800 10px Manrope;letter-spacing:.12em;padding:7px 10px;border-radius:999px;margin-bottom:8px}.campaign-copy h2{font:800 39px Manrope;margin:0;color:#fff;letter-spacing:-.04em;line-height:1}.campaign-copy p{margin:8px 0 0!important;color:#cde3d5!important;font-size:13px!important}.page-header .header-badge{align-self:start;margin:24px 24px 0 0!important;justify-self:end;background:rgba(7,34,22,.68)!important;color:#fff!important;border:1px solid rgba(255,255,255,.2);backdrop-filter:blur(6px);padding:9px 12px!important;box-shadow:0 8px 22px rgba(0,0,0,.18)}

@media(max-width:1250px){.project-meta{display:none}.top-actions{gap:5px}.top-actions button,.top-actions a{padding:8px 9px}.studio-brand{min-width:240px}.workspace{grid-template-columns:270px minmax(650px,1fr) 285px}}
@media(max-width:760px){.topbar{min-height:88px;height:auto}.workspace{height:calc(100vh - 88px)}.brand-copy small,.project-meta,.top-actions .action-group.subtle{display:none}.brand-emblem{width:52px;height:52px}.studio-brand{min-width:auto}.top-actions .publish{display:none}}
/* Preserve transform handles around clipped promotional shapes */
.shape-element{background:transparent!important;box-shadow:none!important;overflow:visible!important}.shape-fill{position:absolute;inset:0;display:block;box-shadow:0 10px 24px rgba(0,0,0,.14)}.shape-circle .shape-fill{border-radius:50%}.shape-pill .shape-fill{border-radius:999px}.shape-burst .shape-fill{clip-path:polygon(50% 0%,60% 27%,79% 8%,75% 35%,100% 32%,80% 50%,100% 68%,74% 65%,79% 92%,60% 73%,50% 100%,40% 73%,21% 92%,26% 65%,0 68%,20% 50%,0 32%,26% 35%,21% 8%,40% 27%)}.shape-star .shape-fill{clip-path:polygon(50% 0,61% 34%,98% 35%,68% 56%,79% 91%,50% 70%,21% 91%,32% 56%,2% 35%,39% 34%)}.shape-tag .shape-fill{clip-path:polygon(0 0,82% 0,100% 50%,82% 100%,0 100%)}.shape-ribbon .shape-fill{clip-path:polygon(0 0,10% 18%,0 36%,100% 36%,90% 18%,100% 0,100% 100%,0 100%)}.shape-blob .shape-fill{border-radius:62% 38% 54% 46%/45% 57% 43% 55%}.shape-underline .shape-fill{border-radius:999px}

/* V5.7 — topo totalmente editável + marca real limpa */
.brand-emblem{background:transparent!important;padding:0!important;box-shadow:0 10px 28px rgba(0,0,0,.28)!important;border:1px solid rgba(255,255,255,.10)}
.brand-emblem img{object-fit:contain!important;background:transparent!important;border-radius:50%!important}
.tabs{grid-template-columns:repeat(3,1fr)}
.header-tools{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0 18px}
.header-tools button{min-height:52px;padding:10px;border-radius:10px;border:1px solid #30453c;background:linear-gradient(145deg,#17241f,#102019);color:#eef7f1;text-align:left;font-weight:700;cursor:pointer;transition:.18s}
.header-tools button:hover{border-color:#58b96d;transform:translateY(-1px);background:#183326}
.header-color-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:10px 0 14px}.header-color-row label{font-size:11px;color:#9fb1a9}.header-color-row input{display:block;width:100%;height:38px;border:1px solid #31443c;border-radius:9px;background:#111b17;padding:3px;margin-top:5px}
.editable-header-bg{z-index:0!important;background:linear-gradient(118deg,var(--hc1,#083b23) 0%,color-mix(in srgb,var(--hc1,#083b23) 72%,#15924b) 52%,var(--hc2,#ec6b10) 100%)!important;display:block!important}
.editable-header-bg:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 12% 20%,rgba(255,217,63,.14),transparent 32%),linear-gradient(135deg,transparent 0 58%,rgba(255,255,255,.055) 58.2% 59%,transparent 59.2%);pointer-events:none}
.editable-header-bg:after{content:"";position:absolute;right:-95px;top:-120px;width:390px;height:390px;border-radius:50%;border:56px solid rgba(255,220,68,.085);box-shadow:0 0 0 28px rgba(255,255,255,.022)}
.header-edit-hint{position:absolute;left:14px;top:10px;font:800 9px Manrope;letter-spacing:.15em;color:rgba(255,255,255,.33);padding:4px 7px;border:1px dashed rgba(255,255,255,.22);border-radius:6px;pointer-events:none}
.header-logo-element{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;overflow:visible!important}
.header-logo-element img{width:100%!important;height:100%!important;object-fit:contain!important;border-radius:50%!important;background:transparent!important;filter:drop-shadow(0 10px 16px rgba(0,0,0,.24))}
.flyer-element[style*="background: transparent"]{box-shadow:none}
.footer-strip{z-index:2}
@media(max-width:760px){.tabs{grid-template-columns:repeat(6,110px);overflow-x:auto}.header-tools{grid-template-columns:1fr 1fr}}

/* V5.8 — flyer completo + rodapé editável + banco de imagens */
.tabs{grid-template-columns:repeat(4,1fr)!important}
.product-library .asset,.image-library .asset{min-height:112px}.product-library .asset img,.image-library .asset img{height:74px;object-fit:contain;background:#fff;border-radius:8px}
.image-library{grid-template-columns:repeat(2,1fr)!important}.image-library .asset span{font-size:10px}.image-asset{cursor:grab}.image-asset:active{cursor:grabbing}
.footer-tools{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0 18px}.footer-tools button{min-height:48px;padding:10px;border-radius:10px;border:1px solid #30453c;background:linear-gradient(145deg,#17241f,#102019);color:#eef7f1;text-align:left;font-weight:700;cursor:pointer}.footer-tools button:hover{border-color:#58b96d;background:#183326}
.editable-footer-bg{position:absolute;left:0;width:900px;background:linear-gradient(90deg,var(--fc1,#075f32),var(--fc2,#0b7b42));z-index:2;box-shadow:0 -10px 28px rgba(7,75,38,.12)}.editable-footer-bg:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.03),transparent 32%,rgba(255,217,53,.04) 70%,transparent)}.footer-edit-hint{position:absolute;left:12px;top:8px;font:800 9px Manrope;letter-spacing:.14em;color:rgba(255,255,255,.33);padding:4px 7px;border:1px dashed rgba(255,255,255,.22);border-radius:6px;pointer-events:none}.flyer-element[style*="footer-"]{z-index:30}
.page-header{height:235px!important}.editable-header-bg{background:linear-gradient(112deg,var(--hc1,#07552e) 0%,#0c7040 48%,var(--hc2,#ef6a11) 100%)!important}.editable-header-bg:after{right:-120px!important;top:-140px!important;width:420px!important;height:420px!important;border-width:64px!important}
.header-logo-element img{object-fit:contain!important;border-radius:0!important;filter:drop-shadow(0 14px 18px rgba(0,0,0,.22))!important}
.header-logo-element{overflow:visible!important}
.flyer-element[role^="footer-"]{color:#fff}

.product-card{border:1px solid #e3ddd0!important;border-radius:0!important;box-shadow:none!important;padding:12px 12px 8px!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;overflow:visible!important;background:#fff!important}
.product-card .product-copy{height:58px;text-align:left;position:relative;z-index:2}.product-card .product-title{font:800 16px/1.05 Manrope!important;letter-spacing:-.015em;color:#111;margin:0!important;text-transform:uppercase}.product-card .product-unit{font:700 13px/1.1 DM Sans;color:#111;margin-top:2px!important}.product-card>img{width:100%!important;height:225px!important;object-fit:contain!important;background:#fff!important;margin:0!important;display:block}.product-card .product-price{position:absolute!important;left:43px!important;bottom:-1px!important;width:135px!important;height:112px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:3px!important;background:#ffd329!important;color:#cc1d12!important;font:900 38px/1 Manrope!important;clip-path:polygon(50% 0%,58% 11%,69% 5%,75% 17%,88% 14%,89% 29%,100% 35%,93% 49%,100% 61%,88% 70%,89% 85%,74% 83%,67% 96%,56% 89%,46% 100%,37% 89%,24% 95%,20% 81%,5% 82%,9% 67%,0 58%,10% 47%,2% 34%,16% 28%,15% 13%,31% 15%,38% 3%)!important;filter:drop-shadow(0 4px 4px rgba(0,0,0,.12));transform:rotate(-2deg);padding:0!important;border-radius:0!important}.product-card .product-price small{font-size:14px!important;align-self:center!important;margin-top:3px!important}.product-card .product-price em{position:absolute;right:20px;bottom:18px;font:900 8px Manrope;letter-spacing:.03em;color:#b81e13;font-style:normal}.product-card:nth-of-type(even) .product-price{transform:rotate(2deg)}

/* make text linebreaks in editable blocks render naturally */
.text-element{white-space:pre-line!important}.sticker-element{white-space:pre-line!important}

@media(max-width:760px){.tabs{grid-template-columns:repeat(8,110px)!important}.footer-tools{grid-template-columns:1fr 1fr}.image-library{grid-template-columns:repeat(2,1fr)!important}}

/* V5.9 — layout aprovado: admin rail + biblioteca + canvas + propriedades */
:root{--green:#0b5f33;--green2:#159447;--panel:#0f171a;--line:#263238;--muted:#94a6a0;--orange:#ff7417}
.topbar{height:88px;padding:0 22px;background:linear-gradient(90deg,#071711,#0a1316 58%,#07110f);border-bottom:1px solid #20322b}.brand-emblem{width:64px;height:64px;border-radius:18px;background:transparent!important;overflow:hidden}.brand-emblem img{width:100%;height:100%;object-fit:contain;background:transparent!important}.brand-copy strong{font-size:22px}.brand-copy small{font-size:11px}.project-meta{border:1px solid #25372f;background:#101a17;padding:10px 18px;border-radius:10px;min-width:210px}.top-actions .publish{background:linear-gradient(135deg,#ff842d,#f36311);box-shadow:0 8px 22px #f36b1a35;font-weight:800}.workspace{grid-template-columns:252px 300px minmax(650px,1fr) 292px;height:calc(100vh - 88px)}
.admin-rail{background:radial-gradient(circle at 20% 35%,#0d3a25 0,#082217 35%,#071912 68%);border-right:1px solid #23402f;padding:18px 14px;display:flex;flex-direction:column;overflow:auto;color:#dcebe2}.rail-brand{display:flex;align-items:center;gap:12px;padding:4px 4px 18px}.rail-brand img{width:52px;height:52px;object-fit:contain}.rail-brand strong{display:block;font:800 17px Manrope}.rail-brand small{display:block;color:#8ea99a;font-size:11px;margin-top:2px}.site-status{display:flex;align-items:center;gap:10px;border:1px solid #29523a;background:#0d2b1d;padding:14px;border-radius:12px;margin:2px 0 22px}.site-status>span{width:12px;height:12px;border-radius:50%;background:#6bde69;box-shadow:0 0 0 5px #50c95b18,0 0 14px #6bde69}.site-status b,.site-status small{display:block}.site-status b{font-size:13px}.site-status small{font-size:10px;color:#91aa9b}.rail-section{display:grid;gap:6px;margin-bottom:18px}.rail-section em{font-style:normal;font-size:10px;letter-spacing:.16em;color:#54856c;padding:4px 10px}.rail-section a{position:relative;min-height:44px;display:flex;align-items:center;gap:10px;color:#b9cbc0;text-decoration:none;padding:9px 11px;border-radius:10px;font-size:13px}.rail-section a:hover{background:#113526;color:#fff}.rail-section a.active{min-height:64px;background:linear-gradient(135deg,#176b39,#219b4e);color:#fff;box-shadow:0 12px 26px #0004}.rail-section a.active span{font-weight:800}.rail-section a.active small{position:absolute;left:38px;bottom:10px;font-size:10px;color:#d0efdb}.rail-section a.active b{margin-left:auto;font-size:22px}.rail-section a i{margin-left:auto;background:#274438;border-radius:20px;padding:3px 7px;font-style:normal;font-size:10px}.rail-bottom{margin-top:auto;border-top:1px solid #244131;padding-top:14px;display:grid;gap:6px}.rail-bottom a{color:#9fb8aa;text-decoration:none;padding:7px 8px;font-size:12px}
.leftbar{background:#0d1417;border-right:1px solid #283439}.tabs{grid-template-columns:repeat(4,1fr);gap:6px;padding:12px 10px 6px;position:sticky;top:0;background:#0d1417;z-index:2}.tabs button{font-size:11px;padding:9px 4px;background:#182125;border:1px solid #1e2a2e}.tabs button.active{background:#187840;border-color:#2fa15a}.lib-panel{padding:12px 16px 28px}.panel-heading h3{font:800 18px Manrope;margin:4px 0 4px}.panel-heading p{font-size:12px;line-height:1.45}.panel-heading.compact h3{font-size:13px;margin-top:18px}.component-list{display:grid;gap:8px;margin:14px 0}.component-row{display:grid;grid-template-columns:42px 1fr 24px;align-items:center;gap:10px;width:100%;background:#121c1f;border:1px solid #29373c;color:#edf4f0;border-radius:10px;padding:9px 10px;text-align:left;cursor:pointer}.component-row:hover{border-color:#348456;background:#152822}.component-row b,.component-row small{display:block}.component-row b{font-size:12px}.component-row small{font-size:10px;color:#9cafaa;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.component-row i{font-style:normal;color:#8fbba1}.component-thumb{width:38px;height:38px;border-radius:9px;background:#fff6db;display:grid;place-items:center;overflow:hidden}.component-thumb img{width:100%;height:100%;object-fit:contain}.component-icon{width:34px;height:34px;border-radius:8px;background:#1b3429;display:grid;place-items:center;color:#7ee398;font-weight:800}.component-badge{font-size:8px;background:#ffd52d;color:#17371f;border-radius:8px;padding:9px 4px;text-align:center;font-weight:900}.header-tools.mini{grid-template-columns:repeat(2,1fr)}.primary-wide{background:linear-gradient(135deg,#153328,#13241f)!important;text-align:center!important;border-color:#3a5a4b!important}
.stage-toolbar{height:54px;padding:8px 14px}.stage-toolbar #selectTool{background:#219d4b;border-color:#31b65b}.canvas-wrap{padding:16px 20px 30px;background:#101619}.flyer-canvas{box-shadow:0 18px 50px #0009}.pagesbar{height:48px;justify-content:center}
.inspector{background:#0d1417;padding:18px 16px}.inspector-title{padding-bottom:14px;border-bottom:1px solid #263238}.inspector-title h3{font:800 15px Manrope;margin:0 0 4px}.inspector-title small{font-size:11px;color:#84968f}.field{margin:14px 0}.field label{font-weight:700;color:#aebcb7}.field input,.field textarea,.field select{background:#111a1e;border-color:#314046}.align-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.align-grid button{height:38px;border-radius:8px;border:1px solid #33444a;background:#142025;color:#dce6e2;font-size:18px;cursor:pointer}.align-grid button:hover{background:#1e4e34;border-color:#3d9c5d}.layer-buttons{display:grid;grid-template-columns:1fr 1fr}.layer-buttons button{font-size:11px}
.product-card>img{height:245px!important;transform:scale(1.08);transform-origin:center center}.product-card .product-copy{height:54px}.product-card .product-price{left:35px!important;width:145px!important;height:118px!important;font-size:40px!important}.product-card{padding:10px 10px 6px!important}
.header-logo-element img{object-fit:contain!important;background:transparent!important;border-radius:0!important}
@media(max-width:1500px){.workspace{grid-template-columns:220px 270px minmax(610px,1fr) 280px}.admin-rail{padding-left:10px;padding-right:10px}.rail-section a{font-size:12px}.component-row{grid-template-columns:36px 1fr 18px}.component-row small{max-width:150px}}
@media(max-width:1220px){.admin-rail{display:none}.workspace{grid-template-columns:270px minmax(650px,1fr) 285px}}
/* 9.2: offer composition controls and proportionate product fields. */
.product-builder{border:1px solid #d9e3db;background:#fff;color:#193e2b;padding:14px;border-radius:10px;margin:8px 0 22px}.product-builder .builder-primary,.stage-toolbar .builder-primary{background:#075333!important;color:#fff!important;border:0!important;border-radius:7px;padding:11px 12px;cursor:pointer;font-size:14px;font-weight:700}.product-builder>.builder-primary,.product-builder details>.builder-primary{width:100%}.product-builder p{color:#52665a!important;font-size:13px!important;margin:9px 0 14px!important}.product-builder summary{font-size:14px;font-weight:700;cursor:pointer;padding:13px 0}.product-builder details{border-top:1px solid #dce7df;margin-top:14px}.builder-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.builder-fields label,.builder-label{display:block;font-size:13px;font-weight:600;color:#193e2b}.product-builder input[type=number],.product-builder select{width:100%;background:#fff;color:#193e2b;border:1px solid #c7d6cc;border-radius:5px;padding:9px;margin:6px 0 12px;font:14px Arial}.builder-presets{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}.builder-presets button{background:#eaf2eb;border:1px solid #cadfcf;color:#17462c;padding:8px;border-radius:5px;font-size:12px;cursor:pointer}.builder-check{display:flex;gap:8px;font-size:13px;align-items:start;margin:8px 0 14px}.product-builder small{display:block;color:#596d60;font-size:12px;margin:10px 0}.product-builder input[type=checkbox]{accent-color:#075333}
.product-card.product-flex{padding:7px!important;overflow:hidden!important;border-radius:5px!important;gap:4px!important;container-type:inline-size}
.product-card.product-flex .product-copy{height:auto!important;min-height:26px;flex:0 0 auto}.product-card.product-flex .product-title{font-size:var(--product-title-size,16px)!important;line-height:1.12!important;overflow-wrap:anywhere;max-height:2.3em;overflow:hidden}.product-card.product-flex .product-unit{font-size:11px!important;line-height:1.2!important}
.product-card.product-flex>img,.product-card.product-flex>.product-image-placeholder{height:0!important;min-height:20px;flex:1 1 0;width:100%!important;object-fit:contain!important;transform:none!important;margin:0!important;border-radius:3px}.product-image-placeholder{display:flex;align-items:center;justify-content:center;background:#f3f5f2;color:#69796b;font-size:11px;border:1px dashed #cad5c9;text-align:center}
.product-card.product-flex .product-price{position:static!important;left:auto!important;bottom:auto!important;width:100%!important;height:auto!important;min-height:26px;flex:0 0 auto;clip-path:none!important;border-radius:4px!important;background:#ffd329!important;filter:none!important;transform:none!important;font-size:var(--product-price-size,28px)!important;line-height:1.1!important;padding:4px!important;margin:0!important;white-space:nowrap;gap:4px!important}.product-card.product-flex .product-price small{font-size:11px!important;color:#9b2217!important;margin:0!important}.product-card.product-flex .product-price em{display:none!important}
.stage-toolbar{height:auto!important;min-height:48px;flex-wrap:wrap}.brand-emblem,.rail-brand>img{background:transparent!important;box-shadow:none!important}.brand-emblem img{object-fit:contain!important;border-radius:0!important;background:transparent!important}
@media(max-width:760px){.product-builder{margin-bottom:12px}.leftbar .lib-panel{height:170px!important}.product-builder summary{min-height:44px}.stage-toolbar .builder-primary{display:block!important}.inspector{display:block!important;position:relative!important;top:auto!important;right:auto!important;width:auto!important;max-height:350px;margin-bottom:235px}.stage{min-height:70vh}.workspace{height:auto!important}}

.department-heading{overflow:hidden!important;padding:0!important;display:flex;align-items:center;isolation:isolate}.department-heading .department-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:70% 55%;z-index:-2}.department-shade{position:absolute;inset:0;background:linear-gradient(90deg,var(--department-color) 0%,var(--department-color) 28%,transparent 88%);z-index:-1}.department-name{display:block;padding:4px 22px;color:#fff;text-shadow:0 1px 3px #0008;font-weight:800;line-height:1.1}.text-element{white-space:pre-wrap}

.editor-publishing{position:relative;display:flex;flex-wrap:wrap;gap:10px;align-items:end;padding:14px;background:#fff;color:#153c2d;border-radius:10px;margin:0 0 18px;width:900px;max-width:100%;font:14px Arial;flex-shrink:0}.editor-publishing label{display:block;font-size:13px}.editor-publishing input,.editor-publishing select{display:block;padding:7px;border:1px solid #aabfaf;border-radius:5px;min-height:36px;max-width:180px;background:white;color:#153c2d}.editor-publishing button{background:#075333;color:white;border:0;border-radius:6px;padding:9px;min-height:38px;cursor:pointer}#publication-check{flex-basis:100%;color:#8a241b;line-height:1.5}.stage{overflow:auto}.editor-publishing strong{flex-basis:100%}
/* The bundled packshots have wide white margins; frame them consistently. */
.product-card.product-flex>.product-photo{position:relative;flex:1 1 0;min-height:20px;width:100%;overflow:hidden;background:white;border-radius:3px}
.product-card.product-flex>.product-photo>img{position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:contain!important;margin:0!important;transform:none!important;border-radius:0}
.product-card.product-flex>.product-photo.legacy-packshot>img{transform:scale(3.25)!important;transform-origin:center}
.library-photo{display:block;position:relative;overflow:hidden;background:white;width:100%;height:74px;border-radius:8px}
.asset .library-photo>img{position:absolute;inset:0;width:100%;height:100%!important;object-fit:contain;transform:scale(3.25);transform-origin:center}
.publication-dialog{border:0;border-radius:14px;padding:25px;width:min(520px,90vw);background:white;color:#153c2d;font:15px 'DM Sans',sans-serif}.publication-dialog::backdrop{background:#001e18a8}.publication-dialog p{line-height:1.6;margin:0 0 22px}.publication-dialog button{padding:12px 16px;border:0;border-radius:7px;margin-right:10px;cursor:pointer}.publication-dialog .confirm-publish{background:#07552e;color:white}
.flyer-canvas{flex-shrink:0;min-width:900px}.canvas-wrap{justify-content:flex-start}

/* Spacious studio: navigation can be expanded without forcing a wide canvas. */
.topbar{height:auto;min-height:88px;gap:16px;padding:12px 20px;flex-wrap:wrap}
.project-meta{display:none}.brand-copy strong{font-size:19px}.brand-copy small{max-width:420px;display:block}
#editor-sync{color:#a4e7ba}#editor-sync[data-error=true]{color:#ffb2a5}
.editor-app{height:100dvh;display:flex;flex-direction:column}.workspace{height:auto;flex:1;min-height:0;grid-template-columns:210px 270px minmax(0,1fr) 255px}
.studio-compact .workspace{grid-template-columns:270px minmax(0,1fr) 255px}.studio-compact .admin-rail{display:none}
.stage{min-height:0;overflow:hidden}.inspector{position:static;width:auto;box-shadow:none}.canvas-wrap{min-height:180px;min-width:0;align-items:flex-start;justify-content:center;padding:20px;overflow:auto}
.top-actions #publishBtn{display:inline-block!important}
.stage-toolbar{flex-shrink:0;gap:6px}.stage-toolbar button{font-size:11px;padding:8px}.stage-toolbar #selectTool{display:none}
.publication-settings{flex-shrink:0;border-bottom:1px solid #2d3d35;background:#101d17;padding:10px 14px;font-size:13px}
.publication-settings summary{cursor:pointer;font-weight:700}.published-status{display:block;color:#b2c7b8;font-size:11px;font-weight:400;margin-top:4px}
.publication-settings .editor-publishing{width:auto;margin:12px 0 0;padding:12px}.editor-publishing [hidden]{display:none!important}
.pagesbar{height:auto;min-height:120px;justify-content:flex-start;flex-shrink:0;overflow-x:auto;gap:8px}.pagesbar>button{flex-shrink:0;font-size:11px;max-width:110px}
.pagesbar .page-thumb{height:auto;min-width:65px;width:65px;display:flex;flex-direction:column;gap:5px;padding:4px;font-size:10px}
.page-miniature{display:block;position:relative;width:54px;height:72px;overflow:hidden;background:#fff8e9;pointer-events:none}
.page-miniature .thumbnail-art{position:absolute;left:0;top:0;display:block;transform:scale(.06);transform-origin:top left;pointer-events:none;background:#fff8e9!important}
.catalog-search{display:grid;gap:8px;margin:12px 0}.catalog-search label{font-size:12px;color:#b9cbc1}.catalog-search input,.catalog-search select{width:100%;padding:10px;margin-top:5px;background:#18251f;color:white;border:1px solid #3e5548;border-radius:7px}
.catalog-search button{padding:10px;border:1px solid #355a43;border-radius:7px;background:#17683b;color:white;cursor:pointer}.catalog-search button:disabled{opacity:.5;cursor:default}.catalog-search .catalog-clear{background:transparent}.catalog-search p{margin:0;font-size:12px}
.product-library{grid-template-columns:repeat(2,minmax(0,1fr))!important}.catalog-card{border:2px solid #dfe9df;border-radius:9px;padding:7px;background:#fafcf8;color:#183625;text-align:left;cursor:pointer;min-width:0}.catalog-card[aria-pressed=true]{border-color:#ffce38;background:#fff5cc;box-shadow:0 0 0 1px #ffce38}.catalog-card .catalog-photo{display:block;height:83px;overflow:hidden;background:white;border-radius:5px}.catalog-photo img{width:100%;height:100%;object-fit:contain}.catalog-photo.packshot img{transform:scale(3.25)}.catalog-name{display:block;font-size:11px;font-weight:700;margin:7px 0 4px}.catalog-card small{font-size:10px}.upload-asset{margin-top:10px}
.advanced-properties summary{cursor:pointer;color:#bfcebf;font-size:13px;padding:16px 0}.quick-product{width:min(480px,calc(100vw - 28px));max-height:90dvh;overflow:auto;border:0;border-radius:16px;padding:26px;background:#f8fbf5;color:#173e28;font:14px 'DM Sans',sans-serif}.quick-product::backdrop{background:#001a13b8}.quick-product h2{margin:0;font-size:23px}.quick-product p{line-height:1.5}.quick-product label{display:block;font-weight:700;margin:12px 0}.quick-product input{display:block;width:100%;padding:11px;margin-top:5px;border:1px solid #b6c8b8;border-radius:7px;background:white;color:#163723;font:inherit}.quick-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.quick-photo{width:100%;height:110px;object-fit:contain;background:white;border-radius:8px}.quick-actions{display:flex;gap:10px;justify-content:flex-end}.quick-actions button{border:0;border-radius:7px;padding:12px;cursor:pointer}.quick-actions [type=submit]{background:#075333;color:white}.quick-error{color:#a12319}
@media(max-width:1100px){.workspace,.studio-compact .workspace{grid-template-columns:230px minmax(0,1fr) 210px}.admin-rail{display:none}.top-actions button:nth-child(3),.top-actions button:nth-child(4){display:inline-block}.brand-copy strong{font-size:16px}.top-actions{gap:4px}.top-actions button,.top-actions a{padding:7px;font-size:11px}}
@media(max-width:760px){.editor-app{height:auto;min-height:100dvh}.workspace,.studio-compact .workspace{display:flex;flex-direction:column}.leftbar{position:static;height:auto;max-height:340px;order:2}.leftbar .lib-panel{height:auto!important;max-height:230px;overflow:auto}.leftbar .tabs{grid-template-columns:repeat(4,1fr)!important;overflow:visible}.stage{height:80dvh;min-height:620px;order:1}.inspector{position:static!important;max-height:none;margin:0;order:3}.topbar{position:static}.top-actions{justify-content:flex-start}.stage-toolbar{gap:5px}.pagesbar{min-height:110px}.canvas-wrap{min-height:220px}}
