:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#20242a;background:#f7f8fa;font-size:16px}*{box-sizing:border-box}body{margin:0}.topbar{height:76px;background:#fff;border-bottom:1px solid #eceef1;display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1160px)/2));gap:16px}.brand{display:flex;align-items:center;gap:9px;color:#21252a;font-size:1.12rem;font-weight:600;white-space:nowrap}.brand-icon{height:37px;width:37px;border-radius:11px;background:#ee5b2b;color:#fff;display:grid;place-items:center;font-size:1.7rem;line-height:1}.brand strong{color:#e85120}.test-badge{font-size:.69rem;letter-spacing:.09em;color:#ab431f;background:#fff1e9;border:1px solid #fbd9c8;border-radius:5px;padding:4px 6px;margin-left:3px}main{max-width:1120px;margin:48px auto;padding:0 24px}.panel{background:#fff;border:1px solid #e9ecf0;border-radius:18px;box-shadow:0 14px 40px rgba(36,45,58,.035)}.login-panel{max-width:475px;margin:68px auto 0;padding:38px}.eyebrow{color:#e35c28;font-weight:750;letter-spacing:.14em;font-size:.76rem}h1{font-size:clamp(1.75rem,4vw,2.45rem);letter-spacing:-.045em;line-height:1.14;margin:12px 0}h2{font-size:1.22rem;letter-spacing:-.02em;margin:8px 0 10px}p{color:#69727e;line-height:1.55;margin:0 0 24px}.small{font-size:.86rem;margin:20px 0 0}form label{display:block;font-weight:600;font-size:.9rem;margin:14px 0 6px}input:not([type=range]){font:inherit;width:100%;height:49px;padding:0 14px;border:1px solid #d7dce2;border-radius:10px;background:#fff;color:#20242a;outline:none}input:focus{border-color:#ec6434;box-shadow:0 0 0 3px #fee6da}button{font:inherit;cursor:pointer;border-radius:10px;min-height:44px;padding:0 18px;font-weight:650;border:1px solid transparent}button:disabled{opacity:.55;cursor:wait}.primary{background:#ee5b2b;color:#fff}.primary:hover:not(:disabled){background:#d9491c}.secondary{background:#fff;border-color:#d9dfe6;color:#333a43}.secondary:hover{background:#f8f9fb}.quiet{background:transparent;color:#535d68}.actions{display:flex;gap:10px;margin-top:22px}.actions button{flex:1}.workspace-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:27px}.workspace-head p{margin:0}.settings-panel{padding:25px;margin-bottom:20px}.settings-panel p{margin-bottom:8px}.settings-panel form{display:grid;grid-template-columns:1fr 1fr auto;align-items:end;gap:14px}.settings-panel form label{margin:0}.search-panel{padding:26px}.search-panel form>label{margin:0 0 9px}.search-row{display:flex;gap:10px}.search-row input{flex:1}.filter-row{display:flex;gap:42px;margin-top:22px;max-width:620px}.filter-row label{font-size:.85rem;color:#4f5862;flex:1;font-weight:600}.filter-row span{color:#e85120}.filter-row input{display:block;width:100%;accent-color:#ee5b2b;margin-top:13px}.results-head{display:flex;align-items:center;justify-content:space-between;margin:30px 2px 14px}.results-head h2{margin:0}.results-head span{color:#69727e;font-size:.85rem}.results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.empty{grid-column:1/-1;background:#fff;border:1px dashed #d7dce2;border-radius:15px;padding:43px 18px;text-align:center;color:#69727e}.offer{display:flex;gap:15px;background:#fff;border:1px solid #e8ebf0;border-radius:15px;padding:15px;min-width:0}.offer img{width:102px;height:102px;object-fit:cover;border-radius:10px;background:#f3f4f6;flex:none}.offer-info{display:flex;flex-direction:column;min-width:0;gap:5px}.offer-name{font-weight:700;line-height:1.35;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.offer-price{font-size:1.18rem;font-weight:750;color:#e55120}.offer-details{font-size:.83rem;color:#626b76}.offer button{margin-top:auto;align-self:flex-start;background:#fff4ed;color:#ca4b1d;min-height:36px;font-size:.84rem}.offer button:hover{background:#ffe8d9}.message{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 30px);padding:12px 17px;background:#29323a;color:white;border-radius:10px;box-shadow:0 8px 28px #26344033;z-index:5;margin:0}[hidden]{display:none!important}@media(max-width:700px){.topbar{height:65px;padding:0 17px}.brand{font-size:.94rem}.brand-icon{height:32px;width:32px}.test-badge{font-size:.58rem}main{margin:27px auto;padding:0 16px}.login-panel{margin:42px 0 0;padding:25px}.workspace-head{align-items:flex-start;flex-direction:column;gap:17px}.workspace-head h1{font-size:1.85rem}.settings-panel,.search-panel{padding:19px}.settings-panel form{grid-template-columns:1fr}.search-row{flex-direction:column}.filter-row{gap:20px}.results{grid-template-columns:1fr}.offer img{width:88px;height:88px}.results-head{margin-top:25px}}
.more-filters{display:grid;grid-template-columns:1fr 1fr;gap:10px 18px;margin-top:20px;align-items:end}.more-filters label{font-size:.85rem;font-weight:600;color:#4f5862}.more-filters select{font:inherit;width:100%;height:49px;border:1px solid #d7dce2;border-radius:10px;background:#fff;padding:0 12px}.more-filters input{height:49px}.load-more{display:block;margin:22px auto 10px}@media(max-width:700px){.more-filters{grid-template-columns:1fr}}
.search-panel form>select{font:inherit;width:100%;height:49px;border:1px solid #d7dce2;border-radius:10px;background:#fff;color:#20242a;padding:0 12px;margin-bottom:12px}.search-panel form>select:focus{border-color:#ec6434;outline:2px solid #fee6da}
/* Busca e cartões de ofertas */
#workspace{margin-top:-48px}.workspace-head{margin:0 calc(50% - 50vw) 26px;padding:35px max(24px,calc((100vw - 1120px)/2));background:linear-gradient(110deg,#ef582b,#ff743e);color:#fff;align-items:center}.workspace-head h1{font-size:2.2rem;letter-spacing:-.03em;margin:4px 0 6px}.workspace-head p,.workspace-head .eyebrow{color:#fff}.workspace-head .eyebrow{opacity:.85;font-size:.72rem}.workspace-head .api-identity{color:#914224;background:#fff5ed;border-color:#ffdfcc}.workspace-head .secondary{border:0;white-space:nowrap}.search-panel{max-width:900px;margin:auto;padding:28px}.search-panel form>label{display:block;margin:0 0 8px;font-size:.95rem}.search-panel form>input{margin:0 0 18px}.search-panel form>select{margin:0 0 20px}.filters{margin:5px 0 24px;border-top:1px solid #ebedf1;padding-top:20px}.filters summary{cursor:pointer;font-size:1.05rem;font-weight:750;list-style:none}.filters summary::before{content:'▾';color:#e75327;margin-right:8px}.filters:not([open]) summary::before{content:'▸'}.filter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 15px;margin-top:18px}.filter-grid label{margin:0;font-size:.85rem;font-weight:650;color:#4d5560}.filter-grid input,.filter-grid select{display:block;margin-top:7px;width:100%;font:inherit;height:45px;border:1px solid #d7dce2;border-radius:9px;padding:0 12px;background:#fff}.search-submit{width:100%;min-height:51px;font-size:1rem}.more-filters{display:block;max-width:900px;margin:16px auto 0}.more-filters input{max-width:440px}.results-head{max-width:900px;margin:36px auto 17px}.results{max-width:900px;margin:auto;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.offer{display:block;padding:0;border-radius:18px;overflow:hidden;box-shadow:0 12px 26px #192a4210}.offer-media{width:100%;aspect-ratio:1.3;background:#fff;display:grid;place-items:center;padding:15px}.offer img{width:100%;height:100%;object-fit:contain;border-radius:0;background:#fff}.offer-info{padding:18px 20px 20px;gap:12px}.offer-name{font-size:1.06rem;min-height:2.8em}.offer-price{font-size:1.65rem}.offer-badges{display:flex;flex-wrap:wrap;gap:8px}.badge{border-radius:22px;padding:6px 10px;background:#f3f4f6;color:#3b424c;font-size:.77rem;font-weight:700}.badge.discount{background:#fff0e9;color:#ae431c}.offer-commission{border:1px solid #d7eddd;background:#f1fff6;border-radius:10px;padding:12px 13px;color:#2a5840;font-size:.85rem;font-weight:600}.offer-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.offer-actions button{margin:0;align-self:stretch;min-height:42px;font-size:.79rem;padding:5px;background:#fff2eb;color:#b94d27}.offer-actions .whatsapp{background:#1fc566;color:#fff}.offer-actions .share{background:#303137;color:#fff}.offer-actions .copy{grid-column:1/-1}.load-more{margin-top:25px}
@media(max-width:900px){#workspace{margin-top:-27px}.workspace-head{padding:26px 22px;gap:12px}.results{grid-template-columns:1fr}.search-panel,.results,.results-head{max-width:660px}.filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-head h1{font-size:1.8rem}}
@media(max-width:600px){.workspace-head{margin-bottom:22px}.workspace-head h1{font-size:1.65rem}.search-panel{padding:20px}.results-head{display:block}.results-head span{display:block;margin-top:5px}.offer-media{aspect-ratio:1.12}.offer-info{padding:16px}.filter-grid{gap:11px}.filter-grid label{font-size:.81rem}}
.view-tabs{max-width:900px;margin:0 auto 18px;display:flex;gap:10px}.view-tab{background:#fff;border:1px solid #e5e8ed;color:#49515c;flex:1;min-height:49px}.view-tab.active{background:#fff0e9;border-color:#f3bca8;color:#b8471f;box-shadow:inset 0 -3px #ed5a2d}.promo-controls{max-width:900px;margin:20px auto 0;background:#fff7f1;border:1px solid #f8dcca;border-radius:15px;padding:18px 20px}.promo-controls label{display:block;font-weight:700;color:#8b3d24}.promo-controls input{accent-color:#ed5a2d;width:100%;margin:13px 0}.promo-controls p{font-size:.8rem;margin:0}.old-price{font-size:.85rem;color:#8a939c;text-decoration:line-through;margin-bottom:-9px}.old-price:empty{display:none}@media(max-width:600px){.view-tabs{gap:8px}.view-tab{font-size:.82rem;padding:0 9px}}
.share-dialog{width:min(540px,calc(100% - 32px));max-height:calc(100dvh - 32px);border:0;border-radius:18px;padding:24px;background:#fff;color:#20242a;box-shadow:0 20px 70px #0f172a50}.share-dialog::backdrop{background:#17212bb0}.share-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.share-heading h2{margin:0 0 18px}.share-heading button{padding:0 10px;min-width:44px}.share-dialog label{display:block;font-weight:700;margin-bottom:9px}.share-dialog textarea{display:block;width:100%;min-height:150px;resize:vertical;border:1px solid #d7dce2;border-radius:10px;padding:12px;font:inherit;line-height:1.5;color:#20242a}.share-dialog textarea:focus{outline:2px solid #ee5b2b}.share-hint{font-size:.85rem;margin:9px 0 16px}.share-link{background:#f7f8fa;border:1px solid #e5e8ed;border-radius:10px;padding:12px;overflow-wrap:anywhere}.share-link span{display:block;font-size:.8rem;color:#626b76;font-weight:700;margin-bottom:5px}.share-link output{font-size:.88rem}.share-dialog-actions{display:flex;gap:9px;margin-top:20px}.share-dialog-actions button{flex:1}@media(max-width:600px){.share-dialog{padding:18px}.share-dialog-actions{flex-direction:column}}
.search-hint{font-size:.83rem;margin:-11px 0 18px;color:#626b76}.share-dialog select{font:inherit;width:100%;height:45px;border:1px solid #d7dce2;border-radius:9px;background:#fff;padding:0 12px;margin-bottom:14px}.share-dialog label input{margin-top:7px}.share-image{display:block;max-width:100%;height:160px;object-fit:contain;margin:0 auto 15px;border-radius:10px}.share-template-actions{display:flex;gap:10px;margin:-4px 0 18px}.share-template-actions button{font-size:.86rem;padding:0 10px}.share-preview{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5;background:#fff8f4;border:1px solid #f4d8c9;border-radius:10px;padding:13px;margin-bottom:14px;font-size:.9rem}.share-dialog-actions{flex-wrap:wrap}.share-dialog-actions button{min-width:145px}
.offer-actions .copy{grid-column:auto}.offer-actions .share,.offer-actions .copy{min-height:45px}
.main-tabs{display:flex;max-width:900px;margin:0 auto 20px;gap:10px}.main-tab{flex:1;background:#fff;border:1px solid #e5e8ed;color:#47515d}.main-tab.active{background:#fff0e9;border-color:#f3bca8;color:#ae431c;box-shadow:inset 0 -3px #ed5a2d}.settings-panel{max-width:900px;margin:0 auto 28px}.settings-panel .template-settings{margin-top:30px;padding-top:26px;border-top:1px solid #e9ecf0}.template-settings label{display:block;font-size:.91rem;font-weight:700;margin:14px 0 8px}.template-settings select,.template-settings textarea{width:100%;font:inherit;color:#20242a;background:#fff;border:1px solid #d7dce2;border-radius:10px;padding:12px}.template-settings select{height:48px}.template-settings textarea{line-height:1.5;resize:vertical;min-height:170px}.template-settings textarea:focus{outline:2px solid #ee5b2b}.template-settings .share-hint{margin:8px 0 17px}.template-example{font-size:.9rem;font-weight:700;color:#424b55;margin:10px 0 7px}.share-dialog .template-example{margin:14px 0 7px}@media(max-width:600px){.main-tabs{gap:8px}.settings-panel{padding:19px}.template-settings .share-template-actions{flex-wrap:wrap}}

/* Preferências, coleções e conversa */
.check-line{display:flex!important;align-items:center;gap:9px;cursor:pointer}
.check-line input[type=checkbox]{width:19px;height:19px;min-width:19px;margin:0;padding:0;accent-color:#ee5b2b}
.filter-grid .check-line{min-height:45px;align-self:end}
.inline-actions{display:flex;gap:10px;margin-top:13px;flex-wrap:wrap}
.inline-actions button{flex:1;min-width:160px}
.settings-panel>div:first-child{margin-bottom:25px}
.settings-panel>div:first-child select{display:block;width:100%;height:49px;margin:8px 0 16px;border:1px solid #d7dce2;border-radius:10px;background:#fff;color:#20242a;padding:0 12px;font:inherit}
#save-name{margin:12px 0 4px}
.collection-panel{max-width:900px;margin:18px auto 0;padding:19px 22px}
.collection-panel summary{cursor:pointer;font-weight:750}
.collection-panel summary span{color:#e35c28}
.collection-panel p{margin:13px 0;font-size:.85rem}
.collection-row{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #eaedf0;padding:9px 0}
.collection-row:first-child{margin-top:13px}
.collection-row button:first-child{text-align:left;min-width:0;overflow-wrap:anywhere}
.collection-row button:last-child{flex:none}
.ai-conversation{min-height:90px;max-height:55vh;overflow-y:auto;display:flex;flex-direction:column;gap:12px;padding:15px;margin:18px 0;background:#f7f8fa;border-radius:13px}
.ai-conversation:empty:before{content:'Pergunte sobre produtos e formas de divulgação.';color:#69727e;font-size:.9rem}
.ai-bubble{max-width:90%;padding:11px 14px;border-radius:14px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}
.ai-bubble.user{align-self:flex-end;background:#fff0e8}
.ai-bubble.assistant{align-self:flex-start;background:#fff;border:1px solid #e6e9ec}
#ai-candidates{margin:15px 0}
#ai-candidates summary{cursor:pointer;color:#a54a28;font-weight:700}
#ai-candidate-list{display:flex;flex-direction:column;align-items:stretch;gap:3px;margin:9px 0}
#ai-candidate-list button{text-align:left;white-space:normal;height:auto;padding:9px}
.ai-product{display:flex;align-items:center;gap:12px;border-bottom:1px solid #e6e2df!important}
.ai-product img{height:46px;width:46px;flex:none;border-radius:7px;object-fit:cover}
.ai-product-row{display:flex;align-items:center;gap:6px;border-bottom:1px solid #e6e2df}
.ai-product-row .ai-product{flex:1;border-bottom:0!important}
.ai-product-row .secondary{font-size:.8rem;padding:0 9px;flex:none}
#ai-chat-form{display:flex;gap:10px;align-items:end}
#ai-chat-form label{flex:1;margin:0}
#ai-question{display:block;width:100%;min-height:65px;resize:vertical;font:inherit;padding:11px;border:1px solid #d7dce2;border-radius:10px;background:#fff;color:#20242a;margin-top:8px}
#ai-chat-form button{align-self:end}
@media(max-width:600px){#ai-chat-form{flex-direction:column;align-items:stretch}#ai-chat-form label{width:100%}.collection-row{align-items:flex-start}.collection-row button{font-size:.81rem;padding:4px}.share-dialog-actions button{min-width:0}}

/* Aparência: automático segue a preferência do dispositivo. */
:root[data-theme=dark]{color-scheme:dark}
:root[data-theme=dark],:root[data-theme=dark] body{background:#17191c;color:#f2f1ef}
:root[data-theme=dark] .topbar,:root[data-theme=dark] .panel,:root[data-theme=dark] .offer,:root[data-theme=dark] .main-tab,:root[data-theme=dark] .share-dialog,:root[data-theme=dark] .empty{background:#242124;color:#f2f1ef;border-color:#514448}
:root[data-theme=dark] .brand,:root[data-theme=dark] .offer-name,:root[data-theme=dark] .share-dialog{color:#f2f1ef}
:root[data-theme=dark] .topbar{border-color:#514448}
:root[data-theme=dark] p,:root[data-theme=dark] .results-head span,:root[data-theme=dark] .offer-details,:root[data-theme=dark] .search-hint,:root[data-theme=dark] .filter-grid label,:root[data-theme=dark] .more-filters label{color:#c7bcba}
:root[data-theme=dark] input:not([type=range]),:root[data-theme=dark] select,:root[data-theme=dark] textarea,:root[data-theme=dark] .search-panel form>select,:root[data-theme=dark] .template-settings textarea,:root[data-theme=dark] .settings-panel>div:first-child select{background:#302b2e;color:#f2f1ef;border-color:#69575a}
:root[data-theme=dark] .secondary,:root[data-theme=dark] .quiet,:root[data-theme=dark] .main-tab{background:#342d30;color:#f2f1ef;border-color:#665459}
:root[data-theme=dark] .main-tab.active,:root[data-theme=dark] .badge.discount,:root[data-theme=dark] .offer-actions button{background:#61372e;color:#ffd7c5}
:root[data-theme=dark] .offer-media,:root[data-theme=dark] .offer img{background:#fff}
:root[data-theme=dark] .badge,:root[data-theme=dark] .share-link,:root[data-theme=dark] .ai-conversation{background:#302b2e;color:#f2f1ef;border-color:#665459}
:root[data-theme=dark] .offer-commission{background:#19372c;border-color:#426b57;color:#d2ffe3}
:root[data-theme=dark] .ai-bubble.user{background:#60372b}
:root[data-theme=dark] .ai-bubble.assistant,:root[data-theme=dark] .share-preview{background:#3b3030;border-color:#665459;color:#f2f1ef}
:root[data-theme=dark] .template-example,:root[data-theme=dark] .offer-price{color:#ff9a6f}
@media(prefers-color-scheme:dark){
  :root:not([data-theme=light]){color-scheme:dark}
  :root:not([data-theme=light]),:root:not([data-theme=light]) body{background:#17191c;color:#f2f1ef}
  :root:not([data-theme=light]) .topbar,:root:not([data-theme=light]) .panel,:root:not([data-theme=light]) .offer,:root:not([data-theme=light]) .main-tab,:root:not([data-theme=light]) .share-dialog,:root:not([data-theme=light]) .empty{background:#242124;color:#f2f1ef;border-color:#514448}
  :root:not([data-theme=light]) .brand,:root:not([data-theme=light]) .offer-name{color:#f2f1ef}
  :root:not([data-theme=light]) p,:root:not([data-theme=light]) .results-head span,:root:not([data-theme=light]) .search-hint,:root:not([data-theme=light]) .filter-grid label{color:#c7bcba}
  :root:not([data-theme=light]) input:not([type=range]),:root:not([data-theme=light]) select,:root:not([data-theme=light]) textarea,:root:not([data-theme=light]) .search-panel form>select,:root:not([data-theme=light]) .template-settings textarea,:root:not([data-theme=light]) .settings-panel>div:first-child select{background:#302b2e;color:#f2f1ef;border-color:#69575a}
  :root:not([data-theme=light]) .secondary,:root:not([data-theme=light]) .quiet,:root:not([data-theme=light]) .main-tab{background:#342d30;color:#f2f1ef;border-color:#665459}
  :root:not([data-theme=light]) .main-tab.active,:root:not([data-theme=light]) .badge.discount,:root:not([data-theme=light]) .offer-actions button{background:#61372e;color:#ffd7c5}
  :root:not([data-theme=light]) .offer-media,:root:not([data-theme=light]) .offer img{background:#fff}
  :root:not([data-theme=light]) .badge,:root:not([data-theme=light]) .share-link,:root:not([data-theme=light]) .ai-conversation{background:#302b2e;color:#f2f1ef;border-color:#665459}
  :root:not([data-theme=light]) .offer-commission{background:#19372c;border-color:#426b57;color:#d2ffe3}
  :root:not([data-theme=light]) .ai-bubble.user{background:#60372b}
  :root:not([data-theme=light]) .ai-bubble.assistant,:root:not([data-theme=light]) .share-preview{background:#3b3030;border-color:#665459;color:#f2f1ef}
}

.ai-share-actions{padding:12px;margin-bottom:12px;border:1px solid var(--border,#777);border-radius:12px}.ai-share-actions p{margin:0 0 10px}.ai-share-actions button{margin:4px}
