:root{--blue:#416782;--gold:#c5a56b;--pale:#edf6fc}body{background:#f4f8fb}header{background:#203a4b;border-bottom:3px solid var(--gold)}main{max-width:1240px}section{box-shadow:0 3px 14px #203a4b09;padding:24px;border-radius:18px}.layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:20px;align-items:start}.layout section{margin-top:0}.eyebrow{color:#92733d;letter-spacing:3px;font-size:12px;font-weight:700;margin-bottom:9px}.secondary{background:white;color:var(--blue);border:1px solid #c7d7e2}.selected{background:var(--blue);color:white}.tabs,.chips,.actions{display:flex;flex-wrap:wrap;gap:8px}.chip{padding:6px 10px;margin:2px;background:var(--pale);font-size:13px}.drop{border:2px dashed #b9d7e8;border-radius:16px;background:#f7fbfe;text-align:center;padding:32px 12px;cursor:pointer;margin:12px 0}.drop img{display:block;margin:auto;max-height:240px}.chat{background:#e7e1d7;padding:16px;border-radius:14px}.chat pre{background:#d9fdd3;overflow-wrap:anywhere;margin:0}.variant{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:8px;align-items:center;margin:8px 0}input:focus,textarea:focus,select:focus{outline:2px solid #8fb8d3;outline-offset:1px}button:hover{filter:brightness(.96)}.gold{background:#c5a56b;color:#203a4b}details{border:1px solid #dbe5eb;padding:15px;border-radius:12px;margin-top:18px}summary{cursor:pointer;font-weight:600}p{line-height:1.5}@media(max-width:850px){.layout{grid-template-columns:1fr}.variant{grid-template-columns:1fr 1fr}.layout section{margin-bottom:8px}}
/* Desktop navigation and mobile-first registration */
:root{--ink:#203a4b;--blue:#416782;--gold:#c5a56b;--pale:#eaf5fc;--line:#dbe5eb}
body{font:15px/1.5 system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink);background:#f4f8fb}header{position:fixed;inset:0 auto 0 0;width:220px;background:#fff;color:var(--ink);border:0;border-right:1px solid var(--line);padding:30px 15px;display:block}header b{display:block;color:var(--ink);font-size:21px;letter-spacing:-.6px;margin:0 8px 30px}header b span{color:#987a42}nav{display:grid;gap:8px}nav a{color:#416782;padding:12px 13px;border-radius:10px;margin:0;font-weight:600}nav a:hover,nav a.nav-active{background:#eaf5fc;color:#254c67}nav a.nav-active{box-shadow:inset 3px 0 var(--gold)}main{max-width:1500px;margin:0 0 0 220px;padding:28px 26px}h1{font-size:27px;letter-spacing:-.7px}h2{font-size:21px;letter-spacing:-.35px}p{color:#526a7b;margin:8px 0 16px}section{border-color:#dbe5eb;background:#fff;box-shadow:0 3px 14px #203a4b08}.layout{grid-template-columns:minmax(0,1.65fr) minmax(260px,1fr);gap:20px}.layout>div:last-child>section{position:sticky;top:22px}.actions.photo-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}.photo-actions button{margin:0;padding:16px 12px;font-weight:650}.photo-actions #paste{grid-column:1/-1;border-style:dashed;background:#f8fcff}.drop{min-height:175px;display:grid;place-items:center;padding:25px}.drop #droptext{font-size:17px}.drop #droptext .camera-symbol{font-size:36px;display:block;line-height:1.4}.drop [hidden]{display:none!important}.step-head{padding-bottom:14px;border-bottom:1px solid var(--line);margin-bottom:12px}.step-head p{margin-bottom:0}.price-name{display:grid;grid-template-columns:minmax(110px,1fr) minmax(0,2fr);gap:16px}.discount-row{display:grid;grid-template-columns:minmax(80px,1fr) auto minmax(120px,2fr);align-items:center;gap:10px}.field-unit{display:flex;align-items:center;border:1px solid #cbd8df;border-radius:8px;overflow:hidden;background:white}.field-unit span{padding:0 12px;color:#627787}.field-unit input:not([type=checkbox]){border:0;border-radius:0;min-width:0}.field-unit:focus-within{outline:2px solid #8fb8d3}.field-unit input:focus{outline:0}.variant input{min-width:0}.variant button{padding:10px}.variant-labels{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:8px;font-size:12px;color:#617784}.preview-photo{display:block;width:100%;max-height:240px;object-fit:contain;border-radius:9px 9px 0 0;background:#d9fdd3}.preview-photo[hidden]{display:none}.chat{background:#e8e4dc;padding:14px}.chat pre{color:#203a4b;line-height:1.6;padding:13px;white-space:pre-wrap}.publish-buttons{display:grid;gap:9px;margin-top:15px}.publish-buttons button{width:100%;margin:0;font-weight:700}.group-list label{font-weight:400;overflow-wrap:anywhere}.tabs .tab{flex:1;min-width:110px}.tabs .selected{background:var(--blue);border-color:var(--blue)}.rules{background:#f2f8fc;border:1px solid #dcebf4;border-radius:12px;padding:12px;margin-top:18px}.rules p{margin:4px 0}.button-link{display:inline-block;color:var(--blue);padding:11px;text-decoration:none}.table-scroll{overflow-x:auto}.reply-row{border-top:1px solid var(--line);padding:12px 0}input,textarea,select{background:#fff;color:var(--ink)}button:disabled{opacity:.55;cursor:not-allowed}.editor textarea{line-height:1.6;resize:vertical}.chip{border-color:#d4e4ee}.caption-time{display:block;text-align:right;font-size:11px;color:#638072}.page-title{margin:0 0 18px}.subtle-link{color:#416782;background:none;padding:0;text-decoration:underline;font-weight:600}.section-icon{color:#416782}.variant-labels[hidden]{display:none}
@media(max-width:1100px){header{width:185px}main{margin-left:185px;padding:22px 16px}.layout{grid-template-columns:1fr}.layout>div:last-child>section{position:static}}
@media(max-width:700px){header{position:static;width:100%;padding:14px 15px;border-right:0;border-bottom:2px solid var(--gold)}header b{margin:0 0 12px}nav{display:flex;overflow-x:auto;gap:4px}nav a{white-space:nowrap;font-size:13px;padding:8px 10px}main{margin:0;padding:17px 12px}.layout{display:block}section{padding:17px}.price-name{grid-template-columns:1fr 1.6fr;gap:10px}.photo-actions button{font-size:13px}.variant{grid-template-columns:1fr 1fr}.variant-labels{display:none}.tabs .tab{font-size:13px;min-width:0}.layout>div:last-child>section{position:static}}
/* Campaign workspace */
.campaign-hero{background:linear-gradient(115deg,#203a4b,#416782 72%,#5a829d);color:white;border-radius:18px;padding:26px 30px;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px;border-bottom:3px solid #c5a56b}.campaign-hero h1{margin:3px 0;color:white}.campaign-hero p,.campaign-hero a:not(.ce-button){color:#e5f2fb;margin:0}.campaign-hero .eyebrow{color:#e7cb95}.ce-button{display:inline-block;text-decoration:none;background:#416782;color:white;border-radius:9px;padding:12px 16px;font-weight:650;text-align:center;white-space:normal}.ce-button.gold{background:#c5a56b;color:#203a4b}.ce-button.secondary{background:white;color:#416782;border:1px solid #c7d7e2}.ce-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:20px 0}.ce-kpis>div{background:white;border:1px solid #dbe5eb;border-radius:15px;padding:18px;border-top:4px solid #8bb8d3;box-shadow:0 4px 15px #203a4b08}.ce-kpis>div:last-child{border-top-color:#c5a56b}.ce-kpis small{display:block;color:#526a7b}.ce-kpis strong{display:block;font-size:23px;margin-top:5px;overflow-wrap:anywhere}.ce-filter{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:8px 0}.ce-filter input{flex:2;min-width:160px}.ce-filter select{flex:1;min-width:125px}.ce-filter button{margin:0}.ce-cards,.ce-product-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:18px}.ce-product-cards{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}.ce-card{border:1px solid #dbe5eb;background:white;border-radius:17px;overflow:hidden;box-shadow:0 5px 18px #203a4b0b}.ce-cover{height:165px;position:relative;background:linear-gradient(120deg,#416782,#b9ddf2);display:grid;place-items:center;color:#fff;font-weight:700;letter-spacing:3px}.ce-cover img{width:100%;height:165px;object-fit:cover}.ce-status{position:absolute;top:12px;right:12px;background:#eaf5fc;color:#254c67;font-size:12px;letter-spacing:0;padding:4px 10px;border-radius:20px}.ce-card-body{padding:18px}.ce-card h2,.ce-card h3{margin:0 0 8px}.ce-mini{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:14px 0}.ce-mini div{background:#edf6fc;border-radius:10px;text-align:center;padding:10px 4px;overflow-wrap:anywhere}.ce-mini div:last-child{background:#faf5eb}.ce-mini small{display:block;font-size:11px}.ce-edit-grid{display:grid;grid-template-columns:1fr 1.6fr;gap:22px}.ce-cover-upload{min-height:240px;margin:0}.ce-cover-upload img{max-width:100%;max-height:180px;object-fit:contain}.ce-two{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:12px}.ce-option{display:block;border:1px solid #dbe5eb;border-radius:12px;background:#f7fafc;padding:15px;font-weight:650}.ce-option:has(input:checked){background:#edf6fc;border-color:#91bad4}.ce-option small{display:block;font-weight:400;margin-top:5px}.ce-fee-options{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.ce-fees{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.ce-group-options{max-height:240px;overflow:auto;padding:10px;border:1px solid #dbe5eb;border-radius:12px}.ce-group-options label{font-weight:400;overflow-wrap:anywhere}.ce-product>img{width:100%;height:200px;object-fit:contain;background:#f7fafc}.ce-product .actions{gap:5px}.ce-product .actions button{font-size:12px;padding:7px}.ce-product-table{display:grid;gap:10px}.ce-product-table .ce-product{display:grid;grid-template-columns:120px 1fr}.ce-product-table .ce-product>img{height:120px}.ce-product-table .ce-card-body{display:flex;gap:15px;align-items:center;flex-wrap:wrap}.ce-product-table .ce-card-body h3{flex:1}.ce-card-body input[type=number]{max-width:100px}.ce-card-body form{margin:0} [hidden]{display:none!important}@media(max-width:850px){.ce-kpis{grid-template-columns:repeat(2,1fr)}.ce-edit-grid,.ce-two{grid-template-columns:1fr}.ce-fee-options,.ce-fees{grid-template-columns:repeat(2,1fr)}.campaign-hero{padding:20px;align-items:flex-start;flex-wrap:wrap}.ce-product-cards{grid-template-columns:repeat(auto-fill,minmax(155px,1fr))}.ce-product>img{height:155px}}

/* 0.4.1 — compact campaign editor and consistent catalog layout */
header{overflow-y:auto;z-index:10}main{min-width:0;max-width:none}
.ce-workspace,.ce-editor{width:100%;min-width:0;max-width:1450px;margin-inline:auto}
.ce-workspace *,.ce-editor *{min-width:0}
.ce-dashboard-kpis>div{padding:16px 18px;border-top-width:3px}
.ce-dashboard-kpis>div:nth-child(2){border-top-color:#6aa797}.ce-dashboard-kpis>div:nth-child(3){border-top-color:#416782}
.ce-toolbar{padding:16px 20px;margin:18px 0 22px}.ce-filter{display:grid;grid-template-columns:minmax(0,2.4fr) minmax(0,1fr) auto;gap:10px;margin:0 0 8px}.ce-filter input,.ce-filter select{width:100%;min-width:0}.ce-filter input[type=hidden]{display:none}.ce-filter button{margin:0;align-self:stretch}.ce-product-filter{grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr) auto}.ce-filter:has(select[name=view]){grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr) auto}
.ce-campaign-cards{grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));align-items:stretch;gap:20px}.ce-campaign-card{display:flex;flex-direction:column;min-width:0;max-width:460px}.ce-campaign-card .ce-cover{height:auto;aspect-ratio:2.15;display:grid;position:relative;overflow:hidden;isolation:isolate;background:linear-gradient(130deg,#203a4b,#416782 60%,#a9cfdf)}.ce-campaign-card .ce-cover img{display:block;max-height:none;width:100%;height:100%;position:absolute;inset:0;object-fit:cover}.ce-cover-brand{font-size:17px;letter-spacing:2px}.ce-cover-brand em{font-style:normal;color:#e2c48b}.ce-cover-id{position:absolute;bottom:10px;left:12px;letter-spacing:0;background:#203a4bcc;color:#fff;font-size:11px;padding:3px 8px;border-radius:5px}.ce-status{z-index:1;white-space:nowrap}.ce-status.state-aberto{background:#e4f5ed;color:#246a55}.ce-status.state-encerrado{background:#f9e6e1;color:#934b40}.ce-status.state-inativo{background:#edf0f2;color:#526a7b}.ce-campaign-card .ce-card-body{display:flex;flex:1;flex-direction:column;gap:7px;padding:18px}.ce-campaign-card h2{font-size:18px;overflow-wrap:anywhere;margin:0}.ce-campaign-card p{margin:0;overflow-wrap:anywhere}.ce-mini{grid-template-columns:repeat(3,minmax(0,1fr));margin:8px 0 12px}.ce-mini b{font-size:15px;overflow-wrap:anywhere}.ce-card-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:auto}.ce-card-actions>a,.ce-card-actions>button,.ce-card-actions form button{margin:0;width:100%;font-size:13px;padding:10px 8px;line-height:1.35;white-space:normal}.ce-card-actions form{margin:0}.ce-order-link{font-size:13px;color:#416782;text-decoration:none;text-align:center;padding:7px 0 0}.ce-empty{text-align:center;padding:30px}
.ce-editor .ce-edit-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:7px;margin:0 0 16px}.ce-edit-tabs button{display:flex;align-items:center;justify-content:center;gap:8px;background:transparent;color:#526a7b;border:1px solid transparent;border-radius:9px;padding:12px 7px;margin:0;font-weight:650}.ce-edit-tabs button span{font-size:11px;color:#92733d}.ce-edit-tabs button[aria-selected=true]{background:#eaf5fc;color:#254c67;border-color:#c3dce9;box-shadow:inset 0 -2px #c5a56b}.ce-edit-panel{margin:0 0 14px;padding:24px}.ce-edit-panel h2{margin:0 0 4px}.ce-edit-panel p{margin:5px 0 16px}.ce-editor label{margin:10px 0 5px}.ce-editor textarea{resize:vertical}.ce-editor .ce-edit-grid{grid-template-columns:minmax(180px,.8fr) minmax(0,1.5fr);gap:22px;align-items:start}.ce-editor .ce-cover-upload{display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:238px;padding:14px;gap:7px;overflow:hidden}.ce-cover-upload img{width:100%;height:135px;object-fit:contain}.ce-editor .ce-option{display:block;margin:0;padding:12px;cursor:pointer}.ce-editor input[type=radio],.ce-editor input[type=checkbox]{width:auto!important;padding:0;accent-color:#416782;margin:0 5px 0 0;vertical-align:middle}.ce-editor .ce-fee-options{margin:15px 0}.ce-editor .ce-fee-options label{font-size:13px;line-height:1.4}.ce-editor .ce-fees{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.ce-editor .ce-fees label{font-size:12px;white-space:normal}.ce-editor .ce-two{grid-template-columns:repeat(2,minmax(0,1fr))}.ce-editor .ce-group-options{min-height:75px;max-height:205px;background:#fbfdff}.ce-editor .ce-group-options label{padding:6px;margin:0}.ce-editor #wa-status{display:block;margin-bottom:10px}.ce-editor .ce-extra{margin-top:16px;background:#f8fbfd}.ce-edit-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:12px 16px;background:white;border:1px solid var(--line);border-radius:12px}.ce-edit-footer-right{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.ce-edit-footer button{margin:0}.ce-edit-footer .ce-button{padding:10px 16px}.ce-edit-footer .gold{font-weight:700}
.ce-viewbar{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:12px}.ce-view-switch{display:flex;background:#edf2f5;border-radius:10px;padding:3px;gap:3px}.ce-view-switch a{padding:7px 12px;color:#526a7b;text-decoration:none;border-radius:7px;font-size:13px;font-weight:600}.ce-view-switch .is-current{background:white;color:#254c67;box-shadow:0 1px 4px #203a4b22}.ce-product-cards.ce-catalog{grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr));align-items:start}.ce-catalog .ce-product{min-width:0}.ce-product-image{position:relative;display:grid;place-items:center;background:#f8fafb;aspect-ratio:1.15;overflow:hidden;color:#617784}.ce-product-image img{width:100%;height:100%;max-height:none;object-fit:contain;position:absolute;inset:0;padding:10px}.ce-promo-badge{position:absolute;top:10px;left:10px;background:#f3e7ce;color:#72531d;font-size:10px;font-weight:700;border-radius:6px;padding:4px 7px}.ce-catalog .ce-card-body{display:flex;flex-direction:column;gap:8px;padding:15px}.ce-product-meta{display:flex;justify-content:space-between;align-items:center;gap:6px;flex-wrap:wrap}.ce-code{background:#eaf5fc;color:#254c67;border-radius:6px;padding:3px 6px;font-weight:700;overflow-wrap:anywhere}.ce-available{color:#28775b}.ce-unavailable{color:#98634a}.ce-catalog h3{margin:0;font-size:16px;overflow-wrap:anywhere}.ce-price{display:flex;flex-direction:column;margin:3px 0 6px;line-height:1.45}.ce-price strong{font-size:21px;color:#203a4b}.ce-price s{font-size:13px;color:#617784}.ce-product-details{padding:10px;margin:5px 0 0;font-size:12px}.ce-product-details pre{font-size:12px;overflow-wrap:anywhere}.ce-product-details summary{color:#416782}.ce-catalog.ce-product-table .ce-product{grid-template-columns:105px minmax(0,1fr);align-items:start}.ce-catalog.ce-product-table .ce-product-image{aspect-ratio:1;margin:10px;border-radius:9px}.ce-catalog.ce-product-table .ce-card-body{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr);align-items:center;gap:8px}.ce-catalog.ce-product-table .ce-product-meta,.ce-catalog.ce-product-table .ce-product-details{grid-column:1/-1}.ce-catalog.ce-product-table .ce-card-actions{grid-column:2/-1}.ce-catalog.ce-product-table h3{min-width:0}
@media(max-width:1050px){.ce-editor .ce-fee-options{grid-template-columns:repeat(2,minmax(0,1fr))}.ce-editor .ce-fees{grid-template-columns:repeat(3,minmax(0,1fr))}.ce-product-filter,.ce-filter:has(select[name=view]){grid-template-columns:repeat(2,minmax(0,1fr))}.ce-catalog.ce-product-table .ce-card-body{display:flex;align-items:stretch}.ce-catalog.ce-product-table .ce-product-image{height:auto}.ce-campaign-cards{grid-template-columns:repeat(auto-fill,minmax(min(100%,270px),1fr))}}
@media(max-width:700px){header{overflow:visible}.ce-edit-panel{padding:17px}.ce-editor .ce-edit-grid,.ce-editor .ce-two{grid-template-columns:1fr}.ce-editor .ce-cover-upload{min-height:140px}.ce-editor .ce-edit-tabs{gap:3px;padding:4px}.ce-edit-tabs button{font-size:11px;gap:3px;padding:9px 3px;flex-direction:column}.ce-editor .ce-fees{grid-template-columns:repeat(2,minmax(0,1fr))}.ce-edit-footer{padding:10px;gap:8px}.ce-edit-footer button,.ce-edit-footer .ce-button{font-size:12px;padding:10px}.ce-edit-footer-right{gap:5px}.ce-filter,.ce-product-filter,.ce-filter:has(select[name=view]){grid-template-columns:repeat(2,minmax(0,1fr))}.ce-filter input:not([type=hidden]){grid-column:1/-1}.ce-toolbar{padding:13px}.ce-campaign-cards{grid-template-columns:1fr}.ce-campaign-card{max-width:none}.ce-dashboard-kpis>div{padding:12px}.ce-dashboard-kpis strong{font-size:20px}.ce-product-cards.ce-catalog{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.ce-catalog .ce-card-body{padding:10px;gap:5px}.ce-catalog .ce-card-actions{grid-template-columns:1fr}.ce-catalog h3{font-size:14px}.ce-price strong{font-size:18px}.ce-catalog.ce-product-table .ce-product{grid-template-columns:75px minmax(0,1fr)}.ce-catalog.ce-product-table .ce-card-body{display:flex;align-items:stretch}.ce-catalog.ce-product-table .ce-card-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
