/* =========================================================
   CENTRAL DE CONTEÚDO — Instagram / Facebook
   Reaproveita os componentes .an-* da Central de Publicidade
   (botões, cartões, campos, chips). Só cores do Rendaki.
   ========================================================= */
.side-tag--new { background: var(--accent-soft); color: var(--accent); }
.area-card__media--cc { background: radial-gradient(60% 90% at 50% 50%, rgba(255, 122, 46, .28), transparent 70%), linear-gradient(135deg, #160b05, #07090d 70%); color: #ff9a4d; }
.area-card__media--cc svg { filter: drop-shadow(0 0 14px rgba(255, 122, 46, .7)); }
.area-card__media--cc::before { background-image: linear-gradient(rgba(255, 154, 77, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 154, 77, .08) 1px, transparent 1px); }

.cc { display: flex; flex-direction: column; gap: 16px; }
#screen-conteudo [hidden] { display: none !important; }
.cc-grow { flex: 1 1 auto; }
.cc-crumb { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.cc-crumb b { color: var(--text); font-weight: 700; }

/* Canais */
.cc-canais { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.cc-canais::-webkit-scrollbar { display: none; }
.cc-canal {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 6px; border-radius: 12px; white-space: nowrap;
  background: var(--panel); border: 1px solid var(--border); color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
}
.cc-canal.is-on { color: var(--text); border-color: var(--accent); background: linear-gradient(160deg, var(--accent-soft), var(--panel) 70%); }
.cc-canal:disabled { opacity: .55; cursor: default; }
.cc-ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--field); color: var(--muted); }
.cc-ico svg { width: 17px; height: 17px; }
.cc-ico--ig, .cc-ico--fb { background: linear-gradient(135deg, #ffb347, #ff6a13 55%, #e04e00); color: #fff; }
.cc-soon { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: var(--field); color: var(--muted); }

/* Conectar */
.cc-connect { display: grid; gap: 16px; }
@media (min-width: 1024px) { .cc-connect { grid-template-columns: 1.25fr 1fr; align-items: start; } }
.cc-connect .an-steps code { font-size: 11px; margin: 1px; display: inline-block; }

/* Cabeçalho */
.cc-dash { display: flex; flex-direction: column; gap: 16px; }
.cc-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center; }
.cc-head__title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.cc-head h1 { margin: 0 0 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cc-head .subtitle { margin: 0; }
.cc-bigico { width: 58px; height: 58px; border-radius: 16px; flex-shrink: 0; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #ffb347, #ff6a13 55%, #d94800); box-shadow: 0 10px 26px rgba(255, 106, 19, .35); }
.cc-bigico svg { width: 32px; height: 32px; }
.cc-conn { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--success-soft); color: var(--success); }
.cc-conn::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.cc-conn.is-err { background: rgba(248, 113, 113, .14); color: var(--error); }
.cc-head__cards { display: flex; flex-wrap: wrap; gap: 10px; }
.cc-hcard {
  display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px 14px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--border); color: var(--text); font: inherit; font-size: 13.5px; font-weight: 700;
}
.cc-hcard > span { display: flex; flex-direction: column; min-width: 0; }
.cc-hcard small { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.cc-hcard b { font-size: 13.5px; }
.cc-hcard img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--field); border: 2px solid var(--accent); }
.cc-hcard select { background: none; border: none; color: var(--text); font: inherit; font-weight: 700; font-size: 13.5px; padding: 0; outline: none; max-width: 200px; cursor: pointer; }
.cc-hcard select option { background: var(--panel); }
.cc-hcard__ico { width: 34px; height: 34px; border-radius: 10px; display: grid !important; place-items: center; background: var(--accent-soft); color: var(--accent); }
.cc-hcard--btn { cursor: pointer; }
.cc-hcard--btn:hover { border-color: var(--accent); color: var(--accent); }

/* Abas */
.cc-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.cc-tabs::-webkit-scrollbar { display: none; }
.cc-tabs button, .cc-subtabs button {
  position: relative; background: none; border: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 700;
  padding: 10px 14px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px;
}
.cc-tabs button.is-on, .cc-subtabs button.is-on { color: var(--accent); }
.cc-tabs button.is-on::after, .cc-subtabs button.is-on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); }
.cc-subtabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.cc-subtabs button { font-size: 13px; padding: 8px 12px; }
.cc-badge { font-style: normal; font-size: 11px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: #fff; display: inline-grid; place-items: center; }
.cc-view { display: flex; flex-direction: column; gap: 16px; }
.cc-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; }

/* KPIs */
.cc-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 1100px) { .cc-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cc-kpi { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--border); }
.cc-kpi__ico { grid-row: span 3; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.cc-kpi__ico svg { width: 20px; height: 20px; }
.cc-kpi__lbl { font-size: 13px; color: var(--muted); font-weight: 600; }
.cc-kpi__val { font-size: 24px; font-weight: 800; letter-spacing: -.02em; font-family: "Plus Jakarta Sans", Inter, sans-serif; }
.cc-kpi__var { font-size: 12px; color: var(--muted); }
.cc-kpi__var b { font-weight: 800; }
.cc-kpi__var .up { color: var(--success); }
.cc-kpi__var .down { color: var(--error); }
.cc-kpi svg.cc-spark { position: absolute; right: 14px; top: 16px; width: 34%; max-width: 120px; height: 40px; opacity: .95; pointer-events: none; }
@media (max-width: 639px) { .cc-kpi { grid-template-columns: 1fr; padding: 14px; } .cc-kpi__ico { grid-row: auto; width: 34px; height: 34px; } .cc-kpi__val { font-size: 20px; } .cc-kpi svg.cc-spark { width: 40%; height: 34px; top: 14px; bottom: auto; } }

/* Grade principal */
.cc-grid { display: grid; gap: 16px; }
.cc-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (min-width: 1100px) { .cc-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; } .cc-grid--even { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cc-h2ico { display: flex; align-items: center; gap: 8px; }
.cc-link { color: var(--accent); font-size: 12.5px; font-weight: 700; background: none; border: none; cursor: pointer; white-space: nowrap; }

/* Ferramentas */
.cc-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 760px) { .cc-tools { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cc-tool { text-align: left; display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 14px; background: var(--field); border: 1px solid var(--border); color: var(--text); font: inherit; cursor: pointer; transition: border-color .15s, transform .15s; }
.cc-tool:hover { border-color: var(--accent); transform: translateY(-1px); }
.cc-tool__ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 4px; }
.cc-tool__ico svg { width: 19px; height: 19px; }
.cc-tool b { font-size: 14px; }
.cc-tool small { font-size: 12px; color: var(--muted); line-height: 1.45; }

/* Fila de publicações */
.cc-fila { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cc-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; background: var(--field); border: 1px solid var(--border); }
.cc-thumb { width: 74px; height: 50px; border-radius: 9px; object-fit: cover; flex-shrink: 0; background: var(--border) center/cover; display: grid; place-items: center; color: var(--muted); font-size: 11px; overflow: hidden; }
.cc-thumb video { width: 100%; height: 100%; object-fit: cover; }
.cc-item__txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cc-item__txt b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-item__txt small { font-size: 12px; color: var(--muted); }
.cc-item__txt small.is-err { color: var(--error); white-space: normal; }
.cc-fmt { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); }
.cc-st { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.cc-st--agendada { background: var(--accent-soft); color: var(--accent); }
.cc-st--publicada { background: var(--success-soft); color: var(--success); }
.cc-st--processando { background: var(--accent-soft); color: var(--accent-2); }
.cc-st--erro { background: rgba(248, 113, 113, .14); color: var(--error); }
.cc-st--rascunho, .cc-st--cancelada { background: var(--border); color: var(--muted); }
.cc-menu { position: relative; }
.cc-menu > button { width: 32px; height: 32px; border-radius: 8px; border: none; background: none; color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; }
.cc-menu > button:hover { background: var(--panel); color: var(--text); }
.cc-menu__pop { position: absolute; right: 0; top: 36px; z-index: 30; min-width: 170px; padding: 6px; border-radius: 12px; background: var(--panel); border: 1px solid var(--border-strong); box-shadow: var(--shadow-md); display: flex; flex-direction: column; }
.cc-menu__pop button { text-align: left; background: none; border: none; color: var(--text); font: inherit; font-size: 13px; padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.cc-menu__pop button:hover { background: var(--field); }
.cc-menu__pop button.is-danger { color: var(--error); }
.cc-vazio { padding: 22px 12px; text-align: center; color: var(--muted); font-size: 13.5px; border: 1px dashed var(--border-strong); border-radius: 12px; }
.cc-vazio button { margin-top: 10px; }

/* Posts */
.cc-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.cc-posts--mini { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.cc-post { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: var(--field); border: 1px solid var(--border); color: inherit; text-decoration: none; transition: border-color .15s; }
.cc-post:hover { border-color: var(--accent); }
.cc-post__img { position: relative; aspect-ratio: 4 / 5; background: var(--border) center/cover no-repeat; }
.cc-post__tag { position: absolute; left: 8px; top: 8px; font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 99px; background: rgba(0, 0, 0, .65); color: #fff; }
.cc-post__body { padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.cc-post__body small { font-size: 11.5px; color: var(--muted); }
.cc-post__met { display: grid; grid-template-columns: 1fr; gap: 3px; font-size: 12px; }
.cc-post__met span { display: flex; justify-content: space-between; gap: 4px; color: var(--muted); }
.cc-post__met b { color: var(--text); }

/* Toggles */
.cc-toggles { display: flex; flex-direction: column; gap: 4px; }
.cc-toggle { display: flex; align-items: center; gap: 12px; padding: 10px 4px; cursor: pointer; border-bottom: 1px solid var(--border); }
.cc-toggle:last-child { border-bottom: none; }
.cc-toggle__ico { width: 38px; height: 38px; flex-shrink: 0; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.cc-toggle__ico svg { width: 19px; height: 19px; }
.cc-toggle__txt { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cc-toggle__txt b { font-size: 13.5px; }
.cc-toggle__txt small { font-size: 12px; color: var(--muted); line-height: 1.4; }
.cc-switch { appearance: none; -webkit-appearance: none; flex-shrink: 0; width: 44px; height: 24px; border-radius: 99px; background: var(--border-strong); position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.cc-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.cc-switch:checked { background: var(--accent); }
.cc-switch:checked::after { transform: translateX(20px); }
.cc-switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Público */
.cc-pub { display: grid; grid-template-columns: 170px 1fr; gap: 18px; align-items: center; padding-top: 6px; margin-bottom: 14px; }
.cc-pub .cc-donut { margin: 0 auto 10px; }
@media (max-width: 480px) { .cc-pub { grid-template-columns: 1fr; justify-items: center; } }
.cc-donut { position: relative; width: 140px; height: 140px; }
.cc-donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.cc-donut__c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.cc-donut__c b { font-size: 20px; font-weight: 800; }
.cc-donut__c small { font-size: 11.5px; color: var(--muted); }
.cc-legend-list { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--muted); }
.cc-legend-list i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; }
.cc-faixas { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.cc-faixas h3 { margin: 0; font-size: 13px; }
.cc-faixa { display: grid; grid-template-columns: 48px 1fr 40px; gap: 10px; align-items: center; font-size: 12.5px; }
.cc-faixa span:last-child { text-align: right; color: var(--muted); font-weight: 700; }
.cc-bar { height: 8px; border-radius: 99px; background: var(--field); overflow: hidden; }
.cc-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #ff9a4d, #ff5a00); }
.cc-mini-note { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.cc-linechart { width: 100%; height: 150px; }

/* Atividade */
.cc-ativ { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cc-ativ li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--border); }
.cc-ativ li:last-child { border-bottom: none; }
.cc-ativ__ico { width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; background: var(--field); color: var(--accent); }
.cc-ativ__ico svg { width: 16px; height: 16px; }
.cc-ativ__ico.is-err { color: var(--error); }
.cc-ativ__ico.is-ok { color: var(--success); }
.cc-ativ div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cc-ativ b { font-size: 13px; }
.cc-ativ small { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }

/* Calendário */
.cc-cal-nav { display: flex; align-items: center; gap: 8px; }
.cc-cal-nav h2 { min-width: 150px; text-align: center; text-transform: capitalize; }
.cc-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); }
.cc-legend i, .cc-cal__dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.is-agendada { background: var(--accent); }
.is-publicada { background: var(--success); }
.is-erro { background: var(--error); }
.is-rascunho, .is-cancelada { background: var(--muted); }
.is-processando { background: var(--accent-2); }
.cc-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cc-cal__dow { font-size: 11.5px; font-weight: 700; color: var(--muted); text-align: center; padding: 4px 0; text-transform: uppercase; }
.cc-cal__day { min-height: 92px; padding: 6px; border-radius: 10px; background: var(--field); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; cursor: pointer; text-align: left; font: inherit; color: var(--text); min-width: 0; }
.cc-cal__day:hover { border-color: var(--accent); }
.cc-cal__day.is-out { opacity: .45; }
.cc-cal__day.is-today { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.cc-cal__day.is-sel { background: var(--accent-soft); }
.cc-cal__n { font-size: 12px; font-weight: 800; }
.cc-cal__ev { font-size: 11px; display: flex; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.cc-cal__more { font-size: 10.5px; color: var(--accent); font-weight: 700; }
@media (max-width: 700px) { .cc-cal__day { min-height: 54px; padding: 4px; } .cc-cal__ev span { display: none; } .cc-cal__ev { display: inline-flex; } }

/* Heatmap */
.cc-heat { display: grid; grid-template-columns: 44px repeat(6, minmax(0, 1fr)); gap: 4px; font-size: 11px; }
.cc-heat span { text-align: center; color: var(--muted); font-weight: 700; padding: 4px 0; }
.cc-heat span.l { text-align: left; }
.cc-heat i { display: block; height: 30px; border-radius: 7px; background: var(--field); border: 1px solid var(--border); position: relative; }
.cc-heat i[data-v]::after { content: attr(data-v); position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-size: 10.5px; font-weight: 700; color: #fff; }
.cc-top-horas { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 700; border: 1px solid rgba(255, 122, 46, .3); cursor: pointer; font-family: inherit; }
.cc-chip--muted { background: var(--field); color: var(--text); border-color: var(--border); }

/* Automações */
.cc-auto-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cc-auto-stat { padding: 12px; border-radius: 12px; background: var(--field); border: 1px solid var(--border); }
.cc-auto-stat small { display: block; font-size: 12px; color: var(--muted); }
.cc-auto-stat b { font-size: 20px; }
.cc-autos { display: grid; gap: 10px; }
@media (min-width: 900px) { .cc-autos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cc-auto { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; background: var(--field); border: 1px solid var(--border); }
.cc-auto.is-off { opacity: .6; }
.cc-auto__head { display: flex; align-items: center; gap: 10px; }
.cc-auto__head b { flex: 1 1 auto; font-size: 14.5px; }
.cc-auto__kw { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-auto__kw span { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--panel); border: 1px solid var(--border-strong); }
.cc-auto__msg { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.5; white-space: pre-line; }
.cc-auto__foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); }
.cc-auto-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px; max-height: 210px; overflow-y: auto; }
.cc-auto-post { position: relative; aspect-ratio: 1; border-radius: 8px; background: var(--border) center/cover; cursor: pointer; border: 2px solid transparent; }
.cc-auto-post input { position: absolute; opacity: 0; }
.cc-auto-post:has(input:checked) { border-color: var(--accent); }
.cc-auto-post:has(input:checked)::after { content: "✓"; position: absolute; right: 4px; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 11px; display: grid; place-items: center; }
.cc-webhook-box code, .cc-cfg code { font-size: 12px; padding: 2px 7px; border-radius: 6px; background: var(--field); border: 1px solid var(--border); word-break: break-all; }
.cc-copy { display: flex; gap: 8px; align-items: center; }
.cc-copy code { flex: 1 1 auto; padding: 9px 10px; }

/* Comentários */
.cc-coms { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cc-com { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; padding: 12px; border-radius: 12px; background: var(--field); border: 1px solid var(--border); }
.cc-com.is-hidden { opacity: .55; }
.cc-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, #ffb347, #ff5a00); text-transform: uppercase; }
.cc-com__body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cc-com__body p { margin: 0; font-size: 13.5px; line-height: 1.45; word-break: break-word; }
.cc-com__meta { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.cc-com__meta b { color: var(--text); }
.cc-com__tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--success-soft); color: var(--success); }
.cc-com__acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.cc-com__acts button { font: inherit; font-size: 12px; font-weight: 700; background: none; border: none; color: var(--accent); cursor: pointer; padding: 2px 0; }
.cc-com__acts button.is-danger { color: var(--error); }
.cc-com__acts button + button { margin-left: 8px; }
.cc-com__reply { display: flex; gap: 6px; margin-top: 6px; }
.cc-com__reply input { flex: 1 1 auto; min-width: 0; padding: 8px 10px; border-radius: 9px; background: var(--panel); border: 1px solid var(--border-strong); color: var(--text); font: inherit; font-size: 13px; }
.cc-com__thumb { width: 44px; height: 44px; border-radius: 8px; background: var(--border) center/cover; }

/* Tendências */
.cc-inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cc-inline-form .an-search span { color: var(--muted); font-weight: 800; }
.cc-hash-sug { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-conc-head { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; background: var(--field); border: 1px solid var(--border); }
.cc-conc-head img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.cc-conc-head div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cc-conc-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.cc-conc-nums div { padding: 10px; border-radius: 10px; background: var(--field); border: 1px solid var(--border); text-align: center; }
.cc-conc-nums small { display: block; font-size: 11px; color: var(--muted); }
.cc-conc-nums b { font-size: 15px; }
.cc-aviso { padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); border: 1px solid rgba(255, 122, 46, .3); font-size: 13px; line-height: 1.5; }
.cc-aviso--err { background: rgba(248, 113, 113, .1); border-color: rgba(248, 113, 113, .35); color: var(--error); }

/* Modais */
.cc-modal[hidden] { display: none !important; }
.cc-modal { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 16px; }
.cc-modal__bg { position: absolute; inset: 0; background: rgba(5, 7, 10, .72); backdrop-filter: blur(3px); }
.cc-modal__box { position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow-y: auto; border-radius: 18px; background: var(--panel); border: 1px solid var(--border-strong); box-shadow: var(--shadow-md); display: flex; flex-direction: column; }
.cc-modal__box--wide { max-width: 980px; }
.cc-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--panel); z-index: 2; }
.cc-modal__head h2 { margin: 0; font-size: 17px; }
.cc-x { width: 34px; height: 34px; border-radius: 9px; border: none; background: var(--field); color: var(--text); font-size: 20px; cursor: pointer; line-height: 1; }
.cc-modal__body { padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.cc-modal__foot .an-btn { width: auto; flex: 0 0 auto; }
.cc-modal__foot { display: flex; gap: 8px; align-items: center; justify-content: flex-end; padding: 14px 18px; border-top: 1px solid var(--border); position: sticky; bottom: 0; background: var(--panel); }
body.cc-modal-open { overflow: hidden; }

/* Compositor */
.cc-comp { display: grid; gap: 18px; padding: 16px 18px; }
@media (min-width: 860px) { .cc-comp { grid-template-columns: minmax(0, 1fr) 300px; } }
.cc-comp__form { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cc-drop { border: 1.5px dashed var(--border-strong); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, background .15s; }
.cc-drop.is-over { border-color: var(--accent); background: var(--accent-soft); }
.cc-drop__lista { display: flex; gap: 8px; overflow-x: auto; }
.cc-drop__lista:empty { display: none; }
.cc-drop__item { position: relative; width: 84px; height: 84px; flex-shrink: 0; border-radius: 10px; background: var(--border) center/cover; overflow: hidden; }
.cc-drop__item video { width: 100%; height: 100%; object-fit: cover; }
.cc-drop__item button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: none; background: rgba(0, 0, 0, .7); color: #fff; cursor: pointer; font-size: 13px; line-height: 1; }
.cc-drop__item .cc-up { position: absolute; inset: auto 0 0 0; height: 4px; background: var(--accent); transition: width .2s; }
.cc-drop__item em { position: absolute; left: 4px; bottom: 4px; font-style: normal; font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 99px; background: rgba(0, 0, 0, .7); color: #fff; }
.cc-drop__acoes { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-field-head { display: flex; justify-content: space-between; gap: 8px; }
.cc-field-head em { font-style: normal; font-weight: 600; }
.cc-field-head em.is-err { color: var(--error); }
#ccLegenda { font-family: inherit; font-size: 14px; word-break: normal; }
.cc-ia-row { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-ia-row input { flex: 1 1 220px; min-width: 0; padding: 8px 12px; border-radius: 10px; background: var(--field); border: 1px solid var(--border); color: var(--text); font: inherit; font-size: 13px; }
.cc-row2 { display: grid; gap: 12px; }
@media (min-width: 640px) { .cc-row2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cc-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; }
.cc-check input { accent-color: var(--accent); width: 16px; height: 16px; }
.cc-quando { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 12px; background: var(--field); border: 1px solid var(--border); }
.cc-quando__data { display: flex; gap: 8px; flex-wrap: wrap; }
.cc-quando__data input { width: auto; flex: 0 1 180px; padding: 9px 10px; border-radius: 10px; background: var(--panel); border: 1px solid var(--border-strong); color: var(--text); font: inherit; color-scheme: dark; }
:root[data-theme="light"] .cc-quando__data input { color-scheme: light; }
.cc-phone { align-self: start; position: sticky; top: 74px; border-radius: 26px; padding: 14px 12px; background: #0b0e13; border: 6px solid #1d232e; color: #e8ecf4; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow-md); }
.cc-phone__top { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.cc-phone__top img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: #252c39; border: 2px solid #ff7a2e; }
.cc-phone__media { aspect-ratio: 4 / 5; border-radius: 6px; background: #151a23 center/cover no-repeat; display: grid; place-items: center; color: #949db0; font-size: 12px; overflow: hidden; }
.cc-phone__media.is-9x16 { aspect-ratio: 9 / 16; }
.cc-phone__media video { width: 100%; height: 100%; object-fit: cover; }
.cc-phone__acts { font-size: 15px; }
.cc-phone__leg { margin: 0; font-size: 12px; line-height: 1.45; white-space: pre-wrap; max-height: 150px; overflow: hidden; word-break: break-word; }
@media (max-width: 859px) { .cc-phone { display: none; } }

/* Biblioteca */
.cc-lib-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 18px 0; }
.cc-lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; padding: 14px 18px 18px; }
.cc-lib__item { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--field) center/cover; border: 2px solid transparent; cursor: pointer; }
.cc-lib__item.is-sel { border-color: var(--accent); }
.cc-lib__item video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.cc-lib__item em { position: absolute; left: 6px; bottom: 6px; font-style: normal; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 99px; background: rgba(0, 0, 0, .7); color: #fff; }
.cc-lib__item button { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; border: none; background: rgba(0, 0, 0, .7); color: #fff; cursor: pointer; }
.cc-lib__item.is-sel::after { content: "✓"; position: absolute; left: 6px; top: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 12px; }

/* IA */
.cc-ia-res { display: flex; flex-direction: column; gap: 10px; }
.cc-ia-card { padding: 12px; border-radius: 12px; background: var(--field); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.cc-ia-card b { font-size: 14px; }
.cc-ia-card p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; white-space: pre-wrap; }
.cc-ia-card .an-btn { align-self: flex-start; }

/* Config */
.cc-cfg { display: flex; flex-direction: column; gap: 12px; font-size: 13.5px; }
.cc-cfg dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.cc-cfg dt { color: var(--muted); }
.cc-cfg dd { margin: 0; font-weight: 600; word-break: break-word; }
.cc-cfg h3 { margin: 6px 0 0; font-size: 14px; }
.cc-cfg ol { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.6; }
.cc-cfg ol em { color: var(--text); font-style: normal; font-weight: 600; }

/* =========================================================
   Menu lateral: grupos de Publicidade e Conteúdo + telas de escolha
   ========================================================= */
.side-link--parent .side-link__chev { box-sizing: content-box; padding: 7px; margin: -7px -7px -7px auto; border-radius: 8px; cursor: pointer; flex-shrink: 0; }
.side-link--parent .side-link__chev:hover { background: rgba(255, 255, 255, .08); opacity: 1; }
:root[data-theme="light"] .side-link--parent .side-link__chev:hover { background: rgba(10, 20, 40, .07); }
.side-link--parent .side-tag + .side-link__chev { margin-left: 6px; }
.side-sublink.is-soon { color: var(--muted); opacity: .8; display: flex; align-items: center; gap: 6px; }
.side-soon, .tag-soon { font-style: normal; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: var(--field); color: var(--muted); border: 1px solid var(--border); white-space: nowrap; }
.tag-soon { margin-left: 6px; vertical-align: middle; }
.hub-card.is-soon { cursor: default; opacity: .62; }
.hub-card.is-soon:hover { transform: none; border-color: var(--border); box-shadow: none; }
.hub-card__go--soon { color: var(--muted) !important; }
.hub-ok { color: var(--success) !important; font-weight: 700; }
.eyebrow-back { background: none; border: none; padding: 0; font: inherit; color: inherit; cursor: pointer; text-transform: inherit; letter-spacing: inherit; }
.eyebrow-back:hover { color: var(--accent); text-decoration: underline; }
