:root{font-family:Inter,system-ui,sans-serif;color:#202333;background:#f7f8fc;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{background:#6555dc;color:white;border:0;border-radius:10px;padding:12px 18px;cursor:pointer;font-weight:600}button:disabled{opacity:.55;cursor:wait}.secondary{background:#f1effb;color:#5346b9}.app{display:flex;min-height:100dvh}aside{width:230px;background:white;border-right:1px solid #e7e8ef;padding:30px 22px}aside p,.eyebrow{font-size:11px;font-weight:700;letter-spacing:.08em;color:#7d7c91;margin-top:40px}aside a{display:block;text-decoration:none;color:#5548b9;padding:14px;background:#f0edff;border-radius:10px}.logo{font-size:30px;letter-spacing:-1.5px}.logo span{color:#7866f0;font-size:18px}.workspace{flex:1;min-width:0}header{height:82px;display:flex;justify-content:space-between;align-items:center;padding:20px 36px;background:white;border-bottom:1px solid #e7e8ef}header span{color:#777c8d;font-size:13px}select,input{border:1px solid #dedee9;border-radius:10px;padding:12px;background:white;color:inherit;max-width:100%}main{padding:32px;max-width:1500px;margin:auto}.heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:26px}.heading .eyebrow{margin:0}h1{font-size:30px;letter-spacing:-1px;margin:8px 0}p{color:#73798b;line-height:1.6}.panel{background:white;border:1px solid #e5e6ee;border-radius:16px;overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap}th,td{padding:18px;border-bottom:1px solid #eeeff5}th{font-size:12px;color:#7b7e8d}.badge{background:#eeebff;color:#6151bd;padding:6px 10px;border-radius:20px;font-size:12px}.empty{padding:25px}.login{min-height:100dvh;display:grid;place-items:center}.login form{width:min(430px,100%);padding:36px;background:white;border:1px solid #e5e6ee;border-radius:20px}label{display:grid;gap:8px;font-size:14px;margin:20px 0}form button{width:100%}[role=alert]{color:#b63247}.overlay{position:fixed;inset:0;background:#1d183755;display:flex;justify-content:flex-end;z-index:10}.drawer{width:min(480px,100%);background:white;padding:30px;overflow:auto}.drawer>button{float:right}@media(max-width:700px){header{padding:14px;height:72px}header span{display:none}main{padding:20px 14px}.heading{align-items:flex-start;gap:12px}h1{font-size:25px}.heading button{font-size:12px;padding:10px}.drawer{padding:22px}}
.search,.pagination{display:flex;gap:12px;align-items:center;margin:20px 0}.search input{flex:1}.pagination{justify-content:space-between;font-size:13px}.settings{padding:28px;max-width:800px}.settings fieldset{border:0;padding:0}.settings .check{display:flex;align-items:center}.nav{width:100%;text-align:left;color:#5548b9;background:#f0edff;font-size:14px}.drawer{margin:0 0 0 auto;height:100dvh;border:0;max-height:100dvh;max-width:100vw}.drawer::backdrop{background:#1d183755}:focus-visible{outline:3px solid #9d8eff;outline-offset:3px}@media(max-width:700px){.nav{font-size:11px;padding:12px 4px}.settings{padding:18px}.pagination{font-size:11px;gap:5px}.pagination button{padding:10px}}
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.stat{padding:22px;display:grid;gap:16px}.stat span{font-size:13px;color:#72798a}.stat strong{font-size:32px;letter-spacing:-1px}.health{padding:22px;margin:24px 0}.health h2,.section-title{font-size:17px}.health-items{display:flex;flex-wrap:wrap;gap:10px}.good{background:#e3f7ed;color:#237652}.section-title{padding:10px 22px}@media(max-width:1000px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.stats{gap:10px}.stat{padding:15px}.stat strong{font-size:26px}}
.contact-filters{padding:18px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.contact-filters label{margin:0}.actions{display:flex;gap:10px;align-items:end}td small{display:block;color:#777e8d;margin-top:5px}.contact-drawer{width:min(760px,100%)}.contact-drawer fieldset{border:0;padding:0}.contact-drawer textarea{font:inherit;min-height:100px;resize:vertical;border:1px solid #dedee9;border-radius:10px;padding:12px;max-width:100%}.contact-details,.contact-notes{border-top:1px solid #e5e6ee;margin-top:28px;padding-top:16px}.contact-details dl{display:grid;grid-template-columns:1fr 1fr;gap:14px}.contact-details dt{color:#747b8b;font-size:12px}.contact-details dd{margin:5px 0;overflow-wrap:anywhere}.contact-details pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f7f8fc;padding:14px;border-radius:10px}.note{border:1px solid #e5e6ee;border-radius:12px;padding:16px;margin-top:14px}.note p{white-space:pre-wrap;overflow-wrap:anywhere;color:#262a39}.note button{margin-left:12px;font-size:12px}@media(max-width:700px){.contact-filters{grid-template-columns:1fr 1fr;gap:10px;padding:12px}.contact-filters label:first-child{grid-column:1/-1}.contact-filters label{font-size:12px}.contact-filters input,.contact-filters select{width:100%;padding:10px}.actions{grid-column:1/-1}.contact-details dl{grid-template-columns:1fr}}
.contact-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:18px 0}.contact-toolbar [aria-pressed=true]{background:#6555dc;color:white}.board-totals{display:grid;grid-template-columns:repeat(5,minmax(140px,1fr));gap:10px;overflow:auto;margin:15px 0}.board-totals>div{padding:15px;display:grid;gap:8px;font-size:12px}.kanban{display:flex;gap:16px;overflow:auto;padding:4px 4px 20px;align-items:flex-start}.kanban-column{background:#efeff6;border-radius:14px;padding:12px;flex:0 0 270px;min-height:250px}.kanban-column h2{font-size:15px;display:flex;justify-content:space-between;align-items:center}.kanban-column h2 span{background:white;border-radius:20px;padding:5px 9px;font-size:12px}.contact-card{background:white;border:1px solid #e1e1ec;border-radius:12px;margin:12px 0;padding:14px;overflow-wrap:anywhere}.contact-card.chosen{border:2px solid #6555dc}.contact-card p{margin:6px 0;font-size:12px}.contact-card label{font-size:12px;margin-bottom:0}.contact-card select{width:100%;font-size:12px}.card-tools{display:flex;align-items:center;justify-content:space-between}.drag-handle{padding:4px 12px;touch-action:none;cursor:grab;font-size:23px;user-select:none}.contact-name{background:transparent;color:#252938;padding:10px 0;text-align:left;max-width:100%}.contact-tags{display:flex;gap:4px;flex-wrap:wrap;margin-top:10px}.column-pages{display:flex;align-items:center;justify-content:space-between;gap:6px}.column-pages button{padding:8px;font-size:12px}.drop-ready{outline:2px dashed #a99bf8;outline-offset:-3px}.merge-dialog{width:min(560px,95vw);border:0;border-radius:18px;padding:28px;color:#202333;max-height:90dvh}.merge-dialog::backdrop{background:#1d183755}.merge-dialog select{width:100%}.merge-dialog li{overflow-wrap:anywhere;margin:8px 0}@media(max-width:700px){.board-totals{grid-template-columns:repeat(5,160px)}.kanban-column{flex-basis:245px}.contact-toolbar{gap:8px}.contact-toolbar button{font-size:12px;padding:10px}}

.contact-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}.contact-actions{margin-top:12px}.contact-actions .actions{flex-wrap:wrap;gap:6px}.contact-actions button{font-size:12px;padding:9px}.contact-actions textarea{font:inherit;width:100%;min-height:90px;border:1px solid #dedee9;border-radius:8px;padding:10px;resize:vertical}.danger{color:#b42336;background:#fcecef}.contact-grid h2{font-size:18px}.contact-grid .contact-card{margin:0}

.ranking{margin-top:24px;padding:24px}.ranking li{padding:18px 10px;border-bottom:1px solid #e6e6ee}.ranking p{margin:4px 0;overflow-wrap:anywhere}.ranking .contact-name{font-size:18px}

.ads-editor{padding:24px;margin:24px 0}.ads-editor fieldset{border:0;padding:0;min-width:0}.ads-editor textarea{font:inherit;width:100%;min-height:120px;border:1px solid #dedee9;padding:12px;border-radius:10px;resize:vertical}.ads-editor pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f6f6fb;padding:16px;border-radius:10px}.ads-editor .check{display:flex;align-items:center;gap:10px}.ads-editor .check input{width:auto}.ads-slots{margin-top:24px}.ads-editor h3{margin-top:32px}

.ads-editor .note button{max-width:100%;overflow-wrap:anywhere}.ads-editor .note small{display:block;overflow-wrap:anywhere}
.segment-card{margin:18px 0;overflow-wrap:anywhere}.segment-card small{display:block}.actions{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}.segment-editor{margin:20px 0}.segment-rule{border:1px solid #e4e2ef;border-radius:12px;padding:16px;margin:16px 0;display:grid;grid-template-columns:1fr 1fr;gap:12px;min-width:0}.segment-rule legend{padding:0 6px}.segment-rule label,.segment-filters label{min-width:0}.segment-rule input,.segment-rule select{min-width:0;width:100%}.segment-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:end;gap:12px;margin:20px 0}@media(max-width:650px){.segment-rule,.segment-filters{grid-template-columns:minmax(0,1fr)}.segment-editor .actions button{max-width:100%;white-space:normal}}
.segment-editor textarea{width:100%;min-height:88px;padding:12px;border:1px solid #dedbed;border-radius:12px;background:white;color:#14182a;font:inherit;resize:vertical}
.message-editor{margin:22px 0;overflow-wrap:anywhere}.message-editor textarea{width:100%;min-height:100px;padding:12px;border:1px solid #dedbed;border-radius:12px;background:white;color:#14182a;font:inherit;resize:vertical}.message-node{border:1px solid #e4e2ef;border-radius:14px;padding:18px;margin:20px 0;min-width:0}.message-targets{border:1px solid #e4e2ef;border-radius:10px;padding:12px;margin:12px 0;min-width:0}.message-targets summary{cursor:pointer;font-weight:600}.message-text{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;max-width:100%}.message-link{padding:12px;background:#f6f5fb;border-radius:10px;margin:12px 0}.message-editor .check{display:flex;align-items:center;gap:10px}.message-editor .check input{width:auto;flex-shrink:0}.message-editor button{max-width:100%;white-space:normal}

/* --- DASHBOARD, OPPORTUNITIES & METRICS-HUB STYLES --- */
.subtitle{color:#73798b;font-size:14px;margin-top:-2px}
.header-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.header-timestamp{font-size:12px;color:#85879a}
.select-small{border:1px solid #dedee9;border-radius:10px;padding:8px 12px;background:white;font-size:13px}
.alert-error{background:#fdf2f2;border-color:#f8b4b4;color:#9b1c1c;padding:14px;border-radius:12px;margin:16px 0}

.metrics-top-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:24px 0}
.metric-top-card{display:flex;align-items:center;gap:16px;padding:20px;background:white;border:1px solid #e5e6ee;border-radius:16px;text-decoration:none;color:inherit;transition:transform .15s,box-shadow .15s}
.metric-top-card:hover{transform:translateY(-2px);box-shadow:0 6px 18px rgba(0,0,0,0.04);border-color:#cdcbe5}
.metric-icon-box{width:48px;height:48px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:22px;flex-shrink:0}
.tone-rose{background:#ffebee;color:#e53935}
.tone-emerald{background:#e8f5e9;color:#2e7d32}
.tone-blue{background:#e3f2fd;color:#1565c0}
.tone-violet{background:#f3e5f5;color:#7b1fa2}
.tone-amber{background:#fff8e1;color:#f57f17}
.metric-details{display:flex;flex-direction:column;min-width:0}
.metric-big-num{font-size:28px;font-weight:700;letter-spacing:-1px;line-height:1.1;color:#1f2338}
.metric-label{font-size:12px;color:#73798b;margin-top:4px}
.metric-sub-detail{font-size:11px;color:#8e92a4;margin-top:2px}

.dashboard-split-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:20px;margin:24px 0}
.performance-panel{padding:24px;border-radius:16px;background:white;border:1px solid #e5e6ee}
.perf-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
.perf-header h2{font-size:16px;margin:0;font-weight:600;color:#1f2338}
.perf-hero{margin-bottom:18px}
.hero-num{font-size:32px;font-weight:700;letter-spacing:-1px;color:#1f2338;margin-right:8px}
.hero-label{font-size:13px;color:#73798b}
.svg-chart-container{width:100%;height:180px;position:relative}
.performance-chart-svg{width:100%;height:100%;overflow:visible}

.dashboard-side-col{display:flex;flex-direction:column;gap:20px}
.side-panel-box{padding:22px;border-radius:16px;background:white;border:1px solid #e5e6ee}
.side-panel-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}
.side-panel-header h2{font-size:15px;margin:0;font-weight:600;color:#1f2338}
.side-link-action{font-size:12px;color:#6555dc;text-decoration:none;font-weight:600}
.operation-stats-row{display:grid;grid-template-columns:1fr 1fr;text-align:center}
.op-stat-block{display:flex;flex-direction:column;gap:4px;padding:8px}
.border-l{border-left:1px solid #eeeff5}
.border-t{border-top:1px solid #eeeff5}
.op-num{font-size:28px;font-weight:700;color:#1f2338}
.tone-green-text{color:#2e7d32}
.op-label{font-size:12px;color:#73798b}

.health-checklist{display:flex;flex-direction:column;gap:10px}
.health-item-row{display:flex;align-items:center;gap:14px;padding:12px 14px;border:1px solid #eeeff5;border-radius:12px;text-decoration:none;color:inherit;background:#fafafc;transition:background .15s}
.health-item-row:hover{background:#f4f3fb}
.health-status-icon{width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:14px}
.badge-icon-check{color:#2e7d32;font-weight:bold}
.badge-icon-warn{color:#f57f17;font-weight:bold}
.health-info{flex:1;display:flex;flex-direction:column}
.health-info strong{font-size:13px;color:#1f2338}
.health-subtext{font-size:11px;color:#73798b}
.health-arrow{font-size:18px;color:#9b9eb2}

.ai-opportunities-banner{display:flex;align-items:center;gap:18px;padding:22px;background:#f5f3ff;border:1px solid #dcd7fa;border-radius:16px;text-decoration:none;color:inherit;margin-top:20px;transition:border-color .15s}
.ai-opportunities-banner:hover{border-color:#9d8eff}
.ai-sparkle-icon{font-size:26px}
.ai-banner-content{flex:1;display:flex;flex-direction:column;gap:3px}
.ai-banner-badge{font-size:11px;font-weight:700;letter-spacing:.06em;color:#6555dc}
.ai-banner-title{font-size:15px;color:#1f2338}
.ai-banner-arrow{font-size:13px;font-weight:600;color:#6555dc}

/* --- OPPORTUNITIES PAGE --- */
.opp-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:24px 0}
.opp-summary-card{display:flex;align-items:center;gap:14px;padding:18px;background:white;border:1px solid #e5e6ee;border-radius:14px}
.opp-sum-icon{width:42px;height:42px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:20px;flex-shrink:0}
.opp-sum-num{display:block;font-size:24px;font-weight:700;color:#1f2338;line-height:1}
.opp-sum-label{font-size:12px;font-weight:600;color:#454b5f;display:block;margin-top:4px}
.opp-sum-sub{font-size:11px;color:#858a9e;display:block}

.opp-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin:24px 0}
.opp-tabs{display:flex;gap:6px;background:#eeeff5;padding:4px;border-radius:12px}
.opp-tab{background:transparent;color:#55596b;border:0;padding:8px 14px;border-radius:9px;font-size:13px;font-weight:600;cursor:pointer}
.opp-tab.active{background:white;color:#1f2338;box-shadow:0 2px 6px rgba(0,0,0,0.06)}
.opp-search-box{flex:1;min-width:200px}
.opp-search-input{width:100%;border:1px solid #dedee9;border-radius:10px;padding:10px 14px;font-size:13px;background:white}
.opp-status-filters{display:flex;gap:4px}
.opp-status-btn{background:#fafafc;color:#666b7c;border:1px solid #e2e3ec;padding:8px 12px;border-radius:8px;font-size:12px;font-weight:600;cursor:pointer}
.opp-status-btn.active{background:#6555dc;color:white;border-color:#6555dc}

.opp-cards-grid{display:grid;grid-template-columns:1fr;gap:16px}
.opp-card{padding:24px;border-radius:16px;background:white;border:1px solid #e5e6ee}
.opp-card-meta{display:flex;align-items:center;gap:10px;margin-bottom:12px;flex-wrap:wrap}
.badge-pill{padding:4px 10px;border-radius:20px;font-size:11px;font-weight:600}
.badge-cat-purple{background:#f3e8ff;color:#7e22ce}
.badge-cat-green{background:#dcfce7;color:#15803d}
.badge-cat-amber{background:#fef3c7;color:#b45309}
.badge-pri-red{background:#fee2e2;color:#b91c1c}
.badge-pri-yellow{background:#fef9c3;color:#854d0e}
.badge-pri-green{background:#e0f2fe;color:#0369a1}
.opp-card-date{font-size:11px;color:#898d9f;margin-left:auto}
.opp-card-title{font-size:18px;font-weight:700;color:#1f2338;margin:6px 0 8px}
.opp-card-explanation{font-size:14px;color:#555a6d;line-height:1.6;margin-bottom:14px}
.opp-card-impact{display:flex;align-items:center;gap:10px;padding:12px 14px;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:10px;font-size:13px;color:#166534;margin-bottom:12px}
.impact-icon{font-size:18px}
.opp-card-action-box{background:#f9fafb;border-left:3px solid #6555dc;padding:10px 14px;border-radius:4px 10px 10px 4px;font-size:13px;margin-bottom:16px}
.opp-card-action-box strong{color:#374151;display:block;margin-bottom:2px}
.opp-card-action-box p{margin:0;color:#6b7280}
.opp-card-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid #f1f2f6;padding-top:14px;flex-wrap:wrap}
.opp-btn-prompt{font-size:13px;padding:10px 16px}
.opp-action-buttons{display:flex;gap:8px}
.opp-btn-small{font-size:12px;padding:8px 12px}

/* --- PROMPT MODAL --- */
.prompt-overlay{display:grid;place-items:center;padding:20px;z-index:999}
.prompt-dialog{background:white;width:min(780px,100%);max-height:90vh;border-radius:20px;padding:28px;display:flex;flex-direction:column;box-shadow:0 20px 40px rgba(0,0,0,0.18)}
.prompt-dialog-header{display:flex;justify-content:space-between;align-items:flex-start}
.prompt-dialog-header h2{font-size:18px;margin:0;color:#1f2338}
.close-x-btn{background:transparent;border:0;color:#858a9e;font-size:18px;cursor:pointer;padding:4px}
.prompt-dialog-desc{font-size:13px;color:#6b7280;margin:10px 0 14px}
.copy-success-alert{background:#dcfce7;color:#15803d;padding:8px 12px;border-radius:8px;font-size:12px;font-weight:600;margin:6px 0}
.prompt-textarea{width:100%;flex:1;min-height:300px;font-family:monospace;font-size:12px;line-height:1.5;padding:14px;border:1px solid #dedee9;border-radius:12px;background:#f9fafb;resize:none}
.prompt-dialog-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}

/* --- METRICS HUB --- */
.section-box{margin-top:24px}
.organic-sources-list{display:flex;flex-direction:column;gap:16px}
.organic-row{display:flex;flex-direction:column;gap:6px}
.organic-row-top{display:flex;justify-content:space-between;font-size:13px;color:#374151}
.progress-bar-track{width:100%;height:8px;background:#eeeff5;border-radius:4px;overflow:hidden}
.progress-bar-fill{height:100%;background:#6555dc;border-radius:4px;transition:width .3s}
.revenue-sources-list{display:flex;flex-direction:column}
.rev-source-row{display:flex;justify-content:space-between;align-items:center;padding:14px 0;text-decoration:none;color:inherit}
.rev-source-name{font-size:14px;font-weight:600;color:#1f2338}
.rev-source-val{font-size:13px;font-weight:600;color:#6555dc}
.data-sources-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.data-source-card{display:flex;align-items:center;gap:12px;padding:16px;border:1px solid #eeeff5;border-radius:12px;background:#fafafc;text-decoration:none;color:inherit}
.source-plug-icon{font-size:22px}
.source-card-text{display:flex;flex-direction:column}
.source-card-text strong{font-size:13px;color:#1f2338}
.source-card-status{font-size:11px;color:#73798b;margin-top:2px}
.top-pages-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.top-page-card{padding:16px;background:#fafafc;border:1px solid #eeeff5;border-radius:12px;display:flex;flex-direction:column;gap:8px}
.page-card-url{font-size:13px;color:#1f2338;word-break:break-all}
.page-card-stats-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;border-top:1px solid #eeeff5;padding-top:10px}
.page-stat-label{font-size:10px;color:#73798b;display:block}
.page-stat-val{font-size:13px;color:#1f2338}
.correlations-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.correlation-card{padding:16px;background:#fafafc;border:1px solid #eeeff5;border-radius:12px}
.corr-meta{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.corr-badge-text{font-size:11px;color:#6555dc;font-weight:600}
.corr-title{font-size:14px;margin:0 0 6px;color:#1f2338}
.corr-desc{font-size:12px;color:#555a6d;margin:0;line-height:1.5}
.page-search-margin{margin-bottom:16px}
.show-more-box{margin-top:16px;text-align:center}
.show-more-box button{width:100%}

/* --- SIDEBAR ACESSO RÁPIDO & NAV --- */
.sidebar-section-title{font-size:10px;font-weight:700;letter-spacing:.08em;color:#9b9eb2;margin:24px 0 8px;text-transform:uppercase}
.sidebar-nav{display:flex;flex-direction:column;gap:4px}
.sidebar-nav a{display:flex;align-items:center;gap:10px;padding:10px 12px;font-size:13px;color:#454b5f;text-decoration:none;border-radius:8px;background:transparent;transition:background .15s,color .15s}
.sidebar-nav a:hover{background:#f1effb;color:#6555dc}
.sidebar-nav a.active{background:#eeebff;color:#6555dc;font-weight:600}
.nav-icon{font-size:14px}
.header-left{display:flex;align-items:center;gap:12px}
.active-project-label{font-size:13px;color:#73798b}
.project-header-select{font-weight:600;color:#1f2338;border-color:#cdcbe5}

@media(max-width:1100px){
  .metrics-top-grid,.opp-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dashboard-split-grid{grid-template-columns:1fr}
  .data-sources-grid,.top-pages-grid,.correlations-grid{grid-template-columns:1fr}
}

/* --- CRM SHARED & BREADCRUMBS --- */
.breadcrumb-nav{font-size:12px;font-weight:600;color:#85879a;margin-bottom:6px;text-transform:uppercase;letter-spacing:.05em}
.crm-tabs-bar{display:flex;gap:6px;background:#eeeff5;padding:4px;border-radius:12px;margin:20px 0;overflow-x:auto;-webkit-overflow-scrolling:touch}
.crm-tab{background:transparent;color:#55596b;border:0;padding:9px 16px;border-radius:9px;font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap;display:flex;align-items:center;gap:6px}
.crm-tab.active{background:white;color:#1f2338;box-shadow:0 2px 6px rgba(0,0,0,0.06)}
.tab-badge{background:#6555dc;color:white;padding:2px 7px;border-radius:12px;font-size:11px;font-weight:700}
.tab-badge-neutral{background:#e2e3ec;color:#55596b;padding:2px 7px;border-radius:12px;font-size:11px;font-weight:600}
.subheading-row{display:flex;justify-content:space-between;align-items:center;margin:20px 0 14px}
.section-subheading{font-size:15px;margin:0;color:#1f2338;font-weight:600}
.custom-cards-link{font-size:12px;color:#73798b;cursor:pointer}
.table-responsive{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;display:block}

/* --- WEB PUSH STYLES --- */
.push-8-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:16px 0}
.push-card{padding:18px;background:white;border:1px solid #e5e6ee;border-radius:14px;display:flex;flex-direction:column;gap:8px}
.push-card-header{display:flex;align-items:center;gap:10px}
.push-card-icon{width:32px;height:32px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:16px;flex-shrink:0}
.push-card-title{font-size:12px;color:#73798b;font-weight:500}
.push-card-value{font-size:26px;font-weight:700;color:#1f2338;line-height:1}

/* --- POPUPS STYLES --- */
.panel-header-toolbar{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid #eeeff5;flex-wrap:wrap;gap:14px}
.switch-btn{width:40px;height:22px;border-radius:20px;background:#e2e3ec;border:0;padding:2px;cursor:pointer;display:flex;align-items:center;transition:background .2s}
.switch-btn.active{background:#22c55e}
.switch-indicator{width:18px;height:18px;border-radius:50%;background:white;display:block;box-shadow:0 1px 3px rgba(0,0,0,0.2);transform:translateX(0);transition:transform .2s}
.switch-btn.active .switch-indicator{transform:translateX(18px)}
.popup-sub-headline{display:block;font-size:12px;color:#6b7280;margin-top:2px}
.popup-tag-badge{display:inline-block;font-size:11px;color:#85879a;background:#f3f4f6;padding:2px 6px;border-radius:4px;margin-top:4px}
.trigger-badge{display:inline-flex;align-items:center;font-size:12px;color:#4b5563}
.icon-btn-action{background:transparent;border:0;color:#6b7280;font-size:15px;padding:6px;cursor:pointer;border-radius:6px;transition:background .15s}
.icon-btn-action:hover{background:#f3f4f6}
.danger-btn:hover{background:#fee2e2;color:#b91c1c}
.two-col-form{display:grid;grid-template-columns:1fr 1fr;gap:14px}

/* --- TELEGRAM STYLES --- */
.telegram-composer-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:20px;margin-top:24px}
.content-type-selector{display:flex;gap:8px;flex-wrap:wrap;margin-top:6px}
.content-type-btn{background:#fafafc;color:#4b5563;border:1px solid #e5e7eb;padding:8px 12px;border-radius:8px;font-size:12px;font-weight:600;cursor:pointer}
.content-type-btn.active{background:#6555dc;color:white;border-color:#6555dc}
.format-toolbar{display:flex;gap:4px}
.toolbar-btn{background:#f3f4f6;color:#374151;border:0;padding:4px 8px;border-radius:6px;font-size:11px;font-weight:700;cursor:pointer}
.toolbar-btn:hover{background:#e5e7eb}
.small-tab-btn{background:#f3f4f6;color:#4b5563;border:0;padding:6px 12px;border-radius:6px;font-size:12px;font-weight:600;cursor:pointer}
.small-tab-btn.active{background:#4338ca;color:white}
.chat-recipients-list{display:flex;flex-direction:column;gap:8px;max-height:220px;overflow-y:auto}
.recipient-chat-item{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;background:#f9fafb;border-radius:8px;font-size:12px}
.chat-item-name{font-weight:600;color:#1f2338}
.chat-item-members{color:#6b7280;font-size:11px}

/* --- MOBILE RESPONSIVENESS OVERHAUL (FIX FOR MOBILE) --- */
.mobile-menu-toggle{display:none;background:transparent;color:#1f2338;border:1px solid #e5e6ee;border-radius:8px;padding:8px 12px;font-size:18px;cursor:pointer}
.mobile-close-btn{display:none;background:transparent;color:#73798b;border:0;font-size:20px;cursor:pointer;padding:6px}
.aside-mobile-top{display:none}
.sidebar-backdrop{display:none}

@media(max-width:768px){
  body,html{overflow-x:hidden;max-width:100vw}
  .app{position:relative;display:block;min-height:100dvh}
  aside{
    position:fixed;top:0;left:0;bottom:0;width:280px;height:100vh;
    z-index:9999;background:white;padding:24px 18px;overflow-y:auto;
    transform:translateX(-100%);transition:transform .25s ease-in-out;
    box-shadow:4px 0 24px rgba(0,0,0,0.18);
  }
  aside.open{transform:translateX(0)}
  .aside-mobile-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid #eeeff5}
  .mobile-close-btn{display:block}
  .sidebar-backdrop.active{
    display:block;position:fixed;inset:0;background:rgba(15,18,34,0.45);
    z-index:9990;backdrop-filter:blur(2px);
  }
  .mobile-menu-toggle{display:inline-flex;align-items:center;justify-content:center}
  header{padding:12px 16px;height:64px}
  .header-left{gap:8px}
  .active-project-label{display:none}
  .project-header-select{max-width:140px;font-size:12px;padding:6px 8px}
  header button{padding:8px 12px;font-size:12px}
  main{padding:16px 12px;max-width:100%;overflow-x:hidden}
  h1{font-size:22px}
  .subtitle{font-size:12px}
  .heading{flex-direction:column;align-items:flex-start;gap:12px}
  .header-actions{width:100%;justify-content:flex-start;gap:8px}
  .header-actions button,.header-actions select,.header-actions input{font-size:12px;padding:8px 10px}
  
  .metrics-top-grid,.opp-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .metric-top-card,.opp-summary-card{padding:14px;gap:10px}
  .metric-icon-box,.opp-sum-icon{width:36px;height:36px;font-size:18px;border-radius:10px}
  .metric-big-num,.opp-sum-num{font-size:20px}
  .metric-label,.opp-sum-label{font-size:11px}
  
  .push-8-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .push-card{padding:12px}
  .push-card-value{font-size:20px}
  
  .two-col-form{grid-template-columns:1fr}
  .telegram-composer-grid{grid-template-columns:1fr}
  .panel{border-radius:12px}
  .prompt-dialog{padding:18px 14px}
}

@media(max-width:440px){
  .metrics-top-grid,.opp-summary-grid{grid-template-columns:1fr}
  .push-8-grid{grid-template-columns:1fr}
  .header-actions{flex-direction:column;align-items:stretch}
  .header-actions button,.header-actions select{width:100%}
}


/* --- ADSENSE & CRM DASHBOARD STYLES (100% RUST WASM UI) --- */
.adsense-page, .crm-dashboard-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.adsense-alert-banner {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.banner-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #b45309;
  font-size: 16px;
}
.banner-desc {
  color: #78350f;
  font-size: 14px;
  margin: 0;
}
.banner-steps-box {
  background: #ffffff;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 16px 20px;
}
.steps-title {
  font-weight: 600;
  color: #1f2937;
  font-size: 13px;
  margin: 0 0 8px 0;
}
.steps-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #4b5563;
}
.btn-banner-action {
  align-self: flex-start;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
}
.adsense-status-card {
  background: white;
  border: 1px solid #eeeff5;
  border-radius: 12px;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.status-card-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.status-dollar-icon {
  font-size: 24px;
  color: #9ca3af;
  font-weight: 700;
}
.status-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #1f2937;
}
.badge-connected {
  background: #dcfce7;
  color: #15803d;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 600;
}
.badge-disconnected {
  background: #fef3c7;
  color: #b45309;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 600;
}
.status-sub {
  color: #6b7280;
  font-size: 12px;
}
.status-config-link {
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
}
.status-config-link:hover {
  text-decoration: underline;
}
.adsense-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.metric-card-desc {
  color: #6b7280;
  font-size: 12px;
}
.adsense-chart-panel {
  min-height: 280px;
  display: flex;
  flex-direction: column;
}
.empty-chart-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  gap: 8px;
}
.empty-icon-large {
  font-size: 36px;
  color: #d1d5db;
}
.empty-chart-title {
  font-size: 14px;
  color: #4b5563;
  margin: 0;
  font-weight: 500;
}
.empty-chart-sub {
  font-size: 12px;
  color: #9ca3af;
}
.empty-chart-box-compact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  text-align: center;
  gap: 6px;
}
.empty-icon-compact {
  font-size: 24px;
  color: #d1d5db;
}

/* CRM Dashboard (Dark Mode Slate/Navy layout matching Image 5) */
.crm-header-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.crm-header-icon-box {
  width: 44px;
  height: 44px;
  background: #374151;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.crm-10-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.crm-kpi-card {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: white;
}
.crm-kpi-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.crm-kpi-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #94a3b8;
}
.crm-kpi-icon {
  font-size: 14px;
  color: #38bdf8;
}
.crm-kpi-value {
  font-size: 22px;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  gap: 6px;
}
.crm-kpi-sub {
  font-size: 11px;
  color: #64748b;
}
.kpi-badge-green {
  font-size: 10px;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  padding: 2px 6px;
  border-radius: 6px;
}
.kpi-badge-gray {
  font-size: 10px;
  font-weight: 600;
  background: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
  padding: 2px 6px;
  border-radius: 6px;
}
.kpi-badge-purple {
  font-size: 10px;
  font-weight: 600;
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  padding: 2px 6px;
  border-radius: 6px;
}
.crm-charts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.crm-chart-panel {
  background: #0f172a;
  border: 1px solid #1e293b;
  color: white;
  min-height: 280px;
}
.crm-chart-panel h3 {
  color: white;
  font-size: 13px;
  letter-spacing: 0.05em;
}
.crm-chart-panel .subtitle {
  color: #64748b;
  font-size: 12px;
}
.crm-chart-panel .empty-chart-title {
  color: #64748b;
  font-size: 12px;
}
.chart-corner-icon {
  font-size: 16px;
  color: #38bdf8;
}

@media (max-width: 768px) {
  .adsense-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .crm-10-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .crm-charts-grid {
    grid-template-columns: 1fr;
  }
  .adsense-status-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 440px) {
  .adsense-metrics-grid {
    grid-template-columns: 1fr;
  }
  .crm-10-grid {
    grid-template-columns: 1fr;
  }
}


/* --- DASHBOARD DAILY OPPORTUNITIES CARDS --- */
.dashboard-daily-opps-section {
  margin-top: 28px;
}
.daily-opps-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.daily-opps-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: #1f2338;
  margin: 0 0 4px 0;
}
.daily-opps-header .subtitle {
  color: #73798b;
  font-size: 13px;
  margin: 0;
}
.see-all-opps-link {
  color: #6555dc;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.see-all-opps-link:hover {
  text-decoration: underline;
}
.daily-opps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.daily-opp-card {
  background: white;
  border: 1px solid #e5e6ee;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.opp-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.opp-pills-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.opp-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
}
.pill-module {
  background: #f1effb;
  color: #6555dc;
}
.pill-priority.priority-high {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fee2e2;
}
.pill-priority.priority-medium {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fef3c7;
}
.opp-date-tag {
  font-size: 11px;
  color: #94a3b8;
}
.opp-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  line-height: 1.4;
}
.opp-card-expl {
  font-size: 13px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}
.opp-impact-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: #166534;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.opp-impact-text strong {
  color: #14532d;
}
.opp-action-row {
  font-size: 12px;
  color: #475569;
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}
.opp-action-label {
  font-weight: 600;
  color: #334155;
}
.opp-card-footer {
  margin-top: auto;
  padding-top: 8px;
}
.opp-execute-btn {
  display: inline-block;
  background: #6555dc;
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}
.opp-execute-btn:hover {
  background: #5444cb;
}
@media (max-width: 768px) {
  .daily-opps-grid {
    grid-template-columns: 1fr;
  }
}

/* Modals & Backdrops */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}
.modal-backdrop.active {
  display: flex;
}
.modal {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--border);
  padding: 24px;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.close-btn {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}
.close-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* Tabs */
.tab-btn {
  color: var(--text-muted);
  transition: all 0.15s ease;
}
.tab-btn:hover {
  color: #0f172a;
}
.tab-btn.active {
  color: #6555dc !important;
  border-bottom-color: #6555dc !important;
}

/* Data Tables */
.data-table tr:hover td {
  background: #f8fafc;
}



/* ==========================================================================
   REDESIGN 2026: DESIGN SYSTEM & DEPARTMENT NAVIGATION
   ========================================================================== */

/* Brand & Logo */
.brand-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.brand-box .logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -1px;
  color: #1f2338;
}
.brand-box .logo span {
  color: #6555dc;
}
.logo-badge {
  font-size: 10px;
  font-weight: 700;
  background: #f0edff;
  color: #6555dc;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Department Tabs Grid */
.sidebar-dept-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #8e92a4;
  margin: 0 0 8px 4px;
  text-transform: uppercase;
}

.dept-tabs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  background: #f4f5f9;
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 18px;
  border: 1px solid #e7e8f0;
}

.dept-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 2px;
  background: transparent;
  color: #666c82;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}
.dept-tab-btn:hover {
  background: #e8eaf2;
  color: #1f2338;
}

/* Department Active Highlight Colors */
.dept-tab-btn.active.dept-gestao {
  background: #475569;
  color: white;
  box-shadow: 0 2px 6px rgba(71,85,105,0.35);
}
.dept-tab-btn.active.dept-conteudo {
  background: #7c3aed;
  color: white;
  box-shadow: 0 2px 6px rgba(124,58,237,0.35);
}
.dept-tab-btn.active.dept-crm {
  background: #059669;
  color: white;
  box-shadow: 0 2px 6px rgba(5,150,105,0.35);
}
.dept-tab-btn.active.dept-social {
  background: #ea580c;
  color: white;
  box-shadow: 0 2px 6px rgba(234,88,12,0.35);
}
.dept-tab-btn.active.dept-growth {
  background: #2563eb;
  color: white;
  box-shadow: 0 2px 6px rgba(37,99,235,0.35);
}

.dept-tab-icon {
  font-size: 15px;
  line-height: 1;
}
.dept-tab-text {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.sidebar-separator {
  height: 1px;
  background: #eeeff5;
  margin: 14px 0;
}

.sidebar-section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #8b8ea1;
  margin: 0 0 10px 4px;
  text-transform: uppercase;
}

/* Sidebar Nav Links */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #4b5268;
  text-decoration: none;
  background: transparent;
  transition: all 0.15s ease;
}
.sidebar-nav a:hover {
  background: #f4f5fa;
  color: #1f2338;
}
.sidebar-nav a.active {
  background: #eeebff;
  color: #5544d6;
  font-weight: 600;
}

/* Sidebar Footer Quick Links */
.sidebar-footer-nav {
  margin-top: auto;
  padding-top: 10px;
}
.footer-shortcut {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  color: #6a7085;
  text-decoration: none;
  transition: all 0.15s ease;
}
.footer-shortcut:hover {
  background: #f4f5fa;
  color: #1f2338;
}
.footer-shortcut.active {
  background: #eeebff;
  color: #5544d6;
  font-weight: 600;
}

/* TOP HEADER & BREADCRUMBS */
.top-header {
  height: 68px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 28px;
  background: white;
  border-bottom: 1px solid #e7e8ef;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.project-pill-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f8f9fc;
  border: 1px solid #dcdde8;
  border-radius: 10px;
  padding: 4px 10px;
}
.project-icon {
  font-size: 14px;
}
.project-header-select {
  border: 0;
  background: transparent;
  font-weight: 600;
  font-size: 13px;
  color: #1f2338;
  padding: 4px;
  cursor: pointer;
  outline: none;
}

.header-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-left: 8px;
}
.breadcrumb-dept {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dept-gestao {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}
.dept-conteudo {
  background: #f3e8ff;
  color: #6b21a8;
  border: 1px solid #d8b4fe;
}
.dept-crm {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.dept-social {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
}
.dept-growth {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.breadcrumb-separator {
  color: #b0b4c3;
  font-size: 14px;
}
.breadcrumb-current {
  font-weight: 600;
  color: #1f2338;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-quick-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid #e2e4ee;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.header-btn-icon:hover {
  background: #f5f6fa;
  border-color: #cbcfde;
}
.header-logout-btn {
  background: #f1effb;
  color: #5346b9;
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.header-logout-btn:hover {
  background: #e4e0fa;
}

@media(max-width: 800px) {
  .header-breadcrumbs {
    display: none;
  }
}


/* ==========================================================================
   REFINED SAAS DESIGN SYSTEM (LINEAR / STRIPE TIER) - NO EMOJIS & AMPLE SPACE
   ========================================================================== */

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --bg-app: #f8fafc;
  --bg-sidebar: #ffffff;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-sub: #94a3b8;
  --border-subtle: #f1f5f9;
  --border-light: #e2e8f0;
  --primary: #0f172a;
  --primary-hover: #1e293b;
  --accent-blue: #2563eb;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-main);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* SIDEBAR REFINEMENT */
aside {
  width: 264px !important;
  min-width: 264px;
  max-width: 264px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-light);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
  box-sizing: border-box;
}

.brand-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  margin-bottom: 20px;
}
.brand-box .logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: #0f172a;
}
.brand-box .logo span {
  color: #6366f1;
}
.logo-badge {
  font-size: 11px;
  font-weight: 600;
  background: #f1f5f9;
  color: #475569;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dept-selector-container {
  margin-bottom: 16px;
}
.sidebar-dept-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin: 0 0 6px 4px;
  text-transform: uppercase;
}

.dept-pills-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  background: #f8fafc;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.dept-pill-btn {
  flex: 1 1 28%;
  min-width: 65px;
  padding: 6px 4px;
  background: transparent;
  color: #64748b;
  border: 0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.dept-pill-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.dept-pill-btn.active {
  background: #0f172a;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.sidebar-separator {
  height: 1px;
  background: var(--border-light);
  margin: 14px 0;
}

.sidebar-section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin: 0 0 6px 4px;
  text-transform: uppercase;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  background: transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.12s ease;
}
.sidebar-nav a:hover {
  background: #f8fafc;
  color: #0f172a;
}
.sidebar-nav a.active {
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 600;
}

.sidebar-nav a .nav-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  flex-shrink: 0;
}
.sidebar-nav a:hover .nav-icon {
  color: #475569;
}
.sidebar-nav a.active .nav-icon {
  color: var(--accent-blue);
}

.nav-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-footer-nav {
  margin-top: auto;
  padding-top: 8px;
}
.footer-shortcut {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: #64748b;
  text-decoration: none;
  transition: all 0.12s ease;
}
.footer-shortcut:hover {
  background: #f8fafc;
  color: #0f172a;
}
.footer-shortcut.active {
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 600;
}

/* TOP HEADER */
.top-header {
  height: 60px !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.project-pill-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 4px 10px;
  height: 34px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.project-icon {
  display: flex;
  align-items: center;
  color: #64748b;
}
.project-header-select {
  border: 0;
  background: transparent;
  font-weight: 600;
  font-size: 13px;
  color: #0f172a;
  cursor: pointer;
  outline: none;
  padding-right: 2px;
}
.project-chevron {
  display: flex;
  align-items: center;
  color: #94a3b8;
  pointer-events: none;
}

.header-divider {
  width: 1px;
  height: 20px;
  background: var(--border-light);
}

.header-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.breadcrumb-dept {
  color: #64748b;
  font-weight: 500;
}
.breadcrumb-separator {
  color: #cbd5e1;
  font-size: 13px;
}
.breadcrumb-current {
  color: #0f172a;
  font-weight: 600;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.system-status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: #166534;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
}

.header-quick-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.header-btn-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  text-decoration: none;
  transition: all 0.15s ease;
}
.header-btn-icon:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

.header-logout-btn {
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.header-logout-btn:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

/* WORKSPACE & MAIN CONTENT */
main {
  padding: 32px 40px !important;
  max-width: 1400px;
  margin: 0 auto;
}

.heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 20px;
}
.heading h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #0f172a;
  margin: 0 0 6px 0;
}
.heading .subtitle {
  font-size: 14px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
  max-width: 680px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.period-pills {
  display: inline-flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  gap: 2px;
}
.period-pill {
  border: 0;
  background: transparent;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.period-pill:hover {
  color: #0f172a;
}
.period-pill.active {
  background: #ffffff;
  color: #0f172a;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.header-actions button.secondary,
.header-actions a.secondary {
  height: 32px;
  padding: 0 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
}
.header-actions button.secondary:hover,
.header-actions a.secondary:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #94a3b8;
}

/* REFINED WARNING BANNER */
.adsense-alert-banner {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}
.banner-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #92400e;
}
.warning-icon {
  display: flex;
  align-items: center;
  color: #d97706;
}
.banner-desc {
  font-size: 13px;
  color: #78350f;
  margin: 8px 0 16px 0;
  line-height: 1.5;
}
.banner-steps-box {
  background: #ffffff;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 16px;
}
.steps-title {
  font-size: 13px;
  font-weight: 600;
  color: #92400e;
  margin: 0 0 8px 0;
}
.steps-list {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  color: #78350f;
  line-height: 1.6;
}
.btn-banner-action {
  display: inline-block;
  background: #d97706;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-banner-action:hover {
  background: #b45309;
}

/* Conta e planos */
.account-hero{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;padding:28px;margin-bottom:20px;flex-wrap:wrap}
.account-pills{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.account-stats{margin-bottom:20px}
.account-module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:20px 24px}
.account-module{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;border:1px solid #e5e6ee;border-radius:12px;background:#fafbff}
.account-module.blocked{opacity:.72}
.account-module-name{font-size:14px;font-weight:600}
.account-empty{padding:24px}
.plan-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:18px}
.plan-card{display:flex;flex-direction:column;gap:12px;background:white;border:1px solid #e5e6ee;border-radius:16px;padding:24px}
.plan-card.current{border-color:#5548b9;box-shadow:inset 0 0 0 1px #5548b9}
.plan-card header{display:flex;justify-content:space-between;align-items:center;gap:10px}
.plan-card h2{margin:0;font-size:19px}
.plan-price{font-size:26px;font-weight:700;letter-spacing:-1px;color:#1f2338;margin:0}
.plan-features{list-style:none;margin:4px 0 8px;padding:0;display:grid;gap:6px;font-size:13px}
.plan-features .ok{color:#237652}
.plan-features .off{color:#a2a7b8}
.plan-note{font-size:12px;color:#7d7c91;margin:0}
.public-page{min-height:100dvh;padding:40px 20px;max-width:1100px;margin:0 auto;display:grid;gap:18px;align-content:start}
@media(max-width:800px){.account-module-grid{grid-template-columns:1fr}}
.account-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:20px 24px;align-items:end}.account-form label{margin:0}.account-form button{justify-self:start}.account-feedback{grid-column:1/-1;margin:0;font-size:13px}.account-feedback.ok{color:#237652}.account-feedback.error{color:#9b1c1c}@media(max-width:700px){.account-form{grid-template-columns:1fr}}
.auth-card{width:min(460px,100%);padding:36px;background:white;border:1px solid #e5e6ee;border-radius:20px;display:grid;gap:8px}.auth-card h1{margin:0}.auth-card .logo{margin-bottom:4px}.auth-success{background:#e3f7ed;border:1px solid #b7e4cd;color:#237652;padding:12px;border-radius:10px;font-size:14px}
.greenn-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:20px 24px;align-items:end}.greenn-form label{margin:0}.greenn-form .wide{grid-column:1/-1}.greenn-form label.check{display:flex;align-items:center;gap:8px;flex-direction:row;font-size:14px}.greenn-form .actions{grid-column:1/-1;display:flex;gap:12px;align-items:center}.link-danger{background:none;border:none;color:#b91c1c;cursor:pointer;padding:0;font-size:13px;text-decoration:underline}@media(max-width:900px){.greenn-form{grid-template-columns:1fr}}
.plan-image{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:12px;display:block;margin-bottom:4px}
.usage-bar{height:6px;background:#eef1f5;border-radius:999px;overflow:hidden;margin-top:8px}.usage-bar>span{display:block;height:100%;background:#5548b9}

/* --- INBOX OMNICHANNEL & LIVE CHAT --- */
.inbox-heading{margin-bottom:18px}
.inbox-live-dot{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:#0f766e;background:#ccfbf1;border:1px solid #99f6e4;border-radius:999px;padding:4px 10px;white-space:nowrap}
.inbox-live-dot::before{content:"";width:7px;height:7px;border-radius:50%;background:#0d9488;box-shadow:0 0 0 3px rgba(13,148,136,.18)}
.inbox-live-dot.small{margin-left:6px;padding:2px 8px;font-size:11px}
.inbox-alert{background:#fef2f2;border:1px solid #fecaca;color:#b91c1c;border-radius:10px;padding:12px 14px;font-size:14px;margin:0 0 14px}
.inbox-alert p{margin:0 0 8px;color:inherit}
.inbox-feedback{background:#ecfdf5;border:1px solid #a7f3d0;color:#047857;border-radius:10px;padding:12px 14px;font-size:14px;margin:0 0 14px}
.inbox-grid{display:grid;grid-template-columns:minmax(240px,300px) minmax(0,1fr) minmax(230px,280px);gap:16px;align-items:start}

.inbox-list-panel{padding:16px;display:flex;flex-direction:column;max-height:calc(100dvh - 210px)}
.inbox-list-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px}
.inbox-list-head h2{font-size:16px;margin:0;display:flex;align-items:center;gap:8px}
.inbox-search label{margin:0 0 10px;font-size:12px}
.inbox-search input,.inbox-search select{padding:9px 10px;font-size:13px}
.inbox-search .actions{display:flex;gap:8px;margin-top:4px}
.inbox-search .actions button{width:auto;padding:8px 12px;font-size:12px}
.inbox-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.inbox-filters label{margin-bottom:10px}

.inbox-conversations{display:grid;gap:8px;margin:6px 0 0;overflow:auto;padding-right:2px;flex:1;min-height:80px}
.inbox-conversation{display:grid;gap:4px;width:100%;text-align:left;background:#fff;color:#202333;border:1px solid #e5e6ee;border-radius:12px;padding:11px 12px;font-weight:400;cursor:pointer;transition:border-color .15s,background .15s}
.inbox-conversation:hover{background:#fafaff;border-color:#cfc9f7}
.inbox-conversation.active{border-color:#6555dc;background:#f6f4ff;box-shadow:inset 3px 0 0 #6555dc}
.inbox-conv-top{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:13px}
.inbox-conv-top strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.inbox-conv-labels{display:flex;gap:6px;flex-wrap:wrap}
.inbox-conv-labels span{font-size:10px;font-weight:600;letter-spacing:.02em;color:#6151bd;background:#eeebff;border-radius:999px;padding:2px 8px}
.inbox-conv-preview{display:block;font-size:12px;color:#73798b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.inbox-conv-meta{display:block;font-size:11px;color:#9aa0b4}
.inbox-unread{background:#6555dc;color:#fff;border-radius:999px;font-size:11px;font-weight:700;padding:1px 7px;flex:none}
.inbox-pager{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:12px;font-size:11px;color:#7b7e8d}
.inbox-pager button{width:auto;padding:7px 10px;font-size:11px}

.inbox-thread-panel{padding:0;display:flex;flex-direction:column;min-height:560px;max-height:calc(100dvh - 210px);overflow:hidden}
.inbox-back{display:none;width:auto;align-self:flex-start;margin:12px 18px 0;padding:6px 10px;font-size:12px}
.inbox-thread-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:16px 18px 8px}
.inbox-thread-head h2{font-size:18px;margin:0;overflow-wrap:anywhere}
.inbox-thread-head button{width:auto;padding:7px 12px;font-size:12px;flex:none}
.inbox-thread-sub{display:flex;align-items:center;flex-wrap:wrap;font-size:12px;margin:4px 0 0}
.inbox-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:4px 18px 10px}
.inbox-controls label{margin:0;font-size:11px;color:#7b7e8d}
.inbox-controls select{padding:8px 10px;font-size:12px}
.inbox-history{flex:1;overflow:auto;display:flex;flex-direction:column;gap:10px;padding:14px 18px;background:#fbfbfe;border-top:1px solid #f1f1f7;border-bottom:1px solid #f1f1f7;min-height:160px}
.inbox-bubble{max-width:min(560px,90%);align-self:flex-start;background:#fff;border:1px solid #e5e6ee;border-radius:14px 14px 14px 4px;padding:9px 13px}
.inbox-bubble.outbound{align-self:flex-end;background:#efecff;border-color:#dcd6ff;border-radius:14px 14px 4px 14px}
.inbox-bubble small{display:block;font-size:10px;color:#8b8fa3;margin-bottom:3px}
.inbox-bubble p{margin:0;color:#202333;font-size:13px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.inbox-older{align-self:center;width:auto;padding:7px 14px;font-size:11px}

.inbox-composer{display:grid;gap:8px;padding:12px 18px 4px}
.inbox-composer label{margin:0;font-size:12px}
.inbox-composer select{padding:8px 10px;font-size:12px}
.inbox-composer textarea{width:100%;border:1px solid #dedee9;border-radius:10px;padding:10px 12px;font:inherit;font-size:13px;resize:vertical}
.inbox-composer-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.inbox-composer-bar label.check{display:flex;flex-direction:row;align-items:center;gap:7px;margin:0;font-size:11px;color:#7b7e8d}
.inbox-composer-bar button{width:auto;padding:9px 16px;font-size:13px}
.inbox-count{margin-left:auto;font-size:11px;color:#9aa0b4}
.inbox-note{font-size:11px;color:#7b7e8d;line-height:1.5;margin:4px 0 0}
.inbox-note-block{background:#f8f9fd;border:1px dashed #e2e4ef;border-radius:10px;padding:11px 13px;margin:8px 18px 14px}
.inbox-note-block.inbox-note{margin:8px 18px 14px}

.inbox-template-toggle{padding:6px 18px 12px}
.inbox-template-toggle button{width:auto;padding:7px 12px;font-size:12px}
.inbox-templates{border-top:1px solid #eef0f6;padding:14px 18px 18px;display:grid;gap:10px;overflow:auto;max-height:300px}
.inbox-templates h3{font-size:14px;margin:0}
.inbox-templates h4{font-size:12px;margin:2px 0 4px;color:#6151bd}
.inbox-template-list{display:grid;gap:6px;max-height:200px;overflow:auto}
.inbox-template-row{display:flex;align-items:center;gap:8px;border:1px solid #eef0f6;border-radius:10px;padding:7px 10px}
.inbox-template-name{flex:1;min-width:0;text-align:left;background:transparent;color:#202333;padding:0;font-weight:600;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.inbox-template-name:hover{color:#5548b9;text-decoration:underline}
.inbox-template-row button.secondary{width:auto;padding:5px 9px;font-size:11px;flex:none}
.inbox-template-form{display:grid;gap:6px;border-top:1px dashed #e5e6ee;padding-top:10px}
.inbox-template-form label{margin:0;font-size:11px;color:#7b7e8d}
.inbox-template-form input,.inbox-template-form select,.inbox-template-form textarea{padding:8px 10px;font-size:12px}
.inbox-template-form textarea{border:1px solid #dedee9;border-radius:10px;font:inherit;font-size:12px}
.inbox-template-form .actions{display:flex;gap:8px;flex-wrap:wrap}
.inbox-template-form button{width:auto;padding:7px 11px;font-size:12px}

.inbox-contact-panel{padding:16px 18px;display:grid;gap:14px;max-height:calc(100dvh - 210px);overflow:auto}
.inbox-contact-panel h2{font-size:15px;margin:0}
.inbox-contact-block{display:grid;gap:4px}
.inbox-contact-block h3{font-size:12px;margin:0 0 2px;text-transform:uppercase;letter-spacing:.05em;color:#7b7e8d}
.inbox-contact-block p{margin:0;font-size:12px;line-height:1.5}
.inbox-contact-block strong{font-size:14px;overflow-wrap:anywhere}
.inbox-mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:10px;color:#9aa0b4;overflow-wrap:anywhere}
.inbox-tag-list{display:flex;gap:5px;flex-wrap:wrap;margin-top:4px}
.inbox-tag-list .badge{font-size:10px;padding:3px 8px}
.inbox-notes{white-space:pre-wrap;background:#fbfbfe;border:1px solid #eef0f6;border-radius:8px;padding:8px 10px;max-height:130px;overflow:auto;font-size:12px}
.inbox-dl{display:grid;gap:4px;margin:0;font-size:11px}
.inbox-dl>div{display:flex;justify-content:space-between;gap:10px}
.inbox-dl dt{color:#8b8fa3}
.inbox-dl dd{margin:0;text-align:right;overflow-wrap:anywhere}

.inbox-empty{border:1px dashed #e5e6ee;border-radius:12px;padding:16px;text-align:center;display:grid;gap:6px;justify-items:center;color:#7b7e8d;font-size:12px;margin:12px 0}
.inbox-empty strong{font-size:13px;color:#3c4053}
.inbox-empty p{margin:0;font-size:12px}
.inbox-empty button{width:auto;padding:7px 12px;font-size:12px}
.inbox-thread-empty{margin:auto;max-width:320px;border:0}
.inbox-empty-inline{font-size:12px;color:#8b8fa3;margin:10px 0}
.inbox-skeleton{display:grid;gap:8px;padding:14px}
.inbox-skeleton-row{height:48px;border-radius:10px;background:linear-gradient(90deg,#f1f2f8,#f9fafe,#f1f2f8);background-size:200% 100%;animation:inbox-shimmer 1.4s ease-in-out infinite}
@keyframes inbox-shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}

@media(max-width:1180px){
  .inbox-grid{grid-template-columns:minmax(220px,270px) minmax(0,1fr)}
  .inbox-contact-panel{grid-column:1/-1;max-height:none}
}
@media(max-width:820px){
  .inbox-grid{grid-template-columns:1fr}
  .inbox-list-panel{max-height:none;order:2}
  .inbox-thread-panel{min-height:auto;max-height:none;order:1}
  .inbox-contact-panel{order:3;max-height:none}
  .inbox-page.has-selection .inbox-list-panel{display:none}
  .inbox-page:not(.has-selection) .inbox-thread-panel{display:none}
  .inbox-page:not(.has-selection) .inbox-contact-panel{display:none}
  .inbox-back{display:inline-block}
  .inbox-history{max-height:54vh}
  .inbox-conversations{max-height:none}
  .inbox-composer-bar button{margin-left:0;width:100%}
  .inbox-count{margin-left:auto}
}

/* --- INBOX: ANEXOS E RICH MEDIA --- */
.inbox-attach{position:relative;display:inline-flex;align-items:center;gap:6px;margin:0;padding:8px 12px;border-radius:10px;background:#f1effb;color:#5346b9;font-size:12px;font-weight:600;cursor:pointer;border:1px solid transparent;white-space:nowrap}
.inbox-attach:hover{background:#e8e4fb}
.inbox-attach input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.inbox-attachment-tray{display:flex;align-items:center;gap:10px;padding:8px 10px;border:1px solid #e5e6ee;border-radius:10px;background:#fbfbfe}
.inbox-attachment-thumb{width:54px;height:54px;border-radius:8px;object-fit:cover;background:#eef1f7;border:1px solid #e2e8f0;display:flex;align-items:center;justify-content:center;font-size:22px;flex:none}
.inbox-attachment-thumb.doc{color:#5b6178}
.inbox-attachment-meta{display:grid;gap:2px;min-width:0;flex:1}
.inbox-attachment-meta strong{font-size:12.5px;color:#202333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.inbox-attachment-meta small{font-size:11px;color:#7b7e8d}
.inbox-attachment-meta small.inbox-attachment-ok{color:#047857;font-weight:600}
.inbox-attachment-meta small.inbox-attachment-state{color:#8b6b18}
.inbox-attachment-tray button{width:auto;padding:6px 10px;font-size:11.5px}
.inbox-attachment-url{display:grid;gap:4px;font-size:11.5px;font-weight:600;color:#64748b}
.inbox-attachment-url input{padding:7px 9px;font-size:12.5px;border-radius:8px;border:1px solid #dedee9;background:#fff;color:#202333}
.inbox-attachment-url small{font-size:11px;font-weight:400;color:#8b8fa3}
.inbox-media-image-link{display:block;margin-top:6px;max-width:100%}
.inbox-media-image{display:block;max-width:100%;max-height:320px;border-radius:10px;border:1px solid #e2e8f0;background:#fff;object-fit:contain}
.inbox-media-file{display:flex;align-items:center;gap:9px;margin-top:6px;padding:8px 10px;border-radius:10px;border:1px solid #e2e8f0;background:#fff;color:#202333;text-decoration:none}
.inbox-media-file:hover{border-color:#c7c2f5;background:#faf9ff}
.inbox-media-file-icon{font-size:20px;line-height:1;flex:none}
.inbox-media-file-text{display:grid;gap:1px;min-width:0}
.inbox-media-file-text strong{font-size:12.5px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.inbox-media-file-text small{font-size:11px;color:#8b8fa3}
.inbox-media-missing{margin:6px 0 0;font-size:11.5px;color:#8b6b18}
.inbox-bubble.outbound .inbox-media-image{border-color:#d3cbf7}
@media(max-width:820px){
  .inbox-attachment-tray{flex-wrap:wrap}
  .inbox-attachment-tray button{margin-left:auto}
}

/* --- EDITOR DE IMAGENS (SOCIAL MEDIA) --- */
.image-editor-page{display:block}
.image-editor-notice{background:#ecfdf5;border:1px solid #a7f3d0;color:#047857;border-radius:12px;padding:12px 14px;font-size:13px;margin:0 0 16px}
.image-editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:18px;align-items:start}
.image-editor-stage{padding:16px;display:flex;flex-direction:column;gap:14px;background:#fff;overflow:visible}
.image-editor-stage-head{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}
.image-editor-stage-head .image-editor-inline{flex:1;min-width:220px}
.image-editor-inline{display:grid;gap:4px;font-size:12px;color:#55596b;margin:0}
.image-editor-inline select{padding:8px 10px;font-size:13px}
.image-editor-badge{background:#eef2ff;color:#4338ca;border-radius:999px;padding:6px 10px;font-size:11.5px;font-weight:600;white-space:nowrap}
.image-editor-stage-head button{width:auto;padding:8px 12px;font-size:12px}
.image-editor-canvas-wrap{background:#eef1f7;border:1px solid #e2e8f0;border-radius:14px;padding:18px;display:flex;justify-content:center;align-items:center;min-height:320px;overflow:auto}
.image-editor-canvas{display:block;width:auto;height:auto;max-width:100%;max-height:72vh;border-radius:6px;box-shadow:0 12px 32px rgba(15,23,42,.18);background:#fff;cursor:crosshair;touch-action:none}
.image-editor-stage-foot{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:11.5px;color:#7b7e8d}
.image-editor-sidebar{display:grid;gap:14px;align-content:start;position:sticky;top:16px}
.image-editor-card{padding:16px;display:grid;gap:12px;overflow:visible}
.image-editor-card-head{display:flex;justify-content:space-between;align-items:center;gap:8px}
.image-editor-card-head h2{margin:0;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#55596b}
.image-editor-card-head span{font-size:11px;color:#7b7e8d}
.image-editor-add-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.image-editor-add-grid button{width:100%;padding:9px 10px;font-size:12.5px}
.image-editor-upload{position:relative;display:flex;align-items:center;justify-content:center;margin:0;padding:9px 10px;border-radius:10px;background:#f1effb;color:#5346b9;font-size:12.5px;font-weight:600;cursor:pointer;text-align:center;border:1px solid transparent}
.image-editor-upload:hover{background:#e8e4fb}
.image-editor-upload input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.image-editor-actions{display:flex;flex-wrap:wrap;gap:6px}
.image-editor-actions button{width:auto;padding:7px 10px;font-size:11.5px}
.image-editor-danger{color:#b91c1c !important;background:#fef2f2 !important}
.image-editor-layers-list{list-style:none;margin:0;padding:0;display:grid;gap:6px;max-height:230px;overflow:auto}
.image-editor-layer{display:flex;align-items:center;gap:4px;border:1px solid #e5e6ee;border-radius:10px;background:#fff;padding:3px}
.image-editor-layer.active{border-color:#6555dc;background:#f6f4ff;box-shadow:inset 3px 0 0 #6555dc}
.image-editor-layer-name{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px;text-align:left;background:transparent;color:#202333;border:0;border-radius:6px;padding:5px 7px;font-weight:500;cursor:pointer}
.image-editor-layer-kind{font-size:9.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#8b8fa3}
.image-editor-layer-title{font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.image-editor-mini{width:26px;min-width:26px;height:26px;padding:0;font-size:11px;line-height:1;background:#f1effb;color:#5346b9;border-radius:7px}
.image-editor-layer-empty{font-size:12px;color:#7b7e8d;padding:6px 4px}
.image-editor-props-body{display:grid;gap:10px}
.image-editor-field{display:grid;gap:4px;margin:0;font-size:11.5px;font-weight:600;color:#64748b}
.image-editor-field input,.image-editor-field select,.image-editor-field textarea{padding:7px 9px;font-size:13px;border-radius:8px;border:1px solid #dedee9;width:100%;background:#fff;color:#202333}
.image-editor-field textarea{resize:vertical;min-height:70px;line-height:1.45}
.image-editor-field input[type="color"]{padding:2px;height:34px;cursor:pointer}
.image-editor-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:end}
.image-editor-toggles{display:flex;flex-wrap:wrap;gap:12px}
.image-editor-check{display:flex;flex-direction:row;align-items:center;gap:6px;margin:0;font-size:12px;font-weight:500;color:#55596b;cursor:pointer}
.image-editor-check input{width:auto;padding:0;margin:0}
.image-editor-subhead{margin-top:6px;font-size:10.5px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:#8b8fa3}
.image-editor-hint{font-size:11.5px;line-height:1.5;color:#7b7e8d;margin:0}
.image-editor-props-body>button{width:100%;padding:9px 12px;font-size:12.5px}
.image-editor-link{font-size:12px;font-weight:600;color:#5548b9;text-decoration:none}
.image-editor-link:hover{text-decoration:underline}
.image-editor-asset{display:flex;flex-direction:column;gap:8px;padding:12px;border-radius:12px;background:#f8fafc;border:1px solid #e2e8f0}
.image-editor-asset-head{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px;color:#1f2937}
.image-editor-asset-preview{display:block;width:100%;max-height:180px;object-fit:contain;border-radius:8px;background:#fff;border:1px solid #e2e8f0}
.image-editor-asset .image-editor-row{grid-template-columns:1fr;gap:4px}
@media(max-width:1180px){
  .image-editor-layout{grid-template-columns:minmax(0,1fr)}
  .image-editor-sidebar{position:static}
}
@media(max-width:700px){
  .image-editor-canvas-wrap{padding:10px;min-height:220px}
  .image-editor-canvas{max-height:52vh}
  .image-editor-add-grid{grid-template-columns:1fr}
  .image-editor-stage-foot{flex-direction:column;gap:4px}
}
