/* Executive Sócio 2026 · Prospector-aligned white and violet, strong contrast. */
:root{--px-violet:#6a43e5;--px-navy:#25183a;--px-muted:#716683;--px-border:#e7e1f3;--px-pale:#faf9fe;--px-green:#168668;--px-blue:#386ec7}
.px-workspace{--px-ink:#25183a;max-width:1550px;margin:0 auto;color:#281f3d;display:grid;gap:19px;padding:0 0 38px}
.px-page-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:0 0 4px}
.px-eyebrow{font-size:10px;letter-spacing:.17em;color:#7352cc;font-weight:800}
.px-page-heading h1{font-size:clamp(25px,3vw,34px);color:#25183a;font-weight:750;letter-spacing:-.055em;margin:5px 0}
.px-page-heading p{color:#756a88;font-size:13px;margin:4px 0 0;line-height:1.6}
.px-kpi-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.px-kpi{border:1px solid #e7e2f2;border-radius:17px;background:white;padding:21px 21px 18px;min-width:0;box-shadow:0 7px 24px #4b338009;display:flex;flex-direction:column;gap:6px;transition:border-color .18s ease}
.px-kpi:hover{border-color:#c3b0f4}
.px-kpi-top{display:flex;align-items:center;justify-content:space-between;gap:11px}
.px-kpi-label{font-size:12px;font-weight:680;color:#736785}
.px-kpi-icon{height:36px;min-width:36px;display:grid;place-items:center;border-radius:11px;background:#eee8ff;color:#7042e9;font-size:18px;font-style:normal;font-weight:700}
.px-kpi-icon.green{background:#e4f9f1;color:#118464}.px-kpi-icon.blue{background:#eaf1ff;color:#356ac5}
.px-kpi-icon.muted{background:#f3f1f7;color:#81768e}
.px-kpi-number{font-size:clamp(24px,3vw,35px);line-height:1.1;color:#27173f;font-weight:750;letter-spacing:-.05em;overflow-wrap:anywhere}
.px-kpi small,.px-ads-metric small{font-size:11px;color:#81758c;line-height:1.5}
.px-ads-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.px-ads-metric{border:1px solid #e5e1f0;background:#fff;display:flex;flex-direction:column;padding:19px 21px;gap:12px;border-radius:16px;min-width:0}
.px-ads-metric>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.px-ads-metric>div strong{color:#3b2a52;font-size:12px;font-weight:760}
.px-ads-metric>div small{margin-left:auto}
.px-ads-metric>b{font-size:clamp(18px,2.4vw,25px);font-weight:760;color:#28183e;line-height:1.25;letter-spacing:-.04em;overflow-wrap:anywhere}
.px-brand-dot{display:inline-flex;height:11px;width:11px;border-radius:4px;background:#7544e8}
.px-brand-dot.meta{background:#257fe4}.px-brand-dot.google{background:#ea4335}.px-brand-dot.purple{background:#7544e8}
.px-dual{display:grid;grid-template-columns:1.55fr 1fr;gap:15px;align-items:stretch}
.px-panel{background:#fff;border:1px solid #e8e2f2;border-radius:17px;padding:22px;min-width:0;box-shadow:0 5px 22px #4b338008}
.px-panel-head{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:13px;margin-bottom:18px}
.px-panel-head h2{font-size:17px;letter-spacing:-.03em;color:#2c1e44;font-weight:740;margin:0 0 5px}
.px-panel-head p{margin:0;font-size:11px;color:#80748f;line-height:1.55}
.px-panel-head .btn{flex:none}
.px-graph-counts{display:flex;align-items:flex-start;gap:clamp(17px,3vw,40px);margin-bottom:17px;flex-wrap:wrap}
.px-graph-counts>div{display:flex;flex-direction:column;gap:4px}.px-graph-counts span{color:#857a96;font-size:11px}
.px-graph-counts strong{color:#352650;font-size:23px;letter-spacing:-.05em}
.px-chart-wrap{height:232px;background:linear-gradient(#fff,#faf9ff);border-radius:12px;overflow:hidden;padding:6px 7px}
.px-svg{width:100%;height:205px;display:block}.px-axis{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#827590;padding:0 12px}
.px-legend{display:flex;align-items:center;gap:18px;margin-top:12px;color:#776b87;font-size:11px}.px-dot{display:inline-block;width:8px;height:8px;border-radius:50%}.px-dot.purple{background:#7650ed}.px-dot.green{background:#16a778}
.px-rank{margin:15px 0;display:grid;gap:8px}
.px-rank-title{display:flex;align-items:center;gap:9px;justify-content:space-between;font-size:12px;color:#4a375e}
.px-rank-title strong{white-space:nowrap;font-weight:760;color:#6843c4}
.px-rank-track{height:9px;border-radius:7px;background:#eeeafb;overflow:hidden}
.px-rank-track i{display:block;height:100%;border-radius:7px;background:linear-gradient(100deg,#a18aff,#6b3ce1);min-width:3px}
.px-funnel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-bottom:15px}
.px-funnel>div{display:flex;flex-direction:column;gap:8px;border:1px solid #ebe7f4;border-radius:11px;background:#fbfaff;padding:16px}
.px-funnel span{font-size:11px;color:#796d8a}.px-funnel strong{font-size:23px;color:#3d2a57}
.px-best-ad{border-radius:13px;background:#f8f5ff;border:1px solid #e9e2fb;padding:18px;display:grid;gap:12px}
.px-best-ad>span{font-size:11px;color:#826f9b}.px-best-ad>strong{font-size:17px;color:#352152}
.px-best-ad>div{display:flex;gap:22px;flex-wrap:wrap}.px-best-ad>div span{display:flex;flex-direction:column;gap:5px;color:#7a668f;font-size:11px}.px-best-ad b{font-size:14px;color:#32204b}
.px-provenance,.px-muted{font-size:11px!important;color:#796b8a!important;line-height:1.65!important;margin:4px 0}
.px-loading{padding:35px;background:#fff;border:1px solid #e9e2f3;border-radius:14px;font-size:12px;color:#746587}
.px-connection-grid{display:grid;grid-template-columns:1fr;gap:14px;max-width:1150px}
.px-conn-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,1.25fr) auto;align-items:start;gap:24px;border:1px solid #e8e1f3;background:white;border-radius:17px;padding:22px;box-shadow:0 5px 25px #5234850a}
.px-conn-head{display:flex;align-items:center;gap:13px;min-width:0}
.px-conn-head h2{font-size:17px;font-weight:730;color:#2b2141;margin:0}
.px-conn-head p{font-size:11px;color:#84778e;margin:5px 0 0}
.px-conn-head>.px-status{margin-left:auto}
.px-conn-icon{width:44px;min-width:44px;height:44px;border-radius:13px;display:grid;place-items:center;font-size:22px;font-weight:800}
.px-conn-icon.wa{background:#e7fbf0;color:#188d5d}
.px-conn-icon.meta{background:#e8f1ff;color:#1873df}
.px-conn-icon.google{background:#fff4e7;color:#e75544}
.px-conn-list{display:grid;gap:10px;min-width:0}
.px-conn-row{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid #f0ebf6}
.px-conn-row span:nth-child(2){display:flex;flex-direction:column;gap:3px}
.px-conn-row strong,.px-conn-list strong{font-size:12px;color:#39274f}
.px-conn-row small{color:#8d809a;font-size:11px}
.px-live-dot{height:8px;width:8px;border-radius:50%;background:#b9b1c7;flex:none}
.px-live-dot.on{background:#2aaf74}
.px-conn-actions{display:flex;flex-direction:column;gap:8px;align-items:stretch;min-width:165px}
.px-conn-actions>.btn{font-size:11px!important;line-height:1.35!important;min-height:37px!important}
.px-account-select{display:grid;gap:8px;font-size:11px;color:#756387}
.px-account-select select{padding:10px;border:1px solid #e5daf4!important;background:#fff!important;color:#35234d!important;border-radius:10px;min-width:0;width:100%}
.px-status{border-radius:20px;padding:5px 9px;font-size:10px;font-weight:750;background:#f0edf7;color:#756888;white-space:nowrap}
.px-status.on{background:#e5f9ef;color:#16744e}.px-status.off{background:#f4f1f7;color:#796e88}
.px-marketing-filters{display:flex;gap:6px;flex-wrap:wrap;border:1px solid #e7e1f4;border-radius:13px;padding:5px;background:#f9f7ff;width:max-content;max-width:100%}
.px-marketing-filters button{border:0;background:transparent;color:#79678f;border-radius:10px;padding:8px 15px;font-size:11px;font-weight:750;cursor:pointer}
.px-marketing-filters button.selected{background:#fff;color:#5b34be;box-shadow:0 3px 9px #42318a19}
.px-notice{padding:18px;background:#f7f2ff;border:1px solid #e9dbfb;border-radius:13px;color:#52368c}
.px-notice strong{color:#4a2c85;font-size:13px}.px-notice p{font-size:12px;color:#74658a}
.px-table-scroll{overflow-x:auto;max-width:100%}
.px-table{width:100%;border-collapse:collapse;font-size:11px;min-width:650px}
.px-table th{text-align:left;background:#faf8ff;border-bottom:1px solid #e9e2f3;font-size:10px;color:#786a91;letter-spacing:.02em;padding:12px}
.px-table td{border-bottom:1px solid #f1edf8;padding:13px 12px;color:#3d2e4f;vertical-align:middle}
.px-table td strong{display:block;color:#302146;font-size:12px}.px-table td small{display:block;color:#9689a6;font-size:10px;margin-top:3px}
.px-table tr:hover td{background:#faf7ff}
.px-ads-list>div{display:flex;align-items:center;justify-content:space-between;padding:13px;border-bottom:1px solid #f1edf7;gap:12px}
.px-ads-list strong{display:block;color:#3f3052;font-size:12px}.px-ads-list small{display:block;color:#9485a0;font-size:10px;margin-top:4px}
.px-footnote{padding:17px;border:1px solid #ebe4f4;border-radius:11px;background:#faf8ff;color:#6d5f81;font-size:12px;line-height:1.65}
.px-advanced{border:1px solid #eae4f5;border-radius:13px;background:#fff;padding:16px}
.px-advanced summary{cursor:pointer;font-weight:700;color:#5b3bb4}
.px-advanced>div{margin-top:20px}
.px-assistant-dock{position:fixed;right:24px;bottom:22px;z-index:85;font-family:'DM Sans','Segoe UI',system-ui,sans-serif;color:#302347}
.px-assistant-fab{display:flex;align-items:center;gap:10px;background:linear-gradient(115deg,#7a4df2,#6135e1);border:1px solid #8e6aef;border-radius:50px;padding:9px 17px 9px 9px;color:#fff!important;box-shadow:0 12px 30px #5b36c34d;font-size:12px;font-weight:800;cursor:pointer}
.px-assistant-fab:hover{background:linear-gradient(115deg,#8e61ff,#6c3de8);color:#fff!important}
.px-assistant-sigil{background:#ffffff2a;border:1px solid #ffffff40;height:37px;width:37px;border-radius:50%;display:grid;place-items:center;font-size:24px}
.px-assistant-window{position:absolute;bottom:63px;right:0;display:flex;flex-direction:column;width:min(375px,calc(100vw - 28px));max-height:min(690px,calc(100dvh - 105px));background:white;border:1px solid #e4daf7;border-radius:19px;overflow:hidden;box-shadow:0 22px 70px #29124b35}
.px-assistant-window.hidden{display:none!important}
.px-assistant-window>header{display:flex;align-items:center;gap:11px;padding:15px 17px;background:#faf7ff;border-bottom:1px solid #eae3f7}
.px-assistant-avatar{width:36px;height:36px;display:grid;place-items:center;background:#eee5ff;color:#703de6;border-radius:12px;font-size:22px}
.px-assistant-window>header div{display:flex;flex-direction:column;gap:3px;flex:1}
.px-assistant-window>header strong{color:#32204c;font-size:13px}.px-assistant-window>header small{color:#79698c;font-size:10px}
.px-assistant-close{background:transparent;border:0;font-size:23px;color:#78628f;cursor:pointer}
.px-assistant-feed{display:flex;flex-direction:column;gap:12px;padding:18px;overflow:auto;flex:1;min-height:190px;max-height:370px;background:#fdfcff}
.px-assistant-line{max-width:92%;padding:12px;border-radius:13px;border:1px solid #e8e0f4;background:white}
.px-assistant-line.user{align-self:flex-end;background:#eee7ff;border-color:#e1d4fb}
.px-assistant-line small{font-size:10px;font-weight:800;color:#744fba}.px-assistant-line p{font-size:12px;line-height:1.55;color:#332345;margin:5px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.px-assistant-approval{padding:0 15px}.px-assistant-approval:not(:empty){background:#fff9eb;border:1px solid #ecdca8;margin:9px;border-radius:11px;padding:11px;display:flex;gap:7px;flex-wrap:wrap}
.px-assistant-approval p{font-size:11px;width:100%;color:#5e482e}.px-assistant-approval .btn{flex:1;font-size:11px!important}
#thalitaForm{padding:13px;border-top:1px solid #eee8f7;background:#fff}
#thalitaInput{width:100%;max-height:100px;resize:vertical;border:1px solid #e9e0f4!important;border-radius:10px!important;background:#fff!important;color:#302345!important;font-size:12px;padding:11px}
.px-assistant-actions{display:flex;align-items:center;gap:7px;justify-content:space-between;margin-top:8px}
.px-assistant-actions .btn{font-size:11px!important;padding:9px 10px!important}
.px-assistant-hint,.px-assistant-disclaimer{font-size:10px;line-height:1.5;color:#86778f;margin:7px 1px 0}
.px-assistant-disclaimer{padding:8px 14px 12px;margin:0;background:#fff}
body .btn.primary:hover:not(:disabled),body .btn.primary:focus-visible{color:#fff!important}
body .btn.soft:hover:not(:disabled),body .btn.ghost:hover:not(:disabled),body .btn:not(.primary):hover:not(:disabled){color:#5b31c8!important;background:#f0eaff!important}
body #newProduct:hover,body #newProduct:focus-visible{color:#fff!important;background:#6b3ceb!important}
body .wa-inbox-search input{background:transparent!important;border:none!important;box-shadow:none!important;outline-offset:1px!important;padding:7px 0!important}
body .wa-inbox-search{background:#faf8ff!important;border:1px solid #e7e0f5!important;padding:5px 13px!important;min-height:40px!important}
body .wa-inbox-connect{background:#7042eb!important;color:#fff!important;border:1px solid #7042eb!important;border-radius:10px!important;padding:9px 12px!important;font-weight:750!important;white-space:nowrap}
body .wa-inbox-connect:hover{background:#8556f8!important;color:#fff!important}
body .wa-side-head-buttons{margin-left:auto}
body .wa-inbox-side-head{gap:8px!important}
body .catalog-variant-row{grid-template-columns:minmax(110px,.8fr) minmax(140px,1fr) minmax(100px,.7fr) minmax(75px,.5fr) minmax(90px,.7fr) 30px;gap:8px!important}
body .catalog-variant-row [data-variant-type]{min-width:0}
body .catalog-variant-row [data-variant-value]{min-width:0}
body .catalog-variant-row :is(input,select){font-size:12px!important;padding:10px!important;max-width:100%}
body .catalog-variant-row .btn{padding:6px!important;min-width:28px}
body .catalog-suggest-note{font-size:10px;color:#806c95}
body .px-campaign-picker{display:flex;flex-direction:column;gap:11px;padding:13px;background:#faf8ff;border:1px solid #e9e1f6;border-radius:12px}
body .px-campaign-picker label{font-size:12px;color:#5a4a72;font-weight:650}
body .px-campaign-picker select{width:100%;min-height:43px;border-radius:10px;border:1px solid #e4d7f5;color:#392656;background:#fff;padding:8px 11px}
body .px-campaign-picker small{font-size:11px;color:#80708d}
body .px-danger-zone{border-top:1px solid #efdee7;padding-top:16px;margin-top:15px}
body .px-danger-zone .btn{border-color:#e8b3bf!important;background:#fff6f7!important;color:#9d3650!important}
body .px-danger-zone .btn:hover{color:#952d43!important;background:#ffeded!important}
@media(max-width:1200px){.px-conn-card{grid-template-columns:1fr 1fr}.px-conn-actions{grid-column:1/-1;flex-direction:row;justify-content:flex-start}.px-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:930px){.px-kpi-grid,.px-ads-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.px-dual{grid-template-columns:1fr}.px-conn-card{grid-template-columns:1fr}.px-conn-actions{grid-column:auto}.px-marketing-kpi{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.px-kpi-grid,.px-ads-strip,.px-marketing-kpi{grid-template-columns:1fr}.px-page-heading{gap:15px}.px-kpi{padding:17px}.px-dual{grid-template-columns:1fr}.px-panel{padding:17px}.px-funnel{grid-template-columns:1fr 1fr}.px-conn-card{padding:16px}.px-conn-actions{flex-direction:column}.px-assistant-dock{right:14px;bottom:12px}.px-assistant-window{width:calc(100vw - 28px);max-height:calc(100dvh - 110px)}body .catalog-variant-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}body .catalog-variant-row [data-remove-variant]{grid-column:1/-1}}
@media(prefers-reduced-motion:reduce){.px-kpi,.px-assistant-dock *,body .btn{transition:none!important;animation:none!important}}

/* Overview keeps top metrics and visual graph consistently aligned. */
.px-overview .px-page-heading{padding-bottom:4px}

.px-wa-overview-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.px-wa-overview-list>div{display:flex;align-items:center;gap:10px;background:#faf9fe;border:1px solid #ece6f6;border-radius:12px;padding:12px;min-width:0}
.px-wa-overview-list>div>div{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}
.px-wa-overview-list strong{font-size:12px;color:#302047;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}
.px-wa-overview-list small{font-size:10px;color:#867b94}
.px-wa-overview-list .px-live-dot{flex:none}
@media(max-width:640px){.px-wa-overview-list{grid-template-columns:1fr}}

/* Executive period selector and precise focus/contrast across reports and forms. */
.px-chart-actions{display:flex;gap:5px;flex-wrap:wrap;padding:4px;border:1px solid #e5dcf4;border-radius:12px;background:#f8f6fd}
.px-range-btn{border:1px solid transparent;background:transparent;color:#51376f;padding:7px 9px;border-radius:9px;font-size:11px;font-weight:750;cursor:pointer;min-height:32px}
.px-range-btn:hover{background:#eee8fb;color:#4d2da7}
.px-range-btn.active{background:#673de0;color:#fff;border-color:#673de0;box-shadow:0 4px 10px #5434aa23}
.px-range-btn:focus-visible,.px-chart-hit:focus-visible{outline:3px solid #9d78ff;outline-offset:2px}
.px-chart-hit{cursor:crosshair;stroke:transparent;stroke-width:2px;transition:stroke .15s ease,fill .15s ease}
.px-chart-hit:hover,.px-chart-hit:focus{fill:#eee8ff;stroke:#6137d2;stroke-width:2.3px}
.px-chart-wrap{border:1px solid #f0ebf9;background:linear-gradient(180deg,#fff 5%,#faf7ff 100%)}
.px-legend .px-dot.purple{background:#643bdb}.px-legend .px-dot.green{background:#127858}
.px-chart-actions + .btn{white-space:nowrap}
body :is(.px-workspace,.px-assistant-window) .btn.primary:hover:not(:disabled){background:#5930c8!important;color:white!important;border-color:#5930c8!important}
body :is(.px-workspace,.px-assistant-window) .btn.soft:hover:not(:disabled){background:#e9e1fc!important;color:#4828a8!important;border-color:#bda8ef!important}
body .socio-catalog-clean #newProduct:hover,body .px-campaign-picker .btn.primary:hover{color:#fff!important}
@media(max-width:650px){.px-chart-actions{width:100%;justify-content:space-between}.px-range-btn{flex:1}.px-panel-head{gap:10px}.px-chart-wrap{height:207px}.px-svg{height:180px}}
@media(prefers-reduced-motion:reduce){.px-chart-hit{transition:none!important}}

/* Discoverable shortcuts inside the single floating Thalita assistant. */
.px-assistant-suggestions{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:10px 13px;background:#fdfcff;border-bottom:1px solid #efeaf7}
.px-assistant-suggestions button{border:1px solid #e4d8f9;border-radius:100px;background:#f6f1ff;color:#5734af;font-size:10px;font-weight:700;padding:7px 10px;line-height:1.3;cursor:pointer;max-width:100%}
.px-assistant-suggestions button:hover{border-color:#9d7ee7;background:#eae0ff;color:#3d2294}
.px-assistant-suggestions button:focus-visible{outline:3px solid #9170ec;outline-offset:2px}
.px-assistant-suggestions button:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:420px){.px-assistant-suggestions{padding:8px 10px}.px-assistant-suggestions button{padding:7px 8px}}

/* Compact Meta creative showcase. Media retains original aspect ratio. */
.px-featured-item{display:grid;grid-template-columns:minmax(120px,42%) minmax(0,1fr);gap:18px;align-items:start}
.px-feature-media{display:grid;place-items:center;background:#eeeafb;border:1px solid #e5dff2;border-radius:13px;min-height:156px;overflow:hidden;aspect-ratio:16/11}
.px-featured-video .px-feature-media{aspect-ratio:9/11;min-height:220px}
.px-feature-poster,.px-feature-video{display:block;max-width:100%;width:100%;height:100%;object-fit:contain;background:#ece7f4}
.px-feature-video{min-height:200px;max-height:340px;outline-offset:-2px}
.px-feature-no-media{display:grid;place-items:center;padding:17px;text-align:center;color:#7d7190;font-size:12px;min-height:150px;line-height:1.5}
.px-feature-details{min-width:0;display:flex;flex-direction:column;gap:14px;padding-top:3px}
.px-feature-details>strong{font-size:16px;line-height:1.35;color:#302146;overflow-wrap:anywhere}
.px-feature-label{font-size:11px;color:#6440b3;font-weight:760;line-height:1.5}
.px-feature-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.px-feature-stats>span{display:flex;flex-direction:column;gap:5px;color:#766989;font-size:10px}
.px-feature-stats b{color:#33234d;font-size:15px;overflow-wrap:anywhere}
.px-ad-name-cell{display:flex;align-items:center;gap:11px;min-width:190px}
.px-ad-name-cell .px-feature-poster{width:50px;height:54px;object-fit:cover;border-radius:8px;flex:none;border:1px solid #e7dff6}
.px-ad-name-cell>span{min-width:0}.px-ad-name-cell strong{overflow-wrap:anywhere}
.px-initial-view{min-height:420px;animation:pxAppear .15s ease}
.px-initial-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.px-initial-grid>div{min-height:118px;border-radius:17px}
@keyframes pxAppear{from{opacity:.6}to{opacity:1}}
@media(max-width:840px){.px-featured-item{grid-template-columns:minmax(95px,38%) minmax(0,1fr);gap:12px}.px-featured-video .px-feature-media{min-height:180px}.px-feature-stats{gap:8px}}
@media(max-width:550px){.px-featured-item{grid-template-columns:1fr}.px-feature-media{max-width:100%;aspect-ratio:16/9;min-height:170px}.px-featured-video .px-feature-media{aspect-ratio:16/9;min-height:200px}.px-feature-video{max-height:270px}.px-feature-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.px-initial-grid{grid-template-columns:1fr}.px-initial-grid>div{min-height:65px}}
@media(prefers-reduced-motion:reduce){.px-initial-view{animation:none}}

/* Media cards v2: never let a thumbnail, video or long campaign title define
   the width of a grid track. This also fixes the overview overlap shown on
   7 Nov: media was occupying the adjacent metrics column. */
.px-workspace,.px-workspace>.px-panel,.px-workspace>.px-dual,.px-dual>.px-panel{min-width:0;max-width:100%;box-sizing:border-box}
.px-overview .px-dual{grid-template-columns:minmax(0,1.55fr) minmax(0,1fr)}
.px-panel{overflow:hidden}
.px-featured-item,.px-featured-item.px-featured-video{
 display:flex;flex-direction:row;flex-wrap:nowrap;align-items:flex-start;
 gap:14px;width:100%;max-width:100%;min-width:0;box-sizing:border-box;
}
.px-featured-item>.px-feature-media{
 position:relative;box-sizing:border-box;display:flex;align-items:center;justify-content:center;
 flex:0 0 min(34%,220px);min-width:0;width:min(34%,220px);max-width:220px;
 height:190px;max-height:190px;min-height:0;aspect-ratio:auto;overflow:hidden;
 background:#f0ecf7;border:1px solid #e4dced;border-radius:13px;
}
.px-featured-video>.px-feature-media,
.px-featured-item.px-featured-video>.px-feature-media{
 flex-basis:min(37%,250px);width:min(37%,250px);max-width:250px;
 height:294px;max-height:294px;min-height:0;aspect-ratio:auto;
}
.px-feature-media .px-feature-poster{
 display:block;width:100%;height:100%;max-width:100%;max-height:100%;
 object-fit:contain;object-position:center;background:#f1edf8;
}
.px-feature-media.px-media-lowres .px-feature-poster{
 width:auto;height:auto;max-width:100%;max-height:120px;object-fit:contain;
}
.px-feature-media.px-media-lowres:after{
 content:'Prévia reduzida fornecida pela Meta';display:block;position:absolute;
 inset:auto 4px 4px 4px;text-align:center;color:#776987;font-size:9px;
 padding:4px;background:#f8f6fbe8;border-radius:5px;pointer-events:none;
}
.px-featured-item>.px-feature-details{
 flex:1 1 0;min-width:0;width:0;max-width:100%;overflow-wrap:anywhere;
 display:flex;flex-direction:column;gap:12px;padding:0;
}
.px-feature-details>strong{display:block;min-width:0;max-width:100%;
 font-size:clamp(12px,1.2vw,16px);line-height:1.4;white-space:normal;
 word-break:normal;overflow-wrap:anywhere;hyphens:auto;margin:0}
.px-feature-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:100%}
.px-feature-stats>span{min-width:0;overflow-wrap:anywhere}
.px-feature-stats b{font-size:clamp(12px,1.2vw,15px)}
.px-feature-video{display:block;width:100%;height:100%;max-height:100%;max-width:100%;background:#1d1725;
 object-fit:contain;border-radius:12px}
.px-media-play{position:absolute;z-index:2;left:50%;top:50%;transform:translate(-50%,-50%);
 border:1px solid #fffaf0;background:#28194fe8;color:#fff;box-shadow:0 7px 30px #0005;
 border-radius:99px;padding:11px 14px;min-height:44px;font-weight:780;font-size:12px;cursor:pointer;
 display:flex;align-items:center;gap:8px;white-space:nowrap;max-width:calc(100% - 10px)}
.px-media-play>span{display:grid;place-items:center;border-radius:50%;background:#fff;color:#422c72;width:22px;height:22px;font-size:10px}
.px-media-play:hover:not(:disabled),.px-media-play:focus-visible{background:#6e42dc;color:white;outline-offset:3px}
.px-media-play:disabled{opacity:.85;cursor:default;font-size:10px;white-space:normal}
.px-media-external{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);
 border-radius:9px;padding:10px;background:#fff;color:#5330ba;font-weight:700;
 white-space:nowrap;max-width:calc(100% - 16px);font-size:11px}
.px-media-external:hover,.px-media-external:focus-visible{background:#e7ddff;color:#3c208f}
@media(max-width:1100px){
 .px-overview .px-dual{grid-template-columns:minmax(0,1fr)}
 .px-featured-item>.px-feature-media{flex-basis:min(37%,195px);width:min(37%,195px);height:190px}
}
@media(max-width:600px){
 .px-featured-item,.px-featured-item.px-featured-video{flex-direction:column}
 .px-featured-item>.px-feature-media,
 .px-featured-item.px-featured-video>.px-feature-media{flex:none;width:100%;max-width:100%;
  height:230px;max-height:230px}
 .px-featured-item>.px-feature-details{flex:auto;width:100%;max-width:100%}
 .px-feature-details>strong{font-size:15px}
}

/* Official Meta ad preview is displayed only after the user's Play click. */
.px-meta-preview-frame{display:block;width:100%;height:100%;min-height:240px;border:0;border-radius:12px;background:#fff;max-width:100%}
.px-featured-item.px-featured-video .px-feature-media:has(.px-meta-preview-frame){max-width:320px;flex-basis:min(40%,320px);width:min(40%,320px);height:330px;max-height:330px}
@media(max-width:600px){.px-featured-item.px-featured-video .px-feature-media:has(.px-meta-preview-frame){max-width:100%;flex-basis:auto;width:100%;height:345px;max-height:345px}}

/* Campaign controls — intuitive inline management with explicit Meta preview. */
.px-live-indicator{display:flex;align-items:center;gap:7px;font-size:11px;color:#6f647e;margin:-5px 0 11px;line-height:1.5}
.px-live-indicator .px-live-dot{width:7px;height:7px;flex:none;border-radius:50%;background:#1d9870;box-shadow:0 0 0 3px #dff6ec}
.px-campaign-table{min-width:1020px}
.px-campaign-table td{vertical-align:middle}
.px-campaign-table th,.px-campaign-table td{padding:12px 9px}
.px-campaign-table td:first-child{min-width:210px;max-width:290px}
.px-campaign-table td:nth-child(3){min-width:166px;max-width:230px}
.px-campaign-table td:last-child{min-width:134px}
.px-budget-value{display:block;font-size:11px;font-weight:750;color:#38244f}
.px-budget-details{margin-top:7px;border:1px solid #ece4f7;border-radius:9px;background:#faf8ff}
.px-budget-details summary{cursor:pointer;padding:7px 8px;font-size:10px;color:#5530af;font-weight:680;line-height:1.35}
.px-budget-list{padding:3px 8px 9px;display:grid;gap:7px;max-height:280px;overflow:auto}
.px-budget-child{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;border-top:1px solid #eae4f5;padding:8px 0;min-width:0}
.px-budget-child>span{display:grid;gap:3px;min-width:0}
.px-budget-child strong{font-size:10px;color:#35254e;overflow-wrap:anywhere}
.px-budget-child small{font-size:10px;color:#796b89}
.px-quick-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap;min-width:100px}
.px-quick-action{border:1px solid #dacdf5;background:#f5f0ff;color:#5130a9;border-radius:8px;min-height:33px;
 padding:7px 10px;font-size:10px;font-weight:800;line-height:1.1;cursor:pointer;transition:background .16s}
.px-quick-action.activate{background:#eafaf2;border-color:#a3dfc0;color:#176a4d}
.px-quick-action.pause{background:#fff6ef;border-color:#f1d9b9;color:#914c1b}
.px-quick-action:hover,.px-quick-action:focus-visible{background:#ebe2ff;color:#41208c;outline-offset:2px}
.px-quick-action.activate:hover{background:#d7f6e6;color:#116040}
.px-quick-action.pause:hover{background:#ffebdc;color:#8e3e12}
.px-campaign-dialog{border:1px solid #e6ddf0;border-radius:17px;max-width:min(450px,calc(100vw - 26px));
 max-height:85dvh;width:100%;padding:0;background:#fff;color:#302044;box-shadow:0 20px 90px #28154745}
.px-campaign-dialog::backdrop{background:rgba(26,16,45,.58);backdrop-filter:blur(3px)}
.px-action-dialog-content{padding:23px;display:grid;gap:15px}
.px-action-heading{display:flex;align-items:center;gap:14px;justify-content:space-between}
.px-action-heading h2{color:#281840;font-size:19px;line-height:1.3;margin:0}
.px-dialog-close{display:grid;place-items:center;border:0;background:#f3eff8;color:#635373;border-radius:9px;
 font-size:22px;font-weight:500;width:34px;height:34px;cursor:pointer;flex:none}
.px-dialog-help,.px-preview-text{font-size:12px;color:#665577;line-height:1.55;margin:0;overflow-wrap:anywhere}
.px-dialog-help{border-left:3px solid #bda9ef;padding:6px 10px;background:#faf8ff}
.px-preview-text{border:1px solid #e0d4f5;border-radius:10px;padding:12px;color:#40256c;background:#f9f5ff;font-weight:650}
#pxDailyBudgetField{display:grid;gap:8px;font-size:12px;font-weight:730;color:#48345e}
#pxDailyBudgetField[hidden]{display:none}
#pxNewDailyBudget{background:#fff;border:1px solid #d8cbe8;border-radius:10px;font-size:18px;font-weight:650;
 color:#291b41;padding:12px 13px;width:100%;min-height:45px;box-sizing:border-box}
#pxNewDailyBudget:focus-visible{outline:3px solid #a68cf8;outline-offset:2px}
.px-dialog-feedback{font-size:11px;color:#644d7b;line-height:1.5;min-height:18px;margin:0}
.px-action-dialog-buttons{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px}
.px-action-dialog-buttons>.btn{min-height:39px}
.px-action-dialog-buttons [hidden],.px-preview-text[hidden]{display:none!important}
.px-facebook-video-frame{display:block;width:100%;height:100%;max-height:100%;max-width:100%;border:0;
 border-radius:12px;background:#f9f8fc;overflow:hidden}
.px-feature-media:has(.px-facebook-video-frame){overflow:hidden;aspect-ratio:auto;background:#f9f8fc}
.px-overview .px-featured-item>.px-feature-media:has(.px-facebook-video-frame){height:285px;max-height:285px;flex-basis:min(39%,190px);width:min(39%,190px)}
.px-feature-media.px-media-lowres:after{display:none!important;content:none!important}
.px-feature-media.px-media-lowres{background:radial-gradient(circle,#e4dff1 0%,#f7f5fd 80%);}
@media(max-width:600px){
 .px-campaign-dialog{max-width:calc(100vw - 20px)}
 .px-action-dialog-content{padding:17px}
 .px-overview .px-featured-item>.px-feature-media:has(.px-facebook-video-frame){flex:none;width:100%;height:350px;max-height:350px}
}

/* Scoped campaign drill-down navigation */
.px-campaign-open{appearance:none;border:0;background:transparent;color:#392261;font:inherit;font-weight:800;text-align:left;padding:3px 0;cursor:pointer;line-height:1.35}
.px-campaign-open:hover{text-decoration:underline;color:#6736c2}
.px-campaign-open:focus-visible,.px-campaign-back:focus-visible{outline:2px solid #7854d5;outline-offset:3px;border-radius:4px}
.px-campaign-detail-heading{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:3px 0 15px}
.px-campaign-detail-heading strong{font-size:15px;color:#36214f}
.px-campaign-detail-heading small{font-size:11px;color:#806e93}
.px-campaign-back{background:#f1eaff;color:#5631aa;border:1px solid #dfd0ff;border-radius:9px;cursor:pointer;padding:9px 12px;font-weight:750;font-size:12px}
.px-campaign-back:hover{background:#e8dcff}

/* In-campaign creative previews: matching featured media controls. */
.px-ad-creative-row{display:flex!important;align-items:center!important;gap:13px!important;padding:11px 14px!important;min-height:94px;flex-wrap:wrap}
.px-ad-creative-row .px-ad-creative-media{flex:0 0 96px;height:72px;overflow:hidden;border:1px solid #ebe4f4;border-radius:10px;background:#f5f0fc}
.px-ad-creative-media .px-feature-poster{width:100%;height:100%;object-fit:cover;border-radius:8px}
.px-ad-creative-media .px-feature-no-media{height:100%;display:grid;place-items:center;font-size:11px}
.px-ad-creative-media .px-feature-video,.px-ad-creative-media iframe{display:block;width:100%;height:100%;object-fit:contain;border:0}
.px-ad-creative-row:has(video) .px-ad-creative-media,.px-ad-creative-row:has(iframe) .px-ad-creative-media{flex-basis:min(290px,100%);height:230px}
.px-ad-creative-info{display:flex;flex-direction:column;gap:6px;min-width:170px;flex:1}
.px-ad-creative-info strong{font-size:12px;overflow-wrap:anywhere}
.px-ad-creative-info small{font-size:10px;color:#877895}
.px-ad-creative-info .px-quick-action{align-self:flex-start}
.px-ad-creative-row>.px-status{margin-left:auto}
@media(max-width:600px){.px-ad-creative-row{align-items:flex-start!important}.px-ad-creative-info{min-width:0;flex-basis:55%}}

/* Meta hierarchy: campaign > ad set > ad with scoped editing and navigation. */
.px-campaign-detail-heading{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:3px 0 16px}
.px-campaign-crumbs{display:flex;align-items:center;gap:8px;min-width:0;flex:1;flex-wrap:wrap}
.px-campaign-crumbs strong{font-size:13px;line-height:1.5;color:#352151;overflow-wrap:anywhere}
.px-campaign-crumbs span{font-size:17px;color:#9981bf}
.px-campaign-detail-heading>small{font-size:11px;color:#846e9c}
.px-adset-table .px-adset-subtitle{display:block;margin-top:5px;color:#8a799d;font-size:11px}
.px-adset-table td{vertical-align:middle}
.px-adset-table .px-quick-actions{display:flex;gap:6px;flex-wrap:wrap}
.px-adset-table .px-campaign-open{text-align:left;max-width:100%}
.px-ad-controls{display:flex;align-items:flex-end;flex-direction:column;justify-content:center;gap:8px;margin-left:auto}
.px-ad-controls .px-quick-actions{display:flex;gap:7px}
.px-ad-inherited-status{display:block;color:#896b9d;line-height:1.4;font-size:10px;max-width:300px}
@media(max-width:720px){
 .px-campaign-detail-heading{align-items:flex-start;flex-direction:column}
 .px-campaign-crumbs{width:100%}
 .px-ad-controls{width:100%;flex-direction:row;justify-content:flex-end;align-items:center;flex-wrap:wrap;margin-left:0}
 .px-adset-table td{white-space:normal}
}


/* Meta ad thumbnails: fill the media card and keep controls over the image.
   The old .px-media-lowres style artificially shrank 64px previews, causing
   a tiny off-center picture next to a blank frame. */
.px-featured-item.px-featured-video>.px-feature-media{position:relative;display:block!important}
.px-featured-item.px-featured-video>.px-feature-media .px-feature-poster,
.px-featured-item.px-featured-video>.px-feature-media.px-media-lowres .px-feature-poster{
 position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
 max-width:100%!important;max-height:100%!important;object-fit:cover!important;
 object-position:center!important;border:0!important;border-radius:0!important;
}
.px-featured-item.px-featured-video>.px-feature-media .px-feature-no-media{
 position:absolute!important;inset:0!important;display:grid!important;place-items:center!important;
 padding:18px!important;min-height:0!important;max-height:none!important;box-sizing:border-box!important;
}
.px-featured-item.px-featured-video>.px-feature-media.px-has-poster .px-feature-no-media{display:none!important}
.px-featured-item.px-featured-video>.px-feature-media.px-media-lowres::after{display:none!important}
.px-featured-item.px-featured-video>.px-feature-media .px-media-play{z-index:2;top:50%;left:50%}
.px-featured-item.px-featured-video>.px-feature-media video,
.px-featured-item.px-featured-video>.px-feature-media iframe{
 position:absolute;inset:0;width:100%;height:100%;max-height:none;object-fit:contain;
 background:#21192e;border:0;border-radius:11px;
}
.px-ad-creative-row .px-ad-creative-media{position:relative;display:block;flex-shrink:0}
.px-ad-creative-row .px-ad-creative-media .px-feature-poster{
 display:block;width:100%!important;height:100%!important;object-fit:cover!important;
 object-position:center;background:#f0eafb;border-radius:8px;
}
.px-ad-creative-row .px-ad-creative-media.px-has-poster .px-feature-no-media{display:none!important}
.px-ad-creative-row .px-ad-creative-media .px-feature-no-media{
 width:100%;height:100%;min-height:0;padding:6px;font-size:10px;
 text-align:center;box-sizing:border-box;
}
@media(max-width:600px){
 .px-ad-creative-row .px-ad-creative-media{flex-basis:88px;height:75px}
 .px-featured-item.px-featured-video>.px-feature-media{min-height:190px}
}

/* Compact provider-verified budget summary remains the FIRST overview element.
   A neutral meter deliberately has no fill while billing saldo is unavailable. */
.px-budget-top{display:flex;flex-direction:column;gap:9px;margin-bottom:2px}
.px-budget-top-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap}
.px-budget-top-heading>strong{font-size:12px;letter-spacing:.01em;color:#352449;font-weight:800}
.px-budget-top-heading>small{font-size:10px;color:#83778e;line-height:1.4}
.px-budget-top-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.px-budget-account{background:#fff;border:1px solid #e8e1f1;border-radius:13px;padding:10px 14px 9px;min-width:0;box-shadow:0 3px 12px #4b338008}
.px-budget-account-main{display:flex;align-items:center;gap:13px;justify-content:space-between}
.px-budget-brand{display:flex;flex:0 0 auto;align-items:center;gap:6px;flex-wrap:wrap;max-width:32%}
.px-budget-brand>strong{font-size:12px;color:#38274e;white-space:nowrap;font-weight:780}
.px-budget-brand>small{width:100%;padding-left:17px;font-size:10px;line-height:1.2;color:#8c8195}
.px-budget-stats{display:grid;flex:1;grid-template-columns:1.1fr .85fr .8fr;align-items:center;gap:12px;min-width:0}
.px-budget-stat{display:flex;flex-direction:column;gap:3px;min-width:0}
.px-budget-stat>span{font-size:10px;color:#80748f;line-height:1.25}
.px-budget-stat>strong{font-size:12px;color:#392852;line-height:1.3;font-weight:760;overflow-wrap:anywhere}
.px-budget-balance>strong{color:#675d70}
.px-budget-meter{height:4px;width:100%;margin-top:9px;border-radius:10px;background:repeating-linear-gradient(90deg,#eae5f1 0,#eae5f1 9px,#f7f5fa 9px,#f7f5fa 14px)}
@media(max-width:1280px){.px-budget-account-main{align-items:flex-start;flex-wrap:wrap;gap:8px}.px-budget-brand{max-width:none}.px-budget-brand>small{width:auto;padding-left:3px}.px-budget-stats{flex-basis:100%}}
@media(max-width:800px){.px-budget-top-grid{grid-template-columns:1fr}.px-budget-account-main{align-items:center}.px-budget-stats{flex-basis:auto}.px-budget-brand{max-width:32%}.px-budget-brand>small{width:100%;padding-left:17px}}
@media(max-width:540px){.px-budget-top-heading>small{flex-basis:100%}.px-budget-account{padding:11px 12px}.px-budget-brand{flex-basis:100%;max-width:none}.px-budget-brand>small{width:auto;padding-left:3px}.px-budget-stats{grid-template-columns:repeat(3,minmax(0,1fr));flex-basis:100%;gap:8px}.px-budget-stat>strong{font-size:11px}.px-budget-stat>span{font-size:9px}}

/* Direct link to the selected ad account's own billing hub, never a Socio PIX. */
.px-budget-account{position:relative}
.px-budget-billing-link{display:inline-flex;align-items:center;justify-content:center;align-self:flex-start;margin-top:7px;border-radius:7px;border:1px solid #ddcff7;background:#f6f1ff;padding:5px 9px;font-size:10px;line-height:1.2;color:#6540b4;text-decoration:none;font-weight:750;max-width:100%}
.px-budget-billing-link:hover{background:#eee5ff;color:#50309b}
.px-budget-billing-link:focus-visible{outline:2px solid #7242dc;outline-offset:2px}
.px-budget-limit{display:block;margin-top:7px;color:#78688c;font-size:10px}

.socio-billing-dialog{width:min(1100px,94vw);max-height:92dvh;border:1px solid #e2d6f1;border-radius:18px;padding:20px;color:#39294d;background:#fff;overflow:auto;box-sizing:border-box;box-shadow:0 20px 80px #2e184455}
.socio-billing-dialog::backdrop{background:#24182e99;backdrop-filter:blur(4px)}
.socio-billing-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.socio-billing-head h2{margin:0;font-size:22px}.socio-billing-head p{font-size:12px;color:#82718f}
.socio-billing-head button{border:0;background:#f3edf9;padding:5px 12px;border-radius:8px;font-size:24px;cursor:pointer}
.socio-billing-dialog label{display:grid;gap:7px;font-size:13px;font-weight:700}
.socio-billing-dialog input,.socio-billing-dialog textarea{padding:10px;border:1px solid #dbcee9;border-radius:9px;font:inherit;width:100%;box-sizing:border-box}
.socio-billing-dialog input{max-width:250px}.socio-billing-dialog textarea{font-size:12px;overflow-wrap:anywhere}
.socio-billing-actions,.px-budget-billing-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:9px 0}
.socio-billing-dialog [data-screen]{display:block;width:100%;height:auto;border:1px solid #e4daef;border-radius:9px}
.socio-billing-dialog [data-status]{padding:10px;background:#f7f2fc;border-radius:9px;font-size:13px}
.socio-billing-dialog section[hidden]{display:none!important}
.px-budget-warning{font-size:11px;font-weight:750;color:#9b5016;background:#fff3df;border-radius:7px;padding:7px;margin:7px 0 0}
.px-budget-billing-actions .px-budget-billing-link{cursor:pointer;margin-top:0}
@media(max-width:600px){.socio-billing-dialog{padding:14px;width:97vw}.socio-billing-head h2{font-size:18px}}
